@trigger.dev/core 0.0.0-prerelease-20260908122921 → 0.0.0-prerelease-streamfix-20260909094302

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 (289) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +105 -27
  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 +12 -20
  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 +18 -39
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/index.d.ts +184 -67
  11. package/dist/commonjs/v3/apiClient/index.js +8 -11
  12. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  13. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  14. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  15. package/dist/commonjs/v3/errors.d.ts +4 -5
  16. package/dist/commonjs/v3/errors.js.map +1 -1
  17. package/dist/commonjs/v3/index.d.ts +1 -1
  18. package/dist/commonjs/v3/index.js.map +1 -1
  19. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  20. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  21. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +0 -3
  22. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  23. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +0 -4
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  25. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  26. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +11 -2
  27. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +64 -64
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +109 -13
  32. package/dist/commonjs/v3/runEngineWorker/workload/http.js +14 -3
  33. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  35. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +9 -9
  36. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  37. package/dist/commonjs/v3/schemas/api.d.ts +12680 -1840
  38. package/dist/commonjs/v3/schemas/api.js +939 -998
  39. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/build.d.ts +9115 -645
  41. package/dist/commonjs/v3/schemas/build.js +71 -71
  42. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  43. package/dist/commonjs/v3/schemas/checkpoints.d.ts +461 -112
  44. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  45. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  46. package/dist/commonjs/v3/schemas/common.d.ts +6499 -1018
  47. package/dist/commonjs/v3/schemas/common.js +218 -225
  48. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  49. package/dist/commonjs/v3/schemas/config.d.ts +9 -3
  50. package/dist/commonjs/v3/schemas/config.js +4 -4
  51. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/errors.d.ts +173 -42
  53. package/dist/commonjs/v3/schemas/errors.js +44 -44
  54. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  55. package/dist/commonjs/v3/schemas/eventFilter.d.ts +91 -23
  56. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  57. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  58. package/dist/commonjs/v3/schemas/fetch.d.ts +415 -119
  59. package/dist/commonjs/v3/schemas/fetch.js +14 -17
  60. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  61. package/dist/commonjs/v3/schemas/messages.d.ts +7438 -603
  62. package/dist/commonjs/v3/schemas/messages.js +50 -50
  63. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  64. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +401 -50
  65. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  66. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  67. package/dist/commonjs/v3/schemas/query.d.ts +273 -51
  68. package/dist/commonjs/v3/schemas/query.js +40 -41
  69. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  70. package/dist/commonjs/v3/schemas/queues.d.ts +100 -29
  71. package/dist/commonjs/v3/schemas/queues.js +22 -22
  72. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  73. package/dist/commonjs/v3/schemas/reports.d.ts +692 -150
  74. package/dist/commonjs/v3/schemas/reports.js +55 -55
  75. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  76. package/dist/commonjs/v3/schemas/resources.d.ts +5985 -533
  77. package/dist/commonjs/v3/schemas/resources.js +49 -49
  78. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  79. package/dist/commonjs/v3/schemas/runEngine.d.ts +1821 -456
  80. package/dist/commonjs/v3/schemas/runEngine.js +107 -108
  81. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  82. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  83. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  84. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  85. package/dist/commonjs/v3/schemas/schemas.d.ts +7456 -788
  86. package/dist/commonjs/v3/schemas/schemas.js +132 -133
  87. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  88. package/dist/commonjs/v3/schemas/style.d.ts +86 -24
  89. package/dist/commonjs/v3/schemas/style.js +12 -12
  90. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  91. package/dist/commonjs/v3/schemas/tokens.d.ts +31 -5
  92. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  93. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  94. package/dist/commonjs/v3/schemas/warmStart.d.ts +8 -2
  95. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  96. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  97. package/dist/commonjs/v3/schemas/webhookApi.d.ts +249 -75
  98. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  99. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  100. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +3309 -473
  101. package/dist/commonjs/v3/schemas/webhookConfig.js +78 -79
  102. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  103. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +4 -16
  104. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  105. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  106. package/dist/commonjs/v3/schemas/webhooks.d.ts +2055 -247
  107. package/dist/commonjs/v3/schemas/webhooks.js +115 -116
  108. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  109. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +8 -19
  110. package/dist/commonjs/v3/serverOnly/httpServer.js +3 -6
  111. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  112. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  113. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +7 -7
  114. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  115. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +0 -15
  116. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +1 -16
  117. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  118. package/dist/commonjs/v3/types/schemas.d.ts +1 -21
  119. package/dist/commonjs/v3/types/schemas.js +1 -2
  120. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  121. package/dist/commonjs/v3/types/tools.d.ts +5 -16
  122. package/dist/commonjs/v3/types/tools.js +2 -2
  123. package/dist/commonjs/v3/types/tools.js.map +1 -1
  124. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  125. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  126. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +21 -2
  127. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  128. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  129. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  130. package/dist/commonjs/v3/zodIpc.js +18 -20
  131. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  132. package/dist/commonjs/v3/zodMessageHandler.d.ts +21 -14
  133. package/dist/commonjs/v3/zodMessageHandler.js +7 -20
  134. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  135. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  136. package/dist/commonjs/v3/zodSocket.js +8 -9
  137. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  138. package/dist/commonjs/version.js +1 -1
  139. package/dist/esm/schemas/eventFilter.d.ts +105 -27
  140. package/dist/esm/schemas/eventFilter.js +2 -2
  141. package/dist/esm/schemas/eventFilter.js.map +1 -1
  142. package/dist/esm/schemas/json.d.ts +3 -3
  143. package/dist/esm/schemas/json.js +3 -11
  144. package/dist/esm/schemas/json.js.map +1 -1
  145. package/dist/esm/v3/apiClient/core.d.ts +14 -14
  146. package/dist/esm/v3/apiClient/core.js +17 -38
  147. package/dist/esm/v3/apiClient/core.js.map +1 -1
  148. package/dist/esm/v3/apiClient/index.d.ts +184 -67
  149. package/dist/esm/v3/apiClient/index.js +3 -5
  150. package/dist/esm/v3/apiClient/index.js.map +1 -1
  151. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  152. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  153. package/dist/esm/v3/errors.d.ts +4 -5
  154. package/dist/esm/v3/errors.js.map +1 -1
  155. package/dist/esm/v3/index.d.ts +1 -1
  156. package/dist/esm/v3/index.js.map +1 -1
  157. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  158. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  159. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +0 -3
  160. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  161. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +0 -4
  162. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  163. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  164. package/dist/esm/v3/runEngineWorker/supervisor/http.js +10 -1
  165. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  166. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  167. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +5 -5
  168. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  169. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +109 -13
  170. package/dist/esm/v3/runEngineWorker/workload/http.js +14 -3
  171. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  172. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  173. package/dist/esm/v3/runEngineWorker/workload/schemas.js +4 -4
  174. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  175. package/dist/esm/v3/schemas/api.d.ts +12680 -1840
  176. package/dist/esm/v3/schemas/api.js +35 -94
  177. package/dist/esm/v3/schemas/api.js.map +1 -1
  178. package/dist/esm/v3/schemas/build.d.ts +9115 -645
  179. package/dist/esm/v3/schemas/build.js +10 -10
  180. package/dist/esm/v3/schemas/build.js.map +1 -1
  181. package/dist/esm/v3/schemas/checkpoints.d.ts +461 -112
  182. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  183. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  184. package/dist/esm/v3/schemas/common.d.ts +6499 -1018
  185. package/dist/esm/v3/schemas/common.js +10 -17
  186. package/dist/esm/v3/schemas/common.js.map +1 -1
  187. package/dist/esm/v3/schemas/config.d.ts +9 -3
  188. package/dist/esm/v3/schemas/config.js +1 -1
  189. package/dist/esm/v3/schemas/config.js.map +1 -1
  190. package/dist/esm/v3/schemas/errors.d.ts +173 -42
  191. package/dist/esm/v3/schemas/errors.js +1 -1
  192. package/dist/esm/v3/schemas/errors.js.map +1 -1
  193. package/dist/esm/v3/schemas/eventFilter.d.ts +91 -23
  194. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  195. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  196. package/dist/esm/v3/schemas/fetch.d.ts +415 -119
  197. package/dist/esm/v3/schemas/fetch.js +3 -6
  198. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  199. package/dist/esm/v3/schemas/messages.d.ts +7438 -603
  200. package/dist/esm/v3/schemas/messages.js +3 -3
  201. package/dist/esm/v3/schemas/messages.js.map +1 -1
  202. package/dist/esm/v3/schemas/openTelemetry.d.ts +401 -50
  203. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  204. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  205. package/dist/esm/v3/schemas/query.d.ts +273 -51
  206. package/dist/esm/v3/schemas/query.js +3 -4
  207. package/dist/esm/v3/schemas/query.js.map +1 -1
  208. package/dist/esm/v3/schemas/queues.d.ts +100 -29
  209. package/dist/esm/v3/schemas/queues.js +1 -1
  210. package/dist/esm/v3/schemas/queues.js.map +1 -1
  211. package/dist/esm/v3/schemas/reports.d.ts +692 -150
  212. package/dist/esm/v3/schemas/reports.js +5 -5
  213. package/dist/esm/v3/schemas/reports.js.map +1 -1
  214. package/dist/esm/v3/schemas/resources.d.ts +5985 -533
  215. package/dist/esm/v3/schemas/resources.js +3 -3
  216. package/dist/esm/v3/schemas/resources.js.map +1 -1
  217. package/dist/esm/v3/schemas/runEngine.d.ts +1821 -456
  218. package/dist/esm/v3/schemas/runEngine.js +3 -4
  219. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  220. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  221. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  222. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  223. package/dist/esm/v3/schemas/schemas.d.ts +7456 -788
  224. package/dist/esm/v3/schemas/schemas.js +10 -11
  225. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  226. package/dist/esm/v3/schemas/style.d.ts +86 -24
  227. package/dist/esm/v3/schemas/style.js +1 -1
  228. package/dist/esm/v3/schemas/style.js.map +1 -1
  229. package/dist/esm/v3/schemas/tokens.d.ts +31 -5
  230. package/dist/esm/v3/schemas/tokens.js +1 -1
  231. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  232. package/dist/esm/v3/schemas/warmStart.d.ts +8 -2
  233. package/dist/esm/v3/schemas/warmStart.js +1 -1
  234. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  235. package/dist/esm/v3/schemas/webhookApi.d.ts +249 -75
  236. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  237. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  238. package/dist/esm/v3/schemas/webhookConfig.d.ts +3309 -473
  239. package/dist/esm/v3/schemas/webhookConfig.js +9 -10
  240. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  241. package/dist/esm/v3/schemas/webhookFilter.d.ts +4 -16
  242. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  243. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  244. package/dist/esm/v3/schemas/webhooks.d.ts +2055 -247
  245. package/dist/esm/v3/schemas/webhooks.js +2 -3
  246. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  247. package/dist/esm/v3/serverOnly/httpServer.d.ts +8 -19
  248. package/dist/esm/v3/serverOnly/httpServer.js +2 -5
  249. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  250. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  251. package/dist/esm/v3/sessionStreams/chatSnapshot.js +1 -1
  252. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  253. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +0 -15
  254. package/dist/esm/v3/sessionStreams/wireProtocol.js +0 -15
  255. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  256. package/dist/esm/v3/types/schemas.d.ts +1 -21
  257. package/dist/esm/v3/types/schemas.js +1 -2
  258. package/dist/esm/v3/types/schemas.js.map +1 -1
  259. package/dist/esm/v3/types/tools.d.ts +5 -16
  260. package/dist/esm/v3/types/tools.js +2 -2
  261. package/dist/esm/v3/types/tools.js.map +1 -1
  262. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  263. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  264. package/dist/esm/v3/workloadDeploymentToken.d.ts +21 -2
  265. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  266. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  267. package/dist/esm/v3/zodIpc.d.ts +6 -6
  268. package/dist/esm/v3/zodIpc.js +3 -5
  269. package/dist/esm/v3/zodIpc.js.map +1 -1
  270. package/dist/esm/v3/zodMessageHandler.d.ts +21 -14
  271. package/dist/esm/v3/zodMessageHandler.js +3 -16
  272. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  273. package/dist/esm/v3/zodSocket.d.ts +11 -11
  274. package/dist/esm/v3/zodSocket.js +2 -3
  275. package/dist/esm/v3/zodSocket.js.map +1 -1
  276. package/dist/esm/version.js +1 -1
  277. package/package.json +3 -7
  278. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  279. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +0 -20
  280. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  281. package/dist/commonjs/v3/utils/zod.d.ts +0 -8
  282. package/dist/commonjs/v3/utils/zod.js +0 -8
  283. package/dist/commonjs/v3/utils/zod.js.map +0 -1
  284. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  285. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +0 -17
  286. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  287. package/dist/esm/v3/utils/zod.d.ts +0 -8
  288. package/dist/esm/v3/utils/zod.js +0 -5
  289. package/dist/esm/v3/utils/zod.js.map +0 -1
