@kya-os/contracts 1.5.3-canary.17 → 1.5.3-canary.18
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/.turbo/turbo-test$colon$coverage.log +28 -85
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +86 -112
- package/dist/audit/index.d.ts +24 -24
- package/dist/config/identity.d.ts +6 -6
- package/dist/consent/schemas.d.ts +69 -69
- package/dist/dashboard-config/schemas.d.ts +1356 -1356
- package/dist/handshake.d.ts +14 -14
- package/dist/tool-protection/index.d.ts +16 -16
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +3 -1
|
@@ -33,11 +33,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
33
33
|
requestId: z.ZodString;
|
|
34
34
|
timestamp: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
requestId: string;
|
|
37
36
|
timestamp: string;
|
|
38
|
-
}, {
|
|
39
37
|
requestId: string;
|
|
38
|
+
}, {
|
|
40
39
|
timestamp: string;
|
|
40
|
+
requestId: string;
|
|
41
41
|
}>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
43
43
|
success: z.ZodBoolean;
|
|
@@ -46,52 +46,26 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
46
46
|
requestId: z.ZodString;
|
|
47
47
|
timestamp: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
requestId: string;
|
|
50
49
|
timestamp: string;
|
|
51
|
-
}, {
|
|
52
50
|
requestId: string;
|
|
53
|
-
timestamp: string;
|
|
54
|
-
}>>;
|
|
55
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
56
|
-
success: z.ZodBoolean;
|
|
57
|
-
data: T;
|
|
58
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
59
|
-
requestId: z.ZodString;
|
|
60
|
-
timestamp: z.ZodString;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
requestId: string;
|
|
63
|
-
timestamp: string;
|
|
64
51
|
}, {
|
|
65
|
-
requestId: string;
|
|
66
52
|
timestamp: string;
|
|
67
|
-
}>>;
|
|
68
|
-
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
69
|
-
success: z.ZodBoolean;
|
|
70
|
-
data: T;
|
|
71
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
72
|
-
requestId: z.ZodString;
|
|
73
|
-
timestamp: z.ZodString;
|
|
74
|
-
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
requestId: string;
|
|
76
|
-
timestamp: string;
|
|
77
|
-
}, {
|
|
78
53
|
requestId: string;
|
|
79
|
-
timestamp: string;
|
|
80
54
|
}>>;
|
|
81
|
-
}> extends infer
|
|
55
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
82
56
|
success: z.ZodBoolean;
|
|
83
57
|
data: T;
|
|
84
58
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
85
59
|
requestId: z.ZodString;
|
|
86
60
|
timestamp: z.ZodString;
|
|
87
61
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
requestId: string;
|
|
89
62
|
timestamp: string;
|
|
90
|
-
}, {
|
|
91
63
|
requestId: string;
|
|
64
|
+
}, {
|
|
92
65
|
timestamp: string;
|
|
66
|
+
requestId: string;
|
|
93
67
|
}>>;
|
|
94
|
-
}>[k_1]; } : never>;
|
|
68
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
95
69
|
/**
|
|
96
70
|
* Proof submission request schema
|
|
97
71
|
*/
|
|
@@ -115,57 +89,57 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
115
89
|
}, "strip", z.ZodTypeAny, {
|
|
116
90
|
did: string;
|
|
117
91
|
kid: string;
|
|
118
|
-
ts: number;
|
|
119
92
|
nonce: string;
|
|
120
93
|
audience: string;
|
|
121
94
|
sessionId: string;
|
|
95
|
+
ts: number;
|
|
122
96
|
requestHash: string;
|
|
123
97
|
responseHash: string;
|
|
98
|
+
clientDid?: string | undefined;
|
|
124
99
|
scopeId?: string | undefined;
|
|
125
100
|
delegationRef?: string | undefined;
|
|
126
|
-
clientDid?: string | undefined;
|
|
127
101
|
}, {
|
|
128
102
|
did: string;
|
|
129
103
|
kid: string;
|
|
130
|
-
ts: number;
|
|
131
104
|
nonce: string;
|
|
132
105
|
audience: string;
|
|
133
106
|
sessionId: string;
|
|
107
|
+
ts: number;
|
|
134
108
|
requestHash: string;
|
|
135
109
|
responseHash: string;
|
|
110
|
+
clientDid?: string | undefined;
|
|
136
111
|
scopeId?: string | undefined;
|
|
137
112
|
delegationRef?: string | undefined;
|
|
138
|
-
clientDid?: string | undefined;
|
|
139
113
|
}>;
|
|
140
114
|
}, "strip", z.ZodTypeAny, {
|
|
141
115
|
jws: string;
|
|
142
116
|
meta: {
|
|
143
117
|
did: string;
|
|
144
118
|
kid: string;
|
|
145
|
-
ts: number;
|
|
146
119
|
nonce: string;
|
|
147
120
|
audience: string;
|
|
148
121
|
sessionId: string;
|
|
122
|
+
ts: number;
|
|
149
123
|
requestHash: string;
|
|
150
124
|
responseHash: string;
|
|
125
|
+
clientDid?: string | undefined;
|
|
151
126
|
scopeId?: string | undefined;
|
|
152
127
|
delegationRef?: string | undefined;
|
|
153
|
-
clientDid?: string | undefined;
|
|
154
128
|
};
|
|
155
129
|
}, {
|
|
156
130
|
jws: string;
|
|
157
131
|
meta: {
|
|
158
132
|
did: string;
|
|
159
133
|
kid: string;
|
|
160
|
-
ts: number;
|
|
161
134
|
nonce: string;
|
|
162
135
|
audience: string;
|
|
163
136
|
sessionId: string;
|
|
137
|
+
ts: number;
|
|
164
138
|
requestHash: string;
|
|
165
139
|
responseHash: string;
|
|
140
|
+
clientDid?: string | undefined;
|
|
166
141
|
scopeId?: string | undefined;
|
|
167
142
|
delegationRef?: string | undefined;
|
|
168
|
-
clientDid?: string | undefined;
|
|
169
143
|
};
|
|
170
144
|
}>, "many">;
|
|
171
145
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -212,32 +186,32 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
212
186
|
}>>;
|
|
213
187
|
}, "strip", z.ZodTypeAny, {
|
|
214
188
|
timestamp: number;
|
|
189
|
+
agentDid: string;
|
|
215
190
|
sessionId: string;
|
|
191
|
+
scopes: string[];
|
|
216
192
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
217
|
-
agentDid: string;
|
|
218
193
|
targetTools: string[];
|
|
219
|
-
scopes: string[];
|
|
220
194
|
projectId: string;
|
|
221
195
|
userDid?: string | undefined;
|
|
196
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
222
197
|
delegationId?: string | undefined;
|
|
223
198
|
termsAccepted?: boolean | undefined;
|
|
224
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
225
199
|
oauthIdentity?: {
|
|
226
200
|
provider: string;
|
|
227
201
|
identifier: string;
|
|
228
202
|
} | undefined;
|
|
229
203
|
}, {
|
|
230
204
|
timestamp: number;
|
|
205
|
+
agentDid: string;
|
|
231
206
|
sessionId: string;
|
|
207
|
+
scopes: string[];
|
|
232
208
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
233
|
-
agentDid: string;
|
|
234
209
|
targetTools: string[];
|
|
235
|
-
scopes: string[];
|
|
236
210
|
projectId: string;
|
|
237
211
|
userDid?: string | undefined;
|
|
212
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
238
213
|
delegationId?: string | undefined;
|
|
239
214
|
termsAccepted?: boolean | undefined;
|
|
240
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
241
215
|
oauthIdentity?: {
|
|
242
216
|
provider: string;
|
|
243
217
|
identifier: string;
|
|
@@ -252,24 +226,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
252
226
|
result?: unknown;
|
|
253
227
|
userIdentifier?: string | undefined;
|
|
254
228
|
}[] | undefined;
|
|
229
|
+
mcpServerUrl?: string | undefined;
|
|
255
230
|
consentEvents?: {
|
|
256
231
|
timestamp: number;
|
|
232
|
+
agentDid: string;
|
|
257
233
|
sessionId: string;
|
|
234
|
+
scopes: string[];
|
|
258
235
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
259
|
-
agentDid: string;
|
|
260
236
|
targetTools: string[];
|
|
261
|
-
scopes: string[];
|
|
262
237
|
projectId: string;
|
|
263
238
|
userDid?: string | undefined;
|
|
239
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
264
240
|
delegationId?: string | undefined;
|
|
265
241
|
termsAccepted?: boolean | undefined;
|
|
266
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
267
242
|
oauthIdentity?: {
|
|
268
243
|
provider: string;
|
|
269
244
|
identifier: string;
|
|
270
245
|
} | undefined;
|
|
271
246
|
}[] | undefined;
|
|
272
|
-
mcpServerUrl?: string | undefined;
|
|
273
247
|
}, {
|
|
274
248
|
toolCalls?: {
|
|
275
249
|
scopeId: string;
|
|
@@ -278,24 +252,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
252
|
result?: unknown;
|
|
279
253
|
userIdentifier?: string | undefined;
|
|
280
254
|
}[] | undefined;
|
|
255
|
+
mcpServerUrl?: string | undefined;
|
|
281
256
|
consentEvents?: {
|
|
282
257
|
timestamp: number;
|
|
258
|
+
agentDid: string;
|
|
283
259
|
sessionId: string;
|
|
260
|
+
scopes: string[];
|
|
284
261
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
285
|
-
agentDid: string;
|
|
286
262
|
targetTools: string[];
|
|
287
|
-
scopes: string[];
|
|
288
263
|
projectId: string;
|
|
289
264
|
userDid?: string | undefined;
|
|
265
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
290
266
|
delegationId?: string | undefined;
|
|
291
267
|
termsAccepted?: boolean | undefined;
|
|
292
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
293
268
|
oauthIdentity?: {
|
|
294
269
|
provider: string;
|
|
295
270
|
identifier: string;
|
|
296
271
|
} | undefined;
|
|
297
272
|
}[] | undefined;
|
|
298
|
-
mcpServerUrl?: string | undefined;
|
|
299
273
|
}>>;
|
|
300
274
|
}, "strip", z.ZodTypeAny, {
|
|
301
275
|
session_id: string;
|
|
@@ -304,15 +278,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
304
278
|
meta: {
|
|
305
279
|
did: string;
|
|
306
280
|
kid: string;
|
|
307
|
-
ts: number;
|
|
308
281
|
nonce: string;
|
|
309
282
|
audience: string;
|
|
310
283
|
sessionId: string;
|
|
284
|
+
ts: number;
|
|
311
285
|
requestHash: string;
|
|
312
286
|
responseHash: string;
|
|
287
|
+
clientDid?: string | undefined;
|
|
313
288
|
scopeId?: string | undefined;
|
|
314
289
|
delegationRef?: string | undefined;
|
|
315
|
-
clientDid?: string | undefined;
|
|
316
290
|
};
|
|
317
291
|
}[];
|
|
318
292
|
delegation_id?: string | null | undefined;
|
|
@@ -324,24 +298,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
298
|
result?: unknown;
|
|
325
299
|
userIdentifier?: string | undefined;
|
|
326
300
|
}[] | undefined;
|
|
301
|
+
mcpServerUrl?: string | undefined;
|
|
327
302
|
consentEvents?: {
|
|
328
303
|
timestamp: number;
|
|
304
|
+
agentDid: string;
|
|
329
305
|
sessionId: string;
|
|
306
|
+
scopes: string[];
|
|
330
307
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
331
|
-
agentDid: string;
|
|
332
308
|
targetTools: string[];
|
|
333
|
-
scopes: string[];
|
|
334
309
|
projectId: string;
|
|
335
310
|
userDid?: string | undefined;
|
|
311
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
336
312
|
delegationId?: string | undefined;
|
|
337
313
|
termsAccepted?: boolean | undefined;
|
|
338
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
339
314
|
oauthIdentity?: {
|
|
340
315
|
provider: string;
|
|
341
316
|
identifier: string;
|
|
342
317
|
} | undefined;
|
|
343
318
|
}[] | undefined;
|
|
344
|
-
mcpServerUrl?: string | undefined;
|
|
345
319
|
} | undefined;
|
|
346
320
|
}, {
|
|
347
321
|
session_id: string;
|
|
@@ -350,15 +324,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
350
324
|
meta: {
|
|
351
325
|
did: string;
|
|
352
326
|
kid: string;
|
|
353
|
-
ts: number;
|
|
354
327
|
nonce: string;
|
|
355
328
|
audience: string;
|
|
356
329
|
sessionId: string;
|
|
330
|
+
ts: number;
|
|
357
331
|
requestHash: string;
|
|
358
332
|
responseHash: string;
|
|
333
|
+
clientDid?: string | undefined;
|
|
359
334
|
scopeId?: string | undefined;
|
|
360
335
|
delegationRef?: string | undefined;
|
|
361
|
-
clientDid?: string | undefined;
|
|
362
336
|
};
|
|
363
337
|
}[];
|
|
364
338
|
delegation_id?: string | null | undefined;
|
|
@@ -370,24 +344,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
370
344
|
result?: unknown;
|
|
371
345
|
userIdentifier?: string | undefined;
|
|
372
346
|
}[] | undefined;
|
|
347
|
+
mcpServerUrl?: string | undefined;
|
|
373
348
|
consentEvents?: {
|
|
374
349
|
timestamp: number;
|
|
350
|
+
agentDid: string;
|
|
375
351
|
sessionId: string;
|
|
352
|
+
scopes: string[];
|
|
376
353
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
377
|
-
agentDid: string;
|
|
378
354
|
targetTools: string[];
|
|
379
|
-
scopes: string[];
|
|
380
355
|
projectId: string;
|
|
381
356
|
userDid?: string | undefined;
|
|
357
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
382
358
|
delegationId?: string | undefined;
|
|
383
359
|
termsAccepted?: boolean | undefined;
|
|
384
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
385
360
|
oauthIdentity?: {
|
|
386
361
|
provider: string;
|
|
387
362
|
identifier: string;
|
|
388
363
|
} | undefined;
|
|
389
364
|
}[] | undefined;
|
|
390
|
-
mcpServerUrl?: string | undefined;
|
|
391
365
|
} | undefined;
|
|
392
366
|
}>;
|
|
393
367
|
/**
|
|
@@ -414,46 +388,46 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
414
388
|
details?: Record<string, unknown> | undefined;
|
|
415
389
|
}>;
|
|
416
390
|
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
proof_index: number;
|
|
418
391
|
error: {
|
|
419
392
|
code: string;
|
|
420
393
|
message: string;
|
|
421
394
|
details?: Record<string, unknown> | undefined;
|
|
422
395
|
};
|
|
423
|
-
}, {
|
|
424
396
|
proof_index: number;
|
|
397
|
+
}, {
|
|
425
398
|
error: {
|
|
426
399
|
code: string;
|
|
427
400
|
message: string;
|
|
428
401
|
details?: Record<string, unknown> | undefined;
|
|
429
402
|
};
|
|
403
|
+
proof_index: number;
|
|
430
404
|
}>, "many">>;
|
|
431
405
|
}, "strip", z.ZodTypeAny, {
|
|
432
406
|
success: boolean;
|
|
433
407
|
accepted: number;
|
|
434
408
|
rejected: number;
|
|
435
|
-
outcomes?: Record<string, number> | undefined;
|
|
436
409
|
errors?: {
|
|
437
|
-
proof_index: number;
|
|
438
410
|
error: {
|
|
439
411
|
code: string;
|
|
440
412
|
message: string;
|
|
441
413
|
details?: Record<string, unknown> | undefined;
|
|
442
414
|
};
|
|
415
|
+
proof_index: number;
|
|
443
416
|
}[] | undefined;
|
|
417
|
+
outcomes?: Record<string, number> | undefined;
|
|
444
418
|
}, {
|
|
445
419
|
success: boolean;
|
|
446
420
|
accepted: number;
|
|
447
421
|
rejected: number;
|
|
448
|
-
outcomes?: Record<string, number> | undefined;
|
|
449
422
|
errors?: {
|
|
450
|
-
proof_index: number;
|
|
451
423
|
error: {
|
|
452
424
|
code: string;
|
|
453
425
|
message: string;
|
|
454
426
|
details?: Record<string, unknown> | undefined;
|
|
455
427
|
};
|
|
428
|
+
proof_index: number;
|
|
456
429
|
}[] | undefined;
|
|
430
|
+
outcomes?: Record<string, number> | undefined;
|
|
457
431
|
}>;
|
|
458
432
|
/**
|
|
459
433
|
* Delegation credential schema
|
|
@@ -471,17 +445,17 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
471
445
|
agent_did: string;
|
|
472
446
|
issued_at: number;
|
|
473
447
|
created_at: number;
|
|
448
|
+
constraints?: Record<string, unknown> | undefined;
|
|
474
449
|
user_id?: string | undefined;
|
|
475
450
|
user_identifier?: string | undefined;
|
|
476
|
-
constraints?: Record<string, unknown> | undefined;
|
|
477
451
|
}, {
|
|
478
452
|
scopes: string[];
|
|
479
453
|
agent_did: string;
|
|
480
454
|
issued_at: number;
|
|
481
455
|
created_at: number;
|
|
456
|
+
constraints?: Record<string, unknown> | undefined;
|
|
482
457
|
user_id?: string | undefined;
|
|
483
458
|
user_identifier?: string | undefined;
|
|
484
|
-
constraints?: Record<string, unknown> | undefined;
|
|
485
459
|
}>;
|
|
486
460
|
/**
|
|
487
461
|
* Delegation verification request schema
|
|
@@ -1778,17 +1752,17 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1778
1752
|
agent_did: string;
|
|
1779
1753
|
issued_at: number;
|
|
1780
1754
|
created_at: number;
|
|
1755
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1781
1756
|
user_id?: string | undefined;
|
|
1782
1757
|
user_identifier?: string | undefined;
|
|
1783
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1784
1758
|
}, {
|
|
1785
1759
|
scopes: string[];
|
|
1786
1760
|
agent_did: string;
|
|
1787
1761
|
issued_at: number;
|
|
1788
1762
|
created_at: number;
|
|
1763
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1789
1764
|
user_id?: string | undefined;
|
|
1790
1765
|
user_identifier?: string | undefined;
|
|
1791
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1792
1766
|
}>>;
|
|
1793
1767
|
error: z.ZodOptional<z.ZodObject<{
|
|
1794
1768
|
code: z.ZodString;
|
|
@@ -1806,12 +1780,13 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1806
1780
|
reason: z.ZodOptional<z.ZodString>;
|
|
1807
1781
|
}, "strip", z.ZodTypeAny, {
|
|
1808
1782
|
valid: boolean;
|
|
1809
|
-
delegation_id?: string | undefined;
|
|
1810
1783
|
error?: {
|
|
1811
1784
|
code: string;
|
|
1812
1785
|
message: string;
|
|
1813
1786
|
details?: Record<string, unknown> | undefined;
|
|
1814
1787
|
} | undefined;
|
|
1788
|
+
delegation_id?: string | undefined;
|
|
1789
|
+
reason?: string | undefined;
|
|
1815
1790
|
delegation?: z.objectOutputType<{
|
|
1816
1791
|
id: z.ZodString;
|
|
1817
1792
|
issuerDid: z.ZodString;
|
|
@@ -2228,19 +2203,19 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2228
2203
|
agent_did: string;
|
|
2229
2204
|
issued_at: number;
|
|
2230
2205
|
created_at: number;
|
|
2206
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2231
2207
|
user_id?: string | undefined;
|
|
2232
2208
|
user_identifier?: string | undefined;
|
|
2233
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2234
2209
|
} | undefined;
|
|
2235
|
-
reason?: string | undefined;
|
|
2236
2210
|
}, {
|
|
2237
2211
|
valid: boolean;
|
|
2238
|
-
delegation_id?: string | undefined;
|
|
2239
2212
|
error?: {
|
|
2240
2213
|
code: string;
|
|
2241
2214
|
message: string;
|
|
2242
2215
|
details?: Record<string, unknown> | undefined;
|
|
2243
2216
|
} | undefined;
|
|
2217
|
+
delegation_id?: string | undefined;
|
|
2218
|
+
reason?: string | undefined;
|
|
2244
2219
|
delegation?: z.objectInputType<{
|
|
2245
2220
|
id: z.ZodString;
|
|
2246
2221
|
issuerDid: z.ZodString;
|
|
@@ -2657,11 +2632,10 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2657
2632
|
agent_did: string;
|
|
2658
2633
|
issued_at: number;
|
|
2659
2634
|
created_at: number;
|
|
2635
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2660
2636
|
user_id?: string | undefined;
|
|
2661
2637
|
user_identifier?: string | undefined;
|
|
2662
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2663
2638
|
} | undefined;
|
|
2664
|
-
reason?: string | undefined;
|
|
2665
2639
|
}>;
|
|
2666
2640
|
/**
|
|
2667
2641
|
* Wrapped verification response schema
|
|
@@ -3915,17 +3889,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3915
3889
|
agent_did: string;
|
|
3916
3890
|
issued_at: number;
|
|
3917
3891
|
created_at: number;
|
|
3892
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3918
3893
|
user_id?: string | undefined;
|
|
3919
3894
|
user_identifier?: string | undefined;
|
|
3920
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3921
3895
|
}, {
|
|
3922
3896
|
scopes: string[];
|
|
3923
3897
|
agent_did: string;
|
|
3924
3898
|
issued_at: number;
|
|
3925
3899
|
created_at: number;
|
|
3900
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3926
3901
|
user_id?: string | undefined;
|
|
3927
3902
|
user_identifier?: string | undefined;
|
|
3928
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3929
3903
|
}>>;
|
|
3930
3904
|
error: z.ZodOptional<z.ZodObject<{
|
|
3931
3905
|
code: z.ZodString;
|
|
@@ -3943,12 +3917,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3943
3917
|
reason: z.ZodOptional<z.ZodString>;
|
|
3944
3918
|
}, "strip", z.ZodTypeAny, {
|
|
3945
3919
|
valid: boolean;
|
|
3946
|
-
delegation_id?: string | undefined;
|
|
3947
3920
|
error?: {
|
|
3948
3921
|
code: string;
|
|
3949
3922
|
message: string;
|
|
3950
3923
|
details?: Record<string, unknown> | undefined;
|
|
3951
3924
|
} | undefined;
|
|
3925
|
+
delegation_id?: string | undefined;
|
|
3926
|
+
reason?: string | undefined;
|
|
3952
3927
|
delegation?: z.objectOutputType<{
|
|
3953
3928
|
id: z.ZodString;
|
|
3954
3929
|
issuerDid: z.ZodString;
|
|
@@ -4365,19 +4340,19 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4365
4340
|
agent_did: string;
|
|
4366
4341
|
issued_at: number;
|
|
4367
4342
|
created_at: number;
|
|
4343
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4368
4344
|
user_id?: string | undefined;
|
|
4369
4345
|
user_identifier?: string | undefined;
|
|
4370
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4371
4346
|
} | undefined;
|
|
4372
|
-
reason?: string | undefined;
|
|
4373
4347
|
}, {
|
|
4374
4348
|
valid: boolean;
|
|
4375
|
-
delegation_id?: string | undefined;
|
|
4376
4349
|
error?: {
|
|
4377
4350
|
code: string;
|
|
4378
4351
|
message: string;
|
|
4379
4352
|
details?: Record<string, unknown> | undefined;
|
|
4380
4353
|
} | undefined;
|
|
4354
|
+
delegation_id?: string | undefined;
|
|
4355
|
+
reason?: string | undefined;
|
|
4381
4356
|
delegation?: z.objectInputType<{
|
|
4382
4357
|
id: z.ZodString;
|
|
4383
4358
|
issuerDid: z.ZodString;
|
|
@@ -4794,32 +4769,32 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4794
4769
|
agent_did: string;
|
|
4795
4770
|
issued_at: number;
|
|
4796
4771
|
created_at: number;
|
|
4772
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4797
4773
|
user_id?: string | undefined;
|
|
4798
4774
|
user_identifier?: string | undefined;
|
|
4799
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4800
4775
|
} | undefined;
|
|
4801
|
-
reason?: string | undefined;
|
|
4802
4776
|
}>;
|
|
4803
4777
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4804
4778
|
requestId: z.ZodString;
|
|
4805
4779
|
timestamp: z.ZodString;
|
|
4806
4780
|
}, "strip", z.ZodTypeAny, {
|
|
4807
|
-
requestId: string;
|
|
4808
4781
|
timestamp: string;
|
|
4809
|
-
}, {
|
|
4810
4782
|
requestId: string;
|
|
4783
|
+
}, {
|
|
4811
4784
|
timestamp: string;
|
|
4785
|
+
requestId: string;
|
|
4812
4786
|
}>>;
|
|
4813
4787
|
}, "strip", z.ZodTypeAny, {
|
|
4814
4788
|
success: boolean;
|
|
4815
4789
|
data: {
|
|
4816
4790
|
valid: boolean;
|
|
4817
|
-
delegation_id?: string | undefined;
|
|
4818
4791
|
error?: {
|
|
4819
4792
|
code: string;
|
|
4820
4793
|
message: string;
|
|
4821
4794
|
details?: Record<string, unknown> | undefined;
|
|
4822
4795
|
} | undefined;
|
|
4796
|
+
delegation_id?: string | undefined;
|
|
4797
|
+
reason?: string | undefined;
|
|
4823
4798
|
delegation?: z.objectOutputType<{
|
|
4824
4799
|
id: z.ZodString;
|
|
4825
4800
|
issuerDid: z.ZodString;
|
|
@@ -5236,26 +5211,26 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5236
5211
|
agent_did: string;
|
|
5237
5212
|
issued_at: number;
|
|
5238
5213
|
created_at: number;
|
|
5214
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5239
5215
|
user_id?: string | undefined;
|
|
5240
5216
|
user_identifier?: string | undefined;
|
|
5241
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5242
5217
|
} | undefined;
|
|
5243
|
-
reason?: string | undefined;
|
|
5244
5218
|
};
|
|
5245
5219
|
metadata?: {
|
|
5246
|
-
requestId: string;
|
|
5247
5220
|
timestamp: string;
|
|
5221
|
+
requestId: string;
|
|
5248
5222
|
} | undefined;
|
|
5249
5223
|
}, {
|
|
5250
5224
|
success: boolean;
|
|
5251
5225
|
data: {
|
|
5252
5226
|
valid: boolean;
|
|
5253
|
-
delegation_id?: string | undefined;
|
|
5254
5227
|
error?: {
|
|
5255
5228
|
code: string;
|
|
5256
5229
|
message: string;
|
|
5257
5230
|
details?: Record<string, unknown> | undefined;
|
|
5258
5231
|
} | undefined;
|
|
5232
|
+
delegation_id?: string | undefined;
|
|
5233
|
+
reason?: string | undefined;
|
|
5259
5234
|
delegation?: z.objectInputType<{
|
|
5260
5235
|
id: z.ZodString;
|
|
5261
5236
|
issuerDid: z.ZodString;
|
|
@@ -5672,15 +5647,14 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5672
5647
|
agent_did: string;
|
|
5673
5648
|
issued_at: number;
|
|
5674
5649
|
created_at: number;
|
|
5650
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5675
5651
|
user_id?: string | undefined;
|
|
5676
5652
|
user_identifier?: string | undefined;
|
|
5677
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5678
5653
|
} | undefined;
|
|
5679
|
-
reason?: string | undefined;
|
|
5680
5654
|
};
|
|
5681
5655
|
metadata?: {
|
|
5682
|
-
requestId: string;
|
|
5683
5656
|
timestamp: string;
|
|
5657
|
+
requestId: string;
|
|
5684
5658
|
} | undefined;
|
|
5685
5659
|
}>;
|
|
5686
5660
|
/**
|
|
@@ -5853,11 +5827,11 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5853
5827
|
requestId: z.ZodString;
|
|
5854
5828
|
timestamp: z.ZodString;
|
|
5855
5829
|
}, "strip", z.ZodTypeAny, {
|
|
5856
|
-
requestId: string;
|
|
5857
5830
|
timestamp: string;
|
|
5858
|
-
}, {
|
|
5859
5831
|
requestId: string;
|
|
5832
|
+
}, {
|
|
5860
5833
|
timestamp: string;
|
|
5834
|
+
requestId: string;
|
|
5861
5835
|
}>>;
|
|
5862
5836
|
}, "strip", z.ZodTypeAny, {
|
|
5863
5837
|
success: boolean;
|
|
@@ -5879,8 +5853,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5879
5853
|
} | undefined;
|
|
5880
5854
|
};
|
|
5881
5855
|
metadata?: {
|
|
5882
|
-
requestId: string;
|
|
5883
5856
|
timestamp: string;
|
|
5857
|
+
requestId: string;
|
|
5884
5858
|
} | undefined;
|
|
5885
5859
|
}, {
|
|
5886
5860
|
success: boolean;
|
|
@@ -5902,8 +5876,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5902
5876
|
} | undefined;
|
|
5903
5877
|
};
|
|
5904
5878
|
metadata?: {
|
|
5905
|
-
requestId: string;
|
|
5906
5879
|
timestamp: string;
|
|
5880
|
+
requestId: string;
|
|
5907
5881
|
} | undefined;
|
|
5908
5882
|
}>;
|
|
5909
5883
|
/**
|
|
@@ -6040,11 +6014,11 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6040
6014
|
requestId: z.ZodString;
|
|
6041
6015
|
timestamp: z.ZodString;
|
|
6042
6016
|
}, "strip", z.ZodTypeAny, {
|
|
6043
|
-
requestId: string;
|
|
6044
6017
|
timestamp: string;
|
|
6045
|
-
}, {
|
|
6046
6018
|
requestId: string;
|
|
6019
|
+
}, {
|
|
6047
6020
|
timestamp: string;
|
|
6021
|
+
requestId: string;
|
|
6048
6022
|
}>>;
|
|
6049
6023
|
}, "strip", z.ZodTypeAny, {
|
|
6050
6024
|
success: boolean;
|
|
@@ -6060,8 +6034,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6060
6034
|
expires_at?: string | null | undefined;
|
|
6061
6035
|
};
|
|
6062
6036
|
metadata?: {
|
|
6063
|
-
requestId: string;
|
|
6064
6037
|
timestamp: string;
|
|
6038
|
+
requestId: string;
|
|
6065
6039
|
} | undefined;
|
|
6066
6040
|
}, {
|
|
6067
6041
|
success: boolean;
|
|
@@ -6077,8 +6051,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6077
6051
|
expires_at?: string | null | undefined;
|
|
6078
6052
|
};
|
|
6079
6053
|
metadata?: {
|
|
6080
|
-
requestId: string;
|
|
6081
6054
|
timestamp: string;
|
|
6055
|
+
requestId: string;
|
|
6082
6056
|
} | undefined;
|
|
6083
6057
|
}>;
|
|
6084
6058
|
/**
|
|
@@ -6129,11 +6103,11 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6129
6103
|
requestId: z.ZodString;
|
|
6130
6104
|
timestamp: z.ZodString;
|
|
6131
6105
|
}, "strip", z.ZodTypeAny, {
|
|
6132
|
-
requestId: string;
|
|
6133
6106
|
timestamp: string;
|
|
6134
|
-
}, {
|
|
6135
6107
|
requestId: string;
|
|
6108
|
+
}, {
|
|
6136
6109
|
timestamp: string;
|
|
6110
|
+
requestId: string;
|
|
6137
6111
|
}>>;
|
|
6138
6112
|
}, "strip", z.ZodTypeAny, {
|
|
6139
6113
|
success: boolean;
|
|
@@ -6143,8 +6117,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6143
6117
|
revoked_at: number;
|
|
6144
6118
|
};
|
|
6145
6119
|
metadata?: {
|
|
6146
|
-
requestId: string;
|
|
6147
6120
|
timestamp: string;
|
|
6121
|
+
requestId: string;
|
|
6148
6122
|
} | undefined;
|
|
6149
6123
|
}, {
|
|
6150
6124
|
success: boolean;
|
|
@@ -6154,7 +6128,7 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6154
6128
|
revoked_at: number;
|
|
6155
6129
|
};
|
|
6156
6130
|
metadata?: {
|
|
6157
|
-
requestId: string;
|
|
6158
6131
|
timestamp: string;
|
|
6132
|
+
requestId: string;
|
|
6159
6133
|
} | undefined;
|
|
6160
6134
|
}>;
|