@sixb/server 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +3 -3
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/index.js +660 -685
  5. package/dist/index.js.map +14 -13
  6. package/dist/routes/action-runs.d.ts +11 -13
  7. package/dist/routes/action-runs.d.ts.map +1 -1
  8. package/dist/routes/actions.d.ts +44 -13
  9. package/dist/routes/actions.d.ts.map +1 -1
  10. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  11. package/dist/routes/agents.d.ts +20 -20
  12. package/dist/routes/connector-connection-runs.d.ts +21 -21
  13. package/dist/routes/connector-connections.d.ts +8 -8
  14. package/dist/routes/connectors.d.ts +2 -2
  15. package/dist/routes/datasets.d.ts +5 -5
  16. package/dist/routes/events.d.ts +4 -4
  17. package/dist/routes/files.d.ts +15 -12
  18. package/dist/routes/files.d.ts.map +1 -1
  19. package/dist/routes/ontology.d.ts +6 -6
  20. package/dist/routes/pipelines.d.ts +16 -16
  21. package/dist/routes/projections.d.ts +49 -49
  22. package/dist/routes/syncs.d.ts +10 -10
  23. package/dist/routes/webhook-runs.d.ts +2 -2
  24. package/dist/routes/workflows.d.ts +48 -48
  25. package/dist/routes/ws/events.d.ts +6 -9
  26. package/dist/routes/ws/events.d.ts.map +1 -1
  27. package/dist/schemas/actions.d.ts +100 -84
  28. package/dist/schemas/actions.d.ts.map +1 -1
  29. package/dist/schemas/agents.d.ts +20 -20
  30. package/dist/schemas/ai-limits.d.ts +10 -10
  31. package/dist/schemas/connectors.d.ts +8 -8
  32. package/dist/schemas/datasets.d.ts +40 -40
  33. package/dist/schemas/events.d.ts +24 -24
  34. package/dist/schemas/events.d.ts.map +1 -1
  35. package/dist/schemas/files.d.ts +4 -4
  36. package/dist/schemas/ontology.d.ts +40 -40
  37. package/dist/schemas/pipelines.d.ts +92 -92
  38. package/dist/schemas/projections.d.ts +290 -290
  39. package/dist/schemas/syncs.d.ts +34 -34
  40. package/dist/schemas/webhook-runs.d.ts +8 -8
  41. package/dist/schemas/workflows.d.ts +160 -160
  42. package/dist/server.d.ts +1 -0
  43. package/dist/server.d.ts.map +1 -1
  44. package/dist/utils/http.d.ts.map +1 -1
  45. package/dist/utils/request-body.d.ts +20 -6
  46. package/dist/utils/request-body.d.ts.map +1 -1
  47. package/package.json +5 -5
  48. package/src/actions/serialize.ts +55 -0
  49. package/src/routes/action-runs.ts +1 -54
  50. package/src/routes/actions.ts +26 -8
  51. package/src/routes/agent-api-gateway.ts +18 -42
  52. package/src/routes/files.ts +15 -63
  53. package/src/routes/ws/events.ts +2 -12
  54. package/src/schemas/actions.ts +21 -18
  55. package/src/server.ts +21 -3
  56. package/src/utils/http.ts +2 -0
  57. package/src/utils/request-body.ts +55 -6
@@ -22,7 +22,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
22
22
  body: unknown;
23
23
  params: {};
