@kya-os/contracts 1.5.3-canary.2 → 1.5.3-canary.21
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/.turbo/turbo-build.log +17 -0
- package/.turbo/turbo-test$colon$coverage.log +85 -0
- package/.turbo/turbo-test.log +32 -0
- package/coverage/coverage-final.json +38 -0
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/index.d.ts +1 -1
- package/dist/agentshield-api/schemas.d.ts +150 -48
- package/dist/agentshield-api/schemas.js +32 -4
- package/dist/agentshield-api/types.d.ts +31 -4
- package/dist/audit/index.d.ts +193 -0
- package/dist/audit/index.js +100 -0
- package/dist/config/identity.d.ts +205 -2
- package/dist/config/identity.js +28 -0
- package/dist/config/index.d.ts +2 -1
- package/dist/config/tool-context.d.ts +34 -0
- package/dist/config/tool-context.js +13 -0
- package/dist/consent/schemas.d.ts +119 -93
- package/dist/consent/schemas.js +111 -64
- package/dist/dashboard-config/schemas.d.ts +2248 -992
- package/dist/handshake.d.ts +14 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/tool-protection/index.d.ts +490 -14
- package/dist/tool-protection/index.js +89 -2
- package/dist/verifier/index.d.ts +1 -0
- package/dist/verifier/index.js +18 -0
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +43 -122
- package/schemas/cli/register-output/v1.0.0.json +69 -0
- package/schemas/identity/v1.0.0.json +46 -0
- package/schemas/proof/v1.0.0.json +80 -0
- package/schemas/registry/receipt-v1.0.0.json +60 -0
- package/schemas/verifier/verify-page/v1.0.0.json +94 -0
- package/schemas/well-known/agent/v1.0.0.json +67 -0
- package/schemas/well-known/did/v1.0.0.json +174 -0
- package/scripts/emit-schemas.js +11 -0
- package/src/agentshield-api/admin-schemas.ts +31 -0
- package/src/agentshield-api/admin-types.ts +47 -0
- package/src/agentshield-api/endpoints.ts +60 -0
- package/src/agentshield-api/index.ts +70 -0
- package/src/agentshield-api/schemas.ts +304 -0
- package/src/agentshield-api/types.ts +317 -0
- package/src/audit/index.ts +128 -0
- package/src/cli.ts +156 -0
- package/src/config/base.ts +107 -0
- package/src/config/builder.ts +97 -0
- package/src/config/delegation.ts +232 -0
- package/src/config/identity.ts +252 -0
- package/src/config/index.ts +78 -0
- package/src/config/proofing.ts +138 -0
- package/src/config/tool-context.ts +41 -0
- package/src/config/tool-protection.ts +174 -0
- package/src/consent/index.ts +32 -0
- package/src/consent/schemas.ts +334 -0
- package/src/consent/types.ts +199 -0
- package/src/dashboard-config/default-config.json +86 -0
- package/src/dashboard-config/default-config.ts +266 -0
- package/src/dashboard-config/index.ts +48 -0
- package/src/dashboard-config/schemas.ts +286 -0
- package/src/dashboard-config/types.ts +404 -0
- package/src/delegation/constraints.ts +267 -0
- package/src/delegation/index.ts +8 -0
- package/src/delegation/schemas.ts +595 -0
- package/src/did/index.ts +9 -0
- package/src/did/resolve-contract.ts +255 -0
- package/src/did/schemas.ts +190 -0
- package/src/did/types.ts +224 -0
- package/src/env/constants.ts +70 -0
- package/src/env/index.ts +5 -0
- package/src/handshake.ts +125 -0
- package/src/index.ts +45 -0
- package/src/proof/index.ts +31 -0
- package/src/proof/proof-record.ts +163 -0
- package/src/proof/signing-spec.ts +146 -0
- package/src/proof.ts +99 -0
- package/src/registry.ts +146 -0
- package/src/runtime/errors.ts +153 -0
- package/src/runtime/headers.ts +136 -0
- package/src/runtime/index.ts +6 -0
- package/src/test.ts +143 -0
- package/src/tlkrc/index.ts +5 -0
- package/src/tlkrc/rotation.ts +153 -0
- package/src/tool-protection/index.ts +406 -0
- package/src/utils/validation.ts +93 -0
- package/src/vc/index.ts +8 -0
- package/src/vc/schemas.ts +277 -0
- package/src/vc/statuslist.ts +279 -0
- package/src/verifier/index.ts +2 -0
- package/src/verifier.ts +92 -0
- package/src/well-known/index.ts +237 -0
package/dist/handshake.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ export declare const MCPClientInfoSchema: z.ZodObject<{
|
|
|
12
12
|
persistentId: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
name: string;
|
|
15
|
-
title?: string | undefined;
|
|
16
15
|
version?: string | undefined;
|
|
16
|
+
title?: string | undefined;
|
|
17
17
|
platform?: string | undefined;
|
|
18
18
|
vendor?: string | undefined;
|
|
19
19
|
persistentId?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
name: string;
|
|
22
|
-
title?: string | undefined;
|
|
23
22
|
version?: string | undefined;
|
|
23
|
+
title?: string | undefined;
|
|
24
24
|
platform?: string | undefined;
|
|
25
25
|
vendor?: string | undefined;
|
|
26
26
|
persistentId?: string | undefined;
|
|
@@ -39,8 +39,8 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
name: string;
|
|
41
41
|
clientId: string;
|
|
42
|
-
title?: string | undefined;
|
|
43
42
|
version?: string | undefined;
|
|
43
|
+
title?: string | undefined;
|
|
44
44
|
platform?: string | undefined;
|
|
45
45
|
vendor?: string | undefined;
|
|
46
46
|
persistentId?: string | undefined;
|
|
@@ -49,8 +49,8 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
|
49
49
|
}, {
|
|
50
50
|
name: string;
|
|
51
51
|
clientId: string;
|
|
52
|
-
title?: string | undefined;
|
|
53
52
|
version?: string | undefined;
|
|
53
|
+
title?: string | undefined;
|
|
54
54
|
platform?: string | undefined;
|
|
55
55
|
vendor?: string | undefined;
|
|
56
56
|
persistentId?: string | undefined;
|
|
@@ -73,16 +73,16 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
73
73
|
clientId: z.ZodOptional<z.ZodString>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
name: string;
|
|
76
|
-
title?: string | undefined;
|
|
77
76
|
version?: string | undefined;
|
|
77
|
+
title?: string | undefined;
|
|
78
78
|
platform?: string | undefined;
|
|
79
79
|
vendor?: string | undefined;
|
|
80
80
|
persistentId?: string | undefined;
|
|
81
81
|
clientId?: string | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
name: string;
|
|
84
|
-
title?: string | undefined;
|
|
85
84
|
version?: string | undefined;
|
|
85
|
+
title?: string | undefined;
|
|
86
86
|
platform?: string | undefined;
|
|
87
87
|
vendor?: string | undefined;
|
|
88
88
|
persistentId?: string | undefined;
|
|
@@ -97,8 +97,8 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
97
97
|
agentDid?: string | undefined;
|
|
98
98
|
clientInfo?: {
|
|
99
99
|
name: string;
|
|
100
|
-
title?: string | undefined;
|
|
101
100
|
version?: string | undefined;
|
|
101
|
+
title?: string | undefined;
|
|
102
102
|
platform?: string | undefined;
|
|
103
103
|
vendor?: string | undefined;
|
|
104
104
|
persistentId?: string | undefined;
|
|
@@ -113,8 +113,8 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
113
113
|
agentDid?: string | undefined;
|
|
114
114
|
clientInfo?: {
|
|
115
115
|
name: string;
|
|
116
|
-
title?: string | undefined;
|
|
117
116
|
version?: string | undefined;
|
|
117
|
+
title?: string | undefined;
|
|
118
118
|
platform?: string | undefined;
|
|
119
119
|
vendor?: string | undefined;
|
|
120
120
|
persistentId?: string | undefined;
|
|
@@ -149,8 +149,8 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
150
|
name: string;
|
|
151
151
|
clientId: string;
|
|
152
|
-
title?: string | undefined;
|
|
153
152
|
version?: string | undefined;
|
|
153
|
+
title?: string | undefined;
|
|
154
154
|
platform?: string | undefined;
|
|
155
155
|
vendor?: string | undefined;
|
|
156
156
|
persistentId?: string | undefined;
|
|
@@ -159,8 +159,8 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
159
159
|
}, {
|
|
160
160
|
name: string;
|
|
161
161
|
clientId: string;
|
|
162
|
-
title?: string | undefined;
|
|
163
162
|
version?: string | undefined;
|
|
163
|
+
title?: string | undefined;
|
|
164
164
|
platform?: string | undefined;
|
|
165
165
|
vendor?: string | undefined;
|
|
166
166
|
persistentId?: string | undefined;
|
|
@@ -168,19 +168,19 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
168
168
|
capabilities?: Record<string, unknown> | undefined;
|
|
169
169
|
}>>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
createdAt: number;
|
|
171
172
|
nonce: string;
|
|
172
173
|
audience: string;
|
|
173
174
|
timestamp: number;
|
|
174
175
|
sessionId: string;
|
|
175
|
-
createdAt: number;
|
|
176
176
|
lastActivity: number;
|
|
177
177
|
ttlMinutes: number;
|
|
178
178
|
agentDid?: string | undefined;
|
|
179
179
|
clientInfo?: {
|
|
180
180
|
name: string;
|
|
181
181
|
clientId: string;
|
|
182
|
-
title?: string | undefined;
|
|
183
182
|
version?: string | undefined;
|
|
183
|
+
title?: string | undefined;
|
|
184
184
|
platform?: string | undefined;
|
|
185
185
|
vendor?: string | undefined;
|
|
186
186
|
persistentId?: string | undefined;
|
|
@@ -191,18 +191,18 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
191
191
|
clientDid?: string | undefined;
|
|
192
192
|
userDid?: string | undefined;
|
|
193
193
|
}, {
|
|
194
|
+
createdAt: number;
|
|
194
195
|
nonce: string;
|
|
195
196
|
audience: string;
|
|
196
197
|
timestamp: number;
|
|
197
198
|
sessionId: string;
|
|
198
|
-
createdAt: number;
|
|
199
199
|
lastActivity: number;
|
|
200
200
|
agentDid?: string | undefined;
|
|
201
201
|
clientInfo?: {
|
|
202
202
|
name: string;
|
|
203
203
|
clientId: string;
|
|
204
|
-
title?: string | undefined;
|
|
205
204
|
version?: string | undefined;
|
|
205
|
+
title?: string | undefined;
|
|
206
206
|
platform?: string | undefined;
|
|
207
207
|
vendor?: string | undefined;
|
|
208
208
|
persistentId?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,5 +21,6 @@ export * from "./test.js";
|
|
|
21
21
|
export * from "./utils/validation.js";
|
|
22
22
|
export * from "./vc/index.js";
|
|
23
23
|
export * from "./delegation/index.js";
|
|
24
|
+
export * from "./audit/index.js";
|
|
24
25
|
export declare const CONTRACTS_VERSION = "1.2.1";
|
|
25
26
|
export declare const SUPPORTED_XMCP_I_VERSION = "^1.0.0";
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,8 @@ __exportStar(require("./utils/validation.js"), exports);
|
|
|
40
40
|
// W3C VC and Delegation exports (for mcp-i-core compatibility)
|
|
41
41
|
__exportStar(require("./vc/index.js"), exports);
|
|
42
42
|
__exportStar(require("./delegation/index.js"), exports);
|
|
43
|
+
// Audit types (platform-agnostic)
|
|
44
|
+
__exportStar(require("./audit/index.js"), exports);
|
|
43
45
|
// Version information
|
|
44
46
|
exports.CONTRACTS_VERSION = "1.2.1";
|
|
45
47
|
exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";
|