@sixb/server 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) 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/guard.d.ts +3 -3
  7. package/dist/auth/guard.d.ts.map +1 -1
  8. package/dist/auth/public-routes.d.ts.map +1 -1
  9. package/dist/auth/scope.d.ts +21 -27
  10. package/dist/auth/scope.d.ts.map +1 -1
  11. package/dist/auth/session-cookies.d.ts +2 -2
  12. package/dist/auth/session-cookies.d.ts.map +1 -1
  13. package/dist/connectors/http.d.ts +16 -0
  14. package/dist/connectors/http.d.ts.map +1 -0
  15. package/dist/files/content.d.ts +11 -0
  16. package/dist/files/content.d.ts.map +1 -1
  17. package/dist/index.js +4164 -3541
  18. package/dist/index.js.map +57 -52
  19. package/dist/openapi/tags.d.ts +11 -3
  20. package/dist/openapi/tags.d.ts.map +1 -1
  21. package/dist/registerRoutes.d.ts +6 -2
  22. package/dist/registerRoutes.d.ts.map +1 -1
  23. package/dist/routes/action-runs.d.ts +21 -31
  24. package/dist/routes/action-runs.d.ts.map +1 -1
  25. package/dist/routes/actions.d.ts +9 -8
  26. package/dist/routes/actions.d.ts.map +1 -1
  27. package/dist/routes/agent-api-gateway.d.ts +2 -2
  28. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  29. package/dist/routes/agents.d.ts +130 -131
  30. package/dist/routes/agents.d.ts.map +1 -1
  31. package/dist/routes/auth.d.ts +90 -90
  32. package/dist/routes/auth.d.ts.map +1 -1
  33. package/dist/routes/connector-connection-runs.d.ts +794 -0
  34. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  35. package/dist/routes/connector-connections.d.ts +219 -0
  36. package/dist/routes/connector-connections.d.ts.map +1 -0
  37. package/dist/routes/connectors.d.ts +10 -4
  38. package/dist/routes/connectors.d.ts.map +1 -1
  39. package/dist/routes/datasets.d.ts +15 -9
  40. package/dist/routes/datasets.d.ts.map +1 -1
  41. package/dist/routes/events.d.ts +8 -8
  42. package/dist/routes/events.d.ts.map +1 -1
  43. package/dist/routes/files.d.ts +11 -10
  44. package/dist/routes/files.d.ts.map +1 -1
  45. package/dist/routes/links.d.ts +2 -2
  46. package/dist/routes/links.d.ts.map +1 -1
  47. package/dist/routes/logs.d.ts +5 -5
  48. package/dist/routes/logs.d.ts.map +1 -1
  49. package/dist/routes/objects.d.ts +34 -34
  50. package/dist/routes/objects.d.ts.map +1 -1
  51. package/dist/routes/ontology.d.ts +62 -62
  52. package/dist/routes/ontology.d.ts.map +1 -1
  53. package/dist/routes/pipelines.d.ts +28 -34
  54. package/dist/routes/pipelines.d.ts.map +1 -1
  55. package/dist/routes/project.d.ts +2 -2
  56. package/dist/routes/project.d.ts.map +1 -1
  57. package/dist/routes/projections.d.ts +131 -83
  58. package/dist/routes/projections.d.ts.map +1 -1
  59. package/dist/routes/rules.d.ts +6 -6
  60. package/dist/routes/rules.d.ts.map +1 -1
  61. package/dist/routes/status.d.ts +2 -2
  62. package/dist/routes/status.d.ts.map +1 -1
  63. package/dist/routes/syncs.d.ts +27 -30
  64. package/dist/routes/syncs.d.ts.map +1 -1
  65. package/dist/routes/telemetry.d.ts +2 -2
  66. package/dist/routes/telemetry.d.ts.map +1 -1
  67. package/dist/routes/webhook-runs.d.ts +9 -9
  68. package/dist/routes/webhook-runs.d.ts.map +1 -1
  69. package/dist/routes/webhooks.d.ts +2 -2
  70. package/dist/routes/webhooks.d.ts.map +1 -1
  71. package/dist/routes/workflows.d.ts +132 -107
  72. package/dist/routes/workflows.d.ts.map +1 -1
  73. package/dist/routes/ws/agents.d.ts +11 -5
  74. package/dist/routes/ws/agents.d.ts.map +1 -1
  75. package/dist/routes/ws/events.d.ts +8 -8
  76. package/dist/routes/ws/events.d.ts.map +1 -1
  77. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  78. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  79. package/dist/routes/ws/logs.d.ts +10 -10
  80. package/dist/routes/ws/logs.d.ts.map +1 -1
  81. package/dist/schemas/actions.d.ts +97 -202
  82. package/dist/schemas/actions.d.ts.map +1 -1
  83. package/dist/schemas/agents.d.ts +443 -440
  84. package/dist/schemas/agents.d.ts.map +1 -1
  85. package/dist/schemas/ai-usage.d.ts +34 -0
  86. package/dist/schemas/ai-usage.d.ts.map +1 -0
  87. package/dist/schemas/auth.d.ts +168 -168
  88. package/dist/schemas/common.d.ts +37 -0
  89. package/dist/schemas/common.d.ts.map +1 -1
  90. package/dist/schemas/connectors.d.ts +713 -2
  91. package/dist/schemas/connectors.d.ts.map +1 -1
  92. package/dist/schemas/datasets.d.ts +29 -23
  93. package/dist/schemas/datasets.d.ts.map +1 -1
  94. package/dist/schemas/event-payloads.d.ts +6 -6
  95. package/dist/schemas/events.d.ts +34 -34
  96. package/dist/schemas/logs.d.ts +22 -22
  97. package/dist/schemas/objects.d.ts +10 -10
  98. package/dist/schemas/ontology.d.ts +174 -174
  99. package/dist/schemas/pipelines.d.ts +131 -190
  100. package/dist/schemas/pipelines.d.ts.map +1 -1
  101. package/dist/schemas/projections.d.ts +918 -563
  102. package/dist/schemas/projections.d.ts.map +1 -1
  103. package/dist/schemas/rules.d.ts +6 -6
  104. package/dist/schemas/status.d.ts +2 -2
  105. package/dist/schemas/syncs.d.ts +88 -124
  106. package/dist/schemas/syncs.d.ts.map +1 -1
  107. package/dist/schemas/webhook-runs.d.ts +41 -41
  108. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  109. package/dist/schemas/workflows.d.ts +792 -406
  110. package/dist/schemas/workflows.d.ts.map +1 -1
  111. package/dist/server.d.ts +6 -6
  112. package/dist/server.d.ts.map +1 -1
  113. package/dist/utils/http.d.ts +2 -0
  114. package/dist/utils/http.d.ts.map +1 -1
  115. package/dist/utils/ws.d.ts +4 -3
  116. package/dist/utils/ws.d.ts.map +1 -1
  117. package/package.json +8 -5
  118. package/src/auth/access-token-boundary.ts +4 -4
  119. package/src/auth/application-access.ts +8 -9
  120. package/src/auth/connector-callback-cookie.ts +95 -0
  121. package/src/auth/guard.ts +11 -11
  122. package/src/auth/public-routes.ts +13 -0
  123. package/src/auth/scope.ts +34 -30
  124. package/src/auth/session-cookies.ts +3 -3
  125. package/src/connectors/http.ts +110 -0
  126. package/src/files/content.ts +11 -0
  127. package/src/openapi/tags.ts +9 -1
  128. package/src/registerRoutes.ts +34 -23
  129. package/src/routes/action-runs.ts +49 -42
  130. package/src/routes/actions.ts +7 -13
  131. package/src/routes/agent-api-gateway.ts +87 -42
  132. package/src/routes/agents.ts +89 -200
  133. package/src/routes/auth.ts +87 -91
  134. package/src/routes/connector-connection-runs.ts +346 -0
  135. package/src/routes/connector-connections.ts +135 -0
  136. package/src/routes/connectors.ts +24 -12
  137. package/src/routes/datasets.ts +55 -54
  138. package/src/routes/events.ts +5 -5
  139. package/src/routes/files.ts +24 -31
  140. package/src/routes/links.ts +32 -35
  141. package/src/routes/logs.ts +6 -11
  142. package/src/routes/objects.ts +51 -114
  143. package/src/routes/ontology.ts +27 -38
  144. package/src/routes/pipelines.ts +28 -62
  145. package/src/routes/project.ts +3 -3
  146. package/src/routes/projections.ts +26 -38
  147. package/src/routes/rules.ts +11 -25
  148. package/src/routes/status.ts +5 -5
  149. package/src/routes/syncs.ts +19 -45
  150. package/src/routes/telemetry.ts +18 -29
  151. package/src/routes/webhook-runs.ts +5 -5
  152. package/src/routes/webhooks.ts +259 -341
  153. package/src/routes/workflows.ts +260 -259
  154. package/src/routes/ws/agents.ts +196 -66
  155. package/src/routes/ws/events.ts +11 -10
  156. package/src/routes/ws/log-subscription-hub.ts +6 -12
  157. package/src/routes/ws/logs.ts +13 -5
  158. package/src/schemas/actions.ts +58 -25
  159. package/src/schemas/agents.ts +19 -14
  160. package/src/schemas/ai-usage.ts +16 -0
  161. package/src/schemas/common.ts +24 -0
  162. package/src/schemas/connectors.ts +164 -0
  163. package/src/schemas/datasets.ts +3 -2
  164. package/src/schemas/pipelines.ts +24 -40
  165. package/src/schemas/projections.ts +17 -3
  166. package/src/schemas/syncs.ts +16 -10
  167. package/src/schemas/webhook-runs.ts +10 -5
  168. package/src/schemas/workflows.ts +42 -25
  169. package/src/server.ts +65 -26
  170. package/src/utils/http.ts +34 -6
  171. package/src/utils/ws.ts +10 -5
@@ -1,4 +1,6 @@
1
+ import { type SixbFailure } from "@sixb/core/storage";
1
2
  import { z } from "zod";
3
+ export declare const WorkflowIOSnapshotSchema: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
2
4
  export declare const WorkflowParamsSchema: z.ZodObject<{
3
5
  workflowId: z.ZodString;
4
6
  }, "strip", z.ZodTypeAny, {
@@ -32,19 +34,19 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
32
34
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
33
35
  }, "strip", z.ZodTypeAny, {
34
36
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
37
+ startedAfter?: string | undefined;
38
+ startedBefore?: string | undefined;
35
39
  limit?: string | undefined;
36
40
  offset?: string | undefined;
37
41
  order?: "asc" | "desc" | undefined;
38
- startedAfter?: string | undefined;
39
- startedBefore?: string | undefined;
40
42
  workflowId?: string | undefined;
41
43
  }, {
42
44
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
45
+ startedAfter?: string | undefined;
46
+ startedBefore?: string | undefined;
43
47
  limit?: string | undefined;
44
48
  offset?: string | undefined;
45
49
  order?: "asc" | "desc" | undefined;
46
- startedAfter?: string | undefined;
47
- startedBefore?: string | undefined;
48
50
  workflowId?: string | undefined;
49
51
  }>;
50
52
  export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
@@ -88,79 +90,129 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
88
90
  requestedBefore?: string | undefined;
89
91
  }>;
90
92
  export declare const RequestWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{
91
- input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
93
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
92
94
  }, "strip", z.ZodTypeAny, {
93
- input?: Record<string, unknown> | undefined;
95
+ input?: Record<string, import("./common").JsonValue> | undefined;
94
96
  }, {
95
- input?: Record<string, unknown> | undefined;
97
+ input?: Record<string, import("./common").JsonValue> | undefined;
96
98
  }>>;
97
99
  export declare const WorkflowInterventionActorSchema: z.ZodObject<{
98
100
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
99
101
  principalId: z.ZodString;
100
102
  }, "strip", z.ZodTypeAny, {
101
- principalType: "serviceAccount" | "user" | "system";
103
+ principalType: "user" | "serviceAccount" | "system";
102
104
  principalId: string;
103
105
  }, {
104
- principalType: "serviceAccount" | "user" | "system";
106
+ principalType: "user" | "serviceAccount" | "system";
105
107
  principalId: string;
106
108
  }>;
107
109
  export declare const CancelWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
108
110
  export declare const SubmitWorkflowInterventionBodySchema: z.ZodObject<{
109
- response: z.ZodRecord<z.ZodString, z.ZodUnknown>;
111
+ response: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
110
112
  }, "strip", z.ZodTypeAny, {
111
- response: Record<string, unknown>;
113
+ response: Record<string, import("./common").JsonValue>;
112
114
  }, {
113
- response: Record<string, unknown>;
115
+ response: Record<string, import("./common").JsonValue>;
114
116
  }>;
115
117
  export declare const CancelWorkflowInterventionBodySchema: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
