@kya-os/contracts 1.5.1 → 1.5.2-canary.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.
@@ -473,3 +473,4 @@ function isDelegationCredentialNotYetValid(vc) {
473
473
  }
474
474
  return false;
475
475
  }
476
+ //# sourceMappingURL=schemas.js.map
@@ -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 for delegation verification
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
@@ -53,4 +53,3 @@ exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";
53
53
  // import { ... } from '@kya-os/contracts/agentshield-api'
54
54
  // import { ... } from '@kya-os/contracts/tool-protection'
55
55
  // import { ... } from '@kya-os/contracts/well-known'
56
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.5.1",
3
+ "version": "1.5.2-canary.1",
4
4
  "description": "Shared types and schemas for XMCP-I ecosystem",
5
5
  "type": "commonjs",
6
6
  "sideEffects": false,
@@ -96,6 +96,11 @@
96
96
  "types": "./dist/dashboard-config/index.d.ts",
97
97
  "import": "./dist/dashboard-config/index.js",
98
98
  "require": "./dist/dashboard-config/index.js"
99
+ },
100
+ "./consent": {
101
+ "types": "./dist/consent/index.d.ts",
102
+ "import": "./dist/consent/index.js",
103
+ "require": "./dist/consent/index.js"
99
104
  }
100
105
  },
101
106
  "files": [