@trigger.dev/core 4.5.16 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +27 -105
  2. package/dist/commonjs/schemas/eventFilter.js +38 -38
  3. package/dist/commonjs/schemas/eventFilter.js.map +1 -1
  4. package/dist/commonjs/schemas/json.d.ts +3 -3
  5. package/dist/commonjs/schemas/json.js +20 -12
  6. package/dist/commonjs/schemas/json.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/core.d.ts +14 -14
  8. package/dist/commonjs/v3/apiClient/core.js +39 -18
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  11. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +20 -0
  12. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  13. package/dist/commonjs/v3/apiClient/index.d.ts +82 -184
  14. package/dist/commonjs/v3/apiClient/index.js +27 -8
  15. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  16. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  17. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  18. package/dist/commonjs/v3/errors.d.ts +5 -4
  19. package/dist/commonjs/v3/errors.js.map +1 -1
  20. package/dist/commonjs/v3/index.d.ts +1 -1
  21. package/dist/commonjs/v3/index.js.map +1 -1
  22. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  23. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +3 -0
  25. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  26. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +4 -0
  27. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +5 -12
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  32. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +84 -67
  33. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  35. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +15 -110
  36. package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -16
  37. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  38. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  39. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +10 -9
  40. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  41. package/dist/commonjs/v3/schemas/api.d.ts +1869 -12681
  42. package/dist/commonjs/v3/schemas/api.js +1023 -943
  43. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  44. package/dist/commonjs/v3/schemas/build.d.ts +645 -9115
  45. package/dist/commonjs/v3/schemas/build.js +71 -71
  46. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  47. package/dist/commonjs/v3/schemas/checkpoints.d.ts +121 -461
  48. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  49. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  50. package/dist/commonjs/v3/schemas/common.d.ts +1018 -6499
  51. package/dist/commonjs/v3/schemas/common.js +225 -218
  52. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  53. package/dist/commonjs/v3/schemas/config.d.ts +3 -9
  54. package/dist/commonjs/v3/schemas/config.js +4 -4
  55. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  56. package/dist/commonjs/v3/schemas/errors.d.ts +42 -173
  57. package/dist/commonjs/v3/schemas/errors.js +44 -44
  58. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  59. package/dist/commonjs/v3/schemas/eventFilter.d.ts +23 -91
  60. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  61. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  62. package/dist/commonjs/v3/schemas/fetch.d.ts +119 -415
  63. package/dist/commonjs/v3/schemas/fetch.js +17 -14
  64. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  65. package/dist/commonjs/v3/schemas/messages.d.ts +603 -7438
  66. package/dist/commonjs/v3/schemas/messages.js +50 -50
  67. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  68. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +50 -401
  69. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  70. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  71. package/dist/commonjs/v3/schemas/query.d.ts +51 -273
  72. package/dist/commonjs/v3/schemas/query.js +41 -40
  73. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  74. package/dist/commonjs/v3/schemas/queues.d.ts +29 -100
  75. package/dist/commonjs/v3/schemas/queues.js +22 -22
  76. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  77. package/dist/commonjs/v3/schemas/reports.d.ts +150 -692
  78. package/dist/commonjs/v3/schemas/reports.js +55 -55
  79. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  80. package/dist/commonjs/v3/schemas/resources.d.ts +533 -5985
  81. package/dist/commonjs/v3/schemas/resources.js +49 -49
  82. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  83. package/dist/commonjs/v3/schemas/runEngine.d.ts +467 -1822
  84. package/dist/commonjs/v3/schemas/runEngine.js +113 -109
  85. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  86. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  87. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  88. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  89. package/dist/commonjs/v3/schemas/schemas.d.ts +788 -7456
  90. package/dist/commonjs/v3/schemas/schemas.js +133 -132
  91. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  92. package/dist/commonjs/v3/schemas/snapshotRoute.d.ts +33 -0
  93. package/dist/commonjs/v3/schemas/snapshotRoute.js +33 -0
  94. package/dist/commonjs/v3/schemas/snapshotRoute.js.map +1 -0
  95. package/dist/commonjs/v3/schemas/style.d.ts +24 -86
  96. package/dist/commonjs/v3/schemas/style.js +12 -12
  97. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  98. package/dist/commonjs/v3/schemas/tokens.d.ts +5 -31
  99. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  100. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  101. package/dist/commonjs/v3/schemas/warmStart.d.ts +2 -8
  102. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  103. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  104. package/dist/commonjs/v3/schemas/webhookApi.d.ts +75 -249
  105. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  106. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  107. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +473 -3309
  108. package/dist/commonjs/v3/schemas/webhookConfig.js +79 -78
  109. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  110. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +16 -4
  111. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  112. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  113. package/dist/commonjs/v3/schemas/webhooks.d.ts +247 -2055
  114. package/dist/commonjs/v3/schemas/webhooks.js +116 -115
  115. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  116. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +19 -8
  117. package/dist/commonjs/v3/serverOnly/httpServer.js +6 -3
  118. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  119. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  120. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +332 -8
  121. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  122. package/dist/commonjs/v3/sessionStreams/router.d.ts +39 -1
  123. package/dist/commonjs/v3/sessionStreams/router.js +62 -0
  124. package/dist/commonjs/v3/sessionStreams/router.js.map +1 -1
  125. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +15 -0
  126. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +16 -1
  127. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  128. package/dist/commonjs/v3/test/test-session-stream-manager.js +5 -1
  129. package/dist/commonjs/v3/test/test-session-stream-manager.js.map +1 -1
  130. package/dist/commonjs/v3/types/schemas.d.ts +21 -1
  131. package/dist/commonjs/v3/types/schemas.js +2 -1
  132. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  133. package/dist/commonjs/v3/types/tools.d.ts +16 -5
  134. package/dist/commonjs/v3/types/tools.js +2 -2
  135. package/dist/commonjs/v3/types/tools.js.map +1 -1
  136. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  137. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  138. package/dist/commonjs/v3/utils/zod.d.ts +8 -0
  139. package/dist/commonjs/v3/utils/zod.js +8 -0
  140. package/dist/commonjs/v3/utils/zod.js.map +1 -0
  141. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +2 -21
  142. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  143. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  144. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  145. package/dist/commonjs/v3/zodIpc.js +20 -18
  146. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  147. package/dist/commonjs/v3/zodMessageHandler.d.ts +14 -21
  148. package/dist/commonjs/v3/zodMessageHandler.js +20 -7
  149. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  150. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  151. package/dist/commonjs/v3/zodSocket.js +9 -8
  152. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  153. package/dist/commonjs/version.js +1 -1
  154. package/dist/esm/schemas/eventFilter.d.ts +27 -105
  155. package/dist/esm/schemas/eventFilter.js +2 -2
  156. package/dist/esm/schemas/eventFilter.js.map +1 -1
  157. package/dist/esm/schemas/json.d.ts +3 -3
  158. package/dist/esm/schemas/json.js +11 -3
  159. package/dist/esm/schemas/json.js.map +1 -1
  160. package/dist/esm/v3/apiClient/core.d.ts +14 -14
  161. package/dist/esm/v3/apiClient/core.js +38 -17
  162. package/dist/esm/v3/apiClient/core.js.map +1 -1
  163. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  164. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +17 -0
  165. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  166. package/dist/esm/v3/apiClient/index.d.ts +82 -184
  167. package/dist/esm/v3/apiClient/index.js +22 -4
  168. package/dist/esm/v3/apiClient/index.js.map +1 -1
  169. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  170. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  171. package/dist/esm/v3/errors.d.ts +5 -4
  172. package/dist/esm/v3/errors.js.map +1 -1
  173. package/dist/esm/v3/index.d.ts +1 -1
  174. package/dist/esm/v3/index.js.map +1 -1
  175. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  176. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  177. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +3 -0
  178. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  179. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +4 -0
  180. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  181. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  182. package/dist/esm/v3/runEngineWorker/supervisor/http.js +4 -11
  183. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  184. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  185. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +22 -5
  186. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  187. package/dist/esm/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  188. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +15 -110
  189. package/dist/esm/v3/runEngineWorker/workload/http.js +8 -16
  190. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  191. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  192. package/dist/esm/v3/runEngineWorker/workload/schemas.js +5 -4
  193. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  194. package/dist/esm/v3/schemas/api.d.ts +1869 -12681
  195. package/dist/esm/v3/schemas/api.js +115 -35
  196. package/dist/esm/v3/schemas/api.js.map +1 -1
  197. package/dist/esm/v3/schemas/build.d.ts +645 -9115
  198. package/dist/esm/v3/schemas/build.js +10 -10
  199. package/dist/esm/v3/schemas/build.js.map +1 -1
  200. package/dist/esm/v3/schemas/checkpoints.d.ts +121 -461
  201. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  202. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  203. package/dist/esm/v3/schemas/common.d.ts +1018 -6499
  204. package/dist/esm/v3/schemas/common.js +17 -10
  205. package/dist/esm/v3/schemas/common.js.map +1 -1
  206. package/dist/esm/v3/schemas/config.d.ts +3 -9
  207. package/dist/esm/v3/schemas/config.js +1 -1
  208. package/dist/esm/v3/schemas/config.js.map +1 -1
  209. package/dist/esm/v3/schemas/errors.d.ts +42 -173
  210. package/dist/esm/v3/schemas/errors.js +1 -1
  211. package/dist/esm/v3/schemas/errors.js.map +1 -1
  212. package/dist/esm/v3/schemas/eventFilter.d.ts +23 -91
  213. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  214. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  215. package/dist/esm/v3/schemas/fetch.d.ts +119 -415
  216. package/dist/esm/v3/schemas/fetch.js +6 -3
  217. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  218. package/dist/esm/v3/schemas/messages.d.ts +603 -7438
  219. package/dist/esm/v3/schemas/messages.js +3 -3
  220. package/dist/esm/v3/schemas/messages.js.map +1 -1
  221. package/dist/esm/v3/schemas/openTelemetry.d.ts +50 -401
  222. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  223. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  224. package/dist/esm/v3/schemas/query.d.ts +51 -273
  225. package/dist/esm/v3/schemas/query.js +4 -3
  226. package/dist/esm/v3/schemas/query.js.map +1 -1
  227. package/dist/esm/v3/schemas/queues.d.ts +29 -100
  228. package/dist/esm/v3/schemas/queues.js +1 -1
  229. package/dist/esm/v3/schemas/queues.js.map +1 -1
  230. package/dist/esm/v3/schemas/reports.d.ts +150 -692
  231. package/dist/esm/v3/schemas/reports.js +5 -5
  232. package/dist/esm/v3/schemas/reports.js.map +1 -1
  233. package/dist/esm/v3/schemas/resources.d.ts +533 -5985
  234. package/dist/esm/v3/schemas/resources.js +3 -3
  235. package/dist/esm/v3/schemas/resources.js.map +1 -1
  236. package/dist/esm/v3/schemas/runEngine.d.ts +467 -1822
  237. package/dist/esm/v3/schemas/runEngine.js +11 -3
  238. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  239. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  240. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  241. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  242. package/dist/esm/v3/schemas/schemas.d.ts +788 -7456
  243. package/dist/esm/v3/schemas/schemas.js +11 -10
  244. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  245. package/dist/esm/v3/schemas/snapshotRoute.d.ts +33 -0
  246. package/dist/esm/v3/schemas/snapshotRoute.js +30 -0
  247. package/dist/esm/v3/schemas/snapshotRoute.js.map +1 -0
  248. package/dist/esm/v3/schemas/style.d.ts +24 -86
  249. package/dist/esm/v3/schemas/style.js +1 -1
  250. package/dist/esm/v3/schemas/style.js.map +1 -1
  251. package/dist/esm/v3/schemas/tokens.d.ts +5 -31
  252. package/dist/esm/v3/schemas/tokens.js +1 -1
  253. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  254. package/dist/esm/v3/schemas/warmStart.d.ts +2 -8
  255. package/dist/esm/v3/schemas/warmStart.js +1 -1
  256. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  257. package/dist/esm/v3/schemas/webhookApi.d.ts +75 -249
  258. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  259. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  260. package/dist/esm/v3/schemas/webhookConfig.d.ts +473 -3309
  261. package/dist/esm/v3/schemas/webhookConfig.js +10 -9
  262. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  263. package/dist/esm/v3/schemas/webhookFilter.d.ts +16 -4
  264. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  265. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  266. package/dist/esm/v3/schemas/webhooks.d.ts +247 -2055
  267. package/dist/esm/v3/schemas/webhooks.js +3 -2
  268. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  269. package/dist/esm/v3/serverOnly/httpServer.d.ts +19 -8
  270. package/dist/esm/v3/serverOnly/httpServer.js +5 -2
  271. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  272. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  273. package/dist/esm/v3/sessionStreams/chatSnapshot.js +318 -2
  274. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  275. package/dist/esm/v3/sessionStreams/router.d.ts +39 -1
  276. package/dist/esm/v3/sessionStreams/router.js +62 -0
  277. package/dist/esm/v3/sessionStreams/router.js.map +1 -1
  278. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +15 -0
  279. package/dist/esm/v3/sessionStreams/wireProtocol.js +15 -0
  280. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  281. package/dist/esm/v3/test/test-session-stream-manager.js +5 -1
  282. package/dist/esm/v3/test/test-session-stream-manager.js.map +1 -1
  283. package/dist/esm/v3/types/schemas.d.ts +21 -1
  284. package/dist/esm/v3/types/schemas.js +2 -1
  285. package/dist/esm/v3/types/schemas.js.map +1 -1
  286. package/dist/esm/v3/types/tools.d.ts +16 -5
  287. package/dist/esm/v3/types/tools.js +2 -2
  288. package/dist/esm/v3/types/tools.js.map +1 -1
  289. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  290. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  291. package/dist/esm/v3/utils/zod.d.ts +8 -0
  292. package/dist/esm/v3/utils/zod.js +5 -0
  293. package/dist/esm/v3/utils/zod.js.map +1 -0
  294. package/dist/esm/v3/workloadDeploymentToken.d.ts +2 -21
  295. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  296. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  297. package/dist/esm/v3/zodIpc.d.ts +6 -6
  298. package/dist/esm/v3/zodIpc.js +5 -3
  299. package/dist/esm/v3/zodIpc.js.map +1 -1
  300. package/dist/esm/v3/zodMessageHandler.d.ts +14 -21
  301. package/dist/esm/v3/zodMessageHandler.js +16 -3
  302. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  303. package/dist/esm/v3/zodSocket.d.ts +11 -11
  304. package/dist/esm/v3/zodSocket.js +3 -2
  305. package/dist/esm/v3/zodSocket.js.map +1 -1
  306. package/dist/esm/version.js +1 -1
  307. package/package.json +7 -3
