@kya-os/contracts 1.7.0 → 1.7.2

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.
@@ -37,14 +37,14 @@ export declare const consentTermsSchema: z.ZodObject<{
37
37
  required: z.ZodDefault<z.ZodBoolean>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  required: boolean;
40
- text?: string | undefined;
41
40
  version?: string | undefined;
42
41
  url?: string | undefined;
43
- }, {
44
42
  text?: string | undefined;
45
- required?: boolean | undefined;
43
+ }, {
46
44
  version?: string | undefined;
47
45
  url?: string | undefined;
46
+ text?: string | undefined;
47
+ required?: boolean | undefined;
48
48
  }>;
49
49
  export type ConsentTerms = z.infer<typeof consentTermsSchema>;
50
50
  /**
@@ -81,9 +81,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
81
81
  }>, "many">>;
82
82
  pattern: z.ZodOptional<z.ZodString>;
83
83
  }, "strip", z.ZodTypeAny, {
84
- type: "text" | "email" | "textarea" | "checkbox" | "select";
85
- required: boolean;
86
84
  name: string;
85
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
86
+ required: boolean;
87
87
  label: string;
88
88
  options?: {
89
89
  value: string;
@@ -92,9 +92,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
92
92
  placeholder?: string | undefined;
93
93
  pattern?: string | undefined;
94
94
  }, {
95
- type: "text" | "email" | "textarea" | "checkbox" | "select";
96
- required: boolean;
97
95
  name: string;
96
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
97
+ required: boolean;
98
98
  label: string;
99
99
  options?: {
100
100
  value: string;
@@ -103,9 +103,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
103
103
  placeholder?: string | undefined;
104
104
  pattern?: string | undefined;
105
105
  }>, {
106
- type: "text" | "email" | "textarea" | "checkbox" | "select";
107
- required: boolean;
108
106
  name: string;
107
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
108
+ required: boolean;
109
109
  label: string;
110
110
  options?: {
111
111
  value: string;
@@ -114,9 +114,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
114
114
  placeholder?: string | undefined;
115
115
  pattern?: string | undefined;
116
116
  }, {
117
- type: "text" | "email" | "textarea" | "checkbox" | "select";
118
- required: boolean;
119
117
  name: string;
118
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
119
+ required: boolean;
120
120
  label: string;
121
121
  options?: {
122
122
  value: string;
@@ -151,15 +151,15 @@ export declare const oauthIdentitySchema: z.ZodObject<{
151
151
  */
152
152
  name: z.ZodOptional<z.ZodString>;
153
153
  }, "strip", z.ZodTypeAny, {
154
- subject: string;
155
154
  provider: string;
156
- email?: string | undefined;
155
+ subject: string;
157
156
  name?: string | undefined;
157
+ email?: string | undefined;
158
158
  }, {
159
- subject: string;
160
159
  provider: string;
161
- email?: string | undefined;
160
+ subject: string;
162
161
  name?: string | undefined;
162
+ email?: string | undefined;
163
163
  }>;
164
164
  export type OAuthIdentity = z.infer<typeof oauthIdentitySchema>;
