@sixb/server 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +3 -3
  2. package/dist/auth/application-access.d.ts +2 -2
  3. package/dist/auth/application-access.d.ts.map +1 -1
  4. package/dist/auth/connector-callback-cookie.d.ts +12 -0
  5. package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
  6. package/dist/auth/experience.d.ts +33 -0
  7. package/dist/auth/experience.d.ts.map +1 -0
  8. package/dist/auth/guard.d.ts +3 -3
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts.map +1 -1
  11. package/dist/auth/scope.d.ts +13 -27
  12. package/dist/auth/scope.d.ts.map +1 -1
  13. package/dist/auth/session-cookies.d.ts +2 -2
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/connectors/http.d.ts +16 -0
  16. package/dist/connectors/http.d.ts.map +1 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3903 -2760
  20. package/dist/index.js.map +58 -50
  21. package/dist/openapi/tags.d.ts +15 -3
  22. package/dist/openapi/tags.d.ts.map +1 -1
  23. package/dist/registerRoutes.d.ts +6 -2
  24. package/dist/registerRoutes.d.ts.map +1 -1
  25. package/dist/routes/action-runs.d.ts +21 -31
  26. package/dist/routes/action-runs.d.ts.map +1 -1
  27. package/dist/routes/actions.d.ts +12 -11
  28. package/dist/routes/actions.d.ts.map +1 -1
  29. package/dist/routes/agent-api-gateway.d.ts +2 -2
  30. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  31. package/dist/routes/agents.d.ts +230 -159
  32. package/dist/routes/agents.d.ts.map +1 -1
  33. package/dist/routes/ai-accounting.d.ts +31 -0
  34. package/dist/routes/ai-accounting.d.ts.map +1 -0
  35. package/dist/routes/auth.d.ts +149 -92
  36. package/dist/routes/auth.d.ts.map +1 -1
  37. package/dist/routes/connector-connection-runs.d.ts +794 -0
  38. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  39. package/dist/routes/connector-connections.d.ts +219 -0
  40. package/dist/routes/connector-connections.d.ts.map +1 -0
  41. package/dist/routes/connectors.d.ts +10 -4
  42. package/dist/routes/connectors.d.ts.map +1 -1
  43. package/dist/routes/datasets.d.ts +16 -12
  44. package/dist/routes/datasets.d.ts.map +1 -1
  45. package/dist/routes/events.d.ts +9 -9
  46. package/dist/routes/events.d.ts.map +1 -1
  47. package/dist/routes/files.d.ts +19 -18
  48. package/dist/routes/files.d.ts.map +1 -1
  49. package/dist/routes/links.d.ts +11 -11
  50. package/dist/routes/links.d.ts.map +1 -1
  51. package/dist/routes/logs.d.ts +5 -5
  52. package/dist/routes/logs.d.ts.map +1 -1
  53. package/dist/routes/objects.d.ts +37 -37
  54. package/dist/routes/objects.d.ts.map +1 -1
  55. package/dist/routes/ontology.d.ts +50 -50
  56. package/dist/routes/ontology.d.ts.map +1 -1
  57. package/dist/routes/pipelines.d.ts +28 -38
  58. package/dist/routes/pipelines.d.ts.map +1 -1
  59. package/dist/routes/project.d.ts +2 -2
  60. package/dist/routes/project.d.ts.map +1 -1
  61. package/dist/routes/projections.d.ts +145 -85
  62. package/dist/routes/projections.d.ts.map +1 -1
  63. package/dist/routes/rules.d.ts +6 -6
  64. package/dist/routes/rules.d.ts.map +1 -1
  65. package/dist/routes/status.d.ts +2 -2
  66. package/dist/routes/status.d.ts.map +1 -1
  67. package/dist/routes/syncs.d.ts +23 -28
  68. package/dist/routes/syncs.d.ts.map +1 -1
  69. package/dist/routes/telemetry.d.ts +9 -9
  70. package/dist/routes/telemetry.d.ts.map +1 -1
  71. package/dist/routes/webhook-runs.d.ts +9 -9
  72. package/dist/routes/webhook-runs.d.ts.map +1 -1
  73. package/dist/routes/webhooks.d.ts +2 -2
  74. package/dist/routes/webhooks.d.ts.map +1 -1
  75. package/dist/routes/workflows.d.ts +177 -66
  76. package/dist/routes/workflows.d.ts.map +1 -1
  77. package/dist/routes/ws/agents.d.ts +11 -5
  78. package/dist/routes/ws/agents.d.ts.map +1 -1
  79. package/dist/routes/ws/events.d.ts +8 -8
  80. package/dist/routes/ws/events.d.ts.map +1 -1
  81. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  82. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  83. package/dist/routes/ws/logs.d.ts +10 -10
  84. package/dist/routes/ws/logs.d.ts.map +1 -1
  85. package/dist/schemas/actions.d.ts +89 -194
  86. package/dist/schemas/actions.d.ts.map +1 -1
  87. package/dist/schemas/agents.d.ts +791 -471
  88. package/dist/schemas/agents.d.ts.map +1 -1
  89. package/dist/schemas/ai-accounting.d.ts +2393 -0
  90. package/dist/schemas/ai-accounting.d.ts.map +1 -0
  91. package/dist/schemas/ai-usage.d.ts +34 -0
  92. package/dist/schemas/ai-usage.d.ts.map +1 -0
  93. package/dist/schemas/auth.d.ts +102 -102
  94. package/dist/schemas/common.d.ts +37 -0
  95. package/dist/schemas/common.d.ts.map +1 -1
  96. package/dist/schemas/connectors.d.ts +713 -2
  97. package/dist/schemas/connectors.d.ts.map +1 -1
  98. package/dist/schemas/datasets.d.ts +2 -2
  99. package/dist/schemas/event-payloads.d.ts +12 -12
  100. package/dist/schemas/events.d.ts +40 -40
  101. package/dist/schemas/links.d.ts +2 -2
  102. package/dist/schemas/logs.d.ts +22 -22
  103. package/dist/schemas/objects.d.ts +10 -10
  104. package/dist/schemas/ontology.d.ts +118 -118
  105. package/dist/schemas/pipelines.d.ts +89 -184
  106. package/dist/schemas/pipelines.d.ts.map +1 -1
  107. package/dist/schemas/projections.d.ts +1030 -563
  108. package/dist/schemas/projections.d.ts.map +1 -1
  109. package/dist/schemas/rules.d.ts +6 -6
  110. package/dist/schemas/syncs.d.ts +65 -108
  111. package/dist/schemas/syncs.d.ts.map +1 -1
  112. package/dist/schemas/webhook-runs.d.ts +41 -41
  113. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  114. package/dist/schemas/workflows.d.ts +1189 -185
  115. package/dist/schemas/workflows.d.ts.map +1 -1
  116. package/dist/server.d.ts +11 -6
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/utils/http.d.ts +2 -0
  119. package/dist/utils/http.d.ts.map +1 -1
  120. package/dist/utils/ws.d.ts +4 -3
  121. package/dist/utils/ws.d.ts.map +1 -1
  122. package/package.json +5 -5
  123. package/src/auth/access-token-boundary.ts +4 -4
  124. package/src/auth/application-access.ts +8 -9
  125. package/src/auth/connector-callback-cookie.ts +95 -0
  126. package/src/auth/experience.ts +190 -0
  127. package/src/auth/guard.ts +11 -11
  128. package/src/auth/public-routes.ts +20 -0
  129. package/src/auth/scope.ts +26 -36
  130. package/src/auth/session-cookies.ts +3 -3
  131. package/src/connectors/http.ts +110 -0
  132. package/src/index.ts +1 -0
  133. package/src/openapi/tags.ts +13 -1
  134. package/src/registerRoutes.ts +36 -23
  135. package/src/routes/action-runs.ts +39 -39
  136. package/src/routes/actions.ts +7 -13
  137. package/src/routes/agent-api-gateway.ts +41 -38
  138. package/src/routes/agents.ts +90 -200
  139. package/src/routes/ai-accounting.ts +166 -0
  140. package/src/routes/auth.ts +274 -122
  141. package/src/routes/connector-connection-runs.ts +346 -0
  142. package/src/routes/connector-connections.ts +135 -0
  143. package/src/routes/connectors.ts +24 -12
  144. package/src/routes/datasets.ts +55 -54
  145. package/src/routes/events.ts +5 -5
  146. package/src/routes/files.ts +22 -30
  147. package/src/routes/links.ts +31 -35
  148. package/src/routes/logs.ts +6 -11
  149. package/src/routes/objects.ts +51 -114
  150. package/src/routes/ontology.ts +27 -38
  151. package/src/routes/pipelines.ts +28 -62
  152. package/src/routes/project.ts +3 -3
  153. package/src/routes/projections.ts +44 -42
  154. package/src/routes/rules.ts +11 -25
  155. package/src/routes/status.ts +5 -5
  156. package/src/routes/syncs.ts +19 -45
  157. package/src/routes/telemetry.ts +18 -29
  158. package/src/routes/webhook-runs.ts +5 -5
  159. package/src/routes/webhooks.ts +259 -341
  160. package/src/routes/workflows.ts +242 -248
  161. package/src/routes/ws/agents.ts +196 -66
  162. package/src/routes/ws/events.ts +11 -10
  163. package/src/routes/ws/log-subscription-hub.ts +6 -12
  164. package/src/routes/ws/logs.ts +13 -5
  165. package/src/schemas/actions.ts +58 -25
  166. package/src/schemas/agents.ts +23 -23
  167. package/src/schemas/ai-accounting.ts +182 -0
  168. package/src/schemas/ai-usage.ts +16 -0
  169. package/src/schemas/common.ts +24 -0
  170. package/src/schemas/connectors.ts +164 -0
  171. package/src/schemas/pipelines.ts +23 -15
  172. package/src/schemas/projections.ts +23 -3
  173. package/src/schemas/syncs.ts +13 -8
  174. package/src/schemas/webhook-runs.ts +10 -5
  175. package/src/schemas/workflows.ts +23 -8
  176. package/src/server.ts +75 -26
  177. package/src/utils/http.ts +34 -6
  178. package/src/utils/ws.ts +10 -5
@@ -1,3 +1,4 @@
1
+ import { type SixbFailure } from "@sixb/core/storage";
1
2
  import { z } from "zod";
2
3
  export declare const WorkflowIOSnapshotSchema: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
3
4
  export declare const WorkflowParamsSchema: z.ZodObject<{
@@ -33,19 +34,19 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
33
34
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
34
35
  }, "strip", z.ZodTypeAny, {
35
36
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
37
+ startedAfter?: string | undefined;
38
+ startedBefore?: string | undefined;
36
39
  limit?: string | undefined;
37
40
  offset?: string | undefined;
38
41
  order?: "asc" | "desc" | undefined;
39
- startedAfter?: string | undefined;
40
- startedBefore?: string | undefined;
41
42
  workflowId?: string | undefined;
42
43
  }, {
43
44
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
45
+ startedAfter?: string | undefined;
46
+ startedBefore?: string | undefined;
44
47
  limit?: string | undefined;
45
48
  offset?: string | undefined;
46
49
  order?: "asc" | "desc" | undefined;
47
- startedAfter?: string | undefined;
48
- startedBefore?: string | undefined;
49
50
  workflowId?: string | undefined;
50
51
  }>;
51
52
  export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
@@ -68,10 +69,10 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
68
69
  order?: "asc" | "desc" | undefined;
69
70
  workflowId?: string | undefined;
70
71
  nodeRunId?: string | undefined;
72
+ workflowRunId?: string | undefined;
71
73
  nodeId?: string | undefined;
72
74
  nodeKey?: string | undefined;
73
75
  interventionId?: string | undefined;
74
- workflowRunId?: string | undefined;
75
76
  requestedAfter?: string | undefined;
76
77
  requestedBefore?: string | undefined;
77
78
  }, {
@@ -81,10 +82,10 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
81
82
  order?: "asc" | "desc" | undefined;
82
83
  workflowId?: string | undefined;
83
84
  nodeRunId?: string | undefined;
85
+ workflowRunId?: string | undefined;
84
86
  nodeId?: string | undefined;
85
87
  nodeKey?: string | undefined;
86
88
  interventionId?: string | undefined;
87
- workflowRunId?: string | undefined;
88
89
  requestedAfter?: string | undefined;
89
90
  requestedBefore?: string | undefined;
90
91
  }>;
@@ -122,7 +123,7 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
122
123
  queuedAt: z.ZodOptional<z.ZodString>;
123
124
  startedAt: z.ZodString;
124
125
  finishedAt: z.ZodOptional<z.ZodString>;
125
- error: z.ZodOptional<z.ZodString>;
126
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
126
127
  requestedBy: z.ZodObject<{
127
128
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
128
129
  principalId: z.ZodString;
@@ -143,7 +144,7 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
143
144
  principalType: "user" | "serviceAccount" | "system";
144
145
  principalId: string;
145
146
  };