116
- export declare const WorkflowRunSchema: z.ZodObject<{
118
+ export declare const WorkflowRunSummarySchema: z.ZodObject<{
117
119
  id: z.ZodString;
118
120
  projectId: z.ZodString;
119
121
  workflowId: z.ZodString;
120
122
  status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
121
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
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;
129
130
  }, "strip", z.ZodTypeAny, {
130
- principalType: "serviceAccount" | "user" | "system";
131
+ principalType: "user" | "serviceAccount" | "system";
131
132
  principalId: string;
132
133
  }, {
133
- principalType: "serviceAccount" | "user" | "system";
134
+ principalType: "user" | "serviceAccount" | "system";
134
135
  principalId: string;
135
136
  }>;
136
137
  }, "strip", z.ZodTypeAny, {
137
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
138
138
  projectId: string;
139
139
  id: string;
140
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
140
141
  startedAt: string;
141
- input: Record<string, unknown>;
142
- workflowId: string;
143
142
  requestedBy: {
144
- principalType: "serviceAccount" | "user" | "system";
143
+ principalType: "user" | "serviceAccount" | "system";
145
144
  principalId: string;
146
145
  };
147
- error?: string | undefined;
146
+ workflowId: string;
147
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
148
148
  queuedAt?: string | undefined;
149
149
  finishedAt?: string | undefined;
150
150
  }, {
151
+ projectId: string;
152
+ id: string;
151
153
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
154
+ startedAt: string;
155
+ requestedBy: {
156
+ principalType: "user" | "serviceAccount" | "system";
157
+ principalId: string;
158
+ };
159
+ workflowId: string;
160
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
161
+ queuedAt?: string | undefined;
162
+ finishedAt?: string | undefined;
163
+ }>;
164
+ export declare const WorkflowRunDetailSchema: z.ZodObject<{
165
+ id: z.ZodString;
166
+ projectId: z.ZodString;
167
+ workflowId: z.ZodString;
168
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
169
+ queuedAt: z.ZodOptional<z.ZodString>;
170
+ startedAt: z.ZodString;
171
+ finishedAt: 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">>>;
173
+ requestedBy: z.ZodObject<{
174
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
175
+ principalId: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ principalType: "user" | "serviceAccount" | "system";
178
+ principalId: string;
179
+ }, {
180
+ principalType: "user" | "serviceAccount" | "system";
181
+ principalId: string;
182
+ }>;
183
+ } & {
184
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
185
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
186
+ }, "strip", z.ZodTypeAny, {
152
187
  projectId: string;
153
188
  id: string;
189
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
154
190
  startedAt: string;
155
- input: Record<string, unknown>;
191
+ input: Record<string, import("./common").JsonValue>;
192
+ requestedBy: {
193
+ principalType: "user" | "serviceAccount" | "system";
194
+ principalId: string;
195
+ };
156
196
  workflowId: string;
197
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
198
+ queuedAt?: string | undefined;
199
+ finishedAt?: string | undefined;
200
+ output?: Record<string, import("./common").JsonValue> | undefined;
201
+ }, {
202
+ projectId: string;
203
+ id: string;
204
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
205
+ startedAt: string;
206
+ input: Record<string, import("./common").JsonValue>;
157
207
  requestedBy: {
158
- principalType: "serviceAccount" | "user" | "system";
208
+ principalType: "user" | "serviceAccount" | "system";
159
209
  principalId: string;
160
210
  };
161
- error?: string | undefined;
211
+ workflowId: string;
212
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
162
213
  queuedAt?: string | undefined;
163
214
  finishedAt?: string | undefined;
215
+ output?: Record<string, import("./common").JsonValue> | undefined;
164
216
  }>;
165
217
  export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
166
218
  agentId: z.ZodString;
@@ -168,7 +220,37 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
168
220
  attempt: z.ZodNumber;
169
221
  modelId: z.ZodOptional<z.ZodString>;
170
222
  finishReason: z.ZodOptional<z.ZodString>;
171
- 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
+ }>>;
172
254
  startedAt: z.ZodOptional<z.ZodString>;
173
255
  completedAt: z.ZodOptional<z.ZodString>;
174
256
  }, "strip", z.ZodTypeAny, {
@@ -179,7 +261,17 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
179
261
  completedAt?: string | undefined;
180
262
  modelId?: string | undefined;
181
263
  finishReason?: string | undefined;
182
- usage?: Record<string, unknown> | undefined;
264
+ usage?: {
265
+ reportingStatus: "complete" | "partial" | "unavailable";
266
+ inputTokens?: number | undefined;
267
+ outputTokens?: number | undefined;
268
+ totalTokens?: number | undefined;
269
+ uncachedInputTokens?: number | undefined;
270
+ cacheReadInputTokens?: number | undefined;
271
+ cacheWriteInputTokens?: number | undefined;
272
+ textOutputTokens?: number | undefined;
273
+ reasoningOutputTokens?: number | undefined;
274
+ } | undefined;
183
275
  }, {
184
276
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
185
277
  agentId: string;
@@ -188,7 +280,17 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
188
280
  completedAt?: string | undefined;
189
281
  modelId?: string | undefined;
190
282
  finishReason?: string | undefined;
191
- usage?: Record<string, unknown> | undefined;
283
+ usage?: {
284
+ reportingStatus: "complete" | "partial" | "unavailable";
285
+ inputTokens?: number | undefined;
286
+ outputTokens?: number | undefined;
287
+ totalTokens?: number | undefined;
288
+ uncachedInputTokens?: number | undefined;
289
+ cacheReadInputTokens?: number | undefined;
290
+ cacheWriteInputTokens?: number | undefined;
291
+ textOutputTokens?: number | undefined;
292
+ reasoningOutputTokens?: number | undefined;
293
+ } | undefined;
192
294
  }>;
193
295
  export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
194
296
  agentId: z.ZodString;
@@ -196,25 +298,45 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
196
298
  attempt: z.ZodNumber;
197
299
  modelId: z.ZodOptional<z.ZodString>;
198
300
  finishReason: z.ZodOptional<z.ZodString>;
199
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
301
+ usage: z.ZodOptional<z.ZodObject<{
302
+ inputTokens: z.ZodOptional<z.ZodNumber>;
303
+ outputTokens: z.ZodOptional<z.ZodNumber>;
304
+ totalTokens: z.ZodOptional<z.ZodNumber>;
305
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
306
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
307
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
308
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
309
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
310
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ reportingStatus: "complete" | "partial" | "unavailable";
313
+ inputTokens?: number | undefined;
314
+ outputTokens?: number | undefined;
315
+ totalTokens?: number | undefined;
316
+ uncachedInputTokens?: number | undefined;
317
+ cacheReadInputTokens?: number | undefined;
318
+ cacheWriteInputTokens?: number | undefined;
319
+ textOutputTokens?: number | undefined;
320
+ reasoningOutputTokens?: number | undefined;
321
+ }, {
322
+ reportingStatus: "complete" | "partial" | "unavailable";
323
+ inputTokens?: number | undefined;
324
+ outputTokens?: number | undefined;
325
+ totalTokens?: number | undefined;
326
+ uncachedInputTokens?: number | undefined;
327
+ cacheReadInputTokens?: number | undefined;
328
+ cacheWriteInputTokens?: number | undefined;
329
+ textOutputTokens?: number | undefined;
330
+ reasoningOutputTokens?: number | undefined;
331
+ }>>;
200
332
  startedAt: z.ZodOptional<z.ZodString>;
201
333
  completedAt: z.ZodOptional<z.ZodString>;
202
334
  } & {
203
335
  nodeRunId: z.ZodString;
204
336
  prompt: z.ZodString;
205
- executionPrincipal: z.ZodOptional<z.ZodObject<{
206
- principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
207
- principalId: z.ZodString;
208
- }, "strip", z.ZodTypeAny, {
209
- principalType: "serviceAccount" | "user" | "system";
210
- principalId: string;
211
- }, {
212
- principalType: "serviceAccount" | "user" | "system";
213
- principalId: string;
214
- }>>;
215
337
  trace: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
216
338
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
217
- error: z.ZodOptional<z.ZodString>;
339
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
218
340
  createdAt: z.ZodString;
219
341
  }, "strip", z.ZodTypeAny, {
220
342
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -223,16 +345,22 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
223
345
  attempt: number;
224
346
  nodeRunId: string;
225
347
  prompt: string;
226
- error?: string | undefined;
348
+ error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
227
349
  startedAt?: string | undefined;
228
350
  completedAt?: string | undefined;
229
- executionPrincipal?: {
230
- principalType: "serviceAccount" | "user" | "system";
231
- principalId: string;
232
- } | undefined;
233
351
  modelId?: string | undefined;
234
352
  finishReason?: string | undefined;
235
- usage?: Record<string, unknown> | undefined;
353
+ usage?: {
354
+ reportingStatus: "complete" | "partial" | "unavailable";
355
+ inputTokens?: number | undefined;
356
+ outputTokens?: number | undefined;
357
+ totalTokens?: number | undefined;
358
+ uncachedInputTokens?: number | undefined;
359
+ cacheReadInputTokens?: number | undefined;
360
+ cacheWriteInputTokens?: number | undefined;
361
+ textOutputTokens?: number | undefined;
362
+ reasoningOutputTokens?: number | undefined;
363
+ } | undefined;
236
364
  diagnostics?: unknown[] | undefined;
237
365
  trace?: unknown[] | undefined;
238
366
  }, {
@@ -242,16 +370,22 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
242
370
  attempt: number;
243
371
  nodeRunId: string;
244
372
  prompt: string;
245
- error?: string | undefined;
373
+ error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
246
374
  startedAt?: string | undefined;
247
375
  completedAt?: string | undefined;
248
- executionPrincipal?: {
249
- principalType: "serviceAccount" | "user" | "system";
250
- principalId: string;
251
- } | undefined;
252
376
  modelId?: string | undefined;
253
377
  finishReason?: string | undefined;
254
- usage?: Record<string, unknown> | undefined;
378
+ usage?: {
379
+ reportingStatus: "complete" | "partial" | "unavailable";
380
+ inputTokens?: number | undefined;
381
+ outputTokens?: number | undefined;
382
+ totalTokens?: number | undefined;
383
+ uncachedInputTokens?: number | undefined;
384
+ cacheReadInputTokens?: number | undefined;
385
+ cacheWriteInputTokens?: number | undefined;
386
+ textOutputTokens?: number | undefined;
387
+ reasoningOutputTokens?: number | undefined;
388
+ } | undefined;
255
389
  diagnostics?: unknown[] | undefined;
256
390
  trace?: unknown[] | undefined;
257
391
  }>;
@@ -265,18 +399,48 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
265
399
  nodeId: z.ZodString;
266
400
  nodeKey: z.ZodString;
267
401
  status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
268
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
402
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
269
403
  startedAt: z.ZodString;
270
404
  finishedAt: z.ZodOptional<z.ZodString>;
271
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
- error: z.ZodOptional<z.ZodString>;
405
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
406
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
273
407
  agentExecution: z.ZodOptional<z.ZodObject<{
274
408
  agentId: z.ZodString;
275
409
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
276
410
  attempt: z.ZodNumber;
277
411
  modelId: z.ZodOptional<z.ZodString>;
278
412
  finishReason: z.ZodOptional<z.ZodString>;
279
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
413
+ usage: z.ZodOptional<z.ZodObject<{
414
+ inputTokens: z.ZodOptional<z.ZodNumber>;
415
+ outputTokens: z.ZodOptional<z.ZodNumber>;
416
+ totalTokens: z.ZodOptional<z.ZodNumber>;
417
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
418
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
419
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
420
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
421
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
422
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ reportingStatus: "complete" | "partial" | "unavailable";
425
+ inputTokens?: number | undefined;
426
+ outputTokens?: number | undefined;
427
+ totalTokens?: number | undefined;
428
+ uncachedInputTokens?: number | undefined;
429
+ cacheReadInputTokens?: number | undefined;
430
+ cacheWriteInputTokens?: number | undefined;
431
+ textOutputTokens?: number | undefined;
432
+ reasoningOutputTokens?: number | undefined;
433
+ }, {
434
+ reportingStatus: "complete" | "partial" | "unavailable";
435
+ inputTokens?: number | undefined;
436
+ outputTokens?: number | undefined;
437
+ totalTokens?: number | undefined;
438
+ uncachedInputTokens?: number | undefined;
439
+ cacheReadInputTokens?: number | undefined;
440
+ cacheWriteInputTokens?: number | undefined;
441
+ textOutputTokens?: number | undefined;
442
+ reasoningOutputTokens?: number | undefined;
443
+ }>>;
280
444
  startedAt: z.ZodOptional<z.ZodString>;
281
445
  completedAt: z.ZodOptional<z.ZodString>;
282
446
  }, "strip", z.ZodTypeAny, {
@@ -287,7 +451,17 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
287
451
  completedAt?: string | undefined;
288
452
  modelId?: string | undefined;
289
453
  finishReason?: string | undefined;
290
- usage?: Record<string, unknown> | undefined;
454
+ usage?: {
455
+ reportingStatus: "complete" | "partial" | "unavailable";
456
+ inputTokens?: number | undefined;
457
+ outputTokens?: number | undefined;
458
+ totalTokens?: number | undefined;
459
+ uncachedInputTokens?: number | undefined;
460
+ cacheReadInputTokens?: number | undefined;
461
+ cacheWriteInputTokens?: number | undefined;
462
+ textOutputTokens?: number | undefined;
463
+ reasoningOutputTokens?: number | undefined;
464
+ } | undefined;
291
465
  }, {
292
466
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
293
467
  agentId: string;
@@ -296,23 +470,30 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
296
470
  completedAt?: string | undefined;
297
471
  modelId?: string | undefined;
298
472
  finishReason?: string | undefined;
299
- usage?: Record<string, unknown> | undefined;
473
+ usage?: {
474
+ reportingStatus: "complete" | "partial" | "unavailable";
475
+ inputTokens?: number | undefined;
476
+ outputTokens?: number | undefined;
477
+ totalTokens?: number | undefined;
478
+ uncachedInputTokens?: number | undefined;
479
+ cacheReadInputTokens?: number | undefined;
480
+ cacheWriteInputTokens?: number | undefined;
481
+ textOutputTokens?: number | undefined;
482
+ reasoningOutputTokens?: number | undefined;
483
+ } | undefined;
300
484
  }>>;
