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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +105 -27
  2. package/dist/commonjs/schemas/eventFilter.js +38 -38
  3. package/dist/commonjs/schemas/eventFilter.js.map +1 -1
  4. package/dist/commonjs/schemas/json.d.ts +3 -3
  5. package/dist/commonjs/schemas/json.js +12 -20
  6. package/dist/commonjs/schemas/json.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/core.d.ts +14 -14
  8. package/dist/commonjs/v3/apiClient/core.js +18 -39
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/index.d.ts +184 -67
  11. package/dist/commonjs/v3/apiClient/index.js +8 -11
  12. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  13. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  14. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  15. package/dist/commonjs/v3/errors.d.ts +4 -5
  16. package/dist/commonjs/v3/errors.js.map +1 -1
  17. package/dist/commonjs/v3/index.d.ts +1 -1
  18. package/dist/commonjs/v3/index.js.map +1 -1
  19. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  20. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  21. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +0 -3
  22. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  23. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +0 -4
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  25. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  26. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +11 -2
  27. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +64 -64
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +109 -13
  32. package/dist/commonjs/v3/runEngineWorker/workload/http.js +14 -3
  33. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  35. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +9 -9
  36. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  37. package/dist/commonjs/v3/schemas/api.d.ts +12680 -1840
  38. package/dist/commonjs/v3/schemas/api.js +939 -998
  39. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/build.d.ts +9115 -645
  41. package/dist/commonjs/v3/schemas/build.js +71 -71
  42. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  43. package/dist/commonjs/v3/schemas/checkpoints.d.ts +461 -112
  44. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  45. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  46. package/dist/commonjs/v3/schemas/common.d.ts +6499 -1018
  47. package/dist/commonjs/v3/schemas/common.js +218 -225
  48. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  49. package/dist/commonjs/v3/schemas/config.d.ts +9 -3
  50. package/dist/commonjs/v3/schemas/config.js +4 -4
  51. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/errors.d.ts +173 -42
  53. package/dist/commonjs/v3/schemas/errors.js +44 -44
  54. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  55. package/dist/commonjs/v3/schemas/eventFilter.d.ts +91 -23
  56. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  57. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  58. package/dist/commonjs/v3/schemas/fetch.d.ts +415 -119
  59. package/dist/commonjs/v3/schemas/fetch.js +14 -17
  60. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  61. package/dist/commonjs/v3/schemas/messages.d.ts +7438 -603
  62. package/dist/commonjs/v3/schemas/messages.js +50 -50
  63. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  64. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +401 -50
  65. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  66. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  67. package/dist/commonjs/v3/schemas/query.d.ts +273 -51
  68. package/dist/commonjs/v3/schemas/query.js +40 -41
  69. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  70. package/dist/commonjs/v3/schemas/queues.d.ts +100 -29
  71. package/dist/commonjs/v3/schemas/queues.js +22 -22
  72. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  73. package/dist/commonjs/v3/schemas/reports.d.ts +692 -150
  74. package/dist/commonjs/v3/schemas/reports.js +55 -55
  75. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  76. package/dist/commonjs/v3/schemas/resources.d.ts +5985 -533
  77. package/dist/commonjs/v3/schemas/resources.js +49 -49
  78. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  79. package/dist/commonjs/v3/schemas/runEngine.d.ts +1821 -456
  80. package/dist/commonjs/v3/schemas/runEngine.js +107 -108
  81. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  82. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  83. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  84. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  85. package/dist/commonjs/v3/schemas/schemas.d.ts +7456 -788
  86. package/dist/commonjs/v3/schemas/schemas.js +132 -133
  87. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  88. package/dist/commonjs/v3/schemas/style.d.ts +86 -24
  89. package/dist/commonjs/v3/schemas/style.js +12 -12
  90. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  91. package/dist/commonjs/v3/schemas/tokens.d.ts +31 -5
  92. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  93. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  94. package/dist/commonjs/v3/schemas/warmStart.d.ts +8 -2
  95. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  96. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  97. package/dist/commonjs/v3/schemas/webhookApi.d.ts +249 -75
  98. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  99. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  100. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +3309 -473
  101. package/dist/commonjs/v3/schemas/webhookConfig.js +78 -79
  102. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  103. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +4 -16
  104. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  105. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  106. package/dist/commonjs/v3/schemas/webhooks.d.ts +2055 -247
  107. package/dist/commonjs/v3/schemas/webhooks.js +115 -116
  108. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  109. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +8 -19
  110. package/dist/commonjs/v3/serverOnly/httpServer.js +3 -6
  111. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  112. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  113. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +7 -7
  114. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  115. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +0 -15
  116. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +1 -16
  117. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  118. package/dist/commonjs/v3/types/schemas.d.ts +1 -21
  119. package/dist/commonjs/v3/types/schemas.js +1 -2
  120. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  121. package/dist/commonjs/v3/types/tools.d.ts +5 -16
  122. package/dist/commonjs/v3/types/tools.js +2 -2
  123. package/dist/commonjs/v3/types/tools.js.map +1 -1
  124. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  125. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  126. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +21 -2
  127. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  128. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  129. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  130. package/dist/commonjs/v3/zodIpc.js +18 -20
  131. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  132. package/dist/commonjs/v3/zodMessageHandler.d.ts +21 -14
  133. package/dist/commonjs/v3/zodMessageHandler.js +7 -20
  134. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  135. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  136. package/dist/commonjs/v3/zodSocket.js +8 -9
  137. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  138. package/dist/commonjs/version.js +1 -1
  139. package/dist/esm/schemas/eventFilter.d.ts +105 -27
  140. package/dist/esm/schemas/eventFilter.js +2 -2
  141. package/dist/esm/schemas/eventFilter.js.map +1 -1
  142. package/dist/esm/schemas/json.d.ts +3 -3
  143. package/dist/esm/schemas/json.js +3 -11
  144. package/dist/esm/schemas/json.js.map +1 -1
  145. package/dist/esm/v3/apiClient/core.d.ts +14 -14
  146. package/dist/esm/v3/apiClient/core.js +17 -38
  147. package/dist/esm/v3/apiClient/core.js.map +1 -1
  148. package/dist/esm/v3/apiClient/index.d.ts +184 -67
  149. package/dist/esm/v3/apiClient/index.js +3 -5
  150. package/dist/esm/v3/apiClient/index.js.map +1 -1
  151. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  152. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  153. package/dist/esm/v3/errors.d.ts +4 -5
  154. package/dist/esm/v3/errors.js.map +1 -1
  155. package/dist/esm/v3/index.d.ts +1 -1
  156. package/dist/esm/v3/index.js.map +1 -1
  157. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +0 -3
  158. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  159. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +0 -3
  160. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  161. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +0 -4
  162. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  163. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +115 -20
  164. package/dist/esm/v3/runEngineWorker/supervisor/http.js +10 -1
  165. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  166. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +4187 -558
  167. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +5 -5
  168. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  169. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +109 -13
  170. package/dist/esm/v3/runEngineWorker/workload/http.js +14 -3
  171. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  172. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +3624 -443
  173. package/dist/esm/v3/runEngineWorker/workload/schemas.js +4 -4
  174. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  175. package/dist/esm/v3/schemas/api.d.ts +12680 -1840
  176. package/dist/esm/v3/schemas/api.js +35 -94
  177. package/dist/esm/v3/schemas/api.js.map +1 -1
  178. package/dist/esm/v3/schemas/build.d.ts +9115 -645
  179. package/dist/esm/v3/schemas/build.js +10 -10
  180. package/dist/esm/v3/schemas/build.js.map +1 -1
  181. package/dist/esm/v3/schemas/checkpoints.d.ts +461 -112
  182. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  183. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  184. package/dist/esm/v3/schemas/common.d.ts +6499 -1018
  185. package/dist/esm/v3/schemas/common.js +10 -17
  186. package/dist/esm/v3/schemas/common.js.map +1 -1
  187. package/dist/esm/v3/schemas/config.d.ts +9 -3
  188. package/dist/esm/v3/schemas/config.js +1 -1
  189. package/dist/esm/v3/schemas/config.js.map +1 -1
  190. package/dist/esm/v3/schemas/errors.d.ts +173 -42
  191. package/dist/esm/v3/schemas/errors.js +1 -1
  192. package/dist/esm/v3/schemas/errors.js.map +1 -1
  193. package/dist/esm/v3/schemas/eventFilter.d.ts +91 -23
  194. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  195. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  196. package/dist/esm/v3/schemas/fetch.d.ts +415 -119
  197. package/dist/esm/v3/schemas/fetch.js +3 -6
  198. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  199. package/dist/esm/v3/schemas/messages.d.ts +7438 -603
  200. package/dist/esm/v3/schemas/messages.js +3 -3
  201. package/dist/esm/v3/schemas/messages.js.map +1 -1
  202. package/dist/esm/v3/schemas/openTelemetry.d.ts +401 -50
  203. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  204. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  205. package/dist/esm/v3/schemas/query.d.ts +273 -51
  206. package/dist/esm/v3/schemas/query.js +3 -4
  207. package/dist/esm/v3/schemas/query.js.map +1 -1
  208. package/dist/esm/v3/schemas/queues.d.ts +100 -29
  209. package/dist/esm/v3/schemas/queues.js +1 -1
  210. package/dist/esm/v3/schemas/queues.js.map +1 -1
  211. package/dist/esm/v3/schemas/reports.d.ts +692 -150
  212. package/dist/esm/v3/schemas/reports.js +5 -5
  213. package/dist/esm/v3/schemas/reports.js.map +1 -1
  214. package/dist/esm/v3/schemas/resources.d.ts +5985 -533
  215. package/dist/esm/v3/schemas/resources.js +3 -3
  216. package/dist/esm/v3/schemas/resources.js.map +1 -1
  217. package/dist/esm/v3/schemas/runEngine.d.ts +1821 -456
  218. package/dist/esm/v3/schemas/runEngine.js +3 -4
  219. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  220. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  221. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  222. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  223. package/dist/esm/v3/schemas/schemas.d.ts +7456 -788
  224. package/dist/esm/v3/schemas/schemas.js +10 -11
  225. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  226. package/dist/esm/v3/schemas/style.d.ts +86 -24
  227. package/dist/esm/v3/schemas/style.js +1 -1
  228. package/dist/esm/v3/schemas/style.js.map +1 -1
  229. package/dist/esm/v3/schemas/tokens.d.ts +31 -5
  230. package/dist/esm/v3/schemas/tokens.js +1 -1
  231. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  232. package/dist/esm/v3/schemas/warmStart.d.ts +8 -2
  233. package/dist/esm/v3/schemas/warmStart.js +1 -1
  234. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  235. package/dist/esm/v3/schemas/webhookApi.d.ts +249 -75
  236. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  237. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  238. package/dist/esm/v3/schemas/webhookConfig.d.ts +3309 -473
  239. package/dist/esm/v3/schemas/webhookConfig.js +9 -10
  240. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  241. package/dist/esm/v3/schemas/webhookFilter.d.ts +4 -16
  242. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  243. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  244. package/dist/esm/v3/schemas/webhooks.d.ts +2055 -247
  245. package/dist/esm/v3/schemas/webhooks.js +2 -3
  246. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  247. package/dist/esm/v3/serverOnly/httpServer.d.ts +8 -19
  248. package/dist/esm/v3/serverOnly/httpServer.js +2 -5
  249. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  250. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +17 -4
  251. package/dist/esm/v3/sessionStreams/chatSnapshot.js +1 -1
  252. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  253. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +0 -15
  254. package/dist/esm/v3/sessionStreams/wireProtocol.js +0 -15
  255. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  256. package/dist/esm/v3/types/schemas.d.ts +1 -21
  257. package/dist/esm/v3/types/schemas.js +1 -2
  258. package/dist/esm/v3/types/schemas.js.map +1 -1
  259. package/dist/esm/v3/types/tools.d.ts +5 -16
  260. package/dist/esm/v3/types/tools.js +2 -2
  261. package/dist/esm/v3/types/tools.js.map +1 -1
  262. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  263. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  264. package/dist/esm/v3/workloadDeploymentToken.d.ts +21 -2
  265. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  266. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  267. package/dist/esm/v3/zodIpc.d.ts +6 -6
  268. package/dist/esm/v3/zodIpc.js +3 -5
  269. package/dist/esm/v3/zodIpc.js.map +1 -1
  270. package/dist/esm/v3/zodMessageHandler.d.ts +21 -14
  271. package/dist/esm/v3/zodMessageHandler.js +3 -16
  272. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  273. package/dist/esm/v3/zodSocket.d.ts +11 -11
  274. package/dist/esm/v3/zodSocket.js +2 -3
  275. package/dist/esm/v3/zodSocket.js.map +1 -1
  276. package/dist/esm/version.js +1 -1
  277. package/package.json +3 -7
  278. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  279. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +0 -20
  280. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  281. package/dist/commonjs/v3/utils/zod.d.ts +0 -8
  282. package/dist/commonjs/v3/utils/zod.js +0 -8
  283. package/dist/commonjs/v3/utils/zod.js.map +0 -1
  284. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +0 -6
  285. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +0 -17
  286. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +0 -1
  287. package/dist/esm/v3/utils/zod.d.ts +0 -8
  288. package/dist/esm/v3/utils/zod.js +0 -5
  289. package/dist/esm/v3/utils/zod.js.map +0 -1
