@kya-os/consent 0.1.3 → 0.1.4
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/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +2 -2
- package/dist/bundle/inline.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +11 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +27 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +26 -1
- package/dist/consent.min.js +20 -20
- package/dist/schemas/api.schemas.d.ts +110 -110
- package/dist/schemas/config.schemas.d.ts +116 -116
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/package.json +1 -1
|
@@ -23,21 +23,21 @@ export declare const CredentialsConfigSchema: z.ZodObject<{
|
|
|
23
23
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
showForgotPassword?: boolean | undefined;
|
|
27
|
+
forgotPasswordUrl?: string | undefined;
|
|
26
28
|
usernameLabel?: string | undefined;
|
|
27
29
|
usernamePlaceholder?: string | undefined;
|
|
28
30
|
passwordLabel?: string | undefined;
|
|
29
31
|
passwordPlaceholder?: string | undefined;
|
|
30
32
|
showRememberMe?: boolean | undefined;
|
|
33
|
+
}, {
|
|
31
34
|
showForgotPassword?: boolean | undefined;
|
|
32
35
|
forgotPasswordUrl?: string | undefined;
|
|
33
|
-
}, {
|
|
34
36
|
usernameLabel?: string | undefined;
|
|
35
37
|
usernamePlaceholder?: string | undefined;
|
|
36
38
|
passwordLabel?: string | undefined;
|
|
37
39
|
passwordPlaceholder?: string | undefined;
|
|
38
40
|
showRememberMe?: boolean | undefined;
|
|
39
|
-
showForgotPassword?: boolean | undefined;
|
|
40
|
-
forgotPasswordUrl?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type CredentialsConfigSchemaType = z.infer<typeof CredentialsConfigSchema>;
|
|
43
43
|
/**
|
|
@@ -67,17 +67,17 @@ export declare const MagicLinkConfigSchema: z.ZodObject<{
|
|
|
67
67
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
68
68
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
resendCooldown?: number | undefined;
|
|
70
71
|
buttonText?: string | undefined;
|
|
71
72
|
enabled?: boolean | undefined;
|
|
72
73
|
emailLabel?: string | undefined;
|
|
73
74
|
emailPlaceholder?: string | undefined;
|
|
74
|
-
resendCooldown?: number | undefined;
|
|
75
75
|
}, {
|
|
76
|
+
resendCooldown?: number | undefined;
|
|
76
77
|
buttonText?: string | undefined;
|
|
77
78
|
enabled?: boolean | undefined;
|
|
78
79
|
emailLabel?: string | undefined;
|
|
79
80
|
emailPlaceholder?: string | undefined;
|
|
80
|
-
resendCooldown?: number | undefined;
|
|
81
81
|
}>;
|
|
82
82
|
export type MagicLinkConfigSchemaType = z.infer<typeof MagicLinkConfigSchema>;
|
|
83
83
|
/**
|
|
@@ -91,19 +91,19 @@ export declare const OTPConfigSchema: z.ZodObject<{
|
|
|
91
91
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
92
92
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
enabled?: boolean | undefined;
|
|
95
94
|
resendCooldown?: number | undefined;
|
|
95
|
+
enabled?: boolean | undefined;
|
|
96
96
|
phoneLabel?: string | undefined;
|
|
97
97
|
phonePlaceholder?: string | undefined;
|
|
98
98
|
instructions?: string | undefined;
|
|
99
|
-
digits?:
|
|
99
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
100
100
|
}, {
|
|
101
|
-
enabled?: boolean | undefined;
|
|
102
101
|
resendCooldown?: number | undefined;
|
|
102
|
+
enabled?: boolean | undefined;
|
|
103
103
|
phoneLabel?: string | undefined;
|
|
104
104
|
phonePlaceholder?: string | undefined;
|
|
105
105
|
instructions?: string | undefined;
|
|
106
|
-
digits?:
|
|
106
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
export type OTPConfigSchemaType = z.infer<typeof OTPConfigSchema>;
|
|
109
109
|
/**
|
|
@@ -182,21 +182,21 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
182
182
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
183
183
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
showForgotPassword?: boolean | undefined;
|
|
186
|
+
forgotPasswordUrl?: string | undefined;
|
|
185
187
|
usernameLabel?: string | undefined;
|
|
186
188
|
usernamePlaceholder?: string | undefined;
|
|
187
189
|
passwordLabel?: string | undefined;
|
|
188
190
|
passwordPlaceholder?: string | undefined;
|
|
189
191
|
showRememberMe?: boolean | undefined;
|
|
192
|
+
}, {
|
|
190
193
|
showForgotPassword?: boolean | undefined;
|
|
191
194
|
forgotPasswordUrl?: string | undefined;
|
|
192
|
-
}, {
|
|
193
195
|
usernameLabel?: string | undefined;
|
|
194
196
|
usernamePlaceholder?: string | undefined;
|
|
195
197
|
passwordLabel?: string | undefined;
|
|
196
198
|
passwordPlaceholder?: string | undefined;
|
|
197
199
|
showRememberMe?: boolean | undefined;
|
|
198
|
-
showForgotPassword?: boolean | undefined;
|
|
199
|
-
forgotPasswordUrl?: string | undefined;
|
|
200
200
|
}>>;
|
|
201
201
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
202
202
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -218,17 +218,17 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
218
218
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
219
219
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
resendCooldown?: number | undefined;
|
|
221
222
|
buttonText?: string | undefined;
|
|
222
223
|
enabled?: boolean | undefined;
|
|
223
224
|
emailLabel?: string | undefined;
|
|
224
225
|
emailPlaceholder?: string | undefined;
|
|
225
|
-
resendCooldown?: number | undefined;
|
|
226
226
|
}, {
|
|
227
|
+
resendCooldown?: number | undefined;
|
|
227
228
|
buttonText?: string | undefined;
|
|
228
229
|
enabled?: boolean | undefined;
|
|
229
230
|
emailLabel?: string | undefined;
|
|
230
231
|
emailPlaceholder?: string | undefined;
|
|
231
|
-
resendCooldown?: number | undefined;
|
|
232
232
|
}>>;
|
|
233
233
|
otp: z.ZodOptional<z.ZodObject<{
|
|
234
234
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -238,19 +238,19 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
238
238
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
239
239
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
enabled?: boolean | undefined;
|
|
242
241
|
resendCooldown?: number | undefined;
|
|
242
|
+
enabled?: boolean | undefined;
|
|
243
243
|
phoneLabel?: string | undefined;
|
|
244
244
|
phonePlaceholder?: string | undefined;
|
|
245
245
|
instructions?: string | undefined;
|
|
246
|
-
digits?:
|
|
246
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
247
247
|
}, {
|
|
248
|
-
enabled?: boolean | undefined;
|
|
249
248
|
resendCooldown?: number | undefined;
|
|
249
|
+
enabled?: boolean | undefined;
|
|
250
250
|
phoneLabel?: string | undefined;
|
|
251
251
|
phonePlaceholder?: string | undefined;
|
|
252
252
|
instructions?: string | undefined;
|
|
253
|
-
digits?:
|
|
253
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
254
254
|
}>>;
|
|
255
255
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
256
256
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -305,13 +305,13 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
305
305
|
}>>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
307
|
credentials?: {
|
|
308
|
+
showForgotPassword?: boolean | undefined;
|
|
309
|
+
forgotPasswordUrl?: string | undefined;
|
|
308
310
|
usernameLabel?: string | undefined;
|
|
309
311
|
usernamePlaceholder?: string | undefined;
|
|
310
312
|
passwordLabel?: string | undefined;
|
|
311
313
|
passwordPlaceholder?: string | undefined;
|
|
312
314
|
showRememberMe?: boolean | undefined;
|
|
313
|
-
showForgotPassword?: boolean | undefined;
|
|
314
|
-
forgotPasswordUrl?: string | undefined;
|
|
315
315
|
} | undefined;
|
|
316
316
|
oauth?: {
|
|
317
317
|
providerId?: string | undefined;
|
|
@@ -319,12 +319,12 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
319
319
|
buttonText?: string | undefined;
|
|
320
320
|
} | undefined;
|
|
321
321
|
otp?: {
|
|
322
|
-
enabled?: boolean | undefined;
|
|
323
322
|
resendCooldown?: number | undefined;
|
|
323
|
+
enabled?: boolean | undefined;
|
|
324
324
|
phoneLabel?: string | undefined;
|
|
325
325
|
phonePlaceholder?: string | undefined;
|
|
326
326
|
instructions?: string | undefined;
|
|
327
|
-
digits?:
|
|
327
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
328
328
|
} | undefined;
|
|
329
329
|
passkey?: {
|
|
330
330
|
buttonText?: string | undefined;
|
|
@@ -340,11 +340,11 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
340
340
|
estimatedTime?: string | undefined;
|
|
341
341
|
} | undefined;
|
|
342
342
|
magicLink?: {
|
|
343
|
+
resendCooldown?: number | undefined;
|
|
343
344
|
buttonText?: string | undefined;
|
|
344
345
|
enabled?: boolean | undefined;
|
|
345
346
|
emailLabel?: string | undefined;
|
|
346
347
|
emailPlaceholder?: string | undefined;
|
|
347
|
-
resendCooldown?: number | undefined;
|
|
348
348
|
} | undefined;
|
|
349
349
|
qrCode?: {
|
|
350
350
|
enabled?: boolean | undefined;
|
|
@@ -354,13 +354,13 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
354
354
|
} | undefined;
|
|
355
355
|
}, {
|
|
356
356
|
credentials?: {
|
|
357
|
+
showForgotPassword?: boolean | undefined;
|
|
358
|
+
forgotPasswordUrl?: string | undefined;
|
|
357
359
|
usernameLabel?: string | undefined;
|
|
358
360
|
usernamePlaceholder?: string | undefined;
|
|
359
361
|
passwordLabel?: string | undefined;
|
|
360
362
|
passwordPlaceholder?: string | undefined;
|
|
361
363
|
showRememberMe?: boolean | undefined;
|
|
362
|
-
showForgotPassword?: boolean | undefined;
|
|
363
|
-
forgotPasswordUrl?: string | undefined;
|
|
364
364
|
} | undefined;
|
|
365
365
|
oauth?: {
|
|
366
366
|
providerId?: string | undefined;
|
|
@@ -368,12 +368,12 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
368
368
|
buttonText?: string | undefined;
|
|
369
369
|
} | undefined;
|
|
370
370
|
otp?: {
|
|
371
|
-
enabled?: boolean | undefined;
|
|
372
371
|
resendCooldown?: number | undefined;
|
|
372
|
+
enabled?: boolean | undefined;
|
|
373
373
|
phoneLabel?: string | undefined;
|
|
374
374
|
phonePlaceholder?: string | undefined;
|
|
375
375
|
instructions?: string | undefined;
|
|
376
|
-
digits?:
|
|
376
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
377
377
|
} | undefined;
|
|
378
378
|
passkey?: {
|
|
379
379
|
buttonText?: string | undefined;
|
|
@@ -389,11 +389,11 @@ export declare const ModeConfigsSchema: z.ZodObject<{
|
|
|
389
389
|
estimatedTime?: string | undefined;
|
|
390
390
|
} | undefined;
|
|
391
391
|
magicLink?: {
|
|
392
|
+
resendCooldown?: number | undefined;
|
|
392
393
|
buttonText?: string | undefined;
|
|
393
394
|
enabled?: boolean | undefined;
|
|
394
395
|
emailLabel?: string | undefined;
|
|
395
396
|
emailPlaceholder?: string | undefined;
|
|
396
|
-
resendCooldown?: number | undefined;
|
|
397
397
|
} | undefined;
|
|
398
398
|
qrCode?: {
|
|
399
399
|
enabled?: boolean | undefined;
|