@sixb/server 0.1.21 → 0.1.23

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 (165) hide show
  1. package/dist/artifacts/frame.d.ts +5 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -1
  3. package/dist/auth/browser-origin.d.ts +5 -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/index.js +10093 -7553
  13. package/dist/index.js.map +51 -39
  14. package/dist/models/display.d.ts +27 -0
  15. package/dist/models/display.d.ts.map +1 -1
  16. package/dist/openapi/components.d.ts +14 -0
  17. package/dist/openapi/components.d.ts.map +1 -0
  18. package/dist/openapi/tags.d.ts +14 -2
  19. package/dist/openapi/tags.d.ts.map +1 -1
  20. package/dist/registerRoutes.d.ts.map +1 -1
  21. package/dist/routes/actions.d.ts +5 -5
  22. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  23. package/dist/routes/agent-approval-gate.d.ts +27 -0
  24. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  25. package/dist/routes/agent-approvals.d.ts +599 -0
  26. package/dist/routes/agent-approvals.d.ts.map +1 -0
  27. package/dist/routes/agent-children.d.ts +318 -0
  28. package/dist/routes/agent-children.d.ts.map +1 -0
  29. package/dist/routes/agent-memory.d.ts +267 -0
  30. package/dist/routes/agent-memory.d.ts.map +1 -0
  31. package/dist/routes/agents.d.ts +999 -80
  32. package/dist/routes/agents.d.ts.map +1 -1
  33. package/dist/routes/ai-accounting.d.ts.map +1 -1
  34. package/dist/routes/artifact-frames.d.ts +3 -3
  35. package/dist/routes/artifact-frames.d.ts.map +1 -1
  36. package/dist/routes/artifacts.d.ts +790 -134
  37. package/dist/routes/artifacts.d.ts.map +1 -1
  38. package/dist/routes/auth.d.ts +116 -10
  39. package/dist/routes/auth.d.ts.map +1 -1
  40. package/dist/routes/connector-connection-runs.d.ts +50 -50
  41. package/dist/routes/connectors.d.ts +2 -2
  42. package/dist/routes/datasets.d.ts +20 -20
  43. package/dist/routes/events.d.ts +4 -4
  44. package/dist/routes/files.d.ts +14 -14
  45. package/dist/routes/files.d.ts.map +1 -1
  46. package/dist/routes/links.d.ts +2 -2
  47. package/dist/routes/logs.d.ts +5 -5
  48. package/dist/routes/model-calls.d.ts +155 -0
  49. package/dist/routes/model-calls.d.ts.map +1 -0
  50. package/dist/routes/model-generations.d.ts +400 -0
  51. package/dist/routes/model-generations.d.ts.map +1 -0
  52. package/dist/routes/models.d.ts +434 -1
  53. package/dist/routes/models.d.ts.map +1 -1
  54. package/dist/routes/objects.d.ts +71 -40
  55. package/dist/routes/objects.d.ts.map +1 -1
  56. package/dist/routes/observed-agent-threads.d.ts +682 -0
  57. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  58. package/dist/routes/ontology.d.ts +66 -62
  59. package/dist/routes/ontology.d.ts.map +1 -1
  60. package/dist/routes/pipelines.d.ts +24 -24
  61. package/dist/routes/projections.d.ts +55 -55
  62. package/dist/routes/rules.d.ts +2 -2
  63. package/dist/routes/share-grants.d.ts +9 -9
  64. package/dist/routes/syncs.d.ts +46 -46
  65. package/dist/routes/users.d.ts +117 -0
  66. package/dist/routes/users.d.ts.map +1 -0
  67. package/dist/routes/webhook-runs.d.ts +1 -1
  68. package/dist/routes/workflows.d.ts +118 -52
  69. package/dist/routes/workflows.d.ts.map +1 -1
  70. package/dist/routes/ws/agents.d.ts +7 -2
  71. package/dist/routes/ws/agents.d.ts.map +1 -1
  72. package/dist/routes/ws/events.d.ts +6 -6
  73. package/dist/routes/ws/logs.d.ts +14 -14
  74. package/dist/schemas/actions.d.ts +15 -15
  75. package/dist/schemas/activity.d.ts +48 -28
  76. package/dist/schemas/activity.d.ts.map +1 -1
  77. package/dist/schemas/agent-approvals.d.ts +1091 -0
  78. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  79. package/dist/schemas/agent-memory.d.ts +250 -0
  80. package/dist/schemas/agent-memory.d.ts.map +1 -0
  81. package/dist/schemas/agents.d.ts +5442 -369
  82. package/dist/schemas/agents.d.ts.map +1 -1
  83. package/dist/schemas/ai-accounting.d.ts +1290 -411
  84. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  85. package/dist/schemas/ai-limits.d.ts +10 -10
  86. package/dist/schemas/ai-usage.d.ts +12 -0
  87. package/dist/schemas/ai-usage.d.ts.map +1 -1
  88. package/dist/schemas/artifacts.d.ts +650 -98
  89. package/dist/schemas/artifacts.d.ts.map +1 -1
  90. package/dist/schemas/auth.d.ts +119 -46
  91. package/dist/schemas/auth.d.ts.map +1 -1
  92. package/dist/schemas/connectors.d.ts +22 -22
  93. package/dist/schemas/datasets.d.ts +98 -98
  94. package/dist/schemas/event-payloads.d.ts +6 -6
  95. package/dist/schemas/events.d.ts +26 -26
  96. package/dist/schemas/events.d.ts.map +1 -1
  97. package/dist/schemas/files.d.ts +24 -24
  98. package/dist/schemas/links.d.ts +2 -2
  99. package/dist/schemas/logs.d.ts +32 -32
  100. package/dist/schemas/models.d.ts +8889 -10
  101. package/dist/schemas/models.d.ts.map +1 -1
  102. package/dist/schemas/objects.d.ts +48 -12
  103. package/dist/schemas/objects.d.ts.map +1 -1
  104. package/dist/schemas/ontology.d.ts +127 -104
  105. package/dist/schemas/ontology.d.ts.map +1 -1
  106. package/dist/schemas/pipelines.d.ts +132 -132
  107. package/dist/schemas/projections.d.ts +314 -314
  108. package/dist/schemas/rules.d.ts +4 -4
  109. package/dist/schemas/share-grants.d.ts +30 -30
  110. package/dist/schemas/syncs.d.ts +49 -49
  111. package/dist/schemas/users.d.ts +72 -0
  112. package/dist/schemas/users.d.ts.map +1 -0
  113. package/dist/schemas/webhook-runs.d.ts +6 -6
  114. package/dist/schemas/workflows.d.ts +701 -186
  115. package/dist/schemas/workflows.d.ts.map +1 -1
  116. package/dist/server.d.ts +1 -0
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/utils/http.d.ts.map +1 -1
  119. package/package.json +7 -7
  120. package/src/artifacts/frame.ts +6 -1
  121. package/src/auth/browser-origin.ts +8 -3
  122. package/src/auth/experience.ts +1 -1
  123. package/src/auth/guard.ts +2 -2
  124. package/src/auth/public-routes.ts +6 -0
  125. package/src/auth/responses.ts +7 -6
  126. package/src/auth/scope.ts +32 -3
  127. package/src/models/display.ts +61 -16
  128. package/src/openapi/components.ts +54 -0
  129. package/src/openapi/tags.ts +12 -0
  130. package/src/registerRoutes.ts +14 -0
  131. package/src/routes/agent-api-gateway.ts +115 -91
  132. package/src/routes/agent-approval-gate.ts +213 -0
  133. package/src/routes/agent-approvals.ts +299 -0
  134. package/src/routes/agent-children.ts +209 -0
  135. package/src/routes/agent-memory.ts +210 -0
  136. package/src/routes/agents.ts +363 -142
  137. package/src/routes/ai-accounting.ts +4 -0
  138. package/src/routes/artifact-frames.ts +14 -8
  139. package/src/routes/artifacts.ts +297 -22
  140. package/src/routes/auth.ts +306 -13
  141. package/src/routes/files.ts +6 -7
  142. package/src/routes/model-calls.ts +120 -0
  143. package/src/routes/model-generations.ts +245 -0
  144. package/src/routes/models.ts +116 -9
  145. package/src/routes/objects.ts +55 -61
  146. package/src/routes/observed-agent-threads.ts +253 -0
  147. package/src/routes/ontology.ts +1 -0
  148. package/src/routes/users.ts +73 -0
  149. package/src/routes/workflows.ts +6 -9
  150. package/src/routes/ws/agents.ts +10 -5
  151. package/src/schemas/activity.ts +2 -0
  152. package/src/schemas/agent-approvals.ts +129 -0
  153. package/src/schemas/agent-memory.ts +96 -0
  154. package/src/schemas/agents.ts +239 -0
  155. package/src/schemas/ai-accounting.ts +40 -4
  156. package/src/schemas/ai-usage.ts +10 -0
  157. package/src/schemas/artifacts.ts +91 -3
  158. package/src/schemas/auth.ts +25 -0
  159. package/src/schemas/models.ts +197 -1
  160. package/src/schemas/objects.ts +181 -0
  161. package/src/schemas/ontology.ts +1 -0
  162. package/src/schemas/users.ts +24 -0
  163. package/src/schemas/workflows.ts +2 -0
  164. package/src/server.ts +9 -10
  165. package/src/utils/http.ts +2 -0
