diff --git a/lib/types.ts b/lib/types.ts index d4a95668..43fdc04a 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -22,56 +22,58 @@ export type WorkflowSettings = { action: "stop" | "continue"; }; - bindings?: { - /** - * Exposes the id token to the workflow - */ - "kinde.idToken"?: { - /** - * {boolean} reset all claims to default value on workflow start, default is false - */ - resetClaims?: boolean; - }; - /** - * Exposes the access token to the workflow - */ - "kinde.accessToken"?: { - /** - * {boolean} reset all claims to default value on workflow start, default is false - */ - resetClaims?: boolean; - }; - "kinde.m2mToken"?: { - /** - * {boolean} reset all claims to default value on workflow start, default is false - */ - resetClaims?: boolean; - }; - /** - * Exposes the console methods to the workflow - */ - console?: {}; - /** - * Exposes the fetch method to call extenal APIs to the workflow - */ - "kinde.fetch"?: {}; - /** - * Exposes access to the kinde environment variables - */ - "kinde.env"?: {}; + bindings?: KindeBindings; +}; + +export interface KindeBindings { + /** + * Exposes the id token to the workflow + */ + "kinde.idToken"?: { /** - * Exposes access to the kinde environment variables + * {boolean} reset all claims to default value on workflow start, default is false */ - "kinde.auth"?: {}; + resetClaims?: boolean; + }; + /** + * Exposes the access token to the workflow + */ + "kinde.accessToken"?: { /** - * Exposes access to the kinde localization + * {boolean} reset all claims to default value on workflow start, default is false */ - "kinde.localization": {}; + resetClaims?: boolean; + }; + "kinde.m2mToken"?: { /** - * Add URL tooling + * {boolean} reset all claims to default value on workflow start, default is false */ - url?: {}; + resetClaims?: boolean; }; + /** + * Exposes the console methods to the workflow + */ + console?: {}; + /** + * Exposes the fetch method to call extenal APIs to the workflow + */ + "kinde.fetch"?: {}; + /** + * Exposes access to the kinde environment variables + */ + "kinde.env"?: {}; + /** + * Exposes access to the kinde environment variables + */ + "kinde.auth"?: {}; + /** + * Exposes access to the kinde localization + */ + "kinde.localization"?: {}; + /** + * Add URL tooling + */ + url?: {}; }; export enum WorkflowTrigger {