@@ -1,56 +1,34 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  import type { RuntimeEnvironmentType } from "./common.js";
3
- export declare const TriggerSource: z.ZodUnion<[z.ZodEnum<{
4
- api: "api";
5
- cli: "cli";
6
- dashboard: "dashboard";
7
- mcp: "mcp";
8
- schedule: "schedule";
9
- sdk: "sdk";
10
- }>, z.ZodCustom<string & {}, string & {}>]>;
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 & {}>]>;
11
5
  export type TriggerSource = z.infer<typeof TriggerSource>;
12
- export declare const TriggerAction: z.ZodUnion<[z.ZodEnum<{
13
- replay: "replay";
14
- test: "test";
15
- trigger: "trigger";
16
- }>, z.ZodCustom<string & {}, string & {}>]>;
6
+ export declare const TriggerAction: z.ZodUnion<[z.ZodEnum<["trigger", "replay", "test"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
17
7
  export type TriggerAction = z.infer<typeof TriggerAction>;
18
- export declare const TaskKind: z.ZodUnion<[z.ZodEnum<{
19
- AGENT: "AGENT";
20
- SCHEDULED: "SCHEDULED";
21
- STANDARD: "STANDARD";
22
- }>, z.ZodCustom<string & {}, string & {}>]>;
8
+ export declare const TaskKind: z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
23
9
  export type TaskKind = z.infer<typeof TaskKind>;
24
10
  export declare const RunAnnotations: z.ZodObject<{
25
- triggerSource: z.ZodUnion<[z.ZodEnum<{
26
- api: "api";
27
- cli: "cli";
28
- dashboard: "dashboard";
29
- mcp: "mcp";
30
- schedule: "schedule";
31
- sdk: "sdk";
32
- }>, z.ZodCustom<string & {}, string & {}>]>;
33
- triggerAction: z.ZodUnion<[z.ZodEnum<{
34
- replay: "replay";
35
- test: "test";
36
- trigger: "trigger";
37
- }>, z.ZodCustom<string & {}, string & {}>]>;
38
- rootTriggerSource: z.ZodUnion<[z.ZodEnum<{
39
- api: "api";
40
- cli: "cli";
41
- dashboard: "dashboard";
42
- mcp: "mcp";
43
- schedule: "schedule";
44
- sdk: "sdk";
45
- }>, z.ZodCustom<string & {}, string & {}>]>;
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 & {}>]>;
46
14
  rootScheduleId: z.ZodOptional<z.ZodString>;
47
- taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
48
- AGENT: "AGENT";
49
- SCHEDULED: "SCHEDULED";
50
- STANDARD: "STANDARD";
51
- }>, z.ZodCustom<string & {}, string & {}>]>>;
15
+ taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
52
16
  externalDeploymentId: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>;
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
32
  export type RunAnnotations = z.infer<typeof RunAnnotations>;
