@trigger.dev/core 0.0.0-prerelease-20260908122921 → 0.0.0-prerelease-streamfix-20260909094302

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 (289) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +105 -27
  2. package/dist/commonjs/schemas/eventFilter.js +38 -38
  3. package/dist/commonjs/schemas/eventFilter.js.map +1 -1
  4. package/dist/commonjs/schemas/json.d.ts +3 -3
  5. package/dist/commonjs/schemas/json.js +12 -20
  6. package/dist/commonjs/schemas/json.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/core.d.ts +14 -14
  8. package/dist/commonjs/v3/apiClient/core.js +18 -39
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/index.d.ts +184 -67
  11. package/dist/commonjs/v3/apiClient/index.js +8 -11
  12. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  13. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  14. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  15. package/dist/commonjs/v3/errors.d.ts +4 -5
  16. package/dist/commonjs/v3/errors.js.map +1 -1
  17. package/dist/commonjs/v3/index.d.ts +1 -1
  18. package/dist/commonjs/v3/index.js.map +1 -1
  19. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  20. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  21. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +0 -3
  22. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  23. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +0 -4
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  25. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  26. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +11 -2
  27. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +64 -64
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +109 -13
  32. package/dist/commonjs/v3/runEngineWorker/workload/http.js +14 -3
  33. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  35. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +9 -9
  36. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  37. package/dist/commonjs/v3/schemas/api.d.ts +12680 -1840
  38. package/dist/commonjs/v3/schemas/api.js +939 -998
  39. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/build.d.ts +9115 -645
  41. package/dist/commonjs/v3/schemas/build.js +71 -71
  42. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  43. package/dist/commonjs/v3/schemas/checkpoints.d.ts +461 -112
  44. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  45. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  46. package/dist/commonjs/v3/schemas/common.d.ts +6499 -1018
  47. package/dist/commonjs/v3/schemas/common.js +218 -225
  48. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  49. package/dist/commonjs/v3/schemas/config.d.ts +9 -3
  50. package/dist/commonjs/v3/schemas/config.js +4 -4
  51. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/errors.d.ts +173 -42
  53. package/dist/commonjs/v3/schemas/errors.js +44 -44
  54. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  55. package/dist/commonjs/v3/schemas/eventFilter.d.ts +91 -23
  56. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  57. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  58. package/dist/commonjs/v3/schemas/fetch.d.ts +415 -119
  59. package/dist/commonjs/v3/schemas/fetch.js +14 -17
  60. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  61. package/dist/commonjs/v3/schemas/messages.d.ts +7438 -603
  62. package/dist/commonjs/v3/schemas/messages.js +50 -50
  63. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  64. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +401 -50
  65. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  66. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  67. package/dist/commonjs/v3/schemas/query.d.ts +273 -51
  68. package/dist/commonjs/v3/schemas/query.js +40 -41
  69. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  70. package/dist/commonjs/v3/schemas/queues.d.ts +100 -29
  71. package/dist/commonjs/v3/schemas/queues.js +22 -22
  72. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  73. package/dist/commonjs/v3/schemas/reports.d.ts +692 -150
  74. package/dist/commonjs/v3/schemas/reports.js +55 -55
  75. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  76. package/dist/commonjs/v3/schemas/resources.d.ts +5985 -533
  77. package/dist/commonjs/v3/schemas/resources.js +49 -49
  78. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  79. package/dist/commonjs/v3/schemas/runEngine.d.ts +1821 -456
  80. package/dist/commonjs/v3/schemas/runEngine.js +107 -108
  81. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  82. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  83. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  84. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  85. package/dist/commonjs/v3/schemas/schemas.d.ts +7456 -788
  86. package/dist/commonjs/v3/schemas/schemas.js +132 -133
  87. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  88. package/dist/commonjs/v3/schemas/style.d.ts +86 -24
  89. package/dist/commonjs/v3/schemas/style.js +12 -12
  90. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  91. package/dist/commonjs/v3/schemas/tokens.d.ts +31 -5
  92. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  93. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  94. package/dist/commonjs/v3/schemas/warmStart.d.ts +8 -2
  95. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  96. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  97. package/dist/commonjs/v3/schemas/webhookApi.d.ts +249 -75
  98. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  99. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  100. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +3309 -473
  101. package/dist/commonjs/v3/schemas/webhookConfig.js +78 -79
  102. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  103. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +4 -16
  104. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  105. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  106. package/dist/commonjs/v3/schemas/webhooks.d.ts +2055 -247
  107. package/dist/commonjs/v3/schemas/webhooks.js +115 -116
  108. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  109. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +8 -19
  110. package/dist/commonjs/v3/serverOnly/httpServer.js +3 -6
  111. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  112. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  113. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +7 -7
  114. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  115. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +0 -15
  116. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +1 -16
  117. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  118. package/dist/commonjs/v3/types/schemas.d.ts +1 -21
  119. package/dist/commonjs/v3/types/schemas.js +1 -2
  120. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  121. package/dist/commonjs/v3/types/tools.d.ts +5 -16
  122. package/dist/commonjs/v3/types/tools.js +2 -2
  123. package/dist/commonjs/v3/types/tools.js.map +1 -1
  124. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  125. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  126. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +21 -2
  127. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  128. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  129. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  130. package/dist/commonjs/v3/zodIpc.js +18 -20
  131. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  132. package/dist/commonjs/v3/zodMessageHandler.d.ts +21 -14
  133. package/dist/commonjs/v3/zodMessageHandler.js +7 -20
  134. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  135. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  136. package/dist/commonjs/v3/zodSocket.js +8 -9
  137. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  138. package/dist/commonjs/version.js +1 -1
  139. package/dist/esm/schemas/eventFilter.d.ts +105 -27
  140. package/dist/esm/schemas/eventFilter.js +2 -2
  141. package/dist/esm/schemas/eventFilter.js.map +1 -1
  142. package/dist/esm/schemas/json.d.ts +3 -3
  143. package/dist/esm/schemas/json.js +3 -11
  144. package/dist/esm/schemas/json.js.map +1 -1
  145. package/dist/esm/v3/apiClient/core.d.ts +14 -14
  146. package/dist/esm/v3/apiClient/core.js +17 -38
  147. package/dist/esm/v3/apiClient/core.js.map +1 -1
  148. package/dist/esm/v3/apiClient/index.d.ts +184 -67
  149. package/dist/esm/v3/apiClient/index.js +3 -5
  150. package/dist/esm/v3/apiClient/index.js.map +1 -1
  151. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  152. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  153. package/dist/esm/v3/errors.d.ts +4 -5
  154. package/dist/esm/v3/errors.js.map +1 -1
  155. package/dist/esm/v3/index.d.ts +1 -1
  156. package/dist/esm/v3/index.js.map +1 -1
  157. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  158. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  159. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +0 -3
  160. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  161. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +0 -4
  162. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  163. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  164. package/dist/esm/v3/runEngineWorker/supervisor/http.js +10 -1
  165. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  166. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  167. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +5 -5
  168. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  169. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +109 -13
  170. package/dist/esm/v3/runEngineWorker/workload/http.js +14 -3
  171. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  172. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  173. package/dist/esm/v3/runEngineWorker/workload/schemas.js +4 -4
  174. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  175. package/dist/esm/v3/schemas/api.d.ts +12680 -1840
  176. package/dist/esm/v3/schemas/api.js +35 -94
  177. package/dist/esm/v3/schemas/api.js.map +1 -1
  178. package/dist/esm/v3/schemas/build.d.ts +9115 -645
  179. package/dist/esm/v3/schemas/build.js +10 -10
  180. package/dist/esm/v3/schemas/build.js.map +1 -1
  181. package/dist/esm/v3/schemas/checkpoints.d.ts +461 -112
  182. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  183. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  184. package/dist/esm/v3/schemas/common.d.ts +6499 -1018
  185. package/dist/esm/v3/schemas/common.js +10 -17
  186. package/dist/esm/v3/schemas/common.js.map +1 -1
  187. package/dist/esm/v3/schemas/config.d.ts +9 -3
  188. package/dist/esm/v3/schemas/config.js +1 -1
  189. package/dist/esm/v3/schemas/config.js.map +1 -1
  190. package/dist/esm/v3/schemas/errors.d.ts +173 -42
  191. package/dist/esm/v3/schemas/errors.js +1 -1
  192. package/dist/esm/v3/schemas/errors.js.map +1 -1
  193. package/dist/esm/v3/schemas/eventFilter.d.ts +91 -23
  194. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  195. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  196. package/dist/esm/v3/schemas/fetch.d.ts +415 -119
  197. package/dist/esm/v3/schemas/fetch.js +3 -6
  198. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  199. package/dist/esm/v3/schemas/messages.d.ts +7438 -603
  200. package/dist/esm/v3/schemas/messages.js +3 -3
  201. package/dist/esm/v3/schemas/messages.js.map +1 -1
  202. package/dist/esm/v3/schemas/openTelemetry.d.ts +401 -50
  203. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  204. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  205. package/dist/esm/v3/schemas/query.d.ts +273 -51
  206. package/dist/esm/v3/schemas/query.js +3 -4
  207. package/dist/esm/v3/schemas/query.js.map +1 -1
  208. package/dist/esm/v3/schemas/queues.d.ts +100 -29
  209. package/dist/esm/v3/schemas/queues.js +1 -1
  210. package/dist/esm/v3/schemas/queues.js.map +1 -1
  211. package/dist/esm/v3/schemas/reports.d.ts +692 -150
  212. package/dist/esm/v3/schemas/reports.js +5 -5
  213. package/dist/esm/v3/schemas/reports.js.map +1 -1
  214. package/dist/esm/v3/schemas/resources.d.ts +5985 -533
  215. package/dist/esm/v3/schemas/resources.js +3 -3
  216. package/dist/esm/v3/schemas/resources.js.map +1 -1
  217. package/dist/esm/v3/schemas/runEngine.d.ts +1821 -456
  218. package/dist/esm/v3/schemas/runEngine.js +3 -4
  219. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  220. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  221. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  222. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  223. package/dist/esm/v3/schemas/schemas.d.ts +7456 -788
  224. package/dist/esm/v3/schemas/schemas.js +10 -11
  225. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  226. package/dist/esm/v3/schemas/style.d.ts +86 -24
  227. package/dist/esm/v3/schemas/style.js +1 -1
  228. package/dist/esm/v3/schemas/style.js.map +1 -1
  229. package/dist/esm/v3/schemas/tokens.d.ts +31 -5
  230. package/dist/esm/v3/schemas/tokens.js +1 -1
  231. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  232. package/dist/esm/v3/schemas/warmStart.d.ts +8 -2
  233. package/dist/esm/v3/schemas/warmStart.js +1 -1
  234. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  235. package/dist/esm/v3/schemas/webhookApi.d.ts +249 -75
  236. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  237. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  238. package/dist/esm/v3/schemas/webhookConfig.d.ts +3309 -473
  239. package/dist/esm/v3/schemas/webhookConfig.js +9 -10
  240. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  241. package/dist/esm/v3/schemas/webhookFilter.d.ts +4 -16
  242. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  243. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  244. package/dist/esm/v3/schemas/webhooks.d.ts +2055 -247
  245. package/dist/esm/v3/schemas/webhooks.js +2 -3
  246. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  247. package/dist/esm/v3/serverOnly/httpServer.d.ts +8 -19
  248. package/dist/esm/v3/serverOnly/httpServer.js +2 -5
  249. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  250. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  251. package/dist/esm/v3/sessionStreams/chatSnapshot.js +1 -1
  252. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  253. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +0 -15
  254. package/dist/esm/v3/sessionStreams/wireProtocol.js +0 -15
  255. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  256. package/dist/esm/v3/types/schemas.d.ts +1 -21
  257. package/dist/esm/v3/types/schemas.js +1 -2
  258. package/dist/esm/v3/types/schemas.js.map +1 -1
  259. package/dist/esm/v3/types/tools.d.ts +5 -16
  260. package/dist/esm/v3/types/tools.js +2 -2
  261. package/dist/esm/v3/types/tools.js.map +1 -1
  262. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  263. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  264. package/dist/esm/v3/workloadDeploymentToken.d.ts +21 -2
  265. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  266. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  267. package/dist/esm/v3/zodIpc.d.ts +6 -6
  268. package/dist/esm/v3/zodIpc.js +3 -5
  269. package/dist/esm/v3/zodIpc.js.map +1 -1
  270. package/dist/esm/v3/zodMessageHandler.d.ts +21 -14
  271. package/dist/esm/v3/zodMessageHandler.js +3 -16
  272. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  273. package/dist/esm/v3/zodSocket.d.ts +11 -11
  274. package/dist/esm/v3/zodSocket.js +2 -3
  275. package/dist/esm/v3/zodSocket.js.map +1 -1
  276. package/dist/esm/version.js +1 -1
  277. package/package.json +3 -7
  278. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  279. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +0 -20
  280. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  281. package/dist/commonjs/v3/utils/zod.d.ts +0 -8
  282. package/dist/commonjs/v3/utils/zod.js +0 -8
  283. package/dist/commonjs/v3/utils/zod.js.map +0 -1
  284. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  285. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +0 -17
  286. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  287. package/dist/esm/v3/utils/zod.d.ts +0 -8
  288. package/dist/esm/v3/utils/zod.js +0 -5
  289. package/dist/esm/v3/utils/zod.js.map +0 -1
@@ -1,430 +1,1906 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  export declare const WorkloadHeartbeatRequestBody: z.ZodObject<{
3
3
  cpu: z.ZodOptional<z.ZodNumber>;
4
4
  memory: z.ZodOptional<z.ZodNumber>;
5
- }, z.core.$strip>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ cpu?: number | undefined;
7
+ memory?: number | undefined;
8
+ }, {
9
+ cpu?: number | undefined;
10
+ memory?: number | undefined;
11
+ }>;
6
12
  export type WorkloadHeartbeatRequestBody = z.infer<typeof WorkloadHeartbeatRequestBody>;
7
13
  export declare const WorkloadHeartbeatResponseBody: z.ZodObject<{
8
14
  ok: z.ZodLiteral<true>;
9
- }, z.core.$strip>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ ok: true;
17
+ }, {
18
+ ok: true;
19
+ }>;
10
20
  export type WorkloadHeartbeatResponseBody = z.infer<typeof WorkloadHeartbeatResponseBody>;
11
- export declare const WorkloadSuspendRunResponseBody: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
21
+ export declare const WorkloadSuspendRunResponseBody: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
12
22
  ok: z.ZodLiteral<true>;
13
- }, z.core.$strip>, z.ZodObject<{
23
+ }, "strip", z.ZodTypeAny, {
24
+ ok: true;
25
+ }, {
26
+ ok: true;
27
+ }>, z.ZodObject<{
14
28
  ok: z.ZodLiteral<false>;
15
29
  error: z.ZodString;
16
- }, z.core.$strip>]>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ ok: false;
32
+ error: string;
33
+ }, {
34
+ ok: false;
35
+ error: string;
36
+ }>]>;
17
37
  export type WorkloadSuspendRunResponseBody = z.infer<typeof WorkloadSuspendRunResponseBody>;
18
38
  export declare const WorkloadContinueRunExecutionResponseBody: z.ZodObject<{
19
39
  snapshot: z.ZodObject<{
20
40
  id: z.ZodString;
21
41
  friendlyId: z.ZodString;
22
- executionStatus: z.ZodEnum<{
23
- DELAYED: "DELAYED";
24
- EXECUTING: "EXECUTING";
25
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
26
- FINISHED: "FINISHED";
27
- PENDING_CANCEL: "PENDING_CANCEL";
28
- PENDING_EXECUTING: "PENDING_EXECUTING";
29
- QUEUED: "QUEUED";
30
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
31
- RUN_CREATED: "RUN_CREATED";
32
- SUSPENDED: "SUSPENDED";
33
- }>;
42
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
34
43
  description: z.ZodString;
35
- createdAt: z.ZodCoercedDate<unknown>;
36
- }, z.core.$strip>;
44
+ createdAt: z.ZodDate;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ friendlyId: string;
48
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
49
+ description: string;
50
+ createdAt: Date;
51
+ }, {
52
+ id: string;
53
+ friendlyId: string;
54
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
55
+ description: string;
56
+ createdAt: Date;
57
+ }>;
37
58
  run: z.ZodObject<{
38
59
  id: z.ZodString;
39
60
  friendlyId: z.ZodString;
40
- status: z.ZodEnum<{
41
- CANCELED: "CANCELED";
42
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
43
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
44
- CRASHED: "CRASHED";
45
- DELAYED: "DELAYED";
46
- DEQUEUED: "DEQUEUED";
47
- EXECUTING: "EXECUTING";
48
- EXPIRED: "EXPIRED";
49
- INTERRUPTED: "INTERRUPTED";
50
- PAUSED: "PAUSED";
51
- PENDING: "PENDING";
52
- PENDING_VERSION: "PENDING_VERSION";
53
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
54
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
55
- TIMED_OUT: "TIMED_OUT";
56
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
57
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
58
- }>;
61
+ status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
59
62
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
63
  taskEventStore: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>;
62
- }, z.core.$strip>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ id: string;
66
+ friendlyId: string;
67
+ status: import("../../index.js").TaskRunStatus;
68
+ attemptNumber?: number | null | undefined;
69
+ taskEventStore?: string | undefined;
70
+ }, {
71
+ id: string;
72
+ friendlyId: string;
73
+ status: import("../../index.js").TaskRunStatus;
74
+ attemptNumber?: number | null | undefined;
75
+ taskEventStore?: string | undefined;
76
+ }>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ snapshot: {
79
+ id: string;
80
+ friendlyId: string;
81
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
82
+ description: string;
83
+ createdAt: Date;
84
+ };
85
+ run: {
86
+ id: string;
87
+ friendlyId: string;
88
+ status: import("../../index.js").TaskRunStatus;
89
+ attemptNumber?: number | null | undefined;
90
+ taskEventStore?: string | undefined;
91
+ };
92
+ }, {
93
+ snapshot: {
94
+ id: string;
95
+ friendlyId: string;
96
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
97
+ description: string;
98
+ createdAt: Date;
99
+ };
100
+ run: {
101
+ id: string;
102
+ friendlyId: string;
103
+ status: import("../../index.js").TaskRunStatus;
104
+ attemptNumber?: number | null | undefined;
105
+ taskEventStore?: string | undefined;
106
+ };
107
+ }>;
63
108
  export type WorkloadContinueRunExecutionResponseBody = z.infer<typeof WorkloadContinueRunExecutionResponseBody>;
64
109
  export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
65
- completion: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
110
+ completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
66
111
  ok: z.ZodLiteral<true>;
67
112
  id: z.ZodString;
68
113
  output: z.ZodOptional<z.ZodString>;
69
114
  outputType: z.ZodString;
70
115
  usage: z.ZodOptional<z.ZodObject<{
71
116
  durationMs: z.ZodNumber;
72
- }, z.core.$strip>>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ durationMs: number;
119
+ }, {
120
+ durationMs: number;
121
+ }>>;
73
122
  taskIdentifier: z.ZodOptional<z.ZodString>;
