@sixb/server 0.1.20 → 0.1.22

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 (179) hide show
  1. package/dist/artifacts/frame.d.ts +18 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +10 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/files/content.d.ts +2 -3
  13. package/dist/files/content.d.ts.map +1 -1
  14. package/dist/index.js +10636 -7071
  15. package/dist/index.js.map +56 -38
  16. package/dist/models/display.d.ts +27 -0
  17. package/dist/models/display.d.ts.map +1 -1
  18. package/dist/openapi/components.d.ts +14 -0
  19. package/dist/openapi/components.d.ts.map +1 -0
  20. package/dist/openapi/tags.d.ts +22 -2
  21. package/dist/openapi/tags.d.ts.map +1 -1
  22. package/dist/registerRoutes.d.ts +3 -0
  23. package/dist/registerRoutes.d.ts.map +1 -1
  24. package/dist/routes/actions.d.ts +5 -5
  25. package/dist/routes/activity.d.ts +35 -0
  26. package/dist/routes/activity.d.ts.map +1 -0
  27. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  28. package/dist/routes/agent-approval-gate.d.ts +27 -0
  29. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  30. package/dist/routes/agent-approvals.d.ts +599 -0
  31. package/dist/routes/agent-approvals.d.ts.map +1 -0
  32. package/dist/routes/agent-children.d.ts +318 -0
  33. package/dist/routes/agent-children.d.ts.map +1 -0
  34. package/dist/routes/agent-memory.d.ts +267 -0
  35. package/dist/routes/agent-memory.d.ts.map +1 -0
  36. package/dist/routes/agents.d.ts +1008 -98
  37. package/dist/routes/agents.d.ts.map +1 -1
  38. package/dist/routes/ai-accounting.d.ts.map +1 -1
  39. package/dist/routes/artifact-frames.d.ts +98 -0
  40. package/dist/routes/artifact-frames.d.ts.map +1 -0
  41. package/dist/routes/artifacts.d.ts +1508 -0
  42. package/dist/routes/artifacts.d.ts.map +1 -0
  43. package/dist/routes/auth.d.ts +117 -11
  44. package/dist/routes/auth.d.ts.map +1 -1
  45. package/dist/routes/connector-connection-runs.d.ts +84 -84
  46. package/dist/routes/connector-connections.d.ts +2 -2
  47. package/dist/routes/connectors.d.ts +2 -2
  48. package/dist/routes/datasets.d.ts +27 -27
  49. package/dist/routes/events.d.ts +5 -5
  50. package/dist/routes/files.d.ts +14 -14
  51. package/dist/routes/files.d.ts.map +1 -1
  52. package/dist/routes/links.d.ts +2 -2
  53. package/dist/routes/logs.d.ts +5 -5
  54. package/dist/routes/model-calls.d.ts +155 -0
  55. package/dist/routes/model-calls.d.ts.map +1 -0
  56. package/dist/routes/model-generations.d.ts +400 -0
  57. package/dist/routes/model-generations.d.ts.map +1 -0
  58. package/dist/routes/models.d.ts +434 -1
  59. package/dist/routes/models.d.ts.map +1 -1
  60. package/dist/routes/objects.d.ts +71 -40
  61. package/dist/routes/objects.d.ts.map +1 -1
  62. package/dist/routes/observed-agent-threads.d.ts +682 -0
  63. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  64. package/dist/routes/ontology.d.ts +66 -62
  65. package/dist/routes/ontology.d.ts.map +1 -1
  66. package/dist/routes/pipelines.d.ts +53 -53
  67. package/dist/routes/projections.d.ts +63 -63
  68. package/dist/routes/rules.d.ts +2 -2
  69. package/dist/routes/share-grants.d.ts +4 -4
  70. package/dist/routes/syncs.d.ts +18 -18
  71. package/dist/routes/users.d.ts +117 -0
  72. package/dist/routes/users.d.ts.map +1 -0
  73. package/dist/routes/webhook-runs.d.ts +1 -1
  74. package/dist/routes/workflows.d.ts +142 -76
  75. package/dist/routes/workflows.d.ts.map +1 -1
  76. package/dist/routes/ws/agents.d.ts +7 -2
  77. package/dist/routes/ws/agents.d.ts.map +1 -1
  78. package/dist/routes/ws/events.d.ts +6 -6
  79. package/dist/routes/ws/events.d.ts.map +1 -1
  80. package/dist/routes/ws/logs.d.ts +14 -14
  81. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  82. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  83. package/dist/schemas/actions.d.ts +15 -15
  84. package/dist/schemas/activity.d.ts +1298 -0
  85. package/dist/schemas/activity.d.ts.map +1 -0
  86. package/dist/schemas/agent-approvals.d.ts +1091 -0
  87. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  88. package/dist/schemas/agent-memory.d.ts +250 -0
  89. package/dist/schemas/agent-memory.d.ts.map +1 -0
  90. package/dist/schemas/agents.d.ts +5485 -460
  91. package/dist/schemas/agents.d.ts.map +1 -1
  92. package/dist/schemas/ai-accounting.d.ts +1315 -436
  93. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  94. package/dist/schemas/ai-limits.d.ts +36 -36
  95. package/dist/schemas/ai-usage.d.ts +12 -0
  96. package/dist/schemas/ai-usage.d.ts.map +1 -1
  97. package/dist/schemas/artifacts.d.ts +1857 -0
  98. package/dist/schemas/artifacts.d.ts.map +1 -0
  99. package/dist/schemas/auth.d.ts +125 -52
  100. package/dist/schemas/auth.d.ts.map +1 -1
  101. package/dist/schemas/connectors.d.ts +42 -42
  102. package/dist/schemas/datasets.d.ts +108 -108
  103. package/dist/schemas/event-payloads.d.ts +6 -6
  104. package/dist/schemas/events.d.ts +32 -32
  105. package/dist/schemas/events.d.ts.map +1 -1
  106. package/dist/schemas/files.d.ts +24 -24
  107. package/dist/schemas/links.d.ts +2 -2
  108. package/dist/schemas/logs.d.ts +32 -32
  109. package/dist/schemas/models.d.ts +8889 -10
  110. package/dist/schemas/models.d.ts.map +1 -1
  111. package/dist/schemas/objects.d.ts +48 -12
  112. package/dist/schemas/objects.d.ts.map +1 -1
  113. package/dist/schemas/ontology.d.ts +127 -104
  114. package/dist/schemas/ontology.d.ts.map +1 -1
  115. package/dist/schemas/pipelines.d.ts +166 -166
  116. package/dist/schemas/projections.d.ts +346 -346
  117. package/dist/schemas/rules.d.ts +4 -4
  118. package/dist/schemas/share-grants.d.ts +14 -14
  119. package/dist/schemas/syncs.d.ts +40 -40
  120. package/dist/schemas/users.d.ts +72 -0
  121. package/dist/schemas/users.d.ts.map +1 -0
  122. package/dist/schemas/webhook-runs.d.ts +6 -6
  123. package/dist/schemas/workflows.d.ts +769 -254
  124. package/dist/schemas/workflows.d.ts.map +1 -1
  125. package/dist/server.d.ts +1 -0
  126. package/dist/server.d.ts.map +1 -1
  127. package/dist/utils/http.d.ts.map +1 -1
  128. package/package.json +7 -7
  129. package/src/artifacts/frame.ts +51 -0
  130. package/src/auth/browser-origin.ts +20 -5
  131. package/src/auth/experience.ts +1 -1
  132. package/src/auth/guard.ts +2 -2
  133. package/src/auth/public-routes.ts +16 -0
  134. package/src/auth/responses.ts +7 -6
  135. package/src/auth/scope.ts +32 -3
  136. package/src/files/content.ts +9 -13
  137. package/src/models/display.ts +61 -16
  138. package/src/openapi/components.ts +54 -0
  139. package/src/openapi/tags.ts +20 -0
  140. package/src/registerRoutes.ts +23 -0
  141. package/src/routes/activity.ts +327 -0
  142. package/src/routes/agent-api-gateway.ts +115 -91
  143. package/src/routes/agent-approval-gate.ts +213 -0
  144. package/src/routes/agent-approvals.ts +299 -0
  145. package/src/routes/agent-children.ts +209 -0
  146. package/src/routes/agent-memory.ts +210 -0
  147. package/src/routes/agents.ts +364 -143
  148. package/src/routes/ai-accounting.ts +4 -0
  149. package/src/routes/artifact-frames.ts +144 -0
  150. package/src/routes/artifacts.ts +717 -0
  151. package/src/routes/auth.ts +306 -13
  152. package/src/routes/file-downloads.ts +1 -3
  153. package/src/routes/files.ts +6 -7
  154. package/src/routes/model-calls.ts +120 -0
  155. package/src/routes/model-generations.ts +245 -0
  156. package/src/routes/models.ts +116 -9
  157. package/src/routes/objects.ts +55 -61
  158. package/src/routes/observed-agent-threads.ts +253 -0
  159. package/src/routes/ontology.ts +1 -0
  160. package/src/routes/users.ts +73 -0
  161. package/src/routes/workflows.ts +6 -9
  162. package/src/routes/ws/agents.ts +10 -5
  163. package/src/routes/ws/events.ts +3 -2
  164. package/src/routes/ws/subscription-hub.ts +53 -20
  165. package/src/schemas/activity.ts +287 -0
  166. package/src/schemas/agent-approvals.ts +129 -0
  167. package/src/schemas/agent-memory.ts +96 -0
  168. package/src/schemas/agents.ts +240 -2
  169. package/src/schemas/ai-accounting.ts +40 -4
  170. package/src/schemas/ai-usage.ts +10 -0
  171. package/src/schemas/artifacts.ts +246 -0
  172. package/src/schemas/auth.ts +25 -0
  173. package/src/schemas/models.ts +197 -1
  174. package/src/schemas/objects.ts +181 -0
  175. package/src/schemas/ontology.ts +1 -0
  176. package/src/schemas/users.ts +24 -0
  177. package/src/schemas/workflows.ts +2 -0
  178. package/src/server.ts +34 -19
  179. package/src/utils/http.ts +2 -0
