@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
package/dist/handshake.d.ts
CHANGED
|
@@ -195,13 +195,13 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
196
|
provider: string;
|
|
197
197
|
subject: string;
|
|
198
|
-
name?: string | undefined;
|
|
199
198
|
email?: string | undefined;
|
|
199
|
+
name?: string | undefined;
|
|
200
200
|
}, {
|
|
201
201
|
provider: string;
|
|
202
202
|
subject: string;
|
|
203
|
-
name?: string | undefined;
|
|
204
203
|
email?: string | undefined;
|
|
204
|
+
name?: string | undefined;
|
|
205
205
|
}>>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
nonce: string;
|
|
@@ -230,8 +230,8 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
230
230
|
oauthIdentity?: {
|
|
231
231
|
provider: string;
|
|
232
232
|
subject: string;
|
|
233
|
-
name?: string | undefined;
|
|
234
233
|
email?: string | undefined;
|
|
234
|
+
name?: string | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
}, {
|
|
237
237
|
nonce: string;
|
|
@@ -260,8 +260,8 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
260
260
|
oauthIdentity?: {
|
|
261
261
|
provider: string;
|
|
262
262
|
subject: string;
|
|
263
|
-
name?: string | undefined;
|
|
264
263
|
email?: string | undefined;
|
|
264
|
+
name?: string | undefined;
|
|
265
265
|
} | undefined;
|
|
266
266
|
}>;
|
|
267
267
|
export declare const NonceCacheEntrySchema: z.ZodObject<{
|
package/dist/handshake.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NONCE_LENGTH_BYTES = exports.DEFAULT_TIMESTAMP_SKEW_SECONDS = exports.DEFAULT_SESSION_TTL_MINUTES = exports.NonceCacheConfigSchema = exports.NonceCacheEntrySchema = exports.SessionContextSchema = exports.HandshakeRequestSchema = exports.MCPClientSessionInfoSchema = exports.MCPClientInfoSchema = exports.SessionIdentityStateSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const consent_1 = require("./consent");
|
|
6
6
|
/**
|
|
7
7
|
* Handshake and session management schemas
|
|
8
8
|
*/
|
|
@@ -65,7 +65,7 @@ exports.SessionContextSchema = zod_1.z.object({
|
|
|
65
65
|
* OAuth identity information (populated after successful OAuth)
|
|
66
66
|
* Contains provider, subject, email from OAuth provider
|
|
67
67
|
*/
|
|
68
|
-
oauthIdentity:
|
|
68
|
+
oauthIdentity: consent_1.oauthIdentitySchema.optional(),
|
|
69
69
|
});
|
|
70
70
|
exports.NonceCacheEntrySchema = zod_1.z.object({
|
|
71
71
|
sessionId: zod_1.z.string().min(1),
|
package/dist/proof.d.ts
CHANGED
|
@@ -181,14 +181,14 @@ export declare const ToolCallContextSchema: z.ZodObject<{
|
|
|
181
181
|
scopeId: string;
|
|
182
182
|
tool: string;
|
|
183
183
|
args: Record<string, unknown>;
|
|
184
|
-
result?: unknown;
|
|
185
184
|
userId?: string | undefined;
|
|
185
|
+
result?: unknown;
|
|
186
186
|
}, {
|
|
187
187
|
scopeId: string;
|
|
188
188
|
tool: string;
|
|
189
189
|
args: Record<string, unknown>;
|
|
190
|
-
result?: unknown;
|
|
191
190
|
userId?: string | undefined;
|
|
191
|
+
result?: unknown;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Proof submission context for AgentShield API
|
|
@@ -205,14 +205,14 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
205
205
|
scopeId: string;
|
|
206
206
|
tool: string;
|
|
207
207
|
args: Record<string, unknown>;
|
|
208
|
-
result?: unknown;
|
|
209
208
|
userId?: string | undefined;
|
|
209
|
+
result?: unknown;
|
|
210
210
|
}, {
|
|
211
211
|
scopeId: string;
|
|
212
212
|
tool: string;
|
|
213
213
|
args: Record<string, unknown>;
|
|
214
|
-
result?: unknown;
|
|
215
214
|
userId?: string | undefined;
|
|
215
|
+
result?: unknown;
|
|
216
216
|
}>, "many">;
|
|
217
217
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -220,8 +220,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
220
220
|
scopeId: string;
|
|
221
221
|
tool: string;
|
|
222
222
|
args: Record<string, unknown>;
|
|
223
|
-
result?: unknown;
|
|
224
223
|
userId?: string | undefined;
|
|
224
|
+
result?: unknown;
|
|
225
225
|
}[];
|
|
226
226
|
mcpServerUrl?: string | undefined;
|
|
227
227
|
}, {
|
|
@@ -229,8 +229,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
229
229
|
scopeId: string;
|
|
230
230
|
tool: string;
|
|
231
231
|
args: Record<string, unknown>;
|
|
232
|
-
result?: unknown;
|
|
233
232
|
userId?: string | undefined;
|
|
233
|
+
result?: unknown;
|
|
234
234
|
}[];
|
|
235
235
|
mcpServerUrl?: string | undefined;
|
|
236
236
|
}>;
|
|
@@ -321,14 +321,14 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
321
321
|
scopeId: string;
|
|
322
322
|
tool: string;
|
|
323
323
|
args: Record<string, unknown>;
|
|
324
|
-
result?: unknown;
|
|
325
324
|
userId?: string | undefined;
|
|
325
|
+
result?: unknown;
|
|
326
326
|
}, {
|
|
327
327
|
scopeId: string;
|
|
328
328
|
tool: string;
|
|
329
329
|
args: Record<string, unknown>;
|
|
330
|
-
result?: unknown;
|
|
331
330
|
userId?: string | undefined;
|
|
331
|
+
result?: unknown;
|
|
332
332
|
}>, "many">;
|
|
333
333
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -336,8 +336,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
336
336
|
scopeId: string;
|
|
337
337
|
tool: string;
|
|
338
338
|
args: Record<string, unknown>;
|
|
339
|
-
result?: unknown;
|
|
340
339
|
userId?: string | undefined;
|
|
340
|
+
result?: unknown;
|
|
341
341
|
}[];
|
|
342
342
|
mcpServerUrl?: string | undefined;
|
|
343
343
|
}, {
|
|
@@ -345,8 +345,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
345
345
|
scopeId: string;
|
|
346
346
|
tool: string;
|
|
347
347
|
args: Record<string, unknown>;
|
|
348
|
-
result?: unknown;
|
|
349
348
|
userId?: string | undefined;
|
|
349
|
+
result?: unknown;
|
|
350
350
|
}[];
|
|
351
351
|
mcpServerUrl?: string | undefined;
|
|
352
352
|
}>>;
|
|
@@ -374,8 +374,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
374
374
|
scopeId: string;
|
|
375
375
|
tool: string;
|
|
376
376
|
args: Record<string, unknown>;
|
|
377
|
-
result?: unknown;
|
|
378
377
|
userId?: string | undefined;
|
|
378
|
+
result?: unknown;
|
|
379
379
|
}[];
|
|
380
380
|
mcpServerUrl?: string | undefined;
|
|
381
381
|
} | undefined;
|
|
@@ -403,8 +403,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
403
403
|
scopeId: string;
|
|
404
404
|
tool: string;
|
|
405
405
|
args: Record<string, unknown>;
|
|
406
|
-
result?: unknown;
|
|
407
406
|
userId?: string | undefined;
|
|
407
|
+
result?: unknown;
|
|
408
408
|
}[];
|
|
409
409
|
mcpServerUrl?: string | undefined;
|
|
410
410
|
} | undefined;
|
package/dist/registry.d.ts
CHANGED
|
@@ -137,16 +137,16 @@ export declare const DelegationSchema: z.ZodObject<{
|
|
|
137
137
|
aud: z.ZodOptional<z.ZodString>;
|
|
138
138
|
delegationRef: z.ZodOptional<z.ZodString>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
subject: string;
|
|
141
140
|
scopes: string[];
|
|
141
|
+
subject: string;
|
|
142
142
|
issuer: string;
|
|
143
143
|
nbf: number;
|
|
144
144
|
exp: number;
|
|
145
145
|
delegationRef?: string | undefined;
|
|
146
146
|
aud?: string | undefined;
|
|
147
147
|
}, {
|
|
148
|
-
subject: string;
|
|
149
148
|
scopes: string[];
|
|
149
|
+
subject: string;
|
|
150
150
|
issuer: string;
|
|
151
151
|
nbf: number;
|
|
152
152
|
exp: number;
|
|
@@ -159,13 +159,13 @@ export declare const DelegationRequestSchema: z.ZodObject<{
|
|
|
159
159
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
160
160
|
audience: z.ZodOptional<z.ZodString>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
subject: string;
|
|
163
162
|
scopes: string[];
|
|
163
|
+
subject: string;
|
|
164
164
|
audience?: string | undefined;
|
|
165
165
|
duration?: number | undefined;
|
|
166
166
|
}, {
|
|
167
|
-
subject: string;
|
|
168
167
|
scopes: string[];
|
|
168
|
+
subject: string;
|
|
169
169
|
audience?: string | undefined;
|
|
170
170
|
duration?: number | undefined;
|
|
171
171
|
}>;
|
|
@@ -215,16 +215,16 @@ export declare const DelegationResponseSchema: z.ZodObject<{
|
|
|
215
215
|
aud: z.ZodOptional<z.ZodString>;
|
|
216
216
|
delegationRef: z.ZodOptional<z.ZodString>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
subject: string;
|
|
219
218
|
scopes: string[];
|
|
219
|
+
subject: string;
|
|
220
220
|
issuer: string;
|
|
221
221
|
nbf: number;
|
|
222
222
|
exp: number;
|
|
223
223
|
delegationRef?: string | undefined;
|
|
224
224
|
aud?: string | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
subject: string;
|
|
227
226
|
scopes: string[];
|
|
227
|
+
subject: string;
|
|
228
228
|
issuer: string;
|
|
229
229
|
nbf: number;
|
|
230
230
|
exp: number;
|
|
@@ -262,8 +262,8 @@ export declare const DelegationResponseSchema: z.ZodObject<{
|
|
|
262
262
|
encryptedPayload: z.ZodOptional<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
264
|
delegation: {
|
|
265
|
-
subject: string;
|
|
266
265
|
scopes: string[];
|
|
266
|
+
subject: string;
|
|
267
267
|
issuer: string;
|
|
268
268
|
nbf: number;
|
|
269
269
|
exp: number;
|
|
@@ -283,8 +283,8 @@ export declare const DelegationResponseSchema: z.ZodObject<{
|
|
|
283
283
|
encryptedPayload?: string | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
delegation: {
|
|
286
|
-
subject: string;
|
|
287
286
|
scopes: string[];
|
|
287
|
+
subject: string;
|
|
288
288
|
issuer: string;
|
|
289
289
|
nbf: number;
|
|
290
290
|
exp: number;
|