@@ -1,34 +1,57 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  import type { RuntimeEnvironmentType } from "./common.js";
3
- import type * as DB_TYPES from "@trigger.dev/database";
4
- export declare const TriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
3
+ import { SnapshotRouteWire } from "./snapshotRoute.js";
4
+ export declare const TriggerSource: z.ZodUnion<[z.ZodEnum<{
5
+ api: "api";
6
+ cli: "cli";
7
+ dashboard: "dashboard";
8
+ mcp: "mcp";
9
+ schedule: "schedule";
10
+ sdk: "sdk";
11
+ }>, z.ZodCustom<string & {}, string & {}>]>;
5
12
  export type TriggerSource = z.infer<typeof TriggerSource>;
6
- export declare const TriggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
13
+ export declare const TriggerAction: z.ZodUnion<[z.ZodEnum<{
14
+ replay: "replay";
15
+ test: "test";
16
+ trigger: "trigger";
17
+ }>, z.ZodCustom<string & {}, string & {}>]>;
7
18
  export type TriggerAction = z.infer<typeof TriggerAction>;
8
- export declare const TaskKind: z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
19
+ export declare const TaskKind: z.ZodUnion<[z.ZodEnum<{
20
+ AGENT: "AGENT";
21
+ SCHEDULED: "SCHEDULED";
22
+ STANDARD: "STANDARD";
23
+ }>, z.ZodCustom<string & {}, string & {}>]>;
9
24
  export type TaskKind = z.infer<typeof TaskKind>;
10
25
  export declare const RunAnnotations: z.ZodObject<{
11
- triggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
12
- triggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
13
- rootTriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
26
+ triggerSource: z.ZodUnion<[z.ZodEnum<{
27
+ api: "api";
28
+ cli: "cli";
29
+ dashboard: "dashboard";
30
+ mcp: "mcp";
31
+ schedule: "schedule";
32
+ sdk: "sdk";
33
+ }>, z.ZodCustom<string & {}, string & {}>]>;
34
+ triggerAction: z.ZodUnion<[z.ZodEnum<{
35
+ replay: "replay";
36
+ test: "test";
37
+ trigger: "trigger";
38
+ }>, z.ZodCustom<string & {}, string & {}>]>;
39
+ rootTriggerSource: z.ZodUnion<[z.ZodEnum<{
40
+ api: "api";
41
+ cli: "cli";
42
+ dashboard: "dashboard";
43
+ mcp: "mcp";
44
+ schedule: "schedule";
45
+ sdk: "sdk";
46
+ }>, z.ZodCustom<string & {}, string & {}>]>;
14
47
  rootScheduleId: z.ZodOptional<z.ZodString>;
15
- taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
48
+ taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
49
+ AGENT: "AGENT";
50
+ SCHEDULED: "SCHEDULED";
51
+ STANDARD: "STANDARD";
52
+ }>, z.ZodCustom<string & {}, string & {}>]>>;
16
53
  externalDeploymentId: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
19
- triggerAction: "replay" | "test" | "trigger" | (string & {});
20
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
21
- rootScheduleId?: string | undefined;
22
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
23
- externalDeploymentId?: string | undefined;
24
- }, {
25
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
26
- triggerAction: "replay" | "test" | "trigger" | (string & {});
27
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
28
- rootScheduleId?: string | undefined;
29
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
30
- externalDeploymentId?: string | undefined;
31
- }>;
54
+ }, z.core.$strip>;
32
55
  export type RunAnnotations = z.infer<typeof RunAnnotations>;
33
56
  export declare const TaskRunExecutionStatus: {
34
57
  RUN_CREATED: "RUN_CREATED";
@@ -70,7 +93,10 @@ export declare const WaitpointType: {
70
93
  BATCH: "BATCH";
71
94
  };
72
95
  export type WaitpointType = (typeof WaitpointType)[keyof typeof WaitpointType];
73
- export declare const WaitpointStatus: z.ZodEnum<[DB_TYPES.$Enums.WaitpointStatus]>;
96
+ export declare const WaitpointStatus: z.ZodEnum<{
97
+ COMPLETED: "COMPLETED";
98
+ PENDING: "PENDING";
99
+ }>;
74
100
  export type WaitpointStatus = z.infer<typeof WaitpointStatus>;
75
101
  export type TaskEventEnvironment = {
76
102
  id: string;
@@ -85,274 +111,150 @@ export declare const CompletedWaitpoint: z.ZodObject<{
85
111
  id: z.ZodString;
86
112
  index: z.ZodOptional<z.ZodNumber>;
87
113
  friendlyId: z.ZodString;
88
- type: z.ZodEnum<[WaitpointType]>;
89
- completedAt: z.ZodDate;
114
+ type: z.ZodEnum<{
115
+ BATCH: "BATCH";
116
+ DATETIME: "DATETIME";
117
+ MANUAL: "MANUAL";
118
+ RUN: "RUN";
119
+ }>;
120
+ completedAt: z.ZodCoercedDate<unknown>;
90
121
  idempotencyKey: z.ZodOptional<z.ZodString>;
91
- /** For type === "RUN" */
92
122
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
93
123
  id: z.ZodString;
94
124
  friendlyId: z.ZodString;
95
- /** If the run has an associated batch */
96
125
  batch: z.ZodOptional<z.ZodObject<{
97
126
  id: z.ZodString;
98
127
  friendlyId: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- id: string;
101
- friendlyId: string;
102
- }, {
103
- id: string;
104
- friendlyId: string;
105
- }>>;
106
- }, "strip", z.ZodTypeAny, {
107
- id: string;
108
- friendlyId: string;
109
- batch?: {
110
- id: string;
111
- friendlyId: string;
112
- } | undefined;
113
- }, {
114
- id: string;
115
- friendlyId: string;
116
- batch?: {
117
- id: string;
118
- friendlyId: string;
119
- } | undefined;
120
- }>>;
121
- /** For type === "DATETIME" */
122
- completedAfter: z.ZodOptional<z.ZodDate>;
123
- /** For type === "BATCH" */
128
+ }, z.core.$strip>>;
129
+ }, z.core.$strip>>;
130
+ completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
124
131
  completedByBatch: z.ZodOptional<z.ZodObject<{
125
132
  id: z.ZodString;
126
133
  friendlyId: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- id: string;
129
- friendlyId: string;
130
- }, {
131
- id: string;
132
- friendlyId: string;
133
- }>>;
134
+ }, z.core.$strip>>;
134
135
  output: z.ZodOptional<z.ZodString>;
135
136
  outputType: z.ZodOptional<z.ZodString>;
136
137
  outputIsError: z.ZodBoolean;
137
- }, "strip", z.ZodTypeAny, {
138
- id: string;
139
- index?: number | undefined;
140
- friendlyId: string;
141
- type: WaitpointType;
142
- completedAt: Date;
143
- idempotencyKey?: string | undefined;
144
- completedByTaskRun?: {
145
- id: string;
146
- friendlyId: string;
147
- batch?: {
148
- id: string;
149
- friendlyId: string;
150
- } | undefined;
151
- } | undefined;
152
- completedAfter?: Date | undefined;
153
- completedByBatch?: {
154
- id: string;
155
- friendlyId: string;
156
- } | undefined;
157
- output?: string | undefined;
158
- outputType?: string | undefined;
159
- outputIsError: boolean;
160
- }, {
161
- id: string;
162
- index?: number | undefined;
163
- friendlyId: string;
164
- type: WaitpointType;
165
- completedAt: Date;
166
- idempotencyKey?: string | undefined;
167
- completedByTaskRun?: {
168
- id: string;
169
- friendlyId: string;
170
- batch?: {
171
- id: string;
172
- friendlyId: string;
173
- } | undefined;
174
- } | undefined;
175
- completedAfter?: Date | undefined;
176
- completedByBatch?: {
177
- id: string;
178
- friendlyId: string;
179
- } | undefined;
180
- output?: string | undefined;
181
- outputType?: string | undefined;
182
- outputIsError: boolean;
183
- }>;
138
+ }, z.core.$strip>;
184
139
  export type CompletedWaitpoint = z.infer<typeof CompletedWaitpoint>;
185
140
  export declare const ExecutionResult: z.ZodObject<{
186
141
  snapshot: z.ZodObject<{
187
142
  id: z.ZodString;
188
143
  friendlyId: z.ZodString;
189
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
144
+ executionStatus: z.ZodEnum<{
145
+ DELAYED: "DELAYED";
146
+ EXECUTING: "EXECUTING";
147
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
148
+ FINISHED: "FINISHED";
149
+ PENDING_CANCEL: "PENDING_CANCEL";
150
+ PENDING_EXECUTING: "PENDING_EXECUTING";
151
+ QUEUED: "QUEUED";
152
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
153
+ RUN_CREATED: "RUN_CREATED";
154
+ SUSPENDED: "SUSPENDED";
155
+ }>;
190
156
  description: z.ZodString;
191
- createdAt: z.ZodDate;
192
- }, "strip", z.ZodTypeAny, {
193
- id: string;
194
- friendlyId: string;
195
- executionStatus: TaskRunExecutionStatus;
196
- description: string;
197
- createdAt: Date;
198
- }, {
199
- id: string;
200
- friendlyId: string;
201
- executionStatus: TaskRunExecutionStatus;
202
- description: string;
203
- createdAt: Date;
204
- }>;
157
+ createdAt: z.ZodCoercedDate<unknown>;
158
+ }, z.core.$strip>;
205
159
  run: z.ZodObject<{
206
160
  id: z.ZodString;
207
161
  friendlyId: z.ZodString;
208
- status: z.ZodEnum<[TaskRunStatus]>;
162
+ status: z.ZodEnum<{
163
+ CANCELED: "CANCELED";
164
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
165
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
166
+ CRASHED: "CRASHED";
167
+ DELAYED: "DELAYED";
168
+ DEQUEUED: "DEQUEUED";
169
+ EXECUTING: "EXECUTING";
170
+ EXPIRED: "EXPIRED";
171
+ INTERRUPTED: "INTERRUPTED";
172
+ PAUSED: "PAUSED";
173
+ PENDING: "PENDING";
174
+ PENDING_VERSION: "PENDING_VERSION";
175
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
176
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
177
+ TIMED_OUT: "TIMED_OUT";
178
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
179
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
180
+ }>;
209
181
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
210
182
  taskEventStore: z.ZodOptional<z.ZodString>;
211
- }, "strip", z.ZodTypeAny, {
212
- id: string;
213
- friendlyId: string;
214
- status: TaskRunStatus;
215
- attemptNumber?: number | null | undefined;
216
- taskEventStore?: string | undefined;
217
- }, {
218
- id: string;
219
- friendlyId: string;
220
- status: TaskRunStatus;
221
- attemptNumber?: number | null | undefined;
222
- taskEventStore?: string | undefined;
223
- }>;
224
- }, "strip", z.ZodTypeAny, {
225
- snapshot: {
226
- id: string;
227
- friendlyId: string;
228
- executionStatus: TaskRunExecutionStatus;
229
- description: string;
230
- createdAt: Date;
231
- };
232
- run: {
233
- id: string;
234
- friendlyId: string;
235
- status: TaskRunStatus;
236
- attemptNumber?: number | null | undefined;
237
- taskEventStore?: string | undefined;
238
- };
239
- }, {
240
- snapshot: {
241
- id: string;
242
- friendlyId: string;
243
- executionStatus: TaskRunExecutionStatus;
244
- description: string;
245
- createdAt: Date;
246
- };
247
- run: {
248
- id: string;
249
- friendlyId: string;
250
- status: TaskRunStatus;
251
- attemptNumber?: number | null | undefined;
252
- taskEventStore?: string | undefined;
253
- };
254
- }>;
183
+ }, z.core.$strip>;
184
+ }, z.core.$strip>;
255
185
  export type ExecutionResult = z.infer<typeof ExecutionResult>;
256
186
  /** The response to the Worker when starting an attempt */
257
187
  export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
