@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,538 @@
1
+ import { z } from "zod";
2
+ export declare const SyncParamsSchema: z.ZodObject<{
3
+ syncId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ syncId: string;
6
+ }, {
7
+ syncId: string;
8
+ }>;
9
+ export declare const SyncRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
10
+ export declare const SyncRunsQuerySchema: z.ZodObject<{
11
+ syncId: z.ZodOptional<z.ZodString>;
12
+ datasetId: z.ZodOptional<z.ZodString>;
13
+ status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>>;
14
+ startedAfter: z.ZodOptional<z.ZodString>;
15
+ startedBefore: z.ZodOptional<z.ZodString>;
16
+ limit: z.ZodOptional<z.ZodString>;
17
+ offset: z.ZodOptional<z.ZodString>;
18
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
21
+ limit?: string | undefined;
22
+ offset?: string | undefined;
23
+ order?: "asc" | "desc" | undefined;
24
+ startedAfter?: string | undefined;
25
+ startedBefore?: string | undefined;
26
+ datasetId?: string | undefined;
27
+ syncId?: string | undefined;
28
+ }, {
29
+ status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
30
+ limit?: string | undefined;
31
+ offset?: string | undefined;
32
+ order?: "asc" | "desc" | undefined;
33
+ startedAfter?: string | undefined;
34
+ startedBefore?: string | undefined;
35
+ datasetId?: string | undefined;
36
+ syncId?: string | undefined;
37
+ }>;
38
+ export declare const RequestSyncRunBodySchema: z.ZodObject<{
39
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
40
+ commitMessage: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ expectedLatestVersionId?: string | undefined;
43
+ commitMessage?: string | undefined;
44
+ }, {
45
+ expectedLatestVersionId?: string | undefined;
46
+ commitMessage?: string | undefined;
47
+ }>;
48
+ export declare const SyncRunSchema: z.ZodObject<{
49
+ id: z.ZodString;
50
+ projectId: z.ZodString;
51
+ syncId: z.ZodString;
52
+ datasetId: z.ZodString;
53
+ mode: z.ZodEnum<["snapshot", "append"]>;
54
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
55
+ startedAt: z.ZodString;
56
+ finishedAt: z.ZodOptional<z.ZodString>;
57
+ rowsRead: z.ZodOptional<z.ZodNumber>;
58
+ output: z.ZodOptional<z.ZodObject<{
59
+ datasetId: z.ZodString;
60
+ versionId: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ datasetId: string;
63
+ versionId: string;
64
+ }, {
65
+ datasetId: string;
66
+ versionId: string;
67
+ }>>;
68
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
69
+ commitMessage: z.ZodOptional<z.ZodString>;
70
+ error: z.ZodOptional<z.ZodObject<{
71
+ name: z.ZodOptional<z.ZodString>;
72
+ message: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ message: string;
75
+ name?: string | undefined;
76
+ }, {
77
+ message: string;
78
+ name?: string | undefined;
79
+ }>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ status: "running" | "succeeded" | "failed" | "cancelled";
82
+ projectId: string;
83
+ id: string;
84
+ mode: "append" | "snapshot";
85
+ startedAt: string;
86
+ datasetId: string;
87
+ syncId: string;
88
+ error?: {
89
+ message: string;
90
+ name?: string | undefined;
91
+ } | undefined;
92
+ finishedAt?: string | undefined;
93
+ output?: {
94
+ datasetId: string;
95
+ versionId: string;
96
+ } | undefined;
97
+ expectedLatestVersionId?: string | undefined;
98
+ commitMessage?: string | undefined;
99
+ rowsRead?: number | undefined;
100
+ }, {
101
+ status: "running" | "succeeded" | "failed" | "cancelled";
102
+ projectId: string;
103
+ id: string;
104
+ mode: "append" | "snapshot";
105
+ startedAt: string;
106
+ datasetId: string;
107
+ syncId: string;
108
+ error?: {
109
+ message: string;
110
+ name?: string | undefined;
111
+ } | undefined;
112
+ finishedAt?: string | undefined;
113
+ output?: {
114
+ datasetId: string;
115
+ versionId: string;
116
+ } | undefined;
117
+ expectedLatestVersionId?: string | undefined;
118
+ commitMessage?: string | undefined;
119
+ rowsRead?: number | undefined;
120
+ }>;
121
+ export declare const SyncSchema: z.ZodObject<{
122
+ id: z.ZodString;
123
+ mode: z.ZodEnum<["snapshot", "append"]>;
124
+ connector: z.ZodObject<{
125
+ id: z.ZodString;
126
+ type: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: string;
129
+ id: string;
130
+ }, {
131
+ type: string;
132
+ id: string;
133
+ }>;
134
+ target: z.ZodObject<{
135
+ kind: z.ZodLiteral<"dataset">;
136
+ dataset: z.ZodObject<{
137
+ id: z.ZodString;
138
+ description: z.ZodOptional<z.ZodString>;
139
+ partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
+ schema: z.ZodObject<{
141
+ columns: z.ZodArray<z.ZodObject<{
142
+ name: z.ZodString;
143
+ type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
144
+ nullable: z.ZodOptional<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ name: string;
147
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
148
+ nullable?: boolean | undefined;
149
+ }, {
150
+ name: string;
151
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
152
+ nullable?: boolean | undefined;
153
+ }>, "many">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ columns: {
156
+ name: string;
157
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
158
+ nullable?: boolean | undefined;
159
+ }[];
160
+ }, {
161
+ columns: {
162
+ name: string;
163
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
164
+ nullable?: boolean | undefined;
165
+ }[];
166
+ }>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ id: string;
169
+ schema: {
170
+ columns: {
171
+ name: string;
172
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
173
+ nullable?: boolean | undefined;
174
+ }[];
175
+ };
176
+ description?: string | undefined;
177
+ partitionBy?: string[] | undefined;
178
+ }, {
179
+ id: string;
180
+ schema: {
181
+ columns: {
182
+ name: string;
183
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
184
+ nullable?: boolean | undefined;
185
+ }[];
186
+ };
187
+ description?: string | undefined;
188
+ partitionBy?: string[] | undefined;
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ kind: "dataset";
192
+ dataset: {
193
+ id: string;
194
+ schema: {
195
+ columns: {
196
+ name: string;
197
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
198
+ nullable?: boolean | undefined;
199
+ }[];
200
+ };
201
+ description?: string | undefined;
202
+ partitionBy?: string[] | undefined;
203
+ };
204
+ }, {
205
+ kind: "dataset";
206
+ dataset: {
207
+ id: string;
208
+ schema: {
209
+ columns: {
210
+ name: string;
211
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
212
+ nullable?: boolean | undefined;
213
+ }[];
214
+ };
215
+ description?: string | undefined;
216
+ partitionBy?: string[] | undefined;
217
+ };
218
+ }>;
219
+ triggers: z.ZodArray<z.ZodObject<{
220
+ type: z.ZodLiteral<"schedule">;
221
+ scheduleId: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: "schedule";
224
+ scheduleId: string;
225
+ }, {
226
+ type: "schedule";
227
+ scheduleId: string;
228
+ }>, "many">;
229
+ latestRun: z.ZodNullable<z.ZodObject<{
230
+ id: z.ZodString;
231
+ projectId: z.ZodString;
232
+ syncId: z.ZodString;
233
+ datasetId: z.ZodString;
234
+ mode: z.ZodEnum<["snapshot", "append"]>;
235
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
236
+ startedAt: z.ZodString;
237
+ finishedAt: z.ZodOptional<z.ZodString>;
238
+ rowsRead: z.ZodOptional<z.ZodNumber>;
239
+ output: z.ZodOptional<z.ZodObject<{
240
+ datasetId: z.ZodString;
241
+ versionId: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ datasetId: string;
244
+ versionId: string;
245
+ }, {
246
+ datasetId: string;
247
+ versionId: string;
248
+ }>>;
249
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
250
+ commitMessage: z.ZodOptional<z.ZodString>;
251
+ error: z.ZodOptional<z.ZodObject<{
252
+ name: z.ZodOptional<z.ZodString>;
253
+ message: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ message: string;
256
+ name?: string | undefined;
257
+ }, {
258
+ message: string;
259
+ name?: string | undefined;
260
+ }>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ status: "running" | "succeeded" | "failed" | "cancelled";
263
+ projectId: string;
264
+ id: string;
265
+ mode: "append" | "snapshot";
266
+ startedAt: string;
267
+ datasetId: string;
268
+ syncId: string;
269
+ error?: {
270
+ message: string;
271
+ name?: string | undefined;
272
+ } | undefined;
273
+ finishedAt?: string | undefined;
274
+ output?: {
275
+ datasetId: string;
276
+ versionId: string;
277
+ } | undefined;
278
+ expectedLatestVersionId?: string | undefined;
279
+ commitMessage?: string | undefined;
280
+ rowsRead?: number | undefined;
281
+ }, {
282
+ status: "running" | "succeeded" | "failed" | "cancelled";
283
+ projectId: string;
284
+ id: string;
285
+ mode: "append" | "snapshot";
286
+ startedAt: string;
287
+ datasetId: string;
288
+ syncId: string;
289
+ error?: {
290
+ message: string;
291
+ name?: string | undefined;
292
+ } | undefined;
293
+ finishedAt?: string | undefined;
294
+ output?: {
295
+ datasetId: string;
296
+ versionId: string;
297
+ } | undefined;
298
+ expectedLatestVersionId?: string | undefined;
299
+ commitMessage?: string | undefined;
300
+ rowsRead?: number | undefined;
301
+ }>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ id: string;
304
+ mode: "append" | "snapshot";
305
+ triggers: {
306
+ type: "schedule";
307
+ scheduleId: string;
308
+ }[];
309
+ latestRun: {
310
+ status: "running" | "succeeded" | "failed" | "cancelled";
311
+ projectId: string;
312
+ id: string;
313
+ mode: "append" | "snapshot";
314
+ startedAt: string;
315
+ datasetId: string;
316
+ syncId: string;
317
+ error?: {
318
+ message: string;
319
+ name?: string | undefined;
320
+ } | undefined;
321
+ finishedAt?: string | undefined;
322
+ output?: {
323
+ datasetId: string;
324
+ versionId: string;
325
+ } | undefined;
326
+ expectedLatestVersionId?: string | undefined;
327
+ commitMessage?: string | undefined;
328
+ rowsRead?: number | undefined;
329
+ } | null;
330
+ target: {
331
+ kind: "dataset";
332
+ dataset: {
333
+ id: string;
334
+ schema: {
335
+ columns: {
336
+ name: string;
337
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
338
+ nullable?: boolean | undefined;
339
+ }[];
340
+ };
341
+ description?: string | undefined;
342
+ partitionBy?: string[] | undefined;
343
+ };
344
+ };
345
+ connector: {
346
+ type: string;
347
+ id: string;
348
+ };
349
+ }, {
350
+ id: string;
351
+ mode: "append" | "snapshot";
352
+ triggers: {
353
+ type: "schedule";
354
+ scheduleId: string;
355
+ }[];
356
+ latestRun: {
357
+ status: "running" | "succeeded" | "failed" | "cancelled";
358
+ projectId: string;
359
+ id: string;
360
+ mode: "append" | "snapshot";
361
+ startedAt: string;
362
+ datasetId: string;
363
+ syncId: string;
364
+ error?: {
365
+ message: string;
366
+ name?: string | undefined;
367
+ } | undefined;
368
+ finishedAt?: string | undefined;
369
+ output?: {
370
+ datasetId: string;
371
+ versionId: string;
372
+ } | undefined;
373
+ expectedLatestVersionId?: string | undefined;
374
+ commitMessage?: string | undefined;
375
+ rowsRead?: number | undefined;
376
+ } | null;
377
+ target: {
378
+ kind: "dataset";
379
+ dataset: {
380
+ id: string;
381
+ schema: {
382
+ columns: {
383
+ name: string;
384
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
385
+ nullable?: boolean | undefined;
386
+ }[];
387
+ };
388
+ description?: string | undefined;
389
+ partitionBy?: string[] | undefined;
390
+ };
391
+ };
392
+ connector: {
393
+ type: string;
394
+ id: string;
395
+ };
396
+ }>;
397
+ export declare const SyncRunListResponseSchema: z.ZodObject<{
398
+ runs: z.ZodArray<z.ZodObject<{
399
+ id: z.ZodString;
400
+ projectId: z.ZodString;
401
+ syncId: z.ZodString;
402
+ datasetId: z.ZodString;
403
+ mode: z.ZodEnum<["snapshot", "append"]>;
404
+ status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
405
+ startedAt: z.ZodString;
406
+ finishedAt: z.ZodOptional<z.ZodString>;
407
+ rowsRead: z.ZodOptional<z.ZodNumber>;
408
+ output: z.ZodOptional<z.ZodObject<{
409
+ datasetId: z.ZodString;
410
+ versionId: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ datasetId: string;
413
+ versionId: string;
414
+ }, {
415
+ datasetId: string;
416
+ versionId: string;
417
+ }>>;
418
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
419
+ commitMessage: z.ZodOptional<z.ZodString>;
420
+ error: z.ZodOptional<z.ZodObject<{
421
+ name: z.ZodOptional<z.ZodString>;
422
+ message: z.ZodString;
423
+ }, "strip", z.ZodTypeAny, {
424
+ message: string;
425
+ name?: string | undefined;
426
+ }, {
427
+ message: string;
428
+ name?: string | undefined;
429
+ }>>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ status: "running" | "succeeded" | "failed" | "cancelled";
432
+ projectId: string;
433
+ id: string;
434
+ mode: "append" | "snapshot";
435
+ startedAt: string;
436
+ datasetId: string;
437
+ syncId: string;
438
+ error?: {
439
+ message: string;
440
+ name?: string | undefined;
441
+ } | undefined;
442
+ finishedAt?: string | undefined;
443
+ output?: {
444
+ datasetId: string;
445
+ versionId: string;
446
+ } | undefined;
447
+ expectedLatestVersionId?: string | undefined;
448
+ commitMessage?: string | undefined;
449
+ rowsRead?: number | undefined;
450
+ }, {
451
+ status: "running" | "succeeded" | "failed" | "cancelled";
452
+ projectId: string;
453
+ id: string;
454
+ mode: "append" | "snapshot";
455
+ startedAt: string;
456
+ datasetId: string;
457
+ syncId: string;
458
+ error?: {
459
+ message: string;
460
+ name?: string | undefined;
461
+ } | undefined;
462
+ finishedAt?: string | undefined;
463
+ output?: {
464
+ datasetId: string;
465
+ versionId: string;
466
+ } | undefined;
467
+ expectedLatestVersionId?: string | undefined;
468
+ commitMessage?: string | undefined;
469
+ rowsRead?: number | undefined;
470
+ }>, "many">;
471
+ hasMore: z.ZodBoolean;
472
+ total: z.ZodNumber;
473
+ }, "strip", z.ZodTypeAny, {
474
+ runs: {
475
+ status: "running" | "succeeded" | "failed" | "cancelled";
476
+ projectId: string;
477
+ id: string;
478
+ mode: "append" | "snapshot";
479
+ startedAt: string;
480
+ datasetId: string;
481
+ syncId: string;
482
+ error?: {
483
+ message: string;
484
+ name?: string | undefined;
485
+ } | undefined;
486
+ finishedAt?: string | undefined;
487
+ output?: {
488
+ datasetId: string;
489
+ versionId: string;
490
+ } | undefined;
491
+ expectedLatestVersionId?: string | undefined;
492
+ commitMessage?: string | undefined;
493
+ rowsRead?: number | undefined;
494
+ }[];
495
+ hasMore: boolean;
496
+ total: number;
497
+ }, {
498
+ runs: {
499
+ status: "running" | "succeeded" | "failed" | "cancelled";
500
+ projectId: string;
501
+ id: string;
502
+ mode: "append" | "snapshot";
503
+ startedAt: string;
504
+ datasetId: string;
505
+ syncId: string;
506
+ error?: {
507
+ message: string;
508
+ name?: string | undefined;
509
+ } | undefined;
510
+ finishedAt?: string | undefined;
511
+ output?: {
512
+ datasetId: string;
513
+ versionId: string;
514
+ } | undefined;
515
+ expectedLatestVersionId?: string | undefined;
516
+ commitMessage?: string | undefined;
517
+ rowsRead?: number | undefined;
518
+ }[];
519
+ hasMore: boolean;
520
+ total: number;
521
+ }>;
522
+ export declare const RequestSyncRunResponseSchema: z.ZodObject<{
523
+ runId: z.ZodString;
524
+ jobId: z.ZodString;
525
+ syncId: z.ZodString;
526
+ queuedAt: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
528
+ runId: string;
529
+ queuedAt: string;
530
+ jobId: string;
531
+ syncId: string;
532
+ }, {
533
+ runId: string;
534
+ queuedAt: string;
535
+ jobId: string;
536
+ syncId: string;
537
+ }>;
538
+ //# sourceMappingURL=syncs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/schemas/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,mBAAmB,4DAA0D,CAAA;AAE1F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAA;AAOF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBxB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAA"}