74
123
  metadata: z.ZodOptional<z.ZodObject<{
75
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
76
- operations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
124
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
125
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
77
126
  type: z.ZodLiteral<"update">;
78
127
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
79
- }, z.core.$strip>, z.ZodObject<{
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "update";
130
+ value: Record<string, unknown>;
131
+ }, {
132
+ type: "update";
133
+ value: Record<string, unknown>;
134
+ }>, z.ZodObject<{
80
135
  type: z.ZodLiteral<"set">;
81
- key: z.ZodString;
82
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
83
- }, z.core.$strip>, z.ZodObject<{
136
+ key: z.ZodEffects<z.ZodString, string, string>;
137
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "set";
140
+ key: string;
141
+ value: import("../../../index.js").DeserializedJson;
142
+ }, {
143
+ type: "set";
144
+ key: string;
145
+ value: import("../../../index.js").DeserializedJson;
146
+ }>, z.ZodObject<{
84
147
  type: z.ZodLiteral<"delete">;
85
- key: z.ZodString;
86
- }, z.core.$strip>, z.ZodObject<{
148
+ key: z.ZodEffects<z.ZodString, string, string>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: "delete";
151
+ key: string;
152
+ }, {
153
+ type: "delete";
154
+ key: string;
155
+ }>, z.ZodObject<{
87
156
  type: z.ZodLiteral<"append">;
88
- key: z.ZodString;
89
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
90
- }, z.core.$strip>, z.ZodObject<{
157
+ key: z.ZodEffects<z.ZodString, string, string>;
158
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "append";
161
+ key: string;
162
+ value: import("../../../index.js").DeserializedJson;
163
+ }, {
164
+ type: "append";
165
+ key: string;
166
+ value: import("../../../index.js").DeserializedJson;
167
+ }>, z.ZodObject<{
91
168
  type: z.ZodLiteral<"remove">;
92
- key: z.ZodString;
93
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
94
- }, z.core.$strip>, z.ZodObject<{
169
+ key: z.ZodEffects<z.ZodString, string, string>;
170
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "remove";
173
+ key: string;
174
+ value: import("../../../index.js").DeserializedJson;
175
+ }, {
176
+ type: "remove";
177
+ key: string;
178
+ value: import("../../../index.js").DeserializedJson;
179
+ }>, z.ZodObject<{
95
180
  type: z.ZodLiteral<"increment">;
96
- key: z.ZodString;
181
+ key: z.ZodEffects<z.ZodString, string, string>;
97
182
  value: z.ZodNumber;
98
- }, z.core.$strip>]>>>;
99
- parentOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
183
+ }, "strip", z.ZodTypeAny, {
184
+ type: "increment";
185
+ key: string;
186
+ value: number;
187
+ }, {
188
+ type: "increment";
189
+ key: string;
190
+ value: number;
191
+ }>]>, "many">>;
192
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
100
193
  type: z.ZodLiteral<"update">;
101
194
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
102
- }, z.core.$strip>, z.ZodObject<{
195
+ }, "strip", z.ZodTypeAny, {
196
+ type: "update";
197
+ value: Record<string, unknown>;
198
+ }, {
199
+ type: "update";
200
+ value: Record<string, unknown>;
201
+ }>, z.ZodObject<{
103
202
  type: z.ZodLiteral<"set">;
104
- key: z.ZodString;
105
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
106
- }, z.core.$strip>, z.ZodObject<{
203
+ key: z.ZodEffects<z.ZodString, string, string>;
204
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ type: "set";
207
+ key: string;
208
+ value: import("../../../index.js").DeserializedJson;
209
+ }, {
210
+ type: "set";
211
+ key: string;
212
+ value: import("../../../index.js").DeserializedJson;
213
+ }>, z.ZodObject<{
107
214
  type: z.ZodLiteral<"delete">;
108
- key: z.ZodString;
109
- }, z.core.$strip>, z.ZodObject<{
215
+ key: z.ZodEffects<z.ZodString, string, string>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: "delete";
218
+ key: string;
219
+ }, {
220
+ type: "delete";
221
+ key: string;
222
+ }>, z.ZodObject<{
110
223
  type: z.ZodLiteral<"append">;
111
- key: z.ZodString;
112
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
113
- }, z.core.$strip>, z.ZodObject<{
224
+ key: z.ZodEffects<z.ZodString, string, string>;
225
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "append";
228
+ key: string;
229
+ value: import("../../../index.js").DeserializedJson;
230
+ }, {
231
+ type: "append";
232
+ key: string;
233
+ value: import("../../../index.js").DeserializedJson;
234
+ }>, z.ZodObject<{
114
235
  type: z.ZodLiteral<"remove">;
115
- key: z.ZodString;
116
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
117
- }, z.core.$strip>, z.ZodObject<{
236
+ key: z.ZodEffects<z.ZodString, string, string>;
237
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "remove";
240
+ key: string;
241
+ value: import("../../../index.js").DeserializedJson;
242
+ }, {
243
+ type: "remove";
244
+ key: string;
245
+ value: import("../../../index.js").DeserializedJson;
246
+ }>, z.ZodObject<{
118
247
  type: z.ZodLiteral<"increment">;
119
- key: z.ZodString;
248
+ key: z.ZodEffects<z.ZodString, string, string>;
120
249
  value: z.ZodNumber;
121
- }, z.core.$strip>]>>>;
122
- rootOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
250
+ }, "strip", z.ZodTypeAny, {
251
+ type: "increment";
252
+ key: string;
253
+ value: number;
254
+ }, {
255
+ type: "increment";
256
+ key: string;
257
+ value: number;
258
+ }>]>, "many">>;
259
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
123
260
  type: z.ZodLiteral<"update">;
124
261
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
125
- }, z.core.$strip>, z.ZodObject<{
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "update";
264
+ value: Record<string, unknown>;
265
+ }, {
266
+ type: "update";
267
+ value: Record<string, unknown>;
268
+ }>, z.ZodObject<{
126
269
  type: z.ZodLiteral<"set">;
127
- key: z.ZodString;
128
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
129
- }, z.core.$strip>, z.ZodObject<{
270
+ key: z.ZodEffects<z.ZodString, string, string>;
271
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ type: "set";
274
+ key: string;
275
+ value: import("../../../index.js").DeserializedJson;
276
+ }, {
277
+ type: "set";
278
+ key: string;
279
+ value: import("../../../index.js").DeserializedJson;
280
+ }>, z.ZodObject<{
130
281
  type: z.ZodLiteral<"delete">;
131
- key: z.ZodString;
132
- }, z.core.$strip>, z.ZodObject<{
282
+ key: z.ZodEffects<z.ZodString, string, string>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ type: "delete";
285
+ key: string;
286
+ }, {
287
+ type: "delete";
288
+ key: string;
289
+ }>, z.ZodObject<{
133
290
  type: z.ZodLiteral<"append">;
134
- key: z.ZodString;
135
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
136
- }, z.core.$strip>, z.ZodObject<{
291
+ key: z.ZodEffects<z.ZodString, string, string>;
292
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "append";
295
+ key: string;
296
+ value: import("../../../index.js").DeserializedJson;
297
+ }, {
298
+ type: "append";
299
+ key: string;
300
+ value: import("../../../index.js").DeserializedJson;
301
+ }>, z.ZodObject<{
137
302
  type: z.ZodLiteral<"remove">;
138
- key: z.ZodString;
139
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
140
- }, z.core.$strip>, z.ZodObject<{
303
+ key: z.ZodEffects<z.ZodString, string, string>;
304
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: "remove";
307
+ key: string;
308
+ value: import("../../../index.js").DeserializedJson;
309
+ }, {
310
+ type: "remove";
311
+ key: string;
312
+ value: import("../../../index.js").DeserializedJson;
313
+ }>, z.ZodObject<{
141
314
  type: z.ZodLiteral<"increment">;
142
- key: z.ZodString;
315
+ key: z.ZodEffects<z.ZodString, string, string>;
143
316
  value: z.ZodNumber;
144
- }, z.core.$strip>]>>>;
145
- }, z.core.$strip>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "increment";
319
+ key: string;
320
+ value: number;
321
+ }, {
322
+ type: "increment";
323
+ key: string;
324
+ value: number;
325
+ }>]>, "many">>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
328
+ operations?: ({
329
+ type: "update";
330
+ value: Record<string, unknown>;
331
+ } | {
332
+ type: "set";
333
+ key: string;
334
+ value: import("../../../index.js").DeserializedJson;
335
+ } | {
336
+ type: "delete";
337
+ key: string;
338
+ } | {
339
+ type: "append";
340
+ key: string;
341
+ value: import("../../../index.js").DeserializedJson;
342
+ } | {
343
+ type: "remove";
344
+ key: string;
345
+ value: import("../../../index.js").DeserializedJson;
346
+ } | {
347
+ type: "increment";
348
+ key: string;
349
+ value: number;
350
+ })[] | undefined;
351
+ parentOperations?: ({
352
+ type: "update";
353
+ value: Record<string, unknown>;
354
+ } | {
355
+ type: "set";
356
+ key: string;
357
+ value: import("../../../index.js").DeserializedJson;
358
+ } | {
359
+ type: "delete";
360
+ key: string;
361
+ } | {
362
+ type: "append";
363
+ key: string;
364
+ value: import("../../../index.js").DeserializedJson;
365
+ } | {
366
+ type: "remove";
367
+ key: string;
368
+ value: import("../../../index.js").DeserializedJson;
369
+ } | {
370
+ type: "increment";
371
+ key: string;
372
+ value: number;
373
+ })[] | undefined;
374
+ rootOperations?: ({
375
+ type: "update";
376
+ value: Record<string, unknown>;
377
+ } | {
378
+ type: "set";
379
+ key: string;
380
+ value: import("../../../index.js").DeserializedJson;
381
+ } | {
382
+ type: "delete";
383
+ key: string;
384
+ } | {
385
+ type: "append";
386
+ key: string;
387
+ value: import("../../../index.js").DeserializedJson;
388
+ } | {
389
+ type: "remove";
390
+ key: string;
391
+ value: import("../../../index.js").DeserializedJson;
392
+ } | {
393
+ type: "increment";
394
+ key: string;
395
+ value: number;
396
+ })[] | undefined;
397
+ }, {
398
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
399
+ operations?: ({
400
+ type: "update";
401
+ value: Record<string, unknown>;
402
+ } | {
403
+ type: "set";
404
+ key: string;
405
+ value: import("../../../index.js").DeserializedJson;
406
+ } | {
407
+ type: "delete";
408
+ key: string;
409
+ } | {
410
+ type: "append";
411
+ key: string;
412
+ value: import("../../../index.js").DeserializedJson;
413
+ } | {
414
+ type: "remove";
415
+ key: string;
416
+ value: import("../../../index.js").DeserializedJson;
417
+ } | {
418
+ type: "increment";
419
+ key: string;
420
+ value: number;
421
+ })[] | undefined;
422
+ parentOperations?: ({
423
+ type: "update";
424
+ value: Record<string, unknown>;
425
+ } | {
426
+ type: "set";
427
+ key: string;
428
+ value: import("../../../index.js").DeserializedJson;
429
+ } | {
430
+ type: "delete";
431
+ key: string;
432
+ } | {
433
+ type: "append";
434
+ key: string;
435
+ value: import("../../../index.js").DeserializedJson;
436
+ } | {
437
+ type: "remove";
438
+ key: string;
439
+ value: import("../../../index.js").DeserializedJson;
440
+ } | {
441
+ type: "increment";
442
+ key: string;
443
+ value: number;
444
+ })[] | undefined;
445
+ rootOperations?: ({
446
+ type: "update";
447
+ value: Record<string, unknown>;
448
+ } | {
449
+ type: "set";
450
+ key: string;
451
+ value: import("../../../index.js").DeserializedJson;
452
+ } | {
453
+ type: "delete";
454
+ key: string;
455
+ } | {
456
+ type: "append";
457
+ key: string;
458
+ value: import("../../../index.js").DeserializedJson;
459
+ } | {
460
+ type: "remove";
461
+ key: string;
462
+ value: import("../../../index.js").DeserializedJson;
463
+ } | {
464
+ type: "increment";
465
+ key: string;
466
+ value: number;
467
+ })[] | undefined;
468
+ }>>;
146
469
  flushedMetadata: z.ZodOptional<z.ZodObject<{
147
470
  data: z.ZodOptional<z.ZodString>;
148
471
  dataType: z.ZodString;
149
- }, z.core.$strip>>;
150
- }, z.core.$strip>, z.ZodObject<{
472
+ }, "strip", z.ZodTypeAny, {
473
+ data?: string | undefined;
474
+ dataType: string;
475
+ }, {
476
+ data?: string | undefined;
477
+ dataType: string;
478
+ }>>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ ok: true;
481
+ id: string;
482
+ output?: string | undefined;
483
+ outputType: string;
484
+ usage?: {
485
+ durationMs: number;
486
+ } | undefined;
487
+ taskIdentifier?: string | undefined;
488
+ metadata?: {
489
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
490
+ operations?: ({
491
+ type: "update";
492
+ value: Record<string, unknown>;
493
+ } | {
494
+ type: "set";
495
+ key: string;
496
+ value: import("../../../index.js").DeserializedJson;
497
+ } | {
498
+ type: "delete";
499
+ key: string;
500
+ } | {
501
+ type: "append";
502
+ key: string;
503
+ value: import("../../../index.js").DeserializedJson;
504
+ } | {
505
+ type: "remove";
506
+ key: string;
507
+ value: import("../../../index.js").DeserializedJson;
508
+ } | {
509
+ type: "increment";
510
+ key: string;
511
+ value: number;
512
+ })[] | undefined;
513
+ parentOperations?: ({
514
+ type: "update";
515
+ value: Record<string, unknown>;
516
+ } | {
517
+ type: "set";
518
+ key: string;
519
+ value: import("../../../index.js").DeserializedJson;
520
+ } | {
521
+ type: "delete";
522
+ key: string;
523
+ } | {
524
+ type: "append";
525
+ key: string;
526
+ value: import("../../../index.js").DeserializedJson;
527
+ } | {
528
+ type: "remove";
529
+ key: string;
530
+ value: import("../../../index.js").DeserializedJson;
531
+ } | {
532
+ type: "increment";
533
+ key: string;
534
+ value: number;
535
+ })[] | undefined;
536
+ rootOperations?: ({
537
+ type: "update";
538
+ value: Record<string, unknown>;
539
+ } | {
540
+ type: "set";
541
+ key: string;
542
+ value: import("../../../index.js").DeserializedJson;
543
+ } | {
544
+ type: "delete";
545
+ key: string;
546
+ } | {
547
+ type: "append";
548
+ key: string;
549
+ value: import("../../../index.js").DeserializedJson;
550
+ } | {
551
+ type: "remove";
552
+ key: string;
553
+ value: import("../../../index.js").DeserializedJson;
554
+ } | {
555
+ type: "increment";
556
+ key: string;
557
+ value: number;
558
+ })[] | undefined;
559
+ } | undefined;
560
+ flushedMetadata?: {
561
+ data?: string | undefined;
562
+ dataType: string;
563
+ } | undefined;
564
+ }, {
565
+ ok: true;
566
+ id: string;
567
+ output?: string | undefined;
568
+ outputType: string;
569
+ usage?: {
570
+ durationMs: number;
571
+ } | undefined;
572
+ taskIdentifier?: string | undefined;
573
+ metadata?: {
574
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
575
+ operations?: ({
576
+ type: "update";
577
+ value: Record<string, unknown>;
578
+ } | {
579
+ type: "set";
580
+ key: string;
581
+ value: import("../../../index.js").DeserializedJson;
582
+ } | {
583
+ type: "delete";
584
+ key: string;
585
+ } | {
586
+ type: "append";
587
+ key: string;
588
+ value: import("../../../index.js").DeserializedJson;
589
+ } | {
590
+ type: "remove";
591
+ key: string;
592
+ value: import("../../../index.js").DeserializedJson;
593
+ } | {
594
+ type: "increment";
595
+ key: string;
596
+ value: number;
597
+ })[] | undefined;
598
+ parentOperations?: ({
599
+ type: "update";
600
+ value: Record<string, unknown>;
601
+ } | {
602
+ type: "set";
603
+ key: string;
604
+ value: import("../../../index.js").DeserializedJson;
605
+ } | {
606
+ type: "delete";
607
+ key: string;
608
+ } | {
609
+ type: "append";
610
+ key: string;
611
+ value: import("../../../index.js").DeserializedJson;
612
+ } | {
613
+ type: "remove";
614
+ key: string;
615
+ value: import("../../../index.js").DeserializedJson;
616
+ } | {
617
+ type: "increment";
618
+ key: string;
619
+ value: number;
620
+ })[] | undefined;
621
+ rootOperations?: ({
622
+ type: "update";
623
+ value: Record<string, unknown>;
624
+ } | {
625
+ type: "set";
626
+ key: string;
627
+ value: import("../../../index.js").DeserializedJson;
628
+ } | {
629
+ type: "delete";
630
+ key: string;
631
+ } | {
632
+ type: "append";
633
+ key: string;
634
+ value: import("../../../index.js").DeserializedJson;
635
+ } | {
636
+ type: "remove";
637
+ key: string;
638
+ value: import("../../../index.js").DeserializedJson;
639
+ } | {
640
+ type: "increment";
641
+ key: string;
642
+ value: number;
643
+ })[] | undefined;
644
+ } | undefined;
645
+ flushedMetadata?: {
646
+ data?: string | undefined;
647
+ dataType: string;
648
+ } | undefined;
649
+ }>, z.ZodObject<{
151
650
  ok: z.ZodLiteral<false>;
152
651
  id: z.ZodString;
153
- error: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
652
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
154
653
  type: z.ZodLiteral<"BUILT_IN_ERROR">;
155
654
  name: z.ZodString;
156
655
  message: z.ZodString;
157
656
  stackTrace: z.ZodString;
158
- }, z.core.$strip>, z.ZodObject<{
657
+ }, "strip", z.ZodTypeAny, {
658
+ type: "BUILT_IN_ERROR";
659
+ name: string;
660
+ message: string;
661
+ stackTrace: string;
662
+ }, {
663
+ type: "BUILT_IN_ERROR";
664
+ name: string;
665
+ message: string;
666
+ stackTrace: string;
667
+ }>, z.ZodObject<{
159
668
  type: z.ZodLiteral<"CUSTOM_ERROR">;
160
669
  raw: z.ZodString;
161
- }, z.core.$strip>, z.ZodObject<{
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "CUSTOM_ERROR";
672
+ raw: string;
673
+ }, {
674
+ type: "CUSTOM_ERROR";
675
+ raw: string;
676
+ }>, z.ZodObject<{
162
677
  type: z.ZodLiteral<"STRING_ERROR">;
163
678
  raw: z.ZodString;
164
- }, z.core.$strip>, z.ZodObject<{
679
+ }, "strip", z.ZodTypeAny, {
680
+ type: "STRING_ERROR";
681
+ raw: string;
682
+ }, {
683
+ type: "STRING_ERROR";
684
+ raw: string;
685
+ }>, z.ZodObject<{
165
686
  type: z.ZodLiteral<"INTERNAL_ERROR">;
166
- code: z.ZodEnum<{
167
- BATCH_ITEM_COULD_NOT_TRIGGER: "BATCH_ITEM_COULD_NOT_TRIGGER";
168
- CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY";
169
- COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR";
170
- COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK";
171
- COULD_NOT_IMPORT_TASK: "COULD_NOT_IMPORT_TASK";
172
- DISK_SPACE_EXCEEDED: "DISK_SPACE_EXCEEDED";
173
- GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT";
174
- HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR";
175
- MAX_DURATION_EXCEEDED: "MAX_DURATION_EXCEEDED";
176
- OUTDATED_SDK_VERSION: "OUTDATED_SDK_VERSION";
177
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
178
- POD_EVICTED: "POD_EVICTED";
179
- POD_UNKNOWN_ERROR: "POD_UNKNOWN_ERROR";
180
- RECURSIVE_WAIT_DEADLOCK: "RECURSIVE_WAIT_DEADLOCK";
181
- TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING";
182
- TASK_DEQUEUED_INVALID_STATE: "TASK_DEQUEUED_INVALID_STATE";
183
- TASK_DEQUEUED_QUEUE_NOT_FOUND: "TASK_DEQUEUED_QUEUE_NOT_FOUND";
184
- TASK_DID_CONCURRENT_WAIT: "TASK_DID_CONCURRENT_WAIT";
185
- TASK_EXECUTION_ABORTED: "TASK_EXECUTION_ABORTED";
186
- TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED";
187
- TASK_HAS_N0_EXECUTION_SNAPSHOT: "TASK_HAS_N0_EXECUTION_SNAPSHOT";
188
- TASK_INPUT_ERROR: "TASK_INPUT_ERROR";
189
- TASK_MIDDLEWARE_ERROR: "TASK_MIDDLEWARE_ERROR";
190
- TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR";
191
- TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE: "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE";
192
- TASK_PROCESS_MAYBE_OOM_KILLED: "TASK_PROCESS_MAYBE_OOM_KILLED";
193
- TASK_PROCESS_OOM_KILLED: "TASK_PROCESS_OOM_KILLED";
194
- TASK_PROCESS_SIGKILL_TIMEOUT: "TASK_PROCESS_SIGKILL_TIMEOUT";
195
- TASK_PROCESS_SIGSEGV: "TASK_PROCESS_SIGSEGV";
196
- TASK_PROCESS_SIGTERM: "TASK_PROCESS_SIGTERM";
197
- TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED";
198
- TASK_RUN_CRASHED: "TASK_RUN_CRASHED";
199
- TASK_RUN_DEQUEUED_MAX_RETRIES: "TASK_RUN_DEQUEUED_MAX_RETRIES";
200
- TASK_RUN_HEARTBEAT_TIMEOUT: "TASK_RUN_HEARTBEAT_TIMEOUT";
201
- TASK_RUN_STALLED_EXECUTING: "TASK_RUN_STALLED_EXECUTING";
202
- TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS: "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS";
203
- TASK_RUN_UNCAUGHT_EXCEPTION: "TASK_RUN_UNCAUGHT_EXCEPTION";
204
- UNSPECIFIED_ERROR: "UNSPECIFIED_ERROR";
205
- }>;
687
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "COULD_NOT_IMPORT_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_PROCESS_SIGKILL_TIMEOUT", "TASK_PROCESS_SIGSEGV", "TASK_PROCESS_SIGTERM", "TASK_PROCESS_OOM_KILLED", "TASK_PROCESS_MAYBE_OOM_KILLED", "TASK_RUN_CANCELLED", "TASK_INPUT_ERROR", "TASK_OUTPUT_ERROR", "TASK_MIDDLEWARE_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "TASK_RUN_UNCAUGHT_EXCEPTION", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "TASK_HAS_N0_EXECUTION_SNAPSHOT", "TASK_DEQUEUED_INVALID_STATE", "TASK_DEQUEUED_QUEUE_NOT_FOUND", "TASK_RUN_DEQUEUED_MAX_RETRIES", "TASK_RUN_STALLED_EXECUTING", "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS", "OUTDATED_SDK_VERSION", "TASK_DID_CONCURRENT_WAIT", "RECURSIVE_WAIT_DEADLOCK", "BATCH_ITEM_COULD_NOT_TRIGGER", "PAYLOAD_TOO_LARGE", "UNSPECIFIED_ERROR"]>;
206
688
  message: z.ZodOptional<z.ZodString>;
207
689
  stackTrace: z.ZodOptional<z.ZodString>;
208
- }, z.core.$strip>]>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ type: "INTERNAL_ERROR";
692
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
693
+ message?: string | undefined;
694
+ stackTrace?: string | undefined;
695
+ }, {
696
+ type: "INTERNAL_ERROR";
697
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
698
+ message?: string | undefined;
699
+ stackTrace?: string | undefined;
700
+ }>]>;
209
701
  retry: z.ZodOptional<z.ZodObject<{
210
702
  timestamp: z.ZodNumber;
211
703
  delay: z.ZodNumber;
212
704
  error: z.ZodOptional<z.ZodUnknown>;
213
- }, z.core.$strip>>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ timestamp: number;
707
+ delay: number;
708
+ error?: unknown;
709
+ }, {
710
+ timestamp: number;
711
+ delay: number;
712
+ error?: unknown;
713
+ }>>;
214
714
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
215
715
  usage: z.ZodOptional<z.ZodObject<{
216
716
  durationMs: z.ZodNumber;
217
- }, z.core.$strip>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ durationMs: number;
719
+ }, {
720
+ durationMs: number;
721
+ }>>;
218
722
  taskIdentifier: z.ZodOptional<z.ZodString>;
