@kya-os/contracts 1.6.19 → 1.7.1
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 +154 -154
- package/dist/audit/index.d.ts +24 -24
- package/dist/cli.d.ts +26 -26
- package/dist/consent/index.d.ts +8 -2
- package/dist/consent/index.js +73 -17
- package/dist/consent/schemas.d.ts +123 -123
- package/dist/consent/schemas.js +1 -1
- package/dist/consent/types.d.ts +1 -1
- package/dist/dashboard-config/schemas.d.ts +2241 -2241
- package/dist/delegation/schemas.d.ts +34 -34
- package/dist/deploy/schemas.d.ts +110 -110
- package/dist/handshake.d.ts +4 -4
- package/dist/handshake.js +2 -2
- package/dist/proof.d.ts +12 -12
- package/dist/registry.d.ts +8 -8
- package/dist/reputation/api.d.ts +146 -146
- package/dist/reputation/credentials.d.ts +60 -60
- package/dist/reputation/schemas.d.ts +24 -24
- package/dist/test.d.ts +12 -12
- package/dist/tool-protection/index.d.ts +18 -18
- package/dist/verifier.d.ts +8 -8
- package/dist/well-known/index.d.ts +716 -11
- package/dist/well-known/index.js +169 -1
- package/package.json +2 -1
|
@@ -33,11 +33,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
33
33
|
requestId: z.ZodString;
|
|
34
34
|
timestamp: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
requestId: string;
|
|
37
36
|
timestamp: string;
|
|
38
|
-
}, {
|
|
39
37
|
requestId: string;
|
|
38
|
+
}, {
|
|
40
39
|
timestamp: string;
|
|
40
|
+
requestId: string;
|
|
41
41
|
}>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
43
43
|
success: z.ZodBoolean;
|
|
@@ -46,11 +46,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
46
46
|
requestId: z.ZodString;
|
|
47
47
|
timestamp: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
requestId: string;
|
|
50
49
|
timestamp: string;
|
|
51
|
-
}, {
|
|
52
50
|
requestId: string;
|
|
51
|
+
}, {
|
|
53
52
|
timestamp: string;
|
|
53
|
+
requestId: string;
|
|
54
54
|
}>>;
|
|
55
55
|
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
56
56
|
success: z.ZodBoolean;
|
|
@@ -59,11 +59,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
59
59
|
requestId: z.ZodString;
|
|
60
60
|
timestamp: z.ZodString;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
requestId: string;
|
|
63
62
|
timestamp: string;
|
|
64
|
-
}, {
|
|
65
63
|
requestId: string;
|
|
64
|
+
}, {
|
|
66
65
|
timestamp: string;
|
|
66
|
+
requestId: string;
|
|
67
67
|
}>>;
|
|
68
68
|
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
69
69
|
/**
|
|
@@ -89,57 +89,57 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
did: string;
|
|
91
91
|
kid: string;
|
|
92
|
-
ts: number;
|
|
93
92
|
nonce: string;
|
|
94
93
|
audience: string;
|
|
95
94
|
sessionId: string;
|
|
95
|
+
ts: number;
|
|
96
96
|
requestHash: string;
|
|
97
97
|
responseHash: string;
|
|
98
|
+
clientDid?: string | undefined;
|
|
98
99
|
scopeId?: string | undefined;
|
|
99
100
|
delegationRef?: string | undefined;
|
|
100
|
-
clientDid?: string | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
did: string;
|
|
103
103
|
kid: string;
|
|
104
|
-
ts: number;
|
|
105
104
|
nonce: string;
|
|
106
105
|
audience: string;
|
|
107
106
|
sessionId: string;
|
|
107
|
+
ts: number;
|
|
108
108
|
requestHash: string;
|
|
109
109
|
responseHash: string;
|
|
110
|
+
clientDid?: string | undefined;
|
|
110
111
|
scopeId?: string | undefined;
|
|
111
112
|
delegationRef?: string | undefined;
|
|
112
|
-
clientDid?: string | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
jws: string;
|
|
116
116
|
meta: {
|
|
117
117
|
did: string;
|
|
118
118
|
kid: string;
|
|
119
|
-
ts: number;
|
|
120
119
|
nonce: string;
|
|
121
120
|
audience: string;
|
|
122
121
|
sessionId: string;
|
|
122
|
+
ts: number;
|
|
123
123
|
requestHash: string;
|
|
124
124
|
responseHash: string;
|
|
125
|
+
clientDid?: string | undefined;
|
|
125
126
|
scopeId?: string | undefined;
|
|
126
127
|
delegationRef?: string | undefined;
|
|
127
|
-
clientDid?: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
130
130
|
jws: string;
|
|
131
131
|
meta: {
|
|
132
132
|
did: string;
|
|
133
133
|
kid: string;
|
|
134
|
-
ts: number;
|
|
135
134
|
nonce: string;
|
|
136
135
|
audience: string;
|
|
137
136
|
sessionId: string;
|
|
137
|
+
ts: number;
|
|
138
138
|
requestHash: string;
|
|
139
139
|
responseHash: string;
|
|
140
|
+
clientDid?: string | undefined;
|
|
140
141
|
scopeId?: string | undefined;
|
|
141
142
|
delegationRef?: string | undefined;
|
|
142
|
-
clientDid?: string | undefined;
|
|
143
143
|
};
|
|
144
144
|
}>, "many">;
|
|
145
145
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,37 +185,37 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
185
|
identifier: string;
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
sessionId: string;
|
|
189
188
|
scopes: string[];
|
|
190
189
|
timestamp: number;
|
|
191
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
192
190
|
agentDid: string;
|
|
191
|
+
sessionId: string;
|
|
192
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
193
193
|
targetTools: string[];
|
|
194
194
|
projectId: string;
|
|
195
195
|
userDid?: string | undefined;
|
|
196
|
-
delegationId?: string | undefined;
|
|
197
|
-
termsAccepted?: boolean | undefined;
|
|
198
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
199
196
|
oauthIdentity?: {
|
|
200
197
|
provider: string;
|
|
201
198
|
identifier: string;
|
|
202
199
|
} | undefined;
|
|
200
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
201
|
+
delegationId?: string | undefined;
|
|
202
|
+
termsAccepted?: boolean | undefined;
|
|
203
203
|
}, {
|
|
204
|
-
sessionId: string;
|
|
205
204
|
scopes: string[];
|
|
206
205
|
timestamp: number;
|
|
207
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
208
206
|
agentDid: string;
|
|
207
|
+
sessionId: string;
|
|
208
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
209
209
|
targetTools: string[];
|
|
210
210
|
projectId: string;
|
|
211
211
|
userDid?: string | undefined;
|
|
212
|
-
delegationId?: string | undefined;
|
|
213
|
-
termsAccepted?: boolean | undefined;
|
|
214
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
215
212
|
oauthIdentity?: {
|
|
216
213
|
provider: string;
|
|
217
214
|
identifier: string;
|
|
218
215
|
} | undefined;
|
|
216
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
217
|
+
delegationId?: string | undefined;
|
|
218
|
+
termsAccepted?: boolean | undefined;
|
|
219
219
|
}>, "many">>;
|
|
220
220
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -226,24 +226,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
226
226
|
result?: unknown;
|
|
227
227
|
userIdentifier?: string | undefined;
|
|
228
228
|
}[] | undefined;
|
|
229
|
+
mcpServerUrl?: string | undefined;
|
|
229
230
|
consentEvents?: {
|
|
230
|
-
sessionId: string;
|
|
231
231
|
scopes: string[];
|
|
232
232
|
timestamp: number;
|
|
233
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
234
233
|
agentDid: string;
|
|
234
|
+
sessionId: string;
|
|
235
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
235
236
|
targetTools: string[];
|
|
236
237
|
projectId: string;
|
|
237
238
|
userDid?: string | undefined;
|
|
238
|
-
delegationId?: string | undefined;
|
|
239
|
-
termsAccepted?: boolean | undefined;
|
|
240
|
-
credentialStatus?: "present" | "required" | "obtained" | 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;
|
|
@@ -252,24 +252,24 @@ 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
|
-
sessionId: string;
|
|
257
257
|
scopes: string[];
|
|
258
258
|
timestamp: number;
|
|
259
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
260
259
|
agentDid: string;
|
|
260
|
+
sessionId: string;
|
|
261
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
261
262
|
targetTools: string[];
|
|
262
263
|
projectId: string;
|
|
263
264
|
userDid?: string | undefined;
|
|
264
|
-
delegationId?: string | undefined;
|
|
265
|
-
termsAccepted?: boolean | undefined;
|
|
266
|
-
credentialStatus?: "present" | "required" | "obtained" | 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,15 +278,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
278
|
meta: {
|
|
279
279
|
did: string;
|
|
280
280
|
kid: string;
|
|
281
|
-
ts: number;
|
|
282
281
|
nonce: string;
|
|
283
282
|
audience: string;
|
|
284
283
|
sessionId: string;
|
|
284
|
+
ts: number;
|
|
285
285
|
requestHash: string;
|
|
286
286
|
responseHash: string;
|
|
287
|
+
clientDid?: string | undefined;
|
|
287
288
|
scopeId?: string | undefined;
|
|
288
289
|
delegationRef?: string | undefined;
|
|
289
|
-
clientDid?: string | undefined;
|
|
290
290
|
};
|
|
291
291
|
}[];
|
|
292
292
|
delegation_id?: string | null | undefined;
|
|
@@ -298,24 +298,24 @@ 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
|
-
sessionId: string;
|
|
303
303
|
scopes: string[];
|
|
304
304
|
timestamp: number;
|
|
305
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
306
305
|
agentDid: string;
|
|
306
|
+
sessionId: string;
|
|
307
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
307
308
|
targetTools: string[];
|
|
308
309
|
projectId: string;
|
|
309
310
|
userDid?: string | undefined;
|
|
310
|
-
delegationId?: string | undefined;
|
|
311
|
-
termsAccepted?: boolean | undefined;
|
|
312
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
313
311
|
oauthIdentity?: {
|
|
314
312
|
provider: string;
|
|
315
313
|
identifier: string;
|
|
316
314
|
} | undefined;
|
|
315
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
316
|
+
delegationId?: string | undefined;
|
|
317
|
+
termsAccepted?: boolean | undefined;
|
|
317
318
|
}[] | undefined;
|
|
318
|
-
mcpServerUrl?: string | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
session_id: string;
|
|
@@ -324,15 +324,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
324
|
meta: {
|
|
325
325
|
did: string;
|
|
326
326
|
kid: string;
|
|
327
|
-
ts: number;
|
|
328
327
|
nonce: string;
|
|
329
328
|
audience: string;
|
|
330
329
|
sessionId: string;
|
|
330
|
+
ts: number;
|
|
331
331
|
requestHash: string;
|
|
332
332
|
responseHash: string;
|
|
333
|
+
clientDid?: string | undefined;
|
|
333
334
|
scopeId?: string | undefined;
|
|
334
335
|
delegationRef?: string | undefined;
|
|
335
|
-
clientDid?: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}[];
|
|
338
338
|
delegation_id?: string | null | undefined;
|
|
@@ -344,24 +344,24 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
344
344
|
result?: unknown;
|
|
345
345
|
userIdentifier?: string | undefined;
|
|
346
346
|
}[] | undefined;
|
|
347
|
+
mcpServerUrl?: string | undefined;
|
|
347
348
|
consentEvents?: {
|
|
348
|
-
sessionId: string;
|
|
349
349
|
scopes: string[];
|
|
350
350
|
timestamp: number;
|
|
351
|
-
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
352
351
|
agentDid: string;
|
|
352
|
+
sessionId: string;
|
|
353
|
+
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
353
354
|
targetTools: string[];
|
|
354
355
|
projectId: string;
|
|
355
356
|
userDid?: string | undefined;
|
|
356
|
-
delegationId?: string | undefined;
|
|
357
|
-
termsAccepted?: boolean | undefined;
|
|
358
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
359
357
|
oauthIdentity?: {
|
|
360
358
|
provider: string;
|
|
361
359
|
identifier: string;
|
|
362
360
|
} | undefined;
|
|
361
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
362
|
+
delegationId?: string | undefined;
|
|
363
|
+
termsAccepted?: boolean | 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
|
|
@@ -447,11 +447,11 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
447
447
|
provider: z.ZodOptional<z.ZodString>;
|
|
448
448
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
|
-
type: "
|
|
450
|
+
type: "credential" | "oauth" | "none";
|
|
451
451
|
provider?: string | undefined;
|
|
452
452
|
credentialType?: string | undefined;
|
|
453
453
|
}, {
|
|
454
|
-
type: "
|
|
454
|
+
type: "credential" | "oauth" | "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: "
|
|
465
|
+
type: "credential" | "oauth" | "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: "
|
|
480
|
+
type: "credential" | "oauth" | "none";
|
|
481
481
|
provider?: string | undefined;
|
|
482
482
|
credentialType?: string | undefined;
|
|
483
483
|
};
|
|
@@ -1786,11 +1786,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1786
1786
|
provider: z.ZodOptional<z.ZodString>;
|
|
1787
1787
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
1788
1788
|
}, "strip", z.ZodTypeAny, {
|
|
1789
|
-
type: "
|
|
1789
|
+
type: "credential" | "oauth" | "none";
|
|
1790
1790
|
provider?: string | undefined;
|
|
1791
1791
|
credentialType?: string | undefined;
|
|
1792
1792
|
}, {
|
|
1793
|
-
type: "
|
|
1793
|
+
type: "credential" | "oauth" | "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: "
|
|
1804
|
+
type: "credential" | "oauth" | "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: "
|
|
1819
|
+
type: "credential" | "oauth" | "none";
|
|
1820
1820
|
provider?: string | undefined;
|
|
1821
1821
|
credentialType?: string | undefined;
|
|
1822
1822
|
};
|
|
@@ -1841,11 +1841,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1841
1841
|
reason: z.ZodOptional<z.ZodString>;
|
|
1842
1842
|
}, "strip", z.ZodTypeAny, {
|
|
1843
1843
|
valid: boolean;
|
|
1844
|
-
error?: {
|
|
1845
|
-
code: string;
|
|
1846
|
-
message: string;
|
|
1847
|
-
details?: Record<string, unknown> | undefined;
|
|
1848
|
-
} | undefined;
|
|
1849
1844
|
credential?: {
|
|
1850
1845
|
scopes: string[];
|
|
1851
1846
|
agent_did: string;
|
|
@@ -1853,7 +1848,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1853
1848
|
issued_at: number;
|
|
1854
1849
|
created_at: number;
|
|
1855
1850
|
authorization: {
|
|
1856
|
-
type: "
|
|
1851
|
+
type: "credential" | "oauth" | "none";
|
|
1857
1852
|
provider?: string | undefined;
|
|
1858
1853
|
credentialType?: string | undefined;
|
|
1859
1854
|
};
|
|
@@ -1862,7 +1857,13 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1862
1857
|
user_identifier?: string | undefined;
|
|
1863
1858
|
credential_jwt?: string | undefined;
|
|
1864
1859
|
} | undefined;
|
|
1860
|
+
error?: {
|
|
1861
|
+
code: string;
|
|
1862
|
+
message: string;
|
|
1863
|
+
details?: Record<string, unknown> | undefined;
|
|
1864
|
+
} | undefined;
|
|
1865
1865
|
delegation_id?: string | undefined;
|
|
1866
|
+
reason?: string | undefined;
|
|
1866
1867
|
delegation?: z.objectOutputType<{
|
|
1867
1868
|
id: z.ZodString;
|
|
1868
1869
|
issuerDid: z.ZodString;
|
|
@@ -2274,14 +2275,8 @@ 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
|
-
error?: {
|
|
2281
|
-
code: string;
|
|
2282
|
-
message: string;
|
|
2283
|
-
details?: Record<string, unknown> | undefined;
|
|
2284
|
-
} | undefined;
|
|
2285
2280
|
credential?: {
|
|
2286
2281
|
scopes: string[];
|
|
2287
2282
|
agent_did: string;
|
|
@@ -2289,7 +2284,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2289
2284
|
issued_at: number;
|
|
2290
2285
|
created_at: number;
|
|
2291
2286
|
authorization: {
|
|
2292
|
-
type: "
|
|
2287
|
+
type: "credential" | "oauth" | "none";
|
|
2293
2288
|
provider?: string | undefined;
|
|
2294
2289
|
credentialType?: string | undefined;
|
|
2295
2290
|
};
|
|
@@ -2298,7 +2293,13 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2298
2293
|
user_identifier?: string | undefined;
|
|
2299
2294
|
credential_jwt?: string | undefined;
|
|
2300
2295
|
} | undefined;
|
|
2296
|
+
error?: {
|
|
2297
|
+
code: string;
|
|
2298
|
+
message: string;
|
|
2299
|
+
details?: Record<string, unknown> | undefined;
|
|
2300
|
+
} | undefined;
|
|
2301
2301
|
delegation_id?: string | undefined;
|
|
2302
|
+
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
|
|
@@ -3966,11 +3966,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3966
3966
|
provider: z.ZodOptional<z.ZodString>;
|
|
3967
3967
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
3968
3968
|
}, "strip", z.ZodTypeAny, {
|
|
3969
|
-
type: "
|
|
3969
|
+
type: "credential" | "oauth" | "none";
|
|
3970
3970
|
provider?: string | undefined;
|
|
3971
3971
|
credentialType?: string | undefined;
|
|
3972
3972
|
}, {
|
|
3973
|
-
type: "
|
|
3973
|
+
type: "credential" | "oauth" | "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: "
|
|
3984
|
+
type: "credential" | "oauth" | "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: "
|
|
3999
|
+
type: "credential" | "oauth" | "none";
|
|
4000
4000
|
provider?: string | undefined;
|
|
4001
4001
|
credentialType?: string | undefined;
|
|
4002
4002
|
};
|
|
@@ -4021,11 +4021,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4021
4021
|
reason: z.ZodOptional<z.ZodString>;
|
|
4022
4022
|
}, "strip", z.ZodTypeAny, {
|
|
4023
4023
|
valid: boolean;
|
|
4024
|
-
error?: {
|
|
4025
|
-
code: string;
|
|
4026
|
-
message: string;
|
|
4027
|
-
details?: Record<string, unknown> | undefined;
|
|
4028
|
-
} | undefined;
|
|
4029
4024
|
credential?: {
|
|
4030
4025
|
scopes: string[];
|
|
4031
4026
|
agent_did: string;
|
|
@@ -4033,7 +4028,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4033
4028
|
issued_at: number;
|
|
4034
4029
|
created_at: number;
|
|
4035
4030
|
authorization: {
|
|
4036
|
-
type: "
|
|
4031
|
+
type: "credential" | "oauth" | "none";
|
|
4037
4032
|
provider?: string | undefined;
|
|
4038
4033
|
credentialType?: string | undefined;
|
|
4039
4034
|
};
|
|
@@ -4042,7 +4037,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4042
4037
|
user_identifier?: string | undefined;
|
|
4043
4038
|
credential_jwt?: string | undefined;
|
|
4044
4039
|
} | undefined;
|
|
4040
|
+
error?: {
|
|
4041
|
+
code: string;
|
|
4042
|
+
message: string;
|
|
4043
|
+
details?: Record<string, unknown> | undefined;
|
|
4044
|
+
} | undefined;
|
|
4045
4045
|
delegation_id?: string | undefined;
|
|
4046
|
+
reason?: string | undefined;
|
|
4046
4047
|
delegation?: z.objectOutputType<{
|
|
4047
4048
|
id: z.ZodString;
|
|
4048
4049
|
issuerDid: z.ZodString;
|
|
@@ -4454,14 +4455,8 @@ 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
|
-
error?: {
|
|
4461
|
-
code: string;
|
|
4462
|
-
message: string;
|
|
4463
|
-
details?: Record<string, unknown> | undefined;
|
|
4464
|
-
} | undefined;
|
|
4465
4460
|
credential?: {
|
|
4466
4461
|
scopes: string[];
|
|
4467
4462
|
agent_did: string;
|
|
@@ -4469,7 +4464,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4469
4464
|
issued_at: number;
|
|
4470
4465
|
created_at: number;
|
|
4471
4466
|
authorization: {
|
|
4472
|
-
type: "
|
|
4467
|
+
type: "credential" | "oauth" | "none";
|
|
4473
4468
|
provider?: string | undefined;
|
|
4474
4469
|
credentialType?: string | undefined;
|
|
4475
4470
|
};
|
|
@@ -4478,7 +4473,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4478
4473
|
user_identifier?: string | undefined;
|
|
4479
4474
|
credential_jwt?: string | undefined;
|
|
4480
4475
|
} | undefined;
|
|
4476
|
+
error?: {
|
|
4477
|
+
code: string;
|
|
4478
|
+
message: string;
|
|
4479
|
+
details?: Record<string, unknown> | undefined;
|
|
4480
|
+
} | undefined;
|
|
4481
4481
|
delegation_id?: string | undefined;
|
|
4482
|
+
reason?: string | undefined;
|
|
4482
4483
|
delegation?: z.objectInputType<{
|
|
4483
4484
|
id: z.ZodString;
|
|
4484
4485
|
issuerDid: z.ZodString;
|
|
@@ -4890,27 +4891,21 @@ 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;
|
|
4897
4897
|
timestamp: z.ZodString;
|
|
4898
4898
|
}, "strip", z.ZodTypeAny, {
|
|
4899
|
-
requestId: string;
|
|
4900
4899
|
timestamp: string;
|
|
4901
|
-
}, {
|
|
4902
4900
|
requestId: string;
|
|
4901
|
+
}, {
|
|
4903
4902
|
timestamp: string;
|
|
4903
|
+
requestId: string;
|
|
4904
4904
|
}>>;
|
|
4905
4905
|
}, "strip", z.ZodTypeAny, {
|
|
4906
4906
|
success: boolean;
|
|
4907
4907
|
data: {
|
|
4908
4908
|
valid: boolean;
|
|
4909
|
-
error?: {
|
|
4910
|
-
code: string;
|
|
4911
|
-
message: string;
|
|
4912
|
-
details?: Record<string, unknown> | undefined;
|
|
4913
|
-
} | undefined;
|
|
4914
4909
|
credential?: {
|
|
4915
4910
|
scopes: string[];
|
|
4916
4911
|
agent_did: string;
|
|
@@ -4918,7 +4913,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4918
4913
|
issued_at: number;
|
|
4919
4914
|
created_at: number;
|
|
4920
4915
|
authorization: {
|
|
4921
|
-
type: "
|
|
4916
|
+
type: "credential" | "oauth" | "none";
|
|
4922
4917
|
provider?: string | undefined;
|
|
4923
4918
|
credentialType?: string | undefined;
|
|
4924
4919
|
};
|
|
@@ -4927,7 +4922,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4927
4922
|
user_identifier?: string | undefined;
|
|
4928
4923
|
credential_jwt?: string | undefined;
|
|
4929
4924
|
} | undefined;
|
|
4925
|
+
error?: {
|
|
4926
|
+
code: string;
|
|
4927
|
+
message: string;
|
|
4928
|
+
details?: Record<string, unknown> | undefined;
|
|
4929
|
+
} | undefined;
|
|
4930
4930
|
delegation_id?: string | undefined;
|
|
4931
|
+
reason?: string | undefined;
|
|
4931
4932
|
delegation?: z.objectOutputType<{
|
|
4932
4933
|
id: z.ZodString;
|
|
4933
4934
|
issuerDid: z.ZodString;
|
|
@@ -5339,21 +5340,15 @@ 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
|
-
requestId: string;
|
|
5346
5345
|
timestamp: string;
|
|
5346
|
+
requestId: string;
|
|
5347
5347
|
} | undefined;
|
|
5348
5348
|
}, {
|
|
5349
5349
|
success: boolean;
|
|
5350
5350
|
data: {
|
|
5351
5351
|
valid: boolean;
|
|
5352
|
-
error?: {
|
|
5353
|
-
code: string;
|
|
5354
|
-
message: string;
|
|
5355
|
-
details?: Record<string, unknown> | undefined;
|
|
5356
|
-
} | undefined;
|
|
5357
5352
|
credential?: {
|
|
5358
5353
|
scopes: string[];
|
|
5359
5354
|
agent_did: string;
|
|
@@ -5361,7 +5356,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5361
5356
|
issued_at: number;
|
|
5362
5357
|
created_at: number;
|
|
5363
5358
|
authorization: {
|
|
5364
|
-
type: "
|
|
5359
|
+
type: "credential" | "oauth" | "none";
|
|
5365
5360
|
provider?: string | undefined;
|
|
5366
5361
|
credentialType?: string | undefined;
|
|
5367
5362
|
};
|
|
@@ -5370,7 +5365,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5370
5365
|
user_identifier?: string | undefined;
|
|
5371
5366
|
credential_jwt?: string | undefined;
|
|
5372
5367
|
} | undefined;
|
|
5368
|
+
error?: {
|
|
5369
|
+
code: string;
|
|
5370
|
+
message: string;
|
|
5371
|
+
details?: Record<string, unknown> | undefined;
|
|
5372
|
+
} | undefined;
|
|
5373
5373
|
delegation_id?: string | undefined;
|
|
5374
|
+
reason?: string | undefined;
|
|
5374
5375
|
delegation?: z.objectInputType<{
|
|
5375
5376
|
id: z.ZodString;
|
|
5376
5377
|
issuerDid: z.ZodString;
|
|
@@ -5782,11 +5783,10 @@ 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
|
-
requestId: string;
|
|
5789
5788
|
timestamp: string;
|
|
5789
|
+
requestId: string;
|
|
5790
5790
|
} | undefined;
|
|
5791
5791
|
}>;
|
|
5792
5792
|
/**
|
|
@@ -5959,11 +5959,11 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5959
5959
|
requestId: z.ZodString;
|
|
5960
5960
|
timestamp: z.ZodString;
|
|
5961
5961
|
}, "strip", z.ZodTypeAny, {
|
|
5962
|
-
requestId: string;
|
|
5963
5962
|
timestamp: string;
|
|
5964
|
-
}, {
|
|
5965
5963
|
requestId: string;
|
|
5964
|
+
}, {
|
|
5966
5965
|
timestamp: string;
|
|
5966
|
+
requestId: string;
|
|
5967
5967
|
}>>;
|
|
5968
5968
|
}, "strip", z.ZodTypeAny, {
|
|
5969
5969
|
success: boolean;
|
|
@@ -5985,8 +5985,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5985
5985
|
} | undefined;
|
|
5986
5986
|
};
|
|
5987
5987
|
metadata?: {
|
|
5988
|
-
requestId: string;
|
|
5989
5988
|
timestamp: string;
|
|
5989
|
+
requestId: string;
|
|
5990
5990
|
} | undefined;
|
|
5991
5991
|
}, {
|
|
5992
5992
|
success: boolean;
|
|
@@ -6008,8 +6008,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6008
6008
|
} | undefined;
|
|
6009
6009
|
};
|
|
6010
6010
|
metadata?: {
|
|
6011
|
-
requestId: string;
|
|
6012
6011
|
timestamp: string;
|
|
6012
|
+
requestId: string;
|
|
6013
6013
|
} | undefined;
|
|
6014
6014
|
}>;
|
|
6015
6015
|
/**
|
|
@@ -6163,11 +6163,11 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6163
6163
|
requestId: z.ZodString;
|
|
6164
6164
|
timestamp: z.ZodString;
|
|
6165
6165
|
}, "strip", z.ZodTypeAny, {
|
|
6166
|
-
requestId: string;
|
|
6167
6166
|
timestamp: string;
|
|
6168
|
-
}, {
|
|
6169
6167
|
requestId: string;
|
|
6168
|
+
}, {
|
|
6170
6169
|
timestamp: string;
|
|
6170
|
+
requestId: string;
|
|
6171
6171
|
}>>;
|
|
6172
6172
|
}, "strip", z.ZodTypeAny, {
|
|
6173
6173
|
success: boolean;
|
|
@@ -6186,8 +6186,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6186
6186
|
expires_in?: number | undefined;
|
|
6187
6187
|
};
|
|
6188
6188
|
metadata?: {
|
|
6189
|
-
requestId: string;
|
|
6190
6189
|
timestamp: string;
|
|
6190
|
+
requestId: string;
|
|
6191
6191
|
} | undefined;
|
|
6192
6192
|
}, {
|
|
6193
6193
|
success: boolean;
|
|
@@ -6206,8 +6206,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6206
6206
|
expires_in?: number | undefined;
|
|
6207
6207
|
};
|
|
6208
6208
|
metadata?: {
|
|
6209
|
-
requestId: string;
|
|
6210
6209
|
timestamp: string;
|
|
6210
|
+
requestId: string;
|
|
6211
6211
|
} | undefined;
|
|
6212
6212
|
}>;
|
|
6213
6213
|
/**
|
|
@@ -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,45 +6246,45 @@ 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<{
|
|
6258
6258
|
requestId: z.ZodString;
|
|
6259
6259
|
timestamp: z.ZodString;
|
|
6260
6260
|
}, "strip", z.ZodTypeAny, {
|
|
6261
|
-
requestId: string;
|
|
6262
6261
|
timestamp: string;
|
|
6263
|
-
}, {
|
|
6264
6262
|
requestId: string;
|
|
6263
|
+
}, {
|
|
6265
6264
|
timestamp: string;
|
|
6265
|
+
requestId: string;
|
|
6266
6266
|
}>>;
|
|
6267
6267
|
}, "strip", z.ZodTypeAny, {
|
|
6268
6268
|
success: boolean;
|
|
6269
6269
|
data: {
|
|
6270
|
-
revoked: boolean;
|
|
6271
6270
|
delegation_id: string;
|
|
6271
|
+
revoked: boolean;
|
|
6272
6272
|
revoked_at: number;
|
|
6273
6273
|
};
|
|
6274
6274
|
metadata?: {
|
|
6275
|
-
requestId: string;
|
|
6276
6275
|
timestamp: string;
|
|
6276
|
+
requestId: string;
|
|
6277
6277
|
} | undefined;
|
|
6278
6278
|
}, {
|
|
6279
6279
|
success: boolean;
|
|
6280
6280
|
data: {
|
|
6281
|
-
revoked: boolean;
|
|
6282
6281
|
delegation_id: string;
|
|
6282
|
+
revoked: boolean;
|
|
6283
6283
|
revoked_at: number;
|
|
6284
6284
|
};
|
|
6285
6285
|
metadata?: {
|
|
6286
|
-
requestId: string;
|
|
6287
6286
|
timestamp: string;
|
|
6287
|
+
requestId: string;
|
|
6288
6288
|
} | undefined;
|
|
6289
6289
|
}>;
|
|
6290
6290
|
/**
|
|
@@ -6299,15 +6299,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
|
|
|
6299
6299
|
}, "strip", z.ZodTypeAny, {
|
|
6300
6300
|
name: string;
|
|
6301
6301
|
version?: string | undefined;
|
|
6302
|
-
protocol_version?: string | undefined;
|
|
6303
6302
|
platform?: string | undefined;
|
|
6304
6303
|
vendor?: string | undefined;
|
|
6304
|
+
protocol_version?: string | undefined;
|
|
6305
6305
|
}, {
|
|
6306
6306
|
name: string;
|
|
6307
6307
|
version?: string | undefined;
|
|
6308
|
-
protocol_version?: string | undefined;
|
|
6309
6308
|
platform?: string | undefined;
|
|
6310
6309
|
vendor?: string | undefined;
|
|
6310
|
+
protocol_version?: string | undefined;
|
|
6311
6311
|
}>;
|
|
6312
6312
|
/**
|
|
6313
6313
|
* Session client identity schema
|
|
@@ -6317,13 +6317,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
|
6317
6317
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6318
6318
|
registered: z.ZodBoolean;
|
|
6319
6319
|
}, "strip", z.ZodTypeAny, {
|
|
6320
|
+
registered: boolean;
|
|
6320
6321
|
did: string;
|
|
6321
6322
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6322
|
-
registered: boolean;
|
|
6323
6323
|
}, {
|
|
6324
|
+
registered: boolean;
|
|
6324
6325
|
did: string;
|
|
6325
6326
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6326
|
-
registered: boolean;
|
|
6327
6327
|
}>;
|
|
6328
6328
|
/**
|
|
6329
6329
|
* Register session request schema
|
|
@@ -6343,68 +6343,68 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6343
6343
|
}, "strip", z.ZodTypeAny, {
|
|
6344
6344
|
name: string;
|
|
6345
6345
|
version?: string | undefined;
|
|
6346
|
-
protocol_version?: string | undefined;
|
|
6347
6346
|
platform?: string | undefined;
|
|
6348
6347
|
vendor?: string | undefined;
|
|
6348
|
+
protocol_version?: string | undefined;
|
|
6349
6349
|
}, {
|
|
6350
6350
|
name: string;
|
|
6351
6351
|
version?: string | undefined;
|
|
6352
|
-
protocol_version?: string | undefined;
|
|
6353
6352
|
platform?: string | undefined;
|
|
6354
6353
|
vendor?: string | undefined;
|
|
6354
|
+
protocol_version?: string | undefined;
|
|
6355
6355
|
}>;
|
|
6356
6356
|
client_identity: z.ZodOptional<z.ZodObject<{
|
|
6357
6357
|
did: z.ZodString;
|
|
6358
6358
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6359
6359
|
registered: z.ZodBoolean;
|
|
6360
6360
|
}, "strip", z.ZodTypeAny, {
|
|
6361
|
+
registered: boolean;
|
|
6361
6362
|
did: string;
|
|
6362
6363
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6363
|
-
registered: boolean;
|
|
6364
6364
|
}, {
|
|
6365
|
+
registered: boolean;
|
|
6365
6366
|
did: string;
|
|
6366
6367
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6367
|
-
registered: boolean;
|
|
6368
6368
|
}>>;
|
|
6369
6369
|
server_did: z.ZodOptional<z.ZodString>;
|
|
6370
6370
|
ttl_minutes: z.ZodOptional<z.ZodNumber>;
|
|
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;
|
|
6377
6378
|
version?: string | undefined;
|
|
6378
|
-
protocol_version?: string | undefined;
|
|
6379
6379
|
platform?: string | undefined;
|
|
6380
6380
|
vendor?: string | undefined;
|
|
6381
|
+
protocol_version?: string | undefined;
|
|
6381
6382
|
};
|
|
6382
|
-
project_id: string;
|
|
6383
6383
|
agent_name?: string | undefined;
|
|
6384
6384
|
client_identity?: {
|
|
6385
|
+
registered: boolean;
|
|
6385
6386
|
did: string;
|
|
6386
6387
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6387
|
-
registered: boolean;
|
|
6388
6388
|
} | undefined;
|
|
6389
6389
|
server_did?: string | undefined;
|
|
6390
6390
|
ttl_minutes?: number | undefined;
|
|
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;
|
|
6397
6398
|
version?: string | undefined;
|
|
6398
|
-
protocol_version?: string | undefined;
|
|
6399
6399
|
platform?: string | undefined;
|
|
6400
6400
|
vendor?: string | undefined;
|
|
6401
|
+
protocol_version?: string | undefined;
|
|
6401
6402
|
};
|
|
6402
|
-
project_id: string;
|
|
6403
6403
|
agent_name?: string | undefined;
|
|
6404
6404
|
client_identity?: {
|
|
6405
|
+
registered: boolean;
|
|
6405
6406
|
did: string;
|
|
6406
6407
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6407
|
-
registered: boolean;
|
|
6408
6408
|
} | undefined;
|
|
6409
6409
|
server_did?: string | undefined;
|
|
6410
6410
|
ttl_minutes?: number | undefined;
|
|
@@ -6417,13 +6417,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
|
|
|
6417
6417
|
registered: z.ZodBoolean;
|
|
6418
6418
|
created_at: z.ZodString;
|
|
6419
6419
|
}, "strip", z.ZodTypeAny, {
|
|
6420
|
+
registered: boolean;
|
|
6420
6421
|
session_id: string;
|
|
6421
6422
|
created_at: string;
|
|
6422
|
-
registered: boolean;
|
|
6423
6423
|
}, {
|
|
6424
|
+
registered: boolean;
|
|
6424
6425
|
session_id: string;
|
|
6425
6426
|
created_at: string;
|
|
6426
|
-
registered: boolean;
|
|
6427
6427
|
}>;
|
|
6428
6428
|
/**
|
|
6429
6429
|
* Wrapped session registration response schema
|
|
@@ -6435,44 +6435,44 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6435
6435
|
registered: z.ZodBoolean;
|
|
6436
6436
|
created_at: z.ZodString;
|
|
6437
6437
|
}, "strip", z.ZodTypeAny, {
|
|
6438
|
+
registered: boolean;
|
|
6438
6439
|
session_id: string;
|
|
6439
6440
|
created_at: string;
|
|
6440
|
-
registered: boolean;
|
|
6441
6441
|
}, {
|
|
6442
|
+
registered: boolean;
|
|
6442
6443
|
session_id: string;
|
|
6443
6444
|
created_at: string;
|
|
6444
|
-
registered: boolean;
|
|
6445
6445
|
}>;
|
|
6446
6446
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6447
6447
|
requestId: z.ZodString;
|
|
6448
6448
|
timestamp: z.ZodString;
|
|
6449
6449
|
}, "strip", z.ZodTypeAny, {
|
|
6450
|
-
requestId: string;
|
|
6451
6450
|
timestamp: string;
|
|
6452
|
-
}, {
|
|
6453
6451
|
requestId: string;
|
|
6452
|
+
}, {
|
|
6454
6453
|
timestamp: string;
|
|
6454
|
+
requestId: string;
|
|
6455
6455
|
}>>;
|
|
6456
6456
|
}, "strip", z.ZodTypeAny, {
|
|
6457
6457
|
success: boolean;
|
|
6458
6458
|
data: {
|
|
6459
|
+
registered: boolean;
|
|
6459
6460
|
session_id: string;
|
|
6460
6461
|
created_at: string;
|
|
6461
|
-
registered: boolean;
|
|
6462
6462
|
};
|
|
6463
6463
|
metadata?: {
|
|
6464
|
-
requestId: string;
|
|
6465
6464
|
timestamp: string;
|
|
6465
|
+
requestId: string;
|
|
6466
6466
|
} | undefined;
|
|
6467
6467
|
}, {
|
|
6468
6468
|
success: boolean;
|
|
6469
6469
|
data: {
|
|
6470
|
+
registered: boolean;
|
|
6470
6471
|
session_id: string;
|
|
6471
6472
|
created_at: string;
|
|
6472
|
-
registered: boolean;
|
|
6473
6473
|
};
|
|
6474
6474
|
metadata?: {
|
|
6475
|
-
requestId: string;
|
|
6476
6475
|
timestamp: string;
|
|
6476
|
+
requestId: string;
|
|
6477
6477
|
} | undefined;
|
|
6478
6478
|
}>;
|