258
188
  snapshot: z.ZodObject<{
259
189
  id: z.ZodString;
260
190
  friendlyId: z.ZodString;
261
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
191
+ executionStatus: z.ZodEnum<{
192
+ DELAYED: "DELAYED";
193
+ EXECUTING: "EXECUTING";
194
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
195
+ FINISHED: "FINISHED";
196
+ PENDING_CANCEL: "PENDING_CANCEL";
197
+ PENDING_EXECUTING: "PENDING_EXECUTING";
198
+ QUEUED: "QUEUED";
199
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
200
+ RUN_CREATED: "RUN_CREATED";
201
+ SUSPENDED: "SUSPENDED";
202
+ }>;
262
203
  description: z.ZodString;
263
- createdAt: z.ZodDate;
264
- }, "strip", z.ZodTypeAny, {
265
- id: string;
266
- friendlyId: string;
267
- executionStatus: TaskRunExecutionStatus;
268
- description: string;
269
- createdAt: Date;
270
- }, {
271
- id: string;
272
- friendlyId: string;
273
- executionStatus: TaskRunExecutionStatus;
274
- description: string;
275
- createdAt: Date;
276
- }>;
204
+ createdAt: z.ZodCoercedDate<unknown>;
205
+ }, z.core.$strip>;
277
206
  run: z.ZodObject<{
278
207
  id: z.ZodString;
279
208
  friendlyId: z.ZodString;
280
- status: z.ZodEnum<[TaskRunStatus]>;
209
+ status: z.ZodEnum<{
210
+ CANCELED: "CANCELED";
211
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
212
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
213
+ CRASHED: "CRASHED";
214
+ DELAYED: "DELAYED";
215
+ DEQUEUED: "DEQUEUED";
216
+ EXECUTING: "EXECUTING";
217
+ EXPIRED: "EXPIRED";
218
+ INTERRUPTED: "INTERRUPTED";
219
+ PAUSED: "PAUSED";
220
+ PENDING: "PENDING";
221
+ PENDING_VERSION: "PENDING_VERSION";
222
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
223
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
224
+ TIMED_OUT: "TIMED_OUT";
225
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
226
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
227
+ }>;
281
228
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
282
229
  taskEventStore: z.ZodOptional<z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- id: string;
285
- friendlyId: string;
286
- status: TaskRunStatus;
287
- attemptNumber?: number | null | undefined;
288
- taskEventStore?: string | undefined;
289
- }, {
290
- id: string;
291
- friendlyId: string;
292
- status: TaskRunStatus;
293
- attemptNumber?: number | null | undefined;
294
- taskEventStore?: string | undefined;
295
- }>;
296
- }, "strip", z.ZodTypeAny, {
297
- snapshot: {
298
- id: string;
299
- friendlyId: string;
300
- executionStatus: TaskRunExecutionStatus;
301
- description: string;
302
- createdAt: Date;
303
- };
304
- run: {
305
- id: string;
306
- friendlyId: string;
307
- status: TaskRunStatus;
308
- attemptNumber?: number | null | undefined;
309
- taskEventStore?: string | undefined;
310
- };
311
- }, {
312
- snapshot: {
313
- id: string;
314
- friendlyId: string;
315
- executionStatus: TaskRunExecutionStatus;
316
- description: string;
317
- createdAt: Date;
318
- };
319
- run: {
320
- id: string;
321
- friendlyId: string;
322
- status: TaskRunStatus;
323
- attemptNumber?: number | null | undefined;
324
- taskEventStore?: string | undefined;
325
- };
326
- }>, z.ZodObject<{
230
+ }, z.core.$strip>;
231
+ }, z.core.$strip>, z.ZodObject<{
327
232
  execution: z.ZodObject<{
328
233
  task: z.ZodObject<{
329
234
  id: z.ZodString;
330
235
  filePath: z.ZodString;
331
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
332
- id: z.ZodString;
333
- filePath: z.ZodString;
334
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
335
- id: z.ZodString;
336
- filePath: z.ZodString;
337
- }, z.ZodTypeAny, "passthrough">>;
236
+ }, z.core.$loose>;
338
237
  queue: z.ZodObject<{
339
238
  id: z.ZodString;
340
239
  name: z.ZodString;
341
- }, "strip", z.ZodTypeAny, {
342
- id: string;
343
- name: string;
344
- }, {
345
- id: string;
346
- name: string;
347
- }>;
240
+ }, z.core.$strip>;
348
241
  environment: z.ZodObject<{
349
242
  id: z.ZodString;
350
243
  slug: z.ZodString;
351
- type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
244
+ type: z.ZodEnum<{
245
+ DEVELOPMENT: "DEVELOPMENT";
246
+ PREVIEW: "PREVIEW";
247
+ PRODUCTION: "PRODUCTION";
248
+ STAGING: "STAGING";
249
+ }>;
352
250
  branchName: z.ZodOptional<z.ZodString>;
353
251
  git: z.ZodOptional<z.ZodObject<{
354
252
  provider: z.ZodOptional<z.ZodString>;
355
- source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
253
+ source: z.ZodOptional<z.ZodEnum<{
254
+ github_actions: "github_actions";
255
+ local: "local";
256
+ trigger_github_app: "trigger_github_app";
257
+ }>>;
356
258
  ghUsername: z.ZodOptional<z.ZodString>;
357
259
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
358
260
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -363,129 +265,41 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
363
265
  remoteUrl: z.ZodOptional<z.ZodString>;
364
266
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
365
267
  pullRequestTitle: z.ZodOptional<z.ZodString>;
366
- pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
367
- }, "strip", z.ZodTypeAny, {
368
- provider?: string | undefined;
369
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
370
- ghUsername?: string | undefined;
371
- ghUserAvatarUrl?: string | undefined;
372
- commitAuthorName?: string | undefined;
373
- commitMessage?: string | undefined;
374
- commitRef?: string | undefined;
375
- commitSha?: string | undefined;
376
- dirty?: boolean | undefined;
377
- remoteUrl?: string | undefined;
378
- pullRequestNumber?: number | undefined;
379
- pullRequestTitle?: string | undefined;
380
- pullRequestState?: "closed" | "merged" | "open" | undefined;
381
- }, {
382
- provider?: string | undefined;
383
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
384
- ghUsername?: string | undefined;
385
- ghUserAvatarUrl?: string | undefined;
386
- commitAuthorName?: string | undefined;
387
- commitMessage?: string | undefined;
388
- commitRef?: string | undefined;
389
- commitSha?: string | undefined;
390
- dirty?: boolean | undefined;
391
- remoteUrl?: string | undefined;
392
- pullRequestNumber?: number | undefined;
393
- pullRequestTitle?: string | undefined;
394
- pullRequestState?: "closed" | "merged" | "open" | undefined;
395
- }>>;
396
- }, "strip", z.ZodTypeAny, {
397
- id: string;
398
- slug: string;
399
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
400
- branchName?: string | undefined;
401
- git?: {
402
- provider?: string | undefined;
403
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
404
- ghUsername?: string | undefined;
405
- ghUserAvatarUrl?: string | undefined;
406
- commitAuthorName?: string | undefined;
407
- commitMessage?: string | undefined;
408
- commitRef?: string | undefined;
409
- commitSha?: string | undefined;
410
- dirty?: boolean | undefined;
411
- remoteUrl?: string | undefined;
412
- pullRequestNumber?: number | undefined;
413
- pullRequestTitle?: string | undefined;
414
- pullRequestState?: "closed" | "merged" | "open" | undefined;
415
- } | undefined;
416
- }, {
417
- id: string;
418
- slug: string;
419
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
420
- branchName?: string | undefined;
421
- git?: {
422
- provider?: string | undefined;
423
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
424
- ghUsername?: string | undefined;
425
- ghUserAvatarUrl?: string | undefined;
426
- commitAuthorName?: string | undefined;
427
- commitMessage?: string | undefined;
428
- commitRef?: string | undefined;
429
- commitSha?: string | undefined;
430
- dirty?: boolean | undefined;
431
- remoteUrl?: string | undefined;
432
- pullRequestNumber?: number | undefined;
433
- pullRequestTitle?: string | undefined;
434
- pullRequestState?: "closed" | "merged" | "open" | undefined;
435
- } | undefined;
436
- }>;
268
+ pullRequestState: z.ZodOptional<z.ZodEnum<{
269
+ closed: "closed";
270
+ merged: "merged";
271
+ open: "open";
272
+ }>>;
273
+ }, z.core.$strip>>;
274
+ }, z.core.$strip>;
437
275
  organization: z.ZodObject<{
438
276
  id: z.ZodString;
439
277
  slug: z.ZodString;
440
278
  name: z.ZodString;
441
- }, "strip", z.ZodTypeAny, {
442
- id: string;
443
- slug: string;
444
- name: string;
445
- }, {
446
- id: string;
447
- slug: string;
448
- name: string;
449
- }>;
279
+ }, z.core.$strip>;
450
280
  project: z.ZodObject<{
451
281
  id: z.ZodString;
452
282
  ref: z.ZodString;
453
283
  slug: z.ZodString;
454
284
  name: z.ZodString;
455
- }, "strip", z.ZodTypeAny, {
456
- id: string;
457
- ref: string;
458
- slug: string;
459
- name: string;
460
- }, {
461
- id: string;
462
- ref: string;
463
- slug: string;
464
- name: string;
465
- }>;
285
+ }, z.core.$strip>;
466
286
  machine: z.ZodObject<{
467
- name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
287
+ name: z.ZodEnum<{
288
+ "large-1x": "large-1x";
289
+ "large-2x": "large-2x";
290
+ "medium-1x": "medium-1x";
291
+ "medium-2x": "medium-2x";
292
+ micro: "micro";
293
+ "small-1x": "small-1x";
294
+ "small-2x": "small-2x";
295
+ }>;
468
296
  cpu: z.ZodNumber;
469
297
  memory: z.ZodNumber;
470
298
  centsPerMs: z.ZodNumber;
471
- }, "strip", z.ZodTypeAny, {
472
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
473
- cpu: number;
474
- memory: number;
475
- centsPerMs: number;
476
- }, {
477
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
478
- cpu: number;
479
- memory: number;
480
- centsPerMs: number;
481
- }>;
299
+ }, z.core.$strip>;
482
300
  batch: z.ZodOptional<z.ZodObject<{
483
301
  id: z.ZodString;
484
- }, "strip", z.ZodTypeAny, {
485
- id: string;
486
- }, {
487
- id: string;
488
- }>>;
302
+ }, z.core.$strip>>;
489
303
  deployment: z.ZodOptional<z.ZodObject<{
490
304
  id: z.ZodString;
491
305
  shortCode: z.ZodString;
@@ -494,7 +308,11 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
494
308
  runtimeVersion: z.ZodString;
495
309
  git: z.ZodOptional<z.ZodObject<{
496
310
  provider: z.ZodOptional<z.ZodString>;
497
- source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
311
+ source: z.ZodOptional<z.ZodEnum<{
312
+ github_actions: "github_actions";
313
+ local: "local";
314
+ trigger_github_app: "trigger_github_app";
315
+ }>>;
498
316
  ghUsername: z.ZodOptional<z.ZodString>;
499
317
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
500
318
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -505,103 +323,36 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
505
323
  remoteUrl: z.ZodOptional<z.ZodString>;
506
324
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
507
325
  pullRequestTitle: z.ZodOptional<z.ZodString>;
508
- pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
509
- }, "strip", z.ZodTypeAny, {
510
- provider?: string | undefined;
511
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
512
- ghUsername?: string | undefined;
513
- ghUserAvatarUrl?: string | undefined;
514
- commitAuthorName?: string | undefined;
515
- commitMessage?: string | undefined;
516
- commitRef?: string | undefined;
517
- commitSha?: string | undefined;
518
- dirty?: boolean | undefined;
519
- remoteUrl?: string | undefined;
520
- pullRequestNumber?: number | undefined;
521
- pullRequestTitle?: string | undefined;
522
- pullRequestState?: "closed" | "merged" | "open" | undefined;
523
- }, {
524
- provider?: string | undefined;
525
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
526
- ghUsername?: string | undefined;
527
- ghUserAvatarUrl?: string | undefined;
528
- commitAuthorName?: string | undefined;
529
- commitMessage?: string | undefined;
530
- commitRef?: string | undefined;
531
- commitSha?: string | undefined;
532
- dirty?: boolean | undefined;
533
- remoteUrl?: string | undefined;
534
- pullRequestNumber?: number | undefined;
535
- pullRequestTitle?: string | undefined;
536
- pullRequestState?: "closed" | "merged" | "open" | undefined;
537
- }>>;
538
- }, "strip", z.ZodTypeAny, {
539
- id: string;
540
- shortCode: string;
541
- version: string;
542
- runtime: string;
543
- runtimeVersion: string;
544
- git?: {
545
- provider?: string | undefined;
546
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
547
- ghUsername?: string | undefined;
548
- ghUserAvatarUrl?: string | undefined;
549
- commitAuthorName?: string | undefined;
550
- commitMessage?: string | undefined;
551
- commitRef?: string | undefined;
552
- commitSha?: string | undefined;
553
- dirty?: boolean | undefined;
554
- remoteUrl?: string | undefined;
555
- pullRequestNumber?: number | undefined;
556
- pullRequestTitle?: string | undefined;
557
- pullRequestState?: "closed" | "merged" | "open" | undefined;
558
- } | undefined;
559
- }, {
560
- id: string;
561
- shortCode: string;
562
- version: string;
563
- runtime: string;
564
- runtimeVersion: string;
565
- git?: {
566
- provider?: string | undefined;
567
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
568
- ghUsername?: string | undefined;
569
- ghUserAvatarUrl?: string | undefined;
570
- commitAuthorName?: string | undefined;
571
- commitMessage?: string | undefined;
572
- commitRef?: string | undefined;
573
- commitSha?: string | undefined;
574
- dirty?: boolean | undefined;
575
- remoteUrl?: string | undefined;
576
- pullRequestNumber?: number | undefined;
577
- pullRequestTitle?: string | undefined;
578
- pullRequestState?: "closed" | "merged" | "open" | undefined;
579
- } | undefined;
580
- }>>;
326
+ pullRequestState: z.ZodOptional<z.ZodEnum<{
327
+ closed: "closed";
328
+ merged: "merged";
329
+ open: "open";
330
+ }>>;
331
+ }, z.core.$strip>>;
332
+ externalId: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strip>>;
581
334
  attempt: z.ZodObject<{
582
335
  number: z.ZodNumber;
583
- startedAt: z.ZodDate;
584
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
585
- number: z.ZodNumber;
586
- startedAt: z.ZodDate;
587
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
588
- number: z.ZodNumber;
589
- startedAt: z.ZodDate;
590
- }, z.ZodTypeAny, "passthrough">>;
336
+ startedAt: z.ZodCoercedDate<unknown>;
337
+ }, z.core.$loose>;
591
338
  run: z.ZodIntersection<z.ZodObject<{
592
339
  id: z.ZodString;
593
340
  payload: z.ZodString;
594
341
  payloadType: z.ZodString;
595
- tags: z.ZodArray<z.ZodString, "many">;
342
+ tags: z.ZodArray<z.ZodString>;
596
343
  isTest: z.ZodDefault<z.ZodBoolean>;
597
344
  isReplay: z.ZodDefault<z.ZodBoolean>;
598
- createdAt: z.ZodDate;
599
- startedAt: z.ZodDefault<z.ZodDate>;
345
+ createdAt: z.ZodCoercedDate<unknown>;
346
+ startedAt: z.ZodDefault<z.ZodCoercedDate<unknown>>;
600
347
  idempotencyKey: z.ZodOptional<z.ZodString>;
601
- idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
348
+ idempotencyKeyScope: z.ZodOptional<z.ZodEnum<{
349
+ attempt: "attempt";
350
+ global: "global";
351
+ run: "run";
352
+ }>>;
602
353
  maxAttempts: z.ZodOptional<z.ZodNumber>;
603
354
  version: z.ZodOptional<z.ZodString>;
604
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
355
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../index.js").DeserializedJson, unknown>>>>;
605
356
  maxDuration: z.ZodOptional<z.ZodNumber>;
606
357
  priority: z.ZodOptional<z.ZodNumber>;
607
358
  baseCostInCents: z.ZodOptional<z.ZodNumber>;
@@ -610,570 +361,73 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
610
361
  durationMs: z.ZodOptional<z.ZodNumber>;
611
362
  costInCents: z.ZodOptional<z.ZodNumber>;
612
363
  region: z.ZodOptional<z.ZodString>;
613
- }, "strip", z.ZodTypeAny, {
614
- id: string;
615
- payload: string;
616
- payloadType: string;
617
- tags: string[];
618
- isTest: boolean;
619
- isReplay: boolean;
620
- createdAt: Date;
621
- startedAt: Date;
622
- idempotencyKey?: string | undefined;
623
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
624
- maxAttempts?: number | undefined;
625
- version?: string | undefined;
626
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
627
- maxDuration?: number | undefined;
628
- priority?: number | undefined;
629
- baseCostInCents?: number | undefined;
630
- parentTaskRunId?: string | undefined;
631
- rootTaskRunId?: string | undefined;
632
- durationMs?: number | undefined;
633
- costInCents?: number | undefined;
634
- region?: string | undefined;
635
- }, {
636
- id: string;
637
- payload: string;
638
- payloadType: string;
639
- tags: string[];
640
- isTest?: boolean | undefined;
641
- isReplay?: boolean | undefined;
642
- createdAt: Date;
643
- startedAt?: Date | undefined;
644
- idempotencyKey?: string | undefined;
645
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
646
- maxAttempts?: number | undefined;
647
- version?: string | undefined;
648
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
649
- maxDuration?: number | undefined;
650
- priority?: number | undefined;
651
- baseCostInCents?: number | undefined;
652
- parentTaskRunId?: string | undefined;
653
- rootTaskRunId?: string | undefined;
654
- durationMs?: number | undefined;
655
- costInCents?: number | undefined;
656
- region?: string | undefined;
657
- }>, z.ZodObject<{
364
+ }, z.core.$strip>, z.ZodObject<{
658
365
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
659
366
  realtimeStreamsVersion: z.ZodOptional<z.ZodString>;
660
- }, "strip", z.ZodTypeAny, {
661
- traceContext?: Record<string, unknown> | undefined;
662
- realtimeStreamsVersion?: string | undefined;
663
- }, {
664
- traceContext?: Record<string, unknown> | undefined;
665
- realtimeStreamsVersion?: string | undefined;
666
- }>>;
667
- }, "strip", z.ZodTypeAny, {
668
- task: {
669
- id: string;
670
- filePath: string;
671
- } & {
672
- [k: string]: unknown;
673
- };
674
- queue: {
675
- id: string;
676
- name: string;
677
- };
678
- environment: {
679
- id: string;
680
- slug: string;
681
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
682
- branchName?: string | undefined;
683
- git?: {
684
- provider?: string | undefined;
685
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
686
- ghUsername?: string | undefined;
687
- ghUserAvatarUrl?: string | undefined;
688
- commitAuthorName?: string | undefined;
689
- commitMessage?: string | undefined;
690
- commitRef?: string | undefined;
691
- commitSha?: string | undefined;
692
- dirty?: boolean | undefined;
693
- remoteUrl?: string | undefined;
694
- pullRequestNumber?: number | undefined;
695
- pullRequestTitle?: string | undefined;
696
- pullRequestState?: "closed" | "merged" | "open" | undefined;
697
- } | undefined;
698
- };
699
- organization: {
700
- id: string;
701
- slug: string;
702
- name: string;
703
- };
704
- project: {
705
- id: string;
706
- ref: string;
707
- slug: string;
708
- name: string;
709
- };
710
- machine: {
711
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
712
- cpu: number;
713
- memory: number;
714
- centsPerMs: number;
715
- };
716
- batch?: {
717
- id: string;
718
- } | undefined;
719
- deployment?: {
720
- id: string;
721
- shortCode: string;
722
- version: string;
723
- runtime: string;
724
- runtimeVersion: string;
725
- git?: {
726
- provider?: string | undefined;
727
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
728
- ghUsername?: string | undefined;
729
- ghUserAvatarUrl?: string | undefined;
730
- commitAuthorName?: string | undefined;
731
- commitMessage?: string | undefined;
732
- commitRef?: string | undefined;
733
- commitSha?: string | undefined;
734
- dirty?: boolean | undefined;
735
- remoteUrl?: string | undefined;
736
- pullRequestNumber?: number | undefined;
737
- pullRequestTitle?: string | undefined;
738
- pullRequestState?: "closed" | "merged" | "open" | undefined;
739
- } | undefined;
740
- } | undefined;
741
- attempt: {
742
- number: number;
743
- startedAt: Date;
744
- } & {
745
- [k: string]: unknown;
746
- };
747
- run: {
748
- id: string;
749
- payload: string;
750
- payloadType: string;
751
- tags: string[];
752
- isTest: boolean;
753
- isReplay: boolean;
754
- createdAt: Date;
755
- startedAt: Date;
756
- idempotencyKey?: string | undefined;
757
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
758
- maxAttempts?: number | undefined;
759
- version?: string | undefined;
760
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
761
- maxDuration?: number | undefined;
762
- priority?: number | undefined;
763
- baseCostInCents?: number | undefined;
764
- parentTaskRunId?: string | undefined;
765
- rootTaskRunId?: string | undefined;
766
- durationMs?: number | undefined;
767
- costInCents?: number | undefined;
768
- region?: string | undefined;
769
- } & {
770
- traceContext?: Record<string, unknown> | undefined;
771
- realtimeStreamsVersion?: string | undefined;
772
- };
773
- }, {
774
- task: {
775
- id: string;
776
- filePath: string;
777
- } & {
778
- [k: string]: unknown;
779
- };
780
- queue: {
781
- id: string;
782
- name: string;
783
- };
784
- environment: {
785
- id: string;
786
- slug: string;
787
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
788
- branchName?: string | undefined;
789
- git?: {
790
- provider?: string | undefined;
791
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
792
- ghUsername?: string | undefined;
793
- ghUserAvatarUrl?: string | undefined;
794
- commitAuthorName?: string | undefined;
795
- commitMessage?: string | undefined;
796
- commitRef?: string | undefined;
797
- commitSha?: string | undefined;
798
- dirty?: boolean | undefined;
799
- remoteUrl?: string | undefined;
800
- pullRequestNumber?: number | undefined;
801
- pullRequestTitle?: string | undefined;
802
- pullRequestState?: "closed" | "merged" | "open" | undefined;
803
- } | undefined;
804
- };
805
- organization: {
806
- id: string;
807
- slug: string;
808
- name: string;
809
- };
810
- project: {
811
- id: string;
812
- ref: string;
813
- slug: string;
814
- name: string;
815
- };
816
- machine: {
817
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
818
- cpu: number;
819
- memory: number;
820
- centsPerMs: number;
821
- };
822
- batch?: {
823
- id: string;
824
- } | undefined;
825
- deployment?: {
826
- id: string;
827
- shortCode: string;
828
- version: string;
829
- runtime: string;
830
- runtimeVersion: string;
831
- git?: {
832
- provider?: string | undefined;
833
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
834
- ghUsername?: string | undefined;
835
- ghUserAvatarUrl?: string | undefined;
836
- commitAuthorName?: string | undefined;
837
- commitMessage?: string | undefined;
838
- commitRef?: string | undefined;
839
- commitSha?: string | undefined;
840
- dirty?: boolean | undefined;
841
- remoteUrl?: string | undefined;
842
- pullRequestNumber?: number | undefined;
843
- pullRequestTitle?: string | undefined;
844
- pullRequestState?: "closed" | "merged" | "open" | undefined;
845
- } | undefined;
846
- } | undefined;
847
- attempt: {
848
- number: number;
849
- startedAt: Date;
850
- } & {
851
- [k: string]: unknown;
852
- };
853
- run: {
854
- id: string;
855
- payload: string;
856
- payloadType: string;
857
- tags: string[];
858
- isTest?: boolean | undefined;
859
- isReplay?: boolean | undefined;
860
- createdAt: Date;
861
- startedAt?: Date | undefined;
862
- idempotencyKey?: string | undefined;
863
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
864
- maxAttempts?: number | undefined;
865
- version?: string | undefined;
866
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
867
- maxDuration?: number | undefined;
868
- priority?: number | undefined;
869
- baseCostInCents?: number | undefined;
870
- parentTaskRunId?: string | undefined;
871
- rootTaskRunId?: string | undefined;
872
- durationMs?: number | undefined;
873
- costInCents?: number | undefined;
874
- region?: string | undefined;
875
- } & {
876
- traceContext?: Record<string, unknown> | undefined;
877
- realtimeStreamsVersion?: string | undefined;
878
- };
879
- }>;
880
- }, "strip", z.ZodTypeAny, {
881
- execution: {
882
- task: {
883
- id: string;
884
- filePath: string;
885
- } & {
886
- [k: string]: unknown;
887
- };
888
- queue: {
889
- id: string;
890
- name: string;
891
- };
892
- environment: {
893
- id: string;
894
- slug: string;
895
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
896
- branchName?: string | undefined;
897
- git?: {
898
- provider?: string | undefined;
899
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
900
- ghUsername?: string | undefined;
901
- ghUserAvatarUrl?: string | undefined;
902
- commitAuthorName?: string | undefined;
903
- commitMessage?: string | undefined;
904
- commitRef?: string | undefined;
905
- commitSha?: string | undefined;
906
- dirty?: boolean | undefined;
907
- remoteUrl?: string | undefined;
908
- pullRequestNumber?: number | undefined;
909
- pullRequestTitle?: string | undefined;
910
- pullRequestState?: "closed" | "merged" | "open" | undefined;
911
- } | undefined;
912
- };
913
- organization: {
914
- id: string;
915
- slug: string;
916
- name: string;
917
- };
918
- project: {
919
- id: string;
920
- ref: string;
921
- slug: string;
922
- name: string;
923
- };
924
- machine: {
925
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
926
- cpu: number;
927
- memory: number;
928
- centsPerMs: number;
929
- };
930
- batch?: {
931
- id: string;
932
- } | undefined;
933
- deployment?: {
934
- id: string;
935
- shortCode: string;
936
- version: string;
937
- runtime: string;
938
- runtimeVersion: string;
939
- git?: {
940
- provider?: string | undefined;
941
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
942
- ghUsername?: string | undefined;
943
- ghUserAvatarUrl?: string | undefined;
944
- commitAuthorName?: string | undefined;
945
- commitMessage?: string | undefined;
946
- commitRef?: string | undefined;
947
- commitSha?: string | undefined;
948
- dirty?: boolean | undefined;
949
- remoteUrl?: string | undefined;
950
- pullRequestNumber?: number | undefined;
951
- pullRequestTitle?: string | undefined;
952
- pullRequestState?: "closed" | "merged" | "open" | undefined;
953
- } | undefined;
954
- } | undefined;
955
- attempt: {
956
- number: number;
957
- startedAt: Date;
958
- } & {
959
- [k: string]: unknown;
960
- };
961
- run: {
962
- id: string;
963
- payload: string;
964
- payloadType: string;
965
- tags: string[];
966
- isTest: boolean;
967
- isReplay: boolean;
968
- createdAt: Date;
969
- startedAt: Date;
970
- idempotencyKey?: string | undefined;
971
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
972
- maxAttempts?: number | undefined;
973
- version?: string | undefined;
974
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
975
- maxDuration?: number | undefined;
976
- priority?: number | undefined;
977
- baseCostInCents?: number | undefined;
978
- parentTaskRunId?: string | undefined;
979
- rootTaskRunId?: string | undefined;
980
- durationMs?: number | undefined;
981
- costInCents?: number | undefined;
982
- region?: string | undefined;
983
- } & {
984
- traceContext?: Record<string, unknown> | undefined;
985
- realtimeStreamsVersion?: string | undefined;
986
- };
987
- };
988
- }, {
989
- execution: {
990
- task: {
991
- id: string;
992
- filePath: string;
993
- } & {
994
- [k: string]: unknown;
995
- };
996
- queue: {
997
- id: string;
998
- name: string;
999
- };
1000
- environment: {
1001
- id: string;
1002
- slug: string;
1003
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1004
- branchName?: string | undefined;
1005
- git?: {
1006
- provider?: string | undefined;
1007
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1008
- ghUsername?: string | undefined;
1009
- ghUserAvatarUrl?: string | undefined;
1010
- commitAuthorName?: string | undefined;
1011
- commitMessage?: string | undefined;
1012
- commitRef?: string | undefined;
1013
- commitSha?: string | undefined;
1014
- dirty?: boolean | undefined;
1015
- remoteUrl?: string | undefined;
1016
- pullRequestNumber?: number | undefined;
1017
- pullRequestTitle?: string | undefined;
1018
- pullRequestState?: "closed" | "merged" | "open" | undefined;
1019
- } | undefined;
1020
- };
1021
- organization: {
1022
- id: string;
1023
- slug: string;
1024
- name: string;
1025
- };
1026
- project: {
1027
- id: string;
1028
- ref: string;
1029
- slug: string;
1030
- name: string;
1031
- };
1032
- machine: {
1033
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1034
- cpu: number;
1035
- memory: number;
1036
- centsPerMs: number;
1037
- };
1038
- batch?: {
1039
- id: string;
1040
- } | undefined;
1041
- deployment?: {
1042
- id: string;
1043
- shortCode: string;
1044
- version: string;
1045
- runtime: string;
1046
- runtimeVersion: string;
1047
- git?: {
1048
- provider?: string | undefined;
1049
- source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1050
- ghUsername?: string | undefined;
1051
- ghUserAvatarUrl?: string | undefined;
1052
- commitAuthorName?: string | undefined;
1053
- commitMessage?: string | undefined;
1054
- commitRef?: string | undefined;
1055
- commitSha?: string | undefined;
1056
- dirty?: boolean | undefined;
1057
- remoteUrl?: string | undefined;
1058
- pullRequestNumber?: number | undefined;
1059
- pullRequestTitle?: string | undefined;
1060
- pullRequestState?: "closed" | "merged" | "open" | undefined;
1061
- } | undefined;
1062
- } | undefined;
1063
- attempt: {
1064
- number: number;
1065
- startedAt: Date;
1066
- } & {
1067
- [k: string]: unknown;
1068
- };
1069
- run: {
1070
- id: string;
1071
- payload: string;
1072
- payloadType: string;
1073
- tags: string[];
1074
- isTest?: boolean | undefined;
1075
- isReplay?: boolean | undefined;
1076
- createdAt: Date;
1077
- startedAt?: Date | undefined;
1078
- idempotencyKey?: string | undefined;
1079
- idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1080
- maxAttempts?: number | undefined;
1081
- version?: string | undefined;
1082
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1083
- maxDuration?: number | undefined;
1084
- priority?: number | undefined;
1085
- baseCostInCents?: number | undefined;
1086
- parentTaskRunId?: string | undefined;
1087
- rootTaskRunId?: string | undefined;
1088
- durationMs?: number | undefined;
1089
- costInCents?: number | undefined;
1090
- region?: string | undefined;
1091
- } & {
1092
- traceContext?: Record<string, unknown> | undefined;
1093
- realtimeStreamsVersion?: string | undefined;
1094
- };
1095
- };
1096
- }>>;
367
+ }, z.core.$strip>>;
368
+ }, z.core.$strip>;
369
+ }, z.core.$strip>>;
1097
370
  export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
