@kya-os/contracts 1.6.0 → 1.6.2-canary.0

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
- url?: string | undefined;
42
40
  version?: string | undefined;
43
- }, {
44
- text?: string | undefined;
45
41
  url?: string | undefined;
42
+ text?: string | undefined;
43
+ }, {
46
44
  version?: string | undefined;
45
+ url?: string | undefined;
47
46
  required?: boolean | undefined;
47
+ text?: string | undefined;
48
48
  }>;
49
49
  export type ConsentTerms = z.infer<typeof consentTermsSchema>;
50
50
  /**
@@ -82,9 +82,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
82
82
  pattern: z.ZodOptional<z.ZodString>;
83
83
  }, "strip", z.ZodTypeAny, {
84
84
  type: "text" | "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;
@@ -93,9 +93,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
93
93
  pattern?: string | undefined;
94
94
  }, {
95
95
  type: "text" | "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;
@@ -104,9 +104,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
104
104
  pattern?: string | undefined;
105
105
  }>, {
106
106
  type: "text" | "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;
@@ -115,9 +115,9 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
115
115
  pattern?: string | undefined;
116
116
  }, {
117
117
  type: "text" | "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;
@@ -151,13 +151,13 @@ 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;
155
+ provider: string;
156
156
  name?: string | undefined;
157
157
  email?: string | undefined;
158
158
  }, {
159
- provider: string;
160
159
  subject: string;
160
+ provider: string;
161
161
  name?: string | undefined;
162
162
  email?: string | undefined;
163
163
  }>;
@@ -165,14 +165,13 @@ export type OAuthIdentity = z.infer<typeof oauthIdentitySchema>;
165
165
  /**
166
166
  * Consent Page Config Schema
167
167
  */
