@kya-os/contracts 1.6.4 → 1.6.6

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/schemas.d.ts +124 -124
  2. package/dist/audit/index.d.ts +21 -21
  3. package/dist/config/identity.d.ts +477 -6
  4. package/dist/config/identity.js +68 -1
  5. package/dist/config/index.d.ts +1 -1
  6. package/dist/config/index.js +6 -1
  7. package/dist/config/tool-context.d.ts +14 -2
  8. package/dist/consent/schemas.d.ts +46 -46
  9. package/dist/delegation/schemas.d.ts +34 -34
  10. package/dist/handshake.d.ts +18 -18
  11. package/dist/identity/schemas.d.ts +10 -10
  12. package/dist/proof/proof-record.d.ts +12 -12
  13. package/dist/proof/signing-spec.d.ts +4 -4
  14. package/dist/proof.d.ts +24 -24
  15. package/dist/tool-protection/index.d.ts +16 -16
  16. package/dist/verifier.d.ts +9 -9
  17. package/package.json +1 -1
  18. package/dist/agentshield-api/endpoints.d.ts.map +0 -1
  19. package/dist/agentshield-api/endpoints.js.map +0 -1
  20. package/dist/agentshield-api/index.d.ts.map +0 -1
  21. package/dist/agentshield-api/index.js.map +0 -1
  22. package/dist/agentshield-api/schemas.d.ts.map +0 -1
  23. package/dist/agentshield-api/schemas.js.map +0 -1
  24. package/dist/agentshield-api/types.d.ts.map +0 -1
  25. package/dist/agentshield-api/types.js.map +0 -1
  26. package/dist/delegation/constraints.d.ts.map +0 -1
  27. package/dist/delegation/constraints.js.map +0 -1
  28. package/dist/delegation/index.d.ts.map +0 -1
  29. package/dist/delegation/index.js.map +0 -1
  30. package/dist/delegation/schemas.d.ts.map +0 -1
  31. package/dist/delegation/schemas.js.map +0 -1
  32. package/dist/did/index.d.ts.map +0 -1
  33. package/dist/did/index.js.map +0 -1
  34. package/dist/did/resolve-contract.d.ts.map +0 -1
  35. package/dist/did/resolve-contract.js.map +0 -1
  36. package/dist/did/schemas.d.ts.map +0 -1
  37. package/dist/did/schemas.js.map +0 -1
  38. package/dist/did/types.d.ts.map +0 -1
  39. package/dist/did/types.js.map +0 -1
  40. package/dist/env/constants.d.ts.map +0 -1
  41. package/dist/env/constants.js.map +0 -1
  42. package/dist/env/index.d.ts.map +0 -1
  43. package/dist/env/index.js.map +0 -1
  44. package/dist/proof/index.d.ts.map +0 -1
  45. package/dist/proof/index.js.map +0 -1
  46. package/dist/proof/proof-record.d.ts.map +0 -1
  47. package/dist/proof/proof-record.js.map +0 -1
  48. package/dist/proof/signing-spec.d.ts.map +0 -1
  49. package/dist/proof/signing-spec.js.map +0 -1
  50. package/dist/runtime/errors.d.ts.map +0 -1
  51. package/dist/runtime/errors.js.map +0 -1
  52. package/dist/runtime/headers.d.ts.map +0 -1
  53. package/dist/runtime/headers.js.map +0 -1
  54. package/dist/runtime/index.d.ts.map +0 -1
  55. package/dist/runtime/index.js.map +0 -1
  56. package/dist/tlkrc/index.d.ts.map +0 -1
  57. package/dist/tlkrc/index.js.map +0 -1
  58. package/dist/tlkrc/rotation.d.ts.map +0 -1
  59. package/dist/tlkrc/rotation.js.map +0 -1
  60. package/dist/vc/index.d.ts.map +0 -1
  61. package/dist/vc/index.js.map +0 -1
  62. package/dist/vc/schemas.d.ts.map +0 -1
  63. package/dist/vc/schemas.js.map +0 -1
  64. package/dist/vc/statuslist.d.ts.map +0 -1
  65. package/dist/vc/statuslist.js.map +0 -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
- sessionId: string;
92
+ ts: number;
93
93
  nonce: string;
94
94
  audience: string;
95
- ts: number;
95
+ sessionId: string;
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
- sessionId: string;
104
+ ts: number;
105
105
  nonce: string;
106
106
  audience: string;
107
- ts: number;
107
+ sessionId: string;
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
- sessionId: string;
119
+ ts: number;
120
120
  nonce: string;
121
121
  audience: string;
122
- ts: number;
122
+ sessionId: string;
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
- sessionId: string;
134
+ ts: number;
135
135
  nonce: string;
136
136
  audience: string;
