@sixb/server 0.1.0 → 0.1.2

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.
Files changed (171) hide show
  1. package/README.md +3 -3
  2. package/dist/auth/application-access.d.ts +2 -2
  3. package/dist/auth/application-access.d.ts.map +1 -1
  4. package/dist/auth/connector-callback-cookie.d.ts +12 -0
  5. package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
  6. package/dist/auth/guard.d.ts +3 -3
  7. package/dist/auth/guard.d.ts.map +1 -1
  8. package/dist/auth/public-routes.d.ts.map +1 -1
  9. package/dist/auth/scope.d.ts +21 -27
  10. package/dist/auth/scope.d.ts.map +1 -1
  11. package/dist/auth/session-cookies.d.ts +2 -2
  12. package/dist/auth/session-cookies.d.ts.map +1 -1
  13. package/dist/connectors/http.d.ts +16 -0
  14. package/dist/connectors/http.d.ts.map +1 -0
  15. package/dist/files/content.d.ts +11 -0
  16. package/dist/files/content.d.ts.map +1 -1
  17. package/dist/index.js +4164 -3541
  18. package/dist/index.js.map +57 -52
  19. package/dist/openapi/tags.d.ts +11 -3
  20. package/dist/openapi/tags.d.ts.map +1 -1
  21. package/dist/registerRoutes.d.ts +6 -2
  22. package/dist/registerRoutes.d.ts.map +1 -1
  23. package/dist/routes/action-runs.d.ts +21 -31
  24. package/dist/routes/action-runs.d.ts.map +1 -1
  25. package/dist/routes/actions.d.ts +9 -8
  26. package/dist/routes/actions.d.ts.map +1 -1
  27. package/dist/routes/agent-api-gateway.d.ts +2 -2
  28. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  29. package/dist/routes/agents.d.ts +130 -131
  30. package/dist/routes/agents.d.ts.map +1 -1
  31. package/dist/routes/auth.d.ts +90 -90
  32. package/dist/routes/auth.d.ts.map +1 -1
  33. package/dist/routes/connector-connection-runs.d.ts +794 -0
  34. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  35. package/dist/routes/connector-connections.d.ts +219 -0
  36. package/dist/routes/connector-connections.d.ts.map +1 -0
  37. package/dist/routes/connectors.d.ts +10 -4
  38. package/dist/routes/connectors.d.ts.map +1 -1
  39. package/dist/routes/datasets.d.ts +15 -9
  40. package/dist/routes/datasets.d.ts.map +1 -1
  41. package/dist/routes/events.d.ts +8 -8
  42. package/dist/routes/events.d.ts.map +1 -1
  43. package/dist/routes/files.d.ts +11 -10
  44. package/dist/routes/files.d.ts.map +1 -1
  45. package/dist/routes/links.d.ts +2 -2
  46. package/dist/routes/links.d.ts.map +1 -1
  47. package/dist/routes/logs.d.ts +5 -5
  48. package/dist/routes/logs.d.ts.map +1 -1
  49. package/dist/routes/objects.d.ts +34 -34
  50. package/dist/routes/objects.d.ts.map +1 -1
  51. package/dist/routes/ontology.d.ts +62 -62
  52. package/dist/routes/ontology.d.ts.map +1 -1
  53. package/dist/routes/pipelines.d.ts +28 -34
  54. package/dist/routes/pipelines.d.ts.map +1 -1
  55. package/dist/routes/project.d.ts +2 -2
  56. package/dist/routes/project.d.ts.map +1 -1
  57. package/dist/routes/projections.d.ts +131 -83
  58. package/dist/routes/projections.d.ts.map +1 -1
  59. package/dist/routes/rules.d.ts +6 -6
  60. package/dist/routes/rules.d.ts.map +1 -1
  61. package/dist/routes/status.d.ts +2 -2
  62. package/dist/routes/status.d.ts.map +1 -1
  63. package/dist/routes/syncs.d.ts +27 -30
  64. package/dist/routes/syncs.d.ts.map +1 -1
  65. package/dist/routes/telemetry.d.ts +2 -2
  66. package/dist/routes/telemetry.d.ts.map +1 -1
  67. package/dist/routes/webhook-runs.d.ts +9 -9
  68. package/dist/routes/webhook-runs.d.ts.map +1 -1
  69. package/dist/routes/webhooks.d.ts +2 -2
  70. package/dist/routes/webhooks.d.ts.map +1 -1
  71. package/dist/routes/workflows.d.ts +132 -107
  72. package/dist/routes/workflows.d.ts.map +1 -1
  73. package/dist/routes/ws/agents.d.ts +11 -5
  74. package/dist/routes/ws/agents.d.ts.map +1 -1
  75. package/dist/routes/ws/events.d.ts +8 -8
  76. package/dist/routes/ws/events.d.ts.map +1 -1
  77. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  78. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  79. package/dist/routes/ws/logs.d.ts +10 -10
  80. package/dist/routes/ws/logs.d.ts.map +1 -1
  81. package/dist/schemas/actions.d.ts +97 -202
  82. package/dist/schemas/actions.d.ts.map +1 -1
  83. package/dist/schemas/agents.d.ts +443 -440
  84. package/dist/schemas/agents.d.ts.map +1 -1
  85. package/dist/schemas/ai-usage.d.ts +34 -0
  86. package/dist/schemas/ai-usage.d.ts.map +1 -0
  87. package/dist/schemas/auth.d.ts +168 -168
  88. package/dist/schemas/common.d.ts +37 -0
  89. package/dist/schemas/common.d.ts.map +1 -1
  90. package/dist/schemas/connectors.d.ts +713 -2
  91. package/dist/schemas/connectors.d.ts.map +1 -1
  92. package/dist/schemas/datasets.d.ts +29 -23
  93. package/dist/schemas/datasets.d.ts.map +1 -1
  94. package/dist/schemas/event-payloads.d.ts +6 -6
  95. package/dist/schemas/events.d.ts +34 -34
  96. package/dist/schemas/logs.d.ts +22 -22
  97. package/dist/schemas/objects.d.ts +10 -10
  98. package/dist/schemas/ontology.d.ts +174 -174
  99. package/dist/schemas/pipelines.d.ts +131 -190
  100. package/dist/schemas/pipelines.d.ts.map +1 -1
  101. package/dist/schemas/projections.d.ts +918 -563
  102. package/dist/schemas/projections.d.ts.map +1 -1
  103. package/dist/schemas/rules.d.ts +6 -6
  104. package/dist/schemas/status.d.ts +2 -2
  105. package/dist/schemas/syncs.d.ts +88 -124
  106. package/dist/schemas/syncs.d.ts.map +1 -1
  107. package/dist/schemas/webhook-runs.d.ts +41 -41
  108. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  109. package/dist/schemas/workflows.d.ts +792 -406
  110. package/dist/schemas/workflows.d.ts.map +1 -1
  111. package/dist/server.d.ts +6 -6
  112. package/dist/server.d.ts.map +1 -1
  113. package/dist/utils/http.d.ts +2 -0
  114. package/dist/utils/http.d.ts.map +1 -1
  115. package/dist/utils/ws.d.ts +4 -3
  116. package/dist/utils/ws.d.ts.map +1 -1
  117. package/package.json +8 -5
  118. package/src/auth/access-token-boundary.ts +4 -4
  119. package/src/auth/application-access.ts +8 -9
  120. package/src/auth/connector-callback-cookie.ts +95 -0
  121. package/src/auth/guard.ts +11 -11
  122. package/src/auth/public-routes.ts +13 -0
  123. package/src/auth/scope.ts +34 -30
  124. package/src/auth/session-cookies.ts +3 -3
  125. package/src/connectors/http.ts +110 -0
  126. package/src/files/content.ts +11 -0
  127. package/src/openapi/tags.ts +9 -1
  128. package/src/registerRoutes.ts +34 -23
  129. package/src/routes/action-runs.ts +49 -42
  130. package/src/routes/actions.ts +7 -13
  131. package/src/routes/agent-api-gateway.ts +87 -42
  132. package/src/routes/agents.ts +89 -200
  133. package/src/routes/auth.ts +87 -91
  134. package/src/routes/connector-connection-runs.ts +346 -0
  135. package/src/routes/connector-connections.ts +135 -0
  136. package/src/routes/connectors.ts +24 -12
  137. package/src/routes/datasets.ts +55 -54
  138. package/src/routes/events.ts +5 -5
  139. package/src/routes/files.ts +24 -31
  140. package/src/routes/links.ts +32 -35
  141. package/src/routes/logs.ts +6 -11
  142. package/src/routes/objects.ts +51 -114
  143. package/src/routes/ontology.ts +27 -38
  144. package/src/routes/pipelines.ts +28 -62
  145. package/src/routes/project.ts +3 -3
  146. package/src/routes/projections.ts +26 -38
  147. package/src/routes/rules.ts +11 -25
  148. package/src/routes/status.ts +5 -5
  149. package/src/routes/syncs.ts +19 -45
  150. package/src/routes/telemetry.ts +18 -29
  151. package/src/routes/webhook-runs.ts +5 -5
  152. package/src/routes/webhooks.ts +259 -341
  153. package/src/routes/workflows.ts +260 -259
  154. package/src/routes/ws/agents.ts +196 -66
  155. package/src/routes/ws/events.ts +11 -10
  156. package/src/routes/ws/log-subscription-hub.ts +6 -12
  157. package/src/routes/ws/logs.ts +13 -5
  158. package/src/schemas/actions.ts +58 -25
  159. package/src/schemas/agents.ts +19 -14
  160. package/src/schemas/ai-usage.ts +16 -0
  161. package/src/schemas/common.ts +24 -0
  162. package/src/schemas/connectors.ts +164 -0
  163. package/src/schemas/datasets.ts +3 -2
  164. package/src/schemas/pipelines.ts +24 -40
  165. package/src/schemas/projections.ts +17 -3
  166. package/src/schemas/syncs.ts +16 -10
  167. package/src/schemas/webhook-runs.ts +10 -5
  168. package/src/schemas/workflows.ts +42 -25
  169. package/src/server.ts +65 -26
  170. package/src/utils/http.ts +34 -6
  171. package/src/utils/ws.ts +10 -5
