@kya-os/contracts 1.6.3-canary.0 → 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 (68) hide show
  1. package/dist/agentshield-api/admin-schemas.d.ts +2 -2
  2. package/dist/agentshield-api/endpoints.d.ts.map +1 -0
  3. package/dist/agentshield-api/endpoints.js.map +1 -0
  4. package/dist/agentshield-api/index.d.ts.map +1 -0
  5. package/dist/agentshield-api/index.js.map +1 -0
  6. package/dist/agentshield-api/schemas.d.ts +94 -120
  7. package/dist/agentshield-api/schemas.d.ts.map +1 -0
  8. package/dist/agentshield-api/schemas.js.map +1 -0
  9. package/dist/agentshield-api/types.d.ts.map +1 -0
  10. package/dist/agentshield-api/types.js.map +1 -0
  11. package/dist/audit/index.d.ts +21 -21
  12. package/dist/config/identity.d.ts +6 -6
  13. package/dist/consent/schemas.d.ts +60 -60
  14. package/dist/delegation/constraints.d.ts.map +1 -0
  15. package/dist/delegation/constraints.js.map +1 -0
  16. package/dist/delegation/index.d.ts.map +1 -0
  17. package/dist/delegation/index.js.map +1 -0
  18. package/dist/delegation/schemas.d.ts +34 -34
  19. package/dist/delegation/schemas.d.ts.map +1 -0
  20. package/dist/delegation/schemas.js.map +1 -0
  21. package/dist/did/index.d.ts.map +1 -0
  22. package/dist/did/index.js.map +1 -0
  23. package/dist/did/resolve-contract.d.ts.map +1 -0
  24. package/dist/did/resolve-contract.js.map +1 -0
  25. package/dist/did/schemas.d.ts.map +1 -0
  26. package/dist/did/schemas.js.map +1 -0
  27. package/dist/did/types.d.ts.map +1 -0
  28. package/dist/did/types.js.map +1 -0
  29. package/dist/env/constants.d.ts.map +1 -0
  30. package/dist/env/constants.js.map +1 -0
  31. package/dist/env/index.d.ts.map +1 -0
  32. package/dist/env/index.js.map +1 -0
  33. package/dist/handshake.d.ts +66 -16
  34. package/dist/handshake.js +23 -1
  35. package/dist/identity/index.d.ts +7 -0
  36. package/dist/identity/index.js +23 -0
  37. package/dist/identity/schemas.d.ts +250 -0
  38. package/dist/identity/schemas.js +115 -0
  39. package/dist/index.js +1 -0
  40. package/dist/proof/index.d.ts.map +1 -0
  41. package/dist/proof/index.js.map +1 -0
  42. package/dist/proof/proof-record.d.ts +12 -12
  43. package/dist/proof/proof-record.d.ts.map +1 -0
  44. package/dist/proof/proof-record.js.map +1 -0
  45. package/dist/proof/signing-spec.d.ts +4 -4
  46. package/dist/proof/signing-spec.d.ts.map +1 -0
  47. package/dist/proof/signing-spec.js.map +1 -0
  48. package/dist/proof.d.ts +24 -24
  49. package/dist/runtime/errors.d.ts.map +1 -0
  50. package/dist/runtime/errors.js.map +1 -0
  51. package/dist/runtime/headers.d.ts.map +1 -0
  52. package/dist/runtime/headers.js.map +1 -0
  53. package/dist/runtime/index.d.ts.map +1 -0
  54. package/dist/runtime/index.js.map +1 -0
  55. package/dist/tlkrc/index.d.ts.map +1 -0
  56. package/dist/tlkrc/index.js.map +1 -0
  57. package/dist/tlkrc/rotation.d.ts.map +1 -0
  58. package/dist/tlkrc/rotation.js.map +1 -0
  59. package/dist/tool-protection/index.d.ts +22 -22
  60. package/dist/vc/index.d.ts.map +1 -0
  61. package/dist/vc/index.js.map +1 -0
  62. package/dist/vc/schemas.d.ts.map +1 -0
  63. package/dist/vc/schemas.js.map +1 -0
  64. package/dist/vc/statuslist.d.ts.map +1 -0
  65. package/dist/vc/statuslist.js.map +1 -0
  66. package/dist/verifier.d.ts +9 -9
  67. package/dist/well-known/index.d.ts +2 -2
  68. package/package.json +6 -2