55
33
  export declare const TaskRunExecutionStatus: {
56
34
  RUN_CREATED: "RUN_CREATED";
@@ -92,10 +70,7 @@ export declare const WaitpointType: {
92
70
  BATCH: "BATCH";
93
71
  };
94
72
  export type WaitpointType = (typeof WaitpointType)[keyof typeof WaitpointType];
95
- export declare const WaitpointStatus: z.ZodEnum<{
96
- COMPLETED: "COMPLETED";
97
- PENDING: "PENDING";
98
- }>;
73
+ export declare const WaitpointStatus: z.ZodEnum<[DB_TYPES.$Enums.WaitpointStatus]>;
99
74
  export type WaitpointStatus = z.infer<typeof WaitpointStatus>;
100
75
  export type TaskEventEnvironment = {
101
76
  id: string;
@@ -110,150 +85,274 @@ export declare const CompletedWaitpoint: z.ZodObject<{
110
85
  id: z.ZodString;
111
86
  index: z.ZodOptional<z.ZodNumber>;
112
87
  friendlyId: z.ZodString;
113
- type: z.ZodEnum<{
114
- BATCH: "BATCH";
115
- DATETIME: "DATETIME";
116
- MANUAL: "MANUAL";
117
- RUN: "RUN";
118
- }>;
119
- completedAt: z.ZodCoercedDate<unknown>;
88
+ type: z.ZodEnum<[WaitpointType]>;
89
+ completedAt: z.ZodDate;
120
90
  idempotencyKey: z.ZodOptional<z.ZodString>;
91
+ /** For type === "RUN" */
121
92
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
122
93
  id: z.ZodString;
123
94
  friendlyId: z.ZodString;
95
+ /** If the run has an associated batch */
124
96
  batch: z.ZodOptional<z.ZodObject<{
125
97
  id: z.ZodString;
126
98
  friendlyId: z.ZodString;
127
- }, z.core.$strip>>;
128
- }, z.core.$strip>>;
129
- completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
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" */
130
124
  completedByBatch: z.ZodOptional<z.ZodObject<{
131
125
  id: z.ZodString;
132
126
  friendlyId: z.ZodString;
133
- }, z.core.$strip>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ id: string;
129
+ friendlyId: string;
130
+ }, {
131
+ id: string;
132
+ friendlyId: string;
133
+ }>>;
134
134
  output: z.ZodOptional<z.ZodString>;
135
135
  outputType: z.ZodOptional<z.ZodString>;
136
136
  outputIsError: z.ZodBoolean;
137
- }, z.core.$strip>;
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
184
  export type CompletedWaitpoint = z.infer<typeof CompletedWaitpoint>;
