@kya-os/consent 0.1.46 → 0.1.48

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.
Files changed (112) hide show
  1. package/README.md +89 -0
  2. package/dist/bundle/index.d.ts +2 -0
  3. package/dist/bundle/index.d.ts.map +1 -1
  4. package/dist/bundle/index.js +1 -0
  5. package/dist/bundle/index.js.map +1 -1
  6. package/dist/bundle/inline.d.ts.map +1 -1
  7. package/dist/bundle/inline.js +4 -4
  8. package/dist/bundle/inline.js.map +1 -1
  9. package/dist/capabilities/registry.d.ts.map +1 -1
  10. package/dist/capabilities/registry.js +5 -1
  11. package/dist/capabilities/registry.js.map +1 -1
  12. package/dist/cedar/compile.d.ts +67 -2
  13. package/dist/cedar/compile.d.ts.map +1 -1
  14. package/dist/cedar/compile.js +34 -5
  15. package/dist/cedar/compile.js.map +1 -1
  16. package/dist/cedar/index.d.ts +1 -0
  17. package/dist/cedar/index.d.ts.map +1 -1
  18. package/dist/cedar/index.js.map +1 -1
  19. package/dist/cjs/bundle/index.js +3 -1
  20. package/dist/cjs/bundle/index.js.map +1 -1
  21. package/dist/cjs/bundle/inline.js +4 -4
  22. package/dist/cjs/bundle/inline.js.map +1 -1
  23. package/dist/cjs/capabilities/registry.js +5 -1
  24. package/dist/cjs/capabilities/registry.js.map +1 -1
  25. package/dist/cjs/cedar/compile.js +34 -5
  26. package/dist/cjs/cedar/compile.js.map +1 -1
  27. package/dist/cjs/cedar/index.js.map +1 -1
  28. package/dist/cjs/components/consent-action-bar.js +16 -5
  29. package/dist/cjs/components/consent-action-bar.js.map +1 -1
  30. package/dist/cjs/components/consent-capabilities-screen.js +92 -37
  31. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
  32. package/dist/cjs/components/consent-capability-card.js +35 -4
  33. package/dist/cjs/components/consent-capability-card.js.map +1 -1
  34. package/dist/cjs/components/mcp-consent.js +91 -25
  35. package/dist/cjs/components/mcp-consent.js.map +1 -1
  36. package/dist/cjs/constants/capabilities.js +10 -0
  37. package/dist/cjs/constants/capabilities.js.map +1 -0
  38. package/dist/cjs/constants/index.js +3 -1
  39. package/dist/cjs/constants/index.js.map +1 -1
  40. package/dist/cjs/mcp-app/inline.js +2 -2
  41. package/dist/cjs/mcp-app/inline.js.map +1 -1
  42. package/dist/cjs/resolution/credential-capabilities.js +16 -0
  43. package/dist/cjs/resolution/credential-capabilities.js.map +1 -1
  44. package/dist/cjs/resolution/selected-capabilities.js +73 -0
  45. package/dist/cjs/resolution/selected-capabilities.js.map +1 -0
  46. package/dist/cjs/schemas/capabilities.schemas.js +14 -2
  47. package/dist/cjs/schemas/capabilities.schemas.js.map +1 -1
  48. package/dist/cjs/security/identity-assertion.js +69 -0
  49. package/dist/cjs/security/identity-assertion.js.map +1 -0
  50. package/dist/cjs/security/index.js +1 -0
  51. package/dist/cjs/security/index.js.map +1 -1
  52. package/dist/cjs/types/capabilities.types.js +55 -0
  53. package/dist/cjs/types/capabilities.types.js.map +1 -1
  54. package/dist/components/consent-action-bar.d.ts +2 -0
  55. package/dist/components/consent-action-bar.d.ts.map +1 -1
  56. package/dist/components/consent-action-bar.js +16 -5
  57. package/dist/components/consent-action-bar.js.map +1 -1
  58. package/dist/components/consent-capabilities-screen.d.ts +18 -5
  59. package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
  60. package/dist/components/consent-capabilities-screen.js +92 -37
  61. package/dist/components/consent-capabilities-screen.js.map +1 -1
  62. package/dist/components/consent-capability-card.d.ts +2 -0
  63. package/dist/components/consent-capability-card.d.ts.map +1 -1
  64. package/dist/components/consent-capability-card.js +35 -4
  65. package/dist/components/consent-capability-card.js.map +1 -1
  66. package/dist/components/mcp-consent.d.ts +30 -0
  67. package/dist/components/mcp-consent.d.ts.map +1 -1
  68. package/dist/components/mcp-consent.js +92 -26
  69. package/dist/components/mcp-consent.js.map +1 -1
  70. package/dist/consent.js +280 -48
  71. package/dist/consent.min.js +200 -153
  72. package/dist/constants/capabilities.d.ts +7 -0
  73. package/dist/constants/capabilities.d.ts.map +1 -0
  74. package/dist/constants/capabilities.js +7 -0
  75. package/dist/constants/capabilities.js.map +1 -0
  76. package/dist/constants/index.d.ts +1 -0
  77. package/dist/constants/index.d.ts.map +1 -1
  78. package/dist/constants/index.js +1 -0
  79. package/dist/constants/index.js.map +1 -1
  80. package/dist/mcp-app/inline.d.ts.map +1 -1
  81. package/dist/mcp-app/inline.js +2 -2
  82. package/dist/mcp-app/inline.js.map +1 -1
  83. package/dist/resolution/credential-capabilities.d.ts +15 -2
  84. package/dist/resolution/credential-capabilities.d.ts.map +1 -1
  85. package/dist/resolution/credential-capabilities.js +15 -0
  86. package/dist/resolution/credential-capabilities.js.map +1 -1
  87. package/dist/resolution/selected-capabilities.d.ts +26 -0
  88. package/dist/resolution/selected-capabilities.d.ts.map +1 -0
  89. package/dist/resolution/selected-capabilities.js +69 -0
  90. package/dist/resolution/selected-capabilities.js.map +1 -0
  91. package/dist/schemas/api.schemas.d.ts +88 -68
  92. package/dist/schemas/api.schemas.d.ts.map +1 -1
  93. package/dist/schemas/branding.schemas.d.ts +2 -2
  94. package/dist/schemas/capabilities.schemas.d.ts +58 -12
  95. package/dist/schemas/capabilities.schemas.d.ts.map +1 -1
  96. package/dist/schemas/capabilities.schemas.js +14 -2
  97. package/dist/schemas/capabilities.schemas.js.map +1 -1
  98. package/dist/schemas/config.schemas.d.ts +140 -100
  99. package/dist/schemas/config.schemas.d.ts.map +1 -1
  100. package/dist/security/identity-assertion.d.ts +49 -0
  101. package/dist/security/identity-assertion.d.ts.map +1 -0
  102. package/dist/security/identity-assertion.js +66 -0
  103. package/dist/security/identity-assertion.js.map +1 -0
  104. package/dist/security/index.d.ts +1 -0
  105. package/dist/security/index.d.ts.map +1 -1
  106. package/dist/security/index.js +1 -0
  107. package/dist/security/index.js.map +1 -1
  108. package/dist/types/capabilities.types.d.ts +69 -0
  109. package/dist/types/capabilities.types.d.ts.map +1 -1
  110. package/dist/types/capabilities.types.js +53 -1
  111. package/dist/types/capabilities.types.js.map +1 -1
  112. package/package.json +6 -4
