@kya-os/contracts 1.6.1 → 1.6.2
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/endpoints.d.ts +3 -0
- package/dist/agentshield-api/endpoints.js +3 -0
- package/dist/agentshield-api/index.d.ts +2 -2
- package/dist/agentshield-api/index.js +7 -1
- package/dist/agentshield-api/schemas.d.ts +264 -78
- package/dist/agentshield-api/schemas.js +47 -1
- package/dist/agentshield-api/types.d.ts +63 -0
- package/dist/consent/schemas.d.ts +6 -6
- package/dist/dashboard-config/schemas.d.ts +92 -92
- package/dist/tool-protection/index.d.ts +16 -16
- package/package.json +1 -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
|
-
timestamp: string;
|
|
37
36
|
requestId: string;
|
|
38
|
-
}, {
|
|
39
37
|
timestamp: string;
|
|
38
|
+
}, {
|
|
40
39
|
requestId: string;
|
|
40
|
+
timestamp: string;
|
|
41
41
|
}>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
43
43
|
success: z.ZodBoolean;
|
|
@@ -46,11 +46,11 @@ 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
|
-
timestamp: string;
|
|
50
49
|
requestId: string;
|
|
51
|
-
}, {
|
|
52
50
|
timestamp: string;
|
|
51
|
+
}, {
|
|
53
52
|
requestId: string;
|
|
53
|
+
timestamp: string;
|
|
54
54
|
}>>;
|
|
55
55
|
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
56
56
|
success: z.ZodBoolean;
|
|
@@ -59,11 +59,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
59
59
|
requestId: z.ZodString;
|
|
60
60
|
timestamp: z.ZodString;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
timestamp: string;
|
|
63
62
|
requestId: string;
|
|
64
|
-
}, {
|
|
65
63
|
timestamp: string;
|
|
64
|
+
}, {
|
|
66
65
|
requestId: string;
|
|
66
|
+
timestamp: string;
|
|
67
67
|
}>>;
|
|
68
68
|
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
69
69
|
/**
|
|
@@ -89,57 +89,57 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
did: string;
|
|
91
91
|
kid: string;
|
|
92
|
+
ts: number;
|
|
92
93
|
nonce: string;
|
|
93
94
|
audience: string;
|
|
94
95
|
sessionId: string;
|
|
95
|
-
ts: number;
|
|
96
96
|
requestHash: string;
|
|
97
97
|
responseHash: string;
|
|
98
|
-
clientDid?: string | undefined;
|
|
99
98
|
scopeId?: string | undefined;
|
|
100
99
|
delegationRef?: string | undefined;
|
|
100
|
+
clientDid?: string | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
did: string;
|
|
103
103
|
kid: string;
|
|
104
|
+
ts: number;
|
|
104
105
|
nonce: string;
|
|
105
106
|
audience: string;
|
|
106
107
|
sessionId: string;
|
|
107
|
-
ts: number;
|
|
108
108
|
requestHash: string;
|
|
109
109
|
responseHash: string;
|
|
110
|
-
clientDid?: string | undefined;
|
|
111
110
|
scopeId?: string | undefined;
|
|
112
111
|
delegationRef?: string | undefined;
|
|
112
|
+
clientDid?: string | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
jws: string;
|
|
116
116
|
meta: {
|
|
117
117
|
did: string;
|
|
118
118
|
kid: string;
|
|
119
|
+
ts: number;
|
|
119
120
|
nonce: string;
|
|
120
121
|
audience: string;
|
|
121
122
|
sessionId: string;
|
|
122
|
-
ts: number;
|
|
123
123
|
requestHash: string;
|
|
124
124
|
responseHash: string;
|
|
125
|
-
clientDid?: string | undefined;
|
|
126
125
|
scopeId?: string | undefined;
|
|
127
126
|
delegationRef?: string | undefined;
|
|
127
|
+
clientDid?: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
130
130
|
jws: string;
|
|
131
131
|
meta: {
|
|
132
132
|
did: string;
|
|
133
133
|
kid: string;
|
|
134
|
+
ts: number;
|
|
134
135
|
nonce: string;
|
|
135
136
|
audience: string;
|
|
136
137
|
sessionId: string;
|
|
137
|
-
ts: number;
|
|
138
138
|
requestHash: string;
|
|
139
139
|
responseHash: string;
|
|
140
|
-
clientDid?: string | undefined;
|
|
141
140
|
scopeId?: string | undefined;
|
|
142
141
|
delegationRef?: string | undefined;
|
|
142
|
+
clientDid?: string | undefined;
|
|
143
143
|
};
|
|
144
144
|
}>, "many">;
|
|
145
145
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,33 +185,33 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
185
|
identifier: string;
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
timestamp: number;
|
|
189
|
-
agentDid: string;
|
|
190
188
|
sessionId: string;
|
|
191
189
|
scopes: string[];
|
|
190
|
+
timestamp: number;
|
|
192
191
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
192
|
+
agentDid: string;
|
|
193
193
|
targetTools: string[];
|
|
194
194
|
projectId: string;
|
|
195
195
|
userDid?: string | undefined;
|
|
196
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
197
196
|
delegationId?: string | undefined;
|
|
198
197
|
termsAccepted?: boolean | undefined;
|
|
198
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
199
199
|
oauthIdentity?: {
|
|
200
200
|
provider: string;
|
|
201
201
|
identifier: string;
|
|
202
202
|
} | undefined;
|
|
203
203
|
}, {
|
|
204
|
-
timestamp: number;
|
|
205
|
-
agentDid: string;
|
|
206
204
|
sessionId: string;
|
|
207
205
|
scopes: string[];
|
|
206
|
+
timestamp: number;
|
|
208
207
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
208
|
+
agentDid: string;
|
|
209
209
|
targetTools: string[];
|
|
210
210
|
projectId: string;
|
|
211
211
|
userDid?: string | undefined;
|
|
212
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
213
212
|
delegationId?: string | undefined;
|
|
214
213
|
termsAccepted?: boolean | undefined;
|
|
214
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
215
215
|
oauthIdentity?: {
|
|
216
216
|
provider: string;
|
|
217
217
|
identifier: string;
|
|
@@ -226,24 +226,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
226
226
|
result?: unknown;
|
|
227
227
|
userIdentifier?: string | undefined;
|
|
228
228
|
}[] | undefined;
|
|
229
|
-
mcpServerUrl?: string | undefined;
|
|
230
229
|
consentEvents?: {
|
|
231
|
-
timestamp: number;
|
|
232
|
-
agentDid: string;
|
|
233
230
|
sessionId: string;
|
|
234
231
|
scopes: string[];
|
|
232
|
+
timestamp: number;
|
|
235
233
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
234
|
+
agentDid: string;
|
|
236
235
|
targetTools: string[];
|
|
237
236
|
projectId: string;
|
|
238
237
|
userDid?: string | undefined;
|
|
239
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
240
238
|
delegationId?: string | undefined;
|
|
241
239
|
termsAccepted?: boolean | undefined;
|
|
240
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
242
241
|
oauthIdentity?: {
|
|
243
242
|
provider: string;
|
|
244
243
|
identifier: string;
|
|
245
244
|
} | undefined;
|
|
246
245
|
}[] | undefined;
|
|
246
|
+
mcpServerUrl?: string | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
toolCalls?: {
|
|
249
249
|
scopeId: string;
|
|
@@ -252,24 +252,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
252
252
|
result?: unknown;
|
|
253
253
|
userIdentifier?: string | undefined;
|
|
254
254
|
}[] | undefined;
|
|
255
|
-
mcpServerUrl?: string | undefined;
|
|
256
255
|
consentEvents?: {
|
|
257
|
-
timestamp: number;
|
|
258
|
-
agentDid: string;
|
|
259
256
|
sessionId: string;
|
|
260
257
|
scopes: string[];
|
|
258
|
+
timestamp: number;
|
|
261
259
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
260
|
+
agentDid: string;
|
|
262
261
|
targetTools: string[];
|
|
263
262
|
projectId: string;
|
|
264
263
|
userDid?: string | undefined;
|
|
265
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
266
264
|
delegationId?: string | undefined;
|
|
267
265
|
termsAccepted?: boolean | undefined;
|
|
266
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
268
267
|
oauthIdentity?: {
|
|
269
268
|
provider: string;
|
|
270
269
|
identifier: string;
|
|
271
270
|
} | undefined;
|
|
272
271
|
}[] | undefined;
|
|
272
|
+
mcpServerUrl?: string | undefined;
|
|
273
273
|
}>>;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
275
|
session_id: string;
|
|
@@ -278,15 +278,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
278
|
meta: {
|
|
279
279
|
did: string;
|
|
280
280
|
kid: string;
|
|
281
|
+
ts: number;
|
|
281
282
|
nonce: string;
|
|
282
283
|
audience: string;
|
|
283
284
|
sessionId: string;
|
|
284
|
-
ts: number;
|
|
285
285
|
requestHash: string;
|
|
286
286
|
responseHash: string;
|
|
287
|
-
clientDid?: string | undefined;
|
|
288
287
|
scopeId?: string | undefined;
|
|
289
288
|
delegationRef?: string | undefined;
|
|
289
|
+
clientDid?: string | undefined;
|
|
290
290
|
};
|
|
291
291
|
}[];
|
|
292
292
|
delegation_id?: string | null | undefined;
|
|
@@ -298,24 +298,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
298
298
|
result?: unknown;
|
|
299
299
|
userIdentifier?: string | undefined;
|
|
300
300
|
}[] | undefined;
|
|
301
|
-
mcpServerUrl?: string | undefined;
|
|
302
301
|
consentEvents?: {
|
|
303
|
-
timestamp: number;
|
|
304
|
-
agentDid: string;
|
|
305
302
|
sessionId: string;
|
|
306
303
|
scopes: string[];
|
|
304
|
+
timestamp: number;
|
|
307
305
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
306
|
+
agentDid: string;
|
|
308
307
|
targetTools: string[];
|
|
309
308
|
projectId: string;
|
|
310
309
|
userDid?: string | undefined;
|
|
311
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
312
310
|
delegationId?: string | undefined;
|
|
313
311
|
termsAccepted?: boolean | undefined;
|
|
312
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
314
313
|
oauthIdentity?: {
|
|
315
314
|
provider: string;
|
|
316
315
|
identifier: string;
|
|
317
316
|
} | undefined;
|
|
318
317
|
}[] | undefined;
|
|
318
|
+
mcpServerUrl?: string | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
session_id: string;
|
|
@@ -324,15 +324,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
324
|
meta: {
|
|
325
325
|
did: string;
|
|
326
326
|
kid: string;
|
|
327
|
+
ts: number;
|
|
327
328
|
nonce: string;
|
|
328
329
|
audience: string;
|
|
329
330
|
sessionId: string;
|
|
330
|
-
ts: number;
|
|
331
331
|
requestHash: string;
|
|
332
332
|
responseHash: string;
|
|
333
|
-
clientDid?: string | undefined;
|
|
334
333
|
scopeId?: string | undefined;
|
|
335
334
|
delegationRef?: string | undefined;
|
|
335
|
+
clientDid?: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}[];
|
|
338
338
|
delegation_id?: string | null | undefined;
|
|
@@ -344,24 +344,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
344
344
|
result?: unknown;
|
|
345
345
|
userIdentifier?: string | undefined;
|
|
346
346
|
}[] | undefined;
|
|
347
|
-
mcpServerUrl?: string | undefined;
|
|
348
347
|
consentEvents?: {
|
|
349
|
-
timestamp: number;
|
|
350
|
-
agentDid: string;
|
|
351
348
|
sessionId: string;
|
|
352
349
|
scopes: string[];
|
|
350
|
+
timestamp: number;
|
|
353
351
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
352
|
+
agentDid: string;
|
|
354
353
|
targetTools: string[];
|
|
355
354
|
projectId: string;
|
|
356
355
|
userDid?: string | undefined;
|
|
357
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
358
356
|
delegationId?: string | undefined;
|
|
359
357
|
termsAccepted?: boolean | undefined;
|
|
358
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
360
359
|
oauthIdentity?: {
|
|
361
360
|
provider: string;
|
|
362
361
|
identifier: string;
|
|
363
362
|
} | undefined;
|
|
364
363
|
}[] | undefined;
|
|
364
|
+
mcpServerUrl?: string | undefined;
|
|
365
365
|
} | undefined;
|
|
366
366
|
}>;
|
|
367
367
|
/**
|
|
@@ -406,6 +406,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
406
406
|
success: boolean;
|
|
407
407
|
accepted: number;
|
|
408
408
|
rejected: number;
|
|
409
|
+
outcomes?: Record<string, number> | undefined;
|
|
409
410
|
errors?: {
|
|
410
411
|
error: {
|
|
411
412
|
code: string;
|
|
@@ -414,11 +415,11 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
414
415
|
};
|
|
415
416
|
proof_index: number;
|
|
416
417
|
}[] | undefined;
|
|
417
|
-
outcomes?: Record<string, number> | undefined;
|
|
418
418
|
}, {
|
|
419
419
|
success: boolean;
|
|
420
420
|
accepted: number;
|
|
421
421
|
rejected: number;
|
|
422
|
+
outcomes?: Record<string, number> | undefined;
|
|
422
423
|
errors?: {
|
|
423
424
|
error: {
|
|
424
425
|
code: string;
|
|
@@ -427,7 +428,6 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
427
428
|
};
|
|
428
429
|
proof_index: number;
|
|
429
430
|
}[] | undefined;
|
|
430
|
-
outcomes?: Record<string, number> | undefined;
|
|
431
431
|
}>;
|
|
432
432
|
/**
|
|
433
433
|
* Delegation credential schema
|
|
@@ -461,8 +461,8 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
461
461
|
* Delegation verification request schema
|
|
462
462
|
*/
|
|
463
463
|
export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
464
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
465
464
|
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
465
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
466
466
|
agent_did: z.ZodString;
|
|
467
467
|
credential_jwt: z.ZodOptional<z.ZodString>;
|
|
468
468
|
delegation_token: z.ZodOptional<z.ZodString>;
|
|
@@ -481,8 +481,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
481
481
|
}>>;
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
483
|
agent_did: string;
|
|
484
|
-
timestamp?: number | undefined;
|
|
485
484
|
scopes?: string[] | undefined;
|
|
485
|
+
timestamp?: number | undefined;
|
|
486
486
|
credential_jwt?: string | undefined;
|
|
487
487
|
delegation_token?: string | undefined;
|
|
488
488
|
client_info?: {
|
|
@@ -492,8 +492,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
492
492
|
} | undefined;
|
|
493
493
|
}, {
|
|
494
494
|
agent_did: string;
|
|
495
|
-
timestamp?: number | undefined;
|
|
496
495
|
scopes?: string[] | undefined;
|
|
496
|
+
timestamp?: number | undefined;
|
|
497
497
|
credential_jwt?: string | undefined;
|
|
498
498
|
delegation_token?: string | undefined;
|
|
499
499
|
client_info?: {
|
|
@@ -1786,7 +1786,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1786
1786
|
details?: Record<string, unknown> | undefined;
|
|
1787
1787
|
} | undefined;
|
|
1788
1788
|
delegation_id?: string | undefined;
|
|
1789
|
-
reason?: string | undefined;
|
|
1790
1789
|
delegation?: z.objectOutputType<{
|
|
1791
1790
|
id: z.ZodString;
|
|
1792
1791
|
issuerDid: z.ZodString;
|
|
@@ -2207,6 +2206,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2207
2206
|
user_id?: string | undefined;
|
|
2208
2207
|
user_identifier?: string | undefined;
|
|
2209
2208
|
} | undefined;
|
|
2209
|
+
reason?: string | undefined;
|
|
2210
2210
|
}, {
|
|
2211
2211
|
valid: boolean;
|
|
2212
2212
|
error?: {
|
|
@@ -2215,7 +2215,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2215
2215
|
details?: Record<string, unknown> | undefined;
|
|
2216
2216
|
} | undefined;
|
|
2217
2217
|
delegation_id?: string | undefined;
|
|
2218
|
-
reason?: string | undefined;
|
|
2219
2218
|
delegation?: z.objectInputType<{
|
|
2220
2219
|
id: z.ZodString;
|
|
2221
2220
|
issuerDid: z.ZodString;
|
|
@@ -2636,6 +2635,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2636
2635
|
user_id?: string | undefined;
|
|
2637
2636
|
user_identifier?: string | undefined;
|
|
2638
2637
|
} | undefined;
|
|
2638
|
+
reason?: string | undefined;
|
|
2639
2639
|
}>;
|
|
2640
2640
|
/**
|
|
2641
2641
|
* Wrapped verification response schema
|
|
@@ -3923,7 +3923,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3923
3923
|
details?: Record<string, unknown> | undefined;
|
|
3924
3924
|
} | undefined;
|
|
3925
3925
|
delegation_id?: string | undefined;
|
|
3926
|
-
reason?: string | undefined;
|
|
3927
3926
|
delegation?: z.objectOutputType<{
|
|
3928
3927
|
id: z.ZodString;
|
|
3929
3928
|
issuerDid: z.ZodString;
|
|
@@ -4344,6 +4343,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4344
4343
|
user_id?: string | undefined;
|
|
4345
4344
|
user_identifier?: string | undefined;
|
|
4346
4345
|
} | undefined;
|
|
4346
|
+
reason?: string | undefined;
|
|
4347
4347
|
}, {
|
|
4348
4348
|
valid: boolean;
|
|
4349
4349
|
error?: {
|
|
@@ -4352,7 +4352,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4352
4352
|
details?: Record<string, unknown> | undefined;
|
|
4353
4353
|
} | undefined;
|
|
4354
4354
|
delegation_id?: string | undefined;
|
|
4355
|
-
reason?: string | undefined;
|
|
4356
4355
|
delegation?: z.objectInputType<{
|
|
4357
4356
|
id: z.ZodString;
|
|
4358
4357
|
issuerDid: z.ZodString;
|
|
@@ -4773,16 +4772,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4773
4772
|
user_id?: string | undefined;
|
|
4774
4773
|
user_identifier?: string | undefined;
|
|
4775
4774
|
} | undefined;
|
|
4775
|
+
reason?: string | undefined;
|
|
4776
4776
|
}>;
|
|
4777
4777
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4778
4778
|
requestId: z.ZodString;
|
|
4779
4779
|
timestamp: z.ZodString;
|
|
4780
4780
|
}, "strip", z.ZodTypeAny, {
|
|
4781
|
-
timestamp: string;
|
|
4782
4781
|
requestId: string;
|
|
4783
|
-
}, {
|
|
4784
4782
|
timestamp: string;
|
|
4783
|
+
}, {
|
|
4785
4784
|
requestId: string;
|
|
4785
|
+
timestamp: string;
|
|
4786
4786
|
}>>;
|
|
4787
4787
|
}, "strip", z.ZodTypeAny, {
|
|
4788
4788
|
success: boolean;
|
|
@@ -4794,7 +4794,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4794
4794
|
details?: Record<string, unknown> | undefined;
|
|
4795
4795
|
} | undefined;
|
|
4796
4796
|
delegation_id?: string | undefined;
|
|
4797
|
-
reason?: string | undefined;
|
|
4798
4797
|
delegation?: z.objectOutputType<{
|
|
4799
4798
|
id: z.ZodString;
|
|
4800
4799
|
issuerDid: z.ZodString;
|
|
@@ -5215,10 +5214,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5215
5214
|
user_id?: string | undefined;
|
|
5216
5215
|
user_identifier?: string | undefined;
|
|
5217
5216
|
} | undefined;
|
|
5217
|
+
reason?: string | undefined;
|
|
5218
5218
|
};
|
|
5219
5219
|
metadata?: {
|
|
5220
|
-
timestamp: string;
|
|
5221
5220
|
requestId: string;
|
|
5221
|
+
timestamp: string;
|
|
5222
5222
|
} | undefined;
|
|
5223
5223
|
}, {
|
|
5224
5224
|
success: boolean;
|
|
@@ -5230,7 +5230,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5230
5230
|
details?: Record<string, unknown> | undefined;
|
|
5231
5231
|
} | undefined;
|
|
5232
5232
|
delegation_id?: string | undefined;
|
|
5233
|
-
reason?: string | undefined;
|
|
5234
5233
|
delegation?: z.objectInputType<{
|
|
5235
5234
|
id: z.ZodString;
|
|
5236
5235
|
issuerDid: z.ZodString;
|
|
@@ -5651,10 +5650,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5651
5650
|
user_id?: string | undefined;
|
|
5652
5651
|
user_identifier?: string | undefined;
|
|
5653
5652
|
} | undefined;
|
|
5653
|
+
reason?: string | undefined;
|
|
5654
5654
|
};
|
|
5655
5655
|
metadata?: {
|
|
5656
|
-
timestamp: string;
|
|
5657
5656
|
requestId: string;
|
|
5657
|
+
timestamp: string;
|
|
5658
5658
|
} | undefined;
|
|
5659
5659
|
}>;
|
|
5660
5660
|
/**
|
|
@@ -5827,11 +5827,11 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5827
5827
|
requestId: z.ZodString;
|
|
5828
5828
|
timestamp: z.ZodString;
|
|
5829
5829
|
}, "strip", z.ZodTypeAny, {
|
|
5830
|
-
timestamp: string;
|
|
5831
5830
|
requestId: string;
|
|
5832
|
-
}, {
|
|
5833
5831
|
timestamp: string;
|
|
5832
|
+
}, {
|
|
5834
5833
|
requestId: string;
|
|
5834
|
+
timestamp: string;
|
|
5835
5835
|
}>>;
|
|
5836
5836
|
}, "strip", z.ZodTypeAny, {
|
|
5837
5837
|
success: boolean;
|
|
@@ -5853,8 +5853,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5853
5853
|
} | undefined;
|
|
5854
5854
|
};
|
|
5855
5855
|
metadata?: {
|
|
5856
|
-
timestamp: string;
|
|
5857
5856
|
requestId: string;
|
|
5857
|
+
timestamp: string;
|
|
5858
5858
|
} | undefined;
|
|
5859
5859
|
}, {
|
|
5860
5860
|
success: boolean;
|
|
@@ -5876,8 +5876,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5876
5876
|
} | undefined;
|
|
5877
5877
|
};
|
|
5878
5878
|
metadata?: {
|
|
5879
|
-
timestamp: string;
|
|
5880
5879
|
requestId: string;
|
|
5880
|
+
timestamp: string;
|
|
5881
5881
|
} | undefined;
|
|
5882
5882
|
}>;
|
|
5883
5883
|
/**
|
|
@@ -5955,8 +5955,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5955
5955
|
created_at: z.ZodString;
|
|
5956
5956
|
}, "strip", z.ZodTypeAny, {
|
|
5957
5957
|
status: "active" | "revoked" | "expired";
|
|
5958
|
-
delegation_id: string;
|
|
5959
5958
|
scopes: string[];
|
|
5959
|
+
delegation_id: string;
|
|
5960
5960
|
agent_did: string;
|
|
5961
5961
|
issued_at: string;
|
|
5962
5962
|
created_at: string;
|
|
@@ -5965,8 +5965,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5965
5965
|
expires_at?: string | null | undefined;
|
|
5966
5966
|
}, {
|
|
5967
5967
|
status: "active" | "revoked" | "expired";
|
|
5968
|
-
delegation_id: string;
|
|
5969
5968
|
scopes: string[];
|
|
5969
|
+
delegation_id: string;
|
|
5970
5970
|
agent_did: string;
|
|
5971
5971
|
issued_at: string;
|
|
5972
5972
|
created_at: string;
|
|
@@ -5991,8 +5991,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5991
5991
|
created_at: z.ZodString;
|
|
5992
5992
|
}, "strip", z.ZodTypeAny, {
|
|
5993
5993
|
status: "active" | "revoked" | "expired";
|
|
5994
|
-
delegation_id: string;
|
|
5995
5994
|
scopes: string[];
|
|
5995
|
+
delegation_id: string;
|
|
5996
5996
|
agent_did: string;
|
|
5997
5997
|
issued_at: string;
|
|
5998
5998
|
created_at: string;
|
|
@@ -6001,8 +6001,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6001
6001
|
expires_at?: string | null | undefined;
|
|
6002
6002
|
}, {
|
|
6003
6003
|
status: "active" | "revoked" | "expired";
|
|
6004
|
-
delegation_id: string;
|
|
6005
6004
|
scopes: string[];
|
|
6005
|
+
delegation_id: string;
|
|
6006
6006
|
agent_did: string;
|
|
6007
6007
|
issued_at: string;
|
|
6008
6008
|
created_at: string;
|
|
@@ -6014,18 +6014,18 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6014
6014
|
requestId: z.ZodString;
|
|
6015
6015
|
timestamp: z.ZodString;
|
|
6016
6016
|
}, "strip", z.ZodTypeAny, {
|
|
6017
|
-
timestamp: string;
|
|
6018
6017
|
requestId: string;
|
|
6019
|
-
}, {
|
|
6020
6018
|
timestamp: string;
|
|
6019
|
+
}, {
|
|
6021
6020
|
requestId: string;
|
|
6021
|
+
timestamp: string;
|
|
6022
6022
|
}>>;
|
|
6023
6023
|
}, "strip", z.ZodTypeAny, {
|
|
6024
6024
|
success: boolean;
|
|
6025
6025
|
data: {
|
|
6026
6026
|
status: "active" | "revoked" | "expired";
|
|
6027
|
-
delegation_id: string;
|
|
6028
6027
|
scopes: string[];
|
|
6028
|
+
delegation_id: string;
|
|
6029
6029
|
agent_did: string;
|
|
6030
6030
|
issued_at: string;
|
|
6031
6031
|
created_at: string;
|
|
@@ -6034,15 +6034,15 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6034
6034
|
expires_at?: string | null | undefined;
|
|
6035
6035
|
};
|
|
6036
6036
|
metadata?: {
|
|
6037
|
-
timestamp: string;
|
|
6038
6037
|
requestId: string;
|
|
6038
|
+
timestamp: string;
|
|
6039
6039
|
} | undefined;
|
|
6040
6040
|
}, {
|
|
6041
6041
|
success: boolean;
|
|
6042
6042
|
data: {
|
|
6043
6043
|
status: "active" | "revoked" | "expired";
|
|
6044
|
-
delegation_id: string;
|
|
6045
6044
|
scopes: string[];
|
|
6045
|
+
delegation_id: string;
|
|
6046
6046
|
agent_did: string;
|
|
6047
6047
|
issued_at: string;
|
|
6048
6048
|
created_at: string;
|
|
@@ -6051,8 +6051,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6051
6051
|
expires_at?: string | null | undefined;
|
|
6052
6052
|
};
|
|
6053
6053
|
metadata?: {
|
|
6054
|
-
timestamp: string;
|
|
6055
6054
|
requestId: string;
|
|
6055
|
+
timestamp: string;
|
|
6056
6056
|
} | undefined;
|
|
6057
6057
|
}>;
|
|
6058
6058
|
/**
|
|
@@ -6073,12 +6073,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6073
6073
|
revoked: z.ZodBoolean;
|
|
6074
6074
|
revoked_at: z.ZodNumber;
|
|
6075
6075
|
}, "strip", z.ZodTypeAny, {
|
|
6076
|
-
delegation_id: string;
|
|
6077
6076
|
revoked: boolean;
|
|
6077
|
+
delegation_id: string;
|
|
6078
6078
|
revoked_at: number;
|
|
6079
6079
|
}, {
|
|
6080
|
-
delegation_id: string;
|
|
6081
6080
|
revoked: boolean;
|
|
6081
|
+
delegation_id: string;
|
|
6082
6082
|
revoked_at: number;
|
|
6083
6083
|
}>;
|
|
6084
6084
|
/**
|
|
@@ -6091,44 +6091,230 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6091
6091
|
revoked: z.ZodBoolean;
|
|
6092
6092
|
revoked_at: z.ZodNumber;
|
|
6093
6093
|
}, "strip", z.ZodTypeAny, {
|
|
6094
|
-
delegation_id: string;
|
|
6095
6094
|
revoked: boolean;
|
|
6095
|
+
delegation_id: string;
|
|
6096
6096
|
revoked_at: number;
|
|
6097
6097
|
}, {
|
|
6098
|
-
delegation_id: string;
|
|
6099
6098
|
revoked: boolean;
|
|
6099
|
+
delegation_id: string;
|
|
6100
6100
|
revoked_at: number;
|
|
6101
6101
|
}>;
|
|
6102
6102
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6103
6103
|
requestId: z.ZodString;
|
|
6104
6104
|
timestamp: z.ZodString;
|
|
6105
6105
|
}, "strip", z.ZodTypeAny, {
|
|
6106
|
-
timestamp: string;
|
|
6107
6106
|
requestId: string;
|
|
6108
|
-
}, {
|
|
6109
6107
|
timestamp: string;
|
|
6108
|
+
}, {
|
|
6110
6109
|
requestId: string;
|
|
6110
|
+
timestamp: string;
|
|
6111
6111
|
}>>;
|
|
6112
6112
|
}, "strip", z.ZodTypeAny, {
|
|
6113
6113
|
success: boolean;
|
|
6114
6114
|
data: {
|
|
6115
|
-
delegation_id: string;
|
|
6116
6115
|
revoked: boolean;
|
|
6116
|
+
delegation_id: string;
|
|
6117
6117
|
revoked_at: number;
|
|
6118
6118
|
};
|
|
6119
6119
|
metadata?: {
|
|
6120
|
-
timestamp: string;
|
|
6121
6120
|
requestId: string;
|
|
6121
|
+
timestamp: string;
|
|
6122
6122
|
} | undefined;
|
|
6123
6123
|
}, {
|
|
6124
6124
|
success: boolean;
|
|
6125
6125
|
data: {
|
|
6126
|
-
delegation_id: string;
|
|
6127
6126
|
revoked: boolean;
|
|
6127
|
+
delegation_id: string;
|
|
6128
6128
|
revoked_at: number;
|
|
6129
6129
|
};
|
|
6130
6130
|
metadata?: {
|
|
6131
|
+
requestId: string;
|
|
6132
|
+
timestamp: string;
|
|
6133
|
+
} | undefined;
|
|
6134
|
+
}>;
|
|
6135
|
+
/**
|
|
6136
|
+
* Session client info schema
|
|
6137
|
+
*/
|
|
6138
|
+
export declare const sessionClientInfoSchema: z.ZodObject<{
|
|
6139
|
+
name: z.ZodString;
|
|
6140
|
+
version: z.ZodOptional<z.ZodString>;
|
|
6141
|
+
protocol_version: z.ZodOptional<z.ZodString>;
|
|
6142
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
6143
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
6144
|
+
}, "strip", z.ZodTypeAny, {
|
|
6145
|
+
name: string;
|
|
6146
|
+
version?: string | undefined;
|
|
6147
|
+
protocol_version?: string | undefined;
|
|
6148
|
+
platform?: string | undefined;
|
|
6149
|
+
vendor?: string | undefined;
|
|
6150
|
+
}, {
|
|
6151
|
+
name: string;
|
|
6152
|
+
version?: string | undefined;
|
|
6153
|
+
protocol_version?: string | undefined;
|
|
6154
|
+
platform?: string | undefined;
|
|
6155
|
+
vendor?: string | undefined;
|
|
6156
|
+
}>;
|
|
6157
|
+
/**
|
|
6158
|
+
* Session client identity schema
|
|
6159
|
+
*/
|
|
6160
|
+
export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
6161
|
+
did: z.ZodString;
|
|
6162
|
+
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6163
|
+
registered: z.ZodBoolean;
|
|
6164
|
+
}, "strip", z.ZodTypeAny, {
|
|
6165
|
+
did: string;
|
|
6166
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6167
|
+
registered: boolean;
|
|
6168
|
+
}, {
|
|
6169
|
+
did: string;
|
|
6170
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6171
|
+
registered: boolean;
|
|
6172
|
+
}>;
|
|
6173
|
+
/**
|
|
6174
|
+
* Register session request schema
|
|
6175
|
+
*/
|
|
6176
|
+
export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
6177
|
+
session_id: z.ZodString;
|
|
6178
|
+
agent_did: z.ZodString;
|
|
6179
|
+
project_id: z.ZodString;
|
|
6180
|
+
created_at: z.ZodNumber;
|
|
6181
|
+
client_info: z.ZodObject<{
|
|
6182
|
+
name: z.ZodString;
|
|
6183
|
+
version: z.ZodOptional<z.ZodString>;
|
|
6184
|
+
protocol_version: z.ZodOptional<z.ZodString>;
|
|
6185
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
6186
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
6187
|
+
}, "strip", z.ZodTypeAny, {
|
|
6188
|
+
name: string;
|
|
6189
|
+
version?: string | undefined;
|
|
6190
|
+
protocol_version?: string | undefined;
|
|
6191
|
+
platform?: string | undefined;
|
|
6192
|
+
vendor?: string | undefined;
|
|
6193
|
+
}, {
|
|
6194
|
+
name: string;
|
|
6195
|
+
version?: string | undefined;
|
|
6196
|
+
protocol_version?: string | undefined;
|
|
6197
|
+
platform?: string | undefined;
|
|
6198
|
+
vendor?: string | undefined;
|
|
6199
|
+
}>;
|
|
6200
|
+
client_identity: z.ZodOptional<z.ZodObject<{
|
|
6201
|
+
did: z.ZodString;
|
|
6202
|
+
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6203
|
+
registered: z.ZodBoolean;
|
|
6204
|
+
}, "strip", z.ZodTypeAny, {
|
|
6205
|
+
did: string;
|
|
6206
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6207
|
+
registered: boolean;
|
|
6208
|
+
}, {
|
|
6209
|
+
did: string;
|
|
6210
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6211
|
+
registered: boolean;
|
|
6212
|
+
}>>;
|
|
6213
|
+
server_did: z.ZodOptional<z.ZodString>;
|
|
6214
|
+
ttl_minutes: z.ZodOptional<z.ZodNumber>;
|
|
6215
|
+
}, "strip", z.ZodTypeAny, {
|
|
6216
|
+
session_id: string;
|
|
6217
|
+
agent_did: string;
|
|
6218
|
+
created_at: number;
|
|
6219
|
+
client_info: {
|
|
6220
|
+
name: string;
|
|
6221
|
+
version?: string | undefined;
|
|
6222
|
+
protocol_version?: string | undefined;
|
|
6223
|
+
platform?: string | undefined;
|
|
6224
|
+
vendor?: string | undefined;
|
|
6225
|
+
};
|
|
6226
|
+
project_id: string;
|
|
6227
|
+
client_identity?: {
|
|
6228
|
+
did: string;
|
|
6229
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6230
|
+
registered: boolean;
|
|
6231
|
+
} | undefined;
|
|
6232
|
+
server_did?: string | undefined;
|
|
6233
|
+
ttl_minutes?: number | undefined;
|
|
6234
|
+
}, {
|
|
6235
|
+
session_id: string;
|
|
6236
|
+
agent_did: string;
|
|
6237
|
+
created_at: number;
|
|
6238
|
+
client_info: {
|
|
6239
|
+
name: string;
|
|
6240
|
+
version?: string | undefined;
|
|
6241
|
+
protocol_version?: string | undefined;
|
|
6242
|
+
platform?: string | undefined;
|
|
6243
|
+
vendor?: string | undefined;
|
|
6244
|
+
};
|
|
6245
|
+
project_id: string;
|
|
6246
|
+
client_identity?: {
|
|
6247
|
+
did: string;
|
|
6248
|
+
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6249
|
+
registered: boolean;
|
|
6250
|
+
} | undefined;
|
|
6251
|
+
server_did?: string | undefined;
|
|
6252
|
+
ttl_minutes?: number | undefined;
|
|
6253
|
+
}>;
|
|
6254
|
+
/**
|
|
6255
|
+
* Register session response schema
|
|
6256
|
+
*/
|
|
6257
|
+
export declare const registerSessionResponseSchema: z.ZodObject<{
|
|
6258
|
+
session_id: z.ZodString;
|
|
6259
|
+
registered: z.ZodBoolean;
|
|
6260
|
+
created_at: z.ZodString;
|
|
6261
|
+
}, "strip", z.ZodTypeAny, {
|
|
6262
|
+
session_id: string;
|
|
6263
|
+
created_at: string;
|
|
6264
|
+
registered: boolean;
|
|
6265
|
+
}, {
|
|
6266
|
+
session_id: string;
|
|
6267
|
+
created_at: string;
|
|
6268
|
+
registered: boolean;
|
|
6269
|
+
}>;
|
|
6270
|
+
/**
|
|
6271
|
+
* Wrapped session registration response schema
|
|
6272
|
+
*/
|
|
6273
|
+
export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
6274
|
+
success: z.ZodBoolean;
|
|
6275
|
+
data: z.ZodObject<{
|
|
6276
|
+
session_id: z.ZodString;
|
|
6277
|
+
registered: z.ZodBoolean;
|
|
6278
|
+
created_at: z.ZodString;
|
|
6279
|
+
}, "strip", z.ZodTypeAny, {
|
|
6280
|
+
session_id: string;
|
|
6281
|
+
created_at: string;
|
|
6282
|
+
registered: boolean;
|
|
6283
|
+
}, {
|
|
6284
|
+
session_id: string;
|
|
6285
|
+
created_at: string;
|
|
6286
|
+
registered: boolean;
|
|
6287
|
+
}>;
|
|
6288
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
6289
|
+
requestId: z.ZodString;
|
|
6290
|
+
timestamp: z.ZodString;
|
|
6291
|
+
}, "strip", z.ZodTypeAny, {
|
|
6292
|
+
requestId: string;
|
|
6293
|
+
timestamp: string;
|
|
6294
|
+
}, {
|
|
6295
|
+
requestId: string;
|
|
6296
|
+
timestamp: string;
|
|
6297
|
+
}>>;
|
|
6298
|
+
}, "strip", z.ZodTypeAny, {
|
|
6299
|
+
success: boolean;
|
|
6300
|
+
data: {
|
|
6301
|
+
session_id: string;
|
|
6302
|
+
created_at: string;
|
|
6303
|
+
registered: boolean;
|
|
6304
|
+
};
|
|
6305
|
+
metadata?: {
|
|
6306
|
+
requestId: string;
|
|
6131
6307
|
timestamp: string;
|
|
6308
|
+
} | undefined;
|
|
6309
|
+
}, {
|
|
6310
|
+
success: boolean;
|
|
6311
|
+
data: {
|
|
6312
|
+
session_id: string;
|
|
6313
|
+
created_at: string;
|
|
6314
|
+
registered: boolean;
|
|
6315
|
+
};
|
|
6316
|
+
metadata?: {
|
|
6132
6317
|
requestId: string;
|
|
6318
|
+
timestamp: string;
|
|
6133
6319
|
} | undefined;
|
|
6134
6320
|
}>;
|