@kya-os/contracts 1.7.15 → 1.7.16

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.
@@ -87,59 +87,59 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
87
87
  delegationRef: z.ZodOptional<z.ZodString>;
88
88
  clientDid: z.ZodOptional<z.ZodString>;
89
89
  }, "strip", z.ZodTypeAny, {
90
+ audience: string;
90
91
  did: string;
91
92
  kid: string;
93
+ ts: number;
92
94
  nonce: string;
93
- audience: string;
94
95
  sessionId: string;
95
- ts: number;
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
+ audience: string;
102
103
  did: string;
103
104
  kid: string;
105
+ ts: number;
104
106
  nonce: string;
105
- audience: string;
106
107
  sessionId: string;
107
- ts: number;
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
+ audience: string;
117
118
  did: string;
118
119
  kid: string;
120
+ ts: number;
119
121
  nonce: string;
120
- audience: string;
121
122
  sessionId: string;
122
- ts: number;
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
+ audience: string;
132
133
  did: string;
133
134
  kid: string;
135
+ ts: number;
134
136
  nonce: string;
135
- audience: string;
136
137
  sessionId: string;
137
- ts: number;
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<{
@@ -186,36 +186,36 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
186
186
  }>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
188
  scopes: string[];
189
- timestamp: number;
190
- agentDid: string;
191
189
  sessionId: string;
192
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
+ agentDid: string;
193
193
  targetTools: string[];
194
194
  projectId: string;
195
+ delegationId?: string | undefined;
196
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
195
197
  userDid?: string | undefined;
198
+ termsAccepted?: boolean | undefined;
196
199
  oauthIdentity?: {
197
200
  provider: string;
198
201
  identifier: string;
199
202
  } | undefined;
200
- credentialStatus?: "required" | "present" | "obtained" | undefined;
201
- delegationId?: string | undefined;
202
- termsAccepted?: boolean | undefined;
203
203
  }, {
204
204
  scopes: string[];
205
- timestamp: number;
206
- agentDid: string;
207
205
  sessionId: string;
208
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
+ agentDid: string;
209
209
  targetTools: string[];
210
210
  projectId: string;
211
+ delegationId?: string | undefined;
212
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
211
213
  userDid?: string | undefined;
214
+ termsAccepted?: boolean | undefined;
212
215
  oauthIdentity?: {
213
216
  provider: string;
214
217
  identifier: string;
215
218
  } | undefined;
216
- credentialStatus?: "required" | "present" | "obtained" | undefined;
217
- delegationId?: string | undefined;
218
- termsAccepted?: boolean | undefined;
219
219
  }>, "many">>;
220
220
  mcpServerUrl: z.ZodOptional<z.ZodString>;
221
221
  }, "strip", z.ZodTypeAny, {
@@ -226,24 +226,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
226
226
  result?: unknown;
227
227
  userIdentifier?: string | undefined;
228
228
  }[] | undefined;
229
- mcpServerUrl?: string | undefined;
230
229
  consentEvents?: {
231
230
  scopes: string[];
232
- timestamp: number;
233
- agentDid: string;
234
231
  sessionId: string;
235
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
+ agentDid: string;
236
235
  targetTools: string[];
237
236
  projectId: string;
237
+ delegationId?: string | undefined;
238
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
238
239
  userDid?: string | undefined;
240
+ termsAccepted?: boolean | undefined;
239
241
  oauthIdentity?: {
240
242
  provider: string;
241
243
  identifier: string;
242
244
  } | undefined;
243
- credentialStatus?: "required" | "present" | "obtained" | undefined;
244
- delegationId?: string | undefined;
245
- termsAccepted?: boolean | undefined;
246
245
  }[] | undefined;
246
+ mcpServerUrl?: string | undefined;
247
247
  }, {
248
248
  toolCalls?: {
249
249
  scopeId: string;
@@ -252,41 +252,41 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
252
252
  result?: unknown;
253
253
  userIdentifier?: string | undefined;
254
254
  }[] | undefined;
255
- mcpServerUrl?: string | undefined;
256
255
  consentEvents?: {
257
256
  scopes: string[];
258
- timestamp: number;
259
- agentDid: string;
260
257
  sessionId: string;
261
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
+ agentDid: string;
262
261
  targetTools: string[];
263
262
  projectId: string;
263
+ delegationId?: string | undefined;
264
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
264
265
  userDid?: string | undefined;
266
+ termsAccepted?: boolean | undefined;
265
267
  oauthIdentity?: {
266
268
  provider: string;
267
269
  identifier: string;
268
270
  } | undefined;
269
- credentialStatus?: "required" | "present" | "obtained" | undefined;
270
- delegationId?: string | undefined;
271
- termsAccepted?: boolean | undefined;
272
271
  }[] | undefined;
272
+ mcpServerUrl?: string | undefined;
273
273
  }>>;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  session_id: string;
