@sixb/server 0.1.20 → 0.1.22

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.
Files changed (179) hide show
  1. package/dist/artifacts/frame.d.ts +18 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +10 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/files/content.d.ts +2 -3
  13. package/dist/files/content.d.ts.map +1 -1
  14. package/dist/index.js +10636 -7071
  15. package/dist/index.js.map +56 -38
  16. package/dist/models/display.d.ts +27 -0
  17. package/dist/models/display.d.ts.map +1 -1
  18. package/dist/openapi/components.d.ts +14 -0
  19. package/dist/openapi/components.d.ts.map +1 -0
  20. package/dist/openapi/tags.d.ts +22 -2
  21. package/dist/openapi/tags.d.ts.map +1 -1
  22. package/dist/registerRoutes.d.ts +3 -0
  23. package/dist/registerRoutes.d.ts.map +1 -1
  24. package/dist/routes/actions.d.ts +5 -5
  25. package/dist/routes/activity.d.ts +35 -0
  26. package/dist/routes/activity.d.ts.map +1 -0
  27. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  28. package/dist/routes/agent-approval-gate.d.ts +27 -0
  29. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  30. package/dist/routes/agent-approvals.d.ts +599 -0
  31. package/dist/routes/agent-approvals.d.ts.map +1 -0
  32. package/dist/routes/agent-children.d.ts +318 -0
  33. package/dist/routes/agent-children.d.ts.map +1 -0
  34. package/dist/routes/agent-memory.d.ts +267 -0
  35. package/dist/routes/agent-memory.d.ts.map +1 -0
  36. package/dist/routes/agents.d.ts +1008 -98
  37. package/dist/routes/agents.d.ts.map +1 -1
  38. package/dist/routes/ai-accounting.d.ts.map +1 -1
  39. package/dist/routes/artifact-frames.d.ts +98 -0
  40. package/dist/routes/artifact-frames.d.ts.map +1 -0
  41. package/dist/routes/artifacts.d.ts +1508 -0
  42. package/dist/routes/artifacts.d.ts.map +1 -0
  43. package/dist/routes/auth.d.ts +117 -11
  44. package/dist/routes/auth.d.ts.map +1 -1
  45. package/dist/routes/connector-connection-runs.d.ts +84 -84
  46. package/dist/routes/connector-connections.d.ts +2 -2
  47. package/dist/routes/connectors.d.ts +2 -2
  48. package/dist/routes/datasets.d.ts +27 -27
  49. package/dist/routes/events.d.ts +5 -5
  50. package/dist/routes/files.d.ts +14 -14
  51. package/dist/routes/files.d.ts.map +1 -1
  52. package/dist/routes/links.d.ts +2 -2
  53. package/dist/routes/logs.d.ts +5 -5
  54. package/dist/routes/model-calls.d.ts +155 -0
  55. package/dist/routes/model-calls.d.ts.map +1 -0
  56. package/dist/routes/model-generations.d.ts +400 -0
  57. package/dist/routes/model-generations.d.ts.map +1 -0
  58. package/dist/routes/models.d.ts +434 -1
  59. package/dist/routes/models.d.ts.map +1 -1
  60. package/dist/routes/objects.d.ts +71 -40
  61. package/dist/routes/objects.d.ts.map +1 -1
  62. package/dist/routes/observed-agent-threads.d.ts +682 -0
  63. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  64. package/dist/routes/ontology.d.ts +66 -62
  65. package/dist/routes/ontology.d.ts.map +1 -1
  66. package/dist/routes/pipelines.d.ts +53 -53
  67. package/dist/routes/projections.d.ts +63 -63
  68. package/dist/routes/rules.d.ts +2 -2
  69. package/dist/routes/share-grants.d.ts +4 -4
  70. package/dist/routes/syncs.d.ts +18 -18
  71. package/dist/routes/users.d.ts +117 -0
  72. package/dist/routes/users.d.ts.map +1 -0
  73. package/dist/routes/webhook-runs.d.ts +1 -1
  74. package/dist/routes/workflows.d.ts +142 -76
  75. package/dist/routes/workflows.d.ts.map +1 -1
  76. package/dist/routes/ws/agents.d.ts +7 -2
  77. package/dist/routes/ws/agents.d.ts.map +1 -1
  78. package/dist/routes/ws/events.d.ts +6 -6
  79. package/dist/routes/ws/events.d.ts.map +1 -1
  80. package/dist/routes/ws/logs.d.ts +14 -14
  81. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  82. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  83. package/dist/schemas/actions.d.ts +15 -15
  84. package/dist/schemas/activity.d.ts +1298 -0
  85. package/dist/schemas/activity.d.ts.map +1 -0
  86. package/dist/schemas/agent-approvals.d.ts +1091 -0
  87. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  88. package/dist/schemas/agent-memory.d.ts +250 -0
  89. package/dist/schemas/agent-memory.d.ts.map +1 -0
  90. package/dist/schemas/agents.d.ts +5485 -460
  91. package/dist/schemas/agents.d.ts.map +1 -1
  92. package/dist/schemas/ai-accounting.d.ts +1315 -436
  93. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  94. package/dist/schemas/ai-limits.d.ts +36 -36
  95. package/dist/schemas/ai-usage.d.ts +12 -0
  96. package/dist/schemas/ai-usage.d.ts.map +1 -1
  97. package/dist/schemas/artifacts.d.ts +1857 -0
  98. package/dist/schemas/artifacts.d.ts.map +1 -0
  99. package/dist/schemas/auth.d.ts +125 -52
  100. package/dist/schemas/auth.d.ts.map +1 -1
  101. package/dist/schemas/connectors.d.ts +42 -42
  102. package/dist/schemas/datasets.d.ts +108 -108
  103. package/dist/schemas/event-payloads.d.ts +6 -6
  104. package/dist/schemas/events.d.ts +32 -32
  105. package/dist/schemas/events.d.ts.map +1 -1
  106. package/dist/schemas/files.d.ts +24 -24
  107. package/dist/schemas/links.d.ts +2 -2
  108. package/dist/schemas/logs.d.ts +32 -32
  109. package/dist/schemas/models.d.ts +8889 -10
  110. package/dist/schemas/models.d.ts.map +1 -1
  111. package/dist/schemas/objects.d.ts +48 -12
  112. package/dist/schemas/objects.d.ts.map +1 -1
  113. package/dist/schemas/ontology.d.ts +127 -104
  114. package/dist/schemas/ontology.d.ts.map +1 -1
  115. package/dist/schemas/pipelines.d.ts +166 -166
  116. package/dist/schemas/projections.d.ts +346 -346
  117. package/dist/schemas/rules.d.ts +4 -4
  118. package/dist/schemas/share-grants.d.ts +14 -14
  119. package/dist/schemas/syncs.d.ts +40 -40
  120. package/dist/schemas/users.d.ts +72 -0
  121. package/dist/schemas/users.d.ts.map +1 -0
  122. package/dist/schemas/webhook-runs.d.ts +6 -6
  123. package/dist/schemas/workflows.d.ts +769 -254
  124. package/dist/schemas/workflows.d.ts.map +1 -1
  125. package/dist/server.d.ts +1 -0
  126. package/dist/server.d.ts.map +1 -1
  127. package/dist/utils/http.d.ts.map +1 -1
  128. package/package.json +7 -7
  129. package/src/artifacts/frame.ts +51 -0
  130. package/src/auth/browser-origin.ts +20 -5
  131. package/src/auth/experience.ts +1 -1
  132. package/src/auth/guard.ts +2 -2
  133. package/src/auth/public-routes.ts +16 -0
  134. package/src/auth/responses.ts +7 -6
  135. package/src/auth/scope.ts +32 -3
  136. package/src/files/content.ts +9 -13
  137. package/src/models/display.ts +61 -16
  138. package/src/openapi/components.ts +54 -0
  139. package/src/openapi/tags.ts +20 -0
  140. package/src/registerRoutes.ts +23 -0
  141. package/src/routes/activity.ts +327 -0
  142. package/src/routes/agent-api-gateway.ts +115 -91
  143. package/src/routes/agent-approval-gate.ts +213 -0
  144. package/src/routes/agent-approvals.ts +299 -0
  145. package/src/routes/agent-children.ts +209 -0
  146. package/src/routes/agent-memory.ts +210 -0
  147. package/src/routes/agents.ts +364 -143
  148. package/src/routes/ai-accounting.ts +4 -0
  149. package/src/routes/artifact-frames.ts +144 -0
  150. package/src/routes/artifacts.ts +717 -0
  151. package/src/routes/auth.ts +306 -13
  152. package/src/routes/file-downloads.ts +1 -3
  153. package/src/routes/files.ts +6 -7
  154. package/src/routes/model-calls.ts +120 -0
  155. package/src/routes/model-generations.ts +245 -0
  156. package/src/routes/models.ts +116 -9
  157. package/src/routes/objects.ts +55 -61
  158. package/src/routes/observed-agent-threads.ts +253 -0
  159. package/src/routes/ontology.ts +1 -0
  160. package/src/routes/users.ts +73 -0
  161. package/src/routes/workflows.ts +6 -9
  162. package/src/routes/ws/agents.ts +10 -5
  163. package/src/routes/ws/events.ts +3 -2
  164. package/src/routes/ws/subscription-hub.ts +53 -20
  165. package/src/schemas/activity.ts +287 -0
  166. package/src/schemas/agent-approvals.ts +129 -0
  167. package/src/schemas/agent-memory.ts +96 -0
  168. package/src/schemas/agents.ts +240 -2
  169. package/src/schemas/ai-accounting.ts +40 -4
  170. package/src/schemas/ai-usage.ts +10 -0
  171. package/src/schemas/artifacts.ts +246 -0
  172. package/src/schemas/auth.ts +25 -0
  173. package/src/schemas/models.ts +197 -1
  174. package/src/schemas/objects.ts +181 -0
  175. package/src/schemas/ontology.ts +1 -0
  176. package/src/schemas/users.ts +24 -0
  177. package/src/schemas/workflows.ts +2 -0
  178. package/src/server.ts +34 -19
  179. package/src/utils/http.ts +2 -0
@@ -33,7 +33,7 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
33
33
  offset: z.ZodOptional<z.ZodString>;
34
34
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
36
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | undefined;
37
37
  startedAfter?: string | undefined;
38
38
  startedBefore?: string | undefined;
39
39
  limit?: string | undefined;
@@ -41,7 +41,7 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
41
41
  order?: "asc" | "desc" | undefined;
42
42
  workflowId?: string | undefined;
43
43
  }, {
44
- status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
44
+ status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | undefined;
45
45
  startedAfter?: string | undefined;
46
46
  startedBefore?: string | undefined;
47
47
  limit?: string | undefined;
@@ -63,37 +63,41 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
63
63
  offset: z.ZodOptional<z.ZodString>;
64
64
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
66
+ status?: "pending" | "cancelled" | "expired" | "submitted" | undefined;
67
67
  limit?: string | undefined;
68
68
  offset?: string | undefined;
69
69
  order?: "asc" | "desc" | undefined;
70
70
  workflowId?: string | undefined;
71
71
  workflowRunId?: string | undefined;
72
72
  nodeRunId?: string | undefined;
73
+ interventionId?: string | undefined;
73
74
  nodeId?: string | undefined;
74
75
  nodeKey?: string | undefined;
75
- interventionId?: string | undefined;
76
76
  requestedAfter?: string | undefined;
77
77
  requestedBefore?: string | undefined;
78
78
  }, {
79
- status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
79
+ status?: "pending" | "cancelled" | "expired" | "submitted" | undefined;
80
80
  limit?: string | undefined;
81
81
  offset?: string | undefined;
82
82
  order?: "asc" | "desc" | undefined;
83
83
  workflowId?: string | undefined;
84
84
  workflowRunId?: string | undefined;
85
85
  nodeRunId?: string | undefined;
86
+ interventionId?: string | undefined;
86
87
  nodeId?: string | undefined;
87
88
  nodeKey?: string | undefined;
88
- interventionId?: string | undefined;
89
89
  requestedAfter?: string | undefined;
90
90
  requestedBefore?: string | undefined;
91
91
  }>;
92
92
  export declare const RequestWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{
93
93
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
94
+ /** Names the run: a request repeated with the same id returns that run instead of another. */
95
+ runId: z.ZodOptional<z.ZodString>;
94
96
  }, "strip", z.ZodTypeAny, {
97
+ runId?: string | undefined;
95
98
  input?: Record<string, import("./common").JsonValue> | undefined;
96
99
  }, {
100
+ runId?: string | undefined;
97
101
  input?: Record<string, import("./common").JsonValue> | undefined;
98
102
  }>>;
99
103
  export declare const CancelWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