@@ -29,8 +29,8 @@ export declare const clearCacheResponseSchema: z.ZodObject<{
29
29
  had_old_value: z.ZodBoolean;
30
30
  cleared: z.ZodBoolean;
31
31
  }, "strip", z.ZodTypeAny, {
32
- agent_did: string;
33
32
  message: string;
33
+ agent_did: string;
34
34
  project_id: string | null;
35
35
  cache_key: string;
36
36
  old_cache_key: string | null;
@@ -38,8 +38,8 @@ export declare const clearCacheResponseSchema: z.ZodObject<{
38
38
  had_old_value: boolean;
39
39
  cleared: boolean;
40
40
  }, {
41
- agent_did: string;
42
41
  message: string;
42
+ agent_did: string;
43
43
  project_id: string | null;
44
44
  cache_key: string;
45
45
  old_cache_key: string | null;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/agentshield-api/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAG,iBAA0B,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAChC,6BAA6B;;IAG7B,gDAAgD;;IAGhD,2BAA2B;mCACL,MAAM;IAE5B,4BAA4B;;IAG5B,wBAAwB;sCACC,MAAM;IAE/B,wCAAwC;iCACpB,MAAM;CAClB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,kBAAkB,CAAC;IACnC,eAAe,EAAE,UAAU,MAAM,EAAE,CAAC;CACrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/agentshield-api/endpoints.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH;;GAEG;AACU,QAAA,oBAAoB,GAAG,iBAA0B,CAAC;AAE/D;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG;IACnC,6BAA6B;IAC7B,MAAM,EAAE,GAAG,4BAAoB,SAAkB;IAEjD,gDAAgD;IAChD,kBAAkB,EAAE,GAAG,4BAAoB,qBAA8B;IAEzE,2BAA2B;IAC3B,eAAe,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,GAAG,4BAAoB,gBAAgB,EAAE,EAAW;IAErF,4BAA4B;IAC5B,kBAAkB,EAAE,GAAG,4BAAoB,cAAuB;IAElE,wBAAwB;IACxB,kBAAkB,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,GAAG,4BAAoB,gBAAgB,EAAE,SAAkB;IAE/F,wCAAwC;IACxC,MAAM,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,GAAG,4BAAoB,WAAW,SAAS,EAAW;CAC7E,CAAC;AAEX;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAe;IACvB,kBAAkB,EAAE,MAAe;IACnC,eAAe,EAAE,KAAc;IAC/B,kBAAkB,EAAE,MAAe;IACnC,kBAAkB,EAAE,MAAe;IACnC,MAAM,EAAE,KAAc;CACd,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agentshield-api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAG5D,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,0BAA0B,EAC1B,kCAAkC,EAClC,qCAAqC,EACrC,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agentshield-api/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAsBH,uCAAiD;AAAxC,+GAAA,mBAAmB,OAAA;AAG5B,iBAAiB;AACjB,2CAkBsB;AAjBpB,uHAAA,yBAAyB,OAAA;AACzB,0HAAA,4BAA4B,OAAA;AAC5B,0HAAA,4BAA4B,OAAA;AAC5B,2HAAA,6BAA6B,OAAA;AAC7B,wHAAA,0BAA0B,OAAA;AAC1B,2HAAA,6BAA6B,OAAA;AAC7B,4HAAA,8BAA8B,OAAA;AAC9B,+HAAA,iCAAiC,OAAA;AACjC,wHAAA,0BAA0B,OAAA;AAC1B,gIAAA,kCAAkC,OAAA;AAClC,mIAAA,qCAAqC,OAAA;AACrC,2HAAA,6BAA6B,OAAA;AAC7B,4HAAA,8BAA8B,OAAA;AAC9B,+HAAA,iCAAiC,OAAA;AACjC,2HAAA,6BAA6B,OAAA;AAC7B,4HAAA,8BAA8B,OAAA;AAC9B,+HAAA,iCAAiC,OAAA;AAGnC,mBAAmB;AACnB,+CAIwB;AAHtB,oHAAA,oBAAoB,OAAA;AACpB,qHAAA,qBAAqB,OAAA;AACrB,mHAAA,mBAAmB,OAAA"}
@@ -52,7 +52,7 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
52
52
  timestamp: string;
53
53
  requestId: string;
54
54
  }>>;
55
- }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
55
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
56
56
  success: z.ZodBoolean;
