@kya-os/contracts 1.6.3 → 1.6.4

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.
Files changed (65) hide show
  1. package/dist/agentshield-api/endpoints.d.ts.map +1 -0
  2. package/dist/agentshield-api/endpoints.js.map +1 -0
  3. package/dist/agentshield-api/index.d.ts.map +1 -0
  4. package/dist/agentshield-api/index.js.map +1 -0
  5. package/dist/agentshield-api/schemas.d.ts +124 -124
  6. package/dist/agentshield-api/schemas.d.ts.map +1 -0
  7. package/dist/agentshield-api/schemas.js.map +1 -0
  8. package/dist/agentshield-api/types.d.ts.map +1 -0
  9. package/dist/agentshield-api/types.js.map +1 -0
  10. package/dist/audit/index.d.ts +24 -24
  11. package/dist/consent/schemas.d.ts +46 -46
  12. package/dist/dashboard-config/index.d.ts +2 -2
  13. package/dist/dashboard-config/index.js +4 -1
  14. package/dist/dashboard-config/schemas.d.ts +6595 -3160
  15. package/dist/dashboard-config/schemas.js +23 -1
  16. package/dist/dashboard-config/types.d.ts +28 -1
  17. package/dist/delegation/constraints.d.ts.map +1 -0
  18. package/dist/delegation/constraints.js.map +1 -0
  19. package/dist/delegation/index.d.ts.map +1 -0
  20. package/dist/delegation/index.js.map +1 -0
  21. package/dist/delegation/schemas.d.ts +34 -34
  22. package/dist/delegation/schemas.d.ts.map +1 -0
  23. package/dist/delegation/schemas.js.map +1 -0
  24. package/dist/did/index.d.ts.map +1 -0
  25. package/dist/did/index.js.map +1 -0
  26. package/dist/did/resolve-contract.d.ts.map +1 -0
  27. package/dist/did/resolve-contract.js.map +1 -0
  28. package/dist/did/schemas.d.ts.map +1 -0
  29. package/dist/did/schemas.js.map +1 -0
  30. package/dist/did/types.d.ts.map +1 -0
  31. package/dist/did/types.js.map +1 -0
  32. package/dist/env/constants.d.ts.map +1 -0
  33. package/dist/env/constants.js.map +1 -0
  34. package/dist/env/index.d.ts.map +1 -0
  35. package/dist/env/index.js.map +1 -0
  36. package/dist/handshake.d.ts +18 -18
  37. package/dist/identity/schemas.d.ts +10 -10
  38. package/dist/proof/index.d.ts.map +1 -0
  39. package/dist/proof/index.js.map +1 -0
  40. package/dist/proof/proof-record.d.ts +12 -12
  41. package/dist/proof/proof-record.d.ts.map +1 -0
  42. package/dist/proof/proof-record.js.map +1 -0
  43. package/dist/proof/signing-spec.d.ts +4 -4
  44. package/dist/proof/signing-spec.d.ts.map +1 -0
  45. package/dist/proof/signing-spec.js.map +1 -0
  46. package/dist/proof.d.ts +24 -24
  47. package/dist/runtime/errors.d.ts.map +1 -0
  48. package/dist/runtime/errors.js.map +1 -0
  49. package/dist/runtime/headers.d.ts.map +1 -0
  50. package/dist/runtime/headers.js.map +1 -0
  51. package/dist/runtime/index.d.ts.map +1 -0
  52. package/dist/runtime/index.js.map +1 -0
  53. package/dist/tlkrc/index.d.ts.map +1 -0
  54. package/dist/tlkrc/index.js.map +1 -0
  55. package/dist/tlkrc/rotation.d.ts.map +1 -0
  56. package/dist/tlkrc/rotation.js.map +1 -0
  57. package/dist/tool-protection/index.d.ts +16 -16
  58. package/dist/vc/index.d.ts.map +1 -0
  59. package/dist/vc/index.js.map +1 -0
  60. package/dist/vc/schemas.d.ts.map +1 -0
  61. package/dist/vc/schemas.js.map +1 -0
  62. package/dist/vc/statuslist.d.ts.map +1 -0
  63. package/dist/vc/statuslist.js.map +1 -0
  64. package/dist/verifier.d.ts +9 -9
  65. package/package.json +5 -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,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
