@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 +565 -560
- package/dist/index.d.ts +565 -560
- package/dist/index.js +1285 -1222
- package/dist/index.mjs +1262 -1179
- package/dist/nuxt.d.mts +29 -29
- package/dist/nuxt.d.ts +29 -29
- package/dist/nuxt.js +57 -11354
- package/dist/nuxt.mjs +55 -10080
- package/dist/useAuthOS-DEOIm_-6.mjs +47 -0
- package/dist/useAuthOS-PBWjiXpo.js +58 -0
- package/package.json +6 -6
- package/dist/chokidar-B7NTEAA6.mjs +0 -1730
- package/dist/chunk-5OCDR7QV.mjs +0 -68
- package/dist/chunk-6DZX6EAA.mjs +0 -33
- package/dist/chunk-CD2MZG7D.mjs +0 -103
- package/dist/chunk-I3MWU7CX.mjs +0 -405
- package/dist/chunk-IUIUWQYL.mjs +0 -700
- package/dist/chunk-IYGVWWRW.mjs +0 -448
- package/dist/chunk-JN6U6SKP.mjs +0 -973
- package/dist/chunk-T7GBCGRZ.mjs +0 -734
- package/dist/chunk-VVJVQ4JO.mjs +0 -15
- package/dist/chunk-YED35B36.mjs +0 -33
- package/dist/chunk-ZHH4WLMR.mjs +0 -18
- package/dist/dist-N5W7B4HY.mjs +0 -3
- package/dist/dist-XLLRDJPJ.mjs +0 -505
- package/dist/json5-XBNSJCDA.mjs +0 -3
- package/dist/jsonc-H6LEPRFY.mjs +0 -3
- package/dist/nypm-5BYDGLH7.mjs +0 -3
- package/dist/prompt-WWTBWNTY.mjs +0 -751
- package/dist/tar-A5SPYDDD.mjs +0 -3289
- package/dist/toml-QZCHCWUM.mjs +0 -3
- package/dist/utils-YSWQHENC.mjs +0 -94
- package/dist/yaml-6OXYI3W7.mjs +0 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
88
|
-
|
|
85
|
+
/** CSS variable overrides */
|
|
86
|
+
variables?: AppearanceVariables;
|
|
89
87
|
}
|
|
90
88
|
interface AuthOSPluginOptions {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
|
162
|
-
|
|
159
|
+
type SupportedOAuthProvider = 'github' | 'google' | 'microsoft';
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/plugin.d.ts
|
|
163
162
|
declare function createAuthOS(options: AuthOSPluginOptions): {
|
|
164
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
192
|
-
|
|
192
|
+
user: import("vue").Ref<null, null>;
|
|
193
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
193
194
|
} | {
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
366
|
-
|
|
367
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
368
|
-
|
|
369
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
-
|
|
380
|
-
|
|
384
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
385
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
381
386
|
}>, {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
385
|
-
|
|
386
|
-
|
|
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
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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
|
-
|
|
470
|
-
|
|
465
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
466
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
471
467
|
}>, {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
493
|
-
|
|
494
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
495
|
-
|
|
496
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "switch"[], "switch", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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
|
-
|
|
499
|
+
onSwitch?: ((...args: any[]) => any) | undefined;
|
|
503
500
|
}>, {
|
|
504
|
-
|
|
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
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
519
|
-
|
|
520
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
521
|
-
|
|
522
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "logout"[], "logout", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
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
|
-
|
|
526
|
+
onLogout?: ((...args: any[]) => any) | undefined;
|
|
529
527
|
}>, {
|
|
530
|
-
|
|
531
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
613
|
-
|
|
614
|
-
}> | VNode<vue.RendererNode, vue.RendererElement, {
|
|
615
|
-
|
|
616
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "redirect"[], "redirect", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
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
|
-
|
|
626
|
+
onRedirect?: ((...args: any[]) => any) | undefined;
|
|
627
627
|
}>, {
|
|
628
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
705
|
-
|
|
706
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
707
|
-
|
|
708
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
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
|
-
|
|
715
|
-
|
|
717
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
718
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
716
719
|
}>, {
|
|
717
|
-
|
|
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
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
759
|
-
|
|
760
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
761
|
-
|
|
762
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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
|
-
|
|
785
|
-
|
|
788
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
789
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
786
790
|
}>, {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
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
|
-
|
|
800
|
+
error: string | null;
|
|
796
801
|
}
|
|
797
|
-
declare const Callback: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
807
|
-
|
|
808
|
-
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
809
|
-
|
|
810
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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
|
-
|
|
821
|
-
|
|
825
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
826
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
822
827
|
}>, {
|
|
823
|
-
|
|
824
|
-
|
|
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
|
|
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 };
|