57
57
  data: T;
58
58
  metadata: z.ZodOptional<z.ZodObject<{
@@ -65,33 +65,7 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
65
65
  timestamp: string;
66
66
  requestId: string;
67
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
- requestId: string;
77
- }, {
78
- timestamp: string;
79
- requestId: string;
80
- }>>;
81
- }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
82
- success: z.ZodBoolean;
83
- data: T;
84
- metadata: z.ZodOptional<z.ZodObject<{
85
- requestId: z.ZodString;
86
- timestamp: z.ZodString;
87
- }, "strip", z.ZodTypeAny, {
88
- timestamp: string;
89
- requestId: string;
90
- }, {
91
- timestamp: string;
92
- requestId: string;
93
- }>>;
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
  */
@@ -116,25 +90,25 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
116
90
  did: string;
117
91
  kid: string;
118
92
  sessionId: string;
93
+ nonce: string;
119
94
  audience: string;
95
+ ts: number;
120
96
  requestHash: string;
121
97
  responseHash: string;
122
- nonce: string;
123
- ts: number;
124
- scopeId?: string | undefined;
125
98
  clientDid?: string | undefined;
99
+ scopeId?: string | undefined;
126
100
  delegationRef?: string | undefined;
127
101
  }, {
128
102
  did: string;
129
103
  kid: string;
130
104
  sessionId: string;
105
+ nonce: string;
131
106
  audience: string;
107
+ ts: number;
132
108
  requestHash: string;
133
109
  responseHash: string;
134
- nonce: string;
135
- ts: number;
136
- scopeId?: string | undefined;
137
110
  clientDid?: string | undefined;
111
+ scopeId?: string | undefined;
138
112
  delegationRef?: string | undefined;
139
113
  }>;
140
114
  }, "strip", z.ZodTypeAny, {
@@ -143,13 +117,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
143
117
  did: string;
144
118
  kid: string;
145
119
  sessionId: string;
120
+ nonce: string;
146
121
  audience: string;
122
+ ts: number;
147
123
  requestHash: string;
148
124
  responseHash: string;
149
- nonce: string;
150
- ts: number;
151
- scopeId?: string | undefined;
152
125
  clientDid?: string | undefined;
126
+ scopeId?: string | undefined;
153
127
  delegationRef?: string | undefined;
154
128
  };
155
129
  }, {
@@ -158,13 +132,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
158
132
  did: string;
159
133
  kid: string;
160
134
  sessionId: string;
135
+ nonce: string;
161
136
  audience: string;
137
+ ts: number;
162
138
  requestHash: string;
163
139
  responseHash: string;
164
- nonce: string;
165
- ts: number;
166
- scopeId?: string | undefined;
167
140
  clientDid?: string | undefined;
141
+ scopeId?: string | undefined;
168
142
  delegationRef?: string | undefined;
169
143
  };
170
144
  }>, "many">;
@@ -176,14 +150,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
176
150
  scopeId: z.ZodString;
177
151
  userIdentifier: z.ZodOptional<z.ZodString>;
178
152
  }, "strip", z.ZodTypeAny, {
179
- scopeId: string;
180
153
  tool: string;
154
+ scopeId: string;
181
155
  args: Record<string, unknown>;
182
156
  result?: unknown;
183
157
  userIdentifier?: string | undefined;
184
158
  }, {
185
- scopeId: string;
186
159
  tool: string;
160
+ scopeId: string;
187
161
  args: Record<string, unknown>;
188
162
  result?: unknown;
189
163
  userIdentifier?: string | undefined;
@@ -212,90 +186,90 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
212
186
  }>>;
