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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/dist/commonjs/debounce.d.ts +2 -0
  2. package/dist/commonjs/debounce.js +19 -0
  3. package/dist/commonjs/debounce.js.map +1 -0
  4. package/dist/commonjs/index.d.ts +2 -7
  5. package/dist/commonjs/index.js +2 -7
  6. package/dist/commonjs/index.js.map +1 -1
  7. package/dist/commonjs/retry.d.ts +0 -2
  8. package/dist/commonjs/retry.js +0 -24
  9. package/dist/commonjs/retry.js.map +1 -1
  10. package/dist/commonjs/schemas/index.d.ts +0 -16
  11. package/dist/commonjs/schemas/index.js +0 -16
  12. package/dist/commonjs/schemas/index.js.map +1 -1
  13. package/dist/commonjs/types.d.ts +0 -6
  14. package/dist/commonjs/utils.d.ts +0 -2
  15. package/dist/commonjs/utils.js +0 -27
  16. package/dist/commonjs/utils.js.map +1 -1
  17. package/dist/commonjs/v3/apiClient/core.d.ts +9 -1
  18. package/dist/commonjs/v3/apiClient/core.js +41 -1
  19. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  20. package/dist/commonjs/v3/apiClient/index.d.ts +102 -49
  21. package/dist/commonjs/v3/apiClient/index.js +78 -5
  22. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  23. package/dist/commonjs/v3/apiClient/runStream.d.ts +1 -1
  24. package/dist/commonjs/v3/apiClient/runStream.js +10 -3
  25. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  26. package/dist/commonjs/v3/apiClient/stream.d.ts +1 -3
  27. package/dist/commonjs/v3/apiClient/stream.js +2 -38
  28. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  29. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  30. package/dist/commonjs/v3/apps/exec.d.ts +30 -0
  31. package/dist/commonjs/v3/apps/exec.js +82 -0
  32. package/dist/commonjs/v3/apps/exec.js.map +1 -0
  33. package/dist/commonjs/v3/apps/http.d.ts +8 -6
  34. package/dist/commonjs/v3/apps/http.js +38 -2
  35. package/dist/commonjs/v3/apps/http.js.map +1 -1
  36. package/dist/commonjs/v3/apps/index.d.ts +1 -3
  37. package/dist/commonjs/v3/apps/index.js +1 -3
  38. package/dist/commonjs/v3/apps/index.js.map +1 -1
  39. package/dist/commonjs/v3/build/flags.d.ts +20 -0
  40. package/dist/commonjs/v3/build/flags.js +49 -0
  41. package/dist/commonjs/v3/build/flags.js.map +1 -0
  42. package/dist/commonjs/v3/build/flags.test.d.ts +1 -0
  43. package/dist/commonjs/v3/build/flags.test.js +46 -0
  44. package/dist/commonjs/v3/build/flags.test.js.map +1 -0
  45. package/dist/commonjs/v3/build/index.d.ts +1 -0
  46. package/dist/commonjs/v3/build/index.js +1 -0
  47. package/dist/commonjs/v3/build/index.js.map +1 -1
  48. package/dist/commonjs/v3/build/resolvedConfig.d.ts +3 -1
  49. package/dist/commonjs/v3/build/runtime.d.ts +2 -2
  50. package/dist/commonjs/v3/build/runtime.js +11 -4
  51. package/dist/commonjs/v3/build/runtime.js.map +1 -1
  52. package/dist/commonjs/v3/config.d.ts +5 -0
  53. package/dist/commonjs/v3/errors.d.ts +1 -0
  54. package/dist/commonjs/v3/errors.js +70 -1
  55. package/dist/commonjs/v3/errors.js.map +1 -1
  56. package/dist/commonjs/v3/idempotencyKeys.d.ts +1 -0
  57. package/dist/commonjs/v3/idempotencyKeys.js +19 -0
  58. package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
  59. package/dist/commonjs/v3/index.d.ts +6 -2
  60. package/dist/commonjs/v3/index.js +5 -1
  61. package/dist/commonjs/v3/index.js.map +1 -1
  62. package/dist/commonjs/v3/isomorphic/consts.d.ts +2 -0
  63. package/dist/commonjs/v3/isomorphic/consts.js +6 -0
  64. package/dist/commonjs/v3/isomorphic/consts.js.map +1 -0
  65. package/dist/commonjs/v3/{apps → isomorphic}/duration.d.ts +1 -0
  66. package/dist/commonjs/v3/{apps → isomorphic}/duration.js +19 -0
  67. package/dist/commonjs/v3/isomorphic/duration.js.map +1 -0
  68. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +37 -0
  69. package/dist/commonjs/v3/isomorphic/friendlyId.js +104 -0
  70. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -0
  71. package/dist/commonjs/v3/isomorphic/index.d.ts +5 -0
  72. package/dist/commonjs/v3/isomorphic/index.js +22 -0
  73. package/dist/commonjs/v3/isomorphic/index.js.map +1 -0
  74. package/dist/commonjs/v3/isomorphic/maxDuration.d.ts +2 -0
  75. package/dist/commonjs/v3/isomorphic/maxDuration.js +20 -0
  76. package/dist/commonjs/v3/isomorphic/maxDuration.js.map +1 -0
  77. package/dist/commonjs/v3/isomorphic/queueName.d.ts +1 -0
  78. package/dist/commonjs/v3/isomorphic/queueName.js +8 -0
  79. package/dist/commonjs/v3/isomorphic/queueName.js.map +1 -0
  80. package/dist/commonjs/v3/logger/index.d.ts +3 -2
  81. package/dist/commonjs/v3/logger/index.js +5 -2
  82. package/dist/commonjs/v3/logger/index.js.map +1 -1
  83. package/dist/commonjs/v3/logger/taskLogger.d.ts +3 -0
  84. package/dist/commonjs/v3/logger/taskLogger.js +6 -0
  85. package/dist/commonjs/v3/logger/taskLogger.js.map +1 -1
  86. package/dist/commonjs/v3/machines/index.d.ts +27 -0
  87. package/dist/commonjs/v3/machines/index.js +51 -0
  88. package/dist/commonjs/v3/machines/index.js.map +1 -0
  89. package/dist/commonjs/v3/machines/max-old-space.test.d.ts +1 -0
  90. package/dist/commonjs/v3/machines/max-old-space.test.js +44 -0
  91. package/dist/commonjs/v3/machines/max-old-space.test.js.map +1 -0
  92. package/dist/{esm/v3/task-catalog → commonjs/v3/resource-catalog}/catalog.d.ts +7 -3
  93. package/dist/commonjs/v3/resource-catalog/catalog.js.map +1 -0
  94. package/dist/commonjs/v3/resource-catalog/index.d.ts +22 -0
  95. package/dist/commonjs/v3/resource-catalog/index.js +61 -0
  96. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -0
  97. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +17 -0
  98. package/dist/commonjs/v3/{task-catalog/noopTaskCatalog.js → resource-catalog/noopResourceCatalog.js} +17 -5
  99. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -0
  100. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +22 -0
  101. package/dist/{esm/v3/task-catalog/standardTaskCatalog.js → commonjs/v3/resource-catalog/standardResourceCatalog.js} +34 -5
  102. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -0
  103. package/dist/commonjs/v3/resource-catalog-api.d.ts +3 -0
  104. package/dist/commonjs/v3/{task-catalog-api.js → resource-catalog-api.js} +4 -4
  105. package/dist/commonjs/v3/resource-catalog-api.js.map +1 -0
  106. package/dist/commonjs/v3/runEngineWorker/consts.d.ts +10 -0
  107. package/dist/commonjs/v3/runEngineWorker/consts.js +14 -0
  108. package/dist/commonjs/v3/runEngineWorker/consts.js.map +1 -0
  109. package/dist/commonjs/v3/runEngineWorker/index.d.ts +7 -0
  110. package/dist/commonjs/v3/runEngineWorker/index.js +24 -0
  111. package/dist/commonjs/v3/runEngineWorker/index.js.map +1 -0
  112. package/dist/commonjs/v3/runEngineWorker/supervisor/events.d.ts +49 -0
  113. package/dist/commonjs/v3/runEngineWorker/supervisor/events.js +3 -0
  114. package/dist/commonjs/v3/runEngineWorker/supervisor/events.js.map +1 -0
  115. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +347 -0
  116. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +152 -0
  117. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -0
  118. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +24 -0
  119. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +89 -0
  120. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -0
  121. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +3513 -0
  122. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +86 -0
  123. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -0
  124. package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +31 -0
  125. package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +173 -0
  126. package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -0
  127. package/dist/commonjs/v3/runEngineWorker/supervisor/types.d.ts +13 -0
  128. package/dist/commonjs/v3/runEngineWorker/supervisor/types.js +3 -0
  129. package/dist/commonjs/v3/runEngineWorker/supervisor/types.js.map +1 -0
  130. package/dist/commonjs/v3/runEngineWorker/supervisor/util.d.ts +3 -0
  131. package/dist/commonjs/v3/runEngineWorker/supervisor/util.js +39 -0
  132. package/dist/commonjs/v3/runEngineWorker/supervisor/util.js.map +1 -0
  133. package/dist/commonjs/v3/runEngineWorker/types.d.ts +52 -0
  134. package/dist/commonjs/v3/runEngineWorker/types.js +3 -0
  135. package/dist/commonjs/v3/runEngineWorker/types.js.map +1 -0
  136. package/dist/commonjs/v3/runEngineWorker/util.d.ts +4 -0
  137. package/dist/commonjs/v3/runEngineWorker/util.js +15 -0
  138. package/dist/commonjs/v3/runEngineWorker/util.js.map +1 -0
  139. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +262 -0
  140. package/dist/commonjs/v3/runEngineWorker/workload/http.js +106 -0
  141. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -0
  142. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +2991 -0
  143. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +25 -0
  144. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -0
  145. package/dist/commonjs/v3/runEngineWorker/workload/types.d.ts +5 -0
  146. package/dist/commonjs/v3/runEngineWorker/workload/types.js +3 -0
  147. package/dist/commonjs/v3/runEngineWorker/workload/types.js.map +1 -0
  148. package/dist/commonjs/v3/runEngineWorker/workload/util.d.ts +2 -0
  149. package/dist/commonjs/v3/runEngineWorker/workload/util.js +12 -0
  150. package/dist/commonjs/v3/runEngineWorker/workload/util.js.map +1 -0
  151. package/dist/commonjs/v3/runMetadata/index.d.ts +1 -1
  152. package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -1
  153. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  154. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +1 -1
  155. package/dist/commonjs/v3/runMetadata/types.d.ts +1 -1
  156. package/dist/commonjs/v3/runtime/index.d.ts +4 -4
  157. package/dist/commonjs/v3/runtime/index.js +5 -5
  158. package/dist/commonjs/v3/runtime/index.js.map +1 -1
  159. package/dist/commonjs/v3/runtime/managedRuntimeManager.d.ts +30 -0
  160. package/dist/commonjs/v3/runtime/managedRuntimeManager.js +141 -0
  161. package/dist/commonjs/v3/runtime/managedRuntimeManager.js.map +1 -0
  162. package/dist/commonjs/v3/runtime/manager.d.ts +6 -4
  163. package/dist/commonjs/v3/runtime/noopRuntimeManager.d.ts +6 -4
  164. package/dist/commonjs/v3/runtime/noopRuntimeManager.js +4 -5
  165. package/dist/commonjs/v3/runtime/noopRuntimeManager.js.map +1 -1
  166. package/dist/commonjs/v3/schemas/api.d.ts +1528 -288
  167. package/dist/commonjs/v3/schemas/api.js +206 -10
  168. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  169. package/dist/commonjs/v3/schemas/build.d.ts +184 -96
  170. package/dist/commonjs/v3/schemas/build.js +3 -2
  171. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  172. package/dist/commonjs/v3/schemas/checkpoints.d.ts +77 -0
  173. package/dist/commonjs/v3/schemas/checkpoints.js +43 -0
  174. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -0
  175. package/dist/commonjs/v3/schemas/common.d.ts +234 -121
  176. package/dist/commonjs/v3/schemas/common.js +51 -9
  177. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  178. package/dist/commonjs/v3/schemas/fetch.d.ts +23 -23
  179. package/dist/commonjs/v3/schemas/index.d.ts +4 -0
  180. package/dist/commonjs/v3/schemas/index.js +4 -0
  181. package/dist/commonjs/v3/schemas/index.js.map +1 -1
  182. package/dist/commonjs/v3/schemas/messages.d.ts +3589 -2833
  183. package/dist/commonjs/v3/schemas/messages.js +25 -0
  184. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  185. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +18 -18
  186. package/dist/commonjs/v3/schemas/queues.d.ts +93 -0
  187. package/dist/commonjs/v3/schemas/queues.js +68 -0
  188. package/dist/commonjs/v3/schemas/queues.js.map +1 -0
  189. package/dist/commonjs/v3/schemas/resources.d.ts +53 -14
  190. package/dist/commonjs/v3/schemas/resources.js +3 -2
  191. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  192. package/dist/commonjs/v3/schemas/runEngine.d.ts +1605 -0
  193. package/dist/commonjs/v3/schemas/runEngine.js +202 -0
  194. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -0
  195. package/dist/commonjs/v3/schemas/schemas.d.ts +309 -187
  196. package/dist/commonjs/v3/schemas/schemas.js +23 -5
  197. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  198. package/dist/commonjs/v3/schemas/warmStart.d.ts +12 -0
  199. package/dist/commonjs/v3/schemas/warmStart.js +9 -0
  200. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -0
  201. package/dist/commonjs/v3/schemas/webhooks.d.ts +180 -180
  202. package/dist/commonjs/v3/schemas/webhooks.js +4 -5
  203. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  204. package/dist/commonjs/v3/semanticInternalAttributes.d.ts +3 -0
  205. package/dist/commonjs/v3/semanticInternalAttributes.js +3 -0
  206. package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
  207. package/dist/commonjs/v3/serverOnly/checkpointClient.d.ts +25 -0
  208. package/dist/commonjs/v3/serverOnly/checkpointClient.js +96 -0
  209. package/dist/commonjs/v3/serverOnly/checkpointClient.js.map +1 -0
  210. package/dist/commonjs/v3/{apps/checkpoints.js → serverOnly/checkpointTest.js} +2 -2
  211. package/dist/commonjs/v3/serverOnly/checkpointTest.js.map +1 -0
  212. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +38 -0
  213. package/dist/commonjs/v3/serverOnly/httpServer.js +194 -0
  214. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -0
  215. package/dist/commonjs/v3/serverOnly/index.d.ts +3 -0
  216. package/dist/commonjs/v3/serverOnly/index.js +20 -0
  217. package/dist/commonjs/v3/serverOnly/index.js.map +1 -0
  218. package/dist/commonjs/v3/streams/asyncIterableStream.d.ts +4 -0
  219. package/dist/commonjs/v3/streams/asyncIterableStream.js +77 -0
  220. package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -0
  221. package/dist/commonjs/v3/tryCatch.d.ts +5 -0
  222. package/dist/commonjs/v3/tryCatch.js +14 -0
  223. package/dist/commonjs/v3/tryCatch.js.map +1 -0
  224. package/dist/commonjs/v3/types/index.d.ts +1 -0
  225. package/dist/commonjs/v3/types/index.js +1 -0
  226. package/dist/commonjs/v3/types/index.js.map +1 -1
  227. package/dist/commonjs/v3/types/queues.d.ts +43 -0
  228. package/dist/commonjs/v3/types/queues.js +3 -0
  229. package/dist/commonjs/v3/types/queues.js.map +1 -0
  230. package/dist/commonjs/v3/types/tasks.d.ts +52 -25
  231. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  232. package/dist/commonjs/v3/utils/durations.d.ts +1 -0
  233. package/dist/commonjs/v3/utils/durations.js +1 -1
  234. package/dist/commonjs/v3/utils/durations.js.map +1 -1
  235. package/dist/commonjs/v3/utils/globals.d.ts +2 -2
  236. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  237. package/dist/commonjs/v3/utils/heartbeat.d.ts +21 -0
  238. package/dist/commonjs/v3/utils/heartbeat.js +79 -0
  239. package/dist/commonjs/v3/utils/heartbeat.js.map +1 -0
  240. package/dist/commonjs/v3/utils/imageRef.d.ts +8 -0
  241. package/dist/commonjs/v3/utils/imageRef.js +55 -0
  242. package/dist/commonjs/v3/utils/imageRef.js.map +1 -0
  243. package/dist/commonjs/v3/workers/index.d.ts +4 -1
  244. package/dist/commonjs/v3/workers/index.js +8 -3
  245. package/dist/commonjs/v3/workers/index.js.map +1 -1
  246. package/dist/commonjs/v3/workers/taskExecutor.js +3 -3
  247. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  248. package/dist/commonjs/v3/workers/warmStartClient.d.ts +27 -0
  249. package/dist/commonjs/v3/workers/warmStartClient.js +112 -0
  250. package/dist/commonjs/v3/workers/warmStartClient.js.map +1 -0
  251. package/dist/commonjs/v3/zodMessageHandler.d.ts +2 -2
  252. package/dist/commonjs/version.js +1 -1
  253. package/dist/esm/debounce.d.ts +2 -0
  254. package/dist/esm/debounce.js +16 -0
  255. package/dist/esm/debounce.js.map +1 -0
  256. package/dist/esm/index.d.ts +2 -7
  257. package/dist/esm/index.js +2 -7
  258. package/dist/esm/index.js.map +1 -1
  259. package/dist/esm/retry.d.ts +0 -2
  260. package/dist/esm/retry.js +0 -23
  261. package/dist/esm/retry.js.map +1 -1
  262. package/dist/esm/schemas/index.d.ts +0 -16
  263. package/dist/esm/schemas/index.js +0 -16
  264. package/dist/esm/schemas/index.js.map +1 -1
  265. package/dist/esm/types.d.ts +0 -6
  266. package/dist/esm/utils.d.ts +0 -2
  267. package/dist/esm/utils.js +0 -26
  268. package/dist/esm/utils.js.map +1 -1
  269. package/dist/esm/v3/apiClient/core.d.ts +9 -1
  270. package/dist/esm/v3/apiClient/core.js +40 -1
  271. package/dist/esm/v3/apiClient/core.js.map +1 -1
  272. package/dist/esm/v3/apiClient/index.d.ts +102 -49
  273. package/dist/esm/v3/apiClient/index.js +79 -6
  274. package/dist/esm/v3/apiClient/index.js.map +1 -1
  275. package/dist/esm/v3/apiClient/runStream.d.ts +1 -1
  276. package/dist/esm/v3/apiClient/runStream.js +9 -2
  277. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  278. package/dist/esm/v3/apiClient/stream.d.ts +1 -3
  279. package/dist/esm/v3/apiClient/stream.js +1 -35
  280. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  281. package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
  282. package/dist/esm/v3/apps/exec.d.ts +30 -0
  283. package/dist/esm/v3/apps/exec.js +77 -0
  284. package/dist/esm/v3/apps/exec.js.map +1 -0
  285. package/dist/esm/v3/apps/http.d.ts +8 -6
  286. package/dist/esm/v3/apps/http.js +37 -2
  287. package/dist/esm/v3/apps/http.js.map +1 -1
  288. package/dist/esm/v3/apps/index.d.ts +1 -3
  289. package/dist/esm/v3/apps/index.js +1 -3
  290. package/dist/esm/v3/apps/index.js.map +1 -1
  291. package/dist/esm/v3/build/flags.d.ts +20 -0
  292. package/dist/esm/v3/build/flags.js +46 -0
  293. package/dist/esm/v3/build/flags.js.map +1 -0
  294. package/dist/esm/v3/build/flags.test.d.ts +1 -0
  295. package/dist/esm/v3/build/flags.test.js +44 -0
  296. package/dist/esm/v3/build/flags.test.js.map +1 -0
  297. package/dist/esm/v3/build/index.d.ts +1 -0
  298. package/dist/esm/v3/build/index.js +1 -0
  299. package/dist/esm/v3/build/index.js.map +1 -1
  300. package/dist/esm/v3/build/resolvedConfig.d.ts +3 -1
  301. package/dist/esm/v3/build/runtime.d.ts +2 -2
  302. package/dist/esm/v3/build/runtime.js +11 -4
  303. package/dist/esm/v3/build/runtime.js.map +1 -1
  304. package/dist/esm/v3/config.d.ts +5 -0
  305. package/dist/esm/v3/errors.d.ts +1 -0
  306. package/dist/esm/v3/errors.js +69 -1
  307. package/dist/esm/v3/errors.js.map +1 -1
  308. package/dist/esm/v3/idempotencyKeys.d.ts +1 -0
  309. package/dist/esm/v3/idempotencyKeys.js +18 -0
  310. package/dist/esm/v3/idempotencyKeys.js.map +1 -1
  311. package/dist/esm/v3/index.d.ts +6 -2
  312. package/dist/esm/v3/index.js +6 -2
  313. package/dist/esm/v3/index.js.map +1 -1
  314. package/dist/esm/v3/isomorphic/consts.d.ts +2 -0
  315. package/dist/esm/v3/isomorphic/consts.js +3 -0
  316. package/dist/esm/v3/isomorphic/consts.js.map +1 -0
  317. package/dist/esm/v3/{apps → isomorphic}/duration.d.ts +1 -0
  318. package/dist/esm/v3/{apps → isomorphic}/duration.js +18 -0
  319. package/dist/esm/v3/isomorphic/duration.js.map +1 -0
  320. package/dist/esm/v3/isomorphic/friendlyId.d.ts +37 -0
  321. package/dist/esm/v3/isomorphic/friendlyId.js +92 -0
  322. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -0
  323. package/dist/esm/v3/isomorphic/index.d.ts +5 -0
  324. package/dist/esm/v3/isomorphic/index.js +6 -0
  325. package/dist/esm/v3/isomorphic/index.js.map +1 -0
  326. package/dist/esm/v3/isomorphic/maxDuration.d.ts +2 -0
  327. package/dist/esm/v3/isomorphic/maxDuration.js +16 -0
  328. package/dist/esm/v3/isomorphic/maxDuration.js.map +1 -0
  329. package/dist/esm/v3/isomorphic/queueName.d.ts +1 -0
  330. package/dist/esm/v3/isomorphic/queueName.js +5 -0
  331. package/dist/esm/v3/isomorphic/queueName.js.map +1 -0
  332. package/dist/esm/v3/logger/index.d.ts +3 -2
  333. package/dist/esm/v3/logger/index.js +5 -2
  334. package/dist/esm/v3/logger/index.js.map +1 -1
  335. package/dist/esm/v3/logger/taskLogger.d.ts +3 -0
  336. package/dist/esm/v3/logger/taskLogger.js +6 -0
  337. package/dist/esm/v3/logger/taskLogger.js.map +1 -1
  338. package/dist/esm/v3/machines/index.d.ts +27 -0
  339. package/dist/esm/v3/machines/index.js +46 -0
  340. package/dist/esm/v3/machines/index.js.map +1 -0
  341. package/dist/esm/v3/machines/max-old-space.test.d.ts +1 -0
  342. package/dist/esm/v3/machines/max-old-space.test.js +42 -0
  343. package/dist/esm/v3/machines/max-old-space.test.js.map +1 -0
  344. package/dist/{commonjs/v3/task-catalog → esm/v3/resource-catalog}/catalog.d.ts +7 -3
  345. package/dist/esm/v3/resource-catalog/catalog.js.map +1 -0
  346. package/dist/esm/v3/resource-catalog/index.d.ts +22 -0
  347. package/dist/esm/v3/resource-catalog/index.js +57 -0
  348. package/dist/esm/v3/resource-catalog/index.js.map +1 -0
  349. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +17 -0
  350. package/dist/esm/v3/{task-catalog/noopTaskCatalog.js → resource-catalog/noopResourceCatalog.js} +15 -3
  351. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -0
  352. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +22 -0
  353. package/dist/{commonjs/v3/task-catalog/standardTaskCatalog.js → esm/v3/resource-catalog/standardResourceCatalog.js} +30 -9
  354. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -0
  355. package/dist/esm/v3/resource-catalog-api.d.ts +3 -0
  356. package/dist/esm/v3/resource-catalog-api.js +6 -0
  357. package/dist/esm/v3/resource-catalog-api.js.map +1 -0
  358. package/dist/esm/v3/runEngineWorker/consts.d.ts +10 -0
  359. package/dist/esm/v3/runEngineWorker/consts.js +11 -0
  360. package/dist/esm/v3/runEngineWorker/consts.js.map +1 -0
  361. package/dist/esm/v3/runEngineWorker/index.d.ts +7 -0
  362. package/dist/esm/v3/runEngineWorker/index.js +8 -0
  363. package/dist/esm/v3/runEngineWorker/index.js.map +1 -0
  364. package/dist/esm/v3/runEngineWorker/supervisor/events.d.ts +49 -0
  365. package/dist/esm/v3/runEngineWorker/supervisor/events.js +2 -0
  366. package/dist/esm/v3/runEngineWorker/supervisor/events.js.map +1 -0
  367. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +347 -0
  368. package/dist/esm/v3/runEngineWorker/supervisor/http.js +148 -0
  369. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -0
  370. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +24 -0
  371. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +85 -0
  372. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -0
  373. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +3513 -0
  374. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +83 -0
  375. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -0
  376. package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +31 -0
  377. package/dist/esm/v3/runEngineWorker/supervisor/session.js +166 -0
  378. package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -0
  379. package/dist/esm/v3/runEngineWorker/supervisor/types.d.ts +13 -0
  380. package/dist/esm/v3/runEngineWorker/supervisor/types.js +2 -0
  381. package/dist/esm/v3/runEngineWorker/supervisor/types.js.map +1 -0
  382. package/dist/esm/v3/runEngineWorker/supervisor/util.d.ts +3 -0
  383. package/dist/esm/v3/runEngineWorker/supervisor/util.js +35 -0
  384. package/dist/esm/v3/runEngineWorker/supervisor/util.js.map +1 -0
  385. package/dist/esm/v3/runEngineWorker/types.d.ts +52 -0
  386. package/dist/esm/v3/runEngineWorker/types.js +2 -0
  387. package/dist/esm/v3/runEngineWorker/types.js.map +1 -0
  388. package/dist/esm/v3/runEngineWorker/util.d.ts +4 -0
  389. package/dist/esm/v3/runEngineWorker/util.js +12 -0
  390. package/dist/esm/v3/runEngineWorker/util.js.map +1 -0
  391. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +262 -0
  392. package/dist/esm/v3/runEngineWorker/workload/http.js +102 -0
  393. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -0
  394. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +2991 -0
  395. package/dist/esm/v3/runEngineWorker/workload/schemas.js +22 -0
  396. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -0
  397. package/dist/esm/v3/runEngineWorker/workload/types.d.ts +5 -0
  398. package/dist/esm/v3/runEngineWorker/workload/types.js +2 -0
  399. package/dist/esm/v3/runEngineWorker/workload/types.js.map +1 -0
  400. package/dist/esm/v3/runEngineWorker/workload/util.d.ts +2 -0
  401. package/dist/esm/v3/runEngineWorker/workload/util.js +9 -0
  402. package/dist/esm/v3/runEngineWorker/workload/util.js.map +1 -0
  403. package/dist/esm/v3/runMetadata/index.d.ts +1 -1
  404. package/dist/esm/v3/runMetadata/manager.d.ts +1 -1
  405. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  406. package/dist/esm/v3/runMetadata/noopManager.d.ts +1 -1
  407. package/dist/esm/v3/runMetadata/types.d.ts +1 -1
  408. package/dist/esm/v3/runtime/index.d.ts +4 -4
  409. package/dist/esm/v3/runtime/index.js +5 -5
  410. package/dist/esm/v3/runtime/index.js.map +1 -1
  411. package/dist/esm/v3/runtime/managedRuntimeManager.d.ts +30 -0
  412. package/dist/esm/v3/runtime/managedRuntimeManager.js +137 -0
  413. package/dist/esm/v3/runtime/managedRuntimeManager.js.map +1 -0
  414. package/dist/esm/v3/runtime/manager.d.ts +6 -4
  415. package/dist/esm/v3/runtime/noopRuntimeManager.d.ts +6 -4
  416. package/dist/esm/v3/runtime/noopRuntimeManager.js +4 -5
  417. package/dist/esm/v3/runtime/noopRuntimeManager.js.map +1 -1
  418. package/dist/esm/v3/schemas/api.d.ts +1528 -288
  419. package/dist/esm/v3/schemas/api.js +203 -9
  420. package/dist/esm/v3/schemas/api.js.map +1 -1
  421. package/dist/esm/v3/schemas/build.d.ts +184 -96
  422. package/dist/esm/v3/schemas/build.js +4 -3
  423. package/dist/esm/v3/schemas/build.js.map +1 -1
  424. package/dist/esm/v3/schemas/checkpoints.d.ts +77 -0
  425. package/dist/esm/v3/schemas/checkpoints.js +37 -0
  426. package/dist/esm/v3/schemas/checkpoints.js.map +1 -0
  427. package/dist/esm/v3/schemas/common.d.ts +234 -121
  428. package/dist/esm/v3/schemas/common.js +50 -8
  429. package/dist/esm/v3/schemas/common.js.map +1 -1
  430. package/dist/esm/v3/schemas/fetch.d.ts +23 -23
  431. package/dist/esm/v3/schemas/index.d.ts +4 -0
  432. package/dist/esm/v3/schemas/index.js +4 -0
  433. package/dist/esm/v3/schemas/index.js.map +1 -1
  434. package/dist/esm/v3/schemas/messages.d.ts +3589 -2833
  435. package/dist/esm/v3/schemas/messages.js +26 -1
  436. package/dist/esm/v3/schemas/messages.js.map +1 -1
  437. package/dist/esm/v3/schemas/openTelemetry.d.ts +18 -18
  438. package/dist/esm/v3/schemas/queues.d.ts +93 -0
  439. package/dist/esm/v3/schemas/queues.js +65 -0
  440. package/dist/esm/v3/schemas/queues.js.map +1 -0
  441. package/dist/esm/v3/schemas/resources.d.ts +53 -14
  442. package/dist/esm/v3/schemas/resources.js +4 -3
  443. package/dist/esm/v3/schemas/resources.js.map +1 -1
  444. package/dist/esm/v3/schemas/runEngine.d.ts +1605 -0
  445. package/dist/esm/v3/schemas/runEngine.js +199 -0
  446. package/dist/esm/v3/schemas/runEngine.js.map +1 -0
  447. package/dist/esm/v3/schemas/schemas.d.ts +309 -187
  448. package/dist/esm/v3/schemas/schemas.js +22 -4
  449. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  450. package/dist/esm/v3/schemas/warmStart.d.ts +12 -0
  451. package/dist/esm/v3/schemas/warmStart.js +6 -0
  452. package/dist/esm/v3/schemas/warmStart.js.map +1 -0
  453. package/dist/esm/v3/schemas/webhooks.d.ts +180 -180
  454. package/dist/esm/v3/schemas/webhooks.js +1 -2
  455. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  456. package/dist/esm/v3/semanticInternalAttributes.d.ts +3 -0
  457. package/dist/esm/v3/semanticInternalAttributes.js +3 -0
  458. package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
  459. package/dist/esm/v3/serverOnly/checkpointClient.d.ts +25 -0
  460. package/dist/esm/v3/serverOnly/checkpointClient.js +92 -0
  461. package/dist/esm/v3/serverOnly/checkpointClient.js.map +1 -0
  462. package/dist/esm/v3/{apps/checkpoints.js → serverOnly/checkpointTest.js} +2 -2
  463. package/dist/esm/v3/serverOnly/checkpointTest.js.map +1 -0
  464. package/dist/esm/v3/serverOnly/httpServer.d.ts +38 -0
  465. package/dist/esm/v3/serverOnly/httpServer.js +190 -0
  466. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -0
  467. package/dist/esm/v3/serverOnly/index.d.ts +3 -0
  468. package/dist/esm/v3/serverOnly/index.js +4 -0
  469. package/dist/esm/v3/serverOnly/index.js.map +1 -0
  470. package/dist/esm/v3/streams/asyncIterableStream.d.ts +4 -0
  471. package/dist/esm/v3/streams/asyncIterableStream.js +72 -0
  472. package/dist/esm/v3/streams/asyncIterableStream.js.map +1 -0
  473. package/dist/esm/v3/tryCatch.d.ts +5 -0
  474. package/dist/esm/v3/tryCatch.js +11 -0
  475. package/dist/esm/v3/tryCatch.js.map +1 -0
  476. package/dist/esm/v3/types/index.d.ts +1 -0
  477. package/dist/esm/v3/types/index.js +1 -0
  478. package/dist/esm/v3/types/index.js.map +1 -1
  479. package/dist/esm/v3/types/queues.d.ts +43 -0
  480. package/dist/esm/v3/types/queues.js +2 -0
  481. package/dist/esm/v3/types/queues.js.map +1 -0
  482. package/dist/esm/v3/types/tasks.d.ts +52 -25
  483. package/dist/esm/v3/types/tasks.js.map +1 -1
  484. package/dist/esm/v3/utils/durations.d.ts +1 -0
  485. package/dist/esm/v3/utils/durations.js +1 -1
  486. package/dist/esm/v3/utils/durations.js.map +1 -1
  487. package/dist/esm/v3/utils/globals.d.ts +2 -2
  488. package/dist/esm/v3/utils/globals.js.map +1 -1
  489. package/dist/esm/v3/utils/heartbeat.d.ts +21 -0
  490. package/dist/esm/v3/utils/heartbeat.js +75 -0
  491. package/dist/esm/v3/utils/heartbeat.js.map +1 -0
  492. package/dist/esm/v3/utils/imageRef.d.ts +8 -0
  493. package/dist/esm/v3/utils/imageRef.js +51 -0
  494. package/dist/esm/v3/utils/imageRef.js.map +1 -0
  495. package/dist/esm/v3/workers/index.d.ts +4 -1
  496. package/dist/esm/v3/workers/index.js +4 -1
  497. package/dist/esm/v3/workers/index.js.map +1 -1
  498. package/dist/esm/v3/workers/taskExecutor.js +3 -3
  499. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  500. package/dist/esm/v3/workers/warmStartClient.d.ts +27 -0
  501. package/dist/esm/v3/workers/warmStartClient.js +108 -0
  502. package/dist/esm/v3/workers/warmStartClient.js.map +1 -0
  503. package/dist/esm/v3/zodMessageHandler.d.ts +2 -2
  504. package/dist/esm/version.js +1 -1
  505. package/package.json +69 -127
  506. package/dist/commonjs/bloom.d.ts +0 -10
  507. package/dist/commonjs/bloom.js +0 -58
  508. package/dist/commonjs/bloom.js.map +0 -1
  509. package/dist/commonjs/replacements.d.ts +0 -19
  510. package/dist/commonjs/replacements.js +0 -27
  511. package/dist/commonjs/replacements.js.map +0 -1
  512. package/dist/commonjs/requestFilterMatches.d.ts +0 -7
  513. package/dist/commonjs/requestFilterMatches.js +0 -62
  514. package/dist/commonjs/requestFilterMatches.js.map +0 -1
  515. package/dist/commonjs/schemas/addMissingVersionField.d.ts +0 -1
  516. package/dist/commonjs/schemas/addMissingVersionField.js +0 -13
  517. package/dist/commonjs/schemas/addMissingVersionField.js.map +0 -1
  518. package/dist/commonjs/schemas/api.d.ts +0 -13789
  519. package/dist/commonjs/schemas/api.js +0 -852
  520. package/dist/commonjs/schemas/api.js.map +0 -1
  521. package/dist/commonjs/schemas/errors.d.ts +0 -26
  522. package/dist/commonjs/schemas/errors.js +0 -14
  523. package/dist/commonjs/schemas/errors.js.map +0 -1
  524. package/dist/commonjs/schemas/events.d.ts +0 -66
  525. package/dist/commonjs/schemas/events.js +0 -31
  526. package/dist/commonjs/schemas/events.js.map +0 -1
  527. package/dist/commonjs/schemas/fetch.d.ts +0 -682
  528. package/dist/commonjs/schemas/fetch.js +0 -68
  529. package/dist/commonjs/schemas/fetch.js.map +0 -1
  530. package/dist/commonjs/schemas/integrations.d.ts +0 -66
  531. package/dist/commonjs/schemas/integrations.js +0 -21
  532. package/dist/commonjs/schemas/integrations.js.map +0 -1
  533. package/dist/commonjs/schemas/jobs.d.ts +0 -12
  534. package/dist/commonjs/schemas/jobs.js +0 -9
  535. package/dist/commonjs/schemas/jobs.js.map +0 -1
  536. package/dist/commonjs/schemas/notifications.d.ts +0 -587
  537. package/dist/commonjs/schemas/notifications.js +0 -59
  538. package/dist/commonjs/schemas/notifications.js.map +0 -1
  539. package/dist/commonjs/schemas/properties.d.ts +0 -57
  540. package/dist/commonjs/schemas/properties.js +0 -23
  541. package/dist/commonjs/schemas/properties.js.map +0 -1
  542. package/dist/commonjs/schemas/request.d.ts +0 -17
  543. package/dist/commonjs/schemas/request.js +0 -11
  544. package/dist/commonjs/schemas/request.js.map +0 -1
  545. package/dist/commonjs/schemas/requestFilter.d.ts +0 -225
  546. package/dist/commonjs/schemas/requestFilter.js +0 -60
  547. package/dist/commonjs/schemas/requestFilter.js.map +0 -1
  548. package/dist/commonjs/schemas/runs.d.ts +0 -344
  549. package/dist/commonjs/schemas/runs.js +0 -91
  550. package/dist/commonjs/schemas/runs.js.map +0 -1
  551. package/dist/commonjs/schemas/schedules.d.ts +0 -185
  552. package/dist/commonjs/schemas/schedules.js +0 -48
  553. package/dist/commonjs/schemas/schedules.js.map +0 -1
  554. package/dist/commonjs/schemas/statuses.d.ts +0 -89
  555. package/dist/commonjs/schemas/statuses.js +0 -23
  556. package/dist/commonjs/schemas/statuses.js.map +0 -1
  557. package/dist/commonjs/schemas/tasks.d.ts +0 -294
  558. package/dist/commonjs/schemas/tasks.js +0 -50
  559. package/dist/commonjs/schemas/tasks.js.map +0 -1
  560. package/dist/commonjs/schemas/triggers.d.ts +0 -532
  561. package/dist/commonjs/schemas/triggers.js +0 -57
  562. package/dist/commonjs/schemas/triggers.js.map +0 -1
  563. package/dist/commonjs/searchParams.d.ts +0 -1
  564. package/dist/commonjs/searchParams.js +0 -16
  565. package/dist/commonjs/searchParams.js.map +0 -1
  566. package/dist/commonjs/v3/apps/checkpoints.js.map +0 -1
  567. package/dist/commonjs/v3/apps/duration.js.map +0 -1
  568. package/dist/commonjs/v3/apps/friendlyId.d.ts +0 -1
  569. package/dist/commonjs/v3/apps/friendlyId.js +0 -9
  570. package/dist/commonjs/v3/apps/friendlyId.js.map +0 -1
  571. package/dist/commonjs/v3/dev/index.d.ts +0 -1
  572. package/dist/commonjs/v3/dev/index.js +0 -6
  573. package/dist/commonjs/v3/dev/index.js.map +0 -1
  574. package/dist/commonjs/v3/prod/index.d.ts +0 -1
  575. package/dist/commonjs/v3/prod/index.js +0 -6
  576. package/dist/commonjs/v3/prod/index.js.map +0 -1
  577. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +0 -27
  578. package/dist/commonjs/v3/runtime/devRuntimeManager.js +0 -77
  579. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +0 -1
  580. package/dist/commonjs/v3/runtime/prodRuntimeManager.d.ts +0 -38
  581. package/dist/commonjs/v3/runtime/prodRuntimeManager.js +0 -94
  582. package/dist/commonjs/v3/runtime/prodRuntimeManager.js.map +0 -1
  583. package/dist/commonjs/v3/task-catalog/catalog.js.map +0 -1
  584. package/dist/commonjs/v3/task-catalog/index.d.ts +0 -18
  585. package/dist/commonjs/v3/task-catalog/index.js +0 -49
  586. package/dist/commonjs/v3/task-catalog/index.js.map +0 -1
  587. package/dist/commonjs/v3/task-catalog/noopTaskCatalog.d.ts +0 -13
  588. package/dist/commonjs/v3/task-catalog/noopTaskCatalog.js.map +0 -1
  589. package/dist/commonjs/v3/task-catalog/standardTaskCatalog.d.ts +0 -16
  590. package/dist/commonjs/v3/task-catalog/standardTaskCatalog.js.map +0 -1
  591. package/dist/commonjs/v3/task-catalog-api.d.ts +0 -3
  592. package/dist/commonjs/v3/task-catalog-api.js.map +0 -1
  593. package/dist/commonjs/versions.d.ts +0 -9
  594. package/dist/commonjs/versions.js +0 -23
  595. package/dist/commonjs/versions.js.map +0 -1
  596. package/dist/esm/bloom.d.ts +0 -10
  597. package/dist/esm/bloom.js +0 -54
  598. package/dist/esm/bloom.js.map +0 -1
  599. package/dist/esm/replacements.d.ts +0 -19
  600. package/dist/esm/replacements.js +0 -24
  601. package/dist/esm/replacements.js.map +0 -1
  602. package/dist/esm/requestFilterMatches.d.ts +0 -7
  603. package/dist/esm/requestFilterMatches.js +0 -58
  604. package/dist/esm/requestFilterMatches.js.map +0 -1
  605. package/dist/esm/schemas/addMissingVersionField.d.ts +0 -1
  606. package/dist/esm/schemas/addMissingVersionField.js +0 -10
  607. package/dist/esm/schemas/addMissingVersionField.js.map +0 -1
  608. package/dist/esm/schemas/api.d.ts +0 -13789
  609. package/dist/esm/schemas/api.js +0 -847
  610. package/dist/esm/schemas/api.js.map +0 -1
  611. package/dist/esm/schemas/errors.d.ts +0 -26
  612. package/dist/esm/schemas/errors.js +0 -11
  613. package/dist/esm/schemas/errors.js.map +0 -1
  614. package/dist/esm/schemas/events.d.ts +0 -66
  615. package/dist/esm/schemas/events.js +0 -28
  616. package/dist/esm/schemas/events.js.map +0 -1
  617. package/dist/esm/schemas/fetch.d.ts +0 -682
  618. package/dist/esm/schemas/fetch.js +0 -65
  619. package/dist/esm/schemas/fetch.js.map +0 -1
  620. package/dist/esm/schemas/integrations.d.ts +0 -66
  621. package/dist/esm/schemas/integrations.js +0 -18
  622. package/dist/esm/schemas/integrations.js.map +0 -1
  623. package/dist/esm/schemas/jobs.d.ts +0 -12
  624. package/dist/esm/schemas/jobs.js +0 -6
  625. package/dist/esm/schemas/jobs.js.map +0 -1
  626. package/dist/esm/schemas/notifications.d.ts +0 -587
  627. package/dist/esm/schemas/notifications.js +0 -56
  628. package/dist/esm/schemas/notifications.js.map +0 -1
  629. package/dist/esm/schemas/properties.d.ts +0 -57
  630. package/dist/esm/schemas/properties.js +0 -20
  631. package/dist/esm/schemas/properties.js.map +0 -1
  632. package/dist/esm/schemas/request.d.ts +0 -17
  633. package/dist/esm/schemas/request.js +0 -8
  634. package/dist/esm/schemas/request.js.map +0 -1
  635. package/dist/esm/schemas/requestFilter.d.ts +0 -225
  636. package/dist/esm/schemas/requestFilter.js +0 -57
  637. package/dist/esm/schemas/requestFilter.js.map +0 -1
  638. package/dist/esm/schemas/runs.d.ts +0 -344
  639. package/dist/esm/schemas/runs.js +0 -88
  640. package/dist/esm/schemas/runs.js.map +0 -1
  641. package/dist/esm/schemas/schedules.d.ts +0 -185
  642. package/dist/esm/schemas/schedules.js +0 -45
  643. package/dist/esm/schemas/schedules.js.map +0 -1
  644. package/dist/esm/schemas/statuses.d.ts +0 -89
  645. package/dist/esm/schemas/statuses.js +0 -20
  646. package/dist/esm/schemas/statuses.js.map +0 -1
  647. package/dist/esm/schemas/tasks.d.ts +0 -294
  648. package/dist/esm/schemas/tasks.js +0 -47
  649. package/dist/esm/schemas/tasks.js.map +0 -1
  650. package/dist/esm/schemas/triggers.d.ts +0 -532
  651. package/dist/esm/schemas/triggers.js +0 -54
  652. package/dist/esm/schemas/triggers.js.map +0 -1
  653. package/dist/esm/searchParams.d.ts +0 -1
  654. package/dist/esm/searchParams.js +0 -13
  655. package/dist/esm/searchParams.js.map +0 -1
  656. package/dist/esm/v3/apps/checkpoints.js.map +0 -1
  657. package/dist/esm/v3/apps/duration.js.map +0 -1
  658. package/dist/esm/v3/apps/friendlyId.d.ts +0 -1
  659. package/dist/esm/v3/apps/friendlyId.js +0 -6
  660. package/dist/esm/v3/apps/friendlyId.js.map +0 -1
  661. package/dist/esm/v3/dev/index.d.ts +0 -1
  662. package/dist/esm/v3/dev/index.js +0 -2
  663. package/dist/esm/v3/dev/index.js.map +0 -1
  664. package/dist/esm/v3/prod/index.d.ts +0 -1
  665. package/dist/esm/v3/prod/index.js +0 -2
  666. package/dist/esm/v3/prod/index.js.map +0 -1
  667. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +0 -27
  668. package/dist/esm/v3/runtime/devRuntimeManager.js +0 -73
  669. package/dist/esm/v3/runtime/devRuntimeManager.js.map +0 -1
  670. package/dist/esm/v3/runtime/prodRuntimeManager.d.ts +0 -38
  671. package/dist/esm/v3/runtime/prodRuntimeManager.js +0 -90
  672. package/dist/esm/v3/runtime/prodRuntimeManager.js.map +0 -1
  673. package/dist/esm/v3/task-catalog/catalog.js.map +0 -1
  674. package/dist/esm/v3/task-catalog/index.d.ts +0 -18
  675. package/dist/esm/v3/task-catalog/index.js +0 -45
  676. package/dist/esm/v3/task-catalog/index.js.map +0 -1
  677. package/dist/esm/v3/task-catalog/noopTaskCatalog.d.ts +0 -13
  678. package/dist/esm/v3/task-catalog/noopTaskCatalog.js.map +0 -1
  679. package/dist/esm/v3/task-catalog/standardTaskCatalog.d.ts +0 -16
  680. package/dist/esm/v3/task-catalog/standardTaskCatalog.js.map +0 -1
  681. package/dist/esm/v3/task-catalog-api.d.ts +0 -3
  682. package/dist/esm/v3/task-catalog-api.js +0 -6
  683. package/dist/esm/v3/task-catalog-api.js.map +0 -1
  684. package/dist/esm/versions.d.ts +0 -9
  685. package/dist/esm/versions.js +0 -19
  686. package/dist/esm/versions.js.map +0 -1
  687. /package/dist/commonjs/v3/{task-catalog → resource-catalog}/catalog.js +0 -0
  688. /package/dist/commonjs/v3/{apps/checkpoints.d.ts → serverOnly/checkpointTest.d.ts} +0 -0
  689. /package/dist/esm/v3/{task-catalog → resource-catalog}/catalog.js +0 -0
  690. /package/dist/esm/v3/{apps/checkpoints.d.ts → serverOnly/checkpointTest.d.ts} +0 -0
