@sixb/server 0.1.2 → 0.1.3
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/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 +1891 -1337
- package/dist/index.js.map +17 -14
- package/dist/openapi/tags.d.ts +6 -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 +149 -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 +9 -9
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/objects.d.ts +3 -3
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +62 -50
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +6 -6
- 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 +459 -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 +24 -24
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +400 -288
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +10 -10
- 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 +4 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agents.ts +1 -0
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +4 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/projections.ts +6 -0
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
|
@@ -39,13 +39,13 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
39
39
|
200: {
|
|
40
40
|
success: boolean;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
404: {
|
|
43
43
|
error: string;
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
403: {
|
|
46
46
|
error: string;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
400: {
|
|
49
49
|
error: string;
|
|
50
50
|
};
|
|
51
51
|
422: {
|
|
@@ -153,10 +153,10 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
153
153
|
value?: unknown;
|
|
154
154
|
unit?: string | undefined;
|
|
155
155
|
}[];
|
|
156
|
-
|
|
156
|
+
404: {
|
|
157
157
|
error: string;
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
400: {
|
|
160
160
|
error: string;
|
|
161
161
|
};
|
|
162
162
|
422: {
|
|
@@ -204,10 +204,10 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
204
204
|
value?: unknown;
|
|
205
205
|
unit?: string | undefined;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
404: {
|
|
208
208
|
error: string;
|
|
209
209
|
};
|
|
210
|
-
|
|
210
|
+
400: {
|
|
211
211
|
error: string;
|
|
212
212
|
};
|
|
213
213
|
422: {
|
|
@@ -36,14 +36,14 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
36
36
|
response: {
|
|
37
37
|
200: {
|
|
38
38
|
runs: {
|
|
39
|
+
status: "running" | "succeeded" | "failed";
|
|
39
40
|
projectId: string;
|
|
40
41
|
id: string;
|
|
41
|
-
status: "running" | "succeeded" | "failed";
|
|
42
42
|
startedAt: string;
|
|
43
43
|
method: string;
|
|
44
44
|
route: string;
|
|
45
|
-
connectorId: string;
|
|
46
45
|
executionId: string;
|
|
46
|
+
connectorId: string;
|
|
47
47
|
webhookId: string;
|
|
48
48
|
requestBodyBytes: number;
|
|
49
49
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected"> | undefined;
|
|
@@ -59,15 +59,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
59
59
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
60
60
|
})[];
|
|
61
61
|
latestRun: {
|
|
62
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
62
63
|
projectId: string;
|
|
63
64
|
id: string;
|
|
64
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
65
65
|
startedAt: string;
|
|
66
|
+
workflowId: string;
|
|
66
67
|
requestedBy: {
|
|
67
68
|
principalType: "user" | "serviceAccount" | "system";
|
|
68
69
|
principalId: string;
|
|
69
70
|
};
|
|
70
|
-
workflowId: string;
|
|
71
71
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
72
72
|
queuedAt?: string | undefined;
|
|
73
73
|
finishedAt?: string | undefined;
|
|
@@ -133,15 +133,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
133
133
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
134
134
|
})[];
|
|
135
135
|
latestRun: {
|
|
136
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
136
137
|
projectId: string;
|
|
137
138
|
id: string;
|
|
138
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
139
139
|
startedAt: string;
|
|
140
|
+
workflowId: string;
|
|
140
141
|
requestedBy: {
|
|
141
142
|
principalType: "user" | "serviceAccount" | "system";
|
|
142
143
|
principalId: string;
|
|
143
144
|
};
|
|
144
|
-
workflowId: string;
|
|
145
145
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
146
146
|
queuedAt?: string | undefined;
|
|
147
147
|
finishedAt?: string | undefined;
|
|
@@ -177,10 +177,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
177
177
|
order?: "asc" | "desc" | undefined;
|
|
178
178
|
workflowId?: string | undefined;
|
|
179
179
|
nodeRunId?: string | undefined;
|
|
180
|
+
workflowRunId?: string | undefined;
|
|
180
181
|
nodeId?: string | undefined;
|
|
181
182
|
nodeKey?: string | undefined;
|
|
182
183
|
interventionId?: string | undefined;
|
|
183
|
-
workflowRunId?: string | undefined;
|
|
184
184
|
requestedAfter?: string | undefined;
|
|
185
185
|
requestedBefore?: string | undefined;
|
|
186
186
|
};
|
|
@@ -190,18 +190,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
190
190
|
hasMore: boolean;
|
|
191
191
|
total: number;
|
|
192
192
|
interventions: {
|
|
193
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
193
194
|
projectId: string;
|
|
194
195
|
id: string;
|
|
195
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
196
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
197
196
|
workflowId: string;
|
|
198
197
|
nodeRunId: string;
|
|
198
|
+
workflowRunId: string;
|
|
199
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
199
200
|
nodeIndex: number;
|
|
200
201
|
nodeId: string;
|
|
201
202
|
nodeKey: string;
|
|
202
203
|
interventionId: string;
|
|
203
204
|
requestedAt: string;
|
|
204
|
-
workflowRunId: string;
|
|
205
205
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
206
206
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
207
207
|
expiresAt?: string | undefined;
|
|
@@ -250,18 +250,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
250
250
|
headers: unknown;
|
|
251
251
|
response: {
|
|
252
252
|
200: {
|
|
253
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
253
254
|
projectId: string;
|
|
254
255
|
id: string;
|
|
255
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
256
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
257
256
|
workflowId: string;
|
|
258
257
|
nodeRunId: string;
|
|
258
|
+
workflowRunId: string;
|
|
259
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
259
260
|
nodeIndex: number;
|
|
260
261
|
nodeId: string;
|
|
261
262
|
nodeKey: string;
|
|
262
263
|
interventionId: string;
|
|
263
264
|
requestedAt: string;
|
|
264
|
-
workflowRunId: string;
|
|
265
265
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
266
266
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
267
267
|
expiresAt?: string | undefined;
|
|
@@ -277,10 +277,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
277
277
|
principalId: string;
|
|
278
278
|
} | undefined;
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
404: {
|
|
281
281
|
error: string;
|
|
282
282
|
};
|
|
283
|
-
|
|
283
|
+
400: {
|
|
284
284
|
error: string;
|
|
285
285
|
};
|
|
286
286
|
501: {
|
|
@@ -320,18 +320,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
320
320
|
} | {
|
|
321
321
|
jobId: string;
|
|
322
322
|
intervention: {
|
|
323
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
323
324
|
projectId: string;
|
|
324
325
|
id: string;
|
|
325
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
326
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
327
326
|
workflowId: string;
|
|
328
327
|
nodeRunId: string;
|
|
328
|
+
workflowRunId: string;
|
|
329
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
329
330
|
nodeIndex: number;
|
|
330
331
|
nodeId: string;
|
|
331
332
|
nodeKey: string;
|
|
332
333
|
interventionId: string;
|
|
333
334
|
requestedAt: string;
|
|
334
|
-
workflowRunId: string;
|
|
335
335
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
336
336
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
337
337
|
expiresAt?: string | undefined;
|
|
@@ -348,10 +348,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
348
348
|
} | undefined;
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
|
-
|
|
351
|
+
404: {
|
|
352
352
|
error: string;
|
|
353
353
|
};
|
|
354
|
-
|
|
354
|
+
400: {
|
|
355
355
|
error: string;
|
|
356
356
|
};
|
|
357
357
|
501: {
|
|
@@ -360,18 +360,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
360
360
|
202: {
|
|
361
361
|
jobId: string;
|
|
362
362
|
intervention: {
|
|
363
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
363
364
|
projectId: string;
|
|
364
365
|
id: string;
|
|
365
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
366
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
367
366
|
workflowId: string;
|
|
368
367
|
nodeRunId: string;
|
|
368
|
+
workflowRunId: string;
|
|
369
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
369
370
|
nodeIndex: number;
|
|
370
371
|
nodeId: string;
|
|
371
372
|
nodeKey: string;
|
|
372
373
|
interventionId: string;
|
|
373
374
|
requestedAt: string;
|
|
374
|
-
workflowRunId: string;
|
|
375
375
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
376
376
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
377
377
|
expiresAt?: string | undefined;
|
|
@@ -418,18 +418,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
418
418
|
response: {
|
|
419
419
|
200: {
|
|
420
420
|
intervention: {
|
|
421
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
421
422
|
projectId: string;
|
|
422
423
|
id: string;
|
|
423
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
424
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
425
424
|
workflowId: string;
|
|
426
425
|
nodeRunId: string;
|
|
426
|
+
workflowRunId: string;
|
|
427
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
427
428
|
nodeIndex: number;
|
|
428
429
|
nodeId: string;
|
|
429
430
|
nodeKey: string;
|
|
430
431
|
interventionId: string;
|
|
431
432
|
requestedAt: string;
|
|
432
|
-
workflowRunId: string;
|
|
433
433
|
defaultResponse: Record<string, import("../schemas/common").JsonValue>;
|
|
434
434
|
response?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
435
435
|
expiresAt?: string | undefined;
|
|
@@ -446,10 +446,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
446
446
|
} | undefined;
|
|
447
447
|
};
|
|
448
448
|
};
|
|
449
|
-
|
|
449
|
+
404: {
|
|
450
450
|
error: string;
|
|
451
451
|
};
|
|
452
|
-
|
|
452
|
+
400: {
|
|
453
453
|
error: string;
|
|
454
454
|
};
|
|
455
455
|
501: {
|
|
@@ -489,15 +489,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
489
489
|
response: {
|
|
490
490
|
200: {
|
|
491
491
|
runs: {
|
|
492
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
492
493
|
projectId: string;
|
|
493
494
|
id: string;
|
|
494
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
495
495
|
startedAt: string;
|
|
496
|
+
workflowId: string;
|
|
496
497
|
requestedBy: {
|
|
497
498
|
principalType: "user" | "serviceAccount" | "system";
|
|
498
499
|
principalId: string;
|
|
499
500
|
};
|
|
500
|
-
workflowId: string;
|
|
501
501
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
502
502
|
queuedAt?: string | undefined;
|
|
503
503
|
finishedAt?: string | undefined;
|
|
@@ -538,33 +538,34 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
538
538
|
response: {
|
|
539
539
|
200: {
|
|
540
540
|
run: {
|
|
541
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
541
542
|
projectId: string;
|
|
542
543
|
id: string;
|
|
543
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
544
544
|
startedAt: string;
|
|
545
|
+
workflowId: string;
|
|
545
546
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
546
547
|
requestedBy: {
|
|
547
548
|
principalType: "user" | "serviceAccount" | "system";
|
|
548
549
|
principalId: string;
|
|
549
550
|
};
|
|
550
|
-
workflowId: string;
|
|
551
551
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
552
552
|
queuedAt?: string | undefined;
|
|
553
553
|
finishedAt?: string | undefined;
|
|
554
554
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
555
555
|
};
|
|
556
556
|
nodes: {
|
|
557
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
557
558
|
projectId: string;
|
|
558
559
|
id: string;
|
|
559
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
560
560
|
startedAt: string;
|
|
561
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
562
561
|
workflowId: string;
|
|
562
|
+
workflowRunId: string;
|
|
563
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
563
564
|
nodeIndex: number;
|
|
564
|
-
nodeType: "
|
|
565
|
+
nodeType: "agent" | "action" | "step" | "intervention";
|
|
565
566
|
nodeId: string;
|
|
566
567
|
nodeKey: string;
|
|
567
|
-
|
|
568
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
568
569
|
agentExecution?: {
|
|
569
570
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
570
571
|
agentId: string;
|
|
@@ -572,7 +573,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
572
573
|
startedAt?: string | undefined;
|
|
573
574
|
completedAt?: string | undefined;
|
|
574
575
|
modelId?: string | undefined;
|
|
575
|
-
finishReason?: string | undefined;
|
|
576
576
|
usage?: {
|
|
577
577
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
578
578
|
inputTokens?: number | undefined;
|
|
@@ -584,16 +584,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
584
584
|
textOutputTokens?: number | undefined;
|
|
585
585
|
reasoningOutputTokens?: number | undefined;
|
|
586
586
|
} | undefined;
|
|
587
|
+
cost?: {
|
|
588
|
+
amounts: {
|
|
589
|
+
currency: string;
|
|
590
|
+
amountNanos: string;
|
|
591
|
+
}[];
|
|
592
|
+
ratedCallCount: number;
|
|
593
|
+
unpriceableCallCount: number;
|
|
594
|
+
unvaluedCallCount: number;
|
|
595
|
+
} | undefined;
|
|
596
|
+
finishReason?: string | undefined;
|
|
587
597
|
} | undefined;
|
|
588
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
589
598
|
finishedAt?: string | undefined;
|
|
590
599
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
591
600
|
}[];
|
|
592
601
|
};
|
|
593
|
-
|
|
602
|
+
404: {
|
|
594
603
|
error: string;
|
|
595
604
|
};
|
|
596
|
-
|
|
605
|
+
400: {
|
|
597
606
|
error: string;
|
|
598
607
|
};
|
|
599
608
|
501: {
|
|
@@ -632,15 +641,14 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
632
641
|
200: {
|
|
633
642
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
634
643
|
agentId: string;
|
|
635
|
-
createdAt: string;
|
|
636
644
|
attempt: number;
|
|
637
645
|
nodeRunId: string;
|
|
646
|
+
createdAt: string;
|
|
638
647
|
prompt: string;
|
|
639
648
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
640
649
|
startedAt?: string | undefined;
|
|
641
650
|
completedAt?: string | undefined;
|
|
642
651
|
modelId?: string | undefined;
|
|
643
|
-
finishReason?: string | undefined;
|
|
644
652
|
usage?: {
|
|
645
653
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
646
654
|
inputTokens?: number | undefined;
|
|
@@ -652,13 +660,81 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
652
660
|
textOutputTokens?: number | undefined;
|
|
653
661
|
reasoningOutputTokens?: number | undefined;
|
|
654
662
|
} | undefined;
|
|
655
|
-
|
|
656
|
-
|
|
663
|
+
cost?: {
|
|
664
|
+
amounts: {
|
|
665
|
+
currency: string;
|
|
666
|
+
amountNanos: string;
|
|
667
|
+
}[];
|
|
668
|
+
ratedCallCount: number;
|
|
669
|
+
unpriceableCallCount: number;
|
|
670
|
+
unvaluedCallCount: number;
|
|
671
|
+
} | undefined;
|
|
672
|
+
finishReason?: string | undefined;
|
|
673
|
+
diagnostics?: import("../schemas/common").JsonValue[] | undefined;
|
|
674
|
+
trace?: ({
|
|
675
|
+
origin: "ambient" | "explicit";
|
|
676
|
+
type: "context";
|
|
677
|
+
context: {
|
|
678
|
+
kind: "object";
|
|
679
|
+
ref: {
|
|
680
|
+
objectTypeId: string;
|
|
681
|
+
primaryId: string;
|
|
682
|
+
};
|
|
683
|
+
} | {
|
|
684
|
+
id: string;
|
|
685
|
+
kind: "app-state";
|
|
686
|
+
description: string;
|
|
687
|
+
value: import("../schemas/common").JsonValue;
|
|
688
|
+
label: string;
|
|
689
|
+
};
|
|
690
|
+
} | {
|
|
691
|
+
type: "text";
|
|
692
|
+
text: string;
|
|
693
|
+
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
694
|
+
} | {
|
|
695
|
+
type: "reasoning";
|
|
696
|
+
text: string;
|
|
697
|
+
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
698
|
+
} | {
|
|
699
|
+
type: "step-start";
|
|
700
|
+
} | {
|
|
701
|
+
type: "file";
|
|
702
|
+
fileRef: {
|
|
703
|
+
blobId: string;
|
|
704
|
+
digest: string;
|
|
705
|
+
sizeBytes: number;
|
|
706
|
+
fileName?: string | undefined;
|
|
707
|
+
mediaType?: string | undefined;
|
|
708
|
+
logicalPath?: string | undefined;
|
|
709
|
+
};
|
|
710
|
+
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
711
|
+
} | {
|
|
712
|
+
type: "tool-call";
|
|
713
|
+
output: import("../schemas/common").JsonValue;
|
|
714
|
+
toolCallId: string;
|
|
715
|
+
toolName: string;
|
|
716
|
+
input: import("../schemas/common").JsonValue;
|
|
717
|
+
state: "output-available";
|
|
718
|
+
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
719
|
+
dynamic?: boolean | undefined;
|
|
720
|
+
providerExecuted?: boolean | undefined;
|
|
721
|
+
} | {
|
|
722
|
+
type: "tool-call";
|
|
723
|
+
toolCallId: string;
|
|
724
|
+
toolName: string;
|
|
725
|
+
input: import("../schemas/common").JsonValue;
|
|
726
|
+
state: "output-error";
|
|
727
|
+
errorText: string;
|
|
728
|
+
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
729
|
+
dynamic?: boolean | undefined;
|
|
730
|
+
providerExecuted?: boolean | undefined;
|
|
731
|
+
})[] | undefined;
|
|
732
|
+
failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
|
|
657
733
|
};
|
|
658
|
-
|
|
734
|
+
404: {
|
|
659
735
|
error: string;
|
|
660
736
|
};
|
|
661
|
-
|
|
737
|
+
400: {
|
|
662
738
|
error: string;
|
|
663
739
|
};
|
|
664
740
|
501: {
|
|
@@ -696,33 +772,34 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
696
772
|
response: {
|
|
697
773
|
200: {
|
|
698
774
|
run: {
|
|
775
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
699
776
|
projectId: string;
|
|
700
777
|
id: string;
|
|
701
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
702
778
|
startedAt: string;
|
|
779
|
+
workflowId: string;
|
|
703
780
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
704
781
|
requestedBy: {
|
|
705
782
|
principalType: "user" | "serviceAccount" | "system";
|
|
706
783
|
principalId: string;
|
|
707
784
|
};
|
|
708
|
-
workflowId: string;
|
|
709
785
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
710
786
|
queuedAt?: string | undefined;
|
|
711
787
|
finishedAt?: string | undefined;
|
|
712
788
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
713
789
|
};
|
|
714
790
|
nodes: {
|
|
791
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
715
792
|
projectId: string;
|
|
716
793
|
id: string;
|
|
717
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
718
794
|
startedAt: string;
|
|
719
|
-
input: Record<string, import("../schemas/common").JsonValue>;
|
|
720
795
|
workflowId: string;
|
|
796
|
+
workflowRunId: string;
|
|
797
|
+
input: Record<string, import("../schemas/common").JsonValue>;
|
|
721
798
|
nodeIndex: number;
|
|
722
|
-
nodeType: "
|
|
799
|
+
nodeType: "agent" | "action" | "step" | "intervention";
|
|
723
800
|
nodeId: string;
|
|
724
801
|
nodeKey: string;
|
|
725
|
-
|
|
802
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
726
803
|
agentExecution?: {
|
|
727
804
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
728
805
|
agentId: string;
|
|
@@ -730,7 +807,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
730
807
|
startedAt?: string | undefined;
|
|
731
808
|
completedAt?: string | undefined;
|
|
732
809
|
modelId?: string | undefined;
|
|
733
|
-
finishReason?: string | undefined;
|
|
734
810
|
usage?: {
|
|
735
811
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
736
812
|
inputTokens?: number | undefined;
|
|
@@ -742,16 +818,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
742
818
|
textOutputTokens?: number | undefined;
|
|
743
819
|
reasoningOutputTokens?: number | undefined;
|
|
744
820
|
} | undefined;
|
|
821
|
+
cost?: {
|
|
822
|
+
amounts: {
|
|
823
|
+
currency: string;
|
|
824
|
+
amountNanos: string;
|
|
825
|
+
}[];
|
|
826
|
+
ratedCallCount: number;
|
|
827
|
+
unpriceableCallCount: number;
|
|
828
|
+
unvaluedCallCount: number;
|
|
829
|
+
} | undefined;
|
|
830
|
+
finishReason?: string | undefined;
|
|
745
831
|
} | undefined;
|
|
746
|
-
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
747
832
|
finishedAt?: string | undefined;
|
|
748
833
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
749
834
|
}[];
|
|
750
835
|
};
|
|
751
|
-
|
|
836
|
+
404: {
|
|
752
837
|
error: string;
|
|
753
838
|
};
|
|
754
|
-
|
|
839
|
+
400: {
|
|
755
840
|
error: string;
|
|
756
841
|
};
|
|
757
842
|
501: {
|
|
@@ -949,13 +1034,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
949
1034
|
jobId: string;
|
|
950
1035
|
workflowId: string;
|
|
951
1036
|
};
|
|
952
|
-
|
|
1037
|
+
404: {
|
|
953
1038
|
error: string;
|
|
954
1039
|
};
|
|
955
|
-
|
|
1040
|
+
403: {
|
|
956
1041
|
error: string;
|
|
957
1042
|
};
|
|
958
|
-
|
|
1043
|
+
400: {
|
|
959
1044
|
error: string;
|
|
960
1045
|
};
|
|
961
1046
|
501: {
|
|
@@ -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;AA6hBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkxBrE"}
|
package/dist/routes/ws/logs.d.ts
CHANGED
|
@@ -10,47 +10,47 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
13
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
14
14
|
}, {
|
|
15
15
|
id: string;
|
|
16
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
16
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
17
17
|
}>>;
|
|
18
18
|
afterCursor: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
type: "subscribe";
|
|
21
21
|
run?: {
|
|
22
22
|
id: string;
|
|
23
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
23
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
24
24
|
} | undefined;
|
|
25
25
|
afterCursor?: string | undefined;
|
|
26
|
-
kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
26
|
+
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
27
27
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
type: "subscribe";
|
|
30
30
|
run?: {
|
|
31
31
|
id: string;
|
|
32
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
32
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
33
33
|
} | undefined;
|
|
34
34
|
afterCursor?: string | undefined;
|
|
35
|
-
kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
35
|
+
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
36
36
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
type: "subscribe";
|
|
39
39
|
run?: {
|
|
40
40
|
id: string;
|
|
41
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
41
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
42
42
|
} | undefined;
|
|
43
43
|
afterCursor?: string | undefined;
|
|
44
|
-
kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
44
|
+
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
45
45
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
type: "subscribe";
|
|
48
48
|
run?: {
|
|
49
49
|
id: string;
|
|
50
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
50
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
51
51
|
} | undefined;
|
|
52
52
|
afterCursor?: string | undefined;
|
|
53
|
-
kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
53
|
+
kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
|
|
54
54
|
levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
|
|
55
55
|
}>, z.ZodObject<{
|
|
56
56
|
type: z.ZodLiteral<"unsubscribe">;
|