@sixb/server 0.2.1 → 0.2.3

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 (153) hide show
  1. package/README.md +3 -3
  2. package/dist/artifacts/frame.d.ts.map +1 -1
  3. package/dist/auth/scope.d.ts +3 -0
  4. package/dist/auth/scope.d.ts.map +1 -1
  5. package/dist/auth/shared-access.d.ts +23 -0
  6. package/dist/auth/shared-access.d.ts.map +1 -1
  7. package/dist/connectors/http.d.ts +6 -1
  8. package/dist/connectors/http.d.ts.map +1 -1
  9. package/dist/index.js +2876 -667
  10. package/dist/index.js.map +43 -36
  11. package/dist/live/awareness.d.ts +48 -0
  12. package/dist/live/awareness.d.ts.map +1 -0
  13. package/dist/live/room.d.ts +198 -0
  14. package/dist/live/room.d.ts.map +1 -0
  15. package/dist/live/rooms.d.ts +67 -0
  16. package/dist/live/rooms.d.ts.map +1 -0
  17. package/dist/registerRoutes.d.ts.map +1 -1
  18. package/dist/routes/actions.d.ts +3 -3
  19. package/dist/routes/agent-approvals.d.ts +21 -11
  20. package/dist/routes/agent-approvals.d.ts.map +1 -1
  21. package/dist/routes/agent-children.d.ts +4 -4
  22. package/dist/routes/agent-computers.d.ts +146 -1
  23. package/dist/routes/agent-computers.d.ts.map +1 -1
  24. package/dist/routes/agent-runners.d.ts.map +1 -1
  25. package/dist/routes/agents.d.ts +152 -60
  26. package/dist/routes/agents.d.ts.map +1 -1
  27. package/dist/routes/artifact-frames.d.ts +2 -1
  28. package/dist/routes/artifact-frames.d.ts.map +1 -1
  29. package/dist/routes/artifacts.d.ts +1713 -178
  30. package/dist/routes/artifacts.d.ts.map +1 -1
  31. package/dist/routes/auth.d.ts +21 -21
  32. package/dist/routes/connector-connection-runs.d.ts +124 -5
  33. package/dist/routes/connector-connection-runs.d.ts.map +1 -1
  34. package/dist/routes/connector-connections.d.ts +9 -1
  35. package/dist/routes/connector-connections.d.ts.map +1 -1
  36. package/dist/routes/datasets.d.ts +5 -5
  37. package/dist/routes/events.d.ts +4 -4
  38. package/dist/routes/lake.d.ts +91 -0
  39. package/dist/routes/lake.d.ts.map +1 -0
  40. package/dist/routes/links.d.ts +6 -6
  41. package/dist/routes/logs.d.ts +2 -2
  42. package/dist/routes/model-generations.d.ts +2 -2
  43. package/dist/routes/objects.d.ts +6 -6
  44. package/dist/routes/objects.d.ts.map +1 -1
  45. package/dist/routes/observed-agent-threads.d.ts +21 -11
  46. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  47. package/dist/routes/ontology.d.ts +6 -6
  48. package/dist/routes/pipelines.d.ts +13 -9
  49. package/dist/routes/pipelines.d.ts.map +1 -1
  50. package/dist/routes/projections.d.ts +27 -27
  51. package/dist/routes/share-grants.d.ts +9 -9
  52. package/dist/routes/shared-access.d.ts +57 -2
  53. package/dist/routes/shared-access.d.ts.map +1 -1
  54. package/dist/routes/status.d.ts +11 -15
  55. package/dist/routes/status.d.ts.map +1 -1
  56. package/dist/routes/syncs.d.ts +9 -6
  57. package/dist/routes/syncs.d.ts.map +1 -1
  58. package/dist/routes/telemetry.d.ts +7 -7
  59. package/dist/routes/webhooks.d.ts.map +1 -1
  60. package/dist/routes/workflows.d.ts +14 -14
  61. package/dist/routes/ws/artifacts.d.ts +57 -0
  62. package/dist/routes/ws/artifacts.d.ts.map +1 -0
  63. package/dist/routes/ws/events.d.ts +8 -7
  64. package/dist/routes/ws/events.d.ts.map +1 -1
  65. package/dist/routes/ws/index.d.ts +2 -1
  66. package/dist/routes/ws/index.d.ts.map +1 -1
  67. package/dist/routes/ws/logs.d.ts +10 -10
  68. package/dist/routes/ws/shared-sockets.d.ts +52 -0
  69. package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
  70. package/dist/schemas/actions.d.ts +7 -7
  71. package/dist/schemas/activity.d.ts +16 -16
  72. package/dist/schemas/agent-approvals.d.ts +27 -27
  73. package/dist/schemas/agents.d.ts +642 -196
  74. package/dist/schemas/agents.d.ts.map +1 -1
  75. package/dist/schemas/ai-accounting.d.ts +41 -41
  76. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  77. package/dist/schemas/artifacts.d.ts +2106 -127
  78. package/dist/schemas/artifacts.d.ts.map +1 -1
  79. package/dist/schemas/auth.d.ts +63 -63
  80. package/dist/schemas/connectors.d.ts +180 -20
  81. package/dist/schemas/connectors.d.ts.map +1 -1
  82. package/dist/schemas/datasets.d.ts +44 -44
  83. package/dist/schemas/event-payloads.d.ts +2 -2
  84. package/dist/schemas/events.d.ts +26 -26
  85. package/dist/schemas/events.d.ts.map +1 -1
  86. package/dist/schemas/files.d.ts +12 -0
  87. package/dist/schemas/files.d.ts.map +1 -1
  88. package/dist/schemas/lake.d.ts +251 -0
  89. package/dist/schemas/lake.d.ts.map +1 -0
  90. package/dist/schemas/lineage.d.ts +56 -56
  91. package/dist/schemas/logs.d.ts +18 -18
  92. package/dist/schemas/models.d.ts +4 -4
  93. package/dist/schemas/objects.d.ts.map +1 -1
  94. package/dist/schemas/ontology.d.ts +14 -14
  95. package/dist/schemas/pipelines.d.ts +86 -64
  96. package/dist/schemas/pipelines.d.ts.map +1 -1
  97. package/dist/schemas/projections.d.ts +160 -160
  98. package/dist/schemas/projections.d.ts.map +1 -1
  99. package/dist/schemas/share-grants.d.ts +30 -30
  100. package/dist/schemas/shared-access.d.ts +17 -4
  101. package/dist/schemas/shared-access.d.ts.map +1 -1
  102. package/dist/schemas/status.d.ts +59 -79
  103. package/dist/schemas/status.d.ts.map +1 -1
  104. package/dist/schemas/syncs.d.ts +38 -22
  105. package/dist/schemas/syncs.d.ts.map +1 -1
  106. package/dist/schemas/telemetry.d.ts +26 -26
  107. package/dist/schemas/workflows.d.ts +71 -71
  108. package/dist/server.d.ts +13 -0
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/utils/ws.d.ts +3 -0
  111. package/dist/utils/ws.d.ts.map +1 -1
  112. package/package.json +11 -7
  113. package/src/artifacts/frame.ts +4 -13
  114. package/src/auth/scope.ts +10 -1
  115. package/src/auth/shared-access.ts +108 -12
  116. package/src/connectors/http.ts +35 -1
  117. package/src/live/README.md +136 -0
  118. package/src/live/awareness.ts +141 -0
  119. package/src/live/room.ts +933 -0
  120. package/src/live/rooms.ts +288 -0
  121. package/src/registerRoutes.ts +2 -0
  122. package/src/routes/agent-computers.ts +208 -14
  123. package/src/routes/agent-runners.ts +1 -0
  124. package/src/routes/agents.ts +52 -7
  125. package/src/routes/artifact-frames.ts +40 -12
  126. package/src/routes/artifacts.ts +713 -28
  127. package/src/routes/connector-connection-runs.ts +7 -12
  128. package/src/routes/connector-connections.ts +10 -7
  129. package/src/routes/lake.ts +73 -0
  130. package/src/routes/objects.ts +3 -9
  131. package/src/routes/pipelines.ts +1 -0
  132. package/src/routes/shared-access.ts +53 -1
  133. package/src/routes/status.ts +9 -4
  134. package/src/routes/syncs.ts +1 -0
  135. package/src/routes/webhooks.ts +44 -3
  136. package/src/routes/ws/artifacts.ts +138 -0
  137. package/src/routes/ws/events.ts +7 -2
  138. package/src/routes/ws/index.ts +13 -2
  139. package/src/routes/ws/shared-sockets.ts +152 -0
  140. package/src/schemas/agents.ts +71 -1
  141. package/src/schemas/ai-accounting.ts +1 -0
  142. package/src/schemas/artifacts.ts +255 -18
  143. package/src/schemas/connectors.ts +17 -2
  144. package/src/schemas/files.ts +12 -0
  145. package/src/schemas/lake.ts +53 -0
  146. package/src/schemas/objects.ts +1 -0
  147. package/src/schemas/pipelines.ts +2 -0
  148. package/src/schemas/projections.ts +2 -2
  149. package/src/schemas/shared-access.ts +16 -0
  150. package/src/schemas/status.ts +16 -22
  151. package/src/schemas/syncs.ts +2 -0
  152. package/src/server.ts +35 -4
  153. package/src/utils/ws.ts +7 -0