146
- error?: string | undefined;
147
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
147
148
  queuedAt?: string | undefined;
148
149
  finishedAt?: string | undefined;
149
150
  }, {
@@ -156,7 +157,7 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
156
157
  principalType: "user" | "serviceAccount" | "system";
157
158
  principalId: string;
158
159
  };
159
- error?: string | undefined;
160
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
160
161
  queuedAt?: string | undefined;
161
162
  finishedAt?: string | undefined;
162
163
  }>;
@@ -168,7 +169,7 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
168
169
  queuedAt: z.ZodOptional<z.ZodString>;
169
170
  startedAt: z.ZodString;
170
171
  finishedAt: z.ZodOptional<z.ZodString>;
171
- error: z.ZodOptional<z.ZodString>;
172
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
172
173
  requestedBy: z.ZodObject<{
173
174
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
174
175
  principalId: z.ZodString;
@@ -187,13 +188,13 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
187
188
  projectId: string;
188
189
  id: string;
189
190
  startedAt: string;
190
- input: Record<string, import("./common").JsonValue>;
191
191
  workflowId: string;
192
+ input: Record<string, import("./common").JsonValue>;
192
193
  requestedBy: {
193
194
  principalType: "user" | "serviceAccount" | "system";
194
195
  principalId: string;
195
196
  };
196
- error?: string | undefined;
197
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
197
198
  queuedAt?: string | undefined;
198
199
  finishedAt?: string | undefined;
199
200
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -202,13 +203,13 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
202
203
  projectId: string;
203
204
  id: string;
204
205
  startedAt: string;
205
- input: Record<string, import("./common").JsonValue>;
206
206
  workflowId: string;
207
+ input: Record<string, import("./common").JsonValue>;
207
208
  requestedBy: {
208
209
  principalType: "user" | "serviceAccount" | "system";
209
210
  principalId: string;
210
211
  };
211
- error?: string | undefined;
212
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
212
213
  queuedAt?: string | undefined;
213
214
  finishedAt?: string | undefined;
214
215
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -219,7 +220,68 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
219
220
  attempt: z.ZodNumber;
220
221
  modelId: z.ZodOptional<z.ZodString>;
221
222
  finishReason: z.ZodOptional<z.ZodString>;
222
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
223
+ usage: z.ZodOptional<z.ZodObject<{
224
+ inputTokens: z.ZodOptional<z.ZodNumber>;
225
+ outputTokens: z.ZodOptional<z.ZodNumber>;
226
+ totalTokens: z.ZodOptional<z.ZodNumber>;
227
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
228
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
229
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
230
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
231
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
232
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ reportingStatus: "complete" | "partial" | "unavailable";
235
+ inputTokens?: number | undefined;
236
+ outputTokens?: number | undefined;
237
+ totalTokens?: number | undefined;
238
+ uncachedInputTokens?: number | undefined;
239
+ cacheReadInputTokens?: number | undefined;
240
+ cacheWriteInputTokens?: number | undefined;
241
+ textOutputTokens?: number | undefined;
242
+ reasoningOutputTokens?: number | undefined;
243
+ }, {
244
+ reportingStatus: "complete" | "partial" | "unavailable";
245
+ inputTokens?: number | undefined;
246
+ outputTokens?: number | undefined;
247
+ totalTokens?: number | undefined;
248
+ uncachedInputTokens?: number | undefined;
249
+ cacheReadInputTokens?: number | undefined;
250
+ cacheWriteInputTokens?: number | undefined;
251
+ textOutputTokens?: number | undefined;
252
+ reasoningOutputTokens?: number | undefined;
253
+ }>>;
254
+ cost: z.ZodOptional<z.ZodObject<{
255
+ amounts: z.ZodArray<z.ZodObject<{
256
+ currency: z.ZodString;
257
+ amountNanos: z.ZodString;
258
+ }, "strip", z.ZodTypeAny, {
259
+ currency: string;
260
+ amountNanos: string;
261
+ }, {
262
+ currency: string;
263
+ amountNanos: string;
264
+ }>, "many">;
265
+ ratedCallCount: z.ZodNumber;
266
+ unpriceableCallCount: z.ZodNumber;
267
+ unvaluedCallCount: z.ZodNumber;
268
+ }, "strip", z.ZodTypeAny, {
269
+ amounts: {
270
+ currency: string;
271
+ amountNanos: string;
272
+ }[];
273
+ ratedCallCount: number;
274
+ unpriceableCallCount: number;
275
+ unvaluedCallCount: number;
276
+ }, {
277
+ amounts: {
278
+ currency: string;
279
+ amountNanos: string;
280
+ }[];
281
+ ratedCallCount: number;
282
+ unpriceableCallCount: number;
283
+ unvaluedCallCount: number;
284
+ }>>;
223
285
  startedAt: z.ZodOptional<z.ZodString>;
224
286
  completedAt: z.ZodOptional<z.ZodString>;
225
287
  }, "strip", z.ZodTypeAny, {
@@ -229,8 +291,27 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
229
291
  startedAt?: string | undefined;
230
292
  completedAt?: string | undefined;
231
293
  modelId?: string | undefined;
294
+ usage?: {
295
+ reportingStatus: "complete" | "partial" | "unavailable";
296
+ inputTokens?: number | undefined;
297
+ outputTokens?: number | undefined;
298
+ totalTokens?: number | undefined;
299
+ uncachedInputTokens?: number | undefined;
300
+ cacheReadInputTokens?: number | undefined;
301
+ cacheWriteInputTokens?: number | undefined;
302
+ textOutputTokens?: number | undefined;
303
+ reasoningOutputTokens?: number | undefined;
304
+ } | undefined;
305
+ cost?: {
306
+ amounts: {
307
+ currency: string;
308
+ amountNanos: string;
309
+ }[];
310
+ ratedCallCount: number;
311
+ unpriceableCallCount: number;
312
+ unvaluedCallCount: number;
313
+ } | undefined;
232
314
  finishReason?: string | undefined;
233
- usage?: Record<string, unknown> | undefined;
234
315
  }, {
235
316
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
236
317
  agentId: string;
@@ -238,73 +319,509 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
238
319
  startedAt?: string | undefined;
239
320
  completedAt?: string | undefined;
240
321
  modelId?: string | undefined;
322
+ usage?: {
323
+ reportingStatus: "complete" | "partial" | "unavailable";
324
+ inputTokens?: number | undefined;
325
+ outputTokens?: number | undefined;
326
+ totalTokens?: number | undefined;
327
+ uncachedInputTokens?: number | undefined;
328
+ cacheReadInputTokens?: number | undefined;
329
+ cacheWriteInputTokens?: number | undefined;
330
+ textOutputTokens?: number | undefined;
331
+ reasoningOutputTokens?: number | undefined;
332
+ } | undefined;
333
+ cost?: {
334
+ amounts: {
335
+ currency: string;
336
+ amountNanos: string;
337
+ }[];
338
+ ratedCallCount: number;
339
+ unpriceableCallCount: number;
340
+ unvaluedCallCount: number;
341
+ } | undefined;
241
342
  finishReason?: string | undefined;
242
- usage?: Record<string, unknown> | undefined;
243
343
  }>;
344
+ export declare const WorkflowAgentFailurePhaseSchema: z.ZodEnum<["agent-loop", "structured-finalizer"]>;
244
345
  export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
245
346
  agentId: z.ZodString;
246
347
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
247
348
  attempt: z.ZodNumber;
248
349
  modelId: z.ZodOptional<z.ZodString>;
249
350
  finishReason: z.ZodOptional<z.ZodString>;
250
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
351
+ usage: z.ZodOptional<z.ZodObject<{
352
+ inputTokens: z.ZodOptional<z.ZodNumber>;
353
+ outputTokens: z.ZodOptional<z.ZodNumber>;
354
+ totalTokens: z.ZodOptional<z.ZodNumber>;
355
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
356
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
357
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
358
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
359
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
360
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ reportingStatus: "complete" | "partial" | "unavailable";
363
+ inputTokens?: number | undefined;
364
+ outputTokens?: number | undefined;
365
+ totalTokens?: number | undefined;
366
+ uncachedInputTokens?: number | undefined;
367
+ cacheReadInputTokens?: number | undefined;
368
+ cacheWriteInputTokens?: number | undefined;
369
+ textOutputTokens?: number | undefined;
370
+ reasoningOutputTokens?: number | undefined;
371
+ }, {
372
+ reportingStatus: "complete" | "partial" | "unavailable";
373
+ inputTokens?: number | undefined;
374
+ outputTokens?: number | undefined;
375
+ totalTokens?: number | undefined;
376
+ uncachedInputTokens?: number | undefined;
377
+ cacheReadInputTokens?: number | undefined;
378
+ cacheWriteInputTokens?: number | undefined;
379
+ textOutputTokens?: number | undefined;
380
+ reasoningOutputTokens?: number | undefined;
381
+ }>>;
382
+ cost: z.ZodOptional<z.ZodObject<{
383
+ amounts: z.ZodArray<z.ZodObject<{
384
+ currency: z.ZodString;
385
+ amountNanos: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ currency: string;
388
+ amountNanos: string;
389
+ }, {
390
+ currency: string;
391
+ amountNanos: string;
392
+ }>, "many">;
393
+ ratedCallCount: z.ZodNumber;
394
+ unpriceableCallCount: z.ZodNumber;
395
+ unvaluedCallCount: z.ZodNumber;
396
+ }, "strip", z.ZodTypeAny, {
397
+ amounts: {
398
+ currency: string;
399
+ amountNanos: string;
400
+ }[];
401
+ ratedCallCount: number;
402
+ unpriceableCallCount: number;
403
+ unvaluedCallCount: number;
404
+ }, {
405
+ amounts: {
406
+ currency: string;
407
+ amountNanos: string;
408
+ }[];
409
+ ratedCallCount: number;
410
+ unpriceableCallCount: number;
411
+ unvaluedCallCount: number;
412
+ }>>;
251
413
  startedAt: z.ZodOptional<z.ZodString>;
252
414
  completedAt: z.ZodOptional<z.ZodString>;