@@ -1,154 +1,421 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  /** Represents a failed run alert webhook payload */
3
3
  declare const AlertWebhookRunFailedObject: z.ZodObject<{
4
+ /** Task information */
4
5
  task: z.ZodObject<{
6
+ /** Unique identifier for the task */
5
7
  id: z.ZodString;
8
+ /** File path where the task is defined */
6
9
  filePath: z.ZodString;
10
+ /** Name of the exported task function */
7
11
  exportName: z.ZodOptional<z.ZodString>;
12
+ /** Version of the task */
8
13
  version: z.ZodString;
14
+ /** Version of the SDK used */
9
15
  sdkVersion: z.ZodString;
16
+ /** Version of the CLI used */
10
17
  cliVersion: z.ZodString;
11
- }, z.core.$strip>;
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 */
12
34
  run: z.ZodObject<{
35
+ /** Unique identifier for the run */
13
36
  id: z.ZodString;
37
+ /** Run number */
14
38
  number: z.ZodNumber;
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>>;
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 */
33
48
  isTest: z.ZodBoolean;
49
+ /** Idempotency key for the run */
34
50
  idempotencyKey: z.ZodOptional<z.ZodString>;
35
- tags: z.ZodArray<z.ZodString>;
36
- error: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
51
+ /** Associated tags */
52
+ tags: z.ZodArray<z.ZodString, "many">;
53
+ /** Error information */
54
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
37
55
  type: z.ZodLiteral<"BUILT_IN_ERROR">;
38
56
  name: z.ZodString;
39
57
  message: z.ZodString;
40
58
  stackTrace: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
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<{
42
70
  type: z.ZodLiteral<"CUSTOM_ERROR">;
43
71
  raw: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
72
+ }, "strip", z.ZodTypeAny, {
73
+ type: "CUSTOM_ERROR";
74
+ raw: string;
75
+ }, {
76
+ type: "CUSTOM_ERROR";
77
+ raw: string;
78
+ }>, z.ZodObject<{
45
79
  type: z.ZodLiteral<"STRING_ERROR">;
46
80
  raw: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
81
+ }, "strip", z.ZodTypeAny, {
82
+ type: "STRING_ERROR";
83
+ raw: string;
84
+ }, {
85
+ type: "STRING_ERROR";
86
+ raw: string;
87
+ }>, z.ZodObject<{
48
88
  type: z.ZodLiteral<"INTERNAL_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
- }>;
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"]>;
89
90
  message: z.ZodOptional<z.ZodString>;
90
91
  stackTrace: z.ZodOptional<z.ZodString>;
91
- }, z.core.$strip>]>;
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 */
92
104
  isOutOfMemoryError: z.ZodBoolean;