219
723
  metadata: z.ZodOptional<z.ZodObject<{
220
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
221
- operations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
724
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
725
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
222
726
  type: z.ZodLiteral<"update">;
223
727
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
224
- }, z.core.$strip>, z.ZodObject<{
728
+ }, "strip", z.ZodTypeAny, {
729
+ type: "update";
730
+ value: Record<string, unknown>;
731
+ }, {
732
+ type: "update";
733
+ value: Record<string, unknown>;
734
+ }>, z.ZodObject<{
225
735
  type: z.ZodLiteral<"set">;
226
- key: z.ZodString;
227
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
228
- }, z.core.$strip>, z.ZodObject<{
736
+ key: z.ZodEffects<z.ZodString, string, string>;
737
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ type: "set";
740
+ key: string;
741
+ value: import("../../../index.js").DeserializedJson;
742
+ }, {
743
+ type: "set";
744
+ key: string;
745
+ value: import("../../../index.js").DeserializedJson;
746
+ }>, z.ZodObject<{
229
747
  type: z.ZodLiteral<"delete">;
230
- key: z.ZodString;
231
- }, z.core.$strip>, z.ZodObject<{
748
+ key: z.ZodEffects<z.ZodString, string, string>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "delete";
751
+ key: string;
752
+ }, {
753
+ type: "delete";
754
+ key: string;
755
+ }>, z.ZodObject<{
232
756
  type: z.ZodLiteral<"append">;
233
- key: z.ZodString;
234
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
235
- }, z.core.$strip>, z.ZodObject<{
757
+ key: z.ZodEffects<z.ZodString, string, string>;
758
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ type: "append";
761
+ key: string;
762
+ value: import("../../../index.js").DeserializedJson;
763
+ }, {
764
+ type: "append";
765
+ key: string;
766
+ value: import("../../../index.js").DeserializedJson;
767
+ }>, z.ZodObject<{
236
768
  type: z.ZodLiteral<"remove">;
237
- key: z.ZodString;
238
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
239
- }, z.core.$strip>, z.ZodObject<{
769
+ key: z.ZodEffects<z.ZodString, string, string>;
770
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "remove";
773
+ key: string;
774
+ value: import("../../../index.js").DeserializedJson;
775
+ }, {
776
+ type: "remove";
777
+ key: string;
778
+ value: import("../../../index.js").DeserializedJson;
779
+ }>, z.ZodObject<{
240
780
  type: z.ZodLiteral<"increment">;
241
- key: z.ZodString;
781
+ key: z.ZodEffects<z.ZodString, string, string>;
242
782
  value: z.ZodNumber;
243
- }, z.core.$strip>]>>>;
244
- parentOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
783
+ }, "strip", z.ZodTypeAny, {
784
+ type: "increment";
785
+ key: string;
786
+ value: number;
787
+ }, {
788
+ type: "increment";
789
+ key: string;
790
+ value: number;
791
+ }>]>, "many">>;
792
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
245
793
  type: z.ZodLiteral<"update">;
246
794
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
247
- }, z.core.$strip>, z.ZodObject<{
795
+ }, "strip", z.ZodTypeAny, {
796
+ type: "update";
797
+ value: Record<string, unknown>;
798
+ }, {
799
+ type: "update";
800
+ value: Record<string, unknown>;
801
+ }>, z.ZodObject<{
248
802
  type: z.ZodLiteral<"set">;
249
- key: z.ZodString;
250
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
251
- }, z.core.$strip>, z.ZodObject<{
803
+ key: z.ZodEffects<z.ZodString, string, string>;
804
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: "set";
807
+ key: string;
808
+ value: import("../../../index.js").DeserializedJson;
809
+ }, {
810
+ type: "set";
811
+ key: string;
812
+ value: import("../../../index.js").DeserializedJson;
813
+ }>, z.ZodObject<{
252
814
  type: z.ZodLiteral<"delete">;
253
- key: z.ZodString;
254
- }, z.core.$strip>, z.ZodObject<{
815
+ key: z.ZodEffects<z.ZodString, string, string>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ type: "delete";
818
+ key: string;
819
+ }, {
820
+ type: "delete";
821
+ key: string;
822
+ }>, z.ZodObject<{
255
823
  type: z.ZodLiteral<"append">;
256
- key: z.ZodString;
257
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
258
- }, z.core.$strip>, z.ZodObject<{
824
+ key: z.ZodEffects<z.ZodString, string, string>;
825
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ type: "append";
828
+ key: string;
829
+ value: import("../../../index.js").DeserializedJson;
830
+ }, {
831
+ type: "append";
832
+ key: string;
833
+ value: import("../../../index.js").DeserializedJson;
834
+ }>, z.ZodObject<{
259
835
  type: z.ZodLiteral<"remove">;
260
- key: z.ZodString;
261
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
262
- }, z.core.$strip>, z.ZodObject<{
836
+ key: z.ZodEffects<z.ZodString, string, string>;
837
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ type: "remove";
840
+ key: string;
841
+ value: import("../../../index.js").DeserializedJson;
842
+ }, {
843
+ type: "remove";
844
+ key: string;
845
+ value: import("../../../index.js").DeserializedJson;
846
+ }>, z.ZodObject<{
263
847
  type: z.ZodLiteral<"increment">;
264
- key: z.ZodString;
848
+ key: z.ZodEffects<z.ZodString, string, string>;
265
849
  value: z.ZodNumber;
266
- }, z.core.$strip>]>>>;
267
- rootOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
850
+ }, "strip", z.ZodTypeAny, {
851
+ type: "increment";
852
+ key: string;
853
+ value: number;
854
+ }, {
855
+ type: "increment";
856
+ key: string;
857
+ value: number;
858
+ }>]>, "many">>;
859
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
268
860
  type: z.ZodLiteral<"update">;