137
- ts: number;
137
+ sessionId: string;
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<{
@@ -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
- tool: string;
154
153
  scopeId: string;
154
+ tool: string;
155
155
  args: Record<string, unknown>;
156
156
  result?: unknown;
157
157
  userIdentifier?: string | undefined;
158
158
  }, {
159
- tool: string;
160
159
  scopeId: string;
160
+ tool: 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
- scopes: string[];
189
- agentDid: string;
190
188
  sessionId: string;
191
- projectId: string;
189
+ scopes: string[];
192
190
  timestamp: number;
193
191
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
192
+ agentDid: string;
194
193
  targetTools: string[];
195
- termsAccepted?: boolean | undefined;
194
+ projectId: string;
196
195
  userDid?: string | undefined;
196
+ delegationId?: string | undefined;
197
+ termsAccepted?: boolean | undefined;
198
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
197
199
  oauthIdentity?: {
198
200
  provider: string;
199
201
  identifier: string;
200
202
  } | undefined;
201
- credentialStatus?: "required" | "present" | "obtained" | undefined;
202
- delegationId?: string | undefined;
203
203
  }, {
204
- scopes: string[];
205
- agentDid: string;
206
204
  sessionId: string;
207
- projectId: string;
205
+ scopes: string[];
208
206
  timestamp: number;
209
207
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
208
+ agentDid: string;
210
209
  targetTools: string[];
211
- termsAccepted?: boolean | undefined;
210
+ projectId: string;
212
211
  userDid?: string | undefined;
212
+ delegationId?: string | undefined;
213
+ termsAccepted?: boolean | undefined;
214
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
213
215
  oauthIdentity?: {
214
216
  provider: string;
215
217
  identifier: string;
216
218
  } | 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
- tool: string;
224
223
  scopeId: string;
224
+ tool: string;
225
225
  args: Record<string, unknown>;
226
226
  result?: unknown;
227
227
  userIdentifier?: string | undefined;
228
228
  }[] | undefined;
229
- mcpServerUrl?: string | undefined;
230
229
  consentEvents?: {
231
- scopes: string[];
232
- agentDid: string;
233
230
  sessionId: string;
234
- projectId: string;
231
+ scopes: string[];
235
232
  timestamp: number;
236
233
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
234
+ agentDid: string;
237
235
  targetTools: string[];
238
- termsAccepted?: boolean | undefined;
236
+ projectId: string;
239
237
  userDid?: string | undefined;
238
+ delegationId?: string | undefined;
239
+ termsAccepted?: boolean | undefined;
240
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
240
241
  oauthIdentity?: {
241
242
  provider: string;
242
243
  identifier: string;
243
244
  } | undefined;
244
- credentialStatus?: "required" | "present" | "obtained" | undefined;
245
- delegationId?: string | undefined;
246
245
  }[] | undefined;