213
187
  }, "strip", z.ZodTypeAny, {
214
188
  scopes: string[];
189
+ agentDid: string;
215
190
  sessionId: string;
216
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
191
+ projectId: string;
217
192
  timestamp: number;
218
- agentDid: string;
193
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
219
194
  targetTools: string[];
220
- projectId: string;
221
- userDid?: string | undefined;
222
- delegationId?: string | undefined;
223
195
  termsAccepted?: boolean | undefined;
224
- credentialStatus?: "required" | "present" | "obtained" | undefined;
196
+ userDid?: string | undefined;
225
197
  oauthIdentity?: {
226
198
  provider: string;
227
199
  identifier: string;
228
200
  } | undefined;
201
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
202
+ delegationId?: string | undefined;
229
203
  }, {
230
204
  scopes: string[];
205
+ agentDid: string;
231
206
  sessionId: string;
232
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
207
+ projectId: string;
233
208
  timestamp: number;
234
- agentDid: string;
209
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
235
210
  targetTools: string[];
236
- projectId: string;
237
- userDid?: string | undefined;
238
- delegationId?: string | undefined;
239
211
  termsAccepted?: boolean | undefined;
240
- credentialStatus?: "required" | "present" | "obtained" | undefined;
212
+ userDid?: string | undefined;
241
213
  oauthIdentity?: {
242
214
  provider: string;
243
215
  identifier: string;
244
216
  } | undefined;
217
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
218
+ delegationId?: string | undefined;
245
219
  }>, "many">>;
246
220
  mcpServerUrl: z.ZodOptional<z.ZodString>;
247
221
  }, "strip", z.ZodTypeAny, {
248
222
  toolCalls?: {
249
- scopeId: string;
250
223
  tool: string;
224
+ scopeId: string;
251
225
  args: Record<string, unknown>;
252
226
  result?: unknown;
253
227
  userIdentifier?: string | undefined;
254
228
  }[] | undefined;
229
+ mcpServerUrl?: string | undefined;
255
230
  consentEvents?: {
256
231
  scopes: string[];
232
+ agentDid: string;
257
233
  sessionId: string;
258
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
234
+ projectId: string;
259
235
  timestamp: number;
260
- agentDid: string;
236
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
261
237
  targetTools: string[];
262
- projectId: string;
263
- userDid?: string | undefined;
264
- delegationId?: string | undefined;
265
238
  termsAccepted?: boolean | undefined;
266
- credentialStatus?: "required" | "present" | "obtained" | undefined;
239
+ userDid?: string | undefined;
267
240
  oauthIdentity?: {
268
241
  provider: string;
269
242
  identifier: string;
270
243
  } | undefined;
244
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
245
+ delegationId?: string | undefined;
271
246
  }[] | undefined;
272
- mcpServerUrl?: string | undefined;
273
247
  }, {
274
248
  toolCalls?: {
275
- scopeId: string;
276
249
  tool: string;
250
+ scopeId: string;
277
251
  args: Record<string, unknown>;
278
252
  result?: unknown;
279
253
  userIdentifier?: string | undefined;
280
254
  }[] | undefined;
255
+ mcpServerUrl?: string | undefined;
281
256
  consentEvents?: {
282
257
  scopes: string[];
258
+ agentDid: string;
283
259
  sessionId: string;
284
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
260
+ projectId: string;
285
261
  timestamp: number;
286
- agentDid: string;
262
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
287
263
  targetTools: string[];
288
- projectId: string;
289
- userDid?: string | undefined;
290
- delegationId?: string | undefined;
291
264
  termsAccepted?: boolean | undefined;
292
- credentialStatus?: "required" | "present" | "obtained" | undefined;
265
+ userDid?: string | undefined;
293
266
  oauthIdentity?: {
294
267
  provider: string;
295
268
  identifier: string;
296
269
  } | undefined;
270
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
271
+ delegationId?: string | undefined;
297
272
  }[] | undefined;
298
- mcpServerUrl?: string | undefined;
299
273
  }>>;