253
415
  } & {
254
416
  nodeRunId: z.ZodString;
255
417
  prompt: z.ZodString;
256
- executionPrincipal: z.ZodOptional<z.ZodObject<{
257
- principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
258
- principalId: z.ZodString;
418
+ trace: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
419
+ type: z.ZodLiteral<"text">;
420
+ text: z.ZodString;
421
+ providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
259
422
  }, "strip", z.ZodTypeAny, {
260
- principalType: "user" | "serviceAccount" | "system";
261
- principalId: string;
423
+ type: "text";
424
+ text: string;
425
+ providerMetadata?: import("./common").JsonValue | undefined;
262
426
  }, {
263
- principalType: "user" | "serviceAccount" | "system";
264
- principalId: string;
265
- }>>;
266
- trace: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
267
- diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
268
- error: z.ZodOptional<z.ZodString>;
427
+ type: "text";
428
+ text: string;
429
+ providerMetadata?: import("./common").JsonValue | undefined;
430
+ }>, z.ZodObject<{
431
+ type: z.ZodLiteral<"reasoning">;
432
+ text: z.ZodString;
433
+ providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "reasoning";
436
+ text: string;
437
+ providerMetadata?: import("./common").JsonValue | undefined;
438
+ }, {
439
+ type: "reasoning";
440
+ text: string;
441
+ providerMetadata?: import("./common").JsonValue | undefined;
442
+ }>, z.ZodObject<{
443
+ type: z.ZodLiteral<"step-start">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ type: "step-start";
446
+ }, {
447
+ type: "step-start";
448
+ }>, z.ZodObject<{
449
+ type: z.ZodLiteral<"file">;
450
+ fileRef: z.ZodObject<{
451
+ blobId: z.ZodString;
452
+ digest: z.ZodString;
453
+ sizeBytes: z.ZodNumber;
454
+ fileName: z.ZodOptional<z.ZodString>;
455
+ mediaType: z.ZodOptional<z.ZodString>;
456
+ logicalPath: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ blobId: string;
459
+ digest: string;
460
+ sizeBytes: number;
461
+ fileName?: string | undefined;
462
+ mediaType?: string | undefined;
463
+ logicalPath?: string | undefined;
464
+ }, {
465
+ blobId: string;
466
+ digest: string;
467
+ sizeBytes: number;
468
+ fileName?: string | undefined;
469
+ mediaType?: string | undefined;
470
+ logicalPath?: string | undefined;
471
+ }>;
472
+ providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "file";
475
+ fileRef: {
476
+ blobId: string;
477
+ digest: string;
478
+ sizeBytes: number;
479
+ fileName?: string | undefined;
480
+ mediaType?: string | undefined;
481
+ logicalPath?: string | undefined;
482
+ };
483
+ providerMetadata?: import("./common").JsonValue | undefined;
484
+ }, {
485
+ type: "file";
486
+ fileRef: {
487
+ blobId: string;
488
+ digest: string;
489
+ sizeBytes: number;
490
+ fileName?: string | undefined;
491
+ mediaType?: string | undefined;
492
+ logicalPath?: string | undefined;
493
+ };
494
+ providerMetadata?: import("./common").JsonValue | undefined;
495
+ }>, z.ZodObject<{
496
+ context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
497
+ kind: z.ZodLiteral<"object">;
498
+ ref: z.ZodObject<{
499
+ objectTypeId: z.ZodString;
500
+ primaryId: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ objectTypeId: string;
503
+ primaryId: string;
504
+ }, {
505
+ objectTypeId: string;
506
+ primaryId: string;
507
+ }>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ kind: "object";
510
+ ref: {
511
+ objectTypeId: string;
512
+ primaryId: string;
513
+ };
514
+ }, {
515
+ kind: "object";
516
+ ref: {
517
+ objectTypeId: string;
518
+ primaryId: string;
519
+ };
520
+ }>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"app-state">;
522
+ id: z.ZodString;
523
+ label: z.ZodString;
524
+ description: z.ZodString;
525
+ value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ id: string;
528
+ kind: "app-state";
529
+ description: string;
530
+ value: import("./common").JsonValue;
531
+ label: string;
532
+ }, {
533
+ id: string;
534
+ kind: "app-state";
535
+ description: string;
536
+ value: import("./common").JsonValue;
537
+ label: string;
538
+ }>]>;
539
+ origin: z.ZodEnum<["ambient", "explicit"]>;
540
+ } & {
541
+ type: z.ZodLiteral<"context">;
542
+ }, "strip", z.ZodTypeAny, {
543
+ origin: "ambient" | "explicit";
544
+ type: "context";
545
+ context: {
546
+ kind: "object";
547
+ ref: {
548
+ objectTypeId: string;
549
+ primaryId: string;
550
+ };
551
+ } | {
552
+ id: string;
553
+ kind: "app-state";
554
+ description: string;
555
+ value: import("./common").JsonValue;
556
+ label: string;
557
+ };
558
+ }, {
559
+ origin: "ambient" | "explicit";
560
+ type: "context";
561
+ context: {
562
+ kind: "object";
563
+ ref: {
564
+ objectTypeId: string;
565
+ primaryId: string;
566
+ };
567
+ } | {
568
+ id: string;
569
+ kind: "app-state";
570
+ description: string;
571
+ value: import("./common").JsonValue;
572
+ label: string;
573
+ };
574
+ }>, z.ZodObject<{
575
+ type: z.ZodLiteral<"tool-call">;
576
+ toolCallId: z.ZodString;
577
+ toolName: z.ZodString;
578
+ dynamic: z.ZodOptional<z.ZodBoolean>;
579
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
580
+ input: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
581
+ providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
582
+ } & {
583
+ state: z.ZodLiteral<"output-available">;
584
+ output: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: "tool-call";
587
+ output: import("./common").JsonValue;
588
+ toolCallId: string;
589
+ toolName: string;
590
+ input: import("./common").JsonValue;
591
+ state: "output-available";
592
+ providerMetadata?: import("./common").JsonValue | undefined;
593
+ dynamic?: boolean | undefined;
594
+ providerExecuted?: boolean | undefined;
595
+ }, {
596
+ type: "tool-call";
597
+ output: import("./common").JsonValue;
598
+ toolCallId: string;
599
+ toolName: string;
600
+ input: import("./common").JsonValue;
601
+ state: "output-available";
602
+ providerMetadata?: import("./common").JsonValue | undefined;
603
+ dynamic?: boolean | undefined;
604
+ providerExecuted?: boolean | undefined;
605
+ }>, z.ZodObject<{
606
+ type: z.ZodLiteral<"tool-call">;
607
+ toolCallId: z.ZodString;
608
+ toolName: z.ZodString;
609
+ dynamic: z.ZodOptional<z.ZodBoolean>;
610
+ providerExecuted: z.ZodOptional<z.ZodBoolean>;
611
+ input: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
612
+ providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
613
+ } & {
614
+ state: z.ZodLiteral<"output-error">;
615
+ errorText: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ type: "tool-call";
618
+ toolCallId: string;
619
+ toolName: string;
620
+ input: import("./common").JsonValue;
621
+ state: "output-error";
622
+ errorText: string;
623
+ providerMetadata?: import("./common").JsonValue | undefined;
624
+ dynamic?: boolean | undefined;
625
+ providerExecuted?: boolean | undefined;
626
+ }, {
627
+ type: "tool-call";
628
+ toolCallId: string;
629
+ toolName: string;
630
+ input: import("./common").JsonValue;
631
+ state: "output-error";
632
+ errorText: string;
633
+ providerMetadata?: import("./common").JsonValue | undefined;
634
+ dynamic?: boolean | undefined;
635
+ providerExecuted?: boolean | undefined;
636
+ }>]>, "many">>;
637
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, "many">>;
638
+ failurePhase: z.ZodOptional<z.ZodEnum<["agent-loop", "structured-finalizer"]>>;
639
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
269
640
  createdAt: z.ZodString;
270
641
  }, "strip", z.ZodTypeAny, {
271
642
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
272
643
  agentId: string;
273
- createdAt: string;
274
644
  attempt: number;
275
645
  nodeRunId: string;
646
+ createdAt: string;
276
647
  prompt: string;
277
- error?: string | undefined;
648
+ error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
278
649
  startedAt?: string | undefined;
279
650
  completedAt?: string | undefined;
280
- executionPrincipal?: {
281
- principalType: "user" | "serviceAccount" | "system";
282
- principalId: string;
283
- } | undefined;
284
651
  modelId?: string | undefined;
652
+ usage?: {
653
+ reportingStatus: "complete" | "partial" | "unavailable";
654
+ inputTokens?: number | undefined;
655
+ outputTokens?: number | undefined;
656
+ totalTokens?: number | undefined;
657
+ uncachedInputTokens?: number | undefined;
658
+ cacheReadInputTokens?: number | undefined;
659
+ cacheWriteInputTokens?: number | undefined;
660
+ textOutputTokens?: number | undefined;
661
+ reasoningOutputTokens?: number | undefined;
662
+ } | undefined;
663
+ cost?: {
664
+ amounts: {
665
+ currency: string;
666
+ amountNanos: string;
667
+ }[];
668
+ ratedCallCount: number;
669
+ unpriceableCallCount: number;
670
+ unvaluedCallCount: number;
671
+ } | undefined;
285
672
  finishReason?: string | undefined;
286
- usage?: Record<string, unknown> | undefined;
287
- diagnostics?: unknown[] | undefined;
288
- trace?: unknown[] | undefined;
673
+ diagnostics?: import("./common").JsonValue[] | undefined;
674
+ trace?: ({
675
+ origin: "ambient" | "explicit";
676
+ type: "context";
677
+ context: {
678
+ kind: "object";
679
+ ref: {
680
+ objectTypeId: string;
681
+ primaryId: string;
682
+ };
683
+ } | {
684
+ id: string;
685
+ kind: "app-state";
686
+ description: string;
687
+ value: import("./common").JsonValue;
688
+ label: string;
689
+ };
690
+ } | {
691
+ type: "text";
692
+ text: string;
693
+ providerMetadata?: import("./common").JsonValue | undefined;
694
+ } | {
695
+ type: "reasoning";
696
+ text: string;
697
+ providerMetadata?: import("./common").JsonValue | undefined;
698
+ } | {
699
+ type: "step-start";
700
+ } | {
701
+ type: "file";
702
+ fileRef: {
703
+ blobId: string;
704
+ digest: string;
705
+ sizeBytes: number;
706
+ fileName?: string | undefined;
707
+ mediaType?: string | undefined;
708
+ logicalPath?: string | undefined;
709
+ };
710
+ providerMetadata?: import("./common").JsonValue | undefined;
711
+ } | {
712
+ type: "tool-call";
713
+ output: import("./common").JsonValue;
714
+ toolCallId: string;
715
+ toolName: string;
716
+ input: import("./common").JsonValue;
717
+ state: "output-available";
718
+ providerMetadata?: import("./common").JsonValue | undefined;
719
+ dynamic?: boolean | undefined;
720
+ providerExecuted?: boolean | undefined;
721
+ } | {
722
+ type: "tool-call";
723
+ toolCallId: string;
724
+ toolName: string;
725
+ input: import("./common").JsonValue;
726
+ state: "output-error";
727
+ errorText: string;
728
+ providerMetadata?: import("./common").JsonValue | undefined;
729
+ dynamic?: boolean | undefined;
730
+ providerExecuted?: boolean | undefined;
731
+ })[] | undefined;
732
+ failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
289
733
  }, {
290
734
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
291
735
  agentId: string;
292
- createdAt: string;
293
736
  attempt: number;
294
737
  nodeRunId: string;
738
+ createdAt: string;
295
739
  prompt: string;
296
- error?: string | undefined;
740
+ error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
297
741
  startedAt?: string | undefined;
298
742
  completedAt?: string | undefined;
299
- executionPrincipal?: {
300
- principalType: "user" | "serviceAccount" | "system";
301
- principalId: string;
302
- } | undefined;
303
743
  modelId?: string | undefined;
744
+ usage?: {
745
+ reportingStatus: "complete" | "partial" | "unavailable";
746
+ inputTokens?: number | undefined;
747
+ outputTokens?: number | undefined;
748
+ totalTokens?: number | undefined;
749
+ uncachedInputTokens?: number | undefined;
750
+ cacheReadInputTokens?: number | undefined;
751
+ cacheWriteInputTokens?: number | undefined;
752
+ textOutputTokens?: number | undefined;
753
+ reasoningOutputTokens?: number | undefined;
754
+ } | undefined;
755
+ cost?: {
756
+ amounts: {
757
+ currency: string;
758
+ amountNanos: string;
759
+ }[];
760
+ ratedCallCount: number;
761
+ unpriceableCallCount: number;
762
+ unvaluedCallCount: number;
763
+ } | undefined;
304
764
  finishReason?: string | undefined;
305
- usage?: Record<string, unknown> | undefined;
306
- diagnostics?: unknown[] | undefined;
307
- trace?: unknown[] | undefined;
765
+ diagnostics?: import("./common").JsonValue[] | undefined;
766
+ trace?: ({
767
+ origin: "ambient" | "explicit";
768
+ type: "context";
769
+ context: {
770
+ kind: "object";
771
+ ref: {
772
+ objectTypeId: string;
773
+ primaryId: string;
774
+ };
775
+ } | {
776
+ id: string;
777
+ kind: "app-state";
778
+ description: string;
779
+ value: import("./common").JsonValue;
780
+ label: string;
781
+ };
782
+ } | {
783
+ type: "text";
784
+ text: string;
785
+ providerMetadata?: import("./common").JsonValue | undefined;
786
+ } | {
787
+ type: "reasoning";
788
+ text: string;
789
+ providerMetadata?: import("./common").JsonValue | undefined;
790
+ } | {
791
+ type: "step-start";
792
+ } | {
793
+ type: "file";
794
+ fileRef: {
795
+ blobId: string;
796
+ digest: string;
797
+ sizeBytes: number;
798
+ fileName?: string | undefined;
799
+ mediaType?: string | undefined;
800
+ logicalPath?: string | undefined;
801
+ };
802
+ providerMetadata?: import("./common").JsonValue | undefined;
803
+ } | {
804
+ type: "tool-call";
805
+ output: import("./common").JsonValue;
806
+ toolCallId: string;
807
+ toolName: string;
808
+ input: import("./common").JsonValue;
809
+ state: "output-available";
810
+ providerMetadata?: import("./common").JsonValue | undefined;
811
+ dynamic?: boolean | undefined;
812
+ providerExecuted?: boolean | undefined;
813
+ } | {
814
+ type: "tool-call";
815
+ toolCallId: string;
816
+ toolName: string;
817
+ input: import("./common").JsonValue;
818
+ state: "output-error";
819
+ errorText: string;
820
+ providerMetadata?: import("./common").JsonValue | undefined;
821
+ dynamic?: boolean | undefined;
822
+ providerExecuted?: boolean | undefined;
823
+ })[] | undefined;
824
+ failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
308
825
  }>;