105
+ /** Machine preset used for the run */
93
106
  machine: z.ZodString;
107
+ /** URL to view the run in the dashboard */
94
108
  dashboardUrl: z.ZodString;
95
- }, z.core.$strip>;
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 */
96
171
  environment: z.ZodObject<{
172
+ /** Environment ID */
97
173
  id: z.ZodString;
98
- type: z.ZodEnum<{
99
- DEVELOPMENT: "DEVELOPMENT";
100
- PREVIEW: "PREVIEW";
101
- PRODUCTION: "PRODUCTION";
102
- STAGING: "STAGING";
103
- }>;
174
+ /** Environment type */
175
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
176
+ /** Environment slug */
104
177
  slug: z.ZodString;
178
+ /** Environment branch name */
105
179
  branchName: z.ZodOptional<z.ZodString>;
106
- }, z.core.$strip>;
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 */
107
192
  organization: z.ZodObject<{
193
+ /** Organization ID */
108
194
  id: z.ZodString;
195
+ /** Organization slug */
109
196
  slug: z.ZodString;
197
+ /** Organization name */
110
198
  name: z.ZodString;
111
- }, z.core.$strip>;
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 */
112
209
  project: z.ZodObject<{
210
+ /** Project ID */
113
211
  id: z.ZodString;
212
+ /** Project reference */
114
213
  ref: z.ZodString;
214
+ /** Project slug */
115
215
  slug: z.ZodString;
216
+ /** Project name */
116
217
  name: z.ZodString;
117
- }, z.core.$strip>;
118
- }, z.core.$strip>;
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
+ }>;
119
344
  export type AlertWebhookRunFailedObject = z.infer<typeof AlertWebhookRunFailedObject>;