301
485
  }, "strip", z.ZodTypeAny, {
302
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
303
486
  projectId: string;
304
487
  id: string;
488
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
305
489
  startedAt: string;
306
- input: Record<string, unknown>;
490
+ input: Record<string, import("./common").JsonValue>;
307
491
  workflowId: string;
308
492
  nodeIndex: number;
309
- nodeType: "action" | "agent" | "step" | "intervention";
493
+ nodeType: "action" | "step" | "intervention" | "agent";
310
494
  nodeId: string;
311
495
  nodeKey: string;
312
496
  workflowRunId: string;
313
- error?: string | undefined;
314
- finishedAt?: string | undefined;
315
- output?: Record<string, unknown> | undefined;
316
497
  agentExecution?: {
317
498
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
318
499
  agentId: string;
@@ -321,23 +502,33 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
321
502
  completedAt?: string | undefined;
322
503
  modelId?: string | undefined;
323
504
  finishReason?: string | undefined;
324
- usage?: Record<string, unknown> | undefined;
505
+ usage?: {
506
+ reportingStatus: "complete" | "partial" | "unavailable";
507
+ inputTokens?: number | undefined;
508
+ outputTokens?: number | undefined;
509
+ totalTokens?: number | undefined;
510
+ uncachedInputTokens?: number | undefined;
511
+ cacheReadInputTokens?: number | undefined;
512
+ cacheWriteInputTokens?: number | undefined;
513
+ textOutputTokens?: number | undefined;
514
+ reasoningOutputTokens?: number | undefined;
515
+ } | undefined;
325
516
  } | undefined;
517
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
518
+ finishedAt?: string | undefined;
519
+ output?: Record<string, import("./common").JsonValue> | undefined;
326
520
  }, {
327
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
328
521
  projectId: string;
329
522
  id: string;
523
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
330
524
  startedAt: string;
331
- input: Record<string, unknown>;
525
+ input: Record<string, import("./common").JsonValue>;
332
526
  workflowId: string;
333
527
  nodeIndex: number;
334
- nodeType: "action" | "agent" | "step" | "intervention";
528
+ nodeType: "action" | "step" | "intervention" | "agent";
335
529
  nodeId: string;
336
530
  nodeKey: string;
337
531
  workflowRunId: string;
338
- error?: string | undefined;
339
- finishedAt?: string | undefined;
340
- output?: Record<string, unknown> | undefined;
341
532
  agentExecution?: {
342
533
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
343
534
  agentId: string;
@@ -346,8 +537,21 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
346
537
  completedAt?: string | undefined;
347
538
  modelId?: string | undefined;
348
539
  finishReason?: string | undefined;
349
- usage?: Record<string, unknown> | undefined;
540
+ usage?: {
541
+ reportingStatus: "complete" | "partial" | "unavailable";
542
+ inputTokens?: number | undefined;
543
+ outputTokens?: number | undefined;
544
+ totalTokens?: number | undefined;
545
+ uncachedInputTokens?: number | undefined;
546
+ cacheReadInputTokens?: number | undefined;
547
+ cacheWriteInputTokens?: number | undefined;
548
+ textOutputTokens?: number | undefined;
549
+ reasoningOutputTokens?: number | undefined;
550
+ } | undefined;
350
551
  } | undefined;
552
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
553
+ finishedAt?: string | undefined;
554
+ output?: Record<string, import("./common").JsonValue> | undefined;
351
555
  }>;
352
556
  export declare const WorkflowInterventionSchema: z.ZodObject<{
353
557
  id: z.ZodString;
@@ -359,8 +563,8 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
359
563
  nodeId: z.ZodString;
360
564
  nodeKey: z.ZodString;
361
565
  interventionId: z.ZodString;
362
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
363
- defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
566
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
567
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
364
568
  status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
365
569
  requestedAt: z.ZodString;
366
570
  expiresAt: z.ZodOptional<z.ZodString>;
@@ -369,30 +573,30 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
369
573
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
370
574
  principalId: z.ZodString;
371
575
  }, "strip", z.ZodTypeAny, {
372
- principalType: "serviceAccount" | "user" | "system";
576
+ principalType: "user" | "serviceAccount" | "system";
373
577
  principalId: string;
374
578
  }, {
375
- principalType: "serviceAccount" | "user" | "system";
579
+ principalType: "user" | "serviceAccount" | "system";
376
580
  principalId: string;
377
581
  }>>;
378
- response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
582
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
379
583
  cancelledAt: z.ZodOptional<z.ZodString>;
380
584
  cancelledBy: z.ZodOptional<z.ZodObject<{
381
585
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
382
586
  principalId: z.ZodString;
383
587
  }, "strip", z.ZodTypeAny, {
384
- principalType: "serviceAccount" | "user" | "system";
588
+ principalType: "user" | "serviceAccount" | "system";
385
589
  principalId: string;
386
590
  }, {
387
- principalType: "serviceAccount" | "user" | "system";
591
+ principalType: "user" | "serviceAccount" | "system";
388
592
  principalId: string;
389
593
  }>>;
390
594
  expiredAt: z.ZodOptional<z.ZodString>;
391
595
  }, "strip", z.ZodTypeAny, {
392
- status: "cancelled" | "expired" | "pending" | "submitted";
393
596
  projectId: string;
394
597
  id: string;
395
- input: Record<string, unknown>;
598
+ status: "cancelled" | "expired" | "pending" | "submitted";
599
+ input: Record<string, import("./common").JsonValue>;
396
600
  workflowId: string;
397
601
  nodeRunId: string;
398
602
  nodeIndex: number;
@@ -401,25 +605,25 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
401
605
  interventionId: string;
402
606
  requestedAt: string;
403
607
  workflowRunId: string;
404
- defaultResponse: Record<string, unknown>;
405
- response?: Record<string, unknown> | undefined;
608
+ defaultResponse: Record<string, import("./common").JsonValue>;
609
+ response?: Record<string, import("./common").JsonValue> | undefined;
406
610
  expiresAt?: string | undefined;
407
611
  submittedAt?: string | undefined;
408
612
  cancelledAt?: string | undefined;
409
613
  expiredAt?: string | undefined;
410
614
  submittedBy?: {
411
- principalType: "serviceAccount" | "user" | "system";
615
+ principalType: "user" | "serviceAccount" | "system";
412
616
  principalId: string;
413
617
  } | undefined;
414
618
  cancelledBy?: {
415
- principalType: "serviceAccount" | "user" | "system";
619
+ principalType: "user" | "serviceAccount" | "system";
416
620
  principalId: string;
417
621
  } | undefined;
418
622
  }, {
419
- status: "cancelled" | "expired" | "pending" | "submitted";
420
623
  projectId: string;
421
624
  id: string;
422
- input: Record<string, unknown>;
625
+ status: "cancelled" | "expired" | "pending" | "submitted";
626
+ input: Record<string, import("./common").JsonValue>;
423
627
  workflowId: string;
424
628
  nodeRunId: string;
425
629
  nodeIndex: number;
@@ -428,24 +632,24 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
428
632
  interventionId: string;
429
633
  requestedAt: string;
430
634
  workflowRunId: string;
431
- defaultResponse: Record<string, unknown>;
432
- response?: Record<string, unknown> | undefined;
635
+ defaultResponse: Record<string, import("./common").JsonValue>;
636
+ response?: Record<string, import("./common").JsonValue> | undefined;
433
637
  expiresAt?: string | undefined;
434
638
  submittedAt?: string | undefined;
435
639
  cancelledAt?: string | undefined;
436
640
  expiredAt?: string | undefined;
437
641
  submittedBy?: {
438
- principalType: "serviceAccount" | "user" | "system";
642
+ principalType: "user" | "serviceAccount" | "system";
439
643
  principalId: string;
440
644
  } | undefined;
441
645
  cancelledBy?: {
442
- principalType: "serviceAccount" | "user" | "system";
646
+ principalType: "user" | "serviceAccount" | "system";
443
647
  principalId: string;
444
648
  } | undefined;
445
649
  }>;