276
276
  proofs: {
277
277
  jws: string;
278
278
  meta: {
279
+ audience: string;
279
280
  did: string;
280
281
  kid: string;
282
+ ts: number;
281
283
  nonce: string;
282
- audience: string;
283
284
  sessionId: string;
284
- ts: number;
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;
@@ -298,41 +298,41 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
298
298
  result?: unknown;
299
299
  userIdentifier?: string | undefined;
300
300
  }[] | undefined;
301
- mcpServerUrl?: string | undefined;
302
301
  consentEvents?: {
303
302
  scopes: string[];
304
- timestamp: number;
305
- agentDid: string;
306
303
  sessionId: string;
307
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
+ agentDid: string;
308
307
  targetTools: string[];
309
308
  projectId: string;
309
+ delegationId?: string | undefined;
310
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
310
311
  userDid?: string | undefined;
312
+ termsAccepted?: boolean | undefined;
311
313
  oauthIdentity?: {
312
314
  provider: string;
313
315
  identifier: string;
314
316
  } | undefined;
315
- credentialStatus?: "required" | "present" | "obtained" | undefined;
316
- delegationId?: string | undefined;
317
- termsAccepted?: boolean | undefined;
318
317
  }[] | undefined;
318
+ mcpServerUrl?: string | undefined;
319
319
  } | undefined;
320
320
  }, {
321
321
  session_id: string;
322
322
  proofs: {
323
323
  jws: string;
324
324
  meta: {
325
+ audience: string;
325
326
  did: string;
326
327
  kid: string;
328
+ ts: number;
327
329
  nonce: string;
328
- audience: string;
329
330
  sessionId: string;
330
- ts: number;
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;
@@ -344,24 +344,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
344
344
  result?: unknown;
345
345
  userIdentifier?: string | undefined;
346
346
  }[] | undefined;
347
- mcpServerUrl?: string | undefined;
348
347
  consentEvents?: {
349
348
  scopes: string[];
350
- timestamp: number;
351
- agentDid: string;
352
349
  sessionId: string;
353
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
+ agentDid: string;
354
353
  targetTools: string[];
355
354
  projectId: string;
355
+ delegationId?: string | undefined;
356
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
356
357
  userDid?: string | undefined;
358
+ termsAccepted?: boolean | undefined;
357
359
  oauthIdentity?: {
358
360
  provider: string;
359
361
  identifier: string;
360
362
  } | undefined;
361
- credentialStatus?: "required" | "present" | "obtained" | undefined;
362
- delegationId?: string | undefined;
363
- termsAccepted?: boolean | undefined;
364
363
  }[] | undefined;
364
+ mcpServerUrl?: string | undefined;
365
365
  } | undefined;
366
366
  }>;
