@kya-os/consent 0.1.41 → 0.1.43

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.
@@ -251,11 +251,11 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
251
251
  value: z.ZodString;
252
252
  label: z.ZodString;
253
253
  }, "strip", z.ZodTypeAny, {
254
- label: string;
255
254
  value: string;
256
- }, {
257
255
  label: string;
256
+ }, {
258
257
  value: string;
258
+ label: string;
259
259
  }>, "many">>;
260
260
  pattern: z.ZodOptional<z.ZodString>;
261
261
  }, "strip", z.ZodTypeAny, {
@@ -264,8 +264,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
264
264
  name: string;
265
265
  required: boolean;
266
266
  options?: {
267
- label: string;
268
267
  value: string;
268
+ label: string;
269
269
  }[] | undefined;
270
270
  placeholder?: string | undefined;
271
271
  pattern?: string | undefined;
@@ -275,8 +275,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
275
275
  name: string;
276
276
  required: boolean;
277
277
  options?: {
278
- label: string;
279
278
  value: string;
279
+ label: string;
280
280
  }[] | undefined;
281
281
  placeholder?: string | undefined;
282
282
  pattern?: string | undefined;
@@ -286,8 +286,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
286
286
  name: string;
287
287
  required: boolean;
288
288
  options?: {
289
- label: string;
290
289
  value: string;
290
+ label: string;
291
291
  }[] | undefined;
292
292
  placeholder?: string | undefined;
293
293
  pattern?: string | undefined;
@@ -297,8 +297,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
297
297
  name: string;
298
298
  required: boolean;
299
299
  options?: {
300
- label: string;
301
300
  value: string;
301
+ label: string;
302
302
  }[] | undefined;
303
303
  placeholder?: string | undefined;
304
304
  pattern?: string | undefined;
@@ -373,14 +373,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
373
373
  phoneLabel?: string | undefined;
374
374
  phonePlaceholder?: string | undefined;
375
375
  instructions?: string | undefined;
376
- digits?: 4 | 6 | 8 | undefined;
376
+ digits?: 8 | 4 | 6 | undefined;
377
377
  }, {
378
378
  enabled?: boolean | undefined;
379
379
  resendCooldown?: number | undefined;
380
380
  phoneLabel?: string | undefined;
381
381
  phonePlaceholder?: string | undefined;
382
382
  instructions?: string | undefined;
383
- digits?: 4 | 6 | 8 | undefined;
383
+ digits?: 8 | 4 | 6 | undefined;
384
384
  }>>;
385
385
  qrCode: z.ZodOptional<z.ZodObject<{
386
386
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -448,49 +448,49 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
448
448
  scopes: z.ZodArray<z.ZodString, "many">;
449
449
  category: z.ZodOptional<z.ZodString>;
450
450
  }, "strip", z.ZodTypeAny, {
451
+ id: string;
451
452
  label: string;
452
453
  description: string;
453
454
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
454
455
  riskLevel: "low" | "medium" | "high" | "critical";
455
- id: string;
456
456
  defaultOn: boolean;
457
457
  cedar: string;
458
458
  scopes: string[];
459
459
  category?: string | undefined;
460
460
  }, {
461
+ id: string;
461
462
  label: string;
462
463
  description: string;
463
464
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
464
465
  riskLevel: "low" | "medium" | "high" | "critical";
465
- id: string;
466
466
  defaultOn: boolean;
467
467
  cedar: string;
468
468
  scopes: string[];
469
469
  category?: string | undefined;
470
470
  }>, "many">;
