@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
@@ -30,6 +30,20 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
30
30
  type: "schedule";
31
31
  scheduleId: string;
32
32
  }[];
33
+ latestRun: {
34
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
35
+ projectId: string;
36
+ id: string;
37
+ queuedAt: string;
38
+ pipelineId: string;
39
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
40
+ startedAt?: string | undefined;
41
+ finishedAt?: string | undefined;
42
+ output?: {
43
+ datasetId: string;
44
+ versionId: string;
45
+ } | undefined;
46
+ } | null;
33
47
  graph: {
34
48
  kind: "sequence";
35
49
  nodes: {
@@ -77,20 +91,6 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
77
91
  };
78
92
  }[];
79
93
  };
80
- latestRun: {
81
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
82
- projectId: string;
83
- id: string;
84
- pipelineId: string;
85
- queuedAt: string;
86
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
87
- startedAt?: string | undefined;
88
- finishedAt?: string | undefined;
89
- output?: {
90
- datasetId: string;
91
- versionId: string;
92
- } | undefined;
93
- } | null;
94
94
  }[];
95
95
  422: {
96
96
  type: "validation";
@@ -123,6 +123,20 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
123
123
  type: "schedule";
124
124
  scheduleId: string;
125
125
  }[];
126
+ latestRun: {
127
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
128
+ projectId: string;
129
+ id: string;
130
+ queuedAt: string;
131
+ pipelineId: string;
132
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
133
+ startedAt?: string | undefined;
134
+ finishedAt?: string | undefined;
135
+ output?: {
136
+ datasetId: string;
137
+ versionId: string;
138
+ } | undefined;
139
+ } | null;
126
140
  graph: {
127
141
  kind: "sequence";
128
142
  nodes: {
@@ -170,20 +184,6 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
170
184
  };
171
185
  }[];
172
186
  };
173
- latestRun: {
174
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
175
- projectId: string;
176
- id: string;
177
- pipelineId: string;
178
- queuedAt: string;
179
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
180
- startedAt?: string | undefined;
181
- finishedAt?: string | undefined;
182
- output?: {
183
- datasetId: string;
184
- versionId: string;
185
- } | undefined;
186
- } | null;
187
187
  };
188
188
  404: {
189
189
  error: string;
@@ -224,8 +224,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
224
224
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
225
225
  projectId: string;
226
226
  id: string;
227
- pipelineId: string;
228
227
  queuedAt: string;
228
+ pipelineId: string;
229
229
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
230
230
  startedAt?: string | undefined;
231
231
  finishedAt?: string | undefined;
@@ -273,8 +273,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
273
273
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
274
274
  projectId: string;
275
275
  id: string;
276
- pipelineId: string;
277
276
  queuedAt: string;
277
+ pipelineId: string;
278
278
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
279
279
  startedAt?: string | undefined;
280
280
  finishedAt?: string | undefined;
@@ -363,9 +363,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
363
363
  };
364
364
  202: {
365
365
  runId: string;
366
+ queuedAt: string;
366
367
  jobId: string;
367
368
  pipelineId: string;
368
- queuedAt: string;
369
369
  };
370
370
  422: {
371
371
  type: "validation";
@@ -35,7 +35,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
35
35
  }>;
36
36
  properties: Record<string, string>;
37
37
  objectTypeId: string;
38
- datasetId: string;
39
38
  latestRun: {
40
39
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
41
40
  projectId: string;
@@ -131,6 +130,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
131
130
  startedAt?: string | undefined;
132
131
  finishedAt?: string | undefined;
133
132
  } | null;
133
+ datasetId: string;
134
134
  _tag: "ObjectProjectionDefinition";
