@kya-os/consent 0.1.13 → 0.1.15
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/bundle/shell.d.ts +5 -0
- package/dist/bundle/shell.d.ts.map +1 -1
- package/dist/bundle/shell.js +3 -1
- package/dist/bundle/shell.js.map +1 -1
- package/dist/cjs/bundle/index.js +57 -0
- package/dist/cjs/bundle/index.js.map +1 -0
- package/dist/cjs/bundle/inline.js +22 -0
- package/dist/cjs/bundle/inline.js.map +1 -0
- package/dist/cjs/bundle/shell.js +291 -0
- package/dist/cjs/bundle/shell.js.map +1 -0
- package/dist/cjs/components/consent-button.js +180 -0
- package/dist/cjs/components/consent-button.js.map +1 -0
- package/dist/cjs/components/consent-checkbox.js +223 -0
- package/dist/cjs/components/consent-checkbox.js.map +1 -0
- package/dist/cjs/components/consent-input.js +335 -0
- package/dist/cjs/components/consent-input.js.map +1 -0
- package/dist/cjs/components/consent-oauth-button.js +392 -0
- package/dist/cjs/components/consent-oauth-button.js.map +1 -0
- package/dist/cjs/components/consent-otp-input.js +388 -0
- package/dist/cjs/components/consent-otp-input.js.map +1 -0
- package/dist/cjs/components/consent-permissions.js +433 -0
- package/dist/cjs/components/consent-permissions.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +234 -0
- package/dist/cjs/components/consent-shell.js.map +1 -0
- package/dist/cjs/components/consent-terms.js +287 -0
- package/dist/cjs/components/consent-terms.js.map +1 -0
- package/dist/cjs/components/index.js +37 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/components/mcp-consent.js +1034 -0
- package/dist/cjs/components/mcp-consent.js.map +1 -0
- package/dist/cjs/constants/auth-modes.js +128 -0
- package/dist/cjs/constants/auth-modes.js.map +1 -0
- package/dist/cjs/constants/colors.js +40 -0
- package/dist/cjs/constants/colors.js.map +1 -0
- package/dist/cjs/constants/defaults.js +146 -0
- package/dist/cjs/constants/defaults.js.map +1 -0
- package/dist/cjs/constants/index.js +40 -0
- package/dist/cjs/constants/index.js.map +1 -0
- package/dist/cjs/index.js +49 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/react/index.js +190 -0
- package/dist/cjs/react/index.js.map +1 -0
- package/dist/cjs/resolution/index.js +28 -0
- package/dist/cjs/resolution/index.js.map +1 -0
- package/dist/cjs/resolution/resolve-branding.js +159 -0
- package/dist/cjs/resolution/resolve-branding.js.map +1 -0
- package/dist/cjs/resolution/resolve-config.js +270 -0
- package/dist/cjs/resolution/resolve-config.js.map +1 -0
- package/dist/cjs/resolution/resolve-copy.js +136 -0
- package/dist/cjs/resolution/resolve-copy.js.map +1 -0
- package/dist/cjs/schemas/api.schemas.js +162 -0
- package/dist/cjs/schemas/api.schemas.js.map +1 -0
- package/dist/cjs/schemas/branding.schemas.js +57 -0
- package/dist/cjs/schemas/branding.schemas.js.map +1 -0
- package/dist/cjs/schemas/config.schemas.js +147 -0
- package/dist/cjs/schemas/config.schemas.js.map +1 -0
- package/dist/cjs/schemas/index.js +29 -0
- package/dist/cjs/schemas/index.js.map +1 -0
- package/dist/cjs/schemas/modes.schemas.js +107 -0
- package/dist/cjs/schemas/modes.schemas.js.map +1 -0
- package/dist/cjs/security/escape.js +206 -0
- package/dist/cjs/security/escape.js.map +1 -0
- package/dist/cjs/security/index.js +26 -0
- package/dist/cjs/security/index.js.map +1 -0
- package/dist/cjs/security/validators.js +210 -0
- package/dist/cjs/security/validators.js.map +1 -0
- package/dist/cjs/styles/css-variables.js +129 -0
- package/dist/cjs/styles/css-variables.js.map +1 -0
- package/dist/cjs/styles/index.js +28 -0
- package/dist/cjs/styles/index.js.map +1 -0
- package/dist/cjs/styles/stylesheet.js +204 -0
- package/dist/cjs/styles/stylesheet.js.map +1 -0
- package/dist/cjs/styles/tokens.js +183 -0
- package/dist/cjs/styles/tokens.js.map +1 -0
- package/dist/cjs/templates/base/base-template.js +282 -0
- package/dist/cjs/templates/base/base-template.js.map +1 -0
- package/dist/cjs/templates/base/components.js +295 -0
- package/dist/cjs/templates/base/components.js.map +1 -0
- package/dist/cjs/templates/base/index.js +26 -0
- package/dist/cjs/templates/base/index.js.map +1 -0
- package/dist/cjs/templates/index.js +34 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/modes/consent-only.template.js +74 -0
- package/dist/cjs/templates/modes/consent-only.template.js.map +1 -0
- package/dist/cjs/templates/modes/credentials.template.js +414 -0
- package/dist/cjs/templates/modes/credentials.template.js.map +1 -0
- package/dist/cjs/templates/modes/index.js +24 -0
- package/dist/cjs/templates/modes/index.js.map +1 -0
- package/dist/cjs/templates/modes/magic-link.template.js +196 -0
- package/dist/cjs/templates/modes/magic-link.template.js.map +1 -0
- package/dist/cjs/templates/modes/oauth.template.js +153 -0
- package/dist/cjs/templates/modes/oauth.template.js.map +1 -0
- package/dist/cjs/templates/modes/otp.template.js +316 -0
- package/dist/cjs/templates/modes/otp.template.js.map +1 -0
- package/dist/cjs/templates/modes/success.template.js +140 -0
- package/dist/cjs/templates/modes/success.template.js.map +1 -0
- package/dist/cjs/templates/registry.js +133 -0
- package/dist/cjs/templates/registry.js.map +1 -0
- package/dist/cjs/types/api.types.js +10 -0
- package/dist/cjs/types/api.types.js.map +1 -0
- package/dist/cjs/types/branding.types.js +10 -0
- package/dist/cjs/types/branding.types.js.map +1 -0
- package/dist/cjs/types/config.types.js +10 -0
- package/dist/cjs/types/config.types.js.map +1 -0
- package/dist/cjs/types/copy.types.js +10 -0
- package/dist/cjs/types/copy.types.js.map +1 -0
- package/dist/cjs/types/index.js +31 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/modes.types.js +140 -0
- package/dist/cjs/types/modes.types.js.map +1 -0
- package/dist/cjs/types/page.types.js +10 -0
- package/dist/cjs/types/page.types.js.map +1 -0
- package/dist/components/mcp-consent.d.ts +6 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +14 -0
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +7 -0
- package/dist/consent.min.js +2 -2
- package/dist/schemas/api.schemas.d.ts +177 -169
- package/dist/schemas/api.schemas.d.ts.map +1 -1
- package/dist/schemas/api.schemas.js +6 -0
- package/dist/schemas/api.schemas.js.map +1 -1
- package/dist/schemas/config.schemas.d.ts +116 -116
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/dist/types/api.types.d.ts +6 -0
- package/dist/types/api.types.d.ts.map +1 -1
- package/package.json +29 -15
|
@@ -73,17 +73,17 @@ export declare const ConsentSuccessSchema: z.ZodObject<{
|
|
|
73
73
|
redirectDelay: z.ZodOptional<z.ZodNumber>;
|
|
74
74
|
continueButtonText: z.ZodOptional<z.ZodString>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
redirectUrl?: string | undefined;
|
|
77
76
|
title?: string | undefined;
|
|
78
77
|
description?: string | undefined;
|
|
79
78
|
showCredential?: boolean | undefined;
|
|
79
|
+
redirectUrl?: string | undefined;
|
|
80
80
|
redirectDelay?: number | undefined;
|
|
81
81
|
continueButtonText?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
redirectUrl?: string | undefined;
|
|
84
83
|
title?: string | undefined;
|
|
85
84
|
description?: string | undefined;
|
|
86
85
|
showCredential?: boolean | undefined;
|
|
86
|
+
redirectUrl?: string | undefined;
|
|
87
87
|
redirectDelay?: number | undefined;
|
|
88
88
|
continueButtonText?: string | undefined;
|
|
89
89
|
}>;
|
|
@@ -122,7 +122,7 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
122
122
|
}>, "many">>;
|
|
123
123
|
pattern: z.ZodOptional<z.ZodString>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
type: "
|
|
125
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
126
126
|
required: boolean;
|
|
127
127
|
label: string;
|
|
128
128
|
name: string;
|
|
@@ -133,7 +133,7 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
133
133
|
placeholder?: string | undefined;
|
|
134
134
|
pattern?: string | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
type: "
|
|
136
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
137
137
|
required: boolean;
|
|
138
138
|
label: string;
|
|
139
139
|
name: string;
|
|
@@ -144,7 +144,7 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
144
144
|
placeholder?: string | undefined;
|
|
145
145
|
pattern?: string | undefined;
|
|
146
146
|
}>, {
|
|
147
|
-
type: "
|
|
147
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
148
148
|
required: boolean;
|
|
149
149
|
label: string;
|
|
150
150
|
name: string;
|
|
@@ -155,7 +155,7 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
155
155
|
placeholder?: string | undefined;
|
|
156
156
|
pattern?: string | undefined;
|
|
157
157
|
}, {
|
|
158
|
-
type: "
|
|
158
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
159
159
|
required: boolean;
|
|
160
160
|
label: string;
|
|
161
161
|
name: string;
|
|
@@ -261,17 +261,17 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
261
261
|
redirectDelay: z.ZodOptional<z.ZodNumber>;
|
|
262
262
|
continueButtonText: z.ZodOptional<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
redirectUrl?: string | undefined;
|
|
265
264
|
title?: string | undefined;
|
|
266
265
|
description?: string | undefined;
|
|
267
266
|
showCredential?: boolean | undefined;
|
|
267
|
+
redirectUrl?: string | undefined;
|
|
268
268
|
redirectDelay?: number | undefined;
|
|
269
269
|
continueButtonText?: string | undefined;
|
|
270
270
|
}, {
|
|
271
|
-
redirectUrl?: string | undefined;
|
|
272
271
|
title?: string | undefined;
|
|
273
272
|
description?: string | undefined;
|
|
274
273
|
showCredential?: boolean | undefined;
|
|
274
|
+
redirectUrl?: string | undefined;
|
|
275
275
|
redirectDelay?: number | undefined;
|
|
276
276
|
continueButtonText?: string | undefined;
|
|
277
277
|
}>>;
|
|
@@ -293,7 +293,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
293
293
|
}>, "many">>;
|
|
294
294
|
pattern: z.ZodOptional<z.ZodString>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
type: "
|
|
296
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
297
297
|
required: boolean;
|
|
298
298
|
label: string;
|
|
299
299
|
name: string;
|
|
@@ -304,7 +304,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
304
304
|
placeholder?: string | undefined;
|
|
305
305
|
pattern?: string | undefined;
|
|
306
306
|
}, {
|
|
307
|
-
type: "
|
|
307
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
308
308
|
required: boolean;
|
|
309
309
|
label: string;
|
|
310
310
|
name: string;
|
|
@@ -315,7 +315,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
315
315
|
placeholder?: string | undefined;
|
|
316
316
|
pattern?: string | undefined;
|
|
317
317
|
}>, {
|
|
318
|
-
type: "
|
|
318
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
319
319
|
required: boolean;
|
|
320
320
|
label: string;
|
|
321
321
|
name: string;
|
|
@@ -326,7 +326,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
326
326
|
placeholder?: string | undefined;
|
|
327
327
|
pattern?: string | undefined;
|
|
328
328
|
}, {
|
|
329
|
-
type: "
|
|
329
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
330
330
|
required: boolean;
|
|
331
331
|
label: string;
|
|
332
332
|
name: string;
|
|
@@ -346,21 +346,21 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
346
346
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
347
347
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
showForgotPassword?: boolean | undefined;
|
|
350
|
-
forgotPasswordUrl?: string | undefined;
|
|
351
349
|
usernameLabel?: string | undefined;
|
|
352
350
|
usernamePlaceholder?: string | undefined;
|
|
353
351
|
passwordLabel?: string | undefined;
|
|
354
352
|
passwordPlaceholder?: string | undefined;
|
|
355
353
|
showRememberMe?: boolean | undefined;
|
|
356
|
-
}, {
|
|
357
354
|
showForgotPassword?: boolean | undefined;
|
|
358
355
|
forgotPasswordUrl?: string | undefined;
|
|
356
|
+
}, {
|
|
359
357
|
usernameLabel?: string | undefined;
|
|
360
358
|
usernamePlaceholder?: string | undefined;
|
|
361
359
|
passwordLabel?: string | undefined;
|
|
362
360
|
passwordPlaceholder?: string | undefined;
|
|
363
361
|
showRememberMe?: boolean | undefined;
|
|
362
|
+
showForgotPassword?: boolean | undefined;
|
|
363
|
+
forgotPasswordUrl?: string | undefined;
|
|
364
364
|
}>>;
|
|
365
365
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
366
366
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -382,17 +382,17 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
382
382
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
383
383
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
384
384
|
}, "strip", z.ZodTypeAny, {
|
|
385
|
-
resendCooldown?: number | undefined;
|
|
386
385
|
buttonText?: string | undefined;
|
|
387
386
|
enabled?: boolean | undefined;
|
|
388
387
|
emailLabel?: string | undefined;
|
|
389
388
|
emailPlaceholder?: string | undefined;
|
|
390
|
-
}, {
|
|
391
389
|
resendCooldown?: number | undefined;
|
|
390
|
+
}, {
|
|
392
391
|
buttonText?: string | undefined;
|
|
393
392
|
enabled?: boolean | undefined;
|
|
394
393
|
emailLabel?: string | undefined;
|
|
395
394
|
emailPlaceholder?: string | undefined;
|
|
395
|
+
resendCooldown?: number | undefined;
|
|
396
396
|
}>>;
|
|
397
397
|
otp: z.ZodOptional<z.ZodObject<{
|
|
398
398
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -402,19 +402,19 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
402
402
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
403
403
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
404
404
|
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
resendCooldown?: number | undefined;
|
|
406
405
|
enabled?: boolean | undefined;
|
|
406
|
+
resendCooldown?: number | undefined;
|
|
407
407
|
phoneLabel?: string | undefined;
|
|
408
408
|
phonePlaceholder?: string | undefined;
|
|
409
409
|
instructions?: string | undefined;
|
|
410
|
-
digits?:
|
|
410
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
resendCooldown?: number | undefined;
|
|
413
412
|
enabled?: boolean | undefined;
|
|
413
|
+
resendCooldown?: number | undefined;
|
|
414
414
|
phoneLabel?: string | undefined;
|
|
415
415
|
phonePlaceholder?: string | undefined;
|
|
416
416
|
instructions?: string | undefined;
|
|
417
|
-
digits?:
|
|
417
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
418
418
|
}>>;
|
|
419
419
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
420
420
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -483,13 +483,13 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
483
483
|
}>>;
|
|
484
484
|
}, "strip", z.ZodTypeAny, {
|
|
485
485
|
credentials?: {
|
|
486
|
-
showForgotPassword?: boolean | undefined;
|
|
487
|
-
forgotPasswordUrl?: string | undefined;
|
|
488
486
|
usernameLabel?: string | undefined;
|
|
489
487
|
usernamePlaceholder?: string | undefined;
|
|
490
488
|
passwordLabel?: string | undefined;
|
|
491
489
|
passwordPlaceholder?: string | undefined;
|
|
492
490
|
showRememberMe?: boolean | undefined;
|
|
491
|
+
showForgotPassword?: boolean | undefined;
|
|
492
|
+
forgotPasswordUrl?: string | undefined;
|
|
493
493
|
} | undefined;
|
|
494
494
|
oauth?: {
|
|
495
495
|
providerId?: string | undefined;
|
|
@@ -497,12 +497,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
497
497
|
buttonText?: string | undefined;
|
|
498
498
|
} | undefined;
|
|
499
499
|
otp?: {
|
|
500
|
-
resendCooldown?: number | undefined;
|
|
501
500
|
enabled?: boolean | undefined;
|
|
501
|
+
resendCooldown?: number | undefined;
|
|
502
502
|
phoneLabel?: string | undefined;
|
|
503
503
|
phonePlaceholder?: string | undefined;
|
|
504
504
|
instructions?: string | undefined;
|
|
505
|
-
digits?:
|
|
505
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
506
506
|
} | undefined;
|
|
507
507
|
passkey?: {
|
|
508
508
|
buttonText?: string | undefined;
|
|
@@ -517,26 +517,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
517
517
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
518
518
|
estimatedTime?: string | undefined;
|
|
519
519
|
} | undefined;
|
|
520
|
-
success?: {
|
|
521
|
-
redirectUrl?: string | undefined;
|
|
522
|
-
title?: string | undefined;
|
|
523
|
-
description?: string | undefined;
|
|
524
|
-
showCredential?: boolean | undefined;
|
|
525
|
-
redirectDelay?: number | undefined;
|
|
526
|
-
continueButtonText?: string | undefined;
|
|
527
|
-
} | undefined;
|
|
528
|
-
terms?: {
|
|
529
|
-
text?: string | undefined;
|
|
530
|
-
url?: string | undefined;
|
|
531
|
-
version?: string | undefined;
|
|
532
|
-
required?: boolean | undefined;
|
|
533
|
-
} | undefined;
|
|
534
520
|
magicLink?: {
|
|
535
|
-
resendCooldown?: number | undefined;
|
|
536
521
|
buttonText?: string | undefined;
|
|
537
522
|
enabled?: boolean | undefined;
|
|
538
523
|
emailLabel?: string | undefined;
|
|
539
524
|
emailPlaceholder?: string | undefined;
|
|
525
|
+
resendCooldown?: number | undefined;
|
|
540
526
|
} | undefined;
|
|
541
527
|
qrCode?: {
|
|
542
528
|
enabled?: boolean | undefined;
|
|
@@ -561,8 +547,22 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
561
547
|
popupEnabled?: boolean | undefined;
|
|
562
548
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
563
549
|
} | undefined;
|
|
550
|
+
terms?: {
|
|
551
|
+
text?: string | undefined;
|
|
552
|
+
url?: string | undefined;
|
|
553
|
+
version?: string | undefined;
|
|
554
|
+
required?: boolean | undefined;
|
|
555
|
+
} | undefined;
|
|
556
|
+
success?: {
|
|
557
|
+
title?: string | undefined;
|
|
558
|
+
description?: string | undefined;
|
|
559
|
+
showCredential?: boolean | undefined;
|
|
560
|
+
redirectUrl?: string | undefined;
|
|
561
|
+
redirectDelay?: number | undefined;
|
|
562
|
+
continueButtonText?: string | undefined;
|
|
563
|
+
} | undefined;
|
|
564
564
|
customFields?: {
|
|
565
|
-
type: "
|
|
565
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
566
566
|
required: boolean;
|
|
567
567
|
label: string;
|
|
568
568
|
name: string;
|
|
@@ -581,13 +581,13 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
581
581
|
} | undefined;
|
|
582
582
|
}, {
|
|
583
583
|
credentials?: {
|
|
584
|
-
showForgotPassword?: boolean | undefined;
|
|
585
|
-
forgotPasswordUrl?: string | undefined;
|
|
586
584
|
usernameLabel?: string | undefined;
|
|
587
585
|
usernamePlaceholder?: string | undefined;
|
|
588
586
|
passwordLabel?: string | undefined;
|
|
589
587
|
passwordPlaceholder?: string | undefined;
|
|
590
588
|
showRememberMe?: boolean | undefined;
|
|
589
|
+
showForgotPassword?: boolean | undefined;
|
|
590
|
+
forgotPasswordUrl?: string | undefined;
|
|
591
591
|
} | undefined;
|
|
592
592
|
oauth?: {
|
|
593
593
|
providerId?: string | undefined;
|
|
@@ -595,12 +595,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
595
595
|
buttonText?: string | undefined;
|
|
596
596
|
} | undefined;
|
|
597
597
|
otp?: {
|
|
598
|
-
resendCooldown?: number | undefined;
|
|
599
598
|
enabled?: boolean | undefined;
|
|
599
|
+
resendCooldown?: number | undefined;
|
|
600
600
|
phoneLabel?: string | undefined;
|
|
601
601
|
phonePlaceholder?: string | undefined;
|
|
602
602
|
instructions?: string | undefined;
|
|
603
|
-
digits?:
|
|
603
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
604
604
|
} | undefined;
|
|
605
605
|
passkey?: {
|
|
606
606
|
buttonText?: string | undefined;
|
|
@@ -615,26 +615,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
615
615
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
616
616
|
estimatedTime?: string | undefined;
|
|
617
617
|
} | undefined;
|
|
618
|
-
success?: {
|
|
619
|
-
redirectUrl?: string | undefined;
|
|
620
|
-
title?: string | undefined;
|
|
621
|
-
description?: string | undefined;
|
|
622
|
-
showCredential?: boolean | undefined;
|
|
623
|
-
redirectDelay?: number | undefined;
|
|
624
|
-
continueButtonText?: string | undefined;
|
|
625
|
-
} | undefined;
|
|
626
|
-
terms?: {
|
|
627
|
-
text?: string | undefined;
|
|
628
|
-
url?: string | undefined;
|
|
629
|
-
version?: string | undefined;
|
|
630
|
-
required?: boolean | undefined;
|
|
631
|
-
} | undefined;
|
|
632
618
|
magicLink?: {
|
|
633
|
-
resendCooldown?: number | undefined;
|
|
634
619
|
buttonText?: string | undefined;
|
|
635
620
|
enabled?: boolean | undefined;
|
|
636
621
|
emailLabel?: string | undefined;
|
|
637
622
|
emailPlaceholder?: string | undefined;
|
|
623
|
+
resendCooldown?: number | undefined;
|
|
638
624
|
} | undefined;
|
|
639
625
|
qrCode?: {
|
|
640
626
|
enabled?: boolean | undefined;
|
|
@@ -659,8 +645,22 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
659
645
|
popupEnabled?: boolean | undefined;
|
|
660
646
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
661
647
|
} | undefined;
|
|
648
|
+
terms?: {
|
|
649
|
+
text?: string | undefined;
|
|
650
|
+
url?: string | undefined;
|
|
651
|
+
version?: string | undefined;
|
|
652
|
+
required?: boolean | undefined;
|
|
653
|
+
} | undefined;
|
|
654
|
+
success?: {
|
|
655
|
+
title?: string | undefined;
|
|
656
|
+
description?: string | undefined;
|
|
657
|
+
showCredential?: boolean | undefined;
|
|
658
|
+
redirectUrl?: string | undefined;
|
|
659
|
+
redirectDelay?: number | undefined;
|
|
660
|
+
continueButtonText?: string | undefined;
|
|
661
|
+
} | undefined;
|
|
662
662
|
customFields?: {
|
|
663
|
-
type: "
|
|
663
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
664
664
|
required: boolean;
|
|
665
665
|
label: string;
|
|
666
666
|
name: string;
|
|
@@ -754,17 +754,17 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
754
754
|
redirectDelay: z.ZodOptional<z.ZodNumber>;
|
|
755
755
|
continueButtonText: z.ZodOptional<z.ZodString>;
|
|
756
756
|
}, "strip", z.ZodTypeAny, {
|
|
757
|
-
redirectUrl?: string | undefined;
|
|
758
757
|
title?: string | undefined;
|
|
759
758
|
description?: string | undefined;
|
|
760
759
|
showCredential?: boolean | undefined;
|
|
760
|
+
redirectUrl?: string | undefined;
|
|
761
761
|
redirectDelay?: number | undefined;
|
|
762
762
|
continueButtonText?: string | undefined;
|
|
763
763
|
}, {
|
|
764
|
-
redirectUrl?: string | undefined;
|
|
765
764
|
title?: string | undefined;
|
|
766
765
|
description?: string | undefined;
|
|
767
766
|
showCredential?: boolean | undefined;
|
|
767
|
+
redirectUrl?: string | undefined;
|
|
768
768
|
redirectDelay?: number | undefined;
|
|
769
769
|
continueButtonText?: string | undefined;
|
|
770
770
|
}>>;
|
|
@@ -786,7 +786,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
786
786
|
}>, "many">>;
|
|
787
787
|
pattern: z.ZodOptional<z.ZodString>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
789
|
-
type: "
|
|
789
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
790
790
|
required: boolean;
|
|
791
791
|
label: string;
|
|
792
792
|
name: string;
|
|
@@ -797,7 +797,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
797
797
|
placeholder?: string | undefined;
|
|
798
798
|
pattern?: string | undefined;
|
|
799
799
|
}, {
|
|
800
|
-
type: "
|
|
800
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
801
801
|
required: boolean;
|
|
802
802
|
label: string;
|
|
803
803
|
name: string;
|
|
@@ -808,7 +808,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
808
808
|
placeholder?: string | undefined;
|
|
809
809
|
pattern?: string | undefined;
|
|
810
810
|
}>, {
|
|
811
|
-
type: "
|
|
811
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
812
812
|
required: boolean;
|
|
813
813
|
label: string;
|
|
814
814
|
name: string;
|
|
@@ -819,7 +819,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
819
819
|
placeholder?: string | undefined;
|
|
820
820
|
pattern?: string | undefined;
|
|
821
821
|
}, {
|
|
822
|
-
type: "
|
|
822
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
823
823
|
required: boolean;
|
|
824
824
|
label: string;
|
|
825
825
|
name: string;
|
|
@@ -839,21 +839,21 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
839
839
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
840
840
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
841
841
|
}, "strip", z.ZodTypeAny, {
|
|
842
|
-
showForgotPassword?: boolean | undefined;
|
|
843
|
-
forgotPasswordUrl?: string | undefined;
|
|
844
842
|
usernameLabel?: string | undefined;
|
|
845
843
|
usernamePlaceholder?: string | undefined;
|
|
846
844
|
passwordLabel?: string | undefined;
|
|
847
845
|
passwordPlaceholder?: string | undefined;
|
|
848
846
|
showRememberMe?: boolean | undefined;
|
|
849
|
-
}, {
|
|
850
847
|
showForgotPassword?: boolean | undefined;
|
|
851
848
|
forgotPasswordUrl?: string | undefined;
|
|
849
|
+
}, {
|
|
852
850
|
usernameLabel?: string | undefined;
|
|
853
851
|
usernamePlaceholder?: string | undefined;
|
|
854
852
|
passwordLabel?: string | undefined;
|
|
855
853
|
passwordPlaceholder?: string | undefined;
|
|
856
854
|
showRememberMe?: boolean | undefined;
|
|
855
|
+
showForgotPassword?: boolean | undefined;
|
|
856
|
+
forgotPasswordUrl?: string | undefined;
|
|
857
857
|
}>>;
|
|
858
858
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
859
859
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -875,17 +875,17 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
875
875
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
876
876
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
877
877
|
}, "strip", z.ZodTypeAny, {
|
|
878
|
-
resendCooldown?: number | undefined;
|
|
879
878
|
buttonText?: string | undefined;
|
|
880
879
|
enabled?: boolean | undefined;
|
|
881
880
|
emailLabel?: string | undefined;
|
|
882
881
|
emailPlaceholder?: string | undefined;
|
|
883
|
-
}, {
|
|
884
882
|
resendCooldown?: number | undefined;
|
|
883
|
+
}, {
|
|
885
884
|
buttonText?: string | undefined;
|
|
886
885
|
enabled?: boolean | undefined;
|
|
887
886
|
emailLabel?: string | undefined;
|
|
888
887
|
emailPlaceholder?: string | undefined;
|
|
888
|
+
resendCooldown?: number | undefined;
|
|
889
889
|
}>>;
|
|
890
890
|
otp: z.ZodOptional<z.ZodObject<{
|
|
891
891
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -895,19 +895,19 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
895
895
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
896
896
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
897
897
|
}, "strip", z.ZodTypeAny, {
|
|
898
|
-
resendCooldown?: number | undefined;
|
|
899
898
|
enabled?: boolean | undefined;
|
|
899
|
+
resendCooldown?: number | undefined;
|
|
900
900
|
phoneLabel?: string | undefined;
|
|
901
901
|
phonePlaceholder?: string | undefined;
|
|
902
902
|
instructions?: string | undefined;
|
|
903
|
-
digits?:
|
|
903
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
904
904
|
}, {
|
|
905
|
-
resendCooldown?: number | undefined;
|
|
906
905
|
enabled?: boolean | undefined;
|
|
906
|
+
resendCooldown?: number | undefined;
|
|
907
907
|
phoneLabel?: string | undefined;
|
|
908
908
|
phonePlaceholder?: string | undefined;
|
|
909
909
|
instructions?: string | undefined;
|
|
910
|
-
digits?:
|
|
910
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
911
911
|
}>>;
|
|
912
912
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
913
913
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -977,13 +977,13 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
977
977
|
}>>;
|
|
978
978
|
}, "strip", z.ZodTypeAny, {
|
|
979
979
|
credentials?: {
|
|
980
|
-
showForgotPassword?: boolean | undefined;
|
|
981
|
-
forgotPasswordUrl?: string | undefined;
|
|
982
980
|
usernameLabel?: string | undefined;
|
|
983
981
|
usernamePlaceholder?: string | undefined;
|
|
984
982
|
passwordLabel?: string | undefined;
|
|
985
983
|
passwordPlaceholder?: string | undefined;
|
|
986
984
|
showRememberMe?: boolean | undefined;
|
|
985
|
+
showForgotPassword?: boolean | undefined;
|
|
986
|
+
forgotPasswordUrl?: string | undefined;
|
|
987
987
|
} | undefined;
|
|
988
988
|
oauth?: {
|
|
989
989
|
providerId?: string | undefined;
|
|
@@ -991,12 +991,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
991
991
|
buttonText?: string | undefined;
|
|
992
992
|
} | undefined;
|
|
993
993
|
otp?: {
|
|
994
|
-
resendCooldown?: number | undefined;
|
|
995
994
|
enabled?: boolean | undefined;
|
|
995
|
+
resendCooldown?: number | undefined;
|
|
996
996
|
phoneLabel?: string | undefined;
|
|
997
997
|
phonePlaceholder?: string | undefined;
|
|
998
998
|
instructions?: string | undefined;
|
|
999
|
-
digits?:
|
|
999
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
1000
1000
|
} | undefined;
|
|
1001
1001
|
passkey?: {
|
|
1002
1002
|
buttonText?: string | undefined;
|
|
@@ -1011,26 +1011,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1011
1011
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
1012
1012
|
estimatedTime?: string | undefined;
|
|
1013
1013
|
} | undefined;
|
|
1014
|
-
success?: {
|
|
1015
|
-
redirectUrl?: string | undefined;
|
|
1016
|
-
title?: string | undefined;
|
|
1017
|
-
description?: string | undefined;
|
|
1018
|
-
showCredential?: boolean | undefined;
|
|
1019
|
-
redirectDelay?: number | undefined;
|
|
1020
|
-
continueButtonText?: string | undefined;
|
|
1021
|
-
} | undefined;
|
|
1022
|
-
terms?: {
|
|
1023
|
-
text?: string | undefined;
|
|
1024
|
-
url?: string | undefined;
|
|
1025
|
-
version?: string | undefined;
|
|
1026
|
-
required?: boolean | undefined;
|
|
1027
|
-
} | undefined;
|
|
1028
1014
|
magicLink?: {
|
|
1029
|
-
resendCooldown?: number | undefined;
|
|
1030
1015
|
buttonText?: string | undefined;
|
|
1031
1016
|
enabled?: boolean | undefined;
|
|
1032
1017
|
emailLabel?: string | undefined;
|
|
1033
1018
|
emailPlaceholder?: string | undefined;
|
|
1019
|
+
resendCooldown?: number | undefined;
|
|
1034
1020
|
} | undefined;
|
|
1035
1021
|
qrCode?: {
|
|
1036
1022
|
enabled?: boolean | undefined;
|
|
@@ -1055,8 +1041,22 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1055
1041
|
popupEnabled?: boolean | undefined;
|
|
1056
1042
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
1057
1043
|
} | undefined;
|
|
1044
|
+
terms?: {
|
|
1045
|
+
text?: string | undefined;
|
|
1046
|
+
url?: string | undefined;
|
|
1047
|
+
version?: string | undefined;
|
|
1048
|
+
required?: boolean | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
success?: {
|
|
1051
|
+
title?: string | undefined;
|
|
1052
|
+
description?: string | undefined;
|
|
1053
|
+
showCredential?: boolean | undefined;
|
|
1054
|
+
redirectUrl?: string | undefined;
|
|
1055
|
+
redirectDelay?: number | undefined;
|
|
1056
|
+
continueButtonText?: string | undefined;
|
|
1057
|
+
} | undefined;
|
|
1058
1058
|
customFields?: {
|
|
1059
|
-
type: "
|
|
1059
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
1060
1060
|
required: boolean;
|
|
1061
1061
|
label: string;
|
|
1062
1062
|
name: string;
|
|
@@ -1075,13 +1075,13 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1075
1075
|
} | undefined;
|
|
1076
1076
|
}, {
|
|
1077
1077
|
credentials?: {
|
|
1078
|
-
showForgotPassword?: boolean | undefined;
|
|
1079
|
-
forgotPasswordUrl?: string | undefined;
|
|
1080
1078
|
usernameLabel?: string | undefined;
|
|
1081
1079
|
usernamePlaceholder?: string | undefined;
|
|
1082
1080
|
passwordLabel?: string | undefined;
|
|
1083
1081
|
passwordPlaceholder?: string | undefined;
|
|
1084
1082
|
showRememberMe?: boolean | undefined;
|
|
1083
|
+
showForgotPassword?: boolean | undefined;
|
|
1084
|
+
forgotPasswordUrl?: string | undefined;
|
|
1085
1085
|
} | undefined;
|
|
1086
1086
|
oauth?: {
|
|
1087
1087
|
providerId?: string | undefined;
|
|
@@ -1089,12 +1089,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1089
1089
|
buttonText?: string | undefined;
|
|
1090
1090
|
} | undefined;
|
|
1091
1091
|
otp?: {
|
|
1092
|
-
resendCooldown?: number | undefined;
|
|
1093
1092
|
enabled?: boolean | undefined;
|
|
1093
|
+
resendCooldown?: number | undefined;
|
|
1094
1094
|
phoneLabel?: string | undefined;
|
|
1095
1095
|
phonePlaceholder?: string | undefined;
|
|
1096
1096
|
instructions?: string | undefined;
|
|
1097
|
-
digits?:
|
|
1097
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
1098
1098
|
} | undefined;
|
|
1099
1099
|
passkey?: {
|
|
1100
1100
|
buttonText?: string | undefined;
|
|
@@ -1109,26 +1109,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1109
1109
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
1110
1110
|
estimatedTime?: string | undefined;
|
|
1111
1111
|
} | undefined;
|
|
1112
|
-
success?: {
|
|
1113
|
-
redirectUrl?: string | undefined;
|
|
1114
|
-
title?: string | undefined;
|
|
1115
|
-
description?: string | undefined;
|
|
1116
|
-
showCredential?: boolean | undefined;
|
|
1117
|
-
redirectDelay?: number | undefined;
|
|
1118
|
-
continueButtonText?: string | undefined;
|
|
1119
|
-
} | undefined;
|
|
1120
|
-
terms?: {
|
|
1121
|
-
text?: string | undefined;
|
|
1122
|
-
url?: string | undefined;
|
|
1123
|
-
version?: string | undefined;
|
|
1124
|
-
required?: boolean | undefined;
|
|
1125
|
-
} | undefined;
|
|
1126
1112
|
magicLink?: {
|
|
1127
|
-
resendCooldown?: number | undefined;
|
|
1128
1113
|
buttonText?: string | undefined;
|
|
1129
1114
|
enabled?: boolean | undefined;
|
|
1130
1115
|
emailLabel?: string | undefined;
|
|
1131
1116
|
emailPlaceholder?: string | undefined;
|
|
1117
|
+
resendCooldown?: number | undefined;
|
|
1132
1118
|
} | undefined;
|
|
1133
1119
|
qrCode?: {
|
|
1134
1120
|
enabled?: boolean | undefined;
|
|
@@ -1153,8 +1139,22 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1153
1139
|
popupEnabled?: boolean | undefined;
|
|
1154
1140
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
1155
1141
|
} | undefined;
|
|
1142
|
+
terms?: {
|
|
1143
|
+
text?: string | undefined;
|
|
1144
|
+
url?: string | undefined;
|
|
1145
|
+
version?: string | undefined;
|
|
1146
|
+
required?: boolean | undefined;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
success?: {
|
|
1149
|
+
title?: string | undefined;
|
|
1150
|
+
description?: string | undefined;
|
|
1151
|
+
showCredential?: boolean | undefined;
|
|
1152
|
+
redirectUrl?: string | undefined;
|
|
1153
|
+
redirectDelay?: number | undefined;
|
|
1154
|
+
continueButtonText?: string | undefined;
|
|
1155
|
+
} | undefined;
|
|
1156
1156
|
customFields?: {
|
|
1157
|
-
type: "
|
|
1157
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
1158
1158
|
required: boolean;
|
|
1159
1159
|
label: string;
|
|
1160
1160
|
name: string;
|