@sixb/server 0.1.20 → 0.1.21

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 (70) hide show
  1. package/dist/artifacts/frame.d.ts +13 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +5 -0
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/public-routes.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +2 -3
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +3427 -2402
  9. package/dist/index.js.map +23 -17
  10. package/dist/openapi/tags.d.ts +10 -2
  11. package/dist/openapi/tags.d.ts.map +1 -1
  12. package/dist/registerRoutes.d.ts +3 -0
  13. package/dist/registerRoutes.d.ts.map +1 -1
  14. package/dist/routes/activity.d.ts +35 -0
  15. package/dist/routes/activity.d.ts.map +1 -0
  16. package/dist/routes/agents.d.ts +18 -27
  17. package/dist/routes/agents.d.ts.map +1 -1
  18. package/dist/routes/artifact-frames.d.ts +98 -0
  19. package/dist/routes/artifact-frames.d.ts.map +1 -0
  20. package/dist/routes/artifacts.d.ts +852 -0
  21. package/dist/routes/artifacts.d.ts.map +1 -0
  22. package/dist/routes/auth.d.ts +1 -1
  23. package/dist/routes/connector-connection-runs.d.ts +59 -59
  24. package/dist/routes/connector-connections.d.ts +2 -2
  25. package/dist/routes/datasets.d.ts +7 -7
  26. package/dist/routes/events.d.ts +1 -1
  27. package/dist/routes/pipelines.d.ts +31 -31
  28. package/dist/routes/projections.d.ts +10 -10
  29. package/dist/routes/share-grants.d.ts +5 -5
  30. package/dist/routes/syncs.d.ts +38 -38
  31. package/dist/routes/workflows.d.ts +30 -30
  32. package/dist/routes/ws/events.d.ts.map +1 -1
  33. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  34. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  35. package/dist/schemas/activity.d.ts +1278 -0
  36. package/dist/schemas/activity.d.ts.map +1 -0
  37. package/dist/schemas/agents.d.ts +96 -144
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +24 -24
  40. package/dist/schemas/ai-limits.d.ts +26 -26
  41. package/dist/schemas/artifacts.d.ts +1305 -0
  42. package/dist/schemas/artifacts.d.ts.map +1 -0
  43. package/dist/schemas/auth.d.ts +6 -6
  44. package/dist/schemas/connectors.d.ts +30 -30
  45. package/dist/schemas/datasets.d.ts +10 -10
  46. package/dist/schemas/events.d.ts +6 -6
  47. package/dist/schemas/pipelines.d.ts +35 -35
  48. package/dist/schemas/projections.d.ts +40 -40
  49. package/dist/schemas/share-grants.d.ts +16 -16
  50. package/dist/schemas/syncs.d.ts +36 -36
  51. package/dist/schemas/workflows.d.ts +84 -84
  52. package/dist/server.d.ts.map +1 -1
  53. package/package.json +4 -4
  54. package/src/artifacts/frame.ts +46 -0
  55. package/src/auth/browser-origin.ts +12 -2
  56. package/src/auth/public-routes.ts +10 -0
  57. package/src/files/content.ts +9 -13
  58. package/src/openapi/tags.ts +8 -0
  59. package/src/registerRoutes.ts +9 -0
  60. package/src/routes/activity.ts +327 -0
  61. package/src/routes/agents.ts +1 -1
  62. package/src/routes/artifact-frames.ts +138 -0
  63. package/src/routes/artifacts.ts +442 -0
  64. package/src/routes/file-downloads.ts +1 -3
  65. package/src/routes/ws/events.ts +3 -2
  66. package/src/routes/ws/subscription-hub.ts +53 -20
  67. package/src/schemas/activity.ts +285 -0
  68. package/src/schemas/agents.ts +1 -2
  69. package/src/schemas/artifacts.ts +158 -0
  70. package/src/server.ts +25 -9
@@ -50,11 +50,11 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
50
50
  id: string;
51
51
  expiresAt: string;
52
52
  createdAt: string;
53
+ definitionId: string;
53
54
  target: {
54
55
  objectTypeId: string;
55
56
  primaryId: string;
56
57
  };
