@kya-os/consent 0.1.4 → 0.1.6

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;
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
  }>;
@@ -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;
126
127
  required: boolean;
127
128
  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;
137
138
  required: boolean;
138
139
  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;
148
149
  required: boolean;
149
150
  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;
159
160
  required: boolean;
160
161
  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;
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
  }>>;
@@ -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;
297
298
  required: boolean;
298
299
  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;
308
309
  required: boolean;
309
310
  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;
319
320
  required: boolean;
320
321
  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;
330
331
  required: boolean;
331
332
  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;
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?: 4 | 6 | 8 | undefined;
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?: 4 | 6 | 8 | undefined;
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?: 4 | 6 | 8 | undefined;
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;
@@ -544,6 +530,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
544
530
  size?: number | undefined;
545
531
  showManualEntry?: boolean | undefined;
546
532
  } | 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;
547
553
  branding?: {
548
554
  primaryColor?: string | undefined;
549
555
  secondaryColor?: string | undefined;
@@ -561,18 +567,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
561
567
  popupEnabled?: boolean | undefined;
562
568
  theme?: "light" | "dark" | "auto" | undefined;
563
569
  } | undefined;
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;
570
+ terms?: {
571
+ text?: string | undefined;
572
+ url?: string | undefined;
573
+ version?: string | undefined;
574
+ required?: boolean | 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;
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?: 4 | 6 | 8 | undefined;
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;
@@ -642,6 +628,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
642
628
  size?: number | undefined;
643
629
  showManualEntry?: boolean | undefined;
644
630
  } | 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;
645
651
  branding?: {
646
652
  primaryColor?: string | undefined;
647
653
  secondaryColor?: string | undefined;
@@ -659,18 +665,12 @@ export declare const ConsentConfigSchema: z.ZodObject<{
659
665
  popupEnabled?: boolean | undefined;
660
666
  theme?: "light" | "dark" | "auto" | undefined;
661
667
  } | undefined;
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;
668
+ terms?: {
669
+ text?: string | undefined;
670
+ url?: string | undefined;
671
+ version?: string | undefined;
672
+ required?: boolean | 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;
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
  }>>;
@@ -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;
790
791
  required: boolean;
791
792
  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;
801
802
  required: boolean;
802
803
  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;
812
813
  required: boolean;
813
814
  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;
823
824
  required: boolean;
824
825
  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;
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?: 4 | 6 | 8 | undefined;
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?: 4 | 6 | 8 | undefined;
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?: 4 | 6 | 8 | undefined;
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;
@@ -1038,6 +1024,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1038
1024
  size?: number | undefined;
1039
1025
  showManualEntry?: boolean | undefined;
1040
1026
  } | 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;
1041
1047
  branding?: {
1042
1048
  primaryColor?: string | undefined;
1043
1049
  secondaryColor?: string | undefined;
@@ -1055,18 +1061,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1055
1061
  popupEnabled?: boolean | undefined;
1056
1062
  theme?: "light" | "dark" | "auto" | undefined;
1057
1063
  } | undefined;
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;
1064
+ terms?: {
1065
+ text?: string | undefined;
1066
+ url?: string | undefined;
1067
+ version?: string | undefined;
1068
+ required?: boolean | 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;
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?: 4 | 6 | 8 | undefined;
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;
@@ -1136,6 +1122,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1136
1122
  size?: number | undefined;
1137
1123
  showManualEntry?: boolean | undefined;
1138
1124
  } | 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;
1139
1145
  branding?: {
1140
1146
  primaryColor?: string | undefined;
1141
1147
  secondaryColor?: string | undefined;
@@ -1153,18 +1159,12 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1153
1159
  popupEnabled?: boolean | undefined;
1154
1160
  theme?: "light" | "dark" | "auto" | undefined;
1155
1161
  } | undefined;
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;
1162
+ terms?: {
1163
+ text?: string | undefined;
1164
+ url?: string | undefined;
1165
+ version?: string | undefined;
1166
+ required?: boolean | undefined;
1167
+ } | undefined;
1168
1168
  expirationDays?: number | undefined;
1169
1169
  metadata?: {
1170
1170
  version?: number | undefined;