- requestId: string;
50
49
  timestamp: string;
51
- }, {
52
50
  requestId: string;
51
+ }, {
53
52
  timestamp: string;
53
+ requestId: 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
- requestId: string;
63
62
  timestamp: string;
64
- }, {
65
63
  requestId: string;
64
+ }, {
66
65
  timestamp: string;
66
+ requestId: 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
+ sessionId: string;
93
93
  nonce: string;
94
94
  audience: string;
95
- sessionId: string;
95
+ ts: number;
96
96
  requestHash: string;
97
97
  responseHash: string;
98
+ clientDid?: string | undefined;
98
99
  scopeId?: string | undefined;
99
100
  delegationRef?: string | undefined;
100
- clientDid?: string | undefined;
101
101
  }, {
102
102
  did: string;
103
103
  kid: string;
104
- ts: number;
104
+ sessionId: string;
105
105
  nonce: string;
106
106
  audience: string;
107
- sessionId: string;
107
+ ts: number;
108
108
  requestHash: string;
109
109
  responseHash: string;
110
+ clientDid?: string | undefined;
110
111
  scopeId?: string | undefined;
111
112
  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
+ sessionId: string;
120
120
  nonce: string;
121
121
  audience: string;
122
- sessionId: string;
122
+ ts: number;
123
123
  requestHash: string;
124
124
  responseHash: string;
125
+ clientDid?: string | undefined;
125
126
  scopeId?: string | undefined;
126
127
  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
+ sessionId: string;
135
135
  nonce: string;
136
136
  audience: string;
137
- sessionId: string;
137
+ ts: number;
138
138
  requestHash: string;
139
139
  responseHash: string;
140
+ clientDid?: string | undefined;
140
141
  scopeId?: string | undefined;
141
142
  delegationRef?: string | undefined;
142
- clientDid?: string | undefined;
143
143
  };
144
144
  }>, "many">;
145
145
  context: z.ZodOptional<z.ZodObject<{
@@ -150,14 +150,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
150
150
  scopeId: z.ZodString;
151
151
  userIdentifier: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- scopeId: string;
154
153
  tool: string;
154
+ scopeId: string;
155
155
  args: Record<string, unknown>;
156
156
  result?: unknown;
157
157
  userIdentifier?: string | undefined;
158
158
  }, {
159
- scopeId: string;
160
159
  tool: string;
160
+ scopeId: string;
161
161
  args: Record<string, unknown>;
162
162
  result?: unknown;
163
163
  userIdentifier?: string | undefined;
@@ -185,91 +185,91 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
185
185
  identifier: string;
186
186
  }>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
- sessionId: string;
189
188
  scopes: string[];
189
+ agentDid: string;
190
+ sessionId: string;
191
+ projectId: string;
190
192
  timestamp: number;
191
193
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
192
- agentDid: string;
193
194
  targetTools: string[];
194
- projectId: string;
195
- userDid?: string | undefined;
196
- delegationId?: string | undefined;
197
195
  termsAccepted?: boolean | undefined;
198
- credentialStatus?: "present" | "required" | "obtained" | undefined;
196
+ userDid?: string | undefined;
199
197
  oauthIdentity?: {
200
198
  provider: string;
201
199
  identifier: string;
202
200
  } | undefined;