446
650
  export declare const WorkflowSchema: z.ZodObject<{
447
651
  id: z.ZodString;
448
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
652
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
449
653
  triggers: z.ZodArray<z.ZodObject<{
450
654
  type: z.ZodLiteral<"schedule">;
451
655
  scheduleId: z.ZodString;
@@ -460,225 +664,220 @@ export declare const WorkflowSchema: z.ZodObject<{
460
664
  type: z.ZodLiteral<"step">;
461
665
  id: z.ZodString;
462
666
  key: z.ZodString;
463
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
464
- output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
667
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
668
+ output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
465
669
  }, "strip", z.ZodTypeAny, {
466
- type: "step";
467
670
  id: string;
468
- output: Record<string, unknown>;
671
+ type: "step";
672
+ output: Record<string, import("./common").JsonValue>;
469
673
  key: string;
470
- input: Record<string, unknown>;
674
+ input: Record<string, import("./common").JsonValue>;
471
675
  }, {
472
- type: "step";
473
676
  id: string;
474
- output: Record<string, unknown>;
677
+ type: "step";
678
+ output: Record<string, import("./common").JsonValue>;
475
679
  key: string;
476
- input: Record<string, unknown>;
680
+ input: Record<string, import("./common").JsonValue>;
477
681
  }>, z.ZodObject<{
478
682
  type: z.ZodLiteral<"action">;
479
683
  id: z.ZodString;
480
684
  key: z.ZodString;
481
685
  objectTypeId: z.ZodOptional<z.ZodString>;
482
- params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
686
+ params: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
483
687
  }, "strip", z.ZodTypeAny, {
484
- type: "action";
485
- params: Record<string, unknown>;
486
688
  id: string;
689
+ type: "action";
690
+ params: Record<string, import("./common").JsonValue>;
487
691
  key: string;
488
692
  objectTypeId?: string | undefined;
489
693
  }, {
490
- type: "action";
491
- params: Record<string, unknown>;
492
694
  id: string;
695
+ type: "action";
696
+ params: Record<string, import("./common").JsonValue>;
493
697
  key: string;
494
698
  objectTypeId?: string | undefined;
495
699
  }>, z.ZodObject<{
496
700
  type: z.ZodLiteral<"intervention">;
497
701
  id: z.ZodString;
498
702
  key: z.ZodString;
499
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
500
- response: z.ZodRecord<z.ZodString, z.ZodUnknown>;
703
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
704
+ response: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
501
705
  description: z.ZodOptional<z.ZodString>;
502
706
  }, "strip", z.ZodTypeAny, {
503
- response: Record<string, unknown>;
504
- type: "intervention";
505
707
  id: string;
708
+ response: Record<string, import("./common").JsonValue>;
709
+ type: "intervention";
506
710
  key: string;
507
- input: Record<string, unknown>;
711
+ input: Record<string, import("./common").JsonValue>;
508
712
  description?: string | undefined;
509
713
  }, {
510
- response: Record<string, unknown>;
511
- type: "intervention";
512
714
  id: string;
715
+ response: Record<string, import("./common").JsonValue>;
716
+ type: "intervention";
513
717
  key: string;
514
- input: Record<string, unknown>;
718
+ input: Record<string, import("./common").JsonValue>;
515
719
  description?: string | undefined;
516
720
  }>, z.ZodObject<{
517
721
  type: z.ZodLiteral<"agent">;
518
722
  id: z.ZodString;
519
723
  key: z.ZodString;
520
724
  agentId: z.ZodString;
521
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
522
- output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
725
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
726
+ output: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
523
727
  }, "strip", z.ZodTypeAny, {
524
- agentId: string;
525
- type: "agent";
526
728
  id: string;
527
- output: Record<string, unknown>;
729
+ type: "agent";
730
+ output: Record<string, import("./common").JsonValue>;
528
731
  key: string;
529
- input: Record<string, unknown>;
530
- }, {
531
732
  agentId: string;
532
- type: "agent";
733
+ input: Record<string, import("./common").JsonValue>;
734
+ }, {
533
735
  id: string;
534
- output: Record<string, unknown>;
736
+ type: "agent";
737
+ output: Record<string, import("./common").JsonValue>;
535
738
  key: string;
536
- input: Record<string, unknown>;
739
+ agentId: string;
740
+ input: Record<string, import("./common").JsonValue>;
537
741
  }>]>, "many">;
538
742
  latestRun: z.ZodNullable<z.ZodObject<{
539
743
  id: z.ZodString;
540
744
  projectId: z.ZodString;
541
745
  workflowId: z.ZodString;
542
746
  status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
543
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
544
747
  queuedAt: z.ZodOptional<z.ZodString>;
545
748
  startedAt: z.ZodString;
546
749
  finishedAt: z.ZodOptional<z.ZodString>;
547
- error: z.ZodOptional<z.ZodString>;
750
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
548
751
  requestedBy: z.ZodObject<{
549
752
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
550
753
  principalId: z.ZodString;
551
754
  }, "strip", z.ZodTypeAny, {
552
- principalType: "serviceAccount" | "user" | "system";
755
+ principalType: "user" | "serviceAccount" | "system";
553
756
  principalId: string;
554
757
  }, {
555
- principalType: "serviceAccount" | "user" | "system";
758
+ principalType: "user" | "serviceAccount" | "system";
556
759
  principalId: string;
557
760
  }>;
558
761
  }, "strip", z.ZodTypeAny, {
559
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
560
762
  projectId: string;
561
763
  id: string;
764
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
562
765
  startedAt: string;
563
- input: Record<string, unknown>;
564
- workflowId: string;
565
766
  requestedBy: {
566
- principalType: "serviceAccount" | "user" | "system";
767
+ principalType: "user" | "serviceAccount" | "system";
567
768
  principalId: string;
568
769
  };
569
- error?: string | undefined;
770
+ workflowId: string;
771
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
570
772
  queuedAt?: string | undefined;
571
773
  finishedAt?: string | undefined;
572
774
  }, {
573
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
574
775
  projectId: string;
575
776
  id: string;
777
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
576
778
  startedAt: string;
577
- input: Record<string, unknown>;
578
- workflowId: string;
579
779
  requestedBy: {
580
- principalType: "serviceAccount" | "user" | "system";
780
+ principalType: "user" | "serviceAccount" | "system";
581
781
  principalId: string;
582
782
  };
583
- error?: string | undefined;
783
+ workflowId: string;
784
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
584
785
  queuedAt?: string | undefined;
585
786
  finishedAt?: string | undefined;
586
787
  }>>;
587
788
  }, "strip", z.ZodTypeAny, {
588
789
  id: string;
589
- input: Record<string, unknown>;
790
+ input: Record<string, import("./common").JsonValue>;
590
791
  triggers: {
591
792
  type: "schedule";
592
793
  scheduleId: string;
593
794
  }[];
594
795
  nodes: ({
595
- type: "step";
596
796
  id: string;
597
- output: Record<string, unknown>;
797
+ type: "step";
798
+ output: Record<string, import("./common").JsonValue>;
598
799
  key: string;
599
- input: Record<string, unknown>;
800
+ input: Record<string, import("./common").JsonValue>;
600
801
  } | {
601
- type: "action";
602
- params: Record<string, unknown>;
603
802
  id: string;
803
+ type: "action";
804
+ params: Record<string, import("./common").JsonValue>;
604
805
  key: string;
605
806
  objectTypeId?: string | undefined;
606
807
  } | {
607
- response: Record<string, unknown>;
608
- type: "intervention";
609
808
  id: string;
809
+ response: Record<string, import("./common").JsonValue>;
810
+ type: "intervention";
610
811
  key: string;
611
- input: Record<string, unknown>;
812
+ input: Record<string, import("./common").JsonValue>;
612
813
  description?: string | undefined;
613
814
  } | {
614
- agentId: string;
615
- type: "agent";
616
815
  id: string;
617
- output: Record<string, unknown>;
816
+ type: "agent";
817
+ output: Record<string, import("./common").JsonValue>;
618
818
  key: string;
619
- input: Record<string, unknown>;
819
+ agentId: string;
820
+ input: Record<string, import("./common").JsonValue>;
620
821
  })[];
621
822
  latestRun: {
622
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
623
823
  projectId: string;
624
824
  id: string;
825
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
625
826
  startedAt: string;
626
- input: Record<string, unknown>;
627
- workflowId: string;
628
827
  requestedBy: {
629
- principalType: "serviceAccount" | "user" | "system";
828
+ principalType: "user" | "serviceAccount" | "system";
630
829
  principalId: string;
631
830
  };
632
- error?: string | undefined;
831
+ workflowId: string;
832
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
633
833
  queuedAt?: string | undefined;
634
834
  finishedAt?: string | undefined;
635
835
  } | null;
636
836
  }, {
637
837
  id: string;
638
- input: Record<string, unknown>;
838
+ input: Record<string, import("./common").JsonValue>;
639
839
  triggers: {
640
840
  type: "schedule";
641
841
  scheduleId: string;
642
842
  }[];
643
843
  nodes: ({
644
- type: "step";
645
844
  id: string;
646
- output: Record<string, unknown>;
845
+ type: "step";
846
+ output: Record<string, import("./common").JsonValue>;
647
847
  key: string;
648
- input: Record<string, unknown>;
848
+ input: Record<string, import("./common").JsonValue>;
649
849
  } | {
650
- type: "action";
651
- params: Record<string, unknown>;
652
850
  id: string;
851
+ type: "action";
852
+ params: Record<string, import("./common").JsonValue>;
653
853
  key: string;
654
854
  objectTypeId?: string | undefined;
655
855
  } | {
656
- response: Record<string, unknown>;
657
- type: "intervention";
658
856
  id: string;
857
+ response: Record<string, import("./common").JsonValue>;
858
+ type: "intervention";
659
859
  key: string;
660
- input: Record<string, unknown>;
860
+ input: Record<string, import("./common").JsonValue>;
661
861
  description?: string | undefined;
662
862
  } | {
663
- agentId: string;
664
- type: "agent";
665
863
  id: string;
666
- output: Record<string, unknown>;
864
+ type: "agent";
865
+ output: Record<string, import("./common").JsonValue>;
667
866
  key: string;
668
- input: Record<string, unknown>;
867
+ agentId: string;
868
+ input: Record<string, import("./common").JsonValue>;
669
869
  })[];
670
870
  latestRun: {
671
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
672
871
  projectId: string;
673
872
  id: string;
873
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
674
874
  startedAt: string;
675
- input: Record<string, unknown>;
676
- workflowId: string;
677
875
  requestedBy: {
678
- principalType: "serviceAccount" | "user" | "system";
876
+ principalType: "user" | "serviceAccount" | "system";
679
877
  principalId: string;
680
878
  };
681
- error?: string | undefined;
879
+ workflowId: string;
880
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
682
881
  queuedAt?: string | undefined;
683
882
  finishedAt?: string | undefined;
684
883
  } | null;
@@ -689,47 +888,44 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
689
888
  projectId: z.ZodString;
690
889
  workflowId: z.ZodString;
691
890
  status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
692
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
693
891
  queuedAt: z.ZodOptional<z.ZodString>;
694
892
  startedAt: z.ZodString;
695
893
  finishedAt: z.ZodOptional<z.ZodString>;
696
- error: z.ZodOptional<z.ZodString>;
894
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
697
895
  requestedBy: z.ZodObject<{
698
896
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
699
897
  principalId: z.ZodString;
700
898
  }, "strip", z.ZodTypeAny, {
701
- principalType: "serviceAccount" | "user" | "system";
899
+ principalType: "user" | "serviceAccount" | "system";
702
900
  principalId: string;
703
901
  }, {
704
- principalType: "serviceAccount" | "user" | "system";
902
+ principalType: "user" | "serviceAccount" | "system";
705
903
  principalId: string;
706
904
  }>;
707
905
  }, "strip", z.ZodTypeAny, {
708
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
709
906
  projectId: string;
710
907
  id: string;
908
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
711
909
  startedAt: string;
712
- input: Record<string, unknown>;
713
- workflowId: string;
714
910
  requestedBy: {
715
- principalType: "serviceAccount" | "user" | "system";
911
+ principalType: "user" | "serviceAccount" | "system";
716
912
  principalId: string;
717
913
  };
718
- error?: string | undefined;
914
+ workflowId: string;
915
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
719
916
  queuedAt?: string | undefined;
720
917
  finishedAt?: string | undefined;
721
918
  }, {
722
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
723
919
  projectId: string;
724
920
  id: string;
921
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
725
922
  startedAt: string;
726
- input: Record<string, unknown>;
727
- workflowId: string;
728
923
  requestedBy: {
729
- principalType: "serviceAccount" | "user" | "system";
924
+ principalType: "user" | "serviceAccount" | "system";
730
925
  principalId: string;
731
926
  };
732
- error?: string | undefined;
927
+ workflowId: string;
928
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
733
929
  queuedAt?: string | undefined;
734
930
  finishedAt?: string | undefined;
735
931
  }>, "many">;
@@ -737,17 +933,16 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
737
933
  total: z.ZodNumber;
738
934
  }, "strip", z.ZodTypeAny, {
739
935
  runs: {
740
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
741
936
  projectId: string;
742
937
  id: string;
938
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
743
939
  startedAt: string;
744
- input: Record<string, unknown>;
745
- workflowId: string;
746
940
  requestedBy: {
747
- principalType: "serviceAccount" | "user" | "system";
941
+ principalType: "user" | "serviceAccount" | "system";
748
942
  principalId: string;
749
943
  };
750
- error?: string | undefined;
944
+ workflowId: string;
945
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
751
946
  queuedAt?: string | undefined;
752
947
  finishedAt?: string | undefined;
753
948
  }[];
@@ -755,17 +950,16 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
755
950
  total: number;
756
951
  }, {
757
952
  runs: {
758
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
759
953
  projectId: string;
760
954
  id: string;
955
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
761
956
  startedAt: string;
762
- input: Record<string, unknown>;
763
- workflowId: string;
764
957
  requestedBy: {
765
- principalType: "serviceAccount" | "user" | "system";
958
+ principalType: "user" | "serviceAccount" | "system";
766
959
  principalId: string;
767
960
  };
768
- error?: string | undefined;
961
+ workflowId: string;
962
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
769
963
  queuedAt?: string | undefined;
770
964
  finishedAt?: string | undefined;
771
965
  }[];
@@ -778,49 +972,53 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
778
972
  projectId: z.ZodString;
779
973
  workflowId: z.ZodString;
780
974
  status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
781
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
782
975
  queuedAt: z.ZodOptional<z.ZodString>;
783
976
  startedAt: z.ZodString;
784
977
  finishedAt: z.ZodOptional<z.ZodString>;
785
- error: z.ZodOptional<z.ZodString>;
978
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
786
979
  requestedBy: z.ZodObject<{
787
980
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
788
981
  principalId: z.ZodString;
789
982
  }, "strip", z.ZodTypeAny, {
790
- principalType: "serviceAccount" | "user" | "system";
983
+ principalType: "user" | "serviceAccount" | "system";
791
984
  principalId: string;
792
985
  }, {
793
- principalType: "serviceAccount" | "user" | "system";
986
+ principalType: "user" | "serviceAccount" | "system";
794
987
  principalId: string;
795
988
  }>;
989
+ } & {
990
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
991
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
796
992
  }, "strip", z.ZodTypeAny, {
797
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
798
993
  projectId: string;
799
994
  id: string;
995
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
800
996
  startedAt: string;
801
- input: Record<string, unknown>;
802
- workflowId: string;
997
+ input: Record<string, import("./common").JsonValue>;
803
998
  requestedBy: {
804
- principalType: "serviceAccount" | "user" | "system";
999
+ principalType: "user" | "serviceAccount" | "system";
805
1000
  principalId: string;
806
1001
  };
807
- error?: string | undefined;
1002
+ workflowId: string;
1003
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
808
1004
  queuedAt?: string | undefined;
809
1005
  finishedAt?: string | undefined;
1006
+ output?: Record<string, import("./common").JsonValue> | undefined;
810
1007
  }, {
811
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
812
1008
  projectId: string;
813
1009
  id: string;
1010
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
814
1011
  startedAt: string;
815
- input: Record<string, unknown>;
816
- workflowId: string;
1012
+ input: Record<string, import("./common").JsonValue>;
817
1013
  requestedBy: {
818
- principalType: "serviceAccount" | "user" | "system";
1014
+ principalType: "user" | "serviceAccount" | "system";
819
1015
  principalId: string;
820
1016
  };
821
- error?: string | undefined;
1017
+ workflowId: string;
1018
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
822
1019
  queuedAt?: string | undefined;
823
1020
  finishedAt?: string | undefined;
1021
+ output?: Record<string, import("./common").JsonValue> | undefined;
824
1022
  }>;
