@drmhse/authos-vue 0.2.7 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,21 +1,19 @@
1
- import * as vue from 'vue';
2
- import { App, ComputedRef, PropType, VNode } from 'vue';
3
- import * as _drmhse_sso_sdk from '@drmhse/sso-sdk';
4
- import { SsoClient, UserProfile, OrganizationResponse, TokenStorage } from '@drmhse/sso-sdk';
5
- export { AuthErrorCodes, BrowserStorage, MemoryStorage, OrganizationResponse, SsoApiError, SsoClient, TokenStorage, UserProfile } from '@drmhse/sso-sdk';
1
+ import { App, ComputedRef, PropType, VNode } from "vue";
2
+ import { AuthErrorCodes, BrowserStorage, MemoryStorage, OrganizationResponse, OrganizationResponse as OrganizationResponse$1, SsoApiError, SsoClient, SsoClient as SsoClient$1, TokenStorage, TokenStorage as TokenStorage$1, UserProfile, UserProfile as UserProfile$1 } from "@drmhse/sso-sdk";
6
3
 
4
+ //#region src/types.d.ts
7
5
  interface AuthOSState {
8
- user: UserProfile | null;
9
- isAuthenticated: boolean;
10
- isLoading: boolean;
11
- currentOrganization: OrganizationResponse | null;
12
- organizations: OrganizationResponse[];
6
+ user: UserProfile$1 | null;
7
+ isAuthenticated: boolean;
8
+ isLoading: boolean;
9
+ currentOrganization: OrganizationResponse$1 | null;
10
+ organizations: OrganizationResponse$1[];
13
11
  }
14
12
  interface AuthOSContext {
15
- client: SsoClient;
16
- state: AuthOSState;
17
- /** The plugin configuration options */
18
- options: AuthOSPluginOptions;
13
+ client: SsoClient$1;
14
+ state: AuthOSState;
15
+ /** The plugin configuration options */
16
+ options: AuthOSPluginOptions;
19
17
  }
20
18
  /**
21
19
  * Configuration options for the AuthOS Vue plugin.
@@ -45,125 +43,127 @@ interface AuthOSContext {
45
43
  * All properties are optional and use CSS color/size values.
46
44
  */
47
45
  interface AppearanceVariables {
48
- /** Primary brand color (e.g., '#6366f1') */
49
- colorPrimary?: string;
50
- /** Primary color on hover */
51
- colorPrimaryHover?: string;
52
- /** Text color on primary background */
53
- colorPrimaryForeground?: string;
54
- /** Error/danger color */
55
- colorDanger?: string;
56
- /** Success color */
57
- colorSuccess?: string;
58
- /** Warning color */
59
- colorWarning?: string;
60
- /** Main background color */
61
- colorBackground?: string;
62
- /** Surface/card background color */
63
- colorSurface?: string;
64
- /** Main text color */
65
- colorForeground?: string;
66
- /** Muted/secondary text color */
67
- colorMuted?: string;
68
- /** Border color */
69
- colorBorder?: string;
70
- /** Input background color */
71
- colorInput?: string;
72
- /** Input border color */
73
- colorInputBorder?: string;
74
- /** Focus ring color */
75
- colorRing?: string;
76
- /** Font family */
77
- fontFamily?: string;
78
- /** Base font size */
79
- fontSize?: string;
80
- /** Border radius */
81
- borderRadius?: string;
46
+ /** Primary brand color (e.g., '#6366f1') */
47
+ colorPrimary?: string;
48
+ /** Primary color on hover */
49
+ colorPrimaryHover?: string;
50
+ /** Text color on primary background */
51
+ colorPrimaryForeground?: string;
52
+ /** Error/danger color */
53
+ colorDanger?: string;
54
+ /** Success color */
55
+ colorSuccess?: string;
56
+ /** Warning color */
57
+ colorWarning?: string;
58
+ /** Main background color */
59
+ colorBackground?: string;
60
+ /** Surface/card background color */
61
+ colorSurface?: string;
62
+ /** Main text color */
63
+ colorForeground?: string;
64
+ /** Muted/secondary text color */
65
+ colorMuted?: string;
66
+ /** Border color */
67
+ colorBorder?: string;
68
+ /** Input background color */
69
+ colorInput?: string;
70
+ /** Input border color */
71
+ colorInputBorder?: string;
72
+ /** Focus ring color */
73
+ colorRing?: string;
74
+ /** Font family */
75
+ fontFamily?: string;
76
+ /** Base font size */
77
+ fontSize?: string;
78
+ /** Border radius */
79
+ borderRadius?: string;
82
80
  }
83
81
  /**
84
82
  * Appearance configuration for customizing component styling.
85
83
  */
86
84
  interface AppearanceOptions {
87
- /** CSS variable overrides */
88
- variables?: AppearanceVariables;
85
+ /** CSS variable overrides */
86
+ variables?: AppearanceVariables;
89
87
  }