@@ -125,28 +129,28 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
125
129
  type: "user" | "serviceAccount" | "system";
126
130
  }>;
127
131
  }, "strip", z.ZodTypeAny, {
128
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
132
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
129
133
  projectId: string;
130
134
  id: string;
131
- startedAt: string;
132
- workflowId: string;
133
135
  requestedBy: {
134
136
  id: string;
135
137
  type: "user" | "serviceAccount" | "system";
136
138
  };
139
+ startedAt: string;
140
+ workflowId: string;
137
141
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
138
142
  finishedAt?: string | undefined;
139
143
  queuedAt?: string | undefined;
140
144
  }, {
141
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
145
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
142
146
  projectId: string;
143
147
  id: string;
144
- startedAt: string;
145
- workflowId: string;
146
148
  requestedBy: {
147
149
  id: string;
148
150
  type: "user" | "serviceAccount" | "system";
149
151
  };
152
+ startedAt: string;
153
+ workflowId: string;
150
154
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
151
155
  finishedAt?: string | undefined;
152
156
  queuedAt?: string | undefined;
@@ -174,35 +178,35 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
174
178
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
175
179
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
176
180
  }, "strip", z.ZodTypeAny, {
177
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
181
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
178
182
  projectId: string;
179
183
  id: string;
180
- startedAt: string;
181
- input: Record<string, import("./common").JsonValue>;
182
- workflowId: string;
183
184
  requestedBy: {
184
185
  id: string;
185
186
  type: "user" | "serviceAccount" | "system";
186
187
  };
188
+ startedAt: string;
189
+ workflowId: string;
190
+ input: Record<string, import("./common").JsonValue>;
187
191
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
188
192
  finishedAt?: string | undefined;
189
- output?: Record<string, import("./common").JsonValue> | undefined;
190
193
  queuedAt?: string | undefined;
194
+ output?: Record<string, import("./common").JsonValue> | undefined;
191
195
  }, {
192
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
196
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
193
197
  projectId: string;
194
198
  id: string;
195
- startedAt: string;
196
- input: Record<string, import("./common").JsonValue>;
197
- workflowId: string;
198
199
  requestedBy: {
199
200
  id: string;
200
201
  type: "user" | "serviceAccount" | "system";
201
202
  };
203
+ startedAt: string;
204
+ workflowId: string;
205
+ input: Record<string, import("./common").JsonValue>;
202
206
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
203
207
  finishedAt?: string | undefined;
204
- output?: Record<string, import("./common").JsonValue> | undefined;
205
208
  queuedAt?: string | undefined;
209
+ output?: Record<string, import("./common").JsonValue> | undefined;
206
210
  }>;
207
211
  export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
208
212
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
@@ -219,6 +223,10 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
219
223
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
220
224
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
221
225
  audioDurationMs: z.ZodOptional<z.ZodNumber>;
226
+ imageOutputTokens: z.ZodOptional<z.ZodNumber>;
227
+ audioOutputTokens: z.ZodOptional<z.ZodNumber>;
228
+ outputImages: z.ZodOptional<z.ZodNumber>;
229
+ inputCharacters: z.ZodOptional<z.ZodNumber>;
222
230
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
223
231
  }, "strip", z.ZodTypeAny, {
224
232
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -231,6 +239,10 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
231
239
  textOutputTokens?: number | undefined;
232
240
  reasoningOutputTokens?: number | undefined;
233
241
  audioDurationMs?: number | undefined;
242
+ imageOutputTokens?: number | undefined;
243
+ audioOutputTokens?: number | undefined;
244
+ outputImages?: number | undefined;
245
+ inputCharacters?: number | undefined;
234
246
  }, {
235
247
  reportingStatus: "partial" | "complete" | "unavailable";
236
248
  inputTokens?: number | undefined;
@@ -242,6 +254,10 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
242
254
  textOutputTokens?: number | undefined;
243
255
  reasoningOutputTokens?: number | undefined;
244
256
  audioDurationMs?: number | undefined;
257
+ imageOutputTokens?: number | undefined;
258
+ audioOutputTokens?: number | undefined;
259
+ outputImages?: number | undefined;
260
+ inputCharacters?: number | undefined;
245
261
  }>>;
246
262
  cost: z.ZodOptional<z.ZodObject<{
247
263
  amounts: z.ZodArray<z.ZodObject<{
@@ -277,7 +293,7 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
277
293
  startedAt: z.ZodOptional<z.ZodString>;
278
294
  completedAt: z.ZodOptional<z.ZodString>;
279
295
  }, "strip", z.ZodTypeAny, {
280
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
296
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
281
297
  attempt: number;
282
298
  modelId?: string | undefined;
283
299
  startedAt?: string | undefined;
@@ -293,6 +309,10 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
293
309
  textOutputTokens?: number | undefined;
294
310
  reasoningOutputTokens?: number | undefined;
295
311
  audioDurationMs?: number | undefined;
312
+ imageOutputTokens?: number | undefined;
313
+ audioOutputTokens?: number | undefined;
314
+ outputImages?: number | undefined;
315
+ inputCharacters?: number | undefined;
296
316
  } | undefined;
297
317
  cost?: {
298
318
  amounts: {
@@ -305,7 +325,7 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
305
325
  } | undefined;
306
326
  finishReason?: string | undefined;
307
327
  }, {
308
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
328
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
309
329
  attempt: number;
310
330
  modelId?: string | undefined;
311
331
  startedAt?: string | undefined;
@@ -321,6 +341,10 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
321
341
  textOutputTokens?: number | undefined;
322
342
  reasoningOutputTokens?: number | undefined;
323
343
  audioDurationMs?: number | undefined;
344
+ imageOutputTokens?: number | undefined;
345
+ audioOutputTokens?: number | undefined;
346
+ outputImages?: number | undefined;
347
+ inputCharacters?: number | undefined;
324
348
  } | undefined;
325
349
  cost?: {
326
350
  amounts: {
@@ -349,6 +373,10 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
349
373
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
350
374
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
351
375
  audioDurationMs: z.ZodOptional<z.ZodNumber>;
376
+ imageOutputTokens: z.ZodOptional<z.ZodNumber>;
377
+ audioOutputTokens: z.ZodOptional<z.ZodNumber>;
378
+ outputImages: z.ZodOptional<z.ZodNumber>;
379
+ inputCharacters: z.ZodOptional<z.ZodNumber>;
352
380
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
353
381
  }, "strip", z.ZodTypeAny, {
354
382
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -361,6 +389,10 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
361
389
  textOutputTokens?: number | undefined;
362
390
  reasoningOutputTokens?: number | undefined;
363
391
  audioDurationMs?: number | undefined;
392
+ imageOutputTokens?: number | undefined;
393
+ audioOutputTokens?: number | undefined;
394
+ outputImages?: number | undefined;
395
+ inputCharacters?: number | undefined;
364
396
  }, {
365
397
  reportingStatus: "partial" | "complete" | "unavailable";
366
398
  inputTokens?: number | undefined;
@@ -372,6 +404,10 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
372
404
  textOutputTokens?: number | undefined;
373
405
  reasoningOutputTokens?: number | undefined;
374
406
  audioDurationMs?: number | undefined;
407
+ imageOutputTokens?: number | undefined;
408
+ audioOutputTokens?: number | undefined;
409
+ outputImages?: number | undefined;
410
+ inputCharacters?: number | undefined;
375
411
  }>>;
376
412
  cost: z.ZodOptional<z.ZodObject<{
377
413
  amounts: z.ZodArray<z.ZodObject<{
@@ -427,6 +463,247 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
427
463
  type: "continuation";
428
464
  }, {
429
465
  type: "continuation";
466
+ }>, z.ZodObject<{
467
+ type: z.ZodLiteral<"approval-outcome">;
468
+ approvalId: z.ZodString;
469
+ status: z.ZodEnum<["approved", "denied", "cancelled", "superseded", "expired"]>;
470
+ call: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
471
+ kind: z.ZodLiteral<"action">;
472
+ actionId: z.ZodString;
473
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
474
+ kind: z.ZodLiteral<"none">;
475
+ }, "strip", z.ZodTypeAny, {
476
+ kind: "none";
477
+ }, {
478
+ kind: "none";
479
+ }>, z.ZodObject<{
480
+ kind: z.ZodLiteral<"object">;
481
+ objectTypeId: z.ZodString;
482
+ primaryId: z.ZodString;
483
+ }, "strip", z.ZodTypeAny, {
484
+ kind: "object";
485
+ objectTypeId: string;
486
+ primaryId: string;
487
+ }, {
488
+ kind: "object";
489
+ objectTypeId: string;
490
+ primaryId: string;
491
+ }>]>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ kind: "action";
494
+ actionId: string;
495
+ subject: {
496
+ kind: "none";
497
+ } | {
498
+ kind: "object";
499
+ objectTypeId: string;
500
+ primaryId: string;
501
+ };
502
+ }, {
503
+ kind: "action";
504
+ actionId: string;
505
+ subject: {
506
+ kind: "none";
507
+ } | {
508
+ kind: "object";
509
+ objectTypeId: string;
510
+ primaryId: string;
511
+ };
512
+ }>, z.ZodObject<{
513
+ kind: z.ZodLiteral<"workflow">;
514
+ workflowId: z.ZodString;
515
+ }, "strip", z.ZodTypeAny, {
516
+ kind: "workflow";
517
+ workflowId: string;
518
+ }, {
519
+ kind: "workflow";
520
+ workflowId: string;
521
+ }>]>;
522
+ outcome: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
523
+ kind: z.ZodLiteral<"action-run">;
524
+ runId: z.ZodString;
525
+ status: z.ZodEnum<["succeeded", "failed"]>;
526
+ error: z.ZodOptional<z.ZodType<import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">, z.ZodTypeDef, import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">>>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ status: "succeeded" | "failed";
529
+ kind: "action-run";
530
+ runId: string;
531
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
532
+ }, {
533
+ status: "succeeded" | "failed";
534
+ kind: "action-run";
535
+ runId: string;
536
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
537
+ }>, z.ZodObject<{
538
+ kind: z.ZodLiteral<"workflow-run">;
539
+ runId: z.ZodString;
540
+ queuedAt: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ kind: "workflow-run";
543
+ runId: string;
544
+ queuedAt: string;
545
+ }, {
546
+ kind: "workflow-run";
547
+ runId: string;
548
+ queuedAt: string;
549
+ }>, z.ZodObject<{
550
+ kind: z.ZodLiteral<"error">;
551
+ error: z.ZodObject<{
552
+ code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
553
+ message: z.ZodString;
554
+ retryable: z.ZodBoolean;
555
+ at: z.ZodString;
556
+ details: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
557
+ httpStatus: z.ZodOptional<z.ZodNumber>;
558
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
559
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ at: string;
562
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
563
+ message: string;
564
+ retryable: boolean;
565
+ details?: import("./common").JsonValue | undefined;
566
+ httpStatus?: number | undefined;
567
+ redacted?: true | undefined;
568
+ truncated?: true | undefined;
569
+ }, {
570
+ at: string;
571
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
572
+ message: string;
573
+ retryable: boolean;
574
+ details?: import("./common").JsonValue | undefined;
575
+ httpStatus?: number | undefined;
576
+ redacted?: true | undefined;
577
+ truncated?: true | undefined;
578
+ }>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ error: {
581
+ at: string;
582
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
583
+ message: string;
584
+ retryable: boolean;
585
+ details?: import("./common").JsonValue | undefined;
586
+ httpStatus?: number | undefined;
587
+ redacted?: true | undefined;
588
+ truncated?: true | undefined;
589
+ };
590
+ kind: "error";
591
+ }, {
592
+ error: {
593
+ at: string;
594
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
595
+ message: string;
596
+ retryable: boolean;
597
+ details?: import("./common").JsonValue | undefined;
598
+ httpStatus?: number | undefined;
599
+ redacted?: true | undefined;
600
+ truncated?: true | undefined;
601
+ };
602
+ kind: "error";
603
+ }>]>>;
604
+ caller: z.ZodOptional<z.ZodObject<{
605
+ runId: z.ZodString;
606
+ key: z.ZodString;
607
+ continues: z.ZodOptional<z.ZodLiteral<true>>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ runId: string;
610
+ key: string;
611
+ continues?: true | undefined;
612
+ }, {
613
+ runId: string;
614
+ key: string;
615
+ continues?: true | undefined;
616
+ }>>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
619
+ type: "approval-outcome";
620
+ call: {
621
+ kind: "action";
622
+ actionId: string;
623
+ subject: {
624
+ kind: "none";
625
+ } | {
626
+ kind: "object";
627
+ objectTypeId: string;
628
+ primaryId: string;
629
+ };
630
+ } | {
631
+ kind: "workflow";
632
+ workflowId: string;
633
+ };
634
+ approvalId: string;
635
+ caller?: {
636
+ runId: string;
637
+ key: string;
638
+ continues?: true | undefined;
639
+ } | undefined;
640
+ outcome?: {
641
+ status: "succeeded" | "failed";
642
+ kind: "action-run";
643
+ runId: string;
644
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
645
+ } | {
646
+ kind: "workflow-run";
647
+ runId: string;
648
+ queuedAt: string;
649
+ } | {
650
+ error: {
651
+ at: string;
652
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
653
+ message: string;
654
+ retryable: boolean;
655
+ details?: import("./common").JsonValue | undefined;
656
+ httpStatus?: number | undefined;
657
+ redacted?: true | undefined;
658
+ truncated?: true | undefined;
659
+ };
660
+ kind: "error";
661
+ } | undefined;
662
+ }, {
663
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
664
+ type: "approval-outcome";
665
+ call: {
666
+ kind: "action";
667
+ actionId: string;
668
+ subject: {
669
+ kind: "none";
670
+ } | {
671
+ kind: "object";
672
+ objectTypeId: string;
673
+ primaryId: string;
674
+ };
675
+ } | {
676
+ kind: "workflow";
677
+ workflowId: string;
678
+ };
679
+ approvalId: string;
680
+ caller?: {
681
+ runId: string;
682
+ key: string;
683
+ continues?: true | undefined;
684
+ } | undefined;
685
+ outcome?: {
686
+ status: "succeeded" | "failed";
687
+ kind: "action-run";
688
+ runId: string;
689
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
690
+ } | {
691
+ kind: "workflow-run";
692
+ runId: string;
693
+ queuedAt: string;
694
+ } | {
695
+ error: {
696
+ at: string;
697
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
698
+ message: string;
699
+ retryable: boolean;
700
+ details?: import("./common").JsonValue | undefined;
701
+ httpStatus?: number | undefined;
702
+ redacted?: true | undefined;
703
+ truncated?: true | undefined;
704
+ };
705
+ kind: "error";
706
+ } | undefined;
430
707
  }>, z.ZodObject<{
431
708
  type: z.ZodLiteral<"reasoning">;
432
709
  text: z.ZodString;
@@ -541,14 +818,14 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
541
818
  }, "strip", z.ZodTypeAny, {
542
819
  id: string;
543
820
  kind: "app-state";
544
- description: string;
545
821
  value: import("./common").JsonValue;
822
+ description: string;
546
823
  label: string;
547
824
  }, {
548
825
  id: string;
549
826
  kind: "app-state";
550
- description: string;
551
827
  value: import("./common").JsonValue;
828
+ description: string;
552
829
  label: string;
553
830
  }>]>;
