diff --git a/wit/data-collection.wit b/wit/data-collection.wit index 818f557..9df9019 100644 --- a/wit/data-collection.wit +++ b/wit/data-collection.wit @@ -1,4 +1,4 @@ -package edgee:components; +package edgee:components@1.0.1; interface data-collection { type dict = list>; @@ -108,7 +108,21 @@ interface data-collection { enum http-method { GET, PUT, POST, DELETE } + @since(version = 1.0.1) + record auth-request { + method: http-method, + url: string, + headers: dict, + token-duration: s64, + token-response-property: string, + body: string, + } + page: func(e: event, settings: dict) -> result; track: func(e: event, settings: dict) -> result; user: func(e: event, settings:dict) -> result; + @since(version = 1.0.1) + authenticate: func(settings: dict) -> result, string>; + @since(version = 1.0.1) + require-auth: func() -> bool; }