90
88
  interface AuthOSPluginOptions {
91
- /**
92
- * Base URL of the AuthOS API service.
93
- * @example 'https://sso.example.com'
94
- */
95
- baseURL: string;
96
- /**
97
- * Organization slug for OAuth flows.
98
- * Only required when using OAuth login buttons.
99
- * Omit for platform-level access.
100
- * @example 'acme-corp'
101
- */
102
- org?: string;
103
- /**
104
- * Service slug for OAuth flows.
105
- * Only required when using OAuth login buttons.
106
- * Omit for platform-level access.
107
- * @example 'main-app'
108
- */
109
- service?: string;
110
- /**
111
- * Redirect URI after OAuth authentication.
112
- * Defaults to current window location origin + '/callback'.
113
- * @example 'https://app.example.com/callback'
114
- */
115
- redirectUri?: string;
116
- /**
117
- * Custom storage provider (optional).
118
- * Defaults to localStorage in browser, Memory in SSR.
119
- */
120
- storage?: TokenStorage;
121
- /**
122
- * Automatically refresh expired tokens.
123
- * @default true
124
- */
125
- autoRefresh?: boolean;
126
- /**
127
- * Initial session token from server-side (for SSR hydration).
128
- * When provided, skips the initial loading state on the client.
129
- * Typically passed from cookies in Nuxt server components.
130
- */
131
- initialToken?: string;
132
- /**
133
- * URL to redirect to after successful sign-in.
134
- * @example '/dashboard'
135
- */
136
- afterSignInUrl?: string;
137
- /**
138
- * URL to redirect to after successful sign-up.
139
- * @example '/onboarding'
140
- */
141
- afterSignUpUrl?: string;
142
- /**
143
- * Appearance customization options.
144
- * Use to override default theme colors, fonts, and styling.
145
- * @example
146
- * ```ts
147
- * appearance: {
148
- * variables: {
149
- * colorPrimary: '#0066cc',
150
- * borderRadius: '0.25rem',
151
- * }
152
- * }
153
- * ```
154
- */
155
- appearance?: AppearanceOptions;
89
+ /**
90
+ * Base URL of the AuthOS API service.
91
+ * @example 'https://sso.example.com'
92
+ */
93
+ baseURL: string;
94
+ /**
95
+ * Organization slug for OAuth flows.
96
+ * Only required when using OAuth login buttons.
97
+ * Omit for platform-level access.
98
+ * @example 'acme-corp'
99
+ */
100
+ org?: string;
101
+ /**
102
+ * Service slug for OAuth flows.
103
+ * Only required when using OAuth login buttons.
104
+ * Omit for platform-level access.
105
+ * @example 'main-app'
106
+ */
107
+ service?: string;
108
+ /**
109
+ * Redirect URI after OAuth authentication.
110
+ * Defaults to current window location origin + '/callback'.
111
+ * @example 'https://app.example.com/callback'
112
+ */
113
+ redirectUri?: string;
114
+ /**
115
+ * Custom storage provider (optional).
116
+ * Defaults to localStorage in browser, Memory in SSR.
117
+ */
118
+ storage?: TokenStorage$1;
119
+ /**
120
+ * Automatically refresh expired tokens.
121
+ * @default true
122
+ */
123
+ autoRefresh?: boolean;
124
+ /**
125
+ * Initial session token from server-side (for SSR hydration).
126
+ * When provided, skips the initial loading state on the client.
127
+ * Typically passed from cookies in Nuxt server components.
128
+ */
129
+ initialToken?: string;
130
+ /**
131
+ * URL to redirect to after successful sign-in.
132
+ * @example '/dashboard'
133
+ */
134
+ afterSignInUrl?: string;
135
+ /**
136
+ * URL to redirect to after successful sign-up.
137
+ * @example '/onboarding'
138
+ */
139
+ afterSignUpUrl?: string;
140
+ /**
141
+ * Appearance customization options.
142
+ * Use to override default theme colors, fonts, and styling.
143
+ * @example
144
+ * ```ts
145
+ * appearance: {
146
+ * variables: {
147
+ * colorPrimary: '#0066cc',
148
+ * borderRadius: '0.25rem',
149
+ * }
150
+ * }
151
+ * ```
152
+ */
153
+ appearance?: AppearanceOptions;
156
154
  }
157
155
  declare const AUTH_OS_INJECTION_KEY: unique symbol;
158
156
  /**
159
157
  * Supported OAuth providers
160
158
  */
161
- type SupportedOAuthProvider$1 = 'github' | 'google' | 'microsoft';
162
-
159
+ type SupportedOAuthProvider = 'github' | 'google' | 'microsoft';
160
+ //#endregion
161
+ //#region src/plugin.d.ts
163
162
  declare function createAuthOS(options: AuthOSPluginOptions): {
164
- install(app: App): void;
163
+ install(app: App): void;
165
164
  };
166
-
165
+ //#endregion
166
+ //#region src/composables/useAuthOS.d.ts
167
167
  /**
168
168
  * Access the AuthOS client, state, and configuration.
169
169
  *
@@ -181,20 +181,22 @@ declare function createAuthOS(options: AuthOSPluginOptions): {
181
181
  * ```
182
182
  */
183
183
  declare function useAuthOS(): {
184
- client: SsoClient;
185
- options: AuthOSPluginOptions;
186
- isLoading: vue.ComputedRef<boolean>;
187
- isAuthenticated: vue.ComputedRef<boolean>;
184
+ client: SsoClient$1;
185
+ options: AuthOSPluginOptions;
186
+ isLoading: import("vue").ComputedRef<boolean>;
187
+ isAuthenticated: import("vue").ComputedRef<boolean>;
188
188
  };