554
831
  origin: z.ZodEnum<["ambient", "explicit"]>;
@@ -566,8 +843,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
566
843
  } | {
567
844
  id: string;
568
845
  kind: "app-state";
569
- description: string;
570
846
  value: import("./common").JsonValue;
847
+ description: string;
571
848
  label: string;
572
849
  };
573
850
  type: "context";
@@ -583,8 +860,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
583
860
  } | {
584
861
  id: string;
585
862
  kind: "app-state";
586
- description: string;
587
863
  value: import("./common").JsonValue;
864
+ description: string;
588
865
  label: string;
589
866
  };
590
867
  type: "context";
@@ -601,8 +878,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
601
878
  output: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
602
879
  }, "strip", z.ZodTypeAny, {
603
880
  type: "tool-call";
604
- output: import("./common").JsonValue;
605
881
  input: import("./common").JsonValue;
882
+ output: import("./common").JsonValue;
606
883
  toolCallId: string;
607
884
  toolName: string;
608
885
  state: "output-available";
@@ -611,8 +888,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
611
888
  providerExecuted?: boolean | undefined;
612
889
  }, {
613
890
  type: "tool-call";
614
- output: import("./common").JsonValue;
615
891
  input: import("./common").JsonValue;
892
+ output: import("./common").JsonValue;
616
893
  toolCallId: string;
617
894
  toolName: string;
618
895
  state: "output-available";
@@ -650,17 +927,41 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
650
927
  providerMetadata?: import("./common").JsonValue | undefined;
651
928
  dynamic?: boolean | undefined;
652
929
  providerExecuted?: boolean | undefined;
930
+ }>, z.ZodObject<{
931
+ type: z.ZodLiteral<"mail">;
932
+ id: z.ZodString;
933
+ from: z.ZodLiteral<"parent">;
934
+ kind: z.ZodEnum<["message", "answer"]>;
935
+ inReplyTo: z.ZodOptional<z.ZodString>;
936
+ text: z.ZodString;
937
+ afterAnswer: z.ZodOptional<z.ZodLiteral<true>>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ id: string;
940
+ kind: "message" | "answer";
941
+ type: "mail";
942
+ text: string;
943
+ from: "parent";
944
+ inReplyTo?: string | undefined;
945
+ afterAnswer?: true | undefined;
946
+ }, {
947
+ id: string;
948
+ kind: "message" | "answer";
949
+ type: "mail";
950
+ text: string;
951
+ from: "parent";
952
+ inReplyTo?: string | undefined;
953
+ afterAnswer?: true | undefined;
653
954
  }>]>, "many">>;
654
955
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, "many">>;
655
956
  failurePhase: z.ZodOptional<z.ZodEnum<["agent-loop", "structured-finalizer"]>>;
656
957
  error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
657
958
  createdAt: z.ZodString;
658
959
  }, "strip", z.ZodTypeAny, {
659
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
660
- attempt: number;
661
- nodeRunId: string;
960
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
662
961
  createdAt: string;
663
962
  prompt: string;
963
+ attempt: number;
964
+ nodeRunId: string;
664
965
  error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
665
966
  modelId?: string | undefined;
666
967
  startedAt?: string | undefined;
@@ -676,6 +977,10 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
676
977
  textOutputTokens?: number | undefined;
677
978
  reasoningOutputTokens?: number | undefined;
678
979
  audioDurationMs?: number | undefined;
980
+ imageOutputTokens?: number | undefined;
981
+ audioOutputTokens?: number | undefined;
982
+ outputImages?: number | undefined;
983
+ inputCharacters?: number | undefined;
679
984
  } | undefined;
680
985
  cost?: {
681
986
  amounts: {
@@ -700,8 +1005,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
700
1005
  } | {
701
1006
  id: string;
702
1007
  kind: "app-state";
703
- description: string;
704
1008
  value: import("./common").JsonValue;
1009
+ description: string;
705
1010
  label: string;
706
1011
  };
707
1012
  type: "context";
@@ -732,8 +1037,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
732
1037
  data: import("./common").JsonValue;
733
1038
  } | {
734
1039
  type: "tool-call";
735
- output: import("./common").JsonValue;
736
1040
  input: import("./common").JsonValue;
1041
+ output: import("./common").JsonValue;
737
1042
  toolCallId: string;
738
1043
  toolName: string;
739
1044
  state: "output-available";
@@ -752,14 +1057,67 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
752
1057
  providerExecuted?: boolean | undefined;
753
1058
  } | {
754
1059
  type: "continuation";
1060
+ } | {
1061
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
1062
+ type: "approval-outcome";
1063
+ call: {
1064
+ kind: "action";
1065
+ actionId: string;
1066
+ subject: {
1067
+ kind: "none";
1068
+ } | {
1069
+ kind: "object";
1070
+ objectTypeId: string;
1071
+ primaryId: string;
1072
+ };
1073
+ } | {
1074
+ kind: "workflow";
1075
+ workflowId: string;
1076
+ };
1077
+ approvalId: string;
1078
+ caller?: {
1079
+ runId: string;
1080
+ key: string;
1081
+ continues?: true | undefined;
1082
+ } | undefined;
1083
+ outcome?: {
1084
+ status: "succeeded" | "failed";
1085
+ kind: "action-run";
1086
+ runId: string;
1087
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
1088
+ } | {
1089
+ kind: "workflow-run";
1090
+ runId: string;
1091
+ queuedAt: string;
1092
+ } | {
1093
+ error: {
1094
+ at: string;
1095
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
1096
+ message: string;
1097
+ retryable: boolean;
1098
+ details?: import("./common").JsonValue | undefined;
1099
+ httpStatus?: number | undefined;
1100
+ redacted?: true | undefined;
1101
+ truncated?: true | undefined;
1102
+ };
1103
+ kind: "error";
1104
+ } | undefined;
1105
+ } | {
1106
+ id: string;
1107
+ kind: "message" | "answer";
1108
+ type: "mail";
1109
+ text: string;
1110
+ from: "parent";
1111
+ inReplyTo?: string | undefined;
1112
+ afterAnswer?: true | undefined;
755
1113
  })[] | undefined;
756
1114
  failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
757
1115
  }, {
758
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
759
- attempt: number;
760
- nodeRunId: string;
1116
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
761
1117
  createdAt: string;
762
1118
  prompt: string;
1119
+ attempt: number;
1120
+ nodeRunId: string;
763
1121
  error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
764
1122
  modelId?: string | undefined;
765
1123
  startedAt?: string | undefined;
@@ -775,6 +1133,10 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
775
1133
  textOutputTokens?: number | undefined;
776
1134
  reasoningOutputTokens?: number | undefined;
777
1135
  audioDurationMs?: number | undefined;
1136
+ imageOutputTokens?: number | undefined;
1137
+ audioOutputTokens?: number | undefined;
1138
+ outputImages?: number | undefined;
1139
+ inputCharacters?: number | undefined;
778
1140
  } | undefined;
779
1141
  cost?: {
780
1142
  amounts: {
@@ -799,8 +1161,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
799
1161
  } | {
800
1162
  id: string;
801
1163
  kind: "app-state";
802
- description: string;
803
1164
  value: import("./common").JsonValue;
1165
+ description: string;
804
1166
  label: string;
805
1167
  };
806
1168
  type: "context";
@@ -831,8 +1193,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
831
1193
  data: import("./common").JsonValue;
832
1194
  } | {
833
1195
  type: "tool-call";
834
- output: import("./common").JsonValue;
835
1196
  input: import("./common").JsonValue;
1197
+ output: import("./common").JsonValue;
836
1198
  toolCallId: string;
837
1199
  toolName: string;
838
1200
  state: "output-available";
@@ -851,6 +1213,59 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
851
1213
  providerExecuted?: boolean | undefined;
852
1214
  } | {
853
1215
  type: "continuation";
1216
+ } | {
1217
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
1218
+ type: "approval-outcome";
1219
+ call: {
1220
+ kind: "action";
1221
+ actionId: string;
1222
+ subject: {
1223
+ kind: "none";
1224
+ } | {
1225
+ kind: "object";
1226
+ objectTypeId: string;
1227
+ primaryId: string;
1228
+ };
1229
+ } | {
1230
+ kind: "workflow";
1231
+ workflowId: string;
1232
+ };
1233
+ approvalId: string;
1234
+ caller?: {
1235
+ runId: string;
1236
+ key: string;
1237
+ continues?: true | undefined;
1238
+ } | undefined;
1239
+ outcome?: {
1240
+ status: "succeeded" | "failed";
1241
+ kind: "action-run";
1242
+ runId: string;
1243
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
1244
+ } | {
1245
+ kind: "workflow-run";
1246
+ runId: string;
1247
+ queuedAt: string;
1248
+ } | {
1249
+ error: {
1250
+ at: string;
1251
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
1252
+ message: string;
1253
+ retryable: boolean;
1254
+ details?: import("./common").JsonValue | undefined;
1255
+ httpStatus?: number | undefined;
1256
+ redacted?: true | undefined;
1257
+ truncated?: true | undefined;
1258
+ };
1259
+ kind: "error";
1260
+ } | undefined;
1261
+ } | {
1262
+ id: string;
1263
+ kind: "message" | "answer";
1264
+ type: "mail";
1265
+ text: string;
1266
+ from: "parent";
1267
+ inReplyTo?: string | undefined;
1268
+ afterAnswer?: true | undefined;
854
1269
  })[] | undefined;
855
1270
  failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
856
1271
  }>;
@@ -884,6 +1299,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
884
1299
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
885
1300
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
886
1301
  audioDurationMs: z.ZodOptional<z.ZodNumber>;