165
165
  /**
@@ -196,14 +196,14 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
196
196
  required: z.ZodDefault<z.ZodBoolean>;
197
197
  }, "strip", z.ZodTypeAny, {
198
198
  required: boolean;
199
- text?: string | undefined;
200
199
  version?: string | undefined;
201
200
  url?: string | undefined;
202
- }, {
203
201
  text?: string | undefined;
204
- required?: boolean | undefined;
202
+ }, {
205
203
  version?: string | undefined;
206
204
  url?: string | undefined;
205
+ text?: string | undefined;
206
+ required?: boolean | undefined;
207
207
  }>>;
208
208
  customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
209
209
  name: z.ZodString;
@@ -223,9 +223,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
223
223
  }>, "many">>;
224
224
  pattern: z.ZodOptional<z.ZodString>;
225
225
  }, "strip", z.ZodTypeAny, {
226
- type: "text" | "email" | "textarea" | "checkbox" | "select";
227
- required: boolean;
228
226
  name: string;
227
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
228
+ required: boolean;
229
229
  label: string;
230
230
  options?: {
231
231
  value: string;
@@ -234,9 +234,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
234
234
  placeholder?: string | undefined;
235
235
  pattern?: string | undefined;
236
236
  }, {
237
- type: "text" | "email" | "textarea" | "checkbox" | "select";
238
- required: boolean;
239
237
  name: string;
238
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
239
+ required: boolean;
240
240
  label: string;
241
241
  options?: {
242
242
  value: string;
@@ -245,9 +245,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
245
245
  placeholder?: string | undefined;
246
246
  pattern?: string | undefined;
247
247
  }>, {
248
- type: "text" | "email" | "textarea" | "checkbox" | "select";
249
- required: boolean;
250
248
  name: string;
249
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
250
+ required: boolean;
251
251
  label: string;
252
252
  options?: {
253
253
  value: string;
@@ -256,9 +256,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
256
256
  placeholder?: string | undefined;
257
257
  pattern?: string | undefined;
258
258
  }, {
259
- type: "text" | "email" | "textarea" | "checkbox" | "select";
260
- required: boolean;
261
259
  name: string;
260
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
261
+ required: boolean;
262
262
  label: string;
263
263
  options?: {
264
264
  value: string;
@@ -280,30 +280,30 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
280
280
  */
281
281
  oauthUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