825
1023
  nodes: z.ZodArray<z.ZodObject<{
826
1024
  id: z.ZodString;
@@ -832,18 +1030,48 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
832
1030
  nodeId: z.ZodString;
833
1031
  nodeKey: z.ZodString;
834
1032
  status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
835
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1033
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
836
1034
  startedAt: z.ZodString;
837
1035
  finishedAt: z.ZodOptional<z.ZodString>;
838
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
- error: z.ZodOptional<z.ZodString>;
1036
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1037
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
840
1038
  agentExecution: z.ZodOptional<z.ZodObject<{
841
1039
  agentId: z.ZodString;
842
1040
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
843
1041
  attempt: z.ZodNumber;
844
1042
  modelId: z.ZodOptional<z.ZodString>;
845
1043
  finishReason: z.ZodOptional<z.ZodString>;
846
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1044
+ usage: z.ZodOptional<z.ZodObject<{
1045
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1046
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1047
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1048
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
1049
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1050
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
1051
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
1052
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1053
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ reportingStatus: "complete" | "partial" | "unavailable";
1056
+ inputTokens?: number | undefined;
1057
+ outputTokens?: number | undefined;
1058
+ totalTokens?: number | undefined;
1059
+ uncachedInputTokens?: number | undefined;
1060
+ cacheReadInputTokens?: number | undefined;
1061
+ cacheWriteInputTokens?: number | undefined;
1062
+ textOutputTokens?: number | undefined;
1063
+ reasoningOutputTokens?: number | undefined;
1064
+ }, {
1065
+ reportingStatus: "complete" | "partial" | "unavailable";
1066
+ inputTokens?: number | undefined;
1067
+ outputTokens?: number | undefined;
1068
+ totalTokens?: number | undefined;
1069
+ uncachedInputTokens?: number | undefined;
1070
+ cacheReadInputTokens?: number | undefined;
1071
+ cacheWriteInputTokens?: number | undefined;
1072
+ textOutputTokens?: number | undefined;
1073
+ reasoningOutputTokens?: number | undefined;
1074
+ }>>;
847
1075
  startedAt: z.ZodOptional<z.ZodString>;
848
1076
  completedAt: z.ZodOptional<z.ZodString>;
849
1077
  }, "strip", z.ZodTypeAny, {
@@ -854,7 +1082,17 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
854
1082
  completedAt?: string | undefined;
855
1083
  modelId?: string | undefined;
856
1084
  finishReason?: string | undefined;
857
- usage?: Record<string, unknown> | undefined;
1085
+ usage?: {
1086
+ reportingStatus: "complete" | "partial" | "unavailable";
1087
+ inputTokens?: number | undefined;
1088
+ outputTokens?: number | undefined;
1089
+ totalTokens?: number | undefined;
1090
+ uncachedInputTokens?: number | undefined;
1091
+ cacheReadInputTokens?: number | undefined;
1092
+ cacheWriteInputTokens?: number | undefined;
1093
+ textOutputTokens?: number | undefined;
1094
+ reasoningOutputTokens?: number | undefined;
1095
+ } | undefined;
858
1096
  }, {
859
1097
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
860
1098
  agentId: string;
@@ -863,23 +1101,30 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
863
1101
  completedAt?: string | undefined;
864
1102
  modelId?: string | undefined;
865
1103
  finishReason?: string | undefined;
866
- usage?: Record<string, unknown> | undefined;
1104
+ usage?: {
1105
+ reportingStatus: "complete" | "partial" | "unavailable";
1106
+ inputTokens?: number | undefined;
1107
+ outputTokens?: number | undefined;
1108
+ totalTokens?: number | undefined;
1109
+ uncachedInputTokens?: number | undefined;
1110
+ cacheReadInputTokens?: number | undefined;
1111
+ cacheWriteInputTokens?: number | undefined;
1112
+ textOutputTokens?: number | undefined;
1113
+ reasoningOutputTokens?: number | undefined;
1114
+ } | undefined;
867
1115
  }>>;
868
1116
  }, "strip", z.ZodTypeAny, {
869
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
870
1117
  projectId: string;
871
1118
  id: string;
1119
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
872
1120
  startedAt: string;
873
- input: Record<string, unknown>;
1121
+ input: Record<string, import("./common").JsonValue>;
874
1122
  workflowId: string;
875
1123
  nodeIndex: number;
876
- nodeType: "action" | "agent" | "step" | "intervention";
1124
+ nodeType: "action" | "step" | "intervention" | "agent";
877
1125
  nodeId: string;
878
1126
  nodeKey: string;
879
1127
  workflowRunId: string;
880
- error?: string | undefined;
881
- finishedAt?: string | undefined;
882
- output?: Record<string, unknown> | undefined;
883
1128
  agentExecution?: {
884
1129
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
885
1130
  agentId: string;
@@ -888,23 +1133,33 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
888
1133
  completedAt?: string | undefined;
889
1134
  modelId?: string | undefined;
890
1135
  finishReason?: string | undefined;
891
- usage?: Record<string, unknown> | undefined;
1136
+ usage?: {
1137
+ reportingStatus: "complete" | "partial" | "unavailable";
1138
+ inputTokens?: number | undefined;
1139
+ outputTokens?: number | undefined;
1140
+ totalTokens?: number | undefined;
1141
+ uncachedInputTokens?: number | undefined;
1142
+ cacheReadInputTokens?: number | undefined;
1143
+ cacheWriteInputTokens?: number | undefined;
1144
+ textOutputTokens?: number | undefined;
1145
+ reasoningOutputTokens?: number | undefined;
1146
+ } | undefined;
892
1147
  } | undefined;
1148
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1149
+ finishedAt?: string | undefined;
1150
+ output?: Record<string, import("./common").JsonValue> | undefined;
893
1151
  }, {
894
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
895
1152
  projectId: string;
896
1153
  id: string;
1154
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
897
1155
  startedAt: string;
898
- input: Record<string, unknown>;
1156
+ input: Record<string, import("./common").JsonValue>;
899
1157
  workflowId: string;
900
1158
  nodeIndex: number;
901
- nodeType: "action" | "agent" | "step" | "intervention";
1159
+ nodeType: "action" | "step" | "intervention" | "agent";
902
1160
  nodeId: string;
903
1161
  nodeKey: string;
904
1162
  workflowRunId: string;
905
- error?: string | undefined;
906
- finishedAt?: string | undefined;
907
- output?: Record<string, unknown> | undefined;
908
1163
  agentExecution?: {
909
1164
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
910
1165
  agentId: string;
@@ -913,40 +1168,51 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
913
1168
  completedAt?: string | undefined;
914
1169
  modelId?: string | undefined;
915
1170
  finishReason?: string | undefined;
916
- usage?: Record<string, unknown> | undefined;
1171
+ usage?: {
1172
+ reportingStatus: "complete" | "partial" | "unavailable";
1173
+ inputTokens?: number | undefined;
1174
+ outputTokens?: number | undefined;
1175
+ totalTokens?: number | undefined;
1176
+ uncachedInputTokens?: number | undefined;
1177
+ cacheReadInputTokens?: number | undefined;
1178
+ cacheWriteInputTokens?: number | undefined;
1179
+ textOutputTokens?: number | undefined;
1180
+ reasoningOutputTokens?: number | undefined;
1181
+ } | undefined;
917
1182
  } | undefined;
1183
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1184
+ finishedAt?: string | undefined;
1185
+ output?: Record<string, import("./common").JsonValue> | undefined;
918
1186
  }>, "many">;
919
1187
  }, "strip", z.ZodTypeAny, {
920
1188
  run: {
921
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
922
1189
  projectId: string;
923
1190
  id: string;
1191
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
924
1192
  startedAt: string;
925
- input: Record<string, unknown>;
926
- workflowId: string;
1193
+ input: Record<string, import("./common").JsonValue>;
927
1194
  requestedBy: {
928
- principalType: "serviceAccount" | "user" | "system";
1195
+ principalType: "user" | "serviceAccount" | "system";
929
1196
  principalId: string;
930
1197
  };
931
- error?: string | undefined;
1198
+ workflowId: string;
1199
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
932
1200
  queuedAt?: string | undefined;
933
1201
  finishedAt?: string | undefined;
1202
+ output?: Record<string, import("./common").JsonValue> | undefined;
934
1203
  };
935
1204
  nodes: {
936
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
937
1205
  projectId: string;
938
1206
  id: string;
1207
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
939
1208
  startedAt: string;
940
- input: Record<string, unknown>;
1209
+ input: Record<string, import("./common").JsonValue>;
941
1210
  workflowId: string;
942
1211
  nodeIndex: number;
943
- nodeType: "action" | "agent" | "step" | "intervention";
1212
+ nodeType: "action" | "step" | "intervention" | "agent";
944
1213
  nodeId: string;
945
1214
  nodeKey: string;
946
1215
  workflowRunId: string;
947
- error?: string | undefined;
948
- finishedAt?: string | undefined;
949
- output?: Record<string, unknown> | undefined;
950
1216
  agentExecution?: {
951
1217
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
952
1218
  agentId: string;
@@ -955,40 +1221,51 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
955
1221
  completedAt?: string | undefined;
956
1222
  modelId?: string | undefined;
957
1223
  finishReason?: string | undefined;
958
- usage?: Record<string, unknown> | undefined;
1224
+ usage?: {
1225
+ reportingStatus: "complete" | "partial" | "unavailable";
1226
+ inputTokens?: number | undefined;
1227
+ outputTokens?: number | undefined;
1228
+ totalTokens?: number | undefined;
1229
+ uncachedInputTokens?: number | undefined;
1230
+ cacheReadInputTokens?: number | undefined;
1231
+ cacheWriteInputTokens?: number | undefined;
1232
+ textOutputTokens?: number | undefined;
1233
+ reasoningOutputTokens?: number | undefined;
1234
+ } | undefined;
959
1235
  } | undefined;
1236
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1237
+ finishedAt?: string | undefined;
1238
+ output?: Record<string, import("./common").JsonValue> | undefined;
960
1239
  }[];
961
1240
  }, {
962
1241
  run: {
963
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
964
1242
  projectId: string;
965
1243
  id: string;
1244
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
966
1245
  startedAt: string;
967
- input: Record<string, unknown>;
968
- workflowId: string;
1246
+ input: Record<string, import("./common").JsonValue>;
969
1247
  requestedBy: {
970
- principalType: "serviceAccount" | "user" | "system";
1248
+ principalType: "user" | "serviceAccount" | "system";
971
1249
  principalId: string;
972
1250
  };
973
- error?: string | undefined;
1251
+ workflowId: string;
1252
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
974
1253
  queuedAt?: string | undefined;
975
1254
  finishedAt?: string | undefined;
1255
+ output?: Record<string, import("./common").JsonValue> | undefined;
976
1256
  };
977
1257
  nodes: {
978
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
979
1258
  projectId: string;
980
1259
  id: string;
1260
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
981
1261
  startedAt: string;
982
- input: Record<string, unknown>;
1262
+ input: Record<string, import("./common").JsonValue>;
983
1263
  workflowId: string;
984
1264
  nodeIndex: number;
985
- nodeType: "action" | "agent" | "step" | "intervention";
1265
+ nodeType: "action" | "step" | "intervention" | "agent";
986
1266
  nodeId: string;
987
1267
  nodeKey: string;
988
1268
  workflowRunId: string;
989
- error?: string | undefined;
990
- finishedAt?: string | undefined;
991
- output?: Record<string, unknown> | undefined;
992
1269
  agentExecution?: {
993
1270
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
994
1271
  agentId: string;
@@ -997,8 +1274,21 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
997
1274
  completedAt?: string | undefined;
998
1275
  modelId?: string | undefined;
999
1276
  finishReason?: string | undefined;
1000
- usage?: Record<string, unknown> | undefined;
1277
+ usage?: {
1278
+ reportingStatus: "complete" | "partial" | "unavailable";
1279
+ inputTokens?: number | undefined;
1280
+ outputTokens?: number | undefined;
1281
+ totalTokens?: number | undefined;
1282
+ uncachedInputTokens?: number | undefined;
1283
+ cacheReadInputTokens?: number | undefined;
1284
+ cacheWriteInputTokens?: number | undefined;
1285
+ textOutputTokens?: number | undefined;
1286
+ reasoningOutputTokens?: number | undefined;
1287
+ } | undefined;
1001
1288
  } | undefined;
1289
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1290
+ finishedAt?: string | undefined;
1291
+ output?: Record<string, import("./common").JsonValue> | undefined;
1002
1292
  }[];
1003
1293
  }>;
1004
1294
  export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
@@ -1007,49 +1297,53 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1007
1297
  projectId: z.ZodString;
1008
1298
  workflowId: z.ZodString;
1009
1299
  status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
1010
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1011
1300
  queuedAt: z.ZodOptional<z.ZodString>;
1012
1301
  startedAt: z.ZodString;
1013
1302
  finishedAt: z.ZodOptional<z.ZodString>;
1014
- error: z.ZodOptional<z.ZodString>;
1303
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
1015
1304
  requestedBy: z.ZodObject<{
1016
1305
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1017
1306
  principalId: z.ZodString;
1018
1307
  }, "strip", z.ZodTypeAny, {
1019
- principalType: "serviceAccount" | "user" | "system";
1308
+ principalType: "user" | "serviceAccount" | "system";
1020
1309
  principalId: string;
1021
1310
  }, {
1022
- principalType: "serviceAccount" | "user" | "system";
1311
+ principalType: "user" | "serviceAccount" | "system";
1023
1312
  principalId: string;
1024
1313
  }>;