201
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
202
+ delegationId?: string | undefined;
203
203
  }, {
204
- sessionId: string;
205
204
  scopes: string[];
205
+ agentDid: string;
206
+ sessionId: string;
207
+ projectId: string;
206
208
  timestamp: number;
207
209
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
208
- agentDid: string;
209
210
  targetTools: string[];
210
- projectId: string;
211
- userDid?: string | undefined;
212
- delegationId?: string | undefined;
213
211
  termsAccepted?: boolean | undefined;
214
- credentialStatus?: "present" | "required" | "obtained" | undefined;
212
+ userDid?: string | undefined;
215
213
  oauthIdentity?: {
216
214
  provider: string;
217
215
  identifier: string;
218
216
  } | undefined;
217
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
218
+ delegationId?: string | undefined;
219
219
  }>, "many">>;
220
220
  mcpServerUrl: z.ZodOptional<z.ZodString>;
221
221
  }, "strip", z.ZodTypeAny, {
222
222
  toolCalls?: {
223
- scopeId: string;
224
223
  tool: string;
224
+ scopeId: string;
225
225
  args: Record<string, unknown>;
226
226
  result?: unknown;
227
227
  userIdentifier?: string | undefined;
228
228
  }[] | undefined;
229
+ mcpServerUrl?: string | undefined;
229
230
  consentEvents?: {
230
- sessionId: string;
231
231
  scopes: string[];
232
+ agentDid: string;
233
+ sessionId: string;
234
+ projectId: string;
232
235
  timestamp: number;
233
236
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
234
- agentDid: string;
235
237
  targetTools: string[];
236
- projectId: string;
237
- userDid?: string | undefined;
238
- delegationId?: string | undefined;
239
238
  termsAccepted?: boolean | undefined;
240
- credentialStatus?: "present" | "required" | "obtained" | undefined;
239
+ userDid?: string | undefined;
241
240
  oauthIdentity?: {
242
241
  provider: string;
243
242
  identifier: string;
244
243
  } | undefined;
244
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
245
+ delegationId?: string | undefined;
245
246
  }[] | undefined;
246
- mcpServerUrl?: string | undefined;
247
247
  }, {
248
248
  toolCalls?: {
249
- scopeId: string;
250
249
  tool: string;
250
+ scopeId: string;
251
251
  args: Record<string, unknown>;
252
252
  result?: unknown;
253
253
  userIdentifier?: string | undefined;
254
254
  }[] | undefined;
255
+ mcpServerUrl?: string | undefined;
255
256
  consentEvents?: {
256
- sessionId: string;
257
257
  scopes: string[];
258
+ agentDid: string;
259
+ sessionId: string;
260
+ projectId: string;
258
261
  timestamp: number;
259
262
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
260
- agentDid: string;
261
263
  targetTools: string[];
262
- projectId: string;
263
- userDid?: string | undefined;
264
- delegationId?: string | undefined;
265
264
  termsAccepted?: boolean | undefined;
266
- credentialStatus?: "present" | "required" | "obtained" | undefined;
265
+ userDid?: string | undefined;
267
266
  oauthIdentity?: {
268
267
  provider: string;
269
268
  identifier: string;
270
269
  } | undefined;
270
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
271
+ delegationId?: string | undefined;
271
272
  }[] | undefined;
272
- mcpServerUrl?: string | undefined;
273
273
  }>>;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  session_id: string;
@@ -278,44 +278,44 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
278
278
  meta: {
279
279
  did: string;
280
280
  kid: string;
281
- ts: number;
281
+ sessionId: string;
282
282
  nonce: string;
283
283
  audience: string;
284
- sessionId: string;
284
+ ts: number;
285
285
  requestHash: string;
286
286
  responseHash: string;
287
+ clientDid?: string | undefined;
287
288
  scopeId?: string | undefined;
288
289
  delegationRef?: string | undefined;
289
- clientDid?: string | undefined;
290
290
  };
291
291
  }[];
292
292
  delegation_id?: string | null | undefined;
