@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,1630 @@
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
+ /** The response to the Worker when starting an attempt */
216
+ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
217
+ snapshot: z.ZodObject<{
218
+ id: z.ZodString;
219
+ friendlyId: z.ZodString;
220
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
221
+ description: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ id: string;
224
+ description: string;
225
+ friendlyId: string;
226
+ executionStatus: TaskRunExecutionStatus;
227
+ }, {
228
+ id: string;
229
+ description: string;
230
+ friendlyId: string;
231
+ executionStatus: TaskRunExecutionStatus;
232
+ }>;
233
+ run: z.ZodObject<{
234
+ id: z.ZodString;
235
+ friendlyId: z.ZodString;
236
+ status: z.ZodEnum<[TaskRunStatus]>;
237
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ status: TaskRunStatus;
240
+ id: string;
241
+ friendlyId: string;
242
+ attemptNumber?: number | null | undefined;
243
+ }, {
244
+ status: TaskRunStatus;
245
+ id: string;
246
+ friendlyId: string;
247
+ attemptNumber?: number | null | undefined;
248
+ }>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ run: {
251
+ status: TaskRunStatus;
252
+ id: string;
253
+ friendlyId: string;
254
+ attemptNumber?: number | null | undefined;
255
+ };
256
+ snapshot: {
257
+ id: string;
258
+ description: string;
259
+ friendlyId: string;
260
+ executionStatus: TaskRunExecutionStatus;
261
+ };
262
+ }, {
263
+ run: {
264
+ status: TaskRunStatus;
265
+ id: string;
266
+ friendlyId: string;
267
+ attemptNumber?: number | null | undefined;
268
+ };
269
+ snapshot: {
270
+ id: string;
271
+ description: string;
272
+ friendlyId: string;
273
+ executionStatus: TaskRunExecutionStatus;
274
+ };
275
+ }>, z.ZodObject<{
276
+ execution: z.ZodObject<{
277
+ task: z.ZodObject<{
278
+ id: z.ZodString;
279
+ filePath: z.ZodString;
280
+ exportName: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ id: string;
283
+ filePath: string;
284
+ exportName?: string | undefined;
285
+ }, {
286
+ id: string;
287
+ filePath: string;
288
+ exportName?: string | undefined;
289
+ }>;
290
+ attempt: z.ZodObject<{
291
+ number: z.ZodNumber;
292
+ startedAt: z.ZodDate;
293
+ id: z.ZodString;
294
+ backgroundWorkerId: z.ZodString;
295
+ backgroundWorkerTaskId: z.ZodString;
296
+ status: z.ZodString;
297
+ }, "strip", z.ZodTypeAny, {
298
+ number: number;
299
+ status: string;
300
+ id: string;
301
+ startedAt: Date;
302
+ backgroundWorkerId: string;
303
+ backgroundWorkerTaskId: string;
304
+ }, {
305
+ number: number;
306
+ status: string;
307
+ id: string;
308
+ startedAt: Date;
309
+ backgroundWorkerId: string;
310
+ backgroundWorkerTaskId: string;
311
+ }>;
312
+ run: z.ZodIntersection<z.ZodObject<{
313
+ id: z.ZodString;
314
+ payload: z.ZodString;
315
+ payloadType: z.ZodString;
316
+ tags: z.ZodArray<z.ZodString, "many">;
317
+ isTest: z.ZodDefault<z.ZodBoolean>;
318
+ createdAt: z.ZodDate;
319
+ startedAt: z.ZodDefault<z.ZodDate>;
320
+ idempotencyKey: z.ZodOptional<z.ZodString>;
321
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
322
+ version: z.ZodOptional<z.ZodString>;
323
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
324
+ maxDuration: z.ZodOptional<z.ZodNumber>;
325
+ context: z.ZodAny;
326
+ durationMs: z.ZodDefault<z.ZodNumber>;
327
+ costInCents: z.ZodDefault<z.ZodNumber>;
328
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
329
+ priority: z.ZodOptional<z.ZodNumber>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ payload: string;
332
+ id: string;
333
+ payloadType: string;
334
+ tags: string[];
335
+ isTest: boolean;
336
+ createdAt: Date;
337
+ startedAt: Date;
338
+ durationMs: number;
339
+ costInCents: number;
340
+ baseCostInCents: number;
341
+ context?: any;
342
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
343
+ idempotencyKey?: string | undefined;
344
+ maxAttempts?: number | undefined;
345
+ version?: string | undefined;
346
+ maxDuration?: number | undefined;
347
+ priority?: number | undefined;
348
+ }, {
349
+ payload: string;
350
+ id: string;
351
+ payloadType: string;
352
+ tags: string[];
353
+ createdAt: Date;
354
+ context?: any;
355
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
356
+ isTest?: boolean | undefined;
357
+ startedAt?: Date | undefined;
358
+ idempotencyKey?: string | undefined;
359
+ maxAttempts?: number | undefined;
360
+ version?: string | undefined;
361
+ maxDuration?: number | undefined;
362
+ durationMs?: number | undefined;
363
+ costInCents?: number | undefined;
364
+ baseCostInCents?: number | undefined;
365
+ priority?: number | undefined;
366
+ }>, z.ZodObject<{
367
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ traceContext?: Record<string, unknown> | undefined;
370
+ }, {
371
+ traceContext?: Record<string, unknown> | undefined;
372
+ }>>;
373
+ queue: z.ZodObject<{
374
+ id: z.ZodString;
375
+ name: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ name: string;
378
+ id: string;
379
+ }, {
380
+ name: string;
381
+ id: string;
382
+ }>;
383
+ environment: z.ZodObject<{
384
+ id: z.ZodString;
385
+ slug: z.ZodString;
386
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
389
+ id: string;
390
+ slug: string;
391
+ }, {
392
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
393
+ id: string;
394
+ slug: string;
395
+ }>;
396
+ organization: z.ZodObject<{
397
+ id: z.ZodString;
398
+ slug: z.ZodString;
399
+ name: z.ZodString;
400
+ }, "strip", z.ZodTypeAny, {
401
+ name: string;
402
+ id: string;
403
+ slug: string;
404
+ }, {
405
+ name: string;
406
+ id: string;
407
+ slug: string;
408
+ }>;
409
+ project: z.ZodObject<{
410
+ id: z.ZodString;
411
+ ref: z.ZodString;
412
+ slug: z.ZodString;
413
+ name: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ name: string;
416
+ id: string;
417
+ slug: string;
418
+ ref: string;
419
+ }, {
420
+ name: string;
421
+ id: string;
422
+ slug: string;
423
+ ref: string;
424
+ }>;
425
+ batch: z.ZodOptional<z.ZodObject<{
426
+ id: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ id: string;
429
+ }, {
430
+ id: string;
431
+ }>>;
432
+ machine: z.ZodObject<{
433
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
434
+ cpu: z.ZodNumber;
435
+ memory: z.ZodNumber;
436
+ centsPerMs: z.ZodNumber;
437
+ }, "strip", z.ZodTypeAny, {
438
+ cpu: number;
439
+ memory: number;
440
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
441
+ centsPerMs: number;
442
+ }, {
443
+ cpu: number;
444
+ memory: number;
445
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
446
+ centsPerMs: number;
447
+ }>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ task: {
450
+ id: string;
451
+ filePath: string;
452
+ exportName?: string | undefined;
453
+ };
454
+ attempt: {
455
+ number: number;
456
+ status: string;
457
+ id: string;
458
+ startedAt: Date;
459
+ backgroundWorkerId: string;
460
+ backgroundWorkerTaskId: string;
461
+ };
462
+ run: {
463
+ payload: string;
464
+ id: string;
465
+ payloadType: string;
466
+ tags: string[];
467
+ isTest: boolean;
468
+ createdAt: Date;
469
+ startedAt: Date;
470
+ durationMs: number;
471
+ costInCents: number;
472
+ baseCostInCents: number;
473
+ context?: any;
474
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
475
+ idempotencyKey?: string | undefined;
476
+ maxAttempts?: number | undefined;
477
+ version?: string | undefined;
478
+ maxDuration?: number | undefined;
479
+ priority?: number | undefined;
480
+ } & {
481
+ traceContext?: Record<string, unknown> | undefined;
482
+ };
483
+ queue: {
484
+ name: string;
485
+ id: string;
486
+ };
487
+ environment: {
488
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
489
+ id: string;
490
+ slug: string;
491
+ };
492
+ organization: {
493
+ name: string;
494
+ id: string;
495
+ slug: string;
496
+ };
497
+ project: {
498
+ name: string;
499
+ id: string;
500
+ slug: string;
501
+ ref: string;
502
+ };
503
+ machine: {
504
+ cpu: number;
505
+ memory: number;
506
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
507
+ centsPerMs: number;
508
+ };
509
+ batch?: {
510
+ id: string;
511
+ } | undefined;
512
+ }, {
513
+ task: {
514
+ id: string;
515
+ filePath: string;
516
+ exportName?: string | undefined;
517
+ };
518
+ attempt: {
519
+ number: number;
520
+ status: string;
521
+ id: string;
522
+ startedAt: Date;
523
+ backgroundWorkerId: string;
524
+ backgroundWorkerTaskId: string;
525
+ };
526
+ run: {
527
+ payload: string;
528
+ id: string;
529
+ payloadType: string;
530
+ tags: string[];
531
+ createdAt: Date;
532
+ context?: any;
533
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
534
+ isTest?: boolean | undefined;
535
+ startedAt?: Date | undefined;
536
+ idempotencyKey?: string | undefined;
537
+ maxAttempts?: number | undefined;
538
+ version?: string | undefined;
539
+ maxDuration?: number | undefined;
540
+ durationMs?: number | undefined;
541
+ costInCents?: number | undefined;
542
+ baseCostInCents?: number | undefined;
543
+ priority?: number | undefined;
544
+ } & {
545
+ traceContext?: Record<string, unknown> | undefined;
546
+ };
547
+ queue: {
548
+ name: string;
549
+ id: string;
550
+ };
551
+ environment: {
552
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
553
+ id: string;
554
+ slug: string;
555
+ };
556
+ organization: {
557
+ name: string;
558
+ id: string;
559
+ slug: string;
560
+ };
561
+ project: {
562
+ name: string;
563
+ id: string;
564
+ slug: string;
565
+ ref: string;
566
+ };
567
+ machine: {
568
+ cpu: number;
569
+ memory: number;
570
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
571
+ centsPerMs: number;
572
+ };
573
+ batch?: {
574
+ id: string;
575
+ } | undefined;
576
+ }>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ execution: {
579
+ task: {
580
+ id: string;
581
+ filePath: string;
582
+ exportName?: string | undefined;
583
+ };
584
+ attempt: {
585
+ number: number;
586
+ status: string;
587
+ id: string;
588
+ startedAt: Date;
589
+ backgroundWorkerId: string;
590
+ backgroundWorkerTaskId: string;
591
+ };
592
+ run: {
593
+ payload: string;
594
+ id: string;
595
+ payloadType: string;
596
+ tags: string[];
597
+ isTest: boolean;
598
+ createdAt: Date;
599
+ startedAt: Date;
600
+ durationMs: number;
601
+ costInCents: number;
602
+ baseCostInCents: number;
603
+ context?: any;
604
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
605
+ idempotencyKey?: string | undefined;
606
+ maxAttempts?: number | undefined;
607
+ version?: string | undefined;
608
+ maxDuration?: number | undefined;
609
+ priority?: number | undefined;
610
+ } & {
611
+ traceContext?: Record<string, unknown> | undefined;
612
+ };
613
+ queue: {
614
+ name: string;
615
+ id: string;
616
+ };
617
+ environment: {
618
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
619
+ id: string;
620
+ slug: string;
621
+ };
622
+ organization: {
623
+ name: string;
624
+ id: string;
625
+ slug: string;
626
+ };
627
+ project: {
628
+ name: string;
629
+ id: string;
630
+ slug: string;
631
+ ref: string;
632
+ };
633
+ machine: {
634
+ cpu: number;
635
+ memory: number;
636
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
637
+ centsPerMs: number;
638
+ };
639
+ batch?: {
640
+ id: string;
641
+ } | undefined;
642
+ };
643
+ }, {
644
+ execution: {
645
+ task: {
646
+ id: string;
647
+ filePath: string;
648
+ exportName?: string | undefined;
649
+ };
650
+ attempt: {
651
+ number: number;
652
+ status: string;
653
+ id: string;
654
+ startedAt: Date;
655
+ backgroundWorkerId: string;
656
+ backgroundWorkerTaskId: string;
657
+ };
658
+ run: {
659
+ payload: string;
660
+ id: string;
661
+ payloadType: string;
662
+ tags: string[];
663
+ createdAt: Date;
664
+ context?: any;
665
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
666
+ isTest?: boolean | undefined;
667
+ startedAt?: Date | undefined;
668
+ idempotencyKey?: string | undefined;
669
+ maxAttempts?: number | undefined;
670
+ version?: string | undefined;
671
+ maxDuration?: number | undefined;
672
+ durationMs?: number | undefined;
673
+ costInCents?: number | undefined;
674
+ baseCostInCents?: number | undefined;
675
+ priority?: number | undefined;
676
+ } & {
677
+ traceContext?: Record<string, unknown> | undefined;
678
+ };
679
+ queue: {
680
+ name: string;
681
+ id: string;
682
+ };
683
+ environment: {
684
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
685
+ id: string;
686
+ slug: string;
687
+ };
688
+ organization: {
689
+ name: string;
690
+ id: string;
691
+ slug: string;
692
+ };
693
+ project: {
694
+ name: string;
695
+ id: string;
696
+ slug: string;
697
+ ref: string;
698
+ };
699
+ machine: {
700
+ cpu: number;
701
+ memory: number;
702
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
703
+ centsPerMs: number;
704
+ };
705
+ batch?: {
706
+ id: string;
707
+ } | undefined;
708
+ };
709
+ }>>;
710
+ export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
711
+ /** The response to the Worker when completing an attempt */
712
+ declare const CompleteAttemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
713
+ export type CompleteAttemptStatus = z.infer<typeof CompleteAttemptStatus>;
714
+ export declare const CompleteRunAttemptResult: z.ZodIntersection<z.ZodObject<{
715
+ attemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
718
+ }, {
719
+ attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
720
+ }>, z.ZodObject<{
721
+ snapshot: z.ZodObject<{
722
+ id: z.ZodString;
723
+ friendlyId: z.ZodString;
724
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
725
+ description: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ id: string;
728
+ description: string;
729
+ friendlyId: string;
730
+ executionStatus: TaskRunExecutionStatus;
731
+ }, {
732
+ id: string;
733
+ description: string;
734
+ friendlyId: string;
735
+ executionStatus: TaskRunExecutionStatus;
736
+ }>;
737
+ run: z.ZodObject<{
738
+ id: z.ZodString;
739
+ friendlyId: z.ZodString;
740
+ status: z.ZodEnum<[TaskRunStatus]>;
741
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ status: TaskRunStatus;
744
+ id: string;
745
+ friendlyId: string;
746
+ attemptNumber?: number | null | undefined;
747
+ }, {
748
+ status: TaskRunStatus;
749
+ id: string;
750
+ friendlyId: string;
751
+ attemptNumber?: number | null | undefined;
752
+ }>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ run: {
755
+ status: TaskRunStatus;
756
+ id: string;
757
+ friendlyId: string;
758
+ attemptNumber?: number | null | undefined;
759
+ };
760
+ snapshot: {
761
+ id: string;
762
+ description: string;
763
+ friendlyId: string;
764
+ executionStatus: TaskRunExecutionStatus;
765
+ };
766
+ }, {
767
+ run: {
768
+ status: TaskRunStatus;
769
+ id: string;
770
+ friendlyId: string;
771
+ attemptNumber?: number | null | undefined;
772
+ };
773
+ snapshot: {
774
+ id: string;
775
+ description: string;
776
+ friendlyId: string;
777
+ executionStatus: TaskRunExecutionStatus;
778
+ };
779
+ }>>;
780
+ export type CompleteRunAttemptResult = z.infer<typeof CompleteRunAttemptResult>;
781
+ export declare const CheckpointTypeEnum: {
782
+ DOCKER: "DOCKER";
783
+ KUBERNETES: "KUBERNETES";
784
+ };
785
+ export type CheckpointTypeEnum = (typeof CheckpointTypeEnum)[keyof typeof CheckpointTypeEnum];
786
+ export declare const CheckpointType: z.ZodEnum<[CheckpointTypeEnum]>;
787
+ export type CheckpointType = z.infer<typeof CheckpointType>;
788
+ export declare const CheckpointInput: z.ZodObject<{
789
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
790
+ location: z.ZodString;
791
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ type: CheckpointTypeEnum;
795
+ location: string;
796
+ imageRef?: string | null | undefined;
797
+ reason?: string | null | undefined;
798
+ }, {
799
+ type: CheckpointTypeEnum;
800
+ location: string;
801
+ imageRef?: string | null | undefined;
802
+ reason?: string | null | undefined;
803
+ }>;
804
+ export type CheckpointInput = z.infer<typeof CheckpointInput>;
805
+ export declare const TaskRunCheckpoint: z.ZodObject<z.objectUtil.extendShape<{
806
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
807
+ location: z.ZodString;
808
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ }, {
811
+ id: z.ZodString;
812
+ friendlyId: z.ZodString;
813
+ }>, "strip", z.ZodTypeAny, {
814
+ type: CheckpointTypeEnum;
815
+ id: string;
816
+ friendlyId: string;
817
+ location: string;
818
+ imageRef?: string | null | undefined;
819
+ reason?: string | null | undefined;
820
+ }, {
821
+ type: CheckpointTypeEnum;
822
+ id: string;
823
+ friendlyId: string;
824
+ location: string;
825
+ imageRef?: string | null | undefined;
826
+ reason?: string | null | undefined;
827
+ }>;
828
+ export type TaskRunCheckpoint = z.infer<typeof TaskRunCheckpoint>;
829
+ /** The response when a Worker asks for the latest execution state */
830
+ export declare const RunExecutionData: z.ZodObject<{
831
+ version: z.ZodLiteral<"1">;
832
+ snapshot: z.ZodObject<{
833
+ id: z.ZodString;
834
+ friendlyId: z.ZodString;
835
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
836
+ description: z.ZodString;
837
+ }, "strip", z.ZodTypeAny, {
838
+ id: string;
839
+ description: string;
840
+ friendlyId: string;
841
+ executionStatus: TaskRunExecutionStatus;
842
+ }, {
843
+ id: string;
844
+ description: string;
845
+ friendlyId: string;
846
+ executionStatus: TaskRunExecutionStatus;
847
+ }>;
848
+ run: z.ZodObject<{
849
+ id: z.ZodString;
850
+ friendlyId: z.ZodString;
851
+ status: z.ZodEnum<[TaskRunStatus]>;
852
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ status: TaskRunStatus;
855
+ id: string;
856
+ friendlyId: string;
857
+ attemptNumber?: number | null | undefined;
858
+ }, {
859
+ status: TaskRunStatus;
860
+ id: string;
861
+ friendlyId: string;
862
+ attemptNumber?: number | null | undefined;
863
+ }>;
864
+ batch: z.ZodOptional<z.ZodObject<{
865
+ id: z.ZodString;
866
+ friendlyId: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ id: string;
869
+ friendlyId: string;
870
+ }, {
871
+ id: string;
872
+ friendlyId: string;
873
+ }>>;
874
+ checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
875
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
876
+ location: z.ZodString;
877
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ }, {
880
+ id: z.ZodString;
881
+ friendlyId: z.ZodString;
882
+ }>, "strip", z.ZodTypeAny, {
883
+ type: CheckpointTypeEnum;
884
+ id: string;
885
+ friendlyId: string;
886
+ location: string;
887
+ imageRef?: string | null | undefined;
888
+ reason?: string | null | undefined;
889
+ }, {
890
+ type: CheckpointTypeEnum;
891
+ id: string;
892
+ friendlyId: string;
893
+ location: string;
894
+ imageRef?: string | null | undefined;
895
+ reason?: string | null | undefined;
896
+ }>>;
897
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
898
+ id: z.ZodString;
899
+ index: z.ZodOptional<z.ZodNumber>;
900
+ friendlyId: z.ZodString;
901
+ type: z.ZodEnum<[WaitpointType]>;
902
+ completedAt: z.ZodDate;
903
+ idempotencyKey: z.ZodOptional<z.ZodString>;
904
+ /** For type === "RUN" */
905
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
906
+ id: z.ZodString;
907
+ friendlyId: z.ZodString;
908
+ /** If the run has an associated batch */
909
+ batch: z.ZodOptional<z.ZodObject<{
910
+ id: z.ZodString;
911
+ friendlyId: z.ZodString;
912
+ }, "strip", z.ZodTypeAny, {
913
+ id: string;
914
+ friendlyId: string;
915
+ }, {
916
+ id: string;
917
+ friendlyId: string;
918
+ }>>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ id: string;
921
+ friendlyId: string;
922
+ batch?: {
923
+ id: string;
924
+ friendlyId: string;
925
+ } | undefined;
926
+ }, {
927
+ id: string;
928
+ friendlyId: string;
929
+ batch?: {
930
+ id: string;
931
+ friendlyId: string;
932
+ } | undefined;
933
+ }>>;
934
+ /** For type === "DATETIME" */
935
+ completedAfter: z.ZodOptional<z.ZodDate>;
936
+ /** For type === "BATCH" */
937
+ completedByBatch: z.ZodOptional<z.ZodObject<{
938
+ id: z.ZodString;
939
+ friendlyId: z.ZodString;
940
+ }, "strip", z.ZodTypeAny, {
941
+ id: string;
942
+ friendlyId: string;
943
+ }, {
944
+ id: string;
945
+ friendlyId: string;
946
+ }>>;
947
+ output: z.ZodOptional<z.ZodString>;
948
+ outputType: z.ZodOptional<z.ZodString>;
949
+ outputIsError: z.ZodBoolean;
950
+ }, "strip", z.ZodTypeAny, {
951
+ type: WaitpointType;
952
+ id: string;
953
+ completedAt: Date;
954
+ friendlyId: string;
955
+ outputIsError: boolean;
956
+ idempotencyKey?: string | undefined;
957
+ output?: string | undefined;
958
+ outputType?: string | undefined;
959
+ index?: number | undefined;
960
+ completedByTaskRun?: {
961
+ id: string;
962
+ friendlyId: string;
963
+ batch?: {
964
+ id: string;
965
+ friendlyId: string;
966
+ } | undefined;
967
+ } | undefined;
968
+ completedAfter?: Date | undefined;
969
+ completedByBatch?: {
970
+ id: string;
971
+ friendlyId: string;
972
+ } | undefined;
973
+ }, {
974
+ type: WaitpointType;
975
+ id: string;
976
+ completedAt: Date;
977
+ friendlyId: string;
978
+ outputIsError: boolean;
979
+ idempotencyKey?: string | undefined;
980
+ output?: string | undefined;
981
+ outputType?: string | undefined;
982
+ index?: number | undefined;
983
+ completedByTaskRun?: {
984
+ id: string;
985
+ friendlyId: string;
986
+ batch?: {
987
+ id: string;
988
+ friendlyId: string;
989
+ } | undefined;
990
+ } | undefined;
991
+ completedAfter?: Date | undefined;
992
+ completedByBatch?: {
993
+ id: string;
994
+ friendlyId: string;
995
+ } | undefined;
996
+ }>, "many">;
997
+ }, "strip", z.ZodTypeAny, {
998
+ version: "1";
999
+ run: {
1000
+ status: TaskRunStatus;
1001
+ id: string;
1002
+ friendlyId: string;
1003
+ attemptNumber?: number | null | undefined;
1004
+ };
1005
+ snapshot: {
1006
+ id: string;
1007
+ description: string;
1008
+ friendlyId: string;
1009
+ executionStatus: TaskRunExecutionStatus;
1010
+ };
1011
+ completedWaitpoints: {
1012
+ type: WaitpointType;
1013
+ id: string;
1014
+ completedAt: Date;
1015
+ friendlyId: string;
1016
+ outputIsError: boolean;
1017
+ idempotencyKey?: string | undefined;
1018
+ output?: string | undefined;
1019
+ outputType?: string | undefined;
1020
+ index?: number | undefined;
1021
+ completedByTaskRun?: {
1022
+ id: string;
1023
+ friendlyId: string;
1024
+ batch?: {
1025
+ id: string;
1026
+ friendlyId: string;
1027
+ } | undefined;
1028
+ } | undefined;
1029
+ completedAfter?: Date | undefined;
1030
+ completedByBatch?: {
1031
+ id: string;
1032
+ friendlyId: string;
1033
+ } | undefined;
1034
+ }[];
1035
+ batch?: {
1036
+ id: string;
1037
+ friendlyId: string;
1038
+ } | undefined;
1039
+ checkpoint?: {
1040
+ type: CheckpointTypeEnum;
1041
+ id: string;
1042
+ friendlyId: string;
1043
+ location: string;
1044
+ imageRef?: string | null | undefined;
1045
+ reason?: string | null | undefined;
1046
+ } | undefined;
1047
+ }, {
1048
+ version: "1";
1049
+ run: {
1050
+ status: TaskRunStatus;
1051
+ id: string;
1052
+ friendlyId: string;
1053
+ attemptNumber?: number | null | undefined;
1054
+ };
1055
+ snapshot: {
1056
+ id: string;
1057
+ description: string;
1058
+ friendlyId: string;
1059
+ executionStatus: TaskRunExecutionStatus;
1060
+ };
1061
+ completedWaitpoints: {
1062
+ type: WaitpointType;
1063
+ id: string;
1064
+ completedAt: Date;
1065
+ friendlyId: string;
1066
+ outputIsError: boolean;
1067
+ idempotencyKey?: string | undefined;
1068
+ output?: string | undefined;
1069
+ outputType?: string | undefined;
1070
+ index?: number | undefined;
1071
+ completedByTaskRun?: {
1072
+ id: string;
1073
+ friendlyId: string;
1074
+ batch?: {
1075
+ id: string;
1076
+ friendlyId: string;
1077
+ } | undefined;
1078
+ } | undefined;
1079
+ completedAfter?: Date | undefined;
1080
+ completedByBatch?: {
1081
+ id: string;
1082
+ friendlyId: string;
1083
+ } | undefined;
1084
+ }[];
1085
+ batch?: {
1086
+ id: string;
1087
+ friendlyId: string;
1088
+ } | undefined;
1089
+ checkpoint?: {
1090
+ type: CheckpointTypeEnum;
1091
+ id: string;
1092
+ friendlyId: string;
1093
+ location: string;
1094
+ imageRef?: string | null | undefined;
1095
+ reason?: string | null | undefined;
1096
+ } | undefined;
1097
+ }>;
1098
+ export type RunExecutionData = z.infer<typeof RunExecutionData>;
1099
+ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<z.objectUtil.extendShape<{
1100
+ ok: z.ZodLiteral<true>;
1101
+ checkpoint: z.ZodObject<z.objectUtil.extendShape<{
1102
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1103
+ location: z.ZodString;
1104
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1105
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1106
+ }, {
1107
+ id: z.ZodString;
1108
+ friendlyId: z.ZodString;
1109
+ }>, "strip", z.ZodTypeAny, {
1110
+ type: CheckpointTypeEnum;
1111
+ id: string;
1112
+ friendlyId: string;
1113
+ location: string;
1114
+ imageRef?: string | null | undefined;
1115
+ reason?: string | null | undefined;
1116
+ }, {
1117
+ type: CheckpointTypeEnum;
1118
+ id: string;
1119
+ friendlyId: string;
1120
+ location: string;
1121
+ imageRef?: string | null | undefined;
1122
+ reason?: string | null | undefined;
1123
+ }>;
1124
+ }, {
1125
+ snapshot: z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ friendlyId: z.ZodString;
1128
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
1129
+ description: z.ZodString;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ id: string;
1132
+ description: string;
1133
+ friendlyId: string;
1134
+ executionStatus: TaskRunExecutionStatus;
1135
+ }, {
1136
+ id: string;
1137
+ description: string;
1138
+ friendlyId: string;
1139
+ executionStatus: TaskRunExecutionStatus;
1140
+ }>;
1141
+ run: z.ZodObject<{
1142
+ id: z.ZodString;
1143
+ friendlyId: z.ZodString;
1144
+ status: z.ZodEnum<[TaskRunStatus]>;
1145
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ status: TaskRunStatus;
1148
+ id: string;
1149
+ friendlyId: string;
1150
+ attemptNumber?: number | null | undefined;
1151
+ }, {
1152
+ status: TaskRunStatus;
1153
+ id: string;
1154
+ friendlyId: string;
1155
+ attemptNumber?: number | null | undefined;
1156
+ }>;
1157
+ }>, "strip", z.ZodTypeAny, {
1158
+ ok: true;
1159
+ run: {
1160
+ status: TaskRunStatus;
1161
+ id: string;
1162
+ friendlyId: string;
1163
+ attemptNumber?: number | null | undefined;
1164
+ };
1165
+ snapshot: {
1166
+ id: string;
1167
+ description: string;
1168
+ friendlyId: string;
1169
+ executionStatus: TaskRunExecutionStatus;
1170
+ };
1171
+ checkpoint: {
1172
+ type: CheckpointTypeEnum;
1173
+ id: string;
1174
+ friendlyId: string;
1175
+ location: string;
1176
+ imageRef?: string | null | undefined;
1177
+ reason?: string | null | undefined;
1178
+ };
1179
+ }, {
1180
+ ok: true;
1181
+ run: {
1182
+ status: TaskRunStatus;
1183
+ id: string;
1184
+ friendlyId: string;
1185
+ attemptNumber?: number | null | undefined;
1186
+ };
1187
+ snapshot: {
1188
+ id: string;
1189
+ description: string;
1190
+ friendlyId: string;
1191
+ executionStatus: TaskRunExecutionStatus;
1192
+ };
1193
+ checkpoint: {
1194
+ type: CheckpointTypeEnum;
1195
+ id: string;
1196
+ friendlyId: string;
1197
+ location: string;
1198
+ imageRef?: string | null | undefined;
1199
+ reason?: string | null | undefined;
1200
+ };
1201
+ }>, z.ZodObject<{
1202
+ ok: z.ZodLiteral<false>;
1203
+ error: z.ZodString;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ error: string;
1206
+ ok: false;
1207
+ }, {
1208
+ error: string;
1209
+ ok: false;
1210
+ }>]>;
1211
+ export type CreateCheckpointResult = z.infer<typeof CreateCheckpointResult>;
1212
+ export declare const MachineResources: z.ZodObject<{
1213
+ cpu: z.ZodNumber;
1214
+ memory: z.ZodNumber;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ cpu: number;
1217
+ memory: number;
1218
+ }, {
1219
+ cpu: number;
1220
+ memory: number;
1221
+ }>;
1222
+ export type MachineResources = z.infer<typeof MachineResources>;
1223
+ export declare const DequeueMessageCheckpoint: z.ZodObject<{
1224
+ id: z.ZodString;
1225
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1226
+ location: z.ZodString;
1227
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ type: CheckpointTypeEnum;
1231
+ id: string;
1232
+ location: string;
1233
+ imageRef?: string | null | undefined;
1234
+ reason?: string | null | undefined;
1235
+ }, {
1236
+ type: CheckpointTypeEnum;
1237
+ id: string;
1238
+ location: string;
1239
+ imageRef?: string | null | undefined;
1240
+ reason?: string | null | undefined;
1241
+ }>;
1242
+ export type DequeueMessageCheckpoint = z.infer<typeof DequeueMessageCheckpoint>;
1243
+ /** This is sent to a Worker when a run is dequeued (a new run or continuing run) */
1244
+ export declare const DequeuedMessage: z.ZodObject<{
1245
+ version: z.ZodLiteral<"1">;
1246
+ snapshot: z.ZodObject<{
1247
+ id: z.ZodString;
1248
+ friendlyId: z.ZodString;
1249
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
1250
+ description: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ id: string;
1253
+ description: string;
1254
+ friendlyId: string;
1255
+ executionStatus: TaskRunExecutionStatus;
1256
+ }, {
1257
+ id: string;
1258
+ description: string;
1259
+ friendlyId: string;
1260
+ executionStatus: TaskRunExecutionStatus;
1261
+ }>;
1262
+ dequeuedAt: z.ZodDate;
1263
+ image: z.ZodOptional<z.ZodString>;
1264
+ checkpoint: z.ZodOptional<z.ZodObject<{
1265
+ id: z.ZodString;
1266
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
1267
+ location: z.ZodString;
1268
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1269
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ }, "strip", z.ZodTypeAny, {
1271
+ type: CheckpointTypeEnum;
1272
+ id: string;
1273
+ location: string;
1274
+ imageRef?: string | null | undefined;
1275
+ reason?: string | null | undefined;
1276
+ }, {
1277
+ type: CheckpointTypeEnum;
1278
+ id: string;
1279
+ location: string;
1280
+ imageRef?: string | null | undefined;
1281
+ reason?: string | null | undefined;
1282
+ }>>;
1283
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
1284
+ id: z.ZodString;
1285
+ index: z.ZodOptional<z.ZodNumber>;
1286
+ friendlyId: z.ZodString;
1287
+ type: z.ZodEnum<[WaitpointType]>;
1288
+ completedAt: z.ZodDate;
1289
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1290
+ /** For type === "RUN" */
1291
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
1292
+ id: z.ZodString;
1293
+ friendlyId: z.ZodString;
1294
+ /** If the run has an associated batch */
1295
+ batch: z.ZodOptional<z.ZodObject<{
1296
+ id: z.ZodString;
1297
+ friendlyId: z.ZodString;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ id: string;
1300
+ friendlyId: string;
1301
+ }, {
1302
+ id: string;
1303
+ friendlyId: string;
1304
+ }>>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ id: string;
1307
+ friendlyId: string;
1308
+ batch?: {
1309
+ id: string;
1310
+ friendlyId: string;
1311
+ } | undefined;
1312
+ }, {
1313
+ id: string;
1314
+ friendlyId: string;
1315
+ batch?: {
1316
+ id: string;
1317
+ friendlyId: string;
1318
+ } | undefined;
1319
+ }>>;
1320
+ /** For type === "DATETIME" */
1321
+ completedAfter: z.ZodOptional<z.ZodDate>;
1322
+ /** For type === "BATCH" */
1323
+ completedByBatch: z.ZodOptional<z.ZodObject<{
1324
+ id: z.ZodString;
1325
+ friendlyId: z.ZodString;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ id: string;
1328
+ friendlyId: string;
1329
+ }, {
1330
+ id: string;
1331
+ friendlyId: string;
1332
+ }>>;
1333
+ output: z.ZodOptional<z.ZodString>;
1334
+ outputType: z.ZodOptional<z.ZodString>;
1335
+ outputIsError: z.ZodBoolean;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ type: WaitpointType;
1338
+ id: string;
1339
+ completedAt: Date;
1340
+ friendlyId: string;
1341
+ outputIsError: boolean;
1342
+ idempotencyKey?: string | undefined;
1343
+ output?: string | undefined;
1344
+ outputType?: string | undefined;
1345
+ index?: number | undefined;
1346
+ completedByTaskRun?: {
1347
+ id: string;
1348
+ friendlyId: string;
1349
+ batch?: {
1350
+ id: string;
1351
+ friendlyId: string;
1352
+ } | undefined;
1353
+ } | undefined;
1354
+ completedAfter?: Date | undefined;
1355
+ completedByBatch?: {
1356
+ id: string;
1357
+ friendlyId: string;
1358
+ } | undefined;
1359
+ }, {
1360
+ type: WaitpointType;
1361
+ id: string;
1362
+ completedAt: Date;
1363
+ friendlyId: string;
1364
+ outputIsError: boolean;
1365
+ idempotencyKey?: string | undefined;
1366
+ output?: string | undefined;
1367
+ outputType?: string | undefined;
1368
+ index?: number | undefined;
1369
+ completedByTaskRun?: {
1370
+ id: string;
1371
+ friendlyId: string;
1372
+ batch?: {
1373
+ id: string;
1374
+ friendlyId: string;
1375
+ } | undefined;
1376
+ } | undefined;
1377
+ completedAfter?: Date | undefined;
1378
+ completedByBatch?: {
1379
+ id: string;
1380
+ friendlyId: string;
1381
+ } | undefined;
1382
+ }>, "many">;
1383
+ backgroundWorker: z.ZodObject<{
1384
+ id: z.ZodString;
1385
+ friendlyId: z.ZodString;
1386
+ version: z.ZodString;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ id: string;
1389
+ version: string;
1390
+ friendlyId: string;
1391
+ }, {
1392
+ id: string;
1393
+ version: string;
1394
+ friendlyId: string;
1395
+ }>;
1396
+ deployment: z.ZodObject<{
1397
+ id: z.ZodOptional<z.ZodString>;
1398
+ friendlyId: z.ZodOptional<z.ZodString>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ id?: string | undefined;
1401
+ friendlyId?: string | undefined;
1402
+ }, {
1403
+ id?: string | undefined;
1404
+ friendlyId?: string | undefined;
1405
+ }>;
1406
+ run: z.ZodObject<{
1407
+ id: z.ZodString;
1408
+ friendlyId: z.ZodString;
1409
+ isTest: z.ZodBoolean;
1410
+ machine: z.ZodObject<{
1411
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
1412
+ cpu: z.ZodNumber;
1413
+ memory: z.ZodNumber;
1414
+ centsPerMs: z.ZodNumber;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ cpu: number;
1417
+ memory: number;
1418
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1419
+ centsPerMs: number;
1420
+ }, {
1421
+ cpu: number;
1422
+ memory: number;
1423
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1424
+ centsPerMs: number;
1425
+ }>;
1426
+ attemptNumber: z.ZodNumber;
1427
+ masterQueue: z.ZodString;
1428
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ id: string;
1431
+ isTest: boolean;
1432
+ traceContext: Record<string, unknown>;
1433
+ machine: {
1434
+ cpu: number;
1435
+ memory: number;
1436
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1437
+ centsPerMs: number;
1438
+ };
1439
+ friendlyId: string;
1440
+ attemptNumber: number;
1441
+ masterQueue: string;
1442
+ }, {
1443
+ id: string;
1444
+ isTest: boolean;
1445
+ traceContext: Record<string, unknown>;
1446
+ machine: {
1447
+ cpu: number;
1448
+ memory: number;
1449
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1450
+ centsPerMs: number;
1451
+ };
1452
+ friendlyId: string;
1453
+ attemptNumber: number;
1454
+ masterQueue: string;
1455
+ }>;
1456
+ environment: z.ZodObject<{
1457
+ id: z.ZodString;
1458
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1461
+ id: string;
1462
+ }, {
1463
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1464
+ id: string;
1465
+ }>;
1466
+ organization: z.ZodObject<{
1467
+ id: z.ZodString;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ id: string;
1470
+ }, {
1471
+ id: string;
1472
+ }>;
1473
+ project: z.ZodObject<{
1474
+ id: z.ZodString;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ id: string;
1477
+ }, {
1478
+ id: string;
1479
+ }>;
1480
+ }, "strip", z.ZodTypeAny, {
1481
+ version: "1";
1482
+ run: {
1483
+ id: string;
1484
+ isTest: boolean;
1485
+ traceContext: Record<string, unknown>;
1486
+ machine: {
1487
+ cpu: number;
1488
+ memory: number;
1489
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1490
+ centsPerMs: number;
1491
+ };
1492
+ friendlyId: string;
1493
+ attemptNumber: number;
1494
+ masterQueue: string;
1495
+ };
1496
+ environment: {
1497
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1498
+ id: string;
1499
+ };
1500
+ organization: {
1501
+ id: string;
1502
+ };
1503
+ project: {
1504
+ id: string;
1505
+ };
1506
+ snapshot: {
1507
+ id: string;
1508
+ description: string;
1509
+ friendlyId: string;
1510
+ executionStatus: TaskRunExecutionStatus;
1511
+ };
1512
+ completedWaitpoints: {
1513
+ type: WaitpointType;
1514
+ id: string;
1515
+ completedAt: Date;
1516
+ friendlyId: string;
1517
+ outputIsError: boolean;
1518
+ idempotencyKey?: string | undefined;
1519
+ output?: string | undefined;
1520
+ outputType?: string | undefined;
1521
+ index?: number | undefined;
1522
+ completedByTaskRun?: {
1523
+ id: string;
1524
+ friendlyId: string;
1525
+ batch?: {
1526
+ id: string;
1527
+ friendlyId: string;
1528
+ } | undefined;
1529
+ } | undefined;
1530
+ completedAfter?: Date | undefined;
1531
+ completedByBatch?: {
1532
+ id: string;
1533
+ friendlyId: string;
1534
+ } | undefined;
1535
+ }[];
1536
+ dequeuedAt: Date;
1537
+ backgroundWorker: {
1538
+ id: string;
1539
+ version: string;
1540
+ friendlyId: string;
1541
+ };
1542
+ deployment: {
1543
+ id?: string | undefined;
1544
+ friendlyId?: string | undefined;
1545
+ };
1546
+ checkpoint?: {
1547
+ type: CheckpointTypeEnum;
1548
+ id: string;
1549
+ location: string;
1550
+ imageRef?: string | null | undefined;
1551
+ reason?: string | null | undefined;
1552
+ } | undefined;
1553
+ image?: string | undefined;
1554
+ }, {
1555
+ version: "1";
1556
+ run: {
1557
+ id: string;
1558
+ isTest: boolean;
1559
+ traceContext: Record<string, unknown>;
1560
+ machine: {
1561
+ cpu: number;
1562
+ memory: number;
1563
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1564
+ centsPerMs: number;
1565
+ };
1566
+ friendlyId: string;
1567
+ attemptNumber: number;
1568
+ masterQueue: string;
1569
+ };
1570
+ environment: {
1571
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1572
+ id: string;
1573
+ };
1574
+ organization: {
1575
+ id: string;
1576
+ };
1577
+ project: {
1578
+ id: string;
1579
+ };
1580
+ snapshot: {
1581
+ id: string;
1582
+ description: string;
1583
+ friendlyId: string;
1584
+ executionStatus: TaskRunExecutionStatus;
1585
+ };
1586
+ completedWaitpoints: {
1587
+ type: WaitpointType;
1588
+ id: string;
1589
+ completedAt: Date;
1590
+ friendlyId: string;
1591
+ outputIsError: boolean;
1592
+ idempotencyKey?: string | undefined;
1593
+ output?: string | undefined;
1594
+ outputType?: string | undefined;
1595
+ index?: number | undefined;
1596
+ completedByTaskRun?: {
1597
+ id: string;
1598
+ friendlyId: string;
1599
+ batch?: {
1600
+ id: string;
1601
+ friendlyId: string;
1602
+ } | undefined;
1603
+ } | undefined;
1604
+ completedAfter?: Date | undefined;
1605
+ completedByBatch?: {
1606
+ id: string;
1607
+ friendlyId: string;
1608
+ } | undefined;
1609
+ }[];
1610
+ dequeuedAt: Date;
1611
+ backgroundWorker: {
1612
+ id: string;
1613
+ version: string;
1614
+ friendlyId: string;
1615
+ };
1616
+ deployment: {
1617
+ id?: string | undefined;
1618
+ friendlyId?: string | undefined;
1619
+ };
1620
+ checkpoint?: {
1621
+ type: CheckpointTypeEnum;
1622
+ id: string;
1623
+ location: string;
1624
+ imageRef?: string | null | undefined;
1625
+ reason?: string | null | undefined;
1626
+ } | undefined;
1627
+ image?: string | undefined;
1628
+ }>;
1629
+ export type DequeuedMessage = z.infer<typeof DequeuedMessage>;
1630
+ export {};