282
282
  }, "strip", z.ZodTypeAny, {
283
- scopes: string[];
284
283
  agentDid: string;
285
284
  sessionId: string;
286
285
  tool: string;
287
- projectId: string;
288
286
  toolDescription: string;
287
+ scopes: string[];
288
+ projectId: string;
289
289
  serverUrl: string;
290
+ provider?: string | undefined;
290
291
  branding?: {
291
292
  primaryColor?: string | undefined;
292
293
  logoUrl?: string | undefined;
293
294
  companyName?: string | undefined;
294
295
  theme?: "light" | "dark" | "auto" | undefined;
295
296
  } | undefined;
296
- provider?: string | undefined;
297
297
  terms?: {
298
298
  required: boolean;
299
- text?: string | undefined;
300
299
  version?: string | undefined;
301
300
  url?: string | undefined;
301
+ text?: string | undefined;
302
302
  } | undefined;
303
303
  customFields?: {
304
- type: "text" | "email" | "textarea" | "checkbox" | "select";
305
- required: boolean;
306
304
  name: string;
305
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
306
+ required: boolean;
307
307
  label: string;
308
308
  options?: {
309
309
  value: string;
@@ -316,30 +316,30 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
316
316
  oauthRequired?: boolean | undefined;
317
317
  oauthUrl?: string | undefined;
318
318
  }, {
319
- scopes: string[];
320
319
  agentDid: string;
321
320
  sessionId: string;
322
321
  tool: string;
323
- projectId: string;
324
322
  toolDescription: string;
323
+ scopes: string[];
324
+ projectId: string;
325
325
  serverUrl: string;
326
+ provider?: string | undefined;
326
327
  branding?: {
327
328
  primaryColor?: string | undefined;
328
329
  logoUrl?: string | undefined;
329
330
  companyName?: string | undefined;
330
331
  theme?: "light" | "dark" | "auto" | undefined;
331
332
  } | undefined;
332
- provider?: string | undefined;
333
333
  terms?: {
334
- text?: string | undefined;
335
- required?: boolean | undefined;
336
334
  version?: string | undefined;
337
335
  url?: string | undefined;
336
+ text?: string | undefined;
337
+ required?: boolean | undefined;
338
338
  } | undefined;
339
339
  customFields?: {
340
- type: "text" | "email" | "textarea" | "checkbox" | "select";
341
- required: boolean;
342
340
  name: string;
341
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
342
+ required: boolean;
343
343
  label: string;
344
344
  options?: {
345
345
  value: string;
@@ -352,30 +352,30 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
352
352
  oauthRequired?: boolean | undefined;
353
353
  oauthUrl?: string | undefined;
354
354
  }>, {
355
- scopes: string[];
356
355
  agentDid: string;
357
356
  sessionId: string;
358
357
  tool: string;
359
- projectId: string;
360
358
  toolDescription: string;
359
+ scopes: string[];
360
+ projectId: string;
361
361
  serverUrl: string;
362
+ provider?: string | undefined;
362
363
  branding?: {
363
364
  primaryColor?: string | undefined;
364
365
  logoUrl?: string | undefined;
365
366
  companyName?: string | undefined;
366
367
  theme?: "light" | "dark" | "auto" | undefined;
367
368
  } | undefined;
368
- provider?: string | undefined;
369
369
  terms?: {
370
370
  required: boolean;
371
- text?: string | undefined;
372
371
  version?: string | undefined;
373
372
  url?: string | undefined;
373
+ text?: string | undefined;
374
374
  } | undefined;
375
375
  customFields?: {
376
- type: "text" | "email" | "textarea" | "checkbox" | "select";
377
- required: boolean;
378
376
  name: string;
377
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
378
+ required: boolean;
379
379
  label: string;
380
380
  options?: {
381
381
  value: string;
@@ -388,30 +388,30 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
388
388
  oauthRequired?: boolean | undefined;
389
389
  oauthUrl?: string | undefined;
390
390
  }, {
391
- scopes: string[];
392
391
  agentDid: string;
393
392
  sessionId: string;
394
393
  tool: string;
395
- projectId: string;
396
394
  toolDescription: string;
395
+ scopes: string[];
396
+ projectId: string;
397
397
  serverUrl: string;
398
+ provider?: string | undefined;
398
399
  branding?: {
399
400
  primaryColor?: string | undefined;
400
401
  logoUrl?: string | undefined;
401
402
  companyName?: string | undefined;
402
403
  theme?: "light" | "dark" | "auto" | undefined;
403
404
  } | undefined;
404
- provider?: string | undefined;
405
405
  terms?: {
406
- text?: string | undefined;
407
- required?: boolean | undefined;
408
406
  version?: string | undefined;
409
407
  url?: string | undefined;
408
+ text?: string | undefined;
409
+ required?: boolean | undefined;
410
410
  } | undefined;
411
411
  customFields?: {
412
- type: "text" | "email" | "textarea" | "checkbox" | "select";
413
- required: boolean;
414
412
  name: string;
413
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
414
+ required: boolean;
415
415
  label: string;
416
416
  options?: {
417
417
  value: string;
@@ -469,15 +469,15 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
469
469
  */
470
470
  name: z.ZodOptional<z.ZodString>;
471
471
  }, "strip", z.ZodTypeAny, {
472
- subject: string;
473
472
  provider: string;
474
- email?: string | undefined;
473
+ subject: string;
475
474
  name?: string | undefined;
475
+ email?: string | undefined;
476
476
  }, {
477
- subject: string;
478
477
  provider: string;
479
- email?: string | undefined;
478
+ subject: string;
480
479
  name?: string | undefined;
480
+ email?: string | undefined;
481
481
  }>>>;
482
482
  /**
483
483
  * User DID (optional)
@@ -486,37 +486,37 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
486
486
  */
487
487
  user_did: z.ZodOptional<z.ZodString>;
488
488
  }, "strip", z.ZodTypeAny, {
489
- scopes: string[];
490
489
  tool: string;
491
- session_id: string;
490
+ scopes: string[];
492
491
  agent_did: string;
492
+ session_id: string;
493
493
  project_id: string;
494
494
  termsAccepted: boolean;
495
- user_did?: string | undefined;
496
495
  customFields?: Record<string, string | boolean> | undefined;
497
496
  termsVersion?: string | undefined;
498
497
  oauth_identity?: {
499
- subject: string;
500
498
  provider: string;
501
- email?: string | undefined;
499
+ subject: string;
502
500
  name?: string | undefined;
501
+ email?: string | undefined;
503
502
  } | null | undefined;
503
+ user_did?: string | undefined;
504
504
  }, {
505
- scopes: string[];
506
505
  tool: string;
507
- session_id: string;
506
+ scopes: string[];
508
507
  agent_did: string;
508
+ session_id: string;
509
509
  project_id: string;
510
510
  termsAccepted: boolean;
511
- user_did?: string | undefined;
512
511
  customFields?: Record<string, string | boolean> | undefined;
513
512
  termsVersion?: string | undefined;
514
513
  oauth_identity?: {
515
- subject: string;
516
514
  provider: string;
517
- email?: string | undefined;
515
+ subject: string;
518
516
  name?: string | undefined;
517
+ email?: string | undefined;
519
518
  } | null | undefined;
519
+ user_did?: string | undefined;
520
520
  }>;
521
521
  export type ConsentApprovalRequest = z.infer<typeof consentApprovalRequestSchema>;
522
522
  /**
@@ -530,27 +530,27 @@ export declare const consentApprovalResponseSchema: z.ZodEffects<z.ZodObject<{
530
530
  error_code: z.ZodOptional<z.ZodString>;
531
531
  }, "strip", z.ZodTypeAny, {
532
532
  success: boolean;
533
- error?: string | undefined;
534
533
  delegation_id?: string | undefined;
535
534
  delegation_token?: string | undefined;
535
+ error?: string | undefined;
536
536
  error_code?: string | undefined;
537
537
  }, {
538
538
  success: boolean;
539
- error?: string | undefined;
540
539
  delegation_id?: string | undefined;
541
540
  delegation_token?: string | undefined;
541
+ error?: string | undefined;
542
542
  error_code?: string | undefined;
543
543
  }>, {
544
544
  success: boolean;
545
- error?: string | undefined;
546
545
  delegation_id?: string | undefined;
547
546
  delegation_token?: string | undefined;
547
+ error?: string | undefined;
548
548
  error_code?: string | undefined;
549
549
  }, {
550
550
  success: boolean;
551
- error?: string | undefined;
552
551
  delegation_id?: string | undefined;
553
552
  delegation_token?: string | undefined;
553
+ error?: string | undefined;
554
554
  error_code?: string | undefined;
555
555
  }>;
556
556
  export type ConsentApprovalResponse = z.infer<typeof consentApprovalResponseSchema>;
@@ -581,14 +581,14 @@ export declare const consentConfigSchema: z.ZodObject<{
581
581
  required: z.ZodDefault<z.ZodBoolean>;
582
582
  }, "strip", z.ZodTypeAny, {
583
583
  required: boolean;
584
- text?: string | undefined;
585
584
  version?: string | undefined;
586
585
  url?: string | undefined;
587
- }, {
588
586
  text?: string | undefined;
589
- required?: boolean | undefined;
587
+ }, {
590
588
  version?: string | undefined;
591
589
  url?: string | undefined;
590
+ text?: string | undefined;
591
+ required?: boolean | undefined;
592
592
  }>>;
593
593
  customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
594
594
  name: z.ZodString;
@@ -608,9 +608,9 @@ export declare const consentConfigSchema: z.ZodObject<{
608
608
  }>, "many">>;
609
609
  pattern: z.ZodOptional<z.ZodString>;
610
610
  }, "strip", z.ZodTypeAny, {
611
- type: "text" | "email" | "textarea" | "checkbox" | "select";
612
- required: boolean;
613
611
  name: string;
612
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
613
+ required: boolean;
614
614
  label: string;
615
615
  options?: {
616
616
  value: string;
@@ -619,9 +619,9 @@ export declare const consentConfigSchema: z.ZodObject<{
619
619
  placeholder?: string | undefined;
620
620
  pattern?: string | undefined;
621
621
  }, {
622
- type: "text" | "email" | "textarea" | "checkbox" | "select";
623
- required: boolean;
624
622
  name: string;
623
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
624
+ required: boolean;
625
625
  label: string;
626
626
  options?: {
627
627
  value: string;
@@ -630,9 +630,9 @@ export declare const consentConfigSchema: z.ZodObject<{
630
630
  placeholder?: string | undefined;
631
631
  pattern?: string | undefined;
632
632
  }>, {
633
- type: "text" | "email" | "textarea" | "checkbox" | "select";
634
- required: boolean;
635
633
  name: string;
634
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
635
+ required: boolean;
636
636
  label: string;
637
637
  options?: {
638
638
  value: string;
@@ -641,9 +641,9 @@ export declare const consentConfigSchema: z.ZodObject<{
641
641
  placeholder?: string | undefined;
642
642
  pattern?: string | undefined;
643
643
  }, {
644
- type: "text" | "email" | "textarea" | "checkbox" | "select";
645
- required: boolean;
646
644
  name: string;
645
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
646
+ required: boolean;
647
647
  label: string;
648
648
  options?: {
649
649
  value: string;
@@ -677,14 +677,14 @@ export declare const consentConfigSchema: z.ZodObject<{
677
677
  } | undefined;
678
678
  terms?: {
679
679
  required: boolean;
680
- text?: string | undefined;
681
680
  version?: string | undefined;
682
681
  url?: string | undefined;
682
+ text?: string | undefined;
683
683
  } | undefined;
684
684
  customFields?: {
685
- type: "text" | "email" | "textarea" | "checkbox" | "select";
686
- required: boolean;
687
685
  name: string;
686
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
687
+ required: boolean;
688
688
  label: string;
689
689
  options?: {
690
690
  value: string;
@@ -707,15 +707,15 @@ export declare const consentConfigSchema: z.ZodObject<{
707
707
  theme?: "light" | "dark" | "auto" | undefined;
708
708
  } | undefined;
709
709
  terms?: {
710
- text?: string | undefined;
711
- required?: boolean | undefined;
712
710
  version?: string | undefined;
713
711
  url?: string | undefined;
712
+ text?: string | undefined;
713
+ required?: boolean | undefined;
714
714
  } | undefined;
715
715
  customFields?: {
716
- type: "text" | "email" | "textarea" | "checkbox" | "select";
717
- required: boolean;
718
716
  name: string;
717
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
718
+ required: boolean;
719
719
  label: string;
720
720
  options?: {
721
721
  value: string;
@@ -742,30 +742,30 @@ export type ConsentConfig = z.infer<typeof consentConfigSchema>;
742
742
  * @returns Validation result
743
743
  */
744
744
  export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType<{
745
- scopes: string[];
746
745
  agentDid: string;
747
746
  sessionId: string;
748
747
  tool: string;
749
- projectId: string;
750
748
  toolDescription: string;
749
+ scopes: string[];
750
+ projectId: string;
751
751
  serverUrl: string;
752
+ provider?: string | undefined;
752
753
  branding?: {
753
754
  primaryColor?: string | undefined;
754
755
  logoUrl?: string | undefined;
755
756
  companyName?: string | undefined;
756
757
  theme?: "light" | "dark" | "auto" | undefined;
757
758
  } | undefined;
758
- provider?: string | undefined;
759
759
  terms?: {
760
- text?: string | undefined;
761
- required?: boolean | undefined;
762
760
  version?: string | undefined;
763
761
  url?: string | undefined;
762
+ text?: string | undefined;
763
+ required?: boolean | undefined;
764
764
  } | undefined;
765
765
  customFields?: {
766
- type: "text" | "email" | "textarea" | "checkbox" | "select";
767
- required: boolean;
768
766
  name: string;
767
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
768
+ required: boolean;
769
769
  label: string;
770
770
  options?: {
771
771
  value: string;
@@ -778,30 +778,30 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
778
778
  oauthRequired?: boolean | undefined;
779
779
  oauthUrl?: string | undefined;
780
780
  }, {
781
- scopes: string[];
782
781
  agentDid: string;
783
782
  sessionId: string;
784
783
  tool: string;
785
- projectId: string;
786
784
  toolDescription: string;
785
+ scopes: string[];
786
+ projectId: string;
787
787
  serverUrl: string;
788
+ provider?: string | undefined;
788
789
  branding?: {
789
790
  primaryColor?: string | undefined;
790
791
  logoUrl?: string | undefined;
791
792
  companyName?: string | undefined;
792
793
  theme?: "light" | "dark" | "auto" | undefined;
793
794
  } | undefined;
794
- provider?: string | undefined;
795
795
  terms?: {
796
796
  required: boolean;
797
- text?: string | undefined;
798
797
  version?: string | undefined;
799
798
  url?: string | undefined;
799
+ text?: string | undefined;
800
800
  } | undefined;
801
801
  customFields?: {
802
- type: "text" | "email" | "textarea" | "checkbox" | "select";
803
- required: boolean;
804
802
  name: string;
803
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
804
+ required: boolean;
805
805
  label: string;
806
806
  options?: {
807
807
  value: string;
@@ -821,37 +821,37 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
821
821
  * @returns Validation result
822
822
  */
823
823
  export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType<{
824
- scopes: string[];
825
824
  tool: string;
826
- session_id: string;
825
+ scopes: string[];
827
826
  agent_did: string;
827
+ session_id: string;
828
828
  project_id: string;
829
829
  termsAccepted: boolean;
830
- user_did?: string | undefined;
831
830
  customFields?: Record<string, string | boolean> | undefined;
832
831
  termsVersion?: string | undefined;
833
832
  oauth_identity?: {
834
- subject: string;
835
833
  provider: string;
836
- email?: string | undefined;
834
+ subject: string;
837
835
  name?: string | undefined;
836
+ email?: string | undefined;
838
837
  } | null | undefined;
838
+ user_did?: string | undefined;
839
839
  }, {
840
- scopes: string[];
841
840
  tool: string;
842
- session_id: string;
841
+ scopes: string[];
843
842
  agent_did: string;
843
+ session_id: string;
844
844
  project_id: string;
845
845
  termsAccepted: boolean;
846
- user_did?: string | undefined;
847
846
  customFields?: Record<string, string | boolean> | undefined;
848
847
  termsVersion?: string | undefined;
849
848
  oauth_identity?: {
850
- subject: string;
851
849
  provider: string;
852
- email?: string | undefined;
850
+ subject: string;
853
851
  name?: string | undefined;
852
+ email?: string | undefined;
854
853
  } | null | undefined;
854
+ user_did?: string | undefined;
855
855
  }>;
856
856
  /**
857
857
  * Validate a consent approval response
@@ -861,15 +861,15 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
861
861
  */
862
862
  export declare function validateConsentApprovalResponse(response: unknown): z.SafeParseReturnType<{
863
863
  success: boolean;
864
- error?: string | undefined;
865
864
  delegation_id?: string | undefined;
866
865
  delegation_token?: string | undefined;
866
+ error?: string | undefined;
867
867
  error_code?: string | undefined;
868
868
  }, {
869
869
  success: boolean;
870
- error?: string | undefined;
871
870
  delegation_id?: string | undefined;
872
871
  delegation_token?: string | undefined;
872
+ error?: string | undefined;
873
873
  error_code?: string | undefined;
874
874
  }>;
875
875
  /**
@@ -886,15 +886,15 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
886
886
  theme?: "light" | "dark" | "auto" | undefined;
887
887
  } | undefined;
888
888
  terms?: {
889
- text?: string | undefined;
890
- required?: boolean | undefined;
891
889
  version?: string | undefined;
892
890
  url?: string | undefined;
891
+ text?: string | undefined;
892
+ required?: boolean | undefined;
893
893
  } | undefined;
894
894
  customFields?: {
895
- type: "text" | "email" | "textarea" | "checkbox" | "select";
896
- required: boolean;
897
895
  name: string;
896
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
897
+ required: boolean;
898
898
  label: string;
899
899
  options?: {
900
900
  value: string;
@@ -918,14 +918,14 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
918
918
  } | undefined;
919
919
  terms?: {
920
920
  required: boolean;
921
- text?: string | undefined;
922
921
  version?: string | undefined;
923
922
  url?: string | undefined;
923
+ text?: string | undefined;
924
924
  } | undefined;
925
925
  customFields?: {
926
- type: "text" | "email" | "textarea" | "checkbox" | "select";
927
- required: boolean;
928
926
  name: string;
927
+ type: "text" | "textarea" | "checkbox" | "select" | "email";
928
+ required: boolean;
929
929
  label: string;
930
930
  options?: {
931
931
  value: string;