@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
@@ -24,7 +24,7 @@ export declare const PipelineRunsQuerySchema: z.ZodObject<{
24
24
  offset: z.ZodOptional<z.ZodString>;
25
25
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
27
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
28
28
  startedAfter?: string | undefined;
29
29
  startedBefore?: string | undefined;
30
30
  limit?: string | undefined;
@@ -32,7 +32,7 @@ export declare const PipelineRunsQuerySchema: z.ZodObject<{
32
32
  order?: "asc" | "desc" | undefined;
33
33
  pipelineId?: string | undefined;
34
34
  }, {
35
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
35
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
36
36
  startedAfter?: string | undefined;
37
37
  startedBefore?: string | undefined;
38
38
  limit?: string | undefined;
@@ -60,11 +60,11 @@ export declare const PipelineRunSchema: z.ZodObject<{
60
60
  }>>;
61
61
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
63
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
64
64
  projectId: string;
65
65
  id: string;
66
- pipelineId: string;
67
66
  queuedAt: string;
67
+ pipelineId: string;
68
68
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
69
69
  startedAt?: string | undefined;
70
70
  finishedAt?: string | undefined;
@@ -73,11 +73,11 @@ export declare const PipelineRunSchema: z.ZodObject<{
73
73
  versionId: string;
74
74
  } | undefined;
75
75
  }, {
76
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
76
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
77
77
  projectId: string;
78
78
  id: string;
79
- pipelineId: string;
80
79
  queuedAt: string;
80
+ pipelineId: string;
81
81
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
82
82
  startedAt?: string | undefined;
83
83
  finishedAt?: string | undefined;
@@ -120,18 +120,18 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
120
120
  rowsWritten: z.ZodOptional<z.ZodNumber>;
121
121
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
122
122
  }, "strip", z.ZodTypeAny, {
123
- status: "succeeded" | "failed" | "running" | "cancelled";
123
+ status: "succeeded" | "failed" | "cancelled" | "running";
124
124
  projectId: string;
125
125
  id: string;
126
126
  mode: "append" | "snapshot";
127
127
  startedAt: string;
128
- datasetId: string;
129
128
  inputs: {
130
129
  datasetId: string;
131
130
  versionId: string;
132
131
  }[];
133
- pipelineId: string;
132
+ datasetId: string;
134
133
  stepId: string;
134
+ pipelineId: string;
135
135
  pipelineRunId: string;
136
136
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
137
137
  finishedAt?: string | undefined;
@@ -141,18 +141,18 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
141
141
  } | undefined;
142
142
  rowsWritten?: number | undefined;
143
143
  }, {
144
- status: "succeeded" | "failed" | "running" | "cancelled";
144
+ status: "succeeded" | "failed" | "cancelled" | "running";
145
145
  projectId: string;
146
146
  id: string;
147
147
  mode: "append" | "snapshot";
148
148
  startedAt: string;
149
- datasetId: string;
150
149
  inputs: {
151
150
  datasetId: string;
152
151
  versionId: string;
153
152
  }[];
154
- pipelineId: string;
153
+ datasetId: string;
155
154
  stepId: string;
155
+ pipelineId: string;
156
156
  pipelineRunId: string;
157
157
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
158
158
  finishedAt?: string | undefined;
@@ -195,24 +195,24 @@ export declare const PipelineStepSchema: z.ZodObject<{
195
195
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
196
196
  nullable: z.ZodOptional<z.ZodBoolean>;
197
197
  }, "strip", z.ZodTypeAny, {
198
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
198
199
  name: string;
199
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
200
200
  nullable?: boolean | undefined;
201
201
  }, {
202
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
202
203
  name: string;
203
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
204
204
  nullable?: boolean | undefined;
205
205
  }>, "many">;
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  columns: {
208
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
208
209
  name: string;
209
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
210
210
  nullable?: boolean | undefined;
211
211
  }[];
212
212
  }, {
213
213
  columns: {
214
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
214
215
  name: string;
215
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
216
216
  nullable?: boolean | undefined;
217
217
  }[];
218
218
  }>;
@@ -220,8 +220,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
220
220
  id: string;
