@kya-os/contracts 1.7.26 → 1.7.32
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/agent-deployment-utils.d.ts +20 -0
- package/dist/agent-deployment-utils.js +37 -0
- package/dist/agent-deployment.d.ts +19 -19
- package/dist/agent-deployment.js +2 -1
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +462 -462
- package/dist/audit/index.d.ts +24 -24
- package/dist/cli.d.ts +44 -44
- package/dist/compute-binding.d.ts +6 -6
- package/dist/compute.d.ts +27 -8
- package/dist/compute.js +6 -0
- package/dist/config/identity.d.ts +98 -98
- package/dist/consent/schemas.d.ts +72 -72
- package/dist/dashboard-config/schemas.d.ts +2191 -2191
- package/dist/delegation/constraints.d.ts +32 -32
- package/dist/delegation/schemas.d.ts +610 -610
- package/dist/deploy/schemas.d.ts +84 -84
- package/dist/gateway/index.d.ts +579 -0
- package/dist/gateway/index.js +103 -0
- package/dist/handshake.d.ts +42 -42
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/molti/admin-ws.d.ts +116 -116
- package/dist/molti/schemas.d.ts +98 -98
- package/dist/openclaw/index.d.ts +20 -0
- package/dist/openclaw/index.js +28 -0
- package/dist/openclaw/types.d.ts +714 -0
- package/dist/openclaw/types.js +122 -0
- package/dist/pairing/index.d.ts +44 -0
- package/dist/pairing/index.js +11 -0
- package/dist/policy/schemas.d.ts +553 -553
- package/dist/proof/proof-record.d.ts +48 -48
- package/dist/proof/signing-spec.d.ts +8 -8
- package/dist/proof.d.ts +68 -68
- package/dist/registry.d.ts +24 -24
- package/dist/reputation/api.d.ts +156 -156
- package/dist/reputation/credentials.d.ts +48 -48
- package/dist/reputation/schemas.d.ts +48 -48
- package/dist/test.d.ts +22 -22
- package/dist/tlkrc/rotation.d.ts +12 -12
- package/dist/tool-protection/index.d.ts +22 -22
- package/dist/verifier.d.ts +17 -17
- package/dist/well-known/index.d.ts +72 -72
- package/package.json +10 -2
package/dist/audit/index.d.ts
CHANGED
|
@@ -65,38 +65,38 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
65
65
|
*/
|
|
66
66
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
requestHash: string;
|
|
69
|
-
responseHash: string;
|
|
70
|
-
session: {
|
|
71
|
-
audience: string;
|
|
72
|
-
sessionId: string;
|
|
73
|
-
} & {
|
|
74
|
-
[k: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
verified: "yes" | "no";
|
|
77
68
|
identity: {
|
|
78
69
|
did: string;
|
|
79
70
|
kid: string;
|
|
80
71
|
} & {
|
|
81
72
|
[k: string]: unknown;
|
|
82
73
|
};
|
|
83
|
-
scopeId?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
requestHash: string;
|
|
86
|
-
responseHash: string;
|
|
87
74
|
session: {
|
|
88
|
-
audience: string;
|
|
89
75
|
sessionId: string;
|
|
76
|
+
audience: string;
|
|
90
77
|
} & {
|
|
91
78
|
[k: string]: unknown;
|
|
92
79
|
};
|
|
80
|
+
requestHash: string;
|
|
81
|
+
responseHash: string;
|
|
93
82
|
verified: "yes" | "no";
|
|
83
|
+
scopeId?: string | undefined;
|
|
84
|
+
}, {
|
|
94
85
|
identity: {
|
|
95
86
|
did: string;
|
|
96
87
|
kid: string;
|
|
97
88
|
} & {
|
|
98
89
|
[k: string]: unknown;
|
|
99
90
|
};
|
|
91
|
+
session: {
|
|
92
|
+
sessionId: string;
|
|
93
|
+
audience: string;
|
|
94
|
+
} & {
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
requestHash: string;
|
|
98
|
+
responseHash: string;
|
|
99
|
+
verified: "yes" | "no";
|
|
100
100
|
scopeId?: string | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
export type AuditContext = {
|
|
@@ -153,33 +153,33 @@ export declare const AuditEventContextSchema: z.ZodObject<{
|
|
|
153
153
|
*/
|
|
154
154
|
eventData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
session: {
|
|
157
|
-
audience: string;
|
|
158
|
-
sessionId: string;
|
|
159
|
-
} & {
|
|
160
|
-
[k: string]: unknown;
|
|
161
|
-
};
|
|
162
156
|
identity: {
|
|
163
157
|
did: string;
|
|
164
158
|
kid: string;
|
|
165
159
|
} & {
|
|
166
160
|
[k: string]: unknown;
|
|
167
161
|
};
|
|
168
|
-
eventType: string;
|
|
169
|
-
eventData?: Record<string, unknown> | undefined;
|
|
170
|
-
}, {
|
|
171
162
|
session: {
|
|
172
|
-
audience: string;
|
|
173
163
|
sessionId: string;
|
|
164
|
+
audience: string;
|
|
174
165
|
} & {
|
|
175
166
|
[k: string]: unknown;
|
|
176
167
|
};
|
|
168
|
+
eventType: string;
|
|
169
|
+
eventData?: Record<string, unknown> | undefined;
|
|
170
|
+
}, {
|
|
177
171
|
identity: {
|
|
178
172
|
did: string;
|
|
179
173
|
kid: string;
|
|
180
174
|
} & {
|
|
181
175
|
[k: string]: unknown;
|
|
182
176
|
};
|
|
177
|
+
session: {
|
|
178
|
+
sessionId: string;
|
|
179
|
+
audience: string;
|
|
180
|
+
} & {
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
};
|
|
183
183
|
eventType: string;
|
|
184
184
|
eventData?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|
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;
|
|
@@ -126,20 +126,20 @@ export declare const KeyRotationResultSchema: z.ZodObject<{
|
|
|
126
126
|
forced: z.ZodBoolean;
|
|
127
127
|
auditLine: z.ZodString;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
success: boolean;
|
|
130
129
|
did: string;
|
|
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
|
-
success: boolean;
|
|
139
138
|
did: string;
|
|
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: "error" | "pending" | "success";
|
|
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: "error" | "pending" | "success";
|
|
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
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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;
|
|
@@ -33,16 +33,16 @@ export declare const RuntimeCapabilitiesSchema: z.ZodObject<{
|
|
|
33
33
|
/** Supports persistent memory */
|
|
34
34
|
memory: z.ZodBoolean;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
chat: boolean;
|
|
37
|
-
channels: boolean;
|
|
38
36
|
tools: boolean;
|
|
39
|
-
personality: boolean;
|
|
40
37
|
memory: boolean;
|
|
41
|
-
}, {
|
|
42
|
-
chat: boolean;
|
|
43
38
|
channels: boolean;
|
|
44
|
-
|
|
39
|
+
chat: boolean;
|
|
45
40
|
personality: boolean;
|
|
41
|
+
}, {
|
|
42
|
+
tools: boolean;
|
|
46
43
|
memory: boolean;
|
|
44
|
+
channels: boolean;
|
|
45
|
+
chat: boolean;
|
|
46
|
+
personality: boolean;
|
|
47
47
|
}>;
|
|
48
48
|
export type RuntimeCapabilities = z.infer<typeof RuntimeCapabilitiesSchema>;
|
package/dist/compute.d.ts
CHANGED
|
@@ -289,6 +289,13 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
289
289
|
token?: string | undefined;
|
|
290
290
|
appToken?: string | undefined;
|
|
291
291
|
}>>;
|
|
292
|
+
whatsapp: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
enabled: z.ZodBoolean;
|
|
294
|
+
}, "strict", z.ZodTypeAny, {
|
|
295
|
+
enabled: boolean;
|
|
296
|
+
}, {
|
|
297
|
+
enabled: boolean;
|
|
298
|
+
}>>;
|
|
292
299
|
}, "strip", z.ZodTypeAny, {
|
|
293
300
|
telegram?: {
|
|
294
301
|
enabled: boolean;
|
|
@@ -303,6 +310,9 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
303
310
|
token?: string | undefined;
|
|
304
311
|
appToken?: string | undefined;
|
|
305
312
|
} | undefined;
|
|
313
|
+
whatsapp?: {
|
|
314
|
+
enabled: boolean;
|
|
315
|
+
} | undefined;
|
|
306
316
|
}, {
|
|
307
317
|
telegram?: {
|
|
308
318
|
enabled: boolean;
|
|
@@ -317,6 +327,9 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
317
327
|
token?: string | undefined;
|
|
318
328
|
appToken?: string | undefined;
|
|
319
329
|
} | undefined;
|
|
330
|
+
whatsapp?: {
|
|
331
|
+
enabled: boolean;
|
|
332
|
+
} | undefined;
|
|
320
333
|
}>;
|
|
321
334
|
/** AI provider configuration — key is decrypted, sent over TLS */
|
|
322
335
|
aiProvider: z.ZodObject<{
|
|
@@ -336,7 +349,11 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
336
349
|
type: "anthropic" | "openai";
|
|
337
350
|
apiKey: string;
|
|
338
351
|
};
|
|
352
|
+
openclawVersion: string;
|
|
339
353
|
version: number;
|
|
354
|
+
killed: boolean;
|
|
355
|
+
soulFile: string | null;
|
|
356
|
+
gatewayToken: string;
|
|
340
357
|
channels: {
|
|
341
358
|
telegram?: {
|
|
342
359
|
enabled: boolean;
|
|
@@ -351,18 +368,21 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
351
368
|
token?: string | undefined;
|
|
352
369
|
appToken?: string | undefined;
|
|
353
370
|
} | undefined;
|
|
371
|
+
whatsapp?: {
|
|
372
|
+
enabled: boolean;
|
|
373
|
+
} | undefined;
|
|
354
374
|
};
|
|
355
|
-
openclawVersion: string;
|
|
356
|
-
killed: boolean;
|
|
357
|
-
soulFile: string | null;
|
|
358
|
-
gatewayToken: string;
|
|
359
375
|
updatedAt: string;
|
|
360
376
|
}, {
|
|
361
377
|
aiProvider: {
|
|
362
378
|
type: "anthropic" | "openai";
|
|
363
379
|
apiKey: string;
|
|
364
380
|
};
|
|
381
|
+
openclawVersion: string;
|
|
365
382
|
version: number;
|
|
383
|
+
killed: boolean;
|
|
384
|
+
soulFile: string | null;
|
|
385
|
+
gatewayToken: string;
|
|
366
386
|
channels: {
|
|
367
387
|
telegram?: {
|
|
368
388
|
enabled: boolean;
|
|
@@ -377,11 +397,10 @@ export declare const ConfigBundleSchema: z.ZodObject<{
|
|
|
377
397
|
token?: string | undefined;
|
|
378
398
|
appToken?: string | undefined;
|
|
379
399
|
} | undefined;
|
|
400
|
+
whatsapp?: {
|
|
401
|
+
enabled: boolean;
|
|
402
|
+
} | undefined;
|
|
380
403
|
};
|
|
381
|
-
openclawVersion: string;
|
|
382
|
-
killed: boolean;
|
|
383
|
-
soulFile: string | null;
|
|
384
|
-
gatewayToken: string;
|
|
385
404
|
updatedAt: string;
|
|
386
405
|
}>;
|
|
387
406
|
export type ConfigBundle = z.infer<typeof ConfigBundleSchema>;
|
package/dist/compute.js
CHANGED
|
@@ -150,6 +150,12 @@ exports.ConfigBundleSchema = zod_1.z.object({
|
|
|
150
150
|
appToken: zod_1.z.string().optional(),
|
|
151
151
|
})
|
|
152
152
|
.optional(),
|
|
153
|
+
whatsapp: zod_1.z
|
|
154
|
+
.object({
|
|
155
|
+
enabled: zod_1.z.boolean(),
|
|
156
|
+
})
|
|
157
|
+
.strict()
|
|
158
|
+
.optional(),
|
|
153
159
|
}),
|
|
154
160
|
/** AI provider configuration — key is decrypted, sent over TLS */
|
|
155
161
|
aiProvider: zod_1.z.object({
|