300
274
  }, "strip", z.ZodTypeAny, {
301
275
  session_id: string;
@@ -305,43 +279,43 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
305
279
  did: string;
306
280
  kid: string;
307
281
  sessionId: string;
282
+ nonce: string;
308
283
  audience: string;
284
+ ts: number;
309
285
  requestHash: string;
310
286
  responseHash: string;
311
- nonce: string;
312
- ts: number;
313
- scopeId?: string | undefined;
314
287
  clientDid?: string | undefined;
288
+ scopeId?: string | undefined;
315
289
  delegationRef?: string | undefined;
316
290
  };
317
291
  }[];
318
292
  delegation_id?: string | null | undefined;
319
293
  context?: {
320
294
  toolCalls?: {
321
- scopeId: string;
322
295
  tool: string;
296
+ scopeId: string;
323
297
  args: Record<string, unknown>;
324
298
  result?: unknown;
325
299
  userIdentifier?: string | undefined;
326
300
  }[] | undefined;
301
+ mcpServerUrl?: string | undefined;
327
302
  consentEvents?: {
328
303
  scopes: string[];
304
+ agentDid: string;
329
305
  sessionId: string;
330
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
306
+ projectId: string;
331
307
  timestamp: number;
332
- agentDid: string;
308
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
333
309
  targetTools: string[];
334
- projectId: string;
335
- userDid?: string | undefined;
336
- delegationId?: string | undefined;
337
310
  termsAccepted?: boolean | undefined;
338
- credentialStatus?: "required" | "present" | "obtained" | undefined;
311
+ userDid?: string | undefined;
339
312
  oauthIdentity?: {
340
313
  provider: string;
341
314
  identifier: string;
342
315
  } | undefined;
316
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
317
+ delegationId?: string | undefined;
343
318
  }[] | undefined;
344
- mcpServerUrl?: string | undefined;
345
319
  } | undefined;
346
320
  }, {
347
321
  session_id: string;
@@ -351,43 +325,43 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
351
325
  did: string;
352
326
  kid: string;
353
327
  sessionId: string;
328
+ nonce: string;
354
329
  audience: string;
330
+ ts: number;
355
331
  requestHash: string;
356
332
  responseHash: string;
357
- nonce: string;
358
- ts: number;
359
- scopeId?: string | undefined;
360
333
  clientDid?: string | undefined;
334
+ scopeId?: string | undefined;
361
335
  delegationRef?: string | undefined;
362
336
  };
363
337
  }[];
364
338
  delegation_id?: string | null | undefined;
365
339
  context?: {
366
340
  toolCalls?: {
367
- scopeId: string;
368
341
  tool: string;
342
+ scopeId: string;
369
343
  args: Record<string, unknown>;
370
344
  result?: unknown;
371
345
  userIdentifier?: string | undefined;
372
346
  }[] | undefined;
347
+ mcpServerUrl?: string | undefined;
373
348
  consentEvents?: {
374
349
  scopes: string[];
350
+ agentDid: string;
375
351
  sessionId: string;
376
- eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
352
+ projectId: string;
377
353
  timestamp: number;
378
- agentDid: string;
354
+ eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
379
355
  targetTools: string[];
380
- projectId: string;
381
- userDid?: string | undefined;
382
- delegationId?: string | undefined;
383
356
  termsAccepted?: boolean | undefined;
384
- credentialStatus?: "required" | "present" | "obtained" | undefined;
357
+ userDid?: string | undefined;
385
358
  oauthIdentity?: {
386
359
  provider: string;
387
360
  identifier: string;
388
361
  } | undefined;
362
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
363
+ delegationId?: string | undefined;
389
364
  }[] | undefined;
390
- mcpServerUrl?: string | undefined;
391
365
  } | undefined;
392
366
  }>;