1098
371
  /** The response to the Worker when completing an attempt */
1099
- declare const CompleteAttemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
372
+ declare const CompleteAttemptStatus: z.ZodEnum<{
373
+ RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
374
+ RETRY_QUEUED: "RETRY_QUEUED";
375
+ RUN_FINISHED: "RUN_FINISHED";
376
+ RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
377
+ }>;
1100
378
  export type CompleteAttemptStatus = z.infer<typeof CompleteAttemptStatus>;
1101
379
  export declare const CompleteRunAttemptResult: z.ZodIntersection<z.ZodObject<{
1102
- attemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
1103
- }, "strip", z.ZodTypeAny, {
1104
- attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1105
- }, {
1106
- attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
1107
- }>, z.ZodObject<{
380
+ attemptStatus: z.ZodEnum<{
381
+ RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
382
+ RETRY_QUEUED: "RETRY_QUEUED";
383
+ RUN_FINISHED: "RUN_FINISHED";
384
+ RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
385
+ }>;
386
+ }, z.core.$strip>, z.ZodObject<{
1108
387
  snapshot: z.ZodObject<{
1109
388
  id: z.ZodString;
1110
389
  friendlyId: z.ZodString;
1111
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
390
+ executionStatus: z.ZodEnum<{
391
+ DELAYED: "DELAYED";
392
+ EXECUTING: "EXECUTING";
393
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
394
+ FINISHED: "FINISHED";
395
+ PENDING_CANCEL: "PENDING_CANCEL";
396
+ PENDING_EXECUTING: "PENDING_EXECUTING";
397
+ QUEUED: "QUEUED";
398
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
399
+ RUN_CREATED: "RUN_CREATED";
400
+ SUSPENDED: "SUSPENDED";
401
+ }>;
1112
402
  description: z.ZodString;
1113
- createdAt: z.ZodDate;
1114
- }, "strip", z.ZodTypeAny, {
1115
- id: string;
1116
- friendlyId: string;
1117
- executionStatus: TaskRunExecutionStatus;
1118
- description: string;
1119
- createdAt: Date;
1120
- }, {
1121
- id: string;
1122
- friendlyId: string;
1123
- executionStatus: TaskRunExecutionStatus;
1124
- description: string;
1125
- createdAt: Date;
1126
- }>;
403
+ createdAt: z.ZodCoercedDate<unknown>;
404
+ }, z.core.$strip>;
1127
405
  run: z.ZodObject<{
1128
406
  id: z.ZodString;
1129
407
  friendlyId: z.ZodString;
1130
- status: z.ZodEnum<[TaskRunStatus]>;
408
+ status: z.ZodEnum<{
409
+ CANCELED: "CANCELED";
410
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
411
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
412
+ CRASHED: "CRASHED";
413
+ DELAYED: "DELAYED";
414
+ DEQUEUED: "DEQUEUED";
415
+ EXECUTING: "EXECUTING";
416
+ EXPIRED: "EXPIRED";
417
+ INTERRUPTED: "INTERRUPTED";
418
+ PAUSED: "PAUSED";
419
+ PENDING: "PENDING";
420
+ PENDING_VERSION: "PENDING_VERSION";
421
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
422
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
423
+ TIMED_OUT: "TIMED_OUT";
424
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
425
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
426
+ }>;
1131
427
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1132
428
  taskEventStore: z.ZodOptional<z.ZodString>;
1133
- }, "strip", z.ZodTypeAny, {
1134
- id: string;
1135
- friendlyId: string;
1136
- status: TaskRunStatus;
1137
- attemptNumber?: number | null | undefined;
1138
- taskEventStore?: string | undefined;
1139
- }, {
1140
- id: string;
1141
- friendlyId: string;
1142
- status: TaskRunStatus;
1143
- attemptNumber?: number | null | undefined;
1144
- taskEventStore?: string | undefined;
1145
- }>;
1146
- }, "strip", z.ZodTypeAny, {
1147
- snapshot: {
1148
- id: string;
1149
- friendlyId: string;
1150
- executionStatus: TaskRunExecutionStatus;
1151
- description: string;
1152
- createdAt: Date;
1153
- };
1154
- run: {
1155
- id: string;
1156
- friendlyId: string;
1157
- status: TaskRunStatus;
1158
- attemptNumber?: number | null | undefined;
1159
- taskEventStore?: string | undefined;
1160
- };
1161
- }, {
1162
- snapshot: {
1163
- id: string;
1164
- friendlyId: string;
1165
- executionStatus: TaskRunExecutionStatus;
1166
- description: string;
1167
- createdAt: Date;
1168
- };
1169
- run: {
1170
- id: string;
1171
- friendlyId: string;
1172
- status: TaskRunStatus;
1173
- attemptNumber?: number | null | undefined;
1174
- taskEventStore?: string | undefined;
1175
- };
1176
- }>>;
429
+ }, z.core.$strip>;
430
+ }, z.core.$strip>>;
1177
431
  export type CompleteRunAttemptResult = z.infer<typeof CompleteRunAttemptResult>;