@@ -0,0 +1,1605 @@
1
+ import { z } from "zod";
2
+ import { RuntimeEnvironmentType } from "./common.js";
3
+ import type * as DB_TYPES from "@trigger.dev/database";
4
+ export declare const TaskRunExecutionStatus: {
5
+ RUN_CREATED: "RUN_CREATED";
6
+ QUEUED: "QUEUED";
7
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
8
+ PENDING_EXECUTING: "PENDING_EXECUTING";
9
+ EXECUTING: "EXECUTING";
10
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
11
+ SUSPENDED: "SUSPENDED";
12
+ PENDING_CANCEL: "PENDING_CANCEL";
13
+ FINISHED: "FINISHED";
14
+ };
15
+ export type TaskRunExecutionStatus = (typeof TaskRunExecutionStatus)[keyof typeof TaskRunExecutionStatus];
16
+ export declare const TaskRunStatus: {
17
+ DELAYED: "DELAYED";
18
+ PENDING: "PENDING";
19
+ PENDING_VERSION: "PENDING_VERSION";
20
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
21
+ EXECUTING: "EXECUTING";
22
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
23
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
24
+ PAUSED: "PAUSED";
25
+ CANCELED: "CANCELED";
26
+ INTERRUPTED: "INTERRUPTED";
27
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
28
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
29
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
30
+ CRASHED: "CRASHED";
31
+ EXPIRED: "EXPIRED";
32
+ TIMED_OUT: "TIMED_OUT";
33
+ };
34
+ export type TaskRunStatus = (typeof TaskRunStatus)[keyof typeof TaskRunStatus];
35
+ export declare const WaitpointType: {
36
+ RUN: "RUN";
37
+ DATETIME: "DATETIME";
38
+ MANUAL: "MANUAL";
39
+ BATCH: "BATCH";
40
+ };
41
+ export type WaitpointType = (typeof WaitpointType)[keyof typeof WaitpointType];
42
+ export declare const WaitpointStatus: z.ZodEnum<[DB_TYPES.$Enums.WaitpointStatus]>;
43
+ export type WaitpointStatus = z.infer<typeof WaitpointStatus>;
44
+ export type TaskEventEnvironment = {
45
+ id: string;
46
+ type: RuntimeEnvironmentType;
47
+ organizationId: string;
48
+ projectId: string;
49
+ project: {
50
+ externalRef: string;
51
+ };
52
+ };
53
+ export declare const CompletedWaitpoint: z.ZodObject<{
54
+ id: z.ZodString;
55
+ index: z.ZodOptional<z.ZodNumber>;
56
+ friendlyId: z.ZodString;
57
+ type: z.ZodEnum<[WaitpointType]>;
58
+ completedAt: z.ZodDate;
59
+ idempotencyKey: z.ZodOptional<z.ZodString>;
60
+ /** For type === "RUN" */
61
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
62
+ id: z.ZodString;
63
+ friendlyId: z.ZodString;
64
+ /** If the run has an associated batch */
65
+ batch: z.ZodOptional<z.ZodObject<{
66
+ id: z.ZodString;
67
+ friendlyId: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: string;
70
+ friendlyId: string;
71
+ }, {
72
+ id: string;
73
+ friendlyId: string;
74
+ }>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ friendlyId: string;
78
+ batch?: {
79
+ id: string;
80
+ friendlyId: string;
81
+ } | undefined;
82
+ }, {
83
+ id: string;
84
+ friendlyId: string;
85
+ batch?: {
86
+ id: string;
87
+ friendlyId: string;
88
+ } | undefined;
89
+ }>>;
90
+ /** For type === "DATETIME" */
91
+ completedAfter: z.ZodOptional<z.ZodDate>;
92
+ /** For type === "BATCH" */
93
+ completedByBatch: z.ZodOptional<z.ZodObject<{
94
+ id: z.ZodString;
95
+ friendlyId: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ id: string;
98
+ friendlyId: string;
99
+ }, {
100
+ id: string;
101
+ friendlyId: string;
102
+ }>>;
103
+ output: z.ZodOptional<z.ZodString>;
104
+ outputType: z.ZodOptional<z.ZodString>;
105
+ outputIsError: z.ZodBoolean;
106
+ }, "strip", z.ZodTypeAny, {
107
+ type: WaitpointType;
108
+ id: string;
109
+ completedAt: Date;
110
+ friendlyId: string;
111
+ outputIsError: boolean;
112
+ idempotencyKey?: string | undefined;
113
+ output?: string | undefined;
114
+ outputType?: string | undefined;
115
+ index?: number | undefined;
116
+ completedByTaskRun?: {
117
+ id: string;
118
+ friendlyId: string;
119
+ batch?: {
120
+ id: string;
121
+ friendlyId: string;
122
+ } | undefined;
123
+ } | undefined;
124
+ completedAfter?: Date | undefined;
125
+ completedByBatch?: {
126
+ id: string;
127
+ friendlyId: string;
128
+ } | undefined;
129
+ }, {
130
+ type: WaitpointType;
131
+ id: string;
132
+ completedAt: Date;
133
+ friendlyId: string;
134
+ outputIsError: boolean;
135
+ idempotencyKey?: string | undefined;
136
+ output?: string | undefined;
137
+ outputType?: string | undefined;
138
+ index?: number | undefined;
139
+ completedByTaskRun?: {
140
+ id: string;
141
+ friendlyId: string;
142
+ batch?: {
143
+ id: string;
144
+ friendlyId: string;
145
+ } | undefined;
146
+ } | undefined;
147
+ completedAfter?: Date | undefined;
148
+ completedByBatch?: {
149
+ id: string;
150
+ friendlyId: string;
151
+ } | undefined;
152
+ }>;
153
+ export type CompletedWaitpoint = z.infer<typeof CompletedWaitpoint>;
154
+ export declare const ExecutionResult: z.ZodObject<{
155
+ snapshot: z.ZodObject<{
156
+ id: z.ZodString;
157
+ friendlyId: z.ZodString;
158
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
159
+ description: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ id: string;
162
+ description: string;
163
+ friendlyId: string;
164
+ executionStatus: TaskRunExecutionStatus;
165
+ }, {
166
+ id: string;
167
+ description: string;
168
+ friendlyId: string;
169
+ executionStatus: TaskRunExecutionStatus;
170
+ }>;
171
+ run: z.ZodObject<{
172
+ id: z.ZodString;
173
+ friendlyId: z.ZodString;
174
+ status: z.ZodEnum<[TaskRunStatus]>;
175
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ status: TaskRunStatus;
178
+ id: string;
179
+ friendlyId: string;
180
+ attemptNumber?: number | null | undefined;
181
+ }, {
182
+ status: TaskRunStatus;
183
+ id: string;
184
+ friendlyId: string;
185
+ attemptNumber?: number | null | undefined;
186
+ }>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ run: {
189
+ status: TaskRunStatus;
190
+ id: string;
191
+ friendlyId: string;
192
+ attemptNumber?: number | null | undefined;
193
+ };
194
+ snapshot: {
195
+ id: string;
196
+ description: string;
197
+ friendlyId: string;
198
+ executionStatus: TaskRunExecutionStatus;
199
+ };
200
+ }, {
201
+ run: {
202
+ status: TaskRunStatus;
203
+ id: string;
204
+ friendlyId: string;
205
+ attemptNumber?: number | null | undefined;
206
+ };
207
+ snapshot: {
208
+ id: string;
209
+ description: string;
210
+ friendlyId: string;
211
+ executionStatus: TaskRunExecutionStatus;
212
+ };
213
+ }>;
214
+ export type ExecutionResult = z.infer<typeof ExecutionResult>;
215
+ /** This is sent to a Worker when a run is dequeued (a new run or continuing run) */
216
+ export declare const DequeuedMessage: z.ZodObject<{
217
+ version: z.ZodLiteral<"1">;
218
+ snapshot: z.ZodObject<{
219
+ id: z.ZodString;
220
+ friendlyId: z.ZodString;
221
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
222
+ description: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ id: string;
225
+ description: string;
226
+ friendlyId: string;
227
+ executionStatus: TaskRunExecutionStatus;
228
+ }, {
229
+ id: string;
230
+ description: string;
231
+ friendlyId: string;
232
+ executionStatus: TaskRunExecutionStatus;
233
+ }>;
234
+ dequeuedAt: z.ZodDate;
235
+ image: z.ZodOptional<z.ZodString>;
236
+ checkpoint: z.ZodOptional<z.ZodObject<{
237
+ id: z.ZodString;
238
+ type: z.ZodString;
239
+ location: z.ZodString;
240
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: string;
243
+ id: string;
244
+ location: string;
245
+ reason?: string | null | undefined;
246
+ }, {
247
+ type: string;
248
+ id: string;
249
+ location: string;
250
+ reason?: string | null | undefined;
251
+ }>>;
252
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
253
+ id: z.ZodString;
254
+ index: z.ZodOptional<z.ZodNumber>;
255
+ friendlyId: z.ZodString;
256
+ type: z.ZodEnum<[WaitpointType]>;
257
+ completedAt: z.ZodDate;
258
+ idempotencyKey: z.ZodOptional<z.ZodString>;
259
+ /** For type === "RUN" */
260
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
261
+ id: z.ZodString;
262
+ friendlyId: z.ZodString;
263
+ /** If the run has an associated batch */
264
+ batch: z.ZodOptional<z.ZodObject<{
265
+ id: z.ZodString;
266
+ friendlyId: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ id: string;
269
+ friendlyId: string;
270
+ }, {
271
+ id: string;
272
+ friendlyId: string;
273
+ }>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ id: string;
276
+ friendlyId: string;
277
+ batch?: {
278
+ id: string;
279
+ friendlyId: string;
280
+ } | undefined;
281
+ }, {
282
+ id: string;
283
+ friendlyId: string;
284
+ batch?: {
285
+ id: string;
286
+ friendlyId: string;
287
+ } | undefined;
288
+ }>>;
289
+ /** For type === "DATETIME" */
290
+ completedAfter: z.ZodOptional<z.ZodDate>;
291
+ /** For type === "BATCH" */
292
+ completedByBatch: z.ZodOptional<z.ZodObject<{
293
+ id: z.ZodString;
294
+ friendlyId: z.ZodString;
295
+ }, "strip", z.ZodTypeAny, {
296
+ id: string;
297
+ friendlyId: string;
298
+ }, {
299
+ id: string;
300
+ friendlyId: string;
301
+ }>>;
302
+ output: z.ZodOptional<z.ZodString>;
303
+ outputType: z.ZodOptional<z.ZodString>;
304
+ outputIsError: z.ZodBoolean;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: WaitpointType;
307
+ id: string;
308
+ completedAt: Date;
309
+ friendlyId: string;
310
+ outputIsError: boolean;
311
+ idempotencyKey?: string | undefined;
312
+ output?: string | undefined;
313
+ outputType?: string | undefined;
314
+ index?: number | undefined;
315
+ completedByTaskRun?: {
316
+ id: string;
317
+ friendlyId: string;
318
+ batch?: {
319
+ id: string;
320
+ friendlyId: string;
321
+ } | undefined;
322
+ } | undefined;
323
+ completedAfter?: Date | undefined;
324
+ completedByBatch?: {
325
+ id: string;
326
+ friendlyId: string;
327
+ } | undefined;
328
+ }, {
329
+ type: WaitpointType;
330
+ id: string;
331
+ completedAt: Date;
332
+ friendlyId: string;
333
+ outputIsError: boolean;
334
+ idempotencyKey?: string | undefined;
335
+ output?: string | undefined;
336
+ outputType?: string | undefined;
337
+ index?: number | undefined;
338
+ completedByTaskRun?: {
339
+ id: string;
340
+ friendlyId: string;
341
+ batch?: {
342
+ id: string;
343
+ friendlyId: string;
344
+ } | undefined;
345
+ } | undefined;
346
+ completedAfter?: Date | undefined;
347
+ completedByBatch?: {
348
+ id: string;
349
+ friendlyId: string;
350
+ } | undefined;
351
+ }>, "many">;
352
+ backgroundWorker: z.ZodObject<{
353
+ id: z.ZodString;
354
+ friendlyId: z.ZodString;
355
+ version: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ version: string;
359
+ friendlyId: string;
360
+ }, {
361
+ id: string;
362
+ version: string;
363
+ friendlyId: string;
364
+ }>;
365
+ deployment: z.ZodObject<{
366
+ id: z.ZodOptional<z.ZodString>;
367
+ friendlyId: z.ZodOptional<z.ZodString>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ id?: string | undefined;
370
+ friendlyId?: string | undefined;
371
+ }, {
372
+ id?: string | undefined;
373
+ friendlyId?: string | undefined;
374
+ }>;
375
+ run: z.ZodObject<{
376
+ id: z.ZodString;
377
+ friendlyId: z.ZodString;
378
+ isTest: z.ZodBoolean;
379
+ machine: z.ZodObject<{
380
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
381
+ cpu: z.ZodNumber;
382
+ memory: z.ZodNumber;
383
+ centsPerMs: z.ZodNumber;
384
+ }, "strip", z.ZodTypeAny, {
385
+ cpu: number;
386
+ memory: number;
387
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
388
+ centsPerMs: number;
389
+ }, {
390
+ cpu: number;
391
+ memory: number;
392
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
393
+ centsPerMs: number;
394
+ }>;
395
+ attemptNumber: z.ZodNumber;
396
+ masterQueue: z.ZodString;
397
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ id: string;
400
+ isTest: boolean;
401
+ traceContext: Record<string, unknown>;
402
+ machine: {
403
+ cpu: number;
404
+ memory: number;
405
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
406
+ centsPerMs: number;
407
+ };
408
+ friendlyId: string;
409
+ attemptNumber: number;
410
+ masterQueue: string;
411
+ }, {
412
+ id: string;
413
+ isTest: boolean;
414
+ traceContext: Record<string, unknown>;
415
+ machine: {
416
+ cpu: number;
417
+ memory: number;
418
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
419
+ centsPerMs: number;
420
+ };
421
+ friendlyId: string;
422
+ attemptNumber: number;
423
+ masterQueue: string;
424
+ }>;
425
+ environment: z.ZodObject<{
426
+ id: z.ZodString;
427
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
430
+ id: string;
431
+ }, {
432
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
433
+ id: string;
434
+ }>;
435
+ organization: z.ZodObject<{
436
+ id: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ id: string;
439
+ }, {
440
+ id: string;
441
+ }>;
442
+ project: z.ZodObject<{
443
+ id: z.ZodString;
444
+ }, "strip", z.ZodTypeAny, {
445
+ id: string;
446
+ }, {
447
+ id: string;
448
+ }>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ version: "1";
451
+ run: {
452
+ id: string;
453
+ isTest: boolean;
454
+ traceContext: Record<string, unknown>;
455
+ machine: {
456
+ cpu: number;
457
+ memory: number;
458
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
459
+ centsPerMs: number;
460
+ };
461
+ friendlyId: string;
462
+ attemptNumber: number;
463
+ masterQueue: string;
464
+ };
465
+ environment: {
466
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
467
+ id: string;
468
+ };
469
+ organization: {
470
+ id: string;
471
+ };
472
+ project: {
473
+ id: string;
474
+ };
475
+ snapshot: {
476
+ id: string;
477
+ description: string;
478
+ friendlyId: string;
479
+ executionStatus: TaskRunExecutionStatus;
480
+ };
481
+ dequeuedAt: Date;
482
+ completedWaitpoints: {
483
+ type: WaitpointType;
484
+ id: string;
485
+ completedAt: Date;
486
+ friendlyId: string;
487
+ outputIsError: boolean;
488
+ idempotencyKey?: string | undefined;
489
+ output?: string | undefined;
490
+ outputType?: string | undefined;
491
+ index?: number | undefined;
492
+ completedByTaskRun?: {
493
+ id: string;
494
+ friendlyId: string;
495
+ batch?: {
496
+ id: string;
497
+ friendlyId: string;
498
+ } | undefined;
499
+ } | undefined;
500
+ completedAfter?: Date | undefined;
501
+ completedByBatch?: {
502
+ id: string;
503
+ friendlyId: string;
504
+ } | undefined;
505
+ }[];
506
+ backgroundWorker: {
507
+ id: string;
508
+ version: string;
509
+ friendlyId: string;
510
+ };
511
+ deployment: {
512
+ id?: string | undefined;
513
+ friendlyId?: string | undefined;
514
+ };
515
+ image?: string | undefined;
516
+ checkpoint?: {
517
+ type: string;
518
+ id: string;
519
+ location: string;
520
+ reason?: string | null | undefined;
521
+ } | undefined;
522
+ }, {
523
+ version: "1";
524
+ run: {
525
+ id: string;
526
+ isTest: boolean;
527
+ traceContext: Record<string, unknown>;
528
+ machine: {
529
+ cpu: number;
530
+ memory: number;
531
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
532
+ centsPerMs: number;
533
+ };
534
+ friendlyId: string;
535
+ attemptNumber: number;
536
+ masterQueue: string;
537
+ };
538
+ environment: {
539
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
540
+ id: string;
541
+ };
542
+ organization: {
543
+ id: string;
544
+ };
545
+ project: {
546
+ id: string;
547
+ };
548
+ snapshot: {
549
+ id: string;
550
+ description: string;
551
+ friendlyId: string;
552
+ executionStatus: TaskRunExecutionStatus;
553
+ };
554
+ dequeuedAt: Date;
555
+ completedWaitpoints: {
556
+ type: WaitpointType;
557
+ id: string;
558
+ completedAt: Date;
559
+ friendlyId: string;
560
+ outputIsError: boolean;
561
+ idempotencyKey?: string | undefined;
562
+ output?: string | undefined;
563
+ outputType?: string | undefined;
564
+ index?: number | undefined;
565
+ completedByTaskRun?: {
566
+ id: string;
567
+ friendlyId: string;
568
+ batch?: {
569
+ id: string;
570
+ friendlyId: string;
571
+ } | undefined;
572
+ } | undefined;
573
+ completedAfter?: Date | undefined;
574
+ completedByBatch?: {
575
+ id: string;
576
+ friendlyId: string;
577
+ } | undefined;
578
+ }[];
579
+ backgroundWorker: {
580
+ id: string;
581
+ version: string;
582
+ friendlyId: string;
583
+ };
584
+ deployment: {
585
+ id?: string | undefined;
586
+ friendlyId?: string | undefined;
587
+ };
588
+ image?: string | undefined;
589
+ checkpoint?: {
590
+ type: string;
591
+ id: string;
592
+ location: string;
593
+ reason?: string | null | undefined;
594
+ } | undefined;
595
+ }>;
596
+ export type DequeuedMessage = z.infer<typeof DequeuedMessage>;
597
+ /** The response to the Worker when starting an attempt */
598
+ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
599
+ snapshot: z.ZodObject<{
600
+ id: z.ZodString;
601
+ friendlyId: z.ZodString;
602
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
603
+ description: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ description: string;
607
+ friendlyId: string;
608
+ executionStatus: TaskRunExecutionStatus;
609
+ }, {
610
+ id: string;
611
+ description: string;
612
+ friendlyId: string;
613
+ executionStatus: TaskRunExecutionStatus;
614
+ }>;
615
+ run: z.ZodObject<{
616
+ id: z.ZodString;
617
+ friendlyId: z.ZodString;
618
+ status: z.ZodEnum<[TaskRunStatus]>;
619
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ status: TaskRunStatus;
622
+ id: string;
623
+ friendlyId: string;
624
+ attemptNumber?: number | null | undefined;
625
+ }, {
626
+ status: TaskRunStatus;
627
+ id: string;
628
+ friendlyId: string;
629
+ attemptNumber?: number | null | undefined;
630
+ }>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ run: {
633
+ status: TaskRunStatus;
634
+ id: string;
635
+ friendlyId: string;
636
+ attemptNumber?: number | null | undefined;
637
+ };
638
+ snapshot: {
639
+ id: string;
640
+ description: string;
641
+ friendlyId: string;
642
+ executionStatus: TaskRunExecutionStatus;
643
+ };
644
+ }, {
645
+ run: {
646
+ status: TaskRunStatus;
647
+ id: string;
648
+ friendlyId: string;
649
+ attemptNumber?: number | null | undefined;
650
+ };
651
+ snapshot: {
652
+ id: string;
653
+ description: string;
654
+ friendlyId: string;
655
+ executionStatus: TaskRunExecutionStatus;
656
+ };
657
+ }>, z.ZodObject<{
658
+ execution: z.ZodObject<{
659
+ task: z.ZodObject<{
660
+ id: z.ZodString;
661
+ filePath: z.ZodString;
662
+ exportName: z.ZodOptional<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ id: string;
665
+ filePath: string;
666
+ exportName?: string | undefined;
667
+ }, {
668
+ id: string;
669
+ filePath: string;
670
+ exportName?: string | undefined;
671
+ }>;
672
+ attempt: z.ZodObject<{
673
+ number: z.ZodNumber;
674
+ startedAt: z.ZodDate;
675
+ id: z.ZodString;
676
+ backgroundWorkerId: z.ZodString;
677
+ backgroundWorkerTaskId: z.ZodString;
678
+ status: z.ZodString;
679
+ }, "strip", z.ZodTypeAny, {
680
+ number: number;
681
+ status: string;
682
+ id: string;
683
+ startedAt: Date;
684
+ backgroundWorkerId: string;
685
+ backgroundWorkerTaskId: string;
686
+ }, {
687
+ number: number;
688
+ status: string;
689
+ id: string;
690
+ startedAt: Date;
691
+ backgroundWorkerId: string;
692
+ backgroundWorkerTaskId: string;
693
+ }>;
694
+ run: z.ZodIntersection<z.ZodObject<{
695
+ id: z.ZodString;
696
+ payload: z.ZodString;
697
+ payloadType: z.ZodString;
698
+ tags: z.ZodArray<z.ZodString, "many">;
699
+ isTest: z.ZodDefault<z.ZodBoolean>;
700
+ createdAt: z.ZodDate;
701
+ startedAt: z.ZodDefault<z.ZodDate>;
702
+ idempotencyKey: z.ZodOptional<z.ZodString>;
703
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
704
+ version: z.ZodOptional<z.ZodString>;
705
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
706
+ maxDuration: z.ZodOptional<z.ZodNumber>;
707
+ context: z.ZodAny;
708
+ durationMs: z.ZodDefault<z.ZodNumber>;
709
+ costInCents: z.ZodDefault<z.ZodNumber>;
710
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
711
+ priority: z.ZodOptional<z.ZodNumber>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ payload: string;
714
+ id: string;
715
+ payloadType: string;
716
+ tags: string[];
717
+ isTest: boolean;
718
+ createdAt: Date;
719
+ startedAt: Date;
720
+ durationMs: number;
721
+ costInCents: number;
722
+ baseCostInCents: number;
723
+ context?: any;
724
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
725
+ idempotencyKey?: string | undefined;
726
+ maxAttempts?: number | undefined;
727
+ version?: string | undefined;
728
+ maxDuration?: number | undefined;
729
+ priority?: number | undefined;
730
+ }, {
731
+ payload: string;
732
+ id: string;
733
+ payloadType: string;
734
+ tags: string[];
735
+ createdAt: Date;
736
+ context?: any;
737
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
738
+ isTest?: boolean | undefined;
739
+ startedAt?: Date | undefined;
740
+ idempotencyKey?: string | undefined;
741
+ maxAttempts?: number | undefined;
742
+ version?: string | undefined;
743
+ maxDuration?: number | undefined;
744
+ durationMs?: number | undefined;
745
+ costInCents?: number | undefined;
746
+ baseCostInCents?: number | undefined;
747
+ priority?: number | undefined;
748
+ }>, z.ZodObject<{
749
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ traceContext?: Record<string, unknown> | undefined;
752
+ }, {
753
+ traceContext?: Record<string, unknown> | undefined;
754
+ }>>;
755
+ queue: z.ZodObject<{
756
+ id: z.ZodString;
757
+ name: z.ZodString;
758
+ }, "strip", z.ZodTypeAny, {
759
+ name: string;
760
+ id: string;
761
+ }, {
762
+ name: string;
763
+ id: string;
764
+ }>;
765
+ environment: z.ZodObject<{
766
+ id: z.ZodString;
767
+ slug: z.ZodString;
768
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
771
+ id: string;
772
+ slug: string;
773
+ }, {
774
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
775
+ id: string;
776
+ slug: string;
777
+ }>;
778
+ organization: z.ZodObject<{
779
+ id: z.ZodString;
780
+ slug: z.ZodString;
781
+ name: z.ZodString;
782
+ }, "strip", z.ZodTypeAny, {
783
+ name: string;
784
+ id: string;
785
+ slug: string;
786
+ }, {
787
+ name: string;
788
+ id: string;
789
+ slug: string;
790
+ }>;
791
+ project: z.ZodObject<{
792
+ id: z.ZodString;
793
+ ref: z.ZodString;
794
+ slug: z.ZodString;
795
+ name: z.ZodString;
796
+ }, "strip", z.ZodTypeAny, {
797
+ name: string;
798
+ id: string;
799
+ slug: string;
800
+ ref: string;
801
+ }, {
802
+ name: string;
803
+ id: string;
804
+ slug: string;
805
+ ref: string;
806
+ }>;
807
+ batch: z.ZodOptional<z.ZodObject<{
808
+ id: z.ZodString;
809
+ }, "strip", z.ZodTypeAny, {
810
+ id: string;
811
+ }, {
812
+ id: string;
813
+ }>>;
814
+ machine: z.ZodObject<{
815
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
816
+ cpu: z.ZodNumber;
817
+ memory: z.ZodNumber;
818
+ centsPerMs: z.ZodNumber;
819
+ }, "strip", z.ZodTypeAny, {
820
+ cpu: number;
821
+ memory: number;
822
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
823
+ centsPerMs: number;
824
+ }, {
825
+ cpu: number;
826
+ memory: number;
827
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
828
+ centsPerMs: number;
829
+ }>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ task: {
832
+ id: string;
833
+ filePath: string;
834
+ exportName?: string | undefined;
835
+ };
836
+ attempt: {
837
+ number: number;
838
+ status: string;
839
+ id: string;
840
+ startedAt: Date;
841
+ backgroundWorkerId: string;
842
+ backgroundWorkerTaskId: string;
843
+ };
844
+ run: {
845
+ payload: string;
846
+ id: string;
847
+ payloadType: string;
848
+ tags: string[];
849
+ isTest: boolean;
850
+ createdAt: Date;
851
+ startedAt: Date;
852
+ durationMs: number;
853
+ costInCents: number;
854
+ baseCostInCents: number;
855
+ context?: any;
856
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
857
+ idempotencyKey?: string | undefined;
858
+ maxAttempts?: number | undefined;
859
+ version?: string | undefined;
860
+ maxDuration?: number | undefined;
861
+ priority?: number | undefined;
862
+ } & {
863
+ traceContext?: Record<string, unknown> | undefined;
864
+ };
865
+ queue: {
866
+ name: string;
867
+ id: string;
868
+ };
869
+ environment: {
870
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
871
+ id: string;
872
+ slug: string;
873
+ };
874
+ organization: {
875
+ name: string;
876
+ id: string;
877
+ slug: string;
878
+ };
879
+ project: {
880
+ name: string;
881
+ id: string;
882
+ slug: string;
883
+ ref: string;
884
+ };
885
+ machine: {
886
+ cpu: number;
887
+ memory: number;
888
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
889
+ centsPerMs: number;
890
+ };
891
+ batch?: {
892
+ id: string;
893
+ } | undefined;
894
+ }, {
895
+ task: {
896
+ id: string;
897
+ filePath: string;
898
+ exportName?: string | undefined;
899
+ };
900
+ attempt: {
901
+ number: number;
902
+ status: string;
903
+ id: string;
904
+ startedAt: Date;
905
+ backgroundWorkerId: string;
906
+ backgroundWorkerTaskId: string;
907
+ };
908
+ run: {
909
+ payload: string;
910
+ id: string;
911
+ payloadType: string;
912
+ tags: string[];
913
+ createdAt: Date;
914
+ context?: any;
915
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
916
+ isTest?: boolean | undefined;
917
+ startedAt?: Date | undefined;
918
+ idempotencyKey?: string | undefined;
919
+ maxAttempts?: number | undefined;
920
+ version?: string | undefined;
921
+ maxDuration?: number | undefined;
922
+ durationMs?: number | undefined;
923
+ costInCents?: number | undefined;
924
+ baseCostInCents?: number | undefined;
925
+ priority?: number | undefined;
926
+ } & {
927
+ traceContext?: Record<string, unknown> | undefined;
928
+ };
929
+ queue: {
930
+ name: string;
931
+ id: string;
932
+ };
933
+ environment: {
934
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
935
+ id: string;
936
+ slug: string;
937
+ };
938
+ organization: {
939
+ name: string;
940
+ id: string;
941
+ slug: string;
942
+ };
943
+ project: {
944
+ name: string;
945
+ id: string;
946
+ slug: string;
947
+ ref: string;
948
+ };
949
+ machine: {
950
+ cpu: number;
951
+ memory: number;
952
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
953
+ centsPerMs: number;
954
+ };
955
+ batch?: {
956
+ id: string;
957
+ } | undefined;
958
+ }>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ execution: {
961
+ task: {
962
+ id: string;
963
+ filePath: string;
964
+ exportName?: string | undefined;
965
+ };
966
+ attempt: {
967
+ number: number;
968
+ status: string;
969
+ id: string;
970
+ startedAt: Date;
971
+ backgroundWorkerId: string;
972
+ backgroundWorkerTaskId: string;
973
+ };
974
+ run: {
975
+ payload: string;
976
+ id: string;
977
+ payloadType: string;
978
+ tags: string[];
979
+ isTest: boolean;
980
+ createdAt: Date;
981
+ startedAt: Date;
982
+ durationMs: number;
983
+ costInCents: number;
984
+ baseCostInCents: number;
985
+ context?: any;
986
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
987
+ idempotencyKey?: string | undefined;
988
+ maxAttempts?: number | undefined;
989
+ version?: string | undefined;
990
+ maxDuration?: number | undefined;
991
+ priority?: number | undefined;
992
+ } & {
993
+ traceContext?: Record<string, unknown> | undefined;
994
+ };
995
+ queue: {
996
+ name: string;
997
+ id: string;
998
+ };
999
+ environment: {
1000
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1001
+ id: string;
1002
+ slug: string;
1003
+ };
1004
+ organization: {
1005
+ name: string;
1006
+ id: string;
1007
+ slug: string;
1008
+ };
1009
+ project: {
1010
+ name: string;
1011
+ id: string;
1012
+ slug: string;
1013
+ ref: string;
1014
+ };
1015
+ machine: {
1016
+ cpu: number;
1017
+ memory: number;
1018
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1019
+ centsPerMs: number;
1020
+ };
1021
+ batch?: {
1022
+ id: string;
1023
+ } | undefined;
1024
+ };
1025
+ }, {
1026
+ execution: {
1027
+ task: {
1028
+ id: string;
1029
+ filePath: string;
1030
+ exportName?: string | undefined;
1031
+ };
1032
+ attempt: {
1033
+ number: number;
1034
+ status: string;
1035
+ id: string;
1036
+ startedAt: Date;
1037
+ backgroundWorkerId: string;
1038
+ backgroundWorkerTaskId: string;
1039
+ };
1040
+ run: {
1041
+ payload: string;
1042
+ id: string;
1043
+ payloadType: string;
1044
+ tags: string[];
1045
+ createdAt: Date;
1046
+ context?: any;
1047
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1048
+ isTest?: boolean | undefined;
1049
+ startedAt?: Date | undefined;
1050
+ idempotencyKey?: string | undefined;
1051
+ maxAttempts?: number | undefined;
1052
+ version?: string | undefined;
1053
+ maxDuration?: number | undefined;
1054
+ durationMs?: number | undefined;
1055
+ costInCents?: number | undefined;
1056
+ baseCostInCents?: number | undefined;
1057
+ priority?: number | undefined;
1058
+ } & {
1059
+ traceContext?: Record<string, unknown> | undefined;
1060
+ };
1061
+ queue: {
1062
+ name: string;
1063
+ id: string;
1064
+ };
1065
+ environment: {
1066
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1067
+ id: string;
1068
+ slug: string;
1069
+ };
1070
+ organization: {
1071
+ name: string;
1072
+ id: string;
1073
+ slug: string;
1074
+ };
1075
+ project: {
1076
+ name: string;
1077
+ id: string;
1078
+ slug: string;
1079
+ ref: string;
1080
+ };
1081
+ machine: {
1082
+ cpu: number;
1083
+ memory: number;
1084
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1085
+ centsPerMs: number;
1086
+ };
1087
+ batch?: {
1088
+ id: string;
1089
+ } | undefined;
1090
+ };
1091
+ }>>;
1092
+ export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
1093
+ /** The response to the Worker when completing an attempt */
1094
+ declare const CompleteAttemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
1095
+ export type CompleteAttemptStatus = z.infer<typeof CompleteAttemptStatus>;
1096
+ export declare const CompleteRunAttemptResult: z.ZodIntersection<z.ZodObject<{
1097
+ attemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
1100
+ }, {
1101
+ attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
1102
+ }>, z.ZodObject<{
1103
+ snapshot: z.ZodObject<{
1104
+ id: z.ZodString;
1105
+ friendlyId: z.ZodString;
1106
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
1107
+ description: z.ZodString;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ id: string;
1110
+ description: string;
1111
+ friendlyId: string;
1112
+ executionStatus: TaskRunExecutionStatus;
1113
+ }, {
1114
+ id: string;
1115
+ description: string;
1116
+ friendlyId: string;
1117
+ executionStatus: TaskRunExecutionStatus;
1118
+ }>;
1119
+ run: z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ friendlyId: z.ZodString;
1122
+ status: z.ZodEnum<[TaskRunStatus]>;
1123
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ status: TaskRunStatus;
1126
+ id: string;
1127
+ friendlyId: string;
1128
+ attemptNumber?: number | null | undefined;
1129
+ }, {
1130
+ status: TaskRunStatus;
1131
+ id: string;
1132
+ friendlyId: string;
1133
+ attemptNumber?: number | null | undefined;
1134
+ }>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ run: {
1137
+ status: TaskRunStatus;
1138
+ id: string;
1139
+ friendlyId: string;
1140
+ attemptNumber?: number | null | undefined;
1141
+ };
1142
+ snapshot: {
1143
+ id: string;
1144
+ description: string;
1145
+ friendlyId: string;
1146
+ executionStatus: TaskRunExecutionStatus;
1147
+ };
1148
+ }, {
1149
+ run: {
1150
+ status: TaskRunStatus;
1151
+ id: string;
1152
+ friendlyId: string;
1153
+ attemptNumber?: number | null | undefined;
1154
+ };
1155
+ snapshot: {
1156
+ id: string;
1157
+ description: string;
1158
+ friendlyId: string;
1159
+ executionStatus: TaskRunExecutionStatus;
1160
+ };
1161
+ }>>;
1162
+ export type CompleteRunAttemptResult = z.infer<typeof CompleteRunAttemptResult>;
1163
+ export declare const CheckpointTypeEnum: {
1164
+ DOCKER: "DOCKER";
1165
+ KUBERNETES: "KUBERNETES";
1166
+ };
1167
+ export type CheckpointTypeEnum = (typeof CheckpointTypeEnum)[keyof typeof CheckpointTypeEnum];
1168
+ export declare const CheckpointType: z.ZodEnum<[CheckpointTypeEnum]>;
1169
+ export type CheckpointType = z.infer<typeof CheckpointType>;
1170
+ export declare const CheckpointInput: z.ZodObject<{
1171
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1172
+ location: z.ZodString;
1173
+ imageRef: z.ZodString;
1174
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ type: CheckpointTypeEnum;
1177
+ location: string;
1178
+ imageRef: string;
1179
+ reason?: string | null | undefined;
1180
+ }, {
1181
+ type: CheckpointTypeEnum;
1182
+ location: string;
1183
+ imageRef: string;
1184
+ reason?: string | null | undefined;
1185
+ }>;
1186
+ export type CheckpointInput = z.infer<typeof CheckpointInput>;
1187
+ export declare const TaskRunCheckpoint: z.ZodObject<z.objectUtil.extendShape<{
1188
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1189
+ location: z.ZodString;
1190
+ imageRef: z.ZodString;
1191
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ }, {
1193
+ id: z.ZodString;
1194
+ friendlyId: z.ZodString;
1195
+ }>, "strip", z.ZodTypeAny, {
1196
+ type: CheckpointTypeEnum;
1197
+ id: string;
1198
+ friendlyId: string;
1199
+ location: string;
1200
+ imageRef: string;
1201
+ reason?: string | null | undefined;
1202
+ }, {
1203
+ type: CheckpointTypeEnum;
1204
+ id: string;
1205
+ friendlyId: string;
1206
+ location: string;
1207
+ imageRef: string;
1208
+ reason?: string | null | undefined;
1209
+ }>;
1210
+ export type TaskRunCheckpoint = z.infer<typeof TaskRunCheckpoint>;
1211
+ /** The response when a Worker asks for the latest execution state */
1212
+ export declare const RunExecutionData: z.ZodObject<{
1213
+ version: z.ZodLiteral<"1">;
1214
+ snapshot: z.ZodObject<{
1215
+ id: z.ZodString;
1216
+ friendlyId: z.ZodString;
1217
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
1218
+ description: z.ZodString;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ id: string;
1221
+ description: string;
1222
+ friendlyId: string;
1223
+ executionStatus: TaskRunExecutionStatus;
1224
+ }, {
1225
+ id: string;
1226
+ description: string;
1227
+ friendlyId: string;
1228
+ executionStatus: TaskRunExecutionStatus;
1229
+ }>;
1230
+ run: z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ friendlyId: z.ZodString;
1233
+ status: z.ZodEnum<[TaskRunStatus]>;
1234
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ status: TaskRunStatus;
1237
+ id: string;
1238
+ friendlyId: string;
1239
+ attemptNumber?: number | null | undefined;
1240
+ }, {
1241
+ status: TaskRunStatus;
1242
+ id: string;
1243
+ friendlyId: string;
1244
+ attemptNumber?: number | null | undefined;
1245
+ }>;
1246
+ batch: z.ZodOptional<z.ZodObject<{
1247
+ id: z.ZodString;
1248
+ friendlyId: z.ZodString;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ id: string;
1251
+ friendlyId: string;
1252
+ }, {
1253
+ id: string;
1254
+ friendlyId: string;
1255
+ }>>;
1256
+ checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
1257
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1258
+ location: z.ZodString;
1259
+ imageRef: z.ZodString;
1260
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1261
+ }, {
1262
+ id: z.ZodString;
1263
+ friendlyId: z.ZodString;
1264
+ }>, "strip", z.ZodTypeAny, {
1265
+ type: CheckpointTypeEnum;
1266
+ id: string;
1267
+ friendlyId: string;
1268
+ location: string;
1269
+ imageRef: string;
1270
+ reason?: string | null | undefined;
1271
+ }, {
1272
+ type: CheckpointTypeEnum;
1273
+ id: string;
1274
+ friendlyId: string;
1275
+ location: string;
1276
+ imageRef: string;
1277
+ reason?: string | null | undefined;
1278
+ }>>;
1279
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ index: z.ZodOptional<z.ZodNumber>;
1282
+ friendlyId: z.ZodString;
1283
+ type: z.ZodEnum<[WaitpointType]>;
1284
+ completedAt: z.ZodDate;
1285
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1286
+ /** For type === "RUN" */
1287
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ friendlyId: z.ZodString;
1290
+ /** If the run has an associated batch */
1291
+ batch: z.ZodOptional<z.ZodObject<{
1292
+ id: z.ZodString;
1293
+ friendlyId: z.ZodString;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ id: string;
1296
+ friendlyId: string;
1297
+ }, {
1298
+ id: string;
1299
+ friendlyId: string;
1300
+ }>>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ id: string;
1303
+ friendlyId: string;
1304
+ batch?: {
1305
+ id: string;
1306
+ friendlyId: string;
1307
+ } | undefined;
1308
+ }, {
1309
+ id: string;
1310
+ friendlyId: string;
1311
+ batch?: {
1312
+ id: string;
1313
+ friendlyId: string;
1314
+ } | undefined;
1315
+ }>>;
1316
+ /** For type === "DATETIME" */
1317
+ completedAfter: z.ZodOptional<z.ZodDate>;
1318
+ /** For type === "BATCH" */
1319
+ completedByBatch: z.ZodOptional<z.ZodObject<{
1320
+ id: z.ZodString;
1321
+ friendlyId: z.ZodString;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ id: string;
1324
+ friendlyId: string;
1325
+ }, {
1326
+ id: string;
1327
+ friendlyId: string;
1328
+ }>>;
1329
+ output: z.ZodOptional<z.ZodString>;
1330
+ outputType: z.ZodOptional<z.ZodString>;
1331
+ outputIsError: z.ZodBoolean;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ type: WaitpointType;
1334
+ id: string;
1335
+ completedAt: Date;
1336
+ friendlyId: string;
1337
+ outputIsError: boolean;
1338
+ idempotencyKey?: string | undefined;
1339
+ output?: string | undefined;
1340
+ outputType?: string | undefined;
1341
+ index?: number | undefined;
1342
+ completedByTaskRun?: {
1343
+ id: string;
1344
+ friendlyId: string;
1345
+ batch?: {
1346
+ id: string;
1347
+ friendlyId: string;
1348
+ } | undefined;
1349
+ } | undefined;
1350
+ completedAfter?: Date | undefined;
1351
+ completedByBatch?: {
1352
+ id: string;
1353
+ friendlyId: string;
1354
+ } | undefined;
1355
+ }, {
1356
+ type: WaitpointType;
1357
+ id: string;
1358
+ completedAt: Date;
1359
+ friendlyId: string;
1360
+ outputIsError: boolean;
1361
+ idempotencyKey?: string | undefined;
1362
+ output?: string | undefined;
1363
+ outputType?: string | undefined;
1364
+ index?: number | undefined;
1365
+ completedByTaskRun?: {
1366
+ id: string;
1367
+ friendlyId: string;
1368
+ batch?: {
1369
+ id: string;
1370
+ friendlyId: string;
1371
+ } | undefined;
1372
+ } | undefined;
1373
+ completedAfter?: Date | undefined;
1374
+ completedByBatch?: {
1375
+ id: string;
1376
+ friendlyId: string;
1377
+ } | undefined;
1378
+ }>, "many">;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ version: "1";
1381
+ run: {
1382
+ status: TaskRunStatus;
1383
+ id: string;
1384
+ friendlyId: string;
1385
+ attemptNumber?: number | null | undefined;
1386
+ };
1387
+ snapshot: {
1388
+ id: string;
1389
+ description: string;
1390
+ friendlyId: string;
1391
+ executionStatus: TaskRunExecutionStatus;
1392
+ };
1393
+ completedWaitpoints: {
1394
+ type: WaitpointType;
1395
+ id: string;
1396
+ completedAt: Date;
1397
+ friendlyId: string;
1398
+ outputIsError: boolean;
1399
+ idempotencyKey?: string | undefined;
1400
+ output?: string | undefined;
1401
+ outputType?: string | undefined;
1402
+ index?: number | undefined;
1403
+ completedByTaskRun?: {
1404
+ id: string;
1405
+ friendlyId: string;
1406
+ batch?: {
1407
+ id: string;
1408
+ friendlyId: string;
1409
+ } | undefined;
1410
+ } | undefined;
1411
+ completedAfter?: Date | undefined;
1412
+ completedByBatch?: {
1413
+ id: string;
1414
+ friendlyId: string;
1415
+ } | undefined;
1416
+ }[];
1417
+ batch?: {
1418
+ id: string;
1419
+ friendlyId: string;
1420
+ } | undefined;
1421
+ checkpoint?: {
1422
+ type: CheckpointTypeEnum;
1423
+ id: string;
1424
+ friendlyId: string;
1425
+ location: string;
1426
+ imageRef: string;
1427
+ reason?: string | null | undefined;
1428
+ } | undefined;
1429
+ }, {
1430
+ version: "1";
1431
+ run: {
1432
+ status: TaskRunStatus;
1433
+ id: string;
1434
+ friendlyId: string;
1435
+ attemptNumber?: number | null | undefined;
1436
+ };
1437
+ snapshot: {
1438
+ id: string;
1439
+ description: string;
1440
+ friendlyId: string;
1441
+ executionStatus: TaskRunExecutionStatus;
1442
+ };
1443
+ completedWaitpoints: {
1444
+ type: WaitpointType;
1445
+ id: string;
1446
+ completedAt: Date;
1447
+ friendlyId: string;
1448
+ outputIsError: boolean;
1449
+ idempotencyKey?: string | undefined;
1450
+ output?: string | undefined;
1451
+ outputType?: string | undefined;
1452
+ index?: number | undefined;
1453
+ completedByTaskRun?: {
1454
+ id: string;
1455
+ friendlyId: string;
1456
+ batch?: {
1457
+ id: string;
1458
+ friendlyId: string;
1459
+ } | undefined;
1460
+ } | undefined;
1461
+ completedAfter?: Date | undefined;
1462
+ completedByBatch?: {
1463
+ id: string;
1464
+ friendlyId: string;
1465
+ } | undefined;
1466
+ }[];
1467
+ batch?: {
1468
+ id: string;
1469
+ friendlyId: string;
1470
+ } | undefined;
1471
+ checkpoint?: {
1472
+ type: CheckpointTypeEnum;
1473
+ id: string;
1474
+ friendlyId: string;
1475
+ location: string;
1476
+ imageRef: string;
1477
+ reason?: string | null | undefined;
1478
+ } | undefined;
1479
+ }>;
1480
+ export type RunExecutionData = z.infer<typeof RunExecutionData>;
1481
+ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<z.objectUtil.extendShape<{
1482
+ ok: z.ZodLiteral<true>;
1483
+ checkpoint: z.ZodObject<z.objectUtil.extendShape<{
1484
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1485
+ location: z.ZodString;
1486
+ imageRef: z.ZodString;
1487
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ }, {
1489
+ id: z.ZodString;
1490
+ friendlyId: z.ZodString;
1491
+ }>, "strip", z.ZodTypeAny, {
1492
+ type: CheckpointTypeEnum;
1493
+ id: string;
1494
+ friendlyId: string;
1495
+ location: string;
1496
+ imageRef: string;
1497
+ reason?: string | null | undefined;
1498
+ }, {
1499
+ type: CheckpointTypeEnum;
1500
+ id: string;
1501
+ friendlyId: string;
1502
+ location: string;
1503
+ imageRef: string;
1504
+ reason?: string | null | undefined;
1505
+ }>;
1506
+ }, {
1507
+ snapshot: z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ friendlyId: z.ZodString;
1510
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
1511
+ description: z.ZodString;
1512
+ }, "strip", z.ZodTypeAny, {
1513
+ id: string;
1514
+ description: string;
1515
+ friendlyId: string;
1516
+ executionStatus: TaskRunExecutionStatus;
1517
+ }, {
1518
+ id: string;
1519
+ description: string;
1520
+ friendlyId: string;
1521
+ executionStatus: TaskRunExecutionStatus;
1522
+ }>;
1523
+ run: z.ZodObject<{
1524
+ id: z.ZodString;
1525
+ friendlyId: z.ZodString;
1526
+ status: z.ZodEnum<[TaskRunStatus]>;
1527
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ status: TaskRunStatus;
1530
+ id: string;
1531
+ friendlyId: string;
1532
+ attemptNumber?: number | null | undefined;
1533
+ }, {
1534
+ status: TaskRunStatus;
1535
+ id: string;
1536
+ friendlyId: string;
1537
+ attemptNumber?: number | null | undefined;
1538
+ }>;
1539
+ }>, "strip", z.ZodTypeAny, {
1540
+ ok: true;
1541
+ run: {
1542
+ status: TaskRunStatus;
1543
+ id: string;
1544
+ friendlyId: string;
1545
+ attemptNumber?: number | null | undefined;
1546
+ };
1547
+ snapshot: {
1548
+ id: string;
1549
+ description: string;
1550
+ friendlyId: string;
1551
+ executionStatus: TaskRunExecutionStatus;
1552
+ };
1553
+ checkpoint: {
1554
+ type: CheckpointTypeEnum;
1555
+ id: string;
1556
+ friendlyId: string;
1557
+ location: string;
1558
+ imageRef: string;
1559
+ reason?: string | null | undefined;
1560
+ };
1561
+ }, {
1562
+ ok: true;
1563
+ run: {
1564
+ status: TaskRunStatus;
1565
+ id: string;
1566
+ friendlyId: string;
1567
+ attemptNumber?: number | null | undefined;
1568
+ };
1569
+ snapshot: {
1570
+ id: string;
1571
+ description: string;
1572
+ friendlyId: string;
1573
+ executionStatus: TaskRunExecutionStatus;
1574
+ };
1575
+ checkpoint: {
1576
+ type: CheckpointTypeEnum;
1577
+ id: string;
1578
+ friendlyId: string;
1579
+ location: string;
1580
+ imageRef: string;
1581
+ reason?: string | null | undefined;
1582
+ };
1583
+ }>, z.ZodObject<{
1584
+ ok: z.ZodLiteral<false>;
1585
+ error: z.ZodString;
1586
+ }, "strip", z.ZodTypeAny, {
1587
+ error: string;
1588
+ ok: false;
1589
+ }, {
1590
+ error: string;
1591
+ ok: false;
1592
+ }>]>;
1593
+ export type CreateCheckpointResult = z.infer<typeof CreateCheckpointResult>;
1594
+ export declare const MachineResources: z.ZodObject<{
1595
+ cpu: z.ZodNumber;
1596
+ memory: z.ZodNumber;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ cpu: number;
1599
+ memory: number;
1600
+ }, {
1601
+ cpu: number;
1602
+ memory: number;
1603
+ }>;
1604
+ export type MachineResources = z.infer<typeof MachineResources>;
1605
+ export {};