@@ -1,6 +1,6 @@
1
- import type { OntologySource, Sixb } from "@sixb/core";
1
+ import type { SixbHostView } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
- export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
3
+ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
@@ -26,22 +26,23 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
26
26
  response: {
27
27
  200: {
28
28
  objectProjections: {
29
+ id: string;
29
30
  links: Record<string, {
30
31
  targetObjectTypeId: string;
31
32
  linkId: string;
32
33
  sourcePropertyId?: string | undefined;
33
34
  sourceField?: string | undefined;
34
35
  }>;
35
- objectTypeId: string;
36
- id: string;
37
36
  properties: Record<string, string>;
37
+ objectTypeId: string;
38
38
  datasetId: string;
39
39
  latestRun: {
40
- status: "running" | "succeeded" | "failed" | "cancelled";
41
40
  projectId: string;
42
41
  id: string;
43
- startedAt: string;
42
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
43
+ queuedAt: string;
44
44
  attempt: number;
45
+ executionId: string;
45
46
  progress: {
46
47
  sourceRowsRead: number;
47
48
  sourceRowsSkipped: number;
@@ -62,14 +63,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
62
63
  target: {
63
64
  objectTypeId: string;
64
65
  };
66
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
67
+ startedAt?: string | undefined;
65
68
  finishedAt?: string | undefined;
66
- errorMessage?: string | undefined;
67
69
  } | {
68
- status: "running" | "succeeded" | "failed" | "cancelled";
69
70
  projectId: string;
70
71
  id: string;
71
- startedAt: string;
72
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
73
+ queuedAt: string;
72
74
  attempt: number;
75
+ executionId: string;
73
76
  progress: {
74
77
  sourceRowsRead: number;
75
78
  sourceRowsSkipped: number;
@@ -91,14 +94,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
91
94
  targetObjectTypeId: string;
92
95
  sourceObjectTypeId: string;
93
96
  };
97
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
98
+ startedAt?: string | undefined;
94
99
  finishedAt?: string | undefined;
95
- errorMessage?: string | undefined;
96
100
  } | {
97
- status: "running" | "succeeded" | "failed" | "cancelled";
98
101
  projectId: string;
99
102
  id: string;
100
- startedAt: string;
103
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
104
+ queuedAt: string;
101
105
  attempt: number;
106
+ executionId: string;
102
107
  progress: {
103
108
  sourceRowsRead: number;
104
109
  sourceRowsSkipped: number;
@@ -119,8 +124,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
119
124
  target: {
120
125
  objectTypeId: string;
121
126
  };
127
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
128
+ startedAt?: string | undefined;
122
129
  finishedAt?: string | undefined;
123
- errorMessage?: string | undefined;
124
130
  } | null;
125
131
  _tag: "ObjectProjectionDefinition";
126
132
  }[];
@@ -131,11 +137,12 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
131
137
  linkId: string;
132
138
  sourceObjectTypeId: string;
133
139
  latestRun: {
134
- status: "running" | "succeeded" | "failed" | "cancelled";
135
140
  projectId: string;
136
141
  id: string;
137
- startedAt: string;
142
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
143
+ queuedAt: string;
138
144
  attempt: number;
145
+ executionId: string;
139
146
  progress: {
140
147
  sourceRowsRead: number;
141
148
  sourceRowsSkipped: number;
@@ -156,14 +163,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
156
163
  target: {
157
164
  objectTypeId: string;
158
165
  };
166
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
167
+ startedAt?: string | undefined;
159
168
  finishedAt?: string | undefined;
160
- errorMessage?: string | undefined;
161
169
  } | {
162
- status: "running" | "succeeded" | "failed" | "cancelled";
163
170
  projectId: string;
164
171
  id: string;
165
- startedAt: string;
172
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
173
+ queuedAt: string;
166
174
  attempt: number;
175
+ executionId: string;
167
176
  progress: {
168
177
  sourceRowsRead: number;
169
178
  sourceRowsSkipped: number;
@@ -185,14 +194,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
185
194
  targetObjectTypeId: string;
186
195
  sourceObjectTypeId: string;
187
196
  };
197
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
198
+ startedAt?: string | undefined;
188
199
  finishedAt?: string | undefined;
189
- errorMessage?: string | undefined;
190
200
  } | {
191
- status: "running" | "succeeded" | "failed" | "cancelled";
192
201
  projectId: string;
193
202
  id: string;
194
- startedAt: string;
203
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
204
+ queuedAt: string;
195
205
  attempt: number;
206
+ executionId: string;
196
207
  progress: {
197
208
  sourceRowsRead: number;
198
209
  sourceRowsSkipped: number;
@@ -213,24 +224,26 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
213
224
  target: {
214
225
  objectTypeId: string;
215
226
  };
227
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
228
+ startedAt?: string | undefined;
216
229
  finishedAt?: string | undefined;
217
- errorMessage?: string | undefined;
218
230
  } | null;
219
231
  sourceField: string;
220
232
  _tag: "LinkProjectionDefinition";
221
233
  targetField: string;
222
234
  }[];
223
235
  telemetryProjections: {
224
- objectTypeId: string;
225
236
  id: string;
237
+ objectTypeId: string;
226
238
  datasetId: string;
227
239
  propertyId: string;
228
240
  latestRun: {
229
- status: "running" | "succeeded" | "failed" | "cancelled";
230
241
  projectId: string;
231
242
  id: string;
232
- startedAt: string;
243
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
244
+ queuedAt: string;
233
245
  attempt: number;
246
+ executionId: string;
234
247
  progress: {
235
248
  sourceRowsRead: number;
236
249
  sourceRowsSkipped: number;
@@ -251,14 +264,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
251
264
  target: {
252
265
  objectTypeId: string;
253
266
  };
267
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
268
+ startedAt?: string | undefined;
254
269
  finishedAt?: string | undefined;
255
- errorMessage?: string | undefined;
256
270
  } | {
257
- status: "running" | "succeeded" | "failed" | "cancelled";
258
271
  projectId: string;
259
272
  id: string;
260
- startedAt: string;
273
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
274
+ queuedAt: string;
261
275
  attempt: number;
276
+ executionId: string;
262
277
  progress: {
263
278
  sourceRowsRead: number;
264
279
  sourceRowsSkipped: number;
@@ -280,14 +295,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
280
295
  targetObjectTypeId: string;
281
296
  sourceObjectTypeId: string;
282
297
  };
298
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
299
+ startedAt?: string | undefined;
283
300
  finishedAt?: string | undefined;
284
- errorMessage?: string | undefined;
285
301
  } | {
286
- status: "running" | "succeeded" | "failed" | "cancelled";
287
302
  projectId: string;
288
303
  id: string;
289
- startedAt: string;
304
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
305
+ queuedAt: string;
290
306
  attempt: number;
307
+ executionId: string;
291
308
  progress: {
292
309
  sourceRowsRead: number;
293
310
  sourceRowsSkipped: number;
@@ -308,8 +325,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
308
325
  target: {
309
326
  objectTypeId: string;
310
327
  };
328
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
329
+ startedAt?: string | undefined;
311
330
  finishedAt?: string | undefined;
312
- errorMessage?: string | undefined;
313
331
  } | null;
314
332
  _tag: "TelemetryProjectionDefinition";
315
333
  objectIdField: string;
@@ -344,22 +362,23 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
344
362
  headers: unknown;
345
363
  response: {
346
364
  200: {
365
+ id: string;
347
366
  links: Record<string, {
348
367
  targetObjectTypeId: string;
349
368
  linkId: string;
350
369
  sourcePropertyId?: string | undefined;
351
370
  sourceField?: string | undefined;
352
371
  }>;
353
- objectTypeId: string;
354
- id: string;
355
372
  properties: Record<string, string>;
373
+ objectTypeId: string;
356
374
  datasetId: string;
357
375
  latestRun: {
358
- status: "running" | "succeeded" | "failed" | "cancelled";
359
376
  projectId: string;
360
377
  id: string;
361
- startedAt: string;
378
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
379
+ queuedAt: string;
362
380
  attempt: number;
381
+ executionId: string;
363
382
  progress: {
364
383
  sourceRowsRead: number;
365
384
  sourceRowsSkipped: number;
@@ -380,14 +399,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
380
399
  target: {
381
400
  objectTypeId: string;
382
401
  };
402
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
403
+ startedAt?: string | undefined;
383
404
  finishedAt?: string | undefined;
384
- errorMessage?: string | undefined;
385
405
  } | {
386
- status: "running" | "succeeded" | "failed" | "cancelled";
387
406
  projectId: string;
388
407
  id: string;
389
- startedAt: string;
408
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
409
+ queuedAt: string;
390
410
  attempt: number;
411
+ executionId: string;
391
412
  progress: {
392
413
  sourceRowsRead: number;
393
414
  sourceRowsSkipped: number;
@@ -409,14 +430,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
409
430
  targetObjectTypeId: string;
410
431
  sourceObjectTypeId: string;
411
432
  };
433
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
434
+ startedAt?: string | undefined;
412
435
  finishedAt?: string | undefined;
413
- errorMessage?: string | undefined;
414
436
  } | {
415
- status: "running" | "succeeded" | "failed" | "cancelled";
416
437
  projectId: string;
417
438
  id: string;
418
- startedAt: string;
439
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
440
+ queuedAt: string;
419
441
  attempt: number;
442
+ executionId: string;
420
443
  progress: {
421
444
  sourceRowsRead: number;
422
445
  sourceRowsSkipped: number;
@@ -437,8 +460,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
437
460
  target: {
438
461
  objectTypeId: string;
439
462
  };
463
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
464
+ startedAt?: string | undefined;
440
465
  finishedAt?: string | undefined;
441
- errorMessage?: string | undefined;
442
466
  } | null;
443
467
  _tag: "ObjectProjectionDefinition";
444
468
  } | {
@@ -448,11 +472,12 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
448
472
  linkId: string;
449
473
  sourceObjectTypeId: string;
450
474
  latestRun: {
451
- status: "running" | "succeeded" | "failed" | "cancelled";
452
475
  projectId: string;
453
476
  id: string;
454
- startedAt: string;
477
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
478
+ queuedAt: string;
455
479
  attempt: number;
480
+ executionId: string;
456
481
  progress: {
457
482
  sourceRowsRead: number;
458
483
  sourceRowsSkipped: number;
@@ -473,14 +498,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
473
498
  target: {
474
499
  objectTypeId: string;
475
500
  };
501
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
502
+ startedAt?: string | undefined;
476
503
  finishedAt?: string | undefined;
477
- errorMessage?: string | undefined;
478
504
  } | {
479
- status: "running" | "succeeded" | "failed" | "cancelled";
480
505
  projectId: string;
481
506
  id: string;
482
- startedAt: string;
507
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
508
+ queuedAt: string;
483
509
  attempt: number;
510
+ executionId: string;
484
511
  progress: {
485
512
  sourceRowsRead: number;
486
513
  sourceRowsSkipped: number;
@@ -502,14 +529,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
502
529
  targetObjectTypeId: string;
503
530
  sourceObjectTypeId: string;
504
531
  };
532
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
533
+ startedAt?: string | undefined;
505
534
  finishedAt?: string | undefined;
506
- errorMessage?: string | undefined;
507
535
  } | {
508
- status: "running" | "succeeded" | "failed" | "cancelled";
509
536
  projectId: string;
510
537
  id: string;
511
- startedAt: string;
538
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
539
+ queuedAt: string;
512
540
  attempt: number;
541
+ executionId: string;
513
542
  progress: {
514
543
  sourceRowsRead: number;
515
544
  sourceRowsSkipped: number;
@@ -530,23 +559,25 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
530
559
  target: {
531
560
  objectTypeId: string;
532
561
  };
562
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
563
+ startedAt?: string | undefined;
533
564
  finishedAt?: string | undefined;
534
- errorMessage?: string | undefined;
535
565
  } | null;
536
566
  sourceField: string;
537
567
  _tag: "LinkProjectionDefinition";
538
568
  targetField: string;
539
569
  } | {
540
- objectTypeId: string;
541
570
  id: string;
571
+ objectTypeId: string;
542
572
  datasetId: string;
543
573
  propertyId: string;
544
574
  latestRun: {
545
- status: "running" | "succeeded" | "failed" | "cancelled";
546
575
  projectId: string;
547
576
  id: string;
548
- startedAt: string;
577
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
578
+ queuedAt: string;
549
579
  attempt: number;
580
+ executionId: string;
550
581
  progress: {
551
582
  sourceRowsRead: number;
552
583
  sourceRowsSkipped: number;
@@ -567,14 +598,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
567
598
  target: {
568
599
  objectTypeId: string;
569
600
  };
601
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
602
+ startedAt?: string | undefined;
570
603
  finishedAt?: string | undefined;
571
- errorMessage?: string | undefined;
572
604
  } | {
573
- status: "running" | "succeeded" | "failed" | "cancelled";
574
605
  projectId: string;
575
606
  id: string;
576
- startedAt: string;
607
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
608
+ queuedAt: string;
577
609
  attempt: number;
610
+ executionId: string;
578
611
  progress: {
579
612
  sourceRowsRead: number;
580
613
  sourceRowsSkipped: number;
@@ -596,14 +629,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
596
629
  targetObjectTypeId: string;
597
630
  sourceObjectTypeId: string;
598
631
  };
632
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
633
+ startedAt?: string | undefined;
599
634
  finishedAt?: string | undefined;
600
- errorMessage?: string | undefined;
601
635
  } | {
602
- status: "running" | "succeeded" | "failed" | "cancelled";
603
636
  projectId: string;
604
637
  id: string;
605
- startedAt: string;
638
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
639
+ queuedAt: string;
606
640
  attempt: number;
641
+ executionId: string;
607
642
  progress: {
608
643
  sourceRowsRead: number;
609
644
  sourceRowsSkipped: number;
@@ -624,8 +659,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
624
659
  target: {
625
660
  objectTypeId: string;
626
661
  };
662
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
663
+ startedAt?: string | undefined;
627
664
  finishedAt?: string | undefined;
628
- errorMessage?: string | undefined;
629
665
  } | null;
630
666
  _tag: "TelemetryProjectionDefinition";
631
667
  objectIdField: string;
@@ -657,12 +693,12 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
657
693
  body: unknown;
658
694
  params: {};
659
695
  query: {
660
- status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
696
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
697
+ startedAfter?: string | undefined;
698
+ startedBefore?: string | undefined;
661
699
  limit?: string | undefined;
662
700
  offset?: string | undefined;
663
701
  order?: "asc" | "desc" | undefined;
664
- startedAfter?: string | undefined;
665
- startedBefore?: string | undefined;
666
702
  datasetId?: string | undefined;
667
703
  projectionId?: string | undefined;
668
704
  datasetVersionId?: string | undefined;
@@ -672,11 +708,12 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
672
708
  response: {
673
709
  200: {
674
710
  runs: ({
675
- status: "running" | "succeeded" | "failed" | "cancelled";
676
711
  projectId: string;
677
712
  id: string;
678
- startedAt: string;
713
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
714
+ queuedAt: string;
679
715
  attempt: number;
716
+ executionId: string;
680
717
  progress: {
681
718
  sourceRowsRead: number;
682
719
  sourceRowsSkipped: number;
@@ -697,14 +734,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
697
734
  target: {
698
735
  objectTypeId: string;
699
736
  };
737
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
738
+ startedAt?: string | undefined;
700
739
  finishedAt?: string | undefined;
701
- errorMessage?: string | undefined;
702
740
  } | {
703
- status: "running" | "succeeded" | "failed" | "cancelled";
704
741
  projectId: string;
705
742
  id: string;
706
- startedAt: string;
743
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
744
+ queuedAt: string;
707
745
  attempt: number;
746
+ executionId: string;
708
747
  progress: {
709
748
  sourceRowsRead: number;
710
749
  sourceRowsSkipped: number;
@@ -726,14 +765,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
726
765
  targetObjectTypeId: string;
727
766
  sourceObjectTypeId: string;
728
767
  };
768
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
769
+ startedAt?: string | undefined;
729
770
  finishedAt?: string | undefined;
730
- errorMessage?: string | undefined;
731
771
  } | {
732
- status: "running" | "succeeded" | "failed" | "cancelled";
733
772
  projectId: string;
734
773
  id: string;
735
- startedAt: string;
774
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
775
+ queuedAt: string;
736
776
  attempt: number;
777
+ executionId: string;
737
778
  progress: {
738
779
  sourceRowsRead: number;
739
780
  sourceRowsSkipped: number;
@@ -754,8 +795,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
754
795
  target: {
755
796
  objectTypeId: string;
756
797
  };
798
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
799
+ startedAt?: string | undefined;
757
800
  finishedAt?: string | undefined;
758
- errorMessage?: string | undefined;
759
801
  })[];
760
802
  hasMore: boolean;
761
803
  total: number;
@@ -792,11 +834,12 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
792
834
  headers: unknown;
793
835
  response: {
794
836
  200: {
795
- status: "running" | "succeeded" | "failed" | "cancelled";
796
837
  projectId: string;
797
838
  id: string;
798
- startedAt: string;
839
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
840
+ queuedAt: string;
799
841
  attempt: number;
842
+ executionId: string;
800
843
  progress: {
801
844
  sourceRowsRead: number;
802
845
  sourceRowsSkipped: number;
@@ -817,14 +860,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
817
860
  target: {
818
861
  objectTypeId: string;
819
862
  };
863
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
864
+ startedAt?: string | undefined;
820
865
  finishedAt?: string | undefined;
821
- errorMessage?: string | undefined;
822
866
  } | {
823
- status: "running" | "succeeded" | "failed" | "cancelled";
824
867
  projectId: string;
825
868
  id: string;
826
- startedAt: string;
869
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
870
+ queuedAt: string;
827
871
  attempt: number;
872
+ executionId: string;
828
873
  progress: {
829
874
  sourceRowsRead: number;
830
875
  sourceRowsSkipped: number;
@@ -846,14 +891,16 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
846
891
  targetObjectTypeId: string;
847
892
  sourceObjectTypeId: string;
848
893
  };
894
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
895
+ startedAt?: string | undefined;
849
896
  finishedAt?: string | undefined;
850
- errorMessage?: string | undefined;
851
897
  } | {
852
- status: "running" | "succeeded" | "failed" | "cancelled";
853
898
  projectId: string;
854
899
  id: string;
855
- startedAt: string;
900
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
901
+ queuedAt: string;
856
902
  attempt: number;
903
+ executionId: string;
857
904
  progress: {
858
905
  sourceRowsRead: number;
859
906
  sourceRowsSkipped: number;
@@ -874,8 +921,9 @@ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonl
874
921
  target: {
875
922
  objectTypeId: string;
876
923
  };
924
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "projection.execution_failed" | "runtime.cancelled"> | undefined;
925
+ startedAt?: string | undefined;
877
926
  finishedAt?: string | undefined;
878
- errorMessage?: string | undefined;
879
927
  };
880
928
  400: {
881
929
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,cAAc,EAEd,IAAI,EAEL,MAAM,YAAY,CAAA;AAGnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA8GpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkI1F"}
1
+ {"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,EAEb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsGpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIvE"}
@@ -1,6 +1,6 @@
1
- import { type OntologySource, type Sixb } from "@sixb/core";
1
+ import type { SixbHostView } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
- export declare function registerRuleRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
3
+ export declare function registerRuleRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
@@ -25,8 +25,8 @@ export declare function registerRuleRoutes(app: Elysia, sixb: Sixb<readonly Onto
25
25
  headers: unknown;
26
26
  response: {
27
27
  200: {
28
- kind: "rule";
29
28
  id: string;
29
+ kind: "rule";
30
30
  subject: {
31
31
  kind: "object";
32
32
  objectTypeId: string;
@@ -67,8 +67,8 @@ export declare function registerRuleRoutes(app: Elysia, sixb: Sixb<readonly Onto
67
67
  headers: unknown;
68
68
  response: {
69
69
  200: {
70
- kind: "rule";
71
70
  id: string;
71
+ kind: "rule";
72
72
  subject: {
73
73
  kind: "object";
74
74
  objectTypeId: string;
@@ -107,11 +107,11 @@ export declare function registerRuleRoutes(app: Elysia, sixb: Sixb<readonly Onto
107
107
  body: unknown;
108
108
  params: {};
109
109
  query: {
110
+ objectTypeId?: string | undefined;
111
+ primaryId?: string | undefined;
110
112
  limit?: string | undefined;
111
113
  offset?: string | undefined;
112
114
  order?: "asc" | "desc" | undefined;
113
- objectTypeId?: string | undefined;
114
- primaryId?: string | undefined;
115
115
  ruleId?: string | undefined;
116
116
  };
117
117
  headers: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/routes/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAuB,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AAG3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwBpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGpF"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/routes/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwBpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFjE"}