@sixb/server 0.1.19 → 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 (103) hide show
  1. package/README.md +13 -22
  2. package/dist/artifacts/frame.d.ts +13 -0
  3. package/dist/artifacts/frame.d.ts.map +1 -0
  4. package/dist/auth/browser-origin.d.ts +9 -26
  5. package/dist/auth/browser-origin.d.ts.map +1 -1
  6. package/dist/auth/experience.d.ts +0 -3
  7. package/dist/auth/experience.d.ts.map +1 -1
  8. package/dist/auth/guard.d.ts +1 -1
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts +0 -5
  11. package/dist/auth/public-routes.d.ts.map +1 -1
  12. package/dist/auth/responses.d.ts +0 -2
  13. package/dist/auth/responses.d.ts.map +1 -1
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/files/content.d.ts +2 -3
  16. package/dist/files/content.d.ts.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3241 -2445
  20. package/dist/index.js.map +31 -26
  21. package/dist/openapi/tags.d.ts +10 -2
  22. package/dist/openapi/tags.d.ts.map +1 -1
  23. package/dist/registerRoutes.d.ts +3 -0
  24. package/dist/registerRoutes.d.ts.map +1 -1
  25. package/dist/routes/action-runs.d.ts +0 -2
  26. package/dist/routes/action-runs.d.ts.map +1 -1
  27. package/dist/routes/activity.d.ts +35 -0
  28. package/dist/routes/activity.d.ts.map +1 -0
  29. package/dist/routes/agents.d.ts +18 -29
  30. package/dist/routes/agents.d.ts.map +1 -1
  31. package/dist/routes/artifact-frames.d.ts +98 -0
  32. package/dist/routes/artifact-frames.d.ts.map +1 -0
  33. package/dist/routes/artifacts.d.ts +852 -0
  34. package/dist/routes/artifacts.d.ts.map +1 -0
  35. package/dist/routes/auth.d.ts +9 -18
  36. package/dist/routes/auth.d.ts.map +1 -1
  37. package/dist/routes/connector-connection-runs.d.ts +59 -59
  38. package/dist/routes/connector-connections.d.ts +2 -2
  39. package/dist/routes/datasets.d.ts +7 -7
  40. package/dist/routes/events.d.ts +1 -1
  41. package/dist/routes/objects.d.ts +0 -2
  42. package/dist/routes/objects.d.ts.map +1 -1
  43. package/dist/routes/pipelines.d.ts +31 -31
  44. package/dist/routes/projections.d.ts +10 -10
  45. package/dist/routes/share-grants.d.ts +5 -5
  46. package/dist/routes/syncs.d.ts +38 -38
  47. package/dist/routes/workflows.d.ts +30 -34
  48. package/dist/routes/workflows.d.ts.map +1 -1
  49. package/dist/routes/ws/events.d.ts.map +1 -1
  50. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  51. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  52. package/dist/schemas/activity.d.ts +1278 -0
  53. package/dist/schemas/activity.d.ts.map +1 -0
  54. package/dist/schemas/agents.d.ts +96 -144
  55. package/dist/schemas/agents.d.ts.map +1 -1
  56. package/dist/schemas/ai-accounting.d.ts +24 -24
  57. package/dist/schemas/ai-limits.d.ts +26 -26
  58. package/dist/schemas/artifacts.d.ts +1305 -0
  59. package/dist/schemas/artifacts.d.ts.map +1 -0
  60. package/dist/schemas/auth.d.ts +34 -69
  61. package/dist/schemas/auth.d.ts.map +1 -1
  62. package/dist/schemas/connectors.d.ts +30 -30
  63. package/dist/schemas/datasets.d.ts +10 -10
  64. package/dist/schemas/events.d.ts +6 -6
  65. package/dist/schemas/files.d.ts +0 -3
  66. package/dist/schemas/files.d.ts.map +1 -1
  67. package/dist/schemas/pipelines.d.ts +35 -35
  68. package/dist/schemas/projections.d.ts +40 -40
  69. package/dist/schemas/share-grants.d.ts +16 -16
  70. package/dist/schemas/syncs.d.ts +36 -36
  71. package/dist/schemas/workflows.d.ts +84 -84
  72. package/dist/server.d.ts +1 -2
  73. package/dist/server.d.ts.map +1 -1
  74. package/package.json +6 -6
  75. package/src/artifacts/frame.ts +46 -0
  76. package/src/auth/browser-origin.ts +40 -240
  77. package/src/auth/experience.ts +1 -4
  78. package/src/auth/guard.ts +4 -32
  79. package/src/auth/public-routes.ts +11 -10
  80. package/src/auth/responses.ts +0 -5
  81. package/src/auth/session-cookies.ts +1 -3
  82. package/src/auth/shared-access.ts +1 -1
  83. package/src/files/content.ts +9 -13
  84. package/src/index.ts +1 -1
  85. package/src/openapi/tags.ts +8 -0
  86. package/src/registerRoutes.ts +9 -0
  87. package/src/routes/activity.ts +327 -0
  88. package/src/routes/agents.ts +1 -1
  89. package/src/routes/artifact-frames.ts +138 -0
  90. package/src/routes/artifacts.ts +442 -0
  91. package/src/routes/auth.ts +32 -111
  92. package/src/routes/file-downloads.ts +1 -3
  93. package/src/routes/ws/events.ts +3 -2
  94. package/src/routes/ws/subscription-hub.ts +53 -20
  95. package/src/schemas/activity.ts +285 -0
  96. package/src/schemas/agents.ts +1 -2
  97. package/src/schemas/artifacts.ts +158 -0
  98. package/src/schemas/auth.ts +2 -15
  99. package/src/schemas/files.ts +0 -6
  100. package/src/server.ts +27 -24
  101. package/dist/auth/application-access.d.ts +0 -4
  102. package/dist/auth/application-access.d.ts.map +0 -1
  103. package/src/auth/application-access.ts +0 -15
@@ -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