471
471
  }, "strip", z.ZodTypeAny, {
472
- label: string;
473
472
  id: string;
473
+ label: string;
474
474
  capabilities: {
475
+ id: string;
475
476
  label: string;
476
477
  description: string;
477
478
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
478
479
  riskLevel: "low" | "medium" | "high" | "critical";
479
- id: string;
480
480
  defaultOn: boolean;
481
481
  cedar: string;
482
482
  scopes: string[];
483
483
  category?: string | undefined;
484
484
  }[];
485
485
  }, {
486
- label: string;
487
486
  id: string;
487
+ label: string;
488
488
  capabilities: {
489
+ id: string;
489
490
  label: string;
490
491
  description: string;
491
492
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
492
493
  riskLevel: "low" | "medium" | "high" | "critical";
493
- id: string;
494
494
  defaultOn: boolean;
495
495
  cedar: string;
496
496
  scopes: string[];
@@ -561,7 +561,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
561
561
  phoneLabel?: string | undefined;
562
562
  phonePlaceholder?: string | undefined;
563
563
  instructions?: string | undefined;
564
- digits?: 4 | 6 | 8 | undefined;
564
+ digits?: 8 | 4 | 6 | undefined;
565
565
  } | undefined;
566
566
  passkey?: {
567
567
  buttonText?: string | undefined;
@@ -590,14 +590,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
590
590
  showManualEntry?: boolean | undefined;
591
591
  } | undefined;
592
592
  capabilities?: {
593
- label: string;
594
593
  id: string;
594
+ label: string;
595
595
  capabilities: {
596
+ id: string;
596
597
  label: string;
597
598
  description: string;
598
599
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
599
600
  riskLevel: "low" | "medium" | "high" | "critical";
600
- id: string;
601
601
  defaultOn: boolean;
602
602
  cedar: string;
603
603
  scopes: string[];
@@ -642,8 +642,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
642
642
  name: string;
643
643
  required: boolean;
644
644
  options?: {
645
- label: string;
646
645
  value: string;
646
+ label: string;
647
647
  }[] | undefined;
648
648
  placeholder?: string | undefined;
649
649
  pattern?: string | undefined;
@@ -687,7 +687,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
687
687
  phoneLabel?: string | undefined;
688
688
  phonePlaceholder?: string | undefined;
689
689
  instructions?: string | undefined;
690
- digits?: 4 | 6 | 8 | undefined;
690
+ digits?: 8 | 4 | 6 | undefined;
691
691
  } | undefined;
692
692
  passkey?: {
693
693
  buttonText?: string | undefined;
@@ -716,14 +716,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
716
716
  showManualEntry?: boolean | undefined;
717
717
  } | undefined;
718
718
  capabilities?: {
719
- label: string;
720
719
  id: string;
720
+ label: string;
721
721
  capabilities: {
722
+ id: string;
722
723
  label: string;
723
724
  description: string;
724
725
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
725
726
  riskLevel: "low" | "medium" | "high" | "critical";
726
- id: string;
727
727
  defaultOn: boolean;
728
728
  cedar: string;
729
729
  scopes: string[];
@@ -768,8 +768,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
768
768
  name: string;
769
769
  required: boolean;
770
770
  options?: {
771
- label: string;
772
771
  value: string;
772
+ label: string;
773
773
  }[] | undefined;
774
774
  placeholder?: string | undefined;
775
775
  pattern?: string | undefined;
@@ -818,7 +818,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
818
818
  phoneLabel?: string | undefined;
819
819
  phonePlaceholder?: string | undefined;
820
820
  instructions?: string | undefined;
821
- digits?: 4 | 6 | 8 | undefined;
821
+ digits?: 8 | 4 | 6 | undefined;
822
822
  } | undefined;
823
823
  passkey?: {
824
824
  buttonText?: string | undefined;
@@ -847,14 +847,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
847
847
  showManualEntry?: boolean | undefined;
848
848
  } | undefined;
849
849
  capabilities?: {
850
- label: string;
851
850
  id: string;
851
+ label: string;
852
852
  capabilities: {
853
+ id: string;
853
854
  label: string;
854
855
  description: string;
855
856
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
856
857
  riskLevel: "low" | "medium" | "high" | "critical";
857
- id: string;
858
858
  defaultOn: boolean;
859
859
  cedar: string;
860
860
  scopes: string[];
@@ -899,8 +899,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
899
899
  name: string;
900
900
  required: boolean;
901
901
  options?: {
902
- label: string;
903
902
  value: string;
903
+ label: string;
904
904
  }[] | undefined;
905
905
  placeholder?: string | undefined;
906
906
  pattern?: string | undefined;
@@ -948,7 +948,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
948
948
  phoneLabel?: string | undefined;
949
949
  phonePlaceholder?: string | undefined;
950
950
  instructions?: string | undefined;
951
- digits?: 4 | 6 | 8 | undefined;
951
+ digits?: 8 | 4 | 6 | undefined;
952
952
  } | undefined;
953
953
  passkey?: {
954
954
  buttonText?: string | undefined;
@@ -977,14 +977,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
977
977
  showManualEntry?: boolean | undefined;
978
978
  } | undefined;
979
979
  capabilities?: {
980
- label: string;
981
980
  id: string;
981
+ label: string;
982
982
  capabilities: {
983
+ id: string;
983
984
  label: string;
984
985
  description: string;
985
986
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
986
987
  riskLevel: "low" | "medium" | "high" | "critical";
987
- id: string;
988
988
  defaultOn: boolean;
989
989
  cedar: string;
990
990
  scopes: string[];
@@ -1029,8 +1029,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
1029
1029
  name: string;
1030
1030
  required: boolean;
1031
1031
  options?: {
1032
- label: string;
1033
1032
  value: string;
1033
+ label: string;
1034
1034
  }[] | undefined;
1035
1035
  placeholder?: string | undefined;
1036
1036
  pattern?: string | undefined;
@@ -38,21 +38,21 @@ export declare const CapabilitySchema: z.ZodObject<{
38
38
  scopes: z.ZodArray<z.ZodString, "many">;
39
39
  category: z.ZodOptional<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
+ id: string;
41
42
  label: string;
42
43
  description: string;
43
44
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
44
45
  riskLevel: "low" | "medium" | "high" | "critical";
45
- id: string;
46
46
  defaultOn: boolean;
47
47
  cedar: string;
48
48
  scopes: string[];
49
49
  category?: string | undefined;
50
50
  }, {
51
+ id: string;
51
52
  label: string;
52
53
  description: string;
53
54
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
54
55
  riskLevel: "low" | "medium" | "high" | "critical";
55
- id: string;
56
56
  defaultOn: boolean;
57
57
  cedar: string;
58
58
  scopes: string[];
@@ -76,49 +76,49 @@ export declare const CapabilityGroupSchema: z.ZodObject<{
76
76
  scopes: z.ZodArray<z.ZodString, "many">;
77
77
  category: z.ZodOptional<z.ZodString>;
78
78
  }, "strip", z.ZodTypeAny, {
79
+ id: string;
79
80
  label: string;
80
81
  description: string;
81
82
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
82
83
  riskLevel: "low" | "medium" | "high" | "critical";
83
- id: string;
84
84
  defaultOn: boolean;
85
85
  cedar: string;
86
86
  scopes: string[];
87
87
  category?: string | undefined;
88
88
  }, {
89
+ id: string;
89
90
  label: string;
90
91
  description: string;
91
92
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
92
93
  riskLevel: "low" | "medium" | "high" | "critical";
93
- id: string;
94
94
  defaultOn: boolean;
95
95
  cedar: string;
96
96
  scopes: string[];
97
97
  category?: string | undefined;
98
98
  }>, "many">;
99
99
  }, "strip", z.ZodTypeAny, {
100
- label: string;
101
100
  id: string;
101
+ label: string;
102
102
  capabilities: {
103
+ id: string;
103
104
  label: string;
104
105
  description: string;
105
106
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
106
107
  riskLevel: "low" | "medium" | "high" | "critical";
107
- id: string;
108
108
  defaultOn: boolean;
109
109
  cedar: string;
110
110
  scopes: string[];
111
111
  category?: string | undefined;
112
112
  }[];
113
113
  }, {
114
- label: string;
115
114
  id: string;
115
+ label: string;
116
116
  capabilities: {
117
+ id: string;
117
118
  label: string;
118
119
  description: string;
119
120
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
120
121
  riskLevel: "low" | "medium" | "high" | "critical";
121
- id: string;
122
122
  defaultOn: boolean;
123
123
  cedar: string;
124
124
  scopes: string[];
@@ -95,11 +95,11 @@ export declare const ConsentCustomFieldOptionSchema: z.ZodObject<{
95
95
  value: z.ZodString;
96
96
  label: z.ZodString;
97
97
  }, "strip", z.ZodTypeAny, {
98
- label: string;
99
98
  value: string;
100
- }, {
101
99
  label: string;
100
+ }, {
102
101
  value: string;
102
+ label: string;
103
103
  }>;
104
104
  /**
105
105
  * Custom Field Schema
@@ -114,11 +114,11 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
114
114
  value: z.ZodString;
115
115
  label: z.ZodString;
116
116
  }, "strip", z.ZodTypeAny, {
117
- label: string;
118
117
  value: string;
119
- }, {
120
118
  label: string;
119
+ }, {
121
120
  value: string;
121
+ label: string;
122
122
  }>, "many">>;
123
123
  pattern: z.ZodOptional<z.ZodString>;
124
124
  }, "strip", z.ZodTypeAny, {
@@ -127,8 +127,8 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
127
127
  name: string;
128
128
  required: boolean;
129
129
  options?: {
130
- label: string;
131
130
  value: string;
131
+ label: string;
132
132
  }[] | undefined;
133
133
  placeholder?: string | undefined;
134
134
  pattern?: string | undefined;
@@ -138,8 +138,8 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
138
138
  name: string;
139
139
  required: boolean;
140
140
  options?: {
141
- label: string;
142
141
  value: string;
142
+ label: string;
143
143
  }[] | undefined;
144
144
  placeholder?: string | undefined;
145
145
  pattern?: string | undefined;
@@ -149,8 +149,8 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
149
149
  name: string;
150
150
  required: boolean;
151
151
  options?: {
152
- label: string;
153
152
  value: string;
153
+ label: string;
154
154
  }[] | undefined;
155
155
  placeholder?: string | undefined;
156
156
  pattern?: string | undefined;
@@ -160,8 +160,8 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
160
160
  name: string;
161
161
  required: boolean;
162
162
  options?: {
163
- label: string;
164
163
  value: string;
164
+ label: string;
165
165
  }[] | undefined;
166
166
  placeholder?: string | undefined;
167
167
  pattern?: string | undefined;
@@ -285,11 +285,11 @@ export declare const ConsentConfigSchema: z.ZodObject<{
285
285
  value: z.ZodString;
286
286
  label: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
288
- label: string;
289
288
  value: string;
290
- }, {
291
289
  label: string;
290
+ }, {
292
291
  value: string;
292
+ label: string;
293
293
  }>, "many">>;
294
294
  pattern: z.ZodOptional<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
@@ -298,8 +298,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
298
298
  name: string;
299
299
  required: boolean;
300
300
  options?: {
301
- label: string;
302
301
  value: string;
302
+ label: string;
303
303
  }[] | undefined;
304
304
  placeholder?: string | undefined;
305
305
  pattern?: string | undefined;
@@ -309,8 +309,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
309
309
  name: string;
310
310
  required: boolean;
311
311
  options?: {
312
- label: string;
313
312
  value: string;
313
+ label: string;
314
314
  }[] | undefined;
315
315
  placeholder?: string | undefined;
316
316
  pattern?: string | undefined;
@@ -320,8 +320,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
320
320
  name: string;
321
321
  required: boolean;
322
322
  options?: {
323
- label: string;
324
323
  value: string;
324
+ label: string;
325
325
  }[] | undefined;
326
326
  placeholder?: string | undefined;
327
327
  pattern?: string | undefined;
@@ -331,8 +331,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
331
331
  name: string;
332
332
  required: boolean;
333
333
  options?: {
334
- label: string;
335
334
  value: string;
335
+ label: string;
336
336
  }[] | undefined;
337
337
  placeholder?: string | undefined;
338
338
  pattern?: string | undefined;
@@ -407,14 +407,14 @@ export declare const ConsentConfigSchema: z.ZodObject<{
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
412
  enabled?: boolean | undefined;
413
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>;
@@ -482,49 +482,49 @@ export declare const ConsentConfigSchema: z.ZodObject<{
482
482
  scopes: z.ZodArray<z.ZodString, "many">;
483
483
  category: z.ZodOptional<z.ZodString>;
484
484
  }, "strip", z.ZodTypeAny, {
485
+ id: string;
485
486
  label: string;
486
487
  description: string;
487
488
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
488
489
  riskLevel: "low" | "medium" | "high" | "critical";
489
- id: string;
490
490
  defaultOn: boolean;
491
491
  cedar: string;
492
492
  scopes: string[];
493
493
  category?: string | undefined;
494
494
  }, {
495
+ id: string;
495
496
  label: string;
496
497
  description: string;
497
498
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
498
499
  riskLevel: "low" | "medium" | "high" | "critical";
499
- id: string;
500
500
  defaultOn: boolean;
501
501
  cedar: string;
502
502
  scopes: string[];
503
503
  category?: string | undefined;
504
504
  }>, "many">;
505
505
  }, "strip", z.ZodTypeAny, {
506
- label: string;
507
506
  id: string;
507
+ label: string;
508
508
  capabilities: {
509
+ id: string;
509
510
  label: string;
510
511
  description: string;
511
512
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
512
513
  riskLevel: "low" | "medium" | "high" | "critical";
513
- id: string;
514
514
  defaultOn: boolean;
515
515
  cedar: string;
516
516
  scopes: string[];
517
517
  category?: string | undefined;
518
518
  }[];
519
519
  }, {
520
- label: string;
521
520
  id: string;
521
+ label: string;
522
522
  capabilities: {
523
+ id: string;
523
524
  label: string;
524
525
  description: string;
525
526
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
526
527
  riskLevel: "low" | "medium" | "high" | "critical";
527
- id: string;
528
528
  defaultOn: boolean;
529
529
  cedar: string;
530
530
  scopes: string[];
@@ -594,7 +594,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
594
594
  phoneLabel?: string | undefined;
595
595
  phonePlaceholder?: string | undefined;
596
596
  instructions?: string | undefined;
597
- digits?: 4 | 6 | 8 | undefined;
597
+ digits?: 8 | 4 | 6 | undefined;
598
598
  } | undefined;
599
599
  passkey?: {
600
600
  buttonText?: string | undefined;
@@ -623,14 +623,14 @@ export declare const ConsentConfigSchema: z.ZodObject<{
623
623
  showManualEntry?: boolean | undefined;
624
624
  } | undefined;
625
625
  capabilities?: {
626
- label: string;
627
626
  id: string;
627
+ label: string;
628
628
  capabilities: {
629
+ id: string;
629
630
  label: string;
630
631
  description: string;
631
632
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
632
633
  riskLevel: "low" | "medium" | "high" | "critical";
633
- id: string;
634
634
  defaultOn: boolean;
635
635
  cedar: string;
636
636
  scopes: string[];
@@ -675,8 +675,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
675
675
  name: string;
676
676
  required: boolean;
677
677
  options?: {
678
- label: string;
679
678
  value: string;
679
+ label: string;
680
680
  }[] | undefined;
681
681
  placeholder?: string | undefined;
682
682
  pattern?: string | undefined;
@@ -720,7 +720,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
720
720
  phoneLabel?: string | undefined;
721
721
  phonePlaceholder?: string | undefined;
722
722
  instructions?: string | undefined;
723
- digits?: 4 | 6 | 8 | undefined;
723
+ digits?: 8 | 4 | 6 | undefined;
724
724
  } | undefined;
725
725
  passkey?: {
726
726
  buttonText?: string | undefined;
@@ -749,14 +749,14 @@ export declare const ConsentConfigSchema: z.ZodObject<{
749
749
  showManualEntry?: boolean | undefined;
750
750
  } | undefined;
751
751
  capabilities?: {
752
- label: string;
753
752
  id: string;
753
+ label: string;
754
754
  capabilities: {
755
+ id: string;
755
756
  label: string;
756
757
  description: string;
757
758
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
758
759
  riskLevel: "low" | "medium" | "high" | "critical";
759
- id: string;
760
760
  defaultOn: boolean;
761
761
  cedar: string;
762
762
  scopes: string[];
@@ -801,8 +801,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
801
801
  name: string;
802
802
  required: boolean;
803
803
  options?: {
804
- label: string;
805
804
  value: string;
805
+ label: string;
806
806
  }[] | undefined;
807
807
  placeholder?: string | undefined;
808
808
  pattern?: string | undefined;
@@ -926,11 +926,11 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
926
926
  value: z.ZodString;
927
927
  label: z.ZodString;
928
928
  }, "strip", z.ZodTypeAny, {
929
- label: string;
930
929
  value: string;
931
- }, {
932
930
  label: string;
931
+ }, {
933
932
  value: string;
933
+ label: string;
934
934
  }>, "many">>;
935
935
  pattern: z.ZodOptional<z.ZodString>;
936
936
  }, "strip", z.ZodTypeAny, {
@@ -939,8 +939,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
939
939
  name: string;
940
940
  required: boolean;
941
941
  options?: {
942
- label: string;
943
942
  value: string;
943
+ label: string;
944
944
  }[] | undefined;
945
945
  placeholder?: string | undefined;
946
946
  pattern?: string | undefined;
@@ -950,8 +950,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
950
950
  name: string;
951
951
  required: boolean;
952
952
  options?: {
953
- label: string;
954
953
  value: string;
954
+ label: string;
955
955
  }[] | undefined;
956
956
  placeholder?: string | undefined;
957
957
  pattern?: string | undefined;
@@ -961,8 +961,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
961
961
  name: string;
962
962
  required: boolean;
963
963
  options?: {
964
- label: string;
965
964
  value: string;
965
+ label: string;
966
966
  }[] | undefined;
967
967
  placeholder?: string | undefined;
968
968
  pattern?: string | undefined;
@@ -972,8 +972,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
972
972
  name: string;
973
973
  required: boolean;
974
974
  options?: {
975
- label: string;
976
975
  value: string;
976
+ label: string;
977
977
  }[] | undefined;
978
978
  placeholder?: string | undefined;
979
979
  pattern?: string | undefined;
@@ -1048,14 +1048,14 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1048
1048
  phoneLabel?: string | undefined;
1049
1049
  phonePlaceholder?: string | undefined;
1050
1050
  instructions?: string | undefined;
1051
- digits?: 4 | 6 | 8 | undefined;
1051
+ digits?: 8 | 4 | 6 | undefined;
1052
1052
  }, {
1053
1053
  enabled?: boolean | undefined;
1054
1054
  resendCooldown?: number | undefined;
1055
1055
  phoneLabel?: string | undefined;
1056
1056
  phonePlaceholder?: string | undefined;
1057
1057
  instructions?: string | undefined;
1058
- digits?: 4 | 6 | 8 | undefined;
1058
+ digits?: 8 | 4 | 6 | undefined;
1059
1059
  }>>;
1060
1060
  qrCode: z.ZodOptional<z.ZodObject<{
1061
1061
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -1123,49 +1123,49 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1123
1123
  scopes: z.ZodArray<z.ZodString, "many">;
1124
1124
  category: z.ZodOptional<z.ZodString>;
1125
1125
  }, "strip", z.ZodTypeAny, {
1126
+ id: string;
1126
1127
  label: string;
1127
1128
  description: string;
1128
1129
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1129
1130
  riskLevel: "low" | "medium" | "high" | "critical";
1130
- id: string;
1131
1131
  defaultOn: boolean;
1132
1132
  cedar: string;
1133
1133
  scopes: string[];
1134
1134
  category?: string | undefined;
1135
1135
  }, {
1136
+ id: string;
1136
1137
  label: string;
1137
1138
  description: string;
1138
1139
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1139
1140
  riskLevel: "low" | "medium" | "high" | "critical";
1140
- id: string;
1141
1141
  defaultOn: boolean;
1142
1142
  cedar: string;
1143
1143
  scopes: string[];
1144
1144
  category?: string | undefined;
1145
1145
  }>, "many">;
1146
1146
  }, "strip", z.ZodTypeAny, {
1147
- label: string;
1148
1147
  id: string;
1148
+ label: string;
1149
1149
  capabilities: {
1150
+ id: string;
1150
1151
  label: string;
1151
1152
  description: string;
1152
1153
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1153
1154
  riskLevel: "low" | "medium" | "high" | "critical";
1154
- id: string;
1155
1155
  defaultOn: boolean;
1156
1156
  cedar: string;
1157
1157
  scopes: string[];
1158
1158
  category?: string | undefined;
1159
1159
  }[];
1160
1160
  }, {
1161
- label: string;
1162
1161
  id: string;
1162
+ label: string;
1163
1163
  capabilities: {
1164
+ id: string;
1164
1165
  label: string;
1165
1166
  description: string;
1166
1167
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1167
1168
  riskLevel: "low" | "medium" | "high" | "critical";
1168
- id: string;
1169
1169
  defaultOn: boolean;
1170
1170
  cedar: string;
1171
1171
  scopes: string[];
@@ -1236,7 +1236,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1236
1236
  phoneLabel?: string | undefined;
1237
1237
  phonePlaceholder?: string | undefined;
1238
1238
  instructions?: string | undefined;
1239
- digits?: 4 | 6 | 8 | undefined;
1239
+ digits?: 8 | 4 | 6 | undefined;
1240
1240
  } | undefined;
1241
1241
  passkey?: {
1242
1242
  buttonText?: string | undefined;
@@ -1265,14 +1265,14 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1265
1265
  showManualEntry?: boolean | undefined;
1266
1266
  } | undefined;
1267
1267
  capabilities?: {
1268
- label: string;
1269
1268
  id: string;
1269
+ label: string;
1270
1270
  capabilities: {
1271
+ id: string;
1271
1272
  label: string;
1272
1273
  description: string;
1273
1274
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1274
1275
  riskLevel: "low" | "medium" | "high" | "critical";
1275
- id: string;
1276
1276
  defaultOn: boolean;
1277
1277
  cedar: string;
1278
1278
  scopes: string[];
@@ -1317,8 +1317,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1317
1317
  name: string;
1318
1318
  required: boolean;
1319
1319
  options?: {
1320
- label: string;
1321
1320
  value: string;
1321
+ label: string;
1322
1322
  }[] | undefined;
1323
1323
  placeholder?: string | undefined;
1324
1324
  pattern?: string | undefined;
@@ -1362,7 +1362,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1362
1362
  phoneLabel?: string | undefined;
1363
1363
  phonePlaceholder?: string | undefined;
1364
1364
  instructions?: string | undefined;
1365
- digits?: 4 | 6 | 8 | undefined;
1365
+ digits?: 8 | 4 | 6 | undefined;
1366
1366
  } | undefined;
1367
1367
  passkey?: {
1368
1368
  buttonText?: string | undefined;
@@ -1391,14 +1391,14 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1391
1391
  showManualEntry?: boolean | undefined;
1392
1392
  } | undefined;
1393
1393
  capabilities?: {
1394
- label: string;
1395
1394
  id: string;
1395
+ label: string;
1396
1396
  capabilities: {
1397
+ id: string;
1397
1398
  label: string;
1398
1399
  description: string;
1399
1400
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1400
1401
  riskLevel: "low" | "medium" | "high" | "critical";
1401
- id: string;
1402
1402
  defaultOn: boolean;
1403
1403
  cedar: string;
1404
1404
  scopes: string[];
@@ -1443,8 +1443,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1443
1443
  name: string;
1444
1444
  required: boolean;
1445
1445
  options?: {
1446
- label: string;
1447
1446
  value: string;
1447
+ label: string;
1448
1448
  }[] | undefined;
1449
1449
  placeholder?: string | undefined;
1450
1450
  pattern?: string | undefined;
@@ -96,14 +96,14 @@ export declare const OTPConfigSchema: z.ZodObject<{
96
96
  phoneLabel?: string | undefined;
97
97
  phonePlaceholder?: string | undefined;
98
98
  instructions?: string | undefined;
99
- digits?: 4 | 6 | 8 | undefined;
99
+ digits?: 8 | 4 | 6 | undefined;
100
100
  }, {
101
101
  enabled?: boolean | undefined;
102
102
  resendCooldown?: number | undefined;
103
103
  phoneLabel?: string | undefined;
104
104
  phonePlaceholder?: string | undefined;
105
105
  instructions?: string | undefined;
106
- digits?: 4 | 6 | 8 | undefined;
106
+ digits?: 8 | 4 | 6 | undefined;
107
107
  }>;
108
108
  export type OTPConfigSchemaType = z.infer<typeof OTPConfigSchema>;
109
109
  /**
@@ -243,14 +243,14 @@ export declare const ModeConfigsSchema: z.ZodObject<{
243
243
  phoneLabel?: string | undefined;
244
244
  phonePlaceholder?: string | undefined;
245
245
  instructions?: string | undefined;
246
- digits?: 4 | 6 | 8 | undefined;
246
+ digits?: 8 | 4 | 6 | undefined;
247
247
  }, {
248
248
  enabled?: boolean | undefined;
249
249
  resendCooldown?: number | undefined;
250
250
  phoneLabel?: string | undefined;
251
251
  phonePlaceholder?: string | undefined;
252
252
  instructions?: string | undefined;
253
- digits?: 4 | 6 | 8 | undefined;
253
+ digits?: 8 | 4 | 6 | undefined;
254
254
  }>>;
255
255
  qrCode: z.ZodOptional<z.ZodObject<{
256
256
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -324,7 +324,7 @@ export declare const ModeConfigsSchema: z.ZodObject<{
324
324
  phoneLabel?: string | undefined;
325
325
  phonePlaceholder?: string | undefined;
326
326
  instructions?: string | undefined;
327
- digits?: 4 | 6 | 8 | undefined;
327
+ digits?: 8 | 4 | 6 | undefined;
328
328
  } | undefined;
329
329
  passkey?: {
330
330
  buttonText?: string | undefined;
@@ -373,7 +373,7 @@ export declare const ModeConfigsSchema: z.ZodObject<{
373
373
  phoneLabel?: string | undefined;
374
374
  phonePlaceholder?: string | undefined;
375
375
  instructions?: string | undefined;
376
- digits?: 4 | 6 | 8 | undefined;
376
+ digits?: 8 | 4 | 6 | undefined;
377
377
  } | undefined;
378
378
  passkey?: {
379
379
  buttonText?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/consent",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
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",