139
185
  export declare const ExecutionResult: z.ZodObject<{
140
186
  snapshot: z.ZodObject<{
141
187
  id: z.ZodString;
142
188
  friendlyId: z.ZodString;
143
- executionStatus: z.ZodEnum<{
144
- DELAYED: "DELAYED";
145
- EXECUTING: "EXECUTING";
146
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
147
- FINISHED: "FINISHED";
148
- PENDING_CANCEL: "PENDING_CANCEL";
149
- PENDING_EXECUTING: "PENDING_EXECUTING";
150
- QUEUED: "QUEUED";
151
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
152
- RUN_CREATED: "RUN_CREATED";
153
- SUSPENDED: "SUSPENDED";
154
- }>;
189
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
155
190
  description: z.ZodString;
156
- createdAt: z.ZodCoercedDate<unknown>;
157
- }, z.core.$strip>;
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
+ }>;
158
205
  run: z.ZodObject<{
159
206
  id: z.ZodString;
160
207
  friendlyId: z.ZodString;
161
- status: z.ZodEnum<{
162
- CANCELED: "CANCELED";
163
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
164
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
165
- CRASHED: "CRASHED";
166
- DELAYED: "DELAYED";
167
- DEQUEUED: "DEQUEUED";
168
- EXECUTING: "EXECUTING";
169
- EXPIRED: "EXPIRED";
170
- INTERRUPTED: "INTERRUPTED";
171
- PAUSED: "PAUSED";
172
- PENDING: "PENDING";
173
- PENDING_VERSION: "PENDING_VERSION";
174
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
175
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
176
- TIMED_OUT: "TIMED_OUT";
177
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
178
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
179
- }>;
208
+ status: z.ZodEnum<[TaskRunStatus]>;
180
209
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
210
  taskEventStore: z.ZodOptional<z.ZodString>;
182
- }, z.core.$strip>;
183
- }, z.core.$strip>;
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
+ }>;
184
255
  export type ExecutionResult = z.infer<typeof ExecutionResult>;
185
256
  /** The response to the Worker when starting an attempt */
186
257
  export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
187
258
  snapshot: z.ZodObject<{
188
259
  id: z.ZodString;
189
260
  friendlyId: z.ZodString;
190
- executionStatus: z.ZodEnum<{
191
- DELAYED: "DELAYED";
192
- EXECUTING: "EXECUTING";
193
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
194
- FINISHED: "FINISHED";
195
- PENDING_CANCEL: "PENDING_CANCEL";
196
- PENDING_EXECUTING: "PENDING_EXECUTING";
197
- QUEUED: "QUEUED";
198
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
199
- RUN_CREATED: "RUN_CREATED";
200
- SUSPENDED: "SUSPENDED";
201
- }>;
261
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
202
262
  description: z.ZodString;
203
- createdAt: z.ZodCoercedDate<unknown>;
204
- }, z.core.$strip>;
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
+ }>;
205
277
  run: z.ZodObject<{
206
278
  id: z.ZodString;
207
279
  friendlyId: z.ZodString;
208
- status: z.ZodEnum<{
209
- CANCELED: "CANCELED";
210
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
211
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
212
- CRASHED: "CRASHED";
213
- DELAYED: "DELAYED";
214
- DEQUEUED: "DEQUEUED";
215
- EXECUTING: "EXECUTING";
216
- EXPIRED: "EXPIRED";
217
- INTERRUPTED: "INTERRUPTED";
218
- PAUSED: "PAUSED";
219
- PENDING: "PENDING";
220
- PENDING_VERSION: "PENDING_VERSION";
221
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
222
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
223
- TIMED_OUT: "TIMED_OUT";
224
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
225
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
226
- }>;
280
+ status: z.ZodEnum<[TaskRunStatus]>;
227
281
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
282
  taskEventStore: z.ZodOptional<z.ZodString>;
229
- }, z.core.$strip>;
230
- }, z.core.$strip>, z.ZodObject<{
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<{
231
327
  execution: z.ZodObject<{
232
328
  task: z.ZodObject<{
233
329
  id: z.ZodString;
234
330
  filePath: z.ZodString;
235
- }, z.core.$loose>;
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
338
  queue: z.ZodObject<{
237
339
  id: z.ZodString;
238
340
  name: z.ZodString;
239
- }, z.core.$strip>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ id: string;
343
+ name: string;
344
+ }, {
345
+ id: string;
346
+ name: string;
347
+ }>;
240
348
  environment: z.ZodObject<{
241
349
  id: z.ZodString;
242
350
  slug: z.ZodString;
243
- type: z.ZodEnum<{
244
- DEVELOPMENT: "DEVELOPMENT";
245
- PREVIEW: "PREVIEW";
246
- PRODUCTION: "PRODUCTION";
247
- STAGING: "STAGING";
248
- }>;
351
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
249
352
  branchName: z.ZodOptional<z.ZodString>;
250
353
  git: z.ZodOptional<z.ZodObject<{
251
354
  provider: z.ZodOptional<z.ZodString>;
252
- source: z.ZodOptional<z.ZodEnum<{
253
- github_actions: "github_actions";
254
- local: "local";
255
- trigger_github_app: "trigger_github_app";
256
- }>>;
355
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
257
356
  ghUsername: z.ZodOptional<z.ZodString>;
258
357
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
259
358
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -264,41 +363,129 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
264
363
  remoteUrl: z.ZodOptional<z.ZodString>;
265
364
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
266
365
  pullRequestTitle: z.ZodOptional<z.ZodString>;
267
- pullRequestState: z.ZodOptional<z.ZodEnum<{
268
- closed: "closed";
269
- merged: "merged";
270
- open: "open";
271
- }>>;
272
- }, z.core.$strip>>;
273
- }, z.core.$strip>;
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
+ }>;
274
437
  organization: z.ZodObject<{
275
438
  id: z.ZodString;
276
439
  slug: z.ZodString;
277
440
  name: z.ZodString;
278
- }, z.core.$strip>;
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
450
  project: z.ZodObject<{
280
451
  id: z.ZodString;
281
452
  ref: z.ZodString;
282
453
  slug: z.ZodString;
283
454
  name: z.ZodString;
284
- }, z.core.$strip>;
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
466
  machine: z.ZodObject<{
286
- name: z.ZodEnum<{
287
- "large-1x": "large-1x";
288
- "large-2x": "large-2x";
289
- "medium-1x": "medium-1x";
290
- "medium-2x": "medium-2x";
291
- micro: "micro";
292
- "small-1x": "small-1x";
293
- "small-2x": "small-2x";
294
- }>;
467
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
295
468
  cpu: z.ZodNumber;
296
469
  memory: z.ZodNumber;
297
470
  centsPerMs: z.ZodNumber;
298
- }, z.core.$strip>;
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
482
  batch: z.ZodOptional<z.ZodObject<{
300
483
  id: z.ZodString;
301
- }, z.core.$strip>>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ id: string;
486
+ }, {
487
+ id: string;
488
+ }>>;
302
489
  deployment: z.ZodOptional<z.ZodObject<{
303
490
  id: z.ZodString;
304
491
  shortCode: z.ZodString;
@@ -307,11 +494,7 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
307
494
  runtimeVersion: z.ZodString;
308
495
  git: z.ZodOptional<z.ZodObject<{
309
496
  provider: z.ZodOptional<z.ZodString>;
310
- source: z.ZodOptional<z.ZodEnum<{
311
- github_actions: "github_actions";
312
- local: "local";
313
- trigger_github_app: "trigger_github_app";
314
- }>>;
497
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
315
498
  ghUsername: z.ZodOptional<z.ZodString>;
316
499
  ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
317
500
  commitAuthorName: z.ZodOptional<z.ZodString>;
@@ -322,36 +505,103 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
322
505
  remoteUrl: z.ZodOptional<z.ZodString>;
323
506
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
324
507
  pullRequestTitle: z.ZodOptional<z.ZodString>;
325
- pullRequestState: z.ZodOptional<z.ZodEnum<{
326
- closed: "closed";
327
- merged: "merged";
328
- open: "open";
329
- }>>;
330
- }, z.core.$strip>>;
331
- externalId: z.ZodOptional<z.ZodString>;
332
- }, z.core.$strip>>;
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
+ }>>;
333
581
  attempt: z.ZodObject<{
334
582
  number: z.ZodNumber;
335
- startedAt: z.ZodCoercedDate<unknown>;
336
- }, z.core.$loose>;
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">>;
337
591
  run: z.ZodIntersection<z.ZodObject<{
338
592
  id: z.ZodString;
339
593
  payload: z.ZodString;
340
594
  payloadType: z.ZodString;
341
- tags: z.ZodArray<z.ZodString>;
595
+ tags: z.ZodArray<z.ZodString, "many">;
342
596
  isTest: z.ZodDefault<z.ZodBoolean>;
343
597
  isReplay: z.ZodDefault<z.ZodBoolean>;
344
- createdAt: z.ZodCoercedDate<unknown>;
345
- startedAt: z.ZodDefault<z.ZodCoercedDate<unknown>>;
598
+ createdAt: z.ZodDate;
599
+ startedAt: z.ZodDefault<z.ZodDate>;
346
600
  idempotencyKey: z.ZodOptional<z.ZodString>;
347
- idempotencyKeyScope: z.ZodOptional<z.ZodEnum<{
348
- attempt: "attempt";
349
- global: "global";
350
- run: "run";
351
- }>>;
601
+ idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
352
602
  maxAttempts: z.ZodOptional<z.ZodNumber>;
353
603
  version: z.ZodOptional<z.ZodString>;
354
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, unknown, z.core.$ZodTypeInternals<import("../../index.js").DeserializedJson, unknown>>>>;
604
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
355
605
  maxDuration: z.ZodOptional<z.ZodNumber>;
356
606
  priority: z.ZodOptional<z.ZodNumber>;
357
607
  baseCostInCents: z.ZodOptional<z.ZodNumber>;
@@ -360,73 +610,570 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
360
610
  durationMs: z.ZodOptional<z.ZodNumber>;
361
611
  costInCents: z.ZodOptional<z.ZodNumber>;
362
612
  region: z.ZodOptional<z.ZodString>;
363
- }, z.core.$strip>, z.ZodObject<{
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
658
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
365
659
  realtimeStreamsVersion: z.ZodOptional<z.ZodString>;
366
- }, z.core.$strip>>;
367
- }, z.core.$strip>;
368
- }, z.core.$strip>>;
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
+ }>>;
369
1097
  export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