168
- export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
168
+ export declare const consentPageConfigSchema: z.ZodObject<{
169
169
  tool: z.ZodString;
170
170
  toolDescription: z.ZodString;
171
171
  scopes: z.ZodArray<z.ZodString, "many">;
172
172
  agentDid: z.ZodString;
173
173
  sessionId: z.ZodString;
174
174
  projectId: z.ZodString;
175
- provider: z.ZodOptional<z.ZodString>;
176
175
  branding: z.ZodOptional<z.ZodObject<{
177
176
  primaryColor: z.ZodOptional<z.ZodString>;
178
177
  logoUrl: z.ZodOptional<z.ZodString>;
@@ -196,14 +195,14 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
196
195
  required: z.ZodDefault<z.ZodBoolean>;
197
196
  }, "strip", z.ZodTypeAny, {
198
197
  required: boolean;
199
- text?: string | undefined;
200
- url?: string | undefined;
201
198
  version?: string | undefined;
202
- }, {
203
- text?: string | undefined;
204
199
  url?: string | undefined;
200
+ text?: string | undefined;
201
+ }, {
205
202
  version?: string | undefined;
203
+ url?: string | undefined;
206
204
  required?: boolean | undefined;
205
+ text?: string | undefined;
207
206
  }>>;
208
207
  customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
209
208
  name: z.ZodString;
@@ -224,9 +223,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
224
223
  pattern: z.ZodOptional<z.ZodString>;
225
224
  }, "strip", z.ZodTypeAny, {
226
225
  type: "text" | "textarea" | "checkbox" | "select";
226
+ name: string;
227
227
  required: boolean;
228
228
  label: string;
229
- name: string;
230
229
  options?: {
231
230
  value: string;
232
231
  label: string;
@@ -235,9 +234,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
235
234
  pattern?: string | undefined;
236
235
  }, {
237
236
  type: "text" | "textarea" | "checkbox" | "select";
237
+ name: string;
238
238
  required: boolean;
239
239
  label: string;
240
- name: string;
241
240
  options?: {
242
241
  value: string;
243
242
  label: string;
@@ -246,9 +245,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
246
245
  pattern?: string | undefined;
247
246
  }>, {
248
247
  type: "text" | "textarea" | "checkbox" | "select";
248
+ name: string;
249
249
  required: boolean;
250
250
  label: string;
251
- name: string;
252
251
  options?: {
253
252
  value: string;
254
253
  label: string;
@@ -257,9 +256,9 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
257
256
  pattern?: string | undefined;
258
257
  }, {
259
258
  type: "text" | "textarea" | "checkbox" | "select";
259
+ name: string;
260
260
  required: boolean;
261
261
  label: string;
262
- name: string;
263
262
  options?: {
264
263
  value: string;
265
264
  label: string;
@@ -269,97 +268,14 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
269
268
  }>, "many">>;
270
269
  serverUrl: z.ZodString;
271
270
  autoClose: z.ZodOptional<z.ZodBoolean>;
272
- /**
273
- * Whether OAuth authorization is required immediately
274
- * If true, the consent page will act as a landing page before redirecting
275
- */
276
- oauthRequired: z.ZodOptional<z.ZodBoolean>;
277
- /**
278
- * The OAuth authorization URL to redirect to
279
- * Required if oauthRequired is true
280
- */
281
- oauthUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
282
271
  }, "strip", z.ZodTypeAny, {
283
- tool: string;
284
- toolDescription: string;
285
- scopes: string[];
286
272
  agentDid: string;
287
273
  sessionId: string;
288
- projectId: string;
289
- serverUrl: string;
290
- provider?: string | undefined;
291
- branding?: {
292
- primaryColor?: string | undefined;
293
- logoUrl?: string | undefined;
294
- companyName?: string | undefined;
295
- theme?: "light" | "dark" | "auto" | undefined;
296
- } | undefined;
297
- terms?: {
298
- required: boolean;
299
- text?: string | undefined;
300
- url?: string | undefined;
301
- version?: string | undefined;
302
- } | undefined;
303
- customFields?: {
304
- type: "text" | "textarea" | "checkbox" | "select";
305
- required: boolean;
306
- label: string;
307
- name: string;
308
- options?: {
309
- value: string;
310
- label: string;
311
- }[] | undefined;
312
- placeholder?: string | undefined;
313
- pattern?: string | undefined;
314
- }[] | undefined;
315
- autoClose?: boolean | undefined;
316
- oauthRequired?: boolean | undefined;
317
- oauthUrl?: string | undefined;
318
- }, {
319
274
  tool: string;
320
- toolDescription: string;
321
275
  scopes: string[];
322
- agentDid: string;
323
- sessionId: string;
324
276
  projectId: string;
325
- serverUrl: string;
326
- provider?: string | undefined;
327
- branding?: {
328
- primaryColor?: string | undefined;
329
- logoUrl?: string | undefined;
330
- companyName?: string | undefined;
331
- theme?: "light" | "dark" | "auto" | undefined;
332
- } | undefined;
333
- terms?: {
334
- text?: string | undefined;
335
- url?: string | undefined;
336
- version?: string | undefined;
337
- required?: boolean | undefined;
338
- } | undefined;
339
- customFields?: {
340
- type: "text" | "textarea" | "checkbox" | "select";
341
- required: boolean;
342
- label: string;
343
- name: string;
344
- options?: {
345
- value: string;
346
- label: string;
347
- }[] | undefined;
348
- placeholder?: string | undefined;
349
- pattern?: string | undefined;
350
- }[] | undefined;
351
- autoClose?: boolean | undefined;
352
- oauthRequired?: boolean | undefined;
353
- oauthUrl?: string | undefined;
354
- }>, {
355
- tool: string;
356
277
  toolDescription: string;
357
- scopes: string[];
358
- agentDid: string;
359
- sessionId: string;
360
- projectId: string;
361
278
  serverUrl: string;
362
- provider?: string | undefined;
363
279
  branding?: {
364
280
  primaryColor?: string | undefined;
365
281
  logoUrl?: string | undefined;
@@ -368,15 +284,15 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
368
284
  } | undefined;
369
285
  terms?: {
370
286
  required: boolean;
371
- text?: string | undefined;
372
- url?: string | undefined;
373
287
  version?: string | undefined;
288
+ url?: string | undefined;
289
+ text?: string | undefined;
374
290
  } | undefined;
375
291
  customFields?: {
376
292
  type: "text" | "textarea" | "checkbox" | "select";
293
+ name: string;
377
294
  required: boolean;
378
295
  label: string;
379
- name: string;
380
296
  options?: {
381
297
  value: string;
382
298
  label: string;
@@ -385,17 +301,14 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
385
301
  pattern?: string | undefined;
386
302
  }[] | undefined;
387
303
  autoClose?: boolean | undefined;
388
- oauthRequired?: boolean | undefined;
389
- oauthUrl?: string | undefined;
390
304
  }, {
391
- tool: string;
392
- toolDescription: string;
393
- scopes: string[];
394
305
  agentDid: string;
395
306
  sessionId: string;
307
+ tool: string;
308
+ scopes: string[];
396
309
  projectId: string;
310
+ toolDescription: string;
397
311
  serverUrl: string;
398
- provider?: string | undefined;
399
312
  branding?: {
400
313
  primaryColor?: string | undefined;
401
314
  logoUrl?: string | undefined;
@@ -403,16 +316,16 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
403
316
  theme?: "light" | "dark" | "auto" | undefined;
404
317
  } | undefined;
405
318
  terms?: {
406
- text?: string | undefined;
407
- url?: string | undefined;
408
319
  version?: string | undefined;
320
+ url?: string | undefined;
409
321
  required?: boolean | undefined;
322
+ text?: string | undefined;
410
323
  } | undefined;
411
324
  customFields?: {
412
325
  type: "text" | "textarea" | "checkbox" | "select";
326
+ name: string;
413
327
  required: boolean;
414
328
  label: string;
415
- name: string;
416
329
  options?: {
417
330
  value: string;
418
331
  label: string;
@@ -421,8 +334,6 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
421
334
  pattern?: string | undefined;
422
335
  }[] | undefined;
423
336
  autoClose?: boolean | undefined;
424
- oauthRequired?: boolean | undefined;
425
- oauthUrl?: string | undefined;
426
337
  }>;
427
338
  export type ConsentPageConfig = z.infer<typeof consentPageConfigSchema>;
428
339
  /**
@@ -469,13 +380,13 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
469
380
  */
470
381
  name: z.ZodOptional<z.ZodString>;
471
382
  }, "strip", z.ZodTypeAny, {
472
- provider: string;
473
383
  subject: string;
384
+ provider: string;
474
385
  name?: string | undefined;
475
386
  email?: string | undefined;
476
387
  }, {
477
- provider: string;
478
388
  subject: string;
389
+ provider: string;
479
390
  name?: string | undefined;
480
391
  email?: string | undefined;
481
392
  }>>>;
@@ -487,32 +398,32 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
487
398
  user_did: z.ZodOptional<z.ZodString>;
488
399
  }, "strip", z.ZodTypeAny, {
489
400
  tool: string;
401
+ session_id: string;
490
402
  scopes: string[];
491
403
  agent_did: string;
492
- session_id: string;
493
404
  project_id: string;
494
405
  termsAccepted: boolean;
495
406
  customFields?: Record<string, string | boolean> | undefined;
496
407
  termsVersion?: string | undefined;
497
408
  oauth_identity?: {
498
- provider: string;
499
409
  subject: string;
410
+ provider: string;
500
411
  name?: string | undefined;
501
412
  email?: string | undefined;
502
413
  } | null | undefined;
503
414
  user_did?: string | undefined;
504
415
  }, {
505
416
  tool: string;
417
+ session_id: string;
506
418
  scopes: string[];
507
419
  agent_did: string;
508
- session_id: string;
509
420
  project_id: string;
510
421
  termsAccepted: boolean;
511
422
  customFields?: Record<string, string | boolean> | undefined;
512
423
  termsVersion?: string | undefined;
513
424
  oauth_identity?: {
514
- provider: string;
515
425
  subject: string;
426
+ provider: string;
516
427
  name?: string | undefined;
517
428
  email?: string | undefined;
518
429
  } | null | undefined;
@@ -530,27 +441,27 @@ export declare const consentApprovalResponseSchema: z.ZodEffects<z.ZodObject<{
530
441
  error_code: z.ZodOptional<z.ZodString>;
531
442
  }, "strip", z.ZodTypeAny, {
532
443
  success: boolean;
444
+ error?: string | undefined;
533
445
  delegation_id?: string | undefined;
534
446
  delegation_token?: string | undefined;
535
- error?: string | undefined;
536
447
  error_code?: string | undefined;
537
448
  }, {
538
449
  success: boolean;
450
+ error?: string | undefined;
539
451
  delegation_id?: string | undefined;
540
452
  delegation_token?: string | undefined;
541
- error?: string | undefined;
542
453
  error_code?: string | undefined;
543
454
  }>, {
544
455
  success: boolean;
456
+ error?: string | undefined;
545
457
  delegation_id?: string | undefined;
546
458
  delegation_token?: string | undefined;
547
- error?: string | undefined;
548
459
  error_code?: string | undefined;
549
460
  }, {
550
461
  success: boolean;
462
+ error?: string | undefined;
551
463
  delegation_id?: string | undefined;
552
464
  delegation_token?: string | undefined;
553
- error?: string | undefined;
554
465
  error_code?: string | undefined;
555
466
  }>;
556
467
  export type ConsentApprovalResponse = z.infer<typeof consentApprovalResponseSchema>;
@@ -581,14 +492,14 @@ export declare const consentConfigSchema: z.ZodObject<{
581
492
  required: z.ZodDefault<z.ZodBoolean>;
582
493
  }, "strip", z.ZodTypeAny, {
583
494
  required: boolean;
584
- text?: string | undefined;
585
- url?: string | undefined;
586
495
  version?: string | undefined;
587
- }, {
588
- text?: string | undefined;
589
496
  url?: string | undefined;
497
+ text?: string | undefined;
498
+ }, {
590
499
  version?: string | undefined;
500
+ url?: string | undefined;
591
501
  required?: boolean | undefined;
502
+ text?: string | undefined;
592
503
  }>>;
593
504
  customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
594
505
  name: z.ZodString;
@@ -609,9 +520,9 @@ export declare const consentConfigSchema: z.ZodObject<{
609
520
  pattern: z.ZodOptional<z.ZodString>;
610
521
  }, "strip", z.ZodTypeAny, {
611
522
  type: "text" | "textarea" | "checkbox" | "select";
523
+ name: string;
612
524
  required: boolean;
613
525
  label: string;
614
- name: string;
615
526
  options?: {
616
527
  value: string;
617
528
  label: string;
@@ -620,9 +531,9 @@ export declare const consentConfigSchema: z.ZodObject<{
620
531
  pattern?: string | undefined;
621
532
  }, {
622
533
  type: "text" | "textarea" | "checkbox" | "select";
534
+ name: string;
623
535
  required: boolean;
624
536
  label: string;
625
- name: string;
626
537
  options?: {
627
538
  value: string;
628
539
  label: string;
@@ -631,9 +542,9 @@ export declare const consentConfigSchema: z.ZodObject<{
631
542
  pattern?: string | undefined;
632
543
  }>, {
633
544
  type: "text" | "textarea" | "checkbox" | "select";
545
+ name: string;
634
546
  required: boolean;
635
547
  label: string;
636
- name: string;
637
548
  options?: {
638
549
  value: string;
639
550
  label: string;
@@ -642,9 +553,9 @@ export declare const consentConfigSchema: z.ZodObject<{
642
553
  pattern?: string | undefined;
643
554
  }, {
644
555
  type: "text" | "textarea" | "checkbox" | "select";
556
+ name: string;
645
557
  required: boolean;
646
558
  label: string;
647
- name: string;
648
559
  options?: {
649
560
  value: string;
650
561
  label: string;
@@ -677,15 +588,15 @@ export declare const consentConfigSchema: z.ZodObject<{
677
588
  } | undefined;
678
589
  terms?: {
679
590
  required: boolean;
680
- text?: string | undefined;
681
- url?: string | undefined;
682
591
  version?: string | undefined;
592
+ url?: string | undefined;
593
+ text?: string | undefined;
683
594
  } | undefined;
684
595
  customFields?: {
685
596
  type: "text" | "textarea" | "checkbox" | "select";
597
+ name: string;
686
598
  required: boolean;
687
599
  label: string;
688
- name: string;
689
600
  options?: {
690
601
  value: string;
691
602
  label: string;
@@ -707,16 +618,16 @@ export declare const consentConfigSchema: z.ZodObject<{
707
618
  theme?: "light" | "dark" | "auto" | undefined;
708
619
  } | undefined;
709
620
  terms?: {
710
- text?: string | undefined;
711
- url?: string | undefined;
712
621
  version?: string | undefined;
622
+ url?: string | undefined;
713
623
  required?: boolean | undefined;
624
+ text?: string | undefined;
714
625
  } | undefined;
715
626
  customFields?: {
716
627
  type: "text" | "textarea" | "checkbox" | "select";
628
+ name: string;
717
629
  required: boolean;
718
630
  label: string;
719
- name: string;
720
631
  options?: {
721
632
  value: string;
722
633
  label: string;
@@ -742,14 +653,13 @@ export type ConsentConfig = z.infer<typeof consentConfigSchema>;
742
653
  * @returns Validation result
743
654
  */
744
655
  export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType<{
745
- tool: string;
746
- toolDescription: string;
747
- scopes: string[];
748
656
  agentDid: string;
749
657
  sessionId: string;
658
+ tool: string;
659
+ scopes: string[];
750
660
  projectId: string;
661
+ toolDescription: string;
751
662
  serverUrl: string;
752
- provider?: string | undefined;
753
663
  branding?: {
754
664
  primaryColor?: string | undefined;
755
665
  logoUrl?: string | undefined;
@@ -757,16 +667,16 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
757
667
  theme?: "light" | "dark" | "auto" | undefined;
758
668
  } | undefined;
759
669
  terms?: {
760
- text?: string | undefined;
761
- url?: string | undefined;
762
670
  version?: string | undefined;
671
+ url?: string | undefined;
763
672
  required?: boolean | undefined;
673
+ text?: string | undefined;
764
674
  } | undefined;
765
675
  customFields?: {
766
676
  type: "text" | "textarea" | "checkbox" | "select";
677
+ name: string;
767
678
  required: boolean;
768
679
  label: string;
769
- name: string;
770
680
  options?: {
771
681
  value: string;
772
682
  label: string;
@@ -775,17 +685,14 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
775
685
  pattern?: string | undefined;
776
686
  }[] | undefined;
777
687
  autoClose?: boolean | undefined;
778
- oauthRequired?: boolean | undefined;
779
- oauthUrl?: string | undefined;
780
688
  }, {
781
- tool: string;
782
- toolDescription: string;
783
- scopes: string[];
784
689
  agentDid: string;
785
690
  sessionId: string;
691
+ tool: string;
692
+ scopes: string[];
786
693
  projectId: string;
694
+ toolDescription: string;
787
695
  serverUrl: string;
788
- provider?: string | undefined;
789
696
  branding?: {
790
697
  primaryColor?: string | undefined;
791
698
  logoUrl?: string | undefined;
@@ -794,15 +701,15 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
794
701
  } | undefined;
795
702
  terms?: {
796
703
  required: boolean;
797
- text?: string | undefined;
798
- url?: string | undefined;
799
704
  version?: string | undefined;
705
+ url?: string | undefined;
706
+ text?: string | undefined;
800
707
  } | undefined;
801
708
  customFields?: {
802
709
  type: "text" | "textarea" | "checkbox" | "select";
710
+ name: string;
803
711
  required: boolean;
804
712
  label: string;
805
- name: string;
806
713
  options?: {
807
714
  value: string;
808
715
  label: string;
@@ -811,8 +718,6 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
811
718
  pattern?: string | undefined;
812
719
  }[] | undefined;
813
720
  autoClose?: boolean | undefined;
814
- oauthRequired?: boolean | undefined;
815
- oauthUrl?: string | undefined;
816
721
  }>;
817
722
  /**
818
723
  * Validate a consent approval request
@@ -822,32 +727,32 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
822
727
  */
823
728
  export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType<{
824
729
  tool: string;
730
+ session_id: string;
825
731
  scopes: string[];
826
732
  agent_did: string;
827
- session_id: string;
828
733
  project_id: string;
829
734
  termsAccepted: boolean;
830
735
  customFields?: Record<string, string | boolean> | undefined;
831
736
  termsVersion?: string | undefined;
832
737
  oauth_identity?: {
833
- provider: string;
834
738
  subject: string;
739
+ provider: string;
835
740
  name?: string | undefined;
836
741
  email?: string | undefined;
837
742
  } | null | undefined;
838
743
  user_did?: string | undefined;
839
744
  }, {
840
745
  tool: string;
746
+ session_id: string;
841
747
  scopes: string[];
842
748
  agent_did: string;
843
- session_id: string;
844
749
  project_id: string;
845
750
  termsAccepted: boolean;
846
751
  customFields?: Record<string, string | boolean> | undefined;
847
752
  termsVersion?: string | undefined;
848
753
  oauth_identity?: {
849
- provider: string;
850
754
  subject: string;
755
+ provider: string;
851
756
  name?: string | undefined;
852
757
  email?: string | undefined;
853
758
  } | null | undefined;
@@ -861,15 +766,15 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
861
766
  */
862
767
  export declare function validateConsentApprovalResponse(response: unknown): z.SafeParseReturnType<{
863
768
  success: boolean;
769
+ error?: string | undefined;
864
770
  delegation_id?: string | undefined;
865
771
  delegation_token?: string | undefined;
866
- error?: string | undefined;
867
772
  error_code?: string | undefined;
868
773
  }, {
869
774
  success: boolean;
775
+ error?: string | undefined;
870
776
  delegation_id?: string | undefined;
871
777
  delegation_token?: string | undefined;
872
- error?: string | undefined;
873
778
  error_code?: string | undefined;
874
779
  }>;
875
780
  /**
@@ -886,16 +791,16 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
886
791
  theme?: "light" | "dark" | "auto" | undefined;
887
792
  } | undefined;
888
793
  terms?: {
889
- text?: string | undefined;
890
- url?: string | undefined;
891
794
  version?: string | undefined;
795
+ url?: string | undefined;
892
796
  required?: boolean | undefined;
797
+ text?: string | undefined;
893
798
  } | undefined;
894
799
  customFields?: {
895
800
  type: "text" | "textarea" | "checkbox" | "select";
801
+ name: string;
896
802
  required: boolean;
897
803
  label: string;
898
- name: string;
899
804
  options?: {
900
805
  value: string;
901
806
  label: string;
@@ -918,15 +823,15 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
918
823
  } | undefined;
919
824
  terms?: {
920
825
  required: boolean;
921
- text?: string | undefined;
922
- url?: string | undefined;
923
826
  version?: string | undefined;
827
+ url?: string | undefined;
828
+ text?: string | undefined;
924
829
  } | undefined;
925
830
  customFields?: {
926
831
  type: "text" | "textarea" | "checkbox" | "select";
832
+ name: string;
927
833
  required: boolean;
928
834
  label: string;
929
- name: string;
930
835
  options?: {
931
836
  value: string;
932
837
  label: string;