@trigger.dev/core 0.0.0-prerelease-20250228095546 → 0.0.0-prerelease-20250321122618

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