@trigger.dev/core 4.5.16 → 4.6.1

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 (307) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +27 -105
  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 +20 -12
  6. package/dist/commonjs/schemas/json.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/core.d.ts +15 -14
  8. package/dist/commonjs/v3/apiClient/core.js +40 -18
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  11. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +20 -0
  12. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  13. package/dist/commonjs/v3/apiClient/index.d.ts +82 -184
  14. package/dist/commonjs/v3/apiClient/index.js +27 -8
  15. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  16. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  17. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  18. package/dist/commonjs/v3/errors.d.ts +5 -4
  19. package/dist/commonjs/v3/errors.js.map +1 -1
  20. package/dist/commonjs/v3/index.d.ts +1 -1
  21. package/dist/commonjs/v3/index.js.map +1 -1
  22. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  23. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +3 -0
  25. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  26. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +4 -0
  27. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +5 -12
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  32. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +84 -67
  33. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  35. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +15 -110
  36. package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -16
  37. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  38. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  39. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +10 -9
  40. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  41. package/dist/commonjs/v3/schemas/api.d.ts +1883 -12680
  42. package/dist/commonjs/v3/schemas/api.js +1028 -943
  43. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  44. package/dist/commonjs/v3/schemas/build.d.ts +645 -9115
  45. package/dist/commonjs/v3/schemas/build.js +71 -71
  46. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  47. package/dist/commonjs/v3/schemas/checkpoints.d.ts +121 -461
  48. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  49. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  50. package/dist/commonjs/v3/schemas/common.d.ts +1018 -6499
  51. package/dist/commonjs/v3/schemas/common.js +225 -218
  52. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  53. package/dist/commonjs/v3/schemas/config.d.ts +3 -9
  54. package/dist/commonjs/v3/schemas/config.js +4 -4
  55. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  56. package/dist/commonjs/v3/schemas/errors.d.ts +42 -173
  57. package/dist/commonjs/v3/schemas/errors.js +44 -44
  58. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  59. package/dist/commonjs/v3/schemas/eventFilter.d.ts +23 -91
  60. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  61. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  62. package/dist/commonjs/v3/schemas/fetch.d.ts +119 -415
  63. package/dist/commonjs/v3/schemas/fetch.js +17 -14
  64. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  65. package/dist/commonjs/v3/schemas/messages.d.ts +603 -7438
  66. package/dist/commonjs/v3/schemas/messages.js +50 -50
  67. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  68. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +50 -401
  69. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  70. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  71. package/dist/commonjs/v3/schemas/query.d.ts +51 -273
  72. package/dist/commonjs/v3/schemas/query.js +41 -40
  73. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  74. package/dist/commonjs/v3/schemas/queues.d.ts +29 -100
  75. package/dist/commonjs/v3/schemas/queues.js +22 -22
  76. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  77. package/dist/commonjs/v3/schemas/reports.d.ts +150 -692
  78. package/dist/commonjs/v3/schemas/reports.js +55 -55
  79. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  80. package/dist/commonjs/v3/schemas/resources.d.ts +533 -5985
  81. package/dist/commonjs/v3/schemas/resources.js +49 -49
  82. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  83. package/dist/commonjs/v3/schemas/runEngine.d.ts +467 -1822
  84. package/dist/commonjs/v3/schemas/runEngine.js +113 -109
  85. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  86. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  87. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  88. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  89. package/dist/commonjs/v3/schemas/schemas.d.ts +788 -7456
  90. package/dist/commonjs/v3/schemas/schemas.js +133 -132
  91. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  92. package/dist/commonjs/v3/schemas/snapshotRoute.d.ts +33 -0
  93. package/dist/commonjs/v3/schemas/snapshotRoute.js +33 -0
  94. package/dist/commonjs/v3/schemas/snapshotRoute.js.map +1 -0
  95. package/dist/commonjs/v3/schemas/style.d.ts +24 -86
  96. package/dist/commonjs/v3/schemas/style.js +12 -12
  97. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  98. package/dist/commonjs/v3/schemas/tokens.d.ts +5 -31
  99. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  100. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  101. package/dist/commonjs/v3/schemas/warmStart.d.ts +2 -8
  102. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  103. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  104. package/dist/commonjs/v3/schemas/webhookApi.d.ts +75 -249
  105. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  106. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  107. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +473 -3309
  108. package/dist/commonjs/v3/schemas/webhookConfig.js +79 -78
  109. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  110. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +16 -4
  111. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  112. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  113. package/dist/commonjs/v3/schemas/webhooks.d.ts +247 -2055
  114. package/dist/commonjs/v3/schemas/webhooks.js +116 -115
  115. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  116. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +19 -8
  117. package/dist/commonjs/v3/serverOnly/httpServer.js +6 -3
  118. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  119. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  120. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +332 -8
  121. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  122. package/dist/commonjs/v3/sessionStreams/router.d.ts +39 -1
  123. package/dist/commonjs/v3/sessionStreams/router.js +62 -0
  124. package/dist/commonjs/v3/sessionStreams/router.js.map +1 -1
  125. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +15 -0
  126. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +16 -1
  127. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  128. package/dist/commonjs/v3/test/test-session-stream-manager.js +5 -1
  129. package/dist/commonjs/v3/test/test-session-stream-manager.js.map +1 -1
  130. package/dist/commonjs/v3/types/schemas.d.ts +21 -1
  131. package/dist/commonjs/v3/types/schemas.js +2 -1
  132. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  133. package/dist/commonjs/v3/types/tools.d.ts +16 -5
  134. package/dist/commonjs/v3/types/tools.js +2 -2
  135. package/dist/commonjs/v3/types/tools.js.map +1 -1
  136. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  137. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  138. package/dist/commonjs/v3/utils/zod.d.ts +8 -0
  139. package/dist/commonjs/v3/utils/zod.js +8 -0
  140. package/dist/commonjs/v3/utils/zod.js.map +1 -0
  141. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +2 -21
  142. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  143. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  144. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  145. package/dist/commonjs/v3/zodIpc.js +20 -18
  146. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  147. package/dist/commonjs/v3/zodMessageHandler.d.ts +14 -21
  148. package/dist/commonjs/v3/zodMessageHandler.js +20 -7
  149. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  150. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  151. package/dist/commonjs/v3/zodSocket.js +9 -8
  152. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  153. package/dist/commonjs/version.js +1 -1
  154. package/dist/esm/schemas/eventFilter.d.ts +27 -105
  155. package/dist/esm/schemas/eventFilter.js +2 -2
  156. package/dist/esm/schemas/eventFilter.js.map +1 -1
  157. package/dist/esm/schemas/json.d.ts +3 -3
  158. package/dist/esm/schemas/json.js +11 -3
  159. package/dist/esm/schemas/json.js.map +1 -1
  160. package/dist/esm/v3/apiClient/core.d.ts +15 -14
  161. package/dist/esm/v3/apiClient/core.js +39 -17
  162. package/dist/esm/v3/apiClient/core.js.map +1 -1
  163. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  164. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +17 -0
  165. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  166. package/dist/esm/v3/apiClient/index.d.ts +82 -184
  167. package/dist/esm/v3/apiClient/index.js +22 -4
  168. package/dist/esm/v3/apiClient/index.js.map +1 -1
  169. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  170. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  171. package/dist/esm/v3/errors.d.ts +5 -4
  172. package/dist/esm/v3/errors.js.map +1 -1
  173. package/dist/esm/v3/index.d.ts +1 -1
  174. package/dist/esm/v3/index.js.map +1 -1
  175. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  176. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  177. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +3 -0
  178. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  179. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +4 -0
  180. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  181. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  182. package/dist/esm/v3/runEngineWorker/supervisor/http.js +4 -11
  183. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  184. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  185. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +22 -5
  186. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  187. package/dist/esm/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  188. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +15 -110
  189. package/dist/esm/v3/runEngineWorker/workload/http.js +8 -16
  190. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  191. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  192. package/dist/esm/v3/runEngineWorker/workload/schemas.js +5 -4
  193. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  194. package/dist/esm/v3/schemas/api.d.ts +1883 -12680
  195. package/dist/esm/v3/schemas/api.js +120 -35
  196. package/dist/esm/v3/schemas/api.js.map +1 -1
  197. package/dist/esm/v3/schemas/build.d.ts +645 -9115
  198. package/dist/esm/v3/schemas/build.js +10 -10
  199. package/dist/esm/v3/schemas/build.js.map +1 -1
  200. package/dist/esm/v3/schemas/checkpoints.d.ts +121 -461
  201. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  202. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  203. package/dist/esm/v3/schemas/common.d.ts +1018 -6499
  204. package/dist/esm/v3/schemas/common.js +17 -10
  205. package/dist/esm/v3/schemas/common.js.map +1 -1
  206. package/dist/esm/v3/schemas/config.d.ts +3 -9
  207. package/dist/esm/v3/schemas/config.js +1 -1
  208. package/dist/esm/v3/schemas/config.js.map +1 -1
  209. package/dist/esm/v3/schemas/errors.d.ts +42 -173
  210. package/dist/esm/v3/schemas/errors.js +1 -1
  211. package/dist/esm/v3/schemas/errors.js.map +1 -1
  212. package/dist/esm/v3/schemas/eventFilter.d.ts +23 -91
  213. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  214. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  215. package/dist/esm/v3/schemas/fetch.d.ts +119 -415
  216. package/dist/esm/v3/schemas/fetch.js +6 -3
  217. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  218. package/dist/esm/v3/schemas/messages.d.ts +603 -7438
  219. package/dist/esm/v3/schemas/messages.js +3 -3
  220. package/dist/esm/v3/schemas/messages.js.map +1 -1
  221. package/dist/esm/v3/schemas/openTelemetry.d.ts +50 -401
  222. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  223. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  224. package/dist/esm/v3/schemas/query.d.ts +51 -273
  225. package/dist/esm/v3/schemas/query.js +4 -3
  226. package/dist/esm/v3/schemas/query.js.map +1 -1
  227. package/dist/esm/v3/schemas/queues.d.ts +29 -100
  228. package/dist/esm/v3/schemas/queues.js +1 -1
  229. package/dist/esm/v3/schemas/queues.js.map +1 -1
  230. package/dist/esm/v3/schemas/reports.d.ts +150 -692
  231. package/dist/esm/v3/schemas/reports.js +5 -5
  232. package/dist/esm/v3/schemas/reports.js.map +1 -1
  233. package/dist/esm/v3/schemas/resources.d.ts +533 -5985
  234. package/dist/esm/v3/schemas/resources.js +3 -3
  235. package/dist/esm/v3/schemas/resources.js.map +1 -1
  236. package/dist/esm/v3/schemas/runEngine.d.ts +467 -1822
  237. package/dist/esm/v3/schemas/runEngine.js +11 -3
  238. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  239. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  240. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  241. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  242. package/dist/esm/v3/schemas/schemas.d.ts +788 -7456
  243. package/dist/esm/v3/schemas/schemas.js +11 -10
  244. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  245. package/dist/esm/v3/schemas/snapshotRoute.d.ts +33 -0
  246. package/dist/esm/v3/schemas/snapshotRoute.js +30 -0
  247. package/dist/esm/v3/schemas/snapshotRoute.js.map +1 -0
  248. package/dist/esm/v3/schemas/style.d.ts +24 -86
  249. package/dist/esm/v3/schemas/style.js +1 -1
  250. package/dist/esm/v3/schemas/style.js.map +1 -1
  251. package/dist/esm/v3/schemas/tokens.d.ts +5 -31
  252. package/dist/esm/v3/schemas/tokens.js +1 -1
  253. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  254. package/dist/esm/v3/schemas/warmStart.d.ts +2 -8
  255. package/dist/esm/v3/schemas/warmStart.js +1 -1
  256. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  257. package/dist/esm/v3/schemas/webhookApi.d.ts +75 -249
  258. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  259. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  260. package/dist/esm/v3/schemas/webhookConfig.d.ts +473 -3309
  261. package/dist/esm/v3/schemas/webhookConfig.js +10 -9
  262. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  263. package/dist/esm/v3/schemas/webhookFilter.d.ts +16 -4
  264. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  265. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  266. package/dist/esm/v3/schemas/webhooks.d.ts +247 -2055
  267. package/dist/esm/v3/schemas/webhooks.js +3 -2
  268. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  269. package/dist/esm/v3/serverOnly/httpServer.d.ts +19 -8
  270. package/dist/esm/v3/serverOnly/httpServer.js +5 -2
  271. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  272. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  273. package/dist/esm/v3/sessionStreams/chatSnapshot.js +318 -2
  274. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  275. package/dist/esm/v3/sessionStreams/router.d.ts +39 -1
  276. package/dist/esm/v3/sessionStreams/router.js +62 -0
  277. package/dist/esm/v3/sessionStreams/router.js.map +1 -1
  278. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +15 -0
  279. package/dist/esm/v3/sessionStreams/wireProtocol.js +15 -0
  280. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  281. package/dist/esm/v3/test/test-session-stream-manager.js +5 -1
  282. package/dist/esm/v3/test/test-session-stream-manager.js.map +1 -1
  283. package/dist/esm/v3/types/schemas.d.ts +21 -1
  284. package/dist/esm/v3/types/schemas.js +2 -1
  285. package/dist/esm/v3/types/schemas.js.map +1 -1
  286. package/dist/esm/v3/types/tools.d.ts +16 -5
  287. package/dist/esm/v3/types/tools.js +2 -2
  288. package/dist/esm/v3/types/tools.js.map +1 -1
  289. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  290. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  291. package/dist/esm/v3/utils/zod.d.ts +8 -0
  292. package/dist/esm/v3/utils/zod.js +5 -0
  293. package/dist/esm/v3/utils/zod.js.map +1 -0
  294. package/dist/esm/v3/workloadDeploymentToken.d.ts +2 -21
  295. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  296. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  297. package/dist/esm/v3/zodIpc.d.ts +6 -6
  298. package/dist/esm/v3/zodIpc.js +5 -3
  299. package/dist/esm/v3/zodIpc.js.map +1 -1
  300. package/dist/esm/v3/zodMessageHandler.d.ts +14 -21
  301. package/dist/esm/v3/zodMessageHandler.js +16 -3
  302. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  303. package/dist/esm/v3/zodSocket.d.ts +11 -11
  304. package/dist/esm/v3/zodSocket.js +3 -2
  305. package/dist/esm/v3/zodSocket.js.map +1 -1
  306. package/dist/esm/version.js +1 -1
  307. package/package.json +7 -3
