@sixb/server 0.2.5 → 0.2.6

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 (56) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +525 -61
  4. package/dist/index.js.map +19 -18
  5. package/dist/registerRoutes.d.ts +1 -0
  6. package/dist/registerRoutes.d.ts.map +1 -1
  7. package/dist/routes/agent-approvals.d.ts +22 -0
  8. package/dist/routes/agent-approvals.d.ts.map +1 -1
  9. package/dist/routes/agent-computers.d.ts +36 -0
  10. package/dist/routes/agent-computers.d.ts.map +1 -1
  11. package/dist/routes/agent-thread-reads.d.ts +82 -0
  12. package/dist/routes/agent-thread-reads.d.ts.map +1 -0
  13. package/dist/routes/agents.d.ts +783 -1
  14. package/dist/routes/agents.d.ts.map +1 -1
  15. package/dist/routes/ai-accounting.d.ts.map +1 -1
  16. package/dist/routes/model-generations.d.ts +6 -0
  17. package/dist/routes/model-generations.d.ts.map +1 -1
  18. package/dist/routes/observed-agent-threads.d.ts +22 -0
  19. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  20. package/dist/routes/status.d.ts +4 -1
  21. package/dist/routes/status.d.ts.map +1 -1
  22. package/dist/routes/syncs.d.ts +175 -12
  23. package/dist/routes/syncs.d.ts.map +1 -1
  24. package/dist/routes/workflows.d.ts +6 -6
  25. package/dist/routes/ws/agents.d.ts.map +1 -1
  26. package/dist/schemas/activity.d.ts +4 -4
  27. package/dist/schemas/agents.d.ts +2602 -6
  28. package/dist/schemas/agents.d.ts.map +1 -1
  29. package/dist/schemas/ai-accounting.d.ts +3 -0
  30. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  31. package/dist/schemas/common.d.ts.map +1 -1
  32. package/dist/schemas/models.d.ts +46 -0
  33. package/dist/schemas/models.d.ts.map +1 -1
  34. package/dist/schemas/syncs.d.ts +724 -25
  35. package/dist/schemas/syncs.d.ts.map +1 -1
  36. package/dist/schemas/workflows.d.ts +22 -22
  37. package/dist/server.d.ts +16 -1
  38. package/dist/server.d.ts.map +1 -1
  39. package/package.json +5 -5
  40. package/src/index.ts +6 -1
  41. package/src/registerRoutes.ts +4 -1
  42. package/src/routes/agent-computers.ts +7 -6
  43. package/src/routes/agent-thread-reads.ts +67 -0
  44. package/src/routes/agents.ts +129 -16
  45. package/src/routes/ai-accounting.ts +1 -0
  46. package/src/routes/model-generations.ts +1 -1
  47. package/src/routes/observed-agent-threads.ts +3 -4
  48. package/src/routes/status.ts +18 -1
  49. package/src/routes/syncs.ts +135 -8
  50. package/src/routes/ws/agents.ts +43 -3
  51. package/src/schemas/agents.ts +80 -10
  52. package/src/schemas/ai-accounting.ts +12 -0
  53. package/src/schemas/common.ts +15 -9
  54. package/src/schemas/models.ts +10 -0
  55. package/src/schemas/syncs.ts +63 -1
  56. package/src/server.ts +205 -13
