@kya-os/contracts 1.7.21 → 1.7.23
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.
- package/dist/agentshield-api/schemas.d.ts +198 -198
- package/dist/audit/index.d.ts +21 -21
- package/dist/config/base.d.ts +8 -0
- package/dist/consent/schemas.d.ts +112 -112
- package/dist/dashboard-config/schemas.d.ts +1771 -1771
- package/dist/delegation/schemas.d.ts +234 -234
- package/dist/deploy/schemas.d.ts +19 -19
- package/dist/handshake.d.ts +30 -30
- package/dist/molti/admin-ws.d.ts +1480 -0
- package/dist/molti/admin-ws.js +138 -0
- package/dist/molti/index.d.ts +2 -0
- package/dist/molti/index.js +19 -1
- package/dist/molti/schemas.d.ts +102 -102
- package/dist/policy/schemas.d.ts +676 -676
- package/dist/registry.d.ts +43 -43
- package/dist/reputation/credentials.d.ts +60 -60
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/verifier.d.ts +6 -6
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
version?: string | undefined;
|
|
42
41
|
url?: string | undefined;
|
|
42
|
+
version?: string | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
text?: string | undefined;
|
|
45
|
-
required?: boolean | undefined;
|
|
46
|
-
version?: string | undefined;
|
|
47
45
|
url?: string | undefined;
|
|
46
|
+
version?: string | undefined;
|
|
47
|
+
required?: boolean | 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" | "
|
|
84
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
85
85
|
required: boolean;
|
|
86
|
-
name: string;
|
|
87
86
|
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" | "
|
|
95
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
96
96
|
required: boolean;
|
|
97
|
-
name: string;
|
|
98
97
|
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" | "
|
|
106
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
107
107
|
required: boolean;
|
|
108
|
-
name: string;
|
|
109
108
|
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" | "
|
|
117
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
118
118
|
required: boolean;
|
|
119
|
-
name: string;
|
|
120
119
|
label: string;
|
|
120
|
+
name: string;
|
|
121
121
|
options?: {
|
|
122
122
|
value: string;
|
|
123
123
|
label: string;
|
|
@@ -153,13 +153,13 @@ export declare const oauthIdentitySchema: z.ZodObject<{
|
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
154
|
provider: string;
|
|
155
155
|
subject: string;
|
|
156
|
-
email?: string | undefined;
|
|
157
156
|
name?: string | undefined;
|
|
157
|
+
email?: string | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
provider: string;
|
|
160
160
|
subject: string;
|
|
161
|
-
email?: string | undefined;
|
|
162
161
|
name?: string | undefined;
|
|
162
|
+
email?: string | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
export type OAuthIdentity = z.infer<typeof oauthIdentitySchema>;
|
|
165
165
|
/**
|
|
@@ -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
|
-
version?: string | undefined;
|
|
201
200
|
url?: string | undefined;
|
|
201
|
+
version?: string | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
text?: string | undefined;
|
|
204
|
-
required?: boolean | undefined;
|
|
205
|
-
version?: string | undefined;
|
|
206
204
|
url?: string | undefined;
|
|
205
|
+
version?: string | undefined;
|
|
206
|
+
required?: boolean | undefined;
|
|
207
207
|
}>>;
|
|
208
208
|
customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
209
209
|
name: z.ZodString;
|
|
@@ -223,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" | "
|
|
226
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
227
227
|
required: boolean;
|
|
228
|
-
name: string;
|
|
229
228
|
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" | "
|
|
237
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
238
238
|
required: boolean;
|
|
239
|
-
name: string;
|
|
240
239
|
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" | "
|
|
248
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
249
249
|
required: boolean;
|
|
250
|
-
name: string;
|
|
251
250
|
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" | "
|
|
259
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
260
260
|
required: boolean;
|
|
261
|
-
name: string;
|
|
262
261
|
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;
|
|
283
285
|
scopes: string[];
|
|
284
286
|
agentDid: string;
|
|
285
287
|
sessionId: string;
|
|
286
|
-
tool: string;
|
|
287
288
|
projectId: string;
|
|
288
|
-
toolDescription: string;
|
|
289
289
|
serverUrl: string;
|
|
290
|
+
provider?: string | undefined;
|
|
290
291
|
branding?: {
|
|
291
292
|
primaryColor?: string | undefined;
|
|
292
293
|
logoUrl?: string | undefined;
|
|
293
294
|
companyName?: string | undefined;
|
|
294
295
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
295
296
|
} | undefined;
|
|
296
|
-
provider?: string | undefined;
|
|
297
297
|
terms?: {
|
|
298
298
|
required: boolean;
|
|
299
299
|
text?: string | undefined;
|
|
300
|
-
version?: string | undefined;
|
|
301
300
|
url?: string | undefined;
|
|
301
|
+
version?: string | undefined;
|
|
302
302
|
} | undefined;
|
|
303
303
|
customFields?: {
|
|
304
|
-
type: "text" | "
|
|
304
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
305
305
|
required: boolean;
|
|
306
|
-
name: string;
|
|
307
306
|
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;
|
|
319
321
|
scopes: string[];
|
|
320
322
|
agentDid: string;
|
|
321
323
|
sessionId: string;
|
|
322
|
-
tool: string;
|
|
323
324
|
projectId: string;
|
|
324
|
-
toolDescription: string;
|
|
325
325
|
serverUrl: string;
|
|
326
|
+
provider?: string | undefined;
|
|
326
327
|
branding?: {
|
|
327
328
|
primaryColor?: string | undefined;
|
|
328
329
|
logoUrl?: string | undefined;
|
|
329
330
|
companyName?: string | undefined;
|
|
330
331
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
331
332
|
} | undefined;
|
|
332
|
-
provider?: string | undefined;
|
|
333
333
|
terms?: {
|
|
334
334
|
text?: string | undefined;
|
|
335
|
-
required?: boolean | undefined;
|
|
336
|
-
version?: string | undefined;
|
|
337
335
|
url?: string | undefined;
|
|
336
|
+
version?: string | undefined;
|
|
337
|
+
required?: boolean | undefined;
|
|
338
338
|
} | undefined;
|
|
339
339
|
customFields?: {
|
|
340
|
-
type: "text" | "
|
|
340
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
341
341
|
required: boolean;
|
|
342
|
-
name: string;
|
|
343
342
|
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;
|
|
355
357
|
scopes: string[];
|
|
356
358
|
agentDid: string;
|
|
357
359
|
sessionId: string;
|
|
358
|
-
tool: string;
|
|
359
360
|
projectId: string;
|
|
360
|
-
toolDescription: string;
|
|
361
361
|
serverUrl: string;
|
|
362
|
+
provider?: string | undefined;
|
|
362
363
|
branding?: {
|
|
363
364
|
primaryColor?: string | undefined;
|
|
364
365
|
logoUrl?: string | undefined;
|
|
365
366
|
companyName?: string | undefined;
|
|
366
367
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
367
368
|
} | undefined;
|
|
368
|
-
provider?: string | undefined;
|
|
369
369
|
terms?: {
|
|
370
370
|
required: boolean;
|
|
371
371
|
text?: string | undefined;
|
|
372
|
-
version?: string | undefined;
|
|
373
372
|
url?: string | undefined;
|
|
373
|
+
version?: string | undefined;
|
|
374
374
|
} | undefined;
|
|
375
375
|
customFields?: {
|
|
376
|
-
type: "text" | "
|
|
376
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
377
377
|
required: boolean;
|
|
378
|
-
name: string;
|
|
379
378
|
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;
|
|
391
393
|
scopes: string[];
|
|
392
394
|
agentDid: string;
|
|
393
395
|
sessionId: string;
|
|
394
|
-
tool: string;
|
|
395
396
|
projectId: string;
|
|
396
|
-
toolDescription: string;
|
|
397
397
|
serverUrl: string;
|
|
398
|
+
provider?: string | undefined;
|
|
398
399
|
branding?: {
|
|
399
400
|
primaryColor?: string | undefined;
|
|
400
401
|
logoUrl?: string | undefined;
|
|
401
402
|
companyName?: string | undefined;
|
|
402
403
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
403
404
|
} | undefined;
|
|
404
|
-
provider?: string | undefined;
|
|
405
405
|
terms?: {
|
|
406
406
|
text?: string | undefined;
|
|
407
|
-
required?: boolean | undefined;
|
|
408
|
-
version?: string | undefined;
|
|
409
407
|
url?: string | undefined;
|
|
408
|
+
version?: string | undefined;
|
|
409
|
+
required?: boolean | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
customFields?: {
|
|
412
|
-
type: "text" | "
|
|
412
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
413
413
|
required: boolean;
|
|
414
|
-
name: string;
|
|
415
414
|
label: string;
|
|
415
|
+
name: string;
|
|
416
416
|
options?: {
|
|
417
417
|
value: string;
|
|
418
418
|
label: string;
|
|
@@ -471,13 +471,13 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
|
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
provider: string;
|
|
473
473
|
subject: string;
|
|
474
|
-
email?: string | undefined;
|
|
475
474
|
name?: string | undefined;
|
|
475
|
+
email?: string | undefined;
|
|
476
476
|
}, {
|
|
477
477
|
provider: string;
|
|
478
478
|
subject: string;
|
|
479
|
-
email?: string | undefined;
|
|
480
479
|
name?: string | undefined;
|
|
480
|
+
email?: string | undefined;
|
|
481
481
|
}>>>;
|
|
482
482
|
/**
|
|
483
483
|
* User DID (optional)
|
|
@@ -500,39 +500,39 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
|
|
|
500
500
|
*/
|
|
501
501
|
credential_provider_user_id: z.ZodOptional<z.ZodString>;
|
|
502
502
|
}, "strip", z.ZodTypeAny, {
|
|
503
|
-
scopes: string[];
|
|
504
503
|
tool: string;
|
|
505
|
-
|
|
504
|
+
scopes: string[];
|
|
506
505
|
agent_did: string;
|
|
506
|
+
session_id: string;
|
|
507
507
|
project_id: string;
|
|
508
508
|
termsAccepted: boolean;
|
|
509
|
-
user_did?: string | undefined;
|
|
510
509
|
customFields?: Record<string, string | boolean> | undefined;
|
|
511
510
|
termsVersion?: string | undefined;
|
|
512
511
|
oauth_identity?: {
|
|
513
512
|
provider: string;
|
|
514
513
|
subject: string;
|
|
515
|
-
email?: string | undefined;
|
|
516
514
|
name?: string | undefined;
|
|
515
|
+
email?: string | undefined;
|
|
517
516
|
} | 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
|
-
scopes: string[];
|
|
522
521
|
tool: string;
|
|
523
|
-
|
|
522
|
+
scopes: string[];
|
|
524
523
|
agent_did: string;
|
|
524
|
+
session_id: string;
|
|
525
525
|
project_id: string;
|
|
526
526
|
termsAccepted: boolean;
|
|
527
|
-
user_did?: string | undefined;
|
|
528
527
|
customFields?: Record<string, string | boolean> | undefined;
|
|
529
528
|
termsVersion?: string | undefined;
|
|
530
529
|
oauth_identity?: {
|
|
531
530
|
provider: string;
|
|
532
531
|
subject: string;
|
|
533
|
-
email?: string | undefined;
|
|
534
532
|
name?: string | undefined;
|
|
533
|
+
email?: string | undefined;
|
|
535
534
|
} | 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;
|
|
552
551
|
delegation_id?: string | undefined;
|
|
553
552
|
delegation_token?: string | undefined;
|
|
553
|
+
error?: string | undefined;
|
|
554
554
|
error_code?: string | undefined;
|
|
555
555
|
}, {
|
|
556
556
|
success: boolean;
|
|
557
|
-
error?: string | undefined;
|
|
558
557
|
delegation_id?: string | undefined;
|
|
559
558
|
delegation_token?: string | undefined;
|
|
559
|
+
error?: string | undefined;
|
|
560
560
|
error_code?: string | undefined;
|
|
561
561
|
}>, {
|
|
562
562
|
success: boolean;
|
|
563
|
-
error?: string | undefined;
|
|
564
563
|
delegation_id?: string | undefined;
|
|
565
564
|
delegation_token?: string | undefined;
|
|
565
|
+
error?: string | undefined;
|
|
566
566
|
error_code?: string | undefined;
|
|
567
567
|
}, {
|
|
568
568
|
success: boolean;
|
|
569
|
-
error?: string | undefined;
|
|
570
569
|
delegation_id?: string | undefined;
|
|
571
570
|
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
|
-
version?: string | undefined;
|
|
604
603
|
url?: string | undefined;
|
|
604
|
+
version?: string | undefined;
|
|
605
605
|
}, {
|
|
606
606
|
text?: string | undefined;
|
|
607
|
-
required?: boolean | undefined;
|
|
608
|
-
version?: string | undefined;
|
|
609
607
|
url?: string | undefined;
|
|
608
|
+
version?: string | undefined;
|
|
609
|
+
required?: boolean | 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" | "
|
|
629
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
630
630
|
required: boolean;
|
|
631
|
-
name: string;
|
|
632
631
|
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" | "
|
|
640
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
641
641
|
required: boolean;
|
|
642
|
-
name: string;
|
|
643
642
|
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" | "
|
|
651
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
652
652
|
required: boolean;
|
|
653
|
-
name: string;
|
|
654
653
|
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" | "
|
|
662
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
663
663
|
required: boolean;
|
|
664
|
-
name: string;
|
|
665
664
|
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
|
-
version?: string | undefined;
|
|
700
699
|
url?: string | undefined;
|
|
700
|
+
version?: string | undefined;
|
|
701
701
|
} | undefined;
|
|
702
702
|
customFields?: {
|
|
703
|
-
type: "text" | "
|
|
703
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
704
704
|
required: boolean;
|
|
705
|
-
name: string;
|
|
706
705
|
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
|
-
required?: boolean | undefined;
|
|
730
|
-
version?: string | undefined;
|
|
731
729
|
url?: string | undefined;
|
|
730
|
+
version?: string | undefined;
|
|
731
|
+
required?: boolean | undefined;
|
|
732
732
|
} | undefined;
|
|
733
733
|
customFields?: {
|
|
734
|
-
type: "text" | "
|
|
734
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
735
735
|
required: boolean;
|
|
736
|
-
name: string;
|
|
737
736
|
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;
|
|
763
765
|
scopes: string[];
|
|
764
766
|
agentDid: string;
|
|
765
767
|
sessionId: string;
|
|
766
|
-
tool: string;
|
|
767
768
|
projectId: string;
|
|
768
|
-
toolDescription: string;
|
|
769
769
|
serverUrl: string;
|
|
770
|
+
provider?: string | undefined;
|
|
770
771
|
branding?: {
|
|
771
772
|
primaryColor?: string | undefined;
|
|
772
773
|
logoUrl?: string | undefined;
|
|
773
774
|
companyName?: string | undefined;
|
|
774
775
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
775
776
|
} | undefined;
|
|
776
|
-
provider?: string | undefined;
|
|
777
777
|
terms?: {
|
|
778
778
|
text?: string | undefined;
|
|
779
|
-
required?: boolean | undefined;
|
|
780
|
-
version?: string | undefined;
|
|
781
779
|
url?: string | undefined;
|
|
780
|
+
version?: string | undefined;
|
|
781
|
+
required?: boolean | undefined;
|
|
782
782
|
} | undefined;
|
|
783
783
|
customFields?: {
|
|
784
|
-
type: "text" | "
|
|
784
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
785
785
|
required: boolean;
|
|
786
|
-
name: string;
|
|
787
786
|
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;
|
|
799
801
|
scopes: string[];
|
|
800
802
|
agentDid: string;
|
|
801
803
|
sessionId: string;
|
|
802
|
-
tool: string;
|
|
803
804
|
projectId: string;
|
|
804
|
-
toolDescription: string;
|
|
805
805
|
serverUrl: string;
|
|
806
|
+
provider?: string | undefined;
|
|
806
807
|
branding?: {
|
|
807
808
|
primaryColor?: string | undefined;
|
|
808
809
|
logoUrl?: string | undefined;
|
|
809
810
|
companyName?: string | undefined;
|
|
810
811
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
811
812
|
} | undefined;
|
|
812
|
-
provider?: string | undefined;
|
|
813
813
|
terms?: {
|
|
814
814
|
required: boolean;
|
|
815
815
|
text?: string | undefined;
|
|
816
|
-
version?: string | undefined;
|
|
817
816
|
url?: string | undefined;
|
|
817
|
+
version?: string | undefined;
|
|
818
818
|
} | undefined;
|
|
819
819
|
customFields?: {
|
|
820
|
-
type: "text" | "
|
|
820
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
821
821
|
required: boolean;
|
|
822
|
-
name: string;
|
|
823
822
|
label: string;
|
|
823
|
+
name: string;
|
|
824
824
|
options?: {
|
|
825
825
|
value: string;
|
|
826
826
|
label: string;
|
|
@@ -839,39 +839,39 @@ 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
|
-
scopes: string[];
|
|
843
842
|
tool: string;
|
|
844
|
-
|
|
843
|
+
scopes: string[];
|
|
845
844
|
agent_did: string;
|
|
845
|
+
session_id: string;
|
|
846
846
|
project_id: string;
|
|
847
847
|
termsAccepted: boolean;
|
|
848
|
-
user_did?: string | undefined;
|
|
849
848
|
customFields?: Record<string, string | boolean> | undefined;
|
|
850
849
|
termsVersion?: string | undefined;
|
|
851
850
|
oauth_identity?: {
|
|
852
851
|
provider: string;
|
|
853
852
|
subject: string;
|
|
854
|
-
email?: string | undefined;
|
|
855
853
|
name?: string | undefined;
|
|
854
|
+
email?: string | undefined;
|
|
856
855
|
} | 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
|
-
scopes: string[];
|
|
861
860
|
tool: string;
|
|
862
|
-
|
|
861
|
+
scopes: string[];
|
|
863
862
|
agent_did: string;
|
|
863
|
+
session_id: string;
|
|
864
864
|
project_id: string;
|
|
865
865
|
termsAccepted: boolean;
|
|
866
|
-
user_did?: string | undefined;
|
|
867
866
|
customFields?: Record<string, string | boolean> | undefined;
|
|
868
867
|
termsVersion?: string | undefined;
|
|
869
868
|
oauth_identity?: {
|
|
870
869
|
provider: string;
|
|
871
870
|
subject: string;
|
|
872
|
-
email?: string | undefined;
|
|
873
871
|
name?: string | undefined;
|
|
872
|
+
email?: string | undefined;
|
|
874
873
|
} | 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;
|
|
887
886
|
delegation_id?: string | undefined;
|
|
888
887
|
delegation_token?: string | undefined;
|
|
888
|
+
error?: string | undefined;
|
|
889
889
|
error_code?: string | undefined;
|
|
890
890
|
}, {
|
|
891
891
|
success: boolean;
|
|
892
|
-
error?: string | undefined;
|
|
893
892
|
delegation_id?: string | undefined;
|
|
894
893
|
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
|
-
required?: boolean | undefined;
|
|
913
|
-
version?: string | undefined;
|
|
914
912
|
url?: string | undefined;
|
|
913
|
+
version?: string | undefined;
|
|
914
|
+
required?: boolean | undefined;
|
|
915
915
|
} | undefined;
|
|
916
916
|
customFields?: {
|
|
917
|
-
type: "text" | "
|
|
917
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
918
918
|
required: boolean;
|
|
919
|
-
name: string;
|
|
920
919
|
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
|
-
version?: string | undefined;
|
|
945
944
|
url?: string | undefined;
|
|
945
|
+
version?: string | undefined;
|
|
946
946
|
} | undefined;
|
|
947
947
|
customFields?: {
|
|
948
|
-
type: "text" | "
|
|
948
|
+
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
949
949
|
required: boolean;
|
|
950
|
-
name: string;
|
|
951
950
|
label: string;
|
|
951
|
+
name: string;
|
|
952
952
|
options?: {
|
|
953
953
|
value: string;
|
|
954
954
|
label: string;
|