370
1098
  /** The response to the Worker when completing an attempt */
371
- declare const CompleteAttemptStatus: z.ZodEnum<{
372
- RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
373
- RETRY_QUEUED: "RETRY_QUEUED";
374
- RUN_FINISHED: "RUN_FINISHED";
375
- RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
376
- }>;
1099
+ declare const CompleteAttemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
377
1100
  export type CompleteAttemptStatus = z.infer<typeof CompleteAttemptStatus>;
378
1101
  export declare const CompleteRunAttemptResult: z.ZodIntersection<z.ZodObject<{
379
- attemptStatus: z.ZodEnum<{
380
- RETRY_IMMEDIATELY: "RETRY_IMMEDIATELY";
381
- RETRY_QUEUED: "RETRY_QUEUED";
382
- RUN_FINISHED: "RUN_FINISHED";
383
- RUN_PENDING_CANCEL: "RUN_PENDING_CANCEL";
384
- }>;
385
- }, z.core.$strip>, 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<{
386
1108
  snapshot: z.ZodObject<{
387
1109
  id: z.ZodString;
388
1110
  friendlyId: z.ZodString;
389
- executionStatus: z.ZodEnum<{
390
- DELAYED: "DELAYED";
391
- EXECUTING: "EXECUTING";
392
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
393
- FINISHED: "FINISHED";
394
- PENDING_CANCEL: "PENDING_CANCEL";
395
- PENDING_EXECUTING: "PENDING_EXECUTING";
396
- QUEUED: "QUEUED";
397
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
398
- RUN_CREATED: "RUN_CREATED";
399
- SUSPENDED: "SUSPENDED";
400
- }>;
1111
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
401
1112
  description: z.ZodString;
402
- createdAt: z.ZodCoercedDate<unknown>;
403
- }, z.core.$strip>;
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
+ }>;
404
1127
  run: z.ZodObject<{
405
1128
  id: z.ZodString;
406
1129
  friendlyId: z.ZodString;
407
- status: z.ZodEnum<{
408
- CANCELED: "CANCELED";
409
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
410
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
411
- CRASHED: "CRASHED";
412
- DELAYED: "DELAYED";
413
- DEQUEUED: "DEQUEUED";
414
- EXECUTING: "EXECUTING";
415
- EXPIRED: "EXPIRED";
416
- INTERRUPTED: "INTERRUPTED";
417
- PAUSED: "PAUSED";
418
- PENDING: "PENDING";
419
- PENDING_VERSION: "PENDING_VERSION";
420
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
421
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
422
- TIMED_OUT: "TIMED_OUT";
423
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
424
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
425
- }>;
1130
+ status: z.ZodEnum<[TaskRunStatus]>;
426
1131
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
427
1132
  taskEventStore: z.ZodOptional<z.ZodString>;
428
- }, z.core.$strip>;
429
- }, z.core.$strip>>;
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
+ }>>;
430
1177
  export type CompleteRunAttemptResult = z.infer<typeof CompleteRunAttemptResult>;
