@kya-os/contracts 1.7.25 → 1.7.31

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.
Files changed (54) hide show
  1. package/dist/agent-deployment-utils.d.ts +62 -0
  2. package/dist/agent-deployment-utils.js +92 -0
  3. package/dist/agent-deployment.d.ts +723 -0
  4. package/dist/agent-deployment.js +270 -0
  5. package/dist/agentshield-api/admin-schemas.d.ts +2 -2
  6. package/dist/agentshield-api/schemas.d.ts +413 -413
  7. package/dist/audit/index.d.ts +4 -4
  8. package/dist/cli.d.ts +42 -42
  9. package/dist/compute-binding.d.ts +48 -0
  10. package/dist/compute-binding.js +42 -0
  11. package/dist/compute.d.ts +443 -0
  12. package/dist/compute.js +190 -0
  13. package/dist/config/identity.d.ts +98 -98
  14. package/dist/consent/schemas.d.ts +118 -118
  15. package/dist/dashboard-config/schemas.d.ts +1241 -1241
  16. package/dist/delegation/constraints.d.ts +32 -32
  17. package/dist/delegation/schemas.d.ts +588 -588
  18. package/dist/deploy/schemas.d.ts +127 -127
  19. package/dist/deploy/schemas.js +1 -0
  20. package/dist/deploy/types.d.ts +1 -1
  21. package/dist/gateway/agents.d.ts +21 -0
  22. package/dist/gateway/agents.js +12 -0
  23. package/dist/gateway/cron.d.ts +33 -0
  24. package/dist/gateway/cron.js +16 -0
  25. package/dist/gateway/index.d.ts +20 -0
  26. package/dist/gateway/index.js +37 -0
  27. package/dist/gateway/sessions.d.ts +30 -0
  28. package/dist/gateway/sessions.js +15 -0
  29. package/dist/gateway/skills.d.ts +445 -0
  30. package/dist/gateway/skills.js +47 -0
  31. package/dist/gateway/usage.d.ts +43 -0
  32. package/dist/gateway/usage.js +18 -0
  33. package/dist/handshake.d.ts +56 -56
  34. package/dist/identity/schemas.d.ts +8 -8
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +2 -0
  37. package/dist/molti/admin-ws.d.ts +60 -60
  38. package/dist/molti/schemas.d.ts +30 -30
  39. package/dist/pairing/index.d.ts +44 -0
  40. package/dist/pairing/index.js +11 -0
  41. package/dist/policy/schemas.d.ts +671 -671
  42. package/dist/proof/proof-record.d.ts +36 -36
  43. package/dist/proof/signing-spec.d.ts +8 -8
  44. package/dist/proof.d.ts +68 -68
  45. package/dist/registry.d.ts +42 -42
  46. package/dist/reputation/api.d.ts +150 -150
  47. package/dist/reputation/credentials.d.ts +12 -12
  48. package/dist/reputation/schemas.d.ts +48 -48
  49. package/dist/test.d.ts +22 -22
  50. package/dist/tlkrc/rotation.d.ts +12 -12
  51. package/dist/tool-protection/index.d.ts +20 -20
  52. package/dist/verifier.d.ts +21 -21
  53. package/dist/well-known/index.d.ts +68 -68
  54. package/package.json +25 -5
@@ -72,8 +72,8 @@ export declare const AuditContextSchema: z.ZodObject<{
72
72
  [k: string]: unknown;
73
73
  };
74
74
  session: {
75
- audience: string;
76
75
  sessionId: string;
76
+ audience: string;
77
77
  } & {
78
78
  [k: string]: unknown;
79
79
  };
@@ -89,8 +89,8 @@ export declare const AuditContextSchema: z.ZodObject<{
89
89
  [k: string]: unknown;
90
90
  };
91
91
  session: {
92
- audience: string;
93
92
  sessionId: string;
93
+ audience: string;
94
94
  } & {
95
95
  [k: string]: unknown;
96
96
  };
@@ -160,8 +160,8 @@ export declare const AuditEventContextSchema: z.ZodObject<{
160
160
  [k: string]: unknown;
161
161
  };
