@kya-os/consent 0.1.8 → 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.
@@ -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
  }>;
@@ -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: "text" | "textarea" | "checkbox" | "select" | "email";
125
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
136
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
147
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
158
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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
  }>>;
@@ -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: "text" | "textarea" | "checkbox" | "select" | "email";
296
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
307
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
318
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
329
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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?: 8 | 4 | 6 | undefined;
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?: 8 | 4 | 6 | undefined;
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?: 8 | 4 | 6 | undefined;
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;
@@ -547,22 +561,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
547
561
  popupEnabled?: boolean | undefined;
548
562
  theme?: "light" | "dark" | "auto" | undefined;
549
563
  } | 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: "text" | "textarea" | "checkbox" | "select" | "email";
565
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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?: 8 | 4 | 6 | undefined;
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;
@@ -645,22 +659,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
645
659
  popupEnabled?: boolean | undefined;
646
660
  theme?: "light" | "dark" | "auto" | undefined;
647
661
  } | 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: "text" | "textarea" | "checkbox" | "select" | "email";
663
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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
  }>>;
@@ -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: "text" | "textarea" | "checkbox" | "select" | "email";
789
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
800
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
811
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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: "text" | "textarea" | "checkbox" | "select" | "email";
822
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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?: 8 | 4 | 6 | undefined;
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?: 8 | 4 | 6 | undefined;
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?: 8 | 4 | 6 | undefined;
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;
@@ -1041,22 +1055,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1041
1055
  popupEnabled?: boolean | undefined;
1042
1056
  theme?: "light" | "dark" | "auto" | undefined;
1043
1057
  } | 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: "text" | "textarea" | "checkbox" | "select" | "email";
1059
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
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;
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?: 8 | 4 | 6 | undefined;
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;
@@ -1139,22 +1153,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1139
1153
  popupEnabled?: boolean | undefined;
1140
1154
  theme?: "light" | "dark" | "auto" | undefined;
1141
1155
  } | 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: "text" | "textarea" | "checkbox" | "select" | "email";
1157
+ type: "email" | "text" | "textarea" | "checkbox" | "select";
1158
1158
  required: boolean;
1159
1159
  label: string;
1160
1160
  name: string;