@kya-os/contracts 1.7.11 → 1.7.13

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.
@@ -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;
93
- nonce: string;
94
- audience: string;
95
92
  sessionId: string;
93
+ audience: string;
96
94
  requestHash: string;
97
95
  responseHash: string;
96
+ nonce: string;
97
+ ts: number;
98
98
  scopeId?: string | undefined;
99
- delegationRef?: string | undefined;
100
99
  clientDid?: string | undefined;
100
+ delegationRef?: string | undefined;
101
101
  }, {
102
102
  did: string;
103
103
  kid: string;
104
- ts: number;
105
- nonce: string;
106
- audience: string;
107
104
  sessionId: string;
105
+ audience: string;
108
106
  requestHash: string;
109
107
  responseHash: string;
108
+ nonce: string;
109
+ ts: number;
110
110
  scopeId?: string | undefined;
111
- delegationRef?: string | undefined;
112
111
  clientDid?: string | undefined;
112
+ delegationRef?: 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;
120
- nonce: string;
121
- audience: string;
122
119
  sessionId: string;
120
+ audience: string;
123
121
  requestHash: string;
124
122
  responseHash: string;
123
+ nonce: string;
124
+ ts: number;
125
125
  scopeId?: string | undefined;
126
- delegationRef?: string | undefined;
127
126
  clientDid?: string | undefined;
127
+ delegationRef?: string | undefined;
128
128
  };
129
129
  }, {
130
130
  jws: string;
131
131
  meta: {
132
132
  did: string;
133
133
  kid: string;
134
- ts: number;
135
- nonce: string;
136
- audience: string;
137
134
  sessionId: string;
135
+ audience: string;
138
136
  requestHash: string;
139
137
  responseHash: string;
138
+ nonce: string;
139
+ ts: number;
140
140
  scopeId?: string | undefined;
141
- delegationRef?: string | undefined;
142
141
  clientDid?: string | undefined;
142
+ delegationRef?: string | undefined;
143
143
  };
144
144
  }>, "many">;
145
145
  context: z.ZodOptional<z.ZodObject<{
@@ -185,37 +185,37 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
185
185
  identifier: string;
186
186
  }>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
- sessionId: string;
189
188
  scopes: string[];
190
- timestamp: number;
189
+ sessionId: string;
191
190
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
191
+ timestamp: number;
192
192
  agentDid: string;
193
193
  targetTools: string[];
194
194
  projectId: string;
195
195
  userDid?: string | undefined;
196
- delegationId?: string | undefined;
197
- termsAccepted?: boolean | undefined;
198
- credentialStatus?: "present" | "required" | "obtained" | undefined;
199
196
  oauthIdentity?: {
200
197
  provider: string;
201
198
  identifier: string;
202
199
  } | undefined;
200
+ delegationId?: string | undefined;
201
+ termsAccepted?: boolean | undefined;
202
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
203
203
  }, {
204
- sessionId: string;
205
204
  scopes: string[];
206
- timestamp: number;
205
+ sessionId: string;
207
206
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
207
+ timestamp: number;
208
208
  agentDid: string;
209
209
  targetTools: string[];
210
210
  projectId: string;
211
211
  userDid?: string | undefined;
212
- delegationId?: string | undefined;
213
- termsAccepted?: boolean | undefined;
214
- credentialStatus?: "present" | "required" | "obtained" | undefined;
215
212
  oauthIdentity?: {
216
213
  provider: string;
217
214
  identifier: string;
218
215
  } | undefined;
216
+ delegationId?: string | undefined;
217
+ termsAccepted?: boolean | undefined;
218
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
219
219
  }>, "many">>;
220
220
  mcpServerUrl: z.ZodOptional<z.ZodString>;
221
221
  }, "strip", z.ZodTypeAny, {
@@ -227,21 +227,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
227
227
  userIdentifier?: string | undefined;
228
228
  }[] | undefined;