@@ -1,1906 +1,452 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  export declare const WorkloadHeartbeatRequestBody: z.ZodObject<{
3
3
  cpu: z.ZodOptional<z.ZodNumber>;
4
4
  memory: z.ZodOptional<z.ZodNumber>;
5
- }, "strip", z.ZodTypeAny, {
6
- cpu?: number | undefined;
7
- memory?: number | undefined;
8
- }, {
9
- cpu?: number | undefined;
10
- memory?: number | undefined;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type WorkloadHeartbeatRequestBody = z.infer<typeof WorkloadHeartbeatRequestBody>;
13
7
  export declare const WorkloadHeartbeatResponseBody: z.ZodObject<{
14
8
  ok: z.ZodLiteral<true>;
15
- }, "strip", z.ZodTypeAny, {
16
- ok: true;
17
- }, {
18
- ok: true;
19
- }>;
9
+ }, z.core.$strip>;
20
10
  export type WorkloadHeartbeatResponseBody = z.infer<typeof WorkloadHeartbeatResponseBody>;
21
- export declare const WorkloadSuspendRunResponseBody: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
11
+ export declare const WorkloadSuspendRunResponseBody: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
22
12
  ok: z.ZodLiteral<true>;
23
- }, "strip", z.ZodTypeAny, {
24
- ok: true;
25
- }, {
26
- ok: true;
27
- }>, z.ZodObject<{
13
+ }, z.core.$strip>, z.ZodObject<{
28
14
  ok: z.ZodLiteral<false>;
29
15
  error: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- ok: false;
32
- error: string;
33
- }, {
34
- ok: false;
35
- error: string;
36
- }>]>;
16
+ }, z.core.$strip>]>;
37
17
  export type WorkloadSuspendRunResponseBody = z.infer<typeof WorkloadSuspendRunResponseBody>;