1302
+ imageOutputTokens: z.ZodOptional<z.ZodNumber>;
1303
+ audioOutputTokens: z.ZodOptional<z.ZodNumber>;
1304
+ outputImages: z.ZodOptional<z.ZodNumber>;
1305
+ inputCharacters: z.ZodOptional<z.ZodNumber>;
887
1306
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
888
1307
  }, "strip", z.ZodTypeAny, {
889
1308
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -896,6 +1315,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
896
1315
  textOutputTokens?: number | undefined;
897
1316
  reasoningOutputTokens?: number | undefined;
898
1317
  audioDurationMs?: number | undefined;
1318
+ imageOutputTokens?: number | undefined;
1319
+ audioOutputTokens?: number | undefined;
1320
+ outputImages?: number | undefined;
1321
+ inputCharacters?: number | undefined;
899
1322
  }, {
900
1323
  reportingStatus: "partial" | "complete" | "unavailable";
901
1324
  inputTokens?: number | undefined;
@@ -907,6 +1330,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
907
1330
  textOutputTokens?: number | undefined;
908
1331
  reasoningOutputTokens?: number | undefined;
909
1332
  audioDurationMs?: number | undefined;
1333
+ imageOutputTokens?: number | undefined;
1334
+ audioOutputTokens?: number | undefined;
1335
+ outputImages?: number | undefined;
1336
+ inputCharacters?: number | undefined;
910
1337
  }>>;