269
861
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
270
- }, z.core.$strip>, z.ZodObject<{
862
+ }, "strip", z.ZodTypeAny, {
863
+ type: "update";
864
+ value: Record<string, unknown>;
865
+ }, {
866
+ type: "update";
867
+ value: Record<string, unknown>;
868
+ }>, z.ZodObject<{
271
869
  type: z.ZodLiteral<"set">;
272
- key: z.ZodString;
273
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
274
- }, z.core.$strip>, z.ZodObject<{
870
+ key: z.ZodEffects<z.ZodString, string, string>;
871
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ type: "set";
874
+ key: string;
875
+ value: import("../../../index.js").DeserializedJson;
876
+ }, {
877
+ type: "set";
878
+ key: string;
879
+ value: import("../../../index.js").DeserializedJson;
880
+ }>, z.ZodObject<{
275
881
  type: z.ZodLiteral<"delete">;
276
- key: z.ZodString;
277
- }, z.core.$strip>, z.ZodObject<{
882
+ key: z.ZodEffects<z.ZodString, string, string>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: "delete";
885
+ key: string;
886
+ }, {
887
+ type: "delete";
888
+ key: string;
889
+ }>, z.ZodObject<{
278
890
  type: z.ZodLiteral<"append">;
279
- key: z.ZodString;
280
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
281
- }, z.core.$strip>, z.ZodObject<{
891
+ key: z.ZodEffects<z.ZodString, string, string>;
892
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
893
+ }, "strip", z.ZodTypeAny, {
894
+ type: "append";
895
+ key: string;
896
+ value: import("../../../index.js").DeserializedJson;
897
+ }, {
898
+ type: "append";
899
+ key: string;
900
+ value: import("../../../index.js").DeserializedJson;
901
+ }>, z.ZodObject<{
282
902
  type: z.ZodLiteral<"remove">;
283
- key: z.ZodString;
284
- value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
285
- }, z.core.$strip>, z.ZodObject<{
903
+ key: z.ZodEffects<z.ZodString, string, string>;
904
+ value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ type: "remove";
907
+ key: string;
908
+ value: import("../../../index.js").DeserializedJson;
909
+ }, {
910
+ type: "remove";
911
+ key: string;
912
+ value: import("../../../index.js").DeserializedJson;
913
+ }>, z.ZodObject<{
286
914
  type: z.ZodLiteral<"increment">;
287
- key: z.ZodString;
915
+ key: z.ZodEffects<z.ZodString, string, string>;
288
916
  value: z.ZodNumber;
289
- }, z.core.$strip>]>>>;
290
- }, z.core.$strip>>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ type: "increment";
919
+ key: string;
920
+ value: number;
921
+ }, {
922
+ type: "increment";
923
+ key: string;
924
+ value: number;
925
+ }>]>, "many">>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
928
+ operations?: ({
929
+ type: "update";
930
+ value: Record<string, unknown>;
931
+ } | {
932
+ type: "set";
933
+ key: string;
934
+ value: import("../../../index.js").DeserializedJson;
935
+ } | {
936
+ type: "delete";
937
+ key: string;
938
+ } | {
939
+ type: "append";
940
+ key: string;
941
+ value: import("../../../index.js").DeserializedJson;
942
+ } | {
943
+ type: "remove";
944
+ key: string;
945
+ value: import("../../../index.js").DeserializedJson;
946
+ } | {
947
+ type: "increment";
948
+ key: string;
949
+ value: number;
950
+ })[] | undefined;
951
+ parentOperations?: ({
952
+ type: "update";
953
+ value: Record<string, unknown>;
954
+ } | {
955
+ type: "set";
956
+ key: string;
957
+ value: import("../../../index.js").DeserializedJson;
958
+ } | {
959
+ type: "delete";
960
+ key: string;
961
+ } | {
962
+ type: "append";
963
+ key: string;
964
+ value: import("../../../index.js").DeserializedJson;
965
+ } | {
966
+ type: "remove";
967
+ key: string;
968
+ value: import("../../../index.js").DeserializedJson;
969
+ } | {
970
+ type: "increment";
971
+ key: string;
972
+ value: number;
973
+ })[] | undefined;
974
+ rootOperations?: ({
975
+ type: "update";
976
+ value: Record<string, unknown>;
977
+ } | {
978
+ type: "set";
979
+ key: string;
980
+ value: import("../../../index.js").DeserializedJson;
981
+ } | {
982
+ type: "delete";
983
+ key: string;
984
+ } | {
985
+ type: "append";
986
+ key: string;
987
+ value: import("../../../index.js").DeserializedJson;
988
+ } | {
989
+ type: "remove";
990
+ key: string;
991
+ value: import("../../../index.js").DeserializedJson;
992
+ } | {
993
+ type: "increment";
994
+ key: string;
995
+ value: number;
996
+ })[] | undefined;
997
+ }, {
998
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
999
+ operations?: ({
1000
+ type: "update";
1001
+ value: Record<string, unknown>;
1002
+ } | {
1003
+ type: "set";
1004
+ key: string;
1005
+ value: import("../../../index.js").DeserializedJson;
1006
+ } | {
1007
+ type: "delete";
1008
+ key: string;
1009
+ } | {
1010
+ type: "append";
1011
+ key: string;
1012
+ value: import("../../../index.js").DeserializedJson;
1013
+ } | {
1014
+ type: "remove";
1015
+ key: string;
1016
+ value: import("../../../index.js").DeserializedJson;
1017
+ } | {
1018
+ type: "increment";
1019
+ key: string;
1020
+ value: number;
1021
+ })[] | undefined;
1022
+ parentOperations?: ({
1023
+ type: "update";
1024
+ value: Record<string, unknown>;
1025
+ } | {
1026
+ type: "set";
1027
+ key: string;
1028
+ value: import("../../../index.js").DeserializedJson;
1029
+ } | {
1030
+ type: "delete";
1031
+ key: string;
1032
+ } | {
1033
+ type: "append";
1034
+ key: string;
1035
+ value: import("../../../index.js").DeserializedJson;
1036
+ } | {
1037
+ type: "remove";
1038
+ key: string;
1039
+ value: import("../../../index.js").DeserializedJson;
1040
+ } | {
1041
+ type: "increment";
1042
+ key: string;
1043
+ value: number;
1044
+ })[] | undefined;
1045
+ rootOperations?: ({
1046
+ type: "update";
1047
+ value: Record<string, unknown>;
1048
+ } | {
1049
+ type: "set";
1050
+ key: string;
1051
+ value: import("../../../index.js").DeserializedJson;
1052
+ } | {
1053
+ type: "delete";
1054
+ key: string;
1055
+ } | {
1056
+ type: "append";
1057
+ key: string;
1058
+ value: import("../../../index.js").DeserializedJson;
1059
+ } | {
1060
+ type: "remove";
1061
+ key: string;
1062
+ value: import("../../../index.js").DeserializedJson;
1063
+ } | {
1064
+ type: "increment";
1065
+ key: string;
1066
+ value: number;
1067
+ })[] | undefined;
1068
+ }>>;
291
1069
  flushedMetadata: z.ZodOptional<z.ZodObject<{
292
1070
  data: z.ZodOptional<z.ZodString>;
293
1071
  dataType: z.ZodString;
294
- }, z.core.$strip>>;
295
- }, z.core.$strip>]>;
296
- }, z.core.$strip>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ data?: string | undefined;
1074
+ dataType: string;
1075
+ }, {
1076
+ data?: string | undefined;
1077
+ dataType: string;
1078
+ }>>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ ok: false;
1081
+ id: string;
1082
+ error: {
1083
+ type: "BUILT_IN_ERROR";
1084
+ name: string;
1085
+ message: string;
1086
+ stackTrace: string;
1087
+ } | {
1088
+ type: "CUSTOM_ERROR";
1089
+ raw: string;
1090
+ } | {
1091
+ type: "STRING_ERROR";
1092
+ raw: string;
1093
+ } | {
1094
+ type: "INTERNAL_ERROR";
1095
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
1096
+ message?: string | undefined;
1097
+ stackTrace?: string | undefined;
1098
+ };
1099
+ retry?: {
1100
+ timestamp: number;
1101
+ delay: number;
1102
+ error?: unknown;
1103
+ } | undefined;
1104
+ skippedRetrying?: boolean | undefined;
1105
+ usage?: {
1106
+ durationMs: number;
1107
+ } | undefined;
1108
+ taskIdentifier?: string | undefined;
1109
+ metadata?: {
1110
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1111
+ operations?: ({
1112
+ type: "update";
1113
+ value: Record<string, unknown>;
1114
+ } | {
1115
+ type: "set";
1116
+ key: string;
1117
+ value: import("../../../index.js").DeserializedJson;
1118
+ } | {
1119
+ type: "delete";
1120
+ key: string;
1121
+ } | {
1122
+ type: "append";
1123
+ key: string;
1124
+ value: import("../../../index.js").DeserializedJson;
1125
+ } | {
1126
+ type: "remove";
1127
+ key: string;
1128
+ value: import("../../../index.js").DeserializedJson;
1129
+ } | {
1130
+ type: "increment";
1131
+ key: string;
1132
+ value: number;
1133
+ })[] | undefined;
1134
+ parentOperations?: ({
1135
+ type: "update";
1136
+ value: Record<string, unknown>;
1137
+ } | {
1138
+ type: "set";
1139
+ key: string;
1140
+ value: import("../../../index.js").DeserializedJson;
1141
+ } | {
1142
+ type: "delete";
1143
+ key: string;
1144
+ } | {
1145
+ type: "append";
1146
+ key: string;
1147
+ value: import("../../../index.js").DeserializedJson;
1148
+ } | {
1149
+ type: "remove";
1150
+ key: string;
1151
+ value: import("../../../index.js").DeserializedJson;
1152
+ } | {
1153
+ type: "increment";
1154
+ key: string;
1155
+ value: number;
1156
+ })[] | undefined;
1157
+ rootOperations?: ({
1158
+ type: "update";
1159
+ value: Record<string, unknown>;
1160
+ } | {
1161
+ type: "set";
1162
+ key: string;
1163
+ value: import("../../../index.js").DeserializedJson;
1164
+ } | {
1165
+ type: "delete";
1166
+ key: string;
1167
+ } | {
1168
+ type: "append";
1169
+ key: string;
1170
+ value: import("../../../index.js").DeserializedJson;
1171
+ } | {
1172
+ type: "remove";
1173
+ key: string;
1174
+ value: import("../../../index.js").DeserializedJson;
1175
+ } | {
1176
+ type: "increment";
1177
+ key: string;
1178
+ value: number;
1179
+ })[] | undefined;
1180
+ } | undefined;
1181
+ flushedMetadata?: {
1182
+ data?: string | undefined;
1183
+ dataType: string;
1184
+ } | undefined;
1185
+ }, {
1186
+ ok: false;
1187
+ id: string;
1188
+ error: {
1189
+ type: "BUILT_IN_ERROR";
1190
+ name: string;
1191
+ message: string;
1192
+ stackTrace: string;
1193
+ } | {
1194
+ type: "CUSTOM_ERROR";
1195
+ raw: string;
1196
+ } | {
1197
+ type: "STRING_ERROR";
1198
+ raw: string;
1199
+ } | {
1200
+ type: "INTERNAL_ERROR";
1201
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
1202
+ message?: string | undefined;
1203
+ stackTrace?: string | undefined;
1204
+ };
1205
+ retry?: {
1206
+ timestamp: number;
1207
+ delay: number;
1208
+ error?: unknown;
1209
+ } | undefined;
1210
+ skippedRetrying?: boolean | undefined;
1211
+ usage?: {
1212
+ durationMs: number;
1213
+ } | undefined;
1214
+ taskIdentifier?: string | undefined;
1215
+ metadata?: {
1216
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1217
+ operations?: ({
1218
+ type: "update";
1219
+ value: Record<string, unknown>;
1220
+ } | {
1221
+ type: "set";
1222
+ key: string;
1223
+ value: import("../../../index.js").DeserializedJson;
1224
+ } | {
1225
+ type: "delete";
1226
+ key: string;
1227
+ } | {
1228
+ type: "append";
1229
+ key: string;
1230
+ value: import("../../../index.js").DeserializedJson;
1231
+ } | {
1232
+ type: "remove";
1233
+ key: string;
1234
+ value: import("../../../index.js").DeserializedJson;
1235
+ } | {
1236
+ type: "increment";
1237
+ key: string;
1238
+ value: number;
1239
+ })[] | undefined;
1240
+ parentOperations?: ({
1241
+ type: "update";
1242
+ value: Record<string, unknown>;
1243
+ } | {
1244
+ type: "set";
1245
+ key: string;
1246
+ value: import("../../../index.js").DeserializedJson;
1247
+ } | {
1248
+ type: "delete";
1249
+ key: string;
1250
+ } | {
1251
+ type: "append";
1252
+ key: string;
1253
+ value: import("../../../index.js").DeserializedJson;
1254
+ } | {
1255
+ type: "remove";
1256
+ key: string;
1257
+ value: import("../../../index.js").DeserializedJson;
1258
+ } | {
1259
+ type: "increment";
1260
+ key: string;
1261
+ value: number;
1262
+ })[] | undefined;
1263
+ rootOperations?: ({
1264
+ type: "update";
1265
+ value: Record<string, unknown>;
1266
+ } | {
1267
+ type: "set";
1268
+ key: string;
1269
+ value: import("../../../index.js").DeserializedJson;
1270
+ } | {
1271
+ type: "delete";
1272
+ key: string;
1273
+ } | {
1274
+ type: "append";
1275
+ key: string;
1276
+ value: import("../../../index.js").DeserializedJson;
1277
+ } | {
1278
+ type: "remove";
1279
+ key: string;
1280
+ value: import("../../../index.js").DeserializedJson;
1281
+ } | {
1282
+ type: "increment";
1283
+ key: string;
1284
+ value: number;
1285
+ })[] | undefined;
1286
+ } | undefined;
1287
+ flushedMetadata?: {
1288
+ data?: string | undefined;
1289
+ dataType: string;
1290
+ } | undefined;
1291
+ }>]>;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ completion: {
1294
+ ok: true;
1295
+ id: string;
1296
+ output?: string | undefined;
1297
+ outputType: string;
1298
+ usage?: {
1299
+ durationMs: number;
1300
+ } | undefined;
1301
+ taskIdentifier?: string | undefined;
1302
+ metadata?: {
1303
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1304
+ operations?: ({
1305
+ type: "update";
1306
+ value: Record<string, unknown>;
1307
+ } | {
1308
+ type: "set";
1309
+ key: string;
1310
+ value: import("../../../index.js").DeserializedJson;
1311
+ } | {
1312
+ type: "delete";
1313
+ key: string;
1314
+ } | {
1315
+ type: "append";
1316
+ key: string;
1317
+ value: import("../../../index.js").DeserializedJson;
1318
+ } | {
1319
+ type: "remove";
1320
+ key: string;
1321
+ value: import("../../../index.js").DeserializedJson;
1322
+ } | {
1323
+ type: "increment";
1324
+ key: string;
1325
+ value: number;
1326
+ })[] | undefined;
1327
+ parentOperations?: ({
1328
+ type: "update";
1329
+ value: Record<string, unknown>;
1330
+ } | {
1331
+ type: "set";
1332
+ key: string;
1333
+ value: import("../../../index.js").DeserializedJson;
1334
+ } | {
1335
+ type: "delete";
1336
+ key: string;
1337
+ } | {
1338
+ type: "append";
1339
+ key: string;
1340
+ value: import("../../../index.js").DeserializedJson;
1341
+ } | {
1342
+ type: "remove";
1343
+ key: string;
1344
+ value: import("../../../index.js").DeserializedJson;
1345
+ } | {
1346
+ type: "increment";
1347
+ key: string;
1348
+ value: number;
1349
+ })[] | undefined;
1350
+ rootOperations?: ({
1351
+ type: "update";
1352
+ value: Record<string, unknown>;
1353
+ } | {
1354
+ type: "set";
1355
+ key: string;
1356
+ value: import("../../../index.js").DeserializedJson;
1357
+ } | {
1358
+ type: "delete";
1359
+ key: string;
1360
+ } | {
1361
+ type: "append";
1362
+ key: string;
1363
+ value: import("../../../index.js").DeserializedJson;
1364
+ } | {
1365
+ type: "remove";
1366
+ key: string;
1367
+ value: import("../../../index.js").DeserializedJson;
1368
+ } | {
1369
+ type: "increment";
1370
+ key: string;
1371
+ value: number;
1372
+ })[] | undefined;
1373
+ } | undefined;
1374
+ flushedMetadata?: {
1375
+ data?: string | undefined;
1376
+ dataType: string;
1377
+ } | undefined;
1378
+ } | {
1379
+ ok: false;
1380
+ id: string;
1381
+ error: {
1382
+ type: "BUILT_IN_ERROR";
1383
+ name: string;
1384
+ message: string;
1385
+ stackTrace: string;
1386
+ } | {
1387
+ type: "CUSTOM_ERROR";
1388
+ raw: string;
1389
+ } | {
1390
+ type: "STRING_ERROR";
1391
+ raw: string;
1392
+ } | {
1393
+ type: "INTERNAL_ERROR";
1394
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
1395
+ message?: string | undefined;
1396
+ stackTrace?: string | undefined;
1397
+ };
1398
+ retry?: {
1399
+ timestamp: number;
1400
+ delay: number;
1401
+ error?: unknown;
1402
+ } | undefined;
1403
+ skippedRetrying?: boolean | undefined;
1404
+ usage?: {
1405
+ durationMs: number;
1406
+ } | undefined;
1407
+ taskIdentifier?: string | undefined;
1408
+ metadata?: {
1409
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1410
+ operations?: ({
1411
+ type: "update";
1412
+ value: Record<string, unknown>;
1413
+ } | {
1414
+ type: "set";
1415
+ key: string;
1416
+ value: import("../../../index.js").DeserializedJson;
1417
+ } | {
1418
+ type: "delete";
1419
+ key: string;
1420
+ } | {
1421
+ type: "append";
1422
+ key: string;
1423
+ value: import("../../../index.js").DeserializedJson;
1424
+ } | {
1425
+ type: "remove";
1426
+ key: string;
1427
+ value: import("../../../index.js").DeserializedJson;
1428
+ } | {
1429
+ type: "increment";
1430
+ key: string;
1431
+ value: number;
1432
+ })[] | undefined;
1433
+ parentOperations?: ({
1434
+ type: "update";
1435
+ value: Record<string, unknown>;
1436
+ } | {
1437
+ type: "set";
1438
+ key: string;
1439
+ value: import("../../../index.js").DeserializedJson;
1440
+ } | {
1441
+ type: "delete";
1442
+ key: string;
1443
+ } | {
1444
+ type: "append";
1445
+ key: string;
1446
+ value: import("../../../index.js").DeserializedJson;
1447
+ } | {
1448
+ type: "remove";
1449
+ key: string;
1450
+ value: import("../../../index.js").DeserializedJson;
1451
+ } | {
1452
+ type: "increment";
1453
+ key: string;
1454
+ value: number;
1455
+ })[] | undefined;
1456
+ rootOperations?: ({
1457
+ type: "update";
1458
+ value: Record<string, unknown>;
1459
+ } | {
1460
+ type: "set";
1461
+ key: string;
1462
+ value: import("../../../index.js").DeserializedJson;
1463
+ } | {
1464
+ type: "delete";
1465
+ key: string;
1466
+ } | {
1467
+ type: "append";
1468
+ key: string;
1469
+ value: import("../../../index.js").DeserializedJson;
1470
+ } | {
1471
+ type: "remove";
1472
+ key: string;
1473
+ value: import("../../../index.js").DeserializedJson;
1474
+ } | {
1475
+ type: "increment";
1476
+ key: string;
1477
+ value: number;
1478
+ })[] | undefined;
1479
+ } | undefined;
1480
+ flushedMetadata?: {
1481
+ data?: string | undefined;
1482
+ dataType: string;
1483
+ } | undefined;
1484
+ };
1485
+ }, {
1486
+ completion: {
1487
+ ok: true;
1488
+ id: string;
1489
+ output?: string | undefined;
1490
+ outputType: string;
1491
+ usage?: {
1492
+ durationMs: number;
1493
+ } | undefined;
1494
+ taskIdentifier?: string | undefined;
1495
+ metadata?: {
1496
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1497
+ operations?: ({
1498
+ type: "update";
1499
+ value: Record<string, unknown>;
1500
+ } | {
1501
+ type: "set";
1502
+ key: string;
1503
+ value: import("../../../index.js").DeserializedJson;
1504
+ } | {
1505
+ type: "delete";
1506
+ key: string;
1507
+ } | {
1508
+ type: "append";
1509
+ key: string;
1510
+ value: import("../../../index.js").DeserializedJson;
1511
+ } | {
1512
+ type: "remove";
1513
+ key: string;
1514
+ value: import("../../../index.js").DeserializedJson;
1515
+ } | {
1516
+ type: "increment";
1517
+ key: string;
1518
+ value: number;
1519
+ })[] | undefined;
1520
+ parentOperations?: ({
1521
+ type: "update";
1522
+ value: Record<string, unknown>;
1523
+ } | {
1524
+ type: "set";
1525
+ key: string;
1526
+ value: import("../../../index.js").DeserializedJson;
1527
+ } | {
1528
+ type: "delete";
1529
+ key: string;
1530
+ } | {
1531
+ type: "append";
1532
+ key: string;
1533
+ value: import("../../../index.js").DeserializedJson;
1534
+ } | {
1535
+ type: "remove";
1536
+ key: string;
1537
+ value: import("../../../index.js").DeserializedJson;
1538
+ } | {
1539
+ type: "increment";
1540
+ key: string;
1541
+ value: number;
1542
+ })[] | undefined;
1543
+ rootOperations?: ({
1544
+ type: "update";
1545
+ value: Record<string, unknown>;
1546
+ } | {
1547
+ type: "set";
1548
+ key: string;
1549
+ value: import("../../../index.js").DeserializedJson;
1550
+ } | {
1551
+ type: "delete";
1552
+ key: string;
1553
+ } | {
1554
+ type: "append";
1555
+ key: string;
1556
+ value: import("../../../index.js").DeserializedJson;
1557
+ } | {
1558
+ type: "remove";
1559
+ key: string;
1560
+ value: import("../../../index.js").DeserializedJson;
1561
+ } | {
1562
+ type: "increment";
1563
+ key: string;
1564
+ value: number;
1565
+ })[] | undefined;
1566
+ } | undefined;
1567
+ flushedMetadata?: {
1568
+ data?: string | undefined;
1569
+ dataType: string;
1570
+ } | undefined;
1571
+ } | {
1572
+ ok: false;
1573
+ id: string;
1574
+ error: {
1575
+ type: "BUILT_IN_ERROR";
1576
+ name: string;
1577
+ message: string;
1578
+ stackTrace: string;
1579
+ } | {
1580
+ type: "CUSTOM_ERROR";
1581
+ raw: string;
1582
+ } | {
1583
+ type: "STRING_ERROR";
1584
+ raw: string;
1585
+ } | {
1586
+ type: "INTERNAL_ERROR";
1587
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
1588
+ message?: string | undefined;
1589
+ stackTrace?: string | undefined;
1590
+ };
1591
+ retry?: {
1592
+ timestamp: number;
1593
+ delay: number;
1594
+ error?: unknown;
1595
+ } | undefined;
1596
+ skippedRetrying?: boolean | undefined;
1597
+ usage?: {
1598
+ durationMs: number;
1599
+ } | undefined;
1600
+ taskIdentifier?: string | undefined;
1601
+ metadata?: {
1602
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1603
+ operations?: ({
1604
+ type: "update";
1605
+ value: Record<string, unknown>;
1606
+ } | {
1607
+ type: "set";
1608
+ key: string;
1609
+ value: import("../../../index.js").DeserializedJson;
1610
+ } | {
1611
+ type: "delete";
1612
+ key: string;
1613
+ } | {
1614
+ type: "append";
1615
+ key: string;
1616
+ value: import("../../../index.js").DeserializedJson;
1617
+ } | {
1618
+ type: "remove";
1619
+ key: string;
1620
+ value: import("../../../index.js").DeserializedJson;
1621
+ } | {
1622
+ type: "increment";
1623
+ key: string;
1624
+ value: number;
1625
+ })[] | undefined;
1626
+ parentOperations?: ({
1627
+ type: "update";
1628
+ value: Record<string, unknown>;
1629
+ } | {
1630
+ type: "set";
1631
+ key: string;
1632
+ value: import("../../../index.js").DeserializedJson;
1633
+ } | {
1634
+ type: "delete";
1635
+ key: string;
1636
+ } | {
1637
+ type: "append";
1638
+ key: string;
1639
+ value: import("../../../index.js").DeserializedJson;
1640
+ } | {
1641
+ type: "remove";
1642
+ key: string;
1643
+ value: import("../../../index.js").DeserializedJson;
1644
+ } | {
1645
+ type: "increment";
1646
+ key: string;
1647
+ value: number;
1648
+ })[] | undefined;
1649
+ rootOperations?: ({
1650
+ type: "update";
1651
+ value: Record<string, unknown>;
1652
+ } | {
1653
+ type: "set";
1654
+ key: string;
1655
+ value: import("../../../index.js").DeserializedJson;
1656
+ } | {
1657
+ type: "delete";
1658
+ key: string;
1659
+ } | {
1660
+ type: "append";
1661
+ key: string;
1662
+ value: import("../../../index.js").DeserializedJson;
1663
+ } | {
1664
+ type: "remove";
1665
+ key: string;
1666
+ value: import("../../../index.js").DeserializedJson;
1667
+ } | {
1668
+ type: "increment";
1669
+ key: string;
1670
+ value: number;
1671
+ })[] | undefined;
1672
+ } | undefined;
1673
+ flushedMetadata?: {
1674
+ data?: string | undefined;
1675
+ dataType: string;
1676
+ } | undefined;
1677
+ };
1678
+ }>;
297
1679
  export type WorkloadRunAttemptCompleteRequestBody = z.infer<typeof WorkloadRunAttemptCompleteRequestBody>;
298
1680
  export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
299
1681
  result: z.ZodIntersection<z.ZodObject<{
300
- attemptStatus: z.ZodEnum<{
301
- RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
302
- RETRY_QUEUED: "RETRY_QUEUED";
303
- RUN_FINISHED: "RUN_FINISHED";
304
- RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
305
- }>;
306
- }, z.core.$strip>, z.ZodObject<{
1682
+ attemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1685
+ }, {
1686
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1687
+ }>, z.ZodObject<{
307
1688
  snapshot: z.ZodObject<{
308
1689
  id: z.ZodString;
309
1690
  friendlyId: z.ZodString;
310
- executionStatus: z.ZodEnum<{
311
- DELAYED: "DELAYED";
312
- EXECUTING: "EXECUTING";
313
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
314
- FINISHED: "FINISHED";
315
- PENDING_CANCEL: "PENDING_CANCEL";
316
- PENDING_EXECUTING: "PENDING_EXECUTING";
317
- QUEUED: "QUEUED";
318
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
319
- RUN_CREATED: "RUN_CREATED";
320
- SUSPENDED: "SUSPENDED";
321
- }>;
1691
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
322
1692
  description: z.ZodString;
323
- createdAt: z.ZodCoercedDate<unknown>;
324
- }, z.core.$strip>;
1693
+ createdAt: z.ZodDate;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ id: string;
1696
+ friendlyId: string;
1697
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1698
+ description: string;
1699
+ createdAt: Date;
1700
+ }, {
1701
+ id: string;
1702
+ friendlyId: string;
1703
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1704
+ description: string;
1705
+ createdAt: Date;
1706
+ }>;
325
1707
  run: z.ZodObject<{
326
1708
  id: z.ZodString;
327
1709
  friendlyId: z.ZodString;
328
- status: z.ZodEnum<{
329
- CANCELED: "CANCELED";
330
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
331
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
332
- CRASHED: "CRASHED";
333
- DELAYED: "DELAYED";
334
- DEQUEUED: "DEQUEUED";
335
- EXECUTING: "EXECUTING";
336
- EXPIRED: "EXPIRED";
337
- INTERRUPTED: "INTERRUPTED";
338
- PAUSED: "PAUSED";
339
- PENDING: "PENDING";
340
- PENDING_VERSION: "PENDING_VERSION";
341
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
342
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
343
- TIMED_OUT: "TIMED_OUT";
344
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
345
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
346
- }>;
1710
+ status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
347
1711
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
348
1712
  taskEventStore: z.ZodOptional<z.ZodString>;
349
- }, z.core.$strip>;
350
- }, z.core.$strip>>;
351
- }, z.core.$strip>;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ id: string;
1715
+ friendlyId: string;
1716
+ status: import("../../index.js").TaskRunStatus;
1717
+ attemptNumber?: number | null | undefined;
1718
+ taskEventStore?: string | undefined;
1719
+ }, {
1720
+ id: string;
1721
+ friendlyId: string;
1722
+ status: import("../../index.js").TaskRunStatus;
1723
+ attemptNumber?: number | null | undefined;
1724
+ taskEventStore?: string | undefined;
1725
+ }>;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ snapshot: {
1728
+ id: string;
1729
+ friendlyId: string;
1730
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1731
+ description: string;
1732
+ createdAt: Date;
1733
+ };
1734
+ run: {
1735
+ id: string;
1736
+ friendlyId: string;
1737
+ status: import("../../index.js").TaskRunStatus;
1738
+ attemptNumber?: number | null | undefined;
1739
+ taskEventStore?: string | undefined;
1740
+ };
1741
+ }, {
1742
+ snapshot: {
1743
+ id: string;
1744
+ friendlyId: string;
1745
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1746
+ description: string;
1747
+ createdAt: Date;
1748
+ };
1749
+ run: {
1750
+ id: string;
1751
+ friendlyId: string;
1752
+ status: import("../../index.js").TaskRunStatus;
1753
+ attemptNumber?: number | null | undefined;
1754
+ taskEventStore?: string | undefined;
1755
+ };
1756
+ }>>;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ result: {
1759
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1760
+ } & {
1761
+ snapshot: {
1762
+ id: string;
1763
+ friendlyId: string;
1764
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1765
+ description: string;
1766
+ createdAt: Date;
1767
+ };
1768
+ run: {
1769
+ id: string;
1770
+ friendlyId: string;
1771
+ status: import("../../index.js").TaskRunStatus;
1772
+ attemptNumber?: number | null | undefined;
1773
+ taskEventStore?: string | undefined;
1774
+ };
1775
+ };
1776
+ }, {
1777
+ result: {
1778
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1779
+ } & {
1780
+ snapshot: {
1781
+ id: string;
1782
+ friendlyId: string;
1783
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1784
+ description: string;
1785
+ createdAt: Date;
1786
+ };
1787
+ run: {
1788
+ id: string;
1789
+ friendlyId: string;
1790
+ status: import("../../index.js").TaskRunStatus;
1791
+ attemptNumber?: number | null | undefined;
1792
+ taskEventStore?: string | undefined;
1793
+ };
1794
+ };
1795
+ }>;
352
1796
  export type WorkloadRunAttemptCompleteResponseBody = z.infer<typeof WorkloadRunAttemptCompleteResponseBody>;
353
1797
  export declare const WorkloadRunAttemptStartRequestBody: z.ZodObject<{
354
1798
  isWarmStart: z.ZodOptional<z.ZodBoolean>;
355
- }, z.core.$strip>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ isWarmStart?: boolean | undefined;
1801
+ }, {
1802
+ isWarmStart?: boolean | undefined;
1803
+ }>;
356
1804
  export type WorkloadRunAttemptStartRequestBody = z.infer<typeof WorkloadRunAttemptStartRequestBody>;
