@kya-os/consent 0.1.7 → 0.1.9
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 +5 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +12 -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/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +153 -153
- package/dist/schemas/config.schemas.d.ts +160 -160
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/package.json +1 -1
- package/dist/utils/credential-fields.d.ts +0 -63
- package/dist/utils/credential-fields.d.ts.map +0 -1
- package/dist/utils/credential-fields.js +0 -166
- package/dist/utils/credential-fields.js.map +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -5
- package/dist/utils/index.js.map +0 -1
|
@@ -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;
|
|
76
77
|
title?: string | undefined;
|
|
77
78
|
description?: string | undefined;
|
|
78
79
|
showCredential?: boolean | undefined;
|
|
79
|
-
redirectUrl?: string | undefined;
|
|
80
80
|
redirectDelay?: number | undefined;
|
|
81
81
|
continueButtonText?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
+
redirectUrl?: string | undefined;
|
|
83
84
|
title?: string | undefined;
|
|
84
85
|
description?: string | undefined;
|
|
85
86
|
showCredential?: boolean | undefined;
|
|
86
|
-
redirectUrl?: string | undefined;
|
|
87
87
|
redirectDelay?: number | undefined;
|
|
88
88
|
continueButtonText?: string | undefined;
|
|
89
89
|
}>;
|
|
@@ -123,9 +123,9 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
123
123
|
pattern: z.ZodOptional<z.ZodString>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
126
|
-
name: string;
|
|
127
126
|
required: boolean;
|
|
128
127
|
label: string;
|
|
128
|
+
name: string;
|
|
129
129
|
options?: {
|
|
130
130
|
value: string;
|
|
131
131
|
label: string;
|
|
@@ -134,9 +134,9 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
134
134
|
pattern?: string | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
137
|
-
name: string;
|
|
138
137
|
required: boolean;
|
|
139
138
|
label: string;
|
|
139
|
+
name: string;
|
|
140
140
|
options?: {
|
|
141
141
|
value: string;
|
|
142
142
|
label: string;
|
|
@@ -145,9 +145,9 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
145
145
|
pattern?: string | undefined;
|
|
146
146
|
}>, {
|
|
147
147
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
148
|
-
name: string;
|
|
149
148
|
required: boolean;
|
|
150
149
|
label: string;
|
|
150
|
+
name: string;
|
|
151
151
|
options?: {
|
|
152
152
|
value: string;
|
|
153
153
|
label: string;
|
|
@@ -156,9 +156,9 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
pattern?: string | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
159
|
-
name: string;
|
|
160
159
|
required: boolean;
|
|
161
160
|
label: string;
|
|
161
|
+
name: string;
|
|
162
162
|
options?: {
|
|
163
163
|
value: string;
|
|
164
164
|
label: 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;
|
|
264
265
|
title?: string | undefined;
|
|
265
266
|
description?: string | undefined;
|
|
266
267
|
showCredential?: boolean | undefined;
|
|
267
|
-
redirectUrl?: string | undefined;
|
|
268
268
|
redirectDelay?: number | undefined;
|
|
269
269
|
continueButtonText?: string | undefined;
|
|
270
270
|
}, {
|
|
271
|
+
redirectUrl?: string | undefined;
|
|
271
272
|
title?: string | undefined;
|
|
272
273
|
description?: string | undefined;
|
|
273
274
|
showCredential?: boolean | undefined;
|
|
274
|
-
redirectUrl?: string | undefined;
|
|
275
275
|
redirectDelay?: number | undefined;
|
|
276
276
|
continueButtonText?: string | undefined;
|
|
277
277
|
}>>;
|
|
@@ -294,9 +294,9 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
294
294
|
pattern: z.ZodOptional<z.ZodString>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
296
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
297
|
-
name: string;
|
|
298
297
|
required: boolean;
|
|
299
298
|
label: string;
|
|
299
|
+
name: string;
|
|
300
300
|
options?: {
|
|
301
301
|
value: string;
|
|
302
302
|
label: string;
|
|
@@ -305,9 +305,9 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
305
305
|
pattern?: string | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
308
|
-
name: string;
|
|
309
308
|
required: boolean;
|
|
310
309
|
label: string;
|
|
310
|
+
name: string;
|
|
311
311
|
options?: {
|
|
312
312
|
value: string;
|
|
313
313
|
label: string;
|
|
@@ -316,9 +316,9 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
316
316
|
pattern?: string | undefined;
|
|
317
317
|
}>, {
|
|
318
318
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
319
|
-
name: string;
|
|
320
319
|
required: boolean;
|
|
321
320
|
label: string;
|
|
321
|
+
name: string;
|
|
322
322
|
options?: {
|
|
323
323
|
value: string;
|
|
324
324
|
label: string;
|
|
@@ -327,9 +327,9 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
327
327
|
pattern?: string | undefined;
|
|
328
328
|
}, {
|
|
329
329
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
330
|
-
name: string;
|
|
331
330
|
required: boolean;
|
|
332
331
|
label: string;
|
|
332
|
+
name: string;
|
|
333
333
|
options?: {
|
|
334
334
|
value: string;
|
|
335
335
|
label: 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;
|
|
349
351
|
usernameLabel?: string | undefined;
|
|
350
352
|
usernamePlaceholder?: string | undefined;
|
|
351
353
|
passwordLabel?: string | undefined;
|
|
352
354
|
passwordPlaceholder?: string | undefined;
|
|
353
355
|
showRememberMe?: boolean | undefined;
|
|
356
|
+
}, {
|
|
354
357
|
showForgotPassword?: boolean | undefined;
|
|
355
358
|
forgotPasswordUrl?: string | undefined;
|
|
356
|
-
}, {
|
|
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
|
}>>;
|
|
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;
|
|
385
386
|
buttonText?: string | undefined;
|
|
386
387
|
enabled?: boolean | undefined;
|
|
387
388
|
emailLabel?: string | undefined;
|
|
388
389
|
emailPlaceholder?: string | undefined;
|
|
389
|
-
resendCooldown?: number | undefined;
|
|
390
390
|
}, {
|
|
391
|
+
resendCooldown?: number | undefined;
|
|
391
392
|
buttonText?: string | undefined;
|
|
392
393
|
enabled?: boolean | undefined;
|
|
393
394
|
emailLabel?: string | undefined;
|
|
394
395
|
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
|
-
enabled?: boolean | undefined;
|
|
406
405
|
resendCooldown?: number | undefined;
|
|
406
|
+
enabled?: boolean | undefined;
|
|
407
407
|
phoneLabel?: string | undefined;
|
|
408
408
|
phonePlaceholder?: string | undefined;
|
|
409
409
|
instructions?: string | undefined;
|
|
410
|
-
digits?:
|
|
410
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
enabled?: boolean | undefined;
|
|
413
412
|
resendCooldown?: number | undefined;
|
|
413
|
+
enabled?: boolean | undefined;
|
|
414
414
|
phoneLabel?: string | undefined;
|
|
415
415
|
phonePlaceholder?: string | undefined;
|
|
416
416
|
instructions?: string | undefined;
|
|
417
|
-
digits?:
|
|
417
|
+
digits?: 4 | 6 | 8 | 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;
|
|
486
488
|
usernameLabel?: string | undefined;
|
|
487
489
|
usernamePlaceholder?: string | undefined;
|
|
488
490
|
passwordLabel?: string | undefined;
|
|
489
491
|
passwordPlaceholder?: string | undefined;
|
|
490
492
|
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
|
-
enabled?: boolean | undefined;
|
|
501
500
|
resendCooldown?: number | undefined;
|
|
501
|
+
enabled?: boolean | undefined;
|
|
502
502
|
phoneLabel?: string | undefined;
|
|
503
503
|
phonePlaceholder?: string | undefined;
|
|
504
504
|
instructions?: string | undefined;
|
|
505
|
-
digits?:
|
|
505
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
506
506
|
} | undefined;
|
|
507
507
|
passkey?: {
|
|
508
508
|
buttonText?: string | undefined;
|
|
@@ -517,12 +517,26 @@ 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;
|
|
520
534
|
magicLink?: {
|
|
535
|
+
resendCooldown?: number | undefined;
|
|
521
536
|
buttonText?: string | undefined;
|
|
522
537
|
enabled?: boolean | undefined;
|
|
523
538
|
emailLabel?: string | undefined;
|
|
524
539
|
emailPlaceholder?: string | undefined;
|
|
525
|
-
resendCooldown?: number | undefined;
|
|
526
540
|
} | undefined;
|
|
527
541
|
qrCode?: {
|
|
528
542
|
enabled?: boolean | undefined;
|
|
@@ -530,26 +544,6 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
530
544
|
size?: number | undefined;
|
|
531
545
|
showManualEntry?: boolean | undefined;
|
|
532
546
|
} | undefined;
|
|
533
|
-
customFields?: {
|
|
534
|
-
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
535
|
-
name: string;
|
|
536
|
-
required: boolean;
|
|
537
|
-
label: string;
|
|
538
|
-
options?: {
|
|
539
|
-
value: string;
|
|
540
|
-
label: string;
|
|
541
|
-
}[] | undefined;
|
|
542
|
-
placeholder?: string | undefined;
|
|
543
|
-
pattern?: string | undefined;
|
|
544
|
-
}[] | undefined;
|
|
545
|
-
success?: {
|
|
546
|
-
title?: string | undefined;
|
|
547
|
-
description?: string | undefined;
|
|
548
|
-
showCredential?: boolean | undefined;
|
|
549
|
-
redirectUrl?: string | undefined;
|
|
550
|
-
redirectDelay?: number | undefined;
|
|
551
|
-
continueButtonText?: string | undefined;
|
|
552
|
-
} | undefined;
|
|
553
547
|
branding?: {
|
|
554
548
|
primaryColor?: string | undefined;
|
|
555
549
|
secondaryColor?: string | undefined;
|
|
@@ -567,12 +561,18 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
567
561
|
popupEnabled?: boolean | undefined;
|
|
568
562
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
569
563
|
} | undefined;
|
|
570
|
-
|
|
571
|
-
text
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
564
|
+
customFields?: {
|
|
565
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
566
|
+
required: boolean;
|
|
567
|
+
label: string;
|
|
568
|
+
name: string;
|
|
569
|
+
options?: {
|
|
570
|
+
value: string;
|
|
571
|
+
label: string;
|
|
572
|
+
}[] | undefined;
|
|
573
|
+
placeholder?: string | undefined;
|
|
574
|
+
pattern?: string | undefined;
|
|
575
|
+
}[] | undefined;
|
|
576
576
|
expirationDays?: number | undefined;
|
|
577
577
|
metadata?: {
|
|
578
578
|
version?: number | undefined;
|
|
@@ -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;
|
|
584
586
|
usernameLabel?: string | undefined;
|
|
585
587
|
usernamePlaceholder?: string | undefined;
|
|
586
588
|
passwordLabel?: string | undefined;
|
|
587
589
|
passwordPlaceholder?: string | undefined;
|
|
588
590
|
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
|
-
enabled?: boolean | undefined;
|
|
599
598
|
resendCooldown?: number | undefined;
|
|
599
|
+
enabled?: boolean | undefined;
|
|
600
600
|
phoneLabel?: string | undefined;
|
|
601
601
|
phonePlaceholder?: string | undefined;
|
|
602
602
|
instructions?: string | undefined;
|
|
603
|
-
digits?:
|
|
603
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
604
604
|
} | undefined;
|
|
605
605
|
passkey?: {
|
|
606
606
|
buttonText?: string | undefined;
|
|
@@ -615,12 +615,26 @@ 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;
|
|
618
632
|
magicLink?: {
|
|
633
|
+
resendCooldown?: number | undefined;
|
|
619
634
|
buttonText?: string | undefined;
|
|
620
635
|
enabled?: boolean | undefined;
|
|
621
636
|
emailLabel?: string | undefined;
|
|
622
637
|
emailPlaceholder?: string | undefined;
|
|
623
|
-
resendCooldown?: number | undefined;
|
|
624
638
|
} | undefined;
|
|
625
639
|
qrCode?: {
|
|
626
640
|
enabled?: boolean | undefined;
|
|
@@ -628,26 +642,6 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
628
642
|
size?: number | undefined;
|
|
629
643
|
showManualEntry?: boolean | undefined;
|
|
630
644
|
} | undefined;
|
|
631
|
-
customFields?: {
|
|
632
|
-
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
633
|
-
name: string;
|
|
634
|
-
required: boolean;
|
|
635
|
-
label: string;
|
|
636
|
-
options?: {
|
|
637
|
-
value: string;
|
|
638
|
-
label: string;
|
|
639
|
-
}[] | undefined;
|
|
640
|
-
placeholder?: string | undefined;
|
|
641
|
-
pattern?: string | undefined;
|
|
642
|
-
}[] | undefined;
|
|
643
|
-
success?: {
|
|
644
|
-
title?: string | undefined;
|
|
645
|
-
description?: string | undefined;
|
|
646
|
-
showCredential?: boolean | undefined;
|
|
647
|
-
redirectUrl?: string | undefined;
|
|
648
|
-
redirectDelay?: number | undefined;
|
|
649
|
-
continueButtonText?: string | undefined;
|
|
650
|
-
} | undefined;
|
|
651
645
|
branding?: {
|
|
652
646
|
primaryColor?: string | undefined;
|
|
653
647
|
secondaryColor?: string | undefined;
|
|
@@ -665,12 +659,18 @@ export declare const ConsentConfigSchema: z.ZodObject<{
|
|
|
665
659
|
popupEnabled?: boolean | undefined;
|
|
666
660
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
667
661
|
} | undefined;
|
|
668
|
-
|
|
669
|
-
text
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
662
|
+
customFields?: {
|
|
663
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
664
|
+
required: boolean;
|
|
665
|
+
label: string;
|
|
666
|
+
name: string;
|
|
667
|
+
options?: {
|
|
668
|
+
value: string;
|
|
669
|
+
label: string;
|
|
670
|
+
}[] | undefined;
|
|
671
|
+
placeholder?: string | undefined;
|
|
672
|
+
pattern?: string | undefined;
|
|
673
|
+
}[] | undefined;
|
|
674
674
|
expirationDays?: number | undefined;
|
|
675
675
|
metadata?: {
|
|
676
676
|
version?: number | undefined;
|
|
@@ -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;
|
|
757
758
|
title?: string | undefined;
|
|
758
759
|
description?: string | undefined;
|
|
759
760
|
showCredential?: boolean | undefined;
|
|
760
|
-
redirectUrl?: string | undefined;
|
|
761
761
|
redirectDelay?: number | undefined;
|
|
762
762
|
continueButtonText?: string | undefined;
|
|
763
763
|
}, {
|
|
764
|
+
redirectUrl?: string | undefined;
|
|
764
765
|
title?: string | undefined;
|
|
765
766
|
description?: string | undefined;
|
|
766
767
|
showCredential?: boolean | undefined;
|
|
767
|
-
redirectUrl?: string | undefined;
|
|
768
768
|
redirectDelay?: number | undefined;
|
|
769
769
|
continueButtonText?: string | undefined;
|
|
770
770
|
}>>;
|
|
@@ -787,9 +787,9 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
787
787
|
pattern: z.ZodOptional<z.ZodString>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
789
789
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
790
|
-
name: string;
|
|
791
790
|
required: boolean;
|
|
792
791
|
label: string;
|
|
792
|
+
name: string;
|
|
793
793
|
options?: {
|
|
794
794
|
value: string;
|
|
795
795
|
label: string;
|
|
@@ -798,9 +798,9 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
798
798
|
pattern?: string | undefined;
|
|
799
799
|
}, {
|
|
800
800
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
801
|
-
name: string;
|
|
802
801
|
required: boolean;
|
|
803
802
|
label: string;
|
|
803
|
+
name: string;
|
|
804
804
|
options?: {
|
|
805
805
|
value: string;
|
|
806
806
|
label: string;
|
|
@@ -809,9 +809,9 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
809
809
|
pattern?: string | undefined;
|
|
810
810
|
}>, {
|
|
811
811
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
812
|
-
name: string;
|
|
813
812
|
required: boolean;
|
|
814
813
|
label: string;
|
|
814
|
+
name: string;
|
|
815
815
|
options?: {
|
|
816
816
|
value: string;
|
|
817
817
|
label: string;
|
|
@@ -820,9 +820,9 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
820
820
|
pattern?: string | undefined;
|
|
821
821
|
}, {
|
|
822
822
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
823
|
-
name: string;
|
|
824
823
|
required: boolean;
|
|
825
824
|
label: string;
|
|
825
|
+
name: string;
|
|
826
826
|
options?: {
|
|
827
827
|
value: string;
|
|
828
828
|
label: 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;
|
|
842
844
|
usernameLabel?: string | undefined;
|
|
843
845
|
usernamePlaceholder?: string | undefined;
|
|
844
846
|
passwordLabel?: string | undefined;
|
|
845
847
|
passwordPlaceholder?: string | undefined;
|
|
846
848
|
showRememberMe?: boolean | undefined;
|
|
849
|
+
}, {
|
|
847
850
|
showForgotPassword?: boolean | undefined;
|
|
848
851
|
forgotPasswordUrl?: string | undefined;
|
|
849
|
-
}, {
|
|
850
852
|
usernameLabel?: string | undefined;
|
|
851
853
|
usernamePlaceholder?: string | undefined;
|
|
852
854
|
passwordLabel?: string | undefined;
|
|
853
855
|
passwordPlaceholder?: string | undefined;
|
|
854
856
|
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;
|
|
878
879
|
buttonText?: string | undefined;
|
|
879
880
|
enabled?: boolean | undefined;
|
|
880
881
|
emailLabel?: string | undefined;
|
|
881
882
|
emailPlaceholder?: string | undefined;
|
|
882
|
-
resendCooldown?: number | undefined;
|
|
883
883
|
}, {
|
|
884
|
+
resendCooldown?: number | undefined;
|
|
884
885
|
buttonText?: string | undefined;
|
|
885
886
|
enabled?: boolean | undefined;
|
|
886
887
|
emailLabel?: string | undefined;
|
|
887
888
|
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
|
-
enabled?: boolean | undefined;
|
|
899
898
|
resendCooldown?: number | undefined;
|
|
899
|
+
enabled?: boolean | undefined;
|
|
900
900
|
phoneLabel?: string | undefined;
|
|
901
901
|
phonePlaceholder?: string | undefined;
|
|
902
902
|
instructions?: string | undefined;
|
|
903
|
-
digits?:
|
|
903
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
904
904
|
}, {
|
|
905
|
-
enabled?: boolean | undefined;
|
|
906
905
|
resendCooldown?: number | undefined;
|
|
906
|
+
enabled?: boolean | undefined;
|
|
907
907
|
phoneLabel?: string | undefined;
|
|
908
908
|
phonePlaceholder?: string | undefined;
|
|
909
909
|
instructions?: string | undefined;
|
|
910
|
-
digits?:
|
|
910
|
+
digits?: 4 | 6 | 8 | 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;
|
|
980
982
|
usernameLabel?: string | undefined;
|
|
981
983
|
usernamePlaceholder?: string | undefined;
|
|
982
984
|
passwordLabel?: string | undefined;
|
|
983
985
|
passwordPlaceholder?: string | undefined;
|
|
984
986
|
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
|
-
enabled?: boolean | undefined;
|
|
995
994
|
resendCooldown?: number | undefined;
|
|
995
|
+
enabled?: boolean | undefined;
|
|
996
996
|
phoneLabel?: string | undefined;
|
|
997
997
|
phonePlaceholder?: string | undefined;
|
|
998
998
|
instructions?: string | undefined;
|
|
999
|
-
digits?:
|
|
999
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
1000
1000
|
} | undefined;
|
|
1001
1001
|
passkey?: {
|
|
1002
1002
|
buttonText?: string | undefined;
|
|
@@ -1011,12 +1011,26 @@ 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;
|
|
1014
1028
|
magicLink?: {
|
|
1029
|
+
resendCooldown?: number | undefined;
|
|
1015
1030
|
buttonText?: string | undefined;
|
|
1016
1031
|
enabled?: boolean | undefined;
|
|
1017
1032
|
emailLabel?: string | undefined;
|
|
1018
1033
|
emailPlaceholder?: string | undefined;
|
|
1019
|
-
resendCooldown?: number | undefined;
|
|
1020
1034
|
} | undefined;
|
|
1021
1035
|
qrCode?: {
|
|
1022
1036
|
enabled?: boolean | undefined;
|
|
@@ -1024,26 +1038,6 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1024
1038
|
size?: number | undefined;
|
|
1025
1039
|
showManualEntry?: boolean | undefined;
|
|
1026
1040
|
} | undefined;
|
|
1027
|
-
customFields?: {
|
|
1028
|
-
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
1029
|
-
name: string;
|
|
1030
|
-
required: boolean;
|
|
1031
|
-
label: string;
|
|
1032
|
-
options?: {
|
|
1033
|
-
value: string;
|
|
1034
|
-
label: string;
|
|
1035
|
-
}[] | undefined;
|
|
1036
|
-
placeholder?: string | undefined;
|
|
1037
|
-
pattern?: string | undefined;
|
|
1038
|
-
}[] | undefined;
|
|
1039
|
-
success?: {
|
|
1040
|
-
title?: string | undefined;
|
|
1041
|
-
description?: string | undefined;
|
|
1042
|
-
showCredential?: boolean | undefined;
|
|
1043
|
-
redirectUrl?: string | undefined;
|
|
1044
|
-
redirectDelay?: number | undefined;
|
|
1045
|
-
continueButtonText?: string | undefined;
|
|
1046
|
-
} | undefined;
|
|
1047
1041
|
branding?: {
|
|
1048
1042
|
primaryColor?: string | undefined;
|
|
1049
1043
|
secondaryColor?: string | undefined;
|
|
@@ -1061,12 +1055,18 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1061
1055
|
popupEnabled?: boolean | undefined;
|
|
1062
1056
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
1063
1057
|
} | undefined;
|
|
1064
|
-
|
|
1065
|
-
text
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1058
|
+
customFields?: {
|
|
1059
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
1060
|
+
required: boolean;
|
|
1061
|
+
label: string;
|
|
1062
|
+
name: string;
|
|
1063
|
+
options?: {
|
|
1064
|
+
value: string;
|
|
1065
|
+
label: string;
|
|
1066
|
+
}[] | undefined;
|
|
1067
|
+
placeholder?: string | undefined;
|
|
1068
|
+
pattern?: string | undefined;
|
|
1069
|
+
}[] | undefined;
|
|
1070
1070
|
expirationDays?: number | undefined;
|
|
1071
1071
|
metadata?: {
|
|
1072
1072
|
version?: number | undefined;
|
|
@@ -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;
|
|
1078
1080
|
usernameLabel?: string | undefined;
|
|
1079
1081
|
usernamePlaceholder?: string | undefined;
|
|
1080
1082
|
passwordLabel?: string | undefined;
|
|
1081
1083
|
passwordPlaceholder?: string | undefined;
|
|
1082
1084
|
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
|
-
enabled?: boolean | undefined;
|
|
1093
1092
|
resendCooldown?: number | undefined;
|
|
1093
|
+
enabled?: boolean | undefined;
|
|
1094
1094
|
phoneLabel?: string | undefined;
|
|
1095
1095
|
phonePlaceholder?: string | undefined;
|
|
1096
1096
|
instructions?: string | undefined;
|
|
1097
|
-
digits?:
|
|
1097
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
1098
1098
|
} | undefined;
|
|
1099
1099
|
passkey?: {
|
|
1100
1100
|
buttonText?: string | undefined;
|
|
@@ -1109,12 +1109,26 @@ 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;
|
|
1112
1126
|
magicLink?: {
|
|
1127
|
+
resendCooldown?: number | undefined;
|
|
1113
1128
|
buttonText?: string | undefined;
|
|
1114
1129
|
enabled?: boolean | undefined;
|
|
1115
1130
|
emailLabel?: string | undefined;
|
|
1116
1131
|
emailPlaceholder?: string | undefined;
|
|
1117
|
-
resendCooldown?: number | undefined;
|
|
1118
1132
|
} | undefined;
|
|
1119
1133
|
qrCode?: {
|
|
1120
1134
|
enabled?: boolean | undefined;
|
|
@@ -1122,26 +1136,6 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1122
1136
|
size?: number | undefined;
|
|
1123
1137
|
showManualEntry?: boolean | undefined;
|
|
1124
1138
|
} | undefined;
|
|
1125
|
-
customFields?: {
|
|
1126
|
-
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
1127
|
-
name: string;
|
|
1128
|
-
required: boolean;
|
|
1129
|
-
label: string;
|
|
1130
|
-
options?: {
|
|
1131
|
-
value: string;
|
|
1132
|
-
label: string;
|
|
1133
|
-
}[] | undefined;
|
|
1134
|
-
placeholder?: string | undefined;
|
|
1135
|
-
pattern?: string | undefined;
|
|
1136
|
-
}[] | undefined;
|
|
1137
|
-
success?: {
|
|
1138
|
-
title?: string | undefined;
|
|
1139
|
-
description?: string | undefined;
|
|
1140
|
-
showCredential?: boolean | undefined;
|
|
1141
|
-
redirectUrl?: string | undefined;
|
|
1142
|
-
redirectDelay?: number | undefined;
|
|
1143
|
-
continueButtonText?: string | undefined;
|
|
1144
|
-
} | undefined;
|
|
1145
1139
|
branding?: {
|
|
1146
1140
|
primaryColor?: string | undefined;
|
|
1147
1141
|
secondaryColor?: string | undefined;
|
|
@@ -1159,12 +1153,18 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
|
|
|
1159
1153
|
popupEnabled?: boolean | undefined;
|
|
1160
1154
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
1161
1155
|
} | undefined;
|
|
1162
|
-
|
|
1163
|
-
text
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1156
|
+
customFields?: {
|
|
1157
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
1158
|
+
required: boolean;
|
|
1159
|
+
label: string;
|
|
1160
|
+
name: string;
|
|
1161
|
+
options?: {
|
|
1162
|
+
value: string;
|
|
1163
|
+
label: string;
|
|
1164
|
+
}[] | undefined;
|
|
1165
|
+
placeholder?: string | undefined;
|
|
1166
|
+
pattern?: string | undefined;
|
|
1167
|
+
}[] | undefined;
|
|
1168
1168
|
expirationDays?: number | undefined;
|
|
1169
1169
|
metadata?: {
|
|
1170
1170
|
version?: number | undefined;
|