162
162
  session: {
163
- audience: string;
164
163
  sessionId: string;
164
+ audience: string;
165
165
  } & {
166
166
  [k: string]: unknown;
167
167
  };
@@ -175,8 +175,8 @@ export declare const AuditEventContextSchema: z.ZodObject<{
175
175
  [k: string]: unknown;
176
176
  };
177
177
  session: {
178
- audience: string;
179
178
  sessionId: string;
179
+ audience: string;
180
180
  } & {
181
181
  [k: string]: unknown;
182
182
  };
package/dist/cli.d.ts CHANGED
@@ -40,58 +40,58 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
40
40
  version: "1.0";
41
41
  did: string;
42
42
  publicKey: string;
43
- privateKey: string;
44
43
  createdAt: string;
44
+ privateKey: string;
45
+ kid?: string | undefined;
45
46
  kta?: {
46
47
  registered: boolean;
47
48
  registeredAt: string;
48
49
  claimUrl: string | null;
49
50
  } | undefined;
50
- kid?: string | undefined;
51
- keyId?: string | undefined;
52
51
  lastRotated?: string | undefined;
52
+ keyId?: string | undefined;
53
53
  }, {
54
54
  version: "1.0";
55
55
  did: string;
56
56
  publicKey: string;
57
- privateKey: string;
58
57
  createdAt: string;
58
+ privateKey: string;
59
+ kid?: string | undefined;
59
60
  kta?: {
60
61
  registered: boolean;
61
62
  registeredAt: string;
62
63
  claimUrl: string | null;
63
64
  } | undefined;
64
- kid?: string | undefined;
65
- keyId?: string | undefined;
66
65
  lastRotated?: string | undefined;
66
+ keyId?: string | undefined;
67
67
  }>, {
68
68
  version: "1.0";
69
69
  did: string;
70
70
  publicKey: string;
71
- privateKey: string;
72
71
  createdAt: string;
72
+ privateKey: string;
73
+ kid?: string | undefined;
73
74
  kta?: {
74
75
  registered: boolean;
75
76
  registeredAt: string;
76
77
  claimUrl: string | null;
77
78
  } | undefined;
78
- kid?: string | undefined;
79
- keyId?: string | undefined;
80
79
  lastRotated?: string | undefined;
80
+ keyId?: string | undefined;
81
81
  }, {
82
82
  version: "1.0";
83
83
  did: string;
84
84
  publicKey: string;
85
- privateKey: string;
86
85
  createdAt: string;
86
+ privateKey: string;
87
+ kid?: string | undefined;
87
88
  kta?: {
88
89
  registered: boolean;
89
90
  registeredAt: string;
90
91
  claimUrl: string | null;
91
92
  } | undefined;
92
- kid?: string | undefined;
93
- keyId?: string | undefined;
94
93
  lastRotated?: string | undefined;
94
+ keyId?: string | undefined;
95
95
  }>, {
96
96
  version: "1.0";
97
97
  did: string;
@@ -105,16 +105,16 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
105
105
  version: "1.0";
106
106
  did: string;
107
107
  publicKey: string;
108
- privateKey: string;
109
108
  createdAt: string;
109
+ privateKey: string;
110
+ kid?: string | undefined;
110
111
  kta?: {
111
112
  registered: boolean;
112
113
  registeredAt: string;
113
114
  claimUrl: string | null;
114
115
  } | undefined;
115
- kid?: string | undefined;
116
- keyId?: string | undefined;
117
116
  lastRotated?: string | undefined;
117
+ keyId?: string | undefined;
118
118
  }>;