309
826
  export declare const WorkflowNodeRunSchema: z.ZodObject<{
310
827
  id: z.ZodString;
@@ -320,14 +837,75 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
320
837
  startedAt: z.ZodString;
321
838
  finishedAt: z.ZodOptional<z.ZodString>;
322
839
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
323
- error: z.ZodOptional<z.ZodString>;
840
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
324
841
  agentExecution: z.ZodOptional<z.ZodObject<{
325
842
  agentId: z.ZodString;
326
843
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
327
844
  attempt: z.ZodNumber;
328
845
  modelId: z.ZodOptional<z.ZodString>;
329
846
  finishReason: z.ZodOptional<z.ZodString>;
330
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
847
+ usage: z.ZodOptional<z.ZodObject<{
848
+ inputTokens: z.ZodOptional<z.ZodNumber>;
849
+ outputTokens: z.ZodOptional<z.ZodNumber>;
850
+ totalTokens: z.ZodOptional<z.ZodNumber>;
851
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
852
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
853
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
854
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
855
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
856
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ reportingStatus: "complete" | "partial" | "unavailable";
859
+ inputTokens?: number | undefined;
860
+ outputTokens?: number | undefined;
861
+ totalTokens?: number | undefined;
862
+ uncachedInputTokens?: number | undefined;
863
+ cacheReadInputTokens?: number | undefined;
864
+ cacheWriteInputTokens?: number | undefined;
865
+ textOutputTokens?: number | undefined;
866
+ reasoningOutputTokens?: number | undefined;
867
+ }, {
868
+ reportingStatus: "complete" | "partial" | "unavailable";
869
+ inputTokens?: number | undefined;
870
+ outputTokens?: number | undefined;
871
+ totalTokens?: number | undefined;
872
+ uncachedInputTokens?: number | undefined;
873
+ cacheReadInputTokens?: number | undefined;
874
+ cacheWriteInputTokens?: number | undefined;
875
+ textOutputTokens?: number | undefined;
876
+ reasoningOutputTokens?: number | undefined;
877
+ }>>;
878
+ cost: z.ZodOptional<z.ZodObject<{
879
+ amounts: z.ZodArray<z.ZodObject<{
880
+ currency: z.ZodString;
881
+ amountNanos: z.ZodString;
882
+ }, "strip", z.ZodTypeAny, {
883
+ currency: string;
884
+ amountNanos: string;
885
+ }, {
886
+ currency: string;
887
+ amountNanos: string;
888
+ }>, "many">;
889
+ ratedCallCount: z.ZodNumber;
890
+ unpriceableCallCount: z.ZodNumber;
891
+ unvaluedCallCount: z.ZodNumber;
892
+ }, "strip", z.ZodTypeAny, {
893
+ amounts: {
894
+ currency: string;
895
+ amountNanos: string;
896
+ }[];
897
+ ratedCallCount: number;
898
+ unpriceableCallCount: number;
899
+ unvaluedCallCount: number;
900
+ }, {
901
+ amounts: {
902
+ currency: string;
903
+ amountNanos: string;
904
+ }[];
905
+ ratedCallCount: number;
906
+ unpriceableCallCount: number;
907
+ unvaluedCallCount: number;
908
+ }>>;
331
909
  startedAt: z.ZodOptional<z.ZodString>;
332
910
  completedAt: z.ZodOptional<z.ZodString>;
333
911
  }, "strip", z.ZodTypeAny, {
@@ -337,8 +915,27 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
337
915
  startedAt?: string | undefined;
338
916
  completedAt?: string | undefined;
339
917
  modelId?: string | undefined;
918
+ usage?: {
919
+ reportingStatus: "complete" | "partial" | "unavailable";
920
+ inputTokens?: number | undefined;
921
+ outputTokens?: number | undefined;
922
+ totalTokens?: number | undefined;
923
+ uncachedInputTokens?: number | undefined;
924
+ cacheReadInputTokens?: number | undefined;
925
+ cacheWriteInputTokens?: number | undefined;
926
+ textOutputTokens?: number | undefined;
927
+ reasoningOutputTokens?: number | undefined;
928
+ } | undefined;
929
+ cost?: {
930
+ amounts: {
931
+ currency: string;
932
+ amountNanos: string;
933
+ }[];
934
+ ratedCallCount: number;
935
+ unpriceableCallCount: number;
936
+ unvaluedCallCount: number;
937
+ } | undefined;
340
938
  finishReason?: string | undefined;
341
- usage?: Record<string, unknown> | undefined;
342
939
  }, {
343
940
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
344
941
  agentId: string;
@@ -346,21 +943,41 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
346
943
  startedAt?: string | undefined;
347
944
  completedAt?: string | undefined;
348
945
  modelId?: string | undefined;
946
+ usage?: {
947
+ reportingStatus: "complete" | "partial" | "unavailable";
948
+ inputTokens?: number | undefined;
949
+ outputTokens?: number | undefined;
950
+ totalTokens?: number | undefined;
951
+ uncachedInputTokens?: number | undefined;
952
+ cacheReadInputTokens?: number | undefined;
953
+ cacheWriteInputTokens?: number | undefined;
954
+ textOutputTokens?: number | undefined;
955
+ reasoningOutputTokens?: number | undefined;
956
+ } | undefined;
957
+ cost?: {
958
+ amounts: {
959
+ currency: string;
960
+ amountNanos: string;
961
+ }[];
962
+ ratedCallCount: number;
963
+ unpriceableCallCount: number;
964
+ unvaluedCallCount: number;
965
+ } | undefined;
349
966
  finishReason?: string | undefined;
350
- usage?: Record<string, unknown> | undefined;
351
967
  }>>;
352
968
  }, "strip", z.ZodTypeAny, {
353
969
  status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
354
970
  projectId: string;
355
971
  id: string;
356
972
  startedAt: string;
357
- input: Record<string, import("./common").JsonValue>;
358
973
  workflowId: string;
974
+ workflowRunId: string;
975
+ input: Record<string, import("./common").JsonValue>;
359
976
  nodeIndex: number;
360
- nodeType: "action" | "agent" | "step" | "intervention";
977
+ nodeType: "agent" | "action" | "step" | "intervention";
361
978
  nodeId: string;
362
979
  nodeKey: string;
363
- workflowRunId: string;
980
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
364
981
  agentExecution?: {
365
982
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
366
983
  agentId: string;
@@ -368,10 +985,28 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
368
985
  startedAt?: string | undefined;
369
986
  completedAt?: string | undefined;
370
987
  modelId?: string | undefined;
988
+ usage?: {
989
+ reportingStatus: "complete" | "partial" | "unavailable";
990
+ inputTokens?: number | undefined;
991
+ outputTokens?: number | undefined;
992
+ totalTokens?: number | undefined;
993
+ uncachedInputTokens?: number | undefined;
994
+ cacheReadInputTokens?: number | undefined;
995
+ cacheWriteInputTokens?: number | undefined;
996
+ textOutputTokens?: number | undefined;
997
+ reasoningOutputTokens?: number | undefined;
998
+ } | undefined;
999
+ cost?: {
1000
+ amounts: {
1001
+ currency: string;
1002
+ amountNanos: string;
1003
+ }[];
1004
+ ratedCallCount: number;
1005
+ unpriceableCallCount: number;
1006
+ unvaluedCallCount: number;
1007
+ } | undefined;
371
1008
  finishReason?: string | undefined;
372
- usage?: Record<string, unknown> | undefined;
373
1009
  } | undefined;
374
- error?: string | undefined;
375
1010
  finishedAt?: string | undefined;
376
1011
  output?: Record<string, import("./common").JsonValue> | undefined;
377
1012
  }, {
@@ -379,13 +1014,14 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
379
1014
  projectId: string;
380
1015
  id: string;
381
1016
  startedAt: string;
382
- input: Record<string, import("./common").JsonValue>;
383
1017
  workflowId: string;
1018
+ workflowRunId: string;
1019
+ input: Record<string, import("./common").JsonValue>;
384
1020
  nodeIndex: number;
385
- nodeType: "action" | "agent" | "step" | "intervention";
1021
+ nodeType: "agent" | "action" | "step" | "intervention";
386
1022
  nodeId: string;
387
1023
  nodeKey: string;
388
- workflowRunId: string;
1024
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
389
1025
  agentExecution?: {
390
1026
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
391
1027
  agentId: string;
@@ -393,10 +1029,28 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
393
1029
  startedAt?: string | undefined;
394
1030
  completedAt?: string | undefined;
395
1031
  modelId?: string | undefined;
1032
+ usage?: {
1033
+ reportingStatus: "complete" | "partial" | "unavailable";
1034
+ inputTokens?: number | undefined;
1035
+ outputTokens?: number | undefined;
1036
+ totalTokens?: number | undefined;
1037
+ uncachedInputTokens?: number | undefined;
1038
+ cacheReadInputTokens?: number | undefined;
1039
+ cacheWriteInputTokens?: number | undefined;
1040
+ textOutputTokens?: number | undefined;
1041
+ reasoningOutputTokens?: number | undefined;
1042
+ } | undefined;
1043
+ cost?: {
1044
+ amounts: {
1045
+ currency: string;
1046
+ amountNanos: string;
1047
+ }[];
1048
+ ratedCallCount: number;
1049
+ unpriceableCallCount: number;
1050
+ unvaluedCallCount: number;
1051
+ } | undefined;
396
1052
  finishReason?: string | undefined;
397
- usage?: Record<string, unknown> | undefined;
398
1053
  } | undefined;
399
- error?: string | undefined;
400
1054
  finishedAt?: string | undefined;
401
1055
  output?: Record<string, import("./common").JsonValue> | undefined;
402
1056
  }>;
@@ -443,15 +1097,15 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
443
1097
  status: "cancelled" | "expired" | "pending" | "submitted";
444
1098
  projectId: string;
445
1099
  id: string;
446
- input: Record<string, import("./common").JsonValue>;
447
1100
  workflowId: string;
448
1101
  nodeRunId: string;
1102
+ workflowRunId: string;
1103
+ input: Record<string, import("./common").JsonValue>;
449
1104
  nodeIndex: number;
450
1105
  nodeId: string;
451
1106
  nodeKey: string;
452
1107
  interventionId: string;
453
1108
  requestedAt: string;
454
- workflowRunId: string;
455
1109
  defaultResponse: Record<string, import("./common").JsonValue>;
456
1110
  response?: Record<string, import("./common").JsonValue> | undefined;
457
1111
  expiresAt?: string | undefined;
@@ -470,15 +1124,15 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
470
1124
  status: "cancelled" | "expired" | "pending" | "submitted";
471
1125
  projectId: string;
472
1126
  id: string;
473
- input: Record<string, import("./common").JsonValue>;
474
1127
  workflowId: string;
475
1128
  nodeRunId: string;
1129
+ workflowRunId: string;
1130
+ input: Record<string, import("./common").JsonValue>;
476
1131
  nodeIndex: number;
477
1132
  nodeId: string;
478
1133
  nodeKey: string;
479
1134
  interventionId: string;
480
1135
  requestedAt: string;
481
- workflowRunId: string;
482
1136
  defaultResponse: Record<string, import("./common").JsonValue>;
483
1137
  response?: Record<string, import("./common").JsonValue> | undefined;
484
1138
  expiresAt?: string | undefined;