293
293
  context?: {
294
294
  toolCalls?: {
295
- scopeId: string;
296
295
  tool: string;
296
+ scopeId: string;
297
297
  args: Record<string, unknown>;
298
298
  result?: unknown;
299
299
  userIdentifier?: string | undefined;
300
300
  }[] | undefined;
301
+ mcpServerUrl?: string | undefined;
301
302
  consentEvents?: {
302
- sessionId: string;
303
303
  scopes: string[];
304
+ agentDid: string;
305
+ sessionId: string;
306
+ projectId: string;
304
307
  timestamp: number;
305
308
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
306
- agentDid: string;
307
309
  targetTools: string[];
308
- projectId: string;
309
- userDid?: string | undefined;
310
- delegationId?: string | undefined;
311
310
  termsAccepted?: boolean | undefined;
312
- credentialStatus?: "present" | "required" | "obtained" | undefined;
311
+ userDid?: string | undefined;
313
312
  oauthIdentity?: {
314
313
  provider: string;
315
314
  identifier: string;
316
315
  } | undefined;
316
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
317
+ delegationId?: string | undefined;
317
318
  }[] | undefined;
318
- mcpServerUrl?: string | undefined;
319
319
  } | undefined;
320
320
  }, {
321
321
  session_id: string;
@@ -324,44 +324,44 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
324
324
  meta: {
325
325
  did: string;
326
326
  kid: string;
327
- ts: number;
327
+ sessionId: string;
328
328
  nonce: string;
329
329
  audience: string;
330
- sessionId: string;
330
+ ts: number;
331
331
  requestHash: string;
332
332
  responseHash: string;
333
+ clientDid?: string | undefined;
333
334
  scopeId?: string | undefined;
334
335
  delegationRef?: string | undefined;
335
- clientDid?: string | undefined;
336
336
  };
337
337
  }[];
338
338
  delegation_id?: string | null | undefined;
339
339
  context?: {
340
340
  toolCalls?: {
341
- scopeId: string;
342
341
  tool: string;
342
+ scopeId: string;
343
343
  args: Record<string, unknown>;
344
344
  result?: unknown;
345
345
  userIdentifier?: string | undefined;
346
346
  }[] | undefined;
347
+ mcpServerUrl?: string | undefined;
347
348
  consentEvents?: {
348
- sessionId: string;
349
349
  scopes: string[];
350
+ agentDid: string;
351
+ sessionId: string;
352
+ projectId: string;
350
353
  timestamp: number;
351
354
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
352
- agentDid: string;
353
355
  targetTools: string[];
354
- projectId: string;
355
- userDid?: string | undefined;
356
- delegationId?: string | undefined;
357
356
  termsAccepted?: boolean | undefined;
358
- credentialStatus?: "present" | "required" | "obtained" | undefined;
357
+ userDid?: string | undefined;
359
358
  oauthIdentity?: {
360
359
  provider: string;
361
360
  identifier: string;
362
361
  } | undefined;
362
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
363
+ delegationId?: string | undefined;
363
364
  }[] | undefined;
364
- mcpServerUrl?: string | undefined;
365
365
  } | undefined;
366
366
  }>;
367
367
  /**
@@ -406,7 +406,6 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
406
406
  success: boolean;
407
407
  accepted: number;
408
408
  rejected: number;
409
- outcomes?: Record<string, number> | undefined;
410
409
  errors?: {
411
410
  error: {
412
411
  code: string;
@@ -415,11 +414,11 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
415
414
  };
416
415
  proof_index: number;
417
416
  }[] | 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;
423
422
  errors?: {
424
423
  error: {
425
424
  code: string;
@@ -428,6 +427,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
428
427
  };
429
428
  proof_index: number;
430
429
  }[] | undefined;
430
+ outcomes?: Record<string, number> | undefined;
431
431
  }>;
432
432
  /**
433
433
  * Delegation credential schema
@@ -462,10 +462,10 @@ export declare const delegationCredentialSchema: z.ZodObject<{
462
462
  */
