@sixb/server 0.1.1 → 0.1.3
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 +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3903 -2760
- package/dist/index.js.map +58 -50
- package/dist/openapi/tags.d.ts +15 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +12 -11
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -159
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +149 -92
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +16 -12
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +9 -9
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +19 -18
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +11 -11
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +37 -37
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -38
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +145 -85
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +23 -28
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +9 -9
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +177 -66
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +89 -194
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +791 -471
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +102 -102
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +12 -12
- package/dist/schemas/events.d.ts +40 -40
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +89 -184
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +1030 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +1189 -185
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +11 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/experience.ts +190 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +20 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +13 -1
- package/src/registerRoutes.ts +36 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +90 -200
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +274 -122
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +44 -42
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +242 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +23 -23
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +23 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +23 -8
- package/src/server.ts +75 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SixbFailure } from "@sixb/core/storage";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const PipelineParamsSchema: z.ZodObject<{
|
|
3
4
|
pipelineId: z.ZodString;
|
|
@@ -13,38 +14,39 @@ export declare const PipelineRunParamsSchema: z.ZodObject<{
|
|
|
13
14
|
}, {
|
|
14
15
|
runId: string;
|
|
15
16
|
}>;
|
|
16
|
-
export declare const PipelineRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
17
|
+
export declare const PipelineRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
17
18
|
export declare const PipelineRunsQuerySchema: z.ZodObject<{
|
|
18
19
|
pipelineId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>>;
|
|
20
|
+
status: z.ZodOptional<z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>>;
|
|
20
21
|
startedAfter: z.ZodOptional<z.ZodString>;
|
|
21
22
|
startedBefore: z.ZodOptional<z.ZodString>;
|
|
22
23
|
limit: z.ZodOptional<z.ZodString>;
|
|
23
24
|
offset: z.ZodOptional<z.ZodString>;
|
|
24
25
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
25
26
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
27
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
28
|
+
startedAfter?: string | undefined;
|
|
29
|
+
startedBefore?: string | undefined;
|
|
27
30
|
limit?: string | undefined;
|
|
28
31
|
offset?: string | undefined;
|
|
29
32
|
order?: "asc" | "desc" | undefined;
|
|
30
|
-
startedAfter?: string | undefined;
|
|
31
|
-
startedBefore?: string | undefined;
|
|
32
33
|
pipelineId?: string | undefined;
|
|
33
34
|
}, {
|
|
34
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
35
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
36
|
+
startedAfter?: string | undefined;
|
|
37
|
+
startedBefore?: string | undefined;
|
|
35
38
|
limit?: string | undefined;
|
|
36
39
|
offset?: string | undefined;
|
|
37
40
|
order?: "asc" | "desc" | undefined;
|
|
38
|
-
startedAfter?: string | undefined;
|
|
39
|
-
startedBefore?: string | undefined;
|
|
40
41
|
pipelineId?: string | undefined;
|
|
41
42
|
}>;
|
|
42
43
|
export declare const PipelineRunSchema: z.ZodObject<{
|
|
43
44
|
id: z.ZodString;
|
|
44
45
|
projectId: z.ZodString;
|
|
45
46
|
pipelineId: z.ZodString;
|
|
46
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
47
|
-
|
|
47
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
48
|
+
queuedAt: z.ZodString;
|
|
49
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
48
50
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
49
51
|
output: z.ZodOptional<z.ZodObject<{
|
|
50
52
|
datasetId: z.ZodString;
|
|
@@ -56,41 +58,28 @@ export declare const PipelineRunSchema: z.ZodObject<{
|
|
|
56
58
|
datasetId: string;
|
|
57
59
|
versionId: string;
|
|
58
60
|
}>>;
|
|
59
|
-
error: z.ZodOptional<z.
|
|
60
|
-
name: z.ZodOptional<z.ZodString>;
|
|
61
|
-
message: z.ZodString;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
message: string;
|
|
64
|
-
name?: string | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
message: string;
|
|
67
|
-
name?: string | undefined;
|
|
68
|
-
}>>;
|
|
61
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
69
62
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
63
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
71
64
|
projectId: string;
|
|
72
65
|
id: string;
|
|
73
|
-
|
|
66
|
+
queuedAt: string;
|
|
74
67
|
pipelineId: string;
|
|
75
|
-
error?:
|
|
76
|
-
|
|
77
|
-
name?: string | undefined;
|
|
78
|
-
} | undefined;
|
|
68
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
69
|
+
startedAt?: string | undefined;
|
|
79
70
|
finishedAt?: string | undefined;
|
|
80
71
|
output?: {
|
|
81
72
|
datasetId: string;
|
|
82
73
|
versionId: string;
|
|
83
74
|
} | undefined;
|
|
84
75
|
}, {
|
|
85
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
76
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
86
77
|
projectId: string;
|
|
87
78
|
id: string;
|
|
88
|
-
|
|
79
|
+
queuedAt: string;
|
|
89
80
|
pipelineId: string;
|
|
90
|
-
error?:
|
|
91
|
-
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
} | undefined;
|
|
81
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
82
|
+
startedAt?: string | undefined;
|
|
94
83
|
finishedAt?: string | undefined;
|
|
95
84
|
output?: {
|
|
96
85
|
datasetId: string;
|
|
@@ -129,16 +118,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
|
|
|
129
118
|
versionId: string;
|
|
130
119
|
}>>;
|
|
131
120
|
rowsWritten: z.ZodOptional<z.ZodNumber>;
|
|
132
|
-
error: z.ZodOptional<z.
|
|
133
|
-
name: z.ZodOptional<z.ZodString>;
|
|
134
|
-
message: z.ZodString;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
message: string;
|
|
137
|
-
name?: string | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
message: string;
|
|
140
|
-
name?: string | undefined;
|
|
141
|
-
}>>;
|
|
121
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
142
122
|
}, "strip", z.ZodTypeAny, {
|
|
143
123
|
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
144
124
|
projectId: string;
|
|
@@ -153,10 +133,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
|
|
|
153
133
|
pipelineId: string;
|
|
154
134
|
stepId: string;
|
|
155
135
|
pipelineRunId: string;
|
|
156
|
-
error?:
|
|
157
|
-
message: string;
|
|
158
|
-
name?: string | undefined;
|
|
159
|
-
} | undefined;
|
|
136
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
160
137
|
finishedAt?: string | undefined;
|
|
161
138
|
output?: {
|
|
162
139
|
datasetId: string;
|
|
@@ -177,10 +154,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
|
|
|
177
154
|
pipelineId: string;
|
|
178
155
|
stepId: string;
|
|
179
156
|
pipelineRunId: string;
|
|
180
|
-
error?:
|
|
181
|
-
message: string;
|
|
182
|
-
name?: string | undefined;
|
|
183
|
-
} | undefined;
|
|
157
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
184
158
|
finishedAt?: string | undefined;
|
|
185
159
|
output?: {
|
|
186
160
|
datasetId: string;
|
|
@@ -866,8 +840,9 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
866
840
|
id: z.ZodString;
|
|
867
841
|
projectId: z.ZodString;
|
|
868
842
|
pipelineId: z.ZodString;
|
|
869
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
870
|
-
|
|
843
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
844
|
+
queuedAt: z.ZodString;
|
|
845
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
871
846
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
872
847
|
output: z.ZodOptional<z.ZodObject<{
|
|
873
848
|
datasetId: z.ZodString;
|
|
@@ -879,41 +854,28 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
879
854
|
datasetId: string;
|
|
880
855
|
versionId: string;
|
|
881
856
|
}>>;
|
|
882
|
-
error: z.ZodOptional<z.
|
|
883
|
-
name: z.ZodOptional<z.ZodString>;
|
|
884
|
-
message: z.ZodString;
|
|
885
|
-
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
message: string;
|
|
887
|
-
name?: string | undefined;
|
|
888
|
-
}, {
|
|
889
|
-
message: string;
|
|
890
|
-
name?: string | undefined;
|
|
891
|
-
}>>;
|
|
857
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
892
858
|
}, "strip", z.ZodTypeAny, {
|
|
893
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
859
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
894
860
|
projectId: string;
|
|
895
861
|
id: string;
|
|
896
|
-
|
|
862
|
+
queuedAt: string;
|
|
897
863
|
pipelineId: string;
|
|
898
|
-
error?:
|
|
899
|
-
|
|
900
|
-
name?: string | undefined;
|
|
901
|
-
} | undefined;
|
|
864
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
865
|
+
startedAt?: string | undefined;
|
|
902
866
|
finishedAt?: string | undefined;
|
|
903
867
|
output?: {
|
|
904
868
|
datasetId: string;
|
|
905
869
|
versionId: string;
|
|
906
870
|
} | undefined;
|
|
907
871
|
}, {
|
|
908
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
872
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
909
873
|
projectId: string;
|
|
910
874
|
id: string;
|
|
911
|
-
|
|
875
|
+
queuedAt: string;
|
|
912
876
|
pipelineId: string;
|
|
913
|
-
error?:
|
|
914
|
-
|
|
915
|
-
name?: string | undefined;
|
|
916
|
-
} | undefined;
|
|
877
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
878
|
+
startedAt?: string | undefined;
|
|
917
879
|
finishedAt?: string | undefined;
|
|
918
880
|
output?: {
|
|
919
881
|
datasetId: string;
|
|
@@ -972,15 +934,13 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
972
934
|
}[];
|
|
973
935
|
};
|
|
974
936
|
latestRun: {
|
|
975
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
937
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
976
938
|
projectId: string;
|
|
977
939
|
id: string;
|
|
978
|
-
|
|
940
|
+
queuedAt: string;
|
|
979
941
|
pipelineId: string;
|
|
980
|
-
error?:
|
|
981
|
-
|
|
982
|
-
name?: string | undefined;
|
|
983
|
-
} | undefined;
|
|
942
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
943
|
+
startedAt?: string | undefined;
|
|
984
944
|
finishedAt?: string | undefined;
|
|
985
945
|
output?: {
|
|
986
946
|
datasetId: string;
|
|
@@ -1039,15 +999,13 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
1039
999
|
}[];
|
|
1040
1000
|
};
|
|
1041
1001
|
latestRun: {
|
|
1042
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1002
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1043
1003
|
projectId: string;
|
|
1044
1004
|
id: string;
|
|
1045
|
-
|
|
1005
|
+
queuedAt: string;
|
|
1046
1006
|
pipelineId: string;
|
|
1047
|
-
error?:
|
|
1048
|
-
|
|
1049
|
-
name?: string | undefined;
|
|
1050
|
-
} | undefined;
|
|
1007
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1008
|
+
startedAt?: string | undefined;
|
|
1051
1009
|
finishedAt?: string | undefined;
|
|
1052
1010
|
output?: {
|
|
1053
1011
|
datasetId: string;
|
|
@@ -1060,8 +1018,9 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
|
|
|
1060
1018
|
id: z.ZodString;
|
|
1061
1019
|
projectId: z.ZodString;
|
|
1062
1020
|
pipelineId: z.ZodString;
|
|
1063
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
1064
|
-
|
|
1021
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
1022
|
+
queuedAt: z.ZodString;
|
|
1023
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
1065
1024
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1066
1025
|
output: z.ZodOptional<z.ZodObject<{
|
|
1067
1026
|
datasetId: z.ZodString;
|
|
@@ -1073,41 +1032,28 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
|
|
|
1073
1032
|
datasetId: string;
|
|
1074
1033
|
versionId: string;
|
|
1075
1034
|
}>>;
|
|
1076
|
-
error: z.ZodOptional<z.
|
|
1077
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1078
|
-
message: z.ZodString;
|
|
1079
|
-
}, "strip", z.ZodTypeAny, {
|
|
1080
|
-
message: string;
|
|
1081
|
-
name?: string | undefined;
|
|
1082
|
-
}, {
|
|
1083
|
-
message: string;
|
|
1084
|
-
name?: string | undefined;
|
|
1085
|
-
}>>;
|
|
1035
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
1086
1036
|
}, "strip", z.ZodTypeAny, {
|
|
1087
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1037
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1088
1038
|
projectId: string;
|
|
1089
1039
|
id: string;
|
|
1090
|
-
|
|
1040
|
+
queuedAt: string;
|
|
1091
1041
|
pipelineId: string;
|
|
1092
|
-
error?:
|
|
1093
|
-
|
|
1094
|
-
name?: string | undefined;
|
|
1095
|
-
} | undefined;
|
|
1042
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1043
|
+
startedAt?: string | undefined;
|
|
1096
1044
|
finishedAt?: string | undefined;
|
|
1097
1045
|
output?: {
|
|
1098
1046
|
datasetId: string;
|
|
1099
1047
|
versionId: string;
|
|
1100
1048
|
} | undefined;
|
|
1101
1049
|
}, {
|
|
1102
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1050
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1103
1051
|
projectId: string;
|
|
1104
1052
|
id: string;
|
|
1105
|
-
|
|
1053
|
+
queuedAt: string;
|
|
1106
1054
|
pipelineId: string;
|
|
1107
|
-
error?:
|
|
1108
|
-
|
|
1109
|
-
name?: string | undefined;
|
|
1110
|
-
} | undefined;
|
|
1055
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1056
|
+
startedAt?: string | undefined;
|
|
1111
1057
|
finishedAt?: string | undefined;
|
|
1112
1058
|
output?: {
|
|
1113
1059
|
datasetId: string;
|
|
@@ -1118,15 +1064,13 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
|
|
|
1118
1064
|
total: z.ZodNumber;
|
|
1119
1065
|
}, "strip", z.ZodTypeAny, {
|
|
1120
1066
|
runs: {
|
|
1121
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1067
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1122
1068
|
projectId: string;
|
|
1123
1069
|
id: string;
|
|
1124
|
-
|
|
1070
|
+
queuedAt: string;
|
|
1125
1071
|
pipelineId: string;
|
|
1126
|
-
error?:
|
|
1127
|
-
|
|
1128
|
-
name?: string | undefined;
|
|
1129
|
-
} | undefined;
|
|
1072
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1073
|
+
startedAt?: string | undefined;
|
|
1130
1074
|
finishedAt?: string | undefined;
|
|
1131
1075
|
output?: {
|
|
1132
1076
|
datasetId: string;
|
|
@@ -1137,15 +1081,13 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
|
|
|
1137
1081
|
total: number;
|
|
1138
1082
|
}, {
|
|
1139
1083
|
runs: {
|
|
1140
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1084
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1141
1085
|
projectId: string;
|
|
1142
1086
|
id: string;
|
|
1143
|
-
|
|
1087
|
+
queuedAt: string;
|
|
1144
1088
|
pipelineId: string;
|
|
1145
|
-
error?:
|
|
1146
|
-
|
|
1147
|
-
name?: string | undefined;
|
|
1148
|
-
} | undefined;
|
|
1089
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1090
|
+
startedAt?: string | undefined;
|
|
1149
1091
|
finishedAt?: string | undefined;
|
|
1150
1092
|
output?: {
|
|
1151
1093
|
datasetId: string;
|
|
@@ -1160,8 +1102,9 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1160
1102
|
id: z.ZodString;
|
|
1161
1103
|
projectId: z.ZodString;
|
|
1162
1104
|
pipelineId: z.ZodString;
|
|
1163
|
-
status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
|
|
1164
|
-
|
|
1105
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
1106
|
+
queuedAt: z.ZodString;
|
|
1107
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
1165
1108
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1166
1109
|
output: z.ZodOptional<z.ZodObject<{
|
|
1167
1110
|
datasetId: z.ZodString;
|
|
@@ -1173,41 +1116,28 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1173
1116
|
datasetId: string;
|
|
1174
1117
|
versionId: string;
|
|
1175
1118
|
}>>;
|
|
1176
|
-
error: z.ZodOptional<z.
|
|
1177
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
message: z.ZodString;
|
|
1179
|
-
}, "strip", z.ZodTypeAny, {
|
|
1180
|
-
message: string;
|
|
1181
|
-
name?: string | undefined;
|
|
1182
|
-
}, {
|
|
1183
|
-
message: string;
|
|
1184
|
-
name?: string | undefined;
|
|
1185
|
-
}>>;
|
|
1119
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
1186
1120
|
}, "strip", z.ZodTypeAny, {
|
|
1187
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1121
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1188
1122
|
projectId: string;
|
|
1189
1123
|
id: string;
|
|
1190
|
-
|
|
1124
|
+
queuedAt: string;
|
|
1191
1125
|
pipelineId: string;
|
|
1192
|
-
error?:
|
|
1193
|
-
|
|
1194
|
-
name?: string | undefined;
|
|
1195
|
-
} | undefined;
|
|
1126
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1127
|
+
startedAt?: string | undefined;
|
|
1196
1128
|
finishedAt?: string | undefined;
|
|
1197
1129
|
output?: {
|
|
1198
1130
|
datasetId: string;
|
|
1199
1131
|
versionId: string;
|
|
1200
1132
|
} | undefined;
|
|
1201
1133
|
}, {
|
|
1202
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1134
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1203
1135
|
projectId: string;
|
|
1204
1136
|
id: string;
|
|
1205
|
-
|
|
1137
|
+
queuedAt: string;
|
|
1206
1138
|
pipelineId: string;
|
|
1207
|
-
error?:
|
|
1208
|
-
|
|
1209
|
-
name?: string | undefined;
|
|
1210
|
-
} | undefined;
|
|
1139
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1140
|
+
startedAt?: string | undefined;
|
|
1211
1141
|
finishedAt?: string | undefined;
|
|
1212
1142
|
output?: {
|
|
1213
1143
|
datasetId: string;
|
|
@@ -1246,16 +1176,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1246
1176
|
versionId: string;
|
|
1247
1177
|
}>>;
|
|
1248
1178
|
rowsWritten: z.ZodOptional<z.ZodNumber>;
|
|
1249
|
-
error: z.ZodOptional<z.
|
|
1250
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
message: z.ZodString;
|
|
1252
|
-
}, "strip", z.ZodTypeAny, {
|
|
1253
|
-
message: string;
|
|
1254
|
-
name?: string | undefined;
|
|
1255
|
-
}, {
|
|
1256
|
-
message: string;
|
|
1257
|
-
name?: string | undefined;
|
|
1258
|
-
}>>;
|
|
1179
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
|
|
1259
1180
|
}, "strip", z.ZodTypeAny, {
|
|
1260
1181
|
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1261
1182
|
projectId: string;
|
|
@@ -1270,10 +1191,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1270
1191
|
pipelineId: string;
|
|
1271
1192
|
stepId: string;
|
|
1272
1193
|
pipelineRunId: string;
|
|
1273
|
-
error?:
|
|
1274
|
-
message: string;
|
|
1275
|
-
name?: string | undefined;
|
|
1276
|
-
} | undefined;
|
|
1194
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1277
1195
|
finishedAt?: string | undefined;
|
|
1278
1196
|
output?: {
|
|
1279
1197
|
datasetId: string;
|
|
@@ -1294,10 +1212,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1294
1212
|
pipelineId: string;
|
|
1295
1213
|
stepId: string;
|
|
1296
1214
|
pipelineRunId: string;
|
|
1297
|
-
error?:
|
|
1298
|
-
message: string;
|
|
1299
|
-
name?: string | undefined;
|
|
1300
|
-
} | undefined;
|
|
1215
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1301
1216
|
finishedAt?: string | undefined;
|
|
1302
1217
|
output?: {
|
|
1303
1218
|
datasetId: string;
|
|
@@ -1307,15 +1222,13 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1307
1222
|
}>, "many">;
|
|
1308
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1309
1224
|
run: {
|
|
1310
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1225
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1311
1226
|
projectId: string;
|
|
1312
1227
|
id: string;
|
|
1313
|
-
|
|
1228
|
+
queuedAt: string;
|
|
1314
1229
|
pipelineId: string;
|
|
1315
|
-
error?:
|
|
1316
|
-
|
|
1317
|
-
name?: string | undefined;
|
|
1318
|
-
} | undefined;
|
|
1230
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1231
|
+
startedAt?: string | undefined;
|
|
1319
1232
|
finishedAt?: string | undefined;
|
|
1320
1233
|
output?: {
|
|
1321
1234
|
datasetId: string;
|
|
@@ -1336,10 +1249,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1336
1249
|
pipelineId: string;
|
|
1337
1250
|
stepId: string;
|
|
1338
1251
|
pipelineRunId: string;
|
|
1339
|
-
error?:
|
|
1340
|
-
message: string;
|
|
1341
|
-
name?: string | undefined;
|
|
1342
|
-
} | undefined;
|
|
1252
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1343
1253
|
finishedAt?: string | undefined;
|
|
1344
1254
|
output?: {
|
|
1345
1255
|
datasetId: string;
|
|
@@ -1349,15 +1259,13 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1349
1259
|
}[];
|
|
1350
1260
|
}, {
|
|
1351
1261
|
run: {
|
|
1352
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1262
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1353
1263
|
projectId: string;
|
|
1354
1264
|
id: string;
|
|
1355
|
-
|
|
1265
|
+
queuedAt: string;
|
|
1356
1266
|
pipelineId: string;
|
|
1357
|
-
error?:
|
|
1358
|
-
|
|
1359
|
-
name?: string | undefined;
|
|
1360
|
-
} | undefined;
|
|
1267
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1268
|
+
startedAt?: string | undefined;
|
|
1361
1269
|
finishedAt?: string | undefined;
|
|
1362
1270
|
output?: {
|
|
1363
1271
|
datasetId: string;
|
|
@@ -1378,10 +1286,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
|
|
|
1378
1286
|
pipelineId: string;
|
|
1379
1287
|
stepId: string;
|
|
1380
1288
|
pipelineRunId: string;
|
|
1381
|
-
error?:
|
|
1382
|
-
message: string;
|
|
1383
|
-
name?: string | undefined;
|
|
1384
|
-
} | undefined;
|
|
1289
|
+
error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
1385
1290
|
finishedAt?: string | undefined;
|
|
1386
1291
|
output?: {
|
|
1387
1292
|
datasetId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/schemas/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/schemas/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAA;AAEF,eAAO,MAAM,uBAAuB,sEAMlC,CAAA;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAA;AAsBF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAehC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIxC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAA"}
|