@@ -514,14 +1168,14 @@ export declare const WorkflowSchema: z.ZodObject<{
514
1168
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
515
1169
  output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
516
1170
  }, "strip", z.ZodTypeAny, {
517
- type: "step";
518
1171
  id: string;
1172
+ type: "step";
519
1173
  output: Record<string, import("./common").JsonValue>;
520
1174
  key: string;
521
1175
  input: Record<string, import("./common").JsonValue>;
522
1176
  }, {
523
- type: "step";
524
1177
  id: string;
1178
+ type: "step";
525
1179
  output: Record<string, import("./common").JsonValue>;
526
1180
  key: string;
527
1181
  input: Record<string, import("./common").JsonValue>;
@@ -532,15 +1186,15 @@ export declare const WorkflowSchema: z.ZodObject<{
532
1186
  objectTypeId: z.ZodOptional<z.ZodString>;
533
1187
  params: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
534
1188
  }, "strip", z.ZodTypeAny, {
1189
+ id: string;
535
1190
  type: "action";
536
1191
  params: Record<string, import("./common").JsonValue>;
537
- id: string;
538
1192
  key: string;
539
1193
  objectTypeId?: string | undefined;
540
1194
  }, {
1195
+ id: string;
541
1196
  type: "action";
542
1197
  params: Record<string, import("./common").JsonValue>;
543
- id: string;
544
1198
  key: string;
545
1199
  objectTypeId?: string | undefined;
546
1200
  }>, z.ZodObject<{
@@ -551,16 +1205,16 @@ export declare const WorkflowSchema: z.ZodObject<{
551
1205
  response: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
552
1206
  description: z.ZodOptional<z.ZodString>;
553
1207
  }, "strip", z.ZodTypeAny, {
1208
+ id: string;
554
1209
  response: Record<string, import("./common").JsonValue>;
555
1210
  type: "intervention";
556
- id: string;
557
1211
  key: string;
558
1212
  input: Record<string, import("./common").JsonValue>;
559
1213
  description?: string | undefined;
560
1214
  }, {
1215
+ id: string;
561
1216
  response: Record<string, import("./common").JsonValue>;
562
1217
  type: "intervention";
563
- id: string;
564
1218
  key: string;
565
1219
  input: Record<string, import("./common").JsonValue>;
566
1220
  description?: string | undefined;
@@ -572,18 +1226,18 @@ export declare const WorkflowSchema: z.ZodObject<{
572
1226
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
573
1227
  output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
574
1228
  }, "strip", z.ZodTypeAny, {
575
- agentId: string;
576
- type: "agent";
577
1229
  id: string;
1230
+ type: "agent";
578
1231
  output: Record<string, import("./common").JsonValue>;
579
1232
  key: string;
1233
+ agentId: string;
580
1234
  input: Record<string, import("./common").JsonValue>;
581
1235
  }, {
582
- agentId: string;
583
- type: "agent";
584
1236
  id: string;
1237
+ type: "agent";
585
1238
  output: Record<string, import("./common").JsonValue>;
586
1239
  key: string;
1240
+ agentId: string;
587
1241
  input: Record<string, import("./common").JsonValue>;
588
1242
  }>]>, "many">;
589
1243
  latestRun: z.ZodNullable<z.ZodObject<{
@@ -594,7 +1248,7 @@ export declare const WorkflowSchema: z.ZodObject<{
594
1248
  queuedAt: z.ZodOptional<z.ZodString>;
595
1249
  startedAt: z.ZodString;
596
1250
  finishedAt: z.ZodOptional<z.ZodString>;
597
- error: z.ZodOptional<z.ZodString>;
1251
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
598
1252
  requestedBy: z.ZodObject<{
599
1253
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
600
1254
  principalId: z.ZodString;
@@ -615,7 +1269,7 @@ export declare const WorkflowSchema: z.ZodObject<{
615
1269
  principalType: "user" | "serviceAccount" | "system";
616
1270
  principalId: string;
617
1271
  };
618
- error?: string | undefined;
1272
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
619
1273
  queuedAt?: string | undefined;
620
1274
  finishedAt?: string | undefined;
621
1275
  }, {
@@ -628,7 +1282,7 @@ export declare const WorkflowSchema: z.ZodObject<{
628
1282
  principalType: "user" | "serviceAccount" | "system";
629
1283
  principalId: string;
630
1284
  };
631
- error?: string | undefined;
1285
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
632
1286
  queuedAt?: string | undefined;
633
1287
  finishedAt?: string | undefined;
634
1288
  }>>;
@@ -640,30 +1294,30 @@ export declare const WorkflowSchema: z.ZodObject<{
640
1294
  scheduleId: string;
641
1295
  }[];
642
1296
  nodes: ({
643
- type: "step";
644
1297
  id: string;
1298
+ type: "step";
645
1299
  output: Record<string, import("./common").JsonValue>;
646
1300
  key: string;
647
1301
  input: Record<string, import("./common").JsonValue>;
648
1302
  } | {
1303
+ id: string;
649
1304
  type: "action";
650
1305
  params: Record<string, import("./common").JsonValue>;
651
- id: string;
652
1306
  key: string;
653
1307
  objectTypeId?: string | undefined;
654
1308
  } | {
1309
+ id: string;
655
1310
  response: Record<string, import("./common").JsonValue>;
656
1311
  type: "intervention";
657
- id: string;
658
1312
  key: string;
659
1313
  input: Record<string, import("./common").JsonValue>;
660
1314
  description?: string | undefined;
661
1315
  } | {
662
- agentId: string;
663
- type: "agent";
664
1316
  id: string;
1317
+ type: "agent";
665
1318
  output: Record<string, import("./common").JsonValue>;
666
1319
  key: string;
1320
+ agentId: string;
667
1321
  input: Record<string, import("./common").JsonValue>;
668
1322
  })[];
669
1323
  latestRun: {
@@ -676,7 +1330,7 @@ export declare const WorkflowSchema: z.ZodObject<{
676
1330
  principalType: "user" | "serviceAccount" | "system";
677
1331
  principalId: string;
678
1332
  };
679
- error?: string | undefined;
1333
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
680
1334
  queuedAt?: string | undefined;
681
1335
  finishedAt?: string | undefined;
682
1336
  } | null;
@@ -688,30 +1342,30 @@ export declare const WorkflowSchema: z.ZodObject<{
688
1342
  scheduleId: string;
689
1343
  }[];
690
1344
  nodes: ({
691
- type: "step";
692
1345
  id: string;
1346
+ type: "step";
693
1347
  output: Record<string, import("./common").JsonValue>;
694
1348
  key: string;
695
1349
  input: Record<string, import("./common").JsonValue>;
696
1350
  } | {
1351
+ id: string;
697
1352
  type: "action";
698
1353
  params: Record<string, import("./common").JsonValue>;
699
- id: string;
700
1354
  key: string;
701
1355
  objectTypeId?: string | undefined;
702
1356
  } | {
1357
+ id: string;
703
1358
  response: Record<string, import("./common").JsonValue>;
704
1359
  type: "intervention";
705
- id: string;
706
1360
  key: string;
707
1361
  input: Record<string, import("./common").JsonValue>;
708
1362
  description?: string | undefined;
709
1363
  } | {
710
- agentId: string;
711
- type: "agent";
712
1364
  id: string;
1365
+ type: "agent";
713
1366
  output: Record<string, import("./common").JsonValue>;
714
1367
  key: string;
1368
+ agentId: string;
715
1369
  input: Record<string, import("./common").JsonValue>;
716
1370
  })[];
717
1371
  latestRun: {
@@ -724,7 +1378,7 @@ export declare const WorkflowSchema: z.ZodObject<{
724
1378
  principalType: "user" | "serviceAccount" | "system";
725
1379
  principalId: string;
726
1380
  };
727
- error?: string | undefined;
1381
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
728
1382
  queuedAt?: string | undefined;
729
1383
  finishedAt?: string | undefined;
730
1384
  } | null;
@@ -738,7 +1392,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
738
1392
  queuedAt: z.ZodOptional<z.ZodString>;
739
1393
  startedAt: z.ZodString;
740
1394
  finishedAt: z.ZodOptional<z.ZodString>;
741
- error: z.ZodOptional<z.ZodString>;
1395
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
742
1396
  requestedBy: z.ZodObject<{
743
1397
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
744
1398
  principalId: z.ZodString;
@@ -759,7 +1413,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
759
1413
  principalType: "user" | "serviceAccount" | "system";
760
1414
  principalId: string;
761
1415
  };
762
- error?: string | undefined;
1416
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
763
1417
  queuedAt?: string | undefined;
764
1418
  finishedAt?: string | undefined;
765
1419
  }, {
@@ -772,7 +1426,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
772
1426
  principalType: "user" | "serviceAccount" | "system";
773
1427
  principalId: string;
774
1428
  };
775
- error?: string | undefined;
1429
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
776
1430
  queuedAt?: string | undefined;
777
1431
  finishedAt?: string | undefined;
778
1432
  }>, "many">;
@@ -789,7 +1443,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
789
1443
  principalType: "user" | "serviceAccount" | "system";
790
1444
  principalId: string;
791
1445
  };
792
- error?: string | undefined;
1446
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
793
1447
  queuedAt?: string | undefined;
794
1448
  finishedAt?: string | undefined;
795
1449
  }[];
@@ -806,7 +1460,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
806
1460
  principalType: "user" | "serviceAccount" | "system";
807
1461
  principalId: string;
808
1462
  };
809
- error?: string | undefined;
1463
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
810
1464
  queuedAt?: string | undefined;
811
1465
  finishedAt?: string | undefined;
812
1466
  }[];
@@ -822,7 +1476,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
822
1476
  queuedAt: z.ZodOptional<z.ZodString>;
823
1477
  startedAt: z.ZodString;
824
1478
  finishedAt: z.ZodOptional<z.ZodString>;