229
229
  consentEvents?: {
230
- sessionId: string;
231
230
  scopes: string[];
232
- timestamp: number;
231
+ sessionId: string;
233
232
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
233
+ timestamp: number;
234
234
  agentDid: string;
235
235
  targetTools: string[];
236
236
  projectId: string;
237
237
  userDid?: string | undefined;
238
- delegationId?: string | undefined;
239
- termsAccepted?: boolean | undefined;
240
- credentialStatus?: "present" | "required" | "obtained" | undefined;
241
238
  oauthIdentity?: {
242
239
  provider: string;
243
240
  identifier: string;
244
241
  } | undefined;
242
+ delegationId?: string | undefined;
243
+ termsAccepted?: boolean | undefined;
244
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
245
245
  }[] | undefined;
246
246
  mcpServerUrl?: string | undefined;
247
247
  }, {
@@ -253,21 +253,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
253
253
  userIdentifier?: string | undefined;
254
254
  }[] | undefined;
255
255
  consentEvents?: {
256
- sessionId: string;
257
256
  scopes: string[];
258
- timestamp: number;
257
+ sessionId: string;
259
258
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
259
+ timestamp: number;
260
260
  agentDid: string;
261
261
  targetTools: string[];
262
262
  projectId: string;
263
263
  userDid?: string | undefined;
264
- delegationId?: string | undefined;
265
- termsAccepted?: boolean | undefined;
266
- credentialStatus?: "present" | "required" | "obtained" | undefined;
267
264
  oauthIdentity?: {
268
265
  provider: string;
269
266
  identifier: string;
270
267
  } | undefined;
268
+ delegationId?: string | undefined;
269
+ termsAccepted?: boolean | undefined;
270
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
271
271
  }[] | undefined;
272
272
  mcpServerUrl?: string | undefined;
273
273
  }>>;
@@ -278,15 +278,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
278
278
  meta: {
279
279
  did: string;
280
280
  kid: string;
281
- ts: number;
282
- nonce: string;
283
- audience: string;
284
281
  sessionId: string;
282
+ audience: string;
285
283
  requestHash: string;
286
284
  responseHash: string;
285
+ nonce: string;
286
+ ts: number;
287
287
  scopeId?: string | undefined;
288
- delegationRef?: string | undefined;
289
288
  clientDid?: string | undefined;
289
+ delegationRef?: string | undefined;
290
290
  };
291
291
  }[];
292
292
  delegation_id?: string | null | undefined;
@@ -299,21 +299,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
299
299
  userIdentifier?: string | undefined;
300
300
  }[] | undefined;
301
301
  consentEvents?: {
302
- sessionId: string;
303
302
  scopes: string[];
304
- timestamp: number;
303
+ sessionId: string;
305
304
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
305
+ timestamp: number;
306
306
  agentDid: string;
307
307
  targetTools: string[];
308
308
  projectId: string;
309
309
  userDid?: string | undefined;
310
- delegationId?: string | undefined;
311
- termsAccepted?: boolean | undefined;
312
- credentialStatus?: "present" | "required" | "obtained" | undefined;
313
310
  oauthIdentity?: {
314
311
  provider: string;
315
312
  identifier: string;
316
313
  } | undefined;
314
+ delegationId?: string | undefined;
315
+ termsAccepted?: boolean | undefined;
316
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
317
317
  }[] | undefined;
318
318
  mcpServerUrl?: string | undefined;
319
319
  } | undefined;
@@ -324,15 +324,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
324
324
  meta: {
325
325
  did: string;
326
326
  kid: string;
327
- ts: number;
328
- nonce: string;
329
- audience: string;
330
327
  sessionId: string;
328
+ audience: string;
331
329
  requestHash: string;
332
330
  responseHash: string;
331
+ nonce: string;
332
+ ts: number;
333
333
  scopeId?: string | undefined;
334
- delegationRef?: string | undefined;
335
334
  clientDid?: string | undefined;
335
+ delegationRef?: string | undefined;
336
336
  };
337
337
  }[];
338
338
  delegation_id?: string | null | undefined;
@@ -345,21 +345,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
345
345
  userIdentifier?: string | undefined;
346
346
  }[] | undefined;
