@kya-os/contracts 1.5.2-canary.3 → 1.5.2-canary.5
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/endpoints.d.ts +0 -1
- package/dist/agentshield-api/endpoints.js +0 -1
- package/dist/agentshield-api/index.d.ts +1 -1
- package/dist/agentshield-api/schemas.d.ts +250 -85
- package/dist/agentshield-api/schemas.js +41 -8
- package/dist/agentshield-api/types.d.ts +46 -9
- package/dist/config/builder.d.ts +0 -1
- package/dist/config/identity.d.ts +0 -1
- package/dist/config/identity.js +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/consent/schemas.d.ts +70 -70
- package/dist/dashboard-config/default-config.d.ts +0 -1
- package/dist/dashboard-config/default-config.js +0 -1
- package/dist/dashboard-config/index.d.ts +0 -1
- package/dist/dashboard-config/index.js +0 -1
- package/dist/dashboard-config/schemas.d.ts +564 -565
- package/dist/dashboard-config/schemas.js +0 -1
- package/dist/dashboard-config/types.d.ts +0 -1
- package/dist/dashboard-config/types.js +0 -1
- package/dist/delegation/constraints.d.ts +0 -1
- package/dist/delegation/constraints.js +0 -1
- package/dist/delegation/index.js +0 -1
- package/dist/delegation/schemas.d.ts +98 -99
- package/dist/delegation/schemas.js +0 -1
- package/dist/handshake.d.ts +9 -4
- package/dist/proof/index.d.ts +3 -2
- package/dist/proof/index.js +16 -2
- package/dist/proof.d.ts +28 -29
- package/dist/proof.js +0 -1
- package/package.json +5 -5
|
@@ -33,11 +33,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
33
33
|
requestId: z.ZodString;
|
|
34
34
|
timestamp: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
requestId: string;
|
|
37
36
|
timestamp: string;
|
|
38
|
-
}, {
|
|
39
37
|
requestId: string;
|
|
38
|
+
}, {
|
|
40
39
|
timestamp: string;
|
|
40
|
+
requestId: string;
|
|
41
41
|
}>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
43
43
|
success: z.ZodBoolean;
|
|
@@ -46,11 +46,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
46
46
|
requestId: z.ZodString;
|
|
47
47
|
timestamp: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
requestId: string;
|
|
50
49
|
timestamp: string;
|
|
51
|
-
}, {
|
|
52
50
|
requestId: string;
|
|
51
|
+
}, {
|
|
53
52
|
timestamp: string;
|
|
53
|
+
requestId: string;
|
|
54
54
|
}>>;
|
|
55
55
|
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
56
56
|
success: z.ZodBoolean;
|
|
@@ -59,11 +59,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
59
59
|
requestId: z.ZodString;
|
|
60
60
|
timestamp: z.ZodString;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
requestId: string;
|
|
63
62
|
timestamp: string;
|
|
64
|
-
}, {
|
|
65
63
|
requestId: string;
|
|
64
|
+
}, {
|
|
66
65
|
timestamp: string;
|
|
66
|
+
requestId: string;
|
|
67
67
|
}>>;
|
|
68
68
|
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
69
69
|
success: z.ZodBoolean;
|
|
@@ -72,11 +72,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
72
72
|
requestId: z.ZodString;
|
|
73
73
|
timestamp: z.ZodString;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
requestId: string;
|
|
76
75
|
timestamp: string;
|
|
77
|
-
}, {
|
|
78
76
|
requestId: string;
|
|
77
|
+
}, {
|
|
79
78
|
timestamp: string;
|
|
79
|
+
requestId: string;
|
|
80
80
|
}>>;
|
|
81
81
|
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
82
82
|
success: z.ZodBoolean;
|
|
@@ -85,19 +85,19 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
85
85
|
requestId: z.ZodString;
|
|
86
86
|
timestamp: z.ZodString;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
requestId: string;
|
|
89
88
|
timestamp: string;
|
|
90
|
-
}, {
|
|
91
89
|
requestId: string;
|
|
90
|
+
}, {
|
|
92
91
|
timestamp: string;
|
|
92
|
+
requestId: string;
|
|
93
93
|
}>>;
|
|
94
94
|
}>[k_1]; } : never>;
|
|
95
95
|
/**
|
|
96
96
|
* Proof submission request schema
|
|
97
97
|
*/
|
|
98
98
|
export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
99
|
-
delegation_id: z.ZodNullable<z.ZodString>;
|
|
100
99
|
session_id: z.ZodString;
|
|
100
|
+
delegation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
101
|
proofs: z.ZodArray<z.ZodObject<{
|
|
102
102
|
jws: z.ZodString;
|
|
103
103
|
meta: z.ZodObject<{
|
|
@@ -115,130 +115,221 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
did: string;
|
|
117
117
|
kid: string;
|
|
118
|
-
ts: number;
|
|
119
118
|
nonce: string;
|
|
120
119
|
audience: string;
|
|
121
120
|
sessionId: string;
|
|
121
|
+
ts: number;
|
|
122
122
|
requestHash: string;
|
|
123
123
|
responseHash: string;
|
|
124
|
+
clientDid?: string | undefined;
|
|
124
125
|
scopeId?: string | undefined;
|
|
125
126
|
delegationRef?: string | undefined;
|
|
126
|
-
clientDid?: string | undefined;
|
|
127
127
|
}, {
|
|
128
128
|
did: string;
|
|
129
129
|
kid: string;
|
|
130
|
-
ts: number;
|
|
131
130
|
nonce: string;
|
|
132
131
|
audience: string;
|
|
133
132
|
sessionId: string;
|
|
133
|
+
ts: number;
|
|
134
134
|
requestHash: string;
|
|
135
135
|
responseHash: string;
|
|
136
|
+
clientDid?: string | undefined;
|
|
136
137
|
scopeId?: string | undefined;
|
|
137
138
|
delegationRef?: string | undefined;
|
|
138
|
-
clientDid?: string | undefined;
|
|
139
139
|
}>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
jws: string;
|
|
142
142
|
meta: {
|
|
143
143
|
did: string;
|
|
144
144
|
kid: string;
|
|
145
|
-
ts: number;
|
|
146
145
|
nonce: string;
|
|
147
146
|
audience: string;
|
|
148
147
|
sessionId: string;
|
|
148
|
+
ts: number;
|
|
149
149
|
requestHash: string;
|
|
150
150
|
responseHash: string;
|
|
151
|
+
clientDid?: string | undefined;
|
|
151
152
|
scopeId?: string | undefined;
|
|
152
153
|
delegationRef?: string | undefined;
|
|
153
|
-
clientDid?: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}, {
|
|
156
156
|
jws: string;
|
|
157
157
|
meta: {
|
|
158
158
|
did: string;
|
|
159
159
|
kid: string;
|
|
160
|
-
ts: number;
|
|
161
160
|
nonce: string;
|
|
162
161
|
audience: string;
|
|
163
162
|
sessionId: string;
|
|
163
|
+
ts: number;
|
|
164
164
|
requestHash: string;
|
|
165
165
|
responseHash: string;
|
|
166
|
+
clientDid?: string | undefined;
|
|
166
167
|
scopeId?: string | undefined;
|
|
167
168
|
delegationRef?: string | undefined;
|
|
168
|
-
clientDid?: string | undefined;
|
|
169
169
|
};
|
|
170
170
|
}>, "many">;
|
|
171
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
173
|
+
tool: z.ZodString;
|
|
174
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
175
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
176
|
+
scopeId: z.ZodString;
|
|
177
|
+
userIdentifier: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
scopeId: string;
|
|
180
|
+
tool: string;
|
|
181
|
+
args: Record<string, unknown>;
|
|
182
|
+
result?: unknown;
|
|
183
|
+
userIdentifier?: string | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
scopeId: string;
|
|
186
|
+
tool: string;
|
|
187
|
+
args: Record<string, unknown>;
|
|
188
|
+
result?: unknown;
|
|
189
|
+
userIdentifier?: string | undefined;
|
|
190
|
+
}>, "many">>;
|
|
191
|
+
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
toolCalls?: {
|
|
194
|
+
scopeId: string;
|
|
195
|
+
tool: string;
|
|
196
|
+
args: Record<string, unknown>;
|
|
197
|
+
result?: unknown;
|
|
198
|
+
userIdentifier?: string | undefined;
|
|
199
|
+
}[] | undefined;
|
|
200
|
+
mcpServerUrl?: string | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
toolCalls?: {
|
|
203
|
+
scopeId: string;
|
|
204
|
+
tool: string;
|
|
205
|
+
args: Record<string, unknown>;
|
|
206
|
+
result?: unknown;
|
|
207
|
+
userIdentifier?: string | undefined;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
mcpServerUrl?: string | undefined;
|
|
210
|
+
}>>;
|
|
171
211
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
delegation_id: string | null;
|
|
173
212
|
session_id: string;
|
|
174
213
|
proofs: {
|
|
175
214
|
jws: string;
|
|
176
215
|
meta: {
|
|
177
216
|
did: string;
|
|
178
217
|
kid: string;
|
|
179
|
-
ts: number;
|
|
180
218
|
nonce: string;
|
|
181
219
|
audience: string;
|
|
182
220
|
sessionId: string;
|
|
221
|
+
ts: number;
|
|
183
222
|
requestHash: string;
|
|
184
223
|
responseHash: string;
|
|
224
|
+
clientDid?: string | undefined;
|
|
185
225
|
scopeId?: string | undefined;
|
|
186
226
|
delegationRef?: string | undefined;
|
|
187
|
-
clientDid?: string | undefined;
|
|
188
227
|
};
|
|
189
228
|
}[];
|
|
229
|
+
delegation_id?: string | null | undefined;
|
|
230
|
+
context?: {
|
|
231
|
+
toolCalls?: {
|
|
232
|
+
scopeId: string;
|
|
233
|
+
tool: string;
|
|
234
|
+
args: Record<string, unknown>;
|
|
235
|
+
result?: unknown;
|
|
236
|
+
userIdentifier?: string | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
mcpServerUrl?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
190
240
|
}, {
|
|
191
|
-
delegation_id: string | null;
|
|
192
241
|
session_id: string;
|
|
193
242
|
proofs: {
|
|
194
243
|
jws: string;
|
|
195
244
|
meta: {
|
|
196
245
|
did: string;
|
|
197
246
|
kid: string;
|
|
198
|
-
ts: number;
|
|
199
247
|
nonce: string;
|
|
200
248
|
audience: string;
|
|
201
249
|
sessionId: string;
|
|
250
|
+
ts: number;
|
|
202
251
|
requestHash: string;
|
|
203
252
|
responseHash: string;
|
|
253
|
+
clientDid?: string | undefined;
|
|
204
254
|
scopeId?: string | undefined;
|
|
205
255
|
delegationRef?: string | undefined;
|
|
206
|
-
clientDid?: string | undefined;
|
|
207
256
|
};
|
|
208
257
|
}[];
|
|
258
|
+
delegation_id?: string | null | undefined;
|
|
259
|
+
context?: {
|
|
260
|
+
toolCalls?: {
|
|
261
|
+
scopeId: string;
|
|
262
|
+
tool: string;
|
|
263
|
+
args: Record<string, unknown>;
|
|
264
|
+
result?: unknown;
|
|
265
|
+
userIdentifier?: string | undefined;
|
|
266
|
+
}[] | undefined;
|
|
267
|
+
mcpServerUrl?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
209
269
|
}>;
|
|
210
270
|
/**
|
|
211
271
|
* Proof submission response schema
|
|
212
272
|
*/
|
|
213
273
|
export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
214
274
|
success: z.ZodBoolean;
|
|
215
|
-
|
|
216
|
-
|
|
275
|
+
accepted: z.ZodNumber;
|
|
276
|
+
rejected: z.ZodNumber;
|
|
277
|
+
outcomes: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
217
278
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
-
|
|
219
|
-
error: z.
|
|
279
|
+
proof_index: z.ZodNumber;
|
|
280
|
+
error: z.ZodObject<{
|
|
281
|
+
code: z.ZodString;
|
|
282
|
+
message: z.ZodString;
|
|
283
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
code: string;
|
|
286
|
+
message: string;
|
|
287
|
+
details?: Record<string, unknown> | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
code: string;
|
|
290
|
+
message: string;
|
|
291
|
+
details?: Record<string, unknown> | undefined;
|
|
292
|
+
}>;
|
|
220
293
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
|
|
222
|
-
|
|
294
|
+
error: {
|
|
295
|
+
code: string;
|
|
296
|
+
message: string;
|
|
297
|
+
details?: Record<string, unknown> | undefined;
|
|
298
|
+
};
|
|
299
|
+
proof_index: number;
|
|
223
300
|
}, {
|
|
224
|
-
|
|
225
|
-
|
|
301
|
+
error: {
|
|
302
|
+
code: string;
|
|
303
|
+
message: string;
|
|
304
|
+
details?: Record<string, unknown> | undefined;
|
|
305
|
+
};
|
|
306
|
+
proof_index: number;
|
|
226
307
|
}>, "many">>;
|
|
227
308
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
received: number;
|
|
229
309
|
success: boolean;
|
|
230
|
-
|
|
310
|
+
accepted: number;
|
|
311
|
+
rejected: number;
|
|
312
|
+
outcomes: Record<string, number>;
|
|
231
313
|
errors?: {
|
|
232
|
-
|
|
233
|
-
|
|
314
|
+
error: {
|
|
315
|
+
code: string;
|
|
316
|
+
message: string;
|
|
317
|
+
details?: Record<string, unknown> | undefined;
|
|
318
|
+
};
|
|
319
|
+
proof_index: number;
|
|
234
320
|
}[] | undefined;
|
|
235
321
|
}, {
|
|
236
|
-
received: number;
|
|
237
322
|
success: boolean;
|
|
238
|
-
|
|
323
|
+
accepted: number;
|
|
324
|
+
rejected: number;
|
|
325
|
+
outcomes: Record<string, number>;
|
|
239
326
|
errors?: {
|
|
240
|
-
|
|
241
|
-
|
|
327
|
+
error: {
|
|
328
|
+
code: string;
|
|
329
|
+
message: string;
|
|
330
|
+
details?: Record<string, unknown> | undefined;
|
|
331
|
+
};
|
|
332
|
+
proof_index: number;
|
|
242
333
|
}[] | undefined;
|
|
243
334
|
}>;
|
|
244
335
|
/**
|
|
@@ -273,9 +364,11 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
273
364
|
* Delegation verification request schema
|
|
274
365
|
*/
|
|
275
366
|
export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
276
|
-
agent_did: z.ZodString;
|
|
277
|
-
scopes: z.ZodArray<z.ZodString, "many">;
|
|
278
367
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
369
|
+
agent_did: z.ZodString;
|
|
370
|
+
credential_jwt: z.ZodOptional<z.ZodString>;
|
|
371
|
+
delegation_token: z.ZodOptional<z.ZodString>;
|
|
279
372
|
client_info: z.ZodOptional<z.ZodObject<{
|
|
280
373
|
ip_address: z.ZodOptional<z.ZodString>;
|
|
281
374
|
origin: z.ZodOptional<z.ZodString>;
|
|
@@ -290,18 +383,22 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
290
383
|
user_agent?: string | undefined;
|
|
291
384
|
}>>;
|
|
292
385
|
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
scopes: string[];
|
|
294
386
|
agent_did: string;
|
|
295
387
|
timestamp?: number | undefined;
|
|
388
|
+
scopes?: string[] | undefined;
|
|
389
|
+
credential_jwt?: string | undefined;
|
|
390
|
+
delegation_token?: string | undefined;
|
|
296
391
|
client_info?: {
|
|
297
392
|
ip_address?: string | undefined;
|
|
298
393
|
origin?: string | undefined;
|
|
299
394
|
user_agent?: string | undefined;
|
|
300
395
|
} | undefined;
|
|
301
396
|
}, {
|
|
302
|
-
scopes: string[];
|
|
303
397
|
agent_did: string;
|
|
304
398
|
timestamp?: number | undefined;
|
|
399
|
+
scopes?: string[] | undefined;
|
|
400
|
+
credential_jwt?: string | undefined;
|
|
401
|
+
delegation_token?: string | undefined;
|
|
305
402
|
client_info?: {
|
|
306
403
|
ip_address?: string | undefined;
|
|
307
404
|
origin?: string | undefined;
|
|
@@ -1586,12 +1683,13 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1586
1683
|
reason: z.ZodOptional<z.ZodString>;
|
|
1587
1684
|
}, "strip", z.ZodTypeAny, {
|
|
1588
1685
|
valid: boolean;
|
|
1589
|
-
delegation_id?: string | undefined;
|
|
1590
1686
|
error?: {
|
|
1591
1687
|
code: string;
|
|
1592
1688
|
message: string;
|
|
1593
1689
|
details?: Record<string, unknown> | undefined;
|
|
1594
1690
|
} | undefined;
|
|
1691
|
+
delegation_id?: string | undefined;
|
|
1692
|
+
reason?: string | undefined;
|
|
1595
1693
|
delegation?: z.objectOutputType<{
|
|
1596
1694
|
id: z.ZodString;
|
|
1597
1695
|
issuerDid: z.ZodString;
|
|
@@ -2012,15 +2110,15 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2012
2110
|
user_id?: string | undefined;
|
|
2013
2111
|
user_identifier?: string | undefined;
|
|
2014
2112
|
} | undefined;
|
|
2015
|
-
reason?: string | undefined;
|
|
2016
2113
|
}, {
|
|
2017
2114
|
valid: boolean;
|
|
2018
|
-
delegation_id?: string | undefined;
|
|
2019
2115
|
error?: {
|
|
2020
2116
|
code: string;
|
|
2021
2117
|
message: string;
|
|
2022
2118
|
details?: Record<string, unknown> | undefined;
|
|
2023
2119
|
} | undefined;
|
|
2120
|
+
delegation_id?: string | undefined;
|
|
2121
|
+
reason?: string | undefined;
|
|
2024
2122
|
delegation?: z.objectInputType<{
|
|
2025
2123
|
id: z.ZodString;
|
|
2026
2124
|
issuerDid: z.ZodString;
|
|
@@ -2441,7 +2539,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2441
2539
|
user_id?: string | undefined;
|
|
2442
2540
|
user_identifier?: string | undefined;
|
|
2443
2541
|
} | undefined;
|
|
2444
|
-
reason?: string | undefined;
|
|
2445
2542
|
}>;
|
|
2446
2543
|
/**
|
|
2447
2544
|
* Wrapped verification response schema
|
|
@@ -3723,12 +3820,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3723
3820
|
reason: z.ZodOptional<z.ZodString>;
|
|
3724
3821
|
}, "strip", z.ZodTypeAny, {
|
|
3725
3822
|
valid: boolean;
|
|
3726
|
-
delegation_id?: string | undefined;
|
|
3727
3823
|
error?: {
|
|
3728
3824
|
code: string;
|
|
3729
3825
|
message: string;
|
|
3730
3826
|
details?: Record<string, unknown> | undefined;
|
|
3731
3827
|
} | undefined;
|
|
3828
|
+
delegation_id?: string | undefined;
|
|
3829
|
+
reason?: string | undefined;
|
|
3732
3830
|
delegation?: z.objectOutputType<{
|
|
3733
3831
|
id: z.ZodString;
|
|
3734
3832
|
issuerDid: z.ZodString;
|
|
@@ -4149,15 +4247,15 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4149
4247
|
user_id?: string | undefined;
|
|
4150
4248
|
user_identifier?: string | undefined;
|
|
4151
4249
|
} | undefined;
|
|
4152
|
-
reason?: string | undefined;
|
|
4153
4250
|
}, {
|
|
4154
4251
|
valid: boolean;
|
|
4155
|
-
delegation_id?: string | undefined;
|
|
4156
4252
|
error?: {
|
|
4157
4253
|
code: string;
|
|
4158
4254
|
message: string;
|
|
4159
4255
|
details?: Record<string, unknown> | undefined;
|
|
4160
4256
|
} | undefined;
|
|
4257
|
+
delegation_id?: string | undefined;
|
|
4258
|
+
reason?: string | undefined;
|
|
4161
4259
|
delegation?: z.objectInputType<{
|
|
4162
4260
|
id: z.ZodString;
|
|
4163
4261
|
issuerDid: z.ZodString;
|
|
@@ -4578,28 +4676,28 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4578
4676
|
user_id?: string | undefined;
|
|
4579
4677
|
user_identifier?: string | undefined;
|
|
4580
4678
|
} | undefined;
|
|
4581
|
-
reason?: string | undefined;
|
|
4582
4679
|
}>;
|
|
4583
4680
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4584
4681
|
requestId: z.ZodString;
|
|
4585
4682
|
timestamp: z.ZodString;
|
|
4586
4683
|
}, "strip", z.ZodTypeAny, {
|
|
4587
|
-
requestId: string;
|
|
4588
4684
|
timestamp: string;
|
|
4589
|
-
}, {
|
|
4590
4685
|
requestId: string;
|
|
4686
|
+
}, {
|
|
4591
4687
|
timestamp: string;
|
|
4688
|
+
requestId: string;
|
|
4592
4689
|
}>>;
|
|
4593
4690
|
}, "strip", z.ZodTypeAny, {
|
|
4594
4691
|
success: boolean;
|
|
4595
4692
|
data: {
|
|
4596
4693
|
valid: boolean;
|
|
4597
|
-
delegation_id?: string | undefined;
|
|
4598
4694
|
error?: {
|
|
4599
4695
|
code: string;
|
|
4600
4696
|
message: string;
|
|
4601
4697
|
details?: Record<string, unknown> | undefined;
|
|
4602
4698
|
} | undefined;
|
|
4699
|
+
delegation_id?: string | undefined;
|
|
4700
|
+
reason?: string | undefined;
|
|
4603
4701
|
delegation?: z.objectOutputType<{
|
|
4604
4702
|
id: z.ZodString;
|
|
4605
4703
|
issuerDid: z.ZodString;
|
|
@@ -5020,22 +5118,22 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5020
5118
|
user_id?: string | undefined;
|
|
5021
5119
|
user_identifier?: string | undefined;
|
|
5022
5120
|
} | undefined;
|
|
5023
|
-
reason?: string | undefined;
|
|
5024
5121
|
};
|
|
5025
5122
|
metadata?: {
|
|
5026
|
-
requestId: string;
|
|
5027
5123
|
timestamp: string;
|
|
5124
|
+
requestId: string;
|
|
5028
5125
|
} | undefined;
|
|
5029
5126
|
}, {
|
|
5030
5127
|
success: boolean;
|
|
5031
5128
|
data: {
|
|
5032
5129
|
valid: boolean;
|
|
5033
|
-
delegation_id?: string | undefined;
|
|
5034
5130
|
error?: {
|
|
5035
5131
|
code: string;
|
|
5036
5132
|
message: string;
|
|
5037
5133
|
details?: Record<string, unknown> | undefined;
|
|
5038
5134
|
} | undefined;
|
|
5135
|
+
delegation_id?: string | undefined;
|
|
5136
|
+
reason?: string | undefined;
|
|
5039
5137
|
delegation?: z.objectInputType<{
|
|
5040
5138
|
id: z.ZodString;
|
|
5041
5139
|
issuerDid: z.ZodString;
|
|
@@ -5456,11 +5554,10 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5456
5554
|
user_id?: string | undefined;
|
|
5457
5555
|
user_identifier?: string | undefined;
|
|
5458
5556
|
} | undefined;
|
|
5459
|
-
reason?: string | undefined;
|
|
5460
5557
|
};
|
|
5461
5558
|
metadata?: {
|
|
5462
|
-
requestId: string;
|
|
5463
5559
|
timestamp: string;
|
|
5560
|
+
requestId: string;
|
|
5464
5561
|
} | undefined;
|
|
5465
5562
|
}>;
|
|
5466
5563
|
/**
|
|
@@ -5506,6 +5603,22 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5506
5603
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
5507
5604
|
reputation_threshold: z.ZodOptional<z.ZodNumber>;
|
|
5508
5605
|
denied_agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5606
|
+
crisp_budget: z.ZodOptional<z.ZodObject<{
|
|
5607
|
+
max_tokens: z.ZodNumber;
|
|
5608
|
+
max_cost: z.ZodNumber;
|
|
5609
|
+
currency: z.ZodString;
|
|
5610
|
+
time_window: z.ZodString;
|
|
5611
|
+
}, "strip", z.ZodTypeAny, {
|
|
5612
|
+
max_tokens: number;
|
|
5613
|
+
max_cost: number;
|
|
5614
|
+
currency: string;
|
|
5615
|
+
time_window: string;
|
|
5616
|
+
}, {
|
|
5617
|
+
max_tokens: number;
|
|
5618
|
+
max_cost: number;
|
|
5619
|
+
currency: string;
|
|
5620
|
+
time_window: string;
|
|
5621
|
+
}>>;
|
|
5509
5622
|
}, "strip", z.ZodTypeAny, {
|
|
5510
5623
|
agent_did: string;
|
|
5511
5624
|
tools: Record<string, z.objectOutputType<{
|
|
@@ -5516,6 +5629,12 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5516
5629
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5517
5630
|
reputation_threshold?: number | undefined;
|
|
5518
5631
|
denied_agents?: string[] | undefined;
|
|
5632
|
+
crisp_budget?: {
|
|
5633
|
+
max_tokens: number;
|
|
5634
|
+
max_cost: number;
|
|
5635
|
+
currency: string;
|
|
5636
|
+
time_window: string;
|
|
5637
|
+
} | undefined;
|
|
5519
5638
|
}, {
|
|
5520
5639
|
agent_did: string;
|
|
5521
5640
|
tools: Record<string, z.objectInputType<{
|
|
@@ -5526,6 +5645,12 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5526
5645
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5527
5646
|
reputation_threshold?: number | undefined;
|
|
5528
5647
|
denied_agents?: string[] | undefined;
|
|
5648
|
+
crisp_budget?: {
|
|
5649
|
+
max_tokens: number;
|
|
5650
|
+
max_cost: number;
|
|
5651
|
+
currency: string;
|
|
5652
|
+
time_window: string;
|
|
5653
|
+
} | undefined;
|
|
5529
5654
|
}>;
|
|
5530
5655
|
/**
|
|
5531
5656
|
* Wrapped config response schema
|
|
@@ -5552,6 +5677,22 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5552
5677
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
5553
5678
|
reputation_threshold: z.ZodOptional<z.ZodNumber>;
|
|
5554
5679
|
denied_agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5680
|
+
crisp_budget: z.ZodOptional<z.ZodObject<{
|
|
5681
|
+
max_tokens: z.ZodNumber;
|
|
5682
|
+
max_cost: z.ZodNumber;
|
|
5683
|
+
currency: z.ZodString;
|
|
5684
|
+
time_window: z.ZodString;
|
|
5685
|
+
}, "strip", z.ZodTypeAny, {
|
|
5686
|
+
max_tokens: number;
|
|
5687
|
+
max_cost: number;
|
|
5688
|
+
currency: string;
|
|
5689
|
+
time_window: string;
|
|
5690
|
+
}, {
|
|
5691
|
+
max_tokens: number;
|
|
5692
|
+
max_cost: number;
|
|
5693
|
+
currency: string;
|
|
5694
|
+
time_window: string;
|
|
5695
|
+
}>>;
|
|
5555
5696
|
}, "strip", z.ZodTypeAny, {
|
|
5556
5697
|
agent_did: string;
|
|
5557
5698
|
tools: Record<string, z.objectOutputType<{
|
|
@@ -5562,6 +5703,12 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5562
5703
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5563
5704
|
reputation_threshold?: number | undefined;
|
|
5564
5705
|
denied_agents?: string[] | undefined;
|
|
5706
|
+
crisp_budget?: {
|
|
5707
|
+
max_tokens: number;
|
|
5708
|
+
max_cost: number;
|
|
5709
|
+
currency: string;
|
|
5710
|
+
time_window: string;
|
|
5711
|
+
} | undefined;
|
|
5565
5712
|
}, {
|
|
5566
5713
|
agent_did: string;
|
|
5567
5714
|
tools: Record<string, z.objectInputType<{
|
|
@@ -5572,16 +5719,22 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5572
5719
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5573
5720
|
reputation_threshold?: number | undefined;
|
|
5574
5721
|
denied_agents?: string[] | undefined;
|
|
5722
|
+
crisp_budget?: {
|
|
5723
|
+
max_tokens: number;
|
|
5724
|
+
max_cost: number;
|
|
5725
|
+
currency: string;
|
|
5726
|
+
time_window: string;
|
|
5727
|
+
} | undefined;
|
|
5575
5728
|
}>;
|
|
5576
5729
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
5577
5730
|
requestId: z.ZodString;
|
|
5578
5731
|
timestamp: z.ZodString;
|
|
5579
5732
|
}, "strip", z.ZodTypeAny, {
|
|
5580
|
-
requestId: string;
|
|
5581
5733
|
timestamp: string;
|
|
5582
|
-
}, {
|
|
5583
5734
|
requestId: string;
|
|
5735
|
+
}, {
|
|
5584
5736
|
timestamp: string;
|
|
5737
|
+
requestId: string;
|
|
5585
5738
|
}>>;
|
|
5586
5739
|
}, "strip", z.ZodTypeAny, {
|
|
5587
5740
|
success: boolean;
|
|
@@ -5595,10 +5748,16 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5595
5748
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5596
5749
|
reputation_threshold?: number | undefined;
|
|
5597
5750
|
denied_agents?: string[] | undefined;
|
|
5751
|
+
crisp_budget?: {
|
|
5752
|
+
max_tokens: number;
|
|
5753
|
+
max_cost: number;
|
|
5754
|
+
currency: string;
|
|
5755
|
+
time_window: string;
|
|
5756
|
+
} | undefined;
|
|
5598
5757
|
};
|
|
5599
5758
|
metadata?: {
|
|
5600
|
-
requestId: string;
|
|
5601
5759
|
timestamp: string;
|
|
5760
|
+
requestId: string;
|
|
5602
5761
|
} | undefined;
|
|
5603
5762
|
}, {
|
|
5604
5763
|
success: boolean;
|
|
@@ -5612,10 +5771,16 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5612
5771
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5613
5772
|
reputation_threshold?: number | undefined;
|
|
5614
5773
|
denied_agents?: string[] | undefined;
|
|
5774
|
+
crisp_budget?: {
|
|
5775
|
+
max_tokens: number;
|
|
5776
|
+
max_cost: number;
|
|
5777
|
+
currency: string;
|
|
5778
|
+
time_window: string;
|
|
5779
|
+
} | undefined;
|
|
5615
5780
|
};
|
|
5616
5781
|
metadata?: {
|
|
5617
|
-
requestId: string;
|
|
5618
5782
|
timestamp: string;
|
|
5783
|
+
requestId: string;
|
|
5619
5784
|
} | undefined;
|
|
5620
5785
|
}>;
|
|
5621
5786
|
/**
|
|
@@ -5688,8 +5853,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5688
5853
|
created_at: z.ZodString;
|
|
5689
5854
|
}, "strip", z.ZodTypeAny, {
|
|
5690
5855
|
status: "active";
|
|
5691
|
-
scopes: string[];
|
|
5692
5856
|
delegation_id: string;
|
|
5857
|
+
scopes: string[];
|
|
5693
5858
|
agent_did: string;
|
|
5694
5859
|
issued_at: string;
|
|
5695
5860
|
created_at: string;
|
|
@@ -5698,8 +5863,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5698
5863
|
expires_at?: string | undefined;
|
|
5699
5864
|
}, {
|
|
5700
5865
|
status: "active";
|
|
5701
|
-
scopes: string[];
|
|
5702
5866
|
delegation_id: string;
|
|
5867
|
+
scopes: string[];
|
|
5703
5868
|
agent_did: string;
|
|
5704
5869
|
issued_at: string;
|
|
5705
5870
|
created_at: string;
|
|
@@ -5724,8 +5889,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5724
5889
|
created_at: z.ZodString;
|
|
5725
5890
|
}, "strip", z.ZodTypeAny, {
|
|
5726
5891
|
status: "active";
|
|
5727
|
-
scopes: string[];
|
|
5728
5892
|
delegation_id: string;
|
|
5893
|
+
scopes: string[];
|
|
5729
5894
|
agent_did: string;
|
|
5730
5895
|
issued_at: string;
|
|
5731
5896
|
created_at: string;
|
|
@@ -5734,8 +5899,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5734
5899
|
expires_at?: string | undefined;
|
|
5735
5900
|
}, {
|
|
5736
5901
|
status: "active";
|
|
5737
|
-
scopes: string[];
|
|
5738
5902
|
delegation_id: string;
|
|
5903
|
+
scopes: string[];
|
|
5739
5904
|
agent_did: string;
|
|
5740
5905
|
issued_at: string;
|
|
5741
5906
|
created_at: string;
|
|
@@ -5747,18 +5912,18 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5747
5912
|
requestId: z.ZodString;
|
|
5748
5913
|
timestamp: z.ZodString;
|
|
5749
5914
|
}, "strip", z.ZodTypeAny, {
|
|
5750
|
-
requestId: string;
|
|
5751
5915
|
timestamp: string;
|
|
5752
|
-
}, {
|
|
5753
5916
|
requestId: string;
|
|
5917
|
+
}, {
|
|
5754
5918
|
timestamp: string;
|
|
5919
|
+
requestId: string;
|
|
5755
5920
|
}>>;
|
|
5756
5921
|
}, "strip", z.ZodTypeAny, {
|
|
5757
5922
|
success: boolean;
|
|
5758
5923
|
data: {
|
|
5759
5924
|
status: "active";
|
|
5760
|
-
scopes: string[];
|
|
5761
5925
|
delegation_id: string;
|
|
5926
|
+
scopes: string[];
|
|
5762
5927
|
agent_did: string;
|
|
5763
5928
|
issued_at: string;
|
|
5764
5929
|
created_at: string;
|
|
@@ -5767,15 +5932,15 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5767
5932
|
expires_at?: string | undefined;
|
|
5768
5933
|
};
|
|
5769
5934
|
metadata?: {
|
|
5770
|
-
requestId: string;
|
|
5771
5935
|
timestamp: string;
|
|
5936
|
+
requestId: string;
|
|
5772
5937
|
} | undefined;
|
|
5773
5938
|
}, {
|
|
5774
5939
|
success: boolean;
|
|
5775
5940
|
data: {
|
|
5776
5941
|
status: "active";
|
|
5777
|
-
scopes: string[];
|
|
5778
5942
|
delegation_id: string;
|
|
5943
|
+
scopes: string[];
|
|
5779
5944
|
agent_did: string;
|
|
5780
5945
|
issued_at: string;
|
|
5781
5946
|
created_at: string;
|
|
@@ -5784,8 +5949,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5784
5949
|
expires_at?: string | undefined;
|
|
5785
5950
|
};
|
|
5786
5951
|
metadata?: {
|
|
5787
|
-
requestId: string;
|
|
5788
5952
|
timestamp: string;
|
|
5953
|
+
requestId: string;
|
|
5789
5954
|
} | undefined;
|
|
5790
5955
|
}>;
|
|
5791
5956
|
/**
|
|
@@ -5806,12 +5971,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
5806
5971
|
revoked: z.ZodBoolean;
|
|
5807
5972
|
revoked_at: z.ZodNumber;
|
|
5808
5973
|
}, "strip", z.ZodTypeAny, {
|
|
5809
|
-
revoked: boolean;
|
|
5810
5974
|
delegation_id: string;
|
|
5975
|
+
revoked: boolean;
|
|
5811
5976
|
revoked_at: number;
|
|
5812
5977
|
}, {
|
|
5813
|
-
revoked: boolean;
|
|
5814
5978
|
delegation_id: string;
|
|
5979
|
+
revoked: boolean;
|
|
5815
5980
|
revoked_at: number;
|
|
5816
5981
|
}>;
|
|
5817
5982
|
/**
|
|
@@ -5824,44 +5989,44 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5824
5989
|
revoked: z.ZodBoolean;
|
|
5825
5990
|
revoked_at: z.ZodNumber;
|
|
5826
5991
|
}, "strip", z.ZodTypeAny, {
|
|
5827
|
-
revoked: boolean;
|
|
5828
5992
|
delegation_id: string;
|
|
5993
|
+
revoked: boolean;
|
|
5829
5994
|
revoked_at: number;
|
|
5830
5995
|
}, {
|
|
5831
|
-
revoked: boolean;
|
|
5832
5996
|
delegation_id: string;
|
|
5997
|
+
revoked: boolean;
|
|
5833
5998
|
revoked_at: number;
|
|
5834
5999
|
}>;
|
|
5835
6000
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
5836
6001
|
requestId: z.ZodString;
|
|
5837
6002
|
timestamp: z.ZodString;
|
|
5838
6003
|
}, "strip", z.ZodTypeAny, {
|
|
5839
|
-
requestId: string;
|
|
5840
6004
|
timestamp: string;
|
|
5841
|
-
}, {
|
|
5842
6005
|
requestId: string;
|
|
6006
|
+
}, {
|
|
5843
6007
|
timestamp: string;
|
|
6008
|
+
requestId: string;
|
|
5844
6009
|
}>>;
|
|
5845
6010
|
}, "strip", z.ZodTypeAny, {
|
|
5846
6011
|
success: boolean;
|
|
5847
6012
|
data: {
|
|
5848
|
-
revoked: boolean;
|
|
5849
6013
|
delegation_id: string;
|
|
6014
|
+
revoked: boolean;
|
|
5850
6015
|
revoked_at: number;
|
|
5851
6016
|
};
|
|
5852
6017
|
metadata?: {
|
|
5853
|
-
requestId: string;
|
|
5854
6018
|
timestamp: string;
|
|
6019
|
+
requestId: string;
|
|
5855
6020
|
} | undefined;
|
|
5856
6021
|
}, {
|
|
5857
6022
|
success: boolean;
|
|
5858
6023
|
data: {
|
|
5859
|
-
revoked: boolean;
|
|
5860
6024
|
delegation_id: string;
|
|
6025
|
+
revoked: boolean;
|
|
5861
6026
|
revoked_at: number;
|
|
5862
6027
|
};
|
|
5863
6028
|
metadata?: {
|
|
5864
|
-
requestId: string;
|
|
5865
6029
|
timestamp: string;
|
|
6030
|
+
requestId: string;
|
|
5866
6031
|
} | undefined;
|
|
5867
6032
|
}>;
|