@kya-os/consent 0.1.6 → 0.1.8

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.
@@ -7,5 +7,6 @@
7
7
  */
8
8
  export { DEFAULT_COLORS, type DefaultColorsType } from "./colors.js";
9
9
  export { DEFAULT_BRANDING, DEFAULT_UI, DEFAULT_TERMS, DEFAULT_SUCCESS, DEFAULT_METADATA, DEFAULT_EXPIRATION_DAYS, DEFAULT_CREDENTIALS_CONFIG, DEFAULT_OAUTH_CONFIG, DEFAULT_MAGIC_LINK_CONFIG, DEFAULT_OTP_CONFIG, DEFAULT_QR_CODE_CONFIG, DEFAULT_PASSKEY_CONFIG, DEFAULT_IDV_CONFIG, } from "./defaults.js";
10
+ export { AUTH_MODES } from "../types/modes.types.js";
10
11
  export { AUTH_MODE_REGISTRY, getAuthModeMetadata, getImplementedAuthModes, isAuthModeImplemented, requiresExternalAuth, collectsCredentials, type AuthModeMetadata, } from "./auth-modes.js";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrE,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrE,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC"}
@@ -9,6 +9,8 @@
9
9
  export { DEFAULT_COLORS } from "./colors.js";
10
10
  // Default configurations
11
11
  export { DEFAULT_BRANDING, DEFAULT_UI, DEFAULT_TERMS, DEFAULT_SUCCESS, DEFAULT_METADATA, DEFAULT_EXPIRATION_DAYS, DEFAULT_CREDENTIALS_CONFIG, DEFAULT_OAUTH_CONFIG, DEFAULT_MAGIC_LINK_CONFIG, DEFAULT_OTP_CONFIG, DEFAULT_QR_CODE_CONFIG, DEFAULT_PASSKEY_CONFIG, DEFAULT_IDV_CONFIG, } from "./defaults.js";
12
+ // Re-export AUTH_MODES constant from types for convenience
13
+ export { AUTH_MODES } from "../types/modes.types.js";
12
14
  // Auth mode registry and utilities
13
15
  export { AUTH_MODE_REGISTRY, getAuthModeMetadata, getImplementedAuthModes, isAuthModeImplemented, requiresExternalAuth, collectsCredentials, } from "./auth-modes.js";
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kBAAkB;AAClB,OAAO,EAAE,cAAc,EAA0B,MAAM,aAAa,CAAC;AAErE,yBAAyB;AACzB,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,mCAAmC;AACnC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,GAEpB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,kBAAkB;AAClB,OAAO,EAAE,cAAc,EAA0B,MAAM,aAAa,CAAC;AAErE,yBAAyB;AACzB,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,2DAA2D;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,mCAAmC;AACnC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,GAEpB,MAAM,iBAAiB,CAAC"}
@@ -69,8 +69,8 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
69
69
  auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv";
70
70
  provider_type: string;
71
71
  termsAccepted: boolean;
72
- termsVersion?: string | undefined;
73
72
  customFields?: Record<string, string | boolean> | undefined;