189
-
189
+ //#endregion
190
+ //#region src/composables/useUser.d.ts
190
191
  declare function useUser(): {
191
- user: vue.Ref<null, null>;
192
- isLoading: vue.ComputedRef<boolean>;
192
+ user: import("vue").Ref<null, null>;
193
+ isLoading: import("vue").ComputedRef<boolean>;
193
194
  } | {
194
- user: vue.ComputedRef<_drmhse_sso_sdk.UserProfile | null>;
195
- isLoading: vue.ComputedRef<boolean>;
195
+ user: import("vue").ComputedRef<import("@drmhse/sso-sdk").UserProfile | null>;
196
+ isLoading: import("vue").ComputedRef<boolean>;
196
197
  };
197
-
198
+ //#endregion
199
+ //#region src/composables/useOrganization.d.ts
198
200
  /**
199
201
  * Composable to access the current organization context and switch between organizations.
200
202
  *
@@ -214,17 +216,18 @@ declare function useUser(): {
214
216
  * ```
215
217
  */
216
218
  declare function useOrganization(): {
217
- currentOrganization: vue.Ref<null, null>;
218
- organizations: vue.Ref<never[], never[]>;
219
- switchOrganization: () => Promise<null>;
220
- isSwitching: vue.Ref<boolean, boolean>;
219
+ currentOrganization: import("vue").Ref<null, null>;
220
+ organizations: import("vue").Ref<never[], never[]>;
221
+ switchOrganization: () => Promise<null>;
222
+ isSwitching: import("vue").Ref<boolean, boolean>;
221
223
  } | {
222
- currentOrganization: vue.ComputedRef<_drmhse_sso_sdk.OrganizationResponse | null>;
223
- organizations: vue.ComputedRef<_drmhse_sso_sdk.OrganizationResponse[]>;
224
- switchOrganization: (slug: string) => Promise<_drmhse_sso_sdk.OrganizationResponse | undefined>;
225
- isSwitching: vue.Ref<boolean, boolean>;
224
+ currentOrganization: import("vue").ComputedRef<import("@drmhse/sso-sdk").OrganizationResponse | null>;
225
+ organizations: import("vue").ComputedRef<import("@drmhse/sso-sdk").OrganizationResponse[]>;
226
+ switchOrganization: (slug: string) => Promise<import("@drmhse/sso-sdk").OrganizationResponse | undefined>;
227
+ isSwitching: import("vue").Ref<boolean, boolean>;
226
228
  };
227
-
229
+ //#endregion
230
+ //#region src/composables/usePermission.d.ts
228
231
  /**
229
232
  * Check if the current user has a specific permission.
230
233
  *
@@ -277,310 +280,307 @@ declare function useAnyPermission(permissions: string[]): ComputedRef<boolean>;
277
280
  * ```
278
281
  */
279
282
  declare function useAllPermissions(permissions: string[]): ComputedRef<boolean>;
