@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.
- package/dist/agent-deployment-utils.d.ts +62 -0
- package/dist/agent-deployment-utils.js +92 -0
- package/dist/agent-deployment.d.ts +723 -0
- package/dist/agent-deployment.js +270 -0
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +413 -413
- package/dist/audit/index.d.ts +4 -4
- package/dist/cli.d.ts +42 -42
- package/dist/compute-binding.d.ts +48 -0
- package/dist/compute-binding.js +42 -0
- package/dist/compute.d.ts +443 -0
- package/dist/compute.js +190 -0
- package/dist/config/identity.d.ts +98 -98
- package/dist/consent/schemas.d.ts +118 -118
- package/dist/dashboard-config/schemas.d.ts +1241 -1241
- package/dist/delegation/constraints.d.ts +32 -32
- package/dist/delegation/schemas.d.ts +588 -588
- package/dist/deploy/schemas.d.ts +127 -127
- package/dist/deploy/schemas.js +1 -0
- package/dist/deploy/types.d.ts +1 -1
- package/dist/gateway/agents.d.ts +21 -0
- package/dist/gateway/agents.js +12 -0
- package/dist/gateway/cron.d.ts +33 -0
- package/dist/gateway/cron.js +16 -0
- package/dist/gateway/index.d.ts +20 -0
- package/dist/gateway/index.js +37 -0
- package/dist/gateway/sessions.d.ts +30 -0
- package/dist/gateway/sessions.js +15 -0
- package/dist/gateway/skills.d.ts +445 -0
- package/dist/gateway/skills.js +47 -0
- package/dist/gateway/usage.d.ts +43 -0
- package/dist/gateway/usage.js +18 -0
- package/dist/handshake.d.ts +56 -56
- package/dist/identity/schemas.d.ts +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/molti/admin-ws.d.ts +60 -60
- package/dist/molti/schemas.d.ts +30 -30
- package/dist/pairing/index.d.ts +44 -0
- package/dist/pairing/index.js +11 -0
- package/dist/policy/schemas.d.ts +671 -671
- package/dist/proof/proof-record.d.ts +36 -36
- package/dist/proof/signing-spec.d.ts +8 -8
- package/dist/proof.d.ts +68 -68
- package/dist/registry.d.ts +42 -42
- package/dist/reputation/api.d.ts +150 -150
- package/dist/reputation/credentials.d.ts +12 -12
- 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 +20 -20
- package/dist/verifier.d.ts +21 -21
- package/dist/well-known/index.d.ts +68 -68
- package/package.json +25 -5
package/dist/molti/schemas.d.ts
CHANGED
|
@@ -123,14 +123,14 @@ export declare const moltiDeployStepSchema: z.ZodObject<{
|
|
|
123
123
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
124
124
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
status: "
|
|
126
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
127
127
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
128
128
|
name: string;
|
|
129
129
|
message?: string | undefined;
|
|
130
130
|
startedAt?: string | undefined;
|
|
131
131
|
completedAt?: string | undefined;
|
|
132
132
|
}, {
|
|
133
|
-
status: "
|
|
133
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
134
134
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
135
135
|
name: string;
|
|
136
136
|
message?: string | undefined;
|
|
@@ -150,14 +150,14 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
|
|
|
150
150
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
151
151
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
status: "
|
|
153
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
154
154
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
155
155
|
name: string;
|
|
156
156
|
message?: string | undefined;
|
|
157
157
|
startedAt?: string | undefined;
|
|
158
158
|
completedAt?: string | undefined;
|
|
159
159
|
}, {
|
|
160
|
-
status: "
|
|
160
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
161
161
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
162
162
|
name: string;
|
|
163
163
|
message?: string | undefined;
|
|
@@ -170,7 +170,7 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
|
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
deploymentId: string;
|
|
172
172
|
steps: {
|
|
173
|
-
status: "
|
|
173
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
174
174
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
175
175
|
name: string;
|
|
176
176
|
message?: string | undefined;
|
|
@@ -179,11 +179,11 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
|
|
|
179
179
|
}[];
|
|
180
180
|
currentStep: number;
|
|
181
181
|
totalSteps: number;
|
|
182
|
-
overallStatus: "
|
|
182
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
183
183
|
}, {
|
|
184
184
|
deploymentId: string;
|
|
185
185
|
steps: {
|
|
186
|
-
status: "
|
|
186
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
187
187
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
188
188
|
name: string;
|
|
189
189
|
message?: string | undefined;
|
|
@@ -192,7 +192,7 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
|
|
|
192
192
|
}[];
|
|
193
193
|
currentStep: number;
|
|
194
194
|
totalSteps: number;
|
|
195
|
-
overallStatus: "
|
|
195
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
198
198
|
* Successful deploy result schema
|
|
@@ -420,7 +420,7 @@ export declare const moltiHealthStatusSchema: z.ZodObject<{
|
|
|
420
420
|
workerUrl: z.ZodOptional<z.ZodString>;
|
|
421
421
|
}, "strip", z.ZodTypeAny, {
|
|
422
422
|
agentDid: string;
|
|
423
|
-
containerStatus: "pending" | "deploying" | "running" | "stopped" | "unhealthy"
|
|
423
|
+
containerStatus: "error" | "pending" | "deploying" | "running" | "stopped" | "unhealthy";
|
|
424
424
|
gatewayRunning: boolean;
|
|
425
425
|
gatewayPort: number;
|
|
426
426
|
lastCheckedAt: string;
|
|
@@ -428,7 +428,7 @@ export declare const moltiHealthStatusSchema: z.ZodObject<{
|
|
|
428
428
|
workerUrl?: string | undefined;
|
|
429
429
|
}, {
|
|
430
430
|
agentDid: string;
|
|
431
|
-
containerStatus: "pending" | "deploying" | "running" | "stopped" | "unhealthy"
|
|
431
|
+
containerStatus: "error" | "pending" | "deploying" | "running" | "stopped" | "unhealthy";
|
|
432
432
|
gatewayRunning: boolean;
|
|
433
433
|
gatewayPort: number;
|
|
434
434
|
lastCheckedAt: string;
|
|
@@ -450,14 +450,14 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
450
450
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
451
451
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
452
452
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
status: "
|
|
453
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
454
454
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
455
455
|
name: string;
|
|
456
456
|
message?: string | undefined;
|
|
457
457
|
startedAt?: string | undefined;
|
|
458
458
|
completedAt?: string | undefined;
|
|
459
459
|
}, {
|
|
460
|
-
status: "
|
|
460
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
461
461
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
462
462
|
name: string;
|
|
463
463
|
message?: string | undefined;
|
|
@@ -470,7 +470,7 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
470
470
|
}, "strip", z.ZodTypeAny, {
|
|
471
471
|
deploymentId: string;
|
|
472
472
|
steps: {
|
|
473
|
-
status: "
|
|
473
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
474
474
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
475
475
|
name: string;
|
|
476
476
|
message?: string | undefined;
|
|
@@ -479,11 +479,11 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
479
479
|
}[];
|
|
480
480
|
currentStep: number;
|
|
481
481
|
totalSteps: number;
|
|
482
|
-
overallStatus: "
|
|
482
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
483
483
|
}, {
|
|
484
484
|
deploymentId: string;
|
|
485
485
|
steps: {
|
|
486
|
-
status: "
|
|
486
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
487
487
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
488
488
|
name: string;
|
|
489
489
|
message?: string | undefined;
|
|
@@ -492,14 +492,14 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
492
492
|
}[];
|
|
493
493
|
currentStep: number;
|
|
494
494
|
totalSteps: number;
|
|
495
|
-
overallStatus: "
|
|
495
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
496
496
|
}>;
|
|
497
497
|
}, "strip", z.ZodTypeAny, {
|
|
498
498
|
type: "progress";
|
|
499
499
|
data: {
|
|
500
500
|
deploymentId: string;
|
|
501
501
|
steps: {
|
|
502
|
-
status: "
|
|
502
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
503
503
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
504
504
|
name: string;
|
|
505
505
|
message?: string | undefined;
|
|
@@ -508,14 +508,14 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
508
508
|
}[];
|
|
509
509
|
currentStep: number;
|
|
510
510
|
totalSteps: number;
|
|
511
|
-
overallStatus: "
|
|
511
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
512
512
|
};
|
|
513
513
|
}, {
|
|
514
514
|
type: "progress";
|
|
515
515
|
data: {
|
|
516
516
|
deploymentId: string;
|
|
517
517
|
steps: {
|
|
518
|
-
status: "
|
|
518
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
519
519
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
520
520
|
name: string;
|
|
521
521
|
message?: string | undefined;
|
|
@@ -524,7 +524,7 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
|
|
|
524
524
|
}[];
|
|
525
525
|
currentStep: number;
|
|
526
526
|
totalSteps: number;
|
|
527
|
-
overallStatus: "
|
|
527
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
528
528
|
};
|
|
529
529
|
}>;
|
|
530
530
|
/**
|
|
@@ -656,14 +656,14 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
656
656
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
657
657
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
658
658
|
}, "strip", z.ZodTypeAny, {
|
|
659
|
-
status: "
|
|
659
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
660
660
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
661
661
|
name: string;
|
|
662
662
|
message?: string | undefined;
|
|
663
663
|
startedAt?: string | undefined;
|
|
664
664
|
completedAt?: string | undefined;
|
|
665
665
|
}, {
|
|
666
|
-
status: "
|
|
666
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
667
667
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
668
668
|
name: string;
|
|
669
669
|
message?: string | undefined;
|
|
@@ -676,7 +676,7 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
676
676
|
}, "strip", z.ZodTypeAny, {
|
|
677
677
|
deploymentId: string;
|
|
678
678
|
steps: {
|
|
679
|
-
status: "
|
|
679
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
680
680
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
681
681
|
name: string;
|
|
682
682
|
message?: string | undefined;
|
|
@@ -685,11 +685,11 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
685
685
|
}[];
|
|
686
686
|
currentStep: number;
|
|
687
687
|
totalSteps: number;
|
|
688
|
-
overallStatus: "
|
|
688
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
689
689
|
}, {
|
|
690
690
|
deploymentId: string;
|
|
691
691
|
steps: {
|
|
692
|
-
status: "
|
|
692
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
693
693
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
694
694
|
name: string;
|
|
695
695
|
message?: string | undefined;
|
|
@@ -698,14 +698,14 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
698
698
|
}[];
|
|
699
699
|
currentStep: number;
|
|
700
700
|
totalSteps: number;
|
|
701
|
-
overallStatus: "
|
|
701
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
702
702
|
}>;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
704
|
type: "progress";
|
|
705
705
|
data: {
|
|
706
706
|
deploymentId: string;
|
|
707
707
|
steps: {
|
|
708
|
-
status: "
|
|
708
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
709
709
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
710
710
|
name: string;
|
|
711
711
|
message?: string | undefined;
|
|
@@ -714,14 +714,14 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
714
714
|
}[];
|
|
715
715
|
currentStep: number;
|
|
716
716
|
totalSteps: number;
|
|
717
|
-
overallStatus: "
|
|
717
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
718
718
|
};
|
|
719
719
|
}, {
|
|
720
720
|
type: "progress";
|
|
721
721
|
data: {
|
|
722
722
|
deploymentId: string;
|
|
723
723
|
steps: {
|
|
724
|
-
status: "
|
|
724
|
+
status: "failed" | "pending" | "in_progress" | "completed" | "skipped";
|
|
725
725
|
id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
|
|
726
726
|
name: string;
|
|
727
727
|
message?: string | undefined;
|
|
@@ -730,7 +730,7 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
730
730
|
}[];
|
|
731
731
|
currentStep: number;
|
|
732
732
|
totalSteps: number;
|
|
733
|
-
overallStatus: "
|
|
733
|
+
overallStatus: "failed" | "pending" | "in_progress" | "completed";
|
|
734
734
|
};
|
|
735
735
|
}>, z.ZodObject<{
|
|
736
736
|
type: z.ZodLiteral<"complete">;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pairing WebSocket event types
|
|
3
|
+
*
|
|
4
|
+
* Emitted by compute PairingWatcher via PairingEventBus.
|
|
5
|
+
* Consumed by Checkpoint UI via WS frames from the control server.
|
|
6
|
+
*
|
|
7
|
+
* These types are the canonical contract between compute and dashboard.
|
|
8
|
+
* Import via @kya-os/contracts or @kya-os/contracts/pairing.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* WhatsApp login state machine (backend-owned).
|
|
12
|
+
*
|
|
13
|
+
* Transitions:
|
|
14
|
+
* disabled → enabling → qr_ready → scanned → linked
|
|
15
|
+
* → failed
|
|
16
|
+
*/
|
|
17
|
+
export type WhatsAppLoginState = "disabled" | "enabling" | "qr_ready" | "scanned" | "linked" | "failed";
|
|
18
|
+
export type PairingRequestedEvent = {
|
|
19
|
+
event: "channel.pairing.requested";
|
|
20
|
+
payload: {
|
|
21
|
+
channel: string;
|
|
22
|
+
code: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
meta?: Record<string, string>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type PairingApprovedEvent = {
|
|
29
|
+
event: "channel.pairing.approved";
|
|
30
|
+
payload: {
|
|
31
|
+
channel: string;
|
|
32
|
+
code: string;
|
|
33
|
+
userId: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type LinkStateChangedEvent = {
|
|
37
|
+
event: "channel.link.stateChanged";
|
|
38
|
+
payload: {
|
|
39
|
+
channel: string;
|
|
40
|
+
state: WhatsAppLoginState | "waiting_user_start" | "code_issued" | "approved" | "configured";
|
|
41
|
+
previousState?: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export type PairingWsEvent = PairingRequestedEvent | PairingApprovedEvent | LinkStateChangedEvent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Pairing WebSocket event types
|
|
4
|
+
*
|
|
5
|
+
* Emitted by compute PairingWatcher via PairingEventBus.
|
|
6
|
+
* Consumed by Checkpoint UI via WS frames from the control server.
|
|
7
|
+
*
|
|
8
|
+
* These types are the canonical contract between compute and dashboard.
|
|
9
|
+
* Import via @kya-os/contracts or @kya-os/contracts/pairing.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|