221
221
  schema: {
222
222
  columns: {
223
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
223
224
  name: string;
224
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
225
225
  nullable?: boolean | undefined;
226
226
  }[];
227
227
  };
@@ -233,8 +233,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
233
233
  id: string;
234
234
  schema: {
235
235
  columns: {
236
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
236
237
  name: string;
237
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
238
238
  nullable?: boolean | undefined;
239
239
  }[];
240
240
  };
@@ -249,8 +249,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
249
249
  id: string;
250
250
  schema: {
251
251
  columns: {
252
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
252
253
  name: string;
253
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
254
254
  nullable?: boolean | undefined;
255
255
  }[];
256
256
  };
@@ -265,8 +265,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
265
265
  id: string;
266
266
  schema: {
267
267
  columns: {
268
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
268
269
  name: string;
269
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
270
270
  nullable?: boolean | undefined;
271
271
  }[];
272
272
  };
@@ -288,24 +288,24 @@ export declare const PipelineStepSchema: z.ZodObject<{
288
288
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
289
289
  nullable: z.ZodOptional<z.ZodBoolean>;
290
290
  }, "strip", z.ZodTypeAny, {
291
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
291
292
  name: string;
292
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
293
293
  nullable?: boolean | undefined;
294
294
  }, {
295
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
295
296
  name: string;
296
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
297
297
  nullable?: boolean | undefined;
298
298
  }>, "many">;
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  columns: {
301
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
301
302
  name: string;
302
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
303
303
  nullable?: boolean | undefined;
304
304
  }[];
305
305
  }, {
306
306
  columns: {
307
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
307
308
  name: string;
308
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
309
309
  nullable?: boolean | undefined;
310
310
  }[];
311
311
  }>;
@@ -313,8 +313,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
313
313
  id: string;
314
314
  schema: {
315
315
  columns: {
316
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
316
317
  name: string;
317
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
318
318
  nullable?: boolean | undefined;
319
319
  }[];
320
320
  };
@@ -326,8 +326,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
326
326
  id: string;
327
327
  schema: {
328
328
  columns: {
329
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
329
330
  name: string;
330
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
331
331
  nullable?: boolean | undefined;
332
332
  }[];
333
333
  };
@@ -338,13 +338,19 @@ export declare const PipelineStepSchema: z.ZodObject<{
338
338
  }>;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  id: string;
341
+ executor: {
342
+ kind: "sql";
343
+ dialect: "duckdb";
344
+ } | {
345
+ kind: "run";
346
+ };
341
347
  mode: "append" | "snapshot";
342
348
  output: {
343
349
  id: string;
344
350
  schema: {
345
351
  columns: {
352
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
346
353
  name: string;
347
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
348
354
  nullable?: boolean | undefined;
349
355
  }[];
350
356
  };
@@ -359,8 +365,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
359
365
  id: string;
360
366
  schema: {
361
367
  columns: {
368
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
362
369
  name: string;
363
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
364
370
  nullable?: boolean | undefined;
365
371
  }[];
366
372
  };
@@ -370,21 +376,21 @@ export declare const PipelineStepSchema: z.ZodObject<{
370
376
  partitionBy?: string[] | undefined;
371
377
  };
372
378
  }[];