@@ -27,22 +27,21 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
27
27
  200: {
28
28
  objectProjections: {
29
29
  id: string;
30
+ properties: Record<string, string>;
31
+ objectTypeId: string;
30
32
  links: Record<string, {
31
33
  targetObjectTypeId: string;
32
34
  linkId: string;
33
35
  sourcePropertyId?: string | undefined;
34
36
  sourceField?: string | undefined;
35
37
  }>;
36
- properties: Record<string, string>;
37
- objectTypeId: string;
38
- datasetId: string;
39
38
  latestRun: {
40
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
39
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
41
40
  projectId: string;
42
41
  id: string;
42
+ queuedAt: string;
43
43
  executionId: string;
44
44
  attempt: number;
45
- queuedAt: string;
46
45
  target: {
47
46
  objectTypeId: string;
48
47
  };
@@ -68,12 +67,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
68
67
  startedAt?: string | undefined;
69
68
  finishedAt?: string | undefined;
70
69
  } | {
71
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
70
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
72
71
  projectId: string;
73
72
  id: string;
73
+ queuedAt: string;
74
74
  executionId: string;
75
75
  attempt: number;
76
- queuedAt: string;
77
76
  target: {
78
77
  targetObjectTypeId: string;
79
78
  sourceObjectTypeId: string;
@@ -100,12 +99,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
100
99
  startedAt?: string | undefined;
101
100
  finishedAt?: string | undefined;
102
101
  } | {
103
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
102
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
104
103
  projectId: string;
105
104
  id: string;
105
+ queuedAt: string;
106
106
  executionId: string;
107
107
  attempt: number;
108
- queuedAt: string;
109
108
  target: {
110
109
  objectTypeId: string;
111
110
  };
@@ -131,6 +130,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
131
130
  startedAt?: string | undefined;
132
131
  finishedAt?: string | undefined;
133
132
  } | null;
133
+ datasetId: string;
134
134
  _tag: "ObjectProjectionDefinition";
135
135
  conflictResolution: {
136
136
  strategy: "editsWin";
@@ -142,16 +142,13 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
142
142
  linkProjections: {
143
143
  id: string;
144
144
  targetObjectTypeId: string;
145
- datasetId: string;
146
- linkId: string;
147
- sourceObjectTypeId: string;
148
145
  latestRun: {
149
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
146
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
150
147
  projectId: string;
151
148
  id: string;
149
+ queuedAt: string;
152
150
  executionId: string;
153
151
  attempt: number;
154
- queuedAt: string;
155
152
  target: {
156
153
  objectTypeId: string;
157
154
  };
@@ -177,12 +174,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
177
174
  startedAt?: string | undefined;
178
175
  finishedAt?: string | undefined;
179
176
  } | {
180
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
177
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
181
178
  projectId: string;
182
179
  id: string;
180
+ queuedAt: string;
183
181
  executionId: string;
184
182
  attempt: number;
185
- queuedAt: string;
186
183
  target: {
187
184
  targetObjectTypeId: string;
188
185
  sourceObjectTypeId: string;
@@ -209,12 +206,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
209
206
  startedAt?: string | undefined;
210
207
  finishedAt?: string | undefined;
211
208
  } | {
212
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
209
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
213
210
  projectId: string;
214
211
  id: string;
212
+ queuedAt: string;
215
213
  executionId: string;
216
214
  attempt: number;
217
- queuedAt: string;
218
215
  target: {
219
216
  objectTypeId: string;
220
217
  };
@@ -240,6 +237,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
240
237
  startedAt?: string | undefined;
241
238
  finishedAt?: string | undefined;
242
239
  } | null;
240
+ linkId: string;
241
+ sourceObjectTypeId: string;
242
+ datasetId: string;
243
243
  sourceField: string;
244
244
  _tag: "LinkProjectionDefinition";
245
245
  targetField: string;
@@ -251,14 +251,13 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
251
251
  unitField?: string | undefined;
252
252
  }>;
253
253
  objectTypeId: string;
254
- datasetId: string;
255
254
  latestRun: {
256
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
255
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
257
256
  projectId: string;
258
257
  id: string;
258
+ queuedAt: string;
259
259
  executionId: string;
260
260
  attempt: number;
261
- queuedAt: string;
262
261
  target: {
263
262
  objectTypeId: string;
264
263
  };
@@ -284,12 +283,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
284
283
  startedAt?: string | undefined;
285
284
  finishedAt?: string | undefined;
286
285
  } | {
287
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
286
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
288
287
  projectId: string;
289
288
  id: string;
289
+ queuedAt: string;
290
290
  executionId: string;
291
291
  attempt: number;
292
- queuedAt: string;
293
292
  target: {
294
293
  targetObjectTypeId: string;
295
294
  sourceObjectTypeId: string;
@@ -316,12 +315,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
316
315
  startedAt?: string | undefined;
317
316
  finishedAt?: string | undefined;
318
317
  } | {
319
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
318
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
320
319
  projectId: string;
321
320
  id: string;
321
+ queuedAt: string;
322
322
  executionId: string;
323
323
  attempt: number;
324
- queuedAt: string;
325
324
  target: {
326
325
  objectTypeId: string;
327
326
  };
@@ -347,6 +346,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
347
346
  startedAt?: string | undefined;
348
347
  finishedAt?: string | undefined;
349
348
  } | null;
349
+ datasetId: string;
350
350
  _tag: "TelemetryProjectionDefinition";
351
351
  objectIdField: string;
352
352
  atField: string;
@@ -379,22 +379,21 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
379
379
  response: {
380
380
  200: {
381
381
  id: string;
382
+ properties: Record<string, string>;
383
+ objectTypeId: string;
382
384
  links: Record<string, {
383
385
  targetObjectTypeId: string;
384
386
  linkId: string;
385
387
  sourcePropertyId?: string | undefined;
386
388
  sourceField?: string | undefined;
387
389
  }>;
388
- properties: Record<string, string>;
389
- objectTypeId: string;
390
- datasetId: string;
391
390
  latestRun: {
392
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
391
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
393
392
  projectId: string;
394
393
  id: string;
394
+ queuedAt: string;
395
395
  executionId: string;
396
396
  attempt: number;
397
- queuedAt: string;
398
397
  target: {
399
398
  objectTypeId: string;
400
399
  };
@@ -420,12 +419,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
420
419
  startedAt?: string | undefined;
421
420
  finishedAt?: string | undefined;
422
421
  } | {
423
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
422
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
424
423
  projectId: string;
425
424
  id: string;
425
+ queuedAt: string;
426
426
  executionId: string;
427
427
  attempt: number;
428
- queuedAt: string;
429
428
  target: {
430
429
  targetObjectTypeId: string;
431
430
  sourceObjectTypeId: string;
@@ -452,12 +451,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
452
451
  startedAt?: string | undefined;
453
452
  finishedAt?: string | undefined;
454
453
  } | {
455
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
454
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
456
455
  projectId: string;
457
456
  id: string;
457
+ queuedAt: string;
458
458
  executionId: string;
459
459
  attempt: number;
460
- queuedAt: string;
461
460
  target: {
462
461
  objectTypeId: string;
463
462
  };
@@ -483,6 +482,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
483
482
  startedAt?: string | undefined;
484
483
  finishedAt?: string | undefined;
485
484
  } | null;
485
+ datasetId: string;
486
486
  _tag: "ObjectProjectionDefinition";
487
487
  conflictResolution: {
488
488
  strategy: "editsWin";
@@ -493,16 +493,13 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
493
493
  } | {
494
494
  id: string;
495
495
  targetObjectTypeId: string;
496
- datasetId: string;
497
- linkId: string;
498
- sourceObjectTypeId: string;
499
496
  latestRun: {
500
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
497
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
501
498
  projectId: string;
502
499
  id: string;
500
+ queuedAt: string;
503
501
  executionId: string;
504
502
  attempt: number;
505
- queuedAt: string;
506
503
  target: {
507
504
  objectTypeId: string;
508
505
  };
@@ -528,12 +525,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
528
525
  startedAt?: string | undefined;
529
526
  finishedAt?: string | undefined;
530
527
  } | {
531
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
528
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
532
529
  projectId: string;
533
530
  id: string;
531
+ queuedAt: string;
534
532
  executionId: string;
535
533
  attempt: number;
536
- queuedAt: string;
537
534
  target: {
538
535
  targetObjectTypeId: string;
539
536
  sourceObjectTypeId: string;
@@ -560,12 +557,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
560
557
  startedAt?: string | undefined;
561
558
  finishedAt?: string | undefined;
562
559
  } | {
563
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
560
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
564
561
  projectId: string;
565
562
  id: string;
563
+ queuedAt: string;
566
564
  executionId: string;
567
565
  attempt: number;
568
- queuedAt: string;
569
566
  target: {
570
567
  objectTypeId: string;
571
568
  };
@@ -591,6 +588,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
591
588
  startedAt?: string | undefined;
592
589
  finishedAt?: string | undefined;
593
590
  } | null;
591
+ linkId: string;
592
+ sourceObjectTypeId: string;
593
+ datasetId: string;
594
594
  sourceField: string;
595
595
  _tag: "LinkProjectionDefinition";
596
596
  targetField: string;
@@ -601,14 +601,13 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
601
601
  unitField?: string | undefined;
602
602
  }>;
603
603
  objectTypeId: string;
604
- datasetId: string;
605
604
  latestRun: {
606
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
605
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
607
606
  projectId: string;
608
607
  id: string;
608
+ queuedAt: string;
609
609
  executionId: string;
610
610
  attempt: number;
611
- queuedAt: string;
612
611
  target: {
613
612
  objectTypeId: string;
614
613
  };
@@ -634,12 +633,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
634
633
  startedAt?: string | undefined;
635
634
  finishedAt?: string | undefined;
636
635
  } | {
637
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
636
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
638
637
  projectId: string;
639
638
  id: string;
639
+ queuedAt: string;
640
640
  executionId: string;
641
641
  attempt: number;
642
- queuedAt: string;
643
642
  target: {
644
643
  targetObjectTypeId: string;
645
644
  sourceObjectTypeId: string;
@@ -666,12 +665,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
666
665
  startedAt?: string | undefined;
667
666
  finishedAt?: string | undefined;
668
667
  } | {
669
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
668
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
670
669
  projectId: string;
671
670
  id: string;
671
+ queuedAt: string;
672
672
  executionId: string;
673
673
  attempt: number;
674
- queuedAt: string;
675
674
  target: {
676
675
  objectTypeId: string;
677
676
  };
@@ -697,6 +696,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
697
696
  startedAt?: string | undefined;
698
697
  finishedAt?: string | undefined;
699
698
  } | null;
699
+ datasetId: string;
700
700
  _tag: "TelemetryProjectionDefinition";
701
701
  objectIdField: string;
702
702
  atField: string;
@@ -725,7 +725,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
725
725
  body: unknown;
726
726
  params: {};
727
727
  query: {
728
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded" | undefined;
728
+ status?: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running" | 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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
743
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
744
744
  projectId: string;
745
745
  id: string;
746
+ queuedAt: string;
746
747
  executionId: string;
747
748
  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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
774
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
775
775
  projectId: string;
776
776
  id: string;
777
+ queuedAt: string;
777
778
  executionId: string;
778
779
  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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
806
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
807
807
  projectId: string;
808
808
  id: string;
809
+ queuedAt: string;
809
810
  executionId: string;
810
811
  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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
872
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
873
873
  projectId: string;
874
874
  id: string;
875
+ queuedAt: string;
875
876
  executionId: string;
876
877
  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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
903
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
904
904
  projectId: string;
905
905
  id: string;
906
+ queuedAt: string;
906
907
  executionId: string;
907
908
  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: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
935
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
936
936
  projectId: string;
937
937
  id: string;
938
+ queuedAt: string;
938
939
  executionId: string;
939
940
  attempt: number;
940
- queuedAt: string;
941
941
  target: {
942
942
  objectTypeId: string;
943
943
  };
@@ -37,8 +37,8 @@ export declare function registerRuleRoutes(app: Elysia, host: SixbHostView): Ely
37
37
  objectTypeId: string;
38
38
  } | {
39
39
  type: "link.created" | "link.updated" | "link.deleted";
40
- sourceTypeId: string;
41
40
  linkId: string;
41
+ sourceTypeId: string;
42
42
  })[];
43
43
  }[];
44
44
  422: {
@@ -79,8 +79,8 @@ export declare function registerRuleRoutes(app: Elysia, host: SixbHostView): Ely
79
79
  objectTypeId: string;
80
80
  } | {
81
81
  type: "link.created" | "link.updated" | "link.deleted";
82
- sourceTypeId: string;
83
82
  linkId: string;
83
+ sourceTypeId: string;
84
84
  })[];
85
85
  };
86
86
  404: {
@@ -36,8 +36,8 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
36
36
  url: string;
37
37
  grant: {
38
38
  id: string;
39
- expiresAt: string;
40
39
  createdAt: string;
40
+ expiresAt: string;
41
41
  target: {
42
42
  objectTypeId: string;
43
43
  primaryId: string;
@@ -79,8 +79,8 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
79
79
  url: string;
80
80
  grant: {
81
81
  id: string;
82
- expiresAt: string;
83
82
  createdAt: string;
83
+ expiresAt: string;
84
84
  target: {
85
85
  objectTypeId: string;
86
86
  primaryId: string;
@@ -132,8 +132,8 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
132
132
  total: number;
133
133
  grants: {
134
134
  id: string;
135
- expiresAt: string;
136
135
  createdAt: string;
136
+ expiresAt: string;
137
137
  target: {
138
138
  objectTypeId: string;
139
139
  primaryId: string;
@@ -197,8 +197,8 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
197
197
  200: {
198
198
  grant: {
199
199
  id: string;
200
- expiresAt: string;
201
200
  createdAt: string;
201
+ expiresAt: string;
202
202
  target: {
203
203
  objectTypeId: string;
204
204
  primaryId: string;
@@ -26,6 +26,10 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
26
26
  response: {
27
27
  200: {
28
28
  id: string;
29
+ connector: {
30
+ id: string;
31
+ type: string;
32
+ };
29
33
  mode: "append" | "merge" | "snapshot";
30
34
  target: {
31
35
  kind: "dataset";
@@ -33,8 +37,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
33
37
  id: string;
34
38
  schema: {
35
39
  columns: {
40
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
36
41
  name: string;
37
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
38
42
  nullable?: boolean | undefined;
39
43
  }[];
40
44
  };
@@ -49,13 +53,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
49
53
  scheduleId: string;
50
54
  }[];
51
55
  latestRun: {
52
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
56
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
53
57
  projectId: string;
54
58
  id: string;
55
59
  mode: "append" | "merge" | "snapshot";
60
+ queuedAt: string;
56
61
  datasetId: string;
57
62
  syncId: string;
58
- queuedAt: string;
59
63
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
60
64
  startedAt?: string | undefined;
61
65
  finishedAt?: string | undefined;
@@ -67,10 +71,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
67
71
  commitMessage?: string | undefined;
68
72
  rowsRead?: number | undefined;
69
73
  } | null;
70
- connector: {
71
- id: string;
72
- type: string;
73
- };
74
74
  }[];
75
75
  422: {
76
76
  type: "validation";
@@ -99,6 +99,10 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
99
99
  response: {
100
100
  200: {
101
101
  id: string;
102
+ connector: {
103
+ id: string;
104
+ type: string;
105
+ };
102
106
  mode: "append" | "merge" | "snapshot";
103
107
  target: {
104
108
  kind: "dataset";
@@ -106,8 +110,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
106
110
  id: string;
107
111
  schema: {
108
112
  columns: {
113
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
109
114
  name: string;
110
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
111
115
  nullable?: boolean | undefined;
112
116
  }[];
113
117
  };
@@ -122,13 +126,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
122
126
  scheduleId: string;
123
127
  }[];
124
128
  latestRun: {
125
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
129
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
126
130
  projectId: string;
127
131
  id: string;
128
132
  mode: "append" | "merge" | "snapshot";
133
+ queuedAt: string;
129
134
  datasetId: string;
130
135
  syncId: string;
131
- queuedAt: string;
132
136
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
133
137
  startedAt?: string | undefined;
134
138
  finishedAt?: string | undefined;
@@ -140,10 +144,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
140
144
  commitMessage?: string | undefined;
141
145
  rowsRead?: number | undefined;
142
146
  } | null;
143
- connector: {
144
- id: string;
145
- type: string;
146
- };
147
147
  };
148
148
  404: {
149
149
  error: string;
@@ -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?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
172
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | 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: "succeeded" | "failed" | "queued" | "running" | "cancelled";
185
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
186
186
  projectId: string;
187
187
  id: string;
188
188
  mode: "append" | "merge" | "snapshot";
189
+ queuedAt: string;
189
190
  datasetId: string;
190
191
  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;
262
263
  jobId: string;
263
264
  syncId: string;
264
- queuedAt: string;
265
265
  };
266
266
  422: {
267
267
  type: "validation";