@kya-os/contracts 1.6.2-canary.0 → 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 +287 -122
- package/dist/agentshield-api/schemas.js +52 -5
- package/dist/agentshield-api/types.d.ts +69 -4
- package/dist/audit/index.d.ts +193 -0
- package/dist/audit/index.js +100 -0
- package/dist/config/identity.d.ts +214 -2
- package/dist/config/identity.js +29 -0
- package/dist/config/index.d.ts +2 -1
- package/dist/config/tool-context.d.ts +34 -0
- package/dist/config/tool-context.js +13 -0
- package/dist/consent/schemas.d.ts +99 -4
- package/dist/consent/schemas.js +39 -1
- package/dist/dashboard-config/schemas.d.ts +1430 -174
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/tool-protection/index.d.ts +478 -2
- package/dist/tool-protection/index.js +89 -2
- package/dist/verifier/index.d.ts +1 -0
- package/dist/verifier/index.js +18 -0
- package/package.json +63 -120
|
@@ -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,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
|
-
timestamp: string;
|
|
50
|
-
requestId: string;
|
|
51
|
-
}, {
|
|
52
|
-
timestamp: string;
|
|
53
49
|
requestId: 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
50
|
timestamp: string;
|
|
63
|
-
requestId: string;
|
|
64
51
|
}, {
|
|
65
|
-
timestamp: string;
|
|
66
|
-
requestId: 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
|
-
timestamp: string;
|
|
76
52
|
requestId: string;
|
|
77
|
-
}, {
|
|
78
53
|
timestamp: string;
|
|
79
|
-
requestId: 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
|
-
timestamp: string;
|
|
89
62
|
requestId: string;
|
|
90
|
-
}, {
|
|
91
63
|
timestamp: string;
|
|
64
|
+
}, {
|
|
92
65
|
requestId: string;
|
|
66
|
+
timestamp: 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;
|
|
92
|
+
ts: number;
|
|
118
93
|
nonce: string;
|
|
119
94
|
audience: string;
|
|
120
95
|
sessionId: string;
|
|
121
|
-
ts: number;
|
|
122
96
|
requestHash: string;
|
|
123
97
|
responseHash: string;
|
|
124
|
-
clientDid?: string | undefined;
|
|
125
98
|
scopeId?: string | undefined;
|
|
126
99
|
delegationRef?: string | undefined;
|
|
100
|
+
clientDid?: string | undefined;
|
|
127
101
|
}, {
|
|
128
102
|
did: string;
|
|
129
103
|
kid: string;
|
|
104
|
+
ts: number;
|
|
130
105
|
nonce: string;
|
|
131
106
|
audience: string;
|
|
132
107
|
sessionId: string;
|
|
133
|
-
ts: number;
|
|
134
108
|
requestHash: string;
|
|
135
109
|
responseHash: string;
|
|
136
|
-
clientDid?: string | undefined;
|
|
137
110
|
scopeId?: string | undefined;
|
|
138
111
|
delegationRef?: string | undefined;
|
|
112
|
+
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;
|
|
119
|
+
ts: number;
|
|
145
120
|
nonce: string;
|
|
146
121
|
audience: string;
|
|
147
122
|
sessionId: string;
|
|
148
|
-
ts: number;
|
|
149
123
|
requestHash: string;
|
|
150
124
|
responseHash: string;
|
|
151
|
-
clientDid?: string | undefined;
|
|
152
125
|
scopeId?: string | undefined;
|
|
153
126
|
delegationRef?: string | undefined;
|
|
127
|
+
clientDid?: string | undefined;
|
|
154
128
|
};
|
|
155
129
|
}, {
|
|
156
130
|
jws: string;
|
|
157
131
|
meta: {
|
|
158
132
|
did: string;
|
|
159
133
|
kid: string;
|
|
134
|
+
ts: number;
|
|
160
135
|
nonce: string;
|
|
161
136
|
audience: string;
|
|
162
137
|
sessionId: string;
|
|
163
|
-
ts: number;
|
|
164
138
|
requestHash: string;
|
|
165
139
|
responseHash: string;
|
|
166
|
-
clientDid?: string | undefined;
|
|
167
140
|
scopeId?: string | undefined;
|
|
168
141
|
delegationRef?: string | undefined;
|
|
142
|
+
clientDid?: string | undefined;
|
|
169
143
|
};
|
|
170
144
|
}>, "many">;
|
|
171
145
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -211,33 +185,33 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
211
185
|
identifier: string;
|
|
212
186
|
}>>;
|
|
213
187
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
timestamp: number;
|
|
215
|
-
agentDid: string;
|
|
216
188
|
sessionId: string;
|
|
217
189
|
scopes: string[];
|
|
190
|
+
timestamp: number;
|
|
218
191
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
192
|
+
agentDid: string;
|
|
219
193
|
targetTools: string[];
|
|
220
194
|
projectId: string;
|
|
221
195
|
userDid?: string | undefined;
|
|
222
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
223
196
|
delegationId?: string | undefined;
|
|
224
197
|
termsAccepted?: boolean | undefined;
|
|
198
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
225
199
|
oauthIdentity?: {
|
|
226
200
|
provider: string;
|
|
227
201
|
identifier: string;
|
|
228
202
|
} | undefined;
|
|
229
203
|
}, {
|
|
230
|
-
timestamp: number;
|
|
231
|
-
agentDid: string;
|
|
232
204
|
sessionId: string;
|
|
233
205
|
scopes: string[];
|
|
206
|
+
timestamp: number;
|
|
234
207
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
208
|
+
agentDid: string;
|
|
235
209
|
targetTools: string[];
|
|
236
210
|
projectId: string;
|
|
237
211
|
userDid?: string | undefined;
|
|
238
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
239
212
|
delegationId?: string | undefined;
|
|
240
213
|
termsAccepted?: boolean | undefined;
|
|
214
|
+
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;
|
|
255
|
-
mcpServerUrl?: string | undefined;
|
|
256
229
|
consentEvents?: {
|
|
257
|
-
timestamp: number;
|
|
258
|
-
agentDid: string;
|
|
259
230
|
sessionId: string;
|
|
260
231
|
scopes: string[];
|
|
232
|
+
timestamp: number;
|
|
261
233
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
234
|
+
agentDid: string;
|
|
262
235
|
targetTools: string[];
|
|
263
236
|
projectId: string;
|
|
264
237
|
userDid?: string | undefined;
|
|
265
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
266
238
|
delegationId?: string | undefined;
|
|
267
239
|
termsAccepted?: boolean | undefined;
|
|
240
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
268
241
|
oauthIdentity?: {
|
|
269
242
|
provider: string;
|
|
270
243
|
identifier: string;
|
|
271
244
|
} | undefined;
|
|
272
245
|
}[] | undefined;
|
|
246
|
+
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;
|
|
281
|
-
mcpServerUrl?: string | undefined;
|
|
282
255
|
consentEvents?: {
|
|
283
|
-
timestamp: number;
|
|
284
|
-
agentDid: string;
|
|
285
256
|
sessionId: string;
|
|
286
257
|
scopes: string[];
|
|
258
|
+
timestamp: number;
|
|
287
259
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
260
|
+
agentDid: string;
|
|
288
261
|
targetTools: string[];
|
|
289
262
|
projectId: string;
|
|
290
263
|
userDid?: string | undefined;
|
|
291
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
292
264
|
delegationId?: string | undefined;
|
|
293
265
|
termsAccepted?: boolean | undefined;
|
|
266
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
294
267
|
oauthIdentity?: {
|
|
295
268
|
provider: string;
|
|
296
269
|
identifier: string;
|
|
297
270
|
} | undefined;
|
|
298
271
|
}[] | undefined;
|
|
272
|
+
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;
|
|
281
|
+
ts: number;
|
|
307
282
|
nonce: string;
|
|
308
283
|
audience: string;
|
|
309
284
|
sessionId: string;
|
|
310
|
-
ts: number;
|
|
311
285
|
requestHash: string;
|
|
312
286
|
responseHash: string;
|
|
313
|
-
clientDid?: string | undefined;
|
|
314
287
|
scopeId?: string | undefined;
|
|
315
288
|
delegationRef?: string | undefined;
|
|
289
|
+
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;
|
|
327
|
-
mcpServerUrl?: string | undefined;
|
|
328
301
|
consentEvents?: {
|
|
329
|
-
timestamp: number;
|
|
330
|
-
agentDid: string;
|
|
331
302
|
sessionId: string;
|
|
332
303
|
scopes: string[];
|
|
304
|
+
timestamp: number;
|
|
333
305
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
306
|
+
agentDid: string;
|
|
334
307
|
targetTools: string[];
|
|
335
308
|
projectId: string;
|
|
336
309
|
userDid?: string | undefined;
|
|
337
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
338
310
|
delegationId?: string | undefined;
|
|
339
311
|
termsAccepted?: boolean | undefined;
|
|
312
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
340
313
|
oauthIdentity?: {
|
|
341
314
|
provider: string;
|
|
342
315
|
identifier: string;
|
|
343
316
|
} | undefined;
|
|
344
317
|
}[] | undefined;
|
|
318
|
+
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;
|
|
327
|
+
ts: number;
|
|
353
328
|
nonce: string;
|
|
354
329
|
audience: string;
|
|
355
330
|
sessionId: string;
|
|
356
|
-
ts: number;
|
|
357
331
|
requestHash: string;
|
|
358
332
|
responseHash: string;
|
|
359
|
-
clientDid?: string | undefined;
|
|
360
333
|
scopeId?: string | undefined;
|
|
361
334
|
delegationRef?: string | undefined;
|
|
335
|
+
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;
|
|
373
|
-
mcpServerUrl?: string | undefined;
|
|
374
347
|
consentEvents?: {
|
|
375
|
-
timestamp: number;
|
|
376
|
-
agentDid: string;
|
|
377
348
|
sessionId: string;
|
|
378
349
|
scopes: string[];
|
|
350
|
+
timestamp: number;
|
|
379
351
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
352
|
+
agentDid: string;
|
|
380
353
|
targetTools: string[];
|
|
381
354
|
projectId: string;
|
|
382
355
|
userDid?: string | undefined;
|
|
383
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
384
356
|
delegationId?: string | undefined;
|
|
385
357
|
termsAccepted?: boolean | undefined;
|
|
358
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
386
359
|
oauthIdentity?: {
|
|
387
360
|
provider: string;
|
|
388
361
|
identifier: string;
|
|
389
362
|
} | undefined;
|
|
390
363
|
}[] | undefined;
|
|
364
|
+
mcpServerUrl?: string | undefined;
|
|
391
365
|
} | undefined;
|
|
392
366
|
}>;
|
|
393
367
|
/**
|
|
@@ -397,7 +371,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
397
371
|
success: z.ZodBoolean;
|
|
398
372
|
accepted: z.ZodNumber;
|
|
399
373
|
rejected: z.ZodNumber;
|
|
400
|
-
outcomes: z.ZodRecord<z.ZodString, z.ZodNumber
|
|
374
|
+
outcomes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
401
375
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
376
|
proof_index: z.ZodNumber;
|
|
403
377
|
error: z.ZodObject<{
|
|
@@ -432,7 +406,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
432
406
|
success: boolean;
|
|
433
407
|
accepted: number;
|
|
434
408
|
rejected: number;
|
|
435
|
-
outcomes
|
|
409
|
+
outcomes?: Record<string, number> | undefined;
|
|
436
410
|
errors?: {
|
|
437
411
|
error: {
|
|
438
412
|
code: string;
|
|
@@ -445,7 +419,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
445
419
|
success: boolean;
|
|
446
420
|
accepted: number;
|
|
447
421
|
rejected: number;
|
|
448
|
-
outcomes
|
|
422
|
+
outcomes?: Record<string, number> | undefined;
|
|
449
423
|
errors?: {
|
|
450
424
|
error: {
|
|
451
425
|
code: string;
|
|
@@ -487,8 +461,8 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
487
461
|
* Delegation verification request schema
|
|
488
462
|
*/
|
|
489
463
|
export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
490
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
491
464
|
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
465
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
492
466
|
agent_did: z.ZodString;
|
|
493
467
|
credential_jwt: z.ZodOptional<z.ZodString>;
|
|
494
468
|
delegation_token: z.ZodOptional<z.ZodString>;
|
|
@@ -507,8 +481,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
507
481
|
}>>;
|
|
508
482
|
}, "strip", z.ZodTypeAny, {
|
|
509
483
|
agent_did: string;
|
|
510
|
-
timestamp?: number | undefined;
|
|
511
484
|
scopes?: string[] | undefined;
|
|
485
|
+
timestamp?: number | undefined;
|
|
512
486
|
credential_jwt?: string | undefined;
|
|
513
487
|
delegation_token?: string | undefined;
|
|
514
488
|
client_info?: {
|
|
@@ -518,8 +492,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
518
492
|
} | undefined;
|
|
519
493
|
}, {
|
|
520
494
|
agent_did: string;
|
|
521
|
-
timestamp?: number | undefined;
|
|
522
495
|
scopes?: string[] | undefined;
|
|
496
|
+
timestamp?: number | undefined;
|
|
523
497
|
credential_jwt?: string | undefined;
|
|
524
498
|
delegation_token?: string | undefined;
|
|
525
499
|
client_info?: {
|
|
@@ -1812,7 +1786,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1812
1786
|
details?: Record<string, unknown> | undefined;
|
|
1813
1787
|
} | undefined;
|
|
1814
1788
|
delegation_id?: string | undefined;
|
|
1815
|
-
reason?: string | undefined;
|
|
1816
1789
|
delegation?: z.objectOutputType<{
|
|
1817
1790
|
id: z.ZodString;
|
|
1818
1791
|
issuerDid: z.ZodString;
|
|
@@ -2233,6 +2206,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2233
2206
|
user_id?: string | undefined;
|
|
2234
2207
|
user_identifier?: string | undefined;
|
|
2235
2208
|
} | undefined;
|
|
2209
|
+
reason?: string | undefined;
|
|
2236
2210
|
}, {
|
|
2237
2211
|
valid: boolean;
|
|
2238
2212
|
error?: {
|
|
@@ -2241,7 +2215,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2241
2215
|
details?: Record<string, unknown> | undefined;
|
|
2242
2216
|
} | undefined;
|
|
2243
2217
|
delegation_id?: string | undefined;
|
|
2244
|
-
reason?: string | undefined;
|
|
2245
2218
|
delegation?: z.objectInputType<{
|
|
2246
2219
|
id: z.ZodString;
|
|
2247
2220
|
issuerDid: z.ZodString;
|
|
@@ -2662,6 +2635,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2662
2635
|
user_id?: string | undefined;
|
|
2663
2636
|
user_identifier?: string | undefined;
|
|
2664
2637
|
} | undefined;
|
|
2638
|
+
reason?: string | undefined;
|
|
2665
2639
|
}>;
|
|
2666
2640
|
/**
|
|
2667
2641
|
* Wrapped verification response schema
|
|
@@ -3949,7 +3923,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3949
3923
|
details?: Record<string, unknown> | undefined;
|
|
3950
3924
|
} | undefined;
|
|
3951
3925
|
delegation_id?: string | undefined;
|
|
3952
|
-
reason?: string | undefined;
|
|
3953
3926
|
delegation?: z.objectOutputType<{
|
|
3954
3927
|
id: z.ZodString;
|
|
3955
3928
|
issuerDid: z.ZodString;
|
|
@@ -4370,6 +4343,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4370
4343
|
user_id?: string | undefined;
|
|
4371
4344
|
user_identifier?: string | undefined;
|
|
4372
4345
|
} | undefined;
|
|
4346
|
+
reason?: string | undefined;
|
|
4373
4347
|
}, {
|
|
4374
4348
|
valid: boolean;
|
|
4375
4349
|
error?: {
|
|
@@ -4378,7 +4352,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4378
4352
|
details?: Record<string, unknown> | undefined;
|
|
4379
4353
|
} | undefined;
|
|
4380
4354
|
delegation_id?: string | undefined;
|
|
4381
|
-
reason?: string | undefined;
|
|
4382
4355
|
delegation?: z.objectInputType<{
|
|
4383
4356
|
id: z.ZodString;
|
|
4384
4357
|
issuerDid: z.ZodString;
|
|
@@ -4799,16 +4772,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4799
4772
|
user_id?: string | undefined;
|
|
4800
4773
|
user_identifier?: string | undefined;
|
|
4801
4774
|
} | undefined;
|
|
4775
|
+
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
|
-
timestamp: string;
|
|
4808
4781
|
requestId: string;
|
|
4809
|
-
}, {
|
|
4810
4782
|
timestamp: string;
|
|
4783
|
+
}, {
|
|
4811
4784
|
requestId: string;
|
|
4785
|
+
timestamp: string;
|
|
4812
4786
|
}>>;
|
|
4813
4787
|
}, "strip", z.ZodTypeAny, {
|
|
4814
4788
|
success: boolean;
|
|
@@ -4820,7 +4794,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4820
4794
|
details?: Record<string, unknown> | undefined;
|
|
4821
4795
|
} | undefined;
|
|
4822
4796
|
delegation_id?: string | undefined;
|
|
4823
|
-
reason?: string | undefined;
|
|
4824
4797
|
delegation?: z.objectOutputType<{
|
|
4825
4798
|
id: z.ZodString;
|
|
4826
4799
|
issuerDid: z.ZodString;
|
|
@@ -5241,10 +5214,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5241
5214
|
user_id?: string | undefined;
|
|
5242
5215
|
user_identifier?: string | undefined;
|
|
5243
5216
|
} | undefined;
|
|
5217
|
+
reason?: string | undefined;
|
|
5244
5218
|
};
|
|
5245
5219
|
metadata?: {
|
|
5246
|
-
timestamp: string;
|
|
5247
5220
|
requestId: string;
|
|
5221
|
+
timestamp: string;
|
|
5248
5222
|
} | undefined;
|
|
5249
5223
|
}, {
|
|
5250
5224
|
success: boolean;
|
|
@@ -5256,7 +5230,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5256
5230
|
details?: Record<string, unknown> | undefined;
|
|
5257
5231
|
} | undefined;
|
|
5258
5232
|
delegation_id?: string | undefined;
|
|
5259
|
-
reason?: string | undefined;
|
|
5260
5233
|
delegation?: z.objectInputType<{
|
|
5261
5234
|
id: z.ZodString;
|
|
5262
5235
|
issuerDid: z.ZodString;
|
|
@@ -5677,10 +5650,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5677
5650
|
user_id?: string | undefined;
|
|
5678
5651
|
user_identifier?: string | undefined;
|
|
5679
5652
|
} | undefined;
|
|
5653
|
+
reason?: string | undefined;
|
|
5680
5654
|
};
|
|
5681
5655
|
metadata?: {
|
|
5682
|
-
timestamp: string;
|
|
5683
5656
|
requestId: string;
|
|
5657
|
+
timestamp: 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
|
-
timestamp: string;
|
|
5857
5830
|
requestId: string;
|
|
5858
|
-
}, {
|
|
5859
5831
|
timestamp: string;
|
|
5832
|
+
}, {
|
|
5860
5833
|
requestId: string;
|
|
5834
|
+
timestamp: 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
|
-
timestamp: string;
|
|
5883
5856
|
requestId: string;
|
|
5857
|
+
timestamp: string;
|
|
5884
5858
|
} | undefined;
|
|
5885
5859
|
}, {
|
|
5886
5860
|
success: boolean;
|
|
@@ -5902,15 +5876,15 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5902
5876
|
} | undefined;
|
|
5903
5877
|
};
|
|
5904
5878
|
metadata?: {
|
|
5905
|
-
timestamp: string;
|
|
5906
5879
|
requestId: string;
|
|
5880
|
+
timestamp: string;
|
|
5907
5881
|
} | undefined;
|
|
5908
5882
|
}>;
|
|
5909
5883
|
/**
|
|
5910
5884
|
* Create delegation request schema
|
|
5911
5885
|
*
|
|
5912
5886
|
* Note: AgentShield API accepts a simplified format, not the full DelegationRecord.
|
|
5913
|
-
* The API accepts: agent_did, scopes, expires_in_days, expires_at, session_id, project_id, custom_fields
|
|
5887
|
+
* The API accepts: agent_did, scopes, expires_in_days, expires_at, session_id, project_id, user_identifier, custom_fields
|
|
5914
5888
|
*
|
|
5915
5889
|
* IMPORTANT: expires_in_days and expires_at are mutually exclusive - use one or the other, not both.
|
|
5916
5890
|
*/
|
|
@@ -5921,6 +5895,7 @@ export declare const createDelegationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5921
5895
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
5922
5896
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5923
5897
|
project_id: z.ZodOptional<z.ZodString>;
|
|
5898
|
+
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5924
5899
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5925
5900
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5926
5901
|
agent_did: z.ZodString;
|
|
@@ -5929,6 +5904,7 @@ export declare const createDelegationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5929
5904
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
5930
5905
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5931
5906
|
project_id: z.ZodOptional<z.ZodString>;
|
|
5907
|
+
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5932
5908
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5933
5909
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5934
5910
|
agent_did: z.ZodString;
|
|
@@ -5937,6 +5913,7 @@ export declare const createDelegationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5937
5913
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
5938
5914
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5939
5915
|
project_id: z.ZodOptional<z.ZodString>;
|
|
5916
|
+
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5940
5917
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5941
5918
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
5942
5919
|
agent_did: z.ZodString;
|
|
@@ -5945,6 +5922,7 @@ export declare const createDelegationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5945
5922
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
5946
5923
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5947
5924
|
project_id: z.ZodOptional<z.ZodString>;
|
|
5925
|
+
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5948
5926
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5949
5927
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5950
5928
|
agent_did: z.ZodString;
|
|
@@ -5953,6 +5931,7 @@ export declare const createDelegationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5953
5931
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
5954
5932
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5955
5933
|
project_id: z.ZodOptional<z.ZodString>;
|
|
5934
|
+
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5956
5935
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5957
5936
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5958
5937
|
/**
|
|
@@ -5970,30 +5949,30 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5970
5949
|
user_id: z.ZodOptional<z.ZodString>;
|
|
5971
5950
|
user_identifier: z.ZodOptional<z.ZodString>;
|
|
5972
5951
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5973
|
-
status: z.
|
|
5952
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
5974
5953
|
issued_at: z.ZodString;
|
|
5975
|
-
expires_at: z.ZodOptional<z.ZodString
|
|
5954
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5976
5955
|
created_at: z.ZodString;
|
|
5977
5956
|
}, "strip", z.ZodTypeAny, {
|
|
5978
|
-
status: "active";
|
|
5979
|
-
delegation_id: string;
|
|
5957
|
+
status: "active" | "revoked" | "expired";
|
|
5980
5958
|
scopes: string[];
|
|
5959
|
+
delegation_id: string;
|
|
5981
5960
|
agent_did: string;
|
|
5982
5961
|
issued_at: string;
|
|
5983
5962
|
created_at: string;
|
|
5984
5963
|
user_id?: string | undefined;
|
|
5985
5964
|
user_identifier?: string | undefined;
|
|
5986
|
-
expires_at?: string | undefined;
|
|
5965
|
+
expires_at?: string | null | undefined;
|
|
5987
5966
|
}, {
|
|
5988
|
-
status: "active";
|
|
5989
|
-
delegation_id: string;
|
|
5967
|
+
status: "active" | "revoked" | "expired";
|
|
5990
5968
|
scopes: string[];
|
|
5969
|
+
delegation_id: string;
|
|
5991
5970
|
agent_did: string;
|
|
5992
5971
|
issued_at: string;
|
|
5993
5972
|
created_at: string;
|
|
5994
5973
|
user_id?: string | undefined;
|
|
5995
5974
|
user_identifier?: string | undefined;
|
|
5996
|
-
expires_at?: string | undefined;
|
|
5975
|
+
expires_at?: string | null | undefined;
|
|
5997
5976
|
}>;
|
|
5998
5977
|
/**
|
|
5999
5978
|
* Wrapped creation response schema
|
|
@@ -6006,74 +5985,74 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6006
5985
|
user_id: z.ZodOptional<z.ZodString>;
|
|
6007
5986
|
user_identifier: z.ZodOptional<z.ZodString>;
|
|
6008
5987
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6009
|
-
status: z.
|
|
5988
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
6010
5989
|
issued_at: z.ZodString;
|
|
6011
|
-
expires_at: z.ZodOptional<z.ZodString
|
|
5990
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6012
5991
|
created_at: z.ZodString;
|
|
6013
5992
|
}, "strip", z.ZodTypeAny, {
|
|
6014
|
-
status: "active";
|
|
6015
|
-
delegation_id: string;
|
|
5993
|
+
status: "active" | "revoked" | "expired";
|
|
6016
5994
|
scopes: string[];
|
|
5995
|
+
delegation_id: string;
|
|
6017
5996
|
agent_did: string;
|
|
6018
5997
|
issued_at: string;
|
|
6019
5998
|
created_at: string;
|
|
6020
5999
|
user_id?: string | undefined;
|
|
6021
6000
|
user_identifier?: string | undefined;
|
|
6022
|
-
expires_at?: string | undefined;
|
|
6001
|
+
expires_at?: string | null | undefined;
|
|
6023
6002
|
}, {
|
|
6024
|
-
status: "active";
|
|
6025
|
-
delegation_id: string;
|
|
6003
|
+
status: "active" | "revoked" | "expired";
|
|
6026
6004
|
scopes: string[];
|
|
6005
|
+
delegation_id: string;
|
|
6027
6006
|
agent_did: string;
|
|
6028
6007
|
issued_at: string;
|
|
6029
6008
|
created_at: string;
|
|
6030
6009
|
user_id?: string | undefined;
|
|
6031
6010
|
user_identifier?: string | undefined;
|
|
6032
|
-
expires_at?: string | undefined;
|
|
6011
|
+
expires_at?: string | null | undefined;
|
|
6033
6012
|
}>;
|
|
6034
6013
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6035
6014
|
requestId: z.ZodString;
|
|
6036
6015
|
timestamp: z.ZodString;
|
|
6037
6016
|
}, "strip", z.ZodTypeAny, {
|
|
6038
|
-
timestamp: string;
|
|
6039
6017
|
requestId: string;
|
|
6040
|
-
}, {
|
|
6041
6018
|
timestamp: string;
|
|
6019
|
+
}, {
|
|
6042
6020
|
requestId: string;
|
|
6021
|
+
timestamp: string;
|
|
6043
6022
|
}>>;
|
|
6044
6023
|
}, "strip", z.ZodTypeAny, {
|
|
6045
6024
|
success: boolean;
|
|
6046
6025
|
data: {
|
|
6047
|
-
status: "active";
|
|
6048
|
-
delegation_id: string;
|
|
6026
|
+
status: "active" | "revoked" | "expired";
|
|
6049
6027
|
scopes: string[];
|
|
6028
|
+
delegation_id: string;
|
|
6050
6029
|
agent_did: string;
|
|
6051
6030
|
issued_at: string;
|
|
6052
6031
|
created_at: string;
|
|
6053
6032
|
user_id?: string | undefined;
|
|
6054
6033
|
user_identifier?: string | undefined;
|
|
6055
|
-
expires_at?: string | undefined;
|
|
6034
|
+
expires_at?: string | null | undefined;
|
|
6056
6035
|
};
|
|
6057
6036
|
metadata?: {
|
|
6058
|
-
timestamp: string;
|
|
6059
6037
|
requestId: string;
|
|
6038
|
+
timestamp: string;
|
|
6060
6039
|
} | undefined;
|
|
6061
6040
|
}, {
|
|
6062
6041
|
success: boolean;
|
|
6063
6042
|
data: {
|
|
6064
|
-
status: "active";
|
|
6065
|
-
delegation_id: string;
|
|
6043
|
+
status: "active" | "revoked" | "expired";
|
|
6066
6044
|
scopes: string[];
|
|
6045
|
+
delegation_id: string;
|
|
6067
6046
|
agent_did: string;
|
|
6068
6047
|
issued_at: string;
|
|
6069
6048
|
created_at: string;
|
|
6070
6049
|
user_id?: string | undefined;
|
|
6071
6050
|
user_identifier?: string | undefined;
|
|
6072
|
-
expires_at?: string | undefined;
|
|
6051
|
+
expires_at?: string | null | undefined;
|
|
6073
6052
|
};
|
|
6074
6053
|
metadata?: {
|
|
6075
|
-
timestamp: string;
|
|
6076
6054
|
requestId: string;
|
|
6055
|
+
timestamp: string;
|
|
6077
6056
|
} | undefined;
|
|
6078
6057
|
}>;
|
|
6079
6058
|
/**
|
|
@@ -6094,12 +6073,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6094
6073
|
revoked: z.ZodBoolean;
|
|
6095
6074
|
revoked_at: z.ZodNumber;
|
|
6096
6075
|
}, "strip", z.ZodTypeAny, {
|
|
6097
|
-
delegation_id: string;
|
|
6098
6076
|
revoked: boolean;
|
|
6077
|
+
delegation_id: string;
|
|
6099
6078
|
revoked_at: number;
|
|
6100
6079
|
}, {
|
|
6101
|
-
delegation_id: string;
|
|
6102
6080
|
revoked: boolean;
|
|
6081
|
+
delegation_id: string;
|
|
6103
6082
|
revoked_at: number;
|
|
6104
6083
|
}>;
|
|
6105
6084
|
/**
|
|
@@ -6112,44 +6091,230 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6112
6091
|
revoked: z.ZodBoolean;
|
|
6113
6092
|
revoked_at: z.ZodNumber;
|
|
6114
6093
|
}, "strip", z.ZodTypeAny, {
|
|
6115
|
-
delegation_id: string;
|
|
6116
6094
|
revoked: boolean;
|
|
6095
|
+
delegation_id: string;
|
|
6117
6096
|
revoked_at: number;
|
|
6118
6097
|
}, {
|
|
6119
|
-
delegation_id: string;
|
|
6120
6098
|
revoked: boolean;
|
|
6099
|
+
delegation_id: string;
|
|
6121
6100
|
revoked_at: number;
|
|
6122
6101
|
}>;
|
|
6123
6102
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6124
6103
|
requestId: z.ZodString;
|
|
6125
6104
|
timestamp: z.ZodString;
|
|
6126
6105
|
}, "strip", z.ZodTypeAny, {
|
|
6127
|
-
timestamp: string;
|
|
6128
6106
|
requestId: string;
|
|
6129
|
-
}, {
|
|
6130
6107
|
timestamp: string;
|
|
6108
|
+
}, {
|
|
6131
6109
|
requestId: string;
|
|
6110
|
+
timestamp: string;
|
|
6132
6111
|
}>>;
|
|
6133
6112
|
}, "strip", z.ZodTypeAny, {
|
|
6134
6113
|
success: boolean;
|
|
6135
6114
|
data: {
|
|
6136
|
-
delegation_id: string;
|
|
6137
6115
|
revoked: boolean;
|
|
6116
|
+
delegation_id: string;
|
|
6138
6117
|
revoked_at: number;
|
|
6139
6118
|
};
|
|
6140
6119
|
metadata?: {
|
|
6141
|
-
timestamp: string;
|
|
6142
6120
|
requestId: string;
|
|
6121
|
+
timestamp: string;
|
|
6143
6122
|
} | undefined;
|
|
6144
6123
|
}, {
|
|
6145
6124
|
success: boolean;
|
|
6146
6125
|
data: {
|
|
6147
|
-
delegation_id: string;
|
|
6148
6126
|
revoked: boolean;
|
|
6127
|
+
delegation_id: string;
|
|
6149
6128
|
revoked_at: number;
|
|
6150
6129
|
};
|
|
6151
6130
|
metadata?: {
|
|
6131
|
+
requestId: string;
|
|
6152
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
|
+
}, {
|
|
6153
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;
|
|
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?: {
|
|
6317
|
+
requestId: string;
|
|
6318
|
+
timestamp: string;
|
|
6154
6319
|
} | undefined;
|
|
6155
6320
|
}>;
|