393
367
  /**
@@ -432,7 +406,6 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
432
406
  success: boolean;
433
407
  accepted: number;
434
408
  rejected: number;
435
- outcomes?: Record<string, number> | undefined;
436
409
  errors?: {
437
410
  error: {
438
411
  code: string;
@@ -441,11 +414,11 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
441
414
  };
442
415
  proof_index: number;
443
416
  }[] | undefined;
417
+ outcomes?: Record<string, number> | undefined;
444
418
  }, {
445
419
  success: boolean;
446
420
  accepted: number;
447
421
  rejected: number;
448
- outcomes?: Record<string, number> | undefined;
449
422
  errors?: {
450
423
  error: {
451
424
  code: string;
@@ -454,6 +427,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
454
427
  };
455
428
  proof_index: number;
456
429
  }[] | undefined;
430
+ outcomes?: Record<string, number> | undefined;
457
431
  }>;
458
432
  /**
459
433
  * Delegation credential schema
@@ -488,10 +462,10 @@ export declare const delegationCredentialSchema: z.ZodObject<{
488
462
  */
489
463
  export declare const verifyDelegationRequestSchema: z.ZodObject<{
490
464
  scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
491
- timestamp: z.ZodOptional<z.ZodNumber>;
492
465
  agent_did: z.ZodString;
493
- credential_jwt: z.ZodOptional<z.ZodString>;
494
466
  delegation_token: z.ZodOptional<z.ZodString>;
467
+ timestamp: z.ZodOptional<z.ZodNumber>;
468
+ credential_jwt: z.ZodOptional<z.ZodString>;
495
469
  client_info: z.ZodOptional<z.ZodObject<{
496
470
  ip_address: z.ZodOptional<z.ZodString>;
497
471
  origin: z.ZodOptional<z.ZodString>;
@@ -508,9 +482,9 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
508
482
  }, "strip", z.ZodTypeAny, {
509
483
  agent_did: string;
510
484
  scopes?: string[] | undefined;
485
+ delegation_token?: string | undefined;
511
486
  timestamp?: number | undefined;
512
487
  credential_jwt?: string | undefined;
513
- delegation_token?: string | undefined;
514
488
  client_info?: {
515
489
  ip_address?: string | undefined;
516
490
  origin?: string | undefined;
@@ -519,9 +493,9 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
519
493
  }, {
520
494
  agent_did: string;
521
495
  scopes?: string[] | undefined;
496
+ delegation_token?: string | undefined;
522
497
  timestamp?: number | undefined;
523
498
  credential_jwt?: string | undefined;
524
- delegation_token?: string | undefined;
525
499
  client_info?: {
526
500
  ip_address?: string | undefined;
527
501
  origin?: string | undefined;
@@ -1812,6 +1786,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1812
1786
  details?: Record<string, unknown> | undefined;
1813
1787
  } | undefined;
1814
1788
  delegation_id?: string | undefined;
1789
+ reason?: string | undefined;
1815
1790
  delegation?: z.objectOutputType<{
1816
1791
  id: z.ZodString;
1817
1792
  issuerDid: z.ZodString;
@@ -2232,7 +2207,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2232
2207
  user_id?: string | undefined;
2233
2208
  user_identifier?: string | undefined;
2234
2209
  } | undefined;
2235
- reason?: string | undefined;
2236
2210
  }, {
2237
2211
  valid: boolean;
2238
2212
  error?: {
@@ -2241,6 +2215,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2241
2215
  details?: Record<string, unknown> | undefined;
2242
2216
  } | undefined;
2243
2217
  delegation_id?: string | undefined;
2218
+ reason?: string | undefined;
2244
2219
  delegation?: z.objectInputType<{
2245
2220
  id: z.ZodString;
2246
2221
  issuerDid: z.ZodString;
@@ -2661,7 +2636,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2661
2636
  user_id?: string | undefined;
2662
2637
  user_identifier?: string | undefined;
2663
2638
  } | undefined;
2664
- reason?: string | undefined;
2665
2639
  }>;
2666
2640
  /**
2667
2641
  * Wrapped verification response schema
@@ -3949,6 +3923,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3949
3923
  details?: Record<string, unknown> | undefined;
3950
3924
  } | undefined;
3951
3925
  delegation_id?: string | undefined;
3926
+ reason?: string | undefined;
3952
3927
  delegation?: z.objectOutputType<{
3953
3928
  id: z.ZodString;
3954
3929
  issuerDid: z.ZodString;
@@ -4369,7 +4344,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4369
4344
  user_id?: string | undefined;
4370
4345
  user_identifier?: string | undefined;
4371
4346
  } | undefined;
4372
- reason?: string | undefined;
4373
4347
  }, {
4374
4348
  valid: boolean;
4375
4349
  error?: {
@@ -4378,6 +4352,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4378
4352
  details?: Record<string, unknown> | undefined;
4379
4353
  } | undefined;
4380
4354
  delegation_id?: string | undefined;
4355
+ reason?: string | undefined;
4381
4356
  delegation?: z.objectInputType<{
4382
4357
  id: z.ZodString;
4383
4358
  issuerDid: z.ZodString;
@@ -4798,7 +4773,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4798
4773
  user_id?: string | undefined;
4799
4774
  user_identifier?: string | undefined;
4800
4775
  } | undefined;
4801
- reason?: string | undefined;
4802
4776
  }>;
4803
4777
  metadata: z.ZodOptional<z.ZodObject<{
4804
4778
  requestId: z.ZodString;
@@ -4820,6 +4794,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4820
4794
  details?: Record<string, unknown> | undefined;
4821
4795
  } | undefined;
4822
4796
  delegation_id?: string | undefined;
4797
+ reason?: string | undefined;
4823
4798
  delegation?: z.objectOutputType<{
4824
4799
  id: z.ZodString;
4825
4800
  issuerDid: z.ZodString;
@@ -5240,7 +5215,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5240
5215
  user_id?: string | undefined;
5241
5216
  user_identifier?: string | undefined;
5242
5217
  } | undefined;
5243
- reason?: string | undefined;
5244
5218
  };
5245
5219
  metadata?: {
5246
5220
  timestamp: string;
@@ -5256,6 +5230,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5256
5230
  details?: Record<string, unknown> | undefined;
5257
5231
  } | undefined;
5258
5232
  delegation_id?: string | undefined;
5233
+ reason?: string | undefined;
5259
5234
  delegation?: z.objectInputType<{
5260
5235
  id: z.ZodString;
5261
5236
  issuerDid: z.ZodString;
@@ -5676,7 +5651,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5676
5651
  user_id?: string | undefined;
5677
5652
  user_identifier?: string | undefined;
5678
5653
  } | undefined;
5679
- reason?: string | undefined;
5680
5654
  };
5681
5655
  metadata?: {
5682
5656
  timestamp: string;
@@ -5982,8 +5956,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
5982
5956
  }, "strip", z.ZodTypeAny, {
5983
5957
  status: "active" | "revoked" | "expired";
5984
5958
  scopes: string[];
5985
- delegation_id: string;
5986
5959
  agent_did: string;
5960
+ delegation_id: string;
5987
5961
  issued_at: string;
5988
5962
  created_at: string;
5989
5963
  user_id?: string | undefined;
@@ -5992,8 +5966,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
5992
5966
  }, {
5993
5967
  status: "active" | "revoked" | "expired";
5994
5968
  scopes: string[];
5995
- delegation_id: string;
5996
5969
  agent_did: string;
5970
+ delegation_id: string;
5997
5971
  issued_at: string;
5998
5972
  created_at: string;
5999
5973
  user_id?: string | undefined;
@@ -6018,8 +5992,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6018
5992
  }, "strip", z.ZodTypeAny, {
6019
5993
  status: "active" | "revoked" | "expired";
6020
5994
  scopes: string[];
6021
- delegation_id: string;
6022
5995
  agent_did: string;
5996
+ delegation_id: string;
6023
5997
  issued_at: string;
6024
5998
  created_at: string;
6025
5999
  user_id?: string | undefined;
@@ -6028,8 +6002,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6028
6002
  }, {
6029
6003
  status: "active" | "revoked" | "expired";
6030
6004
  scopes: string[];
6031
- delegation_id: string;
6032
6005
  agent_did: string;
6006
+ delegation_id: string;
6033
6007
  issued_at: string;
6034
6008
  created_at: string;
6035
6009
  user_id?: string | undefined;
@@ -6051,8 +6025,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6051
6025
  data: {
6052
6026
  status: "active" | "revoked" | "expired";
6053
6027
  scopes: string[];
6054
- delegation_id: string;
6055
6028
  agent_did: string;
6029
+ delegation_id: string;
6056
6030
  issued_at: string;
6057
6031
  created_at: string;
6058
6032
  user_id?: string | undefined;
@@ -6068,8 +6042,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6068
6042
  data: {
6069
6043
  status: "active" | "revoked" | "expired";
6070
6044
  scopes: string[];
6071
- delegation_id: string;
6072
6045
  agent_did: string;
6046
+ delegation_id: string;
6073
6047
  issued_at: string;
6074
6048
  created_at: string;
6075
6049
  user_id?: string | undefined;
@@ -6099,12 +6073,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
6099
6073
  revoked: z.ZodBoolean;
6100
6074
  revoked_at: z.ZodNumber;
6101
6075
  }, "strip", z.ZodTypeAny, {
6102
- revoked: boolean;
6103
6076
  delegation_id: string;
6077
+ revoked: boolean;
6104
6078
  revoked_at: number;
6105
6079
  }, {
6106
- revoked: boolean;
6107
6080
  delegation_id: string;
6081
+ revoked: boolean;
6108
6082
  revoked_at: number;
6109
6083
  }>;
6110
6084
  /**
@@ -6117,12 +6091,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6117
6091
  revoked: z.ZodBoolean;
6118
6092
  revoked_at: z.ZodNumber;
6119
6093
  }, "strip", z.ZodTypeAny, {
6120
- revoked: boolean;
6121
6094
  delegation_id: string;
6095
+ revoked: boolean;
6122
6096
  revoked_at: number;
6123
6097
  }, {
6124
- revoked: boolean;
6125
6098
  delegation_id: string;
6099
+ revoked: boolean;
6126
6100
  revoked_at: number;
6127
6101
  }>;
6128
6102
  metadata: z.ZodOptional<z.ZodObject<{
@@ -6138,8 +6112,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6138
6112
  }, "strip", z.ZodTypeAny, {
6139
6113
  success: boolean;
6140
6114
  data: {
6141
- revoked: boolean;
6142
6115
  delegation_id: string;
6116
+ revoked: boolean;
6143
6117
  revoked_at: number;
6144
6118
  };
6145
6119
  metadata?: {
@@ -6149,8 +6123,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6149
6123
  }, {
6150
6124
  success: boolean;
6151
6125
  data: {
6152
- revoked: boolean;
6153
6126
  delegation_id: string;
6127
+ revoked: boolean;
6154
6128
  revoked_at: number;
6155
6129
  };
6156
6130
  metadata?: {
@@ -6239,8 +6213,9 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6239
6213
  server_did: z.ZodOptional<z.ZodString>;
6240
6214
  ttl_minutes: z.ZodOptional<z.ZodNumber>;
6241
6215
  }, "strip", z.ZodTypeAny, {
6242
- session_id: string;
6243
6216
  agent_did: string;
6217
+ session_id: string;
6218
+ project_id: string;
6244
6219
  created_at: number;
6245
6220
  client_info: {
6246
6221
  name: string;
@@ -6249,7 +6224,6 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6249
6224
  vendor?: string | undefined;
6250
6225
  protocol_version?: string | undefined;
6251
6226
  };
6252
- project_id: string;
6253
6227
  client_identity?: {
6254
6228
  did: string;
6255
6229
  source: "knowthat.ai" | "kta-lookup" | "generated";
@@ -6258,8 +6232,9 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6258
6232
  server_did?: string | undefined;
6259
6233
  ttl_minutes?: number | undefined;
6260
6234
  }, {
6261
- session_id: string;
6262
6235
  agent_did: string;
6236
+ session_id: string;
6237
+ project_id: string;
6263
6238
  created_at: number;
6264
6239
  client_info: {
6265
6240
  name: string;
@@ -6268,7 +6243,6 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6268
6243
  vendor?: string | undefined;
6269
6244
  protocol_version?: string | undefined;
6270
6245
  };
6271
- project_id: string;
6272
6246
  client_identity?: {
6273
6247
  did: string;
6274
6248
  source: "knowthat.ai" | "kta-lookup" | "generated";