347
347
  consentEvents?: {
348
- sessionId: string;
349
348
  scopes: string[];
350
- timestamp: number;
349
+ sessionId: string;
351
350
  eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
351
+ timestamp: number;
352
352
  agentDid: string;
353
353
  targetTools: string[];
354
354
  projectId: string;
355
355
  userDid?: string | undefined;
356
- delegationId?: string | undefined;
357
- termsAccepted?: boolean | undefined;
358
- credentialStatus?: "present" | "required" | "obtained" | undefined;
359
356
  oauthIdentity?: {
360
357
  provider: string;
361
358
  identifier: string;
362
359
  } | undefined;
360
+ delegationId?: string | undefined;
361
+ termsAccepted?: boolean | undefined;
362
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
363
363
  }[] | undefined;
364
364
  mcpServerUrl?: string | undefined;
365
365
  } | undefined;
@@ -443,15 +443,15 @@ export declare const delegationCredentialSchema: z.ZodObject<{
443
443
  created_at: z.ZodNumber;
444
444
  credential_jwt: z.ZodOptional<z.ZodString>;
445
445
  authorization: z.ZodObject<{
446
- type: z.ZodEnum<["oauth", "credential", "none"]>;
446
+ type: z.ZodEnum<["oauth", "password", "credential", "none"]>;
447
447
  provider: z.ZodOptional<z.ZodString>;
448
448
  credentialType: z.ZodOptional<z.ZodString>;
449
449
  }, "strip", z.ZodTypeAny, {
450
- type: "oauth" | "credential" | "none";
450
+ type: "credential" | "oauth" | "password" | "none";
451
451
  provider?: string | undefined;
452
452
  credentialType?: string | undefined;
453
453
  }, {
454
- type: "oauth" | "credential" | "none";
454
+ type: "credential" | "oauth" | "password" | "none";
455
455
  provider?: string | undefined;
456
456
  credentialType?: string | undefined;
457
457
  }>;
@@ -462,7 +462,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
462
462
  issued_at: number;
463
463
  created_at: number;
464
464
  authorization: {
465
- type: "oauth" | "credential" | "none";
465
+ type: "credential" | "oauth" | "password" | "none";
466
466
  provider?: string | undefined;
467
467
  credentialType?: string | undefined;
468
468
  };
@@ -477,7 +477,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
477
477
  issued_at: number;
478
478
  created_at: number;
479
479
  authorization: {
480
- type: "oauth" | "credential" | "none";
480
+ type: "credential" | "oauth" | "password" | "none";
481
481
  provider?: string | undefined;
482
482
  credentialType?: string | undefined;
483
483
  };
@@ -1782,15 +1782,15 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1782
1782
  created_at: z.ZodNumber;
1783
1783
  credential_jwt: z.ZodOptional<z.ZodString>;
1784
1784
  authorization: z.ZodObject<{
1785
- type: z.ZodEnum<["oauth", "credential", "none"]>;
1785
+ type: z.ZodEnum<["oauth", "password", "credential", "none"]>;
1786
1786
  provider: z.ZodOptional<z.ZodString>;
1787
1787
  credentialType: z.ZodOptional<z.ZodString>;
1788
1788
  }, "strip", z.ZodTypeAny, {
1789
- type: "oauth" | "credential" | "none";
1789
+ type: "credential" | "oauth" | "password" | "none";
1790
1790
  provider?: string | undefined;
1791
1791
  credentialType?: string | undefined;
1792
1792
  }, {
1793
- type: "oauth" | "credential" | "none";
1793
+ type: "credential" | "oauth" | "password" | "none";
1794
1794
  provider?: string | undefined;
1795
1795
  credentialType?: string | undefined;
1796
1796
  }>;
@@ -1801,7 +1801,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1801
1801
  issued_at: number;
1802
1802
  created_at: number;
1803
1803
  authorization: {
1804
- type: "oauth" | "credential" | "none";
1804
+ type: "credential" | "oauth" | "password" | "none";
1805
1805
  provider?: string | undefined;
1806
1806
  credentialType?: string | undefined;
1807
1807
  };
@@ -1816,7 +1816,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1816
1816
  issued_at: number;
1817
1817
  created_at: number;
1818
1818
  authorization: {
1819
- type: "oauth" | "credential" | "none";
1819
+ type: "credential" | "oauth" | "password" | "none";
1820
1820
  provider?: string | undefined;
1821
1821
  credentialType?: string | undefined;
1822
1822
  };
@@ -1841,11 +1841,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1841
1841
  reason: z.ZodOptional<z.ZodString>;
1842
1842
  }, "strip", z.ZodTypeAny, {
1843
1843
  valid: boolean;
1844
- error?: {
1845
- code: string;
1846
- message: string;
1847
- details?: Record<string, unknown> | undefined;
1848
- } | undefined;
1849
1844
  credential?: {
1850
1845
  scopes: string[];
1851
1846
  agent_did: string;
@@ -1853,7 +1848,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1853
1848
  issued_at: number;
1854
1849
  created_at: number;
1855
1850
  authorization: {
1856
- type: "oauth" | "credential" | "none";
1851
+ type: "credential" | "oauth" | "password" | "none";
1857
1852
  provider?: string | undefined;
1858
1853
  credentialType?: string | undefined;
1859
1854
  };
@@ -1862,6 +1857,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1862
1857
  user_identifier?: string | undefined;
1863
1858
  credential_jwt?: string | undefined;
1864
1859
  } | undefined;
1860
+ error?: {
1861
+ code: string;
1862
+ message: string;
1863
+ details?: Record<string, unknown> | undefined;
1864
+ } | undefined;
1865
1865
  delegation_id?: string | undefined;
1866
1866
  delegation?: z.objectOutputType<{
1867
1867
  id: z.ZodString;
@@ -2277,11 +2277,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2277
2277
  reason?: string | undefined;
2278
2278
  }, {
2279
2279
  valid: boolean;
2280
- error?: {
2281
- code: string;
2282
- message: string;
2283
- details?: Record<string, unknown> | undefined;
2284
- } | undefined;
2285
2280
  credential?: {
2286
2281
  scopes: string[];
2287
2282
  agent_did: string;
@@ -2289,7 +2284,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2289
2284
  issued_at: number;
2290
2285
  created_at: number;
2291
2286
  authorization: {
2292
- type: "oauth" | "credential" | "none";
2287
+ type: "credential" | "oauth" | "password" | "none";
2293
2288
  provider?: string | undefined;
2294
2289
  credentialType?: string | undefined;
2295
2290
  };
@@ -2298,6 +2293,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2298
2293
  user_identifier?: string | undefined;
2299
2294
  credential_jwt?: string | undefined;
2300
2295
  } | undefined;
2296
+ error?: {
2297
+ code: string;
2298
+ message: string;
2299
+ details?: Record<string, unknown> | undefined;
2300
+ } | undefined;
2301
2301
  delegation_id?: string | undefined;
2302
2302
  delegation?: z.objectInputType<{
2303
2303
  id: z.ZodString;
@@ -3962,15 +3962,15 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3962
3962
  created_at: z.ZodNumber;
3963
3963
  credential_jwt: z.ZodOptional<z.ZodString>;
3964
3964
  authorization: z.ZodObject<{
3965
- type: z.ZodEnum<["oauth", "credential", "none"]>;
3965
+ type: z.ZodEnum<["oauth", "password", "credential", "none"]>;
3966
3966
  provider: z.ZodOptional<z.ZodString>;
3967
3967
  credentialType: z.ZodOptional<z.ZodString>;
3968
3968
  }, "strip", z.ZodTypeAny, {
3969
- type: "oauth" | "credential" | "none";
3969
+ type: "credential" | "oauth" | "password" | "none";
3970
3970
  provider?: string | undefined;
3971
3971
  credentialType?: string | undefined;
3972
3972
  }, {
3973
- type: "oauth" | "credential" | "none";
3973
+ type: "credential" | "oauth" | "password" | "none";
3974
3974
  provider?: string | undefined;
3975
3975
  credentialType?: string | undefined;
3976
3976
  }>;
@@ -3981,7 +3981,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3981
3981
  issued_at: number;
3982
3982
  created_at: number;
3983
3983
  authorization: {
3984
- type: "oauth" | "credential" | "none";
3984
+ type: "credential" | "oauth" | "password" | "none";
3985
3985
  provider?: string | undefined;
3986
3986
  credentialType?: string | undefined;
3987
3987
  };
@@ -3996,7 +3996,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3996
3996
  issued_at: number;
3997
3997
  created_at: number;
3998
3998
  authorization: {
3999
- type: "oauth" | "credential" | "none";
3999
+ type: "credential" | "oauth" | "password" | "none";
4000
4000
  provider?: string | undefined;
4001
4001
  credentialType?: string | undefined;
4002
4002
  };
@@ -4021,11 +4021,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4021
4021
  reason: z.ZodOptional<z.ZodString>;
4022
4022
  }, "strip", z.ZodTypeAny, {
4023
4023
  valid: boolean;
4024
- error?: {
4025
- code: string;
4026
- message: string;
4027
- details?: Record<string, unknown> | undefined;
4028
- } | undefined;
4029
4024
  credential?: {
4030
4025
  scopes: string[];
4031
4026
  agent_did: string;
@@ -4033,7 +4028,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4033
4028
  issued_at: number;
4034
4029
  created_at: number;
4035
4030
  authorization: {
4036
- type: "oauth" | "credential" | "none";
4031
+ type: "credential" | "oauth" | "password" | "none";
4037
4032
  provider?: string | undefined;
4038
4033
  credentialType?: string | undefined;
4039
4034
  };
@@ -4042,6 +4037,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4042
4037
  user_identifier?: string | undefined;
4043
4038
  credential_jwt?: string | undefined;
4044
4039
  } | undefined;
4040
+ error?: {
4041
+ code: string;
4042
+ message: string;
4043
+ details?: Record<string, unknown> | undefined;
4044
+ } | undefined;
4045
4045
  delegation_id?: string | undefined;
4046
4046
  delegation?: z.objectOutputType<{
4047
4047
  id: z.ZodString;
@@ -4457,11 +4457,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4457
4457
  reason?: string | undefined;
4458
4458
  }, {
4459
4459
  valid: boolean;
4460
- error?: {
4461
- code: string;
4462
- message: string;
4463
- details?: Record<string, unknown> | undefined;
4464
- } | undefined;
4465
4460
  credential?: {
4466
4461
  scopes: string[];
4467
4462
  agent_did: string;
@@ -4469,7 +4464,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4469
4464
  issued_at: number;
4470
4465
  created_at: number;
4471
4466
  authorization: {
4472
- type: "oauth" | "credential" | "none";
4467
+ type: "credential" | "oauth" | "password" | "none";
4473
4468
  provider?: string | undefined;
4474
4469
  credentialType?: string | undefined;
4475
4470
  };
@@ -4478,6 +4473,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4478
4473
  user_identifier?: string | undefined;
4479
4474
  credential_jwt?: string | undefined;
4480
4475
  } | undefined;
4476
+ error?: {
4477
+ code: string;
4478
+ message: string;
4479
+ details?: Record<string, unknown> | undefined;
4480
+ } | undefined;
4481
4481
  delegation_id?: string | undefined;
4482
4482
  delegation?: z.objectInputType<{
4483
4483
  id: z.ZodString;
@@ -4896,21 +4896,16 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4896
4896
  requestId: z.ZodString;
4897
4897
  timestamp: z.ZodString;
4898
4898
  }, "strip", z.ZodTypeAny, {
4899
- requestId: string;
4900
4899
  timestamp: string;
4901
- }, {
4902
4900
  requestId: string;
4901
+ }, {
4903
4902
  timestamp: string;
4903
+ requestId: string;
4904
4904
  }>>;
4905
4905
  }, "strip", z.ZodTypeAny, {
4906
4906
  success: boolean;
4907
4907
  data: {
4908
4908
  valid: boolean;
4909
- error?: {
4910
- code: string;
4911
- message: string;
4912
- details?: Record<string, unknown> | undefined;
4913
- } | undefined;
4914
4909
  credential?: {
4915
4910
  scopes: string[];
4916
4911
  agent_did: string;
@@ -4918,7 +4913,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4918
4913
  issued_at: number;
4919
4914
  created_at: number;
4920
4915
  authorization: {
4921
- type: "oauth" | "credential" | "none";
4916
+ type: "credential" | "oauth" | "password" | "none";
4922
4917
  provider?: string | undefined;
4923
4918
  credentialType?: string | undefined;
4924
4919
  };
@@ -4927,6 +4922,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4927
4922
  user_identifier?: string | undefined;
4928
4923
  credential_jwt?: string | undefined;
4929
4924
  } | undefined;
4925
+ error?: {
4926
+ code: string;
4927
+ message: string;
4928
+ details?: Record<string, unknown> | undefined;
4929
+ } | undefined;
4930
4930
  delegation_id?: string | undefined;
4931
4931
  delegation?: z.objectOutputType<{
4932
4932
  id: z.ZodString;
@@ -5342,18 +5342,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5342
5342
  reason?: string | undefined;
5343
5343
  };
5344
5344
  metadata?: {
5345
- requestId: string;
5346
5345
  timestamp: string;
5346
+ requestId: string;
5347
5347
  } | undefined;
5348
5348
  }, {
5349
5349
  success: boolean;
5350
5350
  data: {
5351
5351
  valid: boolean;
5352
- error?: {
5353
- code: string;
5354
- message: string;
5355
- details?: Record<string, unknown> | undefined;
5356
- } | undefined;
5357
5352
  credential?: {
5358
5353
  scopes: string[];
5359
5354
  agent_did: string;
@@ -5361,7 +5356,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5361
5356
  issued_at: number;
5362
5357
  created_at: number;
5363
5358
  authorization: {
5364
- type: "oauth" | "credential" | "none";
5359
+ type: "credential" | "oauth" | "password" | "none";
5365
5360
  provider?: string | undefined;
5366
5361
  credentialType?: string | undefined;
5367
5362
  };
@@ -5370,6 +5365,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5370
5365
  user_identifier?: string | undefined;
5371
5366
  credential_jwt?: string | undefined;
5372
5367
  } | undefined;
5368
+ error?: {
5369
+ code: string;
5370
+ message: string;
5371
+ details?: Record<string, unknown> | undefined;
5372
+ } | undefined;
5373
5373
  delegation_id?: string | undefined;
5374
5374
  delegation?: z.objectInputType<{
5375
5375
  id: z.ZodString;
@@ -5785,8 +5785,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5785
5785
  reason?: string | undefined;
5786
5786
  };
5787
5787
  metadata?: {
5788
- requestId: string;
5789
5788
  timestamp: string;
5789
+ requestId: string;
5790
5790
  } | undefined;
5791
5791
  }>;
5792
5792
  /**
@@ -5959,11 +5959,11 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
5959
5959
  requestId: z.ZodString;
5960
5960
  timestamp: z.ZodString;
5961
5961
  }, "strip", z.ZodTypeAny, {
5962
- requestId: string;
5963
5962
  timestamp: string;
5964
- }, {
5965
5963
  requestId: string;
5964
+ }, {
5966
5965
  timestamp: string;
5966
+ requestId: string;
5967
5967
  }>>;
5968
5968
  }, "strip", z.ZodTypeAny, {
5969
5969
  success: boolean;
@@ -5985,8 +5985,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
5985
5985
  } | undefined;
5986
5986
  };
5987
5987
  metadata?: {
5988
- requestId: string;
5989
5988
  timestamp: string;
5989
+ requestId: string;
5990
5990
  } | undefined;
5991
5991
  }, {
5992
5992
  success: boolean;
@@ -6008,8 +6008,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
6008
6008
  } | undefined;
6009
6009
  };
6010
6010
  metadata?: {
6011
- requestId: string;
6012
6011
  timestamp: string;
6012
+ requestId: string;
6013
6013
  } | undefined;
6014
6014
  }>;
6015
6015
  /**
@@ -6163,11 +6163,11 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6163
6163
  requestId: z.ZodString;
6164
6164
  timestamp: z.ZodString;
6165
6165
  }, "strip", z.ZodTypeAny, {
6166
- requestId: string;
6167
6166
  timestamp: string;
6168
- }, {
6169
6167
  requestId: string;
6168
+ }, {
6170
6169
  timestamp: string;
6170
+ requestId: string;
6171
6171
  }>>;
6172
6172
  }, "strip", z.ZodTypeAny, {
6173
6173
  success: boolean;
@@ -6186,8 +6186,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6186
6186
  expires_in?: number | undefined;
6187
6187
  };
6188
6188
  metadata?: {
6189
- requestId: string;
6190
6189
  timestamp: string;
6190
+ requestId: string;
6191
6191
  } | undefined;
6192
6192
  }, {
6193
6193
  success: boolean;
@@ -6206,8 +6206,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
6206
6206
  expires_in?: number | undefined;
6207
6207
  };
6208
6208
  metadata?: {
6209
- requestId: string;
6210
6209
  timestamp: string;
6210
+ requestId: string;
6211
6211
  } | undefined;
6212
6212
  }>;
6213
6213
  /**
@@ -6258,11 +6258,11 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6258
6258
  requestId: z.ZodString;
6259
6259
  timestamp: z.ZodString;
6260
6260
  }, "strip", z.ZodTypeAny, {
6261
- requestId: string;
6262
6261
  timestamp: string;
6263
- }, {
6264
6262
  requestId: string;
6263
+ }, {
6265
6264
  timestamp: string;
6265
+ requestId: string;
6266
6266
  }>>;
6267
6267
  }, "strip", z.ZodTypeAny, {
6268
6268
  success: boolean;
@@ -6272,8 +6272,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6272
6272
  revoked_at: number;
6273
6273
  };
6274
6274
  metadata?: {
6275
- requestId: string;
6276
6275
  timestamp: string;
6276
+ requestId: string;
6277
6277
  } | undefined;
6278
6278
  }, {
6279
6279
  success: boolean;
@@ -6283,8 +6283,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6283
6283
  revoked_at: number;
6284
6284
  };
6285
6285
  metadata?: {
6286
- requestId: string;
6287
6286
  timestamp: string;
6287
+ requestId: string;
6288
6288
  } | undefined;
6289
6289
  }>;
6290
6290
  /**
@@ -6299,15 +6299,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
6299
6299
  }, "strip", z.ZodTypeAny, {
6300
6300
  name: string;
6301
6301
  version?: string | undefined;
6302
- protocol_version?: string | undefined;
6303
6302
  platform?: string | undefined;
6304
6303
  vendor?: string | undefined;
6304
+ protocol_version?: string | undefined;
6305
6305
  }, {
6306
6306
  name: string;
6307
6307
  version?: string | undefined;
6308
- protocol_version?: string | undefined;
6309
6308
  platform?: string | undefined;
6310
6309
  vendor?: string | undefined;
6310
+ protocol_version?: string | undefined;
6311
6311
  }>;
6312
6312
  /**
6313
6313
  * Session client identity schema
@@ -6317,13 +6317,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
6317
6317
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6318
6318
  registered: z.ZodBoolean;
6319
6319
  }, "strip", z.ZodTypeAny, {
6320
+ registered: boolean;
6320
6321
  did: string;
6321
6322
  source: "knowthat.ai" | "kta-lookup" | "generated";
6322
- registered: boolean;
6323
6323
  }, {
6324
+ registered: boolean;
6324
6325
  did: string;
6325
6326
  source: "knowthat.ai" | "kta-lookup" | "generated";
6326
- registered: boolean;
6327
6327
  }>;
6328
6328
  /**
6329
6329
  * Register session request schema
@@ -6343,28 +6343,28 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6343
6343
  }, "strip", z.ZodTypeAny, {
6344
6344
  name: string;
6345
6345
  version?: string | undefined;
6346
- protocol_version?: string | undefined;
6347
6346
  platform?: string | undefined;
6348
6347
  vendor?: string | undefined;
6348
+ protocol_version?: string | undefined;
6349
6349
  }, {
6350
6350
  name: string;
6351
6351
  version?: string | undefined;
6352
- protocol_version?: string | undefined;
6353
6352
  platform?: string | undefined;
6354
6353
  vendor?: string | undefined;
6354
+ protocol_version?: string | undefined;
6355
6355
  }>;
6356
6356
  client_identity: z.ZodOptional<z.ZodObject<{
6357
6357
  did: z.ZodString;
6358
6358
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6359
6359
  registered: z.ZodBoolean;
6360
6360
  }, "strip", z.ZodTypeAny, {
6361
+ registered: boolean;
6361
6362
  did: string;
6362
6363
  source: "knowthat.ai" | "kta-lookup" | "generated";
6363
- registered: boolean;
6364
6364
  }, {
6365
+ registered: boolean;
6365
6366
  did: string;
6366
6367
  source: "knowthat.ai" | "kta-lookup" | "generated";
6367
- registered: boolean;
6368
6368
  }>>;
6369
6369
  server_did: z.ZodOptional<z.ZodString>;
6370
6370
  ttl_minutes: z.ZodOptional<z.ZodNumber>;
@@ -6375,16 +6375,16 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6375
6375
  client_info: {
6376
6376
  name: string;
6377
6377
  version?: string | undefined;
6378
- protocol_version?: string | undefined;
6379
6378
  platform?: string | undefined;
6380
6379
  vendor?: string | undefined;
6380
+ protocol_version?: string | undefined;
6381
6381
  };
6382
6382
  project_id: string;
6383
6383
  agent_name?: string | undefined;
6384
6384
  client_identity?: {
6385
+ registered: boolean;
6385
6386
  did: string;
6386
6387
  source: "knowthat.ai" | "kta-lookup" | "generated";
6387
- registered: boolean;
6388
6388
  } | undefined;
6389
6389
  server_did?: string | undefined;
6390
6390
  ttl_minutes?: number | undefined;
@@ -6395,16 +6395,16 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6395
6395
  client_info: {
6396
6396
  name: string;
6397
6397
  version?: string | undefined;
6398
- protocol_version?: string | undefined;
6399
6398
  platform?: string | undefined;
6400
6399
  vendor?: string | undefined;
6400
+ protocol_version?: string | undefined;
6401
6401
  };
6402
6402
  project_id: string;
6403
6403
  agent_name?: string | undefined;
6404
6404
  client_identity?: {
6405
+ registered: boolean;
6405
6406
  did: string;
6406
6407
  source: "knowthat.ai" | "kta-lookup" | "generated";
6407
- registered: boolean;
6408
6408
  } | undefined;
6409
6409
  server_did?: string | undefined;
6410
6410
  ttl_minutes?: number | undefined;
@@ -6417,13 +6417,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
6417
6417
  registered: z.ZodBoolean;
6418
6418
  created_at: z.ZodString;
6419
6419
  }, "strip", z.ZodTypeAny, {
6420
+ registered: boolean;
6420
6421
  session_id: string;
6421
6422
  created_at: string;
6422
- registered: boolean;
6423
6423
  }, {
6424
+ registered: boolean;
6424
6425
  session_id: string;
6425
6426
  created_at: string;
6426
- registered: boolean;
6427
6427
  }>;
6428
6428
  /**
6429
6429
  * Wrapped session registration response schema
@@ -6435,44 +6435,44 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6435
6435
  registered: z.ZodBoolean;
6436
6436
  created_at: z.ZodString;
6437
6437
  }, "strip", z.ZodTypeAny, {
6438
+ registered: boolean;
6438
6439
  session_id: string;
6439
6440
  created_at: string;
6440
- registered: boolean;
6441
6441
  }, {
6442
+ registered: boolean;
6442
6443
  session_id: string;
6443
6444
  created_at: string;
6444
- registered: boolean;
6445
6445
  }>;
6446
6446
  metadata: z.ZodOptional<z.ZodObject<{
6447
6447
  requestId: z.ZodString;
6448
6448
  timestamp: z.ZodString;
6449
6449
  }, "strip", z.ZodTypeAny, {
6450
- requestId: string;
6451
6450
  timestamp: string;
6452
- }, {
6453
6451
  requestId: string;
6452
+ }, {
6454
6453
  timestamp: string;
6454
+ requestId: string;
6455
6455
  }>>;
6456
6456
  }, "strip", z.ZodTypeAny, {
6457
6457
  success: boolean;
6458
6458
  data: {
6459
+ registered: boolean;
6459
6460
  session_id: string;
6460
6461
  created_at: string;
6461
- registered: boolean;
6462
6462
  };
6463
6463
  metadata?: {
6464
- requestId: string;
6465
6464
  timestamp: string;
6465
+ requestId: string;
6466
6466
  } | undefined;
6467
6467
  }, {
6468
6468
  success: boolean;
6469
6469
  data: {
6470
+ registered: boolean;
6470
6471
  session_id: string;
6471
6472
  created_at: string;
6472
- registered: boolean;
6473
6473
  };
6474
6474
  metadata?: {
6475
- requestId: string;
6476
6475
  timestamp: string;
6476
+ requestId: string;
6477
6477
  } | undefined;
6478
6478
  }>;