@trigger.dev/core 4.5.16 → 4.6.0

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