@sixb/server 0.1.17 → 0.1.19
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/actions/serialize.d.ts +7 -0
- package/dist/actions/serialize.d.ts.map +1 -0
- package/dist/auth/experience.d.ts +5 -1
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/files/content.d.ts +0 -1
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +812 -769
- package/dist/index.js.map +32 -31
- package/dist/routes/action-runs.d.ts +11 -13
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +44 -13
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +67 -47
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +3 -2
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +21 -21
- package/dist/routes/connector-connections.d.ts +8 -8
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +9 -6
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +15 -12
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +1 -0
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +21 -4
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/project.d.ts +2 -0
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +49 -49
- package/dist/routes/syncs.d.ts +10 -10
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +51 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +5 -0
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +100 -84
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +242 -143
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +10 -10
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/auth.d.ts +7 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +8 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +58 -43
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +39 -0
- package/dist/schemas/event-payloads.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +5 -5
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +10 -0
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +32 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/project.d.ts +8 -0
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +290 -290
- package/dist/schemas/syncs.d.ts +34 -34
- package/dist/schemas/webhook-runs.d.ts +8 -8
- package/dist/schemas/workflows.d.ts +177 -160
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +20 -6
- package/dist/utils/request-body.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/actions/serialize.ts +55 -0
- package/src/auth/experience.ts +20 -2
- package/src/files/content.ts +43 -88
- package/src/routes/action-runs.ts +1 -54
- package/src/routes/actions.ts +26 -8
- package/src/routes/agent-api-gateway.ts +18 -42
- package/src/routes/agents.ts +29 -9
- package/src/routes/auth.ts +84 -19
- package/src/routes/datasets.ts +12 -43
- package/src/routes/files.ts +18 -64
- package/src/routes/models.ts +3 -0
- package/src/routes/objects.ts +12 -2
- package/src/routes/project.ts +2 -1
- package/src/routes/workflows.ts +5 -0
- package/src/routes/ws/events.ts +7 -15
- package/src/routes/ws/subscription-hub.ts +20 -5
- package/src/schemas/actions.ts +21 -18
- package/src/schemas/agents.ts +28 -3
- package/src/schemas/auth.ts +5 -0
- package/src/schemas/common.ts +3 -0
- package/src/schemas/datasets.ts +23 -1
- package/src/schemas/event-payloads.ts +3 -1
- package/src/schemas/files.ts +7 -1
- package/src/schemas/models.ts +2 -0
- package/src/schemas/objects.ts +13 -0
- package/src/schemas/project.ts +4 -0
- package/src/server.ts +23 -4
- package/src/utils/http.ts +2 -0
- package/src/utils/request-body.ts +55 -6
|
@@ -42,7 +42,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
42
42
|
schema: {
|
|
43
43
|
columns: {
|
|
44
44
|
name: string;
|
|
45
|
-
type: "string" | "boolean" | "
|
|
45
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
46
46
|
nullable?: boolean | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
};
|
|
@@ -58,7 +58,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
58
58
|
schema: {
|
|
59
59
|
columns: {
|
|
60
60
|
name: string;
|
|
61
|
-
type: "string" | "boolean" | "
|
|
61
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
62
62
|
nullable?: boolean | undefined;
|
|
63
63
|
}[];
|
|
64
64
|
};
|
|
@@ -78,11 +78,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
78
78
|
}[];
|
|
79
79
|
};
|
|
80
80
|
latestRun: {
|
|
81
|
-
status: "
|
|
81
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
82
82
|
projectId: string;
|
|
83
83
|
id: string;
|
|
84
|
-
queuedAt: string;
|
|
85
84
|
pipelineId: string;
|
|
85
|
+
queuedAt: string;
|
|
86
86
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
87
87
|
startedAt?: string | undefined;
|
|
88
88
|
finishedAt?: string | undefined;
|
|
@@ -135,7 +135,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
135
135
|
schema: {
|
|
136
136
|
columns: {
|
|
137
137
|
name: string;
|
|
138
|
-
type: "string" | "boolean" | "
|
|
138
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
139
139
|
nullable?: boolean | undefined;
|
|
140
140
|
}[];
|
|
141
141
|
};
|
|
@@ -151,7 +151,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
151
151
|
schema: {
|
|
152
152
|
columns: {
|
|
153
153
|
name: string;
|
|
154
|
-
type: "string" | "boolean" | "
|
|
154
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
155
155
|
nullable?: boolean | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
};
|
|
@@ -171,11 +171,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
171
171
|
}[];
|
|
172
172
|
};
|
|
173
173
|
latestRun: {
|
|
174
|
-
status: "
|
|
174
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
175
175
|
projectId: string;
|
|
176
176
|
id: string;
|
|
177
|
-
queuedAt: string;
|
|
178
177
|
pipelineId: string;
|
|
178
|
+
queuedAt: string;
|
|
179
179
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
180
180
|
startedAt?: string | undefined;
|
|
181
181
|
finishedAt?: string | undefined;
|
|
@@ -209,7 +209,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
209
209
|
body: unknown;
|
|
210
210
|
params: {};
|
|
211
211
|
query: {
|
|
212
|
-
status?: "
|
|
212
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
|
|
213
213
|
startedAfter?: string | undefined;
|
|
214
214
|
startedBefore?: string | undefined;
|
|
215
215
|
limit?: string | undefined;
|
|
@@ -221,11 +221,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
221
221
|
response: {
|
|
222
222
|
200: {
|
|
223
223
|
runs: {
|
|
224
|
-
status: "
|
|
224
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
225
225
|
projectId: string;
|
|
226
226
|
id: string;
|
|
227
|
-
queuedAt: string;
|
|
228
227
|
pipelineId: string;
|
|
228
|
+
queuedAt: string;
|
|
229
229
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
230
230
|
startedAt?: string | undefined;
|
|
231
231
|
finishedAt?: string | undefined;
|
|
@@ -270,11 +270,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
270
270
|
response: {
|
|
271
271
|
200: {
|
|
272
272
|
run: {
|
|
273
|
-
status: "
|
|
273
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
274
274
|
projectId: string;
|
|
275
275
|
id: string;
|
|
276
|
-
queuedAt: string;
|
|
277
276
|
pipelineId: string;
|
|
277
|
+
queuedAt: string;
|
|
278
278
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
279
279
|
startedAt?: string | undefined;
|
|
280
280
|
finishedAt?: string | undefined;
|
|
@@ -284,7 +284,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
284
284
|
} | undefined;
|
|
285
285
|
};
|
|
286
286
|
steps: {
|
|
287
|
-
status: "
|
|
287
|
+
status: "succeeded" | "failed" | "running" | "cancelled";
|
|
288
288
|
projectId: string;
|
|
289
289
|
id: string;
|
|
290
290
|
mode: "append" | "snapshot";
|
|
@@ -294,8 +294,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
294
294
|
datasetId: string;
|
|
295
295
|
versionId: string;
|
|
296
296
|
}[];
|
|
297
|
-
stepId: string;
|
|
298
297
|
pipelineId: string;
|
|
298
|
+
stepId: string;
|
|
299
299
|
pipelineRunId: string;
|
|
300
300
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
301
301
|
finishedAt?: string | undefined;
|
|
@@ -363,9 +363,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
363
363
|
};
|
|
364
364
|
202: {
|
|
365
365
|
runId: string;
|
|
366
|
-
queuedAt: string;
|
|
367
366
|
jobId: string;
|
|
368
367
|
pipelineId: string;
|
|
368
|
+
queuedAt: string;
|
|
369
369
|
};
|
|
370
370
|
422: {
|
|
371
371
|
type: "validation";
|
package/dist/routes/project.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/routes/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/routes/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWpE"}
|
|
@@ -37,12 +37,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
37
37
|
objectTypeId: string;
|
|
38
38
|
datasetId: string;
|
|
39
39
|
latestRun: {
|
|
40
|
-
status: "
|
|
40
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
41
41
|
projectId: string;
|
|
42
42
|
id: string;
|
|
43
|
-
queuedAt: string;
|
|
44
43
|
executionId: string;
|
|
45
44
|
attempt: number;
|
|
45
|
+
queuedAt: string;
|
|
46
46
|
target: {
|
|
47
47
|
objectTypeId: string;
|
|
48
48
|
};
|
|
@@ -68,12 +68,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
68
68
|
startedAt?: string | undefined;
|
|
69
69
|
finishedAt?: string | undefined;
|
|
70
70
|
} | {
|
|
71
|
-
status: "
|
|
71
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
72
72
|
projectId: string;
|
|
73
73
|
id: string;
|
|
74
|
-
queuedAt: string;
|
|
75
74
|
executionId: string;
|
|
76
75
|
attempt: number;
|
|
76
|
+
queuedAt: string;
|
|
77
77
|
target: {
|
|
78
78
|
targetObjectTypeId: string;
|
|
79
79
|
sourceObjectTypeId: string;
|
|
@@ -100,12 +100,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
100
100
|
startedAt?: string | undefined;
|
|
101
101
|
finishedAt?: string | undefined;
|
|
102
102
|
} | {
|
|
103
|
-
status: "
|
|
103
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
104
104
|
projectId: string;
|
|
105
105
|
id: string;
|
|
106
|
-
queuedAt: string;
|
|
107
106
|
executionId: string;
|
|
108
107
|
attempt: number;
|
|
108
|
+
queuedAt: string;
|
|
109
109
|
target: {
|
|
110
110
|
objectTypeId: string;
|
|
111
111
|
};
|
|
@@ -146,12 +146,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
146
146
|
linkId: string;
|
|
147
147
|
sourceObjectTypeId: string;
|
|
148
148
|
latestRun: {
|
|
149
|
-
status: "
|
|
149
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
150
150
|
projectId: string;
|
|
151
151
|
id: string;
|
|
152
|
-
queuedAt: string;
|
|
153
152
|
executionId: string;
|
|
154
153
|
attempt: number;
|
|
154
|
+
queuedAt: string;
|
|
155
155
|
target: {
|
|
156
156
|
objectTypeId: string;
|
|
157
157
|
};
|
|
@@ -177,12 +177,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
177
177
|
startedAt?: string | undefined;
|
|
178
178
|
finishedAt?: string | undefined;
|
|
179
179
|
} | {
|
|
180
|
-
status: "
|
|
180
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
181
181
|
projectId: string;
|
|
182
182
|
id: string;
|
|
183
|
-
queuedAt: string;
|
|
184
183
|
executionId: string;
|
|
185
184
|
attempt: number;
|
|
185
|
+
queuedAt: string;
|
|
186
186
|
target: {
|
|
187
187
|
targetObjectTypeId: string;
|
|
188
188
|
sourceObjectTypeId: string;
|
|
@@ -209,12 +209,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
209
209
|
startedAt?: string | undefined;
|
|
210
210
|
finishedAt?: string | undefined;
|
|
211
211
|
} | {
|
|
212
|
-
status: "
|
|
212
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
213
213
|
projectId: string;
|
|
214
214
|
id: string;
|
|
215
|
-
queuedAt: string;
|
|
216
215
|
executionId: string;
|
|
217
216
|
attempt: number;
|
|
217
|
+
queuedAt: string;
|
|
218
218
|
target: {
|
|
219
219
|
objectTypeId: string;
|
|
220
220
|
};
|
|
@@ -253,12 +253,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
253
253
|
objectTypeId: string;
|
|
254
254
|
datasetId: string;
|
|
255
255
|
latestRun: {
|
|
256
|
-
status: "
|
|
256
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
257
257
|
projectId: string;
|
|
258
258
|
id: string;
|
|
259
|
-
queuedAt: string;
|
|
260
259
|
executionId: string;
|
|
261
260
|
attempt: number;
|
|
261
|
+
queuedAt: string;
|
|
262
262
|
target: {
|
|
263
263
|
objectTypeId: string;
|
|
264
264
|
};
|
|
@@ -284,12 +284,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
284
284
|
startedAt?: string | undefined;
|
|
285
285
|
finishedAt?: string | undefined;
|
|
286
286
|
} | {
|
|
287
|
-
status: "
|
|
287
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
288
288
|
projectId: string;
|
|
289
289
|
id: string;
|
|
290
|
-
queuedAt: string;
|
|
291
290
|
executionId: string;
|
|
292
291
|
attempt: number;
|
|
292
|
+
queuedAt: string;
|
|
293
293
|
target: {
|
|
294
294
|
targetObjectTypeId: string;
|
|
295
295
|
sourceObjectTypeId: string;
|
|
@@ -316,12 +316,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
316
316
|
startedAt?: string | undefined;
|
|
317
317
|
finishedAt?: string | undefined;
|
|
318
318
|
} | {
|
|
319
|
-
status: "
|
|
319
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
320
320
|
projectId: string;
|
|
321
321
|
id: string;
|
|
322
|
-
queuedAt: string;
|
|
323
322
|
executionId: string;
|
|
324
323
|
attempt: number;
|
|
324
|
+
queuedAt: string;
|
|
325
325
|
target: {
|
|
326
326
|
objectTypeId: string;
|
|
327
327
|
};
|
|
@@ -389,12 +389,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
389
389
|
objectTypeId: string;
|
|
390
390
|
datasetId: string;
|
|
391
391
|
latestRun: {
|
|
392
|
-
status: "
|
|
392
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
393
393
|
projectId: string;
|
|
394
394
|
id: string;
|
|
395
|
-
queuedAt: string;
|
|
396
395
|
executionId: string;
|
|
397
396
|
attempt: number;
|
|
397
|
+
queuedAt: string;
|
|
398
398
|
target: {
|
|
399
399
|
objectTypeId: string;
|
|
400
400
|
};
|
|
@@ -420,12 +420,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
420
420
|
startedAt?: string | undefined;
|
|
421
421
|
finishedAt?: string | undefined;
|
|
422
422
|
} | {
|
|
423
|
-
status: "
|
|
423
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
424
424
|
projectId: string;
|
|
425
425
|
id: string;
|
|
426
|
-
queuedAt: string;
|
|
427
426
|
executionId: string;
|
|
428
427
|
attempt: number;
|
|
428
|
+
queuedAt: string;
|
|
429
429
|
target: {
|
|
430
430
|
targetObjectTypeId: string;
|
|
431
431
|
sourceObjectTypeId: string;
|
|
@@ -452,12 +452,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
452
452
|
startedAt?: string | undefined;
|
|
453
453
|
finishedAt?: string | undefined;
|
|
454
454
|
} | {
|
|
455
|
-
status: "
|
|
455
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
456
456
|
projectId: string;
|
|
457
457
|
id: string;
|
|
458
|
-
queuedAt: string;
|
|
459
458
|
executionId: string;
|
|
460
459
|
attempt: number;
|
|
460
|
+
queuedAt: string;
|
|
461
461
|
target: {
|
|
462
462
|
objectTypeId: string;
|
|
463
463
|
};
|
|
@@ -497,12 +497,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
497
497
|
linkId: string;
|
|
498
498
|
sourceObjectTypeId: string;
|
|
499
499
|
latestRun: {
|
|
500
|
-
status: "
|
|
500
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
501
501
|
projectId: string;
|
|
502
502
|
id: string;
|
|
503
|
-
queuedAt: string;
|
|
504
503
|
executionId: string;
|
|
505
504
|
attempt: number;
|
|
505
|
+
queuedAt: string;
|
|
506
506
|
target: {
|
|
507
507
|
objectTypeId: string;
|
|
508
508
|
};
|
|
@@ -528,12 +528,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
528
528
|
startedAt?: string | undefined;
|
|
529
529
|
finishedAt?: string | undefined;
|
|
530
530
|
} | {
|
|
531
|
-
status: "
|
|
531
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
532
532
|
projectId: string;
|
|
533
533
|
id: string;
|
|
534
|
-
queuedAt: string;
|
|
535
534
|
executionId: string;
|
|
536
535
|
attempt: number;
|
|
536
|
+
queuedAt: string;
|
|
537
537
|
target: {
|
|
538
538
|
targetObjectTypeId: string;
|
|
539
539
|
sourceObjectTypeId: string;
|
|
@@ -560,12 +560,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
560
560
|
startedAt?: string | undefined;
|
|
561
561
|
finishedAt?: string | undefined;
|
|
562
562
|
} | {
|
|
563
|
-
status: "
|
|
563
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
564
564
|
projectId: string;
|
|
565
565
|
id: string;
|
|
566
|
-
queuedAt: string;
|
|
567
566
|
executionId: string;
|
|
568
567
|
attempt: number;
|
|
568
|
+
queuedAt: string;
|
|
569
569
|
target: {
|
|
570
570
|
objectTypeId: string;
|
|
571
571
|
};
|
|
@@ -603,12 +603,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
603
603
|
objectTypeId: string;
|
|
604
604
|
datasetId: string;
|
|
605
605
|
latestRun: {
|
|
606
|
-
status: "
|
|
606
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
607
607
|
projectId: string;
|
|
608
608
|
id: string;
|
|
609
|
-
queuedAt: string;
|
|
610
609
|
executionId: string;
|
|
611
610
|
attempt: number;
|
|
611
|
+
queuedAt: string;
|
|
612
612
|
target: {
|
|
613
613
|
objectTypeId: string;
|
|
614
614
|
};
|
|
@@ -634,12 +634,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
634
634
|
startedAt?: string | undefined;
|
|
635
635
|
finishedAt?: string | undefined;
|
|
636
636
|
} | {
|
|
637
|
-
status: "
|
|
637
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
638
638
|
projectId: string;
|
|
639
639
|
id: string;
|
|
640
|
-
queuedAt: string;
|
|
641
640
|
executionId: string;
|
|
642
641
|
attempt: number;
|
|
642
|
+
queuedAt: string;
|
|
643
643
|
target: {
|
|
644
644
|
targetObjectTypeId: string;
|
|
645
645
|
sourceObjectTypeId: string;
|
|
@@ -666,12 +666,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
666
666
|
startedAt?: string | undefined;
|
|
667
667
|
finishedAt?: string | undefined;
|
|
668
668
|
} | {
|
|
669
|
-
status: "
|
|
669
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
670
670
|
projectId: string;
|
|
671
671
|
id: string;
|
|
672
|
-
queuedAt: string;
|
|
673
672
|
executionId: string;
|
|
674
673
|
attempt: number;
|
|
674
|
+
queuedAt: string;
|
|
675
675
|
target: {
|
|
676
676
|
objectTypeId: string;
|
|
677
677
|
};
|
|
@@ -725,7 +725,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
725
725
|
body: unknown;
|
|
726
726
|
params: {};
|
|
727
727
|
query: {
|
|
728
|
-
status?: "
|
|
728
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded" | undefined;
|
|
729
729
|
startedAfter?: string | undefined;
|
|
730
730
|
startedBefore?: string | undefined;
|
|
731
731
|
limit?: string | undefined;
|
|
@@ -740,12 +740,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
740
740
|
response: {
|
|
741
741
|
200: {
|
|
742
742
|
runs: ({
|
|
743
|
-
status: "
|
|
743
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
744
744
|
projectId: string;
|
|
745
745
|
id: string;
|
|
746
|
-
queuedAt: string;
|
|
747
746
|
executionId: string;
|
|
748
747
|
attempt: number;
|
|
748
|
+
queuedAt: string;
|
|
749
749
|
target: {
|
|
750
750
|
objectTypeId: string;
|
|
751
751
|
};
|
|
@@ -771,12 +771,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
771
771
|
startedAt?: string | undefined;
|
|
772
772
|
finishedAt?: string | undefined;
|
|
773
773
|
} | {
|
|
774
|
-
status: "
|
|
774
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
775
775
|
projectId: string;
|
|
776
776
|
id: string;
|
|
777
|
-
queuedAt: string;
|
|
778
777
|
executionId: string;
|
|
779
778
|
attempt: number;
|
|
779
|
+
queuedAt: string;
|
|
780
780
|
target: {
|
|
781
781
|
targetObjectTypeId: string;
|
|
782
782
|
sourceObjectTypeId: string;
|
|
@@ -803,12 +803,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
803
803
|
startedAt?: string | undefined;
|
|
804
804
|
finishedAt?: string | undefined;
|
|
805
805
|
} | {
|
|
806
|
-
status: "
|
|
806
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
807
807
|
projectId: string;
|
|
808
808
|
id: string;
|
|
809
|
-
queuedAt: string;
|
|
810
809
|
executionId: string;
|
|
811
810
|
attempt: number;
|
|
811
|
+
queuedAt: string;
|
|
812
812
|
target: {
|
|
813
813
|
objectTypeId: string;
|
|
814
814
|
};
|
|
@@ -869,12 +869,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
869
869
|
headers: unknown;
|
|
870
870
|
response: {
|
|
871
871
|
200: {
|
|
872
|
-
status: "
|
|
872
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
873
873
|
projectId: string;
|
|
874
874
|
id: string;
|
|
875
|
-
queuedAt: string;
|
|
876
875
|
executionId: string;
|
|
877
876
|
attempt: number;
|
|
877
|
+
queuedAt: string;
|
|
878
878
|
target: {
|
|
879
879
|
objectTypeId: string;
|
|
880
880
|
};
|
|
@@ -900,12 +900,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
900
900
|
startedAt?: string | undefined;
|
|
901
901
|
finishedAt?: string | undefined;
|
|
902
902
|
} | {
|
|
903
|
-
status: "
|
|
903
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
904
904
|
projectId: string;
|
|
905
905
|
id: string;
|
|
906
|
-
queuedAt: string;
|
|
907
906
|
executionId: string;
|
|
908
907
|
attempt: number;
|
|
908
|
+
queuedAt: string;
|
|
909
909
|
target: {
|
|
910
910
|
targetObjectTypeId: string;
|
|
911
911
|
sourceObjectTypeId: string;
|
|
@@ -932,12 +932,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
932
932
|
startedAt?: string | undefined;
|
|
933
933
|
finishedAt?: string | undefined;
|
|
934
934
|
} | {
|
|
935
|
-
status: "
|
|
935
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
|
|
936
936
|
projectId: string;
|
|
937
937
|
id: string;
|
|
938
|
-
queuedAt: string;
|
|
939
938
|
executionId: string;
|
|
940
939
|
attempt: number;
|
|
940
|
+
queuedAt: string;
|
|
941
941
|
target: {
|
|
942
942
|
objectTypeId: string;
|
|
943
943
|
};
|
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
34
34
|
schema: {
|
|
35
35
|
columns: {
|
|
36
36
|
name: string;
|
|
37
|
-
type: "string" | "boolean" | "
|
|
37
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
38
38
|
nullable?: boolean | undefined;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
@@ -49,13 +49,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
49
49
|
scheduleId: string;
|
|
50
50
|
}[];
|
|
51
51
|
latestRun: {
|
|
52
|
-
status: "
|
|
52
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
53
53
|
projectId: string;
|
|
54
54
|
id: string;
|
|
55
55
|
mode: "append" | "merge" | "snapshot";
|
|
56
|
-
queuedAt: string;
|
|
57
56
|
datasetId: string;
|
|
58
57
|
syncId: string;
|
|
58
|
+
queuedAt: string;
|
|
59
59
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
60
60
|
startedAt?: string | undefined;
|
|
61
61
|
finishedAt?: string | undefined;
|
|
@@ -107,7 +107,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
107
107
|
schema: {
|
|
108
108
|
columns: {
|
|
109
109
|
name: string;
|
|
110
|
-
type: "string" | "boolean" | "
|
|
110
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
111
111
|
nullable?: boolean | undefined;
|
|
112
112
|
}[];
|
|
113
113
|
};
|
|
@@ -122,13 +122,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
122
122
|
scheduleId: string;
|
|
123
123
|
}[];
|
|
124
124
|
latestRun: {
|
|
125
|
-
status: "
|
|
125
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
126
126
|
projectId: string;
|
|
127
127
|
id: string;
|
|
128
128
|
mode: "append" | "merge" | "snapshot";
|
|
129
|
-
queuedAt: string;
|
|
130
129
|
datasetId: string;
|
|
131
130
|
syncId: string;
|
|
131
|
+
queuedAt: string;
|
|
132
132
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
133
133
|
startedAt?: string | undefined;
|
|
134
134
|
finishedAt?: string | undefined;
|
|
@@ -169,7 +169,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
169
169
|
body: unknown;
|
|
170
170
|
params: {};
|
|
171
171
|
query: {
|
|
172
|
-
status?: "
|
|
172
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
|
|
173
173
|
startedAfter?: string | undefined;
|
|
174
174
|
startedBefore?: string | undefined;
|
|
175
175
|
limit?: string | undefined;
|
|
@@ -182,13 +182,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
182
182
|
response: {
|
|
183
183
|
200: {
|
|
184
184
|
runs: {
|
|
185
|
-
status: "
|
|
185
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
186
186
|
projectId: string;
|
|
187
187
|
id: string;
|
|
188
188
|
mode: "append" | "merge" | "snapshot";
|
|
189
|
-
queuedAt: string;
|
|
190
189
|
datasetId: string;
|
|
191
190
|
syncId: string;
|
|
191
|
+
queuedAt: string;
|
|
192
192
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
193
193
|
startedAt?: string | undefined;
|
|
194
194
|
finishedAt?: string | undefined;
|
|
@@ -259,9 +259,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
259
259
|
};
|
|
260
260
|
202: {
|
|
261
261
|
runId: string;
|
|
262
|
-
queuedAt: string;
|
|
263
262
|
jobId: string;
|
|
264
263
|
syncId: string;
|
|
264
|
+
queuedAt: string;
|
|
265
265
|
};
|
|
266
266
|
422: {
|
|
267
267
|
type: "validation";
|
|
@@ -22,7 +22,7 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
status?: "
|
|
25
|
+
status?: "succeeded" | "failed" | "running" | undefined;
|
|
26
26
|
startedAfter?: string | undefined;
|
|
27
27
|
startedBefore?: string | undefined;
|
|
28
28
|
limit?: string | undefined;
|
|
@@ -36,7 +36,7 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
36
36
|
response: {
|
|
37
37
|
200: {
|
|
38
38
|
runs: {
|
|
39
|
-
status: "
|
|
39
|
+
status: "succeeded" | "failed" | "running";
|
|
40
40
|
projectId: string;
|
|
41
41
|
id: string;
|
|
42
42
|
startedAt: string;
|