@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.
- package/dist/agentshield-api/schemas.d.ts +188 -188
- package/dist/audit/index.d.ts +21 -21
- package/dist/config/base.d.ts +8 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/consent/schemas.d.ts +112 -112
- package/dist/dashboard-config/schemas.d.ts +1759 -1759
- package/dist/dashboard-config/types.d.ts +11 -1
- package/dist/delegation/schemas.d.ts +235 -235
- package/dist/delegation/schemas.js +1 -1
- package/dist/handshake.d.ts +30 -30
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/molti/admin-ws.d.ts +1260 -0
- package/dist/molti/admin-ws.js +100 -0
- package/dist/molti/index.d.ts +30 -0
- package/dist/molti/index.js +80 -0
- package/dist/molti/schemas.d.ts +837 -0
- package/dist/molti/schemas.js +267 -0
- package/dist/molti/types.d.ts +216 -0
- package/dist/molti/types.js +25 -0
- package/dist/policy/index.d.ts +8 -0
- package/dist/policy/index.js +41 -0
- package/dist/policy/schemas.d.ts +3839 -0
- package/dist/policy/schemas.js +424 -0
- package/dist/registry.d.ts +53 -53
- package/dist/registry.js +3 -3
- package/dist/reputation/credentials.d.ts +61 -61
- package/dist/reputation/credentials.js +1 -1
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/verifier.d.ts +6 -6
- package/package.json +28 -16
package/dist/registry.d.ts
CHANGED
|
@@ -32,23 +32,23 @@ export declare const RegistrationResultSchema: z.ZodObject<{
|
|
|
32
32
|
mirrorStatus: z.ZodEnum<["pending", "success", "error"]>;
|
|
33
33
|
mirrorLink: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
mirrorStatus: "success" | "pending" | "error";
|
|
36
35
|
agentDID: string;
|
|
37
36
|
agentURL: string;
|
|
38
37
|
verificationEndpoint: string;
|
|
39
38
|
conformanceCapabilities: ["handshake", "signing", "verification"];
|
|
40
39
|
agentId: string;
|
|
41
40
|
agentSlug: string;
|
|
41
|
+
mirrorStatus: "pending" | "success" | "error";
|
|
42
42
|
claimURL?: string | undefined;
|
|
43
43
|
mirrorLink?: string | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
mirrorStatus: "success" | "pending" | "error";
|
|
46
45
|
agentDID: string;
|
|
47
46
|
agentURL: string;
|
|
48
47
|
verificationEndpoint: string;
|
|
49
48
|
conformanceCapabilities: ["handshake", "signing", "verification"];
|
|
50
49
|
agentId: string;
|
|
51
50
|
agentSlug: string;
|
|
51
|
+
mirrorStatus: "pending" | "success" | "error";
|
|
52
52
|
claimURL?: string | undefined;
|
|
53
53
|
mirrorLink?: string | undefined;
|
|
54
54
|
}>;
|
|
@@ -57,12 +57,12 @@ export declare const ClaimTokenSchema: z.ZodObject<{
|
|
|
57
57
|
expiresAt: z.ZodNumber;
|
|
58
58
|
ttlHours: z.ZodDefault<z.ZodNumber>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
expiresAt: number;
|
|
61
60
|
token: string;
|
|
61
|
+
expiresAt: number;
|
|
62
62
|
ttlHours: number;
|
|
63
63
|
}, {
|
|
64
|
-
expiresAt: number;
|
|
65
64
|
token: string;
|
|
65
|
+
expiresAt: number;
|
|
66
66
|
ttlHours?: number | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export declare const MirrorStatusSchema: z.ZodObject<{
|
|
@@ -71,12 +71,12 @@ export declare const MirrorStatusSchema: z.ZodObject<{
|
|
|
71
71
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
72
72
|
registryURL: z.ZodOptional<z.ZodString>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
status: "
|
|
74
|
+
status: "pending" | "success" | "error";
|
|
75
75
|
lastUpdated: number;
|
|
76
76
|
errorMessage?: string | undefined;
|
|
77
77
|
registryURL?: string | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
status: "
|
|
79
|
+
status: "pending" | "success" | "error";
|
|
80
80
|
lastUpdated: number;
|
|
81
81
|
errorMessage?: string | undefined;
|
|
82
82
|
registryURL?: string | undefined;
|
|
@@ -91,38 +91,38 @@ export declare const AgentStatusSchema: z.ZodObject<{
|
|
|
91
91
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
92
92
|
registryURL: z.ZodOptional<z.ZodString>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
status: "
|
|
94
|
+
status: "pending" | "success" | "error";
|
|
95
95
|
lastUpdated: number;
|
|
96
96
|
errorMessage?: string | undefined;
|
|
97
97
|
registryURL?: string | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
status: "
|
|
99
|
+
status: "pending" | "success" | "error";
|
|
100
100
|
lastUpdated: number;
|
|
101
101
|
errorMessage?: string | undefined;
|
|
102
102
|
registryURL?: string | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
lastHandshake: z.ZodOptional<z.ZodNumber>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
did: string;
|
|
107
|
-
kid: string;
|
|
108
|
-
ktaURL: string;
|
|
109
106
|
mirrorStatus: {
|
|
110
|
-
status: "
|
|
107
|
+
status: "pending" | "success" | "error";
|
|
111
108
|
lastUpdated: number;
|
|
112
109
|
errorMessage?: string | undefined;
|
|
113
110
|
registryURL?: string | undefined;
|
|
114
111
|
};
|
|
115
|
-
lastHandshake?: number | undefined;
|
|
116
|
-
}, {
|
|
117
112
|
did: string;
|
|
118
113
|
kid: string;
|
|
119
114
|
ktaURL: string;
|
|
115
|
+
lastHandshake?: number | undefined;
|
|
116
|
+
}, {
|
|
120
117
|
mirrorStatus: {
|
|
121
|
-
status: "
|
|
118
|
+
status: "pending" | "success" | "error";
|
|
122
119
|
lastUpdated: number;
|
|
123
120
|
errorMessage?: string | undefined;
|
|
124
121
|
registryURL?: string | undefined;
|
|
125
122
|
};
|
|
123
|
+
did: string;
|
|
124
|
+
kid: string;
|
|
125
|
+
ktaURL: string;
|
|
126
126
|
lastHandshake?: number | undefined;
|
|
127
127
|
}>;
|
|
128
128
|
/**
|
|
@@ -137,21 +137,21 @@ 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
|
-
scopes: string[];
|
|
141
|
-
subject: string;
|
|
142
140
|
issuer: string;
|
|
141
|
+
subject: string;
|
|
142
|
+
scopes: string[];
|
|
143
143
|
nbf: number;
|
|
144
144
|
exp: number;
|
|
145
|
-
delegationRef?: string | undefined;
|
|
146
145
|
aud?: string | undefined;
|
|
146
|
+
delegationRef?: string | undefined;
|
|
147
147
|
}, {
|
|
148
|
-
scopes: string[];
|
|
149
|
-
subject: string;
|
|
150
148
|
issuer: string;
|
|
149
|
+
subject: string;
|
|
150
|
+
scopes: string[];
|
|
151
151
|
nbf: number;
|
|
152
152
|
exp: number;
|
|
153
|
-
delegationRef?: string | undefined;
|
|
154
153
|
aud?: string | undefined;
|
|
154
|
+
delegationRef?: string | undefined;
|
|
155
155
|
}>;
|
|
156
156
|
export declare const DelegationRequestSchema: z.ZodObject<{
|
|
157
157
|
subject: z.ZodString;
|
|
@@ -159,15 +159,15 @@ 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
|
-
scopes: string[];
|
|
163
162
|
subject: string;
|
|
164
|
-
|
|
163
|
+
scopes: string[];
|
|
165
164
|
duration?: number | undefined;
|
|
165
|
+
audience?: string | undefined;
|
|
166
166
|
}, {
|
|
167
|
-
scopes: string[];
|
|
168
167
|
subject: string;
|
|
169
|
-
|
|
168
|
+
scopes: string[];
|
|
170
169
|
duration?: number | undefined;
|
|
170
|
+
audience?: string | undefined;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Storage mode configuration for verifiable credentials and delegations
|
|
@@ -175,10 +175,10 @@ export declare const DelegationRequestSchema: z.ZodObject<{
|
|
|
175
175
|
export declare const StorageModeSchema: z.ZodEnum<["ktaEncrypted", "hybridReceiptsOnly", "selfHostedAuthoritative"]>;
|
|
176
176
|
/**
|
|
177
177
|
* Receipt object returned by KTA for verifiable operations
|
|
178
|
-
* Schema ID: https://
|
|
178
|
+
* Schema ID: https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json
|
|
179
179
|
*/
|
|
180
180
|
export declare const ReceiptSchema: z.ZodObject<{
|
|
181
|
-
$schema: z.ZodOptional<z.ZodLiteral<"https://
|
|
181
|
+
$schema: z.ZodOptional<z.ZodLiteral<"https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json">>;
|
|
182
182
|
ref: z.ZodString;
|
|
183
183
|
contentHash: z.ZodString;
|
|
184
184
|
action: z.ZodEnum<["issue", "revoke"]>;
|
|
@@ -187,23 +187,23 @@ export declare const ReceiptSchema: z.ZodObject<{
|
|
|
187
187
|
logRoot: z.ZodString;
|
|
188
188
|
inclusionProof: z.ZodArray<z.ZodString, "many">;
|
|
189
189
|
}, "strip", z.ZodTypeAny, {
|
|
190
|
-
ts: string | number;
|
|
191
190
|
ref: string;
|
|
192
191
|
contentHash: string;
|
|
193
192
|
action: "issue" | "revoke";
|
|
193
|
+
ts: string | number;
|
|
194
194
|
logIndex: number;
|
|
195
195
|
logRoot: string;
|
|
196
196
|
inclusionProof: string[];
|
|
197
|
-
$schema?: "https://
|
|
197
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
198
198
|
}, {
|
|
199
|
-
ts: string | number;
|
|
200
199
|
ref: string;
|
|
201
200
|
contentHash: string;
|
|
202
201
|
action: "issue" | "revoke";
|
|
202
|
+
ts: string | number;
|
|
203
203
|
logIndex: number;
|
|
204
204
|
logRoot: string;
|
|
205
205
|
inclusionProof: string[];
|
|
206
|
-
$schema?: "https://
|
|
206
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
207
207
|
}>;
|
|
208
208
|
export declare const DelegationResponseSchema: z.ZodObject<{
|
|
209
209
|
delegation: z.ZodObject<{
|
|
@@ -215,24 +215,24 @@ 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
|
-
scopes: string[];
|
|
219
|
-
subject: string;
|
|
220
218
|
issuer: string;
|
|
219
|
+
subject: string;
|
|
220
|
+
scopes: string[];
|
|
221
221
|
nbf: number;
|
|
222
222
|
exp: number;
|
|
223
|
-
delegationRef?: string | undefined;
|
|
224
223
|
aud?: string | undefined;
|
|
224
|
+
delegationRef?: string | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
scopes: string[];
|
|
227
|
-
subject: string;
|
|
228
226
|
issuer: string;
|
|
227
|
+
subject: string;
|
|
228
|
+
scopes: string[];
|
|
229
229
|
nbf: number;
|
|
230
230
|
exp: number;
|
|
231
|
-
delegationRef?: string | undefined;
|
|
232
231
|
aud?: string | undefined;
|
|
232
|
+
delegationRef?: string | undefined;
|
|
233
233
|
}>;
|
|
234
234
|
receipt: z.ZodObject<{
|
|
235
|
-
$schema: z.ZodOptional<z.ZodLiteral<"https://
|
|
235
|
+
$schema: z.ZodOptional<z.ZodLiteral<"https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json">>;
|
|
236
236
|
ref: z.ZodString;
|
|
237
237
|
contentHash: z.ZodString;
|
|
238
238
|
action: z.ZodEnum<["issue", "revoke"]>;
|
|
@@ -241,65 +241,65 @@ export declare const DelegationResponseSchema: z.ZodObject<{
|
|
|
241
241
|
logRoot: z.ZodString;
|
|
242
242
|
inclusionProof: z.ZodArray<z.ZodString, "many">;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
ts: string | number;
|
|
245
244
|
ref: string;
|
|
246
245
|
contentHash: string;
|
|
247
246
|
action: "issue" | "revoke";
|
|
247
|
+
ts: string | number;
|
|
248
248
|
logIndex: number;
|
|
249
249
|
logRoot: string;
|
|
250
250
|
inclusionProof: string[];
|
|
251
|
-
$schema?: "https://
|
|
251
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
252
252
|
}, {
|
|
253
|
-
ts: string | number;
|
|
254
253
|
ref: string;
|
|
255
254
|
contentHash: string;
|
|
256
255
|
action: "issue" | "revoke";
|
|
256
|
+
ts: string | number;
|
|
257
257
|
logIndex: number;
|
|
258
258
|
logRoot: string;
|
|
259
259
|
inclusionProof: string[];
|
|
260
|
-
$schema?: "https://
|
|
260
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
261
261
|
}>;
|
|
262
262
|
encryptedPayload: z.ZodOptional<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
264
|
delegation: {
|
|
265
|
-
scopes: string[];
|
|
266
|
-
subject: string;
|
|
267
265
|
issuer: string;
|
|
266
|
+
subject: string;
|
|
267
|
+
scopes: string[];
|
|
268
268
|
nbf: number;
|
|
269
269
|
exp: number;
|
|
270
|
-
delegationRef?: string | undefined;
|
|
271
270
|
aud?: string | undefined;
|
|
271
|
+
delegationRef?: string | undefined;
|
|
272
272
|
};
|
|
273
273
|
receipt: {
|
|
274
|
-
ts: string | number;
|
|
275
274
|
ref: string;
|
|
276
275
|
contentHash: string;
|
|
277
276
|
action: "issue" | "revoke";
|
|
277
|
+
ts: string | number;
|
|
278
278
|
logIndex: number;
|
|
279
279
|
logRoot: string;
|
|
280
280
|
inclusionProof: string[];
|
|
281
|
-
$schema?: "https://
|
|
281
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
282
282
|
};
|
|
283
283
|
encryptedPayload?: string | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
delegation: {
|
|
286
|
-
scopes: string[];
|
|
287
|
-
subject: string;
|
|
288
286
|
issuer: string;
|
|
287
|
+
subject: string;
|
|
288
|
+
scopes: string[];
|
|
289
289
|
nbf: number;
|
|
290
290
|
exp: number;
|
|
291
|
-
delegationRef?: string | undefined;
|
|
292
291
|
aud?: string | undefined;
|
|
292
|
+
delegationRef?: string | undefined;
|
|
293
293
|
};
|
|
294
294
|
receipt: {
|
|
295
|
-
ts: string | number;
|
|
296
295
|
ref: string;
|
|
297
296
|
contentHash: string;
|
|
298
297
|
action: "issue" | "revoke";
|
|
298
|
+
ts: string | number;
|
|
299
299
|
logIndex: number;
|
|
300
300
|
logRoot: string;
|
|
301
301
|
inclusionProof: string[];
|
|
302
|
-
$schema?: "https://
|
|
302
|
+
$schema?: "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json" | undefined;
|
|
303
303
|
};
|
|
304
304
|
encryptedPayload?: string | undefined;
|
|
305
305
|
}>;
|
|
@@ -338,5 +338,5 @@ export declare const CLAIM_TOKEN_TTL_HOURS = 24;
|
|
|
338
338
|
export declare const KTA_BASE_URL = "https://knowthat.ai";
|
|
339
339
|
export declare const DEFAULT_STORAGE_MODE: StorageMode;
|
|
340
340
|
export declare const STORAGE_MODE_ENV_VAR = "MCPI_STORAGE_MODE";
|
|
341
|
-
export declare const RECEIPT_SCHEMA_ID = "https://
|
|
341
|
+
export declare const RECEIPT_SCHEMA_ID = "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json";
|
|
342
342
|
export declare const CONTENT_HASH_REGEX: RegExp;
|
package/dist/registry.js
CHANGED
|
@@ -73,11 +73,11 @@ exports.StorageModeSchema = zod_1.z.enum([
|
|
|
73
73
|
]);
|
|
74
74
|
/**
|
|
75
75
|
* Receipt object returned by KTA for verifiable operations
|
|
76
|
-
* Schema ID: https://
|
|
76
|
+
* Schema ID: https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json
|
|
77
77
|
*/
|
|
78
78
|
exports.ReceiptSchema = zod_1.z.object({
|
|
79
79
|
$schema: zod_1.z
|
|
80
|
-
.literal("https://
|
|
80
|
+
.literal("https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json")
|
|
81
81
|
.optional(),
|
|
82
82
|
ref: zod_1.z.string().min(1),
|
|
83
83
|
contentHash: zod_1.z.string().regex(/^sha256:[a-f0-9]{64}$/),
|
|
@@ -114,5 +114,5 @@ exports.KTA_BASE_URL = "https://knowthat.ai"; // Placeholder for docs/tests
|
|
|
114
114
|
exports.DEFAULT_STORAGE_MODE = "ktaEncrypted";
|
|
115
115
|
exports.STORAGE_MODE_ENV_VAR = "MCPI_STORAGE_MODE";
|
|
116
116
|
// Receipt schema constants
|
|
117
|
-
exports.RECEIPT_SCHEMA_ID = "https://
|
|
117
|
+
exports.RECEIPT_SCHEMA_ID = "https://schema.modelcontextprotocol-identity.io/xmcp-i/registry/receipt.v1.0.0.json";
|
|
118
118
|
exports.CONTENT_HASH_REGEX = /^sha256:[a-f0-9]{64}$/;
|