135
135
  conflictResolution: {
136
136
  strategy: "editsWin";
@@ -142,9 +142,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
142
142
  linkProjections: {
143
143
  id: string;
144
144
  targetObjectTypeId: string;
145
- datasetId: string;
146
- linkId: string;
147
- sourceObjectTypeId: string;
148
145
  latestRun: {
149
146
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
150
147
  projectId: string;
@@ -240,6 +237,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
240
237
  startedAt?: string | undefined;
241
238
  finishedAt?: string | undefined;
242
239
  } | null;
240
+ datasetId: string;
241
+ linkId: string;
242
+ sourceObjectTypeId: string;
243
243
  sourceField: string;
244
244
  _tag: "LinkProjectionDefinition";
245
245
  targetField: string;
@@ -251,7 +251,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
251
251
  unitField?: string | undefined;
252
252
  }>;
253
253
  objectTypeId: string;
254
- datasetId: string;
255
254
  latestRun: {
256
255
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
257
256
  projectId: string;
@@ -347,6 +346,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
347
346
  startedAt?: string | undefined;
348
347
  finishedAt?: string | undefined;
349
348
  } | null;
349
+ datasetId: string;
350
350
  _tag: "TelemetryProjectionDefinition";
351
351
  objectIdField: string;
352
352
  atField: string;
@@ -387,7 +387,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
387
387
  }>;
388
388
  properties: Record<string, string>;
389
389
  objectTypeId: string;
390
- datasetId: string;
391
390
  latestRun: {
392
391
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
393
392
  projectId: string;
@@ -483,6 +482,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
483
482
  startedAt?: string | undefined;
484
483
  finishedAt?: string | undefined;
485
484
  } | null;
485
+ datasetId: string;
486
486
  _tag: "ObjectProjectionDefinition";
487
487
  conflictResolution: {
488
488
  strategy: "editsWin";
@@ -493,9 +493,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
493
493
  } | {
494
494
  id: string;
495
495
  targetObjectTypeId: string;
496
- datasetId: string;
497
- linkId: string;
498
- sourceObjectTypeId: string;
499
496
  latestRun: {
500
497
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
501
498
  projectId: string;
@@ -591,6 +588,9 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
591
588
  startedAt?: string | undefined;
592
589
  finishedAt?: string | undefined;
593
590
  } | null;
591
+ datasetId: string;
592
+ linkId: string;
593
+ sourceObjectTypeId: string;
594
594
  sourceField: string;
595
595
  _tag: "LinkProjectionDefinition";
596
596
  targetField: string;
@@ -601,7 +601,6 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
601
601
  unitField?: string | undefined;
602
602
  }>;
603
603
  objectTypeId: string;
604
- datasetId: string;
605
604
  latestRun: {
606
605
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
607
606
  projectId: string;
@@ -697,6 +696,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
697
696
  startedAt?: string | undefined;
698
697
  finishedAt?: string | undefined;
699
698
  } | null;
699
+ datasetId: string;
700
700
  _tag: "TelemetryProjectionDefinition";
701
701
  objectIdField: string;
702
702
  atField: string;