38
18
  export declare const WorkloadContinueRunExecutionResponseBody: z.ZodObject<{
39
19
  snapshot: z.ZodObject<{
40
20
  id: z.ZodString;
41
21
  friendlyId: z.ZodString;
42
- executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
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
+ }>;
43
34
  description: z.ZodString;
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
- }>;
35
+ createdAt: z.ZodCoercedDate<unknown>;
36
+ }, z.core.$strip>;
58
37
  run: z.ZodObject<{
59
38
  id: z.ZodString;
60
39
  friendlyId: z.ZodString;
61
- status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
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
+ }>;
62
59
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
60
  taskEventStore: z.ZodOptional<z.ZodString>;
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
- }>;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>;
108
63
  export type WorkloadContinueRunExecutionResponseBody = z.infer<typeof WorkloadContinueRunExecutionResponseBody>;
64
+ export declare const WorkloadContinueRunExecutionQueryParams: z.ZodObject<{
65
+ snapshotRoute: z.ZodOptional<z.ZodObject<{
66
+ version: z.ZodLiteral<1>;
67
+ residency: z.ZodEnum<{
68
+ mirrored: "mirrored";
69
+ postgres: "postgres";
70
+ "redis-primary": "redis-primary";
71
+ }>;
72
+ organizationId: z.ZodString;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
75
+ export type WorkloadContinueRunExecutionQueryParams = z.infer<typeof WorkloadContinueRunExecutionQueryParams>;
109
76
  export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
110
- completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
77
+ completion: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
111
78
  ok: z.ZodLiteral<true>;
112
79
  id: z.ZodString;
113
80
  output: z.ZodOptional<z.ZodString>;
114
81
  outputType: z.ZodString;
115
82
  usage: z.ZodOptional<z.ZodObject<{
116
83
  durationMs: z.ZodNumber;
117
- }, "strip", z.ZodTypeAny, {
118
- durationMs: number;
119
- }, {
120
- durationMs: number;
121
- }>>;
84
+ }, z.core.$strip>>;
122
85
  taskIdentifier: z.ZodOptional<z.ZodString>;
123
86
  metadata: z.ZodOptional<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<{
87
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
88
+ operations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
126
89
  type: z.ZodLiteral<"update">;
127
90
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
128
- }, "strip", z.ZodTypeAny, {
129
- type: "update";
130
- value: Record<string, unknown>;
131
- }, {
132
- type: "update";
133
- value: Record<string, unknown>;
134
- }>, z.ZodObject<{
91
+ }, z.core.$strip>, z.ZodObject<{
135
92
  type: z.ZodLiteral<"set">;
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<{
93
+ key: z.ZodString;
94
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
95
+ }, z.core.$strip>, z.ZodObject<{
147
96
  type: z.ZodLiteral<"delete">;
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<{
97
+ key: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
156
99
  type: z.ZodLiteral<"append">;
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<{
100
+ key: z.ZodString;
101
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
102
+ }, z.core.$strip>, z.ZodObject<{
168
103
  type: z.ZodLiteral<"remove">;
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<{
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<{
180
107
  type: z.ZodLiteral<"increment">;
181
- key: z.ZodEffects<z.ZodString, string, string>;
108
+ key: z.ZodString;
182
109
  value: z.ZodNumber;
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<{
110
+ }, z.core.$strip>]>>>;
111
+ parentOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
193
112
  type: z.ZodLiteral<"update">;
194
113
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
195
- }, "strip", z.ZodTypeAny, {
196
- type: "update";
197
- value: Record<string, unknown>;
198
- }, {
199
- type: "update";
200
- value: Record<string, unknown>;
201
- }>, z.ZodObject<{
114
+ }, z.core.$strip>, z.ZodObject<{
202
115
  type: z.ZodLiteral<"set">;
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<{
116
+ key: z.ZodString;
117
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
118
+ }, z.core.$strip>, z.ZodObject<{
214
119
  type: z.ZodLiteral<"delete">;
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<{
120
+ key: z.ZodString;
121
+ }, z.core.$strip>, z.ZodObject<{
223
122
  type: z.ZodLiteral<"append">;
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<{
123
+ key: z.ZodString;
124
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
125
+ }, z.core.$strip>, z.ZodObject<{
235
126
  type: z.ZodLiteral<"remove">;
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<{
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<{
247
130
  type: z.ZodLiteral<"increment">;
248
- key: z.ZodEffects<z.ZodString, string, string>;
131
+ key: z.ZodString;
249
132
  value: z.ZodNumber;
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<{
133
+ }, z.core.$strip>]>>>;
134
+ rootOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
260
135
  type: z.ZodLiteral<"update">;
261
136
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
262
- }, "strip", z.ZodTypeAny, {
263
- type: "update";
264
- value: Record<string, unknown>;
265
- }, {
266
- type: "update";
267
- value: Record<string, unknown>;
268
- }>, z.ZodObject<{
137
+ }, z.core.$strip>, z.ZodObject<{
269
138
  type: z.ZodLiteral<"set">;
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<{
139
+ key: z.ZodString;
140
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
141
+ }, z.core.$strip>, z.ZodObject<{
281
142
  type: z.ZodLiteral<"delete">;
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<{
143
+ key: z.ZodString;
144
+ }, z.core.$strip>, z.ZodObject<{
290
145
  type: z.ZodLiteral<"append">;
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<{
146
+ key: z.ZodString;
147
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
148
+ }, z.core.$strip>, z.ZodObject<{
302
149
  type: z.ZodLiteral<"remove">;
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<{
150
+ key: z.ZodString;
151
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
152
+ }, z.core.$strip>, z.ZodObject<{
314
153
  type: z.ZodLiteral<"increment">;
315
- key: z.ZodEffects<z.ZodString, string, string>;
154
+ key: z.ZodString;
316
155
  value: z.ZodNumber;
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
- }>>;
156
+ }, z.core.$strip>]>>>;
157
+ }, z.core.$strip>>;
469
158
  flushedMetadata: z.ZodOptional<z.ZodObject<{
470
159
  data: z.ZodOptional<z.ZodString>;
471
160
  dataType: z.ZodString;
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<{
161
+ }, z.core.$strip>>;
162
+ }, z.core.$strip>, z.ZodObject<{
650
163
  ok: z.ZodLiteral<false>;
651
164
  id: z.ZodString;
652
- error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
165
+ error: import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
653
166
  type: z.ZodLiteral<"BUILT_IN_ERROR">;
654
167
  name: z.ZodString;
655
168
  message: z.ZodString;
656
169
  stackTrace: z.ZodString;
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<{
170
+ }, z.core.$strip>, z.ZodObject<{
668
171
  type: z.ZodLiteral<"CUSTOM_ERROR">;
669
172
  raw: z.ZodString;
670
- }, "strip", z.ZodTypeAny, {
671
- type: "CUSTOM_ERROR";
672
- raw: string;
673
- }, {
674
- type: "CUSTOM_ERROR";
675
- raw: string;
676
- }>, z.ZodObject<{
173
+ }, z.core.$strip>, z.ZodObject<{
677
174
  type: z.ZodLiteral<"STRING_ERROR">;
678
175
  raw: z.ZodString;
679
- }, "strip", z.ZodTypeAny, {
680
- type: "STRING_ERROR";
681
- raw: string;
682
- }, {
683
- type: "STRING_ERROR";
684
- raw: string;
685
- }>, z.ZodObject<{
176
+ }, z.core.$strip>, z.ZodObject<{
686
177
  type: z.ZodLiteral<"INTERNAL_ERROR">;
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"]>;
178
+ code: z.ZodEnum<{
179
+ BATCH_ITEM_COULD_NOT_TRIGGER: "BATCH_ITEM_COULD_NOT_TRIGGER";
180
+ CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY";
181
+ COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR";
182
+ COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK";
183
+ COULD_NOT_IMPORT_TASK: "COULD_NOT_IMPORT_TASK";
184
+ DISK_SPACE_EXCEEDED: "DISK_SPACE_EXCEEDED";
185
+ GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT";
186
+ HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR";
187
+ MAX_DURATION_EXCEEDED: "MAX_DURATION_EXCEEDED";
188
+ OUTDATED_SDK_VERSION: "OUTDATED_SDK_VERSION";
189
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
190
+ POD_EVICTED: "POD_EVICTED";
191
+ POD_UNKNOWN_ERROR: "POD_UNKNOWN_ERROR";
192
+ RECURSIVE_WAIT_DEADLOCK: "RECURSIVE_WAIT_DEADLOCK";
193
+ TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING";
194
+ TASK_DEQUEUED_INVALID_STATE: "TASK_DEQUEUED_INVALID_STATE";
195
+ TASK_DEQUEUED_QUEUE_NOT_FOUND: "TASK_DEQUEUED_QUEUE_NOT_FOUND";
196
+ TASK_DID_CONCURRENT_WAIT: "TASK_DID_CONCURRENT_WAIT";
197
+ TASK_EXECUTION_ABORTED: "TASK_EXECUTION_ABORTED";
198
+ TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED";
199
+ TASK_HAS_N0_EXECUTION_SNAPSHOT: "TASK_HAS_N0_EXECUTION_SNAPSHOT";
200
+ TASK_INPUT_ERROR: "TASK_INPUT_ERROR";
201
+ TASK_MIDDLEWARE_ERROR: "TASK_MIDDLEWARE_ERROR";
202
+ TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR";
203
+ TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE: "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE";
204
+ TASK_PROCESS_MAYBE_OOM_KILLED: "TASK_PROCESS_MAYBE_OOM_KILLED";
205
+ TASK_PROCESS_OOM_KILLED: "TASK_PROCESS_OOM_KILLED";
206
+ TASK_PROCESS_SIGKILL_TIMEOUT: "TASK_PROCESS_SIGKILL_TIMEOUT";
207
+ TASK_PROCESS_SIGSEGV: "TASK_PROCESS_SIGSEGV";
208
+ TASK_PROCESS_SIGTERM: "TASK_PROCESS_SIGTERM";
209
+ TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED";
210
+ TASK_RUN_CRASHED: "TASK_RUN_CRASHED";
211
+ TASK_RUN_DEQUEUED_MAX_RETRIES: "TASK_RUN_DEQUEUED_MAX_RETRIES";
212
+ TASK_RUN_HEARTBEAT_TIMEOUT: "TASK_RUN_HEARTBEAT_TIMEOUT";
213
+ TASK_RUN_STALLED_EXECUTING: "TASK_RUN_STALLED_EXECUTING";
214
+ TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS: "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS";
215
+ TASK_RUN_UNCAUGHT_EXCEPTION: "TASK_RUN_UNCAUGHT_EXCEPTION";
216
+ UNSPECIFIED_ERROR: "UNSPECIFIED_ERROR";
217
+ }>;
688
218
  message: z.ZodOptional<z.ZodString>;
689
219
  stackTrace: z.ZodOptional<z.ZodString>;
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
- }>]>;
220
+ }, z.core.$strip>]>;
701
221
  retry: z.ZodOptional<z.ZodObject<{
702
222
  timestamp: z.ZodNumber;
703
223
  delay: z.ZodNumber;
704
224
  error: z.ZodOptional<z.ZodUnknown>;
705
- }, "strip", z.ZodTypeAny, {
706
- timestamp: number;
707
- delay: number;
708
- error?: unknown;
709
- }, {
710
- timestamp: number;
711
- delay: number;
712
- error?: unknown;
713
- }>>;
225
+ }, z.core.$strip>>;
714
226
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
715
227
  usage: z.ZodOptional<z.ZodObject<{
716
228
  durationMs: z.ZodNumber;
717
- }, "strip", z.ZodTypeAny, {
718
- durationMs: number;
719
- }, {
720
- durationMs: number;
721
- }>>;
229
+ }, z.core.$strip>>;
722
230
  taskIdentifier: z.ZodOptional<z.ZodString>;
723
231
  metadata: z.ZodOptional<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<{
232
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
233
+ operations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
726
234
  type: z.ZodLiteral<"update">;
727
235
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
728
- }, "strip", z.ZodTypeAny, {
729
- type: "update";
730
- value: Record<string, unknown>;
731
- }, {
732
- type: "update";
733
- value: Record<string, unknown>;
734
- }>, z.ZodObject<{
236
+ }, z.core.$strip>, z.ZodObject<{
735
237
  type: z.ZodLiteral<"set">;
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<{
238
+ key: z.ZodString;
239
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
240
+ }, z.core.$strip>, z.ZodObject<{
747
241
  type: z.ZodLiteral<"delete">;
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<{
242
+ key: z.ZodString;
243
+ }, z.core.$strip>, z.ZodObject<{
756
244
  type: z.ZodLiteral<"append">;
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<{
245
+ key: z.ZodString;
246
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
247
+ }, z.core.$strip>, z.ZodObject<{
768
248
  type: z.ZodLiteral<"remove">;
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<{
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<{
780
252
  type: z.ZodLiteral<"increment">;
781
- key: z.ZodEffects<z.ZodString, string, string>;
253
+ key: z.ZodString;
782
254
  value: z.ZodNumber;
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<{
255
+ }, z.core.$strip>]>>>;
256
+ parentOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
793
257
  type: z.ZodLiteral<"update">;
794
258
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
795
- }, "strip", z.ZodTypeAny, {
796
- type: "update";
797
- value: Record<string, unknown>;
798
- }, {
799
- type: "update";
800
- value: Record<string, unknown>;
801
- }>, z.ZodObject<{
259
+ }, z.core.$strip>, z.ZodObject<{
802
260
  type: z.ZodLiteral<"set">;
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<{
261
+ key: z.ZodString;
262
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
263
+ }, z.core.$strip>, z.ZodObject<{
814
264
  type: z.ZodLiteral<"delete">;
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<{
265
+ key: z.ZodString;
266
+ }, z.core.$strip>, z.ZodObject<{
823
267
  type: z.ZodLiteral<"append">;
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<{
268
+ key: z.ZodString;
269
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
270
+ }, z.core.$strip>, z.ZodObject<{
835
271
  type: z.ZodLiteral<"remove">;
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<{
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<{
847
275
  type: z.ZodLiteral<"increment">;
848
- key: z.ZodEffects<z.ZodString, string, string>;
276
+ key: z.ZodString;
849
277
  value: z.ZodNumber;
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<{
278
+ }, z.core.$strip>]>>>;
279
+ rootOperations: z.ZodOptional<z.ZodArray<import("../../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
860
280
  type: z.ZodLiteral<"update">;
861
281
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
862
- }, "strip", z.ZodTypeAny, {
863
- type: "update";
864
- value: Record<string, unknown>;
865
- }, {
866
- type: "update";
867
- value: Record<string, unknown>;
868
- }>, z.ZodObject<{
282
+ }, z.core.$strip>, z.ZodObject<{
869
283
  type: z.ZodLiteral<"set">;
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<{
284
+ key: z.ZodString;
285
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
286
+ }, z.core.$strip>, z.ZodObject<{
881
287
  type: z.ZodLiteral<"delete">;
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<{
288
+ key: z.ZodString;
289
+ }, z.core.$strip>, z.ZodObject<{
890
290
  type: z.ZodLiteral<"append">;
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<{
291
+ key: z.ZodString;
292
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
293
+ }, z.core.$strip>, z.ZodObject<{
902
294
  type: z.ZodLiteral<"remove">;
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<{
295
+ key: z.ZodString;
296
+ value: z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>;
297
+ }, z.core.$strip>, z.ZodObject<{
914
298
  type: z.ZodLiteral<"increment">;
915
- key: z.ZodEffects<z.ZodString, string, string>;
299
+ key: z.ZodString;
916
300
  value: z.ZodNumber;
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
- }>>;
301
+ }, z.core.$strip>]>>>;
302
+ }, z.core.$strip>>;
1069
303
  flushedMetadata: z.ZodOptional<z.ZodObject<{
1070
304
  data: z.ZodOptional<z.ZodString>;
1071
305
  dataType: z.ZodString;
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
- }>;
306
+ }, z.core.$strip>>;
307
+ }, z.core.$strip>]>;
308
+ snapshotRoute: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
309
+ version: 1;
310
+ residency: "mirrored" | "postgres" | "redis-primary";
311
+ organizationId: string;
312
+ } | undefined, unknown>>>;
313
+ }, z.core.$strip>;
1679
314
  export type WorkloadRunAttemptCompleteRequestBody = z.infer<typeof WorkloadRunAttemptCompleteRequestBody>;
1680
315
  export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
1681
316
  result: z.ZodIntersection<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<{
317
+ attemptStatus: z.ZodEnum<{
318
+ RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
319
+ RETRY_QUEUED: "RETRY_QUEUED";
320
+ RUN_FINISHED: "RUN_FINISHED";
321
+ RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
322
+ }>;
323
+ }, z.core.$strip>, z.ZodObject<{
1688
324
  snapshot: z.ZodObject<{
1689
325
  id: z.ZodString;
1690
326
  friendlyId: z.ZodString;
1691
- executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
327
+ executionStatus: z.ZodEnum<{
328
+ DELAYED: "DELAYED";
329
+ EXECUTING: "EXECUTING";
330
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
331
+ FINISHED: "FINISHED";
332
+ PENDING_CANCEL: "PENDING_CANCEL";
333
+ PENDING_EXECUTING: "PENDING_EXECUTING";
334
+ QUEUED: "QUEUED";
335
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
336
+ RUN_CREATED: "RUN_CREATED";
337
+ SUSPENDED: "SUSPENDED";
338
+ }>;
1692
339
  description: z.ZodString;
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
- }>;
340
+ createdAt: z.ZodCoercedDate<unknown>;
341
+ }, z.core.$strip>;
1707
342
  run: z.ZodObject<{
1708
343
  id: z.ZodString;
1709
344
  friendlyId: z.ZodString;
1710
- status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
345
+ status: z.ZodEnum<{
346
+ CANCELED: "CANCELED";
347
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
348
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
349
+ CRASHED: "CRASHED";
350
+ DELAYED: "DELAYED";
351
+ DEQUEUED: "DEQUEUED";
352
+ EXECUTING: "EXECUTING";
353
+ EXPIRED: "EXPIRED";
354
+ INTERRUPTED: "INTERRUPTED";
355
+ PAUSED: "PAUSED";
356
+ PENDING: "PENDING";
357
+ PENDING_VERSION: "PENDING_VERSION";
358
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
359
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
360
+ TIMED_OUT: "TIMED_OUT";
361
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
362
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
363
+ }>;
1711
364
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1712
365
  taskEventStore: z.ZodOptional<z.ZodString>;
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
- }>;
366
+ }, z.core.$strip>;
367
+ }, z.core.$strip>>;
368
+ }, z.core.$strip>;
1796
369
  export type WorkloadRunAttemptCompleteResponseBody = z.infer<typeof WorkloadRunAttemptCompleteResponseBody>;
1797
370
  export declare const WorkloadRunAttemptStartRequestBody: z.ZodObject<{
1798
371
  isWarmStart: z.ZodOptional<z.ZodBoolean>;
1799
- }, "strip", z.ZodTypeAny, {
1800
- isWarmStart?: boolean | undefined;
1801
- }, {
1802
- isWarmStart?: boolean | undefined;
1803
- }>;
372
+ snapshotRoute: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
373
+ version: 1;
374
+ residency: "mirrored" | "postgres" | "redis-primary";
375
+ organizationId: string;
376
+ } | undefined, unknown>>>;
377
+ }, z.core.$strip>;
1804
378
  export type WorkloadRunAttemptStartRequestBody = z.infer<typeof WorkloadRunAttemptStartRequestBody>;
1805
379
  export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1806
380
  snapshot: z.ZodObject<{
1807
381
  id: z.ZodString;
1808
382
  friendlyId: z.ZodString;
1809
- executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
383
+ executionStatus: z.ZodEnum<{
384
+ DELAYED: "DELAYED";
385
+ EXECUTING: "EXECUTING";
386
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
387
+ FINISHED: "FINISHED";
388
+ PENDING_CANCEL: "PENDING_CANCEL";
389
+ PENDING_EXECUTING: "PENDING_EXECUTING";
390
+ QUEUED: "QUEUED";
391
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
392
+ RUN_CREATED: "RUN_CREATED";
393
+ SUSPENDED: "SUSPENDED";
394
+ }>;
1810
395
  description: z.ZodString;
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
- }>;
396
+ createdAt: z.ZodCoercedDate<unknown>;
397
+ }, z.core.$strip>;
1825
398
  run: z.ZodObject<{
1826
399
  id: z.ZodString;
1827
400
  friendlyId: z.ZodString;
1828
- status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
401
+ status: z.ZodEnum<{
402
+ CANCELED: "CANCELED";
403
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
404
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
405
+ CRASHED: "CRASHED";
406
+ DELAYED: "DELAYED";
407
+ DEQUEUED: "DEQUEUED";
408
+ EXECUTING: "EXECUTING";
409
+ EXPIRED: "EXPIRED";
410
+ INTERRUPTED: "INTERRUPTED";
411
+ PAUSED: "PAUSED";
412
+ PENDING: "PENDING";
413
+ PENDING_VERSION: "PENDING_VERSION";
414
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
415
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
416
+ TIMED_OUT: "TIMED_OUT";
417
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
418
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
419
+ }>;
1829
420
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1830
421
  taskEventStore: z.ZodOptional<z.ZodString>;
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<{
422
+ }, z.core.$strip>;
423
+ }, z.core.$strip>, z.ZodObject<{
1875
424
  execution: z.ZodObject<{
1876
425
  task: z.ZodObject<{
1877
426
  id: z.ZodString;
1878
427
  filePath: z.ZodString;
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">>;
428
+ }, z.core.$loose>;
1886
429
  queue: z.ZodObject<{
1887
430
  id: z.ZodString;
1888
431
  name: z.ZodString;
1889
- }, "strip", z.ZodTypeAny, {
1890
- id: string;
1891
- name: string;
1892
- }, {
1893
- id: string;
1894
- name: string;
1895
- }>;
432
+ }, z.core.$strip>;
1896
433
  environment: z.ZodObject<{
1897
434
  id: z.ZodString;
1898
435
  slug: z.ZodString;
1899
- type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
436
+ type: z.ZodEnum<{
437
+ DEVELOPMENT: "DEVELOPMENT";
438
+ PREVIEW: "PREVIEW";
439
+ PRODUCTION: "PRODUCTION";
440
+ STAGING: "STAGING";
441
+ }>;
1900
442
  branchName: z.ZodOptional<z.ZodString>;
1901
443
  git: z.ZodOptional<z.ZodObject<{
1902
444
  provider: z.ZodOptional<z.ZodString>;
1903
- source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
445
+ source: z.ZodOptional<z.ZodEnum<{
446
+ github_actions: "github_actions";
447
+ local: "local";
448
+ trigger_github_app: "trigger_github_app";
449
+ }>>;
1904
450
  ghUsername: z.ZodOptional<z.ZodString>;
1905
451
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
1906
452
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -1911,129 +457,41 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
1911
457
  remoteUrl: z.ZodOptional<z.ZodString>;
1912
458
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
1913
459
  pullRequestTitle: z.ZodOptional<z.ZodString>;
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
- }>;
460
+ pullRequestState: z.ZodOptional<z.ZodEnum<{
461
+ closed: "closed";
462
+ merged: "merged";
463
+ open: "open";
464
+ }>>;
465
+ }, z.core.$strip>>;
466
+ }, z.core.$strip>;
1985
467
  organization: z.ZodObject<{
1986
468
  id: z.ZodString;
1987
469
  slug: z.ZodString;
1988
470
  name: z.ZodString;
1989
- }, "strip", z.ZodTypeAny, {
1990
- id: string;
1991
- slug: string;
1992
- name: string;
1993
- }, {
1994
- id: string;
1995
- slug: string;
1996
- name: string;
1997
- }>;
471
+ }, z.core.$strip>;
1998
472
  project: z.ZodObject<{
1999
473
  id: z.ZodString;
2000
474
  ref: z.ZodString;
2001
475
  slug: z.ZodString;
2002
476
  name: z.ZodString;
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
- }>;
477
+ }, z.core.$strip>;
2014
478
  machine: z.ZodObject<{
2015
- name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
479
+ name: z.ZodEnum<{
480
+ "large-1x": "large-1x";
481
+ "large-2x": "large-2x";
482
+ "medium-1x": "medium-1x";
483
+ "medium-2x": "medium-2x";
484
+ micro: "micro";
485
+ "small-1x": "small-1x";
486
+ "small-2x": "small-2x";
487
+ }>;
2016
488
  cpu: z.ZodNumber;
2017
489
  memory: z.ZodNumber;
2018
490
  centsPerMs: z.ZodNumber;
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
- }>;
491
+ }, z.core.$strip>;
2030
492
  batch: z.ZodOptional<z.ZodObject<{
2031
493
  id: z.ZodString;
2032
- }, "strip", z.ZodTypeAny, {
2033
- id: string;
2034
- }, {
2035
- id: string;
2036
- }>>;
494
+ }, z.core.$strip>>;
2037
495
  deployment: z.ZodOptional<z.ZodObject<{
2038
496
  id: z.ZodString;
2039
497
  shortCode: z.ZodString;
@@ -2042,7 +500,11 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2042
500
  runtimeVersion: z.ZodString;
2043
501
  git: z.ZodOptional<z.ZodObject<{
2044
502
  provider: z.ZodOptional<z.ZodString>;
2045
- source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
503
+ source: z.ZodOptional<z.ZodEnum<{
504
+ github_actions: "github_actions";
505
+ local: "local";
506
+ trigger_github_app: "trigger_github_app";
507
+ }>>;
2046
508
  ghUsername: z.ZodOptional<z.ZodString>;
2047
509
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
2048
510
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -2053,103 +515,36 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2053
515
  remoteUrl: z.ZodOptional<z.ZodString>;
2054
516
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
2055
517
  pullRequestTitle: z.ZodOptional<z.ZodString>;
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
- }>>;
518
+ pullRequestState: z.ZodOptional<z.ZodEnum<{
519
+ closed: "closed";
520
+ merged: "merged";
521
+ open: "open";
522
+ }>>;
523
+ }, z.core.$strip>>;
524
+ externalId: z.ZodOptional<z.ZodString>;
525
+ }, z.core.$strip>>;
2129
526
  attempt: z.ZodObject<{
2130
527
  number: z.ZodNumber;
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">>;
528
+ startedAt: z.ZodCoercedDate<unknown>;
529
+ }, z.core.$loose>;
2139
530
  run: z.ZodIntersection<z.ZodObject<{
2140
531
  id: z.ZodString;
2141
532
  payload: z.ZodString;
2142
533
  payloadType: z.ZodString;
2143
- tags: z.ZodArray<z.ZodString, "many">;
534
+ tags: z.ZodArray<z.ZodString>;
2144
535
  isTest: z.ZodDefault<z.ZodBoolean>;
2145
536
  isReplay: z.ZodDefault<z.ZodBoolean>;
2146
- createdAt: z.ZodDate;
2147
- startedAt: z.ZodDefault<z.ZodDate>;
537
+ createdAt: z.ZodCoercedDate<unknown>;
538
+ startedAt: z.ZodDefault<z.ZodCoercedDate<unknown>>;
2148
539
  idempotencyKey: z.ZodOptional<z.ZodString>;
2149
- idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
540
+ idempotencyKeyScope: z.ZodOptional<z.ZodEnum<{
541
+ attempt: "attempt";
542
+ global: "global";
543
+ run: "run";
544
+ }>>;
2150
545
  maxAttempts: z.ZodOptional<z.ZodNumber>;
2151
546
  version: z.ZodOptional<z.ZodString>;
2152
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
547
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../../index.js").DeserializedJson, unknown>>>>;
2153
548
  maxDuration: z.ZodOptional<z.ZodNumber>;
2154
549
  priority: z.ZodOptional<z.ZodNumber>;
2155
550
  baseCostInCents: z.ZodOptional<z.ZodNumber>;
@@ -2158,496 +553,14 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2158
553
  durationMs: z.ZodOptional<z.ZodNumber>;
2159
554
  costInCents: z.ZodOptional<z.ZodNumber>;
2160
555
  region: z.ZodOptional<z.ZodString>;
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<{
556
+ }, z.core.$strip>, z.ZodObject<{
2206
557
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2207
558
  realtimeStreamsVersion: z.ZodOptional<z.ZodString>;
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<{
559
+ }, z.core.$strip>>;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>>, z.ZodObject<{
2645
562
  envVars: z.ZodRecord<z.ZodString, z.ZodString>;
2646
- }, "strip", z.ZodTypeAny, {
2647
- envVars: Record<string, string>;
2648
- }, {
2649
- envVars: Record<string, string>;
2650
- }>>;
563
+ }, z.core.$strip>>;
2651
564
  export type WorkloadRunAttemptStartResponseBody = z.infer<typeof WorkloadRunAttemptStartResponseBody>;
2652
565
  export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2653
566
  execution: z.ZodObject<{
@@ -2655,80 +568,73 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2655
568
  snapshot: z.ZodObject<{
2656
569
  id: z.ZodString;
2657
570
  friendlyId: z.ZodString;
2658
- executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
571
+ executionStatus: z.ZodEnum<{
572
+ DELAYED: "DELAYED";
573
+ EXECUTING: "EXECUTING";
574
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
575
+ FINISHED: "FINISHED";
576
+ PENDING_CANCEL: "PENDING_CANCEL";
577
+ PENDING_EXECUTING: "PENDING_EXECUTING";
578
+ QUEUED: "QUEUED";
579
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
580
+ RUN_CREATED: "RUN_CREATED";
581
+ SUSPENDED: "SUSPENDED";
582
+ }>;
2659
583
  description: z.ZodString;
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
- }>;
584
+ createdAt: z.ZodCoercedDate<unknown>;
585
+ }, z.core.$strip>;
2674
586
  run: z.ZodObject<{
2675
587
  id: z.ZodString;
2676
588
  friendlyId: z.ZodString;
2677
- status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
589
+ status: z.ZodEnum<{
590
+ CANCELED: "CANCELED";
591
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
592
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
593
+ CRASHED: "CRASHED";
594
+ DELAYED: "DELAYED";
595
+ DEQUEUED: "DEQUEUED";
596
+ EXECUTING: "EXECUTING";
597
+ EXPIRED: "EXPIRED";
598
+ INTERRUPTED: "INTERRUPTED";
599
+ PAUSED: "PAUSED";
600
+ PENDING: "PENDING";
601
+ PENDING_VERSION: "PENDING_VERSION";
602
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
603
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
604
+ TIMED_OUT: "TIMED_OUT";
605
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
606
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
607
+ }>;
2678
608
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2679
609
  taskEventStore: z.ZodOptional<z.ZodString>;
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
- }>;
610
+ }, z.core.$strip>;
2693
611
  batch: z.ZodOptional<z.ZodObject<{
2694
612
  id: z.ZodString;
2695
613
  friendlyId: z.ZodString;
2696
- }, "strip", z.ZodTypeAny, {
2697
- id: string;
2698
- friendlyId: string;
2699
- }, {
2700
- id: string;
2701
- friendlyId: string;
2702
- }>>;
614
+ }, z.core.$strip>>;
2703
615
  checkpoint: z.ZodOptional<z.ZodObject<{
2704
- type: z.ZodEnum<[import("../../index.js").CheckpointTypeEnum]>;
616
+ type: z.ZodEnum<{
617
+ COMPUTE: "COMPUTE";
618
+ DOCKER: "DOCKER";
619
+ KUBERNETES: "KUBERNETES";
620
+ }>;
2705
621
  location: z.ZodString;
2706
622
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2707
623
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2708
- } & {
2709
624
  id: z.ZodString;
2710
625
  friendlyId: z.ZodString;
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
- }>>;
626
+ }, z.core.$strip>>;
2726
627
  completedWaitpoints: z.ZodArray<z.ZodObject<{
2727
628
  id: z.ZodString;
2728
629
  index: z.ZodOptional<z.ZodNumber>;
2729
630
  friendlyId: z.ZodString;
2730
- type: z.ZodEnum<[import("../../index.js").WaitpointType]>;
2731
- completedAt: z.ZodDate;
631
+ type: z.ZodEnum<{
632
+ BATCH: "BATCH";
633
+ DATETIME: "DATETIME";
634
+ MANUAL: "MANUAL";
635
+ RUN: "RUN";
636
+ }>;
637
+ completedAt: z.ZodCoercedDate<unknown>;
2732
638
  idempotencyKey: z.ZodOptional<z.ZodString>;
2733
639
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
2734
640
  id: z.ZodString;
@@ -2736,880 +642,99 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2736
642
  batch: z.ZodOptional<z.ZodObject<{
2737
643
  id: z.ZodString;
2738
644
  friendlyId: z.ZodString;
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>;
645
+ }, z.core.$strip>>;
646
+ }, z.core.$strip>>;
647
+ completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2762
648
  completedByBatch: z.ZodOptional<z.ZodObject<{
2763
649
  id: z.ZodString;
2764
650
  friendlyId: z.ZodString;
2765
- }, "strip", z.ZodTypeAny, {
2766
- id: string;
2767
- friendlyId: string;
2768
- }, {
2769
- id: string;
2770
- friendlyId: string;
2771
- }>>;
651
+ }, z.core.$strip>>;
2772
652
  output: z.ZodOptional<z.ZodString>;