357
1805
  export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
358
1806
  snapshot: z.ZodObject<{
359
1807
  id: z.ZodString;
360
1808
  friendlyId: z.ZodString;
361
- executionStatus: z.ZodEnum<{
362
- DELAYED: "DELAYED";
363
- EXECUTING: "EXECUTING";
364
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
365
- FINISHED: "FINISHED";
366
- PENDING_CANCEL: "PENDING_CANCEL";
367
- PENDING_EXECUTING: "PENDING_EXECUTING";
368
- QUEUED: "QUEUED";
369
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
370
- RUN_CREATED: "RUN_CREATED";
371
- SUSPENDED: "SUSPENDED";
372
- }>;
1809
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
373
1810
  description: z.ZodString;
374
- createdAt: z.ZodCoercedDate<unknown>;
375
- }, z.core.$strip>;
1811
+ createdAt: z.ZodDate;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ id: string;
1814
+ friendlyId: string;
1815
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1816
+ description: string;
1817
+ createdAt: Date;
1818
+ }, {
1819
+ id: string;
1820
+ friendlyId: string;
1821
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1822
+ description: string;
1823
+ createdAt: Date;
1824
+ }>;
376
1825
  run: z.ZodObject<{
377
1826
  id: z.ZodString;
378
1827
  friendlyId: z.ZodString;
379
- status: z.ZodEnum<{
380
- CANCELED: "CANCELED";
381
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
382
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
383
- CRASHED: "CRASHED";
384
- DELAYED: "DELAYED";
385
- DEQUEUED: "DEQUEUED";
386
- EXECUTING: "EXECUTING";
387
- EXPIRED: "EXPIRED";
388
- INTERRUPTED: "INTERRUPTED";
389
- PAUSED: "PAUSED";
390
- PENDING: "PENDING";
391
- PENDING_VERSION: "PENDING_VERSION";
392
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
393
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
394
- TIMED_OUT: "TIMED_OUT";
395
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
396
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
397
- }>;
1828
+ status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
398
1829
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
399
1830
  taskEventStore: z.ZodOptional<z.ZodString>;
400
- }, z.core.$strip>;
401
- }, z.core.$strip>, z.ZodObject<{
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ id: string;
1833
+ friendlyId: string;
1834
+ status: import("../../index.js").TaskRunStatus;
1835
+ attemptNumber?: number | null | undefined;
1836
+ taskEventStore?: string | undefined;
1837
+ }, {
1838
+ id: string;
1839
+ friendlyId: string;
1840
+ status: import("../../index.js").TaskRunStatus;
1841
+ attemptNumber?: number | null | undefined;
1842
+ taskEventStore?: string | undefined;
1843
+ }>;
1844
+ }, "strip", z.ZodTypeAny, {
1845
+ snapshot: {
1846
+ id: string;
1847
+ friendlyId: string;
1848
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1849
+ description: string;
1850
+ createdAt: Date;
1851
+ };
1852
+ run: {
1853
+ id: string;
1854
+ friendlyId: string;
1855
+ status: import("../../index.js").TaskRunStatus;
1856
+ attemptNumber?: number | null | undefined;
1857
+ taskEventStore?: string | undefined;
1858
+ };
1859
+ }, {
1860
+ snapshot: {
1861
+ id: string;
1862
+ friendlyId: string;
1863
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
1864
+ description: string;
1865
+ createdAt: Date;
1866
+ };
1867
+ run: {
1868
+ id: string;
1869
+ friendlyId: string;
1870
+ status: import("../../index.js").TaskRunStatus;
1871
+ attemptNumber?: number | null | undefined;
1872
+ taskEventStore?: string | undefined;
1873
+ };
1874
+ }>, z.ZodObject<{
402
1875
  execution: z.ZodObject<{
403
1876
  task: z.ZodObject<{
404
1877
  id: z.ZodString;
405
1878
  filePath: z.ZodString;
406
- }, z.core.$loose>;
1879
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1880
+ id: z.ZodString;
1881
+ filePath: z.ZodString;
1882
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1883
+ id: z.ZodString;
1884
+ filePath: z.ZodString;
1885
+ }, z.ZodTypeAny, "passthrough">>;
407
1886
  queue: z.ZodObject<{
408
1887
  id: z.ZodString;
409
1888
  name: z.ZodString;
410
- }, z.core.$strip>;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ id: string;
1891
+ name: string;
1892
+ }, {
1893
+ id: string;
1894
+ name: string;
1895
+ }>;
411
1896
  environment: z.ZodObject<{
412
1897
  id: z.ZodString;
413
1898
  slug: z.ZodString;
414
- type: z.ZodEnum<{
415
- DEVELOPMENT: "DEVELOPMENT";
416
- PREVIEW: "PREVIEW";
417
- PRODUCTION: "PRODUCTION";
418
- STAGING: "STAGING";
419
- }>;
1899
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
420
1900
  branchName: z.ZodOptional<z.ZodString>;
421
1901
  git: z.ZodOptional<z.ZodObject<{
422
1902
  provider: z.ZodOptional<z.ZodString>;
423
- source: z.ZodOptional<z.ZodEnum<{
424
- github_actions: "github_actions";
425
- local: "local";
426
- trigger_github_app: "trigger_github_app";
427
- }>>;
1903
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
428
1904
  ghUsername: z.ZodOptional<z.ZodString>;
429
1905
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
430
1906
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -435,41 +1911,129 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
435
1911
  remoteUrl: z.ZodOptional<z.ZodString>;
436
1912
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
437
1913
  pullRequestTitle: z.ZodOptional<z.ZodString>;
438
- pullRequestState: z.ZodOptional<z.ZodEnum<{
439
- closed: "closed";
440
- merged: "merged";
441
- open: "open";
442
- }>>;
443
- }, z.core.$strip>>;
444
- }, z.core.$strip>;
1914
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ provider?: string | undefined;
1917
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1918
+ ghUsername?: string | undefined;
1919
+ ghUserAvatarUrl?: string | undefined;
1920
+ commitAuthorName?: string | undefined;
1921
+ commitMessage?: string | undefined;
1922
+ commitRef?: string | undefined;
1923
+ commitSha?: string | undefined;
1924
+ dirty?: boolean | undefined;
1925
+ remoteUrl?: string | undefined;
1926
+ pullRequestNumber?: number | undefined;
1927
+ pullRequestTitle?: string | undefined;
1928
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1929
+ }, {
1930
+ provider?: string | undefined;
1931
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1932
+ ghUsername?: string | undefined;
1933
+ ghUserAvatarUrl?: string | undefined;
1934
+ commitAuthorName?: string | undefined;
1935
+ commitMessage?: string | undefined;
1936
+ commitRef?: string | undefined;
1937
+ commitSha?: string | undefined;
1938
+ dirty?: boolean | undefined;
1939
+ remoteUrl?: string | undefined;
1940
+ pullRequestNumber?: number | undefined;
1941
+ pullRequestTitle?: string | undefined;
1942
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1943
+ }>>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ id: string;
1946
+ slug: string;
1947
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1948
+ branchName?: string | undefined;
1949
+ git?: {
1950
+ provider?: string | undefined;
1951
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1952
+ ghUsername?: string | undefined;
1953
+ ghUserAvatarUrl?: string | undefined;
1954
+ commitAuthorName?: string | undefined;
1955
+ commitMessage?: string | undefined;
1956
+ commitRef?: string | undefined;
1957
+ commitSha?: string | undefined;
1958
+ dirty?: boolean | undefined;
1959
+ remoteUrl?: string | undefined;
1960
+ pullRequestNumber?: number | undefined;
1961
+ pullRequestTitle?: string | undefined;
1962
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1963
+ } | undefined;
1964
+ }, {
1965
+ id: string;
1966
+ slug: string;
1967
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1968
+ branchName?: string | undefined;
1969
+ git?: {
1970
+ provider?: string | undefined;
1971
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1972
+ ghUsername?: string | undefined;
1973
+ ghUserAvatarUrl?: string | undefined;
1974
+ commitAuthorName?: string | undefined;
1975
+ commitMessage?: string | undefined;
1976
+ commitRef?: string | undefined;
1977
+ commitSha?: string | undefined;
1978
+ dirty?: boolean | undefined;
1979
+ remoteUrl?: string | undefined;
1980
+ pullRequestNumber?: number | undefined;
1981
+ pullRequestTitle?: string | undefined;
1982
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1983
+ } | undefined;
1984
+ }>;
445
1985
  organization: z.ZodObject<{
446
1986
  id: z.ZodString;
447
1987
  slug: z.ZodString;
448
1988
  name: z.ZodString;
449
- }, z.core.$strip>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ id: string;
1991
+ slug: string;
1992
+ name: string;
1993
+ }, {
1994
+ id: string;
1995
+ slug: string;
1996
+ name: string;
1997
+ }>;
450
1998
  project: z.ZodObject<{
451
1999
  id: z.ZodString;
452
2000
  ref: z.ZodString;
453
2001
  slug: z.ZodString;
454
2002
  name: z.ZodString;
455
- }, z.core.$strip>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ id: string;
2005
+ ref: string;
2006
+ slug: string;
2007
+ name: string;
2008
+ }, {
2009
+ id: string;
2010
+ ref: string;
2011
+ slug: string;
2012
+ name: string;
2013
+ }>;
456
2014
  machine: z.ZodObject<{
457
- name: z.ZodEnum<{
458
- "large-1x": "large-1x";
459
- "large-2x": "large-2x";
460
- "medium-1x": "medium-1x";
461
- "medium-2x": "medium-2x";
462
- micro: "micro";
463
- "small-1x": "small-1x";
464
- "small-2x": "small-2x";
465
- }>;
2015
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
466
2016
  cpu: z.ZodNumber;
467
2017
  memory: z.ZodNumber;
468
2018
  centsPerMs: z.ZodNumber;
469
- }, z.core.$strip>;
2019
+ }, "strip", z.ZodTypeAny, {
2020
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2021
+ cpu: number;
2022
+ memory: number;
2023
+ centsPerMs: number;
2024
+ }, {
2025
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2026
+ cpu: number;
2027
+ memory: number;
2028
+ centsPerMs: number;
2029
+ }>;
470
2030
  batch: z.ZodOptional<z.ZodObject<{
471
2031
  id: z.ZodString;
472
- }, z.core.$strip>>;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ id: string;
2034
+ }, {
2035
+ id: string;
2036
+ }>>;
473
2037
  deployment: z.ZodOptional<z.ZodObject<{
474
2038
  id: z.ZodString;
475
2039
  shortCode: z.ZodString;
@@ -478,11 +2042,7 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
478
2042
  runtimeVersion: z.ZodString;
479
2043
  git: z.ZodOptional<z.ZodObject<{
480
2044
  provider: z.ZodOptional<z.ZodString>;
481
- source: z.ZodOptional<z.ZodEnum<{
482
- github_actions: "github_actions";
483
- local: "local";
484
- trigger_github_app: "trigger_github_app";
485
- }>>;
2045
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
486
2046
  ghUsername: z.ZodOptional<z.ZodString>;
487
2047
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
488
2048
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -493,36 +2053,103 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
493
2053
  remoteUrl: z.ZodOptional<z.ZodString>;
494
2054
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
495
2055
  pullRequestTitle: z.ZodOptional<z.ZodString>;
496
- pullRequestState: z.ZodOptional<z.ZodEnum<{
497
- closed: "closed";
498
- merged: "merged";
499
- open: "open";
500
- }>>;
501
- }, z.core.$strip>>;
502
- externalId: z.ZodOptional<z.ZodString>;
503
- }, z.core.$strip>>;
2056
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ provider?: string | undefined;
2059
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2060
+ ghUsername?: string | undefined;
2061
+ ghUserAvatarUrl?: string | undefined;
2062
+ commitAuthorName?: string | undefined;
2063
+ commitMessage?: string | undefined;
2064
+ commitRef?: string | undefined;
2065
+ commitSha?: string | undefined;
2066
+ dirty?: boolean | undefined;
2067
+ remoteUrl?: string | undefined;
2068
+ pullRequestNumber?: number | undefined;
2069
+ pullRequestTitle?: string | undefined;
2070
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2071
+ }, {
2072
+ provider?: string | undefined;
2073
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2074
+ ghUsername?: string | undefined;
2075
+ ghUserAvatarUrl?: string | undefined;
2076
+ commitAuthorName?: string | undefined;
2077
+ commitMessage?: string | undefined;
2078
+ commitRef?: string | undefined;
2079
+ commitSha?: string | undefined;
2080
+ dirty?: boolean | undefined;
2081
+ remoteUrl?: string | undefined;
2082
+ pullRequestNumber?: number | undefined;
2083
+ pullRequestTitle?: string | undefined;
2084
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2085
+ }>>;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ id: string;
2088
+ shortCode: string;
2089
+ version: string;
2090
+ runtime: string;
2091
+ runtimeVersion: string;
2092
+ git?: {
2093
+ provider?: string | undefined;
2094
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2095
+ ghUsername?: string | undefined;
2096
+ ghUserAvatarUrl?: string | undefined;
2097
+ commitAuthorName?: string | undefined;
2098
+ commitMessage?: string | undefined;
2099
+ commitRef?: string | undefined;
2100
+ commitSha?: string | undefined;
2101
+ dirty?: boolean | undefined;
2102
+ remoteUrl?: string | undefined;
2103
+ pullRequestNumber?: number | undefined;
2104
+ pullRequestTitle?: string | undefined;
2105
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2106
+ } | undefined;
2107
+ }, {
2108
+ id: string;
2109
+ shortCode: string;
2110
+ version: string;
2111
+ runtime: string;
2112
+ runtimeVersion: string;
2113
+ git?: {
2114
+ provider?: string | undefined;
2115
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2116
+ ghUsername?: string | undefined;
2117
+ ghUserAvatarUrl?: string | undefined;
2118
+ commitAuthorName?: string | undefined;
2119
+ commitMessage?: string | undefined;
2120
+ commitRef?: string | undefined;
2121
+ commitSha?: string | undefined;
2122
+ dirty?: boolean | undefined;
2123
+ remoteUrl?: string | undefined;
2124
+ pullRequestNumber?: number | undefined;
2125
+ pullRequestTitle?: string | undefined;
2126
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2127
+ } | undefined;
2128
+ }>>;
504
2129
  attempt: z.ZodObject<{
505
2130
  number: z.ZodNumber;
506
- startedAt: z.ZodCoercedDate<unknown>;
507
- }, z.core.$loose>;
2131
+ startedAt: z.ZodDate;
2132
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2133
+ number: z.ZodNumber;
2134
+ startedAt: z.ZodDate;
2135
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2136
+ number: z.ZodNumber;
2137
+ startedAt: z.ZodDate;
2138
+ }, z.ZodTypeAny, "passthrough">>;
508
2139
  run: z.ZodIntersection<z.ZodObject<{
509
2140
  id: z.ZodString;
510
2141
  payload: z.ZodString;
511
2142
  payloadType: z.ZodString;
512
- tags: z.ZodArray<z.ZodString>;
2143
+ tags: z.ZodArray<z.ZodString, "many">;
513
2144
  isTest: z.ZodDefault<z.ZodBoolean>;
514
2145
  isReplay: z.ZodDefault<z.ZodBoolean>;
515
- createdAt: z.ZodCoercedDate<unknown>;
516
- startedAt: z.ZodDefault<z.ZodCoercedDate<unknown>>;
2146
+ createdAt: z.ZodDate;
2147
+ startedAt: z.ZodDefault<z.ZodDate>;
517
2148
  idempotencyKey: z.ZodOptional<z.ZodString>;
518
- idempotencyKeyScope: z.ZodOptional<z.ZodEnum<{
519
- attempt: "attempt";
520
- global: "global";
521
- run: "run";
522
- }>>;
2149
+ idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
523
2150
  maxAttempts: z.ZodOptional<z.ZodNumber>;
524
2151
  version: z.ZodOptional<z.ZodString>;
525
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
2152
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
526
2153
  maxDuration: z.ZodOptional<z.ZodNumber>;
527
2154
  priority: z.ZodOptional<z.ZodNumber>;
528
2155
  baseCostInCents: z.ZodOptional<z.ZodNumber>;
@@ -531,14 +2158,496 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
531
2158
  durationMs: z.ZodOptional<z.ZodNumber>;
532
2159
  costInCents: z.ZodOptional<z.ZodNumber>;
533
2160
  region: z.ZodOptional<z.ZodString>;
534
- }, z.core.$strip>, z.ZodObject<{
2161
+ }, "strip", z.ZodTypeAny, {
2162
+ id: string;
2163
+ payload: string;
2164
+ payloadType: string;
2165
+ tags: string[];
2166
+ isTest: boolean;
2167
+ isReplay: boolean;
2168
+ createdAt: Date;
2169
+ startedAt: Date;
2170
+ idempotencyKey?: string | undefined;
2171
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2172
+ maxAttempts?: number | undefined;
2173
+ version?: string | undefined;
2174
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2175
+ maxDuration?: number | undefined;
2176
+ priority?: number | undefined;
2177
+ baseCostInCents?: number | undefined;
2178
+ parentTaskRunId?: string | undefined;
2179
+ rootTaskRunId?: string | undefined;
2180
+ durationMs?: number | undefined;
2181
+ costInCents?: number | undefined;
2182
+ region?: string | undefined;
2183
+ }, {
2184
+ id: string;
2185
+ payload: string;
2186
+ payloadType: string;
2187
+ tags: string[];
2188
+ isTest?: boolean | undefined;
2189
+ isReplay?: boolean | undefined;
2190
+ createdAt: Date;
2191
+ startedAt?: Date | undefined;
2192
+ idempotencyKey?: string | undefined;
2193
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2194
+ maxAttempts?: number | undefined;
2195
+ version?: string | undefined;
2196
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2197
+ maxDuration?: number | undefined;
2198
+ priority?: number | undefined;
2199
+ baseCostInCents?: number | undefined;
2200
+ parentTaskRunId?: string | undefined;
2201
+ rootTaskRunId?: string | undefined;
2202
+ durationMs?: number | undefined;
2203
+ costInCents?: number | undefined;
2204
+ region?: string | undefined;
2205
+ }>, z.ZodObject<{
535
2206
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
536
2207
  realtimeStreamsVersion: z.ZodOptional<z.ZodString>;
537
- }, z.core.$strip>>;
538
- }, z.core.$strip>;
539
- }, z.core.$strip>>, z.ZodObject<{
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ traceContext?: Record<string, unknown> | undefined;
2210
+ realtimeStreamsVersion?: string | undefined;
2211
+ }, {
2212
+ traceContext?: Record<string, unknown> | undefined;
2213
+ realtimeStreamsVersion?: string | undefined;
2214
+ }>>;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ task: {
2217
+ id: string;
2218
+ filePath: string;
2219
+ } & {
2220
+ [k: string]: unknown;
2221
+ };
2222
+ queue: {
2223
+ id: string;
2224
+ name: string;
2225
+ };
2226
+ environment: {
2227
+ id: string;
2228
+ slug: string;
2229
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2230
+ branchName?: string | undefined;
2231
+ git?: {
2232
+ provider?: string | undefined;
2233
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2234
+ ghUsername?: string | undefined;
2235
+ ghUserAvatarUrl?: string | undefined;
2236
+ commitAuthorName?: string | undefined;
2237
+ commitMessage?: string | undefined;
2238
+ commitRef?: string | undefined;
2239
+ commitSha?: string | undefined;
2240
+ dirty?: boolean | undefined;
2241
+ remoteUrl?: string | undefined;
2242
+ pullRequestNumber?: number | undefined;
2243
+ pullRequestTitle?: string | undefined;
2244
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2245
+ } | undefined;
2246
+ };
2247
+ organization: {
2248
+ id: string;
2249
+ slug: string;
2250
+ name: string;
2251
+ };
2252
+ project: {
2253
+ id: string;
2254
+ ref: string;
2255
+ slug: string;
2256
+ name: string;
2257
+ };
2258
+ machine: {
2259
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2260
+ cpu: number;
2261
+ memory: number;
2262
+ centsPerMs: number;
2263
+ };
2264
+ batch?: {
2265
+ id: string;
2266
+ } | undefined;
2267
+ deployment?: {
2268
+ id: string;
2269
+ shortCode: string;
2270
+ version: string;
2271
+ runtime: string;
2272
+ runtimeVersion: string;
2273
+ git?: {
2274
+ provider?: string | undefined;
2275
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2276
+ ghUsername?: string | undefined;
2277
+ ghUserAvatarUrl?: string | undefined;
2278
+ commitAuthorName?: string | undefined;
2279
+ commitMessage?: string | undefined;
2280
+ commitRef?: string | undefined;
2281
+ commitSha?: string | undefined;
2282
+ dirty?: boolean | undefined;
2283
+ remoteUrl?: string | undefined;
2284
+ pullRequestNumber?: number | undefined;
2285
+ pullRequestTitle?: string | undefined;
2286
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2287
+ } | undefined;
2288
+ } | undefined;
2289
+ attempt: {
2290
+ number: number;
2291
+ startedAt: Date;
2292
+ } & {
2293
+ [k: string]: unknown;
2294
+ };
2295
+ run: {
2296
+ id: string;
2297
+ payload: string;
2298
+ payloadType: string;
2299
+ tags: string[];
2300
+ isTest: boolean;
2301
+ isReplay: boolean;
2302
+ createdAt: Date;
2303
+ startedAt: Date;
2304
+ idempotencyKey?: string | undefined;
2305
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2306
+ maxAttempts?: number | undefined;
2307
+ version?: string | undefined;
2308
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2309
+ maxDuration?: number | undefined;
2310
+ priority?: number | undefined;
2311
+ baseCostInCents?: number | undefined;
2312
+ parentTaskRunId?: string | undefined;
2313
+ rootTaskRunId?: string | undefined;
2314
+ durationMs?: number | undefined;
2315
+ costInCents?: number | undefined;
2316
+ region?: string | undefined;
2317
+ } & {
2318
+ traceContext?: Record<string, unknown> | undefined;
2319
+ realtimeStreamsVersion?: string | undefined;
2320
+ };
2321
+ }, {
2322
+ task: {
2323
+ id: string;
2324
+ filePath: string;
2325
+ } & {
2326
+ [k: string]: unknown;
2327
+ };
2328
+ queue: {
2329
+ id: string;
2330
+ name: string;
2331
+ };
2332
+ environment: {
2333
+ id: string;
2334
+ slug: string;
2335
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2336
+ branchName?: string | undefined;
2337
+ git?: {
2338
+ provider?: string | undefined;
2339
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2340
+ ghUsername?: string | undefined;
2341
+ ghUserAvatarUrl?: string | undefined;
2342
+ commitAuthorName?: string | undefined;
2343
+ commitMessage?: string | undefined;
2344
+ commitRef?: string | undefined;
2345
+ commitSha?: string | undefined;
2346
+ dirty?: boolean | undefined;
2347
+ remoteUrl?: string | undefined;
2348
+ pullRequestNumber?: number | undefined;
2349
+ pullRequestTitle?: string | undefined;
2350
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2351
+ } | undefined;
2352
+ };
2353
+ organization: {
2354
+ id: string;
2355
+ slug: string;
2356
+ name: string;
2357
+ };
2358
+ project: {
2359
+ id: string;
2360
+ ref: string;
2361
+ slug: string;
2362
+ name: string;
2363
+ };
2364
+ machine: {
2365
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2366
+ cpu: number;
2367
+ memory: number;
2368
+ centsPerMs: number;
2369
+ };
2370
+ batch?: {
2371
+ id: string;
2372
+ } | undefined;
2373
+ deployment?: {
2374
+ id: string;
2375
+ shortCode: string;
2376
+ version: string;
2377
+ runtime: string;
2378
+ runtimeVersion: string;
2379
+ git?: {
2380
+ provider?: string | undefined;
2381
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2382
+ ghUsername?: string | undefined;
2383
+ ghUserAvatarUrl?: string | undefined;
2384
+ commitAuthorName?: string | undefined;
2385
+ commitMessage?: string | undefined;
2386
+ commitRef?: string | undefined;
2387
+ commitSha?: string | undefined;
2388
+ dirty?: boolean | undefined;
2389
+ remoteUrl?: string | undefined;
2390
+ pullRequestNumber?: number | undefined;
2391
+ pullRequestTitle?: string | undefined;
2392
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2393
+ } | undefined;
2394
+ } | undefined;
2395
+ attempt: {
2396
+ number: number;
2397
+ startedAt: Date;
2398
+ } & {
2399
+ [k: string]: unknown;
2400
+ };
2401
+ run: {
2402
+ id: string;
2403
+ payload: string;
2404
+ payloadType: string;
2405
+ tags: string[];
2406
+ isTest?: boolean | undefined;
2407
+ isReplay?: boolean | undefined;
2408
+ createdAt: Date;
2409
+ startedAt?: Date | undefined;
2410
+ idempotencyKey?: string | undefined;
2411
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2412
+ maxAttempts?: number | undefined;
2413
+ version?: string | undefined;
2414
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2415
+ maxDuration?: number | undefined;
2416
+ priority?: number | undefined;
2417
+ baseCostInCents?: number | undefined;
2418
+ parentTaskRunId?: string | undefined;
2419
+ rootTaskRunId?: string | undefined;
2420
+ durationMs?: number | undefined;
2421
+ costInCents?: number | undefined;
2422
+ region?: string | undefined;
2423
+ } & {
2424
+ traceContext?: Record<string, unknown> | undefined;
2425
+ realtimeStreamsVersion?: string | undefined;
2426
+ };
2427
+ }>;
2428
+ }, "strip", z.ZodTypeAny, {
2429
+ execution: {
2430
+ task: {
2431
+ id: string;
2432
+ filePath: string;
2433
+ } & {
2434
+ [k: string]: unknown;
2435
+ };
2436
+ queue: {
2437
+ id: string;
2438
+ name: string;
2439
+ };
2440
+ environment: {
2441
+ id: string;
2442
+ slug: string;
2443
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2444
+ branchName?: string | undefined;
2445
+ git?: {
2446
+ provider?: string | undefined;
2447
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2448
+ ghUsername?: string | undefined;
2449
+ ghUserAvatarUrl?: string | undefined;
2450
+ commitAuthorName?: string | undefined;
2451
+ commitMessage?: string | undefined;
2452
+ commitRef?: string | undefined;
2453
+ commitSha?: string | undefined;
2454
+ dirty?: boolean | undefined;
2455
+ remoteUrl?: string | undefined;
2456
+ pullRequestNumber?: number | undefined;
2457
+ pullRequestTitle?: string | undefined;
2458
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2459
+ } | undefined;
2460
+ };
2461
+ organization: {
2462
+ id: string;
2463
+ slug: string;
2464
+ name: string;
2465
+ };
2466
+ project: {
2467
+ id: string;
2468
+ ref: string;
2469
+ slug: string;
2470
+ name: string;
2471
+ };
2472
+ machine: {
2473
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2474
+ cpu: number;
2475
+ memory: number;
2476
+ centsPerMs: number;
2477
+ };
2478
+ batch?: {
2479
+ id: string;
2480
+ } | undefined;
2481
+ deployment?: {
2482
+ id: string;
2483
+ shortCode: string;
2484
+ version: string;
2485
+ runtime: string;
2486
+ runtimeVersion: string;
2487
+ git?: {
2488
+ provider?: string | undefined;
2489
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2490
+ ghUsername?: string | undefined;
2491
+ ghUserAvatarUrl?: string | undefined;
2492
+ commitAuthorName?: string | undefined;
2493
+ commitMessage?: string | undefined;
2494
+ commitRef?: string | undefined;
2495
+ commitSha?: string | undefined;
2496
+ dirty?: boolean | undefined;
2497
+ remoteUrl?: string | undefined;
2498
+ pullRequestNumber?: number | undefined;
2499
+ pullRequestTitle?: string | undefined;
2500
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2501
+ } | undefined;
2502
+ } | undefined;
2503
+ attempt: {
2504
+ number: number;
2505
+ startedAt: Date;
2506
+ } & {
2507
+ [k: string]: unknown;
2508
+ };
2509
+ run: {
2510
+ id: string;
2511
+ payload: string;
2512
+ payloadType: string;
2513
+ tags: string[];
2514
+ isTest: boolean;
2515
+ isReplay: boolean;
2516
+ createdAt: Date;
2517
+ startedAt: Date;
2518
+ idempotencyKey?: string | undefined;
2519
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2520
+ maxAttempts?: number | undefined;
2521
+ version?: string | undefined;
2522
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2523
+ maxDuration?: number | undefined;
2524
+ priority?: number | undefined;
2525
+ baseCostInCents?: number | undefined;
2526
+ parentTaskRunId?: string | undefined;
2527
+ rootTaskRunId?: string | undefined;
2528
+ durationMs?: number | undefined;
2529
+ costInCents?: number | undefined;
2530
+ region?: string | undefined;
2531
+ } & {
2532
+ traceContext?: Record<string, unknown> | undefined;
2533
+ realtimeStreamsVersion?: string | undefined;
2534
+ };
2535
+ };
2536
+ }, {
2537
+ execution: {
2538
+ task: {
2539
+ id: string;
2540
+ filePath: string;
2541
+ } & {
2542
+ [k: string]: unknown;
2543
+ };
2544
+ queue: {
2545
+ id: string;
2546
+ name: string;
2547
+ };
2548
+ environment: {
2549
+ id: string;
2550
+ slug: string;
2551
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2552
+ branchName?: string | undefined;
2553
+ git?: {
2554
+ provider?: string | undefined;
2555
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2556
+ ghUsername?: string | undefined;
2557
+ ghUserAvatarUrl?: string | undefined;
2558
+ commitAuthorName?: string | undefined;
2559
+ commitMessage?: string | undefined;
2560
+ commitRef?: string | undefined;
2561
+ commitSha?: string | undefined;
2562
+ dirty?: boolean | undefined;
2563
+ remoteUrl?: string | undefined;
2564
+ pullRequestNumber?: number | undefined;
2565
+ pullRequestTitle?: string | undefined;
2566
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2567
+ } | undefined;
2568
+ };
2569
+ organization: {
2570
+ id: string;
2571
+ slug: string;
2572
+ name: string;
2573
+ };
2574
+ project: {
2575
+ id: string;
2576
+ ref: string;
2577
+ slug: string;
2578
+ name: string;
2579
+ };
2580
+ machine: {
2581
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2582
+ cpu: number;
2583
+ memory: number;
2584
+ centsPerMs: number;
2585
+ };
2586
+ batch?: {
2587
+ id: string;
2588
+ } | undefined;
2589
+ deployment?: {
2590
+ id: string;
2591
+ shortCode: string;
2592
+ version: string;
2593
+ runtime: string;
2594
+ runtimeVersion: string;
2595
+ git?: {
2596
+ provider?: string | undefined;
2597
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
2598
+ ghUsername?: string | undefined;
2599
+ ghUserAvatarUrl?: string | undefined;
2600
+ commitAuthorName?: string | undefined;
2601
+ commitMessage?: string | undefined;
2602
+ commitRef?: string | undefined;
2603
+ commitSha?: string | undefined;
2604
+ dirty?: boolean | undefined;
2605
+ remoteUrl?: string | undefined;
2606
+ pullRequestNumber?: number | undefined;
2607
+ pullRequestTitle?: string | undefined;
2608
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
2609
+ } | undefined;
2610
+ } | undefined;
2611
+ attempt: {
2612
+ number: number;
2613
+ startedAt: Date;
2614
+ } & {
2615
+ [k: string]: unknown;
2616
+ };
2617
+ run: {
2618
+ id: string;
2619
+ payload: string;
2620
+ payloadType: string;
2621
+ tags: string[];
2622
+ isTest?: boolean | undefined;
2623
+ isReplay?: boolean | undefined;
2624
+ createdAt: Date;
2625
+ startedAt?: Date | undefined;
2626
+ idempotencyKey?: string | undefined;
2627
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
2628
+ maxAttempts?: number | undefined;
2629
+ version?: string | undefined;
2630
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2631
+ maxDuration?: number | undefined;
2632
+ priority?: number | undefined;
2633
+ baseCostInCents?: number | undefined;
2634
+ parentTaskRunId?: string | undefined;
2635
+ rootTaskRunId?: string | undefined;
2636
+ durationMs?: number | undefined;
2637
+ costInCents?: number | undefined;
2638
+ region?: string | undefined;
2639
+ } & {
2640
+ traceContext?: Record<string, unknown> | undefined;
2641
+ realtimeStreamsVersion?: string | undefined;
2642
+ };
2643
+ };
2644
+ }>>, z.ZodObject<{
540
2645
  envVars: z.ZodRecord<z.ZodString, z.ZodString>;
541
- }, z.core.$strip>>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ envVars: Record<string, string>;
2648
+ }, {
2649
+ envVars: Record<string, string>;
2650
+ }>>;
542
2651
  export type WorkloadRunAttemptStartResponseBody = z.infer<typeof WorkloadRunAttemptStartResponseBody>;
