@sixb/server 0.1.26 → 0.2.1
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/README.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2495 -1845
- package/dist/index.js.map +29 -27
- package/dist/routes/actions.d.ts +1 -1
- package/dist/routes/agent-approvals.d.ts +11 -5
- package/dist/routes/agent-approvals.d.ts.map +1 -1
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +214 -10
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-runners.d.ts +1 -1
- package/dist/routes/agent-runners.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -24
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +9 -0
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +93 -17
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/links.d.ts +121 -81
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/objects.d.ts +149 -58
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +23 -5
- package/dist/routes/observed-agent-threads.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +2 -2
- package/dist/routes/projections.d.ts +122 -122
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/telemetry.d.ts +0 -50
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +21 -10
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +4 -1
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +3 -3
- package/dist/schemas/activity.d.ts +4 -4
- package/dist/schemas/agent-approvals.d.ts +21 -21
- package/dist/schemas/agents.d.ts +760 -107
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1114 -6
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +47 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +303 -60
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +8 -8
- package/dist/schemas/lineage.d.ts +1272 -0
- package/dist/schemas/lineage.d.ts.map +1 -0
- package/dist/schemas/links.d.ts +4 -27
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +7 -26
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +12 -12
- package/dist/schemas/projections.d.ts +733 -733
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/telemetry.d.ts +0 -13
- package/dist/schemas/telemetry.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +2 -2
- package/dist/schemas/workflows.d.ts +133 -44
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +5 -0
- package/dist/utils/request-body.d.ts.map +1 -1
- package/dist/utils/request-timing.d.ts +18 -0
- package/dist/utils/request-timing.d.ts.map +1 -0
- package/package.json +7 -7
- package/src/index.ts +1 -0
- package/src/routes/agent-approvals.ts +2 -2
- package/src/routes/agent-computers.ts +309 -87
- package/src/routes/agent-runners.ts +30 -6
- package/src/routes/agents.ts +187 -25
- package/src/routes/ai-accounting.ts +149 -12
- package/src/routes/auth.ts +24 -2
- package/src/routes/datasets.ts +55 -5
- package/src/routes/links.ts +43 -76
- package/src/routes/objects.ts +49 -42
- package/src/routes/observed-agent-threads.ts +2 -2
- package/src/routes/telemetry.ts +1 -42
- package/src/routes/ws/agents.ts +10 -1
- package/src/schemas/agents.ts +121 -6
- package/src/schemas/ai-accounting.ts +78 -15
- package/src/schemas/auth.ts +19 -0
- package/src/schemas/datasets.ts +36 -0
- package/src/schemas/lineage.ts +115 -0
- package/src/schemas/links.ts +3 -11
- package/src/schemas/objects.ts +6 -10
- package/src/schemas/telemetry.ts +0 -6
- package/src/server.ts +18 -2
- package/src/utils/request-body.ts +10 -4
- package/src/utils/request-timing.ts +136 -0
|
@@ -28,8 +28,8 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
28
28
|
limit?: string | undefined;
|
|
29
29
|
offset?: string | undefined;
|
|
30
30
|
order?: "asc" | "desc" | undefined;
|
|
31
|
-
connectorId?: string | undefined;
|
|
32
31
|
idempotencyKey?: string | undefined;
|
|
32
|
+
connectorId?: string | undefined;
|
|
33
33
|
webhookId?: string | undefined;
|
|
34
34
|
};
|
|
35
35
|
headers: unknown;
|
|
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
58
58
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
59
59
|
})[];
|
|
60
60
|
latestRun: {
|
|
61
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
61
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
62
62
|
projectId: string;
|
|
63
63
|
id: string;
|
|
64
64
|
requestedBy: {
|
|
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
131
131
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
132
132
|
})[];
|
|
133
133
|
latestRun: {
|
|
134
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
134
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
135
135
|
projectId: string;
|
|
136
136
|
id: string;
|
|
137
137
|
requestedBy: {
|
|
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
475
475
|
body: unknown;
|
|
476
476
|
params: {};
|
|
477
477
|
query: {
|
|
478
|
-
status?: "succeeded" | "failed" | "cancelled" | "
|
|
478
|
+
status?: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | undefined;
|
|
479
479
|
startedAfter?: string | undefined;
|
|
480
480
|
startedBefore?: string | undefined;
|
|
481
481
|
limit?: string | undefined;
|
|
@@ -487,7 +487,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
487
487
|
response: {
|
|
488
488
|
200: {
|
|
489
489
|
runs: {
|
|
490
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
490
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
491
491
|
projectId: string;
|
|
492
492
|
id: string;
|
|
493
493
|
requestedBy: {
|
|
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
536
536
|
response: {
|
|
537
537
|
200: {
|
|
538
538
|
run: {
|
|
539
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
539
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
540
540
|
projectId: string;
|
|
541
541
|
id: string;
|
|
542
542
|
requestedBy: {
|
|
@@ -552,7 +552,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
552
552
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
553
553
|
};
|
|
554
554
|
nodes: {
|
|
555
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
555
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
|
|
556
556
|
projectId: string;
|
|
557
557
|
id: string;
|
|
558
558
|
startedAt: string;
|
|
@@ -646,7 +646,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
646
646
|
prompt: string;
|
|
647
647
|
attempt: number;
|
|
648
648
|
nodeRunId: string;
|
|
649
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
649
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
650
650
|
modelId?: string | undefined;
|
|
651
651
|
startedAt?: string | undefined;
|
|
652
652
|
completedAt?: string | undefined;
|
|
@@ -729,6 +729,17 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
729
729
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
730
730
|
dynamic?: boolean | undefined;
|
|
731
731
|
providerExecuted?: boolean | undefined;
|
|
732
|
+
outputFile?: {
|
|
733
|
+
path: string;
|
|
734
|
+
fileRef: {
|
|
735
|
+
blobId: string;
|
|
736
|
+
digest: string;
|
|
737
|
+
sizeBytes: number;
|
|
738
|
+
fileName?: string | undefined;
|
|
739
|
+
mediaType?: string | undefined;
|
|
740
|
+
logicalPath?: string | undefined;
|
|
741
|
+
};
|
|
742
|
+
} | undefined;
|
|
732
743
|
} | {
|
|
733
744
|
type: "tool-call";
|
|
734
745
|
input: import("../schemas/common").JsonValue;
|
|
@@ -776,7 +787,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
776
787
|
} | {
|
|
777
788
|
error: {
|
|
778
789
|
at: string;
|
|
779
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
790
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
780
791
|
message: string;
|
|
781
792
|
retryable: boolean;
|
|
782
793
|
details?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -838,7 +849,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
838
849
|
response: {
|
|
839
850
|
200: {
|
|
840
851
|
run: {
|
|
841
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
852
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
842
853
|
projectId: string;
|
|
843
854
|
id: string;
|
|
844
855
|
requestedBy: {
|
|
@@ -854,7 +865,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
854
865
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
855
866
|
};
|
|
856
867
|
nodes: {
|
|
857
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
868
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
|
|
858
869
|
projectId: string;
|
|
859
870
|
id: string;
|
|
860
871
|
startedAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuxBrE"}
|
|
@@ -63,7 +63,10 @@ export declare function canAccessAgentRunStream(sixb: Sixb, runId: string): Prom
|
|
|
63
63
|
ok: false;
|
|
64
64
|
message: string;
|
|
65
65
|
}>;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* A run's or an approval's activity reaches whoever reads the turn it belongs to; a computer
|
|
68
|
+
* session's, or a thread's move, its owner alone.
|
|
69
|
+
*/
|
|
67
70
|
export declare function canAccessAgentThreadActivity(sixb: Sixb, event: AgentActivityEvent): Promise<boolean>;
|
|
68
71
|
export declare function registerAgentStreamRoutes(app: Elysia, server: SixbServer): Elysia<"", {
|
|
69
72
|
decorator: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAA;AAOlC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgC9C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5B,CAAA;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GACpD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAC/C,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAMxD;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCxE"}
|
package/dist/routes/ws/logs.d.ts
CHANGED
|
@@ -19,46 +19,46 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
id: string;
|
|
22
|
-
kind: "workflow" | "agent" | "action" | "
|
|
22
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
23
23
|
}, {
|
|
24
24
|
id: string;
|
|
25
|
-
kind: "workflow" | "agent" | "action" | "
|
|
25
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
26
26
|
}>>;
|
|
27
27
|
afterCursor: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
type: "subscribe";
|
|
30
30
|
run?: {
|
|
31
31
|
id: string;
|
|
32
|
-
kind: "workflow" | "agent" | "action" | "
|
|
32
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
33
33
|
} | undefined;
|
|
34
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
34
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
35
35
|
afterCursor?: string | undefined;
|
|
36
36
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
type: "subscribe";
|
|
39
39
|
run?: {
|
|
40
40
|
id: string;
|
|
41
|
-
kind: "workflow" | "agent" | "action" | "
|
|
41
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
42
42
|
} | undefined;
|
|
43
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
43
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
44
44
|
afterCursor?: string | undefined;
|
|
45
45
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
type: "subscribe";
|
|
48
48
|
run?: {
|
|
49
49
|
id: string;
|
|
50
|
-
kind: "workflow" | "agent" | "action" | "
|
|
50
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
51
51
|
} | undefined;
|
|
52
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
52
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
53
53
|
afterCursor?: string | undefined;
|
|
54
54
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
type: "subscribe";
|
|
57
57
|
run?: {
|
|
58
58
|
id: string;
|
|
59
|
-
kind: "workflow" | "agent" | "action" | "
|
|
59
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
60
60
|
} | undefined;
|
|
61
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
61
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
62
62
|
afterCursor?: string | undefined;
|
|
63
63
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
64
64
|
}>, z.ZodObject<{
|
|
@@ -95,13 +95,13 @@ export declare const ActionRunInProgressResponseSchema: z.ZodObject<{
|
|
|
95
95
|
export declare const ActionRequestFailedResponseSchema: z.ZodObject<{
|
|
96
96
|
error: z.ZodString;
|
|
97
97
|
} & {
|
|
98
|
-
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
98
|
+
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
error: string;
|
|
101
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
101
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
102
102
|
}, {
|
|
103
103
|
error: string;
|
|
104
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
104
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
105
105
|
}>;
|
|
106
106
|
/** The server is stopping and refused the request before starting anything. */
|
|
107
107
|
export declare const RuntimeStoppingResponseSchema: z.ZodObject<{
|
|
@@ -623,7 +623,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
623
623
|
runVisible: z.ZodBoolean;
|
|
624
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
625
|
at: string;
|
|
626
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
626
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
627
627
|
kind: "workflow";
|
|
628
628
|
runId: string;
|
|
629
629
|
workflowId: string;
|
|
@@ -631,7 +631,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
631
631
|
runVisible: boolean;
|
|
632
632
|
}, {
|
|
633
633
|
at: string;
|
|
634
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
634
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
635
635
|
kind: "workflow";
|
|
636
636
|
runId: string;
|
|
637
637
|
workflowId: string;
|
|
@@ -752,7 +752,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
752
752
|
} | undefined;
|
|
753
753
|
} | {
|
|
754
754
|
at: string;
|
|
755
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
755
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
756
756
|
kind: "workflow";
|
|
757
757
|
runId: string;
|
|
758
758
|
workflowId: string;
|
|
@@ -846,7 +846,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
846
846
|
} | undefined;
|
|
847
847
|
} | {
|
|
848
848
|
at: string;
|
|
849
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
849
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
850
850
|
kind: "workflow";
|
|
851
851
|
runId: string;
|
|
852
852
|
workflowId: string;
|