463
463
  export declare const verifyDelegationRequestSchema: z.ZodObject<{
464
464
  scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
465
- timestamp: z.ZodOptional<z.ZodNumber>;
466
465
  agent_did: z.ZodString;
467
- credential_jwt: z.ZodOptional<z.ZodString>;
468
466
  delegation_token: z.ZodOptional<z.ZodString>;
467
+ timestamp: z.ZodOptional<z.ZodNumber>;
468
+ credential_jwt: z.ZodOptional<z.ZodString>;
469
469
  client_info: z.ZodOptional<z.ZodObject<{
470
470
  ip_address: z.ZodOptional<z.ZodString>;
471
471
  origin: z.ZodOptional<z.ZodString>;
@@ -482,9 +482,9 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
482
482
  }, "strip", z.ZodTypeAny, {
483
483
  agent_did: string;
484
484
  scopes?: string[] | undefined;
485
+ delegation_token?: string | undefined;
485
486
  timestamp?: number | undefined;
486
487
  credential_jwt?: string | undefined;
487
- delegation_token?: string | undefined;
488
488
  client_info?: {
489
489
  ip_address?: string | undefined;
490
490
  origin?: string | undefined;
@@ -493,9 +493,9 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
493
493
  }, {
494
494
  agent_did: string;
495
495
  scopes?: string[] | undefined;
496
+ delegation_token?: string | undefined;
496
497
  timestamp?: number | undefined;
497
498
  credential_jwt?: string | undefined;
498
- delegation_token?: string | undefined;
499
499
  client_info?: {
500
500
  ip_address?: string | undefined;
501
501
  origin?: string | undefined;
@@ -1786,6 +1786,7 @@ 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;
1789
1790
  delegation?: z.objectOutputType<{
1790
1791
  id: z.ZodString;
1791
1792
  issuerDid: z.ZodString;
@@ -2206,7 +2207,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2206
2207
  user_id?: string | undefined;
2207
2208
  user_identifier?: string | undefined;
2208
2209
  } | undefined;
2209
- reason?: string | undefined;
2210
2210
  }, {
2211
2211
  valid: boolean;
2212
2212
  error?: {
@@ -2215,6 +2215,7 @@ 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;
2218
2219
  delegation?: z.objectInputType<{
2219
2220
  id: z.ZodString;
2220
2221
  issuerDid: z.ZodString;
@@ -2635,7 +2636,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2635
2636
  user_id?: string | undefined;
2636
2637
  user_identifier?: string | undefined;
2637
2638
  } | undefined;
2638
- reason?: string | undefined;
2639
2639
  }>;
2640
2640
  /**
2641
2641
  * Wrapped verification response schema
@@ -3923,6 +3923,7 @@ 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;
3926
3927
  delegation?: z.objectOutputType<{
3927
3928
  id: z.ZodString;
3928
3929
  issuerDid: z.ZodString;
@@ -4343,7 +4344,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4343
4344
  user_id?: string | undefined;
4344
4345
  user_identifier?: string | undefined;
4345
4346
  } | undefined;
4346
- reason?: string | undefined;
4347
4347
  }, {
4348
4348
  valid: boolean;
4349
4349
  error?: {
@@ -4352,6 +4352,7 @@ 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;
4355
4356
  delegation?: z.objectInputType<{
4356
4357
  id: z.ZodString;
4357
4358
  issuerDid: z.ZodString;
@@ -4772,17 +4773,16 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4772
4773
  user_id?: string | undefined;
4773
4774
  user_identifier?: string | undefined;
4774
4775
  } | 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
- requestId: string;
4782
4781
  timestamp: string;
4783
- }, {
4784
4782
  requestId: string;
4783
+ }, {
4785
4784
  timestamp: string;
4785
+ requestId: string;
4786
4786
  }>>;
4787
4787
  }, "strip", z.ZodTypeAny, {
4788
4788
  success: boolean;
@@ -4794,6 +4794,7 @@ 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;
4797
4798
  delegation?: z.objectOutputType<{
4798
4799
  id: z.ZodString;
4799
4800
  issuerDid: z.ZodString;
@@ -5214,11 +5215,10 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5214
5215
  user_id?: string | undefined;
5215
5216
  user_identifier?: string | undefined;
5216
5217
  } | undefined;
5217
- reason?: string | undefined;
5218
5218
  };
5219
5219
  metadata?: {
5220
- requestId: string;
5221
5220
  timestamp: string;
5221
+ requestId: string;
5222
5222
  } | undefined;
5223
5223
  }, {
5224
5224
  success: boolean;
@@ -5230,6 +5230,7 @@ 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;
5233
5234
  delegation?: z.objectInputType<{
5234
5235
  id: z.ZodString;
5235
5236
  issuerDid: z.ZodString;
@@ -5650,11 +5651,10 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5650
5651
  user_id?: string | undefined;
5651
5652
  user_identifier?: string | undefined;
5652
5653
  } | undefined;
5653
- reason?: string | undefined;
5654
5654
  };
5655
5655
  metadata?: {
5656
- requestId: string;
5657
5656
  timestamp: string;
5657
+ requestId: 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
- requestId: string;
5831
5830
  timestamp: string;
5832
- }, {
5833
5831
  requestId: string;
5832
+ }, {
5834
5833
  timestamp: string;
5834
+ requestId: 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
- requestId: string;
5857
5856
  timestamp: string;
5857
+ requestId: 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
- requestId: string;
5880
5879
  timestamp: string;
5880
+ requestId: string;
5881
5881
  } | undefined;
5882
5882
  }>;
5883
5883
  /**
@@ -5956,8 +5956,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
5956
5956
  }, "strip", z.ZodTypeAny, {
5957
5957
  status: "active" | "revoked" | "expired";
5958
5958
  scopes: string[];
5959
- delegation_id: string;
5960
5959
  agent_did: string;
5960
+ delegation_id: string;
5961
5961
  issued_at: string;
5962
5962
  created_at: string;
5963
5963
  user_id?: string | undefined;
@@ -5966,8 +5966,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
5966
5966
  }, {
5967
5967
  status: "active" | "revoked" | "expired";
5968
5968
  scopes: string[];
5969
- delegation_id: string;
5970
5969
  agent_did: string;
5970
+ delegation_id: string;
5971
5971
  issued_at: string;
5972
5972
  created_at: string;
5973
5973
  user_id?: string | undefined;
@@ -5992,8 +5992,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
5992
5992
  }, "strip", z.ZodTypeAny, {
5993
5993
  status: "active" | "revoked" | "expired";
5994
5994
  scopes: string[];
5995
- delegation_id: string;
5996
5995
  agent_did: string;
5996
+ delegation_id: string;
5997
5997
  issued_at: string;
5998
5998
  created_at: string;
5999
5999
  user_id?: string | undefined;
@@ -6002,8 +6002,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6002
6002
  }, {
6003
6003
  status: "active" | "revoked" | "expired";
6004
6004
  scopes: string[];
6005
- delegation_id: string;
6006
6005
  agent_did: string;
6006
+ delegation_id: string;
6007
6007
  issued_at: string;
6008
6008
  created_at: string;
6009
6009
  user_id?: string | undefined;
@@ -6014,19 +6014,19 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6014
6014
  requestId: z.ZodString;
6015
6015
  timestamp: z.ZodString;
6016
6016
  }, "strip", z.ZodTypeAny, {
6017
- requestId: string;
6018
6017
  timestamp: string;
6019
- }, {
6020
6018
  requestId: string;
6019
+ }, {
6021
6020
  timestamp: string;
6021
+ requestId: string;
6022
6022
  }>>;
6023
6023
  }, "strip", z.ZodTypeAny, {
6024
6024
  success: boolean;
6025
6025
  data: {
6026
6026
  status: "active" | "revoked" | "expired";
6027
6027
  scopes: string[];
6028
- delegation_id: string;
6029
6028
  agent_did: string;
6029
+ delegation_id: string;
6030
6030
  issued_at: string;
6031
6031
  created_at: string;
6032
6032
  user_id?: string | undefined;
@@ -6034,16 +6034,16 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6034
6034
  expires_at?: string | null | undefined;
6035
6035
  };
6036
6036
  metadata?: {
6037
- requestId: string;
6038
6037
  timestamp: string;
6038
+ requestId: string;
6039
6039
  } | undefined;
6040
6040
  }, {
6041
6041
  success: boolean;
6042
6042
  data: {
6043
6043
  status: "active" | "revoked" | "expired";
6044
6044
  scopes: string[];
6045
- delegation_id: string;
6046
6045
  agent_did: string;
6046
+ delegation_id: string;
6047
6047
  issued_at: string;
6048
6048
  created_at: string;
6049
6049
  user_id?: string | undefined;
@@ -6051,8 +6051,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6051
6051
  expires_at?: string | null | undefined;
6052
6052
  };
6053
6053
  metadata?: {
6054
- requestId: string;
6055
6054
  timestamp: string;
6055
+ requestId: 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
- revoked: boolean;
6077
6076
  delegation_id: string;
6077
+ revoked: boolean;
6078
6078
  revoked_at: number;
6079
6079
  }, {
6080
- revoked: boolean;
6081
6080
  delegation_id: string;
6081
+ revoked: boolean;
6082
6082
  revoked_at: number;
6083
6083
  }>;
6084
6084
  /**
@@ -6091,45 +6091,45 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6091
6091
  revoked: z.ZodBoolean;
6092
6092
  revoked_at: z.ZodNumber;
6093
6093
  }, "strip", z.ZodTypeAny, {
6094
- revoked: boolean;
6095
6094
  delegation_id: string;
6095
+ revoked: boolean;
6096
6096
  revoked_at: number;
6097
6097
  }, {
6098
- revoked: boolean;
6099
6098
  delegation_id: string;
6099
+ revoked: boolean;
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
- requestId: string;
6107
6106
  timestamp: string;
6108
- }, {
6109
6107
  requestId: string;
6108
+ }, {
6110
6109
  timestamp: string;
6110
+ requestId: string;
6111
6111
  }>>;
6112
6112
  }, "strip", z.ZodTypeAny, {
6113
6113
  success: boolean;
6114
6114
  data: {
6115
- revoked: boolean;
6116
6115
  delegation_id: string;
6116
+ revoked: boolean;
6117
6117
  revoked_at: number;
6118
6118
  };
6119
6119
  metadata?: {
6120
- requestId: string;
6121
6120
  timestamp: string;
6121
+ requestId: string;
6122
6122
  } | undefined;
6123
6123
  }, {
6124
6124
  success: boolean;
6125
6125
  data: {
6126
- revoked: boolean;
6127
6126
  delegation_id: string;
6127
+ revoked: boolean;
6128
6128
  revoked_at: number;
6129
6129
  };
6130
6130
  metadata?: {
6131
- requestId: string;
6132
6131
  timestamp: string;
6132
+ requestId: string;
6133
6133
  } | undefined;
6134
6134
  }>;
6135
6135
  /**
@@ -6144,15 +6144,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
6144
6144
  }, "strip", z.ZodTypeAny, {
6145
6145
  name: string;
6146
6146
  version?: string | undefined;
6147
- protocol_version?: string | undefined;
6148
6147
  platform?: string | undefined;
6149
6148
  vendor?: string | undefined;
6149
+ protocol_version?: string | undefined;
6150
6150
  }, {
6151
6151
  name: string;
6152
6152
  version?: string | undefined;
6153
- protocol_version?: string | undefined;
6154
6153
  platform?: string | undefined;
6155
6154
  vendor?: string | undefined;
6155
+ protocol_version?: string | undefined;
6156
6156
  }>;
6157
6157
  /**
6158
6158
  * Session client identity schema
@@ -6187,15 +6187,15 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6187
6187
  }, "strip", z.ZodTypeAny, {
6188
6188
  name: string;
6189
6189
  version?: string | undefined;
6190
- protocol_version?: string | undefined;
6191
6190
  platform?: string | undefined;
6192
6191
  vendor?: string | undefined;
6192
+ protocol_version?: string | undefined;
6193
6193
  }, {
6194
6194
  name: string;
6195
6195
  version?: string | undefined;
6196
- protocol_version?: string | undefined;
6197
6196
  platform?: string | undefined;
6198
6197
  vendor?: string | undefined;
6198
+ protocol_version?: string | undefined;
6199
6199
  }>;
6200
6200
  client_identity: z.ZodOptional<z.ZodObject<{
6201
6201
  did: z.ZodString;
@@ -6213,17 +6213,17 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6213
6213
  server_did: z.ZodOptional<z.ZodString>;
6214
6214
  ttl_minutes: z.ZodOptional<z.ZodNumber>;
6215
6215
  }, "strip", z.ZodTypeAny, {
6216
- session_id: string;
6217
6216
  agent_did: string;
6217
+ session_id: string;
6218
+ project_id: string;
6218
6219
  created_at: number;
6219
6220
  client_info: {
6220
6221
  name: string;
6221
6222
  version?: string | undefined;
6222
- protocol_version?: string | undefined;
6223
6223
  platform?: string | undefined;
6224
6224
  vendor?: string | undefined;
6225
+ protocol_version?: string | undefined;
6225
6226
  };
6226
- project_id: string;
6227
6227
  client_identity?: {
6228
6228
  did: string;
6229
6229
  source: "knowthat.ai" | "kta-lookup" | "generated";
@@ -6232,17 +6232,17 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6232
6232
  server_did?: string | undefined;
6233
6233
  ttl_minutes?: number | undefined;
6234
6234
  }, {
6235
- session_id: string;
6236
6235
  agent_did: string;
6236
+ session_id: string;
6237
+ project_id: string;
6237
6238
  created_at: number;
6238
6239
  client_info: {
6239
6240
  name: string;
6240
6241
  version?: string | undefined;
6241
- protocol_version?: string | undefined;
6242
6242
  platform?: string | undefined;
6243
6243
  vendor?: string | undefined;
6244
+ protocol_version?: string | undefined;
6244
6245
  };
6245
- project_id: string;
6246
6246
  client_identity?: {
6247
6247
  did: string;
6248
6248
  source: "knowthat.ai" | "kta-lookup" | "generated";
@@ -6289,11 +6289,11 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6289
6289
  requestId: z.ZodString;
6290
6290
  timestamp: z.ZodString;
6291
6291
  }, "strip", z.ZodTypeAny, {
6292
- requestId: string;
6293
6292
  timestamp: string;
6294
- }, {
6295
6293
  requestId: string;
6294
+ }, {
6296
6295
  timestamp: string;
6296
+ requestId: string;
6297
6297
  }>>;
6298
6298
  }, "strip", z.ZodTypeAny, {
6299
6299
  success: boolean;
@@ -6303,8 +6303,8 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6303
6303
  registered: boolean;
6304
6304
  };
6305
6305
  metadata?: {
6306
- requestId: string;
6307
6306
  timestamp: string;
6307
+ requestId: string;
6308
6308
  } | undefined;
6309
6309
  }, {
6310
6310
  success: boolean;
@@ -6314,7 +6314,7 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6314
6314
  registered: boolean;
6315
6315
  };
6316
6316
  metadata?: {
6317
- requestId: string;
6318
6317
  timestamp: string;
6318
+ requestId: string;
6319
6319
  } | undefined;
6320
6320
  }>;