@@ -18,7 +18,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
18
18
  offset: z.ZodOptional<z.ZodString>;
19
19
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
21
+ status?: "succeeded" | "failed" | "cancelled" | "running" | "queued" | undefined;
22
22
  startedAfter?: string | undefined;
23
23
  startedBefore?: string | undefined;
24
24
  limit?: string | undefined;
@@ -27,7 +27,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
27
27
  datasetId?: string | undefined;
28
28
  syncId?: string | undefined;
29
29
  }, {
30
- status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
30
+ status?: "succeeded" | "failed" | "cancelled" | "running" | "queued" | undefined;
31
31
  startedAfter?: string | undefined;
32
32
  startedBefore?: string | undefined;
33
33
  limit?: string | undefined;
@@ -53,6 +53,8 @@ export declare const SyncRunSchema: z.ZodObject<{
53
53
  datasetId: z.ZodString;
54
54
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
55
55
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
56
+ /** How many executions took the run: above one, it resumed after losing its worker. */
57
+ attempt: z.ZodNumber;
56
58
  queuedAt: z.ZodString;
57
59
  startedAt: z.ZodOptional<z.ZodString>;
58
60
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -71,11 +73,12 @@ export declare const SyncRunSchema: z.ZodObject<{
71
73
  commitMessage: z.ZodOptional<z.ZodString>;
72
74
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
73
75
  }, "strip", z.ZodTypeAny, {
74
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
76
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
75
77
  projectId: string;
76
78
  id: string;
77
79
  mode: "append" | "merge" | "snapshot";
78
80
  queuedAt: string;
81
+ attempt: number;
79
82
  datasetId: string;
80
83
  syncId: string;
81
84
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -89,11 +92,12 @@ export declare const SyncRunSchema: z.ZodObject<{
89
92
  commitMessage?: string | undefined;
90
93
  rowsRead?: number | undefined;
91
94
  }, {
92
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
95
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
93
96
  projectId: string;
94
97
  id: string;
95
98
  mode: "append" | "merge" | "snapshot";
96
99
  queuedAt: string;
100
+ attempt: number;
97
101
  datasetId: string;
98
102
  syncId: string;
99
103
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -134,24 +138,24 @@ export declare const SyncSchema: z.ZodObject<{
134
138
  type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
135
139
  nullable: z.ZodOptional<z.ZodBoolean>;
136
140
  }, "strip", z.ZodTypeAny, {
137
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
138
141
  name: string;
142
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
139
143
  nullable?: boolean | undefined;
140
144
  }, {
141
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
142
145
  name: string;
146
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
143
147
  nullable?: boolean | undefined;
144
148
  }>, "many">;
145
149
  }, "strip", z.ZodTypeAny, {
146
150
  columns: {
147
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
148
151
  name: string;
152
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
149
153
  nullable?: boolean | undefined;
150
154
  }[];
151
155
  }, {
152
156
  columns: {
153
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
154
157
  name: string;
158
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
155
159
  nullable?: boolean | undefined;
156
160
  }[];
157
161
  }>;
@@ -159,8 +163,8 @@ export declare const SyncSchema: z.ZodObject<{
159
163
  id: string;
160
164
  schema: {
161
165
  columns: {
162
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
163
166
  name: string;
167
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
164
168
  nullable?: boolean | undefined;
165
169
  }[];
166
170
  };
@@ -172,8 +176,8 @@ export declare const SyncSchema: z.ZodObject<{
172
176
  id: string;
173
177
  schema: {
174
178
  columns: {
175
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
176
179
  name: string;
180
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
177
181
  nullable?: boolean | undefined;
178
182
  }[];
179
183
  };
@@ -188,8 +192,8 @@ export declare const SyncSchema: z.ZodObject<{
188
192
  id: string;
189
193
  schema: {
190
194
  columns: {
191
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
192
195
  name: string;
196
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
193
197
  nullable?: boolean | undefined;
194
198
  }[];
195
199
  };
@@ -204,8 +208,8 @@ export declare const SyncSchema: z.ZodObject<{
204
208
  id: string;
205
209
  schema: {
206
210
  columns: {
207
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
208
211
  name: string;
212
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
209
213
  nullable?: boolean | undefined;
210
214
  }[];
211
215
  };
@@ -232,6 +236,8 @@ export declare const SyncSchema: z.ZodObject<{
232
236
  datasetId: z.ZodString;
233
237
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
234
238
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
239
+ /** How many executions took the run: above one, it resumed after losing its worker. */
240
+ attempt: z.ZodNumber;
235
241
  queuedAt: z.ZodString;
236
242
  startedAt: z.ZodOptional<z.ZodString>;
237
243
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -250,11 +256,12 @@ export declare const SyncSchema: z.ZodObject<{
250
256
  commitMessage: z.ZodOptional<z.ZodString>;
251
257
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
252
258
  }, "strip", z.ZodTypeAny, {
253
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
259
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
254
260
  projectId: string;
255
261
  id: string;
256
262
  mode: "append" | "merge" | "snapshot";
257
263
  queuedAt: string;
264
+ attempt: number;
258
265
  datasetId: string;
259
266
  syncId: string;
260
267
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -268,11 +275,12 @@ export declare const SyncSchema: z.ZodObject<{
268
275
  commitMessage?: string | undefined;
269
276
  rowsRead?: number | undefined;
270
277
  }, {
271
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
278
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
272
279
  projectId: string;
273
280
  id: string;
274
281
  mode: "append" | "merge" | "snapshot";
275
282
  queuedAt: string;
283
+ attempt: number;
276
284
  datasetId: string;
277
285
  syncId: string;
278
286
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -298,11 +306,12 @@ export declare const SyncSchema: z.ZodObject<{
298
306
  scheduleId: string;
299
307
  }[];
300
308
  latestRun: {
301
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
309
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
302
310
  projectId: string;
303
311
  id: string;
304
312
  mode: "append" | "merge" | "snapshot";
305
313
  queuedAt: string;
314
+ attempt: number;
306
315
  datasetId: string;
307
316
  syncId: string;
308
317
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -322,8 +331,8 @@ export declare const SyncSchema: z.ZodObject<{
322
331
  id: string;
323
332
  schema: {
324
333
  columns: {
325
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
326
334
  name: string;
335
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
327
336
  nullable?: boolean | undefined;
328
337
  }[];
329
338
  };
@@ -345,11 +354,12 @@ export declare const SyncSchema: z.ZodObject<{
345
354
  scheduleId: string;
346
355
  }[];
347
356
  latestRun: {
348
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
357
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
349
358
  projectId: string;
350
359
  id: string;
351
360
  mode: "append" | "merge" | "snapshot";
352
361
  queuedAt: string;
362
+ attempt: number;
353
363
  datasetId: string;
354
364
  syncId: string;
355
365
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -369,8 +379,8 @@ export declare const SyncSchema: z.ZodObject<{
369
379
  id: string;
370
380
  schema: {
371
381
  columns: {
372
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
373
382
  name: string;
383
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
374
384
  nullable?: boolean | undefined;
375
385
  }[];
376
386
  };
@@ -389,6 +399,8 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
389
399
  datasetId: z.ZodString;
390
400
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
391
401
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
402
+ /** How many executions took the run: above one, it resumed after losing its worker. */
403
+ attempt: z.ZodNumber;
392
404
  queuedAt: z.ZodString;
393
405
  startedAt: z.ZodOptional<z.ZodString>;
394
406
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -407,11 +419,12 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
407
419
  commitMessage: z.ZodOptional<z.ZodString>;
408
420
  error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
409
421
  }, "strip", z.ZodTypeAny, {
410
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
422
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
411
423
  projectId: string;
412
424
  id: string;
413
425
  mode: "append" | "merge" | "snapshot";
414
426
  queuedAt: string;
427
+ attempt: number;
415
428
  datasetId: string;
416
429
  syncId: string;
417
430
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -425,11 +438,12 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
425
438
  commitMessage?: string | undefined;
426
439
  rowsRead?: number | undefined;
427
440
  }, {
428
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
441
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
429
442
  projectId: string;
430
443
  id: string;
431
444
  mode: "append" | "merge" | "snapshot";
432
445
  queuedAt: string;
446
+ attempt: number;
433
447
  datasetId: string;
434
448
  syncId: string;
435
449
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -447,11 +461,12 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
447
461
  total: z.ZodNumber;
448
462
  }, "strip", z.ZodTypeAny, {
449
463
  runs: {
450
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
464
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
451
465
  projectId: string;
452
466
  id: string;
453
467
  mode: "append" | "merge" | "snapshot";
454
468
  queuedAt: string;
469
+ attempt: number;
455
470
  datasetId: string;
456
471
  syncId: string;
457
472
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -469,11 +484,12 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
469
484
  total: number;
470
485
  }, {
471
486
  runs: {
472
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
487
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
473
488
  projectId: string;
474
489
  id: string;
475
490
  mode: "append" | "merge" | "snapshot";
476
491
  queuedAt: string;
492
+ attempt: number;
477
493
  datasetId: string;
478
494
  syncId: string;
479
495
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/schemas/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,mBAAmB,sEAAoE,CAAA;AAGpG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAA;AAOF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAA"}
1
+ {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/schemas/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,mBAAmB,sEAAoE,CAAA;AAGpG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAA;AAOF,eAAO,MAAM,aAAa;;;;;;;IAOxB,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAevF,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAjBrB,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BvF,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;QAhCpC,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCvF,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAA"}
@@ -5,12 +5,12 @@ export declare const TelemetryParamsSchema: z.ZodObject<{
5
5
  propertyId: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  objectTypeId: string;
8
- objectId: string;
9
8
  propertyId: string;
9
+ objectId: string;
10
10
  }, {
11
11
  objectTypeId: string;
12
- objectId: string;
13
12
  propertyId: string;
13
+ objectId: string;
14
14
  }>;
15
15
  export declare const TelemetryHistoryQuerySchema: z.ZodObject<{
16
16
  from: z.ZodOptional<z.ZodString>;
@@ -34,12 +34,12 @@ export declare const BulkTelemetryHistorySeriesInputSchema: z.ZodObject<{
34
34
  propertyId: z.ZodString;
35
35
  }, "strict", z.ZodTypeAny, {
36
36
  objectTypeId: string;
37
- objectId: string;
38
37
  propertyId: string;
38
+ objectId: string;
39
39
  }, {
40
40
  objectTypeId: string;
41
- objectId: string;
42
41
  propertyId: string;
42
+ objectId: string;
43
43
  }>;
44
44
  export declare const BulkTelemetryHistoryBodySchema: z.ZodObject<{
45
45
  series: z.ZodArray<z.ZodObject<{
@@ -48,12 +48,12 @@ export declare const BulkTelemetryHistoryBodySchema: z.ZodObject<{
48
48
  propertyId: z.ZodString;
49
49
  }, "strict", z.ZodTypeAny, {
50
50
  objectTypeId: string;
51
- objectId: string;
52
51
  propertyId: string;
52
+ objectId: string;
53
53
  }, {
54
54
  objectTypeId: string;
55
- objectId: string;
56
55
  propertyId: string;
56
+ objectId: string;
57
57
  }>, "many">;
58
58
  from: z.ZodOptional<z.ZodString>;
59
59
  to: z.ZodOptional<z.ZodString>;
@@ -62,8 +62,8 @@ export declare const BulkTelemetryHistoryBodySchema: z.ZodObject<{
62
62
  }, "strict", z.ZodTypeAny, {
63
63
  series: {
64
64
  objectTypeId: string;
65
- objectId: string;
66
65
  propertyId: string;
66
+ objectId: string;
67
67
  }[];
68
68
  order?: "asc" | "desc" | undefined;
69
69
  from?: string | undefined;
@@ -72,8 +72,8 @@ export declare const BulkTelemetryHistoryBodySchema: z.ZodObject<{
72
72
  }, {
73
73
  series: {
74
74
  objectTypeId: string;
75
- objectId: string;
76
75
  propertyId: string;
76
+ objectId: string;
77
77
  }[];
78
78
  order?: "asc" | "desc" | undefined;
79
79
  from?: string | undefined;
@@ -92,16 +92,16 @@ export declare const TelemetryPointSchema: z.ZodObject<{
92
92
  at: string;
93
93
  projectId: string;
94
94
  objectTypeId: string;
95
- objectId: string;
96
95
  propertyId: string;
96
+ objectId: string;
97
97
  value?: unknown;
98
98
  unit?: string | undefined;
99
99
  }, {
100
100
  at: string;
101
101
  projectId: string;
102
102
  objectTypeId: string;
103
- objectId: string;
104
103
  propertyId: string;
104
+ objectId: string;
105
105
  value?: unknown;
106
106
  unit?: string | undefined;
107
107
  }>;
@@ -121,42 +121,42 @@ export declare const BulkTelemetryHistorySeriesSchema: z.ZodObject<{
121
121
  at: string;
122
122
  projectId: string;
123
123
  objectTypeId: string;
124
- objectId: string;
125
124
  propertyId: string;
125
+ objectId: string;
126
126
  value?: unknown;
127
127
  unit?: string | undefined;
128
128
  }, {
129
129
  at: string;
130
130
  projectId: string;
131
131
  objectTypeId: string;
132
- objectId: string;
133
132
  propertyId: string;
133
+ objectId: string;
134
134
  value?: unknown;
135
135
  unit?: string | undefined;
136
136
  }>, "many">;
137
137
  }, "strip", z.ZodTypeAny, {
138
138
  objectTypeId: string;
139
- objectId: string;
140
139
  propertyId: string;
140
+ objectId: string;
141
141
  points: {
142
142
  at: string;
143
143
  projectId: string;
144
144
  objectTypeId: string;
145
- objectId: string;
146
145
  propertyId: string;
146
+ objectId: string;
147
147
  value?: unknown;
148
148
  unit?: string | undefined;
149
149
  }[];
150
150
  }, {
151
151
  objectTypeId: string;
152
- objectId: string;
153
152
  propertyId: string;
153
+ objectId: string;
154
154
  points: {
155
155
  at: string;
156
156
  projectId: string;
157
157
  objectTypeId: string;
158
- objectId: string;
159
158
  propertyId: string;
159
+ objectId: string;
160
160
  value?: unknown;
161
161
  unit?: string | undefined;
162
162
  }[];
@@ -178,42 +178,42 @@ export declare const BulkTelemetryHistoryResponseSchema: z.ZodObject<{
178
178
  at: string;
179
179
  projectId: string;
180
180
  objectTypeId: string;
181
- objectId: string;
182
181
  propertyId: string;
182
+ objectId: string;
183
183
  value?: unknown;
184
184
  unit?: string | undefined;
185
185
  }, {
186
186
  at: string;
187
187
  projectId: string;
188
188
  objectTypeId: string;
189
- objectId: string;
190
189
  propertyId: string;
190
+ objectId: string;
191
191
  value?: unknown;
192
192
  unit?: string | undefined;
193
193
  }>, "many">;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  objectTypeId: string;
196
- objectId: string;
197
196
  propertyId: string;
197
+ objectId: string;
198
198
  points: {
199
199
  at: string;
200
200
  projectId: string;
201
201
  objectTypeId: string;
202
- objectId: string;
203
202
  propertyId: string;
203
+ objectId: string;
204
204
  value?: unknown;
205
205
  unit?: string | undefined;
206
206
  }[];
207
207
  }, {
208
208
  objectTypeId: string;
209
- objectId: string;
210
209
  propertyId: string;
210
+ objectId: string;
211
211
  points: {
212
212
  at: string;
213
213
  projectId: string;
214
214
  objectTypeId: string;
215
- objectId: string;
216
215
  propertyId: string;
216
+ objectId: string;
217
217
  value?: unknown;
218
218
  unit?: string | undefined;
219
219
  }[];
@@ -221,14 +221,14 @@ export declare const BulkTelemetryHistoryResponseSchema: z.ZodObject<{
221
221
  }, "strip", z.ZodTypeAny, {
222
222
  series: {
223
223
  objectTypeId: string;
224
- objectId: string;
225
224
  propertyId: string;
225
+ objectId: string;
226
226
  points: {
227
227
  at: string;
228
228
  projectId: string;
229
229
  objectTypeId: string;
230
- objectId: string;
231
230
  propertyId: string;
231
+ objectId: string;
232
232
  value?: unknown;
233
233
  unit?: string | undefined;
234
234
  }[];
@@ -236,14 +236,14 @@ export declare const BulkTelemetryHistoryResponseSchema: z.ZodObject<{
236
236
  }, {
237
237
  series: {
238
238
  objectTypeId: string;
239
- objectId: string;
240
239
  propertyId: string;
240
+ objectId: string;
241
241
  points: {
242
242
  at: string;
243
243
  projectId: string;
244
244
  objectTypeId: string;
245
- objectId: string;
246
245
  propertyId: string;
246
+ objectId: string;
247
247
  value?: unknown;
248
248
  unit?: string | undefined;
249
249
  }[];