57
- definitionId: string;
58
58
  issuedBy: {
59
59
  id: string;
60
60
  type: "user" | "serviceAccount";
@@ -69,11 +69,11 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
69
69
  id: string;
70
70
  expiresAt: string;
71
71
  createdAt: string;
72
+ definitionId: string;
72
73
  target: {
73
74
  objectTypeId: string;
74
75
  primaryId: string;
75
76
  };
76
- definitionId: string;
77
77
  issuedBy: {
78
78
  id: string;
79
79
  type: "user" | "serviceAccount";
@@ -101,19 +101,19 @@ export declare const IssueSharedAccessGrantBodySchema: z.ZodObject<{
101
101
  expiresAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  expiresAt: string;
104
+ definitionId: string;
104
105
  target: {
105
106
  objectTypeId: string;
106
107
  primaryId: string;
107
108
  };
108
- definitionId: string;
109
109
  destinationPath: string;
110
110
  }, {
111
111
  expiresAt: string;
112
+ definitionId: string;
112
113
  target: {
113
114
  objectTypeId: string;
114
115
  primaryId: string;
115
116
  };
116
- definitionId: string;
117
117
  destinationPath: string;
118
118
  }>;
119
119
  export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
@@ -158,11 +158,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
158
158
  id: string;
159
159
  expiresAt: string;
160
160
  createdAt: string;
161
+ definitionId: string;
161
162
  target: {
162
163
  objectTypeId: string;
163
164
  primaryId: string;
164
165
  };
165
- definitionId: string;
166
166
  issuedBy: {
167
167
  id: string;
168
168
  type: "user" | "serviceAccount";
@@ -177,11 +177,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
177
177
  id: string;
178
178
  expiresAt: string;
179
179
  createdAt: string;
180
+ definitionId: string;
180
181
  target: {
181
182
  objectTypeId: string;
182
183
  primaryId: string;
183
184
  };
184
- definitionId: string;
185
185
  issuedBy: {
186
186
  id: string;
187
187
  type: "user" | "serviceAccount";
@@ -201,11 +201,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
201
201
  id: string;
202
202
  expiresAt: string;
203
203
  createdAt: string;
204
+ definitionId: string;
204
205
  target: {
205
206
  objectTypeId: string;
206
207
  primaryId: string;
207
208
  };
208
- definitionId: string;
209
209
  issuedBy: {
210
210
  id: string;
211
211
  type: "user" | "serviceAccount";
@@ -223,11 +223,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
223
223
  id: string;
224
224
  expiresAt: string;
225
225
  createdAt: string;
226
+ definitionId: string;
226
227
  target: {
227
228
  objectTypeId: string;
228
229
  primaryId: string;
229
230
  };
230
- definitionId: string;
231
231
  issuedBy: {
232
232
  id: string;
233
233
  type: "user" | "serviceAccount";
@@ -304,11 +304,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
304
304
  id: string;
305
305
  expiresAt: string;
306
306
  createdAt: string;
307
+ definitionId: string;
307
308
  target: {
308
309
  objectTypeId: string;
309
310
  primaryId: string;
310
311
  };
311
- definitionId: string;
312
312
  issuedBy: {
313
313
  id: string;
314
314
  type: "user" | "serviceAccount";
@@ -323,11 +323,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
323
323
  id: string;
324
324
  expiresAt: string;
325
325
  createdAt: string;
326
+ definitionId: string;
326
327
  target: {
327
328
  objectTypeId: string;
328
329
  primaryId: string;
329
330
  };
330
- definitionId: string;
331
331
  issuedBy: {
332
332
  id: string;
333
333
  type: "user" | "serviceAccount";
@@ -348,11 +348,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
348
348
  id: string;
349
349
  expiresAt: string;
350
350
  createdAt: string;
351
+ definitionId: string;
351
352
  target: {
352
353
  objectTypeId: string;
353
354
  primaryId: string;
354
355
  };
355
- definitionId: string;
356
356
  issuedBy: {
357
357
  id: string;
358
358
  type: "user" | "serviceAccount";
@@ -371,11 +371,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
371
371
  id: string;
372
372
  expiresAt: string;
373
373
  createdAt: string;
374
+ definitionId: string;
374
375
  target: {
375
376
  objectTypeId: string;
376
377
  primaryId: string;
377
378
  };
378
- definitionId: string;
379
379
  issuedBy: {
380
380
  id: string;
381
381
  type: "user" | "serviceAccount";
@@ -437,11 +437,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
437
437
  id: string;
438
438
  expiresAt: string;
439
439
  createdAt: string;
440
+ definitionId: string;
440
441
  target: {
441
442
  objectTypeId: string;
442
443
  primaryId: string;
443
444
  };
444
- definitionId: string;
445
445
  issuedBy: {
446
446
  id: string;
447
447
  type: "user" | "serviceAccount";
@@ -456,11 +456,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
456
456
  id: string;
457
457
  expiresAt: string;
458
458
  createdAt: string;
459
+ definitionId: string;
459
460
  target: {
460
461
  objectTypeId: string;
461
462
  primaryId: string;
462
463
  };
463
- definitionId: string;
464
464
  issuedBy: {
465
465
  id: string;
466
466
  type: "user" | "serviceAccount";
@@ -477,11 +477,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
477
477
  id: string;
478
478
  expiresAt: string;
479
479
  createdAt: string;
480
+ definitionId: string;
480
481
  target: {
481
482
  objectTypeId: string;
482
483
  primaryId: string;
483
484
  };
484
- definitionId: string;
485
485
  issuedBy: {
486
486
  id: string;
487
487
  type: "user" | "serviceAccount";
@@ -498,11 +498,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
498
498
  id: string;
499
499
  expiresAt: string;
500
500
  createdAt: string;
501
+ definitionId: string;
501
502
  target: {
502
503
  objectTypeId: string;
503
504
  primaryId: string;
504
505
  };
505
- definitionId: string;
506
506
  issuedBy: {
507
507
  id: string;
508
508
  type: "user" | "serviceAccount";
@@ -75,9 +75,9 @@ export declare const SyncRunSchema: z.ZodObject<{
75
75
  projectId: string;
76
76
  id: string;
77
77
  mode: "append" | "merge" | "snapshot";
78
+ queuedAt: string;
78
79
  datasetId: string;
79
80
  syncId: string;
80
- queuedAt: string;
81
81
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
82
82
  startedAt?: string | undefined;
83
83
  finishedAt?: string | undefined;
@@ -93,9 +93,9 @@ export declare const SyncRunSchema: z.ZodObject<{
93
93
  projectId: string;
94
94
  id: string;
95
95
  mode: "append" | "merge" | "snapshot";
96
+ queuedAt: string;
96
97
  datasetId: string;
97
98
  syncId: string;
98
- queuedAt: string;
99
99
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
100
100
  startedAt?: string | undefined;
101
101
  finishedAt?: string | undefined;
@@ -254,9 +254,9 @@ export declare const SyncSchema: z.ZodObject<{
254
254
  projectId: string;
255
255
  id: string;
256
256
  mode: "append" | "merge" | "snapshot";
257
+ queuedAt: string;
257
258
  datasetId: string;
258
259
  syncId: string;
259
- queuedAt: string;
260
260
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
261
261
  startedAt?: string | undefined;
262
262
  finishedAt?: string | undefined;
@@ -272,9 +272,9 @@ export declare const SyncSchema: z.ZodObject<{
272
272
  projectId: string;
273
273
  id: string;
274
274
  mode: "append" | "merge" | "snapshot";
275
+ queuedAt: string;
275
276
  datasetId: string;
276
277
  syncId: string;
277
- queuedAt: string;
278
278
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
279
279
  startedAt?: string | undefined;
280
280
  finishedAt?: string | undefined;
@@ -289,23 +289,6 @@ export declare const SyncSchema: z.ZodObject<{
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  id: string;
291
291
  mode: "append" | "merge" | "snapshot";
292
- target: {
293
- kind: "dataset";
294
- dataset: {
295
- id: string;
296
- schema: {
297
- columns: {
298
- name: string;
299
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
300
- nullable?: boolean | undefined;
301
- }[];
302
- };
303
- description?: string | undefined;
304
- primaryKey?: string | string[] | undefined;
305
- sequenceBy?: string | undefined;
306
- partitionBy?: string[] | undefined;
307
- };
308
- };
309
292
  triggers: {
310
293
  type: "schedule";
311
294
  scheduleId: string;
@@ -315,9 +298,9 @@ export declare const SyncSchema: z.ZodObject<{
315
298
  projectId: string;
316
299
  id: string;
317
300
  mode: "append" | "merge" | "snapshot";
301
+ queuedAt: string;
318
302
  datasetId: string;
319
303
  syncId: string;
320
- queuedAt: string;
321
304
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
322
305
  startedAt?: string | undefined;
323
306
  finishedAt?: string | undefined;
@@ -329,13 +312,6 @@ export declare const SyncSchema: z.ZodObject<{
329
312
  commitMessage?: string | undefined;
330
313
  rowsRead?: number | undefined;
331
314
  } | null;
332
- connector: {
333
- id: string;
334
- type: string;
335
- };
336
- }, {
337
- id: string;
338
- mode: "append" | "merge" | "snapshot";
339
315
  target: {
340
316
  kind: "dataset";
341
317
  dataset: {
@@ -353,6 +329,13 @@ export declare const SyncSchema: z.ZodObject<{
353
329
  partitionBy?: string[] | undefined;
354
330
  };
355
331
  };
332
+ connector: {
333
+ id: string;
334
+ type: string;
335
+ };
336
+ }, {
337
+ id: string;
338
+ mode: "append" | "merge" | "snapshot";
356
339
  triggers: {
357
340
  type: "schedule";
358
341
  scheduleId: string;
@@ -362,9 +345,9 @@ export declare const SyncSchema: z.ZodObject<{
362
345
  projectId: string;
363
346
  id: string;
364
347
  mode: "append" | "merge" | "snapshot";
348
+ queuedAt: string;
365
349
  datasetId: string;
366
350
  syncId: string;
367
- queuedAt: string;
368
351
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
369
352
  startedAt?: string | undefined;
370
353
  finishedAt?: string | undefined;
@@ -376,6 +359,23 @@ export declare const SyncSchema: z.ZodObject<{
376
359
  commitMessage?: string | undefined;
377
360
  rowsRead?: number | undefined;
378
361
  } | null;
362
+ target: {
363
+ kind: "dataset";
364
+ dataset: {
365
+ id: string;
366
+ schema: {
367
+ columns: {
368
+ name: string;
369
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
370
+ nullable?: boolean | undefined;
371
+ }[];
372
+ };
373
+ description?: string | undefined;
374
+ primaryKey?: string | string[] | undefined;
375
+ sequenceBy?: string | undefined;
376
+ partitionBy?: string[] | undefined;
377
+ };
378
+ };
379
379
  connector: {
380
380
  id: string;
381
381
  type: string;
@@ -411,9 +411,9 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
411
411
  projectId: string;
412
412
  id: string;
413
413
  mode: "append" | "merge" | "snapshot";
414
+ queuedAt: string;
414
415
  datasetId: string;
415
416
  syncId: string;
416
- queuedAt: string;
417
417
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
418
418
  startedAt?: string | undefined;
419
419
  finishedAt?: string | undefined;
@@ -429,9 +429,9 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
429
429
  projectId: string;
430
430
  id: string;
431
431
  mode: "append" | "merge" | "snapshot";
432
+ queuedAt: string;
432
433
  datasetId: string;
433
434
  syncId: string;
434
- queuedAt: string;
435
435
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
436
436
  startedAt?: string | undefined;
437
437
  finishedAt?: string | undefined;
@@ -451,9 +451,9 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
451
451
  projectId: string;
452
452
  id: string;
453
453
  mode: "append" | "merge" | "snapshot";
454
+ queuedAt: string;
454
455
  datasetId: string;
455
456
  syncId: string;
456
- queuedAt: string;
457
457
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
458
458
  startedAt?: string | undefined;
459
459
  finishedAt?: string | undefined;
@@ -473,9 +473,9 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
473
473
  projectId: string;
474
474
  id: string;
475
475
  mode: "append" | "merge" | "snapshot";
476
+ queuedAt: string;
476
477
  datasetId: string;
477
478
  syncId: string;
478
- queuedAt: string;
479
479
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
480
480
  startedAt?: string | undefined;
481
481
  finishedAt?: string | undefined;
@@ -497,13 +497,13 @@ export declare const RequestSyncRunResponseSchema: z.ZodObject<{
497
497
  queuedAt: z.ZodString;
498
498
  }, "strip", z.ZodTypeAny, {
499
499
  runId: string;
500
+ queuedAt: string;
500
501
  jobId: string;
501
502
  syncId: string;
502
- queuedAt: string;
503
503
  }, {
504
504
  runId: string;
505
+ queuedAt: string;
505
506
  jobId: string;
506
507
  syncId: string;
507
- queuedAt: string;
508
508
  }>;
509
509
  //# sourceMappingURL=syncs.d.ts.map