246
+ mcpServerUrl?: string | undefined;
247
247
  }, {
248
248
  toolCalls?: {
249
- tool: string;
250
249
  scopeId: string;
250
+ tool: string;
251
251
  args: Record<string, unknown>;
252
252
  result?: unknown;
253
253
  userIdentifier?: string | undefined;
254
254
  }[] | undefined;
255
- mcpServerUrl?: string | undefined;
256
255
  consentEvents?: {
257
- scopes: string[];
258
- agentDid: string;
259
256
  sessionId: string;
260
- projectId: string;
257
+ scopes: string[];
261
258
  timestamp: number;
262
259
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
260
+ agentDid: string;
263
261
  targetTools: string[];
264
- termsAccepted?: boolean | undefined;
262
+ projectId: string;
265
263
  userDid?: string | undefined;
264
+ delegationId?: string | undefined;
265
+ termsAccepted?: boolean | undefined;
266
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
266
267
  oauthIdentity?: {
267
268
  provider: string;
268
269
  identifier: string;
269
270
  } | undefined;
270
- credentialStatus?: "required" | "present" | "obtained" | undefined;
271
- delegationId?: string | undefined;
272
271
  }[] | 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
- sessionId: string;
281
+ ts: number;
282
282
  nonce: string;
283
283
  audience: string;
284
- ts: number;
284
+ sessionId: string;
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;
293
293
  context?: {
294
294
  toolCalls?: {
295
- tool: string;
296
295
  scopeId: string;
296
+ tool: string;
297
297
  args: Record<string, unknown>;
298
298
  result?: unknown;
299
299
  userIdentifier?: string | undefined;
300
300
  }[] | undefined;
301
- mcpServerUrl?: string | undefined;
302
301
  consentEvents?: {
303
- scopes: string[];
304
- agentDid: string;
305
302
  sessionId: string;
306
- projectId: string;
303
+ scopes: string[];
307
304
  timestamp: number;
308
305
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
306
+ agentDid: string;
309
307
  targetTools: string[];
310
- termsAccepted?: boolean | undefined;
308
+ projectId: string;
311
309
  userDid?: string | undefined;
310
+ delegationId?: string | undefined;
311
+ termsAccepted?: boolean | undefined;
312
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
312
313
  oauthIdentity?: {
313
314
  provider: string;
314
315
  identifier: string;
315
316
  } | undefined;
316
- credentialStatus?: "required" | "present" | "obtained" | undefined;
317
- delegationId?: string | undefined;
318
317
  }[] | 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
- sessionId: string;
327
+ ts: number;
328
328
  nonce: string;
329
329
  audience: string;
330
- ts: number;
330
+ sessionId: string;
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;
339
339
  context?: {
340
340
  toolCalls?: {
341
- tool: string;
342
341
  scopeId: string;
342
+ tool: string;
343
343
  args: Record<string, unknown>;
344
344
  result?: unknown;
345
345
  userIdentifier?: string | undefined;
346
346
  }[] | undefined;
347
- mcpServerUrl?: string | undefined;
348
347
  consentEvents?: {
349
- scopes: string[];
350
- agentDid: string;
351
348
  sessionId: string;
352
- projectId: string;
349
+ scopes: string[];
353
350
  timestamp: number;
354
351
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
352
+ agentDid: string;
355
353
  targetTools: string[];
356
- termsAccepted?: boolean | undefined;
354
+ projectId: string;
357
355
  userDid?: string | undefined;
356
+ delegationId?: string | undefined;
357
+ termsAccepted?: boolean | undefined;
358
+ credentialStatus?: "present" | "required" | "obtained" | undefined;
358
359
  oauthIdentity?: {
359
360
  provider: string;
360
361
  identifier: string;
361
362
  } | undefined;
362
- credentialStatus?: "required" | "present" | "obtained" | undefined;
363
- delegationId?: string | 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
@@ -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
- agent_did: z.ZodString;
466
- delegation_token: z.ZodOptional<z.ZodString>;
467
465
  timestamp: z.ZodOptional<z.ZodNumber>;
466
+ agent_did: z.ZodString;
468
467
  credential_jwt: z.ZodOptional<z.ZodString>;
468
+ delegation_token: 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;
486
485
  timestamp?: number | undefined;
487
486
  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;
497
496
  timestamp?: number | undefined;
498
497
  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,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
  /**
@@ -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
- agent_did: string;
5960
5959
  delegation_id: string;
5960
+ agent_did: 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
- agent_did: string;
5970
5969
  delegation_id: string;
5970
+ agent_did: 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
- agent_did: string;
5996
5995
  delegation_id: string;
5996
+ agent_did: 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
- agent_did: string;
6006
6005
  delegation_id: string;
6006
+ agent_did: 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
- 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
6027
  scopes: string[];
6028
- agent_did: string;
6029
6028
  delegation_id: string;
6029
+ agent_did: 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
- 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
6044
  scopes: string[];
6045
- agent_did: string;
6046
6045
  delegation_id: string;
6046
+ agent_did: 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
- 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,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
- 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
- timestamp: string;
6132
6131
  requestId: string;
6132
+ timestamp: 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;
6147
6148
  platform?: string | undefined;
6148
6149
  vendor?: string | undefined;
6149
- protocol_version?: string | undefined;
6150
6150
  }, {
6151
6151
  name: string;
6152
6152
  version?: string | undefined;
6153
+ protocol_version?: string | undefined;
6153
6154
  platform?: string | undefined;
6154
6155
  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;
6190
6191
  platform?: string | undefined;
6191
6192
  vendor?: string | undefined;
6192
- protocol_version?: string | undefined;
6193
6193
  }, {
6194
6194
  name: string;
6195
6195
  version?: string | undefined;
6196
+ protocol_version?: string | undefined;
6196
6197
  platform?: string | undefined;
6197
6198
  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
- agent_did: string;
6217
6216
  session_id: string;
6218
- project_id: string;
6217
+ agent_did: string;
6219
6218
  created_at: number;
6220
6219
  client_info: {
6221
6220
  name: string;
6222
6221
  version?: string | undefined;
6222
+ protocol_version?: string | undefined;
6223
6223
  platform?: string | undefined;
6224
6224
  vendor?: string | undefined;
6225
- protocol_version?: string | undefined;
6226
6225
  };
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
- agent_did: string;
6236
6235
  session_id: string;
6237
- project_id: string;
6236
+ agent_did: string;
6238
6237
  created_at: number;
6239
6238
  client_info: {
6240
6239
  name: string;
6241
6240
  version?: string | undefined;
6241
+ protocol_version?: string | undefined;
6242
6242
  platform?: string | undefined;
6243
6243
  vendor?: string | undefined;
6244
- protocol_version?: string | undefined;
6245
6244
  };
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
- timestamp: string;
6293
6292
  requestId: string;
6294
- }, {
6295
6293
  timestamp: string;
6294
+ }, {
6296
6295
  requestId: string;
6296
+ timestamp: 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
- timestamp: string;
6307
6306
  requestId: string;
6307
+ timestamp: 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
- timestamp: string;
6318
6317
  requestId: string;
6318
+ timestamp: string;
6319
6319
  } | undefined;
6320
6320
  }>;