120
345
  /** Represents a deployment error */
121
346
  export declare const DeployError: z.ZodObject<{
347
+ /** Error name */
122
348
  name: z.ZodString;
349
+ /** Error message */
123
350
  message: z.ZodString;
351
+ /** Error stack trace */
124
352
  stack: z.ZodOptional<z.ZodString>;
353
+ /** Standard error output */
125
354
  stderr: z.ZodOptional<z.ZodString>;
126
- }, z.core.$strip>;
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
+ }>;
127
366
  export type DeployError = z.infer<typeof DeployError>;
128
367
  /** Represents a successful deployment alert webhook payload */
129
368
  export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
369
+ /** Environment information */
130
370
  environment: z.ZodObject<{
131
371
  id: z.ZodString;
132
- type: z.ZodEnum<{
133
- DEVELOPMENT: "DEVELOPMENT";
134
- PREVIEW: "PREVIEW";
135
- PRODUCTION: "PRODUCTION";
136
- STAGING: "STAGING";
137
- }>;
372
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
138
373
  slug: z.ZodString;
374
+ /** Environment branch name */
139
375
  branchName: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip>;
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 */
141
388
  organization: z.ZodObject<{
142
389
  id: z.ZodString;
143
390
  slug: z.ZodString;
144
391
  name: z.ZodString;
145
- }, z.core.$strip>;
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 */
146
402
  project: z.ZodObject<{
147
403
  id: z.ZodString;
148
404
  ref: z.ZodString;
149
405
  slug: z.ZodString;
150
406
  name: z.ZodString;
151
- }, z.core.$strip>;
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 */
152
419
  git: z.ZodOptional<z.ZodObject<{
153
420
  branch: z.ZodString;
154
421
  commitSha: z.ZodString;
@@ -159,48 +426,223 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
159
426
  pullRequestTitle: z.ZodOptional<z.ZodString>;
160
427
  pullRequestUrl: z.ZodOptional<z.ZodString>;
161
428
  provider: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>>;
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 */
163
451
  vercel: z.ZodOptional<z.ZodObject<{
164
452
  deploymentUrl: z.ZodString;
165
- }, z.core.$strip>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ deploymentUrl: string;
455
+ }, {
456
+ deploymentUrl: string;
457
+ }>>;
166
458
  deployment: z.ZodObject<{
459
+ /** Deployment ID */
167
460
  id: z.ZodString;
461
+ /** Deployment status */
168
462
  status: z.ZodString;
463
+ /** Deployment version */
169
464
  version: z.ZodString;
465
+ /** Short code identifier */
170
466
  shortCode: z.ZodString;
171
- deployedAt: z.ZodCoercedDate<unknown>;
172
- }, z.core.$strip>;
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 */
173
483
  tasks: z.ZodArray<z.ZodObject<{
484
+ /** Task ID */
174
485
  id: z.ZodString;
486
+ /** File path where the task is defined */
175
487
  filePath: z.ZodString;
488
+ /** Name of the exported task function */
176
489
  exportName: z.ZodOptional<z.ZodString>;
490
+ /** Source of the trigger */
177
491
  triggerSource: z.ZodString;
178
- }, z.core.$strip>>;
179
- }, z.core.$strip>;
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
+ }>;
180
594
  /** Represents a failed deployment alert webhook payload */
