@kya-os/contracts 1.4.0 → 1.5.2-canary.0
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 +3 -2
- package/dist/agentshield-api/endpoints.js +3 -2
- package/dist/agentshield-api/index.js +0 -1
- package/dist/agentshield-api/schemas.d.ts +195 -124
- package/dist/agentshield-api/schemas.js +0 -1
- package/dist/agentshield-api/types.d.ts +2 -1
- package/dist/agentshield-api/types.js +0 -1
- package/dist/config/builder.d.ts +34 -0
- package/dist/config/builder.js +75 -0
- package/dist/config/index.d.ts +12 -10
- package/dist/config/index.js +4 -0
- package/dist/dashboard-config/default-config.d.ts +50 -0
- package/dist/dashboard-config/default-config.js +241 -0
- package/dist/dashboard-config/index.d.ts +1 -0
- package/dist/dashboard-config/index.js +6 -1
- package/dist/dashboard-config/schemas.d.ts +382 -324
- package/dist/dashboard-config/schemas.js +5 -1
- package/dist/dashboard-config/types.d.ts +12 -5
- package/dist/delegation/constraints.d.ts +31 -0
- package/dist/delegation/constraints.js +10 -0
- package/dist/delegation/index.js +1 -0
- package/dist/delegation/schemas.d.ts +175 -98
- package/dist/delegation/schemas.js +1 -0
- package/dist/handshake.d.ts +11 -2
- package/dist/handshake.js +4 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
package/dist/handshake.d.ts
CHANGED
|
@@ -27,24 +27,33 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
27
27
|
lastActivity: z.ZodNumber;
|
|
28
28
|
ttlMinutes: z.ZodDefault<z.ZodNumber>;
|
|
29
29
|
agentDid: z.ZodOptional<z.ZodString>;
|
|
30
|
+
serverDid: z.ZodOptional<z.ZodString>;
|
|
31
|
+
clientDid: z.ZodOptional<z.ZodString>;
|
|
32
|
+
userDid: z.ZodOptional<z.ZodString>;
|
|
30
33
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
createdAt: number;
|
|
32
34
|
nonce: string;
|
|
33
35
|
audience: string;
|
|
34
36
|
timestamp: number;
|
|
35
37
|
sessionId: string;
|
|
38
|
+
createdAt: number;
|
|
36
39
|
lastActivity: number;
|
|
37
40
|
ttlMinutes: number;
|
|
38
41
|
agentDid?: string | undefined;
|
|
42
|
+
serverDid?: string | undefined;
|
|
43
|
+
clientDid?: string | undefined;
|
|
44
|
+
userDid?: string | undefined;
|
|
39
45
|
}, {
|
|
40
|
-
createdAt: number;
|
|
41
46
|
nonce: string;
|
|
42
47
|
audience: string;
|
|
43
48
|
timestamp: number;
|
|
44
49
|
sessionId: string;
|
|
50
|
+
createdAt: number;
|
|
45
51
|
lastActivity: number;
|
|
46
52
|
agentDid?: string | undefined;
|
|
47
53
|
ttlMinutes?: number | undefined;
|
|
54
|
+
serverDid?: string | undefined;
|
|
55
|
+
clientDid?: string | undefined;
|
|
56
|
+
userDid?: string | undefined;
|
|
48
57
|
}>;
|
|
49
58
|
export declare const NonceCacheEntrySchema: z.ZodObject<{
|
|
50
59
|
sessionId: z.ZodString;
|
package/dist/handshake.js
CHANGED
|
@@ -19,7 +19,10 @@ exports.SessionContextSchema = zod_1.z.object({
|
|
|
19
19
|
createdAt: zod_1.z.number().int().positive(),
|
|
20
20
|
lastActivity: zod_1.z.number().int().positive(),
|
|
21
21
|
ttlMinutes: zod_1.z.number().int().positive().default(30),
|
|
22
|
-
agentDid: zod_1.z.string().optional(), // Agent DID
|
|
22
|
+
agentDid: zod_1.z.string().optional(), // MCP Client/Agent DID (from handshake)
|
|
23
|
+
serverDid: zod_1.z.string().min(1).optional(), // NEW: MCP-I Server DID (optional for backward compatibility)
|
|
24
|
+
clientDid: zod_1.z.string().optional(), // Client app DID (if different from agent)
|
|
25
|
+
userDid: zod_1.z.string().optional(), // User DID (delegator)
|
|
23
26
|
});
|
|
24
27
|
exports.NonceCacheEntrySchema = zod_1.z.object({
|
|
25
28
|
sessionId: zod_1.z.string().min(1),
|
package/dist/index.js
CHANGED