@sixb/server 0.1.2 → 0.1.4
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/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +164 -77
- 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 +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +586 -142
- 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/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
|
@@ -37,12 +37,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
37
37
|
objectTypeId: string;
|
|
38
38
|
datasetId: string;
|
|
39
39
|
latestRun: {
|
|
40
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
40
41
|
projectId: string;
|
|
41
42
|
id: string;
|
|
42
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
43
43
|
queuedAt: string;
|
|
44
|
-
attempt: number;
|
|
45
44
|
executionId: string;
|
|
45
|
+
attempt: number;
|
|
46
|
+
target: {
|
|
47
|
+
objectTypeId: string;
|
|
48
|
+
};
|
|
46
49
|
progress: {
|
|
47
50
|
sourceRowsRead: number;
|
|
48
51
|
sourceRowsSkipped: number;
|
|
@@ -60,19 +63,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
60
63
|
projectionKind: "object";
|
|
61
64
|
protocol: "replacement";
|
|
62
65
|
};
|
|
63
|
-
target: {
|
|
64
|
-
objectTypeId: string;
|
|
65
|
-
};
|
|
66
66
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
67
67
|
startedAt?: string | undefined;
|
|
68
68
|
finishedAt?: string | undefined;
|
|
69
69
|
} | {
|
|
70
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
70
71
|
projectId: string;
|
|
71
72
|
id: string;
|
|
72
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
73
73
|
queuedAt: string;
|
|
74
|
-
attempt: number;
|
|
75
74
|
executionId: string;
|
|
75
|
+
attempt: number;
|
|
76
|
+
target: {
|
|
77
|
+
targetObjectTypeId: string;
|
|
78
|
+
sourceObjectTypeId: string;
|
|
79
|
+
};
|
|
76
80
|
progress: {
|
|
77
81
|
sourceRowsRead: number;
|
|
78
82
|
sourceRowsSkipped: number;
|
|
@@ -90,20 +94,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
90
94
|
projectionKind: "link";
|
|
91
95
|
protocol: "replacement";
|
|
92
96
|
};
|
|
93
|
-
target: {
|
|
94
|
-
targetObjectTypeId: string;
|
|
95
|
-
sourceObjectTypeId: string;
|
|
96
|
-
};
|
|
97
97
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
98
98
|
startedAt?: string | undefined;
|
|
99
99
|
finishedAt?: string | undefined;
|
|
100
100
|
} | {
|
|
101
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
101
102
|
projectId: string;
|
|
102
103
|
id: string;
|
|
103
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
104
104
|
queuedAt: string;
|
|
105
|
-
attempt: number;
|
|
106
105
|
executionId: string;
|
|
106
|
+
attempt: number;
|
|
107
|
+
target: {
|
|
108
|
+
objectTypeId: string;
|
|
109
|
+
};
|
|
107
110
|
progress: {
|
|
108
111
|
sourceRowsRead: number;
|
|
109
112
|
sourceRowsSkipped: number;
|
|
@@ -121,14 +124,17 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
121
124
|
projectionKind: "telemetry";
|
|
122
125
|
protocol: "telemetry";
|
|
123
126
|
};
|
|
124
|
-
target: {
|
|
125
|
-
objectTypeId: string;
|
|
126
|
-
};
|
|
127
127
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
128
128
|
startedAt?: string | undefined;
|
|
129
129
|
finishedAt?: string | undefined;
|
|
130
130
|
} | null;
|
|
131
131
|
_tag: "ObjectProjectionDefinition";
|
|
132
|
+
conflictResolution: {
|
|
133
|
+
strategy: "editsWin";
|
|
134
|
+
} | {
|
|
135
|
+
strategy: "mostRecent";
|
|
136
|
+
sourceTimestamp: string;
|
|
137
|
+
};
|
|
132
138
|
}[];
|
|
133
139
|
linkProjections: {
|
|
134
140
|
id: string;
|
|
@@ -137,12 +143,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
137
143
|
linkId: string;
|
|
138
144
|
sourceObjectTypeId: string;
|
|
139
145
|
latestRun: {
|
|
146
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
140
147
|
projectId: string;
|
|
141
148
|
id: string;
|
|
142
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
143
149
|
queuedAt: string;
|
|
144
|
-
attempt: number;
|
|
145
150
|
executionId: string;
|
|
151
|
+
attempt: number;
|
|
152
|
+
target: {
|
|
153
|
+
objectTypeId: string;
|
|
154
|
+
};
|
|
146
155
|
progress: {
|
|
147
156
|
sourceRowsRead: number;
|
|
148
157
|
sourceRowsSkipped: number;
|
|
@@ -160,19 +169,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
160
169
|
projectionKind: "object";
|
|
161
170
|
protocol: "replacement";
|
|
162
171
|
};
|
|
163
|
-
target: {
|
|
164
|
-
objectTypeId: string;
|
|
165
|
-
};
|
|
166
172
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
167
173
|
startedAt?: string | undefined;
|
|
168
174
|
finishedAt?: string | undefined;
|
|
169
175
|
} | {
|
|
176
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
170
177
|
projectId: string;
|
|
171
178
|
id: string;
|
|
172
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
173
179
|
queuedAt: string;
|
|
174
|
-
attempt: number;
|
|
175
180
|
executionId: string;
|
|
181
|
+
attempt: number;
|
|
182
|
+
target: {
|
|
183
|
+
targetObjectTypeId: string;
|
|
184
|
+
sourceObjectTypeId: string;
|
|
185
|
+
};
|
|
176
186
|
progress: {
|
|
177
187
|
sourceRowsRead: number;
|
|
178
188
|
sourceRowsSkipped: number;
|
|
@@ -190,20 +200,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
190
200
|
projectionKind: "link";
|
|
191
201
|
protocol: "replacement";
|
|
192
202
|
};
|
|
193
|
-
target: {
|
|
194
|
-
targetObjectTypeId: string;
|
|
195
|
-
sourceObjectTypeId: string;
|
|
196
|
-
};
|
|
197
203
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
198
204
|
startedAt?: string | undefined;
|
|
199
205
|
finishedAt?: string | undefined;
|
|
200
206
|
} | {
|
|
207
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
201
208
|
projectId: string;
|
|
202
209
|
id: string;
|
|
203
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
204
210
|
queuedAt: string;
|
|
205
|
-
attempt: number;
|
|
206
211
|
executionId: string;
|
|
212
|
+
attempt: number;
|
|
213
|
+
target: {
|
|
214
|
+
objectTypeId: string;
|
|
215
|
+
};
|
|
207
216
|
progress: {
|
|
208
217
|
sourceRowsRead: number;
|
|
209
218
|
sourceRowsSkipped: number;
|
|
@@ -221,9 +230,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
221
230
|
projectionKind: "telemetry";
|
|
222
231
|
protocol: "telemetry";
|
|
223
232
|
};
|
|
224
|
-
target: {
|
|
225
|
-
objectTypeId: string;
|
|
226
|
-
};
|
|
227
233
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
228
234
|
startedAt?: string | undefined;
|
|
229
235
|
finishedAt?: string | undefined;
|
|
@@ -234,16 +240,22 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
234
240
|
}[];
|
|
235
241
|
telemetryProjections: {
|
|
236
242
|
id: string;
|
|
243
|
+
properties: Record<string, {
|
|
244
|
+
valueField: string;
|
|
245
|
+
unitField?: string | undefined;
|
|
246
|
+
}>;
|
|
237
247
|
objectTypeId: string;
|
|
238
248
|
datasetId: string;
|
|
239
|
-
propertyId: string;
|
|
240
249
|
latestRun: {
|
|
250
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
241
251
|
projectId: string;
|
|
242
252
|
id: string;
|
|
243
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
244
253
|
queuedAt: string;
|
|
245
|
-
attempt: number;
|
|
246
254
|
executionId: string;
|
|
255
|
+
attempt: number;
|
|
256
|
+
target: {
|
|
257
|
+
objectTypeId: string;
|
|
258
|
+
};
|
|
247
259
|
progress: {
|
|
248
260
|
sourceRowsRead: number;
|
|
249
261
|
sourceRowsSkipped: number;
|
|
@@ -261,19 +273,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
261
273
|
projectionKind: "object";
|
|
262
274
|
protocol: "replacement";
|
|
263
275
|
};
|
|
264
|
-
target: {
|
|
265
|
-
objectTypeId: string;
|
|
266
|
-
};
|
|
267
276
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
268
277
|
startedAt?: string | undefined;
|
|
269
278
|
finishedAt?: string | undefined;
|
|
270
279
|
} | {
|
|
280
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
271
281
|
projectId: string;
|
|
272
282
|
id: string;
|
|
273
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
274
283
|
queuedAt: string;
|
|
275
|
-
attempt: number;
|
|
276
284
|
executionId: string;
|
|
285
|
+
attempt: number;
|
|
286
|
+
target: {
|
|
287
|
+
targetObjectTypeId: string;
|
|
288
|
+
sourceObjectTypeId: string;
|
|
289
|
+
};
|
|
277
290
|
progress: {
|
|
278
291
|
sourceRowsRead: number;
|
|
279
292
|
sourceRowsSkipped: number;
|
|
@@ -291,20 +304,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
291
304
|
projectionKind: "link";
|
|
292
305
|
protocol: "replacement";
|
|
293
306
|
};
|
|
294
|
-
target: {
|
|
295
|
-
targetObjectTypeId: string;
|
|
296
|
-
sourceObjectTypeId: string;
|
|
297
|
-
};
|
|
298
307
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
299
308
|
startedAt?: string | undefined;
|
|
300
309
|
finishedAt?: string | undefined;
|
|
301
310
|
} | {
|
|
311
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
302
312
|
projectId: string;
|
|
303
313
|
id: string;
|
|
304
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
305
314
|
queuedAt: string;
|
|
306
|
-
attempt: number;
|
|
307
315
|
executionId: string;
|
|
316
|
+
attempt: number;
|
|
317
|
+
target: {
|
|
318
|
+
objectTypeId: string;
|
|
319
|
+
};
|
|
308
320
|
progress: {
|
|
309
321
|
sourceRowsRead: number;
|
|
310
322
|
sourceRowsSkipped: number;
|
|
@@ -322,9 +334,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
322
334
|
projectionKind: "telemetry";
|
|
323
335
|
protocol: "telemetry";
|
|
324
336
|
};
|
|
325
|
-
target: {
|
|
326
|
-
objectTypeId: string;
|
|
327
|
-
};
|
|
328
337
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
329
338
|
startedAt?: string | undefined;
|
|
330
339
|
finishedAt?: string | undefined;
|
|
@@ -332,8 +341,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
332
341
|
_tag: "TelemetryProjectionDefinition";
|
|
333
342
|
objectIdField: string;
|
|
334
343
|
atField: string;
|
|
335
|
-
valueField: string;
|
|
336
|
-
unitField?: string | undefined;
|
|
337
344
|
}[];
|
|
338
345
|
};
|
|
339
346
|
422: {
|
|
@@ -373,12 +380,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
373
380
|
objectTypeId: string;
|
|
374
381
|
datasetId: string;
|
|
375
382
|
latestRun: {
|
|
383
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
376
384
|
projectId: string;
|
|
377
385
|
id: string;
|
|
378
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
379
386
|
queuedAt: string;
|
|
380
|
-
attempt: number;
|
|
381
387
|
executionId: string;
|
|
388
|
+
attempt: number;
|
|
389
|
+
target: {
|
|
390
|
+
objectTypeId: string;
|
|
391
|
+
};
|
|
382
392
|
progress: {
|
|
383
393
|
sourceRowsRead: number;
|
|
384
394
|
sourceRowsSkipped: number;
|
|
@@ -396,19 +406,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
396
406
|
projectionKind: "object";
|
|
397
407
|
protocol: "replacement";
|
|
398
408
|
};
|
|
399
|
-
target: {
|
|
400
|
-
objectTypeId: string;
|
|
401
|
-
};
|
|
402
409
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
403
410
|
startedAt?: string | undefined;
|
|
404
411
|
finishedAt?: string | undefined;
|
|
405
412
|
} | {
|
|
413
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
406
414
|
projectId: string;
|
|
407
415
|
id: string;
|
|
408
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
409
416
|
queuedAt: string;
|
|
410
|
-
attempt: number;
|
|
411
417
|
executionId: string;
|
|
418
|
+
attempt: number;
|
|
419
|
+
target: {
|
|
420
|
+
targetObjectTypeId: string;
|
|
421
|
+
sourceObjectTypeId: string;
|
|
422
|
+
};
|
|
412
423
|
progress: {
|
|
413
424
|
sourceRowsRead: number;
|
|
414
425
|
sourceRowsSkipped: number;
|
|
@@ -426,20 +437,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
426
437
|
projectionKind: "link";
|
|
427
438
|
protocol: "replacement";
|
|
428
439
|
};
|
|
429
|
-
target: {
|
|
430
|
-
targetObjectTypeId: string;
|
|
431
|
-
sourceObjectTypeId: string;
|
|
432
|
-
};
|
|
433
440
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
434
441
|
startedAt?: string | undefined;
|
|
435
442
|
finishedAt?: string | undefined;
|
|
436
443
|
} | {
|
|
444
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
437
445
|
projectId: string;
|
|
438
446
|
id: string;
|
|
439
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
440
447
|
queuedAt: string;
|
|
441
|
-
attempt: number;
|
|
442
448
|
executionId: string;
|
|
449
|
+
attempt: number;
|
|
450
|
+
target: {
|
|
451
|
+
objectTypeId: string;
|
|
452
|
+
};
|
|
443
453
|
progress: {
|
|
444
454
|
sourceRowsRead: number;
|
|
445
455
|
sourceRowsSkipped: number;
|
|
@@ -457,14 +467,17 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
457
467
|
projectionKind: "telemetry";
|
|
458
468
|
protocol: "telemetry";
|
|
459
469
|
};
|
|
460
|
-
target: {
|
|
461
|
-
objectTypeId: string;
|
|
462
|
-
};
|
|
463
470
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
464
471
|
startedAt?: string | undefined;
|
|
465
472
|
finishedAt?: string | undefined;
|
|
466
473
|
} | null;
|
|
467
474
|
_tag: "ObjectProjectionDefinition";
|
|
475
|
+
conflictResolution: {
|
|
476
|
+
strategy: "editsWin";
|
|
477
|
+
} | {
|
|
478
|
+
strategy: "mostRecent";
|
|
479
|
+
sourceTimestamp: string;
|
|
480
|
+
};
|
|
468
481
|
} | {
|
|
469
482
|
id: string;
|
|
470
483
|
targetObjectTypeId: string;
|
|
@@ -472,12 +485,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
472
485
|
linkId: string;
|
|
473
486
|
sourceObjectTypeId: string;
|
|
474
487
|
latestRun: {
|
|
488
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
475
489
|
projectId: string;
|
|
476
490
|
id: string;
|
|
477
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
478
491
|
queuedAt: string;
|
|
479
|
-
attempt: number;
|
|
480
492
|
executionId: string;
|
|
493
|
+
attempt: number;
|
|
494
|
+
target: {
|
|
495
|
+
objectTypeId: string;
|
|
496
|
+
};
|
|
481
497
|
progress: {
|
|
482
498
|
sourceRowsRead: number;
|
|
483
499
|
sourceRowsSkipped: number;
|
|
@@ -495,19 +511,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
495
511
|
projectionKind: "object";
|
|
496
512
|
protocol: "replacement";
|
|
497
513
|
};
|
|
498
|
-
target: {
|
|
499
|
-
objectTypeId: string;
|
|
500
|
-
};
|
|
501
514
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
502
515
|
startedAt?: string | undefined;
|
|
503
516
|
finishedAt?: string | undefined;
|
|
504
517
|
} | {
|
|
518
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
505
519
|
projectId: string;
|
|
506
520
|
id: string;
|
|
507
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
508
521
|
queuedAt: string;
|
|
509
|
-
attempt: number;
|
|
510
522
|
executionId: string;
|
|
523
|
+
attempt: number;
|
|
524
|
+
target: {
|
|
525
|
+
targetObjectTypeId: string;
|
|
526
|
+
sourceObjectTypeId: string;
|
|
527
|
+
};
|
|
511
528
|
progress: {
|
|
512
529
|
sourceRowsRead: number;
|
|
513
530
|
sourceRowsSkipped: number;
|
|
@@ -525,20 +542,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
525
542
|
projectionKind: "link";
|
|
526
543
|
protocol: "replacement";
|
|
527
544
|
};
|
|
528
|
-
target: {
|
|
529
|
-
targetObjectTypeId: string;
|
|
530
|
-
sourceObjectTypeId: string;
|
|
531
|
-
};
|
|
532
545
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
533
546
|
startedAt?: string | undefined;
|
|
534
547
|
finishedAt?: string | undefined;
|
|
535
548
|
} | {
|
|
549
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
536
550
|
projectId: string;
|
|
537
551
|
id: string;
|
|
538
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
539
552
|
queuedAt: string;
|
|
540
|
-
attempt: number;
|
|
541
553
|
executionId: string;
|
|
554
|
+
attempt: number;
|
|
555
|
+
target: {
|
|
556
|
+
objectTypeId: string;
|
|
557
|
+
};
|
|
542
558
|
progress: {
|
|
543
559
|
sourceRowsRead: number;
|
|
544
560
|
sourceRowsSkipped: number;
|
|
@@ -556,9 +572,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
556
572
|
projectionKind: "telemetry";
|
|
557
573
|
protocol: "telemetry";
|
|
558
574
|
};
|
|
559
|
-
target: {
|
|
560
|
-
objectTypeId: string;
|
|
561
|
-
};
|
|
562
575
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
563
576
|
startedAt?: string | undefined;
|
|
564
577
|
finishedAt?: string | undefined;
|
|
@@ -568,16 +581,22 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
568
581
|
targetField: string;
|
|
569
582
|
} | {
|
|
570
583
|
id: string;
|
|
584
|
+
properties: Record<string, {
|
|
585
|
+
valueField: string;
|
|
586
|
+
unitField?: string | undefined;
|
|
587
|
+
}>;
|
|
571
588
|
objectTypeId: string;
|
|
572
589
|
datasetId: string;
|
|
573
|
-
propertyId: string;
|
|
574
590
|
latestRun: {
|
|
591
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
575
592
|
projectId: string;
|
|
576
593
|
id: string;
|
|
577
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
578
594
|
queuedAt: string;
|
|
579
|
-
attempt: number;
|
|
580
595
|
executionId: string;
|
|
596
|
+
attempt: number;
|
|
597
|
+
target: {
|
|
598
|
+
objectTypeId: string;
|
|
599
|
+
};
|
|
581
600
|
progress: {
|
|
582
601
|
sourceRowsRead: number;
|
|
583
602
|
sourceRowsSkipped: number;
|
|
@@ -595,19 +614,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
595
614
|
projectionKind: "object";
|
|
596
615
|
protocol: "replacement";
|
|
597
616
|
};
|
|
598
|
-
target: {
|
|
599
|
-
objectTypeId: string;
|
|
600
|
-
};
|
|
601
617
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
602
618
|
startedAt?: string | undefined;
|
|
603
619
|
finishedAt?: string | undefined;
|
|
604
620
|
} | {
|
|
621
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
605
622
|
projectId: string;
|
|
606
623
|
id: string;
|
|
607
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
608
624
|
queuedAt: string;
|
|
609
|
-
attempt: number;
|
|
610
625
|
executionId: string;
|
|
626
|
+
attempt: number;
|
|
627
|
+
target: {
|
|
628
|
+
targetObjectTypeId: string;
|
|
629
|
+
sourceObjectTypeId: string;
|
|
630
|
+
};
|
|
611
631
|
progress: {
|
|
612
632
|
sourceRowsRead: number;
|
|
613
633
|
sourceRowsSkipped: number;
|
|
@@ -625,20 +645,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
625
645
|
projectionKind: "link";
|
|
626
646
|
protocol: "replacement";
|
|
627
647
|
};
|
|
628
|
-
target: {
|
|
629
|
-
targetObjectTypeId: string;
|
|
630
|
-
sourceObjectTypeId: string;
|
|
631
|
-
};
|
|
632
648
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
633
649
|
startedAt?: string | undefined;
|
|
634
650
|
finishedAt?: string | undefined;
|
|
635
651
|
} | {
|
|
652
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
636
653
|
projectId: string;
|
|
637
654
|
id: string;
|
|
638
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
639
655
|
queuedAt: string;
|
|
640
|
-
attempt: number;
|
|
641
656
|
executionId: string;
|
|
657
|
+
attempt: number;
|
|
658
|
+
target: {
|
|
659
|
+
objectTypeId: string;
|
|
660
|
+
};
|
|
642
661
|
progress: {
|
|
643
662
|
sourceRowsRead: number;
|
|
644
663
|
sourceRowsSkipped: number;
|
|
@@ -656,9 +675,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
656
675
|
projectionKind: "telemetry";
|
|
657
676
|
protocol: "telemetry";
|
|
658
677
|
};
|
|
659
|
-
target: {
|
|
660
|
-
objectTypeId: string;
|
|
661
|
-
};
|
|
662
678
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
663
679
|
startedAt?: string | undefined;
|
|
664
680
|
finishedAt?: string | undefined;
|
|
@@ -666,8 +682,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
666
682
|
_tag: "TelemetryProjectionDefinition";
|
|
667
683
|
objectIdField: string;
|
|
668
684
|
atField: string;
|
|
669
|
-
valueField: string;
|
|
670
|
-
unitField?: string | undefined;
|
|
671
685
|
};
|
|
672
686
|
404: {
|
|
673
687
|
error: string;
|
|
@@ -708,12 +722,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
708
722
|
response: {
|
|
709
723
|
200: {
|
|
710
724
|
runs: ({
|
|
725
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
711
726
|
projectId: string;
|
|
712
727
|
id: string;
|
|
713
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
714
728
|
queuedAt: string;
|
|
715
|
-
attempt: number;
|
|
716
729
|
executionId: string;
|
|
730
|
+
attempt: number;
|
|
731
|
+
target: {
|
|
732
|
+
objectTypeId: string;
|
|
733
|
+
};
|
|
717
734
|
progress: {
|
|
718
735
|
sourceRowsRead: number;
|
|
719
736
|
sourceRowsSkipped: number;
|
|
@@ -731,19 +748,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
731
748
|
projectionKind: "object";
|
|
732
749
|
protocol: "replacement";
|
|
733
750
|
};
|
|
734
|
-
target: {
|
|
735
|
-
objectTypeId: string;
|
|
736
|
-
};
|
|
737
751
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
738
752
|
startedAt?: string | undefined;
|
|
739
753
|
finishedAt?: string | undefined;
|
|
740
754
|
} | {
|
|
755
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
741
756
|
projectId: string;
|
|
742
757
|
id: string;
|
|
743
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
744
758
|
queuedAt: string;
|
|
745
|
-
attempt: number;
|
|
746
759
|
executionId: string;
|
|
760
|
+
attempt: number;
|
|
761
|
+
target: {
|
|
762
|
+
targetObjectTypeId: string;
|
|
763
|
+
sourceObjectTypeId: string;
|
|
764
|
+
};
|
|
747
765
|
progress: {
|
|
748
766
|
sourceRowsRead: number;
|
|
749
767
|
sourceRowsSkipped: number;
|
|
@@ -761,20 +779,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
761
779
|
projectionKind: "link";
|
|
762
780
|
protocol: "replacement";
|
|
763
781
|
};
|
|
764
|
-
target: {
|
|
765
|
-
targetObjectTypeId: string;
|
|
766
|
-
sourceObjectTypeId: string;
|
|
767
|
-
};
|
|
768
782
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
769
783
|
startedAt?: string | undefined;
|
|
770
784
|
finishedAt?: string | undefined;
|
|
771
785
|
} | {
|
|
786
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
772
787
|
projectId: string;
|
|
773
788
|
id: string;
|
|
774
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
775
789
|
queuedAt: string;
|
|
776
|
-
attempt: number;
|
|
777
790
|
executionId: string;
|
|
791
|
+
attempt: number;
|
|
792
|
+
target: {
|
|
793
|
+
objectTypeId: string;
|
|
794
|
+
};
|
|
778
795
|
progress: {
|
|
779
796
|
sourceRowsRead: number;
|
|
780
797
|
sourceRowsSkipped: number;
|
|
@@ -792,9 +809,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
792
809
|
projectionKind: "telemetry";
|
|
793
810
|
protocol: "telemetry";
|
|
794
811
|
};
|
|
795
|
-
target: {
|
|
796
|
-
objectTypeId: string;
|
|
797
|
-
};
|
|
798
812
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
799
813
|
startedAt?: string | undefined;
|
|
800
814
|
finishedAt?: string | undefined;
|
|
@@ -834,12 +848,15 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
834
848
|
headers: unknown;
|
|
835
849
|
response: {
|
|
836
850
|
200: {
|
|
851
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
837
852
|
projectId: string;
|
|
838
853
|
id: string;
|
|
839
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
840
854
|
queuedAt: string;
|
|
841
|
-
attempt: number;
|
|
842
855
|
executionId: string;
|
|
856
|
+
attempt: number;
|
|
857
|
+
target: {
|
|
858
|
+
objectTypeId: string;
|
|
859
|
+
};
|
|
843
860
|
progress: {
|
|
844
861
|
sourceRowsRead: number;
|
|
845
862
|
sourceRowsSkipped: number;
|
|
@@ -857,19 +874,20 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
857
874
|
projectionKind: "object";
|
|
858
875
|
protocol: "replacement";
|
|
859
876
|
};
|
|
860
|
-
target: {
|
|
861
|
-
objectTypeId: string;
|
|
862
|
-
};
|
|
863
877
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
864
878
|
startedAt?: string | undefined;
|
|
865
879
|
finishedAt?: string | undefined;
|
|
866
880
|
} | {
|
|
881
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
867
882
|
projectId: string;
|
|
868
883
|
id: string;
|
|
869
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
870
884
|
queuedAt: string;
|
|
871
|
-
attempt: number;
|
|
872
885
|
executionId: string;
|
|
886
|
+
attempt: number;
|
|
887
|
+
target: {
|
|
888
|
+
targetObjectTypeId: string;
|
|
889
|
+
sourceObjectTypeId: string;
|
|
890
|
+
};
|
|
873
891
|
progress: {
|
|
874
892
|
sourceRowsRead: number;
|
|
875
893
|
sourceRowsSkipped: number;
|
|
@@ -887,20 +905,19 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
887
905
|
projectionKind: "link";
|
|
888
906
|
protocol: "replacement";
|
|
889
907
|
};
|
|
890
|
-
target: {
|
|
891
|
-
targetObjectTypeId: string;
|
|
892
|
-
sourceObjectTypeId: string;
|
|
893
|
-
};
|
|
894
908
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
895
909
|
startedAt?: string | undefined;
|
|
896
910
|
finishedAt?: string | undefined;
|
|
897
911
|
} | {
|
|
912
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
898
913
|
projectId: string;
|
|
899
914
|
id: string;
|
|
900
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
901
915
|
queuedAt: string;
|
|
902
|
-
attempt: number;
|
|
903
916
|
executionId: string;
|
|
917
|
+
attempt: number;
|
|
918
|
+
target: {
|
|
919
|
+
objectTypeId: string;
|
|
920
|
+
};
|
|
904
921
|
progress: {
|
|
905
922
|
sourceRowsRead: number;
|
|
906
923
|
sourceRowsSkipped: number;
|
|
@@ -918,17 +935,14 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
918
935
|
projectionKind: "telemetry";
|
|
919
936
|
protocol: "telemetry";
|
|
920
937
|
};
|
|
921
|
-
target: {
|
|
922
|
-
objectTypeId: string;
|
|
923
|
-
};
|
|
924
938
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
|
|
925
939
|
startedAt?: string | undefined;
|
|
926
940
|
finishedAt?: string | undefined;
|
|
927
941
|
};
|
|
928
|
-
|
|
942
|
+
404: {
|
|
929
943
|
error: string;
|
|
930
944
|
};
|
|
931
|
-
|
|
945
|
+
400: {
|
|
932
946
|
error: string;
|
|
933
947
|
};
|
|
934
948
|
501: {
|