1178
432
  export declare const CheckpointTypeEnum: {
1179
433
  DOCKER: "DOCKER";
@@ -1181,48 +435,35 @@ export declare const CheckpointTypeEnum: {
1181
435
  COMPUTE: "COMPUTE";
1182
436
  };
1183
437
  export type CheckpointTypeEnum = (typeof CheckpointTypeEnum)[keyof typeof CheckpointTypeEnum];
1184
- export declare const CheckpointType: z.ZodEnum<[CheckpointTypeEnum]>;
438
+ export declare const CheckpointType: z.ZodEnum<{
439
+ COMPUTE: "COMPUTE";
440
+ DOCKER: "DOCKER";
441
+ KUBERNETES: "KUBERNETES";
442
+ }>;
1185
443
  export type CheckpointType = z.infer<typeof CheckpointType>;
1186
444
  export declare const CheckpointInput: z.ZodObject<{
1187
- type: z.ZodEnum<[CheckpointTypeEnum]>;
445
+ type: z.ZodEnum<{
446
+ COMPUTE: "COMPUTE";
447
+ DOCKER: "DOCKER";
448
+ KUBERNETES: "KUBERNETES";
449
+ }>;
1188
450
  location: z.ZodString;
1189
451
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
452
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
- }, "strip", z.ZodTypeAny, {
1192
- type: CheckpointTypeEnum;
1193
- location: string;
1194
- imageRef?: string | null | undefined;
1195
- reason?: string | null | undefined;
1196
- }, {
1197
- type: CheckpointTypeEnum;
1198
- location: string;
1199
- imageRef?: string | null | undefined;
1200
- reason?: string | null | undefined;
1201
- }>;
453
+ }, z.core.$strip>;
1202
454
  export type CheckpointInput = z.infer<typeof CheckpointInput>;
1203
455
  export declare const TaskRunCheckpoint: z.ZodObject<{
1204
- type: z.ZodEnum<[CheckpointTypeEnum]>;
456
+ type: z.ZodEnum<{
457
+ COMPUTE: "COMPUTE";
458
+ DOCKER: "DOCKER";
459
+ KUBERNETES: "KUBERNETES";
460
+ }>;
1205
461
  location: z.ZodString;
1206
462
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
463
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
- } & {
1209
464
  id: z.ZodString;
1210
465
  friendlyId: z.ZodString;
1211
- }, "strip", z.ZodTypeAny, {
1212
- type: CheckpointTypeEnum;
1213
- location: string;
1214
- imageRef?: string | null | undefined;
1215
- reason?: string | null | undefined;
1216
- id: string;
1217
- friendlyId: string;
1218
- }, {
1219
- type: CheckpointTypeEnum;
1220
- location: string;
1221
- imageRef?: string | null | undefined;
1222
- reason?: string | null | undefined;
1223
- id: string;
1224
- friendlyId: string;
1225
- }>;
466
+ }, z.core.$strip>;
1226
467
  export type TaskRunCheckpoint = z.infer<typeof TaskRunCheckpoint>;
1227
468
  /** The response when a Worker asks for the latest execution state */