431
1178
  export declare const CheckpointTypeEnum: {
432
1179
  DOCKER: "DOCKER";
@@ -434,35 +1181,48 @@ export declare const CheckpointTypeEnum: {
434
1181
  COMPUTE: "COMPUTE";
435
1182
  };
436
1183
  export type CheckpointTypeEnum = (typeof CheckpointTypeEnum)[keyof typeof CheckpointTypeEnum];
437
- export declare const CheckpointType: z.ZodEnum<{
438
- COMPUTE: "COMPUTE";
439
- DOCKER: "DOCKER";
440
- KUBERNETES: "KUBERNETES";
441
- }>;
1184
+ export declare const CheckpointType: z.ZodEnum<[CheckpointTypeEnum]>;
442
1185
  export type CheckpointType = z.infer<typeof CheckpointType>;
443
1186
  export declare const CheckpointInput: z.ZodObject<{
444
- type: z.ZodEnum<{
445
- COMPUTE: "COMPUTE";
446
- DOCKER: "DOCKER";
447
- KUBERNETES: "KUBERNETES";
448
- }>;
1187
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
449
1188
  location: z.ZodString;
450
1189
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
1190
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
- }, z.core.$strip>;
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
1202
  export type CheckpointInput = z.infer<typeof CheckpointInput>;
454
1203
  export declare const TaskRunCheckpoint: z.ZodObject<{
455
- type: z.ZodEnum<{
456
- COMPUTE: "COMPUTE";
457
- DOCKER: "DOCKER";
458
- KUBERNETES: "KUBERNETES";
459
- }>;
1204
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
460
1205
  location: z.ZodString;
461
1206
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
1207
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
+ } & {
463
1209
  id: z.ZodString;
464
1210
  friendlyId: z.ZodString;
465
- }, z.core.$strip>;
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
1226
  export type TaskRunCheckpoint = z.infer<typeof TaskRunCheckpoint>;
467
1227
  /** The response when a Worker asks for the latest execution state */
468
1228
  export declare const RunExecutionData: z.ZodObject<{
@@ -470,176 +1230,444 @@ export declare const RunExecutionData: z.ZodObject<{
470
1230
  snapshot: z.ZodObject<{
471
1231
  id: z.ZodString;
472
1232
  friendlyId: z.ZodString;
473
- executionStatus: z.ZodEnum<{
474
- DELAYED: "DELAYED";
475
- EXECUTING: "EXECUTING";
476
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
477
- FINISHED: "FINISHED";
478
- PENDING_CANCEL: "PENDING_CANCEL";
479
- PENDING_EXECUTING: "PENDING_EXECUTING";
480
- QUEUED: "QUEUED";
481
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
482
- RUN_CREATED: "RUN_CREATED";
483
- SUSPENDED: "SUSPENDED";
484
- }>;
1233
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
485
1234
  description: z.ZodString;
486
- createdAt: z.ZodCoercedDate<unknown>;
487
- }, z.core.$strip>;
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
+ }>;
488
1249
  run: z.ZodObject<{
489
1250
  id: z.ZodString;
490
1251
  friendlyId: z.ZodString;
491
- status: z.ZodEnum<{
492
- CANCELED: "CANCELED";
493
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
494
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
495
- CRASHED: "CRASHED";
496
- DELAYED: "DELAYED";
497
- DEQUEUED: "DEQUEUED";
498
- EXECUTING: "EXECUTING";
499
- EXPIRED: "EXPIRED";
500
- INTERRUPTED: "INTERRUPTED";
501
- PAUSED: "PAUSED";
502
- PENDING: "PENDING";
503
- PENDING_VERSION: "PENDING_VERSION";
504
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
505
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
506
- TIMED_OUT: "TIMED_OUT";
507
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
508
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
509
- }>;
1252
+ status: z.ZodEnum<[TaskRunStatus]>;
510
1253
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
511
1254
  taskEventStore: z.ZodOptional<z.ZodString>;
512
- }, z.core.$strip>;
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
1268
  batch: z.ZodOptional<z.ZodObject<{
514
1269
  id: z.ZodString;
515
1270
  friendlyId: z.ZodString;
516
- }, z.core.$strip>>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ id: string;
1273
+ friendlyId: string;
1274
+ }, {
1275
+ id: string;
1276
+ friendlyId: string;
1277
+ }>>;
517
1278
  checkpoint: z.ZodOptional<z.ZodObject<{
518
- type: z.ZodEnum<{
519
- COMPUTE: "COMPUTE";
520
- DOCKER: "DOCKER";
521
- KUBERNETES: "KUBERNETES";
522
- }>;
1279
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
523
1280
  location: z.ZodString;
524
1281
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
1282
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
+ } & {
526
1284
  id: z.ZodString;
527
1285
  friendlyId: z.ZodString;
528
- }, z.core.$strip>>;
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
1301
  completedWaitpoints: z.ZodArray<z.ZodObject<{
530
1302
  id: z.ZodString;
531
1303
  index: z.ZodOptional<z.ZodNumber>;
532
1304
  friendlyId: z.ZodString;
533
- type: z.ZodEnum<{
534
- BATCH: "BATCH";
535
- DATETIME: "DATETIME";
536
- MANUAL: "MANUAL";
537
- RUN: "RUN";
538
- }>;
539
- completedAt: z.ZodCoercedDate<unknown>;
1305
+ type: z.ZodEnum<[WaitpointType]>;
1306
+ completedAt: z.ZodDate;
540
1307
  idempotencyKey: z.ZodOptional<z.ZodString>;
1308
+ /** For type === "RUN" */
541
1309
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
542
1310
  id: z.ZodString;
543
1311
  friendlyId: z.ZodString;
1312
+ /** If the run has an associated batch */
544
1313
  batch: z.ZodOptional<z.ZodObject<{
545
1314
  id: z.ZodString;
546
1315
  friendlyId: z.ZodString;
547
- }, z.core.$strip>>;
548
- }, z.core.$strip>>;
549
- completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
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" */
550
1341
  completedByBatch: z.ZodOptional<z.ZodObject<{
551
1342
  id: z.ZodString;
552
1343
  friendlyId: z.ZodString;
553
- }, z.core.$strip>>;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ id: string;
1346
+ friendlyId: string;
1347
+ }, {
1348
+ id: string;
1349
+ friendlyId: string;
1350
+ }>>;
554
1351
  output: z.ZodOptional<z.ZodString>;
555
1352
  outputType: z.ZodOptional<z.ZodString>;
556
1353
  outputIsError: z.ZodBoolean;
557
- }, z.core.$strip>>;
558
- }, z.core.$strip>;
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
+ }>;
559
1506
  export type RunExecutionData = z.infer<typeof RunExecutionData>;
