@trigger.dev/core 3.3.16 → 4.0.0-v4-beta.0

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