1228
469
  export declare const RunExecutionData: z.ZodObject<{
@@ -1230,930 +471,334 @@ export declare const RunExecutionData: z.ZodObject<{
1230
471
  snapshot: z.ZodObject<{
1231
472
  id: z.ZodString;
1232
473
  friendlyId: z.ZodString;
1233
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
474
+ executionStatus: z.ZodEnum<{
475
+ DELAYED: "DELAYED";
476
+ EXECUTING: "EXECUTING";
477
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
478
+ FINISHED: "FINISHED";
479
+ PENDING_CANCEL: "PENDING_CANCEL";
480
+ PENDING_EXECUTING: "PENDING_EXECUTING";
481
+ QUEUED: "QUEUED";
482
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
483
+ RUN_CREATED: "RUN_CREATED";
484
+ SUSPENDED: "SUSPENDED";
485
+ }>;
1234
486
  description: z.ZodString;
1235
- createdAt: z.ZodDate;
1236
- }, "strip", z.ZodTypeAny, {
1237
- id: string;
1238
- friendlyId: string;
1239
- executionStatus: TaskRunExecutionStatus;
1240
- description: string;
1241
- createdAt: Date;
1242
- }, {
1243
- id: string;
1244
- friendlyId: string;
1245
- executionStatus: TaskRunExecutionStatus;
1246
- description: string;
1247
- createdAt: Date;
1248
- }>;
487
+ createdAt: z.ZodCoercedDate<unknown>;
488
+ }, z.core.$strip>;
1249
489
  run: z.ZodObject<{
1250
490
  id: z.ZodString;
1251
491
  friendlyId: z.ZodString;
1252
- status: z.ZodEnum<[TaskRunStatus]>;
492
+ status: z.ZodEnum<{
493
+ CANCELED: "CANCELED";
494
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
495
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
496
+ CRASHED: "CRASHED";
497
+ DELAYED: "DELAYED";
498
+ DEQUEUED: "DEQUEUED";
499
+ EXECUTING: "EXECUTING";
500
+ EXPIRED: "EXPIRED";
501
+ INTERRUPTED: "INTERRUPTED";
502
+ PAUSED: "PAUSED";
503
+ PENDING: "PENDING";
504
+ PENDING_VERSION: "PENDING_VERSION";
505
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
506
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
507
+ TIMED_OUT: "TIMED_OUT";
508
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
509
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
510
+ }>;
1253
511
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1254
512
  taskEventStore: z.ZodOptional<z.ZodString>;
1255
- }, "strip", z.ZodTypeAny, {
1256
- id: string;
1257
- friendlyId: string;
1258
- status: TaskRunStatus;
1259
- attemptNumber?: number | null | undefined;
1260
- taskEventStore?: string | undefined;
1261
- }, {
1262
- id: string;
1263
- friendlyId: string;
1264
- status: TaskRunStatus;
1265
- attemptNumber?: number | null | undefined;
1266
- taskEventStore?: string | undefined;
1267
- }>;
513
+ }, z.core.$strip>;
1268
514
  batch: z.ZodOptional<z.ZodObject<{
1269
515
  id: z.ZodString;
1270
516
  friendlyId: z.ZodString;
1271
- }, "strip", z.ZodTypeAny, {
1272
- id: string;
1273
- friendlyId: string;
1274
- }, {
1275
- id: string;
1276
- friendlyId: string;
1277
- }>>;
517
+ }, z.core.$strip>>;
1278
518
  checkpoint: z.ZodOptional<z.ZodObject<{
1279
- type: z.ZodEnum<[CheckpointTypeEnum]>;
519
+ type: z.ZodEnum<{
520
+ COMPUTE: "COMPUTE";
521
+ DOCKER: "DOCKER";
522
+ KUBERNETES: "KUBERNETES";
523
+ }>;
1280
524
  location: z.ZodString;
1281
525
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
526
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
- } & {
1284
527
  id: z.ZodString;
1285
528
  friendlyId: z.ZodString;
1286
- }, "strip", z.ZodTypeAny, {
1287
- type: CheckpointTypeEnum;
1288
- location: string;
1289
- imageRef?: string | null | undefined;
1290
- reason?: string | null | undefined;
1291
- id: string;
1292
- friendlyId: string;
1293
- }, {
1294
- type: CheckpointTypeEnum;
1295
- location: string;
1296
- imageRef?: string | null | undefined;
1297
- reason?: string | null | undefined;
1298
- id: string;
1299
- friendlyId: string;
1300
- }>>;
529
+ }, z.core.$strip>>;
1301
530
  completedWaitpoints: z.ZodArray<z.ZodObject<{
1302
531
  id: z.ZodString;
1303
532
  index: z.ZodOptional<z.ZodNumber>;
1304
533
  friendlyId: z.ZodString;
1305
- type: z.ZodEnum<[WaitpointType]>;
1306
- completedAt: z.ZodDate;
534
+ type: z.ZodEnum<{
535
+ BATCH: "BATCH";
536
+ DATETIME: "DATETIME";
537
+ MANUAL: "MANUAL";
538
+ RUN: "RUN";
539
+ }>;
540
+ completedAt: z.ZodCoercedDate<unknown>;
1307
541
  idempotencyKey: z.ZodOptional<z.ZodString>;
1308
- /** For type === "RUN" */
1309
542
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
1310
543
  id: z.ZodString;
1311
544
  friendlyId: z.ZodString;
1312
- /** If the run has an associated batch */
1313
545
  batch: z.ZodOptional<z.ZodObject<{
1314
546
  id: z.ZodString;
1315
547
  friendlyId: z.ZodString;
1316
- }, "strip", z.ZodTypeAny, {
1317
- id: string;
1318
- friendlyId: string;
1319
- }, {
1320
- id: string;
1321
- friendlyId: string;
1322
- }>>;
1323
- }, "strip", z.ZodTypeAny, {
1324
- id: string;
1325
- friendlyId: string;
1326
- batch?: {
1327
- id: string;
1328
- friendlyId: string;
1329
- } | undefined;
1330
- }, {
1331
- id: string;
1332
- friendlyId: string;
1333
- batch?: {
1334
- id: string;
1335
- friendlyId: string;
1336
- } | undefined;
1337
- }>>;
1338
- /** For type === "DATETIME" */
1339
- completedAfter: z.ZodOptional<z.ZodDate>;
1340
- /** For type === "BATCH" */
548
+ }, z.core.$strip>>;
549
+ }, z.core.$strip>>;
550
+ completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1341
551
  completedByBatch: z.ZodOptional<z.ZodObject<{
1342
552
  id: z.ZodString;
1343
553
  friendlyId: z.ZodString;
1344
- }, "strip", z.ZodTypeAny, {
1345
- id: string;
1346
- friendlyId: string;
1347
- }, {
1348
- id: string;
1349
- friendlyId: string;
1350
- }>>;
554
+ }, z.core.$strip>>;
1351
555
  output: z.ZodOptional<z.ZodString>;
1352
556
  outputType: z.ZodOptional<z.ZodString>;
1353
557
  outputIsError: z.ZodBoolean;
1354
- }, "strip", z.ZodTypeAny, {
1355
- id: string;
1356
- index?: number | undefined;
1357
- friendlyId: string;
1358
- type: WaitpointType;
1359
- completedAt: Date;
1360
- idempotencyKey?: string | undefined;
1361
- completedByTaskRun?: {
1362
- id: string;
1363
- friendlyId: string;
1364
- batch?: {
1365
- id: string;
1366
- friendlyId: string;
1367
- } | undefined;
1368
- } | undefined;
1369
- completedAfter?: Date | undefined;
1370
- completedByBatch?: {
1371
- id: string;
1372
- friendlyId: string;
1373
- } | undefined;
1374
- output?: string | undefined;
1375
- outputType?: string | undefined;
1376
- outputIsError: boolean;
1377
- }, {
1378
- id: string;
1379
- index?: number | undefined;
1380
- friendlyId: string;
1381
- type: WaitpointType;
1382
- completedAt: Date;
1383
- idempotencyKey?: string | undefined;
1384
- completedByTaskRun?: {
1385
- id: string;
1386
- friendlyId: string;
1387
- batch?: {
1388
- id: string;
1389
- friendlyId: string;
1390
- } | undefined;
1391
- } | undefined;
1392
- completedAfter?: Date | undefined;
1393
- completedByBatch?: {
1394
- id: string;
1395
- friendlyId: string;
1396
- } | undefined;
1397
- output?: string | undefined;
1398
- outputType?: string | undefined;
1399
- outputIsError: boolean;
1400
- }>, "many">;
1401
- }, "strip", z.ZodTypeAny, {
1402
- version: "1";
1403
- snapshot: {
1404
- id: string;
1405
- friendlyId: string;
1406
- executionStatus: TaskRunExecutionStatus;
1407
- description: string;
1408
- createdAt: Date;
1409
- };
1410
- run: {
1411
- id: string;
1412
- friendlyId: string;
1413
- status: TaskRunStatus;
1414
- attemptNumber?: number | null | undefined;
1415
- taskEventStore?: string | undefined;
1416
- };
1417
- batch?: {
1418
- id: string;
1419
- friendlyId: string;
1420
- } | undefined;
1421
- checkpoint?: {
1422
- type: CheckpointTypeEnum;
1423
- location: string;
1424
- imageRef?: string | null | undefined;
1425
- reason?: string | null | undefined;
1426
- id: string;
1427
- friendlyId: string;
1428
- } | undefined;
1429
- completedWaitpoints: {
1430
- id: string;
1431
- index?: number | undefined;
1432
- friendlyId: string;
1433
- type: WaitpointType;
1434
- completedAt: Date;
1435
- idempotencyKey?: string | undefined;
1436
- completedByTaskRun?: {
1437
- id: string;
1438
- friendlyId: string;
1439
- batch?: {
1440
- id: string;
1441
- friendlyId: string;
1442
- } | undefined;
1443
- } | undefined;
1444
- completedAfter?: Date | undefined;
1445
- completedByBatch?: {
1446
- id: string;
1447
- friendlyId: string;
1448
- } | undefined;
1449
- output?: string | undefined;
1450
- outputType?: string | undefined;
1451
- outputIsError: boolean;
1452
- }[];
1453
- }, {
1454
- version: "1";
1455
- snapshot: {
1456
- id: string;
1457
- friendlyId: string;
1458
- executionStatus: TaskRunExecutionStatus;
1459
- description: string;
1460
- createdAt: Date;
1461
- };
1462
- run: {
1463
- id: string;
1464
- friendlyId: string;
1465
- status: TaskRunStatus;
1466
- attemptNumber?: number | null | undefined;
1467
- taskEventStore?: string | undefined;
1468
- };
1469
- batch?: {
1470
- id: string;
1471
- friendlyId: string;
1472
- } | undefined;
1473
- checkpoint?: {
1474
- type: CheckpointTypeEnum;
1475
- location: string;
1476
- imageRef?: string | null | undefined;
1477
- reason?: string | null | undefined;
1478
- id: string;
1479
- friendlyId: string;
1480
- } | undefined;
1481
- completedWaitpoints: {
1482
- id: string;
1483
- index?: number | undefined;
1484
- friendlyId: string;
1485
- type: WaitpointType;
1486
- completedAt: Date;
1487
- idempotencyKey?: string | undefined;
1488
- completedByTaskRun?: {
1489
- id: string;
1490
- friendlyId: string;
1491
- batch?: {
1492
- id: string;
1493
- friendlyId: string;
1494
- } | undefined;
1495
- } | undefined;
1496
- completedAfter?: Date | undefined;
1497
- completedByBatch?: {
1498
- id: string;
1499
- friendlyId: string;
1500
- } | undefined;
1501
- output?: string | undefined;
1502
- outputType?: string | undefined;
1503
- outputIsError: boolean;
1504
- }[];
1505
- }>;
558
+ }, z.core.$strip>>;
559
+ }, z.core.$strip>;
1506
560
  export type RunExecutionData = z.infer<typeof RunExecutionData>;
