@sixb/server 0.0.1

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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1,1373 @@
1
+ import { z } from "zod";
2
+ export declare const PipelineParamsSchema: z.ZodObject<{
3
+ pipelineId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ pipelineId: string;
6
+ }, {
7
+ pipelineId: string;
8
+ }>;
9
+ export declare const PipelineRunParamsSchema: z.ZodObject<{
10
+ runId: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ runId: string;
13
+ }, {
14
+ runId: string;
15
+ }>;
16
+ export declare const PipelineRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
17
+ export declare const PipelineRunsQuerySchema: z.ZodObject<{
18
+ pipelineId: z.ZodOptional<z.ZodString>;
19
+ status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>>;
20
+ startedAfter: z.ZodOptional<z.ZodString>;
21
+ startedBefore: z.ZodOptional<z.ZodString>;
22
+ limit: z.ZodOptional<z.ZodString>;
23
+ offset: z.ZodOptional<z.ZodString>;
24
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
27
+ limit?: string | undefined;
28
+ offset?: string | undefined;
29
+ order?: "asc" | "desc" | undefined;
30
+ startedAfter?: string | undefined;
31
+ startedBefore?: string | undefined;
32
+ pipelineId?: string | undefined;
33
+ }, {
34
+ status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
35
+ limit?: string | undefined;
36
+ offset?: string | undefined;
37
+ order?: "asc" | "desc" | undefined;
38
+ startedAfter?: string | undefined;
39
+ startedBefore?: string | undefined;
40
+ pipelineId?: string | undefined;
41
+ }>;
42
+ export declare const PipelineRunSchema: z.ZodObject<{
43
+ id: z.ZodString;
44
+ projectId: z.ZodString;
45
+ pipelineId: z.ZodString;
46
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
47
+ startedAt: z.ZodString;
48
+ finishedAt: z.ZodOptional<z.ZodString>;
49
+ output: z.ZodOptional<z.ZodObject<{
50
+ datasetId: z.ZodString;
51
+ versionId: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ datasetId: string;
54
+ versionId: string;
55
+ }, {
56
+ datasetId: string;
57
+ versionId: string;
58
+ }>>;
59
+ error: z.ZodOptional<z.ZodObject<{
60
+ name: z.ZodOptional<z.ZodString>;
61
+ message: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ message: string;
64
+ name?: string | undefined;
65
+ }, {
66
+ message: string;
67
+ name?: string | undefined;
68
+ }>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ status: "running" | "succeeded" | "failed" | "cancelled";
71
+ projectId: string;
72
+ id: string;
73
+ startedAt: string;
74
+ pipelineId: string;
75
+ error?: {
76
+ message: string;
77
+ name?: string | undefined;
78
+ } | undefined;
79
+ finishedAt?: string | undefined;
80
+ output?: {
81
+ datasetId: string;
82
+ versionId: string;
83
+ } | undefined;
84
+ }, {
85
+ status: "running" | "succeeded" | "failed" | "cancelled";
86
+ projectId: string;
87
+ id: string;
88
+ startedAt: string;
89
+ pipelineId: string;
90
+ error?: {
91
+ message: string;
92
+ name?: string | undefined;
93
+ } | undefined;
94
+ finishedAt?: string | undefined;
95
+ output?: {
96
+ datasetId: string;
97
+ versionId: string;
98
+ } | undefined;
99
+ }>;
100
+ export declare const PipelineStepRunSchema: z.ZodObject<{
101
+ id: z.ZodString;
102
+ projectId: z.ZodString;
103
+ pipelineRunId: z.ZodString;
104
+ pipelineId: z.ZodString;
105
+ stepId: z.ZodString;
106
+ datasetId: z.ZodString;
107
+ mode: z.ZodEnum<["snapshot", "append"]>;
108
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
109
+ startedAt: z.ZodString;
110
+ finishedAt: z.ZodOptional<z.ZodString>;
111
+ inputs: z.ZodArray<z.ZodObject<{
112
+ datasetId: z.ZodString;
113
+ versionId: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ datasetId: string;
116
+ versionId: string;
117
+ }, {
118
+ datasetId: string;
119
+ versionId: string;
120
+ }>, "many">;
121
+ output: z.ZodOptional<z.ZodObject<{
122
+ datasetId: z.ZodString;
123
+ versionId: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ datasetId: string;
126
+ versionId: string;
127
+ }, {
128
+ datasetId: string;
129
+ versionId: string;
130
+ }>>;
131
+ rowsWritten: z.ZodOptional<z.ZodNumber>;
132
+ error: z.ZodOptional<z.ZodObject<{
133
+ name: z.ZodOptional<z.ZodString>;
134
+ message: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ message: string;
137
+ name?: string | undefined;
138
+ }, {
139
+ message: string;
140
+ name?: string | undefined;
141
+ }>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ status: "running" | "succeeded" | "failed" | "cancelled";
144
+ projectId: string;
145
+ id: string;
146
+ mode: "append" | "snapshot";
147
+ startedAt: string;
148
+ datasetId: string;
149
+ inputs: {
150
+ datasetId: string;
151
+ versionId: string;
152
+ }[];
153
+ pipelineId: string;
154
+ stepId: string;
155
+ pipelineRunId: string;
156
+ error?: {
157
+ message: string;
158
+ name?: string | undefined;
159
+ } | undefined;
160
+ finishedAt?: string | undefined;
161
+ output?: {
162
+ datasetId: string;
163
+ versionId: string;
164
+ } | undefined;
165
+ rowsWritten?: number | undefined;
166
+ }, {
167
+ status: "running" | "succeeded" | "failed" | "cancelled";
168
+ projectId: string;
169
+ id: string;
170
+ mode: "append" | "snapshot";
171
+ startedAt: string;
172
+ datasetId: string;
173
+ inputs: {
174
+ datasetId: string;
175
+ versionId: string;
176
+ }[];
177
+ pipelineId: string;
178
+ stepId: string;
179
+ pipelineRunId: string;
180
+ error?: {
181
+ message: string;
182
+ name?: string | undefined;
183
+ } | undefined;
184
+ finishedAt?: string | undefined;
185
+ output?: {
186
+ datasetId: string;
187
+ versionId: string;
188
+ } | undefined;
189
+ rowsWritten?: number | undefined;
190
+ }>;
191
+ export declare const PipelineStepSchema: z.ZodObject<{
192
+ id: z.ZodString;
193
+ mode: z.ZodEnum<["snapshot", "append"]>;
194
+ executor: z.ZodUnion<[z.ZodObject<{
195
+ kind: z.ZodLiteral<"sql">;
196
+ dialect: z.ZodLiteral<"duckdb">;
197
+ }, "strip", z.ZodTypeAny, {
198
+ kind: "sql";
199
+ dialect: "duckdb";
200
+ }, {
201
+ kind: "sql";
202
+ dialect: "duckdb";
203
+ }>, z.ZodObject<{
204
+ kind: z.ZodLiteral<"run">;
205
+ }, "strip", z.ZodTypeAny, {
206
+ kind: "run";
207
+ }, {
208
+ kind: "run";
209
+ }>]>;
210
+ inputs: z.ZodArray<z.ZodObject<{
211
+ name: z.ZodString;
212
+ dataset: z.ZodObject<{
213
+ id: z.ZodString;
214
+ description: z.ZodOptional<z.ZodString>;
215
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ schema: z.ZodObject<{
217
+ columns: z.ZodArray<z.ZodObject<{
218
+ name: z.ZodString;
219
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
220
+ nullable: z.ZodOptional<z.ZodBoolean>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
224
+ nullable?: boolean | undefined;
225
+ }, {
226
+ name: string;
227
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
228
+ nullable?: boolean | undefined;
229
+ }>, "many">;
230
+ }, "strip", z.ZodTypeAny, {
231
+ columns: {
232
+ name: string;
233
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
234
+ nullable?: boolean | undefined;
235
+ }[];
236
+ }, {
237
+ columns: {
238
+ name: string;
239
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
240
+ nullable?: boolean | undefined;
241
+ }[];
242
+ }>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ id: string;
245
+ schema: {
246
+ columns: {
247
+ name: string;
248
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
249
+ nullable?: boolean | undefined;
250
+ }[];
251
+ };
252
+ description?: string | undefined;
253
+ partitionBy?: string[] | undefined;
254
+ }, {
255
+ id: string;
256
+ schema: {
257
+ columns: {
258
+ name: string;
259
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
260
+ nullable?: boolean | undefined;
261
+ }[];
262
+ };
263
+ description?: string | undefined;
264
+ partitionBy?: string[] | undefined;
265
+ }>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ name: string;
268
+ dataset: {
269
+ id: string;
270
+ schema: {
271
+ columns: {
272
+ name: string;
273
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
274
+ nullable?: boolean | undefined;
275
+ }[];
276
+ };
277
+ description?: string | undefined;
278
+ partitionBy?: string[] | undefined;
279
+ };
280
+ }, {
281
+ name: string;
282
+ dataset: {
283
+ id: string;
284
+ schema: {
285
+ columns: {
286
+ name: string;
287
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
288
+ nullable?: boolean | undefined;
289
+ }[];
290
+ };
291
+ description?: string | undefined;
292
+ partitionBy?: string[] | undefined;
293
+ };
294
+ }>, "many">;
295
+ output: z.ZodObject<{
296
+ id: z.ZodString;
297
+ description: z.ZodOptional<z.ZodString>;
298
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
+ schema: z.ZodObject<{
300
+ columns: z.ZodArray<z.ZodObject<{
301
+ name: z.ZodString;
302
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
303
+ nullable: z.ZodOptional<z.ZodBoolean>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ name: string;
306
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
307
+ nullable?: boolean | undefined;
308
+ }, {
309
+ name: string;
310
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
311
+ nullable?: boolean | undefined;
312
+ }>, "many">;
313
+ }, "strip", z.ZodTypeAny, {
314
+ columns: {
315
+ name: string;
316
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
317
+ nullable?: boolean | undefined;
318
+ }[];
319
+ }, {
320
+ columns: {
321
+ name: string;
322
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
323
+ nullable?: boolean | undefined;
324
+ }[];
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ id: string;
328
+ schema: {
329
+ columns: {
330
+ name: string;
331
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
332
+ nullable?: boolean | undefined;
333
+ }[];
334
+ };
335
+ description?: string | undefined;
336
+ partitionBy?: string[] | undefined;
337
+ }, {
338
+ id: string;
339
+ schema: {
340
+ columns: {
341
+ name: string;
342
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
343
+ nullable?: boolean | undefined;
344
+ }[];
345
+ };
346
+ description?: string | undefined;
347
+ partitionBy?: string[] | undefined;
348
+ }>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id: string;
351
+ mode: "append" | "snapshot";
352
+ output: {
353
+ id: string;
354
+ schema: {
355
+ columns: {
356
+ name: string;
357
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
358
+ nullable?: boolean | undefined;
359
+ }[];
360
+ };
361
+ description?: string | undefined;
362
+ partitionBy?: string[] | undefined;
363
+ };
364
+ inputs: {
365
+ name: string;
366
+ dataset: {
367
+ id: string;
368
+ schema: {
369
+ columns: {
370
+ name: string;
371
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
372
+ nullable?: boolean | undefined;
373
+ }[];
374
+ };
375
+ description?: string | undefined;
376
+ partitionBy?: string[] | undefined;
377
+ };
378
+ }[];
379
+ executor: {
380
+ kind: "sql";
381
+ dialect: "duckdb";
382
+ } | {
383
+ kind: "run";
384
+ };
385
+ }, {
386
+ id: string;
387
+ mode: "append" | "snapshot";
388
+ output: {
389
+ id: string;
390
+ schema: {
391
+ columns: {
392
+ name: string;
393
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
394
+ nullable?: boolean | undefined;
395
+ }[];
396
+ };
397
+ description?: string | undefined;
398
+ partitionBy?: string[] | undefined;
399
+ };
400
+ inputs: {
401
+ name: string;
402
+ dataset: {
403
+ id: string;
404
+ schema: {
405
+ columns: {
406
+ name: string;
407
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
408
+ nullable?: boolean | undefined;
409
+ }[];
410
+ };
411
+ description?: string | undefined;
412
+ partitionBy?: string[] | undefined;
413
+ };
414
+ }[];
415
+ executor: {
416
+ kind: "sql";
417
+ dialect: "duckdb";
418
+ } | {
419
+ kind: "run";
420
+ };
421
+ }>;
422
+ export declare const PipelineSchema: z.ZodObject<{
423
+ id: z.ZodString;
424
+ triggers: z.ZodArray<z.ZodObject<{
425
+ type: z.ZodLiteral<"schedule">;
426
+ scheduleId: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: "schedule";
429
+ scheduleId: string;
430
+ }, {
431
+ type: "schedule";
432
+ scheduleId: string;
433
+ }>, "many">;
434
+ graph: z.ZodObject<{
435
+ kind: z.ZodLiteral<"sequence">;
436
+ nodes: z.ZodArray<z.ZodObject<{
437
+ kind: z.ZodLiteral<"step">;
438
+ step: z.ZodObject<{
439
+ id: z.ZodString;
440
+ mode: z.ZodEnum<["snapshot", "append"]>;
441
+ executor: z.ZodUnion<[z.ZodObject<{
442
+ kind: z.ZodLiteral<"sql">;
443
+ dialect: z.ZodLiteral<"duckdb">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ kind: "sql";
446
+ dialect: "duckdb";
447
+ }, {
448
+ kind: "sql";
449
+ dialect: "duckdb";
450
+ }>, z.ZodObject<{
451
+ kind: z.ZodLiteral<"run">;
452
+ }, "strip", z.ZodTypeAny, {
453
+ kind: "run";
454
+ }, {
455
+ kind: "run";
456
+ }>]>;
457
+ inputs: z.ZodArray<z.ZodObject<{
458
+ name: z.ZodString;
459
+ dataset: z.ZodObject<{
460
+ id: z.ZodString;
461
+ description: z.ZodOptional<z.ZodString>;
462
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
463
+ schema: z.ZodObject<{
464
+ columns: z.ZodArray<z.ZodObject<{
465
+ name: z.ZodString;
466
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
467
+ nullable: z.ZodOptional<z.ZodBoolean>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ name: string;
470
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
471
+ nullable?: boolean | undefined;
472
+ }, {
473
+ name: string;
474
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
475
+ nullable?: boolean | undefined;
476
+ }>, "many">;
477
+ }, "strip", z.ZodTypeAny, {
478
+ columns: {
479
+ name: string;
480
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
481
+ nullable?: boolean | undefined;
482
+ }[];
483
+ }, {
484
+ columns: {
485
+ name: string;
486
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
487
+ nullable?: boolean | undefined;
488
+ }[];
489
+ }>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ id: string;
492
+ schema: {
493
+ columns: {
494
+ name: string;
495
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
496
+ nullable?: boolean | undefined;
497
+ }[];
498
+ };
499
+ description?: string | undefined;
500
+ partitionBy?: string[] | undefined;
501
+ }, {
502
+ id: string;
503
+ schema: {
504
+ columns: {
505
+ name: string;
506
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
507
+ nullable?: boolean | undefined;
508
+ }[];
509
+ };
510
+ description?: string | undefined;
511
+ partitionBy?: string[] | undefined;
512
+ }>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ name: string;
515
+ dataset: {
516
+ id: string;
517
+ schema: {
518
+ columns: {
519
+ name: string;
520
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
521
+ nullable?: boolean | undefined;
522
+ }[];
523
+ };
524
+ description?: string | undefined;
525
+ partitionBy?: string[] | undefined;
526
+ };
527
+ }, {
528
+ name: string;
529
+ dataset: {
530
+ id: string;
531
+ schema: {
532
+ columns: {
533
+ name: string;
534
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
535
+ nullable?: boolean | undefined;
536
+ }[];
537
+ };
538
+ description?: string | undefined;
539
+ partitionBy?: string[] | undefined;
540
+ };
541
+ }>, "many">;
542
+ output: z.ZodObject<{
543
+ id: z.ZodString;
544
+ description: z.ZodOptional<z.ZodString>;
545
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
+ schema: z.ZodObject<{
547
+ columns: z.ZodArray<z.ZodObject<{
548
+ name: z.ZodString;
549
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
550
+ nullable: z.ZodOptional<z.ZodBoolean>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ name: string;
553
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
554
+ nullable?: boolean | undefined;
555
+ }, {
556
+ name: string;
557
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
558
+ nullable?: boolean | undefined;
559
+ }>, "many">;
560
+ }, "strip", z.ZodTypeAny, {
561
+ columns: {
562
+ name: string;
563
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
564
+ nullable?: boolean | undefined;
565
+ }[];
566
+ }, {
567
+ columns: {
568
+ name: string;
569
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
570
+ nullable?: boolean | undefined;
571
+ }[];
572
+ }>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ id: string;
575
+ schema: {
576
+ columns: {
577
+ name: string;
578
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
579
+ nullable?: boolean | undefined;
580
+ }[];
581
+ };
582
+ description?: string | undefined;
583
+ partitionBy?: string[] | undefined;
584
+ }, {
585
+ id: string;
586
+ schema: {
587
+ columns: {
588
+ name: string;
589
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
590
+ nullable?: boolean | undefined;
591
+ }[];
592
+ };
593
+ description?: string | undefined;
594
+ partitionBy?: string[] | undefined;
595
+ }>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ id: string;
598
+ mode: "append" | "snapshot";
599
+ output: {
600
+ id: string;
601
+ schema: {
602
+ columns: {
603
+ name: string;
604
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
605
+ nullable?: boolean | undefined;
606
+ }[];
607
+ };
608
+ description?: string | undefined;
609
+ partitionBy?: string[] | undefined;
610
+ };
611
+ inputs: {
612
+ name: string;
613
+ dataset: {
614
+ id: string;
615
+ schema: {
616
+ columns: {
617
+ name: string;
618
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
619
+ nullable?: boolean | undefined;
620
+ }[];
621
+ };
622
+ description?: string | undefined;
623
+ partitionBy?: string[] | undefined;
624
+ };
625
+ }[];
626
+ executor: {
627
+ kind: "sql";
628
+ dialect: "duckdb";
629
+ } | {
630
+ kind: "run";
631
+ };
632
+ }, {
633
+ id: string;
634
+ mode: "append" | "snapshot";
635
+ output: {
636
+ id: string;
637
+ schema: {
638
+ columns: {
639
+ name: string;
640
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
641
+ nullable?: boolean | undefined;
642
+ }[];
643
+ };
644
+ description?: string | undefined;
645
+ partitionBy?: string[] | undefined;
646
+ };
647
+ inputs: {
648
+ name: string;
649
+ dataset: {
650
+ id: string;
651
+ schema: {
652
+ columns: {
653
+ name: string;
654
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
655
+ nullable?: boolean | undefined;
656
+ }[];
657
+ };
658
+ description?: string | undefined;
659
+ partitionBy?: string[] | undefined;
660
+ };
661
+ }[];
662
+ executor: {
663
+ kind: "sql";
664
+ dialect: "duckdb";
665
+ } | {
666
+ kind: "run";
667
+ };
668
+ }>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ kind: "step";
671
+ step: {
672
+ id: string;
673
+ mode: "append" | "snapshot";
674
+ output: {
675
+ id: string;
676
+ schema: {
677
+ columns: {
678
+ name: string;
679
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
680
+ nullable?: boolean | undefined;
681
+ }[];
682
+ };
683
+ description?: string | undefined;
684
+ partitionBy?: string[] | undefined;
685
+ };
686
+ inputs: {
687
+ name: string;
688
+ dataset: {
689
+ id: string;
690
+ schema: {
691
+ columns: {
692
+ name: string;
693
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
694
+ nullable?: boolean | undefined;
695
+ }[];
696
+ };
697
+ description?: string | undefined;
698
+ partitionBy?: string[] | undefined;
699
+ };
700
+ }[];
701
+ executor: {
702
+ kind: "sql";
703
+ dialect: "duckdb";
704
+ } | {
705
+ kind: "run";
706
+ };
707
+ };
708
+ }, {
709
+ kind: "step";
710
+ step: {
711
+ id: string;
712
+ mode: "append" | "snapshot";
713
+ output: {
714
+ id: string;
715
+ schema: {
716
+ columns: {
717
+ name: string;
718
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
719
+ nullable?: boolean | undefined;
720
+ }[];
721
+ };
722
+ description?: string | undefined;
723
+ partitionBy?: string[] | undefined;
724
+ };
725
+ inputs: {
726
+ name: string;
727
+ dataset: {
728
+ id: string;
729
+ schema: {
730
+ columns: {
731
+ name: string;
732
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
733
+ nullable?: boolean | undefined;
734
+ }[];
735
+ };
736
+ description?: string | undefined;
737
+ partitionBy?: string[] | undefined;
738
+ };
739
+ }[];
740
+ executor: {
741
+ kind: "sql";
742
+ dialect: "duckdb";
743
+ } | {
744
+ kind: "run";
745
+ };
746
+ };
747
+ }>, "many">;
748
+ }, "strip", z.ZodTypeAny, {
749
+ kind: "sequence";
750
+ nodes: {
751
+ kind: "step";
752
+ step: {
753
+ id: string;
754
+ mode: "append" | "snapshot";
755
+ output: {
756
+ id: string;
757
+ schema: {
758
+ columns: {
759
+ name: string;
760
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
761
+ nullable?: boolean | undefined;
762
+ }[];
763
+ };
764
+ description?: string | undefined;
765
+ partitionBy?: string[] | undefined;
766
+ };
767
+ inputs: {
768
+ name: string;
769
+ dataset: {
770
+ id: string;
771
+ schema: {
772
+ columns: {
773
+ name: string;
774
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
775
+ nullable?: boolean | undefined;
776
+ }[];
777
+ };
778
+ description?: string | undefined;
779
+ partitionBy?: string[] | undefined;
780
+ };
781
+ }[];
782
+ executor: {
783
+ kind: "sql";
784
+ dialect: "duckdb";
785
+ } | {
786
+ kind: "run";
787
+ };
788
+ };
789
+ }[];
790
+ }, {
791
+ kind: "sequence";
792
+ nodes: {
793
+ kind: "step";
794
+ step: {
795
+ id: string;
796
+ mode: "append" | "snapshot";
797
+ output: {
798
+ id: string;
799
+ schema: {
800
+ columns: {
801
+ name: string;
802
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
803
+ nullable?: boolean | undefined;
804
+ }[];
805
+ };
806
+ description?: string | undefined;
807
+ partitionBy?: string[] | undefined;
808
+ };
809
+ inputs: {
810
+ name: string;
811
+ dataset: {
812
+ id: string;
813
+ schema: {
814
+ columns: {
815
+ name: string;
816
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
817
+ nullable?: boolean | undefined;
818
+ }[];
819
+ };
820
+ description?: string | undefined;
821
+ partitionBy?: string[] | undefined;
822
+ };
823
+ }[];
824
+ executor: {
825
+ kind: "sql";
826
+ dialect: "duckdb";
827
+ } | {
828
+ kind: "run";
829
+ };
830
+ };
831
+ }[];
832
+ }>;
833
+ latestRun: z.ZodNullable<z.ZodObject<{
834
+ id: z.ZodString;
835
+ projectId: z.ZodString;
836
+ pipelineId: z.ZodString;
837
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
838
+ startedAt: z.ZodString;
839
+ finishedAt: z.ZodOptional<z.ZodString>;
840
+ output: z.ZodOptional<z.ZodObject<{
841
+ datasetId: z.ZodString;
842
+ versionId: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ datasetId: string;
845
+ versionId: string;
846
+ }, {
847
+ datasetId: string;
848
+ versionId: string;
849
+ }>>;
850
+ error: z.ZodOptional<z.ZodObject<{
851
+ name: z.ZodOptional<z.ZodString>;
852
+ message: z.ZodString;
853
+ }, "strip", z.ZodTypeAny, {
854
+ message: string;
855
+ name?: string | undefined;
856
+ }, {
857
+ message: string;
858
+ name?: string | undefined;
859
+ }>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ status: "running" | "succeeded" | "failed" | "cancelled";
862
+ projectId: string;
863
+ id: string;
864
+ startedAt: string;
865
+ pipelineId: string;
866
+ error?: {
867
+ message: string;
868
+ name?: string | undefined;
869
+ } | undefined;
870
+ finishedAt?: string | undefined;
871
+ output?: {
872
+ datasetId: string;
873
+ versionId: string;
874
+ } | undefined;
875
+ }, {
876
+ status: "running" | "succeeded" | "failed" | "cancelled";
877
+ projectId: string;
878
+ id: string;
879
+ startedAt: string;
880
+ pipelineId: string;
881
+ error?: {
882
+ message: string;
883
+ name?: string | undefined;
884
+ } | undefined;
885
+ finishedAt?: string | undefined;
886
+ output?: {
887
+ datasetId: string;
888
+ versionId: string;
889
+ } | undefined;
890
+ }>>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ id: string;
893
+ triggers: {
894
+ type: "schedule";
895
+ scheduleId: string;
896
+ }[];
897
+ graph: {
898
+ kind: "sequence";
899
+ nodes: {
900
+ kind: "step";
901
+ step: {
902
+ id: string;
903
+ mode: "append" | "snapshot";
904
+ output: {
905
+ id: string;
906
+ schema: {
907
+ columns: {
908
+ name: string;
909
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
910
+ nullable?: boolean | undefined;
911
+ }[];
912
+ };
913
+ description?: string | undefined;
914
+ partitionBy?: string[] | undefined;
915
+ };
916
+ inputs: {
917
+ name: string;
918
+ dataset: {
919
+ id: string;
920
+ schema: {
921
+ columns: {
922
+ name: string;
923
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
924
+ nullable?: boolean | undefined;
925
+ }[];
926
+ };
927
+ description?: string | undefined;
928
+ partitionBy?: string[] | undefined;
929
+ };
930
+ }[];
931
+ executor: {
932
+ kind: "sql";
933
+ dialect: "duckdb";
934
+ } | {
935
+ kind: "run";
936
+ };
937
+ };
938
+ }[];
939
+ };
940
+ latestRun: {
941
+ status: "running" | "succeeded" | "failed" | "cancelled";
942
+ projectId: string;
943
+ id: string;
944
+ startedAt: string;
945
+ pipelineId: string;
946
+ error?: {
947
+ message: string;
948
+ name?: string | undefined;
949
+ } | undefined;
950
+ finishedAt?: string | undefined;
951
+ output?: {
952
+ datasetId: string;
953
+ versionId: string;
954
+ } | undefined;
955
+ } | null;
956
+ }, {
957
+ id: string;
958
+ triggers: {
959
+ type: "schedule";
960
+ scheduleId: string;
961
+ }[];
962
+ graph: {
963
+ kind: "sequence";
964
+ nodes: {
965
+ kind: "step";
966
+ step: {
967
+ id: string;
968
+ mode: "append" | "snapshot";
969
+ output: {
970
+ id: string;
971
+ schema: {
972
+ columns: {
973
+ name: string;
974
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
975
+ nullable?: boolean | undefined;
976
+ }[];
977
+ };
978
+ description?: string | undefined;
979
+ partitionBy?: string[] | undefined;
980
+ };
981
+ inputs: {
982
+ name: string;
983
+ dataset: {
984
+ id: string;
985
+ schema: {
986
+ columns: {
987
+ name: string;
988
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
989
+ nullable?: boolean | undefined;
990
+ }[];
991
+ };
992
+ description?: string | undefined;
993
+ partitionBy?: string[] | undefined;
994
+ };
995
+ }[];
996
+ executor: {
997
+ kind: "sql";
998
+ dialect: "duckdb";
999
+ } | {
1000
+ kind: "run";
1001
+ };
1002
+ };
1003
+ }[];
1004
+ };
1005
+ latestRun: {
1006
+ status: "running" | "succeeded" | "failed" | "cancelled";
1007
+ projectId: string;
1008
+ id: string;
1009
+ startedAt: string;
1010
+ pipelineId: string;
1011
+ error?: {
1012
+ message: string;
1013
+ name?: string | undefined;
1014
+ } | undefined;
1015
+ finishedAt?: string | undefined;
1016
+ output?: {
1017
+ datasetId: string;
1018
+ versionId: string;
1019
+ } | undefined;
1020
+ } | null;
1021
+ }>;
1022
+ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1023
+ runs: z.ZodArray<z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ projectId: z.ZodString;
1026
+ pipelineId: z.ZodString;
1027
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
1028
+ startedAt: z.ZodString;
1029
+ finishedAt: z.ZodOptional<z.ZodString>;
1030
+ output: z.ZodOptional<z.ZodObject<{
1031
+ datasetId: z.ZodString;
1032
+ versionId: z.ZodString;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ datasetId: string;
1035
+ versionId: string;
1036
+ }, {
1037
+ datasetId: string;
1038
+ versionId: string;
1039
+ }>>;
1040
+ error: z.ZodOptional<z.ZodObject<{
1041
+ name: z.ZodOptional<z.ZodString>;
1042
+ message: z.ZodString;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ message: string;
1045
+ name?: string | undefined;
1046
+ }, {
1047
+ message: string;
1048
+ name?: string | undefined;
1049
+ }>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ status: "running" | "succeeded" | "failed" | "cancelled";
1052
+ projectId: string;
1053
+ id: string;
1054
+ startedAt: string;
1055
+ pipelineId: string;
1056
+ error?: {
1057
+ message: string;
1058
+ name?: string | undefined;
1059
+ } | undefined;
1060
+ finishedAt?: string | undefined;
1061
+ output?: {
1062
+ datasetId: string;
1063
+ versionId: string;
1064
+ } | undefined;
1065
+ }, {
1066
+ status: "running" | "succeeded" | "failed" | "cancelled";
1067
+ projectId: string;
1068
+ id: string;
1069
+ startedAt: string;
1070
+ pipelineId: string;
1071
+ error?: {
1072
+ message: string;
1073
+ name?: string | undefined;
1074
+ } | undefined;
1075
+ finishedAt?: string | undefined;
1076
+ output?: {
1077
+ datasetId: string;
1078
+ versionId: string;
1079
+ } | undefined;
1080
+ }>, "many">;
1081
+ hasMore: z.ZodBoolean;
1082
+ total: z.ZodNumber;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ runs: {
1085
+ status: "running" | "succeeded" | "failed" | "cancelled";
1086
+ projectId: string;
1087
+ id: string;
1088
+ startedAt: string;
1089
+ pipelineId: string;
1090
+ error?: {
1091
+ message: string;
1092
+ name?: string | undefined;
1093
+ } | undefined;
1094
+ finishedAt?: string | undefined;
1095
+ output?: {
1096
+ datasetId: string;
1097
+ versionId: string;
1098
+ } | undefined;
1099
+ }[];
1100
+ hasMore: boolean;
1101
+ total: number;
1102
+ }, {
1103
+ runs: {
1104
+ status: "running" | "succeeded" | "failed" | "cancelled";
1105
+ projectId: string;
1106
+ id: string;
1107
+ startedAt: string;
1108
+ pipelineId: string;
1109
+ error?: {
1110
+ message: string;
1111
+ name?: string | undefined;
1112
+ } | undefined;
1113
+ finishedAt?: string | undefined;
1114
+ output?: {
1115
+ datasetId: string;
1116
+ versionId: string;
1117
+ } | undefined;
1118
+ }[];
1119
+ hasMore: boolean;
1120
+ total: number;
1121
+ }>;
1122
+ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1123
+ run: z.ZodObject<{
1124
+ id: z.ZodString;
1125
+ projectId: z.ZodString;
1126
+ pipelineId: z.ZodString;
1127
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
1128
+ startedAt: z.ZodString;
1129
+ finishedAt: z.ZodOptional<z.ZodString>;
1130
+ output: z.ZodOptional<z.ZodObject<{
1131
+ datasetId: z.ZodString;
1132
+ versionId: z.ZodString;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ datasetId: string;
1135
+ versionId: string;
1136
+ }, {
1137
+ datasetId: string;
1138
+ versionId: string;
1139
+ }>>;
1140
+ error: z.ZodOptional<z.ZodObject<{
1141
+ name: z.ZodOptional<z.ZodString>;
1142
+ message: z.ZodString;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ message: string;
1145
+ name?: string | undefined;
1146
+ }, {
1147
+ message: string;
1148
+ name?: string | undefined;
1149
+ }>>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ status: "running" | "succeeded" | "failed" | "cancelled";
1152
+ projectId: string;
1153
+ id: string;
1154
+ startedAt: string;
1155
+ pipelineId: string;
1156
+ error?: {
1157
+ message: string;
1158
+ name?: string | undefined;
1159
+ } | undefined;
1160
+ finishedAt?: string | undefined;
1161
+ output?: {
1162
+ datasetId: string;
1163
+ versionId: string;
1164
+ } | undefined;
1165
+ }, {
1166
+ status: "running" | "succeeded" | "failed" | "cancelled";
1167
+ projectId: string;
1168
+ id: string;
1169
+ startedAt: string;
1170
+ pipelineId: string;
1171
+ error?: {
1172
+ message: string;
1173
+ name?: string | undefined;
1174
+ } | undefined;
1175
+ finishedAt?: string | undefined;
1176
+ output?: {
1177
+ datasetId: string;
1178
+ versionId: string;
1179
+ } | undefined;
1180
+ }>;
1181
+ steps: z.ZodArray<z.ZodObject<{
1182
+ id: z.ZodString;
1183
+ projectId: z.ZodString;
1184
+ pipelineRunId: z.ZodString;
1185
+ pipelineId: z.ZodString;
1186
+ stepId: z.ZodString;
1187
+ datasetId: z.ZodString;
1188
+ mode: z.ZodEnum<["snapshot", "append"]>;
1189
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
1190
+ startedAt: z.ZodString;
1191
+ finishedAt: z.ZodOptional<z.ZodString>;
1192
+ inputs: z.ZodArray<z.ZodObject<{
1193
+ datasetId: z.ZodString;
1194
+ versionId: z.ZodString;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ datasetId: string;
1197
+ versionId: string;
1198
+ }, {
1199
+ datasetId: string;
1200
+ versionId: string;
1201
+ }>, "many">;
1202
+ output: z.ZodOptional<z.ZodObject<{
1203
+ datasetId: z.ZodString;
1204
+ versionId: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ datasetId: string;
1207
+ versionId: string;
1208
+ }, {
1209
+ datasetId: string;
1210
+ versionId: string;
1211
+ }>>;
1212
+ rowsWritten: z.ZodOptional<z.ZodNumber>;
1213
+ error: z.ZodOptional<z.ZodObject<{
1214
+ name: z.ZodOptional<z.ZodString>;
1215
+ message: z.ZodString;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ message: string;
1218
+ name?: string | undefined;
1219
+ }, {
1220
+ message: string;
1221
+ name?: string | undefined;
1222
+ }>>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ status: "running" | "succeeded" | "failed" | "cancelled";
1225
+ projectId: string;
1226
+ id: string;
1227
+ mode: "append" | "snapshot";
1228
+ startedAt: string;
1229
+ datasetId: string;
1230
+ inputs: {
1231
+ datasetId: string;
1232
+ versionId: string;
1233
+ }[];
1234
+ pipelineId: string;
1235
+ stepId: string;
1236
+ pipelineRunId: string;
1237
+ error?: {
1238
+ message: string;
1239
+ name?: string | undefined;
1240
+ } | undefined;
1241
+ finishedAt?: string | undefined;
1242
+ output?: {
1243
+ datasetId: string;
1244
+ versionId: string;
1245
+ } | undefined;
1246
+ rowsWritten?: number | undefined;
1247
+ }, {
1248
+ status: "running" | "succeeded" | "failed" | "cancelled";
1249
+ projectId: string;
1250
+ id: string;
1251
+ mode: "append" | "snapshot";
1252
+ startedAt: string;
1253
+ datasetId: string;
1254
+ inputs: {
1255
+ datasetId: string;
1256
+ versionId: string;
1257
+ }[];
1258
+ pipelineId: string;
1259
+ stepId: string;
1260
+ pipelineRunId: string;
1261
+ error?: {
1262
+ message: string;
1263
+ name?: string | undefined;
1264
+ } | undefined;
1265
+ finishedAt?: string | undefined;
1266
+ output?: {
1267
+ datasetId: string;
1268
+ versionId: string;
1269
+ } | undefined;
1270
+ rowsWritten?: number | undefined;
1271
+ }>, "many">;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ run: {
1274
+ status: "running" | "succeeded" | "failed" | "cancelled";
1275
+ projectId: string;
1276
+ id: string;
1277
+ startedAt: string;
1278
+ pipelineId: string;
1279
+ error?: {
1280
+ message: string;
1281
+ name?: string | undefined;
1282
+ } | undefined;
1283
+ finishedAt?: string | undefined;
1284
+ output?: {
1285
+ datasetId: string;
1286
+ versionId: string;
1287
+ } | undefined;
1288
+ };
1289
+ steps: {
1290
+ status: "running" | "succeeded" | "failed" | "cancelled";
1291
+ projectId: string;
1292
+ id: string;
1293
+ mode: "append" | "snapshot";
1294
+ startedAt: string;
1295
+ datasetId: string;
1296
+ inputs: {
1297
+ datasetId: string;
1298
+ versionId: string;
1299
+ }[];
1300
+ pipelineId: string;
1301
+ stepId: string;
1302
+ pipelineRunId: string;
1303
+ error?: {
1304
+ message: string;
1305
+ name?: string | undefined;
1306
+ } | undefined;
1307
+ finishedAt?: string | undefined;
1308
+ output?: {
1309
+ datasetId: string;
1310
+ versionId: string;
1311
+ } | undefined;
1312
+ rowsWritten?: number | undefined;
1313
+ }[];
1314
+ }, {
1315
+ run: {
1316
+ status: "running" | "succeeded" | "failed" | "cancelled";
1317
+ projectId: string;
1318
+ id: string;
1319
+ startedAt: string;
1320
+ pipelineId: string;
1321
+ error?: {
1322
+ message: string;
1323
+ name?: string | undefined;
1324
+ } | undefined;
1325
+ finishedAt?: string | undefined;
1326
+ output?: {
1327
+ datasetId: string;
1328
+ versionId: string;
1329
+ } | undefined;
1330
+ };
1331
+ steps: {
1332
+ status: "running" | "succeeded" | "failed" | "cancelled";
1333
+ projectId: string;
1334
+ id: string;
1335
+ mode: "append" | "snapshot";
1336
+ startedAt: string;
1337
+ datasetId: string;
1338
+ inputs: {
1339
+ datasetId: string;
1340
+ versionId: string;
1341
+ }[];
1342
+ pipelineId: string;
1343
+ stepId: string;
1344
+ pipelineRunId: string;
1345
+ error?: {
1346
+ message: string;
1347
+ name?: string | undefined;
1348
+ } | undefined;
1349
+ finishedAt?: string | undefined;
1350
+ output?: {
1351
+ datasetId: string;
1352
+ versionId: string;
1353
+ } | undefined;
1354
+ rowsWritten?: number | undefined;
1355
+ }[];
1356
+ }>;
1357
+ export declare const RequestPipelineRunResponseSchema: z.ZodObject<{
1358
+ runId: z.ZodString;
1359
+ jobId: z.ZodString;
1360
+ pipelineId: z.ZodString;
1361
+ queuedAt: z.ZodString;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ runId: string;
1364
+ queuedAt: string;
1365
+ jobId: string;
1366
+ pipelineId: string;
1367
+ }, {
1368
+ runId: string;
1369
+ queuedAt: string;
1370
+ jobId: string;
1371
+ pipelineId: string;
1372
+ }>;
1373
+ //# sourceMappingURL=pipelines.d.ts.map