@sixb/server 0.1.6 → 0.1.8
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/dist/auth/access-token-boundary.d.ts +3 -0
- package/dist/auth/access-token-boundary.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +6 -2
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts +66 -0
- package/dist/auth/shared-access.d.ts.map +1 -0
- package/dist/files/content.d.ts +8 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3402 -1693
- package/dist/index.js.map +35 -28
- package/dist/models/display.d.ts +22 -0
- package/dist/models/display.d.ts.map +1 -0
- package/dist/openapi/security.d.ts +15 -1
- package/dist/openapi/security.d.ts.map +1 -1
- package/dist/openapi/tags.d.ts +6 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +2 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +2 -0
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +1 -0
- 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 +100 -90
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +143 -24
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +8 -8
- package/dist/routes/connector-connections.d.ts +4 -4
- package/dist/routes/datasets.d.ts +5 -3
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +3 -3
- package/dist/routes/files.d.ts +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +1 -1
- package/dist/routes/models.d.ts +18 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +3 -1
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +6 -1
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +1 -1
- package/dist/routes/share-grants.d.ts +264 -0
- package/dist/routes/share-grants.d.ts.map +1 -0
- package/dist/routes/shared-access.d.ts +155 -0
- package/dist/routes/shared-access.d.ts.map +1 -0
- package/dist/routes/syncs.d.ts +3 -0
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +58 -55
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +4 -4
- package/dist/schemas/agents.d.ts +385 -230
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1847 -295
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +2210 -0
- package/dist/schemas/ai-limits.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +195 -112
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +28 -22
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +3 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +6 -6
- package/dist/schemas/models.d.ts +214 -14
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +4 -4
- package/dist/schemas/pipelines.d.ts +42 -6
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/share-grants.d.ts +518 -0
- package/dist/schemas/share-grants.d.ts.map +1 -0
- package/dist/schemas/shared-access.d.ts +42 -0
- package/dist/schemas/shared-access.d.ts.map +1 -0
- package/dist/schemas/syncs.d.ts +7 -0
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +200 -210
- 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/dist/utils/http.d.ts +8 -4
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +17 -2
- package/src/auth/public-routes.ts +23 -0
- package/src/auth/scope.ts +3 -2
- package/src/auth/shared-access.ts +376 -0
- package/src/files/content.ts +39 -6
- package/src/index.ts +1 -0
- package/src/models/display.ts +91 -0
- package/src/openapi/security.ts +20 -1
- package/src/openapi/tags.ts +4 -0
- package/src/registerRoutes.ts +6 -0
- package/src/routes/actions.ts +5 -10
- package/src/routes/agent-api-gateway.ts +137 -38
- package/src/routes/agents.ts +58 -83
- package/src/routes/ai-accounting.ts +414 -23
- package/src/routes/auth.ts +280 -1
- package/src/routes/models.ts +12 -4
- package/src/routes/share-grants.ts +238 -0
- package/src/routes/shared-access.ts +165 -0
- package/src/routes/workflows.ts +3 -5
- package/src/routes/ws/agents.ts +17 -6
- package/src/schemas/agents.ts +38 -50
- package/src/schemas/ai-accounting.ts +88 -19
- package/src/schemas/ai-limits.ts +116 -0
- package/src/schemas/auth.ts +32 -0
- package/src/schemas/datasets.ts +2 -1
- package/src/schemas/files.ts +1 -0
- package/src/schemas/models.ts +33 -5
- package/src/schemas/share-grants.ts +109 -0
- package/src/schemas/shared-access.ts +31 -0
- package/src/schemas/workflows.ts +0 -2
- package/src/server.ts +91 -1
- package/src/utils/http.ts +33 -2
|
@@ -55,7 +55,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
55
55
|
type: "agent";
|
|
56
56
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
57
57
|
key: string;
|
|
58
|
-
agentId: string;
|
|
59
58
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
60
59
|
})[];
|
|
61
60
|
latestRun: {
|
|
@@ -68,7 +67,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
68
67
|
principalType: "user" | "serviceAccount" | "system";
|
|
69
68
|
principalId: string;
|
|
70
69
|
};
|
|
71
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
70
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
72
71
|
queuedAt?: string | undefined;
|
|
73
72
|
finishedAt?: string | undefined;
|
|
74
73
|
} | null;
|
|
@@ -129,7 +128,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
129
128
|
type: "agent";
|
|
130
129
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
131
130
|
key: string;
|
|
132
|
-
agentId: string;
|
|
133
131
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
134
132
|
})[];
|
|
135
133
|
latestRun: {
|
|
@@ -142,7 +140,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
142
140
|
principalType: "user" | "serviceAccount" | "system";
|
|
143
141
|
principalId: string;
|
|
144
142
|
};
|
|
145
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
143
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
146
144
|
queuedAt?: string | undefined;
|
|
147
145
|
finishedAt?: string | undefined;
|
|
148
146
|
} | null;
|
|
@@ -178,9 +176,9 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
178
176
|
workflowId?: string | undefined;
|
|
179
177
|
nodeRunId?: string | undefined;
|
|
180
178
|
workflowRunId?: string | undefined;
|
|
179
|
+
interventionId?: string | undefined;
|
|
181
180
|
nodeId?: string | undefined;
|
|
182
181
|
nodeKey?: string | undefined;
|
|
183
|
-
interventionId?: string | undefined;
|
|
184
182
|
requestedAfter?: string | undefined;
|
|
185
183
|
requestedBefore?: string | undefined;
|
|
186
184
|
};
|
|
@@ -193,29 +191,29 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
193
191
|
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
194
192
|
projectId: string;
|
|
195
193
|
id: string;
|
|
194
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
196
195
|
workflowId: string;
|
|
197
196
|
nodeRunId: string;
|
|
198
197
|
workflowRunId: string;
|
|
199
|
-
|
|
200
|
-
nodeIndex: number;
|
|
198
|
+
interventionId: string;
|
|
201
199
|
nodeId: string;
|
|
202
200
|
nodeKey: string;
|
|
203
|
-
|
|
204
|
-
requestedAt: string;
|
|
201
|
+
nodeIndex: number;
|
|
205
202
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
203
|
+
requestedAt: string;
|
|
206
204
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
207
205
|
expiresAt?: string | undefined;
|
|
208
206
|
submittedAt?: string | undefined;
|
|
209
|
-
cancelledAt?: string | undefined;
|
|
210
|
-
expiredAt?: string | undefined;
|
|
211
207
|
submittedBy?: {
|
|
212
208
|
principalType: "user" | "serviceAccount" | "system";
|
|
213
209
|
principalId: string;
|
|
214
210
|
} | undefined;
|
|
211
|
+
cancelledAt?: string | undefined;
|
|
215
212
|
cancelledBy?: {
|
|
216
213
|
principalType: "user" | "serviceAccount" | "system";
|
|
217
214
|
principalId: string;
|
|
218
215
|
} | undefined;
|
|
216
|
+
expiredAt?: string | undefined;
|
|
219
217
|
}[];
|
|
220
218
|
};
|
|
221
219
|
400: {
|
|
@@ -253,29 +251,29 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
253
251
|
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
254
252
|
projectId: string;
|
|
255
253
|
id: string;
|
|
254
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
256
255
|
workflowId: string;
|
|
257
256
|
nodeRunId: string;
|
|
258
257
|
workflowRunId: string;
|
|
259
|
-
|
|
260
|
-
nodeIndex: number;
|
|
258
|
+
interventionId: string;
|
|
261
259
|
nodeId: string;
|
|
262
260
|
nodeKey: string;
|
|
263
|
-
|
|
264
|
-
requestedAt: string;
|
|
261
|
+
nodeIndex: number;
|
|
265
262
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
263
|
+
requestedAt: string;
|
|
266
264
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
267
265
|
expiresAt?: string | undefined;
|
|
268
266
|
submittedAt?: string | undefined;
|
|
269
|
-
cancelledAt?: string | undefined;
|
|
270
|
-
expiredAt?: string | undefined;
|
|
271
267
|
submittedBy?: {
|
|
272
268
|
principalType: "user" | "serviceAccount" | "system";
|
|
273
269
|
principalId: string;
|
|
274
270
|
} | undefined;
|
|
271
|
+
cancelledAt?: string | undefined;
|
|
275
272
|
cancelledBy?: {
|
|
276
273
|
principalType: "user" | "serviceAccount" | "system";
|
|
277
274
|
principalId: string;
|
|
278
275
|
} | undefined;
|
|
276
|
+
expiredAt?: string | undefined;
|
|
279
277
|
};
|
|
280
278
|
404: {
|
|
281
279
|
error: string;
|
|
@@ -323,29 +321,29 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
323
321
|
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
324
322
|
projectId: string;
|
|
325
323
|
id: string;
|
|
324
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
326
325
|
workflowId: string;
|
|
327
326
|
nodeRunId: string;
|
|
328
327
|
workflowRunId: string;
|
|
329
|
-
|
|
330
|
-
nodeIndex: number;
|
|
328
|
+
interventionId: string;
|
|
331
329
|
nodeId: string;
|
|
332
330
|
nodeKey: string;
|
|
333
|
-
|
|
334
|
-
requestedAt: string;
|
|
331
|
+
nodeIndex: number;
|
|
335
332
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
333
|
+
requestedAt: string;
|
|
336
334
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
337
335
|
expiresAt?: string | undefined;
|
|
338
336
|
submittedAt?: string | undefined;
|
|
339
|
-
cancelledAt?: string | undefined;
|
|
340
|
-
expiredAt?: string | undefined;
|
|
341
337
|
submittedBy?: {
|
|
342
338
|
principalType: "user" | "serviceAccount" | "system";
|
|
343
339
|
principalId: string;
|
|
344
340
|
} | undefined;
|
|
341
|
+
cancelledAt?: string | undefined;
|
|
345
342
|
cancelledBy?: {
|
|
346
343
|
principalType: "user" | "serviceAccount" | "system";
|
|
347
344
|
principalId: string;
|
|
348
345
|
} | undefined;
|
|
346
|
+
expiredAt?: string | undefined;
|
|
349
347
|
};
|
|
350
348
|
};
|
|
351
349
|
404: {
|
|
@@ -363,29 +361,29 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
363
361
|
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
364
362
|
projectId: string;
|
|
365
363
|
id: string;
|
|
364
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
366
365
|
workflowId: string;
|
|
367
366
|
nodeRunId: string;
|
|
368
367
|
workflowRunId: string;
|
|
369
|
-
|
|
370
|
-
nodeIndex: number;
|
|
368
|
+
interventionId: string;
|
|
371
369
|
nodeId: string;
|
|
372
370
|
nodeKey: string;
|
|
373
|
-
|
|
374
|
-
requestedAt: string;
|
|
371
|
+
nodeIndex: number;
|
|
375
372
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
373
|
+
requestedAt: string;
|
|
376
374
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
377
375
|
expiresAt?: string | undefined;
|
|
378
376
|
submittedAt?: string | undefined;
|
|
379
|
-
cancelledAt?: string | undefined;
|
|
380
|
-
expiredAt?: string | undefined;
|
|
381
377
|
submittedBy?: {
|
|
382
378
|
principalType: "user" | "serviceAccount" | "system";
|
|
383
379
|
principalId: string;
|
|
384
380
|
} | undefined;
|
|
381
|
+
cancelledAt?: string | undefined;
|
|
385
382
|
cancelledBy?: {
|
|
386
383
|
principalType: "user" | "serviceAccount" | "system";
|
|
387
384
|
principalId: string;
|
|
388
385
|
} | undefined;
|
|
386
|
+
expiredAt?: string | undefined;
|
|
389
387
|
};
|
|
390
388
|
};
|
|
391
389
|
422: {
|
|
@@ -421,29 +419,29 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
421
419
|
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
422
420
|
projectId: string;
|
|
423
421
|
id: string;
|
|
422
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
424
423
|
workflowId: string;
|
|
425
424
|
nodeRunId: string;
|
|
426
425
|
workflowRunId: string;
|
|
427
|
-
|
|
428
|
-
nodeIndex: number;
|
|
426
|
+
interventionId: string;
|
|
429
427
|
nodeId: string;
|
|
430
428
|
nodeKey: string;
|
|
431
|
-
|
|
432
|
-
requestedAt: string;
|
|
429
|
+
nodeIndex: number;
|
|
433
430
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
431
|
+
requestedAt: string;
|
|
434
432
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
435
433
|
expiresAt?: string | undefined;
|
|
436
434
|
submittedAt?: string | undefined;
|
|
437
|
-
cancelledAt?: string | undefined;
|
|
438
|
-
expiredAt?: string | undefined;
|
|
439
435
|
submittedBy?: {
|
|
440
436
|
principalType: "user" | "serviceAccount" | "system";
|
|
441
437
|
principalId: string;
|
|
442
438
|
} | undefined;
|
|
439
|
+
cancelledAt?: string | undefined;
|
|
443
440
|
cancelledBy?: {
|
|
444
441
|
principalType: "user" | "serviceAccount" | "system";
|
|
445
442
|
principalId: string;
|
|
446
443
|
} | undefined;
|
|
444
|
+
expiredAt?: string | undefined;
|
|
447
445
|
};
|
|
448
446
|
};
|
|
449
447
|
404: {
|
|
@@ -498,7 +496,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
498
496
|
principalType: "user" | "serviceAccount" | "system";
|
|
499
497
|
principalId: string;
|
|
500
498
|
};
|
|
501
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
499
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
502
500
|
queuedAt?: string | undefined;
|
|
503
501
|
finishedAt?: string | undefined;
|
|
504
502
|
}[];
|
|
@@ -542,13 +540,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
542
540
|
projectId: string;
|
|
543
541
|
id: string;
|
|
544
542
|
startedAt: string;
|
|
545
|
-
workflowId: string;
|
|
546
543
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
544
|
+
workflowId: string;
|
|
547
545
|
requestedBy: {
|
|
548
546
|
principalType: "user" | "serviceAccount" | "system";
|
|
549
547
|
principalId: string;
|
|
550
548
|
};
|
|
551
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
549
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
552
550
|
queuedAt?: string | undefined;
|
|
553
551
|
finishedAt?: string | undefined;
|
|
554
552
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
@@ -558,17 +556,16 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
558
556
|
projectId: string;
|
|
559
557
|
id: string;
|
|
560
558
|
startedAt: string;
|
|
559
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
561
560
|
workflowId: string;
|
|
562
561
|
workflowRunId: string;
|
|
563
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
564
|
-
nodeIndex: number;
|
|
565
|
-
nodeType: "agent" | "action" | "step" | "intervention";
|
|
566
562
|
nodeId: string;
|
|
567
563
|
nodeKey: string;
|
|
568
|
-
|
|
564
|
+
nodeIndex: number;
|
|
565
|
+
nodeType: "agent" | "action" | "step" | "intervention";
|
|
566
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
569
567
|
agentExecution?: {
|
|
570
568
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
571
|
-
agentId: string;
|
|
572
569
|
attempt: number;
|
|
573
570
|
startedAt?: string | undefined;
|
|
574
571
|
completedAt?: string | undefined;
|
|
@@ -640,12 +637,11 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
640
637
|
response: {
|
|
641
638
|
200: {
|
|
642
639
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
643
|
-
agentId: string;
|
|
644
640
|
attempt: number;
|
|
645
641
|
nodeRunId: string;
|
|
646
642
|
createdAt: string;
|
|
647
643
|
prompt: string;
|
|
648
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
644
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
649
645
|
startedAt?: string | undefined;
|
|
650
646
|
completedAt?: string | undefined;
|
|
651
647
|
modelId?: string | undefined;
|
|
@@ -673,7 +669,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
673
669
|
diagnostics?: import("../schemas/common").JsonValue[] | undefined;
|
|
674
670
|
trace?: ({
|
|
675
671
|
origin: "ambient" | "explicit";
|
|
676
|
-
type: "context";
|
|
677
672
|
context: {
|
|
678
673
|
kind: "object";
|
|
679
674
|
ref: {
|
|
@@ -687,6 +682,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
687
682
|
value: import("../schemas/common").JsonValue;
|
|
688
683
|
label: string;
|
|
689
684
|
};
|
|
685
|
+
type: "context";
|
|
690
686
|
} | {
|
|
691
687
|
type: "text";
|
|
692
688
|
text: string;
|
|
@@ -708,21 +704,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
708
704
|
logicalPath?: string | undefined;
|
|
709
705
|
};
|
|
710
706
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
707
|
+
} | {
|
|
708
|
+
type: "provider-state";
|
|
709
|
+
providerId: string;
|
|
710
|
+
data: import("../schemas/common").JsonValue;
|
|
711
711
|
} | {
|
|
712
712
|
type: "tool-call";
|
|
713
713
|
output: import("../schemas/common").JsonValue;
|
|
714
|
+
input: import("../schemas/common").JsonValue;
|
|
714
715
|
toolCallId: string;
|
|
715
716
|
toolName: string;
|
|
716
|
-
input: import("../schemas/common").JsonValue;
|
|
717
717
|
state: "output-available";
|
|
718
718
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
719
719
|
dynamic?: boolean | undefined;
|
|
720
720
|
providerExecuted?: boolean | undefined;
|
|
721
721
|
} | {
|
|
722
722
|
type: "tool-call";
|
|
723
|
+
input: import("../schemas/common").JsonValue;
|
|
723
724
|
toolCallId: string;
|
|
724
725
|
toolName: string;
|
|
725
|
-
input: import("../schemas/common").JsonValue;
|
|
726
726
|
state: "output-error";
|
|
727
727
|
errorText: string;
|
|
728
728
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -776,13 +776,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
776
776
|
projectId: string;
|
|
777
777
|
id: string;
|
|
778
778
|
startedAt: string;
|
|
779
|
-
workflowId: string;
|
|
780
779
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
780
|
+
workflowId: string;
|
|
781
781
|
requestedBy: {
|
|
782
782
|
principalType: "user" | "serviceAccount" | "system";
|
|
783
783
|
principalId: string;
|
|
784
784
|
};
|
|
785
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
785
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
786
786
|
queuedAt?: string | undefined;
|
|
787
787
|
finishedAt?: string | undefined;
|
|
788
788
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
@@ -792,17 +792,16 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
792
792
|
projectId: string;
|
|
793
793
|
id: string;
|
|
794
794
|
startedAt: string;
|
|
795
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
795
796
|
workflowId: string;
|
|
796
797
|
workflowRunId: string;
|
|
797
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
798
|
-
nodeIndex: number;
|
|
799
|
-
nodeType: "agent" | "action" | "step" | "intervention";
|
|
800
798
|
nodeId: string;
|
|
801
799
|
nodeKey: string;
|
|
802
|
-
|
|
800
|
+
nodeIndex: number;
|
|
801
|
+
nodeType: "agent" | "action" | "step" | "intervention";
|
|
802
|
+
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
803
803
|
agentExecution?: {
|
|
804
804
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
805
|
-
agentId: string;
|
|
806
805
|
attempt: number;
|
|
807
806
|
startedAt?: string | undefined;
|
|
808
807
|
completedAt?: string | undefined;
|
|
@@ -871,6 +870,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
871
870
|
query: {
|
|
872
871
|
path: string;
|
|
873
872
|
disposition?: "inline" | "attachment" | undefined;
|
|
873
|
+
v?: string | undefined;
|
|
874
874
|
};
|
|
875
875
|
headers: unknown;
|
|
876
876
|
response: {
|
|
@@ -907,6 +907,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
907
907
|
query: {
|
|
908
908
|
path: string;
|
|
909
909
|
disposition?: "inline" | "attachment" | undefined;
|
|
910
|
+
v?: string | undefined;
|
|
910
911
|
};
|
|
911
912
|
headers: unknown;
|
|
912
913
|
response: {
|
|
@@ -946,6 +947,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
946
947
|
query: {
|
|
947
948
|
path: string;
|
|
948
949
|
disposition?: "inline" | "attachment" | undefined;
|
|
950
|
+
v?: string | undefined;
|
|
949
951
|
};
|
|
950
952
|
headers: unknown;
|
|
951
953
|
response: {
|
|
@@ -987,6 +989,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
987
989
|
query: {
|
|
988
990
|
path: string;
|
|
989
991
|
disposition?: "inline" | "attachment" | undefined;
|
|
992
|
+
v?: string | undefined;
|
|
990
993
|
};
|
|
991
994
|
headers: unknown;
|
|
992
995
|
response: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAcnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAcnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2hBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkxBrE"}
|
package/dist/routes/ws/logs.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
22
22
|
id: string;
|
|
23
23
|
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
24
24
|
} | undefined;
|
|
25
|
-
afterCursor?: string | undefined;
|
|
26
25
|
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
26
|
+
afterCursor?: string | undefined;
|
|
27
27
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
type: "subscribe";
|
|
@@ -31,8 +31,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
31
31
|
id: string;
|
|
32
32
|
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
33
33
|
} | undefined;
|
|
34
|
-
afterCursor?: string | undefined;
|
|
35
34
|
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
35
|
+
afterCursor?: string | undefined;
|
|
36
36
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
type: "subscribe";
|
|
@@ -40,8 +40,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
40
40
|
id: string;
|
|
41
41
|
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
42
42
|
} | undefined;
|
|
43
|
-
afterCursor?: string | undefined;
|
|
44
43
|
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
44
|
+
afterCursor?: string | undefined;
|
|
45
45
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
type: "subscribe";
|
|
@@ -49,8 +49,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
49
49
|
id: string;
|
|
50
50
|
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
51
51
|
} | undefined;
|
|
52
|
-
afterCursor?: string | undefined;
|
|
53
52
|
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
53
|
+
afterCursor?: string | undefined;
|
|
54
54
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
55
55
|
}>, z.ZodObject<{
|
|
56
56
|
type: z.ZodLiteral<"unsubscribe">;
|