379
+ }, {
380
+ id: string;
373
381
  executor: {
374
382
  kind: "sql";
375
383
  dialect: "duckdb";
376
384
  } | {
377
385
  kind: "run";
378
386
  };
379
- }, {
380
- id: string;
381
387
  mode: "append" | "snapshot";
382
388
  output: {
383
389
  id: string;
384
390
  schema: {
385
391
  columns: {
392
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
386
393
  name: string;
387
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
388
394
  nullable?: boolean | undefined;
389
395
  }[];
390
396
  };
@@ -399,8 +405,8 @@ export declare const PipelineStepSchema: z.ZodObject<{
399
405
  id: string;
400
406
  schema: {
401
407
  columns: {
408
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
402
409
  name: string;
403
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
404
410
  nullable?: boolean | undefined;
405
411
  }[];
406
412
  };
@@ -410,12 +416,6 @@ export declare const PipelineStepSchema: z.ZodObject<{
410
416
  partitionBy?: string[] | undefined;
411
417
  };
412
418
  }[];
413
- executor: {
414
- kind: "sql";
415
- dialect: "duckdb";
416
- } | {
417
- kind: "run";
418
- };
419
419
  }>;
420
420
  export declare const PipelineSchema: z.ZodObject<{
421
421
  id: z.ZodString;
@@ -466,24 +466,24 @@ export declare const PipelineSchema: z.ZodObject<{
466
466
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
467
467
  nullable: z.ZodOptional<z.ZodBoolean>;
468
468
  }, "strip", z.ZodTypeAny, {
469
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
469
470
  name: string;
470
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
471
471
  nullable?: boolean | undefined;
472
472
  }, {
473
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
473
474
  name: string;
474
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
475
475
  nullable?: boolean | undefined;
476
476
  }>, "many">;
477
477
  }, "strip", z.ZodTypeAny, {
478
478
  columns: {
479
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
479
480
  name: string;
480
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
481
481
  nullable?: boolean | undefined;
482
482
  }[];
483
483
  }, {
484
484
  columns: {
485
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
485
486
  name: string;
486
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
487
487
  nullable?: boolean | undefined;
488
488
  }[];
489
489
  }>;
@@ -491,8 +491,8 @@ export declare const PipelineSchema: z.ZodObject<{
491
491
  id: string;
492
492
  schema: {
493
493
  columns: {
494
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
494
495
  name: string;
495
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
496
496
  nullable?: boolean | undefined;
497
497
  }[];
498
498
  };
@@ -504,8 +504,8 @@ export declare const PipelineSchema: z.ZodObject<{
504
504
  id: string;
505
505
  schema: {
506
506
  columns: {
507
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
507
508
  name: string;
508
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
509
509
  nullable?: boolean | undefined;
510
510
  }[];
511
511
  };
@@ -520,8 +520,8 @@ export declare const PipelineSchema: z.ZodObject<{
520
520
  id: string;
521
521
  schema: {
522
522
  columns: {
523
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
523
524
  name: string;
524
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
525
525
  nullable?: boolean | undefined;
526
526
  }[];
527
527
  };
@@ -536,8 +536,8 @@ export declare const PipelineSchema: z.ZodObject<{
536
536
  id: string;
537
537
  schema: {
538
538
  columns: {
539
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
539
540
  name: string;
540
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
541
541
  nullable?: boolean | undefined;
542
542
  }[];
543
543
  };
@@ -559,24 +559,24 @@ export declare const PipelineSchema: z.ZodObject<{
559
559
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
560
560
  nullable: z.ZodOptional<z.ZodBoolean>;
561
561
  }, "strip", z.ZodTypeAny, {
562
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
562
563
  name: string;
563
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
564
564
  nullable?: boolean | undefined;
565
565
  }, {
566
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
566
567
  name: string;
567
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
568
568
  nullable?: boolean | undefined;
569
569
  }>, "many">;
570
570
  }, "strip", z.ZodTypeAny, {
571
571
  columns: {
572
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
572
573
  name: string;
573
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
574
574
  nullable?: boolean | undefined;
575
575
  }[];
576
576
  }, {
577
577
  columns: {
578
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
578
579
  name: string;
579
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
580
580
  nullable?: boolean | undefined;
581
581
  }[];
582
582
  }>;
@@ -584,8 +584,8 @@ export declare const PipelineSchema: z.ZodObject<{
584
584
  id: string;
585
585
  schema: {
586
586
  columns: {
587
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
587
588
  name: string;
588
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
589
589
  nullable?: boolean | undefined;
590
590
  }[];
591
591
  };
@@ -597,8 +597,8 @@ export declare const PipelineSchema: z.ZodObject<{
597
597
  id: string;
598
598
  schema: {
599
599
  columns: {
600
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
600
601
  name: string;
601
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
602
602
  nullable?: boolean | undefined;
603
603
  }[];
604
604
  };
@@ -609,13 +609,19 @@ export declare const PipelineSchema: z.ZodObject<{
609
609
  }>;
610
610
  }, "strip", z.ZodTypeAny, {
611
611
  id: string;
612
+ executor: {
613
+ kind: "sql";
614
+ dialect: "duckdb";
615
+ } | {
616
+ kind: "run";
617
+ };
612
618
  mode: "append" | "snapshot";
613
619
  output: {
614
620
  id: string;
615
621
  schema: {
616
622
  columns: {
623
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
617
624
  name: string;
618
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
619
625
  nullable?: boolean | undefined;
620
626
  }[];
621
627
  };
@@ -630,8 +636,8 @@ export declare const PipelineSchema: z.ZodObject<{
630
636
  id: string;
631
637
  schema: {
632
638
  columns: {
639
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
633
640
  name: string;
634
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
635
641
  nullable?: boolean | undefined;
636
642
  }[];
637
643
  };
@@ -641,21 +647,21 @@ export declare const PipelineSchema: z.ZodObject<{
641
647
  partitionBy?: string[] | undefined;
642
648
  };
643
649
  }[];
650
+ }, {
651
+ id: string;
644
652
  executor: {
645
653
  kind: "sql";
646
654
  dialect: "duckdb";
647
655
  } | {
648
656
  kind: "run";
649
657
  };
650
- }, {
651
- id: string;
652
658
  mode: "append" | "snapshot";
653
659
  output: {
654
660
  id: string;
655
661
  schema: {
656
662
  columns: {
663
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
657
664
  name: string;
658
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
659
665
  nullable?: boolean | undefined;
660
666
  }[];
661
667
  };
@@ -670,8 +676,8 @@ export declare const PipelineSchema: z.ZodObject<{
670
676
  id: string;
671
677
  schema: {
672
678
  columns: {
679
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
673
680
  name: string;
674
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
675
681
  nullable?: boolean | undefined;
676
682
  }[];
677
683
  };
@@ -681,24 +687,24 @@ export declare const PipelineSchema: z.ZodObject<{
681
687
  partitionBy?: string[] | undefined;
682
688
  };
683
689
  }[];
690
+ }>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ kind: "step";
693
+ step: {
694
+ id: string;
684
695
  executor: {
685
696
  kind: "sql";
686
697
  dialect: "duckdb";
687
698
  } | {
688
699
  kind: "run";
689
700
  };
690
- }>;
691
- }, "strip", z.ZodTypeAny, {
692
- kind: "step";
693
- step: {
694
- id: string;
695
701
  mode: "append" | "snapshot";
696
702
  output: {
697
703
  id: string;
698
704
  schema: {
699
705
  columns: {
706
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
700
707
  name: string;
701
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
702
708
  nullable?: boolean | undefined;
703
709
  }[];
704
710
  };
@@ -713,8 +719,8 @@ export declare const PipelineSchema: z.ZodObject<{
713
719
  id: string;
714
720
  schema: {
715
721
  columns: {
722
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
716
723
  name: string;
717
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
718
724
  nullable?: boolean | undefined;
719
725
  }[];
720
726
  };
@@ -724,24 +730,24 @@ export declare const PipelineSchema: z.ZodObject<{
724
730
  partitionBy?: string[] | undefined;
725
731
  };
726
732
  }[];
733
+ };
734
+ }, {
735
+ kind: "step";
736
+ step: {
737
+ id: string;
727
738
  executor: {
728
739
  kind: "sql";
729
740
  dialect: "duckdb";
730
741
  } | {
731
742
  kind: "run";
732
743
  };
733
- };
734
- }, {
735
- kind: "step";
736
- step: {
737
- id: string;
738
744
  mode: "append" | "snapshot";
739
745
  output: {
740
746
  id: string;
741
747
  schema: {
742
748
  columns: {
749
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
743
750
  name: string;
744
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
745
751
  nullable?: boolean | undefined;
746
752
  }[];
747
753
  };
@@ -756,8 +762,8 @@ export declare const PipelineSchema: z.ZodObject<{
756
762
  id: string;
757
763
  schema: {
758
764
  columns: {
765
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
759
766
  name: string;
760
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
761
767
  nullable?: boolean | undefined;
762
768
  }[];
763
769
  };
@@ -767,12 +773,6 @@ export declare const PipelineSchema: z.ZodObject<{
767
773
  partitionBy?: string[] | undefined;
768
774
  };
769
775
  }[];
770
- executor: {
771
- kind: "sql";
772
- dialect: "duckdb";
773
- } | {
774
- kind: "run";
775
- };
776
776
  };
777
777
  }>, "many">;
778
778
  }, "strip", z.ZodTypeAny, {
@@ -781,13 +781,19 @@ export declare const PipelineSchema: z.ZodObject<{
781
781
  kind: "step";
782
782
  step: {
783
783
  id: string;
784
+ executor: {
785
+ kind: "sql";
786
+ dialect: "duckdb";
787
+ } | {
788
+ kind: "run";
789
+ };
784
790
  mode: "append" | "snapshot";
785
791
  output: {
786
792
  id: string;
787
793
  schema: {
788
794
  columns: {
795
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
789
796
  name: string;
790
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
791
797
  nullable?: boolean | undefined;
792
798
  }[];
793
799
  };
@@ -802,8 +808,8 @@ export declare const PipelineSchema: z.ZodObject<{
802
808
  id: string;
803
809
  schema: {
804
810
  columns: {
811
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
805
812
  name: string;
806
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
807
813
  nullable?: boolean | undefined;
808
814
  }[];
809
815
  };
@@ -813,12 +819,6 @@ export declare const PipelineSchema: z.ZodObject<{
813
819
  partitionBy?: string[] | undefined;
814
820
  };
815
821
  }[];
816
- executor: {
817
- kind: "sql";
818
- dialect: "duckdb";
819
- } | {
820
- kind: "run";
821
- };
822
822
  };
823
823
  }[];
824
824
  }, {
@@ -827,13 +827,19 @@ export declare const PipelineSchema: z.ZodObject<{
827
827
  kind: "step";
828
828
  step: {
829
829
  id: string;
830
+ executor: {
831
+ kind: "sql";
832
+ dialect: "duckdb";
833
+ } | {
834
+ kind: "run";
835
+ };
830
836
  mode: "append" | "snapshot";
831
837
  output: {
832
838
  id: string;
833
839
  schema: {
834
840
  columns: {
841
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
835
842
  name: string;
836
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
837
843
  nullable?: boolean | undefined;
838
844
  }[];
839
845
  };
@@ -848,8 +854,8 @@ export declare const PipelineSchema: z.ZodObject<{
848
854
  id: string;
849
855
  schema: {
850
856
  columns: {
857
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
851
858
  name: string;
852
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
853
859
  nullable?: boolean | undefined;
854
860
  }[];
855
861
  };
@@ -859,12 +865,6 @@ export declare const PipelineSchema: z.ZodObject<{
859
865
  partitionBy?: string[] | undefined;
860
866
  };
861
867
  }[];
862
- executor: {
863
- kind: "sql";
864
- dialect: "duckdb";
865
- } | {
866
- kind: "run";
867
- };
868
868
  };
869
869
  }[];
870
870
  }>;
@@ -888,11 +888,11 @@ export declare const PipelineSchema: z.ZodObject<{
888
888
  }>>;
889
889
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
890
890
  }, "strip", z.ZodTypeAny, {
891
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
891
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
892
892
  projectId: string;
893
893
  id: string;
894
- pipelineId: string;
895
894
  queuedAt: string;
895
+ pipelineId: string;
896
896
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
897
897
  startedAt?: string | undefined;
898
898
  finishedAt?: string | undefined;
@@ -901,11 +901,11 @@ export declare const PipelineSchema: z.ZodObject<{
901
901
  versionId: string;
902
902
  } | undefined;
903
903
  }, {
904
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
904
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
905
905
  projectId: string;
906
906
  id: string;
907
- pipelineId: string;
908
907
  queuedAt: string;
908
+ pipelineId: string;
909
909
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
910
910
  startedAt?: string | undefined;
911
911
  finishedAt?: string | undefined;
@@ -920,19 +920,39 @@ export declare const PipelineSchema: z.ZodObject<{
920
920
  type: "schedule";
921
921
  scheduleId: string;
922
922
  }[];
923
+ latestRun: {
924
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
925
+ projectId: string;
926
+ id: string;
927
+ queuedAt: string;
928
+ pipelineId: string;
929
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
930
+ startedAt?: string | undefined;
931
+ finishedAt?: string | undefined;
932
+ output?: {
933
+ datasetId: string;
934
+ versionId: string;
935
+ } | undefined;
936
+ } | null;
923
937
  graph: {
924
938
  kind: "sequence";
925
939
  nodes: {
926
940
  kind: "step";
927
941
  step: {
928
942
  id: string;
943
+ executor: {
944
+ kind: "sql";
945
+ dialect: "duckdb";
946
+ } | {
947
+ kind: "run";
948
+ };
929
949
  mode: "append" | "snapshot";
930
950
  output: {
931
951
  id: string;
932
952
  schema: {
933
953
  columns: {
954
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
934
955
  name: string;
935
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
936
956
  nullable?: boolean | undefined;
937
957
  }[];
938
958
  };
@@ -947,8 +967,8 @@ export declare const PipelineSchema: z.ZodObject<{
947
967
  id: string;
948
968
  schema: {
949
969
  columns: {
970
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
950
971
  name: string;
951
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
952
972
  nullable?: boolean | undefined;
953
973
  }[];
954
974
  };
@@ -958,21 +978,21 @@ export declare const PipelineSchema: z.ZodObject<{
958
978
  partitionBy?: string[] | undefined;
959
979
  };
960
980
  }[];
961
- executor: {
962
- kind: "sql";
963
- dialect: "duckdb";
964
- } | {
965
- kind: "run";
966
- };
967
981
  };
968
982
  }[];
969
983
  };
984
+ }, {
985
+ id: string;
986
+ triggers: {
987
+ type: "schedule";
988
+ scheduleId: string;
989
+ }[];
970
990
  latestRun: {
971
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
991
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
972
992
  projectId: string;
973
993
  id: string;
974
- pipelineId: string;
975
994
  queuedAt: string;
995
+ pipelineId: string;
976
996
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
977
997
  startedAt?: string | undefined;
978
998
  finishedAt?: string | undefined;
@@ -981,25 +1001,25 @@ export declare const PipelineSchema: z.ZodObject<{
981
1001
  versionId: string;
982
1002
  } | undefined;
983
1003
  } | null;
984
- }, {
985
- id: string;
986
- triggers: {
987
- type: "schedule";
988
- scheduleId: string;
989
- }[];
990
1004
  graph: {
991
1005
  kind: "sequence";
992
1006
  nodes: {
993
1007
  kind: "step";
994
1008
  step: {
995
1009
  id: string;
1010
+ executor: {
1011
+ kind: "sql";
1012
+ dialect: "duckdb";
1013
+ } | {
1014
+ kind: "run";
1015
+ };
996
1016
  mode: "append" | "snapshot";
997
1017
  output: {
998
1018
  id: string;
999
1019
  schema: {
1000
1020
  columns: {
1021
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
1001
1022
  name: string;
1002
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
1003
1023
  nullable?: boolean | undefined;
1004
1024
  }[];
1005
1025
  };
@@ -1014,8 +1034,8 @@ export declare const PipelineSchema: z.ZodObject<{
1014
1034
  id: string;
1015
1035
  schema: {
1016
1036
  columns: {
1037
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
1017
1038
  name: string;
1018
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
1019
1039
  nullable?: boolean | undefined;
1020
1040
  }[];
1021
1041
  };
@@ -1025,29 +1045,9 @@ export declare const PipelineSchema: z.ZodObject<{
1025
1045
  partitionBy?: string[] | undefined;
1026
1046
  };
1027
1047
  }[];
1028
- executor: {
1029
- kind: "sql";
1030
- dialect: "duckdb";
1031
- } | {
1032
- kind: "run";
1033
- };
1034
1048
  };
1035
1049
  }[];
1036
1050
  };
1037
- latestRun: {
1038
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1039
- projectId: string;
1040
- id: string;
1041
- pipelineId: string;
1042
- queuedAt: string;
1043
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1044
- startedAt?: string | undefined;
1045
- finishedAt?: string | undefined;
1046
- output?: {
1047
- datasetId: string;
1048
- versionId: string;
1049
- } | undefined;
1050
- } | null;
1051
1051
  }>;
1052
1052
  export declare const PipelineRunListResponseSchema: z.ZodObject<{
1053
1053
  runs: z.ZodArray<z.ZodObject<{
@@ -1070,11 +1070,11 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1070
1070
  }>>;
1071
1071
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1072
1072
  }, "strip", z.ZodTypeAny, {
1073
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1073
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1074
1074
  projectId: string;
1075
1075
  id: string;
1076
- pipelineId: string;
1077
1076
  queuedAt: string;
1077
+ pipelineId: string;
1078
1078
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1079
1079
  startedAt?: string | undefined;
1080
1080
  finishedAt?: string | undefined;
@@ -1083,11 +1083,11 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1083
1083
  versionId: string;
1084
1084
  } | undefined;
1085
1085
  }, {
1086
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1086
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1087
1087
  projectId: string;
1088
1088
  id: string;
1089
- pipelineId: string;
1090
1089
  queuedAt: string;
1090
+ pipelineId: string;
1091
1091
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1092
1092
  startedAt?: string | undefined;
1093
1093
  finishedAt?: string | undefined;
@@ -1100,11 +1100,11 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1100
1100
  total: z.ZodNumber;
1101
1101
  }, "strip", z.ZodTypeAny, {
1102
1102
  runs: {
1103
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1103
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1104
1104
  projectId: string;
1105
1105
  id: string;
1106
- pipelineId: string;
1107
1106
  queuedAt: string;
1107
+ pipelineId: string;
1108
1108
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1109
1109
  startedAt?: string | undefined;
1110
1110
  finishedAt?: string | undefined;
@@ -1117,11 +1117,11 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1117
1117
  total: number;
1118
1118
  }, {
1119
1119
  runs: {
1120
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1120
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1121
1121
  projectId: string;
1122
1122
  id: string;
1123
- pipelineId: string;
1124
1123
  queuedAt: string;
1124
+ pipelineId: string;
1125
1125
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1126
1126
  startedAt?: string | undefined;
1127
1127
  finishedAt?: string | undefined;
@@ -1154,11 +1154,11 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1154
1154
  }>>;
1155
1155
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1156
1156
  }, "strip", z.ZodTypeAny, {
1157
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1157
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1158
1158
  projectId: string;
1159
1159
  id: string;
1160
- pipelineId: string;
1161
1160
  queuedAt: string;
1161
+ pipelineId: string;
1162
1162
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1163
1163
  startedAt?: string | undefined;
1164
1164
  finishedAt?: string | undefined;
@@ -1167,11 +1167,11 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1167
1167
  versionId: string;
1168
1168
  } | undefined;
1169
1169
  }, {
1170
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1170
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1171
1171
  projectId: string;
1172
1172
  id: string;
1173
- pipelineId: string;
1174
1173
  queuedAt: string;
1174
+ pipelineId: string;
1175
1175
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1176
1176
  startedAt?: string | undefined;
1177
1177
  finishedAt?: string | undefined;
@@ -1214,18 +1214,18 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1214
1214
  rowsWritten: z.ZodOptional<z.ZodNumber>;
1215
1215
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1216
1216
  }, "strip", z.ZodTypeAny, {
1217
- status: "succeeded" | "failed" | "running" | "cancelled";
1217
+ status: "succeeded" | "failed" | "cancelled" | "running";
1218
1218
  projectId: string;
1219
1219
  id: string;
1220
1220
  mode: "append" | "snapshot";
1221
1221
  startedAt: string;
1222
- datasetId: string;
1223
1222
  inputs: {
1224
1223
  datasetId: string;
1225
1224
  versionId: string;
1226
1225
  }[];
1227
- pipelineId: string;
1226
+ datasetId: string;
1228
1227
  stepId: string;
1228
+ pipelineId: string;
1229
1229
  pipelineRunId: string;
1230
1230
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1231
1231
  finishedAt?: string | undefined;
@@ -1235,18 +1235,18 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1235
1235
  } | undefined;
1236
1236
  rowsWritten?: number | undefined;
1237
1237
  }, {
1238
- status: "succeeded" | "failed" | "running" | "cancelled";
1238
+ status: "succeeded" | "failed" | "cancelled" | "running";
1239
1239
  projectId: string;
1240
1240
  id: string;
1241
1241
  mode: "append" | "snapshot";
1242
1242
  startedAt: string;
1243
- datasetId: string;
1244
1243
  inputs: {
1245
1244
  datasetId: string;
1246
1245
  versionId: string;
1247
1246
  }[];
1248
- pipelineId: string;
1247
+ datasetId: string;
1249
1248
  stepId: string;
1249
+ pipelineId: string;
1250
1250
  pipelineRunId: string;
1251
1251
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1252
1252
  finishedAt?: string | undefined;
@@ -1258,11 +1258,11 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1258
1258
  }>, "many">;
1259
1259
  }, "strip", z.ZodTypeAny, {
1260
1260
  run: {
1261
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1261
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1262
1262
  projectId: string;
1263
1263
  id: string;
1264
- pipelineId: string;
1265
1264
  queuedAt: string;
1265
+ pipelineId: string;
1266
1266
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1267
1267
  startedAt?: string | undefined;
1268
1268
  finishedAt?: string | undefined;
@@ -1272,18 +1272,18 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1272
1272
  } | undefined;
1273
1273
  };
1274
1274
  steps: {
1275
- status: "succeeded" | "failed" | "running" | "cancelled";
1275
+ status: "succeeded" | "failed" | "cancelled" | "running";
1276
1276
  projectId: string;
1277
1277
  id: string;
1278
1278
  mode: "append" | "snapshot";
1279
1279
  startedAt: string;
1280
- datasetId: string;
1281
1280
  inputs: {
1282
1281
  datasetId: string;
1283
1282
  versionId: string;
1284
1283
  }[];
1285
- pipelineId: string;
1284
+ datasetId: string;
1286
1285
  stepId: string;
1286
+ pipelineId: string;
1287
1287
  pipelineRunId: string;
1288
1288
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1289
1289
  finishedAt?: string | undefined;
@@ -1295,11 +1295,11 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1295
1295
  }[];
1296
1296
  }, {
1297
1297
  run: {
1298
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1298
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1299
1299
  projectId: string;
1300
1300
  id: string;
1301
- pipelineId: string;
1302
1301
  queuedAt: string;
1302
+ pipelineId: string;
1303
1303
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1304
1304
  startedAt?: string | undefined;
1305
1305
  finishedAt?: string | undefined;
@@ -1309,18 +1309,18 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1309
1309
  } | undefined;
1310
1310
  };
1311
1311
  steps: {
1312
- status: "succeeded" | "failed" | "running" | "cancelled";
1312
+ status: "succeeded" | "failed" | "cancelled" | "running";
1313
1313
  projectId: string;
1314
1314
  id: string;
1315
1315
  mode: "append" | "snapshot";
1316
1316
  startedAt: string;
1317
- datasetId: string;
1318
1317
  inputs: {
1319
1318
  datasetId: string;
1320
1319
  versionId: string;
1321
1320
  }[];
1322
- pipelineId: string;
1321
+ datasetId: string;
1323
1322
  stepId: string;
1323
+ pipelineId: string;
1324
1324
  pipelineRunId: string;
1325
1325
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1326
1326
  finishedAt?: string | undefined;
@@ -1338,13 +1338,13 @@ export declare const RequestPipelineRunResponseSchema: z.ZodObject<{
1338
1338
  queuedAt: z.ZodString;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
1340
  runId: string;
1341
+ queuedAt: string;
1341
1342
  jobId: string;
1342
1343
  pipelineId: string;
1343
- queuedAt: string;
1344
1344
  }, {
1345
1345
  runId: string;
1346
+ queuedAt: string;
1346
1347
  jobId: string;
1347
1348
  pipelineId: string;
1348
- queuedAt: string;
1349
1349
  }>;
1350
1350
  //# sourceMappingURL=pipelines.d.ts.map