1314
+ } & {
1315
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1316
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1025
1317
  }, "strip", z.ZodTypeAny, {
1026
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1027
1318
  projectId: string;
1028
1319
  id: string;
1320
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1029
1321
  startedAt: string;
1030
- input: Record<string, unknown>;
1031
- workflowId: string;
1322
+ input: Record<string, import("./common").JsonValue>;
1032
1323
  requestedBy: {
1033
- principalType: "serviceAccount" | "user" | "system";
1324
+ principalType: "user" | "serviceAccount" | "system";
1034
1325
  principalId: string;
1035
1326
  };
1036
- error?: string | undefined;
1327
+ workflowId: string;
1328
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1037
1329
  queuedAt?: string | undefined;
1038
1330
  finishedAt?: string | undefined;
1331
+ output?: Record<string, import("./common").JsonValue> | undefined;
1039
1332
  }, {
1040
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1041
1333
  projectId: string;
1042
1334
  id: string;
1335
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1043
1336
  startedAt: string;
1044
- input: Record<string, unknown>;
1045
- workflowId: string;
1337
+ input: Record<string, import("./common").JsonValue>;
1046
1338
  requestedBy: {
1047
- principalType: "serviceAccount" | "user" | "system";
1339
+ principalType: "user" | "serviceAccount" | "system";
1048
1340
  principalId: string;
1049
1341
  };
1050
- error?: string | undefined;
1342
+ workflowId: string;
1343
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1051
1344
  queuedAt?: string | undefined;
1052
1345
  finishedAt?: string | undefined;
1346
+ output?: Record<string, import("./common").JsonValue> | undefined;
1053
1347
  }>;
1054
1348
  nodes: z.ZodArray<z.ZodObject<{
1055
1349
  id: z.ZodString;
@@ -1061,18 +1355,48 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1061
1355
  nodeId: z.ZodString;
1062
1356
  nodeKey: z.ZodString;
1063
1357
  status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
1064
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1358
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1065
1359
  startedAt: z.ZodString;
1066
1360
  finishedAt: z.ZodOptional<z.ZodString>;
1067
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1068
- error: z.ZodOptional<z.ZodString>;
1361
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1362
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed">>>;
1069
1363
  agentExecution: z.ZodOptional<z.ZodObject<{
1070
1364
  agentId: z.ZodString;
1071
1365
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
1072
1366
  attempt: z.ZodNumber;
1073
1367
  modelId: z.ZodOptional<z.ZodString>;
1074
1368
  finishReason: z.ZodOptional<z.ZodString>;
1075
- usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1369
+ usage: z.ZodOptional<z.ZodObject<{
1370
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1371
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1372
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1373
+ uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
1374
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1375
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
1376
+ textOutputTokens: z.ZodOptional<z.ZodNumber>;
1377
+ reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
1378
+ reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ reportingStatus: "complete" | "partial" | "unavailable";
1381
+ inputTokens?: number | undefined;
1382
+ outputTokens?: number | undefined;
1383
+ totalTokens?: number | undefined;
1384
+ uncachedInputTokens?: number | undefined;
1385
+ cacheReadInputTokens?: number | undefined;
1386
+ cacheWriteInputTokens?: number | undefined;
1387
+ textOutputTokens?: number | undefined;
1388
+ reasoningOutputTokens?: number | undefined;
1389
+ }, {
1390
+ reportingStatus: "complete" | "partial" | "unavailable";
1391
+ inputTokens?: number | undefined;
1392
+ outputTokens?: number | undefined;
1393
+ totalTokens?: number | undefined;
1394
+ uncachedInputTokens?: number | undefined;
1395
+ cacheReadInputTokens?: number | undefined;
1396
+ cacheWriteInputTokens?: number | undefined;
1397
+ textOutputTokens?: number | undefined;
1398
+ reasoningOutputTokens?: number | undefined;
1399
+ }>>;
1076
1400
  startedAt: z.ZodOptional<z.ZodString>;
1077
1401
  completedAt: z.ZodOptional<z.ZodString>;
1078
1402
  }, "strip", z.ZodTypeAny, {
@@ -1083,7 +1407,17 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1083
1407
  completedAt?: string | undefined;
1084
1408
  modelId?: string | undefined;
1085
1409
  finishReason?: string | undefined;
1086
- usage?: Record<string, unknown> | undefined;
1410
+ usage?: {
1411
+ reportingStatus: "complete" | "partial" | "unavailable";
1412
+ inputTokens?: number | undefined;
1413
+ outputTokens?: number | undefined;
1414
+ totalTokens?: number | undefined;
1415
+ uncachedInputTokens?: number | undefined;
1416
+ cacheReadInputTokens?: number | undefined;
1417
+ cacheWriteInputTokens?: number | undefined;
1418
+ textOutputTokens?: number | undefined;
1419
+ reasoningOutputTokens?: number | undefined;
1420
+ } | undefined;
1087
1421
  }, {
1088
1422
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1089
1423
  agentId: string;
@@ -1092,23 +1426,30 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1092
1426
  completedAt?: string | undefined;
1093
1427
  modelId?: string | undefined;
1094
1428
  finishReason?: string | undefined;
1095
- usage?: Record<string, unknown> | undefined;
1429
+ usage?: {
1430
+ reportingStatus: "complete" | "partial" | "unavailable";
1431
+ inputTokens?: number | undefined;
1432
+ outputTokens?: number | undefined;
1433
+ totalTokens?: number | undefined;
1434
+ uncachedInputTokens?: number | undefined;
1435
+ cacheReadInputTokens?: number | undefined;
1436
+ cacheWriteInputTokens?: number | undefined;
1437
+ textOutputTokens?: number | undefined;
1438
+ reasoningOutputTokens?: number | undefined;
1439
+ } | undefined;
1096
1440
  }>>;
1097
1441
  }, "strip", z.ZodTypeAny, {
1098
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1099
1442
  projectId: string;
1100
1443
  id: string;
1444
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1101
1445
  startedAt: string;
1102
- input: Record<string, unknown>;
1446
+ input: Record<string, import("./common").JsonValue>;
1103
1447
  workflowId: string;
1104
1448
  nodeIndex: number;
1105
- nodeType: "action" | "agent" | "step" | "intervention";
1449
+ nodeType: "action" | "step" | "intervention" | "agent";
1106
1450
  nodeId: string;
1107
1451
  nodeKey: string;
1108
1452
  workflowRunId: string;
1109
- error?: string | undefined;
1110
- finishedAt?: string | undefined;
1111
- output?: Record<string, unknown> | undefined;
1112
1453
  agentExecution?: {
1113
1454
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1114
1455
  agentId: string;
@@ -1117,23 +1458,33 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1117
1458
  completedAt?: string | undefined;
1118
1459
  modelId?: string | undefined;
1119
1460
  finishReason?: string | undefined;
1120
- usage?: Record<string, unknown> | undefined;
1461
+ usage?: {
1462
+ reportingStatus: "complete" | "partial" | "unavailable";
1463
+ inputTokens?: number | undefined;
1464
+ outputTokens?: number | undefined;
1465
+ totalTokens?: number | undefined;
1466
+ uncachedInputTokens?: number | undefined;
1467
+ cacheReadInputTokens?: number | undefined;
1468
+ cacheWriteInputTokens?: number | undefined;
1469
+ textOutputTokens?: number | undefined;
1470
+ reasoningOutputTokens?: number | undefined;
1471
+ } | undefined;
1121
1472
  } | undefined;
1473
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1474
+ finishedAt?: string | undefined;
1475
+ output?: Record<string, import("./common").JsonValue> | undefined;
1122
1476
  }, {
1123
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1124
1477
  projectId: string;
1125
1478
  id: string;
1479
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1126
1480
  startedAt: string;
1127
- input: Record<string, unknown>;
1481
+ input: Record<string, import("./common").JsonValue>;
1128
1482
  workflowId: string;
1129
1483
  nodeIndex: number;
1130
- nodeType: "action" | "agent" | "step" | "intervention";
1484
+ nodeType: "action" | "step" | "intervention" | "agent";
1131
1485
  nodeId: string;
1132
1486
  nodeKey: string;
1133
1487
  workflowRunId: string;
1134
- error?: string | undefined;
1135
- finishedAt?: string | undefined;
1136
- output?: Record<string, unknown> | undefined;
1137
1488
  agentExecution?: {
1138
1489
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1139
1490
  agentId: string;
@@ -1142,40 +1493,51 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1142
1493
  completedAt?: string | undefined;
1143
1494
  modelId?: string | undefined;
1144
1495
  finishReason?: string | undefined;
1145
- usage?: Record<string, unknown> | undefined;
1496
+ usage?: {
1497
+ reportingStatus: "complete" | "partial" | "unavailable";
1498
+ inputTokens?: number | undefined;
1499
+ outputTokens?: number | undefined;
1500
+ totalTokens?: number | undefined;
1501
+ uncachedInputTokens?: number | undefined;
1502
+ cacheReadInputTokens?: number | undefined;
1503
+ cacheWriteInputTokens?: number | undefined;
1504
+ textOutputTokens?: number | undefined;
1505
+ reasoningOutputTokens?: number | undefined;
1506
+ } | undefined;
1146
1507
  } | undefined;
1508
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1509
+ finishedAt?: string | undefined;
1510
+ output?: Record<string, import("./common").JsonValue> | undefined;
1147
1511
  }>, "many">;
1148
1512
  }, "strip", z.ZodTypeAny, {
1149
1513
  run: {
1150
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1151
1514
  projectId: string;
1152
1515
  id: string;
1516
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1153
1517
  startedAt: string;
1154
- input: Record<string, unknown>;
1155
- workflowId: string;
1518
+ input: Record<string, import("./common").JsonValue>;
1156
1519
  requestedBy: {
1157
- principalType: "serviceAccount" | "user" | "system";
1520
+ principalType: "user" | "serviceAccount" | "system";
1158
1521
  principalId: string;
1159
1522
  };
1160
- error?: string | undefined;
1523
+ workflowId: string;
1524
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1161
1525
  queuedAt?: string | undefined;
1162
1526
  finishedAt?: string | undefined;
1527
+ output?: Record<string, import("./common").JsonValue> | undefined;
1163
1528
  };
1164
1529
  nodes: {
1165
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1166
1530
  projectId: string;
1167
1531
  id: string;
1532
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1168
1533
  startedAt: string;
1169
- input: Record<string, unknown>;
1534
+ input: Record<string, import("./common").JsonValue>;
1170
1535
  workflowId: string;
1171
1536
  nodeIndex: number;
1172
- nodeType: "action" | "agent" | "step" | "intervention";
1537
+ nodeType: "action" | "step" | "intervention" | "agent";
1173
1538
  nodeId: string;
1174
1539
  nodeKey: string;
1175
1540
  workflowRunId: string;
1176
- error?: string | undefined;
1177
- finishedAt?: string | undefined;
1178
- output?: Record<string, unknown> | undefined;
1179
1541
  agentExecution?: {
1180
1542
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1181
1543
  agentId: string;
@@ -1184,40 +1546,51 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1184
1546
  completedAt?: string | undefined;
1185
1547
  modelId?: string | undefined;
1186
1548
  finishReason?: string | undefined;
1187
- usage?: Record<string, unknown> | undefined;
1549
+ usage?: {
1550
+ reportingStatus: "complete" | "partial" | "unavailable";
1551
+ inputTokens?: number | undefined;
1552
+ outputTokens?: number | undefined;
1553
+ totalTokens?: number | undefined;
1554
+ uncachedInputTokens?: number | undefined;
1555
+ cacheReadInputTokens?: number | undefined;
1556
+ cacheWriteInputTokens?: number | undefined;
1557
+ textOutputTokens?: number | undefined;
1558
+ reasoningOutputTokens?: number | undefined;
1559
+ } | undefined;
1188
1560
  } | undefined;
1561
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1562
+ finishedAt?: string | undefined;
1563
+ output?: Record<string, import("./common").JsonValue> | undefined;
1189
1564
  }[];
1190
1565
  }, {
1191
1566
  run: {
1192
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1193
1567
  projectId: string;
1194
1568
  id: string;
1569
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1195
1570
  startedAt: string;
1196
- input: Record<string, unknown>;
1197
- workflowId: string;
1571
+ input: Record<string, import("./common").JsonValue>;
1198
1572
  requestedBy: {
1199
- principalType: "serviceAccount" | "user" | "system";
1573
+ principalType: "user" | "serviceAccount" | "system";
1200
1574
  principalId: string;
1201
1575
  };
1202
- error?: string | undefined;
1576
+ workflowId: string;
1577
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1203
1578
  queuedAt?: string | undefined;
1204
1579
  finishedAt?: string | undefined;
1580
+ output?: Record<string, import("./common").JsonValue> | undefined;
1205
1581
  };
1206
1582
  nodes: {
1207
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1208
1583
  projectId: string;
1209
1584
  id: string;
1585
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1210
1586
  startedAt: string;
1211
- input: Record<string, unknown>;
1587
+ input: Record<string, import("./common").JsonValue>;
1212
1588
  workflowId: string;
1213
1589
  nodeIndex: number;
1214
- nodeType: "action" | "agent" | "step" | "intervention";
1590
+ nodeType: "action" | "step" | "intervention" | "agent";
1215
1591
  nodeId: string;
1216
1592
  nodeKey: string;
1217
1593
  workflowRunId: string;
1218
- error?: string | undefined;
1219
- finishedAt?: string | undefined;
1220
- output?: Record<string, unknown> | undefined;
1221
1594
  agentExecution?: {
1222
1595
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1223
1596
  agentId: string;
@@ -1226,8 +1599,21 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1226
1599
  completedAt?: string | undefined;
1227
1600
  modelId?: string | undefined;
1228
1601
  finishReason?: string | undefined;
1229
- usage?: Record<string, unknown> | undefined;
1602
+ usage?: {
1603
+ reportingStatus: "complete" | "partial" | "unavailable";
1604
+ inputTokens?: number | undefined;
1605
+ outputTokens?: number | undefined;
1606
+ totalTokens?: number | undefined;
1607
+ uncachedInputTokens?: number | undefined;
1608
+ cacheReadInputTokens?: number | undefined;
1609
+ cacheWriteInputTokens?: number | undefined;
1610
+ textOutputTokens?: number | undefined;
1611
+ reasoningOutputTokens?: number | undefined;
1612
+ } | undefined;
1230
1613
  } | undefined;
1614
+ error?: SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1615
+ finishedAt?: string | undefined;
1616
+ output?: Record<string, import("./common").JsonValue> | undefined;
1231
1617
  }[];
1232
1618
  }>;
