@sixb/server 0.1.2 → 0.1.4
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.
- package/README.md +1 -1
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +164 -77
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +586 -142
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
|
@@ -41,8 +41,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
41
41
|
runId: string;
|
|
42
42
|
authorizationUrl: string;
|
|
43
43
|
affectedConnections: {
|
|
44
|
-
id: string;
|
|
45
44
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
45
|
+
id: string;
|
|
46
46
|
connectorId: string;
|
|
47
47
|
owner: {
|
|
48
48
|
type: "project";
|
|
@@ -56,6 +56,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
56
56
|
};
|
|
57
57
|
}[];
|
|
58
58
|
};
|
|
59
|
+
404: {
|
|
60
|
+
error: string;
|
|
61
|
+
code?: "connector.not_found" | undefined;
|
|
62
|
+
};
|
|
59
63
|
403: {
|
|
60
64
|
error: string;
|
|
61
65
|
};
|
|
@@ -63,10 +67,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
63
67
|
error: string;
|
|
64
68
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
65
69
|
};
|
|
66
|
-
404: {
|
|
67
|
-
error: string;
|
|
68
|
-
code?: "connector.not_found" | undefined;
|
|
69
|
-
};
|
|
70
70
|
502: {
|
|
71
71
|
error: string;
|
|
72
72
|
code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
|
|
@@ -87,8 +87,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
87
87
|
runId: string;
|
|
88
88
|
authorizationUrl: string;
|
|
89
89
|
affectedConnections: {
|
|
90
|
-
id: string;
|
|
91
90
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
91
|
+
id: string;
|
|
92
92
|
connectorId: string;
|
|
93
93
|
owner: {
|
|
94
94
|
type: "project";
|
|
@@ -133,8 +133,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
133
133
|
headers: unknown;
|
|
134
134
|
response: {
|
|
135
135
|
200: {
|
|
136
|
-
id: string;
|
|
137
136
|
status: "waiting";
|
|
137
|
+
id: string;
|
|
138
138
|
kind: "connect" | "reauthorize";
|
|
139
139
|
expiresAt: string;
|
|
140
140
|
createdAt: string;
|
|
@@ -146,8 +146,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
146
146
|
slot: string;
|
|
147
147
|
waitingFor: "provider_authorization";
|
|
148
148
|
} | {
|
|
149
|
-
id: string;
|
|
150
149
|
status: "running";
|
|
150
|
+
id: string;
|
|
151
151
|
kind: "connect" | "reauthorize";
|
|
152
152
|
createdAt: string;
|
|
153
153
|
updatedAt: string;
|
|
@@ -157,8 +157,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
157
157
|
};
|
|
158
158
|
slot: string;
|
|
159
159
|
} | {
|
|
160
|
-
id: string;
|
|
161
160
|
status: "waiting";
|
|
161
|
+
id: string;
|
|
162
162
|
kind: "connect" | "reauthorize";
|
|
163
163
|
expiresAt: string;
|
|
164
164
|
createdAt: string;
|
|
@@ -176,8 +176,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
176
176
|
avatarUrl?: string | undefined;
|
|
177
177
|
}[];
|
|
178
178
|
} | {
|
|
179
|
-
id: string;
|
|
180
179
|
status: "succeeded";
|
|
180
|
+
id: string;
|
|
181
181
|
kind: "connect" | "reauthorize";
|
|
182
182
|
finishedAt: string;
|
|
183
183
|
createdAt: string;
|
|
@@ -188,8 +188,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
188
188
|
};
|
|
189
189
|
slot: string;
|
|
190
190
|
connections: {
|
|
191
|
-
id: string;
|
|
192
191
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
192
|
+
id: string;
|
|
193
193
|
connectorId: string;
|
|
194
194
|
owner: {
|
|
195
195
|
type: "project";
|
|
@@ -203,10 +203,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
203
203
|
};
|
|
204
204
|
}[];
|
|
205
205
|
} | {
|
|
206
|
-
|
|
206
|
+
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
207
207
|
status: "failed";
|
|
208
|
+
id: string;
|
|
208
209
|
kind: "connect" | "reauthorize";
|
|
209
|
-
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
210
210
|
finishedAt: string;
|
|
211
211
|
createdAt: string;
|
|
212
212
|
updatedAt: string;
|
|
@@ -216,8 +216,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
216
216
|
};
|
|
217
217
|
slot: string;
|
|
218
218
|
} | {
|
|
219
|
-
id: string;
|
|
220
219
|
status: "cancelled" | "expired";
|
|
220
|
+
id: string;
|
|
221
221
|
kind: "connect" | "reauthorize";
|
|
222
222
|
finishedAt: string;
|
|
223
223
|
createdAt: string;
|
|
@@ -228,6 +228,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
228
228
|
};
|
|
229
229
|
slot: string;
|
|
230
230
|
};
|
|
231
|
+
404: {
|
|
232
|
+
error: string;
|
|
233
|
+
code?: "connector.not_found" | undefined;
|
|
234
|
+
};
|
|
231
235
|
403: {
|
|
232
236
|
error: string;
|
|
233
237
|
};
|
|
@@ -235,10 +239,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
235
239
|
error: string;
|
|
236
240
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
237
241
|
};
|
|
238
|
-
404: {
|
|
239
|
-
error: string;
|
|
240
|
-
code?: "connector.not_found" | undefined;
|
|
241
|
-
};
|
|
242
242
|
500: {
|
|
243
243
|
error: string;
|
|
244
244
|
code?: "internal.unexpected" | undefined;
|
|
@@ -278,8 +278,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
278
278
|
headers: unknown;
|
|
279
279
|
response: {
|
|
280
280
|
200: {
|
|
281
|
-
id: string;
|
|
282
281
|
status: "waiting";
|
|
282
|
+
id: string;
|
|
283
283
|
kind: "connect" | "reauthorize";
|
|
284
284
|
expiresAt: string;
|
|
285
285
|
createdAt: string;
|
|
@@ -291,8 +291,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
291
291
|
slot: string;
|
|
292
292
|
waitingFor: "provider_authorization";
|
|
293
293
|
} | {
|
|
294
|
-
id: string;
|
|
295
294
|
status: "running";
|
|
295
|
+
id: string;
|
|
296
296
|
kind: "connect" | "reauthorize";
|
|
297
297
|
createdAt: string;
|
|
298
298
|
updatedAt: string;
|
|
@@ -302,8 +302,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
302
302
|
};
|
|
303
303
|
slot: string;
|
|
304
304
|
} | {
|
|
305
|
-
id: string;
|
|
306
305
|
status: "waiting";
|
|
306
|
+
id: string;
|
|
307
307
|
kind: "connect" | "reauthorize";
|
|
308
308
|
expiresAt: string;
|
|
309
309
|
createdAt: string;
|
|
@@ -321,8 +321,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
321
321
|
avatarUrl?: string | undefined;
|
|
322
322
|
}[];
|
|
323
323
|
} | {
|
|
324
|
-
id: string;
|
|
325
324
|
status: "succeeded";
|
|
325
|
+
id: string;
|
|
326
326
|
kind: "connect" | "reauthorize";
|
|
327
327
|
finishedAt: string;
|
|
328
328
|
createdAt: string;
|
|
@@ -333,8 +333,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
333
333
|
};
|
|
334
334
|
slot: string;
|
|
335
335
|
connections: {
|
|
336
|
-
id: string;
|
|
337
336
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
337
|
+
id: string;
|
|
338
338
|
connectorId: string;
|
|
339
339
|
owner: {
|
|
340
340
|
type: "project";
|
|
@@ -348,10 +348,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
348
348
|
};
|
|
349
349
|
}[];
|
|
350
350
|
} | {
|
|
351
|
-
|
|
351
|
+
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
352
352
|
status: "failed";
|
|
353
|
+
id: string;
|
|
353
354
|
kind: "connect" | "reauthorize";
|
|
354
|
-
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
355
355
|
finishedAt: string;
|
|
356
356
|
createdAt: string;
|
|
357
357
|
updatedAt: string;
|
|
@@ -361,8 +361,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
361
361
|
};
|
|
362
362
|
slot: string;
|
|
363
363
|
} | {
|
|
364
|
-
id: string;
|
|
365
364
|
status: "cancelled" | "expired";
|
|
365
|
+
id: string;
|
|
366
366
|
kind: "connect" | "reauthorize";
|
|
367
367
|
finishedAt: string;
|
|
368
368
|
createdAt: string;
|
|
@@ -375,6 +375,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
375
375
|
} | {
|
|
376
376
|
error: string;
|
|
377
377
|
};
|
|
378
|
+
404: {
|
|
379
|
+
error: string;
|
|
380
|
+
code?: "connector.not_found" | undefined;
|
|
381
|
+
};
|
|
378
382
|
403: {
|
|
379
383
|
error: string;
|
|
380
384
|
};
|
|
@@ -382,10 +386,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
382
386
|
error: string;
|
|
383
387
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
384
388
|
};
|
|
385
|
-
404: {
|
|
386
|
-
error: string;
|
|
387
|
-
code?: "connector.not_found" | undefined;
|
|
388
|
-
};
|
|
389
389
|
409: {
|
|
390
390
|
error: string;
|
|
391
391
|
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
|
|
@@ -395,8 +395,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
395
395
|
code?: "internal.unexpected" | undefined;
|
|
396
396
|
};
|
|
397
397
|
201: {
|
|
398
|
-
id: string;
|
|
399
398
|
status: "waiting";
|
|
399
|
+
id: string;
|
|
400
400
|
kind: "connect" | "reauthorize";
|
|
401
401
|
expiresAt: string;
|
|
402
402
|
createdAt: string;
|
|
@@ -408,8 +408,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
408
408
|
slot: string;
|
|
409
409
|
waitingFor: "provider_authorization";
|
|
410
410
|
} | {
|
|
411
|
-
id: string;
|
|
412
411
|
status: "running";
|
|
412
|
+
id: string;
|
|
413
413
|
kind: "connect" | "reauthorize";
|
|
414
414
|
createdAt: string;
|
|
415
415
|
updatedAt: string;
|
|
@@ -419,8 +419,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
419
419
|
};
|
|
420
420
|
slot: string;
|
|
421
421
|
} | {
|
|
422
|
-
id: string;
|
|
423
422
|
status: "waiting";
|
|
423
|
+
id: string;
|
|
424
424
|
kind: "connect" | "reauthorize";
|
|
425
425
|
expiresAt: string;
|
|
426
426
|
createdAt: string;
|
|
@@ -438,8 +438,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
438
438
|
avatarUrl?: string | undefined;
|
|
439
439
|
}[];
|
|
440
440
|
} | {
|
|
441
|
-
id: string;
|
|
442
441
|
status: "succeeded";
|
|
442
|
+
id: string;
|
|
443
443
|
kind: "connect" | "reauthorize";
|
|
444
444
|
finishedAt: string;
|
|
445
445
|
createdAt: string;
|
|
@@ -450,8 +450,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
450
450
|
};
|
|
451
451
|
slot: string;
|
|
452
452
|
connections: {
|
|
453
|
-
id: string;
|
|
454
453
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
454
|
+
id: string;
|
|
455
455
|
connectorId: string;
|
|
456
456
|
owner: {
|
|
457
457
|
type: "project";
|
|
@@ -465,10 +465,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
465
465
|
};
|
|
466
466
|
}[];
|
|
467
467
|
} | {
|
|
468
|
-
|
|
468
|
+
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
469
469
|
status: "failed";
|
|
470
|
+
id: string;
|
|
470
471
|
kind: "connect" | "reauthorize";
|
|
471
|
-
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
472
472
|
finishedAt: string;
|
|
473
473
|
createdAt: string;
|
|
474
474
|
updatedAt: string;
|
|
@@ -478,8 +478,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
478
478
|
};
|
|
479
479
|
slot: string;
|
|
480
480
|
} | {
|
|
481
|
-
id: string;
|
|
482
481
|
status: "cancelled" | "expired";
|
|
482
|
+
id: string;
|
|
483
483
|
kind: "connect" | "reauthorize";
|
|
484
484
|
finishedAt: string;
|
|
485
485
|
createdAt: string;
|
|
@@ -527,8 +527,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
527
527
|
headers: unknown;
|
|
528
528
|
response: {
|
|
529
529
|
200: {
|
|
530
|
-
id: string;
|
|
531
530
|
status: "waiting";
|
|
531
|
+
id: string;
|
|
532
532
|
kind: "connect" | "reauthorize";
|
|
533
533
|
expiresAt: string;
|
|
534
534
|
createdAt: string;
|
|
@@ -540,8 +540,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
540
540
|
slot: string;
|
|
541
541
|
waitingFor: "provider_authorization";
|
|
542
542
|
} | {
|
|
543
|
-
id: string;
|
|
544
543
|
status: "running";
|
|
544
|
+
id: string;
|
|
545
545
|
kind: "connect" | "reauthorize";
|
|
546
546
|
createdAt: string;
|
|
547
547
|
updatedAt: string;
|
|
@@ -551,8 +551,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
551
551
|
};
|
|
552
552
|
slot: string;
|
|
553
553
|
} | {
|
|
554
|
-
id: string;
|
|
555
554
|
status: "waiting";
|
|
555
|
+
id: string;
|
|
556
556
|
kind: "connect" | "reauthorize";
|
|
557
557
|
expiresAt: string;
|
|
558
558
|
createdAt: string;
|
|
@@ -570,8 +570,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
570
570
|
avatarUrl?: string | undefined;
|
|
571
571
|
}[];
|
|
572
572
|
} | {
|
|
573
|
-
id: string;
|
|
574
573
|
status: "succeeded";
|
|
574
|
+
id: string;
|
|
575
575
|
kind: "connect" | "reauthorize";
|
|
576
576
|
finishedAt: string;
|
|
577
577
|
createdAt: string;
|
|
@@ -582,8 +582,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
582
582
|
};
|
|
583
583
|
slot: string;
|
|
584
584
|
connections: {
|
|
585
|
-
id: string;
|
|
586
585
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
586
|
+
id: string;
|
|
587
587
|
connectorId: string;
|
|
588
588
|
owner: {
|
|
589
589
|
type: "project";
|
|
@@ -597,10 +597,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
597
597
|
};
|
|
598
598
|
}[];
|
|
599
599
|
} | {
|
|
600
|
-
|
|
600
|
+
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
601
601
|
status: "failed";
|
|
602
|
+
id: string;
|
|
602
603
|
kind: "connect" | "reauthorize";
|
|
603
|
-
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
604
604
|
finishedAt: string;
|
|
605
605
|
createdAt: string;
|
|
606
606
|
updatedAt: string;
|
|
@@ -610,8 +610,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
610
610
|
};
|
|
611
611
|
slot: string;
|
|
612
612
|
} | {
|
|
613
|
-
id: string;
|
|
614
613
|
status: "cancelled" | "expired";
|
|
614
|
+
id: string;
|
|
615
615
|
kind: "connect" | "reauthorize";
|
|
616
616
|
finishedAt: string;
|
|
617
617
|
createdAt: string;
|
|
@@ -622,6 +622,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
622
622
|
};
|
|
623
623
|
slot: string;
|
|
624
624
|
};
|
|
625
|
+
404: {
|
|
626
|
+
error: string;
|
|
627
|
+
code?: "connector.not_found" | undefined;
|
|
628
|
+
};
|
|
625
629
|
403: {
|
|
626
630
|
error: string;
|
|
627
631
|
};
|
|
@@ -629,10 +633,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
629
633
|
error: string;
|
|
630
634
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
631
635
|
};
|
|
632
|
-
404: {
|
|
633
|
-
error: string;
|
|
634
|
-
code?: "connector.not_found" | undefined;
|
|
635
|
-
};
|
|
636
636
|
409: {
|
|
637
637
|
error: string;
|
|
638
638
|
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
|
|
@@ -682,8 +682,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
682
682
|
runId: string;
|
|
683
683
|
authorizationUrl: string;
|
|
684
684
|
affectedConnections: {
|
|
685
|
-
id: string;
|
|
686
685
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
686
|
+
id: string;
|
|
687
687
|
connectorId: string;
|
|
688
688
|
owner: {
|
|
689
689
|
type: "project";
|
|
@@ -697,6 +697,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
697
697
|
};
|
|
698
698
|
}[];
|
|
699
699
|
};
|
|
700
|
+
404: {
|
|
701
|
+
error: string;
|
|
702
|
+
code?: "connector.not_found" | undefined;
|
|
703
|
+
};
|
|
700
704
|
403: {
|
|
701
705
|
error: string;
|
|
702
706
|
};
|
|
@@ -704,10 +708,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
704
708
|
error: string;
|
|
705
709
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
706
710
|
};
|
|
707
|
-
404: {
|
|
708
|
-
error: string;
|
|
709
|
-
code?: "connector.not_found" | undefined;
|
|
710
|
-
};
|
|
711
711
|
502: {
|
|
712
712
|
error: string;
|
|
713
713
|
code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
|
|
@@ -728,8 +728,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
728
728
|
runId: string;
|
|
729
729
|
authorizationUrl: string;
|
|
730
730
|
affectedConnections: {
|
|
731
|
-
id: string;
|
|
732
731
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
732
|
+
id: string;
|
|
733
733
|
connectorId: string;
|
|
734
734
|
owner: {
|
|
735
735
|
type: "project";
|
|
@@ -29,8 +29,8 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
29
29
|
headers: unknown;
|
|
30
30
|
response: {
|
|
31
31
|
200: {
|
|
32
|
-
id: string;
|
|
33
32
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
33
|
+
id: string;
|
|
34
34
|
connectorId: string;
|
|
35
35
|
owner: {
|
|
36
36
|
type: "project";
|
|
@@ -43,6 +43,10 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
43
43
|
avatarUrl?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
}[];
|
|
46
|
+
404: {
|
|
47
|
+
error: string;
|
|
48
|
+
code?: "connector.not_found" | undefined;
|
|
49
|
+
};
|
|
46
50
|
403: {
|
|
47
51
|
error: string;
|
|
48
52
|
};
|
|
@@ -50,10 +54,6 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
50
54
|
error: string;
|
|
51
55
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
52
56
|
};
|
|
53
|
-
404: {
|
|
54
|
-
error: string;
|
|
55
|
-
code?: "connector.not_found" | undefined;
|
|
56
|
-
};
|
|
57
57
|
500: {
|
|
58
58
|
error: string;
|
|
59
59
|
code?: "internal.unexpected" | undefined;
|
|
@@ -91,6 +91,10 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
91
91
|
200: {
|
|
92
92
|
success: boolean;
|
|
93
93
|
};
|
|
94
|
+
404: {
|
|
95
|
+
error: string;
|
|
96
|
+
code?: "connector.not_found" | undefined;
|
|
97
|
+
};
|
|
94
98
|
403: {
|
|
95
99
|
error: string;
|
|
96
100
|
};
|
|
@@ -98,10 +102,6 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
98
102
|
error: string;
|
|
99
103
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
100
104
|
};
|
|
101
|
-
404: {
|
|
102
|
-
error: string;
|
|
103
|
-
code?: "connector.not_found" | undefined;
|
|
104
|
-
};
|
|
105
105
|
409: {
|
|
106
106
|
error: string;
|
|
107
107
|
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
|
|
@@ -144,8 +144,8 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
144
144
|
response: {
|
|
145
145
|
200: {
|
|
146
146
|
affectedConnections: {
|
|
147
|
-
id: string;
|
|
148
147
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
148
|
+
id: string;
|
|
149
149
|
connectorId: string;
|
|
150
150
|
owner: {
|
|
151
151
|
type: "project";
|
|
@@ -159,6 +159,10 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
159
159
|
};
|
|
160
160
|
}[];
|
|
161
161
|
};
|
|
162
|
+
404: {
|
|
163
|
+
error: string;
|
|
164
|
+
code?: "connector.not_found" | undefined;
|
|
165
|
+
};
|
|
162
166
|
403: {
|
|
163
167
|
error: string;
|
|
164
168
|
};
|
|
@@ -166,10 +170,6 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
166
170
|
error: string;
|
|
167
171
|
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
168
172
|
};
|
|
169
|
-
404: {
|
|
170
|
-
error: string;
|
|
171
|
-
code?: "connector.not_found" | undefined;
|
|
172
|
-
};
|
|
173
173
|
502: {
|
|
174
174
|
error: string;
|
|
175
175
|
code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
|
|
@@ -104,13 +104,13 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
104
104
|
primaryKey?: string | string[] | undefined;
|
|
105
105
|
partitionBy?: string[] | undefined;
|
|
106
106
|
};
|
|
107
|
-
400: {
|
|
108
|
-
error: string;
|
|
109
|
-
};
|
|
110
107
|
404: {
|
|
111
108
|
error: string;
|
|
112
109
|
code: "dataset.not_found";
|
|
113
110
|
};
|
|
111
|
+
400: {
|
|
112
|
+
error: string;
|
|
113
|
+
};
|
|
114
114
|
422: {
|
|
115
115
|
type: "validation";
|
|
116
116
|
on: string;
|
|
@@ -168,13 +168,13 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
168
168
|
rowCount?: number | undefined;
|
|
169
169
|
}[];
|
|
170
170
|
};
|
|
171
|
-
400: {
|
|
172
|
-
error: string;
|
|
173
|
-
};
|
|
174
171
|
404: {
|
|
175
172
|
error: string;
|
|
176
173
|
code: "dataset.not_found";
|
|
177
174
|
};
|
|
175
|
+
400: {
|
|
176
|
+
error: string;
|
|
177
|
+
};
|
|
178
178
|
422: {
|
|
179
179
|
type: "validation";
|
|
180
180
|
on: string;
|
|
@@ -230,13 +230,13 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
230
230
|
}[] | undefined;
|
|
231
231
|
rowCount?: number | undefined;
|
|
232
232
|
};
|
|
233
|
-
400: {
|
|
234
|
-
error: string;
|
|
235
|
-
};
|
|
236
233
|
404: {
|
|
237
234
|
error: string;
|
|
238
235
|
code: "dataset.not_found" | "dataset.version_not_found";
|
|
239
236
|
};
|
|
237
|
+
400: {
|
|
238
|
+
error: string;
|
|
239
|
+
};
|
|
240
240
|
422: {
|
|
241
241
|
type: "validation";
|
|
242
242
|
on: string;
|
|
@@ -307,13 +307,13 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
307
307
|
rows: Record<string, unknown>[];
|
|
308
308
|
total?: number | undefined;
|
|
309
309
|
};
|
|
310
|
-
400: {
|
|
311
|
-
error: string;
|
|
312
|
-
};
|
|
313
310
|
404: {
|
|
314
311
|
error: string;
|
|
315
312
|
code: "dataset.not_found" | "dataset.version_not_found";
|
|
316
313
|
};
|
|
314
|
+
400: {
|
|
315
|
+
error: string;
|
|
316
|
+
};
|
|
317
317
|
422: {
|
|
318
318
|
type: "validation";
|
|
319
319
|
on: string;
|
package/dist/routes/events.d.ts
CHANGED
|
@@ -34,11 +34,11 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
|
|
|
34
34
|
projectId: string;
|
|
35
35
|
id: string;
|
|
36
36
|
type: "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
|
|
37
|
+
occurredAt: string;
|
|
37
38
|
payload: Record<string, unknown>;
|
|
38
39
|
topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
|
|
39
40
|
partitionKey: string;
|
|
40
41
|
schemaVersion: 1;
|
|
41
|
-
occurredAt: string;
|
|
42
42
|
cursor: string;
|
|
43
43
|
origin?: {
|
|
44
44
|
kind: "projection";
|
package/dist/routes/files.d.ts
CHANGED
|
@@ -143,10 +143,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
143
143
|
200: {
|
|
144
144
|
success: boolean;
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
404: {
|
|
147
147
|
error: string;
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
400: {
|
|
150
150
|
error: string;
|
|
151
151
|
};
|
|
152
152
|
409: {
|
|
@@ -194,10 +194,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
194
194
|
method: "PUT";
|
|
195
195
|
expiresAt: string;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
404: {
|
|
198
198
|
error: string;
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
400: {
|
|
201
201
|
error: string;
|
|
202
202
|
};
|
|
203
203
|
409: {
|
|
@@ -252,10 +252,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
252
252
|
mediaType?: string | undefined;
|
|
253
253
|
logicalPath?: string | undefined;
|
|
254
254
|
};
|
|
255
|
-
|
|
255
|
+
404: {
|
|
256
256
|
error: string;
|
|
257
257
|
};
|
|
258
|
-
|
|
258
|
+
400: {
|
|
259
259
|
error: string;
|
|
260
260
|
};
|
|
261
261
|
409: {
|
|
@@ -297,10 +297,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
297
297
|
200: {
|
|
298
298
|
success: boolean;
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
404: {
|
|
301
301
|
error: string;
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
400: {
|
|
304
304
|
error: string;
|
|
305
305
|
};
|
|
306
306
|
409: {
|