181
595
  export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
596
+ /** Environment information */
182
597
  environment: z.ZodObject<{
183
598
  id: z.ZodString;
184
- type: z.ZodEnum<{
185
- DEVELOPMENT: "DEVELOPMENT";
186
- PREVIEW: "PREVIEW";
187
- PRODUCTION: "PRODUCTION";
188
- STAGING: "STAGING";
189
- }>;
599
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
190
600
  slug: z.ZodString;
601
+ /** Environment branch name */
191
602
  branchName: z.ZodOptional<z.ZodString>;
192
- }, z.core.$strip>;
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 */
193
615
  organization: z.ZodObject<{
194
616
  id: z.ZodString;
195
617
  slug: z.ZodString;
196
618
  name: z.ZodString;
197
- }, z.core.$strip>;
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 */
198
629
  project: z.ZodObject<{
199
630
  id: z.ZodString;
200
631
  ref: z.ZodString;
201
632
  slug: z.ZodString;
202
633
  name: z.ZodString;
203
- }, z.core.$strip>;
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 */
204
646
  git: z.ZodOptional<z.ZodObject<{
205
647
  branch: z.ZodString;
206
648
  commitSha: z.ZodString;
@@ -211,211 +653,860 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
211
653
  pullRequestTitle: z.ZodOptional<z.ZodString>;
212
654
  pullRequestUrl: z.ZodOptional<z.ZodString>;
213
655
  provider: z.ZodOptional<z.ZodString>;
214
- }, z.core.$strip>>;
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 */
215
678
  vercel: z.ZodOptional<z.ZodObject<{
216
679
  deploymentUrl: z.ZodString;
217
- }, z.core.$strip>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ deploymentUrl: string;
682
+ }, {
683
+ deploymentUrl: string;
684
+ }>>;
218
685
  deployment: z.ZodObject<{
686
+ /** Deployment ID */
219
687
  id: z.ZodString;
688
+ /** Deployment status */
220
689
  status: z.ZodString;
690
+ /** Deployment version */
221
691
  version: z.ZodString;
692
+ /** Short code identifier */
222
693
  shortCode: z.ZodString;
223
- failedAt: z.ZodCoercedDate<unknown>;
224
- }, z.core.$strip>;
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 */
225
710
  error: z.ZodObject<{
711
+ /** Error name */
226
712
  name: z.ZodString;
713
+ /** Error message */
227
714
  message: z.ZodString;
715
+ /** Error stack trace */
228
716
  stack: z.ZodOptional<z.ZodString>;
717
+ /** Standard error output */
229
718
  stderr: z.ZodOptional<z.ZodString>;
230
- }, z.core.$strip>;
231
- }, z.core.$strip>;
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
+ }>;
232
821
  export type AlertWebhookDeploymentSuccessObject = z.infer<typeof AlertWebhookDeploymentSuccessObject>;
233
822
  export type AlertWebhookDeploymentFailedObject = z.infer<typeof AlertWebhookDeploymentFailedObject>;
234
823
  /** Represents an error group alert webhook payload */
235
824
  export declare const AlertWebhookErrorGroupObject: z.ZodObject<{
236
- classification: z.ZodEnum<{
237
- new_issue: "new_issue";
238
- regression: "regression";
239
- unignored: "unignored";
240
- }>;
825
+ /** Classification of the error alert */
826
+ classification: z.ZodEnum<["new_issue", "regression", "unignored"]>;
827
+ /** Error information */
241
828
  error: z.ZodObject<{
829
+ /** Error fingerprint identifier */
242
830
  fingerprint: z.ZodString;
831
+ /** Error type */
243
832
  type: z.ZodString;
833
+ /** Error message */
244
834
  message: z.ZodString;
835
+ /** Sample stack trace */
245
836
  stackTrace: z.ZodOptional<z.ZodString>;
246
- firstSeen: z.ZodCoercedDate<unknown>;
247
- lastSeen: z.ZodCoercedDate<unknown>;
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 */
248
842
  occurrenceCount: z.ZodNumber;
843
+ /** Task identifier where the error occurred */
249
844
  taskIdentifier: z.ZodString;
250
- }, z.core.$strip>;
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 */
251
865
  environment: z.ZodObject<{
866
+ /** Environment ID */
252
867
  id: z.ZodString;
868
+ /** Environment name */
253
869
  name: z.ZodString;
254
- }, z.core.$strip>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ id: string;
872
+ name: string;
873
+ }, {
874
+ id: string;
875
+ name: string;
876
+ }>;
877
+ /** Organization information */
255
878
  organization: z.ZodObject<{
879
+ /** Organization ID */
256
880
  id: z.ZodString;
881
+ /** Organization slug */
257
882
  slug: z.ZodString;
883
+ /** Organization name */
258
884
  name: z.ZodString;
259
- }, z.core.$strip>;
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 */
260
895
  project: z.ZodObject<{
896
+ /** Project ID */
261
897
  id: z.ZodString;
898
+ /** Project reference */
262
899
  ref: z.ZodString;
900
+ /** Project slug */
263
901
  slug: z.ZodString;
902
+ /** Project name */
264
903
  name: z.ZodString;
265
- }, z.core.$strip>;
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 */
266
916
  dashboardUrl: z.ZodString;