1233
1619
  export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
@@ -1241,8 +1627,8 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1241
1627
  nodeId: z.ZodString;
1242
1628
  nodeKey: z.ZodString;
1243
1629
  interventionId: z.ZodString;
1244
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1245
- defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1630
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1631
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1246
1632
  status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1247
1633
  requestedAt: z.ZodString;
1248
1634
  expiresAt: z.ZodOptional<z.ZodString>;
@@ -1251,30 +1637,30 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1251
1637
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1252
1638
  principalId: z.ZodString;
1253
1639
  }, "strip", z.ZodTypeAny, {
1254
- principalType: "serviceAccount" | "user" | "system";
1640
+ principalType: "user" | "serviceAccount" | "system";
1255
1641
  principalId: string;
1256
1642
  }, {
1257
- principalType: "serviceAccount" | "user" | "system";
1643
+ principalType: "user" | "serviceAccount" | "system";
1258
1644
  principalId: string;
1259
1645
  }>>;
1260
- response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1646
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1261
1647
  cancelledAt: z.ZodOptional<z.ZodString>;
1262
1648
  cancelledBy: z.ZodOptional<z.ZodObject<{
1263
1649
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1264
1650
  principalId: z.ZodString;
1265
1651
  }, "strip", z.ZodTypeAny, {
1266
- principalType: "serviceAccount" | "user" | "system";
1652
+ principalType: "user" | "serviceAccount" | "system";
1267
1653
  principalId: string;
1268
1654
  }, {
1269
- principalType: "serviceAccount" | "user" | "system";
1655
+ principalType: "user" | "serviceAccount" | "system";
1270
1656
  principalId: string;
1271
1657
  }>>;
1272
1658
  expiredAt: z.ZodOptional<z.ZodString>;
1273
1659
  }, "strip", z.ZodTypeAny, {
1274
- status: "cancelled" | "expired" | "pending" | "submitted";
1275
1660
  projectId: string;
1276
1661
  id: string;
1277
- input: Record<string, unknown>;
1662
+ status: "cancelled" | "expired" | "pending" | "submitted";
1663
+ input: Record<string, import("./common").JsonValue>;
1278
1664
  workflowId: string;
1279
1665
  nodeRunId: string;
1280
1666
  nodeIndex: number;
@@ -1283,25 +1669,25 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1283
1669
  interventionId: string;
1284
1670
  requestedAt: string;
1285
1671
  workflowRunId: string;
1286
- defaultResponse: Record<string, unknown>;
1287
- response?: Record<string, unknown> | undefined;
1672
+ defaultResponse: Record<string, import("./common").JsonValue>;
1673
+ response?: Record<string, import("./common").JsonValue> | undefined;
1288
1674
  expiresAt?: string | undefined;
1289
1675
  submittedAt?: string | undefined;
1290
1676
  cancelledAt?: string | undefined;
1291
1677
  expiredAt?: string | undefined;
1292
1678
  submittedBy?: {
1293
- principalType: "serviceAccount" | "user" | "system";
1679
+ principalType: "user" | "serviceAccount" | "system";
1294
1680
  principalId: string;
1295
1681
  } | undefined;
1296
1682
  cancelledBy?: {
1297
- principalType: "serviceAccount" | "user" | "system";
1683
+ principalType: "user" | "serviceAccount" | "system";
1298
1684
  principalId: string;
1299
1685
  } | undefined;
1300
1686
  }, {
1301
- status: "cancelled" | "expired" | "pending" | "submitted";
1302
1687
  projectId: string;
1303
1688
  id: string;
1304
- input: Record<string, unknown>;
1689
+ status: "cancelled" | "expired" | "pending" | "submitted";
1690
+ input: Record<string, import("./common").JsonValue>;
1305
1691
  workflowId: string;
1306
1692
  nodeRunId: string;
1307
1693
  nodeIndex: number;
@@ -1310,18 +1696,18 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1310
1696
  interventionId: string;
1311
1697
  requestedAt: string;
1312
1698
  workflowRunId: string;
1313
- defaultResponse: Record<string, unknown>;
1314
- response?: Record<string, unknown> | undefined;
1699
+ defaultResponse: Record<string, import("./common").JsonValue>;
1700
+ response?: Record<string, import("./common").JsonValue> | undefined;
1315
1701
  expiresAt?: string | undefined;
1316
1702
  submittedAt?: string | undefined;
1317
1703
  cancelledAt?: string | undefined;
1318
1704
  expiredAt?: string | undefined;
1319
1705
  submittedBy?: {
1320
- principalType: "serviceAccount" | "user" | "system";
1706
+ principalType: "user" | "serviceAccount" | "system";
1321
1707
  principalId: string;
1322
1708
  } | undefined;
1323
1709
  cancelledBy?: {
1324
- principalType: "serviceAccount" | "user" | "system";
1710
+ principalType: "user" | "serviceAccount" | "system";
1325
1711
  principalId: string;
1326
1712
  } | undefined;
1327
1713
  }>, "many">;
@@ -1331,10 +1717,10 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1331
1717
  hasMore: boolean;
1332
1718
  total: number;
1333
1719
  interventions: {
1334
- status: "cancelled" | "expired" | "pending" | "submitted";
1335
1720
  projectId: string;
1336
1721
  id: string;
1337
- input: Record<string, unknown>;
1722
+ status: "cancelled" | "expired" | "pending" | "submitted";
1723
+ input: Record<string, import("./common").JsonValue>;
1338
1724
  workflowId: string;
1339
1725
  nodeRunId: string;
1340
1726
  nodeIndex: number;
@@ -1343,18 +1729,18 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1343
1729
  interventionId: string;
1344
1730
  requestedAt: string;
1345
1731
  workflowRunId: string;
1346
- defaultResponse: Record<string, unknown>;
1347
- response?: Record<string, unknown> | undefined;
1732
+ defaultResponse: Record<string, import("./common").JsonValue>;
1733
+ response?: Record<string, import("./common").JsonValue> | undefined;
1348
1734
  expiresAt?: string | undefined;
1349
1735
  submittedAt?: string | undefined;
1350
1736
  cancelledAt?: string | undefined;
1351
1737
  expiredAt?: string | undefined;
1352
1738
  submittedBy?: {
1353
- principalType: "serviceAccount" | "user" | "system";
1739
+ principalType: "user" | "serviceAccount" | "system";
1354
1740
  principalId: string;
1355
1741
  } | undefined;
1356
1742
  cancelledBy?: {
1357
- principalType: "serviceAccount" | "user" | "system";
1743
+ principalType: "user" | "serviceAccount" | "system";
1358
1744
  principalId: string;
1359
1745
  } | undefined;
1360
1746
  }[];
@@ -1362,10 +1748,10 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1362
1748
  hasMore: boolean;
1363
1749
  total: number;
1364
1750
  interventions: {
1365
- status: "cancelled" | "expired" | "pending" | "submitted";
1366
1751
  projectId: string;
1367
1752
  id: string;
1368
- input: Record<string, unknown>;
1753
+ status: "cancelled" | "expired" | "pending" | "submitted";
1754
+ input: Record<string, import("./common").JsonValue>;
1369
1755
  workflowId: string;
1370
1756
  nodeRunId: string;
1371
1757
  nodeIndex: number;
@@ -1374,18 +1760,18 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1374
1760
  interventionId: string;
1375
1761
  requestedAt: string;
1376
1762
  workflowRunId: string;
1377
- defaultResponse: Record<string, unknown>;
1378
- response?: Record<string, unknown> | undefined;
1763
+ defaultResponse: Record<string, import("./common").JsonValue>;
1764
+ response?: Record<string, import("./common").JsonValue> | undefined;
1379
1765
  expiresAt?: string | undefined;
1380
1766
  submittedAt?: string | undefined;
1381
1767
  cancelledAt?: string | undefined;
1382
1768
  expiredAt?: string | undefined;
1383
1769
  submittedBy?: {
1384
- principalType: "serviceAccount" | "user" | "system";
1770
+ principalType: "user" | "serviceAccount" | "system";
1385
1771
  principalId: string;
1386
1772
  } | undefined;
1387
1773
  cancelledBy?: {
1388
- principalType: "serviceAccount" | "user" | "system";
1774
+ principalType: "user" | "serviceAccount" | "system";
1389
1775
  principalId: string;
1390
1776
  } | undefined;
1391
1777
  }[];
@@ -1401,8 +1787,8 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1401
1787
  nodeId: z.ZodString;
1402
1788
  nodeKey: z.ZodString;
1403
1789
  interventionId: z.ZodString;
1404
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1405
- defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1790
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1791
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1406
1792
  status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1407
1793
  requestedAt: z.ZodString;
1408
1794
  expiresAt: z.ZodOptional<z.ZodString>;
@@ -1411,30 +1797,30 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1411
1797
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1412
1798
  principalId: z.ZodString;
1413
1799
  }, "strip", z.ZodTypeAny, {
1414
- principalType: "serviceAccount" | "user" | "system";
1800
+ principalType: "user" | "serviceAccount" | "system";
1415
1801
  principalId: string;
1416
1802
  }, {
1417
- principalType: "serviceAccount" | "user" | "system";
1803
+ principalType: "user" | "serviceAccount" | "system";
1418
1804
  principalId: string;
1419
1805
  }>>;
1420
- response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1806
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1421
1807
  cancelledAt: z.ZodOptional<z.ZodString>;
1422
1808
  cancelledBy: z.ZodOptional<z.ZodObject<{
1423
1809
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1424
1810
  principalId: z.ZodString;
1425
1811
  }, "strip", z.ZodTypeAny, {
1426
- principalType: "serviceAccount" | "user" | "system";
1812
+ principalType: "user" | "serviceAccount" | "system";
1427
1813
  principalId: string;
1428
1814
  }, {
1429
- principalType: "serviceAccount" | "user" | "system";
1815
+ principalType: "user" | "serviceAccount" | "system";
1430
1816
  principalId: string;
1431
1817
  }>>;
1432
1818
  expiredAt: z.ZodOptional<z.ZodString>;