825
- error: z.ZodOptional<z.ZodString>;
1479
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
826
1480
  requestedBy: z.ZodObject<{
827
1481
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
828
1482
  principalId: z.ZodString;
@@ -841,13 +1495,13 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
841
1495
  projectId: string;
842
1496
  id: string;
843
1497
  startedAt: string;
844
- input: Record<string, import("./common").JsonValue>;
845
1498
  workflowId: string;
1499
+ input: Record<string, import("./common").JsonValue>;
846
1500
  requestedBy: {
847
1501
  principalType: "user" | "serviceAccount" | "system";
848
1502
  principalId: string;
849
1503
  };
850
- error?: string | undefined;
1504
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
851
1505
  queuedAt?: string | undefined;
852
1506
  finishedAt?: string | undefined;
853
1507
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -856,13 +1510,13 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
856
1510
  projectId: string;
857
1511
  id: string;
858
1512
  startedAt: string;
859
- input: Record<string, import("./common").JsonValue>;
860
1513
  workflowId: string;
1514
+ input: Record<string, import("./common").JsonValue>;
861
1515
  requestedBy: {
862
1516
  principalType: "user" | "serviceAccount" | "system";
863
1517
  principalId: string;
864
1518
  };
865
- error?: string | undefined;
1519
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
866
1520
  queuedAt?: string | undefined;
867
1521
  finishedAt?: string | undefined;
868
1522
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -881,14 +1535,75 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
881
1535
  startedAt: z.ZodString;
882
1536
  finishedAt: z.ZodOptional<z.ZodString>;
883
1537
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
884
- error: z.ZodOptional<z.ZodString>;
1538
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
885
1539
  agentExecution: z.ZodOptional<z.ZodObject<{
886
1540
  agentId: z.ZodString;
887
1541
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
888
1542
  attempt: z.ZodNumber;
889
1543
  modelId: z.ZodOptional<z.ZodString>;
890
1544
  finishReason: z.ZodOptional<z.ZodString>;
891
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1545
+ usage: z.ZodOptional<z.ZodObject<{
1546
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1547
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1548
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1549
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
1550
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1551
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
1552
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
1553
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1554
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ reportingStatus: "complete" | "partial" | "unavailable";
1557
+ inputTokens?: number | undefined;
1558
+ outputTokens?: number | undefined;
1559
+ totalTokens?: number | undefined;
1560
+ uncachedInputTokens?: number | undefined;
1561
+ cacheReadInputTokens?: number | undefined;
1562
+ cacheWriteInputTokens?: number | undefined;
1563
+ textOutputTokens?: number | undefined;
1564
+ reasoningOutputTokens?: number | undefined;
1565
+ }, {
1566
+ reportingStatus: "complete" | "partial" | "unavailable";
1567
+ inputTokens?: number | undefined;
1568
+ outputTokens?: number | undefined;
1569
+ totalTokens?: number | undefined;
1570
+ uncachedInputTokens?: number | undefined;
1571
+ cacheReadInputTokens?: number | undefined;
1572
+ cacheWriteInputTokens?: number | undefined;
1573
+ textOutputTokens?: number | undefined;
1574
+ reasoningOutputTokens?: number | undefined;
1575
+ }>>;
1576
+ cost: z.ZodOptional<z.ZodObject<{
1577
+ amounts: z.ZodArray<z.ZodObject<{
1578
+ currency: z.ZodString;
1579
+ amountNanos: z.ZodString;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ currency: string;
1582
+ amountNanos: string;
1583
+ }, {
1584
+ currency: string;
1585
+ amountNanos: string;
1586
+ }>, "many">;
1587
+ ratedCallCount: z.ZodNumber;
1588
+ unpriceableCallCount: z.ZodNumber;
1589
+ unvaluedCallCount: z.ZodNumber;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ amounts: {
1592
+ currency: string;
1593
+ amountNanos: string;
1594
+ }[];
1595
+ ratedCallCount: number;
1596
+ unpriceableCallCount: number;
1597
+ unvaluedCallCount: number;
1598
+ }, {
1599
+ amounts: {
1600
+ currency: string;
1601
+ amountNanos: string;
1602
+ }[];
1603
+ ratedCallCount: number;
1604
+ unpriceableCallCount: number;
1605
+ unvaluedCallCount: number;
1606
+ }>>;
892
1607
  startedAt: z.ZodOptional<z.ZodString>;
893
1608
  completedAt: z.ZodOptional<z.ZodString>;
894
1609
  }, "strip", z.ZodTypeAny, {
@@ -898,8 +1613,27 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
898
1613
  startedAt?: string | undefined;
899
1614
  completedAt?: string | undefined;
900
1615
  modelId?: string | undefined;
1616
+ usage?: {
1617
+ reportingStatus: "complete" | "partial" | "unavailable";
1618
+ inputTokens?: number | undefined;
1619
+ outputTokens?: number | undefined;
1620
+ totalTokens?: number | undefined;
1621
+ uncachedInputTokens?: number | undefined;
1622
+ cacheReadInputTokens?: number | undefined;
1623
+ cacheWriteInputTokens?: number | undefined;
1624
+ textOutputTokens?: number | undefined;
1625
+ reasoningOutputTokens?: number | undefined;
1626
+ } | undefined;
1627
+ cost?: {
1628
+ amounts: {
1629
+ currency: string;
1630
+ amountNanos: string;
1631
+ }[];
1632
+ ratedCallCount: number;
1633
+ unpriceableCallCount: number;
1634
+ unvaluedCallCount: number;
1635
+ } | undefined;
901
1636
  finishReason?: string | undefined;
902
- usage?: Record<string, unknown> | undefined;
903
1637
  }, {
904
1638
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
905
1639
  agentId: string;
@@ -907,21 +1641,41 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
907
1641
  startedAt?: string | undefined;
908
1642
  completedAt?: string | undefined;
909
1643
  modelId?: string | undefined;
1644
+ usage?: {
1645
+ reportingStatus: "complete" | "partial" | "unavailable";
1646
+ inputTokens?: number | undefined;
1647
+ outputTokens?: number | undefined;
1648
+ totalTokens?: number | undefined;
1649
+ uncachedInputTokens?: number | undefined;
1650
+ cacheReadInputTokens?: number | undefined;
1651
+ cacheWriteInputTokens?: number | undefined;
1652
+ textOutputTokens?: number | undefined;
1653
+ reasoningOutputTokens?: number | undefined;
1654
+ } | undefined;
1655
+ cost?: {
1656
+ amounts: {
1657
+ currency: string;
1658
+ amountNanos: string;
1659
+ }[];
1660
+ ratedCallCount: number;
1661
+ unpriceableCallCount: number;
1662
+ unvaluedCallCount: number;
1663
+ } | undefined;
910
1664
  finishReason?: string | undefined;
911
- usage?: Record<string, unknown> | undefined;
912
1665
  }>>;
913
1666
  }, "strip", z.ZodTypeAny, {
914
1667
  status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
915
1668
  projectId: string;
916
1669
  id: string;
917
1670
  startedAt: string;
918
- input: Record<string, import("./common").JsonValue>;
919
1671
  workflowId: string;
1672
+ workflowRunId: string;
1673
+ input: Record<string, import("./common").JsonValue>;
920
1674
  nodeIndex: number;
921
- nodeType: "action" | "agent" | "step" | "intervention";
1675
+ nodeType: "agent" | "action" | "step" | "intervention";
922
1676
  nodeId: string;
923
1677
  nodeKey: string;
924
- workflowRunId: string;
1678
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
925
1679
  agentExecution?: {
926
1680
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
927
1681
  agentId: string;
@@ -929,10 +1683,28 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
929
1683
  startedAt?: string | undefined;
930
1684
  completedAt?: string | undefined;
931
1685
  modelId?: string | undefined;
1686
+ usage?: {
1687
+ reportingStatus: "complete" | "partial" | "unavailable";
1688
+ inputTokens?: number | undefined;
1689
+ outputTokens?: number | undefined;
1690
+ totalTokens?: number | undefined;
1691
+ uncachedInputTokens?: number | undefined;
1692
+ cacheReadInputTokens?: number | undefined;
1693
+ cacheWriteInputTokens?: number | undefined;
1694
+ textOutputTokens?: number | undefined;
1695
+ reasoningOutputTokens?: number | undefined;
1696
+ } | undefined;
1697
+ cost?: {
1698
+ amounts: {
1699
+ currency: string;
1700
+ amountNanos: string;
1701
+ }[];
1702
+ ratedCallCount: number;
1703
+ unpriceableCallCount: number;
1704
+ unvaluedCallCount: number;
1705
+ } | undefined;
932
1706
  finishReason?: string | undefined;
933
- usage?: Record<string, unknown> | undefined;
934
1707
  } | undefined;
935
- error?: string | undefined;
936
1708
  finishedAt?: string | undefined;
937
1709
  output?: Record<string, import("./common").JsonValue> | undefined;
938
1710
  }, {
@@ -940,13 +1712,14 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
940
1712
  projectId: string;
941
1713
  id: string;
942
1714
  startedAt: string;
943
- input: Record<string, import("./common").JsonValue>;
944
1715
  workflowId: string;
1716
+ workflowRunId: string;
1717
+ input: Record<string, import("./common").JsonValue>;
945
1718
  nodeIndex: number;
946
- nodeType: "action" | "agent" | "step" | "intervention";
1719
+ nodeType: "agent" | "action" | "step" | "intervention";
947
1720
  nodeId: string;
948
1721
  nodeKey: string;
949
- workflowRunId: string;
1722
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
950
1723
  agentExecution?: {
951
1724
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
952
1725
  agentId: string;
@@ -954,10 +1727,28 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
954
1727
  startedAt?: string | undefined;
955
1728
  completedAt?: string | undefined;
956
1729
  modelId?: string | undefined;
1730
+ usage?: {
1731
+ reportingStatus: "complete" | "partial" | "unavailable";
1732
+ inputTokens?: number | undefined;
1733
+ outputTokens?: number | undefined;
1734
+ totalTokens?: number | undefined;
1735
+ uncachedInputTokens?: number | undefined;
1736
+ cacheReadInputTokens?: number | undefined;
1737
+ cacheWriteInputTokens?: number | undefined;
1738
+ textOutputTokens?: number | undefined;
1739
+ reasoningOutputTokens?: number | undefined;
1740
+ } | undefined;
1741
+ cost?: {
1742
+ amounts: {
1743
+ currency: string;
1744
+ amountNanos: string;
1745
+ }[];
1746
+ ratedCallCount: number;
1747
+ unpriceableCallCount: number;
1748
+ unvaluedCallCount: number;
1749
+ } | undefined;
957
1750
  finishReason?: string | undefined;
958
- usage?: Record<string, unknown> | undefined;
959
1751
  } | undefined;
960
- error?: string | undefined;
961
1752
  finishedAt?: string | undefined;
962
1753
  output?: Record<string, import("./common").JsonValue> | undefined;
963
1754
  }>, "many">;
@@ -967,13 +1758,13 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
967
1758
  projectId: string;
968
1759
  id: string;
969
1760
  startedAt: string;
970
- input: Record<string, import("./common").JsonValue>;
971
1761
  workflowId: string;
1762
+ input: Record<string, import("./common").JsonValue>;
972
1763
  requestedBy: {
973
1764
  principalType: "user" | "serviceAccount" | "system";
974
1765
  principalId: string;
975
1766
  };
976
- error?: string | undefined;
1767
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
977
1768
  queuedAt?: string | undefined;
978
1769
  finishedAt?: string | undefined;
979
1770
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -983,13 +1774,14 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
983
1774
  projectId: string;
984
1775
  id: string;
985
1776
  startedAt: string;
986
- input: Record<string, import("./common").JsonValue>;
987
1777
  workflowId: string;
1778
+ workflowRunId: string;
1779
+ input: Record<string, import("./common").JsonValue>;
988
1780
  nodeIndex: number;
989
- nodeType: "action" | "agent" | "step" | "intervention";
1781
+ nodeType: "agent" | "action" | "step" | "intervention";
990
1782
  nodeId: string;
991
1783
  nodeKey: string;
992
- workflowRunId: string;
1784
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
993
1785
  agentExecution?: {
994
1786
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
995
1787
  agentId: string;
@@ -997,10 +1789,28 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
997
1789
  startedAt?: string | undefined;
998
1790
  completedAt?: string | undefined;
999
1791
  modelId?: string | undefined;
1792
+ usage?: {
1793
+ reportingStatus: "complete" | "partial" | "unavailable";
1794
+ inputTokens?: number | undefined;
1795
+ outputTokens?: number | undefined;
1796
+ totalTokens?: number | undefined;
1797
+ uncachedInputTokens?: number | undefined;
1798
+ cacheReadInputTokens?: number | undefined;
1799
+ cacheWriteInputTokens?: number | undefined;
1800
+ textOutputTokens?: number | undefined;
1801
+ reasoningOutputTokens?: number | undefined;
1802
+ } | undefined;
1803
+ cost?: {
1804
+ amounts: {
1805
+ currency: string;
1806
+ amountNanos: string;
1807
+ }[];
1808
+ ratedCallCount: number;
1809
+ unpriceableCallCount: number;
1810
+ unvaluedCallCount: number;
1811
+ } | undefined;
1000
1812
  finishReason?: string | undefined;
1001
- usage?: Record<string, unknown> | undefined;
1002
1813
  } | undefined;
1003
- error?: string | undefined;
1004
1814
  finishedAt?: string | undefined;
1005
1815
  output?: Record<string, import("./common").JsonValue> | undefined;
1006
1816
  }[];
@@ -1010,13 +1820,13 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1010
1820
  projectId: string;
1011
1821
  id: string;
1012
1822
  startedAt: string;
1013
- input: Record<string, import("./common").JsonValue>;
1014
1823
  workflowId: string;
1824
+ input: Record<string, import("./common").JsonValue>;
1015
1825
  requestedBy: {
1016
1826
  principalType: "user" | "serviceAccount" | "system";
1017
1827
  principalId: string;
1018
1828
  };
1019
- error?: string | undefined;
1829
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1020
1830
  queuedAt?: string | undefined;
1021
1831
  finishedAt?: string | undefined;
1022
1832
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -1026,13 +1836,14 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1026
1836
  projectId: string;
1027
1837
  id: string;
1028
1838
  startedAt: string;
1029
- input: Record<string, import("./common").JsonValue>;
1030
1839
  workflowId: string;
1840
+ workflowRunId: string;
1841
+ input: Record<string, import("./common").JsonValue>;
1031
1842
  nodeIndex: number;
1032
- nodeType: "action" | "agent" | "step" | "intervention";
1843
+ nodeType: "agent" | "action" | "step" | "intervention";
1033
1844
  nodeId: string;
1034
1845
  nodeKey: string;
1035
- workflowRunId: string;
1846
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1036
1847
  agentExecution?: {
1037
1848
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1038
1849
  agentId: string;
@@ -1040,10 +1851,28 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1040
1851
  startedAt?: string | undefined;
1041
1852
  completedAt?: string | undefined;
1042
1853
  modelId?: string | undefined;
1854
+ usage?: {
1855
+ reportingStatus: "complete" | "partial" | "unavailable";
1856
+ inputTokens?: number | undefined;
1857
+ outputTokens?: number | undefined;
1858
+ totalTokens?: number | undefined;
1859
+ uncachedInputTokens?: number | undefined;
1860
+ cacheReadInputTokens?: number | undefined;
1861
+ cacheWriteInputTokens?: number | undefined;
1862
+ textOutputTokens?: number | undefined;
1863
+ reasoningOutputTokens?: number | undefined;
1864
+ } | undefined;
1865
+ cost?: {
1866
+ amounts: {
1867
+ currency: string;
1868
+ amountNanos: string;
1869
+ }[];
1870
+ ratedCallCount: number;
1871
+ unpriceableCallCount: number;
1872
+ unvaluedCallCount: number;
1873
+ } | undefined;
1043
1874
  finishReason?: string | undefined;
1044
- usage?: Record<string, unknown> | undefined;
1045
1875
  } | undefined;
1046
- error?: string | undefined;
1047
1876
  finishedAt?: string | undefined;
1048
1877
  output?: Record<string, import("./common").JsonValue> | undefined;
1049
1878
  }[];
@@ -1057,7 +1886,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1057
1886
  queuedAt: z.ZodOptional<z.ZodString>;
1058
1887
  startedAt: z.ZodString;
1059
1888
  finishedAt: z.ZodOptional<z.ZodString>;