543
2652
  export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
544
2653
  execution: z.ZodObject<{
@@ -546,73 +2655,80 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
546
2655
  snapshot: z.ZodObject<{
547
2656
  id: z.ZodString;
548
2657
  friendlyId: z.ZodString;
549
- executionStatus: z.ZodEnum<{
550
- DELAYED: "DELAYED";
551
- EXECUTING: "EXECUTING";
552
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
553
- FINISHED: "FINISHED";
554
- PENDING_CANCEL: "PENDING_CANCEL";
555
- PENDING_EXECUTING: "PENDING_EXECUTING";
556
- QUEUED: "QUEUED";
557
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
558
- RUN_CREATED: "RUN_CREATED";
559
- SUSPENDED: "SUSPENDED";
560
- }>;
2658
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
561
2659
  description: z.ZodString;
562
- createdAt: z.ZodCoercedDate<unknown>;
563
- }, z.core.$strip>;
2660
+ createdAt: z.ZodDate;
2661
+ }, "strip", z.ZodTypeAny, {
2662
+ id: string;
2663
+ friendlyId: string;
2664
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2665
+ description: string;
2666
+ createdAt: Date;
2667
+ }, {
2668
+ id: string;
2669
+ friendlyId: string;
2670
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2671
+ description: string;
2672
+ createdAt: Date;
2673
+ }>;
564
2674
  run: z.ZodObject<{
565
2675
  id: z.ZodString;
566
2676
  friendlyId: z.ZodString;
567
- status: z.ZodEnum<{
568
- CANCELED: "CANCELED";
569
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
570
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
571
- CRASHED: "CRASHED";
572
- DELAYED: "DELAYED";
573
- DEQUEUED: "DEQUEUED";
574
- EXECUTING: "EXECUTING";
575
- EXPIRED: "EXPIRED";
576
- INTERRUPTED: "INTERRUPTED";
577
- PAUSED: "PAUSED";
578
- PENDING: "PENDING";
579
- PENDING_VERSION: "PENDING_VERSION";
580
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
581
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
582
- TIMED_OUT: "TIMED_OUT";
583
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
584
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
585
- }>;
2677
+ status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
586
2678
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
587
2679
  taskEventStore: z.ZodOptional<z.ZodString>;
588
- }, z.core.$strip>;
2680
+ }, "strip", z.ZodTypeAny, {
2681
+ id: string;
2682
+ friendlyId: string;
2683
+ status: import("../../index.js").TaskRunStatus;
2684
+ attemptNumber?: number | null | undefined;
2685
+ taskEventStore?: string | undefined;
2686
+ }, {
2687
+ id: string;
2688
+ friendlyId: string;
2689
+ status: import("../../index.js").TaskRunStatus;
2690
+ attemptNumber?: number | null | undefined;
2691
+ taskEventStore?: string | undefined;
2692
+ }>;
589
2693
  batch: z.ZodOptional<z.ZodObject<{
590
2694
  id: z.ZodString;
591
2695
  friendlyId: z.ZodString;
592
- }, z.core.$strip>>;
2696
+ }, "strip", z.ZodTypeAny, {
2697
+ id: string;
2698
+ friendlyId: string;
2699
+ }, {
2700
+ id: string;
2701
+ friendlyId: string;
2702
+ }>>;
593
2703
  checkpoint: z.ZodOptional<z.ZodObject<{
594
- type: z.ZodEnum<{
595
- COMPUTE: "COMPUTE";
596
- DOCKER: "DOCKER";
597
- KUBERNETES: "KUBERNETES";
598
- }>;
2704
+ type: z.ZodEnum<[import("../../index.js").CheckpointTypeEnum]>;
599
2705
  location: z.ZodString;
600
2706
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
2707
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2708
+ } & {
602
2709
  id: z.ZodString;
603
2710
  friendlyId: z.ZodString;
604
- }, z.core.$strip>>;
2711
+ }, "strip", z.ZodTypeAny, {
2712
+ type: import("../../index.js").CheckpointTypeEnum;
2713
+ location: string;
2714
+ imageRef?: string | null | undefined;
2715
+ reason?: string | null | undefined;
2716
+ id: string;
2717
+ friendlyId: string;
2718
+ }, {
2719
+ type: import("../../index.js").CheckpointTypeEnum;
2720
+ location: string;
2721
+ imageRef?: string | null | undefined;
2722
+ reason?: string | null | undefined;
2723
+ id: string;
2724
+ friendlyId: string;
2725
+ }>>;
605
2726
  completedWaitpoints: z.ZodArray<z.ZodObject<{
606
2727
  id: z.ZodString;
607
2728
  index: z.ZodOptional<z.ZodNumber>;
608
2729
  friendlyId: z.ZodString;
609
- type: z.ZodEnum<{
610
- BATCH: "BATCH";
611
- DATETIME: "DATETIME";
612
- MANUAL: "MANUAL";
613
- RUN: "RUN";
614
- }>;
615
- completedAt: z.ZodCoercedDate<unknown>;
2730
+ type: z.ZodEnum<[import("../../index.js").WaitpointType]>;
2731
+ completedAt: z.ZodDate;
616
2732
  idempotencyKey: z.ZodOptional<z.ZodString>;
617
2733
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
618
2734
  id: z.ZodString;
@@ -620,99 +2736,880 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
620
2736
  batch: z.ZodOptional<z.ZodObject<{
621
2737
  id: z.ZodString;
622
2738
  friendlyId: z.ZodString;
623
- }, z.core.$strip>>;
624
- }, z.core.$strip>>;
625
- completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2739
+ }, "strip", z.ZodTypeAny, {
2740
+ id: string;
2741
+ friendlyId: string;
2742
+ }, {
2743
+ id: string;
2744
+ friendlyId: string;
2745
+ }>>;
2746
+ }, "strip", z.ZodTypeAny, {
2747
+ id: string;
2748
+ friendlyId: string;
2749
+ batch?: {
2750
+ id: string;
2751
+ friendlyId: string;
2752
+ } | undefined;
2753
+ }, {
2754
+ id: string;
2755
+ friendlyId: string;
2756
+ batch?: {
2757
+ id: string;
2758
+ friendlyId: string;
2759
+ } | undefined;
2760
+ }>>;
2761
+ completedAfter: z.ZodOptional<z.ZodDate>;
626
2762
  completedByBatch: z.ZodOptional<z.ZodObject<{
627
2763
  id: z.ZodString;
628
2764
  friendlyId: z.ZodString;
629
- }, z.core.$strip>>;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ id: string;
2767
+ friendlyId: string;
2768
+ }, {
2769
+ id: string;
2770
+ friendlyId: string;
2771
+ }>>;
630
2772
  output: z.ZodOptional<z.ZodString>;
631
2773
  outputType: z.ZodOptional<z.ZodString>;
632
2774
  outputIsError: z.ZodBoolean;