119
119
  export declare const KeyRotationResultSchema: z.ZodObject<{
120
120
  success: z.ZodBoolean;
@@ -128,18 +128,18 @@ export declare const KeyRotationResultSchema: z.ZodObject<{
128
128
  }, "strip", z.ZodTypeAny, {
129
129
  did: string;
130
130
  success: boolean;
131
+ mode: "dev" | "prod";
131
132
  oldKeyId: string;
132
133
  newKeyId: string;
133
- mode: "dev" | "prod";
134
134
  delegated: boolean;
135
135
  forced: boolean;
136
136
  auditLine: string;
137
137
  }, {
138
138
  did: string;
139
139
  success: boolean;
140
+ mode: "dev" | "prod";
140
141
  oldKeyId: string;
141
142
  newKeyId: string;
142
- mode: "dev" | "prod";
143
143
  delegated: boolean;
144
144
  forced: boolean;
145
145
  auditLine: string;
@@ -154,16 +154,16 @@ export declare const StatusReportSchema: z.ZodObject<{
154
154
  }, "strip", z.ZodTypeAny, {
155
155
  did: string;
156
156
  kid: string;
157
- ktaURL: string;
158
- mirrorStatus: "success" | "pending" | "error";
159
157
  environment: "dev" | "prod";
158
+ mirrorStatus: "error" | "success" | "pending";
159
+ ktaURL: string;
160
160
  lastHandshake?: number | undefined;
161
161
  }, {
162
162
  did: string;
163
163
  kid: string;
164
- ktaURL: string;
165
- mirrorStatus: "success" | "pending" | "error";
166
164
  environment: "dev" | "prod";
165
+ mirrorStatus: "error" | "success" | "pending";
166
+ ktaURL: string;
167
167
  lastHandshake?: number | undefined;
168
168
  }>;
169
169
  export declare const PackageInfoSchema: z.ZodObject<{
@@ -213,12 +213,12 @@ export declare const KTAInfoSchema: z.ZodObject<{
213
213
  authenticated: z.ZodBoolean;
214
214
  issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
215
  }, "strip", z.ZodTypeAny, {
216
- reachable: boolean;
217
216
  authenticated: boolean;
217
+ reachable: boolean;
218
218
  issues?: string[] | undefined;
219
219
  }, {
220
- reachable: boolean;
221
220
  authenticated: boolean;
221
+ reachable: boolean;
222
222
  issues?: string[] | undefined;
223
223
  }>;
224
224
  export declare const CacheInfoSchema: z.ZodObject<{
@@ -282,12 +282,12 @@ export declare const DoctorResultSchema: z.ZodObject<{
282
282
  authenticated: z.ZodBoolean;
283
283
  issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
284
284
  }, "strip", z.ZodTypeAny, {
285
- reachable: boolean;
286
285
  authenticated: boolean;
286
+ reachable: boolean;
287
287
  issues?: string[] | undefined;
288
288
  }, {
289
- reachable: boolean;
290
289
  authenticated: boolean;
290
+ reachable: boolean;
291
291
  issues?: string[] | undefined;
292
292
  }>;
293
293
  cache: z.ZodObject<{
@@ -304,14 +304,19 @@ export declare const DoctorResultSchema: z.ZodObject<{
304
304
  issues?: string[] | undefined;
305
305
  }>;
306
306
  }, "strip", z.ZodTypeAny, {
307
+ environment: {
308
+ valid: boolean;
309
+ missing: string[];
310
+ issues?: string[] | undefined;
311
+ };
307
312
  kta: {
308
- reachable: boolean;
309
313
  authenticated: boolean;
314
+ reachable: boolean;
310
315
  issues?: string[] | undefined;
311
316
  };
312
- environment: {
313
- valid: boolean;
314
- missing: string[];
317
+ cache: {
318
+ type: string;
319
+ functional: boolean;
315
320
  issues?: string[] | undefined;
316
321
  };
317
322
  packages: {
@@ -325,20 +330,20 @@ export declare const DoctorResultSchema: z.ZodObject<{
325
330
  compatible: boolean;
326
331
  issues?: string[] | undefined;
327
332
  };
328
- cache: {
329
- type: string;
330
- functional: boolean;
333
+ }, {
334
+ environment: {
335
+ valid: boolean;
336
+ missing: string[];
331
337
  issues?: string[] | undefined;
332
338
  };
333
- }, {
334
339
  kta: {
335
- reachable: boolean;
336
340
  authenticated: boolean;
341
+ reachable: boolean;
337
342
  issues?: string[] | undefined;
338
343
  };
339
- environment: {
340
- valid: boolean;
341
- missing: string[];
344
+ cache: {
345
+ type: string;
346
+ functional: boolean;
342
347
  issues?: string[] | undefined;
343
348
  };
344
349
  packages: {
@@ -352,11 +357,6 @@ export declare const DoctorResultSchema: z.ZodObject<{
352
357
  compatible: boolean;
353
358
  issues?: string[] | undefined;
354
359
  };
355
- cache: {
356
- type: string;
357
- functional: boolean;
358
- issues?: string[] | undefined;
359
- };
360
360
  }>;
361
361
  export declare const ScaffolderOptionsSchema: z.ZodObject<{
362
362
  projectName: z.ZodString;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Compute Binding Contracts
3
+ *
4
+ * Defines the interface for pluggable runtime bindings.
5
+ * The compute process is agnostic to what runs inside —
6
+ * OpenClaw is the first binding, but LangGraph, CrewAI, etc.
7
+ * can be added by implementing this interface.
8
+ *
9
+ * @package @kya-os/contracts/compute-binding
10
+ */
11
+ import { z } from "zod";
12
+ /**
13
+ * Supported compute binding types.
14
+ * Each binding knows how to install, configure, start, and health-check
15
+ * a specific agent runtime.
16
+ */
17
+ export declare const ComputeBindingTypeSchema: z.ZodEnum<["openclaw", "langgraph", "crewai", "custom"]>;
18
+ export type ComputeBindingType = z.infer<typeof ComputeBindingTypeSchema>;
19
+ /**
20
+ * Runtime capabilities declaration.
21
+ * Each binding declares what it supports so the dashboard can
22
+ * show/hide UI features accordingly.
23
+ */
24
+ export declare const RuntimeCapabilitiesSchema: z.ZodObject<{
25
+ /** Supports interactive chat */
26
+ chat: z.ZodBoolean;
27
+ /** Supports messaging channels (Telegram, Discord, Slack) */
28
+ channels: z.ZodBoolean;
29
+ /** Supports MCP tool use */
30
+ tools: z.ZodBoolean;
31
+ /** Supports personality/soul customization */
32
+ personality: z.ZodBoolean;
33
+ /** Supports persistent memory */
34
+ memory: z.ZodBoolean;
35
+ }, "strip", z.ZodTypeAny, {
36
+ tools: boolean;
37
+ memory: boolean;
38
+ channels: boolean;
39
+ chat: boolean;
40
+ personality: boolean;
41
+ }, {
42
+ tools: boolean;
43
+ memory: boolean;
44
+ channels: boolean;
45
+ chat: boolean;
46
+ personality: boolean;
47
+ }>;
48
+ export type RuntimeCapabilities = z.infer<typeof RuntimeCapabilitiesSchema>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * Compute Binding Contracts
4
+ *
5
+ * Defines the interface for pluggable runtime bindings.
6
+ * The compute process is agnostic to what runs inside —
7
+ * OpenClaw is the first binding, but LangGraph, CrewAI, etc.
8
+ * can be added by implementing this interface.
9
+ *
10
+ * @package @kya-os/contracts/compute-binding
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.RuntimeCapabilitiesSchema = exports.ComputeBindingTypeSchema = void 0;
14
+ const zod_1 = require("zod");
15
+ /**
16
+ * Supported compute binding types.
17
+ * Each binding knows how to install, configure, start, and health-check
18
+ * a specific agent runtime.
19
+ */
20
+ exports.ComputeBindingTypeSchema = zod_1.z.enum([
21
+ "openclaw",
22
+ "langgraph",
23
+ "crewai",
24
+ "custom",
25
+ ]);
26
+ /**
27
+ * Runtime capabilities declaration.
28
+ * Each binding declares what it supports so the dashboard can
29
+ * show/hide UI features accordingly.
30
+ */
31
+ exports.RuntimeCapabilitiesSchema = zod_1.z.object({
32
+ /** Supports interactive chat */
33
+ chat: zod_1.z.boolean(),
34
+ /** Supports messaging channels (Telegram, Discord, Slack) */
35
+ channels: zod_1.z.boolean(),
36
+ /** Supports MCP tool use */
37
+ tools: zod_1.z.boolean(),
38
+ /** Supports personality/soul customization */
39
+ personality: zod_1.z.boolean(),
40
+ /** Supports persistent memory */
41
+ memory: zod_1.z.boolean(),
42
+ });