@kya-os/consent 0.1.38 → 0.1.39

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 (179) hide show
  1. package/dist/bundle/index.d.ts +12 -0
  2. package/dist/bundle/index.d.ts.map +1 -1
  3. package/dist/bundle/index.js +12 -0
  4. package/dist/bundle/index.js.map +1 -1
  5. package/dist/bundle/inline.d.ts.map +1 -1
  6. package/dist/bundle/inline.js +2 -2
  7. package/dist/bundle/inline.js.map +1 -1
  8. package/dist/bundle/shell.d.ts +23 -0
  9. package/dist/bundle/shell.d.ts.map +1 -1
  10. package/dist/bundle/shell.js +25 -1
  11. package/dist/bundle/shell.js.map +1 -1
  12. package/dist/capabilities/index.d.ts +7 -0
  13. package/dist/capabilities/index.d.ts.map +1 -0
  14. package/dist/capabilities/index.js +7 -0
  15. package/dist/capabilities/index.js.map +1 -0
  16. package/dist/capabilities/registry.d.ts +29 -0
  17. package/dist/capabilities/registry.d.ts.map +1 -0
  18. package/dist/capabilities/registry.js +178 -0
  19. package/dist/capabilities/registry.js.map +1 -0
  20. package/dist/cedar/compile.d.ts +30 -0
  21. package/dist/cedar/compile.d.ts.map +1 -0
  22. package/dist/cedar/compile.js +55 -0
  23. package/dist/cedar/compile.js.map +1 -0
  24. package/dist/cedar/explain.d.ts +22 -0
  25. package/dist/cedar/explain.d.ts.map +1 -0
  26. package/dist/cedar/explain.js +72 -0
  27. package/dist/cedar/explain.js.map +1 -0
  28. package/dist/cedar/index.d.ts +8 -0
  29. package/dist/cedar/index.d.ts.map +1 -0
  30. package/dist/cedar/index.js +8 -0
  31. package/dist/cedar/index.js.map +1 -0
  32. package/dist/cjs/bundle/index.js +19 -1
  33. package/dist/cjs/bundle/index.js.map +1 -1
  34. package/dist/cjs/bundle/inline.js +2 -2
  35. package/dist/cjs/bundle/inline.js.map +1 -1
  36. package/dist/cjs/bundle/shell.js +25 -1
  37. package/dist/cjs/bundle/shell.js.map +1 -1
  38. package/dist/cjs/capabilities/index.js +12 -0
  39. package/dist/cjs/capabilities/index.js.map +1 -0
  40. package/dist/cjs/capabilities/registry.js +182 -0
  41. package/dist/cjs/capabilities/registry.js.map +1 -0
  42. package/dist/cjs/cedar/compile.js +59 -0
  43. package/dist/cjs/cedar/compile.js.map +1 -0
  44. package/dist/cjs/cedar/explain.js +75 -0
  45. package/dist/cjs/cedar/explain.js.map +1 -0
  46. package/dist/cjs/cedar/index.js +14 -0
  47. package/dist/cjs/cedar/index.js.map +1 -0
  48. package/dist/cjs/components/consent-action-bar.js +138 -0
  49. package/dist/cjs/components/consent-action-bar.js.map +1 -0
  50. package/dist/cjs/components/consent-agent-header.js +205 -0
  51. package/dist/cjs/components/consent-agent-header.js.map +1 -0
  52. package/dist/cjs/components/consent-capabilities-screen.js +309 -0
  53. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -0
  54. package/dist/cjs/components/consent-capability-card.js +340 -0
  55. package/dist/cjs/components/consent-capability-card.js.map +1 -0
  56. package/dist/cjs/components/consent-footer.js +99 -0
  57. package/dist/cjs/components/consent-footer.js.map +1 -0
  58. package/dist/cjs/components/consent-revocation-notice.js +101 -0
  59. package/dist/cjs/components/consent-revocation-notice.js.map +1 -0
  60. package/dist/cjs/components/index.js +14 -1
  61. package/dist/cjs/components/index.js.map +1 -1
  62. package/dist/cjs/components/mcp-consent.js +176 -7
  63. package/dist/cjs/components/mcp-consent.js.map +1 -1
  64. package/dist/cjs/copy/index.js +12 -0
  65. package/dist/cjs/copy/index.js.map +1 -0
  66. package/dist/cjs/copy/tokens.js +101 -0
  67. package/dist/cjs/copy/tokens.js.map +1 -0
  68. package/dist/cjs/index.js +8 -0
  69. package/dist/cjs/index.js.map +1 -1
  70. package/dist/cjs/mcp-app/inline.js +2 -2
  71. package/dist/cjs/mcp-app/inline.js.map +1 -1
  72. package/dist/cjs/popup/index.js +15 -0
  73. package/dist/cjs/popup/index.js.map +1 -0
  74. package/dist/cjs/popup/launcher.js +77 -0
  75. package/dist/cjs/popup/launcher.js.map +1 -0
  76. package/dist/cjs/schemas/capabilities.schemas.js +129 -0
  77. package/dist/cjs/schemas/capabilities.schemas.js.map +1 -0
  78. package/dist/cjs/schemas/config.schemas.js +18 -0
  79. package/dist/cjs/schemas/config.schemas.js.map +1 -1
  80. package/dist/cjs/schemas/index.js +1 -0
  81. package/dist/cjs/schemas/index.js.map +1 -1
  82. package/dist/cjs/styles/index.js +1 -0
  83. package/dist/cjs/styles/index.js.map +1 -1
  84. package/dist/cjs/styles/theme.js +86 -0
  85. package/dist/cjs/styles/theme.js.map +1 -0
  86. package/dist/cjs/types/capabilities.types.js +12 -0
  87. package/dist/cjs/types/capabilities.types.js.map +1 -0
  88. package/dist/cjs/types/index.js +1 -0
  89. package/dist/cjs/types/index.js.map +1 -1
  90. package/dist/components/consent-action-bar.d.ts +30 -0
  91. package/dist/components/consent-action-bar.d.ts.map +1 -0
  92. package/dist/components/consent-action-bar.js +135 -0
  93. package/dist/components/consent-action-bar.js.map +1 -0
  94. package/dist/components/consent-agent-header.d.ts +31 -0
  95. package/dist/components/consent-agent-header.d.ts.map +1 -0
  96. package/dist/components/consent-agent-header.js +202 -0
  97. package/dist/components/consent-agent-header.js.map +1 -0
  98. package/dist/components/consent-capabilities-screen.d.ts +62 -0
  99. package/dist/components/consent-capabilities-screen.d.ts.map +1 -0
  100. package/dist/components/consent-capabilities-screen.js +306 -0
  101. package/dist/components/consent-capabilities-screen.js.map +1 -0
  102. package/dist/components/consent-capability-card.d.ts +44 -0
  103. package/dist/components/consent-capability-card.d.ts.map +1 -0
  104. package/dist/components/consent-capability-card.js +337 -0
  105. package/dist/components/consent-capability-card.js.map +1 -0
  106. package/dist/components/consent-footer.d.ts +22 -0
  107. package/dist/components/consent-footer.d.ts.map +1 -0
  108. package/dist/components/consent-footer.js +96 -0
  109. package/dist/components/consent-footer.js.map +1 -0
  110. package/dist/components/consent-revocation-notice.d.ts +22 -0
  111. package/dist/components/consent-revocation-notice.d.ts.map +1 -0
  112. package/dist/components/consent-revocation-notice.js +98 -0
  113. package/dist/components/consent-revocation-notice.js.map +1 -0
  114. package/dist/components/index.d.ts +6 -0
  115. package/dist/components/index.d.ts.map +1 -1
  116. package/dist/components/index.js +7 -0
  117. package/dist/components/index.js.map +1 -1
  118. package/dist/components/mcp-consent.d.ts +41 -0
  119. package/dist/components/mcp-consent.d.ts.map +1 -1
  120. package/dist/components/mcp-consent.js +176 -7
  121. package/dist/components/mcp-consent.js.map +1 -1
  122. package/dist/consent.js +1374 -7
  123. package/dist/consent.min.js +727 -96
  124. package/dist/copy/index.d.ts +8 -0
  125. package/dist/copy/index.d.ts.map +1 -0
  126. package/dist/copy/index.js +7 -0
  127. package/dist/copy/index.js.map +1 -0
  128. package/dist/copy/tokens.d.ts +93 -0
  129. package/dist/copy/tokens.d.ts.map +1 -0
  130. package/dist/copy/tokens.js +97 -0
  131. package/dist/copy/tokens.js.map +1 -0
  132. package/dist/index.d.ts +4 -0
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +8 -0
  135. package/dist/index.js.map +1 -1
  136. package/dist/mcp-app/inline.d.ts.map +1 -1
  137. package/dist/mcp-app/inline.js +2 -2
  138. package/dist/mcp-app/inline.js.map +1 -1
  139. package/dist/popup/index.d.ts +8 -0
  140. package/dist/popup/index.d.ts.map +1 -0
  141. package/dist/popup/index.js +7 -0
  142. package/dist/popup/index.js.map +1 -0
  143. package/dist/popup/launcher.d.ts +81 -0
  144. package/dist/popup/launcher.d.ts.map +1 -0
  145. package/dist/popup/launcher.js +71 -0
  146. package/dist/popup/launcher.js.map +1 -0
  147. package/dist/schemas/api.schemas.d.ts +354 -150
  148. package/dist/schemas/api.schemas.d.ts.map +1 -1
  149. package/dist/schemas/capabilities.schemas.d.ts +186 -0
  150. package/dist/schemas/capabilities.schemas.d.ts.map +1 -0
  151. package/dist/schemas/capabilities.schemas.js +123 -0
  152. package/dist/schemas/capabilities.schemas.js.map +1 -0
  153. package/dist/schemas/config.schemas.d.ts +452 -156
  154. package/dist/schemas/config.schemas.d.ts.map +1 -1
  155. package/dist/schemas/config.schemas.js +18 -0
  156. package/dist/schemas/config.schemas.js.map +1 -1
  157. package/dist/schemas/index.d.ts +1 -0
  158. package/dist/schemas/index.d.ts.map +1 -1
  159. package/dist/schemas/index.js +1 -0
  160. package/dist/schemas/index.js.map +1 -1
  161. package/dist/styles/index.d.ts +1 -0
  162. package/dist/styles/index.d.ts.map +1 -1
  163. package/dist/styles/index.js +1 -0
  164. package/dist/styles/index.js.map +1 -1
  165. package/dist/styles/theme.d.ts +72 -0
  166. package/dist/styles/theme.d.ts.map +1 -0
  167. package/dist/styles/theme.js +81 -0
  168. package/dist/styles/theme.js.map +1 -0
  169. package/dist/types/capabilities.types.d.ts +126 -0
  170. package/dist/types/capabilities.types.d.ts.map +1 -0
  171. package/dist/types/capabilities.types.js +11 -0
  172. package/dist/types/capabilities.types.js.map +1 -0
  173. package/dist/types/config.types.d.ts +33 -0
  174. package/dist/types/config.types.d.ts.map +1 -1
  175. package/dist/types/index.d.ts +1 -0
  176. package/dist/types/index.d.ts.map +1 -1
  177. package/dist/types/index.js +1 -0
  178. package/dist/types/index.js.map +1 -1
  179. package/package.json +1 -1