1433
1819
  }, "strip", z.ZodTypeAny, {
1434
- status: "cancelled" | "expired" | "pending" | "submitted";
1435
1820
  projectId: string;
1436
1821
  id: string;
1437
- input: Record<string, unknown>;
1822
+ status: "cancelled" | "expired" | "pending" | "submitted";
1823
+ input: Record<string, import("./common").JsonValue>;
1438
1824
  workflowId: string;
1439
1825
  nodeRunId: string;
1440
1826
  nodeIndex: number;
@@ -1443,25 +1829,25 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1443
1829
  interventionId: string;
1444
1830
  requestedAt: string;
1445
1831
  workflowRunId: string;
1446
- defaultResponse: Record<string, unknown>;
1447
- response?: Record<string, unknown> | undefined;
1832
+ defaultResponse: Record<string, import("./common").JsonValue>;
1833
+ response?: Record<string, import("./common").JsonValue> | undefined;
1448
1834
  expiresAt?: string | undefined;
1449
1835
  submittedAt?: string | undefined;
1450
1836
  cancelledAt?: string | undefined;
1451
1837
  expiredAt?: string | undefined;
1452
1838
  submittedBy?: {
1453
- principalType: "serviceAccount" | "user" | "system";
1839
+ principalType: "user" | "serviceAccount" | "system";
1454
1840
  principalId: string;
1455
1841
  } | undefined;
1456
1842
  cancelledBy?: {
1457
- principalType: "serviceAccount" | "user" | "system";
1843
+ principalType: "user" | "serviceAccount" | "system";
1458
1844
  principalId: string;
1459
1845
  } | undefined;
1460
1846
  }, {
1461
- status: "cancelled" | "expired" | "pending" | "submitted";
1462
1847
  projectId: string;
1463
1848
  id: string;
1464
- input: Record<string, unknown>;
1849
+ status: "cancelled" | "expired" | "pending" | "submitted";
1850
+ input: Record<string, import("./common").JsonValue>;
1465
1851
  workflowId: string;
1466
1852
  nodeRunId: string;
1467
1853
  nodeIndex: number;
@@ -1470,18 +1856,18 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1470
1856
  interventionId: string;
1471
1857
  requestedAt: string;
1472
1858
  workflowRunId: string;
1473
- defaultResponse: Record<string, unknown>;
1474
- response?: Record<string, unknown> | undefined;
1859
+ defaultResponse: Record<string, import("./common").JsonValue>;
1860
+ response?: Record<string, import("./common").JsonValue> | undefined;
1475
1861
  expiresAt?: string | undefined;
1476
1862
  submittedAt?: string | undefined;
1477
1863
  cancelledAt?: string | undefined;
1478
1864
  expiredAt?: string | undefined;
1479
1865
  submittedBy?: {
1480
- principalType: "serviceAccount" | "user" | "system";
1866
+ principalType: "user" | "serviceAccount" | "system";
1481
1867
  principalId: string;
1482
1868
  } | undefined;
1483
1869
  cancelledBy?: {
1484
- principalType: "serviceAccount" | "user" | "system";
1870
+ principalType: "user" | "serviceAccount" | "system";
1485
1871
  principalId: string;
1486
1872
  } | undefined;
1487
1873
  }>;
@@ -1489,10 +1875,10 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1489
1875
  }, "strip", z.ZodTypeAny, {
1490
1876
  jobId: string;
1491
1877
  intervention: {
1492
- status: "cancelled" | "expired" | "pending" | "submitted";
1493
1878
  projectId: string;
1494
1879
  id: string;
1495
- input: Record<string, unknown>;
1880
+ status: "cancelled" | "expired" | "pending" | "submitted";
1881
+ input: Record<string, import("./common").JsonValue>;
1496
1882
  workflowId: string;
1497
1883
  nodeRunId: string;
1498
1884
  nodeIndex: number;
@@ -1501,28 +1887,28 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1501
1887
  interventionId: string;
1502
1888
  requestedAt: string;
1503
1889
  workflowRunId: string;
1504
- defaultResponse: Record<string, unknown>;
1505
- response?: Record<string, unknown> | undefined;
1890
+ defaultResponse: Record<string, import("./common").JsonValue>;
1891
+ response?: Record<string, import("./common").JsonValue> | undefined;
1506
1892
  expiresAt?: string | undefined;
1507
1893
  submittedAt?: string | undefined;
1508
1894
  cancelledAt?: string | undefined;
1509
1895
  expiredAt?: string | undefined;
1510
1896
  submittedBy?: {
1511
- principalType: "serviceAccount" | "user" | "system";
1897
+ principalType: "user" | "serviceAccount" | "system";
1512
1898
  principalId: string;
1513
1899
  } | undefined;
1514
1900
  cancelledBy?: {
1515
- principalType: "serviceAccount" | "user" | "system";
1901
+ principalType: "user" | "serviceAccount" | "system";
1516
1902
  principalId: string;
1517
1903
  } | undefined;
1518
1904
  };
1519
1905
  }, {
1520
1906
  jobId: string;
1521
1907
  intervention: {
1522
- status: "cancelled" | "expired" | "pending" | "submitted";
1523
1908
  projectId: string;
1524
1909
  id: string;
1525
- input: Record<string, unknown>;
1910
+ status: "cancelled" | "expired" | "pending" | "submitted";
1911
+ input: Record<string, import("./common").JsonValue>;
1526
1912
  workflowId: string;
1527
1913
  nodeRunId: string;
1528
1914
  nodeIndex: number;
@@ -1531,18 +1917,18 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1531
1917
  interventionId: string;
1532
1918
  requestedAt: string;
1533
1919
  workflowRunId: string;
1534
- defaultResponse: Record<string, unknown>;
1535
- response?: Record<string, unknown> | undefined;
1920
+ defaultResponse: Record<string, import("./common").JsonValue>;
1921
+ response?: Record<string, import("./common").JsonValue> | undefined;
1536
1922
  expiresAt?: string | undefined;
1537
1923
  submittedAt?: string | undefined;
1538
1924
  cancelledAt?: string | undefined;
1539
1925
  expiredAt?: string | undefined;
1540
1926
  submittedBy?: {
1541
- principalType: "serviceAccount" | "user" | "system";
1927
+ principalType: "user" | "serviceAccount" | "system";
1542
1928
  principalId: string;
1543
1929
  } | undefined;
1544
1930
  cancelledBy?: {
1545
- principalType: "serviceAccount" | "user" | "system";
1931
+ principalType: "user" | "serviceAccount" | "system";
1546
1932
  principalId: string;
1547
1933
  } | undefined;
1548
1934
  };
@@ -1558,8 +1944,8 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1558
1944
  nodeId: z.ZodString;
1559
1945
  nodeKey: z.ZodString;
1560
1946
  interventionId: z.ZodString;
1561
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1562
- defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1947
+ input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1948
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1563
1949
  status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1564
1950
  requestedAt: z.ZodString;
1565
1951
  expiresAt: z.ZodOptional<z.ZodString>;
@@ -1568,30 +1954,30 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1568
1954
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1569
1955
  principalId: z.ZodString;
1570
1956
  }, "strip", z.ZodTypeAny, {
1571
- principalType: "serviceAccount" | "user" | "system";
1957
+ principalType: "user" | "serviceAccount" | "system";
1572
1958
  principalId: string;
1573
1959
  }, {
1574
- principalType: "serviceAccount" | "user" | "system";
1960
+ principalType: "user" | "serviceAccount" | "system";
1575
1961
  principalId: string;
1576
1962
  }>>;
1577
- response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1963
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1578
1964
  cancelledAt: z.ZodOptional<z.ZodString>;
1579
1965
  cancelledBy: z.ZodOptional<z.ZodObject<{
1580
1966
  principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1581
1967
  principalId: z.ZodString;
1582
1968
  }, "strip", z.ZodTypeAny, {
1583
- principalType: "serviceAccount" | "user" | "system";
1969
+ principalType: "user" | "serviceAccount" | "system";
1584
1970
  principalId: string;
1585
1971
  }, {
1586
- principalType: "serviceAccount" | "user" | "system";
1972
+ principalType: "user" | "serviceAccount" | "system";
1587
1973
  principalId: string;
1588
1974
  }>>;
1589
1975
  expiredAt: z.ZodOptional<z.ZodString>;
1590
1976
  }, "strip", z.ZodTypeAny, {
1591
- status: "cancelled" | "expired" | "pending" | "submitted";
1592
1977
  projectId: string;
1593
1978
  id: string;
1594
- input: Record<string, unknown>;
1979
+ status: "cancelled" | "expired" | "pending" | "submitted";
1980
+ input: Record<string, import("./common").JsonValue>;
1595
1981
  workflowId: string;
1596
1982
  nodeRunId: string;
1597
1983
  nodeIndex: number;
@@ -1600,25 +1986,25 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1600
1986
  interventionId: string;
1601
1987
  requestedAt: string;
1602
1988
  workflowRunId: string;
1603
- defaultResponse: Record<string, unknown>;
1604
- response?: Record<string, unknown> | undefined;
1989
+ defaultResponse: Record<string, import("./common").JsonValue>;
1990
+ response?: Record<string, import("./common").JsonValue> | undefined;
1605
1991
  expiresAt?: string | undefined;
1606
1992
  submittedAt?: string | undefined;
1607
1993
  cancelledAt?: string | undefined;
1608
1994
  expiredAt?: string | undefined;
1609
1995
  submittedBy?: {
1610
- principalType: "serviceAccount" | "user" | "system";
1996
+ principalType: "user" | "serviceAccount" | "system";
1611
1997
  principalId: string;
1612
1998
  } | undefined;
1613
1999
  cancelledBy?: {
1614
- principalType: "serviceAccount" | "user" | "system";
2000
+ principalType: "user" | "serviceAccount" | "system";
1615
2001
  principalId: string;
1616
2002
  } | undefined;
1617
2003
  }, {
1618
- status: "cancelled" | "expired" | "pending" | "submitted";
1619
2004
  projectId: string;
1620
2005
  id: string;
1621
- input: Record<string, unknown>;
2006
+ status: "cancelled" | "expired" | "pending" | "submitted";
2007
+ input: Record<string, import("./common").JsonValue>;
1622
2008
  workflowId: string;
1623
2009
  nodeRunId: string;
1624
2010
  nodeIndex: number;
@@ -1627,27 +2013,27 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1627
2013
  interventionId: string;
1628
2014
  requestedAt: string;
1629
2015
  workflowRunId: string;
1630
- defaultResponse: Record<string, unknown>;
1631
- response?: Record<string, unknown> | undefined;
2016
+ defaultResponse: Record<string, import("./common").JsonValue>;
2017
+ response?: Record<string, import("./common").JsonValue> | undefined;
1632
2018
  expiresAt?: string | undefined;
1633
2019
  submittedAt?: string | undefined;
1634
2020
  cancelledAt?: string | undefined;
1635
2021
  expiredAt?: string | undefined;
1636
2022
  submittedBy?: {
1637
- principalType: "serviceAccount" | "user" | "system";
2023
+ principalType: "user" | "serviceAccount" | "system";
1638
2024
  principalId: string;
1639
2025
  } | undefined;
1640
2026
  cancelledBy?: {
1641
- principalType: "serviceAccount" | "user" | "system";
2027
+ principalType: "user" | "serviceAccount" | "system";
1642
2028
  principalId: string;
1643
2029
  } | undefined;
1644
2030
  }>;
1645
2031
  }, "strip", z.ZodTypeAny, {
1646
2032
  intervention: {
1647
- status: "cancelled" | "expired" | "pending" | "submitted";
1648
2033
  projectId: string;
1649
2034
  id: string;
1650
- input: Record<string, unknown>;
2035
+ status: "cancelled" | "expired" | "pending" | "submitted";
2036
+ input: Record<string, import("./common").JsonValue>;
1651
2037
  workflowId: string;
1652
2038
  nodeRunId: string;
1653
2039
  nodeIndex: number;
@@ -1656,27 +2042,27 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1656
2042
  interventionId: string;
1657
2043
  requestedAt: string;
1658
2044
  workflowRunId: string;
1659
- defaultResponse: Record<string, unknown>;
1660
- response?: Record<string, unknown> | undefined;
2045
+ defaultResponse: Record<string, import("./common").JsonValue>;
2046
+ response?: Record<string, import("./common").JsonValue> | undefined;
1661
2047
  expiresAt?: string | undefined;
1662
2048
  submittedAt?: string | undefined;
1663
2049
  cancelledAt?: string | undefined;
1664
2050
  expiredAt?: string | undefined;
1665
2051
  submittedBy?: {
1666
- principalType: "serviceAccount" | "user" | "system";
2052
+ principalType: "user" | "serviceAccount" | "system";
1667
2053
  principalId: string;
1668
2054
  } | undefined;
1669
2055
  cancelledBy?: {
1670
- principalType: "serviceAccount" | "user" | "system";
2056
+ principalType: "user" | "serviceAccount" | "system";
1671
2057
  principalId: string;
1672
2058
  } | undefined;
1673
2059
  };
1674
2060
  }, {
1675
2061
  intervention: {
1676
- status: "cancelled" | "expired" | "pending" | "submitted";
1677
2062
  projectId: string;
1678
2063
  id: string;
1679
- input: Record<string, unknown>;
2064
+ status: "cancelled" | "expired" | "pending" | "submitted";
2065
+ input: Record<string, import("./common").JsonValue>;
1680
2066
  workflowId: string;
1681
2067
  nodeRunId: string;
1682
2068
  nodeIndex: number;
@@ -1685,18 +2071,18 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1685
2071
  interventionId: string;
1686
2072
  requestedAt: string;
1687
2073
  workflowRunId: string;
1688
- defaultResponse: Record<string, unknown>;
1689
- response?: Record<string, unknown> | undefined;
2074
+ defaultResponse: Record<string, import("./common").JsonValue>;
2075
+ response?: Record<string, import("./common").JsonValue> | undefined;
1690
2076
  expiresAt?: string | undefined;
1691
2077
  submittedAt?: string | undefined;
1692
2078
  cancelledAt?: string | undefined;
1693
2079
  expiredAt?: string | undefined;
1694
2080
  submittedBy?: {
1695
- principalType: "serviceAccount" | "user" | "system";
2081
+ principalType: "user" | "serviceAccount" | "system";
1696
2082
  principalId: string;
1697
2083
  } | undefined;
1698
2084
  cancelledBy?: {
1699
- principalType: "serviceAccount" | "user" | "system";
2085
+ principalType: "user" | "serviceAccount" | "system";
1700
2086
  principalId: string;
1701
2087
  } | undefined;
1702
2088
  };