73
+ termsVersion?: string | undefined;
74
74
  oauth_identity?: {
75
75
  provider: string;
76
76
  subject: string;
@@ -85,10 +85,10 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
85
85
  session_id: string;
86
86
  project_id: string;
87
87
  termsAccepted: boolean;
88
+ customFields?: Record<string, string | boolean> | undefined;
88
89
  auth_mode?: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv" | undefined;
89
90
  provider_type?: string | undefined;
90
91
  termsVersion?: string | undefined;
91
- customFields?: Record<string, string | boolean> | undefined;
92
92
  oauth_identity?: {
93
93
  provider: string;
94
94
  subject: string;
@@ -242,10 +242,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
242
242
  }>, "many">>;
243
243
  pattern: z.ZodOptional<z.ZodString>;
244
244
  }, "strip", z.ZodTypeAny, {
245
- type: "email" | "text" | "textarea" | "checkbox" | "select";
246
- name: string;
245
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
247
246
  required: boolean;
248
247
  label: string;
248
+ name: string;
249
249
  options?: {
250
250
  value: string;
251
251
  label: string;
@@ -253,10 +253,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
253
253
  placeholder?: string | undefined;
254
254
  pattern?: string | undefined;
255
255
  }, {
256
- type: "email" | "text" | "textarea" | "checkbox" | "select";
257
- name: string;
256
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
258
257
  required: boolean;
259
258
  label: string;
259
+ name: string;
260
260
  options?: {
261
261
  value: string;
262
262
  label: string;
@@ -264,10 +264,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
264
264
  placeholder?: string | undefined;
265
265
  pattern?: string | undefined;
266
266
  }>, {
267
- type: "email" | "text" | "textarea" | "checkbox" | "select";
268
- name: string;
267
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
269
268
  required: boolean;
270
269
  label: string;
270
+ name: string;
271
271
  options?: {
272
272
  value: string;
273
273
  label: string;
@@ -275,10 +275,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
275
275
  placeholder?: string | undefined;
276
276
  pattern?: string | undefined;
277
277
  }, {
278
- type: "email" | "text" | "textarea" | "checkbox" | "select";
279
- name: string;
278
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
280
279
  required: boolean;
281
280
  label: string;
281
+ name: string;
282
282
  options?: {
283
283
  value: string;
284
284
  label: string;
@@ -480,26 +480,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
480
480
  size?: number | undefined;
481
481
  showManualEntry?: boolean | undefined;
482
482
  } | undefined;
483
- customFields?: {
484
- type: "email" | "text" | "textarea" | "checkbox" | "select";
485
- name: string;
486
- required: boolean;
487
- label: string;
488
- options?: {
489
- value: string;
490
- label: string;
491
- }[] | undefined;
492
- placeholder?: string | undefined;
493
- pattern?: string | undefined;
494
- }[] | undefined;
495
- success?: {
496
- title?: string | undefined;
497
- description?: string | undefined;
498
- showCredential?: boolean | undefined;
499
- redirectUrl?: string | undefined;
500
- redirectDelay?: number | undefined;
501
- continueButtonText?: string | undefined;
502
- } | undefined;
503
483
  branding?: {
504
484
  primaryColor?: string | undefined;
505
485
  secondaryColor?: string | undefined;
@@ -523,6 +503,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
523
503
  version?: string | undefined;
524
504
  required?: boolean | undefined;
525
505
  } | undefined;
506
+ success?: {
507
+ title?: string | undefined;
508
+ description?: string | undefined;
509
+ showCredential?: boolean | undefined;
510
+ redirectUrl?: string | undefined;
511
+ redirectDelay?: number | undefined;
512
+ continueButtonText?: string | undefined;
513
+ } | undefined;
514
+ customFields?: {
515
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
516
+ required: boolean;
517
+ label: string;
518
+ name: string;
519
+ options?: {
520
+ value: string;
521
+ label: string;
522
+ }[] | undefined;
523
+ placeholder?: string | undefined;
524
+ pattern?: string | undefined;
525
+ }[] | undefined;
526
526
  expirationDays?: number | undefined;
527
527
  metadata?: {
528
528
  version?: number | undefined;
@@ -578,26 +578,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
578
578
  size?: number | undefined;
579
579
  showManualEntry?: boolean | undefined;
580
580
  } | undefined;
581
- customFields?: {
582
- type: "email" | "text" | "textarea" | "checkbox" | "select";
583
- name: string;
584
- required: boolean;
585
- label: string;
586
- options?: {
587
- value: string;
588
- label: string;
589
- }[] | undefined;
590
- placeholder?: string | undefined;
591
- pattern?: string | undefined;
592
- }[] | undefined;
593
- success?: {
594
- title?: string | undefined;
595
- description?: string | undefined;
596
- showCredential?: boolean | undefined;
597
- redirectUrl?: string | undefined;
598
- redirectDelay?: number | undefined;
599
- continueButtonText?: string | undefined;
600
- } | undefined;
601
581
  branding?: {
602
582
  primaryColor?: string | undefined;
603
583
  secondaryColor?: string | undefined;
@@ -621,6 +601,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
621
601
  version?: string | undefined;
622
602
  required?: boolean | undefined;
623
603
  } | undefined;
604
+ success?: {
605
+ title?: string | undefined;
606
+ description?: string | undefined;
607
+ showCredential?: boolean | undefined;
608
+ redirectUrl?: string | undefined;
609
+ redirectDelay?: number | undefined;
610
+ continueButtonText?: string | undefined;
611
+ } | undefined;
612
+ customFields?: {
613
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
614
+ required: boolean;
615
+ label: string;
616
+ name: string;
617
+ options?: {
618
+ value: string;
619
+ label: string;
620
+ }[] | undefined;
621
+ placeholder?: string | undefined;
622
+ pattern?: string | undefined;
623
+ }[] | undefined;
624
624
  expirationDays?: number | undefined;
625
625
  metadata?: {
626
626
  version?: number | undefined;
@@ -681,26 +681,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
681
681
  size?: number | undefined;
682
682
  showManualEntry?: boolean | undefined;
683
683
  } | undefined;
684
- customFields?: {
685
- type: "email" | "text" | "textarea" | "checkbox" | "select";
686
- name: string;
687
- required: boolean;
688
- label: string;
689
- options?: {
690
- value: string;
691
- label: string;
692
- }[] | undefined;
693
- placeholder?: string | undefined;
694
- pattern?: string | undefined;
695
- }[] | undefined;
696
- success?: {
697
- title?: string | undefined;
698
- description?: string | undefined;
699
- showCredential?: boolean | undefined;
700
- redirectUrl?: string | undefined;
701
- redirectDelay?: number | undefined;
702
- continueButtonText?: string | undefined;
703
- } | undefined;
704
684
  branding?: {
705
685
  primaryColor?: string | undefined;
706
686
  secondaryColor?: string | undefined;
@@ -724,6 +704,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
724
704
  version?: string | undefined;
725
705
  required?: boolean | undefined;
726
706
  } | undefined;
707
+ success?: {
708
+ title?: string | undefined;
709
+ description?: string | undefined;
710
+ showCredential?: boolean | undefined;
711
+ redirectUrl?: string | undefined;
712
+ redirectDelay?: number | undefined;
713
+ continueButtonText?: string | undefined;
714
+ } | undefined;
715
+ customFields?: {
716
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
717
+ required: boolean;
718
+ label: string;
719
+ name: string;
720
+ options?: {
721
+ value: string;
722
+ label: string;
723
+ }[] | undefined;
724
+ placeholder?: string | undefined;
725
+ pattern?: string | undefined;
726
+ }[] | undefined;
727
727
  expirationDays?: number | undefined;
728
728
  metadata?: {
729
729
  version?: number | undefined;
@@ -783,26 +783,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
783
783
  size?: number | undefined;
784
784
  showManualEntry?: boolean | undefined;
785
785
  } | undefined;
786
- customFields?: {
787
- type: "email" | "text" | "textarea" | "checkbox" | "select";
788
- name: string;
789
- required: boolean;
790
- label: string;
791
- options?: {
792
- value: string;
793
- label: string;
794
- }[] | undefined;
795
- placeholder?: string | undefined;
796
- pattern?: string | undefined;
797
- }[] | undefined;
798
- success?: {
799
- title?: string | undefined;
800
- description?: string | undefined;
801
- showCredential?: boolean | undefined;
802
- redirectUrl?: string | undefined;
803
- redirectDelay?: number | undefined;
804
- continueButtonText?: string | undefined;
805
- } | undefined;
806
786
  branding?: {
807
787
  primaryColor?: string | undefined;
808
788
  secondaryColor?: string | undefined;
@@ -826,6 +806,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
826
806
  version?: string | undefined;
827
807
  required?: boolean | undefined;
828
808
  } | undefined;
809
+ success?: {
810
+ title?: string | undefined;
811
+ description?: string | undefined;
812
+ showCredential?: boolean | undefined;
813
+ redirectUrl?: string | undefined;
814
+ redirectDelay?: number | undefined;
815
+ continueButtonText?: string | undefined;
816
+ } | undefined;
817
+ customFields?: {
818
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
819
+ required: boolean;
820
+ label: string;
821
+ name: string;
822
+ options?: {
823
+ value: string;
824
+ label: string;
825
+ }[] | undefined;
826
+ placeholder?: string | undefined;
827
+ pattern?: string | undefined;
828
+ }[] | undefined;
829
829
  expirationDays?: number | undefined;
830
830
  metadata?: {
831
831
  version?: number | undefined;
@@ -935,8 +935,8 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
935
935
  sessionId: string;
936
936
  projectId: string;
937
937
  serverUrl: string;
938
- provider?: string | undefined;
939
938
  autoClose?: boolean | undefined;
939
+ provider?: string | undefined;
940
940
  oauthRequired?: boolean | undefined;
941
941
  oauthUrl?: string | undefined;
942
942
  }, {
@@ -947,8 +947,8 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
947
947
  sessionId: string;
948
948
  projectId: string;
949
949
  serverUrl: string;
950
- provider?: string | undefined;
951
950
  autoClose?: boolean | undefined;
951
+ provider?: string | undefined;
952
952
  oauthRequired?: boolean | undefined;
953
953
  oauthUrl?: string | undefined;
954
954
  }>, {
@@ -959,8 +959,8 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
959
959
  sessionId: string;
960
960
  projectId: string;
961
961
  serverUrl: string;
962
- provider?: string | undefined;
963
962
  autoClose?: boolean | undefined;
963
+ provider?: string | undefined;
964
964
  oauthRequired?: boolean | undefined;
965
965
  oauthUrl?: string | undefined;
966
966
  }, {
@@ -971,8 +971,8 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
971
971
  sessionId: string;
972
972
  projectId: string;
973
973
  serverUrl: string;
974
- provider?: string | undefined;
975
974
  autoClose?: boolean | undefined;
975
+ provider?: string | undefined;
976
976
  oauthRequired?: boolean | undefined;
977
977
  oauthUrl?: string | undefined;
978
978
  }>;
@@ -122,10 +122,10 @@ 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: "email" | "text" | "textarea" | "checkbox" | "select";
126
- name: string;
125
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
127
126
  required: boolean;
128
127
  label: string;
128
+ name: string;
129
129
  options?: {
130
130
  value: string;
131
131
  label: string;
@@ -133,10 +133,10 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
133
133
  placeholder?: string | undefined;
134
134
  pattern?: string | undefined;
135
135
  }, {
136
- type: "email" | "text" | "textarea" | "checkbox" | "select";
137
- name: string;
136
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
138
137
  required: boolean;
139
138
  label: string;
139
+ name: string;
140
140
  options?: {
141
141
  value: string;
142
142
  label: string;
@@ -144,10 +144,10 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
144
144
  placeholder?: string | undefined;
145
145
  pattern?: string | undefined;
146
146
  }>, {
147
- type: "email" | "text" | "textarea" | "checkbox" | "select";
148
- name: string;
147
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
149
148
  required: boolean;
150
149
  label: string;
150
+ name: string;
151
151
  options?: {
152
152
  value: string;
153
153
  label: string;
@@ -155,10 +155,10 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
155
155
  placeholder?: string | undefined;
156
156
  pattern?: string | undefined;
157
157
  }, {
158
- type: "email" | "text" | "textarea" | "checkbox" | "select";
159
- name: string;
158
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
160
159
  required: boolean;
161
160
  label: string;
161
+ name: string;
162
162
  options?: {
163
163
  value: string;
164
164
  label: string;
@@ -293,10 +293,10 @@ export declare const ConsentConfigSchema: z.ZodObject<{
293
293
  }>, "many">>;
294
294
  pattern: z.ZodOptional<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- type: "email" | "text" | "textarea" | "checkbox" | "select";
297
- name: string;
296
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
298
297
  required: boolean;
299
298
  label: string;
299
+ name: string;
300
300
  options?: {
301
301
  value: string;
302
302
  label: string;
@@ -304,10 +304,10 @@ export declare const ConsentConfigSchema: z.ZodObject<{
304
304
  placeholder?: string | undefined;
305
305
  pattern?: string | undefined;
306
306
  }, {
307
- type: "email" | "text" | "textarea" | "checkbox" | "select";
308
- name: string;
307
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
309
308
  required: boolean;
310
309
  label: string;
310
+ name: string;
311
311
  options?: {
312
312
  value: string;
313
313
  label: string;
@@ -315,10 +315,10 @@ export declare const ConsentConfigSchema: z.ZodObject<{
315
315
  placeholder?: string | undefined;
316
316
  pattern?: string | undefined;
317
317
  }>, {
318
- type: "email" | "text" | "textarea" | "checkbox" | "select";
319
- name: string;
318
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
320
319
  required: boolean;
321
320
  label: string;
321
+ name: string;
322
322
  options?: {
323
323
  value: string;
324
324
  label: string;
@@ -326,10 +326,10 @@ export declare const ConsentConfigSchema: z.ZodObject<{
326
326
  placeholder?: string | undefined;
327
327
  pattern?: string | undefined;
328
328
  }, {
329
- type: "email" | "text" | "textarea" | "checkbox" | "select";
330
- name: string;
329
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
331
330
  required: boolean;
332
331
  label: string;
332
+ name: string;
333
333
  options?: {
334
334
  value: string;
335
335
  label: string;
@@ -530,26 +530,6 @@ export declare const ConsentConfigSchema: z.ZodObject<{
530
530
  size?: number | undefined;
531
531
  showManualEntry?: boolean | undefined;
532
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;
553
533
  branding?: {
554
534
  primaryColor?: string | undefined;
555
535
  secondaryColor?: string | undefined;
@@ -573,6 +553,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
573
553
  version?: string | undefined;
574
554
  required?: boolean | undefined;
575
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
+ customFields?: {
565
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
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;
@@ -628,26 +628,6 @@ export declare const ConsentConfigSchema: z.ZodObject<{
628
628
  size?: number | undefined;
629
629
  showManualEntry?: boolean | undefined;
630
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;
651
631
  branding?: {
652
632
  primaryColor?: string | undefined;
653
633
  secondaryColor?: string | undefined;
@@ -671,6 +651,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
671
651
  version?: string | undefined;
672
652
  required?: boolean | undefined;
673
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
+ customFields?: {
663
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
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;
@@ -786,10 +786,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
786
786
  }>, "many">>;
787
787
  pattern: z.ZodOptional<z.ZodString>;
788
788
  }, "strip", z.ZodTypeAny, {
789
- type: "email" | "text" | "textarea" | "checkbox" | "select";
790
- name: string;
789
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
791
790
  required: boolean;
792
791
  label: string;
792
+ name: string;
793
793
  options?: {
794
794
  value: string;
795
795
  label: string;
@@ -797,10 +797,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
797
797
  placeholder?: string | undefined;
798
798
  pattern?: string | undefined;
799
799
  }, {
800
- type: "email" | "text" | "textarea" | "checkbox" | "select";
801
- name: string;
800
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
802
801
  required: boolean;
803
802
  label: string;
803
+ name: string;
804
804
  options?: {
805
805
  value: string;
806
806
  label: string;
@@ -808,10 +808,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
808
808
  placeholder?: string | undefined;
809
809
  pattern?: string | undefined;
810
810
  }>, {
811
- type: "email" | "text" | "textarea" | "checkbox" | "select";
812
- name: string;
811
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
813
812
  required: boolean;
814
813
  label: string;
814
+ name: string;
815
815
  options?: {
816
816
  value: string;
817
817
  label: string;
@@ -819,10 +819,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
819
819
  placeholder?: string | undefined;
820
820
  pattern?: string | undefined;
821
821
  }, {
822
- type: "email" | "text" | "textarea" | "checkbox" | "select";
823
- name: string;
822
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
824
823
  required: boolean;
825
824
  label: string;
825
+ name: string;
826
826
  options?: {
827
827
  value: string;
828
828
  label: string;
@@ -1024,26 +1024,6 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1024
1024
  size?: number | undefined;
1025
1025
  showManualEntry?: boolean | undefined;
1026
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;
1047
1027
  branding?: {
1048
1028
  primaryColor?: string | undefined;
1049
1029
  secondaryColor?: string | undefined;
@@ -1067,6 +1047,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1067
1047
  version?: string | undefined;
1068
1048
  required?: boolean | undefined;
1069
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
+ customFields?: {
1059
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
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;
@@ -1122,26 +1122,6 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1122
1122
  size?: number | undefined;
1123
1123
  showManualEntry?: boolean | undefined;
1124
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;
1145
1125
  branding?: {
1146
1126
  primaryColor?: string | undefined;
1147
1127
  secondaryColor?: string | undefined;
@@ -1165,6 +1145,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1165
1145
  version?: string | undefined;
1166
1146
  required?: boolean | undefined;
1167
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
+ customFields?: {
1157
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/consent",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Canonical consent page types, styles, and utilities for MCP-I and AgentShield",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",