@@ -21,8 +21,8 @@ export declare const ConsentUISchema: z.ZodObject<{
21
21
  popupEnabled: z.ZodOptional<z.ZodBoolean>;
22
22
  theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- title?: string | undefined;
25
24
  description?: string | undefined;
25
+ title?: string | undefined;
26
26
  expirationText?: string | undefined;
27
27
  cancelButtonText?: string | undefined;
28
28
  submitButtonText?: string | undefined;
@@ -31,8 +31,8 @@ export declare const ConsentUISchema: z.ZodObject<{
31
31
  popupEnabled?: boolean | undefined;
32
32
  theme?: "light" | "dark" | "auto" | undefined;
33
33
  }, {
34
- title?: string | undefined;
35
34
  description?: string | undefined;
35
+ title?: string | undefined;
36
36
  expirationText?: string | undefined;
37
37
  cancelButtonText?: string | undefined;
38
38
  submitButtonText?: string | undefined;
@@ -73,15 +73,15 @@ export declare const ConsentSuccessSchema: z.ZodObject<{
73
73
  redirectDelay: z.ZodOptional<z.ZodNumber>;
74
74
  continueButtonText: z.ZodOptional<z.ZodString>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- title?: string | undefined;
77
76
  description?: string | undefined;
77
+ title?: string | undefined;
78
78
  showCredential?: boolean | undefined;
79
79
  redirectUrl?: string | undefined;
80
80
  redirectDelay?: number | undefined;
81
81
  continueButtonText?: string | undefined;
82
82
  }, {
83
- title?: string | undefined;
84
83
  description?: string | undefined;
84
+ title?: string | undefined;
85
85
  showCredential?: boolean | undefined;
86
86
  redirectUrl?: string | undefined;
87
87
  redirectDelay?: number | undefined;
@@ -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: "text" | "textarea" | "checkbox" | "select" | "email";
126
+ label: string;
125
127
  name: string;
126
- type: "email" | "text" | "textarea" | "checkbox" | "select";
127
128
  required: boolean;
128
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
137
+ label: string;
136
138
  name: string;
137
- type: "email" | "text" | "textarea" | "checkbox" | "select";
138
139
  required: boolean;
139
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
148
+ label: string;
147
149
  name: string;
148
- type: "email" | "text" | "textarea" | "checkbox" | "select";
149
150
  required: boolean;
150
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
159
+ label: string;
158
160
  name: string;
159
- type: "email" | "text" | "textarea" | "checkbox" | "select";
160
161
  required: boolean;
161
- label: string;
162
162
  options?: {
163
163
  value: string;
164
164
  label: string;
@@ -217,8 +217,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
217
217
  popupEnabled: z.ZodOptional<z.ZodBoolean>;
218
218
  theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
219
219
  }, "strip", z.ZodTypeAny, {
220
- title?: string | undefined;
221
220
  description?: string | undefined;
221
+ title?: string | undefined;
222
222
  expirationText?: string | undefined;
223
223
  cancelButtonText?: string | undefined;
224
224
  submitButtonText?: string | undefined;
@@ -227,8 +227,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
227
227
  popupEnabled?: boolean | undefined;
228
228
  theme?: "light" | "dark" | "auto" | undefined;
229
229
  }, {
230
- title?: string | undefined;
231
230
  description?: string | undefined;
231
+ title?: string | undefined;
232
232
  expirationText?: string | undefined;
233
233
  cancelButtonText?: string | undefined;
234
234
  submitButtonText?: string | undefined;
@@ -261,15 +261,15 @@ export declare const ConsentConfigSchema: z.ZodObject<{
261
261
  redirectDelay: z.ZodOptional<z.ZodNumber>;
262
262
  continueButtonText: z.ZodOptional<z.ZodString>;
263
263
  }, "strip", z.ZodTypeAny, {
264
- title?: string | undefined;
265
264
  description?: string | undefined;
265
+ title?: string | undefined;
266
266
  showCredential?: boolean | undefined;
267
267
  redirectUrl?: string | undefined;
268
268
  redirectDelay?: number | undefined;
269
269
  continueButtonText?: string | undefined;
270
270
  }, {
271
- title?: string | undefined;
272
271
  description?: string | undefined;
272
+ title?: string | undefined;
273
273
  showCredential?: boolean | undefined;
274
274
  redirectUrl?: string | undefined;
275
275
  redirectDelay?: number | undefined;
@@ -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: "text" | "textarea" | "checkbox" | "select" | "email";
297
+ label: string;
296
298
  name: string;
297
- type: "email" | "text" | "textarea" | "checkbox" | "select";
298
299
  required: boolean;
299
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
308
+ label: string;
307
309
  name: string;
308
- type: "email" | "text" | "textarea" | "checkbox" | "select";
309
310
  required: boolean;
310
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
319
+ label: string;
318
320
  name: string;
319
- type: "email" | "text" | "textarea" | "checkbox" | "select";
320
321
  required: boolean;
321
- label: 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: "text" | "textarea" | "checkbox" | "select" | "email";
330
+ label: string;
329
331
  name: string;
330
- type: "email" | "text" | "textarea" | "checkbox" | "select";
331
332
  required: boolean;
332
- label: string;
333
333
  options?: {
334
334
  value: string;
335
335
  label: string;
@@ -468,6 +468,98 @@ export declare const ConsentConfigSchema: z.ZodObject<{
468
468
  estimatedTime?: string | undefined;
469
469
  }>>;
470
470
  expirationDays: z.ZodOptional<z.ZodNumber>;
471
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ label: z.ZodString;
474
+ capabilities: z.ZodArray<z.ZodObject<{
475
+ id: z.ZodString;
476
+ label: z.ZodString;
477
+ description: z.ZodString;
478
+ icon: z.ZodEnum<["search", "cart", "card", "pin", "pin-new", "shield", "key", "tools", "user", "calendar", "lock", "eye", "send", "package", "neutral"]>;
479
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
480
+ defaultOn: z.ZodBoolean;
481
+ cedar: z.ZodEffects<z.ZodString, string, string>;
482
+ scopes: z.ZodArray<z.ZodString, "many">;
483
+ category: z.ZodOptional<z.ZodString>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ id: string;
486
+ label: string;
487
+ description: string;
488
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
489
+ riskLevel: "low" | "medium" | "high" | "critical";
490
+ defaultOn: boolean;
491
+ cedar: string;
492
+ scopes: string[];
493
+ category?: string | undefined;
494
+ }, {
495
+ id: string;
496
+ label: string;
497
+ description: string;
498
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
499
+ riskLevel: "low" | "medium" | "high" | "critical";
500
+ defaultOn: boolean;
501
+ cedar: string;
502
+ scopes: string[];
503
+ category?: string | undefined;
504
+ }>, "many">;
505
+ }, "strip", z.ZodTypeAny, {
506
+ id: string;
507
+ label: string;
508
+ capabilities: {
509
+ id: string;
510
+ label: string;
511
+ description: string;
512
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
513
+ riskLevel: "low" | "medium" | "high" | "critical";
514
+ defaultOn: boolean;
515
+ cedar: string;
516
+ scopes: string[];
517
+ category?: string | undefined;
518
+ }[];
519
+ }, {
520
+ id: string;
521
+ label: string;
522
+ capabilities: {
523
+ id: string;
524
+ label: string;
525
+ description: string;
526
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
527
+ riskLevel: "low" | "medium" | "high" | "critical";
528
+ defaultOn: boolean;
529
+ cedar: string;
530
+ scopes: string[];
531
+ category?: string | undefined;
532
+ }[];
533
+ }>, "many">>;
534
+ agentMetadata: z.ZodOptional<z.ZodObject<{
535
+ name: z.ZodString;
536
+ did: z.ZodString;
537
+ vendor: z.ZodOptional<z.ZodString>;
538
+ surfaceLabel: z.ZodOptional<z.ZodString>;
539
+ verified: z.ZodBoolean;
540
+ logoUrl: z.ZodOptional<z.ZodString>;
541
+ connectedAt: z.ZodOptional<z.ZodString>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ name: string;
544
+ did: string;
545
+ verified: boolean;
546
+ logoUrl?: string | undefined;
547
+ vendor?: string | undefined;
548
+ surfaceLabel?: string | undefined;
549
+ connectedAt?: string | undefined;
550
+ }, {
551
+ name: string;
552
+ did: string;
553
+ verified: boolean;
554
+ logoUrl?: string | undefined;
555
+ vendor?: string | undefined;
556
+ surfaceLabel?: string | undefined;
557
+ connectedAt?: string | undefined;
558
+ }>>;
559
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
560
+ headlineVerb: z.ZodOptional<z.ZodString>;
561
+ revocationPath: z.ZodOptional<z.ZodString>;
562
+ inactivityDays: z.ZodOptional<z.ZodNumber>;
471
563
  metadata: z.ZodOptional<z.ZodObject<{
472
564
  version: z.ZodOptional<z.ZodNumber>;
473
565
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -517,26 +609,35 @@ export declare const ConsentConfigSchema: z.ZodObject<{
517
609
  verificationType?: "document" | "selfie" | "both" | undefined;
518
610
  estimatedTime?: string | undefined;
519
611
  } | undefined;
520
- customFields?: {
521
- name: string;
522
- type: "email" | "text" | "textarea" | "checkbox" | "select";
523
- required: boolean;
612
+ magicLink?: {
613
+ buttonText?: string | undefined;
614
+ enabled?: boolean | undefined;
615
+ emailLabel?: string | undefined;
616
+ emailPlaceholder?: string | undefined;
617
+ resendCooldown?: number | undefined;
618
+ } | undefined;
619
+ qrCode?: {
620
+ enabled?: boolean | undefined;
621
+ instructions?: string | undefined;
622
+ size?: number | undefined;
623
+ showManualEntry?: boolean | undefined;
624
+ } | undefined;
625
+ capabilities?: {
626
+ id: string;
524
627
  label: string;
525
- options?: {
526
- value: string;
628
+ capabilities: {
629
+ id: string;
527
630
  label: string;
528
- }[] | undefined;
529
- placeholder?: string | undefined;
530
- pattern?: string | undefined;
631
+ description: string;
632
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
633
+ riskLevel: "low" | "medium" | "high" | "critical";
634
+ defaultOn: boolean;
635
+ cedar: string;
636
+ scopes: string[];
637
+ category?: string | undefined;
638
+ }[];
531
639
  }[] | undefined;
532
- success?: {
533
- title?: string | undefined;
534
- description?: string | undefined;
535
- showCredential?: boolean | undefined;
536
- redirectUrl?: string | undefined;
537
- redirectDelay?: number | undefined;
538
- continueButtonText?: string | undefined;
539
- } | undefined;
640
+ theme?: "light" | "dark" | undefined;
540
641
  branding?: {
541
642
  primaryColor?: string | undefined;
542
643
  secondaryColor?: string | undefined;
@@ -544,8 +645,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
544
645
  companyName?: string | undefined;
545
646
  } | undefined;
546
647
  ui?: {
547
- title?: string | undefined;
548
648
  description?: string | undefined;
649
+ title?: string | undefined;
549
650
  expirationText?: string | undefined;
550
651
  cancelButtonText?: string | undefined;
551
652
  submitButtonText?: string | undefined;
@@ -560,20 +661,39 @@ export declare const ConsentConfigSchema: z.ZodObject<{
560
661
  version?: string | undefined;
561
662
  required?: boolean | undefined;
562
663
  } | undefined;
563
- magicLink?: {
564
- buttonText?: string | undefined;
565
- enabled?: boolean | undefined;
566
- emailLabel?: string | undefined;
567
- emailPlaceholder?: string | undefined;
568
- resendCooldown?: number | undefined;
569
- } | undefined;
570
- qrCode?: {
571
- enabled?: boolean | undefined;
572
- instructions?: string | undefined;
573
- size?: number | undefined;
574
- showManualEntry?: boolean | undefined;
664
+ success?: {
665
+ description?: string | undefined;
666
+ title?: string | undefined;
667
+ showCredential?: boolean | undefined;
668
+ redirectUrl?: string | undefined;
669
+ redirectDelay?: number | undefined;
670
+ continueButtonText?: string | undefined;
575
671
  } | undefined;
672
+ customFields?: {
673
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
674
+ label: string;
675
+ name: string;
676
+ required: boolean;
677
+ options?: {
678
+ value: string;
679
+ label: string;
680
+ }[] | undefined;
681
+ placeholder?: string | undefined;
682
+ pattern?: string | undefined;
683
+ }[] | undefined;
576
684
  expirationDays?: number | undefined;
685
+ agentMetadata?: {
686
+ name: string;
687
+ did: string;
688
+ verified: boolean;
689
+ logoUrl?: string | undefined;
690
+ vendor?: string | undefined;
691
+ surfaceLabel?: string | undefined;
692
+ connectedAt?: string | undefined;
693
+ } | undefined;
694
+ headlineVerb?: string | undefined;
695
+ revocationPath?: string | undefined;
696
+ inactivityDays?: number | undefined;
577
697
  metadata?: {
578
698
  version?: number | undefined;
579
699
  updatedAt?: string | undefined;
@@ -615,26 +735,35 @@ export declare const ConsentConfigSchema: z.ZodObject<{
615
735
  verificationType?: "document" | "selfie" | "both" | undefined;
616
736
  estimatedTime?: string | undefined;
617
737
  } | undefined;
618
- customFields?: {
619
- name: string;
620
- type: "email" | "text" | "textarea" | "checkbox" | "select";
621
- required: boolean;
738
+ magicLink?: {
739
+ buttonText?: string | undefined;
740
+ enabled?: boolean | undefined;
741
+ emailLabel?: string | undefined;
742
+ emailPlaceholder?: string | undefined;
743
+ resendCooldown?: number | undefined;
744
+ } | undefined;
745
+ qrCode?: {
746
+ enabled?: boolean | undefined;
747
+ instructions?: string | undefined;
748
+ size?: number | undefined;
749
+ showManualEntry?: boolean | undefined;
750
+ } | undefined;
751
+ capabilities?: {
752
+ id: string;
622
753
  label: string;
623
- options?: {
624
- value: string;
754
+ capabilities: {
755
+ id: string;
625
756
  label: string;
626
- }[] | undefined;
627
- placeholder?: string | undefined;
628
- pattern?: string | undefined;
757
+ description: string;
758
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
759
+ riskLevel: "low" | "medium" | "high" | "critical";
760
+ defaultOn: boolean;
761
+ cedar: string;
762
+ scopes: string[];
763
+ category?: string | undefined;
764
+ }[];
629
765
  }[] | undefined;
630
- success?: {
631
- title?: string | undefined;
632
- description?: string | undefined;
633
- showCredential?: boolean | undefined;
634
- redirectUrl?: string | undefined;
635
- redirectDelay?: number | undefined;
636
- continueButtonText?: string | undefined;
637
- } | undefined;
766
+ theme?: "light" | "dark" | undefined;
638
767
  branding?: {
639
768
  primaryColor?: string | undefined;
640
769
  secondaryColor?: string | undefined;
@@ -642,8 +771,8 @@ export declare const ConsentConfigSchema: z.ZodObject<{
642
771
  companyName?: string | undefined;
643
772
  } | undefined;
644
773
  ui?: {
645
- title?: string | undefined;
646
774
  description?: string | undefined;
775
+ title?: string | undefined;
647
776
  expirationText?: string | undefined;
648
777
  cancelButtonText?: string | undefined;
649
778
  submitButtonText?: string | undefined;
@@ -658,20 +787,39 @@ export declare const ConsentConfigSchema: z.ZodObject<{
658
787
  version?: string | undefined;
659
788
  required?: boolean | undefined;
660
789
  } | undefined;
661
- magicLink?: {
662
- buttonText?: string | undefined;
663
- enabled?: boolean | undefined;
664
- emailLabel?: string | undefined;
665
- emailPlaceholder?: string | undefined;
666
- resendCooldown?: number | undefined;
667
- } | undefined;
668
- qrCode?: {
669
- enabled?: boolean | undefined;
670
- instructions?: string | undefined;
671
- size?: number | undefined;
672
- showManualEntry?: boolean | undefined;
790
+ success?: {
791
+ description?: string | undefined;
792
+ title?: string | undefined;
793
+ showCredential?: boolean | undefined;
794
+ redirectUrl?: string | undefined;
795
+ redirectDelay?: number | undefined;
796
+ continueButtonText?: string | undefined;
673
797
  } | undefined;
798
+ customFields?: {
799
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
800
+ label: string;
801
+ name: string;
802
+ required: boolean;
803
+ options?: {
804
+ value: string;
805
+ label: string;
806
+ }[] | undefined;
807
+ placeholder?: string | undefined;
808
+ pattern?: string | undefined;
809
+ }[] | undefined;
674
810
  expirationDays?: number | undefined;
811
+ agentMetadata?: {
812
+ name: string;
813
+ did: string;
814
+ verified: boolean;
815
+ logoUrl?: string | undefined;
816
+ vendor?: string | undefined;
817
+ surfaceLabel?: string | undefined;
818
+ connectedAt?: string | undefined;
819
+ } | undefined;
820
+ headlineVerb?: string | undefined;
821
+ revocationPath?: string | undefined;
822
+ inactivityDays?: number | undefined;
675
823
  metadata?: {
676
824
  version?: number | undefined;
677
825
  updatedAt?: string | undefined;
@@ -710,8 +858,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
710
858
  popupEnabled: z.ZodOptional<z.ZodBoolean>;
711
859
  theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
712
860
  }, "strip", z.ZodTypeAny, {
713
- title?: string | undefined;
714
861
  description?: string | undefined;
862
+ title?: string | undefined;
715
863
  expirationText?: string | undefined;
716
864
  cancelButtonText?: string | undefined;
717
865
  submitButtonText?: string | undefined;
@@ -720,8 +868,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
720
868
  popupEnabled?: boolean | undefined;
721
869
  theme?: "light" | "dark" | "auto" | undefined;
722
870
  }, {
723
- title?: string | undefined;
724
871
  description?: string | undefined;
872
+ title?: string | undefined;
725
873
  expirationText?: string | undefined;
726
874
  cancelButtonText?: string | undefined;
727
875
  submitButtonText?: string | undefined;
@@ -754,15 +902,15 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
754
902
  redirectDelay: z.ZodOptional<z.ZodNumber>;
755
903
  continueButtonText: z.ZodOptional<z.ZodString>;
756
904
  }, "strip", z.ZodTypeAny, {
757
- title?: string | undefined;
758
905
  description?: string | undefined;
906
+ title?: string | undefined;
759
907
  showCredential?: boolean | undefined;
760
908
  redirectUrl?: string | undefined;
761
909
  redirectDelay?: number | undefined;
762
910
  continueButtonText?: string | undefined;
763
911
  }, {
764
- title?: string | undefined;
765
912
  description?: string | undefined;
913
+ title?: string | undefined;
766
914
  showCredential?: boolean | undefined;
767
915
  redirectUrl?: string | undefined;
768
916
  redirectDelay?: number | undefined;
@@ -786,10 +934,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
786
934
  }>, "many">>;
787
935
  pattern: z.ZodOptional<z.ZodString>;
788
936
  }, "strip", z.ZodTypeAny, {
937
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
938
+ label: string;
789
939
  name: string;
790
- type: "email" | "text" | "textarea" | "checkbox" | "select";
791
940
  required: boolean;
792
- label: string;
793
941
  options?: {
794
942
  value: string;
795
943
  label: string;
@@ -797,10 +945,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
797
945
  placeholder?: string | undefined;
798
946
  pattern?: string | undefined;
799
947
  }, {
948
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
949
+ label: string;
800
950
  name: string;
801
- type: "email" | "text" | "textarea" | "checkbox" | "select";
802
951
  required: boolean;
803
- label: string;
804
952
  options?: {
805
953
  value: string;
806
954
  label: string;
@@ -808,10 +956,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
808
956
  placeholder?: string | undefined;
809
957
  pattern?: string | undefined;
810
958
  }>, {
959
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
960
+ label: string;
811
961
  name: string;
812
- type: "email" | "text" | "textarea" | "checkbox" | "select";
813
962
  required: boolean;
814
- label: string;
815
963
  options?: {
816
964
  value: string;
817
965
  label: string;
@@ -819,10 +967,10 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
819
967
  placeholder?: string | undefined;
820
968
  pattern?: string | undefined;
821
969
  }, {
970
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
971
+ label: string;
822
972
  name: string;
823
- type: "email" | "text" | "textarea" | "checkbox" | "select";
824
973
  required: boolean;
825
- label: string;
826
974
  options?: {
827
975
  value: string;
828
976
  label: string;
@@ -961,6 +1109,98 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
961
1109
  estimatedTime?: string | undefined;
962
1110
  }>>;
963
1111
  expirationDays: z.ZodOptional<z.ZodNumber>;
1112
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ label: z.ZodString;
1115
+ capabilities: z.ZodArray<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ label: z.ZodString;
1118
+ description: z.ZodString;
1119
+ icon: z.ZodEnum<["search", "cart", "card", "pin", "pin-new", "shield", "key", "tools", "user", "calendar", "lock", "eye", "send", "package", "neutral"]>;
1120
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
1121
+ defaultOn: z.ZodBoolean;
1122
+ cedar: z.ZodEffects<z.ZodString, string, string>;
1123
+ scopes: z.ZodArray<z.ZodString, "many">;
1124
+ category: z.ZodOptional<z.ZodString>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ id: string;
1127
+ label: string;
1128
+ description: string;
1129
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1130
+ riskLevel: "low" | "medium" | "high" | "critical";
1131
+ defaultOn: boolean;
1132
+ cedar: string;
1133
+ scopes: string[];
1134
+ category?: string | undefined;
1135
+ }, {
1136
+ id: string;
1137
+ label: string;
1138
+ description: string;
1139
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1140
+ riskLevel: "low" | "medium" | "high" | "critical";
1141
+ defaultOn: boolean;
1142
+ cedar: string;
1143
+ scopes: string[];
1144
+ category?: string | undefined;
1145
+ }>, "many">;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ id: string;
1148
+ label: string;
1149
+ capabilities: {
1150
+ id: string;
1151
+ label: string;
1152
+ description: string;
1153
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1154
+ riskLevel: "low" | "medium" | "high" | "critical";
1155
+ defaultOn: boolean;
1156
+ cedar: string;
1157
+ scopes: string[];
1158
+ category?: string | undefined;
1159
+ }[];
1160
+ }, {
1161
+ id: string;
1162
+ label: string;
1163
+ capabilities: {
1164
+ id: string;
1165
+ label: string;
1166
+ description: string;
1167
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1168
+ riskLevel: "low" | "medium" | "high" | "critical";
1169
+ defaultOn: boolean;
1170
+ cedar: string;
1171
+ scopes: string[];
1172
+ category?: string | undefined;
1173
+ }[];
1174
+ }>, "many">>;
1175
+ agentMetadata: z.ZodOptional<z.ZodObject<{
1176
+ name: z.ZodString;
1177
+ did: z.ZodString;
1178
+ vendor: z.ZodOptional<z.ZodString>;
1179
+ surfaceLabel: z.ZodOptional<z.ZodString>;
1180
+ verified: z.ZodBoolean;
1181
+ logoUrl: z.ZodOptional<z.ZodString>;
1182
+ connectedAt: z.ZodOptional<z.ZodString>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ name: string;
1185
+ did: string;
1186
+ verified: boolean;
1187
+ logoUrl?: string | undefined;
1188
+ vendor?: string | undefined;
1189
+ surfaceLabel?: string | undefined;
1190
+ connectedAt?: string | undefined;
1191
+ }, {
1192
+ name: string;
1193
+ did: string;
1194
+ verified: boolean;
1195
+ logoUrl?: string | undefined;
1196
+ vendor?: string | undefined;
1197
+ surfaceLabel?: string | undefined;
1198
+ connectedAt?: string | undefined;
1199
+ }>>;
1200
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
1201
+ headlineVerb: z.ZodOptional<z.ZodString>;
1202
+ revocationPath: z.ZodOptional<z.ZodString>;
1203
+ inactivityDays: z.ZodOptional<z.ZodNumber>;
964
1204
  } & {
965
1205
  metadata: z.ZodOptional<z.ZodObject<{
966
1206
  version: z.ZodOptional<z.ZodNumber>;
@@ -1011,26 +1251,35 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1011
1251
  verificationType?: "document" | "selfie" | "both" | undefined;
1012
1252
  estimatedTime?: string | undefined;
1013
1253
  } | undefined;
1014
- customFields?: {
1015
- name: string;
1016
- type: "email" | "text" | "textarea" | "checkbox" | "select";
1017
- required: boolean;
1254
+ magicLink?: {
1255
+ buttonText?: string | undefined;
1256
+ enabled?: boolean | undefined;
1257
+ emailLabel?: string | undefined;
1258
+ emailPlaceholder?: string | undefined;
1259
+ resendCooldown?: number | undefined;
1260
+ } | undefined;
1261
+ qrCode?: {
1262
+ enabled?: boolean | undefined;
1263
+ instructions?: string | undefined;
1264
+ size?: number | undefined;
1265
+ showManualEntry?: boolean | undefined;
1266
+ } | undefined;
1267
+ capabilities?: {
1268
+ id: string;
1018
1269
  label: string;
1019
- options?: {
1020
- value: string;
1270
+ capabilities: {
1271
+ id: string;
1021
1272
  label: string;
1022
- }[] | undefined;
1023
- placeholder?: string | undefined;
1024
- pattern?: string | undefined;
1273
+ description: string;
1274
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1275
+ riskLevel: "low" | "medium" | "high" | "critical";
1276
+ defaultOn: boolean;
1277
+ cedar: string;
1278
+ scopes: string[];
1279
+ category?: string | undefined;
1280
+ }[];
1025
1281
  }[] | undefined;
1026
- success?: {
1027
- title?: string | undefined;
1028
- description?: string | undefined;
1029
- showCredential?: boolean | undefined;
1030
- redirectUrl?: string | undefined;
1031
- redirectDelay?: number | undefined;
1032
- continueButtonText?: string | undefined;
1033
- } | undefined;
1282
+ theme?: "light" | "dark" | undefined;
1034
1283
  branding?: {
1035
1284
  primaryColor?: string | undefined;
1036
1285
  secondaryColor?: string | undefined;
@@ -1038,8 +1287,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1038
1287
  companyName?: string | undefined;
1039
1288
  } | undefined;
1040
1289
  ui?: {
1041
- title?: string | undefined;
1042
1290
  description?: string | undefined;
1291
+ title?: string | undefined;
1043
1292
  expirationText?: string | undefined;
1044
1293
  cancelButtonText?: string | undefined;
1045
1294
  submitButtonText?: string | undefined;
@@ -1054,20 +1303,39 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1054
1303
  version?: string | undefined;
1055
1304
  required?: boolean | undefined;
1056
1305
  } | undefined;
1057
- magicLink?: {
1058
- buttonText?: string | undefined;
1059
- enabled?: boolean | undefined;
1060
- emailLabel?: string | undefined;
1061
- emailPlaceholder?: string | undefined;
1062
- resendCooldown?: number | undefined;
1063
- } | undefined;
1064
- qrCode?: {
1065
- enabled?: boolean | undefined;
1066
- instructions?: string | undefined;
1067
- size?: number | undefined;
1068
- showManualEntry?: boolean | undefined;
1306
+ success?: {
1307
+ description?: string | undefined;
1308
+ title?: string | undefined;
1309
+ showCredential?: boolean | undefined;
1310
+ redirectUrl?: string | undefined;
1311
+ redirectDelay?: number | undefined;
1312
+ continueButtonText?: string | undefined;
1069
1313
  } | undefined;
1314
+ customFields?: {
1315
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1316
+ label: string;
1317
+ name: string;
1318
+ required: boolean;
1319
+ options?: {
1320
+ value: string;
1321
+ label: string;
1322
+ }[] | undefined;
1323
+ placeholder?: string | undefined;
1324
+ pattern?: string | undefined;
1325
+ }[] | undefined;
1070
1326
  expirationDays?: number | undefined;
1327
+ agentMetadata?: {
1328
+ name: string;
1329
+ did: string;
1330
+ verified: boolean;
1331
+ logoUrl?: string | undefined;
1332
+ vendor?: string | undefined;
1333
+ surfaceLabel?: string | undefined;
1334
+ connectedAt?: string | undefined;
1335
+ } | undefined;
1336
+ headlineVerb?: string | undefined;
1337
+ revocationPath?: string | undefined;
1338
+ inactivityDays?: number | undefined;
1071
1339
  metadata?: {
1072
1340
  version?: number | undefined;
1073
1341
  updatedAt?: string | undefined;
@@ -1109,26 +1377,35 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1109
1377
  verificationType?: "document" | "selfie" | "both" | undefined;
1110
1378
  estimatedTime?: string | undefined;
1111
1379
  } | undefined;
1112
- customFields?: {
1113
- name: string;
1114
- type: "email" | "text" | "textarea" | "checkbox" | "select";
1115
- required: boolean;
1380
+ magicLink?: {
1381
+ buttonText?: string | undefined;
1382
+ enabled?: boolean | undefined;
1383
+ emailLabel?: string | undefined;
1384
+ emailPlaceholder?: string | undefined;
1385
+ resendCooldown?: number | undefined;
1386
+ } | undefined;
1387
+ qrCode?: {
1388
+ enabled?: boolean | undefined;
1389
+ instructions?: string | undefined;
1390
+ size?: number | undefined;
1391
+ showManualEntry?: boolean | undefined;
1392
+ } | undefined;
1393
+ capabilities?: {
1394
+ id: string;
1116
1395
  label: string;
1117
- options?: {
1118
- value: string;
1396
+ capabilities: {
1397
+ id: string;
1119
1398
  label: string;
1120
- }[] | undefined;
1121
- placeholder?: string | undefined;
1122
- pattern?: string | undefined;
1399
+ description: string;
1400
+ icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
1401
+ riskLevel: "low" | "medium" | "high" | "critical";
1402
+ defaultOn: boolean;
1403
+ cedar: string;
1404
+ scopes: string[];
1405
+ category?: string | undefined;
1406
+ }[];
1123
1407
  }[] | undefined;
1124
- success?: {
1125
- title?: string | undefined;
1126
- description?: string | undefined;
1127
- showCredential?: boolean | undefined;
1128
- redirectUrl?: string | undefined;
1129
- redirectDelay?: number | undefined;
1130
- continueButtonText?: string | undefined;
1131
- } | undefined;
1408
+ theme?: "light" | "dark" | undefined;
1132
1409
  branding?: {
1133
1410
  primaryColor?: string | undefined;
1134
1411
  secondaryColor?: string | undefined;
@@ -1136,8 +1413,8 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1136
1413
  companyName?: string | undefined;
1137
1414
  } | undefined;
1138
1415
  ui?: {
1139
- title?: string | undefined;
1140
1416
  description?: string | undefined;
1417
+ title?: string | undefined;
1141
1418
  expirationText?: string | undefined;
1142
1419
  cancelButtonText?: string | undefined;
1143
1420
  submitButtonText?: string | undefined;
@@ -1152,20 +1429,39 @@ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{
1152
1429
  version?: string | undefined;
1153
1430
  required?: boolean | undefined;
1154
1431
  } | undefined;
1155
- magicLink?: {
1156
- buttonText?: string | undefined;
1157
- enabled?: boolean | undefined;
1158
- emailLabel?: string | undefined;
1159
- emailPlaceholder?: string | undefined;
1160
- resendCooldown?: number | undefined;
1161
- } | undefined;
1162
- qrCode?: {
1163
- enabled?: boolean | undefined;
1164
- instructions?: string | undefined;
1165
- size?: number | undefined;
1166
- showManualEntry?: boolean | undefined;
1432
+ success?: {
1433
+ description?: string | undefined;
1434
+ title?: string | undefined;
1435
+ showCredential?: boolean | undefined;
1436
+ redirectUrl?: string | undefined;
1437
+ redirectDelay?: number | undefined;
1438
+ continueButtonText?: string | undefined;
1167
1439
  } | undefined;
1440
+ customFields?: {
1441
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
1442
+ label: string;
1443
+ name: string;
1444
+ required: boolean;
1445
+ options?: {
1446
+ value: string;
1447
+ label: string;
1448
+ }[] | undefined;
1449
+ placeholder?: string | undefined;
1450
+ pattern?: string | undefined;
1451
+ }[] | undefined;
1168
1452
  expirationDays?: number | undefined;
1453
+ agentMetadata?: {
1454
+ name: string;
1455
+ did: string;
1456
+ verified: boolean;
1457
+ logoUrl?: string | undefined;
1458
+ vendor?: string | undefined;
1459
+ surfaceLabel?: string | undefined;
1460
+ connectedAt?: string | undefined;
1461
+ } | undefined;
1462
+ headlineVerb?: string | undefined;
1463
+ revocationPath?: string | undefined;
1464
+ inactivityDays?: number | undefined;
1169
1465
  metadata?: {
1170
1466
  version?: number | undefined;
1171
1467
  updatedAt?: string | undefined;