24
24
  query: {
25
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
25
+ status?: "succeeded" | "failed" | undefined;
26
26
  objectTypeId?: string | undefined;
27
27
  actionId?: string | undefined;
28
28
  primaryId?: string | undefined;
@@ -36,7 +36,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
36
36
  response: {
37
37
  200: {
38
38
  runs: {
39
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
39
+ status: "succeeded" | "failed";
40
40
  projectId: string;
41
41
  id: string;
42
42
  actionId: string;
@@ -47,11 +47,10 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
47
47
  objectTypeId: string;
48
48
  primaryId: string;
49
49
  };
50
- queuedAt: string;
51
- error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
52
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
53
- startedAt?: string | undefined;
54
- finishedAt?: string | undefined;
50
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
51
+ startedAt: string;
52
+ finishedAt: string;
53
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
55
54
  }[];
56
55
  hasMore: boolean;
57
56
  total: number;
@@ -88,7 +87,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
88
87
  headers: unknown;
89
88
  response: {
90
89
  200: {
91
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
90
+ status: "succeeded" | "failed";
92
91
  projectId: string;
93
92
  id: string;
94
93
  params: Record<string, unknown>;
@@ -100,8 +99,10 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
100
99
  objectTypeId: string;
101
100
  primaryId: string;
102
101
  };
103
- queuedAt: string;
104
- error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
102
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
103
+ startedAt: string;
104
+ finishedAt: string;
105
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
105
106
  writeback?: {
106
107
  status: "succeeded";
107
108
  completedAt: string;
@@ -119,9 +120,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
119
120
  status: "failed";
120
121
  completedAt: string;
121
122
  } | undefined;
122
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
123
- startedAt?: string | undefined;
124
- finishedAt?: string | undefined;
125
123
  };
126
124
  404: {
127
125
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
1
+ {"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoEpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
@@ -132,14 +132,39 @@ export declare function registerActionRoutes(app: Elysia, host: SixbHostView): E
132
132
  headers: unknown;
133
133
  response: {
134
134
  200: {
135
- runId: string;
136
- queuedAt: string;
137
- created: boolean;
138
- jobId?: string | undefined;
139
- } | {
140
- error: string;
141
- code?: import("@sixb/core").SixbErrorCode;
142
- details?: import("@sixb/core").ReadonlyJsonValue;
135
+ status: "succeeded" | "failed";
136
+ projectId: string;
137
+ id: string;
138
+ params: Record<string, unknown>;
139
+ actionId: string;
140
+ subject: {
141
+ kind: "none";
142
+ } | {
143
+ kind: "object";
144
+ objectTypeId: string;
145
+ primaryId: string;
146
+ };
147
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
148
+ startedAt: string;
149
+ finishedAt: string;
150
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
151
+ writeback?: {
152
+ status: "succeeded";
153
+ completedAt: string;
154
+ result: import("../schemas/common").JsonValue;
155
+ } | {
156
+ error: import("@sixb/core").ActionRunFailure<"writeback">;
157
+ status: "failed";
158
+ completedAt: string;
159
+ } | undefined;
160
+ effects?: {
161
+ status: "succeeded";
162
+ completedAt: string;
163
+ } | {
164
+ error: import("@sixb/core").ActionRunFailure<"effects">;
165
+ status: "failed";
166
+ completedAt: string;
167
+ } | undefined;
143
168
  };
144
169
  404: {
145
170
  error: string;
@@ -147,14 +172,20 @@ export declare function registerActionRoutes(app: Elysia, host: SixbHostView): E
147
172
  403: {
148
173
  error: string;
149
174
  };
175
+ 503: {
176
+ error: string;
177
+ code: "runtime.stopping";
178
+ };
179
+ 409: {
180
+ error: string;
181
+ code: "action.run_in_progress";
182
+ };
150
183
  400: {
151
184
  error: string;
152
185
  };
153
- 202: {
154
- runId: string;
155
- queuedAt: string;
156
- created: boolean;
157
- jobId?: string | undefined;
186
+ 500: {
187
+ error: string;
188
+ code: "action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
158
189
  };
159
190
  422: {
160
191
  type: "validation";
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EnE"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
1
+ {"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
@@ -151,10 +151,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
151
151
  404: {
152
152
  error: string;
153
153
  };
154
- 400: {
154
+ 409: {
155
155
  error: string;
156
156
  };
157
- 409: {
157
+ 400: {
158
158
  error: string;
159
159
  };
160
160
  501: {
@@ -292,10 +292,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
292
292
  404: {
293
293
  error: string;
294
294
  };
295
- 400: {
295
+ 409: {
296
296
  error: string;
297
297
  };
298
- 409: {
298
+ 400: {
299
299
  error: string;
300
300
  };
301
301
  422: {
@@ -592,7 +592,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
592
592
  response: {
593
593
  200: {
594
594
  run: {
595
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
595
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
596
596
  projectId: string;
597
597
  id: string;
598
598
  attempt: number;
@@ -657,12 +657,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
657
657
  403: {
658
658
  error: string;
659
659
  };
660
- 400: {
660
+ 409: {
661
661
  error: string;
662
- code?: string | undefined;
663
662
  };
664
- 409: {
663
+ 400: {
665
664
  error: string;
665
+ code?: string | undefined;
666
666
  };
667
667
  429: {
668
668
  error: string;
@@ -674,7 +674,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
674
674
  };
675
675
  202: {
676
676
  run: {
677
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
677
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
678
678
  projectId: string;
679
679
  id: string;
680
680
  attempt: number;
@@ -760,7 +760,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
760
760
  response: {
761
761
  200: {
762
762
  run: {
763
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
763
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
764
764
  projectId: string;
765
765
  id: string;
766
766
  attempt: number;
@@ -822,10 +822,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
822
822
  404: {
823
823
  error: string;
824
824
  };
825
- 400: {
825
+ 409: {
826
826
  error: string;
827
827
  };
828
- 409: {
828
+ 400: {
829
829
  error: string;
830
830
  };
831
831
  501: {
@@ -833,7 +833,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
833
833
  };
834
834
  202: {
835
835
  run: {
836
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
836
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
837
837
  projectId: string;
838
838
  id: string;
839
839
  attempt: number;
@@ -920,7 +920,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
920
920
  response: {
921
921
  200: {
922
922
  run: {
923
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
923
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
924
924
  projectId: string;
925
925
  id: string;
926
926
  attempt: number;
@@ -982,10 +982,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
982
982
  404: {
983
983
  error: string;
984
984
  };
985
- 400: {
985
+ 409: {
986
986
  error: string;
987
987
  };
988
- 409: {
988
+ 400: {
989
989
  error: string;
990
990
  };
991
991
  429: {
@@ -998,7 +998,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
998
998
  };
999
999
  202: {
1000
1000
  run: {
1001
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1001
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1002
1002
  projectId: string;
1003
1003
  id: string;
1004
1004
  attempt: number;
@@ -1080,7 +1080,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1080
1080
  threadId: string;
1081
1081
  };
1082
1082
  query: {
1083
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
1083
+ status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
1084
1084
  limit?: string | undefined;
1085
1085
  offset?: string | undefined;
1086
1086
  order?: "asc" | "desc" | undefined;
@@ -1089,7 +1089,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1089
1089
  response: {
1090
1090
  200: {
1091
1091
  runs: {
1092
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1092
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1093
1093
  projectId: string;
1094
1094
  id: string;
1095
1095
  attempt: number;
@@ -1182,7 +1182,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1182
1182
  headers: unknown;
1183
1183
  response: {
1184
1184
  200: {
1185
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1185
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1186
1186
  projectId: string;
1187
1187
  id: string;
1188
1188
  attempt: number;
@@ -115,7 +115,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
115
115
  };
116
116
  slot: string;
117
117
  } | {
118
- status: "cancelled" | "expired";
118
+ status: "expired" | "cancelled";
119
119
  id: string;
120
120
  kind: "connect" | "reauthorize";
121
121
  finishedAt: string;
@@ -205,17 +205,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
205
205
  error: string;
206
206
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
207
207
  };
208
- 400: {
208
+ 409: {
209
209
  error: string;
210
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
210
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
211
211
  };
212
212
  502: {
213
213
  error: string;
214
214
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
215
215
  };
216
- 409: {
216
+ 400: {
217
217
  error: string;
218
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
218
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
219
219
  };
220
220
  500: {
221
221
  error: string;
@@ -353,7 +353,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
353
353
  };
354
354
  slot: string;
355
355
  } | {
356
- status: "cancelled" | "expired";
356
+ status: "expired" | "cancelled";
357
357
  id: string;
358
358
  kind: "connect" | "reauthorize";
359
359
  finishedAt: string;
@@ -497,7 +497,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
497
497
  };
498
498
  slot: string;
499
499
  } | {
500
- status: "cancelled" | "expired";
500
+ status: "expired" | "cancelled";
501
501
  id: string;
502
502
  kind: "connect" | "reauthorize";
503
503
  finishedAt: string;
@@ -518,14 +518,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
518
518
  403: {
519
519
  error: string;
520
520
  };
521
- 400: {
522
- error: string;
523
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
524
- };
525
521
  409: {
526
522
  error: string;
527
523
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
528
524
  };
525
+ 400: {
526
+ error: string;
527
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
528
+ };
529
529
  500: {
530
530
  error: string;
531
531
  code?: "internal.unexpected" | undefined;
@@ -613,7 +613,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
613
613
  };
614
614
  slot: string;
615
615
  } | {
616
- status: "cancelled" | "expired";
616
+ status: "expired" | "cancelled";
617
617
  id: string;
618
618
  kind: "connect" | "reauthorize";
619
619
  finishedAt: string;
@@ -744,7 +744,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
744
744
  };
745
745
  slot: string;
746
746
  } | {
747
- status: "cancelled" | "expired";
747
+ status: "expired" | "cancelled";
748
748
  id: string;
749
749
  kind: "connect" | "reauthorize";
750
750
  finishedAt: string;
@@ -763,14 +763,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
763
763
  403: {
764
764
  error: string;
765
765
  };
766
- 400: {
767
- error: string;
768
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
769
- };
770
766
  409: {
771
767
  error: string;
772
768
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
773
769
  };
770
+ 400: {
771
+ error: string;
772
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
773
+ };
774
774
  500: {
775
775
  error: string;
776
776
  code?: "internal.unexpected" | undefined;
@@ -842,17 +842,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
842
842
  error: string;
843
843
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
844
844
  };
845
- 400: {
845
+ 409: {
846
846
  error: string;
847
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
847
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
848
848
  };
849
849
  502: {
850
850
  error: string;
851
851
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
852
852
  };
853
- 409: {
853
+ 400: {
854
854
  error: string;
855
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
855
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
856
856
  };
857
857
  500: {
858
858
  error: string;
@@ -98,14 +98,14 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
98
98
  403: {
99
99
  error: string;
100
100
  };
101
- 400: {
102
- error: string;
103
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
104
- };
105
101
  409: {
106
102
  error: string;
107
103
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
108
104
  };
105
+ 400: {
106
+ error: string;
107
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
108
+ };
109
109
  500: {
110
110
  error: string;
111
111
  code?: "internal.unexpected" | undefined;
@@ -170,17 +170,17 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
170
170
  error: string;
171
171
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
172
172
  };
173
- 400: {
173
+ 409: {
174
174
  error: string;
175
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
175
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
176
176
  };
177
177
  502: {
178
178
  error: string;
179
179
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
180
180
  };
181
- 409: {
181
+ 400: {
182
182
  error: string;
183
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
183
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
184
184
  };
185
185
  500: {
186
186
  error: string;
@@ -30,7 +30,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
30
30
  id: string;
31
31
  method: "POST";
32
32
  route: string;
33
- bodyFormat: "json" | "text" | "raw";
33
+ bodyFormat: "text" | "json" | "raw";
34
34
  hasVerify: boolean;
35
35
  hasIdempotency: boolean;
36
36
  }[];
@@ -71,7 +71,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
71
71
  id: string;
72
72
  method: "POST";
73
73
  route: string;
74
- bodyFormat: "json" | "text" | "raw";
74
+ bodyFormat: "text" | "json" | "raw";
75
75
  hasVerify: boolean;
76
76
  hasIdempotency: boolean;
77
77
  }[];
@@ -30,7 +30,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
30
30
  schema: {
31
31
  columns: {
32
32
  name: string;
33
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
33
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
34
34
  nullable?: boolean | undefined;
35
35
  }[];
36
36
  };
@@ -85,7 +85,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
85
85
  schema: {
86
86
  columns: {
87
87
  name: string;
88
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
88
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
89
89
  nullable?: boolean | undefined;
90
90
  }[];
91
91
  };
@@ -149,7 +149,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
149
149
  schema: {
150
150
  columns: {
151
151
  name: string;
152
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
152
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
153
153
  nullable?: boolean | undefined;
154
154
  }[];
155
155
  };
@@ -212,7 +212,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
212
212
  schema: {
213
213
  columns: {
214
214
  name: string;
215
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
215
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
216
216
  nullable?: boolean | undefined;
217
217
  }[];
218
218
  };
@@ -280,7 +280,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
280
280
  schema: {
281
281
  columns: {
282
282
  name: string;
283
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
283
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
284
284
  nullable?: boolean | undefined;
285
285
  }[];
286
286
  };
@@ -22,9 +22,9 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
22
22
  body: unknown;
23
23
  params: {};
24
24
  query: {
25
- type?: "object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | undefined;
25
+ type?: "object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | undefined;
26
26
  limit?: string | undefined;
27
- topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
27
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
28
28
  afterCursor?: string | undefined;
29
29
  };
30
30
  headers: unknown;
@@ -36,10 +36,10 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
36
36
  } | {
37
37
  projectId: string;
38
38
  id: string;
39
- type: "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
39
+ type: "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
40
40
  occurredAt: string;
41
41
  payload: Record<string, unknown>;
42
- topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
42
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules";
43
43
  partitionKey: string;
44
44
  schemaVersion: 1;
45
45
  cursor: string;