633
- }, z.core.$strip>>;
634
- }, z.core.$strip>;
635
- }, z.core.$strip>;
2775
+ }, "strip", z.ZodTypeAny, {
2776
+ id: string;
2777
+ index?: number | undefined;
2778
+ friendlyId: string;
2779
+ type: import("../../index.js").WaitpointType;
2780
+ completedAt: Date;
2781
+ idempotencyKey?: string | undefined;
2782
+ completedByTaskRun?: {
2783
+ id: string;
2784
+ friendlyId: string;
2785
+ batch?: {
2786
+ id: string;
2787
+ friendlyId: string;
2788
+ } | undefined;
2789
+ } | undefined;
2790
+ completedAfter?: Date | undefined;
2791
+ completedByBatch?: {
2792
+ id: string;
2793
+ friendlyId: string;
2794
+ } | undefined;
2795
+ output?: string | undefined;
2796
+ outputType?: string | undefined;
2797
+ outputIsError: boolean;
2798
+ }, {
2799
+ id: string;
2800
+ index?: number | undefined;
2801
+ friendlyId: string;
2802
+ type: import("../../index.js").WaitpointType;
2803
+ completedAt: Date;
2804
+ idempotencyKey?: string | undefined;
2805
+ completedByTaskRun?: {
2806
+ id: string;
2807
+ friendlyId: string;
2808
+ batch?: {
2809
+ id: string;
2810
+ friendlyId: string;
2811
+ } | undefined;
2812
+ } | undefined;
2813
+ completedAfter?: Date | undefined;
2814
+ completedByBatch?: {
2815
+ id: string;
2816
+ friendlyId: string;
2817
+ } | undefined;
2818
+ output?: string | undefined;
2819
+ outputType?: string | undefined;
2820
+ outputIsError: boolean;
2821
+ }>, "many">;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ version: "1";
2824
+ snapshot: {
2825
+ id: string;
2826
+ friendlyId: string;
2827
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2828
+ description: string;
2829
+ createdAt: Date;
2830
+ };
2831
+ run: {
2832
+ id: string;
2833
+ friendlyId: string;
2834
+ status: import("../../index.js").TaskRunStatus;
2835
+ attemptNumber?: number | null | undefined;
2836
+ taskEventStore?: string | undefined;
2837
+ };
2838
+ batch?: {
2839
+ id: string;
2840
+ friendlyId: string;
2841
+ } | undefined;
2842
+ checkpoint?: {
2843
+ type: import("../../index.js").CheckpointTypeEnum;
2844
+ location: string;
2845
+ imageRef?: string | null | undefined;
2846
+ reason?: string | null | undefined;
2847
+ id: string;
2848
+ friendlyId: string;
2849
+ } | undefined;
2850
+ completedWaitpoints: {
2851
+ id: string;
2852
+ index?: number | undefined;
2853
+ friendlyId: string;
2854
+ type: import("../../index.js").WaitpointType;
2855
+ completedAt: Date;
2856
+ idempotencyKey?: string | undefined;
2857
+ completedByTaskRun?: {
2858
+ id: string;
2859
+ friendlyId: string;
2860
+ batch?: {
2861
+ id: string;
2862
+ friendlyId: string;
2863
+ } | undefined;
2864
+ } | undefined;
2865
+ completedAfter?: Date | undefined;
2866
+ completedByBatch?: {
2867
+ id: string;
2868
+ friendlyId: string;
2869
+ } | undefined;
2870
+ output?: string | undefined;
2871
+ outputType?: string | undefined;
2872
+ outputIsError: boolean;
2873
+ }[];
2874
+ }, {
2875
+ version: "1";
2876
+ snapshot: {
2877
+ id: string;
2878
+ friendlyId: string;
2879
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2880
+ description: string;
2881
+ createdAt: Date;
2882
+ };
2883
+ run: {
2884
+ id: string;
2885
+ friendlyId: string;
2886
+ status: import("../../index.js").TaskRunStatus;
2887
+ attemptNumber?: number | null | undefined;
2888
+ taskEventStore?: string | undefined;
2889
+ };
2890
+ batch?: {
2891
+ id: string;
2892
+ friendlyId: string;
2893
+ } | undefined;
2894
+ checkpoint?: {
2895
+ type: import("../../index.js").CheckpointTypeEnum;
2896
+ location: string;
2897
+ imageRef?: string | null | undefined;
2898
+ reason?: string | null | undefined;
2899
+ id: string;
2900
+ friendlyId: string;
2901
+ } | undefined;
2902
+ completedWaitpoints: {
2903
+ id: string;
2904
+ index?: number | undefined;
2905
+ friendlyId: string;
2906
+ type: import("../../index.js").WaitpointType;
2907
+ completedAt: Date;
2908
+ idempotencyKey?: string | undefined;
2909
+ completedByTaskRun?: {
2910
+ id: string;
2911
+ friendlyId: string;
2912
+ batch?: {
2913
+ id: string;
2914
+ friendlyId: string;
2915
+ } | undefined;
2916
+ } | undefined;
2917
+ completedAfter?: Date | undefined;
2918
+ completedByBatch?: {
2919
+ id: string;
2920
+ friendlyId: string;
2921
+ } | undefined;
2922
+ output?: string | undefined;
2923
+ outputType?: string | undefined;
2924
+ outputIsError: boolean;
2925
+ }[];
2926
+ }>;
2927
+ }, "strip", z.ZodTypeAny, {
2928
+ execution: {
2929
+ version: "1";
2930
+ snapshot: {
2931
+ id: string;
2932
+ friendlyId: string;
2933
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2934
+ description: string;
2935
+ createdAt: Date;
2936
+ };
2937
+ run: {
2938
+ id: string;
2939
+ friendlyId: string;
2940
+ status: import("../../index.js").TaskRunStatus;
2941
+ attemptNumber?: number | null | undefined;
2942
+ taskEventStore?: string | undefined;
2943
+ };
2944
+ batch?: {
2945
+ id: string;
2946
+ friendlyId: string;
2947
+ } | undefined;
2948
+ checkpoint?: {
2949
+ type: import("../../index.js").CheckpointTypeEnum;
2950
+ location: string;
2951
+ imageRef?: string | null | undefined;
2952
+ reason?: string | null | undefined;
2953
+ id: string;
2954
+ friendlyId: string;
2955
+ } | undefined;
2956
+ completedWaitpoints: {
2957
+ id: string;
2958
+ index?: number | undefined;
2959
+ friendlyId: string;
2960
+ type: import("../../index.js").WaitpointType;
2961
+ completedAt: Date;
2962
+ idempotencyKey?: string | undefined;
2963
+ completedByTaskRun?: {
2964
+ id: string;
2965
+ friendlyId: string;
2966
+ batch?: {
2967
+ id: string;
2968
+ friendlyId: string;
2969
+ } | undefined;
2970
+ } | undefined;
2971
+ completedAfter?: Date | undefined;
2972
+ completedByBatch?: {
2973
+ id: string;
2974
+ friendlyId: string;
2975
+ } | undefined;
2976
+ output?: string | undefined;
2977
+ outputType?: string | undefined;
2978
+ outputIsError: boolean;
2979
+ }[];
2980
+ };
2981
+ }, {
2982
+ execution: {
2983
+ version: "1";
2984
+ snapshot: {
2985
+ id: string;
2986
+ friendlyId: string;
2987
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
2988
+ description: string;
2989
+ createdAt: Date;
2990
+ };
2991
+ run: {
2992
+ id: string;
2993
+ friendlyId: string;
2994
+ status: import("../../index.js").TaskRunStatus;
2995
+ attemptNumber?: number | null | undefined;
2996
+ taskEventStore?: string | undefined;
2997
+ };
2998
+ batch?: {
2999
+ id: string;
3000
+ friendlyId: string;
3001
+ } | undefined;
3002
+ checkpoint?: {
3003
+ type: import("../../index.js").CheckpointTypeEnum;
3004
+ location: string;
3005
+ imageRef?: string | null | undefined;
3006
+ reason?: string | null | undefined;
3007
+ id: string;
3008
+ friendlyId: string;
3009
+ } | undefined;
3010
+ completedWaitpoints: {
3011
+ id: string;
3012
+ index?: number | undefined;
3013
+ friendlyId: string;
3014
+ type: import("../../index.js").WaitpointType;
3015
+ completedAt: Date;
3016
+ idempotencyKey?: string | undefined;
3017
+ completedByTaskRun?: {
3018
+ id: string;
3019
+ friendlyId: string;
3020
+ batch?: {
3021
+ id: string;
3022
+ friendlyId: string;
3023
+ } | undefined;
3024
+ } | undefined;
3025
+ completedAfter?: Date | undefined;
3026
+ completedByBatch?: {
3027
+ id: string;
3028
+ friendlyId: string;
3029
+ } | undefined;
3030
+ output?: string | undefined;
3031
+ outputType?: string | undefined;
3032
+ outputIsError: boolean;
3033
+ }[];
3034
+ };
3035
+ }>;
636
3036
  export type WorkloadRunLatestSnapshotResponseBody = z.infer<typeof WorkloadRunLatestSnapshotResponseBody>;
637
3037
  export declare const WorkloadDebugLogRequestBody: z.ZodObject<{
638
- time: z.ZodCoercedDate<unknown>;
3038
+ time: z.ZodDate;
639
3039
  message: z.ZodString;
640
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>]>>>>;
641
- }, z.core.$strip>;
3040
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>>;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ time: Date;
3043
+ message: string;
3044
+ properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
3045
+ }, {
3046
+ time: Date;
3047
+ message: string;
3048
+ properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
3049
+ }>;
642
3050
  export type WorkloadDebugLogRequestBody = z.infer<typeof WorkloadDebugLogRequestBody>;
3051
+ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObject<{
3052
+ version: z.ZodLiteral<"1">;
3053
+ snapshot: z.ZodObject<{
3054
+ id: z.ZodString;
3055
+ friendlyId: z.ZodString;
3056
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
3057
+ description: z.ZodString;
3058
+ createdAt: z.ZodDate;
3059
+ }, "strip", z.ZodTypeAny, {
3060
+ id: string;
3061
+ friendlyId: string;
3062
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3063
+ description: string;
3064
+ createdAt: Date;
3065
+ }, {
3066
+ id: string;
3067
+ friendlyId: string;
3068
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3069
+ description: string;
3070
+ createdAt: Date;
3071
+ }>;
3072
+ dequeuedAt: z.ZodDate;
3073
+ workerQueueLength: z.ZodOptional<z.ZodNumber>;
3074
+ image: z.ZodOptional<z.ZodString>;
3075
+ checkpoint: z.ZodOptional<z.ZodObject<{
3076
+ id: z.ZodString;
3077
+ type: z.ZodEnum<[import("../../index.js").CheckpointTypeEnum]>;
3078
+ location: z.ZodString;
3079
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3080
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3081
+ }, "strip", z.ZodTypeAny, {
3082
+ id: string;
3083
+ type: import("../../index.js").CheckpointTypeEnum;
3084
+ location: string;
3085
+ imageRef?: string | null | undefined;
3086
+ reason?: string | null | undefined;
3087
+ }, {
3088
+ id: string;
3089
+ type: import("../../index.js").CheckpointTypeEnum;
3090
+ location: string;
3091
+ imageRef?: string | null | undefined;
3092
+ reason?: string | null | undefined;
3093
+ }>>;
3094
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
3095
+ id: z.ZodString;
3096
+ index: z.ZodOptional<z.ZodNumber>;
3097
+ friendlyId: z.ZodString;
3098
+ type: z.ZodEnum<[import("../../index.js").WaitpointType]>;
3099
+ completedAt: z.ZodDate;
3100
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3101
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
3102
+ id: z.ZodString;
3103
+ friendlyId: z.ZodString;
3104
+ batch: z.ZodOptional<z.ZodObject<{
3105
+ id: z.ZodString;
3106
+ friendlyId: z.ZodString;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ id: string;
3109
+ friendlyId: string;
3110
+ }, {
3111
+ id: string;
3112
+ friendlyId: string;
3113
+ }>>;
3114
+ }, "strip", z.ZodTypeAny, {
3115
+ id: string;
3116
+ friendlyId: string;
3117
+ batch?: {
3118
+ id: string;
3119
+ friendlyId: string;
3120
+ } | undefined;
3121
+ }, {
3122
+ id: string;
3123
+ friendlyId: string;
3124
+ batch?: {
3125
+ id: string;
3126
+ friendlyId: string;
3127
+ } | undefined;
3128
+ }>>;
3129
+ completedAfter: z.ZodOptional<z.ZodDate>;
3130
+ completedByBatch: z.ZodOptional<z.ZodObject<{
3131
+ id: z.ZodString;
3132
+ friendlyId: z.ZodString;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ id: string;
3135
+ friendlyId: string;
3136
+ }, {
3137
+ id: string;
3138
+ friendlyId: string;
3139
+ }>>;
3140
+ output: z.ZodOptional<z.ZodString>;
3141
+ outputType: z.ZodOptional<z.ZodString>;
3142
+ outputIsError: z.ZodBoolean;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ id: string;
3145
+ index?: number | undefined;
3146
+ friendlyId: string;
3147
+ type: import("../../index.js").WaitpointType;
3148
+ completedAt: Date;
3149
+ idempotencyKey?: string | undefined;
3150
+ completedByTaskRun?: {
3151
+ id: string;
3152
+ friendlyId: string;
3153
+ batch?: {
3154
+ id: string;
3155
+ friendlyId: string;
3156
+ } | undefined;
3157
+ } | undefined;
3158
+ completedAfter?: Date | undefined;
3159
+ completedByBatch?: {
3160
+ id: string;
3161
+ friendlyId: string;
3162
+ } | undefined;
3163
+ output?: string | undefined;
3164
+ outputType?: string | undefined;
3165
+ outputIsError: boolean;
3166
+ }, {
3167
+ id: string;
3168
+ index?: number | undefined;
3169
+ friendlyId: string;
3170
+ type: import("../../index.js").WaitpointType;
3171
+ completedAt: Date;
3172
+ idempotencyKey?: string | undefined;
3173
+ completedByTaskRun?: {
3174
+ id: string;
3175
+ friendlyId: string;
3176
+ batch?: {
3177
+ id: string;
3178
+ friendlyId: string;
3179
+ } | undefined;
3180
+ } | undefined;
3181
+ completedAfter?: Date | undefined;
3182
+ completedByBatch?: {
3183
+ id: string;
3184
+ friendlyId: string;
3185
+ } | undefined;
3186
+ output?: string | undefined;
3187
+ outputType?: string | undefined;
3188
+ outputIsError: boolean;
3189
+ }>, "many">;
3190
+ backgroundWorker: z.ZodObject<{
3191
+ id: z.ZodString;
3192
+ friendlyId: z.ZodString;
3193
+ version: z.ZodString;
3194
+ runtime: z.ZodOptional<z.ZodString>;
3195
+ }, "strip", z.ZodTypeAny, {
3196
+ id: string;
3197
+ friendlyId: string;
3198
+ version: string;
3199
+ runtime?: string | undefined;
3200
+ }, {
3201
+ id: string;
3202
+ friendlyId: string;
3203
+ version: string;
3204
+ runtime?: string | undefined;
3205
+ }>;
3206
+ deployment: z.ZodObject<{
3207
+ id: z.ZodOptional<z.ZodString>;
3208
+ friendlyId: z.ZodOptional<z.ZodString>;
3209
+ imagePlatform: z.ZodOptional<z.ZodString>;
3210
+ }, "strip", z.ZodTypeAny, {
3211
+ id?: string | undefined;
3212
+ friendlyId?: string | undefined;
3213
+ imagePlatform?: string | undefined;
3214
+ }, {
3215
+ id?: string | undefined;
3216
+ friendlyId?: string | undefined;
3217
+ imagePlatform?: string | undefined;
3218
+ }>;
3219
+ run: z.ZodObject<{
3220
+ id: z.ZodString;
3221
+ friendlyId: z.ZodString;
3222
+ isTest: z.ZodBoolean;
3223
+ isReplay: z.ZodDefault<z.ZodBoolean>;
3224
+ machine: z.ZodObject<{
3225
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
3226
+ cpu: z.ZodNumber;
3227
+ memory: z.ZodNumber;
3228
+ centsPerMs: z.ZodNumber;
3229
+ }, "strip", z.ZodTypeAny, {
3230
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3231
+ cpu: number;
3232
+ memory: number;
3233
+ centsPerMs: number;
3234
+ }, {
3235
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3236
+ cpu: number;
3237
+ memory: number;
3238
+ centsPerMs: number;
3239
+ }>;
3240
+ attemptNumber: z.ZodNumber;
3241
+ masterQueue: z.ZodString;
3242
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3243
+ annotations: z.ZodOptional<z.ZodObject<{
3244
+ triggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
3245
+ triggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
3246
+ rootTriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
3247
+ rootScheduleId: z.ZodOptional<z.ZodString>;
3248
+ taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
3249
+ externalDeploymentId: z.ZodOptional<z.ZodString>;
3250
+ }, "strip", z.ZodTypeAny, {
3251
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3252
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3253
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3254
+ rootScheduleId?: string | undefined;
3255
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3256
+ externalDeploymentId?: string | undefined;
3257
+ }, {
3258
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3259
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3260
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3261
+ rootScheduleId?: string | undefined;
3262
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3263
+ externalDeploymentId?: string | undefined;
3264
+ }>>;
3265
+ }, "strip", z.ZodTypeAny, {
3266
+ id: string;
3267
+ friendlyId: string;
3268
+ isTest: boolean;
3269
+ isReplay: boolean;
3270
+ machine: {
3271
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3272
+ cpu: number;
3273
+ memory: number;
3274
+ centsPerMs: number;
3275
+ };
3276
+ attemptNumber: number;
3277
+ masterQueue: string;
3278
+ traceContext: Record<string, unknown>;
3279
+ annotations?: {
3280
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3281
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3282
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3283
+ rootScheduleId?: string | undefined;
3284
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3285
+ externalDeploymentId?: string | undefined;
3286
+ } | undefined;
3287
+ }, {
3288
+ id: string;
3289
+ friendlyId: string;
3290
+ isTest: boolean;
3291
+ isReplay?: boolean | undefined;
3292
+ machine: {
3293
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3294
+ cpu: number;
3295
+ memory: number;
3296
+ centsPerMs: number;
3297
+ };
3298
+ attemptNumber: number;
3299
+ masterQueue: string;
3300
+ traceContext: Record<string, unknown>;
3301
+ annotations?: {
3302
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3303
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3304
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3305
+ rootScheduleId?: string | undefined;
3306
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3307
+ externalDeploymentId?: string | undefined;
3308
+ } | undefined;
3309
+ }>;
3310
+ environment: z.ZodObject<{
3311
+ id: z.ZodString;
3312
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ id: string;
3315
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3316
+ }, {
3317
+ id: string;
3318
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3319
+ }>;
3320
+ organization: z.ZodObject<{
3321
+ id: z.ZodString;
3322
+ hasPrivateLink: z.ZodOptional<z.ZodBoolean>;
3323
+ }, "strip", z.ZodTypeAny, {
3324
+ id: string;
3325
+ hasPrivateLink?: boolean | undefined;
3326
+ }, {
3327
+ id: string;
3328
+ hasPrivateLink?: boolean | undefined;
3329
+ }>;
3330
+ project: z.ZodObject<{
3331
+ id: z.ZodString;
3332
+ }, "strip", z.ZodTypeAny, {
3333
+ id: string;
3334
+ }, {
3335
+ id: string;
3336
+ }>;
3337
+ placementTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3338
+ key: z.ZodString;
3339
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3340
+ }, "strip", z.ZodTypeAny, {
3341
+ key: string;
3342
+ values?: string[] | undefined;
3343
+ }, {
3344
+ key: string;
3345
+ values?: string[] | undefined;
3346
+ }>, "many">>;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ version: "1";
3349
+ snapshot: {
3350
+ id: string;
3351
+ friendlyId: string;
3352
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3353
+ description: string;
3354
+ createdAt: Date;
3355
+ };
3356
+ dequeuedAt: Date;
3357
+ workerQueueLength?: number | undefined;
3358
+ image?: string | undefined;
3359
+ checkpoint?: {
3360
+ id: string;
3361
+ type: import("../../index.js").CheckpointTypeEnum;
3362
+ location: string;
3363
+ imageRef?: string | null | undefined;
3364
+ reason?: string | null | undefined;
3365
+ } | undefined;
3366
+ completedWaitpoints: {
3367
+ id: string;
3368
+ index?: number | undefined;
3369
+ friendlyId: string;
3370
+ type: import("../../index.js").WaitpointType;
3371
+ completedAt: Date;
3372
+ idempotencyKey?: string | undefined;
3373
+ completedByTaskRun?: {
3374
+ id: string;
3375
+ friendlyId: string;
3376
+ batch?: {
3377
+ id: string;
3378
+ friendlyId: string;
3379
+ } | undefined;
3380
+ } | undefined;
3381
+ completedAfter?: Date | undefined;
3382
+ completedByBatch?: {
3383
+ id: string;
3384
+ friendlyId: string;
3385
+ } | undefined;
3386
+ output?: string | undefined;
3387
+ outputType?: string | undefined;
3388
+ outputIsError: boolean;
3389
+ }[];
3390
+ backgroundWorker: {
3391
+ id: string;
3392
+ friendlyId: string;
3393
+ version: string;
3394
+ runtime?: string | undefined;
3395
+ };
3396
+ deployment: {
3397
+ id?: string | undefined;
3398
+ friendlyId?: string | undefined;
3399
+ imagePlatform?: string | undefined;
3400
+ };
3401
+ run: {
3402
+ id: string;
3403
+ friendlyId: string;
3404
+ isTest: boolean;
3405
+ isReplay: boolean;
3406
+ machine: {
3407
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3408
+ cpu: number;
3409
+ memory: number;
3410
+ centsPerMs: number;
3411
+ };
3412
+ attemptNumber: number;
3413
+ masterQueue: string;
3414
+ traceContext: Record<string, unknown>;
3415
+ annotations?: {
3416
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3417
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3418
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3419
+ rootScheduleId?: string | undefined;
3420
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3421
+ externalDeploymentId?: string | undefined;
3422
+ } | undefined;
3423
+ };
3424
+ environment: {
3425
+ id: string;
3426
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3427
+ };
3428
+ organization: {
3429
+ id: string;
3430
+ hasPrivateLink?: boolean | undefined;
3431
+ };
3432
+ project: {
3433
+ id: string;
3434
+ };
3435
+ placementTags?: {
3436
+ key: string;
3437
+ values?: string[] | undefined;
3438
+ }[] | undefined;
3439
+ }, {
3440
+ version: "1";
3441
+ snapshot: {
3442
+ id: string;
3443
+ friendlyId: string;
3444
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3445
+ description: string;
3446
+ createdAt: Date;
3447
+ };
3448
+ dequeuedAt: Date;
3449
+ workerQueueLength?: number | undefined;
3450
+ image?: string | undefined;
3451
+ checkpoint?: {
3452
+ id: string;
3453
+ type: import("../../index.js").CheckpointTypeEnum;
3454
+ location: string;
3455
+ imageRef?: string | null | undefined;
3456
+ reason?: string | null | undefined;
3457
+ } | undefined;
3458
+ completedWaitpoints: {
3459
+ id: string;
3460
+ index?: number | undefined;
3461
+ friendlyId: string;
3462
+ type: import("../../index.js").WaitpointType;
3463
+ completedAt: Date;
3464
+ idempotencyKey?: string | undefined;
3465
+ completedByTaskRun?: {
3466
+ id: string;
3467
+ friendlyId: string;
3468
+ batch?: {
3469
+ id: string;
3470
+ friendlyId: string;
3471
+ } | undefined;
3472
+ } | undefined;
3473
+ completedAfter?: Date | undefined;
3474
+ completedByBatch?: {
3475
+ id: string;
3476
+ friendlyId: string;
3477
+ } | undefined;
3478
+ output?: string | undefined;
3479
+ outputType?: string | undefined;
3480
+ outputIsError: boolean;
3481
+ }[];
3482
+ backgroundWorker: {
3483
+ id: string;
3484
+ friendlyId: string;
3485
+ version: string;
3486
+ runtime?: string | undefined;
3487
+ };
3488
+ deployment: {
3489
+ id?: string | undefined;
3490
+ friendlyId?: string | undefined;
3491
+ imagePlatform?: string | undefined;
3492
+ };
3493
+ run: {
3494
+ id: string;
3495
+ friendlyId: string;
3496
+ isTest: boolean;
3497
+ isReplay?: boolean | undefined;
3498
+ machine: {
3499
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3500
+ cpu: number;
3501
+ memory: number;
3502
+ centsPerMs: number;
3503
+ };
3504
+ attemptNumber: number;
3505
+ masterQueue: string;
3506
+ traceContext: Record<string, unknown>;
3507
+ annotations?: {
3508
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3509
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3510
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3511
+ rootScheduleId?: string | undefined;
3512
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3513
+ externalDeploymentId?: string | undefined;
3514
+ } | undefined;
3515
+ };
3516
+ environment: {
3517
+ id: string;
3518
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3519
+ };
3520
+ organization: {
3521
+ id: string;
3522
+ hasPrivateLink?: boolean | undefined;
3523
+ };
3524
+ project: {
3525
+ id: string;
3526
+ };
3527
+ placementTags?: {
3528
+ key: string;
3529
+ values?: string[] | undefined;
3530
+ }[] | undefined;
3531
+ }>, "many">;
3532
+ export type WorkloadDequeueFromVersionResponseBody = z.infer<typeof WorkloadDequeueFromVersionResponseBody>;
643
3533
  export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
