@kya-os/contracts 1.7.25 → 1.7.26

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.
@@ -38,13 +38,13 @@ export declare const consentTermsSchema: z.ZodObject<{
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  required: boolean;
40
40
  text?: string | undefined;
41
- url?: string | undefined;
42
41
  version?: string | undefined;
42
+ url?: string | undefined;
43
43
  }, {
44
44
  text?: string | undefined;
45
- url?: string | undefined;
46
- version?: 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,10 +81,10 @@ 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" | "textarea" | "checkbox" | "select" | "email";
84
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
85
+ name: string;
85
86
  required: boolean;
86
87
  label: string;
87
- name: string;
88
88
  options?: {
89
89
  value: string;
90
90
  label: string;
@@ -92,10 +92,10 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
92
92
  placeholder?: string | undefined;
93
93
  pattern?: string | undefined;
94
94
  }, {
95
- type: "text" | "textarea" | "checkbox" | "select" | "email";
95
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
96
+ name: string;
96
97
  required: boolean;
97
98
  label: string;
98
- name: string;
99
99
  options?: {
100
100
  value: string;
101
101
  label: string;
@@ -103,10 +103,10 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
103
103
  placeholder?: string | undefined;
104
104
  pattern?: string | undefined;
105
105
  }>, {
106
- type: "text" | "textarea" | "checkbox" | "select" | "email";
106
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
107
+ name: string;
107
108
  required: boolean;
108
109
  label: string;
109
- name: string;
110
110
  options?: {
111
111
  value: string;
112
112
  label: string;
@@ -114,10 +114,10 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
114
114
  placeholder?: string | undefined;
115
115
  pattern?: string | undefined;
116
116
  }, {
117
- type: "text" | "textarea" | "checkbox" | "select" | "email";
117
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
118
+ name: string;
118
119
  required: boolean;
119
120
  label: string;
120
- name: string;
121
121
  options?: {
122
122
  value: string;
123
123
  label: string;
@@ -197,13 +197,13 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
197
197
  }, "strip", z.ZodTypeAny, {
198
198
  required: boolean;
199
199
  text?: string | undefined;
200
- url?: string | undefined;
201
200
  version?: string | undefined;
201
+ url?: string | undefined;
202
202
  }, {
203
203
  text?: string | undefined;
204
- url?: string | undefined;
205
- version?: 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,10 +223,10 @@ 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" | "textarea" | "checkbox" | "select" | "email";
226
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
227
+ name: string;
227
228
  required: boolean;
228
229
  label: string;
229
- name: string;
230
230
  options?: {
231
231
  value: string;
232
232
  label: string;
@@ -234,10 +234,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
234
234
  placeholder?: string | undefined;
235
235
  pattern?: string | undefined;
236
236
  }, {
237
- type: "text" | "textarea" | "checkbox" | "select" | "email";
237
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
238
+ name: string;
238
239
  required: boolean;
239
240
  label: string;
240
- name: string;
241
241
  options?: {
242
242
  value: string;
243
243
  label: string;
@@ -245,10 +245,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
245
245
  placeholder?: string | undefined;
246
246
  pattern?: string | undefined;
247
247
  }>, {
248
- type: "text" | "textarea" | "checkbox" | "select" | "email";
248
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
249
+ name: string;
249
250
  required: boolean;
250
251
  label: string;
251
- name: string;
252
252
  options?: {
253
253
  value: string;
254
254
  label: string;
@@ -256,10 +256,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
256
256
  placeholder?: string | undefined;
257
257
  pattern?: string | undefined;
258
258
  }, {
259
- type: "text" | "textarea" | "checkbox" | "select" | "email";
259
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
260
+ name: string;
260
261
  required: boolean;
261
262
  label: string;
262
- name: string;
263
263
  options?: {
264
264
  value: string;
265
265
  label: string;
@@ -280,31 +280,31 @@ 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
- tool: string;
284
- toolDescription: string;
285
- scopes: string[];
286
283
  agentDid: string;
287
- sessionId: string;
288
284
  projectId: string;
285
+ scopes: string[];
286
+ sessionId: string;
287
+ tool: 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
299
  text?: string | undefined;
300
- url?: string | undefined;
301
300
  version?: string | undefined;
301
+ url?: string | undefined;
302
302
  } | undefined;
303
303
  customFields?: {
304
- type: "text" | "textarea" | "checkbox" | "select" | "email";
304
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
305
+ name: string;
305
306
  required: boolean;
306
307
  label: string;
307
- name: string;
308
308
  options?: {
309
309
  value: string;
310
310
  label: string;
@@ -316,31 +316,31 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
316
316
  oauthRequired?: boolean | undefined;
317
317
  oauthUrl?: string | undefined;
318
318
  }, {
319
- tool: string;
320
- toolDescription: string;
321
- scopes: string[];
322
319
  agentDid: string;
323
- sessionId: string;
324
320
  projectId: string;
321
+ scopes: string[];
322
+ sessionId: string;
323
+ tool: 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
334
  text?: string | undefined;
335
- url?: string | undefined;
336
- version?: string | undefined;
337
335
  required?: boolean | undefined;
336
+ version?: string | undefined;
337
+ url?: string | undefined;
338
338
  } | undefined;
339
339
  customFields?: {
340
- type: "text" | "textarea" | "checkbox" | "select" | "email";
340
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
341
+ name: string;
341
342
  required: boolean;
342
343
  label: string;
343
- name: string;
344
344
  options?: {
345
345
  value: string;
346
346
  label: string;
@@ -352,31 +352,31 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
352
352
  oauthRequired?: boolean | undefined;
353
353
  oauthUrl?: string | undefined;
354
354
  }>, {
355
- tool: string;
356
- toolDescription: string;
357
- scopes: string[];
358
355
  agentDid: string;
359
- sessionId: string;
360
356
  projectId: string;
357
+ scopes: string[];
358
+ sessionId: string;
359
+ tool: 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
371
  text?: string | undefined;
372
- url?: string | undefined;
373
372
  version?: string | undefined;
373
+ url?: string | undefined;
374
374
  } | undefined;
375
375
  customFields?: {
376
- type: "text" | "textarea" | "checkbox" | "select" | "email";
376
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
377
+ name: string;
377
378
  required: boolean;
378
379
  label: string;
379
- name: string;
380
380
  options?: {
381
381
  value: string;
382
382
  label: string;
@@ -388,31 +388,31 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
388
388
  oauthRequired?: boolean | undefined;
389
389
  oauthUrl?: string | undefined;
390
390
  }, {
391
- tool: string;
392
- toolDescription: string;
393
- scopes: string[];
394
391
  agentDid: string;
395
- sessionId: string;
396
392
  projectId: string;
393
+ scopes: string[];
394
+ sessionId: string;
395
+ tool: 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
406
  text?: string | undefined;
407
- url?: string | undefined;
408
- version?: string | undefined;
409
407
  required?: boolean | undefined;
408
+ version?: string | undefined;
409
+ url?: string | undefined;
410
410
  } | undefined;
411
411
  customFields?: {
412
- type: "text" | "textarea" | "checkbox" | "select" | "email";
412
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
413
+ name: string;
413
414
  required: boolean;
414
415
  label: string;
415
- name: string;
416
416
  options?: {
417
417
  value: string;
418
418
  label: string;
@@ -500,12 +500,13 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
500
500
  */
501
501
  credential_provider_user_id: z.ZodOptional<z.ZodString>;
502
502
  }, "strip", z.ZodTypeAny, {
503
- tool: string;
504
503
  scopes: string[];
505
- agent_did: string;
504
+ tool: string;
506
505
  session_id: string;
506
+ agent_did: string;
507
507
  project_id: string;
508
508
  termsAccepted: boolean;
509
+ user_did?: string | undefined;
509
510
  customFields?: Record<string, string | boolean> | undefined;
510
511
  termsVersion?: string | undefined;
511
512
  oauth_identity?: {
@@ -514,16 +515,16 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
514
515
  name?: string | undefined;
515
516
  email?: string | undefined;
516
517
  } | null | undefined;
517
- user_did?: string | undefined;
518
518
  credential_user_email?: string | undefined;
519
519
  credential_provider_user_id?: string | undefined;
520
520
  }, {
521
- tool: string;
522
521
  scopes: string[];
523
- agent_did: string;
522
+ tool: string;
524
523
  session_id: string;
524
+ agent_did: string;
525
525
  project_id: string;
526
526
  termsAccepted: boolean;
527
+ user_did?: string | undefined;
527
528
  customFields?: Record<string, string | boolean> | undefined;
528
529
  termsVersion?: string | undefined;
529
530
  oauth_identity?: {
@@ -532,7 +533,6 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
532
533
  name?: string | undefined;
533
534
  email?: string | undefined;
534
535
  } | null | undefined;
535
- user_did?: string | undefined;
536
536
  credential_user_email?: string | undefined;
537
537
  credential_provider_user_id?: string | undefined;
538
538
  }>;
@@ -548,27 +548,27 @@ export declare const consentApprovalResponseSchema: z.ZodEffects<z.ZodObject<{
548
548
  error_code: z.ZodOptional<z.ZodString>;
549
549
  }, "strip", z.ZodTypeAny, {
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
  success: boolean;
557
+ error?: string | undefined;
557
558
  delegation_id?: string | undefined;
558
559
  delegation_token?: string | undefined;
559
- error?: string | undefined;
560
560
  error_code?: string | undefined;
561
561
  }>, {
562
562
  success: boolean;
563
+ error?: string | undefined;
563
564
  delegation_id?: string | undefined;
564
565
  delegation_token?: string | undefined;
565
- error?: string | undefined;
566
566
  error_code?: string | undefined;
567
567
  }, {
568
568
  success: boolean;
569
+ error?: string | undefined;
569
570
  delegation_id?: string | undefined;
570
571
  delegation_token?: string | undefined;
571
- error?: string | undefined;
572
572
  error_code?: string | undefined;
573
573
  }>;
574
574
  export type ConsentApprovalResponse = z.infer<typeof consentApprovalResponseSchema>;
@@ -600,13 +600,13 @@ export declare const consentConfigSchema: z.ZodObject<{
600
600
  }, "strip", z.ZodTypeAny, {
601
601
  required: boolean;
602
602
  text?: string | undefined;
603
- url?: string | undefined;
604
603
  version?: string | undefined;
604
+ url?: string | undefined;
605
605
  }, {
606
606
  text?: string | undefined;
607
- url?: string | undefined;
608
- version?: string | undefined;
609
607
  required?: boolean | undefined;
608
+ version?: string | undefined;
609
+ url?: string | undefined;
610
610
  }>>;
611
611
  customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
612
612
  name: z.ZodString;
@@ -626,10 +626,10 @@ export declare const consentConfigSchema: z.ZodObject<{
626
626
  }>, "many">>;
627
627
  pattern: z.ZodOptional<z.ZodString>;
628
628
  }, "strip", z.ZodTypeAny, {
629
- type: "text" | "textarea" | "checkbox" | "select" | "email";
629
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
630
+ name: string;
630
631
  required: boolean;
631
632
  label: string;
632
- name: string;
633
633
  options?: {
634
634
  value: string;
635
635
  label: string;
@@ -637,10 +637,10 @@ export declare const consentConfigSchema: z.ZodObject<{
637
637
  placeholder?: string | undefined;
638
638
  pattern?: string | undefined;
639
639
  }, {
640
- type: "text" | "textarea" | "checkbox" | "select" | "email";
640
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
641
+ name: string;
641
642
  required: boolean;
642
643
  label: string;
643
- name: string;
644
644
  options?: {
645
645
  value: string;
646
646
  label: string;
@@ -648,10 +648,10 @@ export declare const consentConfigSchema: z.ZodObject<{
648
648
  placeholder?: string | undefined;
649
649
  pattern?: string | undefined;
650
650
  }>, {
651
- type: "text" | "textarea" | "checkbox" | "select" | "email";
651
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
652
+ name: string;
652
653
  required: boolean;
653
654
  label: string;
654
- name: string;
655
655
  options?: {
656
656
  value: string;
657
657
  label: string;
@@ -659,10 +659,10 @@ export declare const consentConfigSchema: z.ZodObject<{
659
659
  placeholder?: string | undefined;
660
660
  pattern?: string | undefined;
661
661
  }, {
662
- type: "text" | "textarea" | "checkbox" | "select" | "email";
662
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
663
+ name: string;
663
664
  required: boolean;
664
665
  label: string;
665
- name: string;
666
666
  options?: {
667
667
  value: string;
668
668
  label: string;
@@ -696,14 +696,14 @@ export declare const consentConfigSchema: z.ZodObject<{
696
696
  terms?: {
697
697
  required: boolean;
698
698
  text?: string | undefined;
699
- url?: string | undefined;
700
699
  version?: string | undefined;
700
+ url?: string | undefined;
701
701
  } | undefined;
702
702
  customFields?: {
703
- type: "text" | "textarea" | "checkbox" | "select" | "email";
703
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
704
+ name: string;
704
705
  required: boolean;
705
706
  label: string;
706
- name: string;
707
707
  options?: {
708
708
  value: string;
709
709
  label: string;
@@ -726,15 +726,15 @@ export declare const consentConfigSchema: z.ZodObject<{
726
726
  } | undefined;
727
727
  terms?: {
728
728
  text?: string | undefined;
729
- url?: string | undefined;
730
- version?: string | undefined;
731
729
  required?: boolean | undefined;
730
+ version?: string | undefined;
731
+ url?: string | undefined;
732
732
  } | undefined;
733
733
  customFields?: {
734
- type: "text" | "textarea" | "checkbox" | "select" | "email";
734
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
735
+ name: string;
735
736
  required: boolean;
736
737
  label: string;
737
- name: string;
738
738
  options?: {
739
739
  value: string;
740
740
  label: string;
@@ -760,31 +760,31 @@ export type ConsentConfig = z.infer<typeof consentConfigSchema>;
760
760
  * @returns Validation result
761
761
  */
762
762
  export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType<{
763
- tool: string;
764
- toolDescription: string;
765
- scopes: string[];
766
763
  agentDid: string;
767
- sessionId: string;
768
764
  projectId: string;
765
+ scopes: string[];
766
+ sessionId: string;
767
+ tool: string;
768
+ toolDescription: string;
769
769
  serverUrl: string;
770
- provider?: string | undefined;
771
770
  branding?: {
772
771
  primaryColor?: string | undefined;
773
772
  logoUrl?: string | undefined;
774
773
  companyName?: string | undefined;
775
774
  theme?: "light" | "dark" | "auto" | undefined;
776
775
  } | undefined;
776
+ provider?: string | undefined;
777
777
  terms?: {
778
778
  text?: string | undefined;
779
- url?: string | undefined;
780
- version?: string | undefined;
781
779
  required?: boolean | undefined;
780
+ version?: string | undefined;
781
+ url?: string | undefined;
782
782
  } | undefined;
783
783
  customFields?: {
784
- type: "text" | "textarea" | "checkbox" | "select" | "email";
784
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
785
+ name: string;
785
786
  required: boolean;
786
787
  label: string;
787
- name: string;
788
788
  options?: {
789
789
  value: string;
790
790
  label: string;
@@ -796,31 +796,31 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
796
796
  oauthRequired?: boolean | undefined;
797
797
  oauthUrl?: string | undefined;
798
798
  }, {
799
- tool: string;
800
- toolDescription: string;
801
- scopes: string[];
802
799
  agentDid: string;
803
- sessionId: string;
804
800
  projectId: string;
801
+ scopes: string[];
802
+ sessionId: string;
803
+ tool: string;
804
+ toolDescription: string;
805
805
  serverUrl: string;
806
- provider?: string | undefined;
807
806
  branding?: {
808
807
  primaryColor?: string | undefined;
809
808
  logoUrl?: string | undefined;
810
809
  companyName?: string | undefined;
811
810
  theme?: "light" | "dark" | "auto" | undefined;
812
811
  } | undefined;
812
+ provider?: string | undefined;
813
813
  terms?: {
814
814
  required: boolean;
815
815
  text?: string | undefined;
816
- url?: string | undefined;
817
816
  version?: string | undefined;
817
+ url?: string | undefined;
818
818
  } | undefined;
819
819
  customFields?: {
820
- type: "text" | "textarea" | "checkbox" | "select" | "email";
820
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
821
+ name: string;
821
822
  required: boolean;
822
823
  label: string;
823
- name: string;
824
824
  options?: {
825
825
  value: string;
826
826
  label: string;
@@ -839,12 +839,13 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
839
839
  * @returns Validation result
840
840
  */
841
841
  export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType<{
842
- tool: string;
843
842
  scopes: string[];
844
- agent_did: string;
843
+ tool: string;
845
844
  session_id: string;
845
+ agent_did: string;
846
846
  project_id: string;
847
847
  termsAccepted: boolean;
848
+ user_did?: string | undefined;
848
849
  customFields?: Record<string, string | boolean> | undefined;
849
850
  termsVersion?: string | undefined;
850
851
  oauth_identity?: {
@@ -853,16 +854,16 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
853
854
  name?: string | undefined;
854
855
  email?: string | undefined;
855
856
  } | null | undefined;
856
- user_did?: string | undefined;
857
857
  credential_user_email?: string | undefined;
858
858
  credential_provider_user_id?: string | undefined;
859
859
  }, {
860
- tool: string;
861
860
  scopes: string[];
862
- agent_did: string;
861
+ tool: string;
863
862
  session_id: string;
863
+ agent_did: string;
864
864
  project_id: string;
865
865
  termsAccepted: boolean;
866
+ user_did?: string | undefined;
866
867
  customFields?: Record<string, string | boolean> | undefined;
867
868
  termsVersion?: string | undefined;
868
869
  oauth_identity?: {
@@ -871,7 +872,6 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
871
872
  name?: string | undefined;
872
873
  email?: string | undefined;
873
874
  } | null | undefined;
874
- user_did?: string | undefined;
875
875
  credential_user_email?: string | undefined;
876
876
  credential_provider_user_id?: string | undefined;
877
877
  }>;
@@ -883,15 +883,15 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
883
883
  */
884
884
  export declare function validateConsentApprovalResponse(response: unknown): z.SafeParseReturnType<{
885
885
  success: boolean;
886
+ error?: string | undefined;
886
887
  delegation_id?: string | undefined;
887
888
  delegation_token?: string | undefined;
888
- error?: string | undefined;
889
889
  error_code?: string | undefined;
890
890
  }, {
891
891
  success: boolean;
892
+ error?: string | undefined;
892
893
  delegation_id?: string | undefined;
893
894
  delegation_token?: string | undefined;
894
- error?: string | undefined;
895
895
  error_code?: string | undefined;
896
896
  }>;
897
897
  /**
@@ -909,15 +909,15 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
909
909
  } | undefined;
910
910
  terms?: {
911
911
  text?: string | undefined;
912
- url?: string | undefined;
913
- version?: string | undefined;
914
912
  required?: boolean | undefined;
913
+ version?: string | undefined;
914
+ url?: string | undefined;
915
915
  } | undefined;
916
916
  customFields?: {
917
- type: "text" | "textarea" | "checkbox" | "select" | "email";
917
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
918
+ name: string;
918
919
  required: boolean;
919
920
  label: string;
920
- name: string;
921
921
  options?: {
922
922
  value: string;
923
923
  label: string;
@@ -941,14 +941,14 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
941
941
  terms?: {
942
942
  required: boolean;
943
943
  text?: string | undefined;
944
- url?: string | undefined;
945
944
  version?: string | undefined;
945
+ url?: string | undefined;
946
946
  } | undefined;
947
947
  customFields?: {
948
- type: "text" | "textarea" | "checkbox" | "select" | "email";
948
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
949
+ name: string;
949
950
  required: boolean;
950
951
  label: string;
951
- name: string;
952
952
  options?: {
953
953
  value: string;
954
954
  label: string;