@kya-os/contracts 1.7.25 → 1.7.26
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/agent-deployment-utils.d.ts +42 -0
- package/dist/agent-deployment-utils.js +55 -0
- package/dist/agent-deployment.d.ts +723 -0
- package/dist/agent-deployment.js +269 -0
- package/dist/agentshield-api/schemas.d.ts +223 -223
- package/dist/audit/index.d.ts +21 -21
- package/dist/cli.d.ts +4 -4
- package/dist/compute-binding.d.ts +48 -0
- package/dist/compute-binding.js +42 -0
- package/dist/compute.d.ts +424 -0
- package/dist/compute.js +184 -0
- package/dist/consent/schemas.d.ts +116 -116
- package/dist/dashboard-config/schemas.d.ts +1885 -1885
- package/dist/delegation/schemas.d.ts +280 -280
- package/dist/deploy/schemas.d.ts +96 -96
- package/dist/deploy/schemas.js +1 -0
- package/dist/deploy/types.d.ts +1 -1
- package/dist/handshake.d.ts +24 -24
- package/dist/identity/schemas.d.ts +8 -8
- package/dist/molti/admin-ws.d.ts +176 -176
- package/dist/molti/schemas.d.ts +70 -70
- package/dist/policy/schemas.d.ts +704 -704
- package/dist/proof/proof-record.d.ts +12 -12
- package/dist/proof/signing-spec.d.ts +4 -4
- package/dist/registry.d.ts +41 -41
- package/dist/reputation/api.d.ts +10 -10
- package/dist/reputation/credentials.d.ts +60 -60
- package/dist/test.d.ts +2 -2
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/verifier.d.ts +8 -8
- package/dist/well-known/index.d.ts +18 -18
- package/package.json +16 -4
|
@@ -89,57 +89,57 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
did: string;
|
|
91
91
|
kid: string;
|
|
92
|
+
nonce: string;
|
|
92
93
|
audience: string;
|
|
93
|
-
ts: number;
|
|
94
94
|
sessionId: string;
|
|
95
|
-
|
|
95
|
+
ts: number;
|
|
96
96
|
requestHash: string;
|
|
97
97
|
responseHash: string;
|
|
98
|
-
delegationRef?: string | undefined;
|
|
99
|
-
scopeId?: string | undefined;
|
|
100
98
|
clientDid?: string | undefined;
|
|
99
|
+
scopeId?: string | undefined;
|
|
100
|
+
delegationRef?: string | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
did: string;
|
|
103
103
|
kid: string;
|
|
104
|
+
nonce: string;
|
|
104
105
|
audience: string;
|
|
105
|
-
ts: number;
|
|
106
106
|
sessionId: string;
|
|
107
|
-
|
|
107
|
+
ts: number;
|
|
108
108
|
requestHash: string;
|
|
109
109
|
responseHash: string;
|
|
110
|
-
delegationRef?: string | undefined;
|
|
111
|
-
scopeId?: string | undefined;
|
|
112
110
|
clientDid?: string | undefined;
|
|
111
|
+
scopeId?: 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
|
+
nonce: string;
|
|
119
120
|
audience: string;
|
|
120
|
-
ts: number;
|
|
121
121
|
sessionId: string;
|
|
122
|
-
|
|
122
|
+
ts: number;
|
|
123
123
|
requestHash: string;
|
|
124
124
|
responseHash: string;
|
|
125
|
-
delegationRef?: string | undefined;
|
|
126
|
-
scopeId?: string | undefined;
|
|
127
125
|
clientDid?: string | undefined;
|
|
126
|
+
scopeId?: 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
|
+
nonce: string;
|
|
134
135
|
audience: string;
|
|
135
|
-
ts: number;
|
|
136
136
|
sessionId: string;
|
|
137
|
-
|
|
137
|
+
ts: number;
|
|
138
138
|
requestHash: string;
|
|
139
139
|
responseHash: string;
|
|
140
|
-
delegationRef?: string | undefined;
|
|
141
|
-
scopeId?: string | undefined;
|
|
142
140
|
clientDid?: string | undefined;
|
|
141
|
+
scopeId?: string | undefined;
|
|
142
|
+
delegationRef?: string | undefined;
|
|
143
143
|
};
|
|
144
144
|
}>, "many">;
|
|
145
145
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -153,14 +153,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
153
153
|
scopeId: string;
|
|
154
154
|
tool: string;
|
|
155
155
|
args: Record<string, unknown>;
|
|
156
|
-
userIdentifier?: string | undefined;
|
|
157
156
|
result?: unknown;
|
|
157
|
+
userIdentifier?: string | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
scopeId: string;
|
|
160
160
|
tool: string;
|
|
161
161
|
args: Record<string, unknown>;
|
|
162
|
-
userIdentifier?: string | undefined;
|
|
163
162
|
result?: unknown;
|
|
163
|
+
userIdentifier?: string | undefined;
|
|
164
164
|
}>, "many">>;
|
|
165
165
|
consentEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
166
|
eventType: z.ZodEnum<["consent:page_viewed", "consent:approved", "consent:delegation_created", "consent:credential_required", "auth:credential_success", "auth:credential_failed", "auth:oauth_success", "auth:oauth_failed"]>;
|
|
@@ -185,37 +185,37 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
185
|
identifier: string;
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
agentDid: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
timestamp: number;
|
|
188
191
|
scopes: string[];
|
|
189
192
|
sessionId: string;
|
|
190
|
-
agentDid: string;
|
|
191
193
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
192
|
-
timestamp: number;
|
|
193
194
|
targetTools: string[];
|
|
194
|
-
projectId: string;
|
|
195
|
-
delegationId?: string | undefined;
|
|
196
195
|
userDid?: string | undefined;
|
|
197
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
198
|
-
termsAccepted?: boolean | undefined;
|
|
199
196
|
oauthIdentity?: {
|
|
200
197
|
provider: string;
|
|
201
198
|
identifier: string;
|
|
202
199
|
} | undefined;
|
|
200
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
201
|
+
delegationId?: string | undefined;
|
|
202
|
+
termsAccepted?: boolean | undefined;
|
|
203
203
|
}, {
|
|
204
|
+
agentDid: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
timestamp: number;
|
|
204
207
|
scopes: string[];
|
|
205
208
|
sessionId: string;
|
|
206
|
-
agentDid: string;
|
|
207
209
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
208
|
-
timestamp: number;
|
|
209
210
|
targetTools: string[];
|
|
210
|
-
projectId: string;
|
|
211
|
-
delegationId?: string | undefined;
|
|
212
211
|
userDid?: string | undefined;
|
|
213
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
214
|
-
termsAccepted?: boolean | undefined;
|
|
215
212
|
oauthIdentity?: {
|
|
216
213
|
provider: string;
|
|
217
214
|
identifier: string;
|
|
218
215
|
} | 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, {
|
|
@@ -223,53 +223,53 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
223
223
|
scopeId: string;
|
|
224
224
|
tool: string;
|
|
225
225
|
args: Record<string, unknown>;
|
|
226
|
-
userIdentifier?: string | undefined;
|
|
227
226
|
result?: unknown;
|
|
227
|
+
userIdentifier?: string | undefined;
|
|
228
228
|
}[] | undefined;
|
|
229
|
+
mcpServerUrl?: string | undefined;
|
|
229
230
|
consentEvents?: {
|
|
231
|
+
agentDid: string;
|
|
232
|
+
projectId: string;
|
|
233
|
+
timestamp: number;
|
|
230
234
|
scopes: string[];
|
|
231
235
|
sessionId: string;
|
|
232
|
-
agentDid: string;
|
|
233
236
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
234
|
-
timestamp: number;
|
|
235
237
|
targetTools: string[];
|
|
236
|
-
projectId: string;
|
|
237
|
-
delegationId?: string | undefined;
|
|
238
238
|
userDid?: string | undefined;
|
|
239
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
240
|
-
termsAccepted?: boolean | undefined;
|
|
241
239
|
oauthIdentity?: {
|
|
242
240
|
provider: string;
|
|
243
241
|
identifier: string;
|
|
244
242
|
} | undefined;
|
|
243
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
244
|
+
delegationId?: string | undefined;
|
|
245
|
+
termsAccepted?: boolean | undefined;
|
|
245
246
|
}[] | undefined;
|
|
246
|
-
mcpServerUrl?: string | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
toolCalls?: {
|
|
249
249
|
scopeId: string;
|
|
250
250
|
tool: string;
|
|
251
251
|
args: Record<string, unknown>;
|
|
252
|
-
userIdentifier?: string | undefined;
|
|
253
252
|
result?: unknown;
|
|
253
|
+
userIdentifier?: string | undefined;
|
|
254
254
|
}[] | undefined;
|
|
255
|
+
mcpServerUrl?: string | undefined;
|
|
255
256
|
consentEvents?: {
|
|
257
|
+
agentDid: string;
|
|
258
|
+
projectId: string;
|
|
259
|
+
timestamp: number;
|
|
256
260
|
scopes: string[];
|
|
257
261
|
sessionId: string;
|
|
258
|
-
agentDid: string;
|
|
259
262
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
260
|
-
timestamp: number;
|
|
261
263
|
targetTools: string[];
|
|
262
|
-
projectId: string;
|
|
263
|
-
delegationId?: string | undefined;
|
|
264
264
|
userDid?: string | undefined;
|
|
265
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
266
|
-
termsAccepted?: boolean | undefined;
|
|
267
265
|
oauthIdentity?: {
|
|
268
266
|
provider: string;
|
|
269
267
|
identifier: string;
|
|
270
268
|
} | undefined;
|
|
269
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
270
|
+
delegationId?: string | undefined;
|
|
271
|
+
termsAccepted?: boolean | undefined;
|
|
271
272
|
}[] | undefined;
|
|
272
|
-
mcpServerUrl?: string | undefined;
|
|
273
273
|
}>>;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
275
|
session_id: string;
|
|
@@ -278,45 +278,45 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
278
|
meta: {
|
|
279
279
|
did: string;
|
|
280
280
|
kid: string;
|
|
281
|
+
nonce: string;
|
|
281
282
|
audience: string;
|
|
282
|
-
ts: number;
|
|
283
283
|
sessionId: string;
|
|
284
|
-
|
|
284
|
+
ts: number;
|
|
285
285
|
requestHash: string;
|
|
286
286
|
responseHash: string;
|
|
287
|
-
delegationRef?: string | undefined;
|
|
288
|
-
scopeId?: string | undefined;
|
|
289
287
|
clientDid?: string | undefined;
|
|
288
|
+
scopeId?: string | undefined;
|
|
289
|
+
delegationRef?: string | undefined;
|
|
290
290
|
};
|
|
291
291
|
}[];
|
|
292
|
+
delegation_id?: string | null | undefined;
|
|
292
293
|
context?: {
|
|
293
294
|
toolCalls?: {
|
|
294
295
|
scopeId: string;
|
|
295
296
|
tool: string;
|
|
296
297
|
args: Record<string, unknown>;
|
|
297
|
-
userIdentifier?: string | undefined;
|
|
298
298
|
result?: unknown;
|
|
299
|
+
userIdentifier?: string | undefined;
|
|
299
300
|
}[] | undefined;
|
|
301
|
+
mcpServerUrl?: string | undefined;
|
|
300
302
|
consentEvents?: {
|
|
303
|
+
agentDid: string;
|
|
304
|
+
projectId: string;
|
|
305
|
+
timestamp: number;
|
|
301
306
|
scopes: string[];
|
|
302
307
|
sessionId: string;
|
|
303
|
-
agentDid: string;
|
|
304
308
|
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
309
|
targetTools: string[];
|
|
307
|
-
projectId: string;
|
|
308
|
-
delegationId?: string | undefined;
|
|
309
310
|
userDid?: string | undefined;
|
|
310
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
311
|
-
termsAccepted?: boolean | undefined;
|
|
312
311
|
oauthIdentity?: {
|
|
313
312
|
provider: string;
|
|
314
313
|
identifier: string;
|
|
315
314
|
} | undefined;
|
|
315
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
316
|
+
delegationId?: string | undefined;
|
|
317
|
+
termsAccepted?: boolean | undefined;
|
|
316
318
|
}[] | undefined;
|
|
317
|
-
mcpServerUrl?: string | undefined;
|
|
318
319
|
} | undefined;
|
|
319
|
-
delegation_id?: string | null | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
session_id: string;
|
|
322
322
|
proofs: {
|
|
@@ -324,45 +324,45 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
324
|
meta: {
|
|
325
325
|
did: string;
|
|
326
326
|
kid: string;
|
|
327
|
+
nonce: string;
|
|
327
328
|
audience: string;
|
|
328
|
-
ts: number;
|
|
329
329
|
sessionId: string;
|
|
330
|
-
|
|
330
|
+
ts: number;
|
|
331
331
|
requestHash: string;
|
|
332
332
|
responseHash: string;
|
|
333
|
-
delegationRef?: string | undefined;
|
|
334
|
-
scopeId?: string | undefined;
|
|
335
333
|
clientDid?: string | undefined;
|
|
334
|
+
scopeId?: string | undefined;
|
|
335
|
+
delegationRef?: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}[];
|
|
338
|
+
delegation_id?: string | null | undefined;
|
|
338
339
|
context?: {
|
|
339
340
|
toolCalls?: {
|
|
340
341
|
scopeId: string;
|
|
341
342
|
tool: string;
|
|
342
343
|
args: Record<string, unknown>;
|
|
343
|
-
userIdentifier?: string | undefined;
|
|
344
344
|
result?: unknown;
|
|
345
|
+
userIdentifier?: string | undefined;
|
|
345
346
|
}[] | undefined;
|
|
347
|
+
mcpServerUrl?: string | undefined;
|
|
346
348
|
consentEvents?: {
|
|
349
|
+
agentDid: string;
|
|
350
|
+
projectId: string;
|
|
351
|
+
timestamp: number;
|
|
347
352
|
scopes: string[];
|
|
348
353
|
sessionId: string;
|
|
349
|
-
agentDid: string;
|
|
350
354
|
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
355
|
targetTools: string[];
|
|
353
|
-
projectId: string;
|
|
354
|
-
delegationId?: string | undefined;
|
|
355
356
|
userDid?: string | undefined;
|
|
356
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
357
|
-
termsAccepted?: boolean | undefined;
|
|
358
357
|
oauthIdentity?: {
|
|
359
358
|
provider: string;
|
|
360
359
|
identifier: string;
|
|
361
360
|
} | undefined;
|
|
361
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
362
|
+
delegationId?: string | undefined;
|
|
363
|
+
termsAccepted?: boolean | undefined;
|
|
362
364
|
}[] | undefined;
|
|
363
|
-
mcpServerUrl?: string | undefined;
|
|
364
365
|
} | undefined;
|
|
365
|
-
delegation_id?: string | null | undefined;
|
|
366
366
|
}>;
|
|
367
367
|
/**
|
|
368
368
|
* Proof submission response schema
|
|
@@ -451,7 +451,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
451
451
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
452
452
|
domain: z.ZodOptional<z.ZodString>;
|
|
453
453
|
}, "strip", z.ZodTypeAny, {
|
|
454
|
-
type: "
|
|
454
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
455
455
|
provider?: string | undefined;
|
|
456
456
|
credentialType?: string | undefined;
|
|
457
457
|
rpId?: string | undefined;
|
|
@@ -459,7 +459,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
459
459
|
chainId?: number | undefined;
|
|
460
460
|
domain?: string | undefined;
|
|
461
461
|
}, {
|
|
462
|
-
type: "
|
|
462
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
463
463
|
provider?: string | undefined;
|
|
464
464
|
credentialType?: string | undefined;
|
|
465
465
|
rpId?: string | undefined;
|
|
@@ -470,7 +470,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
470
470
|
}, "strip", z.ZodTypeAny, {
|
|
471
471
|
scopes: string[];
|
|
472
472
|
authorization: {
|
|
473
|
-
type: "
|
|
473
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
474
474
|
provider?: string | undefined;
|
|
475
475
|
credentialType?: string | undefined;
|
|
476
476
|
rpId?: string | undefined;
|
|
@@ -489,7 +489,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
489
489
|
}, {
|
|
490
490
|
scopes: string[];
|
|
491
491
|
authorization: {
|
|
492
|
-
type: "
|
|
492
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
493
493
|
provider?: string | undefined;
|
|
494
494
|
credentialType?: string | undefined;
|
|
495
495
|
rpId?: string | undefined;
|
|
@@ -510,8 +510,8 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
510
510
|
* Delegation verification request schema
|
|
511
511
|
*/
|
|
512
512
|
export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
513
|
-
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
514
513
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
515
515
|
agent_did: z.ZodString;
|
|
516
516
|
user_did: z.ZodOptional<z.ZodString>;
|
|
517
517
|
credential_jwt: z.ZodOptional<z.ZodString>;
|
|
@@ -521,36 +521,36 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
521
521
|
origin: z.ZodOptional<z.ZodString>;
|
|
522
522
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
523
523
|
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
ip_address?: string | undefined;
|
|
525
524
|
origin?: string | undefined;
|
|
525
|
+
ip_address?: string | undefined;
|
|
526
526
|
user_agent?: string | undefined;
|
|
527
527
|
}, {
|
|
528
|
-
ip_address?: string | undefined;
|
|
529
528
|
origin?: string | undefined;
|
|
529
|
+
ip_address?: string | undefined;
|
|
530
530
|
user_agent?: string | undefined;
|
|
531
531
|
}>>;
|
|
532
532
|
}, "strip", z.ZodTypeAny, {
|
|
533
533
|
agent_did: string;
|
|
534
|
-
scopes?: string[] | undefined;
|
|
535
534
|
timestamp?: number | undefined;
|
|
535
|
+
scopes?: string[] | undefined;
|
|
536
536
|
user_did?: string | undefined;
|
|
537
537
|
credential_jwt?: string | undefined;
|
|
538
538
|
delegation_token?: string | undefined;
|
|
539
539
|
client_info?: {
|
|
540
|
-
ip_address?: string | undefined;
|
|
541
540
|
origin?: string | undefined;
|
|
541
|
+
ip_address?: string | undefined;
|
|
542
542
|
user_agent?: string | undefined;
|
|
543
543
|
} | undefined;
|
|
544
544
|
}, {
|
|
545
545
|
agent_did: string;
|
|
546
|
-
scopes?: string[] | undefined;
|
|
547
546
|
timestamp?: number | undefined;
|
|
547
|
+
scopes?: string[] | undefined;
|
|
548
548
|
user_did?: string | undefined;
|
|
549
549
|
credential_jwt?: string | undefined;
|
|
550
550
|
delegation_token?: string | undefined;
|
|
551
551
|
client_info?: {
|
|
552
|
-
ip_address?: string | undefined;
|
|
553
552
|
origin?: string | undefined;
|
|
553
|
+
ip_address?: string | undefined;
|
|
554
554
|
user_agent?: string | undefined;
|
|
555
555
|
} | undefined;
|
|
556
556
|
}>;
|
|
@@ -1810,7 +1810,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1810
1810
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
1811
1811
|
domain: z.ZodOptional<z.ZodString>;
|
|
1812
1812
|
}, "strip", z.ZodTypeAny, {
|
|
1813
|
-
type: "
|
|
1813
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1814
1814
|
provider?: string | undefined;
|
|
1815
1815
|
credentialType?: string | undefined;
|
|
1816
1816
|
rpId?: string | undefined;
|
|
@@ -1818,7 +1818,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1818
1818
|
chainId?: number | undefined;
|
|
1819
1819
|
domain?: string | undefined;
|
|
1820
1820
|
}, {
|
|
1821
|
-
type: "
|
|
1821
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1822
1822
|
provider?: string | undefined;
|
|
1823
1823
|
credentialType?: string | undefined;
|
|
1824
1824
|
rpId?: string | undefined;
|
|
@@ -1829,7 +1829,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1829
1829
|
}, "strip", z.ZodTypeAny, {
|
|
1830
1830
|
scopes: string[];
|
|
1831
1831
|
authorization: {
|
|
1832
|
-
type: "
|
|
1832
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1833
1833
|
provider?: string | undefined;
|
|
1834
1834
|
credentialType?: string | undefined;
|
|
1835
1835
|
rpId?: string | undefined;
|
|
@@ -1848,7 +1848,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1848
1848
|
}, {
|
|
1849
1849
|
scopes: string[];
|
|
1850
1850
|
authorization: {
|
|
1851
|
-
type: "
|
|
1851
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1852
1852
|
provider?: string | undefined;
|
|
1853
1853
|
credentialType?: string | undefined;
|
|
1854
1854
|
rpId?: string | undefined;
|
|
@@ -1886,6 +1886,28 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1886
1886
|
message: string;
|
|
1887
1887
|
details?: Record<string, unknown> | undefined;
|
|
1888
1888
|
} | undefined;
|
|
1889
|
+
credential?: {
|
|
1890
|
+
scopes: string[];
|
|
1891
|
+
authorization: {
|
|
1892
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1893
|
+
provider?: string | undefined;
|
|
1894
|
+
credentialType?: string | undefined;
|
|
1895
|
+
rpId?: string | undefined;
|
|
1896
|
+
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
1897
|
+
chainId?: number | undefined;
|
|
1898
|
+
domain?: string | undefined;
|
|
1899
|
+
};
|
|
1900
|
+
agent_did: string;
|
|
1901
|
+
user_did: string;
|
|
1902
|
+
issued_at: number;
|
|
1903
|
+
created_at: number;
|
|
1904
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1905
|
+
user_id?: string | undefined;
|
|
1906
|
+
user_identifier?: string | undefined;
|
|
1907
|
+
credential_jwt?: string | undefined;
|
|
1908
|
+
} | undefined;
|
|
1909
|
+
delegation_id?: string | undefined;
|
|
1910
|
+
reason?: string | undefined;
|
|
1889
1911
|
delegation?: z.objectOutputType<{
|
|
1890
1912
|
id: z.ZodString;
|
|
1891
1913
|
issuerDid: z.ZodString;
|
|
@@ -2297,10 +2319,17 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2297
2319
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2298
2320
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2299
2321
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2322
|
+
}, {
|
|
2323
|
+
valid: boolean;
|
|
2324
|
+
error?: {
|
|
2325
|
+
code: string;
|
|
2326
|
+
message: string;
|
|
2327
|
+
details?: Record<string, unknown> | undefined;
|
|
2328
|
+
} | undefined;
|
|
2300
2329
|
credential?: {
|
|
2301
2330
|
scopes: string[];
|
|
2302
2331
|
authorization: {
|
|
2303
|
-
type: "
|
|
2332
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
2304
2333
|
provider?: string | undefined;
|
|
2305
2334
|
credentialType?: string | undefined;
|
|
2306
2335
|
rpId?: string | undefined;
|
|
@@ -2317,15 +2346,8 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2317
2346
|
user_identifier?: string | undefined;
|
|
2318
2347
|
credential_jwt?: string | undefined;
|
|
2319
2348
|
} | undefined;
|
|
2320
|
-
reason?: string | undefined;
|
|
2321
2349
|
delegation_id?: string | undefined;
|
|
2322
|
-
|
|
2323
|
-
valid: boolean;
|
|
2324
|
-
error?: {
|
|
2325
|
-
code: string;
|
|
2326
|
-
message: string;
|
|
2327
|
-
details?: Record<string, unknown> | undefined;
|
|
2328
|
-
} | undefined;
|
|
2350
|
+
reason?: string | undefined;
|
|
2329
2351
|
delegation?: z.objectInputType<{
|
|
2330
2352
|
id: z.ZodString;
|
|
2331
2353
|
issuerDid: z.ZodString;
|
|
@@ -2737,28 +2759,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2737
2759
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2738
2760
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2739
2761
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2740
|
-
credential?: {
|
|
2741
|
-
scopes: string[];
|
|
2742
|
-
authorization: {
|
|
2743
|
-
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
2744
|
-
provider?: string | undefined;
|
|
2745
|
-
credentialType?: string | undefined;
|
|
2746
|
-
rpId?: string | undefined;
|
|
2747
|
-
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
2748
|
-
chainId?: number | undefined;
|
|
2749
|
-
domain?: string | undefined;
|
|
2750
|
-
};
|
|
2751
|
-
agent_did: string;
|
|
2752
|
-
user_did: string;
|
|
2753
|
-
issued_at: number;
|
|
2754
|
-
created_at: number;
|
|
2755
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2756
|
-
user_id?: string | undefined;
|
|
2757
|
-
user_identifier?: string | undefined;
|
|
2758
|
-
credential_jwt?: string | undefined;
|
|
2759
|
-
} | undefined;
|
|
2760
|
-
reason?: string | undefined;
|
|
2761
|
-
delegation_id?: string | undefined;
|
|
2762
2762
|
}>;
|
|
2763
2763
|
/**
|
|
2764
2764
|
* Wrapped verification response schema
|
|
@@ -4018,7 +4018,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4018
4018
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
4019
4019
|
domain: z.ZodOptional<z.ZodString>;
|
|
4020
4020
|
}, "strip", z.ZodTypeAny, {
|
|
4021
|
-
type: "
|
|
4021
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4022
4022
|
provider?: string | undefined;
|
|
4023
4023
|
credentialType?: string | undefined;
|
|
4024
4024
|
rpId?: string | undefined;
|
|
@@ -4026,7 +4026,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4026
4026
|
chainId?: number | undefined;
|
|
4027
4027
|
domain?: string | undefined;
|
|
4028
4028
|
}, {
|
|
4029
|
-
type: "
|
|
4029
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4030
4030
|
provider?: string | undefined;
|
|
4031
4031
|
credentialType?: string | undefined;
|
|
4032
4032
|
rpId?: string | undefined;
|
|
@@ -4037,7 +4037,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4037
4037
|
}, "strip", z.ZodTypeAny, {
|
|
4038
4038
|
scopes: string[];
|
|
4039
4039
|
authorization: {
|
|
4040
|
-
type: "
|
|
4040
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4041
4041
|
provider?: string | undefined;
|
|
4042
4042
|
credentialType?: string | undefined;
|
|
4043
4043
|
rpId?: string | undefined;
|
|
@@ -4056,7 +4056,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4056
4056
|
}, {
|
|
4057
4057
|
scopes: string[];
|
|
4058
4058
|
authorization: {
|
|
4059
|
-
type: "
|
|
4059
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4060
4060
|
provider?: string | undefined;
|
|
4061
4061
|
credentialType?: string | undefined;
|
|
4062
4062
|
rpId?: string | undefined;
|
|
@@ -4094,6 +4094,28 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4094
4094
|
message: string;
|
|
4095
4095
|
details?: Record<string, unknown> | undefined;
|
|
4096
4096
|
} | undefined;
|
|
4097
|
+
credential?: {
|
|
4098
|
+
scopes: string[];
|
|
4099
|
+
authorization: {
|
|
4100
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4101
|
+
provider?: string | undefined;
|
|
4102
|
+
credentialType?: string | undefined;
|
|
4103
|
+
rpId?: string | undefined;
|
|
4104
|
+
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
4105
|
+
chainId?: number | undefined;
|
|
4106
|
+
domain?: string | undefined;
|
|
4107
|
+
};
|
|
4108
|
+
agent_did: string;
|
|
4109
|
+
user_did: string;
|
|
4110
|
+
issued_at: number;
|
|
4111
|
+
created_at: number;
|
|
4112
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4113
|
+
user_id?: string | undefined;
|
|
4114
|
+
user_identifier?: string | undefined;
|
|
4115
|
+
credential_jwt?: string | undefined;
|
|
4116
|
+
} | undefined;
|
|
4117
|
+
delegation_id?: string | undefined;
|
|
4118
|
+
reason?: string | undefined;
|
|
4097
4119
|
delegation?: z.objectOutputType<{
|
|
4098
4120
|
id: z.ZodString;
|
|
4099
4121
|
issuerDid: z.ZodString;
|
|
@@ -4505,10 +4527,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4505
4527
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4506
4528
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4507
4529
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4530
|
+
}, {
|
|
4531
|
+
valid: boolean;
|
|
4532
|
+
error?: {
|
|
4533
|
+
code: string;
|
|
4534
|
+
message: string;
|
|
4535
|
+
details?: Record<string, unknown> | undefined;
|
|
4536
|
+
} | undefined;
|
|
4508
4537
|
credential?: {
|
|
4509
4538
|
scopes: string[];
|
|
4510
4539
|
authorization: {
|
|
4511
|
-
type: "
|
|
4540
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4512
4541
|
provider?: string | undefined;
|
|
4513
4542
|
credentialType?: string | undefined;
|
|
4514
4543
|
rpId?: string | undefined;
|
|
@@ -4525,15 +4554,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4525
4554
|
user_identifier?: string | undefined;
|
|
4526
4555
|
credential_jwt?: string | undefined;
|
|
4527
4556
|
} | undefined;
|
|
4528
|
-
reason?: string | undefined;
|
|
4529
4557
|
delegation_id?: string | undefined;
|
|
4530
|
-
|
|
4531
|
-
valid: boolean;
|
|
4532
|
-
error?: {
|
|
4533
|
-
code: string;
|
|
4534
|
-
message: string;
|
|
4535
|
-
details?: Record<string, unknown> | undefined;
|
|
4536
|
-
} | undefined;
|
|
4558
|
+
reason?: string | undefined;
|
|
4537
4559
|
delegation?: z.objectInputType<{
|
|
4538
4560
|
id: z.ZodString;
|
|
4539
4561
|
issuerDid: z.ZodString;
|
|
@@ -4945,28 +4967,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4945
4967
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4946
4968
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4947
4969
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4948
|
-
credential?: {
|
|
4949
|
-
scopes: string[];
|
|
4950
|
-
authorization: {
|
|
4951
|
-
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4952
|
-
provider?: string | undefined;
|
|
4953
|
-
credentialType?: string | undefined;
|
|
4954
|
-
rpId?: string | undefined;
|
|
4955
|
-
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
4956
|
-
chainId?: number | undefined;
|
|
4957
|
-
domain?: string | undefined;
|
|
4958
|
-
};
|
|
4959
|
-
agent_did: string;
|
|
4960
|
-
user_did: string;
|
|
4961
|
-
issued_at: number;
|
|
4962
|
-
created_at: number;
|
|
4963
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4964
|
-
user_id?: string | undefined;
|
|
4965
|
-
user_identifier?: string | undefined;
|
|
4966
|
-
credential_jwt?: string | undefined;
|
|
4967
|
-
} | undefined;
|
|
4968
|
-
reason?: string | undefined;
|
|
4969
|
-
delegation_id?: string | undefined;
|
|
4970
4970
|
}>;
|
|
4971
4971
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4972
4972
|
requestId: z.ZodString;
|
|
@@ -4987,6 +4987,28 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4987
4987
|
message: string;
|
|
4988
4988
|
details?: Record<string, unknown> | undefined;
|
|
4989
4989
|
} | undefined;
|
|
4990
|
+
credential?: {
|
|
4991
|
+
scopes: string[];
|
|
4992
|
+
authorization: {
|
|
4993
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4994
|
+
provider?: string | undefined;
|
|
4995
|
+
credentialType?: string | undefined;
|
|
4996
|
+
rpId?: string | undefined;
|
|
4997
|
+
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
4998
|
+
chainId?: number | undefined;
|
|
4999
|
+
domain?: string | undefined;
|
|
5000
|
+
};
|
|
5001
|
+
agent_did: string;
|
|
5002
|
+
user_did: string;
|
|
5003
|
+
issued_at: number;
|
|
5004
|
+
created_at: number;
|
|
5005
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5006
|
+
user_id?: string | undefined;
|
|
5007
|
+
user_identifier?: string | undefined;
|
|
5008
|
+
credential_jwt?: string | undefined;
|
|
5009
|
+
} | undefined;
|
|
5010
|
+
delegation_id?: string | undefined;
|
|
5011
|
+
reason?: string | undefined;
|
|
4990
5012
|
delegation?: z.objectOutputType<{
|
|
4991
5013
|
id: z.ZodString;
|
|
4992
5014
|
issuerDid: z.ZodString;
|
|
@@ -5398,10 +5420,24 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5398
5420
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5399
5421
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5400
5422
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5423
|
+
};
|
|
5424
|
+
metadata?: {
|
|
5425
|
+
timestamp: string;
|
|
5426
|
+
requestId: string;
|
|
5427
|
+
} | undefined;
|
|
5428
|
+
}, {
|
|
5429
|
+
success: boolean;
|
|
5430
|
+
data: {
|
|
5431
|
+
valid: boolean;
|
|
5432
|
+
error?: {
|
|
5433
|
+
code: string;
|
|
5434
|
+
message: string;
|
|
5435
|
+
details?: Record<string, unknown> | undefined;
|
|
5436
|
+
} | undefined;
|
|
5401
5437
|
credential?: {
|
|
5402
5438
|
scopes: string[];
|
|
5403
5439
|
authorization: {
|
|
5404
|
-
type: "
|
|
5440
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
5405
5441
|
provider?: string | undefined;
|
|
5406
5442
|
credentialType?: string | undefined;
|
|
5407
5443
|
rpId?: string | undefined;
|
|
@@ -5418,22 +5454,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5418
5454
|
user_identifier?: string | undefined;
|
|
5419
5455
|
credential_jwt?: string | undefined;
|
|
5420
5456
|
} | undefined;
|
|
5421
|
-
reason?: string | undefined;
|
|
5422
5457
|
delegation_id?: string | undefined;
|
|
5423
|
-
|
|
5424
|
-
metadata?: {
|
|
5425
|
-
timestamp: string;
|
|
5426
|
-
requestId: string;
|
|
5427
|
-
} | undefined;
|
|
5428
|
-
}, {
|
|
5429
|
-
success: boolean;
|
|
5430
|
-
data: {
|
|
5431
|
-
valid: boolean;
|
|
5432
|
-
error?: {
|
|
5433
|
-
code: string;
|
|
5434
|
-
message: string;
|
|
5435
|
-
details?: Record<string, unknown> | undefined;
|
|
5436
|
-
} | undefined;
|
|
5458
|
+
reason?: string | undefined;
|
|
5437
5459
|
delegation?: z.objectInputType<{
|
|
5438
5460
|
id: z.ZodString;
|
|
5439
5461
|
issuerDid: z.ZodString;
|
|
@@ -5845,28 +5867,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5845
5867
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5846
5868
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5847
5869
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5848
|
-
credential?: {
|
|
5849
|
-
scopes: string[];
|
|
5850
|
-
authorization: {
|
|
5851
|
-
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
5852
|
-
provider?: string | undefined;
|
|
5853
|
-
credentialType?: string | undefined;
|
|
5854
|
-
rpId?: string | undefined;
|
|
5855
|
-
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
5856
|
-
chainId?: number | undefined;
|
|
5857
|
-
domain?: string | undefined;
|
|
5858
|
-
};
|
|
5859
|
-
agent_did: string;
|
|
5860
|
-
user_did: string;
|
|
5861
|
-
issued_at: number;
|
|
5862
|
-
created_at: number;
|
|
5863
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5864
|
-
user_id?: string | undefined;
|
|
5865
|
-
user_identifier?: string | undefined;
|
|
5866
|
-
credential_jwt?: string | undefined;
|
|
5867
|
-
} | undefined;
|
|
5868
|
-
reason?: string | undefined;
|
|
5869
|
-
delegation_id?: string | undefined;
|
|
5870
5870
|
};
|
|
5871
5871
|
metadata?: {
|
|
5872
5872
|
timestamp: string;
|
|
@@ -5933,13 +5933,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5933
5933
|
time_window: string;
|
|
5934
5934
|
}>>;
|
|
5935
5935
|
}, "strip", z.ZodTypeAny, {
|
|
5936
|
-
agent_did: string;
|
|
5937
5936
|
tools: Record<string, z.objectOutputType<{
|
|
5938
5937
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5939
5938
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5940
5939
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5941
5940
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5942
5941
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5942
|
+
agent_did: string;
|
|
5943
5943
|
reputation_threshold?: number | undefined;
|
|
5944
5944
|
denied_agents?: string[] | undefined;
|
|
5945
5945
|
crisp_budget?: {
|
|
@@ -5949,13 +5949,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5949
5949
|
time_window: string;
|
|
5950
5950
|
} | undefined;
|
|
5951
5951
|
}, {
|
|
5952
|
-
agent_did: string;
|
|
5953
5952
|
tools: Record<string, z.objectInputType<{
|
|
5954
5953
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5955
5954
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5956
5955
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5957
5956
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5958
5957
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5958
|
+
agent_did: string;
|
|
5959
5959
|
reputation_threshold?: number | undefined;
|
|
5960
5960
|
denied_agents?: string[] | undefined;
|
|
5961
5961
|
crisp_budget?: {
|
|
@@ -6007,13 +6007,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6007
6007
|
time_window: string;
|
|
6008
6008
|
}>>;
|
|
6009
6009
|
}, "strip", z.ZodTypeAny, {
|
|
6010
|
-
agent_did: string;
|
|
6011
6010
|
tools: Record<string, z.objectOutputType<{
|
|
6012
6011
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6013
6012
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6014
6013
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6015
6014
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6016
6015
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6016
|
+
agent_did: string;
|
|
6017
6017
|
reputation_threshold?: number | undefined;
|
|
6018
6018
|
denied_agents?: string[] | undefined;
|
|
6019
6019
|
crisp_budget?: {
|
|
@@ -6023,13 +6023,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6023
6023
|
time_window: string;
|
|
6024
6024
|
} | undefined;
|
|
6025
6025
|
}, {
|
|
6026
|
-
agent_did: string;
|
|
6027
6026
|
tools: Record<string, z.objectInputType<{
|
|
6028
6027
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6029
6028
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6030
6029
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6031
6030
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6032
6031
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6032
|
+
agent_did: string;
|
|
6033
6033
|
reputation_threshold?: number | undefined;
|
|
6034
6034
|
denied_agents?: string[] | undefined;
|
|
6035
6035
|
crisp_budget?: {
|
|
@@ -6052,13 +6052,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6052
6052
|
}, "strip", z.ZodTypeAny, {
|
|
6053
6053
|
success: boolean;
|
|
6054
6054
|
data: {
|
|
6055
|
-
agent_did: string;
|
|
6056
6055
|
tools: Record<string, z.objectOutputType<{
|
|
6057
6056
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6058
6057
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6059
6058
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6060
6059
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6061
6060
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6061
|
+
agent_did: string;
|
|
6062
6062
|
reputation_threshold?: number | undefined;
|
|
6063
6063
|
denied_agents?: string[] | undefined;
|
|
6064
6064
|
crisp_budget?: {
|
|
@@ -6075,13 +6075,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6075
6075
|
}, {
|
|
6076
6076
|
success: boolean;
|
|
6077
6077
|
data: {
|
|
6078
|
-
agent_did: string;
|
|
6079
6078
|
tools: Record<string, z.objectInputType<{
|
|
6080
6079
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6081
6080
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6082
6081
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6083
6082
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6084
6083
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6084
|
+
agent_did: string;
|
|
6085
6085
|
reputation_threshold?: number | undefined;
|
|
6086
6086
|
denied_agents?: string[] | undefined;
|
|
6087
6087
|
crisp_budget?: {
|
|
@@ -6172,7 +6172,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6172
6172
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6173
6173
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6174
6174
|
}, "strip", z.ZodTypeAny, {
|
|
6175
|
-
status: "
|
|
6175
|
+
status: "revoked" | "active" | "expired";
|
|
6176
6176
|
scopes: string[];
|
|
6177
6177
|
delegation_id: string;
|
|
6178
6178
|
agent_did: string;
|
|
@@ -6185,7 +6185,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6185
6185
|
token_type?: string | undefined;
|
|
6186
6186
|
expires_in?: number | undefined;
|
|
6187
6187
|
}, {
|
|
6188
|
-
status: "
|
|
6188
|
+
status: "revoked" | "active" | "expired";
|
|
6189
6189
|
scopes: string[];
|
|
6190
6190
|
delegation_id: string;
|
|
6191
6191
|
agent_did: string;
|
|
@@ -6217,7 +6217,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6217
6217
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6218
6218
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6219
6219
|
}, "strip", z.ZodTypeAny, {
|
|
6220
|
-
status: "
|
|
6220
|
+
status: "revoked" | "active" | "expired";
|
|
6221
6221
|
scopes: string[];
|
|
6222
6222
|
delegation_id: string;
|
|
6223
6223
|
agent_did: string;
|
|
@@ -6230,7 +6230,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6230
6230
|
token_type?: string | undefined;
|
|
6231
6231
|
expires_in?: number | undefined;
|
|
6232
6232
|
}, {
|
|
6233
|
-
status: "
|
|
6233
|
+
status: "revoked" | "active" | "expired";
|
|
6234
6234
|
scopes: string[];
|
|
6235
6235
|
delegation_id: string;
|
|
6236
6236
|
agent_did: string;
|
|
@@ -6256,7 +6256,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6256
6256
|
}, "strip", z.ZodTypeAny, {
|
|
6257
6257
|
success: boolean;
|
|
6258
6258
|
data: {
|
|
6259
|
-
status: "
|
|
6259
|
+
status: "revoked" | "active" | "expired";
|
|
6260
6260
|
scopes: string[];
|
|
6261
6261
|
delegation_id: string;
|
|
6262
6262
|
agent_did: string;
|
|
@@ -6276,7 +6276,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6276
6276
|
}, {
|
|
6277
6277
|
success: boolean;
|
|
6278
6278
|
data: {
|
|
6279
|
-
status: "
|
|
6279
|
+
status: "revoked" | "active" | "expired";
|
|
6280
6280
|
scopes: string[];
|
|
6281
6281
|
delegation_id: string;
|
|
6282
6282
|
agent_did: string;
|
|
@@ -6383,15 +6383,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
|
|
|
6383
6383
|
}, "strip", z.ZodTypeAny, {
|
|
6384
6384
|
name: string;
|
|
6385
6385
|
version?: string | undefined;
|
|
6386
|
-
protocol_version?: string | undefined;
|
|
6387
6386
|
platform?: string | undefined;
|
|
6388
6387
|
vendor?: string | undefined;
|
|
6388
|
+
protocol_version?: string | undefined;
|
|
6389
6389
|
}, {
|
|
6390
6390
|
name: string;
|
|
6391
6391
|
version?: string | undefined;
|
|
6392
|
-
protocol_version?: string | undefined;
|
|
6393
6392
|
platform?: string | undefined;
|
|
6394
6393
|
vendor?: string | undefined;
|
|
6394
|
+
protocol_version?: string | undefined;
|
|
6395
6395
|
}>;
|
|
6396
6396
|
/**
|
|
6397
6397
|
* Session client identity schema
|
|
@@ -6401,13 +6401,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
|
6401
6401
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6402
6402
|
registered: z.ZodBoolean;
|
|
6403
6403
|
}, "strip", z.ZodTypeAny, {
|
|
6404
|
+
registered: boolean;
|
|
6404
6405
|
did: string;
|
|
6405
6406
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6406
|
-
registered: boolean;
|
|
6407
6407
|
}, {
|
|
6408
|
+
registered: boolean;
|
|
6408
6409
|
did: string;
|
|
6409
6410
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6410
|
-
registered: boolean;
|
|
6411
6411
|
}>;
|
|
6412
6412
|
/**
|
|
6413
6413
|
* Register session request schema
|
|
@@ -6427,68 +6427,68 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6427
6427
|
}, "strip", z.ZodTypeAny, {
|
|
6428
6428
|
name: string;
|
|
6429
6429
|
version?: string | undefined;
|
|
6430
|
-
protocol_version?: string | undefined;
|
|
6431
6430
|
platform?: string | undefined;
|
|
6432
6431
|
vendor?: string | undefined;
|
|
6432
|
+
protocol_version?: string | undefined;
|
|
6433
6433
|
}, {
|
|
6434
6434
|
name: string;
|
|
6435
6435
|
version?: string | undefined;
|
|
6436
|
-
protocol_version?: string | undefined;
|
|
6437
6436
|
platform?: string | undefined;
|
|
6438
6437
|
vendor?: string | undefined;
|
|
6438
|
+
protocol_version?: string | undefined;
|
|
6439
6439
|
}>;
|
|
6440
6440
|
client_identity: z.ZodOptional<z.ZodObject<{
|
|
6441
6441
|
did: z.ZodString;
|
|
6442
6442
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6443
6443
|
registered: z.ZodBoolean;
|
|
6444
6444
|
}, "strip", z.ZodTypeAny, {
|
|
6445
|
+
registered: boolean;
|
|
6445
6446
|
did: string;
|
|
6446
6447
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6447
|
-
registered: boolean;
|
|
6448
6448
|
}, {
|
|
6449
|
+
registered: boolean;
|
|
6449
6450
|
did: string;
|
|
6450
6451
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6451
|
-
registered: boolean;
|
|
6452
6452
|
}>>;
|
|
6453
6453
|
server_did: z.ZodOptional<z.ZodString>;
|
|
6454
6454
|
ttl_minutes: z.ZodOptional<z.ZodNumber>;
|
|
6455
6455
|
}, "strip", z.ZodTypeAny, {
|
|
6456
6456
|
session_id: string;
|
|
6457
6457
|
agent_did: string;
|
|
6458
|
+
project_id: string;
|
|
6458
6459
|
created_at: number;
|
|
6459
6460
|
client_info: {
|
|
6460
6461
|
name: string;
|
|
6461
6462
|
version?: string | undefined;
|
|
6462
|
-
protocol_version?: string | undefined;
|
|
6463
6463
|
platform?: string | undefined;
|
|
6464
6464
|
vendor?: string | undefined;
|
|
6465
|
+
protocol_version?: string | undefined;
|
|
6465
6466
|
};
|
|
6466
|
-
project_id: string;
|
|
6467
6467
|
agent_name?: string | undefined;
|
|
6468
6468
|
client_identity?: {
|
|
6469
|
+
registered: boolean;
|
|
6469
6470
|
did: string;
|
|
6470
6471
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6471
|
-
registered: boolean;
|
|
6472
6472
|
} | undefined;
|
|
6473
6473
|
server_did?: string | undefined;
|
|
6474
6474
|
ttl_minutes?: number | undefined;
|
|
6475
6475
|
}, {
|
|
6476
6476
|
session_id: string;
|
|
6477
6477
|
agent_did: string;
|
|
6478
|
+
project_id: string;
|
|
6478
6479
|
created_at: number;
|
|
6479
6480
|
client_info: {
|
|
6480
6481
|
name: string;
|
|
6481
6482
|
version?: string | undefined;
|
|
6482
|
-
protocol_version?: string | undefined;
|
|
6483
6483
|
platform?: string | undefined;
|
|
6484
6484
|
vendor?: string | undefined;
|
|
6485
|
+
protocol_version?: string | undefined;
|
|
6485
6486
|
};
|
|
6486
|
-
project_id: string;
|
|
6487
6487
|
agent_name?: string | undefined;
|
|
6488
6488
|
client_identity?: {
|
|
6489
|
+
registered: boolean;
|
|
6489
6490
|
did: string;
|
|
6490
6491
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6491
|
-
registered: boolean;
|
|
6492
6492
|
} | undefined;
|
|
6493
6493
|
server_did?: string | undefined;
|
|
6494
6494
|
ttl_minutes?: number | undefined;
|
|
@@ -6501,13 +6501,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
|
|
|
6501
6501
|
registered: z.ZodBoolean;
|
|
6502
6502
|
created_at: z.ZodString;
|
|
6503
6503
|
}, "strip", z.ZodTypeAny, {
|
|
6504
|
+
registered: boolean;
|
|
6504
6505
|
session_id: string;
|
|
6505
6506
|
created_at: string;
|
|
6506
|
-
registered: boolean;
|
|
6507
6507
|
}, {
|
|
6508
|
+
registered: boolean;
|
|
6508
6509
|
session_id: string;
|
|
6509
6510
|
created_at: string;
|
|
6510
|
-
registered: boolean;
|
|
6511
6511
|
}>;
|
|
6512
6512
|
/**
|
|
6513
6513
|
* Wrapped session registration response schema
|
|
@@ -6519,13 +6519,13 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6519
6519
|
registered: z.ZodBoolean;
|
|
6520
6520
|
created_at: z.ZodString;
|
|
6521
6521
|
}, "strip", z.ZodTypeAny, {
|
|
6522
|
+
registered: boolean;
|
|
6522
6523
|
session_id: string;
|
|
6523
6524
|
created_at: string;
|
|
6524
|
-
registered: boolean;
|
|
6525
6525
|
}, {
|
|
6526
|
+
registered: boolean;
|
|
6526
6527
|
session_id: string;
|
|
6527
6528
|
created_at: string;
|
|
6528
|
-
registered: boolean;
|
|
6529
6529
|
}>;
|
|
6530
6530
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6531
6531
|
requestId: z.ZodString;
|
|
@@ -6540,9 +6540,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6540
6540
|
}, "strip", z.ZodTypeAny, {
|
|
6541
6541
|
success: boolean;
|
|
6542
6542
|
data: {
|
|
6543
|
+
registered: boolean;
|
|
6543
6544
|
session_id: string;
|
|
6544
6545
|
created_at: string;
|
|
6545
|
-
registered: boolean;
|
|
6546
6546
|
};
|
|
6547
6547
|
metadata?: {
|
|
6548
6548
|
timestamp: string;
|
|
@@ -6551,9 +6551,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6551
6551
|
}, {
|
|
6552
6552
|
success: boolean;
|
|
6553
6553
|
data: {
|
|
6554
|
+
registered: boolean;
|
|
6554
6555
|
session_id: string;
|
|
6555
6556
|
created_at: string;
|
|
6556
|
-
registered: boolean;
|
|
6557
6557
|
};
|
|
6558
6558
|
metadata?: {
|
|
6559
6559
|
timestamp: string;
|