267
- }, z.core.$strip>;
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
+ }>;
268
974
  export type AlertWebhookErrorGroupObject = z.infer<typeof AlertWebhookErrorGroupObject>;
269
975
  /** Represents all possible webhook types */
270
- export declare const Webhook: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
976
+ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
977
+ /** Webhook ID */
271
978
  id: z.ZodString;
272
- created: z.ZodCoercedDate<unknown>;
979
+ /** When the webhook was created */
980
+ created: z.ZodDate;
981
+ /** Version of the webhook */
273
982
  webhookVersion: z.ZodString;
274
983
  type: z.ZodLiteral<"alert.run.failed">;
275
984
  object: z.ZodObject<{
985
+ /** Task information */
276
986
  task: z.ZodObject<{
987
+ /** Unique identifier for the task */
277
988
  id: z.ZodString;
989
+ /** File path where the task is defined */
278
990
  filePath: z.ZodString;
991
+ /** Name of the exported task function */
279
992
  exportName: z.ZodOptional<z.ZodString>;
993
+ /** Version of the task */
280
994
  version: z.ZodString;
995
+ /** Version of the SDK used */
281
996
  sdkVersion: z.ZodString;
997
+ /** Version of the CLI used */
282
998
  cliVersion: z.ZodString;
283
- }, z.core.$strip>;
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 */
284
1015
  run: z.ZodObject<{
1016
+ /** Unique identifier for the run */
285
1017
  id: z.ZodString;
1018
+ /** Run number */
286
1019
  number: z.ZodNumber;
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>>;
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 */
305
1029
  isTest: z.ZodBoolean;
1030
+ /** Idempotency key for the run */
306
1031
  idempotencyKey: z.ZodOptional<z.ZodString>;
307
- tags: z.ZodArray<z.ZodString>;
308
- error: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1032
+ /** Associated tags */
1033
+ tags: z.ZodArray<z.ZodString, "many">;
1034
+ /** Error information */
1035
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
309
1036
  type: z.ZodLiteral<"BUILT_IN_ERROR">;
310
1037
  name: z.ZodString;
311
1038
  message: z.ZodString;
312
1039
  stackTrace: z.ZodString;
313
- }, z.core.$strip>, z.ZodObject<{
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<{
314
1051
  type: z.ZodLiteral<"CUSTOM_ERROR">;
315
1052
  raw: z.ZodString;
316
- }, z.core.$strip>, z.ZodObject<{
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ type: "CUSTOM_ERROR";
1055
+ raw: string;
1056
+ }, {
1057
+ type: "CUSTOM_ERROR";
1058
+ raw: string;
1059
+ }>, z.ZodObject<{
317
1060
  type: z.ZodLiteral<"STRING_ERROR">;
318
1061
  raw: z.ZodString;
319
- }, z.core.$strip>, z.ZodObject<{
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ type: "STRING_ERROR";
1064
+ raw: string;
1065
+ }, {
1066
+ type: "STRING_ERROR";
1067
+ raw: string;
1068
+ }>, z.ZodObject<{
320
1069
  type: z.ZodLiteral<"INTERNAL_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
- }>;
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"]>;
361
1071
  message: z.ZodOptional<z.ZodString>;
362
1072
  stackTrace: z.ZodOptional<z.ZodString>;
363
- }, z.core.$strip>]>;
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 */
364
1085
  isOutOfMemoryError: z.ZodBoolean;
1086
+ /** Machine preset used for the run */
365
1087
  machine: z.ZodString;
1088
+ /** URL to view the run in the dashboard */
366
1089
  dashboardUrl: z.ZodString;