1060
- error: z.ZodOptional<z.ZodString>;
1889
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
1061
1890
  requestedBy: z.ZodObject<{
1062
1891
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1063
1892
  principalId: z.ZodString;
@@ -1076,13 +1905,13 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1076
1905
  projectId: string;
1077
1906
  id: string;
1078
1907
  startedAt: string;
1079
- input: Record<string, import("./common").JsonValue>;
1080
1908
  workflowId: string;
1909
+ input: Record<string, import("./common").JsonValue>;
1081
1910
  requestedBy: {
1082
1911
  principalType: "user" | "serviceAccount" | "system";
1083
1912
  principalId: string;
1084
1913
  };
1085
- error?: string | undefined;
1914
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1086
1915
  queuedAt?: string | undefined;
1087
1916
  finishedAt?: string | undefined;
1088
1917
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -1091,13 +1920,13 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1091
1920
  projectId: string;
1092
1921
  id: string;
1093
1922
  startedAt: string;
1094
- input: Record<string, import("./common").JsonValue>;
1095
1923
  workflowId: string;
1924
+ input: Record<string, import("./common").JsonValue>;
1096
1925
  requestedBy: {
1097
1926
  principalType: "user" | "serviceAccount" | "system";
1098
1927
  principalId: string;
1099
1928
  };
1100
- error?: string | undefined;
1929
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1101
1930
  queuedAt?: string | undefined;
1102
1931
  finishedAt?: string | undefined;
1103
1932
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -1116,14 +1945,75 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1116
1945
  startedAt: z.ZodString;
1117
1946
  finishedAt: z.ZodOptional<z.ZodString>;
1118
1947
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1119
- error: z.ZodOptional<z.ZodString>;
1948
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
1120
1949
  agentExecution: z.ZodOptional<z.ZodObject<{
1121
1950
  agentId: z.ZodString;
1122
1951
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
1123
1952
  attempt: z.ZodNumber;
1124
1953
  modelId: z.ZodOptional<z.ZodString>;
1125
1954
  finishReason: z.ZodOptional<z.ZodString>;
1126
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1955
+ usage: z.ZodOptional<z.ZodObject<{
1956
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1957
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1958
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1959
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
1960
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1961
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
1962
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
1963
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1964
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ reportingStatus: "complete" | "partial" | "unavailable";
1967
+ inputTokens?: number | undefined;
1968
+ outputTokens?: number | undefined;
1969
+ totalTokens?: number | undefined;
1970
+ uncachedInputTokens?: number | undefined;
1971
+ cacheReadInputTokens?: number | undefined;
1972
+ cacheWriteInputTokens?: number | undefined;
1973
+ textOutputTokens?: number | undefined;
1974
+ reasoningOutputTokens?: number | undefined;
1975
+ }, {
1976
+ reportingStatus: "complete" | "partial" | "unavailable";
1977
+ inputTokens?: number | undefined;
1978
+ outputTokens?: number | undefined;
1979
+ totalTokens?: number | undefined;
1980
+ uncachedInputTokens?: number | undefined;
1981
+ cacheReadInputTokens?: number | undefined;
1982
+ cacheWriteInputTokens?: number | undefined;
1983
+ textOutputTokens?: number | undefined;
1984
+ reasoningOutputTokens?: number | undefined;
1985
+ }>>;
1986
+ cost: z.ZodOptional<z.ZodObject<{
1987
+ amounts: z.ZodArray<z.ZodObject<{
1988
+ currency: z.ZodString;
1989
+ amountNanos: z.ZodString;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ currency: string;
1992
+ amountNanos: string;
1993
+ }, {
1994
+ currency: string;
1995
+ amountNanos: string;
1996
+ }>, "many">;
1997
+ ratedCallCount: z.ZodNumber;
1998
+ unpriceableCallCount: z.ZodNumber;
1999
+ unvaluedCallCount: z.ZodNumber;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ amounts: {
2002
+ currency: string;
2003
+ amountNanos: string;
2004
+ }[];
2005
+ ratedCallCount: number;
2006
+ unpriceableCallCount: number;
2007
+ unvaluedCallCount: number;
2008
+ }, {
2009
+ amounts: {
2010
+ currency: string;
2011
+ amountNanos: string;
2012
+ }[];
2013
+ ratedCallCount: number;
2014
+ unpriceableCallCount: number;
2015
+ unvaluedCallCount: number;
2016
+ }>>;
1127
2017
  startedAt: z.ZodOptional<z.ZodString>;
1128
2018
  completedAt: z.ZodOptional<z.ZodString>;
1129
2019
  }, "strip", z.ZodTypeAny, {
@@ -1133,8 +2023,27 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1133
2023
  startedAt?: string | undefined;
1134
2024
  completedAt?: string | undefined;
1135
2025
  modelId?: string | undefined;
2026
+ usage?: {
2027
+ reportingStatus: "complete" | "partial" | "unavailable";
2028
+ inputTokens?: number | undefined;
2029
+ outputTokens?: number | undefined;
2030
+ totalTokens?: number | undefined;
2031
+ uncachedInputTokens?: number | undefined;
2032
+ cacheReadInputTokens?: number | undefined;
2033
+ cacheWriteInputTokens?: number | undefined;
2034
+ textOutputTokens?: number | undefined;
2035
+ reasoningOutputTokens?: number | undefined;
2036
+ } | undefined;
2037
+ cost?: {
2038
+ amounts: {
2039
+ currency: string;
2040
+ amountNanos: string;
2041
+ }[];
2042
+ ratedCallCount: number;
2043
+ unpriceableCallCount: number;
2044
+ unvaluedCallCount: number;
2045
+ } | undefined;
1136
2046
  finishReason?: string | undefined;
1137
- usage?: Record<string, unknown> | undefined;
1138
2047
  }, {
1139
2048
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1140
2049
  agentId: string;
@@ -1142,21 +2051,41 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1142
2051
  startedAt?: string | undefined;
1143
2052
  completedAt?: string | undefined;
1144
2053
  modelId?: string | undefined;
2054
+ usage?: {
2055
+ reportingStatus: "complete" | "partial" | "unavailable";
2056
+ inputTokens?: number | undefined;
2057
+ outputTokens?: number | undefined;
2058
+ totalTokens?: number | undefined;
2059
+ uncachedInputTokens?: number | undefined;
2060
+ cacheReadInputTokens?: number | undefined;
2061
+ cacheWriteInputTokens?: number | undefined;
2062
+ textOutputTokens?: number | undefined;
2063
+ reasoningOutputTokens?: number | undefined;
2064
+ } | undefined;
2065
+ cost?: {
2066
+ amounts: {
2067
+ currency: string;
2068
+ amountNanos: string;
2069
+ }[];
2070
+ ratedCallCount: number;
2071
+ unpriceableCallCount: number;
2072
+ unvaluedCallCount: number;
2073
+ } | undefined;
1145
2074
  finishReason?: string | undefined;
1146
- usage?: Record<string, unknown> | undefined;
1147
2075
  }>>;
1148
2076
  }, "strip", z.ZodTypeAny, {
1149
2077
  status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1150
2078
  projectId: string;
1151
2079
  id: string;
1152
2080
  startedAt: string;
1153
- input: Record<string, import("./common").JsonValue>;
1154
2081
  workflowId: string;
2082
+ workflowRunId: string;
2083
+ input: Record<string, import("./common").JsonValue>;
1155
2084
  nodeIndex: number;
1156
- nodeType: "action" | "agent" | "step" | "intervention";
2085
+ nodeType: "agent" | "action" | "step" | "intervention";
1157
2086
  nodeId: string;
1158
2087
  nodeKey: string;
1159
- workflowRunId: string;
2088
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1160
2089
  agentExecution?: {
1161
2090
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1162
2091
  agentId: string;
@@ -1164,10 +2093,28 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1164
2093
  startedAt?: string | undefined;
1165
2094
  completedAt?: string | undefined;
1166
2095
  modelId?: string | undefined;
2096
+ usage?: {
2097
+ reportingStatus: "complete" | "partial" | "unavailable";
2098
+ inputTokens?: number | undefined;
2099
+ outputTokens?: number | undefined;
2100
+ totalTokens?: number | undefined;
2101
+ uncachedInputTokens?: number | undefined;
2102
+ cacheReadInputTokens?: number | undefined;
2103
+ cacheWriteInputTokens?: number | undefined;
2104
+ textOutputTokens?: number | undefined;
2105
+ reasoningOutputTokens?: number | undefined;
2106
+ } | undefined;
2107
+ cost?: {
2108
+ amounts: {
2109
+ currency: string;
2110
+ amountNanos: string;
2111
+ }[];
2112
+ ratedCallCount: number;
2113
+ unpriceableCallCount: number;
2114
+ unvaluedCallCount: number;
2115
+ } | undefined;
1167
2116
  finishReason?: string | undefined;
1168
- usage?: Record<string, unknown> | undefined;
1169
2117
  } | undefined;
1170
- error?: string | undefined;
1171
2118
  finishedAt?: string | undefined;
1172
2119
  output?: Record<string, import("./common").JsonValue> | undefined;
1173
2120
  }, {
@@ -1175,13 +2122,14 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1175
2122
  projectId: string;
1176
2123
  id: string;
1177
2124
  startedAt: string;
1178
- input: Record<string, import("./common").JsonValue>;
1179
2125
  workflowId: string;
2126
+ workflowRunId: string;
2127
+ input: Record<string, import("./common").JsonValue>;
1180
2128
  nodeIndex: number;
1181
- nodeType: "action" | "agent" | "step" | "intervention";
2129
+ nodeType: "agent" | "action" | "step" | "intervention";
1182
2130
  nodeId: string;
1183
2131
  nodeKey: string;
1184
- workflowRunId: string;
2132
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1185
2133
  agentExecution?: {
1186
2134
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1187
2135
  agentId: string;
@@ -1189,10 +2137,28 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1189
2137
  startedAt?: string | undefined;
1190
2138
  completedAt?: string | undefined;
1191
2139
  modelId?: string | undefined;
2140
+ usage?: {
2141
+ reportingStatus: "complete" | "partial" | "unavailable";
2142
+ inputTokens?: number | undefined;
2143
+ outputTokens?: number | undefined;
2144
+ totalTokens?: number | undefined;
2145
+ uncachedInputTokens?: number | undefined;
2146
+ cacheReadInputTokens?: number | undefined;
2147
+ cacheWriteInputTokens?: number | undefined;
2148
+ textOutputTokens?: number | undefined;
2149
+ reasoningOutputTokens?: number | undefined;
2150
+ } | undefined;
2151
+ cost?: {
2152
+ amounts: {
2153
+ currency: string;
2154
+ amountNanos: string;
2155
+ }[];
2156
+ ratedCallCount: number;
2157
+ unpriceableCallCount: number;
2158
+ unvaluedCallCount: number;
2159
+ } | undefined;
1192
2160
  finishReason?: string | undefined;
1193
- usage?: Record<string, unknown> | undefined;
1194
2161
  } | undefined;
1195
- error?: string | undefined;
1196
2162
  finishedAt?: string | undefined;
1197
2163
  output?: Record<string, import("./common").JsonValue> | undefined;
1198
2164
  }>, "many">;
@@ -1202,13 +2168,13 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1202
2168
  projectId: string;
1203
2169
  id: string;
1204
2170
  startedAt: string;
1205
- input: Record<string, import("./common").JsonValue>;
1206
2171
  workflowId: string;
2172
+ input: Record<string, import("./common").JsonValue>;
1207
2173
  requestedBy: {
1208
2174
  principalType: "user" | "serviceAccount" | "system";
1209
2175
  principalId: string;
1210
2176
  };
1211
- error?: string | undefined;
2177
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1212
2178
  queuedAt?: string | undefined;
1213
2179
  finishedAt?: string | undefined;
1214
2180
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -1218,13 +2184,14 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1218
2184
  projectId: string;
1219
2185
  id: string;
1220
2186
  startedAt: string;
1221
- input: Record<string, import("./common").JsonValue>;
1222
2187
  workflowId: string;
2188
+ workflowRunId: string;
2189
+ input: Record<string, import("./common").JsonValue>;
1223
2190
  nodeIndex: number;
1224
- nodeType: "action" | "agent" | "step" | "intervention";
2191
+ nodeType: "agent" | "action" | "step" | "intervention";
1225
2192
  nodeId: string;
1226
2193
  nodeKey: string;
1227
- workflowRunId: string;
2194
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1228
2195
  agentExecution?: {
1229
2196
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1230
2197
  agentId: string;
@@ -1232,10 +2199,28 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1232
2199
  startedAt?: string | undefined;
1233
2200
  completedAt?: string | undefined;
1234
2201
  modelId?: string | undefined;
2202
+ usage?: {
2203
+ reportingStatus: "complete" | "partial" | "unavailable";
2204
+ inputTokens?: number | undefined;
2205
+ outputTokens?: number | undefined;
2206
+ totalTokens?: number | undefined;
2207
+ uncachedInputTokens?: number | undefined;
2208
+ cacheReadInputTokens?: number | undefined;
2209
+ cacheWriteInputTokens?: number | undefined;
2210
+ textOutputTokens?: number | undefined;
2211
+ reasoningOutputTokens?: number | undefined;
2212
+ } | undefined;
2213
+ cost?: {
2214
+ amounts: {
2215
+ currency: string;
2216
+ amountNanos: string;
2217
+ }[];
2218
+ ratedCallCount: number;
2219
+ unpriceableCallCount: number;
2220
+ unvaluedCallCount: number;
2221
+ } | undefined;
1235
2222
  finishReason?: string | undefined;
1236
- usage?: Record<string, unknown> | undefined;
1237
2223
  } | undefined;
1238
- error?: string | undefined;
1239
2224
  finishedAt?: string | undefined;
1240
2225
  output?: Record<string, import("./common").JsonValue> | undefined;
1241
2226
  }[];
@@ -1245,13 +2230,13 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1245
2230
  projectId: string;
1246
2231
  id: string;
1247
2232
  startedAt: string;
1248
- input: Record<string, import("./common").JsonValue>;
1249
2233
  workflowId: string;
