@trigger.dev/core 0.0.0-v3-prerelease-20250108142426 → 0.0.0-v4-prerelease-20250917185130

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