560
- export declare const CreateCheckpointResult: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
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
1533
  snapshot: z.ZodObject<{
562
1534
  id: z.ZodString;
563
1535
  friendlyId: z.ZodString;
564
- executionStatus: z.ZodEnum<{
565
- DELAYED: "DELAYED";
566
- EXECUTING: "EXECUTING";
567
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
568
- FINISHED: "FINISHED";
569
- PENDING_CANCEL: "PENDING_CANCEL";
570
- PENDING_EXECUTING: "PENDING_EXECUTING";
571
- QUEUED: "QUEUED";
572
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
573
- RUN_CREATED: "RUN_CREATED";
574
- SUSPENDED: "SUSPENDED";
575
- }>;
1536
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
576
1537
  description: z.ZodString;
577
- createdAt: z.ZodCoercedDate<unknown>;
578
- }, z.core.$strip>;
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
+ }>;
579
1552
  run: z.ZodObject<{
580
1553
  id: z.ZodString;
581
1554
  friendlyId: z.ZodString;
582
- status: z.ZodEnum<{
583
- CANCELED: "CANCELED";
584
- COMPLETED_SUCCESSFULLY: "COMPLETED_SUCCESSFULLY";
585
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
586
- CRASHED: "CRASHED";
587
- DELAYED: "DELAYED";
588
- DEQUEUED: "DEQUEUED";
589
- EXECUTING: "EXECUTING";
590
- EXPIRED: "EXPIRED";
591
- INTERRUPTED: "INTERRUPTED";
592
- PAUSED: "PAUSED";
593
- PENDING: "PENDING";
594
- PENDING_VERSION: "PENDING_VERSION";
595
- RETRYING_AFTER_FAILURE: "RETRYING_AFTER_FAILURE";
596
- SYSTEM_FAILURE: "SYSTEM_FAILURE";
597
- TIMED_OUT: "TIMED_OUT";
598
- WAITING_FOR_DEPLOY: "WAITING_FOR_DEPLOY";
599
- WAITING_TO_RESUME: "WAITING_TO_RESUME";
600
- }>;
1555
+ status: z.ZodEnum<[TaskRunStatus]>;
601
1556
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
602
1557
  taskEventStore: z.ZodOptional<z.ZodString>;
603
- }, z.core.$strip>;
604
- ok: z.ZodLiteral<true>;
605
- checkpoint: z.ZodObject<{
606
- type: z.ZodEnum<{
607
- COMPUTE: "COMPUTE";
608
- DOCKER: "DOCKER";
609
- KUBERNETES: "KUBERNETES";
610
- }>;
611
- location: z.ZodString;
612
- imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
- id: z.ZodString;
615
- friendlyId: z.ZodString;
616
- }, z.core.$strip>;
617
- }, z.core.$strip>, z.ZodObject<{
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<{
618
1620
  ok: z.ZodLiteral<false>;
619
1621
  error: z.ZodString;
620
- }, z.core.$strip>]>;
1622
+ }, "strip", z.ZodTypeAny, {
1623
+ ok: false;
1624
+ error: string;
1625
+ }, {
1626
+ ok: false;
1627
+ error: string;
1628
+ }>]>;
621
1629
  export type CreateCheckpointResult = z.infer<typeof CreateCheckpointResult>;
622
1630
  export declare const MachineResources: z.ZodObject<{
623
1631
  cpu: z.ZodNumber;
624
1632
  memory: z.ZodNumber;
625
- }, z.core.$strip>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ cpu: number;
1635
+ memory: number;
1636
+ }, {
1637
+ cpu: number;
1638
+ memory: number;
1639
+ }>;
626
1640
  export type MachineResources = z.infer<typeof MachineResources>;
627
1641
  export declare const DequeueMessageCheckpoint: z.ZodObject<{
628
1642
  id: z.ZodString;
629
- type: z.ZodEnum<{
630
- COMPUTE: "COMPUTE";
631
- DOCKER: "DOCKER";
632
- KUBERNETES: "KUBERNETES";
633
- }>;
1643
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
634
1644
  location: z.ZodString;
635
1645
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
1646
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
- }, z.core.$strip>;
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
1660
  export type DequeueMessageCheckpoint = z.infer<typeof DequeueMessageCheckpoint>;
639
1661
  export declare const PlacementTag: z.ZodObject<{
640
1662
  key: z.ZodString;
641
- values: z.ZodOptional<z.ZodArray<z.ZodString>>;
642
- }, z.core.$strip>;
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
+ }>;
643
1671
  export type PlacementTag = z.infer<typeof PlacementTag>;
644
1672
  /** This is sent to a Worker when a run is dequeued (a new run or continuing run) */