911
1338
  cost: z.ZodOptional<z.ZodObject<{
912
1339
  amounts: z.ZodArray<z.ZodObject<{
@@ -942,7 +1369,7 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
942
1369
  startedAt: z.ZodOptional<z.ZodString>;
943
1370
  completedAt: z.ZodOptional<z.ZodString>;
944
1371
  }, "strip", z.ZodTypeAny, {
945
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1372
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
946
1373
  attempt: number;
947
1374
  modelId?: string | undefined;
948
1375
  startedAt?: string | undefined;
@@ -958,6 +1385,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
958
1385
  textOutputTokens?: number | undefined;
959
1386
  reasoningOutputTokens?: number | undefined;
960
1387
  audioDurationMs?: number | undefined;
1388
+ imageOutputTokens?: number | undefined;
1389
+ audioOutputTokens?: number | undefined;
1390
+ outputImages?: number | undefined;
1391
+ inputCharacters?: number | undefined;
961
1392
  } | undefined;
962
1393
  cost?: {
963
1394
  amounts: {
@@ -970,7 +1401,7 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
970
1401
  } | undefined;
971
1402
  finishReason?: string | undefined;
972
1403
  }, {
973
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1404
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
974
1405
  attempt: number;
975
1406
  modelId?: string | undefined;
976
1407
  startedAt?: string | undefined;
@@ -986,6 +1417,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
986
1417
  textOutputTokens?: number | undefined;
987
1418
  reasoningOutputTokens?: number | undefined;
988
1419
  audioDurationMs?: number | undefined;
1420
+ imageOutputTokens?: number | undefined;
1421
+ audioOutputTokens?: number | undefined;
1422
+ outputImages?: number | undefined;
1423
+ inputCharacters?: number | undefined;
989
1424
  } | undefined;
990
1425
  cost?: {
991
1426
  amounts: {
@@ -999,20 +1434,20 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
999
1434
  finishReason?: string | undefined;
1000
1435
  }>>;
1001
1436
  }, "strip", z.ZodTypeAny, {
1002
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1437
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1003
1438
  projectId: string;
1004
1439
  id: string;
1005
1440
  startedAt: string;
1006
- input: Record<string, import("./common").JsonValue>;
1007
1441
  workflowId: string;
1442
+ input: Record<string, import("./common").JsonValue>;
1008
1443
  workflowRunId: string;
1009
- nodeIndex: number;
1010
- nodeType: "agent" | "action" | "step" | "intervention";
1011
1444
  nodeId: string;
1012
1445
  nodeKey: string;
1446
+ nodeIndex: number;
1447
+ nodeType: "agent" | "action" | "step" | "intervention";
1013
1448
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1014
1449
  agentExecution?: {
1015
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1450
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1016
1451
  attempt: number;
1017
1452
  modelId?: string | undefined;
1018
1453
  startedAt?: string | undefined;
@@ -1028,6 +1463,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1028
1463
  textOutputTokens?: number | undefined;
1029
1464
  reasoningOutputTokens?: number | undefined;
1030
1465
  audioDurationMs?: number | undefined;
1466
+ imageOutputTokens?: number | undefined;
1467
+ audioOutputTokens?: number | undefined;
1468
+ outputImages?: number | undefined;
1469
+ inputCharacters?: number | undefined;
1031
1470
  } | undefined;
1032
1471
  cost?: {
1033
1472
  amounts: {
@@ -1043,20 +1482,20 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1043
1482
  finishedAt?: string | undefined;
1044
1483
  output?: Record<string, import("./common").JsonValue> | undefined;
1045
1484
  }, {
1046
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1485
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1047
1486
  projectId: string;
1048
1487
  id: string;
1049
1488
  startedAt: string;
1050
- input: Record<string, import("./common").JsonValue>;
1051
1489
  workflowId: string;
1490
+ input: Record<string, import("./common").JsonValue>;
1052
1491
  workflowRunId: string;
1053
- nodeIndex: number;
1054
- nodeType: "agent" | "action" | "step" | "intervention";
1055
1492
  nodeId: string;
1056
1493
  nodeKey: string;
1494
+ nodeIndex: number;
1495
+ nodeType: "agent" | "action" | "step" | "intervention";
1057
1496
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1058
1497
  agentExecution?: {
1059
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1498
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1060
1499
  attempt: number;
1061
1500
  modelId?: string | undefined;
1062
1501
  startedAt?: string | undefined;
@@ -1072,6 +1511,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1072
1511
  textOutputTokens?: number | undefined;
1073
1512
  reasoningOutputTokens?: number | undefined;
1074
1513
  audioDurationMs?: number | undefined;
1514
+ imageOutputTokens?: number | undefined;
1515
+ audioOutputTokens?: number | undefined;
1516
+ outputImages?: number | undefined;
1517
+ inputCharacters?: number | undefined;
1075
1518
  } | undefined;
1076
1519
  cost?: {
1077
1520
  amounts: {
@@ -1127,23 +1570,22 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1127
1570
  }>>;
1128
1571
  expiredAt: z.ZodOptional<z.ZodString>;
1129
1572
  }, "strip", z.ZodTypeAny, {
1130
- status: "expired" | "pending" | "cancelled" | "submitted";
1573
+ status: "pending" | "cancelled" | "expired" | "submitted";
1131
1574
  projectId: string;
1132
1575
  id: string;
1133
- input: Record<string, import("./common").JsonValue>;
1134
1576
  workflowId: string;
1577
+ input: Record<string, import("./common").JsonValue>;
1135
1578
  workflowRunId: string;
1136
1579
  nodeRunId: string;
1137
- nodeIndex: number;
1580
+ interventionId: string;
1138
1581
  nodeId: string;
1139
1582
  nodeKey: string;
1140
- interventionId: string;
1583
+ nodeIndex: number;
1141
1584
  defaultResponse: Record<string, import("./common").JsonValue>;
1142
1585
  requestedAt: string;
1143
1586
  response?: Record<string, import("./common").JsonValue> | undefined;
1144
1587
  expiresAt?: string | undefined;
1145
1588
  submittedAt?: string | undefined;
1146
- expiredAt?: string | undefined;
1147
1589
  submittedBy?: {
1148
1590
  id: string;
1149
1591
  type: "user" | "serviceAccount" | "system";
@@ -1153,24 +1595,24 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1153
1595
  id: string;
1154
1596
  type: "user" | "serviceAccount" | "system";
1155
1597
  } | undefined;
1598
+ expiredAt?: string | undefined;
1156
1599
  }, {
1157
- status: "expired" | "pending" | "cancelled" | "submitted";
1600
+ status: "pending" | "cancelled" | "expired" | "submitted";
1158
1601
  projectId: string;
1159
1602
  id: string;
1160
- input: Record<string, import("./common").JsonValue>;
1161
1603
  workflowId: string;
1604
+ input: Record<string, import("./common").JsonValue>;
1162
1605
  workflowRunId: string;
1163
1606
  nodeRunId: string;
1164
- nodeIndex: number;
1607
+ interventionId: string;
1165
1608
  nodeId: string;
1166
1609
  nodeKey: string;
1167
- interventionId: string;
1610
+ nodeIndex: number;
1168
1611
  defaultResponse: Record<string, import("./common").JsonValue>;
1169
1612
  requestedAt: string;
1170
1613
  response?: Record<string, import("./common").JsonValue> | undefined;
1171
1614
  expiresAt?: string | undefined;
1172
1615
  submittedAt?: string | undefined;
1173
- expiredAt?: string | undefined;
1174
1616
  submittedBy?: {
1175
1617
  id: string;
1176
1618
  type: "user" | "serviceAccount" | "system";
@@ -1180,6 +1622,7 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1180
1622
  id: string;
1181
1623
  type: "user" | "serviceAccount" | "system";
1182
1624
  } | undefined;
1625
+ expiredAt?: string | undefined;
1183
1626
  }>;
1184
1627
  export declare const WorkflowSchema: z.ZodObject<{
1185
1628
  id: z.ZodString;
@@ -1203,15 +1646,15 @@ export declare const WorkflowSchema: z.ZodObject<{
1203
1646
  }, "strip", z.ZodTypeAny, {
1204
1647
  id: string;
1205
1648
  type: "step";
1206
- output: Record<string, import("./common").JsonValue>;
1207
- key: string;
1208
1649
  input: Record<string, import("./common").JsonValue>;
1650
+ key: string;
1651
+ output: Record<string, import("./common").JsonValue>;
1209
1652
  }, {
1210
1653
  id: string;
1211
1654
  type: "step";
1212
- output: Record<string, import("./common").JsonValue>;
1213
- key: string;
1214
1655
  input: Record<string, import("./common").JsonValue>;
1656
+ key: string;
1657
+ output: Record<string, import("./common").JsonValue>;
1215
1658
  }>, z.ZodObject<{
1216
1659
  type: z.ZodLiteral<"action">;
1217
1660
  id: z.ZodString;
@@ -1241,15 +1684,15 @@ export declare const WorkflowSchema: z.ZodObject<{
1241
1684
  id: string;
1242
1685
  response: Record<string, import("./common").JsonValue>;
1243
1686
  type: "intervention";
1244
- key: string;
1245
1687
  input: Record<string, import("./common").JsonValue>;
1688
+ key: string;
1246
1689
  description?: string | undefined;
1247
1690
  }, {
1248
1691
  id: string;
1249
1692
  response: Record<string, import("./common").JsonValue>;
1250
1693
  type: "intervention";
1251
- key: string;
1252
1694
  input: Record<string, import("./common").JsonValue>;
1695
+ key: string;
1253
1696
  description?: string | undefined;
1254
1697
  }>, z.ZodObject<{
1255
1698
  type: z.ZodLiteral<"agent">;
@@ -1260,15 +1703,15 @@ export declare const WorkflowSchema: z.ZodObject<{
1260
1703
  }, "strip", z.ZodTypeAny, {
1261
1704
  id: string;
1262
1705
  type: "agent";
1263
- output: Record<string, import("./common").JsonValue>;
1264
- key: string;
1265
1706
  input: Record<string, import("./common").JsonValue>;
1707
+ key: string;
1708
+ output: Record<string, import("./common").JsonValue>;
1266
1709
  }, {
1267
1710
  id: string;
1268
1711
  type: "agent";
1269
- output: Record<string, import("./common").JsonValue>;
1270
- key: string;
1271
1712
  input: Record<string, import("./common").JsonValue>;
1713
+ key: string;
1714
+ output: Record<string, import("./common").JsonValue>;
1272
1715
  }>]>, "many">;
1273
1716
  latestRun: z.ZodNullable<z.ZodObject<{
1274
1717
  id: z.ZodString;
@@ -1290,28 +1733,28 @@ export declare const WorkflowSchema: z.ZodObject<{
1290
1733
  type: "user" | "serviceAccount" | "system";
1291
1734
  }>;
1292
1735
  }, "strip", z.ZodTypeAny, {
1293
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1736
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1294
1737
  projectId: string;
1295
1738
  id: string;
1296
- startedAt: string;
1297
- workflowId: string;
1298
1739
  requestedBy: {
1299
1740
  id: string;
1300
1741
  type: "user" | "serviceAccount" | "system";
1301
1742
  };
1743
+ startedAt: string;
1744
+ workflowId: string;
1302
1745
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1303
1746
  finishedAt?: string | undefined;
1304
1747
  queuedAt?: string | undefined;
1305
1748
  }, {
1306
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1749
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1307
1750
  projectId: string;
1308
1751
  id: string;
1309
- startedAt: string;
1310
- workflowId: string;
1311
1752
  requestedBy: {
1312
1753
  id: string;
1313
1754
  type: "user" | "serviceAccount" | "system";
1314
1755
  };
1756
+ startedAt: string;
1757
+ workflowId: string;
1315
1758
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1316
1759
  finishedAt?: string | undefined;
1317
1760
  queuedAt?: string | undefined;
@@ -1326,9 +1769,9 @@ export declare const WorkflowSchema: z.ZodObject<{
1326
1769
  nodes: ({
1327
1770
  id: string;
1328
1771
  type: "step";
1329
- output: Record<string, import("./common").JsonValue>;
1330
- key: string;
1331
1772
  input: Record<string, import("./common").JsonValue>;
1773
+ key: string;
1774
+ output: Record<string, import("./common").JsonValue>;
1332
1775
  } | {
1333
1776
  id: string;
1334
1777
  params: Record<string, import("./common").JsonValue>;
@@ -1339,26 +1782,26 @@ export declare const WorkflowSchema: z.ZodObject<{
1339
1782
  id: string;
1340
1783
  response: Record<string, import("./common").JsonValue>;
1341
1784
  type: "intervention";
1342
- key: string;
1343
1785
  input: Record<string, import("./common").JsonValue>;
1786
+ key: string;
1344
1787
  description?: string | undefined;
1345
1788
  } | {
1346
1789
  id: string;
1347
1790
  type: "agent";
1348
- output: Record<string, import("./common").JsonValue>;
1349
- key: string;
1350
1791
  input: Record<string, import("./common").JsonValue>;
1792
+ key: string;
1793
+ output: Record<string, import("./common").JsonValue>;
1351
1794
  })[];
1352
1795
  latestRun: {
1353
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1796
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1354
1797
  projectId: string;
1355
1798
  id: string;
1356
- startedAt: string;
1357
- workflowId: string;
1358
1799
  requestedBy: {
1359
1800
  id: string;
1360
1801
  type: "user" | "serviceAccount" | "system";
1361
1802
  };
1803
+ startedAt: string;
1804
+ workflowId: string;
1362
1805
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1363
1806
  finishedAt?: string | undefined;
1364
1807
  queuedAt?: string | undefined;
@@ -1373,9 +1816,9 @@ export declare const WorkflowSchema: z.ZodObject<{
1373
1816
  nodes: ({
1374
1817
  id: string;
1375
1818
  type: "step";
1376
- output: Record<string, import("./common").JsonValue>;
1377
- key: string;
1378
1819
  input: Record<string, import("./common").JsonValue>;
1820
+ key: string;
1821
+ output: Record<string, import("./common").JsonValue>;
1379
1822
  } | {
1380
1823
  id: string;
1381
1824
  params: Record<string, import("./common").JsonValue>;
@@ -1386,26 +1829,26 @@ export declare const WorkflowSchema: z.ZodObject<{
1386
1829
  id: string;
1387
1830
  response: Record<string, import("./common").JsonValue>;
1388
1831
  type: "intervention";
1389
- key: string;
1390
1832
  input: Record<string, import("./common").JsonValue>;
1833
+ key: string;
1391
1834
  description?: string | undefined;
1392
1835
  } | {
1393
1836
  id: string;
1394
1837
  type: "agent";
1395
- output: Record<string, import("./common").JsonValue>;
1396
- key: string;
1397
1838
  input: Record<string, import("./common").JsonValue>;
1839
+ key: string;
1840
+ output: Record<string, import("./common").JsonValue>;
1398
1841
  })[];
1399
1842
  latestRun: {
1400
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1843
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1401
1844
  projectId: string;
1402
1845
  id: string;
1403
- startedAt: string;
1404
- workflowId: string;
1405
1846
  requestedBy: {
1406
1847
  id: string;
1407
1848
  type: "user" | "serviceAccount" | "system";
1408
1849
  };
1850
+ startedAt: string;
1851
+ workflowId: string;
1409
1852
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1410
1853
  finishedAt?: string | undefined;
1411
1854
  queuedAt?: string | undefined;
@@ -1432,28 +1875,28 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1432
1875
  type: "user" | "serviceAccount" | "system";
1433
1876
  }>;
1434
1877
  }, "strip", z.ZodTypeAny, {
1435
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1878
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1436
1879
  projectId: string;
1437
1880
  id: string;
1438
- startedAt: string;
1439
- workflowId: string;
1440
1881
  requestedBy: {
1441
1882
  id: string;
1442
1883
  type: "user" | "serviceAccount" | "system";
1443
1884
  };
1885
+ startedAt: string;
1886
+ workflowId: string;
1444
1887
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1445
1888
  finishedAt?: string | undefined;
1446
1889
  queuedAt?: string | undefined;
1447
1890
  }, {
1448
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1891
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1449
1892
  projectId: string;
1450
1893
  id: string;
1451
- startedAt: string;
1452
- workflowId: string;
1453
1894
  requestedBy: {
1454
1895
  id: string;
1455
1896
  type: "user" | "serviceAccount" | "system";
1456
1897
  };
1898
+ startedAt: string;
1899
+ workflowId: string;
1457
1900
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1458
1901
  finishedAt?: string | undefined;
1459
1902
  queuedAt?: string | undefined;
@@ -1462,15 +1905,15 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1462
1905
  total: z.ZodNumber;
1463
1906
  }, "strip", z.ZodTypeAny, {
1464
1907
  runs: {
1465
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1908
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1466
1909
  projectId: string;
1467
1910
  id: string;
1468
- startedAt: string;
1469
- workflowId: string;
1470
1911
  requestedBy: {
1471
1912
  id: string;
1472
1913
  type: "user" | "serviceAccount" | "system";
1473
1914
  };
1915
+ startedAt: string;
1916
+ workflowId: string;
1474
1917
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1475
1918
  finishedAt?: string | undefined;
1476
1919
  queuedAt?: string | undefined;
@@ -1479,15 +1922,15 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1479
1922
  total: number;
1480
1923
  }, {
1481
1924
  runs: {
1482
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1925
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1483
1926
  projectId: string;
1484
1927
  id: string;
1485
- startedAt: string;
1486
- workflowId: string;
1487
1928
  requestedBy: {
1488
1929
  id: string;
1489
1930
  type: "user" | "serviceAccount" | "system";
1490
1931
  };
1932
+ startedAt: string;
1933
+ workflowId: string;
1491
1934
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1492
1935
  finishedAt?: string | undefined;
1493
1936
  queuedAt?: string | undefined;
@@ -1519,35 +1962,35 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1519
1962
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1520
1963
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1521
1964
  }, "strip", z.ZodTypeAny, {
1522
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1965
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1523
1966
  projectId: string;
1524
1967
  id: string;
1525
- startedAt: string;
1526
- input: Record<string, import("./common").JsonValue>;
1527
- workflowId: string;
1528
1968
  requestedBy: {
1529
1969
  id: string;
1530
1970
  type: "user" | "serviceAccount" | "system";
1531
1971
  };
1972
+ startedAt: string;
1973
+ workflowId: string;
1974
+ input: Record<string, import("./common").JsonValue>;
1532
1975
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1533
1976
  finishedAt?: string | undefined;
1534
- output?: Record<string, import("./common").JsonValue> | undefined;
1535
1977
  queuedAt?: string | undefined;
1978
+ output?: Record<string, import("./common").JsonValue> | undefined;
1536
1979
  }, {
1537
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1980
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1538
1981
  projectId: string;
1539
1982
  id: string;
1540
- startedAt: string;
1541
- input: Record<string, import("./common").JsonValue>;
1542
- workflowId: string;
1543
1983
  requestedBy: {
1544
1984
  id: string;
1545
1985
  type: "user" | "serviceAccount" | "system";
1546
1986
  };
1987
+ startedAt: string;
1988
+ workflowId: string;
1989
+ input: Record<string, import("./common").JsonValue>;
1547
1990
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1548
1991
  finishedAt?: string | undefined;
1549
- output?: Record<string, import("./common").JsonValue> | undefined;
1550
1992
  queuedAt?: string | undefined;
1993
+ output?: Record<string, import("./common").JsonValue> | undefined;
1551
1994
  }>;
1552
1995
  nodes: z.ZodArray<z.ZodObject<{
1553
1996
  id: z.ZodString;
@@ -1579,6 +2022,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1579
2022
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
1580
2023
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1581
2024
  audioDurationMs: z.ZodOptional<z.ZodNumber>;
2025
+ imageOutputTokens: z.ZodOptional<z.ZodNumber>;
2026
+ audioOutputTokens: z.ZodOptional<z.ZodNumber>;
2027
+ outputImages: z.ZodOptional<z.ZodNumber>;
2028
+ inputCharacters: z.ZodOptional<z.ZodNumber>;
1582
2029
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1583
2030
  }, "strip", z.ZodTypeAny, {
1584
2031
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -1591,6 +2038,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1591
2038
  textOutputTokens?: number | undefined;
1592
2039
  reasoningOutputTokens?: number | undefined;
1593
2040
  audioDurationMs?: number | undefined;
2041
+ imageOutputTokens?: number | undefined;
2042
+ audioOutputTokens?: number | undefined;
2043
+ outputImages?: number | undefined;
2044
+ inputCharacters?: number | undefined;
1594
2045
  }, {
1595
2046
  reportingStatus: "partial" | "complete" | "unavailable";
1596
2047
  inputTokens?: number | undefined;
@@ -1602,6 +2053,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1602
2053
  textOutputTokens?: number | undefined;
1603
2054
  reasoningOutputTokens?: number | undefined;
1604
2055
  audioDurationMs?: number | undefined;
2056
+ imageOutputTokens?: number | undefined;
2057
+ audioOutputTokens?: number | undefined;
2058
+ outputImages?: number | undefined;
2059
+ inputCharacters?: number | undefined;
1605
2060
  }>>;
1606
2061
  cost: z.ZodOptional<z.ZodObject<{
1607
2062
  amounts: z.ZodArray<z.ZodObject<{
@@ -1637,7 +2092,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1637
2092
  startedAt: z.ZodOptional<z.ZodString>;
1638
2093
  completedAt: z.ZodOptional<z.ZodString>;
1639
2094
  }, "strip", z.ZodTypeAny, {
1640
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2095
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1641
2096
  attempt: number;
1642
2097
  modelId?: string | undefined;
1643
2098
  startedAt?: string | undefined;
@@ -1653,6 +2108,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1653
2108
  textOutputTokens?: number | undefined;
1654
2109
  reasoningOutputTokens?: number | undefined;
1655
2110
  audioDurationMs?: number | undefined;
2111
+ imageOutputTokens?: number | undefined;
2112
+ audioOutputTokens?: number | undefined;
2113
+ outputImages?: number | undefined;
2114
+ inputCharacters?: number | undefined;
1656
2115
  } | undefined;
1657
2116
  cost?: {
1658
2117
  amounts: {
@@ -1665,7 +2124,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1665
2124
  } | undefined;
1666
2125
  finishReason?: string | undefined;
1667
2126
  }, {
1668
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2127
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1669
2128
  attempt: number;
1670
2129
  modelId?: string | undefined;
1671
2130
  startedAt?: string | undefined;
@@ -1681,6 +2140,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1681
2140
  textOutputTokens?: number | undefined;
1682
2141
  reasoningOutputTokens?: number | undefined;
1683
2142
  audioDurationMs?: number | undefined;
2143
+ imageOutputTokens?: number | undefined;
2144
+ audioOutputTokens?: number | undefined;
2145
+ outputImages?: number | undefined;
2146
+ inputCharacters?: number | undefined;
1684
2147
  } | undefined;
1685
2148
  cost?: {
1686
2149
  amounts: {
@@ -1694,20 +2157,20 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1694
2157
  finishReason?: string | undefined;
1695
2158
  }>>;
1696
2159
  }, "strip", z.ZodTypeAny, {
1697
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2160
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1698
2161
  projectId: string;
1699
2162
  id: string;
1700
2163
  startedAt: string;
1701
- input: Record<string, import("./common").JsonValue>;
1702
2164
  workflowId: string;
2165
+ input: Record<string, import("./common").JsonValue>;
1703
2166
  workflowRunId: string;
1704
- nodeIndex: number;
1705
- nodeType: "agent" | "action" | "step" | "intervention";
1706
2167
  nodeId: string;
1707
2168
  nodeKey: string;
2169
+ nodeIndex: number;
2170
+ nodeType: "agent" | "action" | "step" | "intervention";
1708
2171
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1709
2172
  agentExecution?: {
1710
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2173
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1711
2174
  attempt: number;
1712
2175
  modelId?: string | undefined;
1713
2176
  startedAt?: string | undefined;
@@ -1723,6 +2186,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1723
2186
  textOutputTokens?: number | undefined;
1724
2187
  reasoningOutputTokens?: number | undefined;
1725
2188
  audioDurationMs?: number | undefined;
2189
+ imageOutputTokens?: number | undefined;
2190
+ audioOutputTokens?: number | undefined;
2191
+ outputImages?: number | undefined;
2192
+ inputCharacters?: number | undefined;
1726
2193
  } | undefined;
1727
2194
  cost?: {
1728
2195
  amounts: {
@@ -1738,20 +2205,20 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1738
2205
  finishedAt?: string | undefined;
1739
2206
  output?: Record<string, import("./common").JsonValue> | undefined;
1740
2207
  }, {
1741
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2208
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1742
2209
  projectId: string;
1743
2210
  id: string;
1744
2211
  startedAt: string;
1745
- input: Record<string, import("./common").JsonValue>;
1746
2212
  workflowId: string;
2213
+ input: Record<string, import("./common").JsonValue>;
1747
2214
  workflowRunId: string;
1748
- nodeIndex: number;
1749
- nodeType: "agent" | "action" | "step" | "intervention";
1750
2215
  nodeId: string;
1751
2216
  nodeKey: string;
2217
+ nodeIndex: number;
2218
+ nodeType: "agent" | "action" | "step" | "intervention";
1752
2219
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1753
2220
  agentExecution?: {
1754
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2221
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1755
2222
  attempt: number;
1756
2223
  modelId?: string | undefined;
1757
2224
  startedAt?: string | undefined;
@@ -1767,6 +2234,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1767
2234
  textOutputTokens?: number | undefined;
1768
2235
  reasoningOutputTokens?: number | undefined;
1769
2236
  audioDurationMs?: number | undefined;
2237
+ imageOutputTokens?: number | undefined;
2238
+ audioOutputTokens?: number | undefined;
2239
+ outputImages?: number | undefined;
2240
+ inputCharacters?: number | undefined;
1770
2241
  } | undefined;
1771
2242
  cost?: {
1772
2243
  amounts: {
@@ -1784,36 +2255,36 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1784
2255
  }>, "many">;
1785
2256
  }, "strip", z.ZodTypeAny, {
1786
2257
  run: {
1787
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2258
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1788
2259
  projectId: string;
1789
2260
  id: string;
1790
- startedAt: string;
1791
- input: Record<string, import("./common").JsonValue>;
1792
- workflowId: string;
1793
2261
  requestedBy: {
1794
2262
  id: string;
1795
2263
  type: "user" | "serviceAccount" | "system";
1796
2264
  };
2265
+ startedAt: string;
2266
+ workflowId: string;
2267
+ input: Record<string, import("./common").JsonValue>;
1797
2268
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1798
2269
  finishedAt?: string | undefined;
1799
- output?: Record<string, import("./common").JsonValue> | undefined;
1800
2270
  queuedAt?: string | undefined;
2271
+ output?: Record<string, import("./common").JsonValue> | undefined;
1801
2272
  };
1802
2273
  nodes: {
1803
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2274
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1804
2275
  projectId: string;
1805
2276
  id: string;
1806
2277
  startedAt: string;
1807
- input: Record<string, import("./common").JsonValue>;
1808
2278
  workflowId: string;
2279
+ input: Record<string, import("./common").JsonValue>;
1809
2280
  workflowRunId: string;
1810
- nodeIndex: number;
1811
- nodeType: "agent" | "action" | "step" | "intervention";
1812
2281
  nodeId: string;
1813
2282
  nodeKey: string;
2283
+ nodeIndex: number;
2284
+ nodeType: "agent" | "action" | "step" | "intervention";
1814
2285
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1815
2286
  agentExecution?: {
1816
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2287
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1817
2288
  attempt: number;
1818
2289
  modelId?: string | undefined;
1819
2290
  startedAt?: string | undefined;
@@ -1829,6 +2300,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1829
2300
  textOutputTokens?: number | undefined;
1830
2301
  reasoningOutputTokens?: number | undefined;
1831
2302
  audioDurationMs?: number | undefined;
2303
+ imageOutputTokens?: number | undefined;
2304
+ audioOutputTokens?: number | undefined;
2305
+ outputImages?: number | undefined;
2306
+ inputCharacters?: number | undefined;
1832
2307
  } | undefined;
1833
2308
  cost?: {
1834
2309
  amounts: {
@@ -1846,36 +2321,36 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1846
2321
  }[];
1847
2322
  }, {
1848
2323
  run: {
1849
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2324
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1850
2325
  projectId: string;
1851
2326
  id: string;
1852
- startedAt: string;
1853
- input: Record<string, import("./common").JsonValue>;
1854
- workflowId: string;
1855
2327
  requestedBy: {
1856
2328
  id: string;
1857
2329
  type: "user" | "serviceAccount" | "system";
1858
2330
  };
2331
+ startedAt: string;
2332
+ workflowId: string;
2333
+ input: Record<string, import("./common").JsonValue>;
1859
2334
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1860
2335
  finishedAt?: string | undefined;
1861
- output?: Record<string, import("./common").JsonValue> | undefined;
1862
2336
  queuedAt?: string | undefined;
2337
+ output?: Record<string, import("./common").JsonValue> | undefined;
1863
2338
  };
1864
2339
  nodes: {
1865
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2340
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
1866
2341
  projectId: string;
1867
2342
  id: string;
1868
2343
  startedAt: string;
1869
- input: Record<string, import("./common").JsonValue>;
1870
2344
  workflowId: string;
2345
+ input: Record<string, import("./common").JsonValue>;
1871
2346
  workflowRunId: string;
1872
- nodeIndex: number;
1873
- nodeType: "agent" | "action" | "step" | "intervention";
1874
2347
  nodeId: string;
1875
2348
  nodeKey: string;
2349
+ nodeIndex: number;
2350
+ nodeType: "agent" | "action" | "step" | "intervention";
1876
2351
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1877
2352
  agentExecution?: {
1878
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2353
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
1879
2354
  attempt: number;
1880
2355
  modelId?: string | undefined;
1881
2356
  startedAt?: string | undefined;
@@ -1891,6 +2366,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1891
2366
  textOutputTokens?: number | undefined;
1892
2367
  reasoningOutputTokens?: number | undefined;
1893
2368
  audioDurationMs?: number | undefined;
2369
+ imageOutputTokens?: number | undefined;
2370
+ audioOutputTokens?: number | undefined;
2371
+ outputImages?: number | undefined;
2372
+ inputCharacters?: number | undefined;
1894
2373
  } | undefined;
1895
2374
  cost?: {
1896
2375
  amounts: {
@@ -1931,35 +2410,35 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1931
2410
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1932
2411
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1933
2412
  }, "strip", z.ZodTypeAny, {
1934
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2413
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1935
2414
  projectId: string;
1936
2415
  id: string;
1937
- startedAt: string;
1938
- input: Record<string, import("./common").JsonValue>;
1939
- workflowId: string;
1940
2416
  requestedBy: {
1941
2417
  id: string;
1942
2418
  type: "user" | "serviceAccount" | "system";
1943
2419
  };
2420
+ startedAt: string;
2421
+ workflowId: string;
2422
+ input: Record<string, import("./common").JsonValue>;
1944
2423
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1945
2424
  finishedAt?: string | undefined;
1946
- output?: Record<string, import("./common").JsonValue> | undefined;
1947
2425
  queuedAt?: string | undefined;
2426
+ output?: Record<string, import("./common").JsonValue> | undefined;
1948
2427
  }, {
1949
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2428
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
1950
2429
  projectId: string;
1951
2430
  id: string;
1952
- startedAt: string;
1953
- input: Record<string, import("./common").JsonValue>;
1954
- workflowId: string;
1955
2431
  requestedBy: {
1956
2432
  id: string;
1957
2433
  type: "user" | "serviceAccount" | "system";
1958
2434
  };
2435
+ startedAt: string;
2436
+ workflowId: string;
2437
+ input: Record<string, import("./common").JsonValue>;
1959
2438
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1960
2439
  finishedAt?: string | undefined;
1961
- output?: Record<string, import("./common").JsonValue> | undefined;
1962
2440
  queuedAt?: string | undefined;
2441
+ output?: Record<string, import("./common").JsonValue> | undefined;
1963
2442
  }>;
1964
2443
  nodes: z.ZodArray<z.ZodObject<{
1965
2444
  id: z.ZodString;
@@ -1991,6 +2470,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1991
2470
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
1992
2471
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1993
2472
  audioDurationMs: z.ZodOptional<z.ZodNumber>;
2473
+ imageOutputTokens: z.ZodOptional<z.ZodNumber>;
2474
+ audioOutputTokens: z.ZodOptional<z.ZodNumber>;
2475
+ outputImages: z.ZodOptional<z.ZodNumber>;
2476
+ inputCharacters: z.ZodOptional<z.ZodNumber>;
1994
2477
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1995
2478
  }, "strip", z.ZodTypeAny, {
1996
2479
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -2003,6 +2486,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2003
2486
  textOutputTokens?: number | undefined;
2004
2487
  reasoningOutputTokens?: number | undefined;
2005
2488
  audioDurationMs?: number | undefined;
2489
+ imageOutputTokens?: number | undefined;
2490
+ audioOutputTokens?: number | undefined;
2491
+ outputImages?: number | undefined;
2492
+ inputCharacters?: number | undefined;
2006
2493
  }, {
2007
2494
  reportingStatus: "partial" | "complete" | "unavailable";
2008
2495
  inputTokens?: number | undefined;
@@ -2014,6 +2501,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2014
2501
  textOutputTokens?: number | undefined;
2015
2502
  reasoningOutputTokens?: number | undefined;
2016
2503
  audioDurationMs?: number | undefined;
2504
+ imageOutputTokens?: number | undefined;
2505
+ audioOutputTokens?: number | undefined;
2506
+ outputImages?: number | undefined;
2507
+ inputCharacters?: number | undefined;
2017
2508
  }>>;
2018
2509
  cost: z.ZodOptional<z.ZodObject<{
2019
2510
  amounts: z.ZodArray<z.ZodObject<{
@@ -2049,7 +2540,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2049
2540
  startedAt: z.ZodOptional<z.ZodString>;
2050
2541
  completedAt: z.ZodOptional<z.ZodString>;
2051
2542
  }, "strip", z.ZodTypeAny, {
2052
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2543
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2053
2544
  attempt: number;
2054
2545
  modelId?: string | undefined;
2055
2546
  startedAt?: string | undefined;
@@ -2065,6 +2556,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2065
2556
  textOutputTokens?: number | undefined;
2066
2557
  reasoningOutputTokens?: number | undefined;
2067
2558
  audioDurationMs?: number | undefined;
2559
+ imageOutputTokens?: number | undefined;
2560
+ audioOutputTokens?: number | undefined;
2561
+ outputImages?: number | undefined;
2562
+ inputCharacters?: number | undefined;
2068
2563
  } | undefined;
2069
2564
  cost?: {
2070
2565
  amounts: {
@@ -2077,7 +2572,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2077
2572
  } | undefined;
2078
2573
  finishReason?: string | undefined;
2079
2574
  }, {
2080
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2575
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2081
2576
  attempt: number;
2082
2577
  modelId?: string | undefined;
2083
2578
  startedAt?: string | undefined;
@@ -2093,6 +2588,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2093
2588
  textOutputTokens?: number | undefined;
2094
2589
  reasoningOutputTokens?: number | undefined;
2095
2590
  audioDurationMs?: number | undefined;
2591
+ imageOutputTokens?: number | undefined;
2592
+ audioOutputTokens?: number | undefined;
2593
+ outputImages?: number | undefined;
2594
+ inputCharacters?: number | undefined;
2096
2595
  } | undefined;
2097
2596
  cost?: {
2098
2597
  amounts: {
@@ -2106,20 +2605,20 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2106
2605
  finishReason?: string | undefined;
2107
2606
  }>>;
2108
2607
  }, "strip", z.ZodTypeAny, {
2109
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2608
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
2110
2609
  projectId: string;
2111
2610
  id: string;
2112
2611
  startedAt: string;
2113
- input: Record<string, import("./common").JsonValue>;
2114
2612
  workflowId: string;
2613
+ input: Record<string, import("./common").JsonValue>;
2115
2614
  workflowRunId: string;
2116
- nodeIndex: number;
2117
- nodeType: "agent" | "action" | "step" | "intervention";
2118
2615
  nodeId: string;
2119
2616
  nodeKey: string;
2617
+ nodeIndex: number;
2618
+ nodeType: "agent" | "action" | "step" | "intervention";
2120
2619
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2121
2620
  agentExecution?: {
2122
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2621
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2123
2622
  attempt: number;
2124
2623
  modelId?: string | undefined;
2125
2624
  startedAt?: string | undefined;
@@ -2135,6 +2634,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2135
2634
  textOutputTokens?: number | undefined;
2136
2635
  reasoningOutputTokens?: number | undefined;
2137
2636
  audioDurationMs?: number | undefined;
2637
+ imageOutputTokens?: number | undefined;
2638
+ audioOutputTokens?: number | undefined;
2639
+ outputImages?: number | undefined;
2640
+ inputCharacters?: number | undefined;
2138
2641
  } | undefined;
2139
2642
  cost?: {
2140
2643
  amounts: {
@@ -2150,20 +2653,20 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2150
2653
  finishedAt?: string | undefined;
2151
2654
  output?: Record<string, import("./common").JsonValue> | undefined;
2152
2655
  }, {
2153
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2656
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
2154
2657
  projectId: string;
2155
2658
  id: string;
2156
2659
  startedAt: string;
2157
- input: Record<string, import("./common").JsonValue>;
2158
2660
  workflowId: string;
2661
+ input: Record<string, import("./common").JsonValue>;
2159
2662
  workflowRunId: string;
2160
- nodeIndex: number;
2161
- nodeType: "agent" | "action" | "step" | "intervention";
2162
2663
  nodeId: string;
2163
2664
  nodeKey: string;
2665
+ nodeIndex: number;
2666
+ nodeType: "agent" | "action" | "step" | "intervention";
2164
2667
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2165
2668
  agentExecution?: {
2166
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2669
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2167
2670
  attempt: number;
2168
2671
  modelId?: string | undefined;
2169
2672
  startedAt?: string | undefined;
@@ -2179,6 +2682,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2179
2682
  textOutputTokens?: number | undefined;
2180
2683
  reasoningOutputTokens?: number | undefined;
2181
2684
  audioDurationMs?: number | undefined;
2685
+ imageOutputTokens?: number | undefined;
2686
+ audioOutputTokens?: number | undefined;
2687
+ outputImages?: number | undefined;
2688
+ inputCharacters?: number | undefined;
2182
2689
  } | undefined;
2183
2690
  cost?: {
2184
2691
  amounts: {
@@ -2196,36 +2703,36 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2196
2703
  }>, "many">;
2197
2704
  }, "strip", z.ZodTypeAny, {
2198
2705
  run: {
2199
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2706
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
2200
2707
  projectId: string;
2201
2708
  id: string;
2202
- startedAt: string;
2203
- input: Record<string, import("./common").JsonValue>;
2204
- workflowId: string;
2205
2709
  requestedBy: {
2206
2710
  id: string;
2207
2711
  type: "user" | "serviceAccount" | "system";
2208
2712
  };
2713
+ startedAt: string;
2714
+ workflowId: string;
2715
+ input: Record<string, import("./common").JsonValue>;
2209
2716
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2210
2717
  finishedAt?: string | undefined;
2211
- output?: Record<string, import("./common").JsonValue> | undefined;
2212
2718
  queuedAt?: string | undefined;
2719
+ output?: Record<string, import("./common").JsonValue> | undefined;
2213
2720
  };
2214
2721
  nodes: {
2215
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2722
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
2216
2723
  projectId: string;
2217
2724
  id: string;
2218
2725
  startedAt: string;
2219
- input: Record<string, import("./common").JsonValue>;
2220
2726
  workflowId: string;
2727
+ input: Record<string, import("./common").JsonValue>;
2221
2728
  workflowRunId: string;
2222
- nodeIndex: number;
2223
- nodeType: "agent" | "action" | "step" | "intervention";
2224
2729
  nodeId: string;
2225
2730
  nodeKey: string;
2731
+ nodeIndex: number;
2732
+ nodeType: "agent" | "action" | "step" | "intervention";
2226
2733
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2227
2734
  agentExecution?: {
2228
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2735
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2229
2736
  attempt: number;
2230
2737
  modelId?: string | undefined;
2231
2738
  startedAt?: string | undefined;
@@ -2241,6 +2748,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2241
2748
  textOutputTokens?: number | undefined;
2242
2749
  reasoningOutputTokens?: number | undefined;
2243
2750
  audioDurationMs?: number | undefined;
2751
+ imageOutputTokens?: number | undefined;
2752
+ audioOutputTokens?: number | undefined;
2753
+ outputImages?: number | undefined;
2754
+ inputCharacters?: number | undefined;
2244
2755
  } | undefined;
2245
2756
  cost?: {
2246
2757
  amounts: {
@@ -2258,36 +2769,36 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2258
2769
  }[];
2259
2770
  }, {
2260
2771
  run: {
2261
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2772
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
2262
2773
  projectId: string;
2263
2774
  id: string;
2264
- startedAt: string;
2265
- input: Record<string, import("./common").JsonValue>;
2266
- workflowId: string;
2267
2775
  requestedBy: {
2268
2776
  id: string;
2269
2777
  type: "user" | "serviceAccount" | "system";
2270
2778
  };
2779
+ startedAt: string;
2780
+ workflowId: string;
2781
+ input: Record<string, import("./common").JsonValue>;
2271
2782
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2272
2783
  finishedAt?: string | undefined;
2273
- output?: Record<string, import("./common").JsonValue> | undefined;
2274
2784
  queuedAt?: string | undefined;
2785
+ output?: Record<string, import("./common").JsonValue> | undefined;
2275
2786
  };
2276
2787
  nodes: {
2277
- status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2788
+ status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
2278
2789
  projectId: string;
2279
2790
  id: string;
2280
2791
  startedAt: string;
2281
- input: Record<string, import("./common").JsonValue>;
2282
2792
  workflowId: string;
2793
+ input: Record<string, import("./common").JsonValue>;
2283
2794
  workflowRunId: string;
2284
- nodeIndex: number;
2285
- nodeType: "agent" | "action" | "step" | "intervention";
2286
2795
  nodeId: string;
2287
2796
  nodeKey: string;
2797
+ nodeIndex: number;
2798
+ nodeType: "agent" | "action" | "step" | "intervention";
2288
2799
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2289
2800
  agentExecution?: {
2290
- status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2801
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
2291
2802
  attempt: number;
2292
2803
  modelId?: string | undefined;
2293
2804
  startedAt?: string | undefined;
@@ -2303,6 +2814,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2303
2814
  textOutputTokens?: number | undefined;
2304
2815
  reasoningOutputTokens?: number | undefined;
2305
2816
  audioDurationMs?: number | undefined;
2817
+ imageOutputTokens?: number | undefined;
2818
+ audioOutputTokens?: number | undefined;
2819
+ outputImages?: number | undefined;
2820
+ inputCharacters?: number | undefined;
2306
2821
  } | undefined;
2307
2822
  cost?: {
2308
2823
  amounts: {
@@ -2360,23 +2875,22 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2360
2875
  }>>;
2361
2876
  expiredAt: z.ZodOptional<z.ZodString>;
2362
2877
  }, "strip", z.ZodTypeAny, {
2363
- status: "expired" | "pending" | "cancelled" | "submitted";
2878
+ status: "pending" | "cancelled" | "expired" | "submitted";
2364
2879
  projectId: string;
2365
2880
  id: string;
2366
- input: Record<string, import("./common").JsonValue>;
2367
2881
  workflowId: string;
2882
+ input: Record<string, import("./common").JsonValue>;
2368
2883
  workflowRunId: string;
2369
2884
  nodeRunId: string;
2370
- nodeIndex: number;
2885
+ interventionId: string;
2371
2886
  nodeId: string;
2372
2887
  nodeKey: string;
2373
- interventionId: string;
2888
+ nodeIndex: number;
2374
2889
  defaultResponse: Record<string, import("./common").JsonValue>;
2375
2890
  requestedAt: string;
2376
2891
  response?: Record<string, import("./common").JsonValue> | undefined;
2377
2892
  expiresAt?: string | undefined;
2378
2893
  submittedAt?: string | undefined;
2379
- expiredAt?: string | undefined;
2380
2894
  submittedBy?: {
2381
2895
  id: string;
2382
2896
  type: "user" | "serviceAccount" | "system";
@@ -2386,24 +2900,24 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2386
2900
  id: string;
2387
2901
  type: "user" | "serviceAccount" | "system";
2388
2902
  } | undefined;
2903
+ expiredAt?: string | undefined;
2389
2904
  }, {
2390
- status: "expired" | "pending" | "cancelled" | "submitted";
2905
+ status: "pending" | "cancelled" | "expired" | "submitted";
2391
2906
  projectId: string;
2392
2907
  id: string;
2393
- input: Record<string, import("./common").JsonValue>;
2394
2908
  workflowId: string;
2909
+ input: Record<string, import("./common").JsonValue>;
2395
2910
  workflowRunId: string;
2396
2911
  nodeRunId: string;
2397
- nodeIndex: number;
2912
+ interventionId: string;
2398
2913
  nodeId: string;
2399
2914
  nodeKey: string;
2400
- interventionId: string;
2915
+ nodeIndex: number;
2401
2916
  defaultResponse: Record<string, import("./common").JsonValue>;
2402
2917
  requestedAt: string;
2403
2918
  response?: Record<string, import("./common").JsonValue> | undefined;
2404
2919
  expiresAt?: string | undefined;
2405
2920
  submittedAt?: string | undefined;
2406
- expiredAt?: string | undefined;
2407
2921
  submittedBy?: {
2408
2922
  id: string;
2409
2923
  type: "user" | "serviceAccount" | "system";
@@ -2413,6 +2927,7 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2413
2927
  id: string;
2414
2928
  type: "user" | "serviceAccount" | "system";
2415
2929
  } | undefined;
2930
+ expiredAt?: string | undefined;
2416
2931
  }>, "many">;
2417
2932
  hasMore: z.ZodBoolean;
2418
2933
  total: z.ZodNumber;
@@ -2420,23 +2935,22 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2420
2935
  hasMore: boolean;
2421
2936
  total: number;
2422
2937
  interventions: {
2423
- status: "expired" | "pending" | "cancelled" | "submitted";
2938
+ status: "pending" | "cancelled" | "expired" | "submitted";
2424
2939
  projectId: string;
2425
2940
  id: string;
2426
- input: Record<string, import("./common").JsonValue>;
2427
2941
  workflowId: string;
2942
+ input: Record<string, import("./common").JsonValue>;
2428
2943
  workflowRunId: string;
2429
2944
  nodeRunId: string;
2430
- nodeIndex: number;
2945
+ interventionId: string;
2431
2946
  nodeId: string;
2432
2947
  nodeKey: string;
2433
- interventionId: string;
2948
+ nodeIndex: number;
2434
2949
  defaultResponse: Record<string, import("./common").JsonValue>;
2435
2950
  requestedAt: string;
2436
2951
  response?: Record<string, import("./common").JsonValue> | undefined;
2437
2952
  expiresAt?: string | undefined;
2438
2953
  submittedAt?: string | undefined;
2439
- expiredAt?: string | undefined;
2440
2954
  submittedBy?: {
2441
2955
  id: string;
2442
2956
  type: "user" | "serviceAccount" | "system";
@@ -2446,28 +2960,28 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2446
2960
  id: string;
2447
2961
  type: "user" | "serviceAccount" | "system";
2448
2962
  } | undefined;
2963
+ expiredAt?: string | undefined;
2449
2964
  }[];
2450
2965
  }, {
2451
2966
  hasMore: boolean;
2452
2967
  total: number;
2453
2968
  interventions: {
2454
- status: "expired" | "pending" | "cancelled" | "submitted";
2969
+ status: "pending" | "cancelled" | "expired" | "submitted";
2455
2970
  projectId: string;
2456
2971
  id: string;
2457
- input: Record<string, import("./common").JsonValue>;
2458
2972
  workflowId: string;
2973
+ input: Record<string, import("./common").JsonValue>;
2459
2974
  workflowRunId: string;
2460
2975
  nodeRunId: string;
2461
- nodeIndex: number;
2976
+ interventionId: string;
2462
2977
  nodeId: string;
2463
2978
  nodeKey: string;
2464
- interventionId: string;
2979
+ nodeIndex: number;
2465
2980
  defaultResponse: Record<string, import("./common").JsonValue>;
2466
2981
  requestedAt: string;
2467
2982
  response?: Record<string, import("./common").JsonValue> | undefined;
2468
2983
  expiresAt?: string | undefined;
2469
2984
  submittedAt?: string | undefined;
2470
- expiredAt?: string | undefined;
2471
2985
  submittedBy?: {
2472
2986
  id: string;
2473
2987
  type: "user" | "serviceAccount" | "system";
@@ -2477,6 +2991,7 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2477
2991
  id: string;
2478
2992
  type: "user" | "serviceAccount" | "system";
2479
2993
  } | undefined;
2994
+ expiredAt?: string | undefined;
2480
2995
  }[];
2481
2996
  }>;
2482
2997
  export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
@@ -2520,23 +3035,22 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2520
3035
  }>>;
2521
3036
  expiredAt: z.ZodOptional<z.ZodString>;
2522
3037
  }, "strip", z.ZodTypeAny, {
2523
- status: "expired" | "pending" | "cancelled" | "submitted";
3038
+ status: "pending" | "cancelled" | "expired" | "submitted";
2524
3039
  projectId: string;
2525
3040
  id: string;
2526
- input: Record<string, import("./common").JsonValue>;
2527
3041
  workflowId: string;
3042
+ input: Record<string, import("./common").JsonValue>;
2528
3043
  workflowRunId: string;
2529
3044
  nodeRunId: string;
2530
- nodeIndex: number;
3045
+ interventionId: string;
2531
3046
  nodeId: string;
2532
3047
  nodeKey: string;
2533
- interventionId: string;
3048
+ nodeIndex: number;
2534
3049
  defaultResponse: Record<string, import("./common").JsonValue>;
2535
3050
  requestedAt: string;
2536
3051
  response?: Record<string, import("./common").JsonValue> | undefined;
2537
3052
  expiresAt?: string | undefined;
2538
3053
  submittedAt?: string | undefined;
2539
- expiredAt?: string | undefined;
2540
3054
  submittedBy?: {
2541
3055
  id: string;
2542
3056
  type: "user" | "serviceAccount" | "system";
@@ -2546,24 +3060,24 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2546
3060
  id: string;
2547
3061
  type: "user" | "serviceAccount" | "system";
2548
3062
  } | undefined;
3063
+ expiredAt?: string | undefined;
2549
3064
  }, {
2550
- status: "expired" | "pending" | "cancelled" | "submitted";
3065
+ status: "pending" | "cancelled" | "expired" | "submitted";
2551
3066
  projectId: string;
2552
3067
  id: string;
2553
- input: Record<string, import("./common").JsonValue>;
2554
3068
  workflowId: string;
3069
+ input: Record<string, import("./common").JsonValue>;
2555
3070
  workflowRunId: string;
2556
3071
  nodeRunId: string;
2557
- nodeIndex: number;
3072
+ interventionId: string;
2558
3073
  nodeId: string;
2559
3074
  nodeKey: string;
2560
- interventionId: string;
3075
+ nodeIndex: number;
2561
3076
  defaultResponse: Record<string, import("./common").JsonValue>;
2562
3077
  requestedAt: string;
2563
3078
  response?: Record<string, import("./common").JsonValue> | undefined;
2564
3079
  expiresAt?: string | undefined;
2565
3080
  submittedAt?: string | undefined;
2566
- expiredAt?: string | undefined;
2567
3081
  submittedBy?: {
2568
3082
  id: string;
2569
3083
  type: "user" | "serviceAccount" | "system";
@@ -2573,28 +3087,27 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2573
3087
  id: string;
2574
3088
  type: "user" | "serviceAccount" | "system";
2575
3089
  } | undefined;
3090
+ expiredAt?: string | undefined;
2576
3091
  }>;
2577
3092
  jobId: z.ZodString;
2578
3093
  }, "strip", z.ZodTypeAny, {
2579
- jobId: string;
2580
3094
  intervention: {
2581
- status: "expired" | "pending" | "cancelled" | "submitted";
3095
+ status: "pending" | "cancelled" | "expired" | "submitted";
2582
3096
  projectId: string;
2583
3097
  id: string;
2584
- input: Record<string, import("./common").JsonValue>;
2585
3098
  workflowId: string;
3099
+ input: Record<string, import("./common").JsonValue>;
2586
3100
  workflowRunId: string;
2587
3101
  nodeRunId: string;
2588
- nodeIndex: number;
3102
+ interventionId: string;
2589
3103
  nodeId: string;
2590
3104
  nodeKey: string;
2591
- interventionId: string;
3105
+ nodeIndex: number;
2592
3106
  defaultResponse: Record<string, import("./common").JsonValue>;
2593
3107
  requestedAt: string;
2594
3108
  response?: Record<string, import("./common").JsonValue> | undefined;
2595
3109
  expiresAt?: string | undefined;
2596
3110
  submittedAt?: string | undefined;
2597
- expiredAt?: string | undefined;
2598
3111
  submittedBy?: {
2599
3112
  id: string;
2600
3113
  type: "user" | "serviceAccount" | "system";
@@ -2604,27 +3117,27 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2604
3117
  id: string;
2605
3118
  type: "user" | "serviceAccount" | "system";
2606
3119
  } | undefined;
3120
+ expiredAt?: string | undefined;
2607
3121
  };
2608
- }, {
2609
3122
  jobId: string;
3123
+ }, {
2610
3124
  intervention: {
2611
- status: "expired" | "pending" | "cancelled" | "submitted";
3125
+ status: "pending" | "cancelled" | "expired" | "submitted";
2612
3126
  projectId: string;
2613
3127
  id: string;
2614
- input: Record<string, import("./common").JsonValue>;
2615
3128
  workflowId: string;
3129
+ input: Record<string, import("./common").JsonValue>;
2616
3130
  workflowRunId: string;
2617
3131
  nodeRunId: string;
2618
- nodeIndex: number;
3132
+ interventionId: string;
2619
3133
  nodeId: string;
2620
3134
  nodeKey: string;
2621
- interventionId: string;
3135
+ nodeIndex: number;
2622
3136
  defaultResponse: Record<string, import("./common").JsonValue>;
2623
3137
  requestedAt: string;
2624
3138
  response?: Record<string, import("./common").JsonValue> | undefined;
2625
3139
  expiresAt?: string | undefined;
2626
3140
  submittedAt?: string | undefined;
2627
- expiredAt?: string | undefined;
2628
3141
  submittedBy?: {
2629
3142
  id: string;
2630
3143
  type: "user" | "serviceAccount" | "system";
@@ -2634,7 +3147,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2634
3147
  id: string;
2635
3148
  type: "user" | "serviceAccount" | "system";
2636
3149
  } | undefined;
3150
+ expiredAt?: string | undefined;
2637
3151
  };
3152
+ jobId: string;
2638
3153
  }>;
2639
3154
  export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2640
3155
  intervention: z.ZodObject<{
@@ -2677,23 +3192,22 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2677
3192
  }>>;
2678
3193
  expiredAt: z.ZodOptional<z.ZodString>;
2679
3194
  }, "strip", z.ZodTypeAny, {
2680
- status: "expired" | "pending" | "cancelled" | "submitted";
3195
+ status: "pending" | "cancelled" | "expired" | "submitted";
2681
3196
  projectId: string;
2682
3197
  id: string;
2683
- input: Record<string, import("./common").JsonValue>;
2684
3198
  workflowId: string;
3199
+ input: Record<string, import("./common").JsonValue>;
2685
3200
  workflowRunId: string;
2686
3201
  nodeRunId: string;
2687
- nodeIndex: number;
3202
+ interventionId: string;
2688
3203
  nodeId: string;
2689
3204
  nodeKey: string;
2690
- interventionId: string;
3205
+ nodeIndex: number;
2691
3206
  defaultResponse: Record<string, import("./common").JsonValue>;
2692
3207
  requestedAt: string;
2693
3208
  response?: Record<string, import("./common").JsonValue> | undefined;
2694
3209
  expiresAt?: string | undefined;
2695
3210
  submittedAt?: string | undefined;
2696
- expiredAt?: string | undefined;
2697
3211
  submittedBy?: {
2698
3212
  id: string;
2699
3213
  type: "user" | "serviceAccount" | "system";
@@ -2703,24 +3217,24 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2703
3217
  id: string;
2704
3218
  type: "user" | "serviceAccount" | "system";
2705
3219
  } | undefined;
3220
+ expiredAt?: string | undefined;
2706
3221
  }, {
2707
- status: "expired" | "pending" | "cancelled" | "submitted";
3222
+ status: "pending" | "cancelled" | "expired" | "submitted";
2708
3223
  projectId: string;
2709
3224
  id: string;
2710
- input: Record<string, import("./common").JsonValue>;
2711
3225
  workflowId: string;
3226
+ input: Record<string, import("./common").JsonValue>;
2712
3227
  workflowRunId: string;
2713
3228
  nodeRunId: string;
2714
- nodeIndex: number;
3229
+ interventionId: string;
2715
3230
  nodeId: string;
2716
3231
  nodeKey: string;
2717
- interventionId: string;
3232
+ nodeIndex: number;
2718
3233
  defaultResponse: Record<string, import("./common").JsonValue>;
2719
3234
  requestedAt: string;
2720
3235
  response?: Record<string, import("./common").JsonValue> | undefined;
2721
3236
  expiresAt?: string | undefined;
2722
3237
  submittedAt?: string | undefined;
2723
- expiredAt?: string | undefined;
2724
3238
  submittedBy?: {
2725
3239
  id: string;
2726
3240
  type: "user" | "serviceAccount" | "system";
@@ -2730,26 +3244,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2730
3244
  id: string;
2731
3245
  type: "user" | "serviceAccount" | "system";
2732
3246
  } | undefined;
3247
+ expiredAt?: string | undefined;
2733
3248
  }>;
2734
3249
  }, "strip", z.ZodTypeAny, {
2735
3250
  intervention: {
2736
- status: "expired" | "pending" | "cancelled" | "submitted";
3251
+ status: "pending" | "cancelled" | "expired" | "submitted";
2737
3252
  projectId: string;
2738
3253
  id: string;
2739
- input: Record<string, import("./common").JsonValue>;
2740
3254
  workflowId: string;
3255
+ input: Record<string, import("./common").JsonValue>;
2741
3256
  workflowRunId: string;
2742
3257
  nodeRunId: string;
2743
- nodeIndex: number;
3258
+ interventionId: string;
2744
3259
  nodeId: string;
2745
3260
  nodeKey: string;
2746
- interventionId: string;
3261
+ nodeIndex: number;
2747
3262
  defaultResponse: Record<string, import("./common").JsonValue>;
2748
3263
  requestedAt: string;
2749
3264
  response?: Record<string, import("./common").JsonValue> | undefined;
2750
3265
  expiresAt?: string | undefined;
2751
3266
  submittedAt?: string | undefined;
2752
- expiredAt?: string | undefined;
2753
3267
  submittedBy?: {
2754
3268
  id: string;
2755
3269
  type: "user" | "serviceAccount" | "system";
@@ -2759,26 +3273,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2759
3273
  id: string;
2760
3274
  type: "user" | "serviceAccount" | "system";
2761
3275
  } | undefined;
3276
+ expiredAt?: string | undefined;
2762
3277
  };
2763
3278
  }, {
2764
3279
  intervention: {
2765
- status: "expired" | "pending" | "cancelled" | "submitted";
3280
+ status: "pending" | "cancelled" | "expired" | "submitted";
2766
3281
  projectId: string;
2767
3282
  id: string;
2768
- input: Record<string, import("./common").JsonValue>;
2769
3283
  workflowId: string;
3284
+ input: Record<string, import("./common").JsonValue>;
2770
3285
  workflowRunId: string;
2771
3286
  nodeRunId: string;
2772
- nodeIndex: number;
3287
+ interventionId: string;
2773
3288
  nodeId: string;
2774
3289
  nodeKey: string;
2775
- interventionId: string;
3290
+ nodeIndex: number;
2776
3291
  defaultResponse: Record<string, import("./common").JsonValue>;
2777
3292
  requestedAt: string;
2778
3293
  response?: Record<string, import("./common").JsonValue> | undefined;
2779
3294
  expiresAt?: string | undefined;
2780
3295
  submittedAt?: string | undefined;
2781
- expiredAt?: string | undefined;
2782
3296
  submittedBy?: {
2783
3297
  id: string;
2784
3298
  type: "user" | "serviceAccount" | "system";
@@ -2788,6 +3302,7 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2788
3302
  id: string;
2789
3303
  type: "user" | "serviceAccount" | "system";
2790
3304
  } | undefined;
3305
+ expiredAt?: string | undefined;
2791
3306
  };
2792
3307
  }>;
2793
3308
  export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
@@ -2798,12 +3313,12 @@ export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
2798
3313
  }, "strip", z.ZodTypeAny, {
2799
3314
  runId: string;
2800
3315
  workflowId: string;
2801
- jobId: string;
2802
3316
  queuedAt: string;
3317
+ jobId: string;
2803
3318
  }, {
2804
3319
  runId: string;
2805
3320
  workflowId: string;
2806
- jobId: string;
2807
3321
  queuedAt: string;
3322
+ jobId: string;
2808
3323
  }>;
2809
3324
  //# sourceMappingURL=workflows.d.ts.map