@kya-os/contracts 1.7.7 → 1.7.9

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
- version?: string | undefined;
41
- url?: string | undefined;
42
40
  text?: string | undefined;
43
- }, {
44
41
  version?: string | undefined;
45
42
  url?: string | undefined;
43
+ }, {
46
44
  text?: string | undefined;
47
45
  required?: boolean | undefined;
46
+ version?: string | undefined;
47
+ url?: string | 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
- name: string;
85
- type: "text" | "textarea" | "checkbox" | "select" | "email";
84
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
86
85
  required: boolean;
86
+ name: string;
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
- name: string;
96
- type: "text" | "textarea" | "checkbox" | "select" | "email";
95
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
97
96
  required: boolean;
97
+ name: string;
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
- name: string;
107
- type: "text" | "textarea" | "checkbox" | "select" | "email";
106
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
108
107
  required: boolean;
108
+ name: string;
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
- name: string;
118
- type: "text" | "textarea" | "checkbox" | "select" | "email";
117
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
119
118
  required: boolean;
119
+ name: string;
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
- provider: string;
155
154
  subject: string;
156
- name?: string | undefined;
155
+ provider: string;
157
156
  email?: string | undefined;
157
+ name?: string | undefined;
158
158
  }, {
159
- provider: string;
160
159
  subject: string;
161
- name?: string | undefined;
160
+ provider: string;
162
161
  email?: string | undefined;
162
+ name?: 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
- version?: string | undefined;
200
- url?: string | undefined;
201
199
  text?: string | undefined;
202
- }, {
203
200
  version?: string | undefined;
204
201
  url?: string | undefined;
202
+ }, {
205
203
  text?: string | undefined;
206
204
  required?: boolean | undefined;
205
+ version?: string | undefined;
206
+ url?: string | 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
- name: string;
227
- type: "text" | "textarea" | "checkbox" | "select" | "email";
226
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
228
227
  required: boolean;
228
+ name: string;
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
- name: string;
238
- type: "text" | "textarea" | "checkbox" | "select" | "email";
237
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
239
238
  required: boolean;
239
+ name: string;
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
- name: string;
249
- type: "text" | "textarea" | "checkbox" | "select" | "email";
248
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
250
249
  required: boolean;
250
+ name: string;
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
- name: string;
260
- type: "text" | "textarea" | "checkbox" | "select" | "email";
259
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
261
260
  required: boolean;
261
+ name: string;
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[];
283
284
  agentDid: string;
284
285
  sessionId: string;
285
286
  tool: string;
286
- toolDescription: string;
287
- scopes: string[];
288
287
  projectId: string;
288
+ toolDescription: string;
289
289
  serverUrl: string;
290
- provider?: string | undefined;
291
290
  branding?: {
292
291
  primaryColor?: string | undefined;
293
292
  logoUrl?: string | undefined;
294
293
  companyName?: string | undefined;
295
294
  theme?: "light" | "dark" | "auto" | undefined;
296
295
  } | undefined;
296
+ provider?: string | undefined;
297
297
  terms?: {
298
298
  required: boolean;
299
+ text?: string | undefined;
299
300
  version?: string | undefined;
300
301
  url?: string | undefined;
301
- text?: string | undefined;
302
302
  } | undefined;
303
303
  customFields?: {
304
- name: string;
305
- type: "text" | "textarea" | "checkbox" | "select" | "email";
304
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
306
305
  required: boolean;
306
+ name: string;
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[];
319
320
  agentDid: string;
320
321
  sessionId: string;
321
322
  tool: string;
322
- toolDescription: string;
323
- scopes: string[];
324
323
  projectId: string;
324
+ toolDescription: string;
325
325
  serverUrl: string;
326
- provider?: string | undefined;
327
326
  branding?: {
328
327
  primaryColor?: string | undefined;
329
328
  logoUrl?: string | undefined;
330
329
  companyName?: string | undefined;
331
330
  theme?: "light" | "dark" | "auto" | undefined;
332
331
  } | undefined;
332
+ provider?: string | undefined;
333
333
  terms?: {
334
- version?: string | undefined;
335
- url?: string | undefined;
336
334
  text?: string | undefined;
337
335
  required?: boolean | undefined;
336
+ version?: string | undefined;
337
+ url?: string | undefined;
338
338
  } | undefined;
339
339
  customFields?: {
340
- name: string;
341
- type: "text" | "textarea" | "checkbox" | "select" | "email";
340
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
342
341
  required: boolean;
342
+ name: string;
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[];
355
356
  agentDid: string;
356
357
  sessionId: string;
357
358
  tool: string;
358
- toolDescription: string;
359
- scopes: string[];
360
359
  projectId: string;
360
+ toolDescription: string;
361
361
  serverUrl: string;
362
- provider?: string | undefined;
363
362
  branding?: {
364
363
  primaryColor?: string | undefined;
365
364
  logoUrl?: string | undefined;
366
365
  companyName?: string | undefined;
367
366
  theme?: "light" | "dark" | "auto" | undefined;
368
367
  } | undefined;
368
+ provider?: string | undefined;
369
369
  terms?: {
370
370
  required: boolean;
371
+ text?: string | undefined;
371
372
  version?: string | undefined;
372
373
  url?: string | undefined;
373
- text?: string | undefined;
374
374
  } | undefined;
375
375
  customFields?: {
376
- name: string;
377
- type: "text" | "textarea" | "checkbox" | "select" | "email";
376
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
378
377
  required: boolean;
378
+ name: string;
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[];
391
392
  agentDid: string;
392
393
  sessionId: string;
393
394
  tool: string;
394
- toolDescription: string;
395
- scopes: string[];
396
395
  projectId: string;
396
+ toolDescription: string;
397
397
  serverUrl: string;
398
- provider?: string | undefined;
399
398
  branding?: {
400
399
  primaryColor?: string | undefined;
401
400
  logoUrl?: string | undefined;
402
401
  companyName?: string | undefined;
403
402
  theme?: "light" | "dark" | "auto" | undefined;
404
403
  } | undefined;
404
+ provider?: string | undefined;
405
405
  terms?: {
406
- version?: string | undefined;
407
- url?: string | undefined;
408
406
  text?: string | undefined;
409
407
  required?: boolean | undefined;
408
+ version?: string | undefined;
409
+ url?: string | undefined;
410
410
  } | undefined;
411
411
  customFields?: {
412
- name: string;
413
- type: "text" | "textarea" | "checkbox" | "select" | "email";
412
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
414
413
  required: boolean;
414
+ name: string;
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
- provider: string;
473
472
  subject: string;
474
- name?: string | undefined;
473
+ provider: string;
475
474
  email?: string | undefined;
475
+ name?: string | undefined;
476
476
  }, {
477
- provider: string;
478
477
  subject: string;
479
- name?: string | undefined;
478
+ provider: string;
480
479
  email?: string | undefined;
480
+ name?: 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
- tool: string;
490
489
  scopes: string[];
491
- agent_did: string;
490
+ tool: string;
492
491
  session_id: string;
492
+ agent_did: string;
493
493
  project_id: string;
494
494
  termsAccepted: boolean;
495
+ user_did?: string | undefined;
495
496
  customFields?: Record<string, string | boolean> | undefined;
496
497
  termsVersion?: string | undefined;
497
498
  oauth_identity?: {
498
- provider: string;
499
499
  subject: string;
500
- name?: string | undefined;
500
+ provider: string;
501
501
  email?: string | undefined;
502
+ name?: string | undefined;
502
503
  } | null | undefined;
503
- user_did?: string | undefined;
504
504
  }, {
505
- tool: string;
506
505
  scopes: string[];
507
- agent_did: string;
506
+ tool: string;
508
507
  session_id: string;
508
+ agent_did: string;
509
509
  project_id: string;
510
510
  termsAccepted: boolean;
511
+ user_did?: string | undefined;
511
512
  customFields?: Record<string, string | boolean> | undefined;
512
513
  termsVersion?: string | undefined;
513
514
  oauth_identity?: {
514
- provider: string;
515
515
  subject: string;
516
- name?: string | undefined;
516
+ provider: string;
517
517
  email?: string | undefined;
518
+ name?: string | undefined;
518
519
  } | 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;
533
534
  delegation_id?: string | undefined;
534
535
  delegation_token?: string | undefined;
535
- error?: string | undefined;
536
536
  error_code?: string | undefined;
537
537
  }, {
538
538
  success: boolean;
539
+ error?: string | undefined;
539
540
  delegation_id?: string | undefined;
540
541
  delegation_token?: string | undefined;
541
- error?: string | undefined;
542
542
  error_code?: string | undefined;
543
543
  }>, {
544
544
  success: boolean;
545
+ error?: string | undefined;
545
546
  delegation_id?: string | undefined;
546
547
  delegation_token?: string | undefined;
547
- error?: string | undefined;
548
548
  error_code?: string | undefined;
549
549
  }, {
550
550
  success: boolean;
551
+ error?: string | undefined;
551
552
  delegation_id?: string | undefined;
552
553
  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
- version?: string | undefined;
585
- url?: string | undefined;
586
584
  text?: string | undefined;
587
- }, {
588
585
  version?: string | undefined;
589
586
  url?: string | undefined;
587
+ }, {
590
588
  text?: string | undefined;
591
589
  required?: boolean | undefined;
590
+ version?: string | undefined;
591
+ url?: string | 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
- name: string;
612
- type: "text" | "textarea" | "checkbox" | "select" | "email";
611
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
613
612
  required: boolean;
613
+ name: string;
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
- name: string;
623
- type: "text" | "textarea" | "checkbox" | "select" | "email";
622
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
624
623
  required: boolean;
624
+ name: string;
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
- name: string;
634
- type: "text" | "textarea" | "checkbox" | "select" | "email";
633
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
635
634
  required: boolean;
635
+ name: string;
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
- name: string;
645
- type: "text" | "textarea" | "checkbox" | "select" | "email";
644
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
646
645
  required: boolean;
646
+ name: string;
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;
680
681
  version?: string | undefined;
681
682
  url?: string | undefined;
682
- text?: string | undefined;
683
683
  } | undefined;
684
684
  customFields?: {
685
- name: string;
686
- type: "text" | "textarea" | "checkbox" | "select" | "email";
685
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
687
686
  required: boolean;
687
+ name: string;
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
- version?: string | undefined;
711
- url?: string | undefined;
712
710
  text?: string | undefined;
713
711
  required?: boolean | undefined;
712
+ version?: string | undefined;
713
+ url?: string | undefined;
714
714
  } | undefined;
715
715
  customFields?: {
716
- name: string;
717
- type: "text" | "textarea" | "checkbox" | "select" | "email";
716
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
718
717
  required: boolean;
718
+ name: string;
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[];
745
746
  agentDid: string;
746
747
  sessionId: string;
747
748
  tool: string;
748
- toolDescription: string;
749
- scopes: string[];
750
749
  projectId: string;
750
+ toolDescription: string;
751
751
  serverUrl: string;
752
- provider?: string | undefined;
753
752
  branding?: {
754
753
  primaryColor?: string | undefined;
755
754
  logoUrl?: string | undefined;
756
755
  companyName?: string | undefined;
757
756
  theme?: "light" | "dark" | "auto" | undefined;
758
757
  } | undefined;
758
+ provider?: string | undefined;
759
759
  terms?: {
760
- version?: string | undefined;
761
- url?: string | undefined;
762
760
  text?: string | undefined;
763
761
  required?: boolean | undefined;
762
+ version?: string | undefined;
763
+ url?: string | undefined;
764
764
  } | undefined;
765
765
  customFields?: {
766
- name: string;
767
- type: "text" | "textarea" | "checkbox" | "select" | "email";
766
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
768
767
  required: boolean;
768
+ name: string;
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[];
781
782
  agentDid: string;
782
783
  sessionId: string;
783
784
  tool: string;
784
- toolDescription: string;
785
- scopes: string[];
786
785
  projectId: string;
786
+ toolDescription: string;
787
787
  serverUrl: string;
788
- provider?: string | undefined;
789
788
  branding?: {
790
789
  primaryColor?: string | undefined;
791
790
  logoUrl?: string | undefined;
792
791
  companyName?: string | undefined;
793
792
  theme?: "light" | "dark" | "auto" | undefined;
794
793
  } | undefined;
794
+ provider?: string | undefined;
795
795
  terms?: {
796
796
  required: boolean;
797
+ text?: string | undefined;
797
798
  version?: string | undefined;
798
799
  url?: string | undefined;
799
- text?: string | undefined;
800
800
  } | undefined;
801
801
  customFields?: {
802
- name: string;
803
- type: "text" | "textarea" | "checkbox" | "select" | "email";
802
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
804
803
  required: boolean;
804
+ name: string;
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
- tool: string;
825
824
  scopes: string[];
826
- agent_did: string;
825
+ tool: string;
827
826
  session_id: string;
827
+ agent_did: string;
828
828
  project_id: string;
829
829
  termsAccepted: boolean;
830
+ user_did?: string | undefined;
830
831
  customFields?: Record<string, string | boolean> | undefined;
831
832
  termsVersion?: string | undefined;
832
833
  oauth_identity?: {
833
- provider: string;
834
834
  subject: string;
835
- name?: string | undefined;
835
+ provider: string;
836
836
  email?: string | undefined;
837
+ name?: string | undefined;
837
838
  } | null | undefined;
838
- user_did?: string | undefined;
839
839
  }, {
840
- tool: string;
841
840
  scopes: string[];
842
- agent_did: string;
841
+ tool: string;
843
842
  session_id: string;
843
+ agent_did: string;
844
844
  project_id: string;
845
845
  termsAccepted: boolean;
846
+ user_did?: string | undefined;
846
847
  customFields?: Record<string, string | boolean> | undefined;
847
848
  termsVersion?: string | undefined;
848
849
  oauth_identity?: {
849
- provider: string;
850
850
  subject: string;
851
- name?: string | undefined;
851
+ provider: string;
852
852
  email?: string | undefined;
853
+ name?: string | undefined;
853
854
  } | 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;
864
865
  delegation_id?: string | undefined;
865
866
  delegation_token?: string | undefined;
866
- error?: string | undefined;
867
867
  error_code?: string | undefined;
868
868
  }, {
869
869
  success: boolean;
870
+ error?: string | undefined;
870
871
  delegation_id?: string | undefined;
871
872
  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
- version?: string | undefined;
890
- url?: string | undefined;
891
889
  text?: string | undefined;
892
890
  required?: boolean | undefined;
891
+ version?: string | undefined;
892
+ url?: string | undefined;
893
893
  } | undefined;
894
894
  customFields?: {
895
- name: string;
896
- type: "text" | "textarea" | "checkbox" | "select" | "email";
895
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
897
896
  required: boolean;
897
+ name: string;
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;
921
922
  version?: string | undefined;
922
923
  url?: string | undefined;
923
- text?: string | undefined;
924
924
  } | undefined;
925
925
  customFields?: {
926
- name: string;
927
- type: "text" | "textarea" | "checkbox" | "select" | "email";
926
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
928
927
  required: boolean;
928
+ name: string;
929
929
  label: string;
930
930
  options?: {
931
931
  value: string;