1507
- export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1508
- ok: z.ZodLiteral<true>;
1509
- checkpoint: z.ZodObject<{
1510
- type: z.ZodEnum<[CheckpointTypeEnum]>;
1511
- location: z.ZodString;
1512
- imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
- } & {
1515
- id: z.ZodString;
1516
- friendlyId: z.ZodString;
1517
- }, "strip", z.ZodTypeAny, {
1518
- type: CheckpointTypeEnum;
1519
- location: string;
1520
- imageRef?: string | null | undefined;
1521
- reason?: string | null | undefined;
1522
- id: string;
1523
- friendlyId: string;
1524
- }, {
1525
- type: CheckpointTypeEnum;
1526
- location: string;
1527
- imageRef?: string | null | undefined;
1528
- reason?: string | null | undefined;
1529
- id: string;
1530
- friendlyId: string;
1531
- }>;
1532
- } & {
561
+ export declare const CreateCheckpointResult: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1533
562
  snapshot: z.ZodObject<{
1534
563
  id: z.ZodString;
1535
564
  friendlyId: z.ZodString;
1536
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
565
+ executionStatus: z.ZodEnum<{
566
+ DELAYED: "DELAYED";
567
+ EXECUTING: "EXECUTING";
568
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
569
+ FINISHED: "FINISHED";
570
+ PENDING_CANCEL: "PENDING_CANCEL";
571
+ PENDING_EXECUTING: "PENDING_EXECUTING";
572
+ QUEUED: "QUEUED";
573
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
574
+ RUN_CREATED: "RUN_CREATED";
575
+ SUSPENDED: "SUSPENDED";
576
+ }>;
1537
577
  description: z.ZodString;
1538
- createdAt: z.ZodDate;
1539
- }, "strip", z.ZodTypeAny, {
1540
- id: string;
1541
- friendlyId: string;
1542
- executionStatus: TaskRunExecutionStatus;
1543
- description: string;
1544
- createdAt: Date;
1545
- }, {
1546
- id: string;
1547
- friendlyId: string;
1548
- executionStatus: TaskRunExecutionStatus;
1549
- description: string;
1550
- createdAt: Date;
1551
- }>;
578
+ createdAt: z.ZodCoercedDate<unknown>;
579
+ }, z.core.$strip>;
1552
580
  run: z.ZodObject<{
1553
581
  id: z.ZodString;
1554
582
  friendlyId: z.ZodString;
1555
- status: z.ZodEnum<[TaskRunStatus]>;
583
+ status: z.ZodEnum<{
584
+ CANCELED: "CANCELED";
585
+ COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
586
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
587
+ CRASHED: "CRASHED";
588
+ DELAYED: "DELAYED";
589
+ DEQUEUED: "DEQUEUED";
590
+ EXECUTING: "EXECUTING";
591
+ EXPIRED: "EXPIRED";
592
+ INTERRUPTED: "INTERRUPTED";
593
+ PAUSED: "PAUSED";
594
+ PENDING: "PENDING";
595
+ PENDING_VERSION: "PENDING_VERSION";
596
+ RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
597
+ SYSTEM_FAILURE: "SYSTEM_FAILURE";
598
+ TIMED_OUT: "TIMED_OUT";
599
+ WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
600
+ WAITING_TO_RESUME: "WAITING_TO_RESUME";
601
+ }>;
1556
602
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1557
603
  taskEventStore: z.ZodOptional<z.ZodString>;
1558
- }, "strip", z.ZodTypeAny, {
1559
- id: string;
1560
- friendlyId: string;
1561
- status: TaskRunStatus;
1562
- attemptNumber?: number | null | undefined;
1563
- taskEventStore?: string | undefined;
1564
- }, {
1565
- id: string;
1566
- friendlyId: string;
1567
- status: TaskRunStatus;
1568
- attemptNumber?: number | null | undefined;
1569
- taskEventStore?: string | undefined;
1570
- }>;
1571
- }, "strip", z.ZodTypeAny, {
1572
- snapshot: {
1573
- id: string;
1574
- friendlyId: string;
1575
- executionStatus: TaskRunExecutionStatus;
1576
- description: string;
1577
- createdAt: Date;
1578
- };
1579
- run: {
1580
- id: string;
1581
- friendlyId: string;
1582
- status: TaskRunStatus;
1583
- attemptNumber?: number | null | undefined;
1584
- taskEventStore?: string | undefined;
1585
- };
1586
- ok: true;
1587
- checkpoint: {
1588
- type: CheckpointTypeEnum;
1589
- location: string;
1590
- imageRef?: string | null | undefined;
1591
- reason?: string | null | undefined;
1592
- id: string;
1593
- friendlyId: string;
1594
- };
1595
- }, {
1596
- snapshot: {
1597
- id: string;
1598
- friendlyId: string;
1599
- executionStatus: TaskRunExecutionStatus;
1600
- description: string;
1601
- createdAt: Date;
1602
- };
1603
- run: {
1604
- id: string;
1605
- friendlyId: string;
1606
- status: TaskRunStatus;
1607
- attemptNumber?: number | null | undefined;
1608
- taskEventStore?: string | undefined;
1609
- };
1610
- ok: true;
1611
- checkpoint: {
1612
- type: CheckpointTypeEnum;
1613
- location: string;
1614
- imageRef?: string | null | undefined;
1615
- reason?: string | null | undefined;
1616
- id: string;
1617
- friendlyId: string;
1618
- };
1619
- }>, z.ZodObject<{
604
+ }, z.core.$strip>;
605
+ ok: z.ZodLiteral<true>;
606
+ checkpoint: z.ZodObject<{
607
+ type: z.ZodEnum<{
608
+ COMPUTE: "COMPUTE";
609
+ DOCKER: "DOCKER";
610
+ KUBERNETES: "KUBERNETES";
611
+ }>;
612
+ location: z.ZodString;
613
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ id: z.ZodString;
616
+ friendlyId: z.ZodString;
617
+ }, z.core.$strip>;
618
+ }, z.core.$strip>, z.ZodObject<{
1620
619
  ok: z.ZodLiteral<false>;
1621
620
  error: z.ZodString;
1622
- }, "strip", z.ZodTypeAny, {
1623
- ok: false;
1624
- error: string;
1625
- }, {
1626
- ok: false;
1627
- error: string;
1628
- }>]>;
621
+ }, z.core.$strip>]>;
1629
622
  export type CreateCheckpointResult = z.infer<typeof CreateCheckpointResult>;
1630
623
  export declare const MachineResources: z.ZodObject<{
1631
624
  cpu: z.ZodNumber;
1632
625
  memory: z.ZodNumber;
1633
- }, "strip", z.ZodTypeAny, {
1634
- cpu: number;
1635
- memory: number;
1636
- }, {
1637
- cpu: number;
1638
- memory: number;
1639
- }>;
626
+ }, z.core.$strip>;
1640
627
  export type MachineResources = z.infer<typeof MachineResources>;
1641
628
  export declare const DequeueMessageCheckpoint: z.ZodObject<{
1642
629
  id: z.ZodString;
1643
- type: z.ZodEnum<[CheckpointTypeEnum]>;
630
+ type: z.ZodEnum<{
631
+ COMPUTE: "COMPUTE";
632
+ DOCKER: "DOCKER";
633
+ KUBERNETES: "KUBERNETES";
634
+ }>;
1644
635
  location: z.ZodString;
1645
636
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1646
637
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
- }, "strip", z.ZodTypeAny, {
1648
- id: string;
1649
- type: CheckpointTypeEnum;
1650
- location: string;
1651
- imageRef?: string | null | undefined;
1652
- reason?: string | null | undefined;
1653
- }, {
1654
- id: string;
1655
- type: CheckpointTypeEnum;
1656
- location: string;
1657
- imageRef?: string | null | undefined;
1658
- reason?: string | null | undefined;
1659
- }>;
638
+ }, z.core.$strip>;
1660
639
  export type DequeueMessageCheckpoint = z.infer<typeof DequeueMessageCheckpoint>;
1661
640
  export declare const PlacementTag: z.ZodObject<{
1662
641
  key: z.ZodString;
1663
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1664
- }, "strip", z.ZodTypeAny, {
1665
- key: string;
1666
- values?: string[] | undefined;
1667
- }, {
1668
- key: string;
1669
- values?: string[] | undefined;
1670
- }>;
642
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
643
+ }, z.core.$strip>;
1671
644
  export type PlacementTag = z.infer<typeof PlacementTag>;
1672
645
  /** This is sent to a Worker when a run is dequeued (a new run or continuing run) */
646
+ export { SnapshotRouteWire };
1673
647
  export declare const DequeuedMessage: z.ZodObject<{
1674
648
  version: z.ZodLiteral<"1">;
1675
649
  snapshot: z.ZodObject<{
1676
650
  id: z.ZodString;
1677
651
  friendlyId: z.ZodString;
1678
- executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
652
+ executionStatus: z.ZodEnum<{
653
+ DELAYED: "DELAYED";
654
+ EXECUTING: "EXECUTING";
655
+ EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
656
+ FINISHED: "FINISHED";
657
+ PENDING_CANCEL: "PENDING_CANCEL";
658
+ PENDING_EXECUTING: "PENDING_EXECUTING";
659
+ QUEUED: "QUEUED";
660
+ QUEUED_EXECUTING: "QUEUED_EXECUTING";
661
+ RUN_CREATED: "RUN_CREATED";
662
+ SUSPENDED: "SUSPENDED";
663
+ }>;
1679
664
  description: z.ZodString;
1680
- createdAt: z.ZodDate;
1681
- }, "strip", z.ZodTypeAny, {
1682
- id: string;
1683
- friendlyId: string;
1684
- executionStatus: TaskRunExecutionStatus;
1685
- description: string;
1686
- createdAt: Date;
1687
- }, {
1688
- id: string;
1689
- friendlyId: string;
1690
- executionStatus: TaskRunExecutionStatus;
1691
- description: string;
1692
- createdAt: Date;
1693
- }>;
1694
- dequeuedAt: z.ZodDate;
665
+ createdAt: z.ZodCoercedDate<unknown>;
666
+ }, z.core.$strip>;
667
+ snapshotRoute: z.ZodOptional<z.ZodObject<{
668
+ version: z.ZodLiteral<1>;
669
+ residency: z.ZodEnum<{
670
+ mirrored: "mirrored";
671
+ postgres: "postgres";
672
+ "redis-primary": "redis-primary";
673
+ }>;
674
+ organizationId: z.ZodString;
675
+ }, z.core.$strip>>;
676
+ dequeuedAt: z.ZodCoercedDate<unknown>;
1695
677
  workerQueueLength: z.ZodOptional<z.ZodNumber>;
1696
678
  image: z.ZodOptional<z.ZodString>;
1697
679
  checkpoint: z.ZodOptional<z.ZodObject<{
1698
680
  id: z.ZodString;
1699
- type: z.ZodEnum<[CheckpointTypeEnum]>;
681
+ type: z.ZodEnum<{
682
+ COMPUTE: "COMPUTE";
683
+ DOCKER: "DOCKER";
684
+ KUBERNETES: "KUBERNETES";
685
+ }>;
1700
686
  location: z.ZodString;
1701
687
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
688
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
- }, "strip", z.ZodTypeAny, {
1704
- id: string;
1705
- type: CheckpointTypeEnum;
1706
- location: string;
1707
- imageRef?: string | null | undefined;
1708
- reason?: string | null | undefined;
1709
- }, {
1710
- id: string;
1711
- type: CheckpointTypeEnum;
1712
- location: string;
1713
- imageRef?: string | null | undefined;
1714
- reason?: string | null | undefined;
1715
- }>>;
689
+ }, z.core.$strip>>;
1716
690
  completedWaitpoints: z.ZodArray<z.ZodObject<{
1717
691
  id: z.ZodString;
1718
692
  index: z.ZodOptional<z.ZodNumber>;
1719
693
  friendlyId: z.ZodString;
1720
- type: z.ZodEnum<[WaitpointType]>;
1721
- completedAt: z.ZodDate;
694
+ type: z.ZodEnum<{
695
+ BATCH: "BATCH";
696
+ DATETIME: "DATETIME";
697
+ MANUAL: "MANUAL";
698
+ RUN: "RUN";
699
+ }>;
700
+ completedAt: z.ZodCoercedDate<unknown>;
1722
701
  idempotencyKey: z.ZodOptional<z.ZodString>;
1723
- /** For type === "RUN" */
1724
702
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
1725
703
  id: z.ZodString;
1726
704
  friendlyId: z.ZodString;
1727
- /** If the run has an associated batch */
1728
705
  batch: z.ZodOptional<z.ZodObject<{
1729
706
  id: z.ZodString;
1730
707
  friendlyId: z.ZodString;
1731
- }, "strip", z.ZodTypeAny, {
1732
- id: string;
1733
- friendlyId: string;
1734
- }, {
1735
- id: string;
1736
- friendlyId: string;
1737
- }>>;
1738
- }, "strip", z.ZodTypeAny, {
1739
- id: string;
1740
- friendlyId: string;
1741
- batch?: {
1742
- id: string;
1743
- friendlyId: string;
1744
- } | undefined;
1745
- }, {
1746
- id: string;
1747
- friendlyId: string;
1748
- batch?: {
1749
- id: string;
1750
- friendlyId: string;
1751
- } | undefined;
1752
- }>>;
1753
- /** For type === "DATETIME" */
1754
- completedAfter: z.ZodOptional<z.ZodDate>;
1755
- /** For type === "BATCH" */
708
+ }, z.core.$strip>>;
709
+ }, z.core.$strip>>;
710
+ completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1756
711
  completedByBatch: z.ZodOptional<z.ZodObject<{
1757
712
  id: z.ZodString;
1758
713
  friendlyId: z.ZodString;
1759
- }, "strip", z.ZodTypeAny, {
1760
- id: string;
1761
- friendlyId: string;
1762
- }, {
1763
- id: string;
1764
- friendlyId: string;
1765
- }>>;
714
+ }, z.core.$strip>>;
1766
715
  output: z.ZodOptional<z.ZodString>;
1767
716
  outputType: z.ZodOptional<z.ZodString>;
1768
717
  outputIsError: z.ZodBoolean;
