@kya-os/contracts 1.7.13 → 1.7.14
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.
- package/dist/agentshield-api/schemas.d.ts +83 -83
- package/dist/agentshield-api/schemas.js +2 -1
- package/dist/agentshield-api/types.d.ts +1 -1
- package/dist/audit/index.d.ts +21 -21
- package/dist/cli.d.ts +5 -5
- package/dist/consent/schemas.d.ts +28 -28
- package/dist/dashboard-config/schemas.d.ts +2122 -1598
- package/dist/delegation/schemas.d.ts +24 -24
- package/dist/deploy/schemas.d.ts +2 -2
- package/dist/handshake.d.ts +26 -26
- package/dist/proof/proof-record.d.ts +12 -12
- package/dist/proof/signing-spec.d.ts +4 -4
- package/dist/proof.d.ts +24 -24
- package/dist/reputation/api.d.ts +18 -18
- package/dist/reputation/schemas.d.ts +10 -10
- package/dist/tool-protection/index.d.ts +106 -11
- package/dist/tool-protection/index.js +41 -8
- package/dist/verifier.d.ts +6 -6
- package/dist/well-known/index.d.ts +18 -18
- package/package.json +1 -1
|
@@ -89,26 +89,26 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
did: string;
|
|
91
91
|
kid: string;
|
|
92
|
-
|
|
92
|
+
nonce: string;
|
|
93
93
|
audience: string;
|
|
94
|
+
sessionId: string;
|
|
95
|
+
ts: number;
|
|
94
96
|
requestHash: string;
|
|
95
97
|
responseHash: string;
|
|
96
|
-
nonce: string;
|
|
97
|
-
ts: number;
|
|
98
|
-
scopeId?: string | undefined;
|
|
99
98
|
clientDid?: string | undefined;
|
|
99
|
+
scopeId?: string | undefined;
|
|
100
100
|
delegationRef?: string | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
did: string;
|
|
103
103
|
kid: string;
|
|
104
|
-
|
|
104
|
+
nonce: string;
|
|
105
105
|
audience: string;
|
|
106
|
+
sessionId: string;
|
|
107
|
+
ts: number;
|
|
106
108
|
requestHash: string;
|
|
107
109
|
responseHash: string;
|
|
108
|
-
nonce: string;
|
|
109
|
-
ts: number;
|
|
110
|
-
scopeId?: string | undefined;
|
|
111
110
|
clientDid?: string | undefined;
|
|
111
|
+
scopeId?: string | undefined;
|
|
112
112
|
delegationRef?: string | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -116,14 +116,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
116
116
|
meta: {
|
|
117
117
|
did: string;
|
|
118
118
|
kid: string;
|
|
119
|
-
|
|
119
|
+
nonce: string;
|
|
120
120
|
audience: string;
|
|
121
|
+
sessionId: string;
|
|
122
|
+
ts: number;
|
|
121
123
|
requestHash: string;
|
|
122
124
|
responseHash: string;
|
|
123
|
-
nonce: string;
|
|
124
|
-
ts: number;
|
|
125
|
-
scopeId?: string | undefined;
|
|
126
125
|
clientDid?: string | undefined;
|
|
126
|
+
scopeId?: string | undefined;
|
|
127
127
|
delegationRef?: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
@@ -131,14 +131,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
131
131
|
meta: {
|
|
132
132
|
did: string;
|
|
133
133
|
kid: string;
|
|
134
|
-
|
|
134
|
+
nonce: string;
|
|
135
135
|
audience: string;
|
|
136
|
+
sessionId: string;
|
|
137
|
+
ts: number;
|
|
136
138
|
requestHash: string;
|
|
137
139
|
responseHash: string;
|
|
138
|
-
nonce: string;
|
|
139
|
-
ts: number;
|
|
140
|
-
scopeId?: string | undefined;
|
|
141
140
|
clientDid?: string | undefined;
|
|
141
|
+
scopeId?: string | undefined;
|
|
142
142
|
delegationRef?: string | undefined;
|
|
143
143
|
};
|
|
144
144
|
}>, "many">;
|
|
@@ -186,10 +186,10 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
scopes: string[];
|
|
189
|
-
sessionId: string;
|
|
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
189
|
timestamp: number;
|
|
192
190
|
agentDid: string;
|
|
191
|
+
sessionId: string;
|
|
192
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
193
193
|
targetTools: string[];
|
|
194
194
|
projectId: string;
|
|
195
195
|
userDid?: string | undefined;
|
|
@@ -197,15 +197,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
197
197
|
provider: string;
|
|
198
198
|
identifier: string;
|
|
199
199
|
} | undefined;
|
|
200
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
200
201
|
delegationId?: string | undefined;
|
|
201
202
|
termsAccepted?: boolean | undefined;
|
|
202
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
203
203
|
}, {
|
|
204
204
|
scopes: string[];
|
|
205
|
-
sessionId: string;
|
|
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
205
|
timestamp: number;
|
|
208
206
|
agentDid: string;
|
|
207
|
+
sessionId: string;
|
|
208
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
209
209
|
targetTools: string[];
|
|
210
210
|
projectId: string;
|
|
211
211
|
userDid?: string | undefined;
|
|
@@ -213,9 +213,9 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
213
213
|
provider: string;
|
|
214
214
|
identifier: string;
|
|
215
215
|
} | undefined;
|
|
216
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
216
217
|
delegationId?: string | undefined;
|
|
217
218
|
termsAccepted?: boolean | undefined;
|
|
218
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
219
219
|
}>, "many">>;
|
|
220
220
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -226,12 +226,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
226
226
|
result?: unknown;
|
|
227
227
|
userIdentifier?: string | undefined;
|
|
228
228
|
}[] | undefined;
|
|
229
|
+
mcpServerUrl?: string | undefined;
|
|
229
230
|
consentEvents?: {
|
|
230
231
|
scopes: string[];
|
|
231
|
-
sessionId: string;
|
|
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
232
|
timestamp: number;
|
|
234
233
|
agentDid: string;
|
|
234
|
+
sessionId: string;
|
|
235
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
235
236
|
targetTools: string[];
|
|
236
237
|
projectId: string;
|
|
237
238
|
userDid?: string | undefined;
|
|
@@ -239,11 +240,10 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
239
240
|
provider: string;
|
|
240
241
|
identifier: string;
|
|
241
242
|
} | undefined;
|
|
243
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
242
244
|
delegationId?: string | undefined;
|
|
243
245
|
termsAccepted?: boolean | undefined;
|
|
244
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
245
246
|
}[] | undefined;
|
|
246
|
-
mcpServerUrl?: string | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
toolCalls?: {
|
|
249
249
|
scopeId: string;
|
|
@@ -252,12 +252,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
252
252
|
result?: unknown;
|
|
253
253
|
userIdentifier?: string | undefined;
|
|
254
254
|
}[] | undefined;
|
|
255
|
+
mcpServerUrl?: string | undefined;
|
|
255
256
|
consentEvents?: {
|
|
256
257
|
scopes: string[];
|
|
257
|
-
sessionId: string;
|
|
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
258
|
timestamp: number;
|
|
260
259
|
agentDid: string;
|
|
260
|
+
sessionId: string;
|
|
261
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
261
262
|
targetTools: string[];
|
|
262
263
|
projectId: string;
|
|
263
264
|
userDid?: string | undefined;
|
|
@@ -265,11 +266,10 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
265
266
|
provider: string;
|
|
266
267
|
identifier: string;
|
|
267
268
|
} | undefined;
|
|
269
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
268
270
|
delegationId?: string | undefined;
|
|
269
271
|
termsAccepted?: boolean | undefined;
|
|
270
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
271
272
|
}[] | undefined;
|
|
272
|
-
mcpServerUrl?: string | undefined;
|
|
273
273
|
}>>;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
275
|
session_id: string;
|
|
@@ -278,14 +278,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
278
|
meta: {
|
|
279
279
|
did: string;
|
|
280
280
|
kid: string;
|
|
281
|
-
|
|
281
|
+
nonce: string;
|
|
282
282
|
audience: string;
|
|
283
|
+
sessionId: string;
|
|
284
|
+
ts: number;
|
|
283
285
|
requestHash: string;
|
|
284
286
|
responseHash: string;
|
|
285
|
-
nonce: string;
|
|
286
|
-
ts: number;
|
|
287
|
-
scopeId?: string | undefined;
|
|
288
287
|
clientDid?: string | undefined;
|
|
288
|
+
scopeId?: string | undefined;
|
|
289
289
|
delegationRef?: string | undefined;
|
|
290
290
|
};
|
|
291
291
|
}[];
|
|
@@ -298,12 +298,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
298
298
|
result?: unknown;
|
|
299
299
|
userIdentifier?: string | undefined;
|
|
300
300
|
}[] | undefined;
|
|
301
|
+
mcpServerUrl?: string | undefined;
|
|
301
302
|
consentEvents?: {
|
|
302
303
|
scopes: string[];
|
|
303
|
-
sessionId: string;
|
|
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
304
|
timestamp: number;
|
|
306
305
|
agentDid: string;
|
|
306
|
+
sessionId: string;
|
|
307
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
307
308
|
targetTools: string[];
|
|
308
309
|
projectId: string;
|
|
309
310
|
userDid?: string | undefined;
|
|
@@ -311,11 +312,10 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
311
312
|
provider: string;
|
|
312
313
|
identifier: string;
|
|
313
314
|
} | undefined;
|
|
315
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
314
316
|
delegationId?: string | undefined;
|
|
315
317
|
termsAccepted?: boolean | undefined;
|
|
316
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
317
318
|
}[] | undefined;
|
|
318
|
-
mcpServerUrl?: string | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
session_id: string;
|
|
@@ -324,14 +324,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
324
|
meta: {
|
|
325
325
|
did: string;
|
|
326
326
|
kid: string;
|
|
327
|
-
|
|
327
|
+
nonce: string;
|
|
328
328
|
audience: string;
|
|
329
|
+
sessionId: string;
|
|
330
|
+
ts: number;
|
|
329
331
|
requestHash: string;
|
|
330
332
|
responseHash: string;
|
|
331
|
-
nonce: string;
|
|
332
|
-
ts: number;
|
|
333
|
-
scopeId?: string | undefined;
|
|
334
333
|
clientDid?: string | undefined;
|
|
334
|
+
scopeId?: string | undefined;
|
|
335
335
|
delegationRef?: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}[];
|
|
@@ -344,12 +344,13 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
344
344
|
result?: unknown;
|
|
345
345
|
userIdentifier?: string | undefined;
|
|
346
346
|
}[] | undefined;
|
|
347
|
+
mcpServerUrl?: string | undefined;
|
|
347
348
|
consentEvents?: {
|
|
348
349
|
scopes: string[];
|
|
349
|
-
sessionId: string;
|
|
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
350
|
timestamp: number;
|
|
352
351
|
agentDid: string;
|
|
352
|
+
sessionId: string;
|
|
353
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
353
354
|
targetTools: string[];
|
|
354
355
|
projectId: string;
|
|
355
356
|
userDid?: string | undefined;
|
|
@@ -357,11 +358,10 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
357
358
|
provider: string;
|
|
358
359
|
identifier: string;
|
|
359
360
|
} | undefined;
|
|
361
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
360
362
|
delegationId?: string | undefined;
|
|
361
363
|
termsAccepted?: boolean | undefined;
|
|
362
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
363
364
|
}[] | undefined;
|
|
364
|
-
mcpServerUrl?: string | undefined;
|
|
365
365
|
} | undefined;
|
|
366
366
|
}>;
|
|
367
367
|
/**
|
|
@@ -406,7 +406,6 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
406
406
|
success: boolean;
|
|
407
407
|
accepted: number;
|
|
408
408
|
rejected: number;
|
|
409
|
-
outcomes?: Record<string, number> | undefined;
|
|
410
409
|
errors?: {
|
|
411
410
|
error: {
|
|
412
411
|
code: string;
|
|
@@ -415,11 +414,11 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
415
414
|
};
|
|
416
415
|
proof_index: number;
|
|
417
416
|
}[] | undefined;
|
|
417
|
+
outcomes?: Record<string, number> | undefined;
|
|
418
418
|
}, {
|
|
419
419
|
success: boolean;
|
|
420
420
|
accepted: number;
|
|
421
421
|
rejected: number;
|
|
422
|
-
outcomes?: Record<string, number> | undefined;
|
|
423
422
|
errors?: {
|
|
424
423
|
error: {
|
|
425
424
|
code: string;
|
|
@@ -428,6 +427,7 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
428
427
|
};
|
|
429
428
|
proof_index: number;
|
|
430
429
|
}[] | undefined;
|
|
430
|
+
outcomes?: Record<string, number> | undefined;
|
|
431
431
|
}>;
|
|
432
432
|
/**
|
|
433
433
|
* Delegation credential schema
|
|
@@ -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", "password", "credential", "none"]>;
|
|
446
|
+
type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "none"]>;
|
|
447
447
|
provider: z.ZodOptional<z.ZodString>;
|
|
448
448
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
450
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
451
451
|
provider?: string | undefined;
|
|
452
452
|
credentialType?: string | undefined;
|
|
453
453
|
}, {
|
|
454
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
454
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
465
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
480
|
+
type: "oauth2" | "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", "password", "credential", "none"]>;
|
|
1785
|
+
type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "none"]>;
|
|
1786
1786
|
provider: z.ZodOptional<z.ZodString>;
|
|
1787
1787
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
1788
1788
|
}, "strip", z.ZodTypeAny, {
|
|
1789
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
1789
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
1790
1790
|
provider?: string | undefined;
|
|
1791
1791
|
credentialType?: string | undefined;
|
|
1792
1792
|
}, {
|
|
1793
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
1793
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
1804
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
1819
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
1820
1820
|
provider?: string | undefined;
|
|
1821
1821
|
credentialType?: string | undefined;
|
|
1822
1822
|
};
|
|
@@ -1848,7 +1848,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1848
1848
|
issued_at: number;
|
|
1849
1849
|
created_at: number;
|
|
1850
1850
|
authorization: {
|
|
1851
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
1851
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
1852
1852
|
provider?: string | undefined;
|
|
1853
1853
|
credentialType?: string | undefined;
|
|
1854
1854
|
};
|
|
@@ -1863,6 +1863,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1863
1863
|
details?: Record<string, unknown> | undefined;
|
|
1864
1864
|
} | undefined;
|
|
1865
1865
|
delegation_id?: string | undefined;
|
|
1866
|
+
reason?: string | undefined;
|
|
1866
1867
|
delegation?: z.objectOutputType<{
|
|
1867
1868
|
id: z.ZodString;
|
|
1868
1869
|
issuerDid: z.ZodString;
|
|
@@ -2274,7 +2275,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2274
2275
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2275
2276
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2276
2277
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2277
|
-
reason?: string | undefined;
|
|
2278
2278
|
}, {
|
|
2279
2279
|
valid: boolean;
|
|
2280
2280
|
credential?: {
|
|
@@ -2284,7 +2284,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2284
2284
|
issued_at: number;
|
|
2285
2285
|
created_at: number;
|
|
2286
2286
|
authorization: {
|
|
2287
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
2287
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
2288
2288
|
provider?: string | undefined;
|
|
2289
2289
|
credentialType?: string | undefined;
|
|
2290
2290
|
};
|
|
@@ -2299,6 +2299,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2299
2299
|
details?: Record<string, unknown> | undefined;
|
|
2300
2300
|
} | undefined;
|
|
2301
2301
|
delegation_id?: string | undefined;
|
|
2302
|
+
reason?: string | undefined;
|
|
2302
2303
|
delegation?: z.objectInputType<{
|
|
2303
2304
|
id: z.ZodString;
|
|
2304
2305
|
issuerDid: z.ZodString;
|
|
@@ -2710,7 +2711,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2710
2711
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2711
2712
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2712
2713
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2713
|
-
reason?: string | undefined;
|
|
2714
2714
|
}>;
|
|
2715
2715
|
/**
|
|
2716
2716
|
* Wrapped verification response schema
|
|
@@ -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", "password", "credential", "none"]>;
|
|
3965
|
+
type: z.ZodEnum<["oauth", "oauth2", "password", "credential", "none"]>;
|
|
3966
3966
|
provider: z.ZodOptional<z.ZodString>;
|
|
3967
3967
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
3968
3968
|
}, "strip", z.ZodTypeAny, {
|
|
3969
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
3969
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
3970
3970
|
provider?: string | undefined;
|
|
3971
3971
|
credentialType?: string | undefined;
|
|
3972
3972
|
}, {
|
|
3973
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
3973
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
3984
|
+
type: "oauth2" | "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: "credential" | "oauth" | "password" | "none";
|
|
3999
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
4000
4000
|
provider?: string | undefined;
|
|
4001
4001
|
credentialType?: string | undefined;
|
|
4002
4002
|
};
|
|
@@ -4028,7 +4028,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4028
4028
|
issued_at: number;
|
|
4029
4029
|
created_at: number;
|
|
4030
4030
|
authorization: {
|
|
4031
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
4031
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
4032
4032
|
provider?: string | undefined;
|
|
4033
4033
|
credentialType?: string | undefined;
|
|
4034
4034
|
};
|
|
@@ -4043,6 +4043,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4043
4043
|
details?: Record<string, unknown> | undefined;
|
|
4044
4044
|
} | undefined;
|
|
4045
4045
|
delegation_id?: string | undefined;
|
|
4046
|
+
reason?: string | undefined;
|
|
4046
4047
|
delegation?: z.objectOutputType<{
|
|
4047
4048
|
id: z.ZodString;
|
|
4048
4049
|
issuerDid: z.ZodString;
|
|
@@ -4454,7 +4455,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4454
4455
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4455
4456
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4456
4457
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4457
|
-
reason?: string | undefined;
|
|
4458
4458
|
}, {
|
|
4459
4459
|
valid: boolean;
|
|
4460
4460
|
credential?: {
|
|
@@ -4464,7 +4464,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4464
4464
|
issued_at: number;
|
|
4465
4465
|
created_at: number;
|
|
4466
4466
|
authorization: {
|
|
4467
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
4467
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
4468
4468
|
provider?: string | undefined;
|
|
4469
4469
|
credentialType?: string | undefined;
|
|
4470
4470
|
};
|
|
@@ -4479,6 +4479,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4479
4479
|
details?: Record<string, unknown> | undefined;
|
|
4480
4480
|
} | undefined;
|
|
4481
4481
|
delegation_id?: string | undefined;
|
|
4482
|
+
reason?: string | undefined;
|
|
4482
4483
|
delegation?: z.objectInputType<{
|
|
4483
4484
|
id: z.ZodString;
|
|
4484
4485
|
issuerDid: z.ZodString;
|
|
@@ -4890,7 +4891,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4890
4891
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4891
4892
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4892
4893
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4893
|
-
reason?: string | undefined;
|
|
4894
4894
|
}>;
|
|
4895
4895
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4896
4896
|
requestId: z.ZodString;
|
|
@@ -4913,7 +4913,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4913
4913
|
issued_at: number;
|
|
4914
4914
|
created_at: number;
|
|
4915
4915
|
authorization: {
|
|
4916
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
4916
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
4917
4917
|
provider?: string | undefined;
|
|
4918
4918
|
credentialType?: string | undefined;
|
|
4919
4919
|
};
|
|
@@ -4928,6 +4928,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4928
4928
|
details?: Record<string, unknown> | undefined;
|
|
4929
4929
|
} | undefined;
|
|
4930
4930
|
delegation_id?: string | undefined;
|
|
4931
|
+
reason?: string | undefined;
|
|
4931
4932
|
delegation?: z.objectOutputType<{
|
|
4932
4933
|
id: z.ZodString;
|
|
4933
4934
|
issuerDid: z.ZodString;
|
|
@@ -5339,7 +5340,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5339
5340
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5340
5341
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5341
5342
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5342
|
-
reason?: string | undefined;
|
|
5343
5343
|
};
|
|
5344
5344
|
metadata?: {
|
|
5345
5345
|
timestamp: string;
|
|
@@ -5356,7 +5356,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5356
5356
|
issued_at: number;
|
|
5357
5357
|
created_at: number;
|
|
5358
5358
|
authorization: {
|
|
5359
|
-
type: "credential" | "oauth" | "password" | "none";
|
|
5359
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "none";
|
|
5360
5360
|
provider?: string | undefined;
|
|
5361
5361
|
credentialType?: string | undefined;
|
|
5362
5362
|
};
|
|
@@ -5371,6 +5371,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5371
5371
|
details?: Record<string, unknown> | undefined;
|
|
5372
5372
|
} | undefined;
|
|
5373
5373
|
delegation_id?: string | undefined;
|
|
5374
|
+
reason?: string | undefined;
|
|
5374
5375
|
delegation?: z.objectInputType<{
|
|
5375
5376
|
id: z.ZodString;
|
|
5376
5377
|
issuerDid: z.ZodString;
|
|
@@ -5782,7 +5783,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5782
5783
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5783
5784
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5784
5785
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5785
|
-
reason?: string | undefined;
|
|
5786
5786
|
};
|
|
5787
5787
|
metadata?: {
|
|
5788
5788
|
timestamp: string;
|
|
@@ -6228,12 +6228,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6228
6228
|
revoked: z.ZodBoolean;
|
|
6229
6229
|
revoked_at: z.ZodNumber;
|
|
6230
6230
|
}, "strip", z.ZodTypeAny, {
|
|
6231
|
-
revoked: boolean;
|
|
6232
6231
|
delegation_id: string;
|
|
6232
|
+
revoked: boolean;
|
|
6233
6233
|
revoked_at: number;
|
|
6234
6234
|
}, {
|
|
6235
|
-
revoked: boolean;
|
|
6236
6235
|
delegation_id: string;
|
|
6236
|
+
revoked: boolean;
|
|
6237
6237
|
revoked_at: number;
|
|
6238
6238
|
}>;
|
|
6239
6239
|
/**
|
|
@@ -6246,12 +6246,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6246
6246
|
revoked: z.ZodBoolean;
|
|
6247
6247
|
revoked_at: z.ZodNumber;
|
|
6248
6248
|
}, "strip", z.ZodTypeAny, {
|
|
6249
|
-
revoked: boolean;
|
|
6250
6249
|
delegation_id: string;
|
|
6250
|
+
revoked: boolean;
|
|
6251
6251
|
revoked_at: number;
|
|
6252
6252
|
}, {
|
|
6253
|
-
revoked: boolean;
|
|
6254
6253
|
delegation_id: string;
|
|
6254
|
+
revoked: boolean;
|
|
6255
6255
|
revoked_at: number;
|
|
6256
6256
|
}>;
|
|
6257
6257
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -6267,8 +6267,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6267
6267
|
}, "strip", z.ZodTypeAny, {
|
|
6268
6268
|
success: boolean;
|
|
6269
6269
|
data: {
|
|
6270
|
-
revoked: boolean;
|
|
6271
6270
|
delegation_id: string;
|
|
6271
|
+
revoked: boolean;
|
|
6272
6272
|
revoked_at: number;
|
|
6273
6273
|
};
|
|
6274
6274
|
metadata?: {
|
|
@@ -6278,8 +6278,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6278
6278
|
}, {
|
|
6279
6279
|
success: boolean;
|
|
6280
6280
|
data: {
|
|
6281
|
-
revoked: boolean;
|
|
6282
6281
|
delegation_id: string;
|
|
6282
|
+
revoked: boolean;
|
|
6283
6283
|
revoked_at: number;
|
|
6284
6284
|
};
|
|
6285
6285
|
metadata?: {
|
|
@@ -6371,6 +6371,7 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6371
6371
|
}, "strip", z.ZodTypeAny, {
|
|
6372
6372
|
session_id: string;
|
|
6373
6373
|
agent_did: string;
|
|
6374
|
+
project_id: string;
|
|
6374
6375
|
created_at: number;
|
|
6375
6376
|
client_info: {
|
|
6376
6377
|
name: string;
|
|
@@ -6379,7 +6380,6 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6379
6380
|
vendor?: string | undefined;
|
|
6380
6381
|
protocol_version?: string | undefined;
|
|
6381
6382
|
};
|
|
6382
|
-
project_id: string;
|
|
6383
6383
|
agent_name?: string | undefined;
|
|
6384
6384
|
client_identity?: {
|
|
6385
6385
|
registered: boolean;
|
|
@@ -6391,6 +6391,7 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6391
6391
|
}, {
|
|
6392
6392
|
session_id: string;
|
|
6393
6393
|
agent_did: string;
|
|
6394
|
+
project_id: string;
|
|
6394
6395
|
created_at: number;
|
|
6395
6396
|
client_info: {
|
|
6396
6397
|
name: string;
|
|
@@ -6399,7 +6400,6 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6399
6400
|
vendor?: string | undefined;
|
|
6400
6401
|
protocol_version?: string | undefined;
|
|
6401
6402
|
};
|
|
6402
|
-
project_id: string;
|
|
6403
6403
|
agent_name?: string | undefined;
|
|
6404
6404
|
client_identity?: {
|
|
6405
6405
|
registered: boolean;
|
|
@@ -130,7 +130,8 @@ exports.delegationCredentialSchema = zod_1.z.object({
|
|
|
130
130
|
created_at: zod_1.z.number().int().positive(),
|
|
131
131
|
credential_jwt: zod_1.z.string().optional(),
|
|
132
132
|
authorization: zod_1.z.object({
|
|
133
|
-
|
|
133
|
+
// 'oauth' is deprecated, use 'oauth2' instead (will be removed in v2.0.0)
|
|
134
|
+
type: zod_1.z.enum(['oauth', 'oauth2', 'password', 'credential', 'none']),
|
|
134
135
|
provider: zod_1.z.string().optional(),
|
|
135
136
|
credentialType: zod_1.z.string().optional(),
|
|
136
137
|
}),
|
|
@@ -150,7 +150,7 @@ export interface DelegationCredential {
|
|
|
150
150
|
created_at: number;
|
|
151
151
|
credential_jwt?: string;
|
|
152
152
|
authorization: {
|
|
153
|
-
type: 'oauth' | 'password' | 'credential' | 'none';
|
|
153
|
+
type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'none';
|
|
154
154
|
provider?: string;
|
|
155
155
|
credentialType?: string;
|
|
156
156
|
};
|