@@ -27,21 +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
38
  latestRun: {
39
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
39
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
40
40
  projectId: string;
41
41
  id: string;
42
+ queuedAt: string;
42
43
  executionId: string;
43
44
  attempt: number;
44
- queuedAt: string;
45
45
  target: {
46
46
  objectTypeId: string;
47
47
  };
@@ -67,12 +67,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
67
67
  startedAt?: string | undefined;
68
68
  finishedAt?: string | undefined;
69
69
  } | {
70
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
70
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
71
71
  projectId: string;
72
72
  id: string;
73
+ queuedAt: string;
73
74
  executionId: string;
74
75
  attempt: number;
75
- queuedAt: string;
76
76
  target: {
77
77
  targetObjectTypeId: string;
78
78
  sourceObjectTypeId: string;
@@ -99,12 +99,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
99
99
  startedAt?: string | undefined;
100
100
  finishedAt?: string | undefined;
101
101
  } | {
102
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
102
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
103
103
  projectId: string;
104
104
  id: string;
105
+ queuedAt: string;
105
106
  executionId: string;
106
107
  attempt: number;
107
- queuedAt: string;
108
108
  target: {
109
109
  objectTypeId: string;
110
110
  };
@@ -143,12 +143,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
143
143
  id: string;
144
144
  targetObjectTypeId: string;
145
145
  latestRun: {
146
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
146
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
147
147
  projectId: string;
148
148
  id: string;
149
+ queuedAt: string;
149
150
  executionId: string;
150
151
  attempt: number;
151
- queuedAt: string;
152
152
  target: {
153
153
  objectTypeId: string;
154
154
  };
@@ -174,12 +174,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
174
174
  startedAt?: string | undefined;
175
175
  finishedAt?: string | undefined;
176
176
  } | {
177
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
177
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
178
178
  projectId: string;
179
179
  id: string;
180
+ queuedAt: string;
180
181
  executionId: string;
181
182
  attempt: number;
182
- queuedAt: string;
183
183
  target: {
184
184
  targetObjectTypeId: string;
185
185
  sourceObjectTypeId: string;
@@ -206,12 +206,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
206
206
  startedAt?: string | undefined;
207
207
  finishedAt?: string | undefined;
208
208
  } | {
209
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
209
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
210
210
  projectId: string;
211
211
  id: string;
212
+ queuedAt: string;
212
213
  executionId: string;
213
214
  attempt: number;
214
- queuedAt: string;
215
215
  target: {
216
216
  objectTypeId: string;
217
217
  };
@@ -237,9 +237,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
237
237
  startedAt?: string | undefined;
238
238
  finishedAt?: string | undefined;
239
239
  } | null;
240
- datasetId: string;
241
240
  linkId: string;
242
241
  sourceObjectTypeId: string;
242
+ datasetId: string;
243
243
  sourceField: string;
244
244
  _tag: "LinkProjectionDefinition";
245
245
  targetField: string;
@@ -252,12 +252,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
252
252
  }>;
253
253
  objectTypeId: string;
254
254
  latestRun: {
255
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
255
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
256
256
  projectId: string;
257
257
  id: string;
258
+ queuedAt: string;
258
259
  executionId: string;
259
260
  attempt: number;
260
- queuedAt: string;
261
261
  target: {
262
262
  objectTypeId: string;
263
263
  };
@@ -283,12 +283,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
283
283
  startedAt?: string | undefined;
284
284
  finishedAt?: string | undefined;
285
285
  } | {
286
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
286
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
287
287
  projectId: string;
288
288
  id: string;
289
+ queuedAt: string;
289
290
  executionId: string;
290
291
  attempt: number;
291
- queuedAt: string;
292
292
  target: {
293
293
  targetObjectTypeId: string;
294
294
  sourceObjectTypeId: string;
@@ -315,12 +315,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
315
315
  startedAt?: string | undefined;
316
316
  finishedAt?: string | undefined;
317
317
  } | {
318
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
318
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
319
319
  projectId: string;
320
320
  id: string;
321
+ queuedAt: string;
321
322
  executionId: string;
322
323
  attempt: number;
323
- queuedAt: string;
324
324
  target: {
325
325
  objectTypeId: string;
326
326
  };
@@ -379,21 +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
390
  latestRun: {
391
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
391
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
392
392
  projectId: string;
393
393
  id: string;
394
+ queuedAt: string;
394
395
  executionId: string;
395
396
  attempt: number;
396
- queuedAt: string;
397
397
  target: {
398
398
  objectTypeId: string;
399
399
  };
@@ -419,12 +419,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
419
419
  startedAt?: string | undefined;
420
420
  finishedAt?: string | undefined;
421
421
  } | {
422
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
422
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
423
423
  projectId: string;
424
424
  id: string;
425
+ queuedAt: string;
425
426
  executionId: string;
426
427
  attempt: number;
427
- queuedAt: string;
428
428
  target: {
429
429
  targetObjectTypeId: string;
430
430
  sourceObjectTypeId: string;
@@ -451,12 +451,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
451
451
  startedAt?: string | undefined;
452
452
  finishedAt?: string | undefined;
453
453
  } | {
454
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
454
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
455
455
  projectId: string;
456
456
  id: string;
457
+ queuedAt: string;
457
458
  executionId: string;
458
459
  attempt: number;
459
- queuedAt: string;
460
460
  target: {
461
461
  objectTypeId: string;
462
462
  };
@@ -494,12 +494,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
494
494
  id: string;
495
495
  targetObjectTypeId: string;
496
496
  latestRun: {
497
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
497
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
498
498
  projectId: string;
499
499
  id: string;
500
+ queuedAt: string;
500
501
  executionId: string;
501
502
  attempt: number;
502
- queuedAt: string;
503
503
  target: {
504
504
  objectTypeId: string;
505
505
  };
@@ -525,12 +525,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
525
525
  startedAt?: string | undefined;
526
526
  finishedAt?: string | undefined;
527
527
  } | {
528
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
528
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
529
529
  projectId: string;
530
530
  id: string;
531
+ queuedAt: string;
531
532
  executionId: string;
532
533
  attempt: number;
533
- queuedAt: string;
534
534
  target: {
535
535
  targetObjectTypeId: string;
536
536
  sourceObjectTypeId: string;
@@ -557,12 +557,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
557
557
  startedAt?: string | undefined;
558
558
  finishedAt?: string | undefined;
559
559
  } | {
560
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
560
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
561
561
  projectId: string;
562
562
  id: string;
563
+ queuedAt: string;
563
564
  executionId: string;
564
565
  attempt: number;
565
- queuedAt: string;
566
566
  target: {
567
567
  objectTypeId: string;
568
568
  };
@@ -588,9 +588,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
588
588
  startedAt?: string | undefined;
589
589
  finishedAt?: string | undefined;
590
590
  } | null;
591
- datasetId: string;
592
591
  linkId: string;
593
592
  sourceObjectTypeId: string;
593
+ datasetId: string;
594
594
  sourceField: string;
595
595
  _tag: "LinkProjectionDefinition";
596
596
  targetField: string;
@@ -602,12 +602,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
602
602
  }>;
603
603
  objectTypeId: string;
604
604
  latestRun: {
605
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
605
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
606
606
  projectId: string;
607
607
  id: string;
608
+ queuedAt: string;
608
609
  executionId: string;
609
610
  attempt: number;
610
- queuedAt: string;
611
611
  target: {
612
612
  objectTypeId: string;
613
613
  };
@@ -633,12 +633,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
633
633
  startedAt?: string | undefined;
634
634
  finishedAt?: string | undefined;
635
635
  } | {
636
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
636
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
637
637
  projectId: string;
638
638
  id: string;
639
+ queuedAt: string;
639
640
  executionId: string;
640
641
  attempt: number;
641
- queuedAt: string;
642
642
  target: {
643
643
  targetObjectTypeId: string;
644
644
  sourceObjectTypeId: string;
@@ -665,12 +665,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
665
665
  startedAt?: string | undefined;
666
666
  finishedAt?: string | undefined;
667
667
  } | {
668
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
668
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
669
669
  projectId: string;
670
670
  id: string;
671
+ queuedAt: string;
671
672
  executionId: string;
672
673
  attempt: number;
673
- queuedAt: string;
674
674
  target: {
675
675
  objectTypeId: string;
676
676
  };
@@ -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: {
@@ -21,11 +21,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
21
21
  post: {
22
22
  body: {
23
23
  expiresAt: string;
24
- definitionId: string;
25
24
  target: {
26
25
  objectTypeId: string;
27
26
  primaryId: string;
28
27
  };
28
+ definitionId: string;
29
29
  destinationPath: string;
30
30
  };
31
31
  params: {};
@@ -36,13 +36,13 @@ 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;
41
- definitionId: string;
40
+ expiresAt: string;
42
41
  target: {
43
42
  objectTypeId: string;
44
43
  primaryId: string;
45
44
  };
45
+ definitionId: string;
46
46
  issuedBy: {
47
47
  id: string;
48
48
  type: "user" | "serviceAccount";
@@ -79,13 +79,13 @@ 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;
84
- definitionId: string;
83
+ expiresAt: string;
85
84
  target: {
86
85
  objectTypeId: string;
87
86
  primaryId: string;
88
87
  };
88
+ definitionId: string;
89
89
  issuedBy: {
90
90
  id: string;
91
91
  type: "user" | "serviceAccount";
@@ -132,13 +132,13 @@ 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;
137
- definitionId: string;
136
+ expiresAt: string;
138
137
  target: {
139
138
  objectTypeId: string;
140
139
  primaryId: string;
141
140
  };
141
+ definitionId: string;
142
142
  issuedBy: {
143
143
  id: string;
144
144
  type: "user" | "serviceAccount";
@@ -197,13 +197,13 @@ 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;
202
- definitionId: string;
201
+ expiresAt: string;
203
202
  target: {
204
203
  objectTypeId: string;
205
204
  primaryId: string;
206
205
  };
206
+ definitionId: string;
207
207
  issuedBy: {
208
208
  id: string;
209
209
  type: "user" | "serviceAccount";
@@ -26,13 +26,34 @@ 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";
34
+ target: {
35
+ kind: "dataset";
36
+ dataset: {
37
+ id: string;
38
+ schema: {
39
+ columns: {
40
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
41
+ name: string;
42
+ nullable?: boolean | undefined;
43
+ }[];
44
+ };
45
+ description?: string | undefined;
46
+ primaryKey?: string | string[] | undefined;
47
+ sequenceBy?: string | undefined;
48
+ partitionBy?: string[] | undefined;
49
+ };
50
+ };
30
51
  triggers: {
31
52
  type: "schedule";
32
53
  scheduleId: string;
33
54
  }[];
34
55
  latestRun: {
35
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
56
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
36
57
  projectId: string;
37
58
  id: string;
38
59
  mode: "append" | "merge" | "snapshot";
@@ -50,27 +71,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
50
71
  commitMessage?: string | undefined;
51
72
  rowsRead?: number | undefined;
52
73
  } | null;
53
- target: {
54
- kind: "dataset";
55
- dataset: {
56
- id: string;
57
- schema: {
58
- columns: {
59
- name: string;
60
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
61
- nullable?: boolean | undefined;
62
- }[];
63
- };
64
- description?: string | undefined;
65
- primaryKey?: string | string[] | undefined;
66
- sequenceBy?: string | undefined;
67
- partitionBy?: string[] | undefined;
68
- };
69
- };
70
- connector: {
71
- id: string;
72
- type: string;
73
- };
74
74
  }[];
75
75
  422: {
76
76
  type: "validation";
@@ -99,13 +99,34 @@ 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";
107
+ target: {
108
+ kind: "dataset";
109
+ dataset: {
110
+ id: string;
111
+ schema: {
112
+ columns: {
113
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
114
+ name: string;
115
+ nullable?: boolean | undefined;
116
+ }[];
117
+ };
118
+ description?: string | undefined;
119
+ primaryKey?: string | string[] | undefined;
120
+ sequenceBy?: string | undefined;
121
+ partitionBy?: string[] | undefined;
122
+ };
123
+ };
103
124
  triggers: {
104
125
  type: "schedule";
105
126
  scheduleId: string;
106
127
  }[];
107
128
  latestRun: {
108
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
129
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
109
130
  projectId: string;
110
131
  id: string;
111
132
  mode: "append" | "merge" | "snapshot";
@@ -123,27 +144,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
123
144
  commitMessage?: string | undefined;
124
145
  rowsRead?: number | undefined;
125
146
  } | null;
126
- target: {
127
- kind: "dataset";
128
- dataset: {
129
- id: string;
130
- schema: {
131
- columns: {
132
- name: string;
133
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
134
- nullable?: boolean | undefined;
135
- }[];
136
- };
137
- description?: string | undefined;
138
- primaryKey?: string | string[] | undefined;
139
- sequenceBy?: string | undefined;
140
- partitionBy?: string[] | undefined;
141
- };
142
- };
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,7 +182,7 @@ 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";