2234
+ input: Record<string, import("./common").JsonValue>;
1250
2235
  requestedBy: {
1251
2236
  principalType: "user" | "serviceAccount" | "system";
1252
2237
  principalId: string;
1253
2238
  };
1254
- error?: string | undefined;
2239
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1255
2240
  queuedAt?: string | undefined;
1256
2241
  finishedAt?: string | undefined;
1257
2242
  output?: Record<string, import("./common").JsonValue> | undefined;
@@ -1261,13 +2246,14 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1261
2246
  projectId: string;
1262
2247
  id: string;
1263
2248
  startedAt: string;
1264
- input: Record<string, import("./common").JsonValue>;
1265
2249
  workflowId: string;
2250
+ workflowRunId: string;
2251
+ input: Record<string, import("./common").JsonValue>;
1266
2252
  nodeIndex: number;
1267
- nodeType: "action" | "agent" | "step" | "intervention";
2253
+ nodeType: "agent" | "action" | "step" | "intervention";
1268
2254
  nodeId: string;
1269
2255
  nodeKey: string;
1270
- workflowRunId: string;
2256
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1271
2257
  agentExecution?: {
1272
2258
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1273
2259
  agentId: string;
@@ -1275,10 +2261,28 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1275
2261
  startedAt?: string | undefined;
1276
2262
  completedAt?: string | undefined;
1277
2263
  modelId?: string | undefined;
2264
+ usage?: {
2265
+ reportingStatus: "complete" | "partial" | "unavailable";
2266
+ inputTokens?: number | undefined;
2267
+ outputTokens?: number | undefined;
2268
+ totalTokens?: number | undefined;
2269
+ uncachedInputTokens?: number | undefined;
2270
+ cacheReadInputTokens?: number | undefined;
2271
+ cacheWriteInputTokens?: number | undefined;
2272
+ textOutputTokens?: number | undefined;
2273
+ reasoningOutputTokens?: number | undefined;
2274
+ } | undefined;
2275
+ cost?: {
2276
+ amounts: {
2277
+ currency: string;
2278
+ amountNanos: string;
2279
+ }[];
2280
+ ratedCallCount: number;
2281
+ unpriceableCallCount: number;
2282
+ unvaluedCallCount: number;
2283
+ } | undefined;
1278
2284
  finishReason?: string | undefined;
1279
- usage?: Record<string, unknown> | undefined;
1280
2285
  } | undefined;
1281
- error?: string | undefined;
1282
2286
  finishedAt?: string | undefined;
1283
2287
  output?: Record<string, import("./common").JsonValue> | undefined;
1284
2288
  }[];
@@ -1327,15 +2331,15 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1327
2331
  status: "cancelled" | "expired" | "pending" | "submitted";
1328
2332
  projectId: string;
1329
2333
  id: string;
1330
- input: Record<string, import("./common").JsonValue>;
1331
2334
  workflowId: string;
1332
2335
  nodeRunId: string;
2336
+ workflowRunId: string;
2337
+ input: Record<string, import("./common").JsonValue>;
1333
2338
  nodeIndex: number;
1334
2339
  nodeId: string;
1335
2340
  nodeKey: string;
1336
2341
  interventionId: string;
1337
2342
  requestedAt: string;
1338
- workflowRunId: string;
1339
2343
  defaultResponse: Record<string, import("./common").JsonValue>;
1340
2344
  response?: Record<string, import("./common").JsonValue> | undefined;
1341
2345
  expiresAt?: string | undefined;
@@ -1354,15 +2358,15 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1354
2358
  status: "cancelled" | "expired" | "pending" | "submitted";
1355
2359
  projectId: string;
1356
2360
  id: string;
1357
- input: Record<string, import("./common").JsonValue>;
1358
2361
  workflowId: string;
1359
2362
  nodeRunId: string;
2363
+ workflowRunId: string;
2364
+ input: Record<string, import("./common").JsonValue>;
1360
2365
  nodeIndex: number;
1361
2366
  nodeId: string;
1362
2367
  nodeKey: string;
1363
2368
  interventionId: string;
1364
2369
  requestedAt: string;
1365
- workflowRunId: string;
1366
2370
  defaultResponse: Record<string, import("./common").JsonValue>;
1367
2371
  response?: Record<string, import("./common").JsonValue> | undefined;
1368
2372
  expiresAt?: string | undefined;
@@ -1387,15 +2391,15 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1387
2391
  status: "cancelled" | "expired" | "pending" | "submitted";
1388
2392
  projectId: string;
1389
2393
  id: string;
1390
- input: Record<string, import("./common").JsonValue>;
1391
2394
  workflowId: string;
1392
2395
  nodeRunId: string;
2396
+ workflowRunId: string;
2397
+ input: Record<string, import("./common").JsonValue>;
1393
2398
  nodeIndex: number;
1394
2399
  nodeId: string;
1395
2400
  nodeKey: string;
1396
2401
  interventionId: string;
1397
2402
  requestedAt: string;
1398
- workflowRunId: string;
1399
2403
  defaultResponse: Record<string, import("./common").JsonValue>;
1400
2404
  response?: Record<string, import("./common").JsonValue> | undefined;
1401
2405
  expiresAt?: string | undefined;
@@ -1418,15 +2422,15 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1418
2422
  status: "cancelled" | "expired" | "pending" | "submitted";
1419
2423
  projectId: string;
1420
2424
  id: string;
1421
- input: Record<string, import("./common").JsonValue>;
1422
2425
  workflowId: string;
1423
2426
  nodeRunId: string;
2427
+ workflowRunId: string;
2428
+ input: Record<string, import("./common").JsonValue>;
1424
2429
  nodeIndex: number;
1425
2430
  nodeId: string;
1426
2431
  nodeKey: string;
1427
2432
  interventionId: string;
1428
2433
  requestedAt: string;
1429
- workflowRunId: string;
1430
2434
  defaultResponse: Record<string, import("./common").JsonValue>;
1431
2435
  response?: Record<string, import("./common").JsonValue> | undefined;
1432
2436
  expiresAt?: string | undefined;
@@ -1487,15 +2491,15 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1487
2491
  status: "cancelled" | "expired" | "pending" | "submitted";
1488
2492
  projectId: string;
1489
2493
  id: string;
1490
- input: Record<string, import("./common").JsonValue>;
1491
2494
  workflowId: string;
1492
2495
  nodeRunId: string;
2496
+ workflowRunId: string;
2497
+ input: Record<string, import("./common").JsonValue>;
1493
2498
  nodeIndex: number;
1494
2499
  nodeId: string;
1495
2500
  nodeKey: string;
1496
2501
  interventionId: string;
1497
2502
  requestedAt: string;
1498
- workflowRunId: string;
1499
2503
  defaultResponse: Record<string, import("./common").JsonValue>;
1500
2504
  response?: Record<string, import("./common").JsonValue> | undefined;
1501
2505
  expiresAt?: string | undefined;
@@ -1514,15 +2518,15 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1514
2518
  status: "cancelled" | "expired" | "pending" | "submitted";
1515
2519
  projectId: string;
1516
2520
  id: string;
1517
- input: Record<string, import("./common").JsonValue>;
1518
2521
  workflowId: string;
1519
2522
  nodeRunId: string;
2523
+ workflowRunId: string;
2524
+ input: Record<string, import("./common").JsonValue>;
1520
2525
  nodeIndex: number;
1521
2526
  nodeId: string;
1522
2527
  nodeKey: string;
1523
2528
  interventionId: string;
1524
2529
  requestedAt: string;
1525
- workflowRunId: string;
1526
2530
  defaultResponse: Record<string, import("./common").JsonValue>;
1527
2531
  response?: Record<string, import("./common").JsonValue> | undefined;
1528
2532
  expiresAt?: string | undefined;
@@ -1545,15 +2549,15 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1545
2549
  status: "cancelled" | "expired" | "pending" | "submitted";
1546
2550
  projectId: string;
1547
2551
  id: string;
1548
- input: Record<string, import("./common").JsonValue>;
1549
2552
  workflowId: string;
1550
2553
  nodeRunId: string;
2554
+ workflowRunId: string;
2555
+ input: Record<string, import("./common").JsonValue>;
1551
2556
  nodeIndex: number;
1552
2557
  nodeId: string;
1553
2558
  nodeKey: string;
1554
2559
  interventionId: string;
1555
2560
  requestedAt: string;
1556
- workflowRunId: string;
1557
2561
  defaultResponse: Record<string, import("./common").JsonValue>;
1558
2562
  response?: Record<string, import("./common").JsonValue> | undefined;
1559
2563
  expiresAt?: string | undefined;
@@ -1575,15 +2579,15 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1575
2579
  status: "cancelled" | "expired" | "pending" | "submitted";
1576
2580
  projectId: string;
1577
2581
  id: string;
1578
- input: Record<string, import("./common").JsonValue>;
1579
2582
  workflowId: string;
1580
2583
  nodeRunId: string;
2584
+ workflowRunId: string;
2585
+ input: Record<string, import("./common").JsonValue>;
1581
2586
  nodeIndex: number;
1582
2587
  nodeId: string;
1583
2588
  nodeKey: string;
1584
2589
  interventionId: string;
1585
2590
  requestedAt: string;
1586
- workflowRunId: string;
1587
2591
  defaultResponse: Record<string, import("./common").JsonValue>;
1588
2592
  response?: Record<string, import("./common").JsonValue> | undefined;
1589
2593
  expiresAt?: string | undefined;
@@ -1644,15 +2648,15 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1644
2648
  status: "cancelled" | "expired" | "pending" | "submitted";
1645
2649
  projectId: string;
1646
2650
  id: string;
1647
- input: Record<string, import("./common").JsonValue>;
1648
2651
  workflowId: string;
1649
2652
  nodeRunId: string;
2653
+ workflowRunId: string;
2654
+ input: Record<string, import("./common").JsonValue>;
1650
2655
  nodeIndex: number;
1651
2656
  nodeId: string;
1652
2657
  nodeKey: string;
1653
2658
  interventionId: string;
1654
2659
  requestedAt: string;
1655
- workflowRunId: string;
1656
2660
  defaultResponse: Record<string, import("./common").JsonValue>;
1657
2661
  response?: Record<string, import("./common").JsonValue> | undefined;
1658
2662
  expiresAt?: string | undefined;
@@ -1671,15 +2675,15 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1671
2675
  status: "cancelled" | "expired" | "pending" | "submitted";
1672
2676
  projectId: string;
1673
2677
  id: string;
1674
- input: Record<string, import("./common").JsonValue>;
1675
2678
  workflowId: string;
1676
2679
  nodeRunId: string;
2680
+ workflowRunId: string;
2681
+ input: Record<string, import("./common").JsonValue>;
1677
2682
  nodeIndex: number;
1678
2683
  nodeId: string;
1679
2684
  nodeKey: string;
1680
2685
  interventionId: string;
1681
2686
  requestedAt: string;
1682
- workflowRunId: string;
1683
2687
  defaultResponse: Record<string, import("./common").JsonValue>;
1684
2688
  response?: Record<string, import("./common").JsonValue> | undefined;
1685
2689
  expiresAt?: string | undefined;
@@ -1700,15 +2704,15 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1700
2704
  status: "cancelled" | "expired" | "pending" | "submitted";
1701
2705
  projectId: string;
1702
2706
  id: string;
1703
- input: Record<string, import("./common").JsonValue>;
1704
2707
  workflowId: string;
1705
2708
  nodeRunId: string;
2709
+ workflowRunId: string;
2710
+ input: Record<string, import("./common").JsonValue>;
1706
2711
  nodeIndex: number;
1707
2712
  nodeId: string;
1708
2713
  nodeKey: string;
1709
2714
  interventionId: string;
1710
2715
  requestedAt: string;
1711
- workflowRunId: string;
1712
2716
  defaultResponse: Record<string, import("./common").JsonValue>;
1713
2717
  response?: Record<string, import("./common").JsonValue> | undefined;
1714
2718
  expiresAt?: string | undefined;
@@ -1729,15 +2733,15 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1729
2733
  status: "cancelled" | "expired" | "pending" | "submitted";
1730
2734
  projectId: string;
1731
2735
  id: string;
1732
- input: Record<string, import("./common").JsonValue>;
1733
2736
  workflowId: string;
1734
2737
  nodeRunId: string;
2738
+ workflowRunId: string;
2739
+ input: Record<string, import("./common").JsonValue>;
1735
2740
  nodeIndex: number;
1736
2741
  nodeId: string;
1737
2742
  nodeKey: string;
1738
2743
  interventionId: string;
1739
2744
  requestedAt: string;
1740
- workflowRunId: string;
1741
2745
  defaultResponse: Record<string, import("./common").JsonValue>;
1742
2746
  response?: Record<string, import("./common").JsonValue> | undefined;
1743
2747
  expiresAt?: string | undefined;