@kya-os/contracts 1.6.19 → 1.7.1

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
  /**
@@ -66,7 +66,7 @@ export declare const consentCustomFieldOptionSchema: z.ZodObject<{
66
66
  export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
67
67
  name: z.ZodString;
68
68
  label: z.ZodString;
69
- type: z.ZodEnum<["text", "textarea", "checkbox", "select"]>;
69
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
70
70
  required: z.ZodBoolean;
71
71
  placeholder: z.ZodOptional<z.ZodString>;
72
72
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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";
84
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
85
85
  required: boolean;
86
- label: string;
87
86
  name: string;
87
+ label: 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";
95
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
96
96
  required: boolean;
97
- label: string;
98
97
  name: string;
98
+ label: 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";
106
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
107
107
  required: boolean;
108
- label: string;
109
108
  name: string;
109
+ label: 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";
117
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
118
118
  required: boolean;
119
- label: string;
120
119
  name: string;
120
+ label: string;
121
121
  options?: {
122
122
  value: string;
123
123
  label: 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
  /**
@@ -197,18 +197,18 @@ 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;
210
210
  label: z.ZodString;
211
- type: z.ZodEnum<["text", "textarea", "checkbox", "select"]>;
211
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
212
212
  required: z.ZodBoolean;
213
213
  placeholder: z.ZodOptional<z.ZodString>;
214
214
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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";
226
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
227
227
  required: boolean;
228
- label: string;
229
228
  name: string;
229
+ label: 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";
237
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
238
238
  required: boolean;
239
- label: string;
240
239
  name: string;
240
+ label: 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";
248
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
249
249
  required: boolean;
250
- label: string;
251
250
  name: string;
251
+ label: 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";
259
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
260
260
  required: boolean;
261
- label: string;
262
261
  name: string;
262
+ label: 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
283
  scopes: string[];
286
284
  agentDid: string;
287
285
  sessionId: string;
286
+ tool: 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
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";
304
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
305
305
  required: boolean;
306
- label: string;
307
306
  name: string;
307
+ label: 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
319
  scopes: string[];
322
320
  agentDid: string;
323
321
  sessionId: string;
322
+ tool: 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
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";
340
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
341
341
  required: boolean;
342
- label: string;
343
342
  name: string;
343
+ label: 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
355
  scopes: string[];
358
356
  agentDid: string;
359
357
  sessionId: string;
358
+ tool: 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
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";
376
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
377
377
  required: boolean;
378
- label: string;
379
378
  name: string;
379
+ label: 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
391
  scopes: string[];
394
392
  agentDid: string;
395
393
  sessionId: string;
394
+ tool: 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
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";
412
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
413
413
  required: boolean;
414
- label: string;
415
414
  name: string;
415
+ label: string;
416
416
  options?: {
417
417
  value: string;
418
418
  label: 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>;
@@ -582,18 +582,18 @@ export declare const consentConfigSchema: z.ZodObject<{
582
582
  }, "strip", z.ZodTypeAny, {
583
583
  required: boolean;
584
584
  text?: string | undefined;
585
- url?: string | undefined;
586
585
  version?: string | undefined;
586
+ url?: string | undefined;
587
587
  }, {
588
588
  text?: string | undefined;
589
- url?: string | undefined;
590
- version?: 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;
595
595
  label: z.ZodString;
596
- type: z.ZodEnum<["text", "textarea", "checkbox", "select"]>;
596
+ type: z.ZodEnum<["text", "textarea", "checkbox", "select", "email"]>;
597
597
  required: z.ZodBoolean;
598
598
  placeholder: z.ZodOptional<z.ZodString>;
599
599
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -608,10 +608,10 @@ export declare const consentConfigSchema: z.ZodObject<{
608
608
  }>, "many">>;
609
609
  pattern: z.ZodOptional<z.ZodString>;
610
610
  }, "strip", z.ZodTypeAny, {
611
- type: "text" | "textarea" | "checkbox" | "select";
611
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
612
612
  required: boolean;
613
- label: string;
614
613
  name: string;
614
+ label: string;
615
615
  options?: {
616
616
  value: string;
617
617
  label: string;
@@ -619,10 +619,10 @@ export declare const consentConfigSchema: z.ZodObject<{
619
619
  placeholder?: string | undefined;
620
620
  pattern?: string | undefined;
621
621
  }, {
622
- type: "text" | "textarea" | "checkbox" | "select";
622
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
623
623
  required: boolean;
624
- label: string;
625
624
  name: string;
625
+ label: string;
626
626
  options?: {
627
627
  value: string;
628
628
  label: string;
@@ -630,10 +630,10 @@ export declare const consentConfigSchema: z.ZodObject<{
630
630
  placeholder?: string | undefined;
631
631
  pattern?: string | undefined;
632
632
  }>, {
633
- type: "text" | "textarea" | "checkbox" | "select";
633
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
634
634
  required: boolean;
635
- label: string;
636
635
  name: string;
636
+ label: string;
637
637
  options?: {
638
638
  value: string;
639
639
  label: string;
@@ -641,10 +641,10 @@ export declare const consentConfigSchema: z.ZodObject<{
641
641
  placeholder?: string | undefined;
642
642
  pattern?: string | undefined;
643
643
  }, {
644
- type: "text" | "textarea" | "checkbox" | "select";
644
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
645
645
  required: boolean;
646
- label: string;
647
646
  name: string;
647
+ label: string;
648
648
  options?: {
649
649
  value: string;
650
650
  label: string;
@@ -678,14 +678,14 @@ export declare const consentConfigSchema: z.ZodObject<{
678
678
  terms?: {
679
679
  required: boolean;
680
680
  text?: string | undefined;
681
- url?: string | undefined;
682
681
  version?: string | undefined;
682
+ url?: string | undefined;
683
683
  } | undefined;
684
684
  customFields?: {
685
- type: "text" | "textarea" | "checkbox" | "select";
685
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
686
686
  required: boolean;
687
- label: string;
688
687
  name: string;
688
+ label: string;
689
689
  options?: {
690
690
  value: string;
691
691
  label: string;
@@ -708,15 +708,15 @@ export declare const consentConfigSchema: z.ZodObject<{
708
708
  } | undefined;
709
709
  terms?: {
710
710
  text?: string | undefined;
711
- url?: string | undefined;
712
- version?: string | undefined;
713
711
  required?: boolean | undefined;
712
+ version?: string | undefined;
713
+ url?: string | undefined;
714
714
  } | undefined;
715
715
  customFields?: {
716
- type: "text" | "textarea" | "checkbox" | "select";
716
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
717
717
  required: boolean;
718
- label: string;
719
718
  name: string;
719
+ label: string;
720
720
  options?: {
721
721
  value: string;
722
722
  label: string;
@@ -742,31 +742,31 @@ 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
- tool: string;
746
- toolDescription: string;
747
745
  scopes: string[];
748
746
  agentDid: string;
749
747
  sessionId: string;
748
+ tool: 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
760
  text?: string | undefined;
761
- url?: string | undefined;
762
- version?: string | undefined;
763
761
  required?: boolean | undefined;
762
+ version?: string | undefined;
763
+ url?: string | undefined;
764
764
  } | undefined;
765
765
  customFields?: {
766
- type: "text" | "textarea" | "checkbox" | "select";
766
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
767
767
  required: boolean;
768
- label: string;
769
768
  name: string;
769
+ label: string;
770
770
  options?: {
771
771
  value: string;
772
772
  label: string;
@@ -778,31 +778,31 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
778
778
  oauthRequired?: boolean | undefined;
779
779
  oauthUrl?: string | undefined;
780
780
  }, {
781
- tool: string;
782
- toolDescription: string;
783
781
  scopes: string[];
784
782
  agentDid: string;
785
783
  sessionId: string;
784
+ tool: 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
797
  text?: string | undefined;
798
- url?: string | undefined;
799
798
  version?: string | undefined;
799
+ url?: string | undefined;
800
800
  } | undefined;
801
801
  customFields?: {
802
- type: "text" | "textarea" | "checkbox" | "select";
802
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
803
803
  required: boolean;
804
- label: string;
805
804
  name: string;
805
+ label: string;
806
806
  options?: {
807
807
  value: string;
808
808
  label: 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
  /**
@@ -887,15 +887,15 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
887
887
  } | undefined;
888
888
  terms?: {
889
889
  text?: string | undefined;
890
- url?: string | undefined;
891
- version?: string | undefined;
892
890
  required?: boolean | undefined;
891
+ version?: string | undefined;
892
+ url?: string | undefined;
893
893
  } | undefined;
894
894
  customFields?: {
895
- type: "text" | "textarea" | "checkbox" | "select";
895
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
896
896
  required: boolean;
897
- label: string;
898
897
  name: string;
898
+ label: string;
899
899
  options?: {
900
900
  value: string;
901
901
  label: string;
@@ -919,14 +919,14 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
919
919
  terms?: {
920
920
  required: boolean;
921
921
  text?: string | undefined;
922
- url?: string | undefined;
923
922
  version?: string | undefined;
923
+ url?: string | undefined;
924
924
  } | undefined;
925
925
  customFields?: {
926
- type: "text" | "textarea" | "checkbox" | "select";
926
+ type: "text" | "email" | "textarea" | "checkbox" | "select";
927
927
  required: boolean;
928
- label: string;
929
928
  name: string;
929
+ label: string;
930
930
  options?: {
931
931
  value: string;
932
932
  label: string;