@sixb/server 0.1.18 → 0.1.20
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 +15 -24
- package/dist/actions/serialize.d.ts +7 -0
- package/dist/actions/serialize.d.ts.map +1 -0
- package/dist/auth/browser-origin.d.ts +4 -26
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +0 -3
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/guard.d.ts +1 -1
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts +0 -5
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +0 -2
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +681 -935
- package/dist/index.js.map +24 -24
- package/dist/routes/action-runs.d.ts +11 -15
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +44 -13
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +20 -22
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +8 -17
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +21 -21
- package/dist/routes/connector-connections.d.ts +8 -8
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +15 -12
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +0 -2
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/projections.d.ts +49 -49
- package/dist/routes/syncs.d.ts +10 -10
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +48 -52
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +100 -84
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +20 -20
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/auth.d.ts +28 -63
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +40 -40
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +4 -7
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/projections.d.ts +290 -290
- package/dist/schemas/syncs.d.ts +34 -34
- package/dist/schemas/webhook-runs.d.ts +8 -8
- package/dist/schemas/workflows.d.ts +160 -160
- package/dist/server.d.ts +2 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +20 -6
- package/dist/utils/request-body.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/actions/serialize.ts +55 -0
- package/src/auth/browser-origin.ts +30 -240
- package/src/auth/experience.ts +1 -4
- package/src/auth/guard.ts +4 -32
- package/src/auth/public-routes.ts +1 -10
- package/src/auth/responses.ts +0 -5
- package/src/auth/session-cookies.ts +1 -3
- package/src/auth/shared-access.ts +1 -1
- package/src/index.ts +1 -1
- package/src/routes/action-runs.ts +1 -54
- package/src/routes/actions.ts +26 -8
- package/src/routes/agent-api-gateway.ts +18 -42
- package/src/routes/auth.ts +32 -111
- package/src/routes/files.ts +15 -63
- package/src/routes/ws/events.ts +2 -12
- package/src/schemas/actions.ts +21 -18
- package/src/schemas/auth.ts +2 -15
- package/src/schemas/files.ts +0 -6
- package/src/server.ts +23 -18
- package/src/utils/http.ts +2 -0
- package/src/utils/request-body.ts +55 -6
- package/dist/auth/application-access.d.ts +0 -4
- package/dist/auth/application-access.d.ts.map +0 -1
- package/src/auth/application-access.ts +0 -15
|
@@ -39,8 +39,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
39
39
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
40
40
|
} | {
|
|
41
41
|
id: string;
|
|
42
|
-
type: "action";
|
|
43
42
|
params: Record<string, import("../schemas/common").JsonValue>;
|
|
43
|
+
type: "action";
|
|
44
44
|
key: string;
|
|
45
45
|
objectTypeId?: string | undefined;
|
|
46
46
|
} | {
|
|
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
58
58
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
59
59
|
})[];
|
|
60
60
|
latestRun: {
|
|
61
|
-
status: "
|
|
61
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
|
|
62
62
|
projectId: string;
|
|
63
63
|
id: string;
|
|
64
64
|
startedAt: string;
|
|
@@ -68,8 +68,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
68
68
|
type: "user" | "serviceAccount" | "system";
|
|
69
69
|
};
|
|
70
70
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
71
|
-
queuedAt?: string | undefined;
|
|
72
71
|
finishedAt?: string | undefined;
|
|
72
|
+
queuedAt?: string | undefined;
|
|
73
73
|
} | null;
|
|
74
74
|
}[];
|
|
75
75
|
422: {
|
|
@@ -112,8 +112,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
112
112
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
113
113
|
} | {
|
|
114
114
|
id: string;
|
|
115
|
-
type: "action";
|
|
116
115
|
params: Record<string, import("../schemas/common").JsonValue>;
|
|
116
|
+
type: "action";
|
|
117
117
|
key: string;
|
|
118
118
|
objectTypeId?: string | undefined;
|
|
119
119
|
} | {
|
|
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
131
131
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
132
132
|
})[];
|
|
133
133
|
latestRun: {
|
|
134
|
-
status: "
|
|
134
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
|
|
135
135
|
projectId: string;
|
|
136
136
|
id: string;
|
|
137
137
|
startedAt: string;
|
|
@@ -141,8 +141,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
141
141
|
type: "user" | "serviceAccount" | "system";
|
|
142
142
|
};
|
|
143
143
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
144
|
-
queuedAt?: string | undefined;
|
|
145
144
|
finishedAt?: string | undefined;
|
|
145
|
+
queuedAt?: string | undefined;
|
|
146
146
|
} | null;
|
|
147
147
|
};
|
|
148
148
|
404: {
|
|
@@ -169,16 +169,16 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
169
169
|
body: unknown;
|
|
170
170
|
params: {};
|
|
171
171
|
query: {
|
|
172
|
-
status?: "
|
|
172
|
+
status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
|
|
173
173
|
limit?: string | undefined;
|
|
174
174
|
offset?: string | undefined;
|
|
175
175
|
order?: "asc" | "desc" | undefined;
|
|
176
176
|
workflowId?: string | undefined;
|
|
177
177
|
workflowRunId?: string | undefined;
|
|
178
178
|
nodeRunId?: string | undefined;
|
|
179
|
-
interventionId?: string | undefined;
|
|
180
179
|
nodeId?: string | undefined;
|
|
181
180
|
nodeKey?: string | undefined;
|
|
181
|
+
interventionId?: string | undefined;
|
|
182
182
|
requestedAfter?: string | undefined;
|
|
183
183
|
requestedBefore?: string | undefined;
|
|
184
184
|
};
|
|
@@ -188,22 +188,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
188
188
|
hasMore: boolean;
|
|
189
189
|
total: number;
|
|
190
190
|
interventions: {
|
|
191
|
-
status: "
|
|
191
|
+
status: "expired" | "pending" | "cancelled" | "submitted";
|
|
192
192
|
projectId: string;
|
|
193
193
|
id: string;
|
|
194
194
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
195
195
|
workflowId: string;
|
|
196
196
|
workflowRunId: string;
|
|
197
197
|
nodeRunId: string;
|
|
198
|
-
|
|
198
|
+
nodeIndex: number;
|
|
199
199
|
nodeId: string;
|
|
200
200
|
nodeKey: string;
|
|
201
|
-
|
|
201
|
+
interventionId: string;
|
|
202
202
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
203
203
|
requestedAt: string;
|
|
204
204
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
205
205
|
expiresAt?: string | undefined;
|
|
206
206
|
submittedAt?: string | undefined;
|
|
207
|
+
expiredAt?: string | undefined;
|
|
207
208
|
submittedBy?: {
|
|
208
209
|
id: string;
|
|
209
210
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -213,7 +214,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
213
214
|
id: string;
|
|
214
215
|
type: "user" | "serviceAccount" | "system";
|
|
215
216
|
} | undefined;
|
|
216
|
-
expiredAt?: string | undefined;
|
|
217
217
|
}[];
|
|
218
218
|
};
|
|
219
219
|
400: {
|
|
@@ -248,22 +248,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
248
248
|
headers: unknown;
|
|
249
249
|
response: {
|
|
250
250
|
200: {
|
|
251
|
-
status: "
|
|
251
|
+
status: "expired" | "pending" | "cancelled" | "submitted";
|
|
252
252
|
projectId: string;
|
|
253
253
|
id: string;
|
|
254
254
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
255
255
|
workflowId: string;
|
|
256
256
|
workflowRunId: string;
|
|
257
257
|
nodeRunId: string;
|
|
258
|
-
|
|
258
|
+
nodeIndex: number;
|
|
259
259
|
nodeId: string;
|
|
260
260
|
nodeKey: string;
|
|
261
|
-
|
|
261
|
+
interventionId: string;
|
|
262
262
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
263
263
|
requestedAt: string;
|
|
264
264
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
265
265
|
expiresAt?: string | undefined;
|
|
266
266
|
submittedAt?: string | undefined;
|
|
267
|
+
expiredAt?: string | undefined;
|
|
267
268
|
submittedBy?: {
|
|
268
269
|
id: string;
|
|
269
270
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -273,7 +274,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
273
274
|
id: string;
|
|
274
275
|
type: "user" | "serviceAccount" | "system";
|
|
275
276
|
} | undefined;
|
|
276
|
-
expiredAt?: string | undefined;
|
|
277
277
|
};
|
|
278
278
|
404: {
|
|
279
279
|
error: string;
|
|
@@ -318,22 +318,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
318
318
|
} | {
|
|
319
319
|
jobId: string;
|
|
320
320
|
intervention: {
|
|
321
|
-
status: "
|
|
321
|
+
status: "expired" | "pending" | "cancelled" | "submitted";
|
|
322
322
|
projectId: string;
|
|
323
323
|
id: string;
|
|
324
324
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
325
325
|
workflowId: string;
|
|
326
326
|
workflowRunId: string;
|
|
327
327
|
nodeRunId: string;
|
|
328
|
-
|
|
328
|
+
nodeIndex: number;
|
|
329
329
|
nodeId: string;
|
|
330
330
|
nodeKey: string;
|
|
331
|
-
|
|
331
|
+
interventionId: string;
|
|
332
332
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
333
333
|
requestedAt: string;
|
|
334
334
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
335
335
|
expiresAt?: string | undefined;
|
|
336
336
|
submittedAt?: string | undefined;
|
|
337
|
+
expiredAt?: string | undefined;
|
|
337
338
|
submittedBy?: {
|
|
338
339
|
id: string;
|
|
339
340
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -343,7 +344,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
343
344
|
id: string;
|
|
344
345
|
type: "user" | "serviceAccount" | "system";
|
|
345
346
|
} | undefined;
|
|
346
|
-
expiredAt?: string | undefined;
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
404: {
|
|
@@ -358,22 +358,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
358
358
|
202: {
|
|
359
359
|
jobId: string;
|
|
360
360
|
intervention: {
|
|
361
|
-
status: "
|
|
361
|
+
status: "expired" | "pending" | "cancelled" | "submitted";
|
|
362
362
|
projectId: string;
|
|
363
363
|
id: string;
|
|
364
364
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
365
365
|
workflowId: string;
|
|
366
366
|
workflowRunId: string;
|
|
367
367
|
nodeRunId: string;
|
|
368
|
-
|
|
368
|
+
nodeIndex: number;
|
|
369
369
|
nodeId: string;
|
|
370
370
|
nodeKey: string;
|
|
371
|
-
|
|
371
|
+
interventionId: string;
|
|
372
372
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
373
373
|
requestedAt: string;
|
|
374
374
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
375
375
|
expiresAt?: string | undefined;
|
|
376
376
|
submittedAt?: string | undefined;
|
|
377
|
+
expiredAt?: string | undefined;
|
|
377
378
|
submittedBy?: {
|
|
378
379
|
id: string;
|
|
379
380
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -383,7 +384,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
383
384
|
id: string;
|
|
384
385
|
type: "user" | "serviceAccount" | "system";
|
|
385
386
|
} | undefined;
|
|
386
|
-
expiredAt?: string | undefined;
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
422: {
|
|
@@ -416,22 +416,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
416
416
|
response: {
|
|
417
417
|
200: {
|
|
418
418
|
intervention: {
|
|
419
|
-
status: "
|
|
419
|
+
status: "expired" | "pending" | "cancelled" | "submitted";
|
|
420
420
|
projectId: string;
|
|
421
421
|
id: string;
|
|
422
422
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
423
423
|
workflowId: string;
|
|
424
424
|
workflowRunId: string;
|
|
425
425
|
nodeRunId: string;
|
|
426
|
-
|
|
426
|
+
nodeIndex: number;
|
|
427
427
|
nodeId: string;
|
|
428
428
|
nodeKey: string;
|
|
429
|
-
|
|
429
|
+
interventionId: string;
|
|
430
430
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
431
431
|
requestedAt: string;
|
|
432
432
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
433
433
|
expiresAt?: string | undefined;
|
|
434
434
|
submittedAt?: string | undefined;
|
|
435
|
+
expiredAt?: string | undefined;
|
|
435
436
|
submittedBy?: {
|
|
436
437
|
id: string;
|
|
437
438
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -441,7 +442,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
441
442
|
id: string;
|
|
442
443
|
type: "user" | "serviceAccount" | "system";
|
|
443
444
|
} | undefined;
|
|
444
|
-
expiredAt?: string | undefined;
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
447
|
404: {
|
|
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
475
475
|
body: unknown;
|
|
476
476
|
params: {};
|
|
477
477
|
query: {
|
|
478
|
-
status?: "
|
|
478
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
|
|
479
479
|
startedAfter?: string | undefined;
|
|
480
480
|
startedBefore?: string | undefined;
|
|
481
481
|
limit?: string | undefined;
|
|
@@ -487,7 +487,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
487
487
|
response: {
|
|
488
488
|
200: {
|
|
489
489
|
runs: {
|
|
490
|
-
status: "
|
|
490
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
|
|
491
491
|
projectId: string;
|
|
492
492
|
id: string;
|
|
493
493
|
startedAt: string;
|
|
@@ -497,8 +497,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
497
497
|
type: "user" | "serviceAccount" | "system";
|
|
498
498
|
};
|
|
499
499
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
500
|
-
queuedAt?: string | undefined;
|
|
501
500
|
finishedAt?: string | undefined;
|
|
501
|
+
queuedAt?: string | undefined;
|
|
502
502
|
}[];
|
|
503
503
|
hasMore: boolean;
|
|
504
504
|
total: number;
|
|
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
536
536
|
response: {
|
|
537
537
|
200: {
|
|
538
538
|
run: {
|
|
539
|
-
status: "
|
|
539
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
|
|
540
540
|
projectId: string;
|
|
541
541
|
id: string;
|
|
542
542
|
startedAt: string;
|
|
@@ -547,25 +547,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
547
547
|
type: "user" | "serviceAccount" | "system";
|
|
548
548
|
};
|
|
549
549
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
550
|
-
queuedAt?: string | undefined;
|
|
551
550
|
finishedAt?: string | undefined;
|
|
552
551
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
552
|
+
queuedAt?: string | undefined;
|
|
553
553
|
};
|
|
554
554
|
nodes: {
|
|
555
|
-
status: "
|
|
555
|
+
status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
|
|
556
556
|
projectId: string;
|
|
557
557
|
id: string;
|
|
558
558
|
startedAt: string;
|
|
559
559
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
560
560
|
workflowId: string;
|
|
561
561
|
workflowRunId: string;
|
|
562
|
-
nodeId: string;
|
|
563
|
-
nodeKey: string;
|
|
564
562
|
nodeIndex: number;
|
|
565
563
|
nodeType: "agent" | "action" | "step" | "intervention";
|
|
564
|
+
nodeId: string;
|
|
565
|
+
nodeKey: string;
|
|
566
566
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
567
567
|
agentExecution?: {
|
|
568
|
-
status: "
|
|
568
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
569
569
|
attempt: number;
|
|
570
570
|
modelId?: string | undefined;
|
|
571
571
|
startedAt?: string | undefined;
|
|
@@ -637,7 +637,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
637
637
|
headers: unknown;
|
|
638
638
|
response: {
|
|
639
639
|
200: {
|
|
640
|
-
status: "
|
|
640
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
641
641
|
attempt: number;
|
|
642
642
|
nodeRunId: string;
|
|
643
643
|
createdAt: string;
|
|
@@ -777,7 +777,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
777
777
|
response: {
|
|
778
778
|
200: {
|
|
779
779
|
run: {
|
|
780
|
-
status: "
|
|
780
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
|
|
781
781
|
projectId: string;
|
|
782
782
|
id: string;
|
|
783
783
|
startedAt: string;
|
|
@@ -788,25 +788,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
788
788
|
type: "user" | "serviceAccount" | "system";
|
|
789
789
|
};
|
|
790
790
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
791
|
-
queuedAt?: string | undefined;
|
|
792
791
|
finishedAt?: string | undefined;
|
|
793
792
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
793
|
+
queuedAt?: string | undefined;
|
|
794
794
|
};
|
|
795
795
|
nodes: {
|
|
796
|
-
status: "
|
|
796
|
+
status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
|
|
797
797
|
projectId: string;
|
|
798
798
|
id: string;
|
|
799
799
|
startedAt: string;
|
|
800
800
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
801
801
|
workflowId: string;
|
|
802
802
|
workflowRunId: string;
|
|
803
|
-
nodeId: string;
|
|
804
|
-
nodeKey: string;
|
|
805
803
|
nodeIndex: number;
|
|
806
804
|
nodeType: "agent" | "action" | "step" | "intervention";
|
|
805
|
+
nodeId: string;
|
|
806
|
+
nodeKey: string;
|
|
807
807
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
808
808
|
agentExecution?: {
|
|
809
|
-
status: "
|
|
809
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
810
810
|
attempt: number;
|
|
811
811
|
modelId?: string | undefined;
|
|
812
812
|
startedAt?: string | undefined;
|
|
@@ -875,7 +875,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
875
875
|
};
|
|
876
876
|
query: {
|
|
877
877
|
path: string;
|
|
878
|
-
audience?: "atlas" | "app" | undefined;
|
|
879
878
|
disposition?: "inline" | "attachment" | undefined;
|
|
880
879
|
v?: string | undefined;
|
|
881
880
|
};
|
|
@@ -913,7 +912,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
913
912
|
};
|
|
914
913
|
query: {
|
|
915
914
|
path: string;
|
|
916
|
-
audience?: "atlas" | "app" | undefined;
|
|
917
915
|
disposition?: "inline" | "attachment" | undefined;
|
|
918
916
|
v?: string | undefined;
|
|
919
917
|
};
|
|
@@ -954,7 +952,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
954
952
|
};
|
|
955
953
|
query: {
|
|
956
954
|
path: string;
|
|
957
|
-
audience?: "atlas" | "app" | undefined;
|
|
958
955
|
disposition?: "inline" | "attachment" | undefined;
|
|
959
956
|
v?: string | undefined;
|
|
960
957
|
};
|
|
@@ -997,7 +994,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
997
994
|
};
|
|
998
995
|
query: {
|
|
999
996
|
path: string;
|
|
1000
|
-
audience?: "atlas" | "app" | undefined;
|
|
1001
997
|
disposition?: "inline" | "attachment" | undefined;
|
|
1002
998
|
v?: string | undefined;
|
|
1003
999
|
};
|
|
@@ -1043,9 +1039,9 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
1043
1039
|
error: string;
|
|
1044
1040
|
} | {
|
|
1045
1041
|
runId: string;
|
|
1046
|
-
queuedAt: string;
|
|
1047
|
-
jobId: string;
|
|
1048
1042
|
workflowId: string;
|
|
1043
|
+
jobId: string;
|
|
1044
|
+
queuedAt: string;
|
|
1049
1045
|
};
|
|
1050
1046
|
404: {
|
|
1051
1047
|
error: string;
|
|
@@ -1061,9 +1057,9 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
1061
1057
|
};
|
|
1062
1058
|
202: {
|
|
1063
1059
|
runId: string;
|
|
1064
|
-
queuedAt: string;
|
|
1065
|
-
jobId: string;
|
|
1066
1060
|
workflowId: string;
|
|
1061
|
+
jobId: string;
|
|
1062
|
+
queuedAt: string;
|
|
1067
1063
|
};
|
|
1068
1064
|
422: {
|
|
1069
1065
|
type: "validation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2hBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2hBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsxBrE"}
|
|
@@ -3,33 +3,30 @@ import { z } from "zod";
|
|
|
3
3
|
import type { SixbServer } from "../../server";
|
|
4
4
|
declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<"subscribe">;
|
|
6
|
-
topic: z.ZodOptional<z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "
|
|
7
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "
|
|
6
|
+
topic: z.ZodOptional<z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules")[]]>>;
|
|
7
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "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", ...("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "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")[]]>, "many">>;
|
|
8
8
|
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
9
9
|
primaryId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
11
10
|
runId: z.ZodOptional<z.ZodString>;
|
|
12
11
|
afterCursor: z.ZodOptional<z.ZodString>;
|
|
13
12
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
14
13
|
}, "strip", z.ZodTypeAny, {
|
|
15
14
|
type: "subscribe";
|
|
16
15
|
objectTypeId?: string | undefined;
|
|
17
|
-
actionId?: string | undefined;
|
|
18
16
|
runId?: string | undefined;
|
|
19
17
|
primaryId?: string | undefined;
|
|
20
18
|
limit?: number | undefined;
|
|
21
|
-
types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "
|
|
22
|
-
topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "
|
|
19
|
+
types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "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")[] | undefined;
|
|
20
|
+
topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
|
|
23
21
|
afterCursor?: string | undefined;
|
|
24
22
|
}, {
|
|
25
23
|
type: "subscribe";
|
|
26
24
|
objectTypeId?: string | undefined;
|
|
27
|
-
actionId?: string | undefined;
|
|
28
25
|
runId?: string | undefined;
|
|
29
26
|
primaryId?: string | undefined;
|
|
30
27
|
limit?: number | undefined;
|
|
31
|
-
types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "
|
|
32
|
-
topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "
|
|
28
|
+
types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "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")[] | undefined;
|
|
29
|
+
topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
|
|
33
30
|
afterCursor?: string | undefined;
|
|
34
31
|
}>, z.ZodObject<{
|
|
35
32
|
type: z.ZodLiteral<"unsubscribe">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA4B9C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA;AAE/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GACrD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAChD,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6IxE"}
|