367
- }, z.core.$strip>;
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 */
368
1152
  environment: z.ZodObject<{
1153
+ /** Environment ID */
369
1154
  id: z.ZodString;
370
- type: z.ZodEnum<{
371
- DEVELOPMENT: "DEVELOPMENT";
372
- PREVIEW: "PREVIEW";
373
- PRODUCTION: "PRODUCTION";
374
- STAGING: "STAGING";
375
- }>;
1155
+ /** Environment type */
1156
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
1157
+ /** Environment slug */
376
1158
  slug: z.ZodString;
1159
+ /** Environment branch name */
377
1160
  branchName: z.ZodOptional<z.ZodString>;
378
- }, z.core.$strip>;
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 */
379
1173
  organization: z.ZodObject<{
1174
+ /** Organization ID */
380
1175
  id: z.ZodString;
1176
+ /** Organization slug */
381
1177
  slug: z.ZodString;
1178
+ /** Organization name */
382
1179
  name: z.ZodString;
383
- }, z.core.$strip>;
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 */
384
1190
  project: z.ZodObject<{
1191
+ /** Project ID */
385
1192
  id: z.ZodString;
1193
+ /** Project reference */
386
1194
  ref: z.ZodString;
1195
+ /** Project slug */
387
1196
  slug: z.ZodString;
1197
+ /** Project name */
388
1198
  name: z.ZodString;
389
- }, z.core.$strip>;
390
- }, z.core.$strip>;
391
- }, z.core.$strip>, z.ZodObject<{
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 */
392
1453
  id: z.ZodString;
393
- created: z.ZodCoercedDate<unknown>;
1454
+ /** When the webhook was created */
1455
+ created: z.ZodDate;
1456
+ /** Version of the webhook */
394
1457
  webhookVersion: z.ZodString;
395
1458
  type: z.ZodLiteral<"alert.deployment.success">;
396
1459
  object: z.ZodObject<{
1460
+ /** Environment information */
397
1461
  environment: z.ZodObject<{
398
1462
  id: z.ZodString;
399
- type: z.ZodEnum<{
400
- DEVELOPMENT: "DEVELOPMENT";
401
- PREVIEW: "PREVIEW";
402
- PRODUCTION: "PRODUCTION";
403
- STAGING: "STAGING";
404
- }>;
1463
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
405
1464
  slug: z.ZodString;
1465
+ /** Environment branch name */
406
1466
  branchName: z.ZodOptional<z.ZodString>;
407
- }, z.core.$strip>;
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 */
408
1479
  organization: z.ZodObject<{
409
1480
  id: z.ZodString;
410
1481
  slug: z.ZodString;
411
1482
  name: z.ZodString;
412
- }, z.core.$strip>;
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 */
413
1493
  project: z.ZodObject<{
414
1494
  id: z.ZodString;
415
1495
  ref: z.ZodString;
416
1496
  slug: z.ZodString;
417
1497
  name: z.ZodString;
418
- }, z.core.$strip>;
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 */
419
1510
  git: z.ZodOptional<z.ZodObject<{
420
1511
  branch: z.ZodString;
421
1512
  commitSha: z.ZodString;
@@ -426,52 +1517,332 @@ export declare const Webhook: import("../utils/zod.js").CompatibleZodDiscriminat
426
1517
  pullRequestTitle: z.ZodOptional<z.ZodString>;
427
1518
  pullRequestUrl: z.ZodOptional<z.ZodString>;
428
1519
  provider: z.ZodOptional<z.ZodString>;
429
- }, z.core.$strip>>;
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 */
430
1542
  vercel: z.ZodOptional<z.ZodObject<{
431
1543
  deploymentUrl: z.ZodString;
432
- }, z.core.$strip>>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ deploymentUrl: string;
1546
+ }, {
1547
+ deploymentUrl: string;
1548
+ }>>;
433
1549
  deployment: z.ZodObject<{
1550
+ /** Deployment ID */
434
1551
  id: z.ZodString;
1552
+ /** Deployment status */
435
1553
  status: z.ZodString;
1554
+ /** Deployment version */
436
1555
  version: z.ZodString;
1556
+ /** Short code identifier */
437
1557
  shortCode: z.ZodString;
438
- deployedAt: z.ZodCoercedDate<unknown>;
439
- }, z.core.$strip>;
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 */
440
1574
  tasks: z.ZodArray<z.ZodObject<{
1575
+ /** Task ID */
441
1576
  id: z.ZodString;
1577
+ /** File path where the task is defined */
442
1578
  filePath: z.ZodString;
1579
+ /** Name of the exported task function */
443
1580
  exportName: z.ZodOptional<z.ZodString>;
1581
+ /** Source of the trigger */
444
1582
  triggerSource: z.ZodString;
445
- }, z.core.$strip>>;
446
- }, z.core.$strip>;
447
- }, z.core.$strip>, z.ZodObject<{
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 */
448
1789
  id: z.ZodString;
449
- created: z.ZodCoercedDate<unknown>;
1790
+ /** When the webhook was created */
1791
+ created: z.ZodDate;
1792
+ /** Version of the webhook */
450
1793
  webhookVersion: z.ZodString;
451
1794
  type: z.ZodLiteral<"alert.deployment.failed">;
452
1795
  object: z.ZodObject<{
1796
+ /** Environment information */
453
1797
  environment: z.ZodObject<{
454
1798
  id: z.ZodString;
455
- type: z.ZodEnum<{
456
- DEVELOPMENT: "DEVELOPMENT";
457
- PREVIEW: "PREVIEW";
458
- PRODUCTION: "PRODUCTION";
459
- STAGING: "STAGING";
460
- }>;
1799
+ type: z.ZodEnum<[import("@trigger.dev/database").$Enums.RuntimeEnvironmentType]>;
461
1800
  slug: z.ZodString;
1801
+ /** Environment branch name */
462
1802
  branchName: z.ZodOptional<z.ZodString>;
463
- }, z.core.$strip>;
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 */
464
1815
  organization: z.ZodObject<{
465
1816
  id: z.ZodString;
466
1817
  slug: z.ZodString;
467
1818
  name: z.ZodString;
468
- }, z.core.$strip>;
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 */
469
1829
  project: z.ZodObject<{
470
1830
  id: z.ZodString;
471
1831
  ref: z.ZodString;
472
1832
  slug: z.ZodString;
473
1833
  name: z.ZodString;
474
- }, z.core.$strip>;
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 */
475
1846
  git: z.ZodOptional<z.ZodObject<{
476
1847
  branch: z.ZodString;
477
1848
  commitSha: z.ZodString;
@@ -482,63 +1853,500 @@ export declare const Webhook: import("../utils/zod.js").CompatibleZodDiscriminat
482
1853
  pullRequestTitle: z.ZodOptional<z.ZodString>;
483
1854
  pullRequestUrl: z.ZodOptional<z.ZodString>;
484
1855
  provider: z.ZodOptional<z.ZodString>;
485
- }, z.core.$strip>>;
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 */
486
1878
  vercel: z.ZodOptional<z.ZodObject<{
487
1879
  deploymentUrl: z.ZodString;
488
- }, z.core.$strip>>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ deploymentUrl: string;
1882
+ }, {
1883
+ deploymentUrl: string;
1884
+ }>>;
489
1885
  deployment: z.ZodObject<{
1886
+ /** Deployment ID */
490
1887
  id: z.ZodString;
1888
+ /** Deployment status */
491
1889
  status: z.ZodString;
1890
+ /** Deployment version */
492
1891
  version: z.ZodString;
1892
+ /** Short code identifier */
493
1893
  shortCode: z.ZodString;
494
- failedAt: z.ZodCoercedDate<unknown>;
495
- }, z.core.$strip>;
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 */
496
1910
  error: z.ZodObject<{
1911
+ /** Error name */
497
1912
  name: z.ZodString;
1913
+ /** Error message */
498
1914
  message: z.ZodString;
1915
+ /** Error stack trace */
499
1916
  stack: z.ZodOptional<z.ZodString>;
1917
+ /** Standard error output */
500
1918
  stderr: z.ZodOptional<z.ZodString>;
501
- }, z.core.$strip>;
502
- }, z.core.$strip>;
503
- }, z.core.$strip>, z.ZodObject<{
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 */
504
2125
  id: z.ZodString;
505
- created: z.ZodCoercedDate<unknown>;
2126
+ /** When the webhook was created */
2127
+ created: z.ZodDate;
2128
+ /** Version of the webhook */
506
2129
  webhookVersion: z.ZodString;
507
2130
  type: z.ZodLiteral<"alert.error">;
508
2131
  object: z.ZodObject<{
509
- classification: z.ZodEnum<{
510
- new_issue: "new_issue";
511
- regression: "regression";
512
- unignored: "unignored";
513
- }>;
2132
+ /** Classification of the error alert */
2133
+ classification: z.ZodEnum<["new_issue", "regression", "unignored"]>;
2134
+ /** Error information */
514
2135
  error: z.ZodObject<{
2136
+ /** Error fingerprint identifier */
515
2137
  fingerprint: z.ZodString;
2138
+ /** Error type */
516
2139
  type: z.ZodString;
2140
+ /** Error message */
517
2141
  message: z.ZodString;
2142
+ /** Sample stack trace */
518
2143
  stackTrace: z.ZodOptional<z.ZodString>;
519
- firstSeen: z.ZodCoercedDate<unknown>;
520
- lastSeen: z.ZodCoercedDate<unknown>;
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 */
521
2149
  occurrenceCount: z.ZodNumber;
2150
+ /** Task identifier where the error occurred */
522
2151
  taskIdentifier: z.ZodString;
523
- }, z.core.$strip>;
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 */
524
2172
  environment: z.ZodObject<{
2173
+ /** Environment ID */
525
2174
  id: z.ZodString;
2175
+ /** Environment name */
526
2176
  name: z.ZodString;
527
- }, z.core.$strip>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ id: string;
2179
+ name: string;
2180
+ }, {
2181
+ id: string;
2182
+ name: string;
2183
+ }>;
2184
+ /** Organization information */
528
2185
  organization: z.ZodObject<{
2186
+ /** Organization ID */
529
2187
  id: z.ZodString;
2188
+ /** Organization slug */
530
2189
  slug: z.ZodString;
2190
+ /** Organization name */
531
2191
  name: z.ZodString;
532
- }, z.core.$strip>;
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 */
533
2202
  project: z.ZodObject<{
2203
+ /** Project ID */
534
2204
  id: z.ZodString;
2205
+ /** Project reference */
535
2206
  ref: z.ZodString;
2207
+ /** Project slug */
536
2208
  slug: z.ZodString;
2209
+ /** Project name */
537
2210
  name: z.ZodString;
538
- }, z.core.$strip>;
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 */
539
2223
  dashboardUrl: z.ZodString;
540
- }, z.core.$strip>;
541
- }, z.core.$strip>]>;
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
+ }>]>;
542
2350
  export type Webhook = z.infer<typeof Webhook>;
543
2351
  export type RunFailedWebhook = Extract<Webhook, {
544
2352
  type: "alert.run.failed";