@@ -21,11 +21,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
21
21
  post: {
22
22
  body: {
23
23
  expiresAt: string;
24
+ definitionId: string;
24
25
  target: {
25
26
  objectTypeId: string;
26
27
  primaryId: string;
27
28
  };
28
- definitionId: string;
29
29
  destinationPath: string;
30
30
  };
31
31
  params: {};
@@ -38,11 +38,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
38
38
  id: string;
39
39
  expiresAt: string;
40
40
  createdAt: string;
41
+ definitionId: string;
41
42
  target: {
42
43
  objectTypeId: string;
43
44
  primaryId: string;
44
45
  };
45
- definitionId: string;
46
46
  issuedBy: {
47
47
  id: string;
48
48
  type: "user" | "serviceAccount";
@@ -81,11 +81,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
81
81
  id: string;
82
82
  expiresAt: string;
83
83
  createdAt: string;
84
+ definitionId: string;
84
85
  target: {
85
86
  objectTypeId: string;
86
87
  primaryId: string;
87
88
  };
88
- definitionId: string;
89
89
  issuedBy: {
90
90
  id: string;
91
91
  type: "user" | "serviceAccount";
@@ -134,11 +134,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
134
134
  id: string;
135
135
  expiresAt: string;
136
136
  createdAt: string;
137
+ definitionId: string;
137
138
  target: {
138
139
  objectTypeId: string;
139
140
  primaryId: string;
140
141
  };
141
- definitionId: string;
142
142
  issuedBy: {
143
143
  id: string;
144
144
  type: "user" | "serviceAccount";
@@ -199,11 +199,11 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
199
199
  id: string;
200
200
  expiresAt: string;
201
201
  createdAt: string;
202
+ definitionId: string;
202
203
  target: {
203
204
  objectTypeId: string;
204
205
  primaryId: string;
205
206
  };
206
- definitionId: string;
207
207
  issuedBy: {
208
208
  id: string;
209
209
  type: "user" | "serviceAccount";
@@ -27,23 +27,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
27
27
  200: {
28
28
  id: string;
29
29
  mode: "append" | "merge" | "snapshot";
30
- target: {
31
- kind: "dataset";
32
- dataset: {
33
- id: string;
34
- schema: {
35
- columns: {
36
- name: string;
37
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
38
- nullable?: boolean | undefined;
39
- }[];
40
- };
41
- description?: string | undefined;
42
- primaryKey?: string | string[] | undefined;
43
- sequenceBy?: string | undefined;
44
- partitionBy?: string[] | undefined;
45
- };
46
- };
47
30
  triggers: {
48
31
  type: "schedule";
49
32
  scheduleId: string;
@@ -53,9 +36,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
53
36
  projectId: string;
54
37
  id: string;
55
38
  mode: "append" | "merge" | "snapshot";
39
+ queuedAt: string;
56
40
  datasetId: string;
57
41
  syncId: string;
58
- queuedAt: string;
59
42
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
60
43
  startedAt?: string | undefined;
61
44
  finishedAt?: string | undefined;
@@ -67,6 +50,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
67
50
  commitMessage?: string | undefined;
68
51
  rowsRead?: number | undefined;
69
52
  } | null;
53
+ target: {
54
+ kind: "dataset";
55
+ dataset: {
56
+ id: string;
57
+ schema: {
58
+ columns: {
59
+ name: string;
60
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
61
+ nullable?: boolean | undefined;
62
+ }[];
63
+ };
64
+ description?: string | undefined;
65
+ primaryKey?: string | string[] | undefined;
66
+ sequenceBy?: string | undefined;
67
+ partitionBy?: string[] | undefined;
68
+ };
69
+ };
70
70
  connector: {
71
71
  id: string;
72
72
  type: string;
@@ -100,23 +100,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
100
100
  200: {
101
101
  id: string;
102
102
  mode: "append" | "merge" | "snapshot";
103
- target: {
104
- kind: "dataset";
105
- dataset: {
106
- id: string;
107
- schema: {
108
- columns: {
109
- name: string;
110
- type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
111
- nullable?: boolean | undefined;
112
- }[];
113
- };
114
- description?: string | undefined;
115
- primaryKey?: string | string[] | undefined;
116
- sequenceBy?: string | undefined;
117
- partitionBy?: string[] | undefined;
118
- };
119
- };
120
103
  triggers: {
121
104
  type: "schedule";
122
105
  scheduleId: string;
@@ -126,9 +109,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
126
109
  projectId: string;
127
110
  id: string;
128
111
  mode: "append" | "merge" | "snapshot";
112
+ queuedAt: string;
129
113
  datasetId: string;
130
114
  syncId: string;
131
- queuedAt: string;
132
115
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
133
116
  startedAt?: string | undefined;
134
117
  finishedAt?: string | undefined;
@@ -140,6 +123,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
140
123
  commitMessage?: string | undefined;
141
124
  rowsRead?: number | undefined;
142
125
  } | null;
126
+ target: {
127
+ kind: "dataset";
128
+ dataset: {
129
+ id: string;
130
+ schema: {
131
+ columns: {
132
+ name: string;
133
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
134
+ nullable?: boolean | undefined;
135
+ }[];
136
+ };
137
+ description?: string | undefined;
138
+ primaryKey?: string | string[] | undefined;
139
+ sequenceBy?: string | undefined;
140
+ partitionBy?: string[] | undefined;
141
+ };
142
+ };
143
143
  connector: {
144
144
  id: string;
145
145
  type: string;
@@ -186,9 +186,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
186
186
  projectId: string;
187
187
  id: string;
188
188
  mode: "append" | "merge" | "snapshot";
189
+ queuedAt: string;
189
190
  datasetId: string;
190
191
  syncId: string;
191
- queuedAt: string;
192
192
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
193
193
  startedAt?: string | undefined;
194
194
  finishedAt?: string | undefined;
@@ -259,9 +259,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
259
259
  };
260
260
  202: {
261
261
  runId: string;
262
+ queuedAt: string;
262
263
  jobId: string;
263
264
  syncId: string;
264
- queuedAt: string;
265
265
  };
266
266
  422: {
267
267
  type: "validation";