@sixb/server 0.1.1 → 0.1.2
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 +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.js +3293 -2704
- package/dist/index.js.map +55 -50
- package/dist/openapi/tags.d.ts +11 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +9 -8
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +84 -84
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +8 -4
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +34 -34
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -34
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +131 -83
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +20 -25
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +74 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +442 -439
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +142 -142
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +34 -34
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +95 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +516 -183
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +89 -200
- package/src/routes/auth.ts +87 -91
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +26 -38
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +226 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +19 -14
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +16 -6
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SixbFailure } from "@sixb/core/storage";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const WorkflowIOSnapshotSchema: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
3
4
|
export declare const WorkflowParamsSchema: z.ZodObject<{
|
|
@@ -33,19 +34,19 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
|
|
|
33
34
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
34
35
|
}, "strip", z.ZodTypeAny, {
|
|
35
36
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
|
|
37
|
+
startedAfter?: string | undefined;
|
|
38
|
+
startedBefore?: string | undefined;
|
|
36
39
|
limit?: string | undefined;
|
|
37
40
|
offset?: string | undefined;
|
|
38
41
|
order?: "asc" | "desc" | undefined;
|
|
39
|
-
startedAfter?: string | undefined;
|
|
40
|
-
startedBefore?: string | undefined;
|
|
41
42
|
workflowId?: string | undefined;
|
|
42
43
|
}, {
|
|
43
44
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
|
|
45
|
+
startedAfter?: string | undefined;
|
|
46
|
+
startedBefore?: string | undefined;
|
|
44
47
|
limit?: string | undefined;
|
|
45
48
|
offset?: string | undefined;
|
|
46
49
|
order?: "asc" | "desc" | undefined;
|
|
47
|
-
startedAfter?: string | undefined;
|
|
48
|
-
startedBefore?: string | undefined;
|
|
49
50
|
workflowId?: string | undefined;
|
|
50
51
|
}>;
|
|
51
52
|
export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
|
|
@@ -122,7 +123,7 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
|
|
|
122
123
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
123
124
|
startedAt: z.ZodString;
|
|
124
125
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
125
|
-
error: z.ZodOptional<z.
|
|
126
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
126
127
|
requestedBy: z.ZodObject<{
|
|
127
128
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
128
129
|
principalId: z.ZodString;
|
|
@@ -134,29 +135,29 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
|
|
|
134
135
|
principalId: string;
|
|
135
136
|
}>;
|
|
136
137
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
138
138
|
projectId: string;
|
|
139
139
|
id: string;
|
|
140
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
140
141
|
startedAt: string;
|
|
141
|
-
workflowId: string;
|
|
142
142
|
requestedBy: {
|
|
143
143
|
principalType: "user" | "serviceAccount" | "system";
|
|
144
144
|
principalId: string;
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
workflowId: string;
|
|
147
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
147
148
|
queuedAt?: string | undefined;
|
|
148
149
|
finishedAt?: string | undefined;
|
|
149
150
|
}, {
|
|
150
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
151
151
|
projectId: string;
|
|
152
152
|
id: string;
|
|
153
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
153
154
|
startedAt: string;
|
|
154
|
-
workflowId: string;
|
|
155
155
|
requestedBy: {
|
|
156
156
|
principalType: "user" | "serviceAccount" | "system";
|
|
157
157
|
principalId: string;
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
workflowId: string;
|
|
160
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
160
161
|
queuedAt?: string | undefined;
|
|
161
162
|
finishedAt?: string | undefined;
|
|
162
163
|
}>;
|
|
@@ -168,7 +169,7 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
|
|
|
168
169
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
169
170
|
startedAt: z.ZodString;
|
|
170
171
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
171
|
-
error: z.ZodOptional<z.
|
|
172
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
172
173
|
requestedBy: z.ZodObject<{
|
|
173
174
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
174
175
|
principalId: z.ZodString;
|
|
@@ -183,32 +184,32 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
|
|
|
183
184
|
input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
184
185
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
185
186
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
187
187
|
projectId: string;
|
|
188
188
|
id: string;
|
|
189
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
189
190
|
startedAt: string;
|
|
190
191
|
input: Record<string, import("./common").JsonValue>;
|
|
191
|
-
workflowId: string;
|
|
192
192
|
requestedBy: {
|
|
193
193
|
principalType: "user" | "serviceAccount" | "system";
|
|
194
194
|
principalId: string;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
workflowId: string;
|
|
197
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
197
198
|
queuedAt?: string | undefined;
|
|
198
199
|
finishedAt?: string | undefined;
|
|
199
200
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
200
201
|
}, {
|
|
201
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
202
202
|
projectId: string;
|
|
203
203
|
id: string;
|
|
204
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
204
205
|
startedAt: string;
|
|
205
206
|
input: Record<string, import("./common").JsonValue>;
|
|
206
|
-
workflowId: string;
|
|
207
207
|
requestedBy: {
|
|
208
208
|
principalType: "user" | "serviceAccount" | "system";
|
|
209
209
|
principalId: string;
|
|
210
210
|
};
|
|
211
|
-
|
|
211
|
+
workflowId: string;
|
|
212
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
212
213
|
queuedAt?: string | undefined;
|
|
213
214
|
finishedAt?: string | undefined;
|
|
214
215
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
@@ -219,7 +220,37 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
|
|
|
219
220
|
attempt: z.ZodNumber;
|
|
220
221
|
modelId: z.ZodOptional<z.ZodString>;
|
|
221
222
|
finishReason: z.ZodOptional<z.ZodString>;
|
|
222
|
-
usage: z.ZodOptional<z.
|
|
223
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
235
|
+
inputTokens?: number | undefined;
|
|
236
|
+
outputTokens?: number | undefined;
|
|
237
|
+
totalTokens?: number | undefined;
|
|
238
|
+
uncachedInputTokens?: number | undefined;
|
|
239
|
+
cacheReadInputTokens?: number | undefined;
|
|
240
|
+
cacheWriteInputTokens?: number | undefined;
|
|
241
|
+
textOutputTokens?: number | undefined;
|
|
242
|
+
reasoningOutputTokens?: number | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
245
|
+
inputTokens?: number | undefined;
|
|
246
|
+
outputTokens?: number | undefined;
|
|
247
|
+
totalTokens?: number | undefined;
|
|
248
|
+
uncachedInputTokens?: number | undefined;
|
|
249
|
+
cacheReadInputTokens?: number | undefined;
|
|
250
|
+
cacheWriteInputTokens?: number | undefined;
|
|
251
|
+
textOutputTokens?: number | undefined;
|
|
252
|
+
reasoningOutputTokens?: number | undefined;
|
|
253
|
+
}>>;
|
|
223
254
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
224
255
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
225
256
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -230,7 +261,17 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
|
|
|
230
261
|
completedAt?: string | undefined;
|
|
231
262
|
modelId?: string | undefined;
|
|
232
263
|
finishReason?: string | undefined;
|
|
233
|
-
usage?:
|
|
264
|
+
usage?: {
|
|
265
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
266
|
+
inputTokens?: number | undefined;
|
|
267
|
+
outputTokens?: number | undefined;
|
|
268
|
+
totalTokens?: number | undefined;
|
|
269
|
+
uncachedInputTokens?: number | undefined;
|
|
270
|
+
cacheReadInputTokens?: number | undefined;
|
|
271
|
+
cacheWriteInputTokens?: number | undefined;
|
|
272
|
+
textOutputTokens?: number | undefined;
|
|
273
|
+
reasoningOutputTokens?: number | undefined;
|
|
274
|
+
} | undefined;
|
|
234
275
|
}, {
|
|
235
276
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
236
277
|
agentId: string;
|
|
@@ -239,7 +280,17 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
|
|
|
239
280
|
completedAt?: string | undefined;
|
|
240
281
|
modelId?: string | undefined;
|
|
241
282
|
finishReason?: string | undefined;
|
|
242
|
-
usage?:
|
|
283
|
+
usage?: {
|
|
284
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
285
|
+
inputTokens?: number | undefined;
|
|
286
|
+
outputTokens?: number | undefined;
|
|
287
|
+
totalTokens?: number | undefined;
|
|
288
|
+
uncachedInputTokens?: number | undefined;
|
|
289
|
+
cacheReadInputTokens?: number | undefined;
|
|
290
|
+
cacheWriteInputTokens?: number | undefined;
|
|
291
|
+
textOutputTokens?: number | undefined;
|
|
292
|
+
reasoningOutputTokens?: number | undefined;
|
|
293
|
+
} | undefined;
|
|
243
294
|
}>;
|
|
244
295
|
export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
|
|
245
296
|
agentId: z.ZodString;
|
|
@@ -247,25 +298,45 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
|
|
|
247
298
|
attempt: z.ZodNumber;
|
|
248
299
|
modelId: z.ZodOptional<z.ZodString>;
|
|
249
300
|
finishReason: z.ZodOptional<z.ZodString>;
|
|
250
|
-
usage: z.ZodOptional<z.
|
|
301
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
313
|
+
inputTokens?: number | undefined;
|
|
314
|
+
outputTokens?: number | undefined;
|
|
315
|
+
totalTokens?: number | undefined;
|
|
316
|
+
uncachedInputTokens?: number | undefined;
|
|
317
|
+
cacheReadInputTokens?: number | undefined;
|
|
318
|
+
cacheWriteInputTokens?: number | undefined;
|
|
319
|
+
textOutputTokens?: number | undefined;
|
|
320
|
+
reasoningOutputTokens?: number | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
323
|
+
inputTokens?: number | undefined;
|
|
324
|
+
outputTokens?: number | undefined;
|
|
325
|
+
totalTokens?: number | undefined;
|
|
326
|
+
uncachedInputTokens?: number | undefined;
|
|
327
|
+
cacheReadInputTokens?: number | undefined;
|
|
328
|
+
cacheWriteInputTokens?: number | undefined;
|
|
329
|
+
textOutputTokens?: number | undefined;
|
|
330
|
+
reasoningOutputTokens?: number | undefined;
|
|
331
|
+
}>>;
|
|
251
332
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
252
333
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
253
334
|
} & {
|
|
254
335
|
nodeRunId: z.ZodString;
|
|
255
336
|
prompt: z.ZodString;
|
|
256
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
257
|
-
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
258
|
-
principalId: z.ZodString;
|
|
259
|
-
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
principalType: "user" | "serviceAccount" | "system";
|
|
261
|
-
principalId: string;
|
|
262
|
-
}, {
|
|
263
|
-
principalType: "user" | "serviceAccount" | "system";
|
|
264
|
-
principalId: string;
|
|
265
|
-
}>>;
|
|
266
337
|
trace: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
267
338
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
268
|
-
error: z.ZodOptional<z.
|
|
339
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
269
340
|
createdAt: z.ZodString;
|
|
270
341
|
}, "strip", z.ZodTypeAny, {
|
|
271
342
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -274,16 +345,22 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
|
|
|
274
345
|
attempt: number;
|
|
275
346
|
nodeRunId: string;
|
|
276
347
|
prompt: string;
|
|
277
|
-
error?:
|
|
348
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
278
349
|
startedAt?: string | undefined;
|
|
279
350
|
completedAt?: string | undefined;
|
|
280
|
-
executionPrincipal?: {
|
|
281
|
-
principalType: "user" | "serviceAccount" | "system";
|
|
282
|
-
principalId: string;
|
|
283
|
-
} | undefined;
|
|
284
351
|
modelId?: string | undefined;
|
|
285
352
|
finishReason?: string | undefined;
|
|
286
|
-
usage?:
|
|
353
|
+
usage?: {
|
|
354
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
355
|
+
inputTokens?: number | undefined;
|
|
356
|
+
outputTokens?: number | undefined;
|
|
357
|
+
totalTokens?: number | undefined;
|
|
358
|
+
uncachedInputTokens?: number | undefined;
|
|
359
|
+
cacheReadInputTokens?: number | undefined;
|
|
360
|
+
cacheWriteInputTokens?: number | undefined;
|
|
361
|
+
textOutputTokens?: number | undefined;
|
|
362
|
+
reasoningOutputTokens?: number | undefined;
|
|
363
|
+
} | undefined;
|
|
287
364
|
diagnostics?: unknown[] | undefined;
|
|
288
365
|
trace?: unknown[] | undefined;
|
|
289
366
|
}, {
|
|
@@ -293,16 +370,22 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
|
|
|
293
370
|
attempt: number;
|
|
294
371
|
nodeRunId: string;
|
|
295
372
|
prompt: string;
|
|
296
|
-
error?:
|
|
373
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
297
374
|
startedAt?: string | undefined;
|
|
298
375
|
completedAt?: string | undefined;
|
|
299
|
-
executionPrincipal?: {
|
|
300
|
-
principalType: "user" | "serviceAccount" | "system";
|
|
301
|
-
principalId: string;
|
|
302
|
-
} | undefined;
|
|
303
376
|
modelId?: string | undefined;
|
|
304
377
|
finishReason?: string | undefined;
|
|
305
|
-
usage?:
|
|
378
|
+
usage?: {
|
|
379
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
380
|
+
inputTokens?: number | undefined;
|
|
381
|
+
outputTokens?: number | undefined;
|
|
382
|
+
totalTokens?: number | undefined;
|
|
383
|
+
uncachedInputTokens?: number | undefined;
|
|
384
|
+
cacheReadInputTokens?: number | undefined;
|
|
385
|
+
cacheWriteInputTokens?: number | undefined;
|
|
386
|
+
textOutputTokens?: number | undefined;
|
|
387
|
+
reasoningOutputTokens?: number | undefined;
|
|
388
|
+
} | undefined;
|
|
306
389
|
diagnostics?: unknown[] | undefined;
|
|
307
390
|
trace?: unknown[] | undefined;
|
|
308
391
|
}>;
|
|
@@ -320,14 +403,44 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
|
|
|
320
403
|
startedAt: z.ZodString;
|
|
321
404
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
322
405
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
323
|
-
error: z.ZodOptional<z.
|
|
406
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
324
407
|
agentExecution: z.ZodOptional<z.ZodObject<{
|
|
325
408
|
agentId: z.ZodString;
|
|
326
409
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
327
410
|
attempt: z.ZodNumber;
|
|
328
411
|
modelId: z.ZodOptional<z.ZodString>;
|
|
329
412
|
finishReason: z.ZodOptional<z.ZodString>;
|
|
330
|
-
usage: z.ZodOptional<z.
|
|
413
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
420
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
422
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
425
|
+
inputTokens?: number | undefined;
|
|
426
|
+
outputTokens?: number | undefined;
|
|
427
|
+
totalTokens?: number | undefined;
|
|
428
|
+
uncachedInputTokens?: number | undefined;
|
|
429
|
+
cacheReadInputTokens?: number | undefined;
|
|
430
|
+
cacheWriteInputTokens?: number | undefined;
|
|
431
|
+
textOutputTokens?: number | undefined;
|
|
432
|
+
reasoningOutputTokens?: number | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
435
|
+
inputTokens?: number | undefined;
|
|
436
|
+
outputTokens?: number | undefined;
|
|
437
|
+
totalTokens?: number | undefined;
|
|
438
|
+
uncachedInputTokens?: number | undefined;
|
|
439
|
+
cacheReadInputTokens?: number | undefined;
|
|
440
|
+
cacheWriteInputTokens?: number | undefined;
|
|
441
|
+
textOutputTokens?: number | undefined;
|
|
442
|
+
reasoningOutputTokens?: number | undefined;
|
|
443
|
+
}>>;
|
|
331
444
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
332
445
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
333
446
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -338,7 +451,17 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
|
|
|
338
451
|
completedAt?: string | undefined;
|
|
339
452
|
modelId?: string | undefined;
|
|
340
453
|
finishReason?: string | undefined;
|
|
341
|
-
usage?:
|
|
454
|
+
usage?: {
|
|
455
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
456
|
+
inputTokens?: number | undefined;
|
|
457
|
+
outputTokens?: number | undefined;
|
|
458
|
+
totalTokens?: number | undefined;
|
|
459
|
+
uncachedInputTokens?: number | undefined;
|
|
460
|
+
cacheReadInputTokens?: number | undefined;
|
|
461
|
+
cacheWriteInputTokens?: number | undefined;
|
|
462
|
+
textOutputTokens?: number | undefined;
|
|
463
|
+
reasoningOutputTokens?: number | undefined;
|
|
464
|
+
} | undefined;
|
|
342
465
|
}, {
|
|
343
466
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
344
467
|
agentId: string;
|
|
@@ -347,17 +470,27 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
|
|
|
347
470
|
completedAt?: string | undefined;
|
|
348
471
|
modelId?: string | undefined;
|
|
349
472
|
finishReason?: string | undefined;
|
|
350
|
-
usage?:
|
|
473
|
+
usage?: {
|
|
474
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
475
|
+
inputTokens?: number | undefined;
|
|
476
|
+
outputTokens?: number | undefined;
|
|
477
|
+
totalTokens?: number | undefined;
|
|
478
|
+
uncachedInputTokens?: number | undefined;
|
|
479
|
+
cacheReadInputTokens?: number | undefined;
|
|
480
|
+
cacheWriteInputTokens?: number | undefined;
|
|
481
|
+
textOutputTokens?: number | undefined;
|
|
482
|
+
reasoningOutputTokens?: number | undefined;
|
|
483
|
+
} | undefined;
|
|
351
484
|
}>>;
|
|
352
485
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
354
486
|
projectId: string;
|
|
355
487
|
id: string;
|
|
488
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
356
489
|
startedAt: string;
|
|
357
490
|
input: Record<string, import("./common").JsonValue>;
|
|
358
491
|
workflowId: string;
|
|
359
492
|
nodeIndex: number;
|
|
360
|
-
nodeType: "action" | "
|
|
493
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
361
494
|
nodeId: string;
|
|
362
495
|
nodeKey: string;
|
|
363
496
|
workflowRunId: string;
|
|
@@ -369,20 +502,30 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
|
|
|
369
502
|
completedAt?: string | undefined;
|
|
370
503
|
modelId?: string | undefined;
|
|
371
504
|
finishReason?: string | undefined;
|
|
372
|
-
usage?:
|
|
505
|
+
usage?: {
|
|
506
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
507
|
+
inputTokens?: number | undefined;
|
|
508
|
+
outputTokens?: number | undefined;
|
|
509
|
+
totalTokens?: number | undefined;
|
|
510
|
+
uncachedInputTokens?: number | undefined;
|
|
511
|
+
cacheReadInputTokens?: number | undefined;
|
|
512
|
+
cacheWriteInputTokens?: number | undefined;
|
|
513
|
+
textOutputTokens?: number | undefined;
|
|
514
|
+
reasoningOutputTokens?: number | undefined;
|
|
515
|
+
} | undefined;
|
|
373
516
|
} | undefined;
|
|
374
|
-
error?:
|
|
517
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
375
518
|
finishedAt?: string | undefined;
|
|
376
519
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
377
520
|
}, {
|
|
378
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
379
521
|
projectId: string;
|
|
380
522
|
id: string;
|
|
523
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
381
524
|
startedAt: string;
|
|
382
525
|
input: Record<string, import("./common").JsonValue>;
|
|
383
526
|
workflowId: string;
|
|
384
527
|
nodeIndex: number;
|
|
385
|
-
nodeType: "action" | "
|
|
528
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
386
529
|
nodeId: string;
|
|
387
530
|
nodeKey: string;
|
|
388
531
|
workflowRunId: string;
|
|
@@ -394,9 +537,19 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
|
|
|
394
537
|
completedAt?: string | undefined;
|
|
395
538
|
modelId?: string | undefined;
|
|
396
539
|
finishReason?: string | undefined;
|
|
397
|
-
usage?:
|
|
540
|
+
usage?: {
|
|
541
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
542
|
+
inputTokens?: number | undefined;
|
|
543
|
+
outputTokens?: number | undefined;
|
|
544
|
+
totalTokens?: number | undefined;
|
|
545
|
+
uncachedInputTokens?: number | undefined;
|
|
546
|
+
cacheReadInputTokens?: number | undefined;
|
|
547
|
+
cacheWriteInputTokens?: number | undefined;
|
|
548
|
+
textOutputTokens?: number | undefined;
|
|
549
|
+
reasoningOutputTokens?: number | undefined;
|
|
550
|
+
} | undefined;
|
|
398
551
|
} | undefined;
|
|
399
|
-
error?:
|
|
552
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
400
553
|
finishedAt?: string | undefined;
|
|
401
554
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
402
555
|
}>;
|
|
@@ -440,9 +593,9 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
|
|
|
440
593
|
}>>;
|
|
441
594
|
expiredAt: z.ZodOptional<z.ZodString>;
|
|
442
595
|
}, "strip", z.ZodTypeAny, {
|
|
443
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
444
596
|
projectId: string;
|
|
445
597
|
id: string;
|
|
598
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
446
599
|
input: Record<string, import("./common").JsonValue>;
|
|
447
600
|
workflowId: string;
|
|
448
601
|
nodeRunId: string;
|
|
@@ -467,9 +620,9 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
|
|
|
467
620
|
principalId: string;
|
|
468
621
|
} | undefined;
|
|
469
622
|
}, {
|
|
470
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
471
623
|
projectId: string;
|
|
472
624
|
id: string;
|
|
625
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
473
626
|
input: Record<string, import("./common").JsonValue>;
|
|
474
627
|
workflowId: string;
|
|
475
628
|
nodeRunId: string;
|
|
@@ -514,14 +667,14 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
514
667
|
input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
515
668
|
output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
516
669
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
type: "step";
|
|
518
670
|
id: string;
|
|
671
|
+
type: "step";
|
|
519
672
|
output: Record<string, import("./common").JsonValue>;
|
|
520
673
|
key: string;
|
|
521
674
|
input: Record<string, import("./common").JsonValue>;
|
|
522
675
|
}, {
|
|
523
|
-
type: "step";
|
|
524
676
|
id: string;
|
|
677
|
+
type: "step";
|
|
525
678
|
output: Record<string, import("./common").JsonValue>;
|
|
526
679
|
key: string;
|
|
527
680
|
input: Record<string, import("./common").JsonValue>;
|
|
@@ -532,15 +685,15 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
532
685
|
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
533
686
|
params: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
534
687
|
}, "strip", z.ZodTypeAny, {
|
|
688
|
+
id: string;
|
|
535
689
|
type: "action";
|
|
536
690
|
params: Record<string, import("./common").JsonValue>;
|
|
537
|
-
id: string;
|
|
538
691
|
key: string;
|
|
539
692
|
objectTypeId?: string | undefined;
|
|
540
693
|
}, {
|
|
694
|
+
id: string;
|
|
541
695
|
type: "action";
|
|
542
696
|
params: Record<string, import("./common").JsonValue>;
|
|
543
|
-
id: string;
|
|
544
697
|
key: string;
|
|
545
698
|
objectTypeId?: string | undefined;
|
|
546
699
|
}>, z.ZodObject<{
|
|
@@ -551,16 +704,16 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
551
704
|
response: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
552
705
|
description: z.ZodOptional<z.ZodString>;
|
|
553
706
|
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
id: string;
|
|
554
708
|
response: Record<string, import("./common").JsonValue>;
|
|
555
709
|
type: "intervention";
|
|
556
|
-
id: string;
|
|
557
710
|
key: string;
|
|
558
711
|
input: Record<string, import("./common").JsonValue>;
|
|
559
712
|
description?: string | undefined;
|
|
560
713
|
}, {
|
|
714
|
+
id: string;
|
|
561
715
|
response: Record<string, import("./common").JsonValue>;
|
|
562
716
|
type: "intervention";
|
|
563
|
-
id: string;
|
|
564
717
|
key: string;
|
|
565
718
|
input: Record<string, import("./common").JsonValue>;
|
|
566
719
|
description?: string | undefined;
|
|
@@ -572,18 +725,18 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
572
725
|
input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
573
726
|
output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
574
727
|
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
agentId: string;
|
|
576
|
-
type: "agent";
|
|
577
728
|
id: string;
|
|
729
|
+
type: "agent";
|
|
578
730
|
output: Record<string, import("./common").JsonValue>;
|
|
579
731
|
key: string;
|
|
732
|
+
agentId: string;
|
|
580
733
|
input: Record<string, import("./common").JsonValue>;
|
|
581
734
|
}, {
|
|
582
|
-
agentId: string;
|
|
583
|
-
type: "agent";
|
|
584
735
|
id: string;
|
|
736
|
+
type: "agent";
|
|
585
737
|
output: Record<string, import("./common").JsonValue>;
|
|
586
738
|
key: string;
|
|
739
|
+
agentId: string;
|
|
587
740
|
input: Record<string, import("./common").JsonValue>;
|
|
588
741
|
}>]>, "many">;
|
|
589
742
|
latestRun: z.ZodNullable<z.ZodObject<{
|
|
@@ -594,7 +747,7 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
594
747
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
595
748
|
startedAt: z.ZodString;
|
|
596
749
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
597
|
-
error: z.ZodOptional<z.
|
|
750
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
598
751
|
requestedBy: z.ZodObject<{
|
|
599
752
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
600
753
|
principalId: z.ZodString;
|
|
@@ -606,29 +759,29 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
606
759
|
principalId: string;
|
|
607
760
|
}>;
|
|
608
761
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
610
762
|
projectId: string;
|
|
611
763
|
id: string;
|
|
764
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
612
765
|
startedAt: string;
|
|
613
|
-
workflowId: string;
|
|
614
766
|
requestedBy: {
|
|
615
767
|
principalType: "user" | "serviceAccount" | "system";
|
|
616
768
|
principalId: string;
|
|
617
769
|
};
|
|
618
|
-
|
|
770
|
+
workflowId: string;
|
|
771
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
619
772
|
queuedAt?: string | undefined;
|
|
620
773
|
finishedAt?: string | undefined;
|
|
621
774
|
}, {
|
|
622
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
623
775
|
projectId: string;
|
|
624
776
|
id: string;
|
|
777
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
625
778
|
startedAt: string;
|
|
626
|
-
workflowId: string;
|
|
627
779
|
requestedBy: {
|
|
628
780
|
principalType: "user" | "serviceAccount" | "system";
|
|
629
781
|
principalId: string;
|
|
630
782
|
};
|
|
631
|
-
|
|
783
|
+
workflowId: string;
|
|
784
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
632
785
|
queuedAt?: string | undefined;
|
|
633
786
|
finishedAt?: string | undefined;
|
|
634
787
|
}>>;
|
|
@@ -640,43 +793,43 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
640
793
|
scheduleId: string;
|
|
641
794
|
}[];
|
|
642
795
|
nodes: ({
|
|
643
|
-
type: "step";
|
|
644
796
|
id: string;
|
|
797
|
+
type: "step";
|
|
645
798
|
output: Record<string, import("./common").JsonValue>;
|
|
646
799
|
key: string;
|
|
647
800
|
input: Record<string, import("./common").JsonValue>;
|
|
648
801
|
} | {
|
|
802
|
+
id: string;
|
|
649
803
|
type: "action";
|
|
650
804
|
params: Record<string, import("./common").JsonValue>;
|
|
651
|
-
id: string;
|
|
652
805
|
key: string;
|
|
653
806
|
objectTypeId?: string | undefined;
|
|
654
807
|
} | {
|
|
808
|
+
id: string;
|
|
655
809
|
response: Record<string, import("./common").JsonValue>;
|
|
656
810
|
type: "intervention";
|
|
657
|
-
id: string;
|
|
658
811
|
key: string;
|
|
659
812
|
input: Record<string, import("./common").JsonValue>;
|
|
660
813
|
description?: string | undefined;
|
|
661
814
|
} | {
|
|
662
|
-
agentId: string;
|
|
663
|
-
type: "agent";
|
|
664
815
|
id: string;
|
|
816
|
+
type: "agent";
|
|
665
817
|
output: Record<string, import("./common").JsonValue>;
|
|
666
818
|
key: string;
|
|
819
|
+
agentId: string;
|
|
667
820
|
input: Record<string, import("./common").JsonValue>;
|
|
668
821
|
})[];
|
|
669
822
|
latestRun: {
|
|
670
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
671
823
|
projectId: string;
|
|
672
824
|
id: string;
|
|
825
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
673
826
|
startedAt: string;
|
|
674
|
-
workflowId: string;
|
|
675
827
|
requestedBy: {
|
|
676
828
|
principalType: "user" | "serviceAccount" | "system";
|
|
677
829
|
principalId: string;
|
|
678
830
|
};
|
|
679
|
-
|
|
831
|
+
workflowId: string;
|
|
832
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
680
833
|
queuedAt?: string | undefined;
|
|
681
834
|
finishedAt?: string | undefined;
|
|
682
835
|
} | null;
|
|
@@ -688,43 +841,43 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
688
841
|
scheduleId: string;
|
|
689
842
|
}[];
|
|
690
843
|
nodes: ({
|
|
691
|
-
type: "step";
|
|
692
844
|
id: string;
|
|
845
|
+
type: "step";
|
|
693
846
|
output: Record<string, import("./common").JsonValue>;
|
|
694
847
|
key: string;
|
|
695
848
|
input: Record<string, import("./common").JsonValue>;
|
|
696
849
|
} | {
|
|
850
|
+
id: string;
|
|
697
851
|
type: "action";
|
|
698
852
|
params: Record<string, import("./common").JsonValue>;
|
|
699
|
-
id: string;
|
|
700
853
|
key: string;
|
|
701
854
|
objectTypeId?: string | undefined;
|
|
702
855
|
} | {
|
|
856
|
+
id: string;
|
|
703
857
|
response: Record<string, import("./common").JsonValue>;
|
|
704
858
|
type: "intervention";
|
|
705
|
-
id: string;
|
|
706
859
|
key: string;
|
|
707
860
|
input: Record<string, import("./common").JsonValue>;
|
|
708
861
|
description?: string | undefined;
|
|
709
862
|
} | {
|
|
710
|
-
agentId: string;
|
|
711
|
-
type: "agent";
|
|
712
863
|
id: string;
|
|
864
|
+
type: "agent";
|
|
713
865
|
output: Record<string, import("./common").JsonValue>;
|
|
714
866
|
key: string;
|
|
867
|
+
agentId: string;
|
|
715
868
|
input: Record<string, import("./common").JsonValue>;
|
|
716
869
|
})[];
|
|
717
870
|
latestRun: {
|
|
718
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
719
871
|
projectId: string;
|
|
720
872
|
id: string;
|
|
873
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
721
874
|
startedAt: string;
|
|
722
|
-
workflowId: string;
|
|
723
875
|
requestedBy: {
|
|
724
876
|
principalType: "user" | "serviceAccount" | "system";
|
|
725
877
|
principalId: string;
|
|
726
878
|
};
|
|
727
|
-
|
|
879
|
+
workflowId: string;
|
|
880
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
728
881
|
queuedAt?: string | undefined;
|
|
729
882
|
finishedAt?: string | undefined;
|
|
730
883
|
} | null;
|
|
@@ -738,7 +891,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
|
|
|
738
891
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
739
892
|
startedAt: z.ZodString;
|
|
740
893
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
741
|
-
error: z.ZodOptional<z.
|
|
894
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
742
895
|
requestedBy: z.ZodObject<{
|
|
743
896
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
744
897
|
principalId: z.ZodString;
|
|
@@ -750,29 +903,29 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
|
|
|
750
903
|
principalId: string;
|
|
751
904
|
}>;
|
|
752
905
|
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
754
906
|
projectId: string;
|
|
755
907
|
id: string;
|
|
908
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
756
909
|
startedAt: string;
|
|
757
|
-
workflowId: string;
|
|
758
910
|
requestedBy: {
|
|
759
911
|
principalType: "user" | "serviceAccount" | "system";
|
|
760
912
|
principalId: string;
|
|
761
913
|
};
|
|
762
|
-
|
|
914
|
+
workflowId: string;
|
|
915
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
763
916
|
queuedAt?: string | undefined;
|
|
764
917
|
finishedAt?: string | undefined;
|
|
765
918
|
}, {
|
|
766
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
767
919
|
projectId: string;
|
|
768
920
|
id: string;
|
|
921
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
769
922
|
startedAt: string;
|
|
770
|
-
workflowId: string;
|
|
771
923
|
requestedBy: {
|
|
772
924
|
principalType: "user" | "serviceAccount" | "system";
|
|
773
925
|
principalId: string;
|
|
774
926
|
};
|
|
775
|
-
|
|
927
|
+
workflowId: string;
|
|
928
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
776
929
|
queuedAt?: string | undefined;
|
|
777
930
|
finishedAt?: string | undefined;
|
|
778
931
|
}>, "many">;
|
|
@@ -780,16 +933,16 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
|
|
|
780
933
|
total: z.ZodNumber;
|
|
781
934
|
}, "strip", z.ZodTypeAny, {
|
|
782
935
|
runs: {
|
|
783
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
784
936
|
projectId: string;
|
|
785
937
|
id: string;
|
|
938
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
786
939
|
startedAt: string;
|
|
787
|
-
workflowId: string;
|
|
788
940
|
requestedBy: {
|
|
789
941
|
principalType: "user" | "serviceAccount" | "system";
|
|
790
942
|
principalId: string;
|
|
791
943
|
};
|
|
792
|
-
|
|
944
|
+
workflowId: string;
|
|
945
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
793
946
|
queuedAt?: string | undefined;
|
|
794
947
|
finishedAt?: string | undefined;
|
|
795
948
|
}[];
|
|
@@ -797,16 +950,16 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
|
|
|
797
950
|
total: number;
|
|
798
951
|
}, {
|
|
799
952
|
runs: {
|
|
800
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
801
953
|
projectId: string;
|
|
802
954
|
id: string;
|
|
955
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
803
956
|
startedAt: string;
|
|
804
|
-
workflowId: string;
|
|
805
957
|
requestedBy: {
|
|
806
958
|
principalType: "user" | "serviceAccount" | "system";
|
|
807
959
|
principalId: string;
|
|
808
960
|
};
|
|
809
|
-
|
|
961
|
+
workflowId: string;
|
|
962
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
810
963
|
queuedAt?: string | undefined;
|
|
811
964
|
finishedAt?: string | undefined;
|
|
812
965
|
}[];
|
|
@@ -822,7 +975,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
822
975
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
823
976
|
startedAt: z.ZodString;
|
|
824
977
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
825
|
-
error: z.ZodOptional<z.
|
|
978
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
826
979
|
requestedBy: z.ZodObject<{
|
|
827
980
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
828
981
|
principalId: z.ZodString;
|
|
@@ -837,32 +990,32 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
837
990
|
input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
838
991
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
839
992
|
}, "strip", z.ZodTypeAny, {
|
|
840
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
841
993
|
projectId: string;
|
|
842
994
|
id: string;
|
|
995
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
843
996
|
startedAt: string;
|
|
844
997
|
input: Record<string, import("./common").JsonValue>;
|
|
845
|
-
workflowId: string;
|
|
846
998
|
requestedBy: {
|
|
847
999
|
principalType: "user" | "serviceAccount" | "system";
|
|
848
1000
|
principalId: string;
|
|
849
1001
|
};
|
|
850
|
-
|
|
1002
|
+
workflowId: string;
|
|
1003
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
851
1004
|
queuedAt?: string | undefined;
|
|
852
1005
|
finishedAt?: string | undefined;
|
|
853
1006
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
854
1007
|
}, {
|
|
855
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
856
1008
|
projectId: string;
|
|
857
1009
|
id: string;
|
|
1010
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
858
1011
|
startedAt: string;
|
|
859
1012
|
input: Record<string, import("./common").JsonValue>;
|
|
860
|
-
workflowId: string;
|
|
861
1013
|
requestedBy: {
|
|
862
1014
|
principalType: "user" | "serviceAccount" | "system";
|
|
863
1015
|
principalId: string;
|
|
864
1016
|
};
|
|
865
|
-
|
|
1017
|
+
workflowId: string;
|
|
1018
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
866
1019
|
queuedAt?: string | undefined;
|
|
867
1020
|
finishedAt?: string | undefined;
|
|
868
1021
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
@@ -881,14 +1034,44 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
881
1034
|
startedAt: z.ZodString;
|
|
882
1035
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
883
1036
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
884
|
-
error: z.ZodOptional<z.
|
|
1037
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
885
1038
|
agentExecution: z.ZodOptional<z.ZodObject<{
|
|
886
1039
|
agentId: z.ZodString;
|
|
887
1040
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
888
1041
|
attempt: z.ZodNumber;
|
|
889
1042
|
modelId: z.ZodOptional<z.ZodString>;
|
|
890
1043
|
finishReason: z.ZodOptional<z.ZodString>;
|
|
891
|
-
usage: z.ZodOptional<z.
|
|
1044
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1045
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1048
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1049
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1051
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1052
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1053
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
1054
|
+
}, "strip", z.ZodTypeAny, {
|
|
1055
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1056
|
+
inputTokens?: number | undefined;
|
|
1057
|
+
outputTokens?: number | undefined;
|
|
1058
|
+
totalTokens?: number | undefined;
|
|
1059
|
+
uncachedInputTokens?: number | undefined;
|
|
1060
|
+
cacheReadInputTokens?: number | undefined;
|
|
1061
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1062
|
+
textOutputTokens?: number | undefined;
|
|
1063
|
+
reasoningOutputTokens?: number | undefined;
|
|
1064
|
+
}, {
|
|
1065
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1066
|
+
inputTokens?: number | undefined;
|
|
1067
|
+
outputTokens?: number | undefined;
|
|
1068
|
+
totalTokens?: number | undefined;
|
|
1069
|
+
uncachedInputTokens?: number | undefined;
|
|
1070
|
+
cacheReadInputTokens?: number | undefined;
|
|
1071
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1072
|
+
textOutputTokens?: number | undefined;
|
|
1073
|
+
reasoningOutputTokens?: number | undefined;
|
|
1074
|
+
}>>;
|
|
892
1075
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
893
1076
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
894
1077
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -899,7 +1082,17 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
899
1082
|
completedAt?: string | undefined;
|
|
900
1083
|
modelId?: string | undefined;
|
|
901
1084
|
finishReason?: string | undefined;
|
|
902
|
-
usage?:
|
|
1085
|
+
usage?: {
|
|
1086
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1087
|
+
inputTokens?: number | undefined;
|
|
1088
|
+
outputTokens?: number | undefined;
|
|
1089
|
+
totalTokens?: number | undefined;
|
|
1090
|
+
uncachedInputTokens?: number | undefined;
|
|
1091
|
+
cacheReadInputTokens?: number | undefined;
|
|
1092
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1093
|
+
textOutputTokens?: number | undefined;
|
|
1094
|
+
reasoningOutputTokens?: number | undefined;
|
|
1095
|
+
} | undefined;
|
|
903
1096
|
}, {
|
|
904
1097
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
905
1098
|
agentId: string;
|
|
@@ -908,17 +1101,27 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
908
1101
|
completedAt?: string | undefined;
|
|
909
1102
|
modelId?: string | undefined;
|
|
910
1103
|
finishReason?: string | undefined;
|
|
911
|
-
usage?:
|
|
1104
|
+
usage?: {
|
|
1105
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1106
|
+
inputTokens?: number | undefined;
|
|
1107
|
+
outputTokens?: number | undefined;
|
|
1108
|
+
totalTokens?: number | undefined;
|
|
1109
|
+
uncachedInputTokens?: number | undefined;
|
|
1110
|
+
cacheReadInputTokens?: number | undefined;
|
|
1111
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1112
|
+
textOutputTokens?: number | undefined;
|
|
1113
|
+
reasoningOutputTokens?: number | undefined;
|
|
1114
|
+
} | undefined;
|
|
912
1115
|
}>>;
|
|
913
1116
|
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
915
1117
|
projectId: string;
|
|
916
1118
|
id: string;
|
|
1119
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
917
1120
|
startedAt: string;
|
|
918
1121
|
input: Record<string, import("./common").JsonValue>;
|
|
919
1122
|
workflowId: string;
|
|
920
1123
|
nodeIndex: number;
|
|
921
|
-
nodeType: "action" | "
|
|
1124
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
922
1125
|
nodeId: string;
|
|
923
1126
|
nodeKey: string;
|
|
924
1127
|
workflowRunId: string;
|
|
@@ -930,20 +1133,30 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
930
1133
|
completedAt?: string | undefined;
|
|
931
1134
|
modelId?: string | undefined;
|
|
932
1135
|
finishReason?: string | undefined;
|
|
933
|
-
usage?:
|
|
1136
|
+
usage?: {
|
|
1137
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1138
|
+
inputTokens?: number | undefined;
|
|
1139
|
+
outputTokens?: number | undefined;
|
|
1140
|
+
totalTokens?: number | undefined;
|
|
1141
|
+
uncachedInputTokens?: number | undefined;
|
|
1142
|
+
cacheReadInputTokens?: number | undefined;
|
|
1143
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1144
|
+
textOutputTokens?: number | undefined;
|
|
1145
|
+
reasoningOutputTokens?: number | undefined;
|
|
1146
|
+
} | undefined;
|
|
934
1147
|
} | undefined;
|
|
935
|
-
error?:
|
|
1148
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
936
1149
|
finishedAt?: string | undefined;
|
|
937
1150
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
938
1151
|
}, {
|
|
939
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
940
1152
|
projectId: string;
|
|
941
1153
|
id: string;
|
|
1154
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
942
1155
|
startedAt: string;
|
|
943
1156
|
input: Record<string, import("./common").JsonValue>;
|
|
944
1157
|
workflowId: string;
|
|
945
1158
|
nodeIndex: number;
|
|
946
|
-
nodeType: "action" | "
|
|
1159
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
947
1160
|
nodeId: string;
|
|
948
1161
|
nodeKey: string;
|
|
949
1162
|
workflowRunId: string;
|
|
@@ -955,38 +1168,48 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
955
1168
|
completedAt?: string | undefined;
|
|
956
1169
|
modelId?: string | undefined;
|
|
957
1170
|
finishReason?: string | undefined;
|
|
958
|
-
usage?:
|
|
1171
|
+
usage?: {
|
|
1172
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1173
|
+
inputTokens?: number | undefined;
|
|
1174
|
+
outputTokens?: number | undefined;
|
|
1175
|
+
totalTokens?: number | undefined;
|
|
1176
|
+
uncachedInputTokens?: number | undefined;
|
|
1177
|
+
cacheReadInputTokens?: number | undefined;
|
|
1178
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1179
|
+
textOutputTokens?: number | undefined;
|
|
1180
|
+
reasoningOutputTokens?: number | undefined;
|
|
1181
|
+
} | undefined;
|
|
959
1182
|
} | undefined;
|
|
960
|
-
error?:
|
|
1183
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
961
1184
|
finishedAt?: string | undefined;
|
|
962
1185
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
963
1186
|
}>, "many">;
|
|
964
1187
|
}, "strip", z.ZodTypeAny, {
|
|
965
1188
|
run: {
|
|
966
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
967
1189
|
projectId: string;
|
|
968
1190
|
id: string;
|
|
1191
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
969
1192
|
startedAt: string;
|
|
970
1193
|
input: Record<string, import("./common").JsonValue>;
|
|
971
|
-
workflowId: string;
|
|
972
1194
|
requestedBy: {
|
|
973
1195
|
principalType: "user" | "serviceAccount" | "system";
|
|
974
1196
|
principalId: string;
|
|
975
1197
|
};
|
|
976
|
-
|
|
1198
|
+
workflowId: string;
|
|
1199
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
977
1200
|
queuedAt?: string | undefined;
|
|
978
1201
|
finishedAt?: string | undefined;
|
|
979
1202
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
980
1203
|
};
|
|
981
1204
|
nodes: {
|
|
982
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
983
1205
|
projectId: string;
|
|
984
1206
|
id: string;
|
|
1207
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
985
1208
|
startedAt: string;
|
|
986
1209
|
input: Record<string, import("./common").JsonValue>;
|
|
987
1210
|
workflowId: string;
|
|
988
1211
|
nodeIndex: number;
|
|
989
|
-
nodeType: "action" | "
|
|
1212
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
990
1213
|
nodeId: string;
|
|
991
1214
|
nodeKey: string;
|
|
992
1215
|
workflowRunId: string;
|
|
@@ -998,38 +1221,48 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
998
1221
|
completedAt?: string | undefined;
|
|
999
1222
|
modelId?: string | undefined;
|
|
1000
1223
|
finishReason?: string | undefined;
|
|
1001
|
-
usage?:
|
|
1224
|
+
usage?: {
|
|
1225
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1226
|
+
inputTokens?: number | undefined;
|
|
1227
|
+
outputTokens?: number | undefined;
|
|
1228
|
+
totalTokens?: number | undefined;
|
|
1229
|
+
uncachedInputTokens?: number | undefined;
|
|
1230
|
+
cacheReadInputTokens?: number | undefined;
|
|
1231
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1232
|
+
textOutputTokens?: number | undefined;
|
|
1233
|
+
reasoningOutputTokens?: number | undefined;
|
|
1234
|
+
} | undefined;
|
|
1002
1235
|
} | undefined;
|
|
1003
|
-
error?:
|
|
1236
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1004
1237
|
finishedAt?: string | undefined;
|
|
1005
1238
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1006
1239
|
}[];
|
|
1007
1240
|
}, {
|
|
1008
1241
|
run: {
|
|
1009
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1010
1242
|
projectId: string;
|
|
1011
1243
|
id: string;
|
|
1244
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1012
1245
|
startedAt: string;
|
|
1013
1246
|
input: Record<string, import("./common").JsonValue>;
|
|
1014
|
-
workflowId: string;
|
|
1015
1247
|
requestedBy: {
|
|
1016
1248
|
principalType: "user" | "serviceAccount" | "system";
|
|
1017
1249
|
principalId: string;
|
|
1018
1250
|
};
|
|
1019
|
-
|
|
1251
|
+
workflowId: string;
|
|
1252
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1020
1253
|
queuedAt?: string | undefined;
|
|
1021
1254
|
finishedAt?: string | undefined;
|
|
1022
1255
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1023
1256
|
};
|
|
1024
1257
|
nodes: {
|
|
1025
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1026
1258
|
projectId: string;
|
|
1027
1259
|
id: string;
|
|
1260
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1028
1261
|
startedAt: string;
|
|
1029
1262
|
input: Record<string, import("./common").JsonValue>;
|
|
1030
1263
|
workflowId: string;
|
|
1031
1264
|
nodeIndex: number;
|
|
1032
|
-
nodeType: "action" | "
|
|
1265
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
1033
1266
|
nodeId: string;
|
|
1034
1267
|
nodeKey: string;
|
|
1035
1268
|
workflowRunId: string;
|
|
@@ -1041,9 +1274,19 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
1041
1274
|
completedAt?: string | undefined;
|
|
1042
1275
|
modelId?: string | undefined;
|
|
1043
1276
|
finishReason?: string | undefined;
|
|
1044
|
-
usage?:
|
|
1277
|
+
usage?: {
|
|
1278
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1279
|
+
inputTokens?: number | undefined;
|
|
1280
|
+
outputTokens?: number | undefined;
|
|
1281
|
+
totalTokens?: number | undefined;
|
|
1282
|
+
uncachedInputTokens?: number | undefined;
|
|
1283
|
+
cacheReadInputTokens?: number | undefined;
|
|
1284
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1285
|
+
textOutputTokens?: number | undefined;
|
|
1286
|
+
reasoningOutputTokens?: number | undefined;
|
|
1287
|
+
} | undefined;
|
|
1045
1288
|
} | undefined;
|
|
1046
|
-
error?:
|
|
1289
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1047
1290
|
finishedAt?: string | undefined;
|
|
1048
1291
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1049
1292
|
}[];
|
|
@@ -1057,7 +1300,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1057
1300
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
1058
1301
|
startedAt: z.ZodString;
|
|
1059
1302
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1060
|
-
error: z.ZodOptional<z.
|
|
1303
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
1061
1304
|
requestedBy: z.ZodObject<{
|
|
1062
1305
|
principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
1063
1306
|
principalId: z.ZodString;
|
|
@@ -1072,32 +1315,32 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1072
1315
|
input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
1073
1316
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
1074
1317
|
}, "strip", z.ZodTypeAny, {
|
|
1075
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1076
1318
|
projectId: string;
|
|
1077
1319
|
id: string;
|
|
1320
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1078
1321
|
startedAt: string;
|
|
1079
1322
|
input: Record<string, import("./common").JsonValue>;
|
|
1080
|
-
workflowId: string;
|
|
1081
1323
|
requestedBy: {
|
|
1082
1324
|
principalType: "user" | "serviceAccount" | "system";
|
|
1083
1325
|
principalId: string;
|
|
1084
1326
|
};
|
|
1085
|
-
|
|
1327
|
+
workflowId: string;
|
|
1328
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1086
1329
|
queuedAt?: string | undefined;
|
|
1087
1330
|
finishedAt?: string | undefined;
|
|
1088
1331
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1089
1332
|
}, {
|
|
1090
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1091
1333
|
projectId: string;
|
|
1092
1334
|
id: string;
|
|
1335
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1093
1336
|
startedAt: string;
|
|
1094
1337
|
input: Record<string, import("./common").JsonValue>;
|
|
1095
|
-
workflowId: string;
|
|
1096
1338
|
requestedBy: {
|
|
1097
1339
|
principalType: "user" | "serviceAccount" | "system";
|
|
1098
1340
|
principalId: string;
|
|
1099
1341
|
};
|
|
1100
|
-
|
|
1342
|
+
workflowId: string;
|
|
1343
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1101
1344
|
queuedAt?: string | undefined;
|
|
1102
1345
|
finishedAt?: string | undefined;
|
|
1103
1346
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
@@ -1116,14 +1359,44 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1116
1359
|
startedAt: z.ZodString;
|
|
1117
1360
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1118
1361
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
|
|
1119
|
-
error: z.ZodOptional<z.
|
|
1362
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
|
|
1120
1363
|
agentExecution: z.ZodOptional<z.ZodObject<{
|
|
1121
1364
|
agentId: z.ZodString;
|
|
1122
1365
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
1123
1366
|
attempt: z.ZodNumber;
|
|
1124
1367
|
modelId: z.ZodOptional<z.ZodString>;
|
|
1125
1368
|
finishReason: z.ZodOptional<z.ZodString>;
|
|
1126
|
-
usage: z.ZodOptional<z.
|
|
1369
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1370
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1372
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1373
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1374
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1376
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1377
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1378
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
1379
|
+
}, "strip", z.ZodTypeAny, {
|
|
1380
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1381
|
+
inputTokens?: number | undefined;
|
|
1382
|
+
outputTokens?: number | undefined;
|
|
1383
|
+
totalTokens?: number | undefined;
|
|
1384
|
+
uncachedInputTokens?: number | undefined;
|
|
1385
|
+
cacheReadInputTokens?: number | undefined;
|
|
1386
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1387
|
+
textOutputTokens?: number | undefined;
|
|
1388
|
+
reasoningOutputTokens?: number | undefined;
|
|
1389
|
+
}, {
|
|
1390
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1391
|
+
inputTokens?: number | undefined;
|
|
1392
|
+
outputTokens?: number | undefined;
|
|
1393
|
+
totalTokens?: number | undefined;
|
|
1394
|
+
uncachedInputTokens?: number | undefined;
|
|
1395
|
+
cacheReadInputTokens?: number | undefined;
|
|
1396
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1397
|
+
textOutputTokens?: number | undefined;
|
|
1398
|
+
reasoningOutputTokens?: number | undefined;
|
|
1399
|
+
}>>;
|
|
1127
1400
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
1128
1401
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
1129
1402
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1134,7 +1407,17 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1134
1407
|
completedAt?: string | undefined;
|
|
1135
1408
|
modelId?: string | undefined;
|
|
1136
1409
|
finishReason?: string | undefined;
|
|
1137
|
-
usage?:
|
|
1410
|
+
usage?: {
|
|
1411
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1412
|
+
inputTokens?: number | undefined;
|
|
1413
|
+
outputTokens?: number | undefined;
|
|
1414
|
+
totalTokens?: number | undefined;
|
|
1415
|
+
uncachedInputTokens?: number | undefined;
|
|
1416
|
+
cacheReadInputTokens?: number | undefined;
|
|
1417
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1418
|
+
textOutputTokens?: number | undefined;
|
|
1419
|
+
reasoningOutputTokens?: number | undefined;
|
|
1420
|
+
} | undefined;
|
|
1138
1421
|
}, {
|
|
1139
1422
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1140
1423
|
agentId: string;
|
|
@@ -1143,17 +1426,27 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1143
1426
|
completedAt?: string | undefined;
|
|
1144
1427
|
modelId?: string | undefined;
|
|
1145
1428
|
finishReason?: string | undefined;
|
|
1146
|
-
usage?:
|
|
1429
|
+
usage?: {
|
|
1430
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1431
|
+
inputTokens?: number | undefined;
|
|
1432
|
+
outputTokens?: number | undefined;
|
|
1433
|
+
totalTokens?: number | undefined;
|
|
1434
|
+
uncachedInputTokens?: number | undefined;
|
|
1435
|
+
cacheReadInputTokens?: number | undefined;
|
|
1436
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1437
|
+
textOutputTokens?: number | undefined;
|
|
1438
|
+
reasoningOutputTokens?: number | undefined;
|
|
1439
|
+
} | undefined;
|
|
1147
1440
|
}>>;
|
|
1148
1441
|
}, "strip", z.ZodTypeAny, {
|
|
1149
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1150
1442
|
projectId: string;
|
|
1151
1443
|
id: string;
|
|
1444
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1152
1445
|
startedAt: string;
|
|
1153
1446
|
input: Record<string, import("./common").JsonValue>;
|
|
1154
1447
|
workflowId: string;
|
|
1155
1448
|
nodeIndex: number;
|
|
1156
|
-
nodeType: "action" | "
|
|
1449
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
1157
1450
|
nodeId: string;
|
|
1158
1451
|
nodeKey: string;
|
|
1159
1452
|
workflowRunId: string;
|
|
@@ -1165,20 +1458,30 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1165
1458
|
completedAt?: string | undefined;
|
|
1166
1459
|
modelId?: string | undefined;
|
|
1167
1460
|
finishReason?: string | undefined;
|
|
1168
|
-
usage?:
|
|
1461
|
+
usage?: {
|
|
1462
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1463
|
+
inputTokens?: number | undefined;
|
|
1464
|
+
outputTokens?: number | undefined;
|
|
1465
|
+
totalTokens?: number | undefined;
|
|
1466
|
+
uncachedInputTokens?: number | undefined;
|
|
1467
|
+
cacheReadInputTokens?: number | undefined;
|
|
1468
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1469
|
+
textOutputTokens?: number | undefined;
|
|
1470
|
+
reasoningOutputTokens?: number | undefined;
|
|
1471
|
+
} | undefined;
|
|
1169
1472
|
} | undefined;
|
|
1170
|
-
error?:
|
|
1473
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1171
1474
|
finishedAt?: string | undefined;
|
|
1172
1475
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1173
1476
|
}, {
|
|
1174
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1175
1477
|
projectId: string;
|
|
1176
1478
|
id: string;
|
|
1479
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1177
1480
|
startedAt: string;
|
|
1178
1481
|
input: Record<string, import("./common").JsonValue>;
|
|
1179
1482
|
workflowId: string;
|
|
1180
1483
|
nodeIndex: number;
|
|
1181
|
-
nodeType: "action" | "
|
|
1484
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
1182
1485
|
nodeId: string;
|
|
1183
1486
|
nodeKey: string;
|
|
1184
1487
|
workflowRunId: string;
|
|
@@ -1190,38 +1493,48 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1190
1493
|
completedAt?: string | undefined;
|
|
1191
1494
|
modelId?: string | undefined;
|
|
1192
1495
|
finishReason?: string | undefined;
|
|
1193
|
-
usage?:
|
|
1496
|
+
usage?: {
|
|
1497
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1498
|
+
inputTokens?: number | undefined;
|
|
1499
|
+
outputTokens?: number | undefined;
|
|
1500
|
+
totalTokens?: number | undefined;
|
|
1501
|
+
uncachedInputTokens?: number | undefined;
|
|
1502
|
+
cacheReadInputTokens?: number | undefined;
|
|
1503
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1504
|
+
textOutputTokens?: number | undefined;
|
|
1505
|
+
reasoningOutputTokens?: number | undefined;
|
|
1506
|
+
} | undefined;
|
|
1194
1507
|
} | undefined;
|
|
1195
|
-
error?:
|
|
1508
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1196
1509
|
finishedAt?: string | undefined;
|
|
1197
1510
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1198
1511
|
}>, "many">;
|
|
1199
1512
|
}, "strip", z.ZodTypeAny, {
|
|
1200
1513
|
run: {
|
|
1201
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1202
1514
|
projectId: string;
|
|
1203
1515
|
id: string;
|
|
1516
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1204
1517
|
startedAt: string;
|
|
1205
1518
|
input: Record<string, import("./common").JsonValue>;
|
|
1206
|
-
workflowId: string;
|
|
1207
1519
|
requestedBy: {
|
|
1208
1520
|
principalType: "user" | "serviceAccount" | "system";
|
|
1209
1521
|
principalId: string;
|
|
1210
1522
|
};
|
|
1211
|
-
|
|
1523
|
+
workflowId: string;
|
|
1524
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1212
1525
|
queuedAt?: string | undefined;
|
|
1213
1526
|
finishedAt?: string | undefined;
|
|
1214
1527
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1215
1528
|
};
|
|
1216
1529
|
nodes: {
|
|
1217
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1218
1530
|
projectId: string;
|
|
1219
1531
|
id: string;
|
|
1532
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1220
1533
|
startedAt: string;
|
|
1221
1534
|
input: Record<string, import("./common").JsonValue>;
|
|
1222
1535
|
workflowId: string;
|
|
1223
1536
|
nodeIndex: number;
|
|
1224
|
-
nodeType: "action" | "
|
|
1537
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
1225
1538
|
nodeId: string;
|
|
1226
1539
|
nodeKey: string;
|
|
1227
1540
|
workflowRunId: string;
|
|
@@ -1233,38 +1546,48 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1233
1546
|
completedAt?: string | undefined;
|
|
1234
1547
|
modelId?: string | undefined;
|
|
1235
1548
|
finishReason?: string | undefined;
|
|
1236
|
-
usage?:
|
|
1549
|
+
usage?: {
|
|
1550
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1551
|
+
inputTokens?: number | undefined;
|
|
1552
|
+
outputTokens?: number | undefined;
|
|
1553
|
+
totalTokens?: number | undefined;
|
|
1554
|
+
uncachedInputTokens?: number | undefined;
|
|
1555
|
+
cacheReadInputTokens?: number | undefined;
|
|
1556
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1557
|
+
textOutputTokens?: number | undefined;
|
|
1558
|
+
reasoningOutputTokens?: number | undefined;
|
|
1559
|
+
} | undefined;
|
|
1237
1560
|
} | undefined;
|
|
1238
|
-
error?:
|
|
1561
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1239
1562
|
finishedAt?: string | undefined;
|
|
1240
1563
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1241
1564
|
}[];
|
|
1242
1565
|
}, {
|
|
1243
1566
|
run: {
|
|
1244
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1245
1567
|
projectId: string;
|
|
1246
1568
|
id: string;
|
|
1569
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1247
1570
|
startedAt: string;
|
|
1248
1571
|
input: Record<string, import("./common").JsonValue>;
|
|
1249
|
-
workflowId: string;
|
|
1250
1572
|
requestedBy: {
|
|
1251
1573
|
principalType: "user" | "serviceAccount" | "system";
|
|
1252
1574
|
principalId: string;
|
|
1253
1575
|
};
|
|
1254
|
-
|
|
1576
|
+
workflowId: string;
|
|
1577
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1255
1578
|
queuedAt?: string | undefined;
|
|
1256
1579
|
finishedAt?: string | undefined;
|
|
1257
1580
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1258
1581
|
};
|
|
1259
1582
|
nodes: {
|
|
1260
|
-
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1261
1583
|
projectId: string;
|
|
1262
1584
|
id: string;
|
|
1585
|
+
status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
|
|
1263
1586
|
startedAt: string;
|
|
1264
1587
|
input: Record<string, import("./common").JsonValue>;
|
|
1265
1588
|
workflowId: string;
|
|
1266
1589
|
nodeIndex: number;
|
|
1267
|
-
nodeType: "action" | "
|
|
1590
|
+
nodeType: "action" | "step" | "intervention" | "agent";
|
|
1268
1591
|
nodeId: string;
|
|
1269
1592
|
nodeKey: string;
|
|
1270
1593
|
workflowRunId: string;
|
|
@@ -1276,9 +1599,19 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
|
|
|
1276
1599
|
completedAt?: string | undefined;
|
|
1277
1600
|
modelId?: string | undefined;
|
|
1278
1601
|
finishReason?: string | undefined;
|
|
1279
|
-
usage?:
|
|
1602
|
+
usage?: {
|
|
1603
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1604
|
+
inputTokens?: number | undefined;
|
|
1605
|
+
outputTokens?: number | undefined;
|
|
1606
|
+
totalTokens?: number | undefined;
|
|
1607
|
+
uncachedInputTokens?: number | undefined;
|
|
1608
|
+
cacheReadInputTokens?: number | undefined;
|
|
1609
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1610
|
+
textOutputTokens?: number | undefined;
|
|
1611
|
+
reasoningOutputTokens?: number | undefined;
|
|
1612
|
+
} | undefined;
|
|
1280
1613
|
} | undefined;
|
|
1281
|
-
error?:
|
|
1614
|
+
error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
1282
1615
|
finishedAt?: string | undefined;
|
|
1283
1616
|
output?: Record<string, import("./common").JsonValue> | undefined;
|
|
1284
1617
|
}[];
|
|
@@ -1324,9 +1657,9 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
1324
1657
|
}>>;
|
|
1325
1658
|
expiredAt: z.ZodOptional<z.ZodString>;
|
|
1326
1659
|
}, "strip", z.ZodTypeAny, {
|
|
1327
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1328
1660
|
projectId: string;
|
|
1329
1661
|
id: string;
|
|
1662
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1330
1663
|
input: Record<string, import("./common").JsonValue>;
|
|
1331
1664
|
workflowId: string;
|
|
1332
1665
|
nodeRunId: string;
|
|
@@ -1351,9 +1684,9 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
1351
1684
|
principalId: string;
|
|
1352
1685
|
} | undefined;
|
|
1353
1686
|
}, {
|
|
1354
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1355
1687
|
projectId: string;
|
|
1356
1688
|
id: string;
|
|
1689
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1357
1690
|
input: Record<string, import("./common").JsonValue>;
|
|
1358
1691
|
workflowId: string;
|
|
1359
1692
|
nodeRunId: string;
|
|
@@ -1384,9 +1717,9 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
1384
1717
|
hasMore: boolean;
|
|
1385
1718
|
total: number;
|
|
1386
1719
|
interventions: {
|
|
1387
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1388
1720
|
projectId: string;
|
|
1389
1721
|
id: string;
|
|
1722
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1390
1723
|
input: Record<string, import("./common").JsonValue>;
|
|
1391
1724
|
workflowId: string;
|
|
1392
1725
|
nodeRunId: string;
|
|
@@ -1415,9 +1748,9 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
1415
1748
|
hasMore: boolean;
|
|
1416
1749
|
total: number;
|
|
1417
1750
|
interventions: {
|
|
1418
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1419
1751
|
projectId: string;
|
|
1420
1752
|
id: string;
|
|
1753
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1421
1754
|
input: Record<string, import("./common").JsonValue>;
|
|
1422
1755
|
workflowId: string;
|
|
1423
1756
|
nodeRunId: string;
|
|
@@ -1484,9 +1817,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1484
1817
|
}>>;
|
|
1485
1818
|
expiredAt: z.ZodOptional<z.ZodString>;
|
|
1486
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1487
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1488
1820
|
projectId: string;
|
|
1489
1821
|
id: string;
|
|
1822
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1490
1823
|
input: Record<string, import("./common").JsonValue>;
|
|
1491
1824
|
workflowId: string;
|
|
1492
1825
|
nodeRunId: string;
|
|
@@ -1511,9 +1844,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1511
1844
|
principalId: string;
|
|
1512
1845
|
} | undefined;
|
|
1513
1846
|
}, {
|
|
1514
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1515
1847
|
projectId: string;
|
|
1516
1848
|
id: string;
|
|
1849
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1517
1850
|
input: Record<string, import("./common").JsonValue>;
|
|
1518
1851
|
workflowId: string;
|
|
1519
1852
|
nodeRunId: string;
|
|
@@ -1542,9 +1875,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1542
1875
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1876
|
jobId: string;
|
|
1544
1877
|
intervention: {
|
|
1545
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1546
1878
|
projectId: string;
|
|
1547
1879
|
id: string;
|
|
1880
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1548
1881
|
input: Record<string, import("./common").JsonValue>;
|
|
1549
1882
|
workflowId: string;
|
|
1550
1883
|
nodeRunId: string;
|
|
@@ -1572,9 +1905,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1572
1905
|
}, {
|
|
1573
1906
|
jobId: string;
|
|
1574
1907
|
intervention: {
|
|
1575
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1576
1908
|
projectId: string;
|
|
1577
1909
|
id: string;
|
|
1910
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1578
1911
|
input: Record<string, import("./common").JsonValue>;
|
|
1579
1912
|
workflowId: string;
|
|
1580
1913
|
nodeRunId: string;
|
|
@@ -1641,9 +1974,9 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1641
1974
|
}>>;
|
|
1642
1975
|
expiredAt: z.ZodOptional<z.ZodString>;
|
|
1643
1976
|
}, "strip", z.ZodTypeAny, {
|
|
1644
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1645
1977
|
projectId: string;
|
|
1646
1978
|
id: string;
|
|
1979
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1647
1980
|
input: Record<string, import("./common").JsonValue>;
|
|
1648
1981
|
workflowId: string;
|
|
1649
1982
|
nodeRunId: string;
|
|
@@ -1668,9 +2001,9 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1668
2001
|
principalId: string;
|
|
1669
2002
|
} | undefined;
|
|
1670
2003
|
}, {
|
|
1671
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1672
2004
|
projectId: string;
|
|
1673
2005
|
id: string;
|
|
2006
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1674
2007
|
input: Record<string, import("./common").JsonValue>;
|
|
1675
2008
|
workflowId: string;
|
|
1676
2009
|
nodeRunId: string;
|
|
@@ -1697,9 +2030,9 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1697
2030
|
}>;
|
|
1698
2031
|
}, "strip", z.ZodTypeAny, {
|
|
1699
2032
|
intervention: {
|
|
1700
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1701
2033
|
projectId: string;
|
|
1702
2034
|
id: string;
|
|
2035
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1703
2036
|
input: Record<string, import("./common").JsonValue>;
|
|
1704
2037
|
workflowId: string;
|
|
1705
2038
|
nodeRunId: string;
|
|
@@ -1726,9 +2059,9 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
1726
2059
|
};
|
|
1727
2060
|
}, {
|
|
1728
2061
|
intervention: {
|
|
1729
|
-
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1730
2062
|
projectId: string;
|
|
1731
2063
|
id: string;
|
|
2064
|
+
status: "cancelled" | "expired" | "pending" | "submitted";
|
|
1732
2065
|
input: Record<string, import("./common").JsonValue>;
|
|
1733
2066
|
workflowId: string;
|
|
1734
2067
|
nodeRunId: string;
|