@kya-os/contracts 1.7.20 → 1.7.22

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.
@@ -312,7 +312,7 @@ exports.DELEGATION_STATUSES = ['active', 'revoked', 'expired'];
312
312
  *
313
313
  * Additional JSON-LD context for delegation credentials
314
314
  */
315
- exports.DELEGATION_CREDENTIAL_CONTEXT = 'https://schemas.kya-os.ai/xmcp-i/credentials/delegation.v1.0.0.json';
315
+ exports.DELEGATION_CREDENTIAL_CONTEXT = 'https://schema.modelcontextprotocol-identity.io/xmcp-i/credentials/delegation.v1.0.0.json';
316
316
  /**
317
317
  * Delegation Credential Subject Schema
318
318
  *
@@ -23,15 +23,15 @@ export declare const MCPClientInfoSchema: z.ZodObject<{
23
23
  persistentId: z.ZodOptional<z.ZodString>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  name: string;
26
- version?: string | undefined;
27
26
  title?: string | undefined;
27
+ version?: string | undefined;
28
28
  platform?: string | undefined;
29
29
  vendor?: string | undefined;
30
30
  persistentId?: string | undefined;
31
31
  }, {
32
32
  name: string;
33
- version?: string | undefined;
34
33
  title?: string | undefined;
34
+ version?: string | undefined;
35
35
  platform?: string | undefined;
36
36
  vendor?: string | undefined;
37
37
  persistentId?: string | undefined;
@@ -48,20 +48,20 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
48
48
  protocolVersion: z.ZodOptional<z.ZodString>;
49
49
  capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- clientId: string;
52
51
  name: string;
53
- version?: string | undefined;
52
+ clientId: string;
54
53
  title?: string | undefined;
54
+ version?: string | undefined;
55
55
  platform?: string | undefined;
56
56
  vendor?: string | undefined;
57
57
  persistentId?: string | undefined;
58
58
  protocolVersion?: string | undefined;
59
59
  capabilities?: Record<string, unknown> | undefined;
60
60
  }, {
61
- clientId: string;
62
61
  name: string;
63
- version?: string | undefined;
62
+ clientId: string;
64
63
  title?: string | undefined;
64
+ version?: string | undefined;
65
65
  platform?: string | undefined;
66
66
  vendor?: string | undefined;
67
67
  persistentId?: string | undefined;
@@ -84,20 +84,20 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
84
84
  clientId: z.ZodOptional<z.ZodString>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  name: string;
87
- clientId?: string | undefined;
88
- version?: string | undefined;
89
87
  title?: string | undefined;
88
+ version?: string | undefined;
90
89
  platform?: string | undefined;
91
90
  vendor?: string | undefined;
92
91
  persistentId?: string | undefined;
92
+ clientId?: string | undefined;
93
93
  }, {
94
94
  name: string;
95
- clientId?: string | undefined;
96
- version?: string | undefined;
97
95
  title?: string | undefined;
96
+ version?: string | undefined;
98
97
  platform?: string | undefined;
99
98
  vendor?: string | undefined;
100
99
  persistentId?: string | undefined;
100
+ clientId?: string | undefined;
101
101
  }>>;
102
102
  clientProtocolVersion: z.ZodOptional<z.ZodString>;
103
103
  clientCapabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -108,12 +108,12 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
108
108
  agentDid?: string | undefined;
109
109
  clientInfo?: {
110
110
  name: string;
111
- clientId?: string | undefined;
112
- version?: string | undefined;
113
111
  title?: string | undefined;
112
+ version?: string | undefined;
114
113
  platform?: string | undefined;
115
114
  vendor?: string | undefined;
116
115
  persistentId?: string | undefined;
116
+ clientId?: string | undefined;
117
117
  } | undefined;
118
118
  clientProtocolVersion?: string | undefined;
119
119
  clientCapabilities?: Record<string, unknown> | undefined;
@@ -124,12 +124,12 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
124
124
  agentDid?: string | undefined;
125
125
  clientInfo?: {
126
126
  name: string;
127
- clientId?: string | undefined;
128
- version?: string | undefined;
129
127
  title?: string | undefined;
128
+ version?: string | undefined;
130
129
  platform?: string | undefined;
131
130
  vendor?: string | undefined;
132
131
  persistentId?: string | undefined;
132
+ clientId?: string | undefined;
133
133
  } | undefined;
134
134
  clientProtocolVersion?: string | undefined;
135
135
  clientCapabilities?: Record<string, unknown> | undefined;
@@ -158,20 +158,20 @@ export declare const SessionContextSchema: z.ZodObject<{
158
158
  protocolVersion: z.ZodOptional<z.ZodString>;
159
159
  capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
160
160
  }, "strip", z.ZodTypeAny, {
161
- clientId: string;
162
161
  name: string;
163
- version?: string | undefined;
162
+ clientId: string;
164
163
  title?: string | undefined;
164
+ version?: string | undefined;
165
165
  platform?: string | undefined;
166
166
  vendor?: string | undefined;
167
167
  persistentId?: string | undefined;
168
168
  protocolVersion?: string | undefined;
169
169
  capabilities?: Record<string, unknown> | undefined;
170
170
  }, {
171
- clientId: string;
172
171
  name: string;
173
- version?: string | undefined;
172
+ clientId: string;
174
173
  title?: string | undefined;
174
+ version?: string | undefined;
175
175
  platform?: string | undefined;
176
176
  vendor?: string | undefined;
177
177
  persistentId?: string | undefined;
@@ -195,29 +195,29 @@ export declare const SessionContextSchema: z.ZodObject<{
195
195
  }, "strip", z.ZodTypeAny, {
196
196
  provider: string;
197
197
  subject: string;
198
- email?: string | undefined;
199
198
  name?: string | undefined;
199
+ email?: string | undefined;
200
200
  }, {
201
201
  provider: string;
202
202
  subject: string;
203
- email?: string | undefined;
204
203
  name?: string | undefined;
204
+ email?: string | undefined;
205
205
  }>>;
206
206
  }, "strip", z.ZodTypeAny, {
207
- createdAt: number;
208
207
  nonce: string;
209
208
  audience: string;
210
209
  timestamp: number;
211
210
  sessionId: string;
211
+ createdAt: number;
212
212
  lastActivity: number;
213
213
  ttlMinutes: number;
214
- identityState: "authenticated" | "anonymous";
214
+ identityState: "anonymous" | "authenticated";
215
215
  agentDid?: string | undefined;
216
216
  clientInfo?: {
217
- clientId: string;
218
217
  name: string;
219
- version?: string | undefined;
218
+ clientId: string;
220
219
  title?: string | undefined;
220
+ version?: string | undefined;
221
221
  platform?: string | undefined;
222
222
  vendor?: string | undefined;
223
223
  persistentId?: string | undefined;
@@ -230,22 +230,22 @@ export declare const SessionContextSchema: z.ZodObject<{
230
230
  oauthIdentity?: {
231
231
  provider: string;
232
232
  subject: string;
233
- email?: string | undefined;
234
233
  name?: string | undefined;
234
+ email?: string | undefined;
235
235
  } | undefined;
236
236
  }, {
237
- createdAt: number;
238
237
  nonce: string;
239
238
  audience: string;
240
239
  timestamp: number;
241
240
  sessionId: string;
241
+ createdAt: number;
242
242
  lastActivity: number;
243
243
  agentDid?: string | undefined;
244
244
  clientInfo?: {
245
- clientId: string;
246
245
  name: string;
247
- version?: string | undefined;
246
+ clientId: string;
248
247
  title?: string | undefined;
248
+ version?: string | undefined;
249
249
  platform?: string | undefined;
250
250
  vendor?: string | undefined;
251
251
  persistentId?: string | undefined;
@@ -256,12 +256,12 @@ export declare const SessionContextSchema: z.ZodObject<{
256
256
  serverDid?: string | undefined;
257
257
  clientDid?: string | undefined;
258
258
  userDid?: string | undefined;
259
- identityState?: "authenticated" | "anonymous" | undefined;
259
+ identityState?: "anonymous" | "authenticated" | undefined;
260
260
  oauthIdentity?: {
261
261
  provider: string;
262
262
  subject: string;
263
- email?: string | undefined;
264
263
  name?: string | undefined;
264
+ email?: string | undefined;
265
265
  } | undefined;
266
266
  }>;
267
267
  export declare const NonceCacheEntrySchema: z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -22,5 +22,6 @@ export * from "./utils/validation.js";
22
22
  export * from "./vc/index.js";
23
23
  export * from "./delegation/index.js";
24
24
  export * from "./audit/index.js";
25
+ export * from "./policy/index.js";
25
26
  export declare const CONTRACTS_VERSION = "1.2.1";
26
27
  export declare const SUPPORTED_XMCP_I_VERSION = "^1.0.0";
package/dist/index.js CHANGED
@@ -42,6 +42,8 @@ __exportStar(require("./vc/index.js"), exports);
42
42
  __exportStar(require("./delegation/index.js"), exports);
43
43
  // Audit types (platform-agnostic)
44
44
  __exportStar(require("./audit/index.js"), exports);
45
+ // Policy types (for mcp-i-core compatibility with webpack alias)
46
+ __exportStar(require("./policy/index.js"), exports);
45
47
  // Version information
46
48
  exports.CONTRACTS_VERSION = "1.2.1";
47
49
  exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";
@@ -57,3 +59,4 @@ exports.SUPPORTED_XMCP_I_VERSION = "^1.0.0";
57
59
  // import { ... } from '@kya-os/contracts/well-known'
58
60
  // import { ... } from '@kya-os/contracts/identity' // Phase 5: Identity resolution
59
61
  // import { ... } from '@kya-os/contracts/reputation' // Reputation scoring system
62
+ // import { ... } from '@kya-os/contracts/policy' // Agent policy configuration