@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,744 @@
1
+ import { z } from "zod";
2
+ export declare const DatasetParamsSchema: z.ZodObject<{
3
+ datasetId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ datasetId: string;
6
+ }, {
7
+ datasetId: string;
8
+ }>;
9
+ export declare const DatasetVersionParamsSchema: z.ZodObject<{
10
+ datasetId: z.ZodString;
11
+ } & {
12
+ versionId: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ datasetId: string;
15
+ versionId: string;
16
+ }, {
17
+ datasetId: string;
18
+ versionId: string;
19
+ }>;
20
+ export declare const DatasetVersionsQuerySchema: z.ZodObject<{
21
+ limit: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ limit?: string | undefined;
24
+ }, {
25
+ limit?: string | undefined;
26
+ }>;
27
+ export declare const DatasetRowsQuerySchema: z.ZodObject<{
28
+ versionId: z.ZodOptional<z.ZodString>;
29
+ columns: z.ZodOptional<z.ZodString>;
30
+ limit: z.ZodOptional<z.ZodString>;
31
+ offset: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ limit?: string | undefined;
34
+ offset?: string | undefined;
35
+ versionId?: string | undefined;
36
+ columns?: string | undefined;
37
+ }, {
38
+ limit?: string | undefined;
39
+ offset?: string | undefined;
40
+ versionId?: string | undefined;
41
+ columns?: string | undefined;
42
+ }>;
43
+ export declare const DatasetColumnSchema: z.ZodObject<{
44
+ name: z.ZodString;
45
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
46
+ nullable: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ name: string;
49
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
50
+ nullable?: boolean | undefined;
51
+ }, {
52
+ name: string;
53
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
54
+ nullable?: boolean | undefined;
55
+ }>;
56
+ export declare const DatasetSchema: z.ZodObject<{
57
+ columns: z.ZodArray<z.ZodObject<{
58
+ name: z.ZodString;
59
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
60
+ nullable: z.ZodOptional<z.ZodBoolean>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ name: string;
63
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
64
+ nullable?: boolean | undefined;
65
+ }, {
66
+ name: string;
67
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
68
+ nullable?: boolean | undefined;
69
+ }>, "many">;
70
+ }, "strip", z.ZodTypeAny, {
71
+ columns: {
72
+ name: string;
73
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
74
+ nullable?: boolean | undefined;
75
+ }[];
76
+ }, {
77
+ columns: {
78
+ name: string;
79
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
80
+ nullable?: boolean | undefined;
81
+ }[];
82
+ }>;
83
+ export declare const DatasetDefinitionSchema: z.ZodObject<{
84
+ id: z.ZodString;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ schema: z.ZodObject<{
88
+ columns: z.ZodArray<z.ZodObject<{
89
+ name: z.ZodString;
90
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
91
+ nullable: z.ZodOptional<z.ZodBoolean>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ name: string;
94
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
95
+ nullable?: boolean | undefined;
96
+ }, {
97
+ name: string;
98
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
99
+ nullable?: boolean | undefined;
100
+ }>, "many">;
101
+ }, "strip", z.ZodTypeAny, {
102
+ columns: {
103
+ name: string;
104
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
105
+ nullable?: boolean | undefined;
106
+ }[];
107
+ }, {
108
+ columns: {
109
+ name: string;
110
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
111
+ nullable?: boolean | undefined;
112
+ }[];
113
+ }>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ id: string;
116
+ schema: {
117
+ columns: {
118
+ name: string;
119
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
120
+ nullable?: boolean | undefined;
121
+ }[];
122
+ };
123
+ description?: string | undefined;
124
+ partitionBy?: string[] | undefined;
125
+ }, {
126
+ id: string;
127
+ schema: {
128
+ columns: {
129
+ name: string;
130
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
131
+ nullable?: boolean | undefined;
132
+ }[];
133
+ };
134
+ description?: string | undefined;
135
+ partitionBy?: string[] | undefined;
136
+ }>;
137
+ export declare const DatasetVersionRefSchema: z.ZodObject<{
138
+ datasetId: z.ZodString;
139
+ versionId: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ datasetId: string;
142
+ versionId: string;
143
+ }, {
144
+ datasetId: string;
145
+ versionId: string;
146
+ }>;
147
+ export declare const DatasetProducerSchema: z.ZodObject<{
148
+ kind: z.ZodEnum<["sync", "pipeline"]>;
149
+ id: z.ZodOptional<z.ZodString>;
150
+ runId: z.ZodOptional<z.ZodString>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ kind: "sync" | "pipeline";
153
+ id?: string | undefined;
154
+ runId?: string | undefined;
155
+ }, {
156
+ kind: "sync" | "pipeline";
157
+ id?: string | undefined;
158
+ runId?: string | undefined;
159
+ }>;
160
+ export declare const DatasetVersionSchema: z.ZodObject<{
161
+ datasetId: z.ZodString;
162
+ versionId: z.ZodString;
163
+ parentVersionId: z.ZodOptional<z.ZodString>;
164
+ mode: z.ZodEnum<["snapshot", "append", "schema"]>;
165
+ createdAt: z.ZodString;
166
+ schema: z.ZodObject<{
167
+ columns: z.ZodArray<z.ZodObject<{
168
+ name: z.ZodString;
169
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
170
+ nullable: z.ZodOptional<z.ZodBoolean>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ name: string;
173
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
174
+ nullable?: boolean | undefined;
175
+ }, {
176
+ name: string;
177
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
178
+ nullable?: boolean | undefined;
179
+ }>, "many">;
180
+ }, "strip", z.ZodTypeAny, {
181
+ columns: {
182
+ name: string;
183
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
184
+ nullable?: boolean | undefined;
185
+ }[];
186
+ }, {
187
+ columns: {
188
+ name: string;
189
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
190
+ nullable?: boolean | undefined;
191
+ }[];
192
+ }>;
193
+ producer: z.ZodOptional<z.ZodObject<{
194
+ kind: z.ZodEnum<["sync", "pipeline"]>;
195
+ id: z.ZodOptional<z.ZodString>;
196
+ runId: z.ZodOptional<z.ZodString>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ kind: "sync" | "pipeline";
199
+ id?: string | undefined;
200
+ runId?: string | undefined;
201
+ }, {
202
+ kind: "sync" | "pipeline";
203
+ id?: string | undefined;
204
+ runId?: string | undefined;
205
+ }>>;
206
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
207
+ datasetId: z.ZodString;
208
+ versionId: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ datasetId: string;
211
+ versionId: string;
212
+ }, {
213
+ datasetId: string;
214
+ versionId: string;
215
+ }>, "many">>;
216
+ rowCount: z.ZodOptional<z.ZodNumber>;
217
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ mode: "append" | "schema" | "snapshot";
220
+ schema: {
221
+ columns: {
222
+ name: string;
223
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
224
+ nullable?: boolean | undefined;
225
+ }[];
226
+ };
227
+ createdAt: string;
228
+ datasetId: string;
229
+ versionId: string;
230
+ sizeBytes?: number | undefined;
231
+ parentVersionId?: string | undefined;
232
+ producer?: {
233
+ kind: "sync" | "pipeline";
234
+ id?: string | undefined;
235
+ runId?: string | undefined;
236
+ } | undefined;
237
+ inputs?: {
238
+ datasetId: string;
239
+ versionId: string;
240
+ }[] | undefined;
241
+ rowCount?: number | undefined;
242
+ }, {
243
+ mode: "append" | "schema" | "snapshot";
244
+ schema: {
245
+ columns: {
246
+ name: string;
247
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
248
+ nullable?: boolean | undefined;
249
+ }[];
250
+ };
251
+ createdAt: string;
252
+ datasetId: string;
253
+ versionId: string;
254
+ sizeBytes?: number | undefined;
255
+ parentVersionId?: string | undefined;
256
+ producer?: {
257
+ kind: "sync" | "pipeline";
258
+ id?: string | undefined;
259
+ runId?: string | undefined;
260
+ } | undefined;
261
+ inputs?: {
262
+ datasetId: string;
263
+ versionId: string;
264
+ }[] | undefined;
265
+ rowCount?: number | undefined;
266
+ }>;
267
+ export declare const DatasetLatestVersionSummarySchema: z.ZodObject<{
268
+ datasetId: z.ZodString;
269
+ versionId: z.ZodString;
270
+ mode: z.ZodEnum<["snapshot", "append", "schema"]>;
271
+ createdAt: z.ZodString;
272
+ rowCount: z.ZodOptional<z.ZodNumber>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ mode: "append" | "schema" | "snapshot";
275
+ createdAt: string;
276
+ datasetId: string;
277
+ versionId: string;
278
+ rowCount?: number | undefined;
279
+ }, {
280
+ mode: "append" | "schema" | "snapshot";
281
+ createdAt: string;
282
+ datasetId: string;
283
+ versionId: string;
284
+ rowCount?: number | undefined;
285
+ }>;
286
+ export declare const DatasetCatalogItemSchema: z.ZodObject<{
287
+ id: z.ZodString;
288
+ description: z.ZodOptional<z.ZodString>;
289
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
+ schema: z.ZodObject<{
291
+ columns: z.ZodArray<z.ZodObject<{
292
+ name: z.ZodString;
293
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
294
+ nullable: z.ZodOptional<z.ZodBoolean>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ name: string;
297
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
298
+ nullable?: boolean | undefined;
299
+ }, {
300
+ name: string;
301
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
302
+ nullable?: boolean | undefined;
303
+ }>, "many">;
304
+ }, "strip", z.ZodTypeAny, {
305
+ columns: {
306
+ name: string;
307
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
308
+ nullable?: boolean | undefined;
309
+ }[];
310
+ }, {
311
+ columns: {
312
+ name: string;
313
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
314
+ nullable?: boolean | undefined;
315
+ }[];
316
+ }>;
317
+ } & {
318
+ kind: z.ZodLiteral<"dataset">;
319
+ materialized: z.ZodBoolean;
320
+ latestVersion: z.ZodNullable<z.ZodObject<{
321
+ datasetId: z.ZodString;
322
+ versionId: z.ZodString;
323
+ mode: z.ZodEnum<["snapshot", "append", "schema"]>;
324
+ createdAt: z.ZodString;
325
+ rowCount: z.ZodOptional<z.ZodNumber>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ mode: "append" | "schema" | "snapshot";
328
+ createdAt: string;
329
+ datasetId: string;
330
+ versionId: string;
331
+ rowCount?: number | undefined;
332
+ }, {
333
+ mode: "append" | "schema" | "snapshot";
334
+ createdAt: string;
335
+ datasetId: string;
336
+ versionId: string;
337
+ rowCount?: number | undefined;
338
+ }>>;
339
+ syncIds: z.ZodArray<z.ZodString, "many">;
340
+ sourcePipelineIds: z.ZodArray<z.ZodString, "many">;
341
+ targetPipelineIds: z.ZodArray<z.ZodString, "many">;
342
+ projectionIds: z.ZodArray<z.ZodString, "many">;
343
+ }, "strip", z.ZodTypeAny, {
344
+ kind: "dataset";
345
+ id: string;
346
+ schema: {
347
+ columns: {
348
+ name: string;
349
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
350
+ nullable?: boolean | undefined;
351
+ }[];
352
+ };
353
+ syncIds: string[];
354
+ materialized: boolean;
355
+ latestVersion: {
356
+ mode: "append" | "schema" | "snapshot";
357
+ createdAt: string;
358
+ datasetId: string;
359
+ versionId: string;
360
+ rowCount?: number | undefined;
361
+ } | null;
362
+ sourcePipelineIds: string[];
363
+ targetPipelineIds: string[];
364
+ projectionIds: string[];
365
+ description?: string | undefined;
366
+ partitionBy?: string[] | undefined;
367
+ }, {
368
+ kind: "dataset";
369
+ id: string;
370
+ schema: {
371
+ columns: {
372
+ name: string;
373
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
374
+ nullable?: boolean | undefined;
375
+ }[];
376
+ };
377
+ syncIds: string[];
378
+ materialized: boolean;
379
+ latestVersion: {
380
+ mode: "append" | "schema" | "snapshot";
381
+ createdAt: string;
382
+ datasetId: string;
383
+ versionId: string;
384
+ rowCount?: number | undefined;
385
+ } | null;
386
+ sourcePipelineIds: string[];
387
+ targetPipelineIds: string[];
388
+ projectionIds: string[];
389
+ description?: string | undefined;
390
+ partitionBy?: string[] | undefined;
391
+ }>;
392
+ export declare const DatasetVersionListResponseSchema: z.ZodObject<{
393
+ versions: z.ZodArray<z.ZodObject<{
394
+ datasetId: z.ZodString;
395
+ versionId: z.ZodString;
396
+ parentVersionId: z.ZodOptional<z.ZodString>;
397
+ mode: z.ZodEnum<["snapshot", "append", "schema"]>;
398
+ createdAt: z.ZodString;
399
+ schema: z.ZodObject<{
400
+ columns: z.ZodArray<z.ZodObject<{
401
+ name: z.ZodString;
402
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
403
+ nullable: z.ZodOptional<z.ZodBoolean>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ name: string;
406
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
407
+ nullable?: boolean | undefined;
408
+ }, {
409
+ name: string;
410
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
411
+ nullable?: boolean | undefined;
412
+ }>, "many">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ columns: {
415
+ name: string;
416
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
417
+ nullable?: boolean | undefined;
418
+ }[];
419
+ }, {
420
+ columns: {
421
+ name: string;
422
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
423
+ nullable?: boolean | undefined;
424
+ }[];
425
+ }>;
426
+ producer: z.ZodOptional<z.ZodObject<{
427
+ kind: z.ZodEnum<["sync", "pipeline"]>;
428
+ id: z.ZodOptional<z.ZodString>;
429
+ runId: z.ZodOptional<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ kind: "sync" | "pipeline";
432
+ id?: string | undefined;
433
+ runId?: string | undefined;
434
+ }, {
435
+ kind: "sync" | "pipeline";
436
+ id?: string | undefined;
437
+ runId?: string | undefined;
438
+ }>>;
439
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
+ datasetId: z.ZodString;
441
+ versionId: z.ZodString;
442
+ }, "strip", z.ZodTypeAny, {
443
+ datasetId: string;
444
+ versionId: string;
445
+ }, {
446
+ datasetId: string;
447
+ versionId: string;
448
+ }>, "many">>;
449
+ rowCount: z.ZodOptional<z.ZodNumber>;
450
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ mode: "append" | "schema" | "snapshot";
453
+ schema: {
454
+ columns: {
455
+ name: string;
456
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
457
+ nullable?: boolean | undefined;
458
+ }[];
459
+ };
460
+ createdAt: string;
461
+ datasetId: string;
462
+ versionId: string;
463
+ sizeBytes?: number | undefined;
464
+ parentVersionId?: string | undefined;
465
+ producer?: {
466
+ kind: "sync" | "pipeline";
467
+ id?: string | undefined;
468
+ runId?: string | undefined;
469
+ } | undefined;
470
+ inputs?: {
471
+ datasetId: string;
472
+ versionId: string;
473
+ }[] | undefined;
474
+ rowCount?: number | undefined;
475
+ }, {
476
+ mode: "append" | "schema" | "snapshot";
477
+ schema: {
478
+ columns: {
479
+ name: string;
480
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
481
+ nullable?: boolean | undefined;
482
+ }[];
483
+ };
484
+ createdAt: string;
485
+ datasetId: string;
486
+ versionId: string;
487
+ sizeBytes?: number | undefined;
488
+ parentVersionId?: string | undefined;
489
+ producer?: {
490
+ kind: "sync" | "pipeline";
491
+ id?: string | undefined;
492
+ runId?: string | undefined;
493
+ } | undefined;
494
+ inputs?: {
495
+ datasetId: string;
496
+ versionId: string;
497
+ }[] | undefined;
498
+ rowCount?: number | undefined;
499
+ }>, "many">;
500
+ count: z.ZodNumber;
501
+ }, "strip", z.ZodTypeAny, {
502
+ count: number;
503
+ versions: {
504
+ mode: "append" | "schema" | "snapshot";
505
+ schema: {
506
+ columns: {
507
+ name: string;
508
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
509
+ nullable?: boolean | undefined;
510
+ }[];
511
+ };
512
+ createdAt: string;
513
+ datasetId: string;
514
+ versionId: string;
515
+ sizeBytes?: number | undefined;
516
+ parentVersionId?: string | undefined;
517
+ producer?: {
518
+ kind: "sync" | "pipeline";
519
+ id?: string | undefined;
520
+ runId?: string | undefined;
521
+ } | undefined;
522
+ inputs?: {
523
+ datasetId: string;
524
+ versionId: string;
525
+ }[] | undefined;
526
+ rowCount?: number | undefined;
527
+ }[];
528
+ }, {
529
+ count: number;
530
+ versions: {
531
+ mode: "append" | "schema" | "snapshot";
532
+ schema: {
533
+ columns: {
534
+ name: string;
535
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
536
+ nullable?: boolean | undefined;
537
+ }[];
538
+ };
539
+ createdAt: string;
540
+ datasetId: string;
541
+ versionId: string;
542
+ sizeBytes?: number | undefined;
543
+ parentVersionId?: string | undefined;
544
+ producer?: {
545
+ kind: "sync" | "pipeline";
546
+ id?: string | undefined;
547
+ runId?: string | undefined;
548
+ } | undefined;
549
+ inputs?: {
550
+ datasetId: string;
551
+ versionId: string;
552
+ }[] | undefined;
553
+ rowCount?: number | undefined;
554
+ }[];
555
+ }>;
556
+ export declare const DatasetRowsResponseSchema: z.ZodObject<{
557
+ datasetId: z.ZodString;
558
+ versionId: z.ZodString;
559
+ version: z.ZodObject<{
560
+ datasetId: z.ZodString;
561
+ versionId: z.ZodString;
562
+ parentVersionId: z.ZodOptional<z.ZodString>;
563
+ mode: z.ZodEnum<["snapshot", "append", "schema"]>;
564
+ createdAt: z.ZodString;
565
+ schema: z.ZodObject<{
566
+ columns: z.ZodArray<z.ZodObject<{
567
+ name: z.ZodString;
568
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
569
+ nullable: z.ZodOptional<z.ZodBoolean>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ name: string;
572
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
573
+ nullable?: boolean | undefined;
574
+ }, {
575
+ name: string;
576
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
577
+ nullable?: boolean | undefined;
578
+ }>, "many">;
579
+ }, "strip", z.ZodTypeAny, {
580
+ columns: {
581
+ name: string;
582
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
583
+ nullable?: boolean | undefined;
584
+ }[];
585
+ }, {
586
+ columns: {
587
+ name: string;
588
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
589
+ nullable?: boolean | undefined;
590
+ }[];
591
+ }>;
592
+ producer: z.ZodOptional<z.ZodObject<{
593
+ kind: z.ZodEnum<["sync", "pipeline"]>;
594
+ id: z.ZodOptional<z.ZodString>;
595
+ runId: z.ZodOptional<z.ZodString>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ kind: "sync" | "pipeline";
598
+ id?: string | undefined;
599
+ runId?: string | undefined;
600
+ }, {
601
+ kind: "sync" | "pipeline";
602
+ id?: string | undefined;
603
+ runId?: string | undefined;
604
+ }>>;
605
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
+ datasetId: z.ZodString;
607
+ versionId: z.ZodString;
608
+ }, "strip", z.ZodTypeAny, {
609
+ datasetId: string;
610
+ versionId: string;
611
+ }, {
612
+ datasetId: string;
613
+ versionId: string;
614
+ }>, "many">>;
615
+ rowCount: z.ZodOptional<z.ZodNumber>;
616
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ mode: "append" | "schema" | "snapshot";
619
+ schema: {
620
+ columns: {
621
+ name: string;
622
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
623
+ nullable?: boolean | undefined;
624
+ }[];
625
+ };
626
+ createdAt: string;
627
+ datasetId: string;
628
+ versionId: string;
629
+ sizeBytes?: number | undefined;
630
+ parentVersionId?: string | undefined;
631
+ producer?: {
632
+ kind: "sync" | "pipeline";
633
+ id?: string | undefined;
634
+ runId?: string | undefined;
635
+ } | undefined;
636
+ inputs?: {
637
+ datasetId: string;
638
+ versionId: string;
639
+ }[] | undefined;
640
+ rowCount?: number | undefined;
641
+ }, {
642
+ mode: "append" | "schema" | "snapshot";
643
+ schema: {
644
+ columns: {
645
+ name: string;
646
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
647
+ nullable?: boolean | undefined;
648
+ }[];
649
+ };
650
+ createdAt: string;
651
+ datasetId: string;
652
+ versionId: string;
653
+ sizeBytes?: number | undefined;
654
+ parentVersionId?: string | undefined;
655
+ producer?: {
656
+ kind: "sync" | "pipeline";
657
+ id?: string | undefined;
658
+ runId?: string | undefined;
659
+ } | undefined;
660
+ inputs?: {
661
+ datasetId: string;
662
+ versionId: string;
663
+ }[] | undefined;
664
+ rowCount?: number | undefined;
665
+ }>;
666
+ columns: z.ZodArray<z.ZodString, "many">;
667
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
668
+ count: z.ZodNumber;
669
+ limit: z.ZodNumber;
670
+ offset: z.ZodNumber;
671
+ total: z.ZodOptional<z.ZodNumber>;
672
+ hasMore: z.ZodBoolean;
673
+ }, "strip", z.ZodTypeAny, {
674
+ count: number;
675
+ limit: number;
676
+ offset: number;
677
+ hasMore: boolean;
678
+ version: {
679
+ mode: "append" | "schema" | "snapshot";
680
+ schema: {
681
+ columns: {
682
+ name: string;
683
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
684
+ nullable?: boolean | undefined;
685
+ }[];
686
+ };
687
+ createdAt: string;
688
+ datasetId: string;
689
+ versionId: string;
690
+ sizeBytes?: number | undefined;
691
+ parentVersionId?: string | undefined;
692
+ producer?: {
693
+ kind: "sync" | "pipeline";
694
+ id?: string | undefined;
695
+ runId?: string | undefined;
696
+ } | undefined;
697
+ inputs?: {
698
+ datasetId: string;
699
+ versionId: string;
700
+ }[] | undefined;
701
+ rowCount?: number | undefined;
702
+ };
703
+ datasetId: string;
704
+ versionId: string;
705
+ columns: string[];
706
+ rows: Record<string, unknown>[];
707
+ total?: number | undefined;
708
+ }, {
709
+ count: number;
710
+ limit: number;
711
+ offset: number;
712
+ hasMore: boolean;
713
+ version: {
714
+ mode: "append" | "schema" | "snapshot";
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
+ createdAt: string;
723
+ datasetId: string;
724
+ versionId: string;
725
+ sizeBytes?: number | undefined;
726
+ parentVersionId?: string | undefined;
727
+ producer?: {
728
+ kind: "sync" | "pipeline";
729
+ id?: string | undefined;
730
+ runId?: string | undefined;
731
+ } | undefined;
732
+ inputs?: {
733
+ datasetId: string;
734
+ versionId: string;
735
+ }[] | undefined;
736
+ rowCount?: number | undefined;
737
+ };
738
+ datasetId: string;
739
+ versionId: string;
740
+ columns: string[];
741
+ rows: Record<string, unknown>[];
742
+ total?: number | undefined;
743
+ }>;
744
+ //# sourceMappingURL=datasets.d.ts.map