2773
653
  outputType: z.ZodOptional<z.ZodString>;
2774
654
  outputIsError: z.ZodBoolean;
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
- }>;
655
+ }, z.core.$strip>>;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>;
3036
658
  export type WorkloadRunLatestSnapshotResponseBody = z.infer<typeof WorkloadRunLatestSnapshotResponseBody>;
3037
659
  export declare const WorkloadDebugLogRequestBody: z.ZodObject<{
3038
- time: z.ZodDate;
660
+ time: z.ZodCoercedDate<unknown>;
3039
661
  message: z.ZodString;
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
- }>;
662
+ 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>>>]>>>>;
663
+ }, z.core.$strip>;
3050
664
  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>;
3533
665
  export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3534
666
  snapshots: z.ZodArray<z.ZodObject<{
3535
667
  version: z.ZodLiteral<"1">;
3536
668
  snapshot: z.ZodObject<{
3537
669
  id: z.ZodString;
3538
670
  friendlyId: z.ZodString;
3539
- executionStatus: z.ZodEnum<[import("../../index.js").TaskRunExecutionStatus]>;
671
+ executionStatus: z.ZodEnum<{
672
+ DELAYED: "DELAYED";
673
+ EXECUTING: "EXECUTING";
674
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
675
+ FINISHED: "FINISHED";
676
+ PENDING_CANCEL: "PENDING_CANCEL";
677
+ PENDING_EXECUTING: "PENDING_EXECUTING";
678
+ QUEUED: "QUEUED";
679
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
680
+ RUN_CREATED: "RUN_CREATED";
681
+ SUSPENDED: "SUSPENDED";
682
+ }>;
3540
683
  description: z.ZodString;
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
- }>;
684
+ createdAt: z.ZodCoercedDate<unknown>;
685
+ }, z.core.$strip>;
3555
686
  run: z.ZodObject<{
3556
687
  id: z.ZodString;
3557
688
  friendlyId: z.ZodString;
3558
- status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
689
+ status: z.ZodEnum<{
690
+ CANCELED: "CANCELED";
691
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
692
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
693
+ CRASHED: "CRASHED";
694
+ DELAYED: "DELAYED";
695
+ DEQUEUED: "DEQUEUED";
696
+ EXECUTING: "EXECUTING";
697
+ EXPIRED: "EXPIRED";
698
+ INTERRUPTED: "INTERRUPTED";
699
+ PAUSED: "PAUSED";
700
+ PENDING: "PENDING";
701
+ PENDING_VERSION: "PENDING_VERSION";
702
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
703
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
704
+ TIMED_OUT: "TIMED_OUT";
705
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
706
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
707
+ }>;
3559
708
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3560
709
  taskEventStore: z.ZodOptional<z.ZodString>;
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
- }>;
710
+ }, z.core.$strip>;
3574
711
  batch: z.ZodOptional<z.ZodObject<{
3575
712
  id: z.ZodString;
3576
713
  friendlyId: z.ZodString;
3577
- }, "strip", z.ZodTypeAny, {
3578
- id: string;
3579
- friendlyId: string;
3580
- }, {
3581
- id: string;
3582
- friendlyId: string;
3583
- }>>;
714
+ }, z.core.$strip>>;
3584
715
  checkpoint: z.ZodOptional<z.ZodObject<{
3585
- type: z.ZodEnum<[import("../../index.js").CheckpointTypeEnum]>;
716
+ type: z.ZodEnum<{
717
+ COMPUTE: "COMPUTE";
718
+ DOCKER: "DOCKER";
719
+ KUBERNETES: "KUBERNETES";
720
+ }>;
3586
721
  location: z.ZodString;
3587
722
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3588
723
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3589
- } & {
3590
724
  id: z.ZodString;
3591
725
  friendlyId: z.ZodString;
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
- }>>;
726
+ }, z.core.$strip>>;
3607
727
  completedWaitpoints: z.ZodArray<z.ZodObject<{
3608
728
  id: z.ZodString;
3609
729
  index: z.ZodOptional<z.ZodNumber>;
3610
730
  friendlyId: z.ZodString;
3611
- type: z.ZodEnum<[import("../../index.js").WaitpointType]>;
3612
- completedAt: z.ZodDate;
731
+ type: z.ZodEnum<{
732
+ BATCH: "BATCH";
733
+ DATETIME: "DATETIME";
734
+ MANUAL: "MANUAL";
735
+ RUN: "RUN";
736
+ }>;
737
+ completedAt: z.ZodCoercedDate<unknown>;
3613
738
  idempotencyKey: z.ZodOptional<z.ZodString>;
3614
739
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
3615
740
  id: z.ZodString;
@@ -3617,301 +742,17 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3617
742
  batch: z.ZodOptional<z.ZodObject<{
3618
743
  id: z.ZodString;
3619
744
  friendlyId: z.ZodString;
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>;
745
+ }, z.core.$strip>>;
746
+ }, z.core.$strip>>;
747
+ completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3643
748
  completedByBatch: z.ZodOptional<z.ZodObject<{
3644
749
  id: z.ZodString;
3645
750
  friendlyId: z.ZodString;
3646
- }, "strip", z.ZodTypeAny, {
3647
- id: string;
3648
- friendlyId: string;
3649
- }, {
3650
- id: string;
3651
- friendlyId: string;
3652
- }>>;
751
+ }, z.core.$strip>>;
3653
752
  output: z.ZodOptional<z.ZodString>;
3654
753
  outputType: z.ZodOptional<z.ZodString>;
3655
754
  outputIsError: z.ZodBoolean;
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
- }>;
755
+ }, z.core.$strip>>;
756
+ }, z.core.$strip>>;
757
+ }, z.core.$strip>;
3917
758
  export type WorkloadRunSnapshotsSinceResponseBody = z.infer<typeof WorkloadRunSnapshotsSinceResponseBody>;