@@ -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
- value: string;
99
98
  label: string;
100
- }, {
101
99
  value: string;
100
+ }, {
102
101
  label: string;
102
+ value: string;
103
103
  }>;
104
104
  /**
105
105
  * Custom Field Schema
@@ -114,54 +114,54 @@ export declare const ConsentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
114
114
  value: z.ZodString;
115
115
  label: z.ZodString;
116
116
  }, "strip", z.ZodTypeAny, {
117
- value: string;
118
117
  label: string;
119
- }, {
120
118
  value: string;
119
+ }, {
121
120
  label: string;
121
+ value: string;
122
122
  }>, "many">>;
123
123
  pattern: z.ZodOptional<z.ZodString>;
124
124
  }, "strip", z.ZodTypeAny, {
125
- type: "text" | "textarea" | "checkbox" | "select" | "email";
126
- label: string;
127
125
  name: string;
126
+ label: string;
127
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
128
128
  required: boolean;
129
129
  options?: {
130
- value: string;
131
130
  label: string;
131
+ value: string;
132
132
  }[] | undefined;
133
133
  placeholder?: string | undefined;
134
134
  pattern?: string | undefined;
135
135
  }, {
136
- type: "text" | "textarea" | "checkbox" | "select" | "email";
137
- label: string;
138
136
  name: string;
137
+ label: string;
138
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
139
139
  required: boolean;
140
140
  options?: {
141
- value: string;
142
141
  label: string;
142
+ value: string;
143
143
  }[] | undefined;
144
144
  placeholder?: string | undefined;
145
145
  pattern?: string | undefined;
146
146
  }>, {
147
- type: "text" | "textarea" | "checkbox" | "select" | "email";
148
- label: string;
149
147
  name: string;
148
+ label: string;
149
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
150
150
  required: boolean;
151
151
  options?: {
152
- value: string;
153
152
  label: string;
153
+ value: string;
154
154
  }[] | undefined;
155
155
  placeholder?: string | undefined;
156
156
  pattern?: string | undefined;
157
157
  }, {
158
- type: "text" | "textarea" | "checkbox" | "select" | "email";
159
- label: string;
160
158
  name: string;
159
+ label: string;
160
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
161
161
  required: boolean;
162
162
  options?: {
163
- value: string;
164
163
  label: string;
164
+ value: string;
165
165
  }[] | undefined;
166
166
  placeholder?: string | undefined;
167
167
  pattern?: string | undefined;
@@ -196,14 +196,14 @@ export declare const ConsentConfigSchema: z.ZodObject<{
196
196
  logoUrl: z.ZodOptional<z.ZodString>;
197
197
  companyName: z.ZodOptional<z.ZodString>;
198
198
  }, "strip", z.ZodTypeAny, {
199
+ logoUrl?: string | undefined;
199
200
  primaryColor?: string | undefined;
200
201
  secondaryColor?: string | undefined;
201
- logoUrl?: string | undefined;
202
202
  companyName?: string | undefined;
203
203
  }, {
204
+ logoUrl?: string | undefined;
204
205
  primaryColor?: string | undefined;
205
206
  secondaryColor?: string | undefined;
206
- logoUrl?: string | undefined;
207
207
  companyName?: string | undefined;
208
208
  }>>;
209
209
  ui: z.ZodOptional<z.ZodObject<{
@@ -285,54 +285,54 @@ export declare const ConsentConfigSchema: z.ZodObject<{
285
285
  value: z.ZodString;
286
286
  label: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
288
- value: string;
289
288
  label: string;
290
- }, {
291
289
  value: string;
290
+ }, {
292
291
  label: string;
292
+ value: string;
293
293
  }>, "many">>;
294
294
  pattern: z.ZodOptional<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- type: "text" | "textarea" | "checkbox" | "select" | "email";
297
- label: string;
298
296
  name: string;
297
+ label: string;
298
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
299
299
  required: boolean;
300
300
  options?: {
301
- value: string;
302
301
  label: string;
302
+ value: string;
303
303
  }[] | undefined;
304
304
  placeholder?: string | undefined;
305
305
  pattern?: string | undefined;
306
306
  }, {
307
- type: "text" | "textarea" | "checkbox" | "select" | "email";
308
- label: string;
309
307
  name: string;
308
+ label: string;
309
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
310
310
  required: boolean;
311
311
  options?: {
312
- value: string;
313
312
  label: string;
313
+ value: string;
314
314
  }[] | undefined;
315
315
  placeholder?: string | undefined;
316
316
  pattern?: string | undefined;
317
317
  }>, {
318
- type: "text" | "textarea" | "checkbox" | "select" | "email";
319
- label: string;
320
318
  name: string;
319
+ label: string;
320
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
321
321
  required: boolean;
322
322
  options?: {
323
- value: string;
324
323
  label: string;
324
+ value: string;
325
325
  }[] | undefined;
326
326
  placeholder?: string | undefined;
327
327
  pattern?: string | undefined;
328
328
  }, {
329
- type: "text" | "textarea" | "checkbox" | "select" | "email";
330
- label: string;
331
329
  name: string;
330
+ label: string;
331
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
332
332
  required: boolean;
333
333
  options?: {
334
- value: string;
335
334
  label: string;
335
+ value: string;
336
336
  }[] | undefined;
337
337
  placeholder?: string | undefined;
338
338
  pattern?: string | undefined;
@@ -471,7 +471,7 @@ export declare const ConsentConfigSchema: z.ZodObject<{
471
471
  capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
472
  id: z.ZodString;
473
473
  label: z.ZodString;
474
- capabilities: z.ZodArray<z.ZodObject<{
474
+ capabilities: z.ZodArray<z.ZodEffects<z.ZodObject<{
475
475
  id: z.ZodString;
476
476
  label: z.ZodString;
477
477
  description: z.ZodString;
@@ -482,23 +482,43 @@ 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
+ cedar: string;
485
486
  id: string;
486
487
  label: string;
487
488
  description: string;
488
489
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
489
490
  riskLevel: "low" | "medium" | "high" | "critical";
490
491
  defaultOn: boolean;
491
- cedar: string;
492
492
  scopes: string[];
493
493
  category?: string | undefined;
494
494
  }, {
495
+ cedar: string;
495
496
  id: string;
496
497
  label: string;
497
498
  description: string;
498
499
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
499
500
  riskLevel: "low" | "medium" | "high" | "critical";
500
501
  defaultOn: boolean;
502
+ scopes: string[];
503
+ category?: string | undefined;
504
+ }>, {
501
505
  cedar: string;
506
+ id: string;
507
+ label: string;
508
+ description: string;
509
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
510
+ riskLevel: "low" | "medium" | "high" | "critical";
511
+ defaultOn: boolean;
512
+ scopes: string[];
513
+ category?: string | undefined;
514
+ }, {
515
+ cedar: string;
516
+ id: string;
517
+ label: string;
518
+ description: string;
519
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
520
+ riskLevel: "low" | "medium" | "high" | "critical";
521
+ defaultOn: boolean;
502
522
  scopes: string[];
503
523
  category?: string | undefined;
504
524
  }>, "many">;
@@ -506,13 +526,13 @@ export declare const ConsentConfigSchema: z.ZodObject<{
506
526
  id: string;
507
527
  label: string;
508
528
  capabilities: {
529
+ cedar: string;
509
530
  id: string;
510
531
  label: string;
511
532
  description: string;
512
533
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
513
534
  riskLevel: "low" | "medium" | "high" | "critical";
514
535
  defaultOn: boolean;
515
- cedar: string;
516
536
  scopes: string[];
517
537
  category?: string | undefined;
518
538
  }[];
@@ -520,13 +540,13 @@ export declare const ConsentConfigSchema: z.ZodObject<{
520
540
  id: string;
521
541
  label: string;
522
542
  capabilities: {
543
+ cedar: string;
523
544
  id: string;
524
545
  label: string;
525
546
  description: string;
526
547
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
527
548
  riskLevel: "low" | "medium" | "high" | "critical";
528
549
  defaultOn: boolean;
529
- cedar: string;
530
550
  scopes: string[];
531
551
  category?: string | undefined;
532
552
  }[];
@@ -540,21 +560,21 @@ export declare const ConsentConfigSchema: z.ZodObject<{
540
560
  logoUrl: z.ZodOptional<z.ZodString>;
541
561
  connectedAt: z.ZodOptional<z.ZodString>;
542
562
  }, "strip", z.ZodTypeAny, {
563
+ verified: boolean;
543
564
  name: string;
544
565
  did: string;
545
- verified: boolean;
546
- logoUrl?: string | undefined;
566
+ connectedAt?: string | undefined;
547
567
  vendor?: string | undefined;
548
568
  surfaceLabel?: string | undefined;
549
- connectedAt?: string | undefined;
569
+ logoUrl?: string | undefined;
550
570
  }, {
571
+ verified: boolean;
551
572
  name: string;
552
573
  did: string;
553
- verified: boolean;
554
- logoUrl?: string | undefined;
574
+ connectedAt?: string | undefined;
555
575
  vendor?: string | undefined;
556
576
  surfaceLabel?: string | undefined;
557
- connectedAt?: string | undefined;
577
+ logoUrl?: string | undefined;
558
578
  }>>;
559
579
  theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
560
580
  headlineVerb: z.ZodOptional<z.ZodString>;
@@ -626,22 +646,22 @@ export declare const ConsentConfigSchema: z.ZodObject<{
626
646
  id: string;
627
647
  label: string;
628
648
  capabilities: {
649
+ cedar: string;
629
650
  id: string;
630
651
  label: string;
631
652
  description: string;
632
653
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
633
654
  riskLevel: "low" | "medium" | "high" | "critical";
634
655
  defaultOn: boolean;
635
- cedar: string;
636
656
  scopes: string[];
637
657
  category?: string | undefined;
638
658
  }[];
639
659
  }[] | undefined;
640
660
  theme?: "light" | "dark" | undefined;
641
661
  branding?: {
662
+ logoUrl?: string | undefined;
642
663
  primaryColor?: string | undefined;
643
664
  secondaryColor?: string | undefined;
644
- logoUrl?: string | undefined;
645
665
  companyName?: string | undefined;
646
666
  } | undefined;
647
667
  ui?: {
@@ -670,26 +690,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
670
690
  continueButtonText?: string | undefined;
671
691
  } | undefined;
672
692
  customFields?: {
673
- type: "text" | "textarea" | "checkbox" | "select" | "email";
674
- label: string;
675
693
  name: string;
694
+ label: string;
695
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
676
696
  required: boolean;
677
697
  options?: {
678
- value: string;
679
698
  label: string;
699
+ value: string;
680
700
  }[] | undefined;
681
701
  placeholder?: string | undefined;
682
702
  pattern?: string | undefined;
683
703
  }[] | undefined;
684
704
  expirationDays?: number | undefined;
685
705
  agentMetadata?: {
706
+ verified: boolean;
686
707
  name: string;
687
708
  did: string;
688
- verified: boolean;
689
- logoUrl?: string | undefined;
709
+ connectedAt?: string | undefined;
690
710
  vendor?: string | undefined;
691
711
  surfaceLabel?: string | undefined;
692
- connectedAt?: string | undefined;
712
+ logoUrl?: string | undefined;
693
713
  } | undefined;
694
714
  headlineVerb?: string | undefined;
695
715
  revocationPath?: string | undefined;
@@ -752,22 +772,22 @@ export declare const ConsentConfigSchema: z.ZodObject<{
752
772
  id: string;
753
773
  label: string;
754
774
  capabilities: {
775
+ cedar: string;
755
776
  id: string;
756
777
  label: string;
757
778
  description: string;
758
779
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
759
780
  riskLevel: "low" | "medium" | "high" | "critical";
760
781
  defaultOn: boolean;
761
- cedar: string;
762
782
  scopes: string[];
763
783
  category?: string | undefined;
764
784
  }[];
765
785
  }[] | undefined;
766
786
  theme?: "light" | "dark" | undefined;
767
787
  branding?: {
788
+ logoUrl?: string | undefined;
768
789
  primaryColor?: string | undefined;
769
790
  secondaryColor?: string | undefined;
770
- logoUrl?: string | undefined;
771
791
  companyName?: string | undefined;
772
792
  } | undefined;
773
793
  ui?: {
@@ -796,26 +816,26 @@ export declare const ConsentConfigSchema: z.ZodObject<{
796
816
  continueButtonText?: string | undefined;
797
817
  } | undefined;
798
818
  customFields?: {
799
- type: "text" | "textarea" | "checkbox" | "select" | "email";
800
- label: string;
801
819
  name: string;
820
+ label: string;
821
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
802
822
  required: boolean;
803
823
  options?: {
804
- value: string;
805
824
  label: string;
825
+ value: string;
806
826
  }[] | undefined;
807
827
  placeholder?: string | undefined;
808
828
  pattern?: string | undefined;
809
829
  }[] | undefined;
810
830
  expirationDays?: number | undefined;
811
831
  agentMetadata?: {
832
+ verified: boolean;
812
833
  name: string;
813
834
  did: string;
814
- verified: boolean;
815
- logoUrl?: string | undefined;
835
+ connectedAt?: string | undefined;
816
836
  vendor?: string | undefined;
817
837
  surfaceLabel?: string | undefined;
818
- connectedAt?: string | undefined;
838
+ logoUrl?: string | undefined;
819
839
  } | undefined;
820
840
  headlineVerb?: string | undefined;
821
841
  revocationPath?: string | undefined;
@@ -837,14 +857,14 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
837
857
  logoUrl: z.ZodOptional<z.ZodString>;
838
858
  companyName: z.ZodOptional<z.ZodString>;
839
859
  }, "strip", z.ZodTypeAny, {
860
+ logoUrl?: string | undefined;
840
861
  primaryColor?: string | undefined;
841
862
  secondaryColor?: string | undefined;
842
- logoUrl?: string | undefined;
843
863
  companyName?: string | undefined;
844
864
  }, {
865
+ logoUrl?: string | undefined;
845
866
  primaryColor?: string | undefined;
846
867
  secondaryColor?: string | undefined;
847
- logoUrl?: string | undefined;
848
868
  companyName?: string | undefined;
849
869
  }>>;
850
870
  ui: z.ZodOptional<z.ZodObject<{
@@ -926,54 +946,54 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
926
946
  value: z.ZodString;
927
947
  label: z.ZodString;
928
948
  }, "strip", z.ZodTypeAny, {
929
- value: string;
930
949
  label: string;
931
- }, {
932
950
  value: string;
951
+ }, {
933
952
  label: string;
953
+ value: string;
934
954
  }>, "many">>;
935
955
  pattern: z.ZodOptional<z.ZodString>;
936
956
  }, "strip", z.ZodTypeAny, {
937
- type: "text" | "textarea" | "checkbox" | "select" | "email";
938
- label: string;
939
957
  name: string;
958
+ label: string;
959
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
940
960
  required: boolean;
941
961
  options?: {
942
- value: string;
943
962
  label: string;
963
+ value: string;
944
964
  }[] | undefined;
945
965
  placeholder?: string | undefined;
946
966
  pattern?: string | undefined;
947
967
  }, {
948
- type: "text" | "textarea" | "checkbox" | "select" | "email";
949
- label: string;
950
968
  name: string;
969
+ label: string;
970
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
951
971
  required: boolean;
952
972
  options?: {
953
- value: string;
954
973
  label: string;
974
+ value: string;
955
975
  }[] | undefined;
956
976
  placeholder?: string | undefined;
957
977
  pattern?: string | undefined;
958
978
  }>, {
959
- type: "text" | "textarea" | "checkbox" | "select" | "email";
960
- label: string;
961
979
  name: string;
980
+ label: string;
981
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
962
982
  required: boolean;
963
983
  options?: {
964
- value: string;
965
984
  label: string;
985
+ value: string;
966
986
  }[] | undefined;
967
987
  placeholder?: string | undefined;
968
988
  pattern?: string | undefined;
969
989
  }, {
970
- type: "text" | "textarea" | "checkbox" | "select" | "email";
971
- label: string;
972
990
  name: string;
991
+ label: string;
992
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
973
993
  required: boolean;
974
994
  options?: {
975
- value: string;
976
995
  label: string;
996
+ value: string;
977
997
  }[] | undefined;
978
998
  placeholder?: string | undefined;
979
999
  pattern?: string | undefined;
@@ -1112,7 +1132,7 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1112
1132
  capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1113
1133
  id: z.ZodString;
1114
1134
  label: z.ZodString;
1115
- capabilities: z.ZodArray<z.ZodObject<{
1135
+ capabilities: z.ZodArray<z.ZodEffects<z.ZodObject<{
1116
1136
  id: z.ZodString;
1117
1137
  label: z.ZodString;
1118
1138
  description: z.ZodString;
@@ -1123,23 +1143,43 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1123
1143
  scopes: z.ZodArray<z.ZodString, "many">;
1124
1144
  category: z.ZodOptional<z.ZodString>;
1125
1145
  }, "strip", z.ZodTypeAny, {
1146
+ cedar: string;
1126
1147
  id: string;
1127
1148
  label: string;
1128
1149
  description: string;
1129
1150
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1130
1151
  riskLevel: "low" | "medium" | "high" | "critical";
1131
1152
  defaultOn: boolean;
1132
- cedar: string;
1133
1153
  scopes: string[];
1134
1154
  category?: string | undefined;
1135
1155
  }, {
1156
+ cedar: string;
1136
1157
  id: string;
1137
1158
  label: string;
1138
1159
  description: string;
1139
1160
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1140
1161
  riskLevel: "low" | "medium" | "high" | "critical";
1141
1162
  defaultOn: boolean;
1163
+ scopes: string[];
1164
+ category?: string | undefined;
1165
+ }>, {
1142
1166
  cedar: string;
1167
+ id: string;
1168
+ label: string;
1169
+ description: string;
1170
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1171
+ riskLevel: "low" | "medium" | "high" | "critical";
1172
+ defaultOn: boolean;
1173
+ scopes: string[];
1174
+ category?: string | undefined;
1175
+ }, {
1176
+ cedar: string;
1177
+ id: string;
1178
+ label: string;
1179
+ description: string;
1180
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1181
+ riskLevel: "low" | "medium" | "high" | "critical";
1182
+ defaultOn: boolean;
1143
1183
  scopes: string[];
1144
1184
  category?: string | undefined;
1145
1185
  }>, "many">;
@@ -1147,13 +1187,13 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1147
1187
  id: string;
1148
1188
  label: string;
1149
1189
  capabilities: {
1190
+ cedar: string;
1150
1191
  id: string;
1151
1192
  label: string;
1152
1193
  description: string;
1153
1194
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1154
1195
  riskLevel: "low" | "medium" | "high" | "critical";
1155
1196
  defaultOn: boolean;
1156
- cedar: string;
1157
1197
  scopes: string[];
1158
1198
  category?: string | undefined;
1159
1199
  }[];
@@ -1161,13 +1201,13 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1161
1201
  id: string;
1162
1202
  label: string;
1163
1203
  capabilities: {
1204
+ cedar: string;
1164
1205
  id: string;
1165
1206
  label: string;
1166
1207
  description: string;
1167
1208
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1168
1209
  riskLevel: "low" | "medium" | "high" | "critical";
1169
1210
  defaultOn: boolean;
1170
- cedar: string;
1171
1211
  scopes: string[];
1172
1212
  category?: string | undefined;
1173
1213
  }[];
@@ -1181,21 +1221,21 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1181
1221
  logoUrl: z.ZodOptional<z.ZodString>;
1182
1222
  connectedAt: z.ZodOptional<z.ZodString>;
1183
1223
  }, "strip", z.ZodTypeAny, {
1224
+ verified: boolean;
1184
1225
  name: string;
1185
1226
  did: string;
1186
- verified: boolean;
1187
- logoUrl?: string | undefined;
1227
+ connectedAt?: string | undefined;
1188
1228
  vendor?: string | undefined;
1189
1229
  surfaceLabel?: string | undefined;
1190
- connectedAt?: string | undefined;
1230
+ logoUrl?: string | undefined;
1191
1231
  }, {
1232
+ verified: boolean;
1192
1233
  name: string;
1193
1234
  did: string;
1194
- verified: boolean;
1195
- logoUrl?: string | undefined;
1235
+ connectedAt?: string | undefined;
1196
1236
  vendor?: string | undefined;
1197
1237
  surfaceLabel?: string | undefined;
1198
- connectedAt?: string | undefined;
1238
+ logoUrl?: string | undefined;
1199
1239
  }>>;
1200
1240
  theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
1201
1241
  headlineVerb: z.ZodOptional<z.ZodString>;
@@ -1268,22 +1308,22 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1268
1308
  id: string;
1269
1309
  label: string;
1270
1310
  capabilities: {
1311
+ cedar: string;
1271
1312
  id: string;
1272
1313
  label: string;
1273
1314
  description: string;
1274
1315
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1275
1316
  riskLevel: "low" | "medium" | "high" | "critical";
1276
1317
  defaultOn: boolean;
1277
- cedar: string;
1278
1318
  scopes: string[];
1279
1319
  category?: string | undefined;
1280
1320
  }[];
1281
1321
  }[] | undefined;
1282
1322
  theme?: "light" | "dark" | undefined;
1283
1323
  branding?: {
1324
+ logoUrl?: string | undefined;
1284
1325
  primaryColor?: string | undefined;
1285
1326
  secondaryColor?: string | undefined;
1286
- logoUrl?: string | undefined;
1287
1327
  companyName?: string | undefined;
1288
1328
  } | undefined;
1289
1329
  ui?: {
@@ -1312,26 +1352,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1312
1352
  continueButtonText?: string | undefined;
1313
1353
  } | undefined;
1314
1354
  customFields?: {
1315
- type: "text" | "textarea" | "checkbox" | "select" | "email";
1316
- label: string;
1317
1355
  name: string;
1356
+ label: string;
1357
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1318
1358
  required: boolean;
1319
1359
  options?: {
1320
- value: string;
1321
1360
  label: string;
1361
+ value: string;
1322
1362
  }[] | undefined;
1323
1363
  placeholder?: string | undefined;
1324
1364
  pattern?: string | undefined;
1325
1365
  }[] | undefined;
1326
1366
  expirationDays?: number | undefined;
1327
1367
  agentMetadata?: {
1368
+ verified: boolean;
1328
1369
  name: string;
1329
1370
  did: string;
1330
- verified: boolean;
1331
- logoUrl?: string | undefined;
1371
+ connectedAt?: string | undefined;
1332
1372
  vendor?: string | undefined;
1333
1373
  surfaceLabel?: string | undefined;
1334
- connectedAt?: string | undefined;
1374
+ logoUrl?: string | undefined;
1335
1375
  } | undefined;
1336
1376
  headlineVerb?: string | undefined;
1337
1377
  revocationPath?: string | undefined;
@@ -1394,22 +1434,22 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1394
1434
  id: string;
1395
1435
  label: string;
1396
1436
  capabilities: {
1437
+ cedar: string;
1397
1438
  id: string;
1398
1439
  label: string;
1399
1440
  description: string;
1400
1441
  icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1401
1442
  riskLevel: "low" | "medium" | "high" | "critical";
1402
1443
  defaultOn: boolean;
1403
- cedar: string;
1404
1444
  scopes: string[];
1405
1445
  category?: string | undefined;
1406
1446
  }[];
1407
1447
  }[] | undefined;
1408
1448
  theme?: "light" | "dark" | undefined;
1409
1449
  branding?: {
1450
+ logoUrl?: string | undefined;
1410
1451
  primaryColor?: string | undefined;
1411
1452
  secondaryColor?: string | undefined;
1412
- logoUrl?: string | undefined;
1413
1453
  companyName?: string | undefined;
1414
1454
  } | undefined;
1415
1455
  ui?: {
@@ -1438,26 +1478,26 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1438
1478
  continueButtonText?: string | undefined;
1439
1479
  } | undefined;
1440
1480
  customFields?: {
1441
- type: "text" | "textarea" | "checkbox" | "select" | "email";
1442
- label: string;
1443
1481
  name: string;
1482
+ label: string;
1483
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1444
1484
  required: boolean;
1445
1485
  options?: {
1446
- value: string;
1447
1486
  label: string;
1487
+ value: string;
1448
1488
  }[] | undefined;
1449
1489
  placeholder?: string | undefined;
1450
1490
  pattern?: string | undefined;
1451
1491
  }[] | undefined;
1452
1492
  expirationDays?: number | undefined;
1453
1493
  agentMetadata?: {
1494
+ verified: boolean;
1454
1495
  name: string;
1455
1496
  did: string;
1456
- verified: boolean;
1457
- logoUrl?: string | undefined;
1497
+ connectedAt?: string | undefined;
1458
1498
  vendor?: string | undefined;
1459
1499
  surfaceLabel?: string | undefined;
1460
- connectedAt?: string | undefined;
1500
+ logoUrl?: string | undefined;
1461
1501
  } | undefined;
1462
1502
  headlineVerb?: string | undefined;
1463
1503
  revocationPath?: string | undefined;