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