645
1673
  export declare const DequeuedMessage: z.ZodObject<{
@@ -647,148 +1675,485 @@ export declare const DequeuedMessage: z.ZodObject<{
647
1675
  snapshot: z.ZodObject<{
648
1676
  id: z.ZodString;
649
1677
  friendlyId: z.ZodString;
650
- executionStatus: z.ZodEnum<{
651
- DELAYED: "DELAYED";
652
- EXECUTING: "EXECUTING";
653
- EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS";
654
- FINISHED: "FINISHED";
655
- PENDING_CANCEL: "PENDING_CANCEL";
656
- PENDING_EXECUTING: "PENDING_EXECUTING";
657
- QUEUED: "QUEUED";
658
- QUEUED_EXECUTING: "QUEUED_EXECUTING";
659
- RUN_CREATED: "RUN_CREATED";
660
- SUSPENDED: "SUSPENDED";
661
- }>;
1678
+ executionStatus: z.ZodEnum<[TaskRunExecutionStatus]>;
662
1679
  description: z.ZodString;
663
- createdAt: z.ZodCoercedDate<unknown>;
664
- }, z.core.$strip>;
665
- dequeuedAt: z.ZodCoercedDate<unknown>;
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;
666
1695
  workerQueueLength: z.ZodOptional<z.ZodNumber>;
667
1696
  image: z.ZodOptional<z.ZodString>;
668
1697
  checkpoint: z.ZodOptional<z.ZodObject<{
669
1698
  id: z.ZodString;
670
- type: z.ZodEnum<{
671
- COMPUTE: "COMPUTE";
672
- DOCKER: "DOCKER";
673
- KUBERNETES: "KUBERNETES";
674
- }>;
1699
+ type: z.ZodEnum<[CheckpointTypeEnum]>;
675
1700
  location: z.ZodString;
676
1701
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
1702
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
678
- }, z.core.$strip>>;
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
+ }>>;
679
1716
  completedWaitpoints: z.ZodArray<z.ZodObject<{
680
1717
  id: z.ZodString;
681
1718
  index: z.ZodOptional<z.ZodNumber>;
682
1719
  friendlyId: z.ZodString;
683
- type: z.ZodEnum<{
684
- BATCH: "BATCH";
685
- DATETIME: "DATETIME";
686
- MANUAL: "MANUAL";
687
- RUN: "RUN";
688
- }>;
689
- completedAt: z.ZodCoercedDate<unknown>;
1720
+ type: z.ZodEnum<[WaitpointType]>;
1721
+ completedAt: z.ZodDate;
690
1722
  idempotencyKey: z.ZodOptional<z.ZodString>;
1723
+ /** For type === "RUN" */
691
1724
  completedByTaskRun: z.ZodOptional<z.ZodObject<{
692
1725
  id: z.ZodString;
693
1726
  friendlyId: z.ZodString;
1727
+ /** If the run has an associated batch */
694
1728
  batch: z.ZodOptional<z.ZodObject<{
695
1729
  id: z.ZodString;
696
1730
  friendlyId: z.ZodString;
697
- }, z.core.$strip>>;
698
- }, z.core.$strip>>;
699
- completedAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
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" */
700
1756
  completedByBatch: z.ZodOptional<z.ZodObject<{
701
1757
  id: z.ZodString;
702
1758
  friendlyId: z.ZodString;
703
- }, z.core.$strip>>;
1759
+ }, "strip", z.ZodTypeAny, {
1760
+ id: string;
1761
+ friendlyId: string;
1762
+ }, {
1763
+ id: string;
1764
+ friendlyId: string;
1765
+ }>>;
704
1766
  output: z.ZodOptional<z.ZodString>;
705
1767
  outputType: z.ZodOptional<z.ZodString>;
706
1768
  outputIsError: z.ZodBoolean;
707
- }, z.core.$strip>>;
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">;
708
1816
  backgroundWorker: z.ZodObject<{
709
1817
  id: z.ZodString;
710
1818
  friendlyId: z.ZodString;
711
1819
  version: z.ZodString;
712
1820
  runtime: z.ZodOptional<z.ZodString>;
713
- }, z.core.$strip>;
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
+ }>;
714
1832
  deployment: z.ZodObject<{
715
1833
  id: z.ZodOptional<z.ZodString>;
716
1834
  friendlyId: z.ZodOptional<z.ZodString>;
717
1835
  imagePlatform: z.ZodOptional<z.ZodString>;
718
- }, z.core.$strip>;
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
+ }>;
719
1845
  run: z.ZodObject<{
720
1846
  id: z.ZodString;
721
1847
  friendlyId: z.ZodString;
722
1848
  isTest: z.ZodBoolean;
723
1849
  isReplay: z.ZodDefault<z.ZodBoolean>;
724
1850
  machine: z.ZodObject<{
725
- name: z.ZodEnum<{
726
- "large-1x": "large-1x";
727
- "large-2x": "large-2x";
728
- "medium-1x": "medium-1x";
729
- "medium-2x": "medium-2x";
730
- micro: "micro";
731
- "small-1x": "small-1x";
732
- "small-2x": "small-2x";
733
- }>;
1851
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
734
1852
  cpu: z.ZodNumber;
735
1853
  memory: z.ZodNumber;
736
1854
  centsPerMs: z.ZodNumber;
737
- }, z.core.$strip>;
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
+ }>;
738
1866
  attemptNumber: z.ZodNumber;
739
1867
  masterQueue: z.ZodString;
740
1868
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
741
1869
  annotations: z.ZodOptional<z.ZodObject<{
742
- triggerSource: z.ZodUnion<[z.ZodEnum<{
743
- api: "api";
744
- cli: "cli";
745
- dashboard: "dashboard";
746
- mcp: "mcp";
747
- schedule: "schedule";
748
- sdk: "sdk";
749
- }>, z.ZodCustom<string & {}, string & {}>]>;
750
- triggerAction: z.ZodUnion<[z.ZodEnum<{
751
- replay: "replay";
752
- test: "test";
753
- trigger: "trigger";
754
- }>, z.ZodCustom<string & {}, string & {}>]>;
755
- rootTriggerSource: z.ZodUnion<[z.ZodEnum<{
756
- api: "api";
757
- cli: "cli";
758
- dashboard: "dashboard";
759
- mcp: "mcp";
760
- schedule: "schedule";
761
- sdk: "sdk";
762
- }>, z.ZodCustom<string & {}, string & {}>]>;
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 & {}>]>;
763
1873
  rootScheduleId: z.ZodOptional<z.ZodString>;
764
- taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
765
- AGENT: "AGENT";
766
- SCHEDULED: "SCHEDULED";
767
- STANDARD: "STANDARD";
768
- }>, z.ZodCustom<string & {}, string & {}>]>>;
1874
+ taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
769
1875
  externalDeploymentId: z.ZodOptional<z.ZodString>;
770
- }, z.core.$strip>>;
771
- }, z.core.$strip>;
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
+ }>;
772
1936
  environment: z.ZodObject<{
773
1937
  id: z.ZodString;
774
- type: z.ZodEnum<{
775
- DEVELOPMENT: "DEVELOPMENT";
776
- PREVIEW: "PREVIEW";
777
- PRODUCTION: "PRODUCTION";
778
- STAGING: "STAGING";
779
- }>;
780
- }, z.core.$strip>;
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
+ }>;
781
1946
  organization: z.ZodObject<{
782
1947
  id: z.ZodString;
783
1948
  hasPrivateLink: z.ZodOptional<z.ZodBoolean>;
784
- }, z.core.$strip>;
1949
+ }, "strip", z.ZodTypeAny, {
1950
+ id: string;
1951
+ hasPrivateLink?: boolean | undefined;
1952
+ }, {
1953
+ id: string;
1954
+ hasPrivateLink?: boolean | undefined;
1955
+ }>;
785
1956
  project: z.ZodObject<{
786
1957
  id: z.ZodString;
787
- }, z.core.$strip>;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ id: string;
1960
+ }, {
1961
+ id: string;
1962
+ }>;
788
1963
  placementTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
1964
  key: z.ZodString;
790
- values: z.ZodOptional<z.ZodArray<z.ZodString>>;
791
- }, z.core.$strip>>>;
792
- }, z.core.$strip>;
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
+ }>;
793
2158
  export type DequeuedMessage = z.infer<typeof DequeuedMessage>;
794
2159
  export {};