367
367
  /**
@@ -443,44 +443,64 @@ 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", "oauth2", "password", "credential", "none"]>;
446
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "webauthn", "siwe", "none"]>;
447
447
  provider: z.ZodOptional<z.ZodString>;
448
448
  credentialType: z.ZodOptional<z.ZodString>;
449
+ rpId: z.ZodOptional<z.ZodString>;
450
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
451
+ chainId: z.ZodOptional<z.ZodNumber>;
452
+ domain: z.ZodOptional<z.ZodString>;
449
453
  }, "strip", z.ZodTypeAny, {
450
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
454
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
451
455
  provider?: string | undefined;
452
456
  credentialType?: string | undefined;
457
+ rpId?: string | undefined;
458
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
459
+ chainId?: number | undefined;
460
+ domain?: string | undefined;
453
461
  }, {
454
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
462
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
455
463
  provider?: string | undefined;
456
464
  credentialType?: string | undefined;
465
+ rpId?: string | undefined;
466
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
467
+ chainId?: number | undefined;
468
+ domain?: string | undefined;
457
469
  }>;
458
470
  }, "strip", z.ZodTypeAny, {
459
471
  scopes: string[];
460
- agent_did: string;
461
- user_did: string;
462
- issued_at: number;
463
- created_at: number;
464
472
  authorization: {
465
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
473
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
466
474
  provider?: string | undefined;
467
475
  credentialType?: string | undefined;
476
+ rpId?: string | undefined;
477
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
478
+ chainId?: number | undefined;
479
+ domain?: string | undefined;
468
480
  };
481
+ agent_did: string;
482
+ user_did: string;
483
+ issued_at: number;
484
+ created_at: number;
469
485
  constraints?: Record<string, unknown> | undefined;
470
486
  user_id?: string | undefined;
471
487
  user_identifier?: string | undefined;
472
488
  credential_jwt?: string | undefined;
473
489
  }, {
474
490
  scopes: string[];
475
- agent_did: string;
476
- user_did: string;
477
- issued_at: number;
478
- created_at: number;
479
491
  authorization: {
480
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
492
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
481
493
  provider?: string | undefined;
482
494
  credentialType?: string | undefined;
495
+ rpId?: string | undefined;
496
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
497
+ chainId?: number | undefined;
498
+ domain?: string | undefined;
483
499
  };
500
+ agent_did: string;
501
+ user_did: string;
502
+ issued_at: number;
503
+ created_at: number;
484
504
  constraints?: Record<string, unknown> | undefined;
485
505
  user_id?: string | undefined;
486
506
  user_identifier?: string | undefined;
@@ -1782,44 +1802,64 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1782
1802
  created_at: z.ZodNumber;
1783
1803
  credential_jwt: z.ZodOptional<z.ZodString>;
1784
1804
  authorization: z.ZodObject<{
1785
- type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "none"]>;
1805
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "webauthn", "siwe", "none"]>;
1786
1806
  provider: z.ZodOptional<z.ZodString>;
1787
1807
  credentialType: z.ZodOptional<z.ZodString>;
1808
+ rpId: z.ZodOptional<z.ZodString>;
1809
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
1810
+ chainId: z.ZodOptional<z.ZodNumber>;
1811
+ domain: z.ZodOptional<z.ZodString>;
1788
1812
  }, "strip", z.ZodTypeAny, {
1789
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
1813
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1790
1814
  provider?: string | undefined;
1791
1815
  credentialType?: string | undefined;
1816
+ rpId?: string | undefined;
1817
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1818
+ chainId?: number | undefined;
1819
+ domain?: string | undefined;
1792
1820
  }, {
1793
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
1821
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1794
1822
  provider?: string | undefined;
1795
1823
  credentialType?: string | undefined;
1824
+ rpId?: string | undefined;
1825
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1826
+ chainId?: number | undefined;
1827
+ domain?: string | undefined;
1796
1828
  }>;
1797
1829
  }, "strip", z.ZodTypeAny, {
1798
1830
  scopes: string[];
1799
- agent_did: string;
1800
- user_did: string;
1801
- issued_at: number;
1802
- created_at: number;
1803
1831
  authorization: {
1804
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
1832
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1805
1833
  provider?: string | undefined;
1806
1834
  credentialType?: string | undefined;
1835
+ rpId?: string | undefined;
1836
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1837
+ chainId?: number | undefined;
1838
+ domain?: string | undefined;
1807
1839
  };
1840
+ agent_did: string;
1841
+ user_did: string;
1842
+ issued_at: number;
1843
+ created_at: number;
1808
1844
  constraints?: Record<string, unknown> | undefined;
1809
1845
  user_id?: string | undefined;
1810
1846
  user_identifier?: string | undefined;
1811
1847
  credential_jwt?: string | undefined;
1812
1848
  }, {
1813
1849
  scopes: string[];
1814
- agent_did: string;
1815
- user_did: string;
1816
- issued_at: number;
1817
- created_at: number;
1818
1850
  authorization: {
1819
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
1851
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1820
1852
  provider?: string | undefined;
1821
1853
  credentialType?: string | undefined;
1854
+ rpId?: string | undefined;
1855
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1856
+ chainId?: number | undefined;
1857
+ domain?: string | undefined;
1822
1858
  };
1859
+ agent_did: string;
1860
+ user_did: string;
1861
+ issued_at: number;
1862
+ created_at: number;
1823
1863
  constraints?: Record<string, unknown> | undefined;
1824
1864
  user_id?: string | undefined;
1825
1865
  user_identifier?: string | undefined;
@@ -1843,26 +1883,24 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
1843
1883
  valid: boolean;
1844
1884
  credential?: {
1845
1885
  scopes: string[];
1846
- agent_did: string;
1847
- user_did: string;
1848
- issued_at: number;
1849
- created_at: number;
1850
1886
  authorization: {
1851
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
1887
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
1852
1888
  provider?: string | undefined;
1853
1889
  credentialType?: string | undefined;
1890
+ rpId?: string | undefined;
1891
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
1892
+ chainId?: number | undefined;
1893
+ domain?: string | undefined;
1854
1894
  };
1895
+ agent_did: string;
1896
+ user_did: string;
1897
+ issued_at: number;
1898
+ created_at: number;
1855
1899
  constraints?: Record<string, unknown> | undefined;
1856
1900
  user_id?: string | undefined;
1857
1901
  user_identifier?: string | undefined;
1858
1902
  credential_jwt?: string | undefined;
1859
1903
  } | undefined;
1860
- error?: {
1861
- code: string;
1862
- message: string;
1863
- details?: Record<string, unknown> | undefined;
1864
- } | undefined;
1865
- delegation_id?: string | undefined;
1866
1904
  reason?: string | undefined;
1867
1905
  delegation?: z.objectOutputType<{
1868
1906
  id: z.ZodString;
@@ -2275,30 +2313,34 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2275
2313
  revokedReason: z.ZodOptional<z.ZodString>;
2276
2314
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2277
2315
  }, z.ZodTypeAny, "passthrough"> | undefined;
2316
+ error?: {
2317
+ code: string;
2318
+ message: string;
2319
+ details?: Record<string, unknown> | undefined;
2320
+ } | undefined;
2321
+ delegation_id?: string | undefined;
2278
2322
  }, {
2279
2323
  valid: boolean;
2280
2324
  credential?: {
2281
2325
  scopes: string[];
2282
- agent_did: string;
2283
- user_did: string;
2284
- issued_at: number;
2285
- created_at: number;
2286
2326
  authorization: {
2287
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
2327
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
2288
2328
  provider?: string | undefined;
2289
2329
  credentialType?: string | undefined;
2330
+ rpId?: string | undefined;
2331
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
2332
+ chainId?: number | undefined;
2333
+ domain?: string | undefined;
2290
2334
  };
2335
+ agent_did: string;
2336
+ user_did: string;
2337
+ issued_at: number;
2338
+ created_at: number;
2291
2339
  constraints?: Record<string, unknown> | undefined;
2292
2340
  user_id?: string | undefined;
2293
2341
  user_identifier?: string | undefined;
2294
2342
  credential_jwt?: string | undefined;
2295
2343
  } | undefined;
2296
- error?: {
2297
- code: string;
2298
- message: string;
2299
- details?: Record<string, unknown> | undefined;
2300
- } | undefined;
2301
- delegation_id?: string | undefined;
2302
2344
  reason?: string | undefined;
2303
2345
  delegation?: z.objectInputType<{
2304
2346
  id: z.ZodString;
@@ -2711,6 +2753,12 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
2711
2753
  revokedReason: z.ZodOptional<z.ZodString>;
2712
2754
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2713
2755
  }, z.ZodTypeAny, "passthrough"> | undefined;
2756
+ error?: {
2757
+ code: string;
2758
+ message: string;
2759
+ details?: Record<string, unknown> | undefined;
2760
+ } | undefined;
2761
+ delegation_id?: string | undefined;
2714
2762
  }>;
2715
2763
  /**
2716
2764
  * Wrapped verification response schema
@@ -3962,44 +4010,64 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
3962
4010
  created_at: z.ZodNumber;
3963
4011
  credential_jwt: z.ZodOptional<z.ZodString>;
3964
4012
  authorization: z.ZodObject<{
3965
- type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "none"]>;
4013
+ type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "webauthn", "siwe", "none"]>;
3966
4014
  provider: z.ZodOptional<z.ZodString>;
3967
4015
  credentialType: z.ZodOptional<z.ZodString>;
4016
+ rpId: z.ZodOptional<z.ZodString>;
4017
+ userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
4018
+ chainId: z.ZodOptional<z.ZodNumber>;
4019
+ domain: z.ZodOptional<z.ZodString>;
3968
4020
  }, "strip", z.ZodTypeAny, {
3969
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4021
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
3970
4022
  provider?: string | undefined;
3971
4023
  credentialType?: string | undefined;
4024
+ rpId?: string | undefined;
4025
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4026
+ chainId?: number | undefined;
4027
+ domain?: string | undefined;
3972
4028
  }, {
3973
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4029
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
3974
4030
  provider?: string | undefined;
3975
4031
  credentialType?: string | undefined;
4032
+ rpId?: string | undefined;
4033
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4034
+ chainId?: number | undefined;
4035
+ domain?: string | undefined;
3976
4036
  }>;
3977
4037
  }, "strip", z.ZodTypeAny, {
3978
4038
  scopes: string[];
3979
- agent_did: string;
3980
- user_did: string;
3981
- issued_at: number;
3982
- created_at: number;
3983
4039
  authorization: {
3984
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4040
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
3985
4041
  provider?: string | undefined;
3986
4042
  credentialType?: string | undefined;
4043
+ rpId?: string | undefined;
4044
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4045
+ chainId?: number | undefined;
4046
+ domain?: string | undefined;
3987
4047
  };
4048
+ agent_did: string;
4049
+ user_did: string;
4050
+ issued_at: number;
4051
+ created_at: number;
3988
4052
  constraints?: Record<string, unknown> | undefined;
3989
4053
  user_id?: string | undefined;
3990
4054
  user_identifier?: string | undefined;
3991
4055
  credential_jwt?: string | undefined;
3992
4056
  }, {
3993
4057
  scopes: string[];
3994
- agent_did: string;
3995
- user_did: string;
3996
- issued_at: number;
3997
- created_at: number;
3998
4058
  authorization: {
3999
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4059
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4000
4060
  provider?: string | undefined;
4001
4061
  credentialType?: string | undefined;
4062
+ rpId?: string | undefined;
4063
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4064
+ chainId?: number | undefined;
4065
+ domain?: string | undefined;
4002
4066
  };
4067
+ agent_did: string;
4068
+ user_did: string;
4069
+ issued_at: number;
4070
+ created_at: number;
4003
4071
  constraints?: Record<string, unknown> | undefined;
4004
4072
  user_id?: string | undefined;
4005
4073
  user_identifier?: string | undefined;
@@ -4023,26 +4091,24 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4023
4091
  valid: boolean;
4024
4092
  credential?: {
4025
4093
  scopes: string[];
4026
- agent_did: string;
4027
- user_did: string;
4028
- issued_at: number;
4029
- created_at: number;
4030
4094
  authorization: {
4031
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4095
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4032
4096
  provider?: string | undefined;
4033
4097
  credentialType?: string | undefined;
4098
+ rpId?: string | undefined;
4099
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4100
+ chainId?: number | undefined;
4101
+ domain?: string | undefined;
4034
4102
  };
4103
+ agent_did: string;
4104
+ user_did: string;
4105
+ issued_at: number;
4106
+ created_at: number;
4035
4107
  constraints?: Record<string, unknown> | undefined;
4036
4108
  user_id?: string | undefined;
4037
4109
  user_identifier?: string | undefined;
4038
4110
  credential_jwt?: string | undefined;
4039
4111
  } | undefined;
4040
- error?: {
4041
- code: string;
4042
- message: string;
4043
- details?: Record<string, unknown> | undefined;
4044
- } | undefined;
4045
- delegation_id?: string | undefined;
4046
4112
  reason?: string | undefined;
4047
4113
  delegation?: z.objectOutputType<{
4048
4114
  id: z.ZodString;
@@ -4455,30 +4521,34 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4455
4521
  revokedReason: z.ZodOptional<z.ZodString>;
4456
4522
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4457
4523
  }, z.ZodTypeAny, "passthrough"> | undefined;
4524
+ error?: {
4525
+ code: string;
4526
+ message: string;
4527
+ details?: Record<string, unknown> | undefined;
4528
+ } | undefined;
4529
+ delegation_id?: string | undefined;
4458
4530
  }, {
4459
4531
  valid: boolean;
4460
4532
  credential?: {
4461
4533
  scopes: string[];
4462
- agent_did: string;
4463
- user_did: string;
4464
- issued_at: number;
4465
- created_at: number;
4466
4534
  authorization: {
4467
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4535
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4468
4536
  provider?: string | undefined;
4469
4537
  credentialType?: string | undefined;
4538
+ rpId?: string | undefined;
4539
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4540
+ chainId?: number | undefined;
4541
+ domain?: string | undefined;
4470
4542
  };
4543
+ agent_did: string;
4544
+ user_did: string;
4545
+ issued_at: number;
4546
+ created_at: number;
4471
4547
  constraints?: Record<string, unknown> | undefined;
4472
4548
  user_id?: string | undefined;
4473
4549
  user_identifier?: string | undefined;
4474
4550
  credential_jwt?: string | undefined;
4475
4551
  } | undefined;
4476
- error?: {
4477
- code: string;
4478
- message: string;
4479
- details?: Record<string, unknown> | undefined;
4480
- } | undefined;
4481
- delegation_id?: string | undefined;
4482
4552
  reason?: string | undefined;
4483
4553
  delegation?: z.objectInputType<{
4484
4554
  id: z.ZodString;
@@ -4891,6 +4961,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4891
4961
  revokedReason: z.ZodOptional<z.ZodString>;
4892
4962
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4893
4963
  }, z.ZodTypeAny, "passthrough"> | undefined;
4964
+ error?: {
4965
+ code: string;
4966
+ message: string;
4967
+ details?: Record<string, unknown> | undefined;
4968
+ } | undefined;
4969
+ delegation_id?: string | undefined;
4894
4970
  }>;
4895
4971
  metadata: z.ZodOptional<z.ZodObject<{
4896
4972
  requestId: z.ZodString;
@@ -4908,26 +4984,24 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
4908
4984
  valid: boolean;
4909
4985
  credential?: {
4910
4986
  scopes: string[];
4911
- agent_did: string;
4912
- user_did: string;
4913
- issued_at: number;
4914
- created_at: number;
4915
4987
  authorization: {
4916
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
4988
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
4917
4989
  provider?: string | undefined;
4918
4990
  credentialType?: string | undefined;
4991
+ rpId?: string | undefined;
4992
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
4993
+ chainId?: number | undefined;
4994
+ domain?: string | undefined;
4919
4995
  };
4996
+ agent_did: string;
4997
+ user_did: string;
4998
+ issued_at: number;
4999
+ created_at: number;
4920
5000
  constraints?: Record<string, unknown> | undefined;
4921
5001
  user_id?: string | undefined;
4922
5002
  user_identifier?: string | undefined;
4923
5003
  credential_jwt?: string | undefined;
4924
5004
  } | undefined;
4925
- error?: {
4926
- code: string;
4927
- message: string;
4928
- details?: Record<string, unknown> | undefined;
4929
- } | undefined;
4930
- delegation_id?: string | undefined;
4931
5005
  reason?: string | undefined;
4932
5006
  delegation?: z.objectOutputType<{
4933
5007
  id: z.ZodString;
@@ -5340,6 +5414,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5340
5414
  revokedReason: z.ZodOptional<z.ZodString>;
5341
5415
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5342
5416
  }, z.ZodTypeAny, "passthrough"> | undefined;
5417
+ error?: {
5418
+ code: string;
5419
+ message: string;
5420
+ details?: Record<string, unknown> | undefined;
5421
+ } | undefined;
5422
+ delegation_id?: string | undefined;
5343
5423
  };
5344
5424
  metadata?: {
5345
5425
  timestamp: string;
@@ -5351,26 +5431,24 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5351
5431
  valid: boolean;
5352
5432
  credential?: {
5353
5433
  scopes: string[];
5354
- agent_did: string;
5355
- user_did: string;
5356
- issued_at: number;
5357
- created_at: number;
5358
5434
  authorization: {
5359
- type: "oauth2" | "credential" | "oauth" | "password" | "none";
5435
+ type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
5360
5436
  provider?: string | undefined;
5361
5437
  credentialType?: string | undefined;
5438
+ rpId?: string | undefined;
5439
+ userVerification?: "required" | "preferred" | "discouraged" | undefined;
5440
+ chainId?: number | undefined;
5441
+ domain?: string | undefined;
5362
5442
  };
5443
+ agent_did: string;
5444
+ user_did: string;
5445
+ issued_at: number;
5446
+ created_at: number;
5363
5447
  constraints?: Record<string, unknown> | undefined;
5364
5448
  user_id?: string | undefined;
5365
5449
  user_identifier?: string | undefined;
5366
5450
  credential_jwt?: string | undefined;
5367
5451
  } | undefined;
5368
- error?: {
5369
- code: string;
5370
- message: string;
5371
- details?: Record<string, unknown> | undefined;
5372
- } | undefined;
5373
- delegation_id?: string | undefined;
5374
5452
  reason?: string | undefined;
5375
5453
  delegation?: z.objectInputType<{
5376
5454
  id: z.ZodString;
@@ -5783,6 +5861,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
5783
5861
  revokedReason: z.ZodOptional<z.ZodString>;
5784
5862
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5785
5863
  }, z.ZodTypeAny, "passthrough"> | undefined;
5864
+ error?: {
5865
+ code: string;
5866
+ message: string;
5867
+ details?: Record<string, unknown> | undefined;
5868
+ } | undefined;
5869
+ delegation_id?: string | undefined;
5786
5870
  };
5787
5871
  metadata?: {
5788
5872
  timestamp: string;
@@ -6228,12 +6312,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
6228
6312
  revoked: z.ZodBoolean;
6229
6313
  revoked_at: z.ZodNumber;
6230
6314
  }, "strip", z.ZodTypeAny, {
6231
- delegation_id: string;
6232
6315
  revoked: boolean;
6316
+ delegation_id: string;
6233
6317
  revoked_at: number;
6234
6318
  }, {
6235
- delegation_id: string;
6236
6319
  revoked: boolean;
6320
+ delegation_id: string;
6237
6321
  revoked_at: number;
6238
6322
  }>;
6239
6323
  /**
@@ -6246,12 +6330,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6246
6330
  revoked: z.ZodBoolean;
6247
6331
  revoked_at: z.ZodNumber;
6248
6332
  }, "strip", z.ZodTypeAny, {
6249
- delegation_id: string;
6250
6333
  revoked: boolean;
6334
+ delegation_id: string;
6251
6335
  revoked_at: number;
6252
6336
  }, {
6253
- delegation_id: string;
6254
6337
  revoked: boolean;
6338
+ delegation_id: string;
6255
6339
  revoked_at: number;
6256
6340
  }>;
6257
6341
  metadata: z.ZodOptional<z.ZodObject<{
@@ -6267,8 +6351,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6267
6351
  }, "strip", z.ZodTypeAny, {
6268
6352
  success: boolean;
6269
6353
  data: {
6270
- delegation_id: string;
6271
6354
  revoked: boolean;
6355
+ delegation_id: string;
6272
6356
  revoked_at: number;
6273
6357
  };
6274
6358
  metadata?: {
@@ -6278,8 +6362,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
6278
6362
  }, {
6279
6363
  success: boolean;
6280
6364
  data: {
6281
- delegation_id: string;
6282
6365
  revoked: boolean;
6366
+ delegation_id: string;
6283
6367
  revoked_at: number;
6284
6368
  };
6285
6369
  metadata?: {
@@ -6299,15 +6383,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
6299
6383
  }, "strip", z.ZodTypeAny, {
6300
6384
  name: string;
6301
6385
  version?: string | undefined;
6386
+ protocol_version?: string | undefined;
6302
6387
  platform?: string | undefined;
6303
6388
  vendor?: string | undefined;
6304
- protocol_version?: string | undefined;
6305
6389
  }, {
6306
6390
  name: string;
6307
6391
  version?: string | undefined;
6392
+ protocol_version?: string | undefined;
6308
6393
  platform?: string | undefined;
6309
6394
  vendor?: string | undefined;
6310
- protocol_version?: string | undefined;
6311
6395
  }>;
6312
6396
  /**
6313
6397
  * Session client identity schema
@@ -6317,13 +6401,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
6317
6401
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6318
6402
  registered: z.ZodBoolean;
6319
6403
  }, "strip", z.ZodTypeAny, {
6320
- registered: boolean;
6321
6404
  did: string;
6322
6405
  source: "knowthat.ai" | "kta-lookup" | "generated";
6323
- }, {
6324
6406
  registered: boolean;
6407
+ }, {
6325
6408
  did: string;
6326
6409
  source: "knowthat.ai" | "kta-lookup" | "generated";
6410
+ registered: boolean;
6327
6411
  }>;
6328
6412
  /**
6329
6413
  * Register session request schema
@@ -6343,68 +6427,68 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
6343
6427
  }, "strip", z.ZodTypeAny, {
6344
6428
  name: string;
6345
6429
  version?: string | undefined;
6430
+ protocol_version?: string | undefined;
6346
6431
  platform?: string | undefined;
6347
6432
  vendor?: string | undefined;
6348
- protocol_version?: string | undefined;
6349
6433
  }, {
6350
6434
  name: string;
6351
6435
  version?: string | undefined;
6436
+ protocol_version?: string | undefined;
6352
6437
  platform?: string | undefined;
6353
6438
  vendor?: string | undefined;
6354
- protocol_version?: string | undefined;
6355
6439
  }>;
6356
6440
  client_identity: z.ZodOptional<z.ZodObject<{
6357
6441
  did: z.ZodString;
6358
6442
  source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
6359
6443
  registered: z.ZodBoolean;
6360
6444
  }, "strip", z.ZodTypeAny, {
6361
- registered: boolean;
6362
6445
  did: string;
6363
6446
  source: "knowthat.ai" | "kta-lookup" | "generated";
6364
- }, {
6365
6447
  registered: boolean;
6448
+ }, {
6366
6449
  did: string;
6367
6450
  source: "knowthat.ai" | "kta-lookup" | "generated";
6451
+ registered: boolean;
6368
6452
  }>>;
6369
6453
  server_did: z.ZodOptional<z.ZodString>;
6370
6454
  ttl_minutes: z.ZodOptional<z.ZodNumber>;
6371
6455
  }, "strip", z.ZodTypeAny, {
6372
6456
  session_id: string;
6373
6457
  agent_did: string;
6374
- project_id: string;
6375
6458
  created_at: number;
6376
6459
  client_info: {
6377
6460
  name: string;
6378
6461
  version?: string | undefined;
6462
+ protocol_version?: string | undefined;
6379
6463
  platform?: string | undefined;
6380
6464
  vendor?: string | undefined;
6381
- protocol_version?: string | undefined;
6382
6465
  };
6466
+ project_id: string;
6383
6467
  agent_name?: string | undefined;
6384
6468
  client_identity?: {
6385
- registered: boolean;
6386
6469
  did: string;
6387
6470
  source: "knowthat.ai" | "kta-lookup" | "generated";
6471
+ registered: boolean;
6388
6472
  } | undefined;
6389
6473
  server_did?: string | undefined;
6390
6474
  ttl_minutes?: number | undefined;
6391
6475
  }, {
6392
6476
  session_id: string;
6393
6477
  agent_did: string;
6394
- project_id: string;
6395
6478
  created_at: number;
6396
6479
  client_info: {
6397
6480
  name: string;
6398
6481
  version?: string | undefined;
6482
+ protocol_version?: string | undefined;
6399
6483
  platform?: string | undefined;
6400
6484
  vendor?: string | undefined;
6401
- protocol_version?: string | undefined;
6402
6485
  };
6486
+ project_id: string;
6403
6487
  agent_name?: string | undefined;
6404
6488
  client_identity?: {
6405
- registered: boolean;
6406
6489
  did: string;
6407
6490
  source: "knowthat.ai" | "kta-lookup" | "generated";
6491
+ registered: boolean;
6408
6492
  } | undefined;
6409
6493
  server_did?: string | undefined;
6410
6494
  ttl_minutes?: number | undefined;
@@ -6417,13 +6501,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
6417
6501
  registered: z.ZodBoolean;
6418
6502
  created_at: z.ZodString;
6419
6503
  }, "strip", z.ZodTypeAny, {
6420
- registered: boolean;
6421
6504
  session_id: string;
6422
6505
  created_at: string;
6423
- }, {
6424
6506
  registered: boolean;
6507
+ }, {
6425
6508
  session_id: string;
6426
6509
  created_at: string;
6510
+ registered: boolean;
6427
6511
  }>;
6428
6512
  /**
6429
6513
  * Wrapped session registration response schema
@@ -6435,13 +6519,13 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6435
6519
  registered: z.ZodBoolean;
6436
6520
  created_at: z.ZodString;
6437
6521
  }, "strip", z.ZodTypeAny, {
6438
- registered: boolean;
6439
6522
  session_id: string;
6440
6523
  created_at: string;
6441
- }, {
6442
6524
  registered: boolean;
6525
+ }, {
6443
6526
  session_id: string;
6444
6527
  created_at: string;
6528
+ registered: boolean;
6445
6529
  }>;
6446
6530
  metadata: z.ZodOptional<z.ZodObject<{
6447
6531
  requestId: z.ZodString;
@@ -6456,9 +6540,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6456
6540
  }, "strip", z.ZodTypeAny, {
6457
6541
  success: boolean;
6458
6542
  data: {
6459
- registered: boolean;
6460
6543
  session_id: string;
6461
6544
  created_at: string;
6545
+ registered: boolean;
6462
6546
  };
6463
6547
  metadata?: {
6464
6548
  timestamp: string;
@@ -6467,9 +6551,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
6467
6551
  }, {
6468
6552
  success: boolean;
6469
6553
  data: {
6470
- registered: boolean;
6471
6554
  session_id: string;
6472
6555
  created_at: string;
6556
+ registered: boolean;
6473
6557
  };
6474
6558
  metadata?: {
6475
6559
  timestamp: string;