@@ -10,6 +10,7 @@ export declare const SyncParamsSchema: z.ZodObject<{
10
10
  export declare const SyncRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
11
11
  export declare const SyncRunsQuerySchema: z.ZodObject<{
12
12
  syncId: z.ZodOptional<z.ZodString>;
13
+ connectionId: z.ZodOptional<z.ZodString>;
13
14
  datasetId: z.ZodOptional<z.ZodString>;
14
15
  status: z.ZodOptional<z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>>;
15
16
  startedAfter: z.ZodOptional<z.ZodString>;
@@ -25,6 +26,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
25
26
  offset?: string | undefined;
26
27
  order?: "asc" | "desc" | undefined;
27
28
  datasetId?: string | undefined;
29
+ connectionId?: string | undefined;
28
30
  syncId?: string | undefined;
29
31
  }, {
30
32
  status?: "succeeded" | "failed" | "cancelled" | "running" | "queued" | undefined;
@@ -34,15 +36,20 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
34
36
  offset?: string | undefined;
35
37
  order?: "asc" | "desc" | undefined;
36
38
  datasetId?: string | undefined;
39
+ connectionId?: string | undefined;
37
40
  syncId?: string | undefined;
38
41
  }>;
39
42
  export declare const RequestSyncRunBodySchema: z.ZodObject<{
43
+ /** One connection to run, on a sync of an OAuth connector. Without it, every one you can run. */
44
+ connectionId: z.ZodOptional<z.ZodString>;
40
45
  expectedLatestVersionId: z.ZodOptional<z.ZodString>;
41
46
  commitMessage: z.ZodOptional<z.ZodString>;
42
47
  }, "strip", z.ZodTypeAny, {
48
+ connectionId?: string | undefined;
43
49
  expectedLatestVersionId?: string | undefined;
44
50
  commitMessage?: string | undefined;
45
51
  }, {
52
+ connectionId?: string | undefined;
46
53
  expectedLatestVersionId?: string | undefined;
47
54
  commitMessage?: string | undefined;
48
55
  }>;
@@ -50,6 +57,8 @@ export declare const SyncRunSchema: z.ZodObject<{
50
57
  id: z.ZodString;
51
58
  projectId: z.ZodString;
52
59
  syncId: z.ZodString;
60
+ /** The connection the run reads, on a sync of an OAuth connector. */
61
+ connectionId: z.ZodOptional<z.ZodString>;
53
62
  datasetId: z.ZodString;
54
63
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
55
64
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
@@ -71,7 +80,7 @@ export declare const SyncRunSchema: z.ZodObject<{
71
80
  }>>;
72
81
  expectedLatestVersionId: z.ZodOptional<z.ZodString>;
73
82
  commitMessage: z.ZodOptional<z.ZodString>;
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">>>;
83
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
75
84
  }, "strip", z.ZodTypeAny, {
76
85
  status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
77
86
  projectId: string;
@@ -81,13 +90,14 @@ export declare const SyncRunSchema: z.ZodObject<{
81
90
  attempt: number;
82
91
  datasetId: string;
83
92
  syncId: string;
84
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
93
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
85
94
  startedAt?: string | undefined;
86
95
  finishedAt?: string | undefined;
87
96
  output?: {
88
97
  datasetId: string;
89
98
  versionId: string;
90
99
  } | undefined;
100
+ connectionId?: string | undefined;
91
101
  expectedLatestVersionId?: string | undefined;
92
102
  commitMessage?: string | undefined;
93
103
  rowsRead?: number | undefined;
@@ -100,17 +110,502 @@ export declare const SyncRunSchema: z.ZodObject<{
100
110
  attempt: number;
101
111
  datasetId: string;
102
112
  syncId: string;
103
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
113
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
104
114
  startedAt?: string | undefined;
105
115
  finishedAt?: string | undefined;
106
116
  output?: {
107
117
  datasetId: string;
108
118
  versionId: string;
109
119
  } | undefined;
120
+ connectionId?: string | undefined;
110
121
  expectedLatestVersionId?: string | undefined;
111
122
  commitMessage?: string | undefined;
112
123
  rowsRead?: number | undefined;
113
124
  }>;
125
+ /** One connected account of an OAuth connector, and the latest run of each of its syncs. */
126
+ export declare const ConnectorAccountSchema: z.ZodObject<{
127
+ connection: z.ZodObject<{
128
+ id: z.ZodString;
129
+ owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
130
+ type: z.ZodLiteral<"project">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: "project";
133
+ }, {
134
+ type: "project";
135
+ }>, z.ZodObject<{
136
+ type: z.ZodLiteral<"user">;
137
+ id: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ id: string;
140
+ type: "user";
141
+ }, {
142
+ id: string;
143
+ type: "user";
144
+ }>]>;
145
+ slot: z.ZodString;
146
+ account: z.ZodObject<{
147
+ id: z.ZodString;
148
+ label: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ id: string;
151
+ label: string;
152
+ }, {
153
+ id: string;
154
+ label: string;
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ id: string;
158
+ owner: {
159
+ type: "project";
160
+ } | {
161
+ id: string;
162
+ type: "user";
163
+ };
164
+ slot: string;
165
+ account: {
166
+ id: string;
167
+ label: string;
168
+ };
169
+ }, {
170
+ id: string;
171
+ owner: {
172
+ type: "project";
173
+ } | {
174
+ id: string;
175
+ type: "user";
176
+ };
177
+ slot: string;
178
+ account: {
179
+ id: string;
180
+ label: string;
181
+ };
182
+ }>;
183
+ latestRuns: z.ZodArray<z.ZodObject<{
184
+ id: z.ZodString;
185
+ projectId: z.ZodString;
186
+ syncId: z.ZodString;
187
+ /** The connection the run reads, on a sync of an OAuth connector. */
188
+ connectionId: z.ZodOptional<z.ZodString>;
189
+ datasetId: z.ZodString;
190
+ mode: z.ZodEnum<["snapshot", "append", "merge"]>;
191
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
192
+ /** How many executions took the run: above one, it resumed after losing its worker. */
193
+ attempt: z.ZodNumber;
194
+ queuedAt: z.ZodString;
195
+ startedAt: z.ZodOptional<z.ZodString>;
196
+ finishedAt: z.ZodOptional<z.ZodString>;
197
+ rowsRead: z.ZodOptional<z.ZodNumber>;
198
+ output: z.ZodOptional<z.ZodObject<{
199
+ datasetId: z.ZodString;
200
+ versionId: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ datasetId: string;
203
+ versionId: string;
204
+ }, {
205
+ datasetId: string;
206
+ versionId: string;
207
+ }>>;
208
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
209
+ commitMessage: z.ZodOptional<z.ZodString>;
210
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
213
+ projectId: string;
214
+ id: string;
215
+ mode: "append" | "merge" | "snapshot";
216
+ queuedAt: string;
217
+ attempt: number;
218
+ datasetId: string;
219
+ syncId: string;
220
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
221
+ startedAt?: string | undefined;
222
+ finishedAt?: string | undefined;
223
+ output?: {
224
+ datasetId: string;
225
+ versionId: string;
226
+ } | undefined;
227
+ connectionId?: string | undefined;
228
+ expectedLatestVersionId?: string | undefined;
229
+ commitMessage?: string | undefined;
230
+ rowsRead?: number | undefined;
231
+ }, {
232
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
233
+ projectId: string;
234
+ id: string;
235
+ mode: "append" | "merge" | "snapshot";
236
+ queuedAt: string;
237
+ attempt: number;
238
+ datasetId: string;
239
+ syncId: string;
240
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
241
+ startedAt?: string | undefined;
242
+ finishedAt?: string | undefined;
243
+ output?: {
244
+ datasetId: string;
245
+ versionId: string;
246
+ } | undefined;
247
+ connectionId?: string | undefined;
248
+ expectedLatestVersionId?: string | undefined;
249
+ commitMessage?: string | undefined;
250
+ rowsRead?: number | undefined;
251
+ }>, "many">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ connection: {
254
+ id: string;
255
+ owner: {
256
+ type: "project";
257
+ } | {
258
+ id: string;
259
+ type: "user";
260
+ };
261
+ slot: string;
262
+ account: {
263
+ id: string;
264
+ label: string;
265
+ };
266
+ };
267
+ latestRuns: {
268
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
269
+ projectId: string;
270
+ id: string;
271
+ mode: "append" | "merge" | "snapshot";
272
+ queuedAt: string;
273
+ attempt: number;
274
+ datasetId: string;
275
+ syncId: string;
276
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
277
+ startedAt?: string | undefined;
278
+ finishedAt?: string | undefined;
279
+ output?: {
280
+ datasetId: string;
281
+ versionId: string;
282
+ } | undefined;
283
+ connectionId?: string | undefined;
284
+ expectedLatestVersionId?: string | undefined;
285
+ commitMessage?: string | undefined;
286
+ rowsRead?: number | undefined;
287
+ }[];
288
+ }, {
289
+ connection: {
290
+ id: string;
291
+ owner: {
292
+ type: "project";
293
+ } | {
294
+ id: string;
295
+ type: "user";
296
+ };
297
+ slot: string;
298
+ account: {
299
+ id: string;
300
+ label: string;
301
+ };
302
+ };
303
+ latestRuns: {
304
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
305
+ projectId: string;
306
+ id: string;
307
+ mode: "append" | "merge" | "snapshot";
308
+ queuedAt: string;
309
+ attempt: number;
310
+ datasetId: string;
311
+ syncId: string;
312
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
313
+ startedAt?: string | undefined;
314
+ finishedAt?: string | undefined;
315
+ output?: {
316
+ datasetId: string;
317
+ versionId: string;
318
+ } | undefined;
319
+ connectionId?: string | undefined;
320
+ expectedLatestVersionId?: string | undefined;
321
+ commitMessage?: string | undefined;
322
+ rowsRead?: number | undefined;
323
+ }[];
324
+ }>;
325
+ export declare const ConnectorAccountListResponseSchema: z.ZodObject<{
326
+ accounts: z.ZodArray<z.ZodObject<{
327
+ connection: z.ZodObject<{
328
+ id: z.ZodString;
329
+ owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
330
+ type: z.ZodLiteral<"project">;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "project";
333
+ }, {
334
+ type: "project";
335
+ }>, z.ZodObject<{
336
+ type: z.ZodLiteral<"user">;
337
+ id: z.ZodString;
338
+ }, "strip", z.ZodTypeAny, {
339
+ id: string;
340
+ type: "user";
341
+ }, {
342
+ id: string;
343
+ type: "user";
344
+ }>]>;
345
+ slot: z.ZodString;
346
+ account: z.ZodObject<{
347
+ id: z.ZodString;
348
+ label: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id: string;
351
+ label: string;
352
+ }, {
353
+ id: string;
354
+ label: string;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ owner: {
359
+ type: "project";
360
+ } | {
361
+ id: string;
362
+ type: "user";
363
+ };
364
+ slot: string;
365
+ account: {
366
+ id: string;
367
+ label: string;
368
+ };
369
+ }, {
370
+ id: string;
371
+ owner: {
372
+ type: "project";
373
+ } | {
374
+ id: string;
375
+ type: "user";
376
+ };
377
+ slot: string;
378
+ account: {
379
+ id: string;
380
+ label: string;
381
+ };
382
+ }>;
383
+ latestRuns: z.ZodArray<z.ZodObject<{
384
+ id: z.ZodString;
385
+ projectId: z.ZodString;
386
+ syncId: z.ZodString;
387
+ /** The connection the run reads, on a sync of an OAuth connector. */
388
+ connectionId: z.ZodOptional<z.ZodString>;
389
+ datasetId: z.ZodString;
390
+ mode: z.ZodEnum<["snapshot", "append", "merge"]>;
391
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
392
+ /** How many executions took the run: above one, it resumed after losing its worker. */
393
+ attempt: z.ZodNumber;
394
+ queuedAt: z.ZodString;
395
+ startedAt: z.ZodOptional<z.ZodString>;
396
+ finishedAt: z.ZodOptional<z.ZodString>;
397
+ rowsRead: z.ZodOptional<z.ZodNumber>;
398
+ output: z.ZodOptional<z.ZodObject<{
399
+ datasetId: z.ZodString;
400
+ versionId: z.ZodString;
401
+ }, "strip", z.ZodTypeAny, {
402
+ datasetId: string;
403
+ versionId: string;
404
+ }, {
405
+ datasetId: string;
406
+ versionId: string;
407
+ }>>;
408
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
409
+ commitMessage: z.ZodOptional<z.ZodString>;
410
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
413
+ projectId: string;
414
+ id: string;
415
+ mode: "append" | "merge" | "snapshot";
416
+ queuedAt: string;
417
+ attempt: number;
418
+ datasetId: string;
419
+ syncId: string;
420
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
421
+ startedAt?: string | undefined;
422
+ finishedAt?: string | undefined;
423
+ output?: {
424
+ datasetId: string;
425
+ versionId: string;
426
+ } | undefined;
427
+ connectionId?: string | undefined;
428
+ expectedLatestVersionId?: string | undefined;
429
+ commitMessage?: string | undefined;
430
+ rowsRead?: number | undefined;
431
+ }, {
432
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
433
+ projectId: string;
434
+ id: string;
435
+ mode: "append" | "merge" | "snapshot";
436
+ queuedAt: string;
437
+ attempt: number;
438
+ datasetId: string;
439
+ syncId: string;
440
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
441
+ startedAt?: string | undefined;
442
+ finishedAt?: string | undefined;
443
+ output?: {
444
+ datasetId: string;
445
+ versionId: string;
446
+ } | undefined;
447
+ connectionId?: string | undefined;
448
+ expectedLatestVersionId?: string | undefined;
449
+ commitMessage?: string | undefined;
450
+ rowsRead?: number | undefined;
451
+ }>, "many">;
452
+ }, "strip", z.ZodTypeAny, {
453
+ connection: {
454
+ id: string;
455
+ owner: {
456
+ type: "project";
457
+ } | {
458
+ id: string;
459
+ type: "user";
460
+ };
461
+ slot: string;
462
+ account: {
463
+ id: string;
464
+ label: string;
465
+ };
466
+ };
467
+ latestRuns: {
468
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
469
+ projectId: string;
470
+ id: string;
471
+ mode: "append" | "merge" | "snapshot";
472
+ queuedAt: string;
473
+ attempt: number;
474
+ datasetId: string;
475
+ syncId: string;
476
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
477
+ startedAt?: string | undefined;
478
+ finishedAt?: string | undefined;
479
+ output?: {
480
+ datasetId: string;
481
+ versionId: string;
482
+ } | undefined;
483
+ connectionId?: string | undefined;
484
+ expectedLatestVersionId?: string | undefined;
485
+ commitMessage?: string | undefined;
486
+ rowsRead?: number | undefined;
487
+ }[];
488
+ }, {
489
+ connection: {
490
+ id: string;
491
+ owner: {
492
+ type: "project";
493
+ } | {
494
+ id: string;
495
+ type: "user";
496
+ };
497
+ slot: string;
498
+ account: {
499
+ id: string;
500
+ label: string;
501
+ };
502
+ };
503
+ latestRuns: {
504
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
505
+ projectId: string;
506
+ id: string;
507
+ mode: "append" | "merge" | "snapshot";
508
+ queuedAt: string;
509
+ attempt: number;
510
+ datasetId: string;
511
+ syncId: string;
512
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
513
+ startedAt?: string | undefined;
514
+ finishedAt?: string | undefined;
515
+ output?: {
516
+ datasetId: string;
517
+ versionId: string;
518
+ } | undefined;
519
+ connectionId?: string | undefined;
520
+ expectedLatestVersionId?: string | undefined;
521
+ commitMessage?: string | undefined;
522
+ rowsRead?: number | undefined;
523
+ }[];
524
+ }>, "many">;
525
+ }, "strip", z.ZodTypeAny, {
526
+ accounts: {
527
+ connection: {
528
+ id: string;
529
+ owner: {
530
+ type: "project";
531
+ } | {
532
+ id: string;
533
+ type: "user";
534
+ };
535
+ slot: string;
536
+ account: {
537
+ id: string;
538
+ label: string;
539
+ };
540
+ };
541
+ latestRuns: {
542
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
543
+ projectId: string;
544
+ id: string;
545
+ mode: "append" | "merge" | "snapshot";
546
+ queuedAt: string;
547
+ attempt: number;
548
+ datasetId: string;
549
+ syncId: string;
550
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
551
+ startedAt?: string | undefined;
552
+ finishedAt?: string | undefined;
553
+ output?: {
554
+ datasetId: string;
555
+ versionId: string;
556
+ } | undefined;
557
+ connectionId?: string | undefined;
558
+ expectedLatestVersionId?: string | undefined;
559
+ commitMessage?: string | undefined;
560
+ rowsRead?: number | undefined;
561
+ }[];
562
+ }[];
563
+ }, {
564
+ accounts: {
565
+ connection: {
566
+ id: string;
567
+ owner: {
568
+ type: "project";
569
+ } | {
570
+ id: string;
571
+ type: "user";
572
+ };
573
+ slot: string;
574
+ account: {
575
+ id: string;
576
+ label: string;
577
+ };
578
+ };
579
+ latestRuns: {
580
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
581
+ projectId: string;
582
+ id: string;
583
+ mode: "append" | "merge" | "snapshot";
584
+ queuedAt: string;
585
+ attempt: number;
586
+ datasetId: string;
587
+ syncId: string;
588
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
589
+ startedAt?: string | undefined;
590
+ finishedAt?: string | undefined;
591
+ output?: {
592
+ datasetId: string;
593
+ versionId: string;
594
+ } | undefined;
595
+ connectionId?: string | undefined;
596
+ expectedLatestVersionId?: string | undefined;
597
+ commitMessage?: string | undefined;
598
+ rowsRead?: number | undefined;
599
+ }[];
600
+ }[];
601
+ }>;
602
+ export declare const ConnectorAccountsParamsSchema: z.ZodObject<{
603
+ connectorId: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ connectorId: string;
606
+ }, {
607
+ connectorId: string;
608
+ }>;
114
609
  export declare const SyncSchema: z.ZodObject<{
115
610
  id: z.ZodString;
116
611
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
@@ -233,6 +728,8 @@ export declare const SyncSchema: z.ZodObject<{
233
728
  id: z.ZodString;
234
729
  projectId: z.ZodString;
235
730
  syncId: z.ZodString;
731
+ /** The connection the run reads, on a sync of an OAuth connector. */
732
+ connectionId: z.ZodOptional<z.ZodString>;
236
733
  datasetId: z.ZodString;
237
734
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
238
735
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
@@ -254,7 +751,7 @@ export declare const SyncSchema: z.ZodObject<{
254
751
  }>>;
255
752
  expectedLatestVersionId: z.ZodOptional<z.ZodString>;
256
753
  commitMessage: z.ZodOptional<z.ZodString>;
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">>>;
754
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
258
755
  }, "strip", z.ZodTypeAny, {
259
756
  status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
260
757
  projectId: string;
@@ -264,13 +761,14 @@ export declare const SyncSchema: z.ZodObject<{
264
761
  attempt: number;
265
762
  datasetId: string;
266
763
  syncId: string;
267
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
764
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
268
765
  startedAt?: string | undefined;
269
766
  finishedAt?: string | undefined;
270
767
  output?: {
271
768
  datasetId: string;
272
769
  versionId: string;
273
770
  } | undefined;
771
+ connectionId?: string | undefined;
274
772
  expectedLatestVersionId?: string | undefined;
275
773
  commitMessage?: string | undefined;
276
774
  rowsRead?: number | undefined;
@@ -283,17 +781,46 @@ export declare const SyncSchema: z.ZodObject<{
283
781
  attempt: number;
284
782
  datasetId: string;
285
783
  syncId: string;
286
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
784
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
287
785
  startedAt?: string | undefined;
288
786
  finishedAt?: string | undefined;
289
787
  output?: {
290
788
  datasetId: string;
291
789
  versionId: string;
292
790
  } | undefined;
791
+ connectionId?: string | undefined;
293
792
  expectedLatestVersionId?: string | undefined;
294
793
  commitMessage?: string | undefined;
295
794
  rowsRead?: number | undefined;
296
795
  }>>;
796
+ /** On a sync of an OAuth connector: the accounts the caller may see. */
797
+ accounts: z.ZodOptional<z.ZodObject<{
798
+ total: z.ZodNumber;
799
+ /** Their latest run is queued or running. */
800
+ running: z.ZodNumber;
801
+ /** Their latest run failed because the account needs reconnecting. */
802
+ needsReconnecting: z.ZodNumber;
803
+ /** Their latest run failed for any other reason. */
804
+ failing: z.ZodNumber;
805
+ /** Their latest run succeeded. */
806
+ synced: z.ZodNumber;
807
+ /** When the most recent of those successful runs finished. */
808
+ lastSyncedAt: z.ZodOptional<z.ZodString>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ total: number;
811
+ running: number;
812
+ failing: number;
813
+ needsReconnecting: number;
814
+ synced: number;
815
+ lastSyncedAt?: string | undefined;
816
+ }, {
817
+ total: number;
818
+ running: number;
819
+ failing: number;
820
+ needsReconnecting: number;
821
+ synced: number;
822
+ lastSyncedAt?: string | undefined;
823
+ }>>;
297
824
  }, "strip", z.ZodTypeAny, {
298
825
  id: string;
299
826
  connector: {
@@ -314,13 +841,14 @@ export declare const SyncSchema: z.ZodObject<{
314
841
  attempt: number;
315
842
  datasetId: string;
316
843
  syncId: string;
317
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
844
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
318
845
  startedAt?: string | undefined;
319
846
  finishedAt?: string | undefined;
320
847
  output?: {
321
848
  datasetId: string;
322
849
  versionId: string;
323
850
  } | undefined;
851
+ connectionId?: string | undefined;
324
852
  expectedLatestVersionId?: string | undefined;
325
853
  commitMessage?: string | undefined;
326
854
  rowsRead?: number | undefined;
@@ -342,6 +870,14 @@ export declare const SyncSchema: z.ZodObject<{
342
870
  partitionBy?: string[] | undefined;
343
871
  };
344
872
  };
873
+ accounts?: {
874
+ total: number;
875
+ running: number;
876
+ failing: number;
877
+ needsReconnecting: number;
878
+ synced: number;
879
+ lastSyncedAt?: string | undefined;
880
+ } | undefined;
345
881
  }, {
346
882
  id: string;
347
883
  connector: {
@@ -362,13 +898,14 @@ export declare const SyncSchema: z.ZodObject<{
362
898
  attempt: number;
363
899
  datasetId: string;
364
900
  syncId: string;
365
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
901
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
366
902
  startedAt?: string | undefined;
367
903
  finishedAt?: string | undefined;
368
904
  output?: {
369
905
  datasetId: string;
370
906
  versionId: string;
371
907
  } | undefined;
908
+ connectionId?: string | undefined;
372
909
  expectedLatestVersionId?: string | undefined;
373
910
  commitMessage?: string | undefined;
374
911
  rowsRead?: number | undefined;
@@ -390,12 +927,147 @@ export declare const SyncSchema: z.ZodObject<{
390
927
  partitionBy?: string[] | undefined;
391
928
  };
392
929
  };
930
+ accounts?: {
931
+ total: number;
932
+ running: number;
933
+ failing: number;
934
+ needsReconnecting: number;
935
+ synced: number;
936
+ lastSyncedAt?: string | undefined;
937
+ } | undefined;
938
+ }>;
939
+ export declare const ConnectionSyncRunsParamsSchema: z.ZodObject<{
940
+ connectorId: z.ZodString;
941
+ connectionId: z.ZodString;
942
+ }, "strip", z.ZodTypeAny, {
943
+ connectorId: string;
944
+ connectionId: string;
945
+ }, {
946
+ connectorId: string;
947
+ connectionId: string;
948
+ }>;
949
+ export declare const ConnectionSyncRunsResponseSchema: z.ZodObject<{
950
+ runs: z.ZodArray<z.ZodObject<{
951
+ id: z.ZodString;
952
+ projectId: z.ZodString;
953
+ syncId: z.ZodString;
954
+ /** The connection the run reads, on a sync of an OAuth connector. */
955
+ connectionId: z.ZodOptional<z.ZodString>;
956
+ datasetId: z.ZodString;
957
+ mode: z.ZodEnum<["snapshot", "append", "merge"]>;
958
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
959
+ /** How many executions took the run: above one, it resumed after losing its worker. */
960
+ attempt: z.ZodNumber;
961
+ queuedAt: z.ZodString;
962
+ startedAt: z.ZodOptional<z.ZodString>;
963
+ finishedAt: z.ZodOptional<z.ZodString>;
964
+ rowsRead: z.ZodOptional<z.ZodNumber>;
965
+ output: z.ZodOptional<z.ZodObject<{
966
+ datasetId: z.ZodString;
967
+ versionId: z.ZodString;
968
+ }, "strip", z.ZodTypeAny, {
969
+ datasetId: string;
970
+ versionId: string;
971
+ }, {
972
+ datasetId: string;
973
+ versionId: string;
974
+ }>>;
975
+ expectedLatestVersionId: z.ZodOptional<z.ZodString>;
976
+ commitMessage: z.ZodOptional<z.ZodString>;
977
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
980
+ projectId: string;
981
+ id: string;
982
+ mode: "append" | "merge" | "snapshot";
983
+ queuedAt: string;
984
+ attempt: number;
985
+ datasetId: string;
986
+ syncId: string;
987
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
988
+ startedAt?: string | undefined;
989
+ finishedAt?: string | undefined;
990
+ output?: {
991
+ datasetId: string;
992
+ versionId: string;
993
+ } | undefined;
994
+ connectionId?: string | undefined;
995
+ expectedLatestVersionId?: string | undefined;
996
+ commitMessage?: string | undefined;
997
+ rowsRead?: number | undefined;
998
+ }, {
999
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
1000
+ projectId: string;
1001
+ id: string;
1002
+ mode: "append" | "merge" | "snapshot";
1003
+ queuedAt: string;
1004
+ attempt: number;
1005
+ datasetId: string;
1006
+ syncId: string;
1007
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1008
+ startedAt?: string | undefined;
1009
+ finishedAt?: string | undefined;
1010
+ output?: {
1011
+ datasetId: string;
1012
+ versionId: string;
1013
+ } | undefined;
1014
+ connectionId?: string | undefined;
1015
+ expectedLatestVersionId?: string | undefined;
1016
+ commitMessage?: string | undefined;
1017
+ rowsRead?: number | undefined;
1018
+ }>, "many">;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ runs: {
1021
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
1022
+ projectId: string;
1023
+ id: string;
1024
+ mode: "append" | "merge" | "snapshot";
1025
+ queuedAt: string;
1026
+ attempt: number;
1027
+ datasetId: string;
1028
+ syncId: string;
1029
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1030
+ startedAt?: string | undefined;
1031
+ finishedAt?: string | undefined;
1032
+ output?: {
1033
+ datasetId: string;
1034
+ versionId: string;
1035
+ } | undefined;
1036
+ connectionId?: string | undefined;
1037
+ expectedLatestVersionId?: string | undefined;
1038
+ commitMessage?: string | undefined;
1039
+ rowsRead?: number | undefined;
1040
+ }[];
1041
+ }, {
1042
+ runs: {
1043
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
1044
+ projectId: string;
1045
+ id: string;
1046
+ mode: "append" | "merge" | "snapshot";
1047
+ queuedAt: string;
1048
+ attempt: number;
1049
+ datasetId: string;
1050
+ syncId: string;
1051
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1052
+ startedAt?: string | undefined;
1053
+ finishedAt?: string | undefined;
1054
+ output?: {
1055
+ datasetId: string;
1056
+ versionId: string;
1057
+ } | undefined;
1058
+ connectionId?: string | undefined;
1059
+ expectedLatestVersionId?: string | undefined;
1060
+ commitMessage?: string | undefined;
1061
+ rowsRead?: number | undefined;
1062
+ }[];
393
1063
  }>;
394
1064
  export declare const SyncRunListResponseSchema: z.ZodObject<{
395
1065
  runs: z.ZodArray<z.ZodObject<{
396
1066
  id: z.ZodString;
397
1067
  projectId: z.ZodString;
398
1068
  syncId: z.ZodString;
1069
+ /** The connection the run reads, on a sync of an OAuth connector. */
1070
+ connectionId: z.ZodOptional<z.ZodString>;
399
1071
  datasetId: z.ZodString;
400
1072
  mode: z.ZodEnum<["snapshot", "append", "merge"]>;
401
1073
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
@@ -417,7 +1089,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
417
1089
  }>>;
418
1090
  expectedLatestVersionId: z.ZodOptional<z.ZodString>;
419
1091
  commitMessage: z.ZodOptional<z.ZodString>;
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">>>;
1092
+ error: z.ZodOptional<z.ZodType<SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
421
1093
  }, "strip", z.ZodTypeAny, {
422
1094
  status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
423
1095
  projectId: string;
@@ -427,13 +1099,14 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
427
1099
  attempt: number;
428
1100
  datasetId: string;
429
1101
  syncId: string;
430
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1102
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
431
1103
  startedAt?: string | undefined;
432
1104
  finishedAt?: string | undefined;
433
1105
  output?: {
434
1106
  datasetId: string;
435
1107
  versionId: string;
436
1108
  } | undefined;
1109
+ connectionId?: string | undefined;
437
1110
  expectedLatestVersionId?: string | undefined;
438
1111
  commitMessage?: string | undefined;
439
1112
  rowsRead?: number | undefined;
@@ -446,13 +1119,14 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
446
1119
  attempt: number;
447
1120
  datasetId: string;
448
1121
  syncId: string;
449
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1122
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
450
1123
  startedAt?: string | undefined;
451
1124
  finishedAt?: string | undefined;
452
1125
  output?: {
453
1126
  datasetId: string;
454
1127
  versionId: string;
455
1128
  } | undefined;
1129
+ connectionId?: string | undefined;
456
1130
  expectedLatestVersionId?: string | undefined;
457
1131
  commitMessage?: string | undefined;
458
1132
  rowsRead?: number | undefined;
@@ -469,13 +1143,14 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
469
1143
  attempt: number;
470
1144
  datasetId: string;
471
1145
  syncId: string;
472
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1146
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
473
1147
  startedAt?: string | undefined;
474
1148
  finishedAt?: string | undefined;
475
1149
  output?: {
476
1150
  datasetId: string;
477
1151
  versionId: string;
478
1152
  } | undefined;
1153
+ connectionId?: string | undefined;
479
1154
  expectedLatestVersionId?: string | undefined;
480
1155
  commitMessage?: string | undefined;
481
1156
  rowsRead?: number | undefined;
@@ -492,13 +1167,14 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
492
1167
  attempt: number;
493
1168
  datasetId: string;
494
1169
  syncId: string;
495
- error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
1170
+ error?: SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
496
1171
  startedAt?: string | undefined;
497
1172
  finishedAt?: string | undefined;
498
1173
  output?: {
499
1174
  datasetId: string;
500
1175
  versionId: string;
501
1176
  } | undefined;
1177
+ connectionId?: string | undefined;
502
1178
  expectedLatestVersionId?: string | undefined;
503
1179
  commitMessage?: string | undefined;
504
1180
  rowsRead?: number | undefined;
@@ -506,20 +1182,43 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
506
1182
  hasMore: boolean;
507
1183
  total: number;
508
1184
  }>;
1185
+ /** One run for a static connector's sync; one per connection for an OAuth connector's sync. */
509
1186
  export declare const RequestSyncRunResponseSchema: z.ZodObject<{
510
- runId: z.ZodString;
511
- jobId: z.ZodString;
512
- syncId: z.ZodString;
513
- queuedAt: z.ZodString;
1187
+ runs: z.ZodArray<z.ZodObject<{
1188
+ runId: z.ZodString;
1189
+ jobId: z.ZodString;
1190
+ syncId: z.ZodString;
1191
+ /** The connection the run reads, on a sync of an OAuth connector. */
1192
+ connectionId: z.ZodOptional<z.ZodString>;
1193
+ queuedAt: z.ZodString;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ runId: string;
1196
+ queuedAt: string;
1197
+ jobId: string;
1198
+ syncId: string;
1199
+ connectionId?: string | undefined;
1200
+ }, {
1201
+ runId: string;
1202
+ queuedAt: string;
1203
+ jobId: string;
1204
+ syncId: string;
1205
+ connectionId?: string | undefined;
1206
+ }>, "many">;
514
1207
  }, "strip", z.ZodTypeAny, {
515
- runId: string;
516
- queuedAt: string;
517
- jobId: string;
518
- syncId: string;
1208
+ runs: {
1209
+ runId: string;
1210
+ queuedAt: string;
1211
+ jobId: string;
1212
+ syncId: string;
1213
+ connectionId?: string | undefined;
1214
+ }[];
519
1215
  }, {
520
- runId: string;
521
- queuedAt: string;
522
- jobId: string;
523
- syncId: string;
1216
+ runs: {
1217
+ runId: string;
1218
+ queuedAt: string;
1219
+ jobId: string;
1220
+ syncId: string;
1221
+ connectionId?: string | undefined;
1222
+ }[];
524
1223
  }>;
525
1224
  //# sourceMappingURL=syncs.d.ts.map