280
-
281
- declare const AuthOSProvider: vue.DefineComponent<vue.ExtractPropTypes<{
282
- baseURL: {
283
- type: StringConstructor;
284
- required: true;
285
- };
286
- org: {
287
- type: StringConstructor;
288
- default: undefined;
289
- };
290
- service: {
291
- type: StringConstructor;
292
- default: undefined;
293
- };
294
- redirectUri: {
295
- type: StringConstructor;
296
- default: undefined;
297
- };
298
- storage: {
299
- type: PropType<TokenStorage>;
300
- default: undefined;
301
- };
302
- client: {
303
- type: PropType<SsoClient>;
304
- default: undefined;
305
- };
306
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
307
- [key: string]: any;
308
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
309
- [key: string]: any;
310
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
311
- baseURL: {
312
- type: StringConstructor;
313
- required: true;
314
- };
315
- org: {
316
- type: StringConstructor;
317
- default: undefined;
318
- };
319
- service: {
320
- type: StringConstructor;
321
- default: undefined;
322
- };
323
- redirectUri: {
324
- type: StringConstructor;
325
- default: undefined;
326
- };
327
- storage: {
328
- type: PropType<TokenStorage>;
329
- default: undefined;
330
- };
331
- client: {
332
- type: PropType<SsoClient>;
333
- default: undefined;
334
- };
283
+ //#endregion
284
+ //#region src/components/AuthOSProvider.d.ts
285
+ declare const AuthOSProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
286
+ baseURL: {
287
+ type: StringConstructor;
288
+ required: true;
289
+ };
290
+ org: {
291
+ type: StringConstructor;
292
+ default: undefined;
293
+ };
294
+ service: {
295
+ type: StringConstructor;
296
+ default: undefined;
297
+ };
298
+ redirectUri: {
299
+ type: StringConstructor;
300
+ default: undefined;
301
+ };
302
+ storage: {
303
+ type: PropType<TokenStorage$1>;
304
+ default: undefined;
305
+ };
306
+ client: {
307
+ type: PropType<SsoClient$1>;
308
+ default: undefined;
309
+ };
310
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
311
+ [key: string]: any;
312
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
313
+ [key: string]: any;
314
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
315
+ baseURL: {
316
+ type: StringConstructor;
317
+ required: true;
318
+ };
319
+ org: {
320
+ type: StringConstructor;
321
+ default: undefined;
322
+ };
323
+ service: {
324
+ type: StringConstructor;
325
+ default: undefined;
326
+ };
327
+ redirectUri: {
328
+ type: StringConstructor;
329
+ default: undefined;
330
+ };
331
+ storage: {
332
+ type: PropType<TokenStorage$1>;
333
+ default: undefined;
334
+ };
335
+ client: {
336
+ type: PropType<SsoClient$1>;
337
+ default: undefined;
338
+ };
335
339
  }>> & Readonly<{}>, {
336
- org: string;
337
- service: string;
338
- redirectUri: string;
339
- storage: TokenStorage;
340
- client: SsoClient;
341
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
342
-
340
+ org: string;
341
+ service: string;
342
+ redirectUri: string;
343
+ storage: TokenStorage$1;
344
+ client: SsoClient$1;
345
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
346
+ //#endregion
347
+ //#region src/components/SignIn.d.ts
343
348
  type SignInStep = 'credentials' | 'mfa';
344
349
  interface SignInSlotProps {
345
- email: string;
346
- password: string;
347
- mfaCode: string;
348
- step: SignInStep;
349
- error: string | null;
350
- isSubmitting: boolean;
351
- updateEmail: (value: string) => void;
352
- updatePassword: (value: string) => void;
353
- updateMfaCode: (value: string) => void;
354
- submit: () => Promise<void>;
350
+ email: string;
351
+ password: string;
352
+ mfaCode: string;
353
+ step: SignInStep;
354
+ error: string | null;
355
+ isSubmitting: boolean;
356
+ updateEmail: (value: string) => void;
357
+ updatePassword: (value: string) => void;
358
+ updateMfaCode: (value: string) => void;
359
+ submit: () => Promise<void>;
355
360
  }
356
- declare const SignIn: vue.DefineComponent<vue.ExtractPropTypes<{
357
- onSuccess: {
358
- type: PropType<() => void>;
359
- default: undefined;
360
- };
361
- onError: {
362
- type: PropType<(error: Error) => void>;
363
- default: undefined;
364
- };
365
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
366
- [key: string]: any;
367
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
368
- [key: string]: any;
369
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("success" | "error")[], "success" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
370
- onSuccess: {
371
- type: PropType<() => void>;
372
- default: undefined;
373
- };
374
- onError: {
375
- type: PropType<(error: Error) => void>;
376
- default: undefined;
377
- };
361
+ declare const SignIn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
362
+ onSuccess: {
363
+ type: PropType<() => void>;
364
+ default: undefined;
365
+ };
366
+ onError: {
367
+ type: PropType<(error: Error) => void>;
368
+ default: undefined;
369
+ };
370
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
371
+ [key: string]: any;
372
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
373
+ [key: string]: any;
374
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
375
+ onSuccess: {
376
+ type: PropType<() => void>;
377
+ default: undefined;
378
+ };
379
+ onError: {
380
+ type: PropType<(error: Error) => void>;
381
+ default: undefined;
382
+ };
378
383
  }>> & Readonly<{
379
- onSuccess?: ((...args: any[]) => any) | undefined;
380
- onError?: ((...args: any[]) => any) | undefined;
384
+ onError?: ((...args: any[]) => any) | undefined;
385
+ onSuccess?: ((...args: any[]) => any) | undefined;
381
386
  }>, {
382
- onSuccess: () => void;
383
- onError: (error: Error) => void;
384
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
385
-
386
- type SupportedOAuthProvider = 'github' | 'google' | 'microsoft';
387
+ onError: (error: Error) => void;
388
+ onSuccess: () => void;
389
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
390
+ //#endregion
391
+ //#region src/components/SignUp.d.ts
392
+ type SupportedOAuthProvider$1 = 'github' | 'google' | 'microsoft';
387
393
  interface SignUpSlotProps {
388
- email: string;
389
- password: string;
390
- error: string | null;
391
- isSubmitting: boolean;
392
- updateEmail: (value: string) => void;
393
- updatePassword: (value: string) => void;
394
- submit: () => Promise<void>;
394
+ email: string;
395
+ password: string;
396
+ error: string | null;
397
+ isSubmitting: boolean;
398
+ updateEmail: (value: string) => void;
399
+ updatePassword: (value: string) => void;
400
+ submit: () => Promise<void>;
395
401
  }
396
- declare const SignUp: vue.DefineComponent<vue.ExtractPropTypes<{
397
- onSuccess: {
398
- type: PropType<() => void>;
399
- default: undefined;
400
- };
401
- onError: {
402
- type: PropType<(error: Error) => void>;
403
- default: undefined;
404
- };
405
- /** Organization slug for tenant context */
406
- orgSlug: {
407
- type: StringConstructor;
408
- default: undefined;
409
- };
410
- /** Service slug for tenant attribution (used with orgSlug) */
411
- serviceSlug: {
412
- type: StringConstructor;
413
- default: undefined;
414
- };
415
- /** List of OAuth providers to display buttons for */
416
- providers: {
417
- type: PropType<SupportedOAuthProvider[] | false>;
418
- default: boolean;
419
- };
420
- /** Show divider between OAuth and email form */
421
- showDivider: {
422
- type: BooleanConstructor;
423
- default: boolean;
424
- };
425
- /** Show sign in link */
426
- showSignIn: {
427
- type: BooleanConstructor;
428
- default: boolean;
429
- };
430
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
431
- [key: string]: any;
432
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
433
- [key: string]: any;
434
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("success" | "error")[], "success" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
435
- onSuccess: {
436
- type: PropType<() => void>;
437
- default: undefined;
438
- };
439
- onError: {
440
- type: PropType<(error: Error) => void>;
441
- default: undefined;
442
- };
443
- /** Organization slug for tenant context */
444
- orgSlug: {
445
- type: StringConstructor;
446
- default: undefined;
447
- };
448
- /** Service slug for tenant attribution (used with orgSlug) */
449
- serviceSlug: {
450
- type: StringConstructor;
451
- default: undefined;
452
- };
453
- /** List of OAuth providers to display buttons for */
454
- providers: {
455
- type: PropType<SupportedOAuthProvider[] | false>;
456
- default: boolean;
457
- };
458
- /** Show divider between OAuth and email form */
459
- showDivider: {
460
- type: BooleanConstructor;
461
- default: boolean;
462
- };
463
- /** Show sign in link */
464
- showSignIn: {
465
- type: BooleanConstructor;
466
- default: boolean;
467
- };
402
+ declare const SignUp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
403
+ onSuccess: {
404
+ type: PropType<() => void>;
405
+ default: undefined;
406
+ };
407
+ onError: {
408
+ type: PropType<(error: Error) => void>;
409
+ default: undefined;
410
+ }; /** Organization slug for tenant context */
411
+ orgSlug: {
412
+ type: StringConstructor;
413
+ default: undefined;
414
+ }; /** Service slug for tenant attribution (used with orgSlug) */
415
+ serviceSlug: {
416
+ type: StringConstructor;
417
+ default: undefined;
418
+ }; /** List of OAuth providers to display buttons for */
419
+ providers: {
420
+ type: PropType<SupportedOAuthProvider$1[] | false>;
421
+ default: boolean;
422
+ }; /** Show divider between OAuth and email form */
423
+ showDivider: {
424
+ type: BooleanConstructor;
425
+ default: boolean;
426
+ }; /** Show sign in link */
427
+ showSignIn: {
428
+ type: BooleanConstructor;
429
+ default: boolean;
430
+ };
431
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
432
+ [key: string]: any;
433
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
434
+ [key: string]: any;
435
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
436
+ onSuccess: {
437
+ type: PropType<() => void>;
438
+ default: undefined;
439
+ };
440
+ onError: {
441
+ type: PropType<(error: Error) => void>;
442
+ default: undefined;
443
+ }; /** Organization slug for tenant context */
444
+ orgSlug: {
445
+ type: StringConstructor;
446
+ default: undefined;
447
+ }; /** Service slug for tenant attribution (used with orgSlug) */
448
+ serviceSlug: {
449
+ type: StringConstructor;
450
+ default: undefined;
451
+ }; /** List of OAuth providers to display buttons for */
452
+ providers: {
453
+ type: PropType<SupportedOAuthProvider$1[] | false>;
454
+ default: boolean;
455
+ }; /** Show divider between OAuth and email form */
456
+ showDivider: {
457
+ type: BooleanConstructor;
458
+ default: boolean;
459
+ }; /** Show sign in link */
460
+ showSignIn: {
461
+ type: BooleanConstructor;
462
+ default: boolean;
463
+ };
468
464
  }>> & Readonly<{
469
- onSuccess?: ((...args: any[]) => any) | undefined;
470
- onError?: ((...args: any[]) => any) | undefined;
465
+ onError?: ((...args: any[]) => any) | undefined;
466
+ onSuccess?: ((...args: any[]) => any) | undefined;
471
467
  }>, {
472
- onSuccess: () => void;
473
- onError: (error: Error) => void;
474
- orgSlug: string;
475
- serviceSlug: string;
476
- providers: false | SupportedOAuthProvider[];
477
- showDivider: boolean;
478
- showSignIn: boolean;
479
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
480
-
468
+ onError: (error: Error) => void;
469
+ onSuccess: () => void;
470
+ orgSlug: string;
471
+ serviceSlug: string;
472
+ providers: false | SupportedOAuthProvider$1[];
473
+ showDivider: boolean;
474
+ showSignIn: boolean;
475
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
476
+ //#endregion
477
+ //#region src/components/OrganizationSwitcher.d.ts
481
478
  interface OrganizationSwitcherSlotProps {
482
- currentOrganization: OrganizationResponse | null;
483
- organizations: OrganizationResponse[];
484
- isSwitching: boolean;
485
- switchTo: (slug: string) => Promise<void>;
479
+ currentOrganization: OrganizationResponse$1 | null;
480
+ organizations: OrganizationResponse$1[];
481
+ isSwitching: boolean;
482
+ switchTo: (slug: string) => Promise<void>;
486
483
  }
487
- declare const OrganizationSwitcher: vue.DefineComponent<vue.ExtractPropTypes<{
488
- onSwitch: {
489
- type: PropType<(org: OrganizationResponse) => void>;
490
- default: undefined;
491
- };
492
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
493
- [key: string]: any;
494
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
495
- [key: string]: any;
496
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "switch"[], "switch", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
497
- onSwitch: {
498
- type: PropType<(org: OrganizationResponse) => void>;
499
- default: undefined;
500
- };
484
+ declare const OrganizationSwitcher: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
485
+ onSwitch: {
486
+ type: PropType<(org: OrganizationResponse$1) => void>;
487
+ default: undefined;
488
+ };
489
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
490
+ [key: string]: any;
491
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
492
+ [key: string]: any;
493
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "switch"[], "switch", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
494
+ onSwitch: {
495
+ type: PropType<(org: OrganizationResponse$1) => void>;
496
+ default: undefined;
497
+ };
501
498
  }>> & Readonly<{
502
- onSwitch?: ((...args: any[]) => any) | undefined;
499
+ onSwitch?: ((...args: any[]) => any) | undefined;
503
500
  }>, {
504
- onSwitch: (org: OrganizationResponse) => void;
505
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
506
-
501
+ onSwitch: (org: OrganizationResponse$1) => void;
502
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
503
+ //#endregion
504
+ //#region src/components/UserButton.d.ts
507
505
  interface UserButtonSlotProps {
508
- user: ReturnType<typeof useUser>['user']['value'];
509
- isLoading: boolean;
510
- isLoggingOut: boolean;
511
- logout: () => Promise<void>;
506
+ user: ReturnType<typeof useUser>['user']['value'];
507
+ isLoading: boolean;
508
+ isLoggingOut: boolean;
509
+ logout: () => Promise<void>;
512
510
  }
513
- declare const UserButton: vue.DefineComponent<vue.ExtractPropTypes<{
514
- onLogout: {
515
- type: PropType<() => void>;
516
- default: undefined;
517
- };
518
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
519
- [key: string]: any;
520
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
521
- [key: string]: any;
522
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "logout"[], "logout", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
523
- onLogout: {
524
- type: PropType<() => void>;
525
- default: undefined;
526
- };
511
+ declare const UserButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
512
+ onLogout: {
513
+ type: PropType<() => void>;
514
+ default: undefined;
515
+ };
516
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
517
+ [key: string]: any;
518
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
519
+ [key: string]: any;
520
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "logout"[], "logout", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
521
+ onLogout: {
522
+ type: PropType<() => void>;
523
+ default: undefined;
524
+ };
527
525
  }>> & Readonly<{
528
- onLogout?: ((...args: any[]) => any) | undefined;
526
+ onLogout?: ((...args: any[]) => any) | undefined;
529
527
  }>, {
530
- onLogout: () => void;
531
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
532
-
533
- declare const Protect: vue.DefineComponent<vue.ExtractPropTypes<{
534
- permission: {
535
- type: StringConstructor;
536
- default: undefined;
537
- };
538
- permissions: {
539
- type: PropType<string[]>;
540
- default: undefined;
541
- };
542
- requireAll: {
543
- type: BooleanConstructor;
544
- default: boolean;
545
- };
546
- fallback: {
547
- type: PropType<VNode | (() => VNode)>;
548
- default: undefined;
549
- };
550
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
551
- [key: string]: any;
552
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
553
- permission: {
554
- type: StringConstructor;
555
- default: undefined;
556
- };
557
- permissions: {
558
- type: PropType<string[]>;
559
- default: undefined;
560
- };
561
- requireAll: {
562
- type: BooleanConstructor;
563
- default: boolean;
564
- };
565
- fallback: {
566
- type: PropType<VNode | (() => VNode)>;
567
- default: undefined;
568
- };
528
+ onLogout: () => void;
529
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
530
+ //#endregion
531
+ //#region src/components/Protect.d.ts
532
+ declare const Protect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
533
+ permission: {
534
+ type: StringConstructor;
535
+ default: undefined;
536
+ };
537
+ permissions: {
538
+ type: PropType<string[]>;
539
+ default: undefined;
540
+ };
541
+ requireAll: {
542
+ type: BooleanConstructor;
543
+ default: boolean;
544
+ };
545
+ fallback: {
546
+ type: PropType<VNode | (() => VNode)>;
547
+ default: undefined;
548
+ };
549
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
550
+ [key: string]: any;
551
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
552
+ permission: {
553
+ type: StringConstructor;
554
+ default: undefined;
555
+ };
556
+ permissions: {
557
+ type: PropType<string[]>;
558
+ default: undefined;
559
+ };
560
+ requireAll: {
561
+ type: BooleanConstructor;
562
+ default: boolean;
563
+ };
564
+ fallback: {
565
+ type: PropType<VNode | (() => VNode)>;
566
+ default: undefined;
567
+ };
569
568
  }>> & Readonly<{}>, {
570
- permissions: string[];
571
- permission: string;
572
- requireAll: boolean;
573
- fallback: VNode<vue.RendererNode, vue.RendererElement, {
574
- [key: string]: any;
575
- }> | (() => VNode);
576
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
577
-
569
+ permission: string;
570
+ permissions: string[];
571
+ requireAll: boolean;
572
+ fallback: VNode<import("vue").RendererNode, import("vue").RendererElement, {
573
+ [key: string]: any;
574
+ }> | (() => VNode);
575
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
576
+ //#endregion
577
+ //#region src/components/OAuthButton.d.ts
578
578
  interface OAuthButtonSlotProps {
579
- provider: SupportedOAuthProvider$1;
580
- providerName: string;
581
- isConfigured: boolean;
582
- disabled: boolean;
583
- handleClick: () => void;
579
+ provider: SupportedOAuthProvider;
580
+ providerName: string;
581
+ isConfigured: boolean;
582
+ disabled: boolean;
583
+ handleClick: () => void;
584
584
  }
585
585
  /**
586
586
  * OAuth login button for a specific provider.
@@ -600,34 +600,35 @@ interface OAuthButtonSlotProps {
600
600
  * </template>
601
601
  * ```
602
602
  */
603
- declare const OAuthButton: vue.DefineComponent<vue.ExtractPropTypes<{
604
- provider: {
605
- type: PropType<SupportedOAuthProvider$1>;
606
- required: true;
607
- };
608
- disabled: {
609
- type: BooleanConstructor;
610
- default: boolean;
611
- };
612
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
613
- [key: string]: any;
614
- }> | VNode<vue.RendererNode, vue.RendererElement, {
615
- [key: string]: any;
616
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "redirect"[], "redirect", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
617
- provider: {
618
- type: PropType<SupportedOAuthProvider$1>;
619
- required: true;
620
- };
621
- disabled: {
622
- type: BooleanConstructor;
623
- default: boolean;
624
- };
603
+ declare const OAuthButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
604
+ provider: {
605
+ type: PropType<SupportedOAuthProvider>;
606
+ required: true;
607
+ };
608
+ disabled: {
609
+ type: BooleanConstructor;
610
+ default: boolean;
611
+ };
612
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
613
+ [key: string]: any;
614
+ }> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
615
+ [key: string]: any;
616
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "redirect"[], "redirect", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
617
+ provider: {
618
+ type: PropType<SupportedOAuthProvider>;
619
+ required: true;
620
+ };
621
+ disabled: {
622
+ type: BooleanConstructor;
623
+ default: boolean;
624
+ };
625
625
  }>> & Readonly<{
626
- onRedirect?: ((...args: any[]) => any) | undefined;
626
+ onRedirect?: ((...args: any[]) => any) | undefined;
627
627
  }>, {
628
- disabled: boolean;
629
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
630
-
628
+ disabled: boolean;
629
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
630
+ //#endregion
631
+ //#region src/components/SignedIn.d.ts
631
632
  /**
632
633
  * Renders children only when the user is authenticated.
633
634
  * Use with SignedOut to create conditional UI based on auth state.
@@ -650,10 +651,11 @@ declare const OAuthButton: vue.DefineComponent<vue.ExtractPropTypes<{
650
651
  * </template>
651
652
  * ```
652
653
  */
653
- declare const SignedIn: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
654
- [key: string]: any;
655
- }>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
656
-
654
+ declare const SignedIn: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
655
+ [key: string]: any;
656
+ }>[] | null | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
657
+ //#endregion
658
+ //#region src/components/SignedOut.d.ts
657
659
  /**
658
660
  * Renders children only when the user is NOT authenticated.
659
661
  * Use with SignedIn to create conditional UI based on auth state.
@@ -676,10 +678,11 @@ declare const SignedIn: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode
676
678
  * </template>
677
679
  * ```
678
680
  */
679
- declare const SignedOut: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
680
- [key: string]: any;
681
- }>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
682
-
681
+ declare const SignedOut: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
682
+ [key: string]: any;
683
+ }>[] | null | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
684
+ //#endregion
685
+ //#region src/components/MagicLinkSignIn.d.ts
683
686
  /**
684
687
  * Passwordless sign-in via magic link (email).
685
688
  *
@@ -696,27 +699,28 @@ declare const SignedOut: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNod
696
699
  * </template>
697
700
  * ```
698
701
  */
699
- declare const MagicLinkSignIn: vue.DefineComponent<vue.ExtractPropTypes<{
700
- showPasswordSignIn: {
701
- type: BooleanConstructor;
702
- default: boolean;
703
- };
704
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
705
- [key: string]: any;
706
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
707
- [key: string]: any;
708
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("success" | "error")[], "success" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
709
- showPasswordSignIn: {
710
- type: BooleanConstructor;
711
- default: boolean;
712
- };
702
+ declare const MagicLinkSignIn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
703
+ showPasswordSignIn: {
704
+ type: BooleanConstructor;
705
+ default: boolean;
706
+ };
707
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
708
+ [key: string]: any;
709
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
710
+ [key: string]: any;
711
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
712
+ showPasswordSignIn: {
713
+ type: BooleanConstructor;
714
+ default: boolean;
715
+ };
713
716
  }>> & Readonly<{
714
- onSuccess?: ((...args: any[]) => any) | undefined;
715
- onError?: ((...args: any[]) => any) | undefined;
717
+ onError?: ((...args: any[]) => any) | undefined;
718
+ onSuccess?: ((...args: any[]) => any) | undefined;
716
719
  }>, {
717
- showPasswordSignIn: boolean;
718
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
719
-
720
+ showPasswordSignIn: boolean;
721
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
722
+ //#endregion
723
+ //#region src/components/PasskeySignIn.d.ts
720
724
  /**
721
725
  * Passkey (WebAuthn) sign-in component.
722
726
  *
@@ -734,94 +738,95 @@ declare const MagicLinkSignIn: vue.DefineComponent<vue.ExtractPropTypes<{
734
738
  * </template>
735
739
  * ```
736
740
  */
737
- declare const PasskeySignIn: vue.DefineComponent<vue.ExtractPropTypes<{
738
- showPasswordSignIn: {
739
- type: BooleanConstructor;
740
- default: boolean;
741
- };
742
- orgSlug: {
743
- type: StringConstructor;
744
- default: undefined;
745
- };
746
- serviceSlug: {
747
- type: StringConstructor;
748
- default: undefined;
749
- };
750
- redirectUri: {
751
- type: StringConstructor;
752
- default: undefined;
753
- };
754
- state: {
755
- type: StringConstructor;
756
- default: undefined;
757
- };
758
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
759
- [key: string]: any;
760
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
761
- [key: string]: any;
762
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("success" | "error")[], "success" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
763
- showPasswordSignIn: {
764
- type: BooleanConstructor;
765
- default: boolean;
766
- };
767
- orgSlug: {
768
- type: StringConstructor;
769
- default: undefined;
770
- };
771
- serviceSlug: {
772
- type: StringConstructor;
773
- default: undefined;
774
- };
775
- redirectUri: {
776
- type: StringConstructor;
777
- default: undefined;
778
- };
779
- state: {
780
- type: StringConstructor;
781
- default: undefined;
782
- };
741
+ declare const PasskeySignIn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
742
+ showPasswordSignIn: {
743
+ type: BooleanConstructor;
744
+ default: boolean;
745
+ };
746
+ orgSlug: {
747
+ type: StringConstructor;
748
+ default: undefined;
749
+ };
750
+ serviceSlug: {
751
+ type: StringConstructor;
752
+ default: undefined;
753
+ };
754
+ redirectUri: {
755
+ type: StringConstructor;
756
+ default: undefined;
757
+ };
758
+ state: {
759
+ type: StringConstructor;
760
+ default: undefined;
761
+ };
762
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
763
+ [key: string]: any;
764
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
765
+ [key: string]: any;
766
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
767
+ showPasswordSignIn: {
768
+ type: BooleanConstructor;
769
+ default: boolean;
770
+ };
771
+ orgSlug: {
772
+ type: StringConstructor;
773
+ default: undefined;
774
+ };
775
+ serviceSlug: {
776
+ type: StringConstructor;
777
+ default: undefined;
778
+ };
779
+ redirectUri: {
780
+ type: StringConstructor;
781
+ default: undefined;
782
+ };
783
+ state: {
784
+ type: StringConstructor;
785
+ default: undefined;
786
+ };
783
787
  }>> & Readonly<{
784
- onSuccess?: ((...args: any[]) => any) | undefined;
785
- onError?: ((...args: any[]) => any) | undefined;
788
+ onError?: ((...args: any[]) => any) | undefined;
789
+ onSuccess?: ((...args: any[]) => any) | undefined;
786
790
  }>, {
787
- state: string;
788
- redirectUri: string;
789
- orgSlug: string;
790
- serviceSlug: string;
791
- showPasswordSignIn: boolean;
792
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
793
-
791
+ redirectUri: string;
792
+ orgSlug: string;
793
+ serviceSlug: string;
794
+ showPasswordSignIn: boolean;
795
+ state: string;
796
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
797
+ //#endregion
798
+ //#region src/components/Callback.d.ts
794
799
  interface CallbackSlotProps {
795
- error: string | null;
800
+ error: string | null;
796
801
  }
797
- declare const Callback: vue.DefineComponent<vue.ExtractPropTypes<{
798
- onSuccess: {
799
- type: PropType<() => void>;
800
- default: undefined;
801
- };
802
- onError: {
803
- type: PropType<(error: Error) => void>;
804
- default: undefined;
805
- };
806
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
807
- [key: string]: any;
808
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
809
- [key: string]: any;
810
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("success" | "error")[], "success" | "error", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
811
- onSuccess: {
812
- type: PropType<() => void>;
813
- default: undefined;
814
- };
815
- onError: {
816
- type: PropType<(error: Error) => void>;
817
- default: undefined;
818
- };
802
+ declare const Callback: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
803
+ onSuccess: {
804
+ type: PropType<() => void>;
805
+ default: undefined;
806
+ };
807
+ onError: {
808
+ type: PropType<(error: Error) => void>;
809
+ default: undefined;
810
+ };
811
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
812
+ [key: string]: any;
813
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
814
+ [key: string]: any;
815
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
816
+ onSuccess: {
817
+ type: PropType<() => void>;
818
+ default: undefined;
819
+ };
820
+ onError: {
821
+ type: PropType<(error: Error) => void>;
822
+ default: undefined;
823
+ };
819
824
  }>> & Readonly<{
820
- onSuccess?: ((...args: any[]) => any) | undefined;
821
- onError?: ((...args: any[]) => any) | undefined;
825
+ onError?: ((...args: any[]) => any) | undefined;
826
+ onSuccess?: ((...args: any[]) => any) | undefined;
822
827
  }>, {
823
- onSuccess: () => void;
824
- onError: (error: Error) => void;
825
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
826
-
827
- export { AUTH_OS_INJECTION_KEY, type AppearanceOptions, type AppearanceVariables, type AuthOSContext, type AuthOSPluginOptions, AuthOSProvider, type AuthOSState, Callback, type CallbackSlotProps, MagicLinkSignIn, OAuthButton, type OAuthButtonSlotProps, OrganizationSwitcher, type OrganizationSwitcherSlotProps, PasskeySignIn, Protect, SignIn, type SignInSlotProps, SignUp, type SignUpSlotProps, SignedIn, SignedOut, type SupportedOAuthProvider$1 as SupportedOAuthProvider, UserButton, type UserButtonSlotProps, createAuthOS, useAllPermissions, useAnyPermission, useAuthOS, useOrganization, usePermission, useUser };
828
+ onError: (error: Error) => void;
829
+ onSuccess: () => void;
830
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
831
+ //#endregion
832
+ export { AUTH_OS_INJECTION_KEY, type AppearanceOptions, type AppearanceVariables, AuthErrorCodes, type AuthOSContext, type AuthOSPluginOptions, AuthOSProvider, type AuthOSState, BrowserStorage, Callback, type CallbackSlotProps, MagicLinkSignIn, MemoryStorage, OAuthButton, type OAuthButtonSlotProps, type OrganizationResponse, OrganizationSwitcher, type OrganizationSwitcherSlotProps, PasskeySignIn, Protect, SignIn, type SignInSlotProps, SignUp, type SignUpSlotProps, SignedIn, SignedOut, SsoApiError, type SsoClient, type SupportedOAuthProvider, type TokenStorage, UserButton, type UserButtonSlotProps, type UserProfile, createAuthOS, useAllPermissions, useAnyPermission, useAuthOS, useOrganization, usePermission, useUser };