1769
- }, "strip", z.ZodTypeAny, {
1770
- id: string;
1771
- index?: number | undefined;
1772
- friendlyId: string;
1773
- type: WaitpointType;
1774
- completedAt: Date;
1775
- idempotencyKey?: string | undefined;
1776
- completedByTaskRun?: {
1777
- id: string;
1778
- friendlyId: string;
1779
- batch?: {
1780
- id: string;
1781
- friendlyId: string;
1782
- } | undefined;
1783
- } | undefined;
1784
- completedAfter?: Date | undefined;
1785
- completedByBatch?: {
1786
- id: string;
1787
- friendlyId: string;
1788
- } | undefined;
1789
- output?: string | undefined;
1790
- outputType?: string | undefined;
1791
- outputIsError: boolean;
1792
- }, {
1793
- id: string;
1794
- index?: number | undefined;
1795
- friendlyId: string;
1796
- type: WaitpointType;
1797
- completedAt: Date;
1798
- idempotencyKey?: string | undefined;
1799
- completedByTaskRun?: {
1800
- id: string;
1801
- friendlyId: string;
1802
- batch?: {
1803
- id: string;
1804
- friendlyId: string;
1805
- } | undefined;
1806
- } | undefined;
1807
- completedAfter?: Date | undefined;
1808
- completedByBatch?: {
1809
- id: string;
1810
- friendlyId: string;
1811
- } | undefined;
1812
- output?: string | undefined;
1813
- outputType?: string | undefined;
1814
- outputIsError: boolean;
1815
- }>, "many">;
718
+ }, z.core.$strip>>;
1816
719
  backgroundWorker: z.ZodObject<{
1817
720
  id: z.ZodString;
1818
721
  friendlyId: z.ZodString;
1819
722
  version: z.ZodString;
1820
723
  runtime: z.ZodOptional<z.ZodString>;
1821
- }, "strip", z.ZodTypeAny, {
1822
- id: string;
1823
- friendlyId: string;
1824
- version: string;
1825
- runtime?: string | undefined;
1826
- }, {
1827
- id: string;
1828
- friendlyId: string;
1829
- version: string;
1830
- runtime?: string | undefined;
1831
- }>;
724
+ }, z.core.$strip>;
1832
725
  deployment: z.ZodObject<{
1833
726
  id: z.ZodOptional<z.ZodString>;
1834
727
  friendlyId: z.ZodOptional<z.ZodString>;
1835
728
  imagePlatform: z.ZodOptional<z.ZodString>;
1836
- }, "strip", z.ZodTypeAny, {
1837
- id?: string | undefined;
1838
- friendlyId?: string | undefined;
1839
- imagePlatform?: string | undefined;
1840
- }, {
1841
- id?: string | undefined;
1842
- friendlyId?: string | undefined;
1843
- imagePlatform?: string | undefined;
1844
- }>;
729
+ }, z.core.$strip>;
1845
730
  run: z.ZodObject<{
1846
731
  id: z.ZodString;
1847
732
  friendlyId: z.ZodString;
1848
733
  isTest: z.ZodBoolean;
1849
734
  isReplay: z.ZodDefault<z.ZodBoolean>;
1850
735
  machine: z.ZodObject<{
1851
- name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
736
+ name: z.ZodEnum<{
737
+ "large-1x": "large-1x";
738
+ "large-2x": "large-2x";
739
+ "medium-1x": "medium-1x";
740
+ "medium-2x": "medium-2x";
741
+ micro: "micro";
742
+ "small-1x": "small-1x";
743
+ "small-2x": "small-2x";
744
+ }>;
1852
745
  cpu: z.ZodNumber;
1853
746
  memory: z.ZodNumber;
1854
747
  centsPerMs: z.ZodNumber;
1855
- }, "strip", z.ZodTypeAny, {
1856
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1857
- cpu: number;
1858
- memory: number;
1859
- centsPerMs: number;
1860
- }, {
1861
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1862
- cpu: number;
1863
- memory: number;
1864
- centsPerMs: number;
1865
- }>;
748
+ }, z.core.$strip>;
1866
749
  attemptNumber: z.ZodNumber;
1867
750
  masterQueue: z.ZodString;
1868
751
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1869
752
  annotations: z.ZodOptional<z.ZodObject<{
1870
- triggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
1871
- triggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
1872
- rootTriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
753
+ triggerSource: z.ZodUnion<[z.ZodEnum<{
754
+ api: "api";
755
+ cli: "cli";
756
+ dashboard: "dashboard";
757
+ mcp: "mcp";
758
+ schedule: "schedule";
759
+ sdk: "sdk";
760
+ }>, z.ZodCustom<string & {}, string & {}>]>;
761
+ triggerAction: z.ZodUnion<[z.ZodEnum<{
762
+ replay: "replay";
763
+ test: "test";
764
+ trigger: "trigger";
765
+ }>, z.ZodCustom<string & {}, string & {}>]>;
766
+ rootTriggerSource: z.ZodUnion<[z.ZodEnum<{
767
+ api: "api";
768
+ cli: "cli";
769
+ dashboard: "dashboard";
770
+ mcp: "mcp";
771
+ schedule: "schedule";
772
+ sdk: "sdk";
773
+ }>, z.ZodCustom<string & {}, string & {}>]>;
1873
774
  rootScheduleId: z.ZodOptional<z.ZodString>;
1874
- taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
775
+ taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
776
+ AGENT: "AGENT";
777
+ SCHEDULED: "SCHEDULED";
778
+ STANDARD: "STANDARD";
779
+ }>, z.ZodCustom<string & {}, string & {}>]>>;
1875
780
  externalDeploymentId: z.ZodOptional<z.ZodString>;
1876
- }, "strip", z.ZodTypeAny, {
1877
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1878
- triggerAction: "replay" | "test" | "trigger" | (string & {});
1879
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1880
- rootScheduleId?: string | undefined;
1881
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
1882
- externalDeploymentId?: string | undefined;
1883
- }, {
1884
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1885
- triggerAction: "replay" | "test" | "trigger" | (string & {});
1886
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1887
- rootScheduleId?: string | undefined;
1888
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
1889
- externalDeploymentId?: string | undefined;
1890
- }>>;
1891
- }, "strip", z.ZodTypeAny, {
1892
- id: string;
1893
- friendlyId: string;
1894
- isTest: boolean;
1895
- isReplay: boolean;
1896
- machine: {
1897
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1898
- cpu: number;
1899
- memory: number;
1900
- centsPerMs: number;
1901
- };
1902
- attemptNumber: number;
1903
- masterQueue: string;
1904
- traceContext: Record<string, unknown>;
1905
- annotations?: {
1906
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1907
- triggerAction: "replay" | "test" | "trigger" | (string & {});
1908
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1909
- rootScheduleId?: string | undefined;
1910
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
1911
- externalDeploymentId?: string | undefined;
1912
- } | undefined;
1913
- }, {
1914
- id: string;
1915
- friendlyId: string;
1916
- isTest: boolean;
1917
- isReplay?: boolean | undefined;
1918
- machine: {
1919
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1920
- cpu: number;
1921
- memory: number;
1922
- centsPerMs: number;
1923
- };
1924
- attemptNumber: number;
1925
- masterQueue: string;
1926
- traceContext: Record<string, unknown>;
1927
- annotations?: {
1928
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1929
- triggerAction: "replay" | "test" | "trigger" | (string & {});
1930
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
1931
- rootScheduleId?: string | undefined;
1932
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
1933
- externalDeploymentId?: string | undefined;
1934
- } | undefined;
1935
- }>;
781
+ }, z.core.$strip>>;
782
+ }, z.core.$strip>;
1936
783
  environment: z.ZodObject<{
1937
784
  id: z.ZodString;
1938
- type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
1939
- }, "strip", z.ZodTypeAny, {
1940
- id: string;
1941
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1942
- }, {
1943
- id: string;
1944
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1945
- }>;
785
+ type: z.ZodEnum<{
786
+ DEVELOPMENT: "DEVELOPMENT";
787
+ PREVIEW: "PREVIEW";
788
+ PRODUCTION: "PRODUCTION";
789
+ STAGING: "STAGING";
790
+ }>;
791
+ }, z.core.$strip>;
1946
792
  organization: z.ZodObject<{
1947
793
  id: z.ZodString;
1948
794
  hasPrivateLink: z.ZodOptional<z.ZodBoolean>;
1949
- }, "strip", z.ZodTypeAny, {
1950
- id: string;
1951
- hasPrivateLink?: boolean | undefined;
1952
- }, {
1953
- id: string;
1954
- hasPrivateLink?: boolean | undefined;
1955
- }>;
795
+ }, z.core.$strip>;
1956
796
  project: z.ZodObject<{
1957
797
  id: z.ZodString;
1958
- }, "strip", z.ZodTypeAny, {
1959
- id: string;
1960
- }, {
1961
- id: string;
1962
- }>;
798
+ }, z.core.$strip>;
1963
799
  placementTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1964
800
  key: z.ZodString;
1965
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1966
- }, "strip", z.ZodTypeAny, {
1967
- key: string;
1968
- values?: string[] | undefined;
1969
- }, {
1970
- key: string;
1971
- values?: string[] | undefined;
1972
- }>, "many">>;
1973
- }, "strip", z.ZodTypeAny, {
1974
- version: "1";
1975
- snapshot: {
1976
- id: string;
1977
- friendlyId: string;
1978
- executionStatus: TaskRunExecutionStatus;
1979
- description: string;
1980
- createdAt: Date;
1981
- };
1982
- dequeuedAt: Date;
1983
- workerQueueLength?: number | undefined;
1984
- image?: string | undefined;
1985
- checkpoint?: {
1986
- id: string;
1987
- type: CheckpointTypeEnum;
1988
- location: string;
1989
- imageRef?: string | null | undefined;
1990
- reason?: string | null | undefined;
1991
- } | undefined;
1992
- completedWaitpoints: {
1993
- id: string;
1994
- index?: number | undefined;
1995
- friendlyId: string;
1996
- type: WaitpointType;
1997
- completedAt: Date;
1998
- idempotencyKey?: string | undefined;
1999
- completedByTaskRun?: {
2000
- id: string;
2001
- friendlyId: string;
2002
- batch?: {
2003
- id: string;
2004
- friendlyId: string;
2005
- } | undefined;
2006
- } | undefined;
2007
- completedAfter?: Date | undefined;
2008
- completedByBatch?: {
2009
- id: string;
2010
- friendlyId: string;
2011
- } | undefined;
2012
- output?: string | undefined;
2013
- outputType?: string | undefined;
2014
- outputIsError: boolean;
2015
- }[];
2016
- backgroundWorker: {
2017
- id: string;
2018
- friendlyId: string;
2019
- version: string;
2020
- runtime?: string | undefined;
2021
- };
2022
- deployment: {
2023
- id?: string | undefined;
2024
- friendlyId?: string | undefined;
2025
- imagePlatform?: string | undefined;
2026
- };
2027
- run: {
2028
- id: string;
2029
- friendlyId: string;
2030
- isTest: boolean;
2031
- isReplay: boolean;
2032
- machine: {
2033
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2034
- cpu: number;
2035
- memory: number;
2036
- centsPerMs: number;
2037
- };
2038
- attemptNumber: number;
2039
- masterQueue: string;
2040
- traceContext: Record<string, unknown>;
2041
- annotations?: {
2042
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
2043
- triggerAction: "replay" | "test" | "trigger" | (string & {});
2044
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
2045
- rootScheduleId?: string | undefined;
2046
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
2047
- externalDeploymentId?: string | undefined;
2048
- } | undefined;
2049
- };
2050
- environment: {
2051
- id: string;
2052
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2053
- };
2054
- organization: {
2055
- id: string;
2056
- hasPrivateLink?: boolean | undefined;
2057
- };
2058
- project: {
2059
- id: string;
2060
- };
2061
- placementTags?: {
2062
- key: string;
2063
- values?: string[] | undefined;
2064
- }[] | undefined;
2065
- }, {
2066
- version: "1";
2067
- snapshot: {
2068
- id: string;
2069
- friendlyId: string;
2070
- executionStatus: TaskRunExecutionStatus;
2071
- description: string;
2072
- createdAt: Date;
2073
- };
2074
- dequeuedAt: Date;
2075
- workerQueueLength?: number | undefined;
2076
- image?: string | undefined;
2077
- checkpoint?: {
2078
- id: string;
2079
- type: CheckpointTypeEnum;
2080
- location: string;
2081
- imageRef?: string | null | undefined;
2082
- reason?: string | null | undefined;
2083
- } | undefined;
2084
- completedWaitpoints: {
2085
- id: string;
2086
- index?: number | undefined;
2087
- friendlyId: string;
2088
- type: WaitpointType;
2089
- completedAt: Date;
2090
- idempotencyKey?: string | undefined;
2091
- completedByTaskRun?: {
2092
- id: string;
2093
- friendlyId: string;
2094
- batch?: {
2095
- id: string;
2096
- friendlyId: string;
2097
- } | undefined;
2098
- } | undefined;
2099
- completedAfter?: Date | undefined;
2100
- completedByBatch?: {
2101
- id: string;
2102
- friendlyId: string;
2103
- } | undefined;
2104
- output?: string | undefined;
2105
- outputType?: string | undefined;
2106
- outputIsError: boolean;
2107
- }[];
2108
- backgroundWorker: {
2109
- id: string;
2110
- friendlyId: string;
2111
- version: string;
2112
- runtime?: string | undefined;
2113
- };
2114
- deployment: {
2115
- id?: string | undefined;
2116
- friendlyId?: string | undefined;
2117
- imagePlatform?: string | undefined;
2118
- };
2119
- run: {
2120
- id: string;
2121
- friendlyId: string;
2122
- isTest: boolean;
2123
- isReplay?: boolean | undefined;
2124
- machine: {
2125
- name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
2126
- cpu: number;
2127
- memory: number;
2128
- centsPerMs: number;
2129
- };
2130
- attemptNumber: number;
2131
- masterQueue: string;
2132
- traceContext: Record<string, unknown>;
2133
- annotations?: {
2134
- triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
2135
- triggerAction: "replay" | "test" | "trigger" | (string & {});
2136
- rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
2137
- rootScheduleId?: string | undefined;
2138
- taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
2139
- externalDeploymentId?: string | undefined;
2140
- } | undefined;
2141
- };
2142
- environment: {
2143
- id: string;
2144
- type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
2145
- };
2146
- organization: {
2147
- id: string;
2148
- hasPrivateLink?: boolean | undefined;
2149
- };
2150
- project: {
2151
- id: string;
2152
- };
2153
- placementTags?: {
2154
- key: string;
2155
- values?: string[] | undefined;
2156
- }[] | undefined;
2157
- }>;
801
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
802
+ }, z.core.$strip>>>;
803
+ }, z.core.$strip>;
2158
804
  export type DequeuedMessage = z.infer<typeof DequeuedMessage>;
2159
- export {};