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