644
3534
  snapshots: z.ZodArray<z.ZodObject<{
645
3535
  version: z.ZodLiteral<"1">;
646
3536
  snapshot: z.ZodObject<{
647
3537
  id: z.ZodString;
648
3538
  friendlyId: z.ZodString;
649
- executionStatus: z.ZodEnum<{
650
- DELAYED: "DELAYED";
651
- EXECUTING: "EXECUTING";
652
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
653
- FINISHED: "FINISHED";
654
- PENDING_CANCEL: "PENDING_CANCEL";
655
- PENDING_EXECUTING: "PENDING_EXECUTING";
656
- QUEUED: "QUEUED";
657
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
658
- RUN_CREATED: "RUN_CREATED";
659
- SUSPENDED: "SUSPENDED";
660
- }>;
3539
+ executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
661
3540
  description: z.ZodString;
662
- createdAt: z.ZodCoercedDate<unknown>;
663
- }, z.core.$strip>;
3541
+ createdAt: z.ZodDate;
3542
+ }, "strip", z.ZodTypeAny, {
3543
+ id: string;
3544
+ friendlyId: string;
3545
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3546
+ description: string;
3547
+ createdAt: Date;
3548
+ }, {
3549
+ id: string;
3550
+ friendlyId: string;
3551
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3552
+ description: string;
3553
+ createdAt: Date;
3554
+ }>;
664
3555
  run: z.ZodObject<{
665
3556
  id: z.ZodString;
666
3557
  friendlyId: z.ZodString;
667
- status: z.ZodEnum<{
668
- CANCELED: "CANCELED";
669
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
670
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
671
- CRASHED: "CRASHED";
672
- DELAYED: "DELAYED";
673
- DEQUEUED: "DEQUEUED";
674
- EXECUTING: "EXECUTING";
675
- EXPIRED: "EXPIRED";
676
- INTERRUPTED: "INTERRUPTED";
677
- PAUSED: "PAUSED";
678
- PENDING: "PENDING";
679
- PENDING_VERSION: "PENDING_VERSION";
680
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
681
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
682
- TIMED_OUT: "TIMED_OUT";
683
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
684
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
685
- }>;
3558
+ status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
686
3559
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
687
3560
  taskEventStore: z.ZodOptional<z.ZodString>;
688
- }, z.core.$strip>;
3561
+ }, "strip", z.ZodTypeAny, {
3562
+ id: string;
3563
+ friendlyId: string;
3564
+ status: import("../../index.js").TaskRunStatus;
3565
+ attemptNumber?: number | null | undefined;
3566
+ taskEventStore?: string | undefined;
3567
+ }, {
3568
+ id: string;
3569
+ friendlyId: string;
3570
+ status: import("../../index.js").TaskRunStatus;
3571
+ attemptNumber?: number | null | undefined;
3572
+ taskEventStore?: string | undefined;
3573
+ }>;
689
3574
  batch: z.ZodOptional<z.ZodObject<{
690
3575
  id: z.ZodString;
691
3576
  friendlyId: z.ZodString;
692
- }, z.core.$strip>>;
3577
+ }, "strip", z.ZodTypeAny, {
3578
+ id: string;
3579
+ friendlyId: string;
3580
+ }, {
3581
+ id: string;
3582
+ friendlyId: string;
3583
+ }>>;
693
3584
  checkpoint: z.ZodOptional<z.ZodObject<{
694
- type: z.ZodEnum<{
695
- COMPUTE: "COMPUTE";
696
- DOCKER: "DOCKER";
697
- KUBERNETES: "KUBERNETES";
698
- }>;
3585
+ type: z.ZodEnum<[import("../../index.js").CheckpointTypeEnum]>;
699
3586
  location: z.ZodString;
700
3587
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
3588
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3589
+ } & {
702
3590
  id: z.ZodString;
703
3591
  friendlyId: z.ZodString;
704
- }, z.core.$strip>>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ type: import("../../index.js").CheckpointTypeEnum;
3594
+ location: string;
3595
+ imageRef?: string | null | undefined;
3596
+ reason?: string | null | undefined;
3597
+ id: string;
3598
+ friendlyId: string;
3599
+ }, {
3600
+ type: import("../../index.js").CheckpointTypeEnum;
3601
+ location: string;
3602
+ imageRef?: string | null | undefined;
3603
+ reason?: string | null | undefined;
3604
+ id: string;
3605
+ friendlyId: string;
3606
+ }>>;
705
3607
  completedWaitpoints: z.ZodArray<z.ZodObject<{
706
3608
  id: z.ZodString;
707
3609
  index: z.ZodOptional<z.ZodNumber>;
708
3610
  friendlyId: z.ZodString;
709
- type: z.ZodEnum<{
710
- BATCH: "BATCH";
711
- DATETIME: "DATETIME";
712
- MANUAL: "MANUAL";
713
- RUN: "RUN";
714
- }>;
715
- completedAt: z.ZodCoercedDate<unknown>;
3611
+ type: z.ZodEnum<[import("../../index.js").WaitpointType]>;
3612
+ completedAt: z.ZodDate;
716
3613
  idempotencyKey: z.ZodOptional<z.ZodString>;
717
3614
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
718
3615
  id: z.ZodString;
@@ -720,17 +3617,301 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
720
3617
  batch: z.ZodOptional<z.ZodObject<{
721
3618
  id: z.ZodString;
722
3619
  friendlyId: z.ZodString;
723
- }, z.core.$strip>>;
724
- }, z.core.$strip>>;
725
- completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3620
+ }, "strip", z.ZodTypeAny, {
3621
+ id: string;
3622
+ friendlyId: string;
3623
+ }, {
3624
+ id: string;
3625
+ friendlyId: string;
3626
+ }>>;
3627
+ }, "strip", z.ZodTypeAny, {
3628
+ id: string;
3629
+ friendlyId: string;
3630
+ batch?: {
3631
+ id: string;
3632
+ friendlyId: string;
3633
+ } | undefined;
3634
+ }, {
3635
+ id: string;
3636
+ friendlyId: string;
3637
+ batch?: {
3638
+ id: string;
3639
+ friendlyId: string;
3640
+ } | undefined;
3641
+ }>>;
3642
+ completedAfter: z.ZodOptional<z.ZodDate>;
726
3643
  completedByBatch: z.ZodOptional<z.ZodObject<{
727
3644
  id: z.ZodString;
728
3645
  friendlyId: z.ZodString;
729
- }, z.core.$strip>>;
3646
+ }, "strip", z.ZodTypeAny, {
3647
+ id: string;
3648
+ friendlyId: string;
3649
+ }, {
3650
+ id: string;
3651
+ friendlyId: string;
3652
+ }>>;
730
3653
  output: z.ZodOptional<z.ZodString>;
731
3654
  outputType: z.ZodOptional<z.ZodString>;
732
3655
  outputIsError: z.ZodBoolean;
733
- }, z.core.$strip>>;
734
- }, z.core.$strip>>;
735
- }, z.core.$strip>;
3656
+ }, "strip", z.ZodTypeAny, {
3657
+ id: string;
3658
+ index?: number | undefined;
3659
+ friendlyId: string;
3660
+ type: import("../../index.js").WaitpointType;
3661
+ completedAt: Date;
3662
+ idempotencyKey?: string | undefined;
3663
+ completedByTaskRun?: {
3664
+ id: string;
3665
+ friendlyId: string;
3666
+ batch?: {
3667
+ id: string;
3668
+ friendlyId: string;
3669
+ } | undefined;
3670
+ } | undefined;
3671
+ completedAfter?: Date | undefined;
3672
+ completedByBatch?: {
3673
+ id: string;
3674
+ friendlyId: string;
3675
+ } | undefined;
3676
+ output?: string | undefined;
3677
+ outputType?: string | undefined;
3678
+ outputIsError: boolean;
3679
+ }, {
3680
+ id: string;
3681
+ index?: number | undefined;
3682
+ friendlyId: string;
3683
+ type: import("../../index.js").WaitpointType;
3684
+ completedAt: Date;
3685
+ idempotencyKey?: string | undefined;
3686
+ completedByTaskRun?: {
3687
+ id: string;
3688
+ friendlyId: string;
3689
+ batch?: {
3690
+ id: string;
3691
+ friendlyId: string;
3692
+ } | undefined;
3693
+ } | undefined;
3694
+ completedAfter?: Date | undefined;
3695
+ completedByBatch?: {
3696
+ id: string;
3697
+ friendlyId: string;
3698
+ } | undefined;
3699
+ output?: string | undefined;
3700
+ outputType?: string | undefined;
3701
+ outputIsError: boolean;
3702
+ }>, "many">;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ version: "1";
3705
+ snapshot: {
3706
+ id: string;
3707
+ friendlyId: string;
3708
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3709
+ description: string;
3710
+ createdAt: Date;
3711
+ };
3712
+ run: {
3713
+ id: string;
3714
+ friendlyId: string;
3715
+ status: import("../../index.js").TaskRunStatus;
3716
+ attemptNumber?: number | null | undefined;
3717
+ taskEventStore?: string | undefined;
3718
+ };
3719
+ batch?: {
3720
+ id: string;
3721
+ friendlyId: string;
3722
+ } | undefined;
3723
+ checkpoint?: {
3724
+ type: import("../../index.js").CheckpointTypeEnum;
3725
+ location: string;
3726
+ imageRef?: string | null | undefined;
3727
+ reason?: string | null | undefined;
3728
+ id: string;
3729
+ friendlyId: string;
3730
+ } | undefined;
3731
+ completedWaitpoints: {
3732
+ id: string;
3733
+ index?: number | undefined;
3734
+ friendlyId: string;
3735
+ type: import("../../index.js").WaitpointType;
3736
+ completedAt: Date;
3737
+ idempotencyKey?: string | undefined;
3738
+ completedByTaskRun?: {
3739
+ id: string;
3740
+ friendlyId: string;
3741
+ batch?: {
3742
+ id: string;
3743
+ friendlyId: string;
3744
+ } | undefined;
3745
+ } | undefined;
3746
+ completedAfter?: Date | undefined;
3747
+ completedByBatch?: {
3748
+ id: string;
3749
+ friendlyId: string;
3750
+ } | undefined;
3751
+ output?: string | undefined;
3752
+ outputType?: string | undefined;
3753
+ outputIsError: boolean;
3754
+ }[];
3755
+ }, {
3756
+ version: "1";
3757
+ snapshot: {
3758
+ id: string;
3759
+ friendlyId: string;
3760
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3761
+ description: string;
3762
+ createdAt: Date;
3763
+ };
3764
+ run: {
3765
+ id: string;
3766
+ friendlyId: string;
3767
+ status: import("../../index.js").TaskRunStatus;
3768
+ attemptNumber?: number | null | undefined;
3769
+ taskEventStore?: string | undefined;
3770
+ };
3771
+ batch?: {
3772
+ id: string;
3773
+ friendlyId: string;
3774
+ } | undefined;
3775
+ checkpoint?: {
3776
+ type: import("../../index.js").CheckpointTypeEnum;
3777
+ location: string;
3778
+ imageRef?: string | null | undefined;
3779
+ reason?: string | null | undefined;
3780
+ id: string;
3781
+ friendlyId: string;
3782
+ } | undefined;
3783
+ completedWaitpoints: {
3784
+ id: string;
3785
+ index?: number | undefined;
3786
+ friendlyId: string;
3787
+ type: import("../../index.js").WaitpointType;
3788
+ completedAt: Date;
3789
+ idempotencyKey?: string | undefined;
3790
+ completedByTaskRun?: {
3791
+ id: string;
3792
+ friendlyId: string;
3793
+ batch?: {
3794
+ id: string;
3795
+ friendlyId: string;
3796
+ } | undefined;
3797
+ } | undefined;
3798
+ completedAfter?: Date | undefined;
3799
+ completedByBatch?: {
3800
+ id: string;
3801
+ friendlyId: string;
3802
+ } | undefined;
3803
+ output?: string | undefined;
3804
+ outputType?: string | undefined;
3805
+ outputIsError: boolean;
3806
+ }[];
3807
+ }>, "many">;
3808
+ }, "strip", z.ZodTypeAny, {
3809
+ snapshots: {
3810
+ version: "1";
3811
+ snapshot: {
3812
+ id: string;
3813
+ friendlyId: string;
3814
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3815
+ description: string;
3816
+ createdAt: Date;
3817
+ };
3818
+ run: {
3819
+ id: string;
3820
+ friendlyId: string;
3821
+ status: import("../../index.js").TaskRunStatus;
3822
+ attemptNumber?: number | null | undefined;
3823
+ taskEventStore?: string | undefined;
3824
+ };
3825
+ batch?: {
3826
+ id: string;
3827
+ friendlyId: string;
3828
+ } | undefined;
3829
+ checkpoint?: {
3830
+ type: import("../../index.js").CheckpointTypeEnum;
3831
+ location: string;
3832
+ imageRef?: string | null | undefined;
3833
+ reason?: string | null | undefined;
3834
+ id: string;
3835
+ friendlyId: string;
3836
+ } | undefined;
3837
+ completedWaitpoints: {
3838
+ id: string;
3839
+ index?: number | undefined;
3840
+ friendlyId: string;
3841
+ type: import("../../index.js").WaitpointType;
3842
+ completedAt: Date;
3843
+ idempotencyKey?: string | undefined;
3844
+ completedByTaskRun?: {
3845
+ id: string;
3846
+ friendlyId: string;
3847
+ batch?: {
3848
+ id: string;
3849
+ friendlyId: string;
3850
+ } | undefined;
3851
+ } | undefined;
3852
+ completedAfter?: Date | undefined;
3853
+ completedByBatch?: {
3854
+ id: string;
3855
+ friendlyId: string;
3856
+ } | undefined;
3857
+ output?: string | undefined;
3858
+ outputType?: string | undefined;
3859
+ outputIsError: boolean;
3860
+ }[];
3861
+ }[];
3862
+ }, {
3863
+ snapshots: {
3864
+ version: "1";
3865
+ snapshot: {
3866
+ id: string;
3867
+ friendlyId: string;
3868
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
3869
+ description: string;
3870
+ createdAt: Date;
3871
+ };
3872
+ run: {
3873
+ id: string;
3874
+ friendlyId: string;
3875
+ status: import("../../index.js").TaskRunStatus;
3876
+ attemptNumber?: number | null | undefined;
3877
+ taskEventStore?: string | undefined;
3878
+ };
3879
+ batch?: {
3880
+ id: string;
3881
+ friendlyId: string;
3882
+ } | undefined;
3883
+ checkpoint?: {
3884
+ type: import("../../index.js").CheckpointTypeEnum;
3885
+ location: string;
3886
+ imageRef?: string | null | undefined;
3887
+ reason?: string | null | undefined;
3888
+ id: string;
3889
+ friendlyId: string;
3890
+ } | undefined;
3891
+ completedWaitpoints: {
3892
+ id: string;
3893
+ index?: number | undefined;
3894
+ friendlyId: string;
3895
+ type: import("../../index.js").WaitpointType;
3896
+ completedAt: Date;
3897
+ idempotencyKey?: string | undefined;
3898
+ completedByTaskRun?: {
3899
+ id: string;
3900
+ friendlyId: string;
3901
+ batch?: {
3902
+ id: string;
3903
+ friendlyId: string;
3904
+ } | undefined;
3905
+ } | undefined;
3906
+ completedAfter?: Date | undefined;
3907
+ completedByBatch?: {
3908
+ id: string;
3909
+ friendlyId: string;
3910
+ } | undefined;
3911
+ output?: string | undefined;
3912
+ outputType?: string | undefined;
3913
+ outputIsError: boolean;
3914
+ }[];
3915
+ }[];
3916
+ }>;
736
3917
  export type WorkloadRunSnapshotsSinceResponseBody = z.infer<typeof WorkloadRunSnapshotsSinceResponseBody>;