@trigger.dev/core 0.0.0-prerelease-20240724110801 → 0.0.0-prerelease-20240825150620

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 (923) hide show
  1. package/dist/commonjs/bloom.d.ts +10 -0
  2. package/dist/commonjs/bloom.js +58 -0
  3. package/dist/commonjs/bloom.js.map +1 -0
  4. package/dist/commonjs/eventFilterMatches.d.ts +2 -0
  5. package/dist/commonjs/eventFilterMatches.js +170 -0
  6. package/dist/commonjs/eventFilterMatches.js.map +1 -0
  7. package/dist/commonjs/index.d.ts +9 -0
  8. package/dist/commonjs/index.js +26 -0
  9. package/dist/commonjs/index.js.map +1 -0
  10. package/dist/commonjs/logger.d.ts +13 -0
  11. package/dist/commonjs/logger.js +165 -0
  12. package/dist/commonjs/logger.js.map +1 -0
  13. package/dist/commonjs/package.json +3 -0
  14. package/dist/commonjs/replacements.d.ts +19 -0
  15. package/dist/commonjs/replacements.js +27 -0
  16. package/dist/commonjs/replacements.js.map +1 -0
  17. package/dist/commonjs/requestFilterMatches.d.ts +7 -0
  18. package/dist/commonjs/requestFilterMatches.js +62 -0
  19. package/dist/commonjs/requestFilterMatches.js.map +1 -0
  20. package/dist/commonjs/retry.d.ts +3 -0
  21. package/dist/commonjs/retry.js +106 -0
  22. package/dist/commonjs/retry.js.map +1 -0
  23. package/dist/commonjs/schemas/addMissingVersionField.d.ts +1 -0
  24. package/dist/commonjs/schemas/addMissingVersionField.js +13 -0
  25. package/dist/commonjs/schemas/addMissingVersionField.js.map +1 -0
  26. package/dist/{api-Pl9fxB8v.d.mts → commonjs/schemas/api.d.ts} +1038 -1334
  27. package/dist/commonjs/schemas/api.js +852 -0
  28. package/dist/commonjs/schemas/api.js.map +1 -0
  29. package/dist/commonjs/schemas/errors.d.ts +26 -0
  30. package/dist/commonjs/schemas/errors.js +14 -0
  31. package/dist/commonjs/schemas/errors.js.map +1 -0
  32. package/dist/{eventFilter-66NaBAMi.d.mts → commonjs/schemas/eventFilter.d.ts} +7 -9
  33. package/dist/commonjs/schemas/eventFilter.js +67 -0
  34. package/dist/commonjs/schemas/eventFilter.js.map +1 -0
  35. package/dist/commonjs/schemas/events.d.ts +66 -0
  36. package/dist/commonjs/schemas/events.js +31 -0
  37. package/dist/commonjs/schemas/events.js.map +1 -0
  38. package/dist/commonjs/schemas/fetch.d.ts +649 -0
  39. package/dist/commonjs/schemas/fetch.js +68 -0
  40. package/dist/commonjs/schemas/fetch.js.map +1 -0
  41. package/dist/commonjs/schemas/index.d.ts +18 -0
  42. package/dist/commonjs/schemas/index.js +35 -0
  43. package/dist/commonjs/schemas/index.js.map +1 -0
  44. package/dist/commonjs/schemas/integrations.d.ts +66 -0
  45. package/dist/commonjs/schemas/integrations.js +21 -0
  46. package/dist/commonjs/schemas/integrations.js.map +1 -0
  47. package/dist/commonjs/schemas/jobs.d.ts +12 -0
  48. package/dist/commonjs/schemas/jobs.js +9 -0
  49. package/dist/commonjs/schemas/jobs.js.map +1 -0
  50. package/dist/{json-DBPEJQRe.d.mts → commonjs/schemas/json.d.ts} +6 -8
  51. package/dist/commonjs/schemas/json.js +17 -0
  52. package/dist/commonjs/schemas/json.js.map +1 -0
  53. package/dist/commonjs/schemas/notifications.d.ts +579 -0
  54. package/dist/commonjs/schemas/notifications.js +59 -0
  55. package/dist/commonjs/schemas/notifications.js.map +1 -0
  56. package/dist/commonjs/schemas/properties.d.ts +57 -0
  57. package/dist/commonjs/schemas/properties.js +23 -0
  58. package/dist/commonjs/schemas/properties.js.map +1 -0
  59. package/dist/commonjs/schemas/request.d.ts +17 -0
  60. package/dist/commonjs/schemas/request.js +11 -0
  61. package/dist/commonjs/schemas/request.js.map +1 -0
  62. package/dist/{requestFilter-HNZQEpQb.d.ts → commonjs/schemas/requestFilter.d.ts} +16 -19
  63. package/dist/commonjs/schemas/requestFilter.js +60 -0
  64. package/dist/commonjs/schemas/requestFilter.js.map +1 -0
  65. package/dist/commonjs/schemas/runs.d.ts +328 -0
  66. package/dist/commonjs/schemas/runs.js +91 -0
  67. package/dist/commonjs/schemas/runs.js.map +1 -0
  68. package/dist/commonjs/schemas/schedules.d.ts +185 -0
  69. package/dist/commonjs/schemas/schedules.js +48 -0
  70. package/dist/commonjs/schemas/schedules.js.map +1 -0
  71. package/dist/commonjs/schemas/statuses.d.ts +88 -0
  72. package/dist/commonjs/schemas/statuses.js +23 -0
  73. package/dist/commonjs/schemas/statuses.js.map +1 -0
  74. package/dist/commonjs/schemas/tasks.d.ts +293 -0
  75. package/dist/commonjs/schemas/tasks.js +50 -0
  76. package/dist/commonjs/schemas/tasks.js.map +1 -0
  77. package/dist/commonjs/schemas/triggers.d.ts +532 -0
  78. package/dist/commonjs/schemas/triggers.js +57 -0
  79. package/dist/commonjs/schemas/triggers.js.map +1 -0
  80. package/dist/commonjs/searchParams.d.ts +1 -0
  81. package/dist/commonjs/searchParams.js +16 -0
  82. package/dist/commonjs/searchParams.js.map +1 -0
  83. package/dist/{types.d.ts → commonjs/types.d.ts} +2 -4
  84. package/dist/commonjs/types.js +3 -0
  85. package/dist/commonjs/types.js.map +1 -0
  86. package/dist/commonjs/utils.d.ts +3 -0
  87. package/dist/commonjs/utils.js +34 -0
  88. package/dist/commonjs/utils.js.map +1 -0
  89. package/dist/commonjs/v3/apiClient/core.d.ts +102 -0
  90. package/dist/commonjs/v3/apiClient/core.js +391 -0
  91. package/dist/commonjs/v3/apiClient/core.js.map +1 -0
  92. package/dist/commonjs/v3/apiClient/errors.d.ts +54 -0
  93. package/dist/commonjs/v3/apiClient/errors.js +147 -0
  94. package/dist/commonjs/v3/apiClient/errors.js.map +1 -0
  95. package/dist/commonjs/v3/apiClient/index.d.ts +347 -0
  96. package/dist/commonjs/v3/apiClient/index.js +303 -0
  97. package/dist/commonjs/v3/apiClient/index.js.map +1 -0
  98. package/dist/commonjs/v3/apiClient/pagination.d.ts +70 -0
  99. package/dist/commonjs/v3/apiClient/pagination.js +104 -0
  100. package/dist/commonjs/v3/apiClient/pagination.js.map +1 -0
  101. package/dist/commonjs/v3/apiClient/types.d.ts +33 -0
  102. package/dist/commonjs/v3/apiClient/types.js +3 -0
  103. package/dist/commonjs/v3/apiClient/types.js.map +1 -0
  104. package/dist/commonjs/v3/apiClientManager/index.d.ts +13 -0
  105. package/dist/commonjs/v3/apiClientManager/index.js +42 -0
  106. package/dist/commonjs/v3/apiClientManager/index.js.map +1 -0
  107. package/dist/commonjs/v3/apiClientManager/types.d.ts +6 -0
  108. package/dist/commonjs/v3/apiClientManager/types.js +3 -0
  109. package/dist/commonjs/v3/apiClientManager/types.js.map +1 -0
  110. package/dist/commonjs/v3/apiClientManager-api.d.ts +4 -0
  111. package/dist/commonjs/v3/apiClientManager-api.js +9 -0
  112. package/dist/commonjs/v3/apiClientManager-api.js.map +1 -0
  113. package/dist/commonjs/v3/apps/backoff.d.ts +85 -0
  114. package/dist/commonjs/v3/apps/backoff.js +282 -0
  115. package/dist/commonjs/v3/apps/backoff.js.map +1 -0
  116. package/dist/commonjs/v3/apps/checkpoints.d.ts +8 -0
  117. package/dist/commonjs/v3/apps/checkpoints.js +51 -0
  118. package/dist/commonjs/v3/apps/checkpoints.js.map +1 -0
  119. package/dist/commonjs/v3/apps/http.d.ts +16 -0
  120. package/dist/commonjs/v3/apps/http.js +44 -0
  121. package/dist/commonjs/v3/apps/http.js.map +1 -0
  122. package/dist/commonjs/v3/apps/index.d.ts +7 -0
  123. package/dist/commonjs/v3/apps/index.js +24 -0
  124. package/dist/commonjs/v3/apps/index.js.map +1 -0
  125. package/dist/commonjs/v3/apps/isExecaChildProcess.d.ts +2 -0
  126. package/dist/commonjs/v3/apps/isExecaChildProcess.js +7 -0
  127. package/dist/commonjs/v3/apps/isExecaChildProcess.js.map +1 -0
  128. package/dist/commonjs/v3/apps/logger.d.ts +8 -0
  129. package/dist/commonjs/v3/apps/logger.js +33 -0
  130. package/dist/commonjs/v3/apps/logger.js.map +1 -0
  131. package/dist/commonjs/v3/apps/process.d.ts +2 -0
  132. package/dist/commonjs/v3/apps/process.js +6 -0
  133. package/dist/commonjs/v3/apps/process.js.map +1 -0
  134. package/dist/commonjs/v3/apps/provider.d.ts +74 -0
  135. package/dist/commonjs/v3/apps/provider.js +278 -0
  136. package/dist/commonjs/v3/apps/provider.js.map +1 -0
  137. package/dist/commonjs/v3/build/extensions.d.ts +55 -0
  138. package/dist/commonjs/v3/build/extensions.js +12 -0
  139. package/dist/commonjs/v3/build/extensions.js.map +1 -0
  140. package/dist/commonjs/v3/build/index.d.ts +3 -0
  141. package/dist/commonjs/v3/build/index.js +20 -0
  142. package/dist/commonjs/v3/build/index.js.map +1 -0
  143. package/dist/commonjs/v3/build/resolvedConfig.d.ts +27 -0
  144. package/dist/commonjs/v3/build/resolvedConfig.js +3 -0
  145. package/dist/commonjs/v3/build/resolvedConfig.js.map +1 -0
  146. package/dist/commonjs/v3/build/runtime.d.ts +4 -0
  147. package/dist/commonjs/v3/build/runtime.js +34 -0
  148. package/dist/commonjs/v3/build/runtime.js.map +1 -0
  149. package/dist/commonjs/v3/clock/clock.d.ts +10 -0
  150. package/dist/commonjs/v3/clock/clock.js +11 -0
  151. package/dist/commonjs/v3/clock/clock.js.map +1 -0
  152. package/dist/commonjs/v3/clock/index.d.ts +10 -0
  153. package/dist/commonjs/v3/clock/index.js +31 -0
  154. package/dist/commonjs/v3/clock/index.js.map +1 -0
  155. package/dist/commonjs/v3/clock/preciseWallClock.d.ts +13 -0
  156. package/dist/commonjs/v3/clock/preciseWallClock.js +34 -0
  157. package/dist/commonjs/v3/clock/preciseWallClock.js.map +1 -0
  158. package/dist/commonjs/v3/clock/simpleClock.d.ts +5 -0
  159. package/dist/commonjs/v3/clock/simpleClock.js +16 -0
  160. package/dist/commonjs/v3/clock/simpleClock.js.map +1 -0
  161. package/dist/commonjs/v3/clock-api.d.ts +3 -0
  162. package/dist/commonjs/v3/clock-api.js +9 -0
  163. package/dist/commonjs/v3/clock-api.js.map +1 -0
  164. package/dist/commonjs/v3/config.d.ts +108 -0
  165. package/dist/commonjs/v3/config.js +3 -0
  166. package/dist/commonjs/v3/config.js.map +1 -0
  167. package/dist/commonjs/v3/consoleInterceptor.d.ts +13 -0
  168. package/dist/commonjs/v3/consoleInterceptor.js +133 -0
  169. package/dist/commonjs/v3/consoleInterceptor.js.map +1 -0
  170. package/dist/commonjs/v3/dev/index.d.ts +1 -0
  171. package/dist/commonjs/v3/dev/index.js +6 -0
  172. package/dist/commonjs/v3/dev/index.js.map +1 -0
  173. package/dist/commonjs/v3/errors.d.ts +70 -0
  174. package/dist/commonjs/v3/errors.js +435 -0
  175. package/dist/commonjs/v3/errors.js.map +1 -0
  176. package/dist/commonjs/v3/icons.d.ts +2 -0
  177. package/dist/commonjs/v3/icons.js +41 -0
  178. package/dist/commonjs/v3/icons.js.map +1 -0
  179. package/dist/commonjs/v3/index.d.ts +29 -0
  180. package/dist/commonjs/v3/index.js +72 -0
  181. package/dist/commonjs/v3/index.js.map +1 -0
  182. package/dist/commonjs/v3/limits.d.ts +11 -0
  183. package/dist/commonjs/v3/limits.js +45 -0
  184. package/dist/commonjs/v3/limits.js.map +1 -0
  185. package/dist/{v3/logger-api.d.ts → commonjs/v3/logger/index.d.ts} +3 -11
  186. package/dist/commonjs/v3/logger/index.js +46 -0
  187. package/dist/commonjs/v3/logger/index.js.map +1 -0
  188. package/dist/{taskLogger-CzADe4je.d.ts → commonjs/v3/logger/taskLogger.d.ts} +16 -11
  189. package/dist/commonjs/v3/logger/taskLogger.js +93 -0
  190. package/dist/commonjs/v3/logger/taskLogger.js.map +1 -0
  191. package/dist/commonjs/v3/logger-api.d.ts +3 -0
  192. package/dist/commonjs/v3/logger-api.js +9 -0
  193. package/dist/commonjs/v3/logger-api.js.map +1 -0
  194. package/dist/commonjs/v3/otel/index.d.ts +3 -0
  195. package/dist/commonjs/v3/otel/index.js +27 -0
  196. package/dist/commonjs/v3/otel/index.js.map +1 -0
  197. package/dist/{v3/otel/index.d.mts → commonjs/v3/otel/tracingSDK.d.ts} +9 -13
  198. package/dist/commonjs/v3/otel/tracingSDK.js +158 -0
  199. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -0
  200. package/dist/commonjs/v3/prod/index.d.ts +1 -0
  201. package/dist/commonjs/v3/prod/index.js +6 -0
  202. package/dist/commonjs/v3/prod/index.js.map +1 -0
  203. package/dist/{v3/dev/index.d.ts → commonjs/v3/runtime/devRuntimeManager.d.ts} +3 -7
  204. package/dist/commonjs/v3/runtime/devRuntimeManager.js +62 -0
  205. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -0
  206. package/dist/commonjs/v3/runtime/index.d.ts +21 -0
  207. package/dist/commonjs/v3/runtime/index.js +42 -0
  208. package/dist/commonjs/v3/runtime/index.js.map +1 -0
  209. package/dist/{manager-y-nT-ymn.d.ts → commonjs/v3/runtime/manager.d.ts} +2 -5
  210. package/dist/commonjs/v3/runtime/manager.js +3 -0
  211. package/dist/commonjs/v3/runtime/manager.js.map +1 -0
  212. package/dist/commonjs/v3/runtime/noopRuntimeManager.d.ts +16 -0
  213. package/dist/commonjs/v3/runtime/noopRuntimeManager.js +29 -0
  214. package/dist/commonjs/v3/runtime/noopRuntimeManager.js.map +1 -0
  215. package/dist/{v3/prod/index.d.ts → commonjs/v3/runtime/prodRuntimeManager.d.ts} +6 -15
  216. package/dist/commonjs/v3/runtime/prodRuntimeManager.js +86 -0
  217. package/dist/commonjs/v3/runtime/prodRuntimeManager.js.map +1 -0
  218. package/dist/commonjs/v3/runtime-api.d.ts +3 -0
  219. package/dist/commonjs/v3/runtime-api.js +9 -0
  220. package/dist/commonjs/v3/runtime-api.js.map +1 -0
  221. package/dist/{v3/schemas/index.d.ts → commonjs/v3/schemas/api.d.ts} +342 -2020
  222. package/dist/commonjs/v3/schemas/api.js +416 -0
  223. package/dist/commonjs/v3/schemas/api.js.map +1 -0
  224. package/dist/commonjs/v3/schemas/build.d.ts +1984 -0
  225. package/dist/commonjs/v3/schemas/build.js +92 -0
  226. package/dist/commonjs/v3/schemas/build.js.map +1 -0
  227. package/dist/{common-ufw5MzBe.d.mts → commonjs/v3/schemas/common.d.ts} +220 -194
  228. package/dist/commonjs/v3/schemas/common.js +214 -0
  229. package/dist/commonjs/v3/schemas/common.js.map +1 -0
  230. package/dist/commonjs/v3/schemas/config.d.ts +12 -0
  231. package/dist/commonjs/v3/schemas/config.js +9 -0
  232. package/dist/commonjs/v3/schemas/config.js.map +1 -0
  233. package/dist/commonjs/v3/schemas/eventFilter.d.ts +112 -0
  234. package/dist/commonjs/v3/schemas/eventFilter.js +61 -0
  235. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -0
  236. package/dist/commonjs/v3/schemas/fetch.d.ts +372 -0
  237. package/dist/commonjs/v3/schemas/fetch.js +55 -0
  238. package/dist/commonjs/v3/schemas/fetch.js.map +1 -0
  239. package/dist/commonjs/v3/schemas/index.d.ts +12 -0
  240. package/dist/commonjs/v3/schemas/index.js +29 -0
  241. package/dist/commonjs/v3/schemas/index.js.map +1 -0
  242. package/dist/{messages-7b5K4qKr.d.mts → commonjs/v3/schemas/messages.d.ts} +5322 -9293
  243. package/dist/commonjs/v3/schemas/messages.js +819 -0
  244. package/dist/commonjs/v3/schemas/messages.js.map +1 -0
  245. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +299 -0
  246. package/dist/commonjs/v3/schemas/openTelemetry.js +46 -0
  247. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -0
  248. package/dist/commonjs/v3/schemas/resources.d.ts +888 -0
  249. package/dist/commonjs/v3/schemas/resources.js +34 -0
  250. package/dist/commonjs/v3/schemas/resources.js.map +1 -0
  251. package/dist/{schemas-kjSfajbV.d.mts → commonjs/v3/schemas/schemas.d.ts} +401 -380
  252. package/dist/commonjs/v3/schemas/schemas.js +191 -0
  253. package/dist/commonjs/v3/schemas/schemas.js.map +1 -0
  254. package/dist/commonjs/v3/schemas/style.d.ts +93 -0
  255. package/dist/commonjs/v3/schemas/style.js +26 -0
  256. package/dist/commonjs/v3/schemas/style.js.map +1 -0
  257. package/dist/commonjs/v3/schemas/tokens.d.ts +43 -0
  258. package/dist/commonjs/v3/schemas/tokens.js +20 -0
  259. package/dist/commonjs/v3/schemas/tokens.js.map +1 -0
  260. package/dist/{v3 → commonjs/v3}/semanticInternalAttributes.d.ts +1 -3
  261. package/dist/commonjs/v3/semanticInternalAttributes.js +58 -0
  262. package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -0
  263. package/dist/commonjs/v3/task-catalog/catalog.d.ts +11 -0
  264. package/dist/commonjs/v3/task-catalog/catalog.js +3 -0
  265. package/dist/commonjs/v3/task-catalog/catalog.js.map +1 -0
  266. package/dist/commonjs/v3/task-catalog/index.d.ts +18 -0
  267. package/dist/commonjs/v3/task-catalog/index.js +49 -0
  268. package/dist/commonjs/v3/task-catalog/index.js.map +1 -0
  269. package/dist/commonjs/v3/task-catalog/noopTaskCatalog.d.ts +13 -0
  270. package/dist/commonjs/v3/task-catalog/noopTaskCatalog.js +31 -0
  271. package/dist/commonjs/v3/task-catalog/noopTaskCatalog.js.map +1 -0
  272. package/dist/commonjs/v3/task-catalog/standardTaskCatalog.d.ts +16 -0
  273. package/dist/commonjs/v3/task-catalog/standardTaskCatalog.js +84 -0
  274. package/dist/commonjs/v3/task-catalog/standardTaskCatalog.js.map +1 -0
  275. package/dist/commonjs/v3/task-catalog-api.d.ts +3 -0
  276. package/dist/commonjs/v3/task-catalog-api.js +9 -0
  277. package/dist/commonjs/v3/task-catalog-api.js.map +1 -0
  278. package/dist/commonjs/v3/task-context-api.d.ts +3 -0
  279. package/dist/commonjs/v3/task-context-api.js +9 -0
  280. package/dist/commonjs/v3/task-context-api.js.map +1 -0
  281. package/dist/commonjs/v3/taskContext/index.d.ts +17 -0
  282. package/dist/commonjs/v3/taskContext/index.js +84 -0
  283. package/dist/commonjs/v3/taskContext/index.js.map +1 -0
  284. package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +18 -0
  285. package/dist/commonjs/v3/taskContext/otelProcessors.js +57 -0
  286. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -0
  287. package/dist/commonjs/v3/taskContext/types.d.ts +5 -0
  288. package/dist/commonjs/v3/taskContext/types.js +3 -0
  289. package/dist/commonjs/v3/taskContext/types.js.map +1 -0
  290. package/dist/{tracer-N0p2Fuuv.d.mts → commonjs/v3/tracer.d.ts} +4 -7
  291. package/dist/commonjs/v3/tracer.js +100 -0
  292. package/dist/commonjs/v3/tracer.js.map +1 -0
  293. package/dist/commonjs/v3/types/index.d.ts +69 -0
  294. package/dist/commonjs/v3/types/index.js +18 -0
  295. package/dist/commonjs/v3/types/index.js.map +1 -0
  296. package/dist/commonjs/v3/types/utils.d.ts +6 -0
  297. package/dist/commonjs/v3/types/utils.js +3 -0
  298. package/dist/commonjs/v3/types/utils.js.map +1 -0
  299. package/dist/commonjs/v3/usage/api.d.ts +13 -0
  300. package/dist/commonjs/v3/usage/api.js +41 -0
  301. package/dist/commonjs/v3/usage/api.js.map +1 -0
  302. package/dist/commonjs/v3/usage/devUsageManager.d.ts +23 -0
  303. package/dist/commonjs/v3/usage/devUsageManager.js +90 -0
  304. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -0
  305. package/dist/commonjs/v3/usage/noopUsageManager.d.ts +8 -0
  306. package/dist/commonjs/v3/usage/noopUsageManager.js +24 -0
  307. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -0
  308. package/dist/commonjs/v3/usage/prodUsageManager.d.ts +23 -0
  309. package/dist/commonjs/v3/usage/prodUsageManager.js +85 -0
  310. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -0
  311. package/dist/commonjs/v3/usage/types.d.ts +14 -0
  312. package/dist/commonjs/v3/usage/types.js +3 -0
  313. package/dist/commonjs/v3/usage/types.js.map +1 -0
  314. package/dist/commonjs/v3/usage/usageClient.d.ts +13 -0
  315. package/dist/commonjs/v3/usage/usageClient.js +37 -0
  316. package/dist/commonjs/v3/usage/usageClient.js.map +1 -0
  317. package/dist/commonjs/v3/usage-api.d.ts +3 -0
  318. package/dist/commonjs/v3/usage-api.js +9 -0
  319. package/dist/commonjs/v3/usage-api.js.map +1 -0
  320. package/dist/commonjs/v3/utils/durations.d.ts +13 -0
  321. package/dist/commonjs/v3/utils/durations.js +75 -0
  322. package/dist/commonjs/v3/utils/durations.js.map +1 -0
  323. package/dist/commonjs/v3/utils/flattenAttributes.d.ts +5 -0
  324. package/dist/commonjs/v3/utils/flattenAttributes.js +146 -0
  325. package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -0
  326. package/dist/commonjs/v3/utils/getEnv.d.ts +1 -0
  327. package/dist/commonjs/v3/utils/getEnv.js +11 -0
  328. package/dist/commonjs/v3/utils/getEnv.js.map +1 -0
  329. package/dist/commonjs/v3/utils/globals.d.ts +19 -0
  330. package/dist/commonjs/v3/utils/globals.js +28 -0
  331. package/dist/commonjs/v3/utils/globals.js.map +1 -0
  332. package/dist/commonjs/v3/utils/ioSerialization.d.ts +18 -0
  333. package/dist/commonjs/v3/utils/ioSerialization.js +282 -0
  334. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -0
  335. package/dist/commonjs/v3/utils/omit.d.ts +1 -0
  336. package/dist/commonjs/v3/utils/omit.js +13 -0
  337. package/dist/commonjs/v3/utils/omit.js.map +1 -0
  338. package/dist/commonjs/v3/utils/platform.d.ts +1 -0
  339. package/dist/commonjs/v3/utils/platform.js +5 -0
  340. package/dist/commonjs/v3/utils/platform.js.map +1 -0
  341. package/dist/{v3 → commonjs/v3}/utils/retries.d.ts +5 -9
  342. package/dist/commonjs/v3/utils/retries.js +45 -0
  343. package/dist/commonjs/v3/utils/retries.js.map +1 -0
  344. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.d.ts +6 -0
  345. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js +18 -0
  346. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js.map +1 -0
  347. package/dist/{v3 → commonjs/v3}/utils/structuredLogger.d.ts +4 -5
  348. package/dist/commonjs/v3/utils/structuredLogger.js +64 -0
  349. package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -0
  350. package/dist/commonjs/v3/utils/styleAttributes.d.ts +3 -0
  351. package/dist/commonjs/v3/utils/styleAttributes.js +9 -0
  352. package/dist/commonjs/v3/utils/styleAttributes.js.map +1 -0
  353. package/dist/commonjs/v3/utils/timers.d.ts +3 -0
  354. package/dist/commonjs/v3/utils/timers.js +25 -0
  355. package/dist/commonjs/v3/utils/timers.js.map +1 -0
  356. package/dist/commonjs/v3/workers/index.d.ts +12 -0
  357. package/dist/commonjs/v3/workers/index.js +42 -0
  358. package/dist/commonjs/v3/workers/index.js.map +1 -0
  359. package/dist/commonjs/v3/workers/taskExecutor.d.ts +27 -0
  360. package/dist/commonjs/v3/workers/taskExecutor.js +345 -0
  361. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -0
  362. package/dist/{v3 → commonjs/v3}/zodIpc.d.ts +7 -9
  363. package/dist/commonjs/v3/zodIpc.js +206 -0
  364. package/dist/commonjs/v3/zodIpc.js.map +1 -0
  365. package/dist/{v3 → commonjs/v3}/zodMessageHandler.d.ts +19 -18
  366. package/dist/commonjs/v3/zodMessageHandler.js +205 -0
  367. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -0
  368. package/dist/commonjs/v3/zodNamespace.d.ts +34 -0
  369. package/dist/commonjs/v3/zodNamespace.js +96 -0
  370. package/dist/commonjs/v3/zodNamespace.js.map +1 -0
  371. package/dist/{v3 → commonjs/v3}/zodSocket.d.ts +22 -24
  372. package/dist/commonjs/v3/zodSocket.js +230 -0
  373. package/dist/commonjs/v3/zodSocket.js.map +1 -0
  374. package/dist/commonjs/v3/zodfetch.d.ts +3 -0
  375. package/dist/commonjs/v3/zodfetch.js +20 -0
  376. package/dist/commonjs/v3/zodfetch.js.map +1 -0
  377. package/dist/commonjs/version.d.ts +1 -0
  378. package/dist/commonjs/version.js +5 -0
  379. package/dist/commonjs/version.js.map +1 -0
  380. package/dist/commonjs/versions.d.ts +9 -0
  381. package/dist/commonjs/versions.js +23 -0
  382. package/dist/commonjs/versions.js.map +1 -0
  383. package/dist/esm/bloom.d.ts +10 -0
  384. package/dist/esm/bloom.js +54 -0
  385. package/dist/esm/bloom.js.map +1 -0
  386. package/dist/esm/eventFilterMatches.d.ts +2 -0
  387. package/dist/esm/eventFilterMatches.js +167 -0
  388. package/dist/esm/eventFilterMatches.js.map +1 -0
  389. package/dist/esm/index.d.ts +9 -0
  390. package/dist/esm/index.js +10 -0
  391. package/dist/esm/index.js.map +1 -0
  392. package/dist/esm/logger.d.ts +13 -0
  393. package/dist/esm/logger.js +161 -0
  394. package/dist/esm/logger.js.map +1 -0
  395. package/dist/esm/package.json +3 -0
  396. package/dist/esm/replacements.d.ts +19 -0
  397. package/dist/esm/replacements.js +24 -0
  398. package/dist/esm/replacements.js.map +1 -0
  399. package/dist/esm/requestFilterMatches.d.ts +7 -0
  400. package/dist/esm/requestFilterMatches.js +58 -0
  401. package/dist/esm/requestFilterMatches.js.map +1 -0
  402. package/dist/esm/retry.d.ts +3 -0
  403. package/dist/esm/retry.js +102 -0
  404. package/dist/esm/retry.js.map +1 -0
  405. package/dist/esm/schemas/addMissingVersionField.d.ts +1 -0
  406. package/dist/esm/schemas/addMissingVersionField.js +10 -0
  407. package/dist/esm/schemas/addMissingVersionField.js.map +1 -0
  408. package/dist/{api-sNoooMbT.d.ts → esm/schemas/api.d.ts} +1038 -1334
  409. package/dist/esm/schemas/api.js +847 -0
  410. package/dist/esm/schemas/api.js.map +1 -0
  411. package/dist/esm/schemas/errors.d.ts +26 -0
  412. package/dist/esm/schemas/errors.js +11 -0
  413. package/dist/esm/schemas/errors.js.map +1 -0
  414. package/dist/{eventFilter-66NaBAMi.d.ts → esm/schemas/eventFilter.d.ts} +7 -9
  415. package/dist/esm/schemas/eventFilter.js +64 -0
  416. package/dist/esm/schemas/eventFilter.js.map +1 -0
  417. package/dist/esm/schemas/events.d.ts +66 -0
  418. package/dist/esm/schemas/events.js +28 -0
  419. package/dist/esm/schemas/events.js.map +1 -0
  420. package/dist/esm/schemas/fetch.d.ts +649 -0
  421. package/dist/esm/schemas/fetch.js +65 -0
  422. package/dist/esm/schemas/fetch.js.map +1 -0
  423. package/dist/esm/schemas/index.d.ts +18 -0
  424. package/dist/esm/schemas/index.js +19 -0
  425. package/dist/esm/schemas/index.js.map +1 -0
  426. package/dist/esm/schemas/integrations.d.ts +66 -0
  427. package/dist/esm/schemas/integrations.js +18 -0
  428. package/dist/esm/schemas/integrations.js.map +1 -0
  429. package/dist/esm/schemas/jobs.d.ts +12 -0
  430. package/dist/esm/schemas/jobs.js +6 -0
  431. package/dist/esm/schemas/jobs.js.map +1 -0
  432. package/dist/{json-DBPEJQRe.d.ts → esm/schemas/json.d.ts} +6 -8
  433. package/dist/esm/schemas/json.js +14 -0
  434. package/dist/esm/schemas/json.js.map +1 -0
  435. package/dist/esm/schemas/notifications.d.ts +579 -0
  436. package/dist/esm/schemas/notifications.js +56 -0
  437. package/dist/esm/schemas/notifications.js.map +1 -0
  438. package/dist/esm/schemas/properties.d.ts +57 -0
  439. package/dist/esm/schemas/properties.js +20 -0
  440. package/dist/esm/schemas/properties.js.map +1 -0
  441. package/dist/esm/schemas/request.d.ts +17 -0
  442. package/dist/esm/schemas/request.js +8 -0
  443. package/dist/esm/schemas/request.js.map +1 -0
  444. package/dist/{requestFilter-b5W2_1oP.d.mts → esm/schemas/requestFilter.d.ts} +16 -19
  445. package/dist/esm/schemas/requestFilter.js +57 -0
  446. package/dist/esm/schemas/requestFilter.js.map +1 -0
  447. package/dist/esm/schemas/runs.d.ts +328 -0
  448. package/dist/esm/schemas/runs.js +88 -0
  449. package/dist/esm/schemas/runs.js.map +1 -0
  450. package/dist/esm/schemas/schedules.d.ts +185 -0
  451. package/dist/esm/schemas/schedules.js +45 -0
  452. package/dist/esm/schemas/schedules.js.map +1 -0
  453. package/dist/esm/schemas/statuses.d.ts +88 -0
  454. package/dist/esm/schemas/statuses.js +20 -0
  455. package/dist/esm/schemas/statuses.js.map +1 -0
  456. package/dist/esm/schemas/tasks.d.ts +293 -0
  457. package/dist/esm/schemas/tasks.js +47 -0
  458. package/dist/esm/schemas/tasks.js.map +1 -0
  459. package/dist/esm/schemas/triggers.d.ts +532 -0
  460. package/dist/esm/schemas/triggers.js +54 -0
  461. package/dist/esm/schemas/triggers.js.map +1 -0
  462. package/dist/esm/searchParams.d.ts +1 -0
  463. package/dist/esm/searchParams.js +13 -0
  464. package/dist/esm/searchParams.js.map +1 -0
  465. package/dist/{types.d.mts → esm/types.d.ts} +2 -4
  466. package/dist/esm/types.js +2 -0
  467. package/dist/esm/types.js.map +1 -0
  468. package/dist/esm/utils.d.ts +3 -0
  469. package/dist/esm/utils.js +30 -0
  470. package/dist/esm/utils.js.map +1 -0
  471. package/dist/esm/v3/apiClient/core.d.ts +102 -0
  472. package/dist/esm/v3/apiClient/core.js +379 -0
  473. package/dist/esm/v3/apiClient/core.js.map +1 -0
  474. package/dist/esm/v3/apiClient/errors.d.ts +54 -0
  475. package/dist/esm/v3/apiClient/errors.js +133 -0
  476. package/dist/esm/v3/apiClient/errors.js.map +1 -0
  477. package/dist/esm/v3/apiClient/index.d.ts +347 -0
  478. package/dist/esm/v3/apiClient/index.js +298 -0
  479. package/dist/esm/v3/apiClient/index.js.map +1 -0
  480. package/dist/esm/v3/apiClient/pagination.d.ts +70 -0
  481. package/dist/esm/v3/apiClient/pagination.js +99 -0
  482. package/dist/esm/v3/apiClient/pagination.js.map +1 -0
  483. package/dist/esm/v3/apiClient/types.d.ts +33 -0
  484. package/dist/esm/v3/apiClient/types.js +2 -0
  485. package/dist/esm/v3/apiClient/types.js.map +1 -0
  486. package/dist/esm/v3/apiClientManager/index.d.ts +13 -0
  487. package/dist/esm/v3/apiClientManager/index.js +38 -0
  488. package/dist/esm/v3/apiClientManager/index.js.map +1 -0
  489. package/dist/esm/v3/apiClientManager/types.d.ts +6 -0
  490. package/dist/esm/v3/apiClientManager/types.js +2 -0
  491. package/dist/esm/v3/apiClientManager/types.js.map +1 -0
  492. package/dist/esm/v3/apiClientManager-api.d.ts +4 -0
  493. package/dist/esm/v3/apiClientManager-api.js +6 -0
  494. package/dist/esm/v3/apiClientManager-api.js.map +1 -0
  495. package/dist/esm/v3/apps/backoff.d.ts +85 -0
  496. package/dist/esm/v3/apps/backoff.js +278 -0
  497. package/dist/esm/v3/apps/backoff.js.map +1 -0
  498. package/dist/esm/v3/apps/checkpoints.d.ts +8 -0
  499. package/dist/esm/v3/apps/checkpoints.js +48 -0
  500. package/dist/esm/v3/apps/checkpoints.js.map +1 -0
  501. package/dist/esm/v3/apps/http.d.ts +16 -0
  502. package/dist/esm/v3/apps/http.js +38 -0
  503. package/dist/esm/v3/apps/http.js.map +1 -0
  504. package/dist/esm/v3/apps/index.d.ts +7 -0
  505. package/dist/esm/v3/apps/index.js +8 -0
  506. package/dist/esm/v3/apps/index.js.map +1 -0
  507. package/dist/esm/v3/apps/isExecaChildProcess.d.ts +2 -0
  508. package/dist/esm/v3/apps/isExecaChildProcess.js +4 -0
  509. package/dist/esm/v3/apps/isExecaChildProcess.js.map +1 -0
  510. package/dist/esm/v3/apps/logger.d.ts +8 -0
  511. package/dist/esm/v3/apps/logger.js +29 -0
  512. package/dist/esm/v3/apps/logger.js.map +1 -0
  513. package/dist/esm/v3/apps/process.d.ts +2 -0
  514. package/dist/esm/v3/apps/process.js +3 -0
  515. package/dist/esm/v3/apps/process.js.map +1 -0
  516. package/dist/esm/v3/apps/provider.d.ts +74 -0
  517. package/dist/esm/v3/apps/provider.js +274 -0
  518. package/dist/esm/v3/apps/provider.js.map +1 -0
  519. package/dist/esm/v3/build/extensions.d.ts +55 -0
  520. package/dist/esm/v3/build/extensions.js +9 -0
  521. package/dist/esm/v3/build/extensions.js.map +1 -0
  522. package/dist/esm/v3/build/index.d.ts +3 -0
  523. package/dist/esm/v3/build/index.js +4 -0
  524. package/dist/esm/v3/build/index.js.map +1 -0
  525. package/dist/esm/v3/build/resolvedConfig.d.ts +27 -0
  526. package/dist/esm/v3/build/resolvedConfig.js +2 -0
  527. package/dist/esm/v3/build/resolvedConfig.js.map +1 -0
  528. package/dist/esm/v3/build/runtime.d.ts +4 -0
  529. package/dist/esm/v3/build/runtime.js +29 -0
  530. package/dist/esm/v3/build/runtime.js.map +1 -0
  531. package/dist/esm/v3/clock/clock.d.ts +10 -0
  532. package/dist/esm/v3/clock/clock.js +8 -0
  533. package/dist/esm/v3/clock/clock.js.map +1 -0
  534. package/dist/esm/v3/clock/index.d.ts +10 -0
  535. package/dist/esm/v3/clock/index.js +27 -0
  536. package/dist/esm/v3/clock/index.js.map +1 -0
  537. package/dist/esm/v3/clock/preciseWallClock.d.ts +13 -0
  538. package/dist/esm/v3/clock/preciseWallClock.js +30 -0
  539. package/dist/esm/v3/clock/preciseWallClock.js.map +1 -0
  540. package/dist/esm/v3/clock/simpleClock.d.ts +5 -0
  541. package/dist/esm/v3/clock/simpleClock.js +12 -0
  542. package/dist/esm/v3/clock/simpleClock.js.map +1 -0
  543. package/dist/esm/v3/clock-api.d.ts +3 -0
  544. package/dist/esm/v3/clock-api.js +6 -0
  545. package/dist/esm/v3/clock-api.js.map +1 -0
  546. package/dist/esm/v3/config.d.ts +108 -0
  547. package/dist/esm/v3/config.js +2 -0
  548. package/dist/esm/v3/config.js.map +1 -0
  549. package/dist/esm/v3/consoleInterceptor.d.ts +13 -0
  550. package/dist/esm/v3/consoleInterceptor.js +126 -0
  551. package/dist/esm/v3/consoleInterceptor.js.map +1 -0
  552. package/dist/esm/v3/dev/index.d.ts +1 -0
  553. package/dist/esm/v3/dev/index.js +2 -0
  554. package/dist/esm/v3/dev/index.js.map +1 -0
  555. package/dist/esm/v3/errors.d.ts +70 -0
  556. package/dist/esm/v3/errors.js +413 -0
  557. package/dist/esm/v3/errors.js.map +1 -0
  558. package/dist/esm/v3/icons.d.ts +2 -0
  559. package/dist/esm/v3/icons.js +38 -0
  560. package/dist/esm/v3/icons.js.map +1 -0
  561. package/dist/esm/v3/index.d.ts +29 -0
  562. package/dist/esm/v3/index.js +28 -0
  563. package/dist/esm/v3/index.js.map +1 -0
  564. package/dist/esm/v3/limits.d.ts +11 -0
  565. package/dist/esm/v3/limits.js +41 -0
  566. package/dist/esm/v3/limits.js.map +1 -0
  567. package/dist/{v3/logger-api.d.mts → esm/v3/logger/index.d.ts} +3 -11
  568. package/dist/esm/v3/logger/index.js +42 -0
  569. package/dist/esm/v3/logger/index.js.map +1 -0
  570. package/dist/{taskLogger-r_AFTX45.d.mts → esm/v3/logger/taskLogger.d.ts} +16 -11
  571. package/dist/esm/v3/logger/taskLogger.js +88 -0
  572. package/dist/esm/v3/logger/taskLogger.js.map +1 -0
  573. package/dist/esm/v3/logger-api.d.ts +3 -0
  574. package/dist/esm/v3/logger-api.js +6 -0
  575. package/dist/esm/v3/logger-api.js.map +1 -0
  576. package/dist/esm/v3/otel/index.d.ts +3 -0
  577. package/dist/esm/v3/otel/index.js +22 -0
  578. package/dist/esm/v3/otel/index.js.map +1 -0
  579. package/dist/{v3/otel/index.d.ts → esm/v3/otel/tracingSDK.d.ts} +9 -13
  580. package/dist/esm/v3/otel/tracingSDK.js +154 -0
  581. package/dist/esm/v3/otel/tracingSDK.js.map +1 -0
  582. package/dist/esm/v3/prod/index.d.ts +1 -0
  583. package/dist/esm/v3/prod/index.js +2 -0
  584. package/dist/esm/v3/prod/index.js.map +1 -0
  585. package/dist/{v3/dev/index.d.mts → esm/v3/runtime/devRuntimeManager.d.ts} +3 -7
  586. package/dist/esm/v3/runtime/devRuntimeManager.js +58 -0
  587. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -0
  588. package/dist/esm/v3/runtime/index.d.ts +21 -0
  589. package/dist/esm/v3/runtime/index.js +38 -0
  590. package/dist/esm/v3/runtime/index.js.map +1 -0
  591. package/dist/{manager-CkUnBH2E.d.mts → esm/v3/runtime/manager.d.ts} +2 -5
  592. package/dist/esm/v3/runtime/manager.js +2 -0
  593. package/dist/esm/v3/runtime/manager.js.map +1 -0
  594. package/dist/esm/v3/runtime/noopRuntimeManager.d.ts +16 -0
  595. package/dist/esm/v3/runtime/noopRuntimeManager.js +25 -0
  596. package/dist/esm/v3/runtime/noopRuntimeManager.js.map +1 -0
  597. package/dist/{v3/prod/index.d.mts → esm/v3/runtime/prodRuntimeManager.d.ts} +6 -15
  598. package/dist/esm/v3/runtime/prodRuntimeManager.js +82 -0
  599. package/dist/esm/v3/runtime/prodRuntimeManager.js.map +1 -0
  600. package/dist/esm/v3/runtime-api.d.ts +3 -0
  601. package/dist/esm/v3/runtime-api.js +6 -0
  602. package/dist/esm/v3/runtime-api.js.map +1 -0
  603. package/dist/{v3/schemas/index.d.mts → esm/v3/schemas/api.d.ts} +342 -2020
  604. package/dist/esm/v3/schemas/api.js +412 -0
  605. package/dist/esm/v3/schemas/api.js.map +1 -0
  606. package/dist/esm/v3/schemas/build.d.ts +1984 -0
  607. package/dist/esm/v3/schemas/build.js +89 -0
  608. package/dist/esm/v3/schemas/build.js.map +1 -0
  609. package/dist/{common-ufw5MzBe.d.ts → esm/v3/schemas/common.d.ts} +220 -194
  610. package/dist/esm/v3/schemas/common.js +211 -0
  611. package/dist/esm/v3/schemas/common.js.map +1 -0
  612. package/dist/esm/v3/schemas/config.d.ts +12 -0
  613. package/dist/esm/v3/schemas/config.js +6 -0
  614. package/dist/esm/v3/schemas/config.js.map +1 -0
  615. package/dist/esm/v3/schemas/eventFilter.d.ts +112 -0
  616. package/dist/esm/v3/schemas/eventFilter.js +58 -0
  617. package/dist/esm/v3/schemas/eventFilter.js.map +1 -0
  618. package/dist/esm/v3/schemas/fetch.d.ts +372 -0
  619. package/dist/esm/v3/schemas/fetch.js +52 -0
  620. package/dist/esm/v3/schemas/fetch.js.map +1 -0
  621. package/dist/esm/v3/schemas/index.d.ts +12 -0
  622. package/dist/esm/v3/schemas/index.js +13 -0
  623. package/dist/esm/v3/schemas/index.js.map +1 -0
  624. package/dist/{messages-7b5K4qKr.d.ts → esm/v3/schemas/messages.d.ts} +5322 -9293
  625. package/dist/esm/v3/schemas/messages.js +816 -0
  626. package/dist/esm/v3/schemas/messages.js.map +1 -0
  627. package/dist/esm/v3/schemas/openTelemetry.d.ts +299 -0
  628. package/dist/esm/v3/schemas/openTelemetry.js +41 -0
  629. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -0
  630. package/dist/esm/v3/schemas/resources.d.ts +888 -0
  631. package/dist/esm/v3/schemas/resources.js +31 -0
  632. package/dist/esm/v3/schemas/resources.js.map +1 -0
  633. package/dist/{schemas-kjSfajbV.d.ts → esm/v3/schemas/schemas.d.ts} +401 -380
  634. package/dist/esm/v3/schemas/schemas.js +188 -0
  635. package/dist/esm/v3/schemas/schemas.js.map +1 -0
  636. package/dist/esm/v3/schemas/style.d.ts +93 -0
  637. package/dist/esm/v3/schemas/style.js +23 -0
  638. package/dist/esm/v3/schemas/style.js.map +1 -0
  639. package/dist/esm/v3/schemas/tokens.d.ts +43 -0
  640. package/dist/esm/v3/schemas/tokens.js +17 -0
  641. package/dist/esm/v3/schemas/tokens.js.map +1 -0
  642. package/dist/{v3/semanticInternalAttributes.d.mts → esm/v3/semanticInternalAttributes.d.ts} +1 -3
  643. package/dist/esm/v3/semanticInternalAttributes.js +55 -0
  644. package/dist/esm/v3/semanticInternalAttributes.js.map +1 -0
  645. package/dist/esm/v3/task-catalog/catalog.d.ts +11 -0
  646. package/dist/esm/v3/task-catalog/catalog.js +2 -0
  647. package/dist/esm/v3/task-catalog/catalog.js.map +1 -0
  648. package/dist/esm/v3/task-catalog/index.d.ts +18 -0
  649. package/dist/esm/v3/task-catalog/index.js +45 -0
  650. package/dist/esm/v3/task-catalog/index.js.map +1 -0
  651. package/dist/esm/v3/task-catalog/noopTaskCatalog.d.ts +13 -0
  652. package/dist/esm/v3/task-catalog/noopTaskCatalog.js +27 -0
  653. package/dist/esm/v3/task-catalog/noopTaskCatalog.js.map +1 -0
  654. package/dist/esm/v3/task-catalog/standardTaskCatalog.d.ts +16 -0
  655. package/dist/esm/v3/task-catalog/standardTaskCatalog.js +80 -0
  656. package/dist/esm/v3/task-catalog/standardTaskCatalog.js.map +1 -0
  657. package/dist/esm/v3/task-catalog-api.d.ts +3 -0
  658. package/dist/esm/v3/task-catalog-api.js +6 -0
  659. package/dist/esm/v3/task-catalog-api.js.map +1 -0
  660. package/dist/esm/v3/task-context-api.d.ts +3 -0
  661. package/dist/esm/v3/task-context-api.js +6 -0
  662. package/dist/esm/v3/task-context-api.js.map +1 -0
  663. package/dist/esm/v3/taskContext/index.d.ts +17 -0
  664. package/dist/esm/v3/taskContext/index.js +80 -0
  665. package/dist/esm/v3/taskContext/index.js.map +1 -0
  666. package/dist/esm/v3/taskContext/otelProcessors.d.ts +18 -0
  667. package/dist/esm/v3/taskContext/otelProcessors.js +52 -0
  668. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -0
  669. package/dist/esm/v3/taskContext/types.d.ts +5 -0
  670. package/dist/esm/v3/taskContext/types.js +2 -0
  671. package/dist/esm/v3/taskContext/types.js.map +1 -0
  672. package/dist/{tracer-N0p2Fuuv.d.ts → esm/v3/tracer.d.ts} +4 -7
  673. package/dist/esm/v3/tracer.js +96 -0
  674. package/dist/esm/v3/tracer.js.map +1 -0
  675. package/dist/esm/v3/types/index.d.ts +69 -0
  676. package/dist/esm/v3/types/index.js +2 -0
  677. package/dist/esm/v3/types/index.js.map +1 -0
  678. package/dist/esm/v3/types/utils.d.ts +6 -0
  679. package/dist/esm/v3/types/utils.js +2 -0
  680. package/dist/esm/v3/types/utils.js.map +1 -0
  681. package/dist/esm/v3/usage/api.d.ts +13 -0
  682. package/dist/esm/v3/usage/api.js +37 -0
  683. package/dist/esm/v3/usage/api.js.map +1 -0
  684. package/dist/esm/v3/usage/devUsageManager.d.ts +23 -0
  685. package/dist/esm/v3/usage/devUsageManager.js +86 -0
  686. package/dist/esm/v3/usage/devUsageManager.js.map +1 -0
  687. package/dist/esm/v3/usage/noopUsageManager.d.ts +8 -0
  688. package/dist/esm/v3/usage/noopUsageManager.js +20 -0
  689. package/dist/esm/v3/usage/noopUsageManager.js.map +1 -0
  690. package/dist/esm/v3/usage/prodUsageManager.d.ts +23 -0
  691. package/dist/esm/v3/usage/prodUsageManager.js +81 -0
  692. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -0
  693. package/dist/esm/v3/usage/types.d.ts +14 -0
  694. package/dist/esm/v3/usage/types.js +2 -0
  695. package/dist/esm/v3/usage/types.js.map +1 -0
  696. package/dist/esm/v3/usage/usageClient.d.ts +13 -0
  697. package/dist/esm/v3/usage/usageClient.js +33 -0
  698. package/dist/esm/v3/usage/usageClient.js.map +1 -0
  699. package/dist/esm/v3/usage-api.d.ts +3 -0
  700. package/dist/esm/v3/usage-api.js +6 -0
  701. package/dist/esm/v3/usage-api.js.map +1 -0
  702. package/dist/esm/v3/utils/durations.d.ts +13 -0
  703. package/dist/esm/v3/utils/durations.js +64 -0
  704. package/dist/esm/v3/utils/durations.js.map +1 -0
  705. package/dist/esm/v3/utils/flattenAttributes.d.ts +5 -0
  706. package/dist/esm/v3/utils/flattenAttributes.js +140 -0
  707. package/dist/esm/v3/utils/flattenAttributes.js.map +1 -0
  708. package/dist/esm/v3/utils/getEnv.d.ts +1 -0
  709. package/dist/esm/v3/utils/getEnv.js +8 -0
  710. package/dist/esm/v3/utils/getEnv.js.map +1 -0
  711. package/dist/esm/v3/utils/globals.d.ts +19 -0
  712. package/dist/esm/v3/utils/globals.js +23 -0
  713. package/dist/esm/v3/utils/globals.js.map +1 -0
  714. package/dist/esm/v3/utils/ioSerialization.d.ts +18 -0
  715. package/dist/esm/v3/utils/ioSerialization.js +271 -0
  716. package/dist/esm/v3/utils/ioSerialization.js.map +1 -0
  717. package/dist/esm/v3/utils/omit.d.ts +1 -0
  718. package/dist/esm/v3/utils/omit.js +10 -0
  719. package/dist/esm/v3/utils/omit.js.map +1 -0
  720. package/dist/esm/v3/utils/platform.d.ts +1 -0
  721. package/dist/esm/v3/utils/platform.js +2 -0
  722. package/dist/esm/v3/utils/platform.js.map +1 -0
  723. package/dist/{v3/utils/retries.d.mts → esm/v3/utils/retries.d.ts} +5 -9
  724. package/dist/esm/v3/utils/retries.js +40 -0
  725. package/dist/esm/v3/utils/retries.js.map +1 -0
  726. package/dist/esm/v3/utils/safeAsyncLocalStorage.d.ts +6 -0
  727. package/dist/esm/v3/utils/safeAsyncLocalStorage.js +14 -0
  728. package/dist/esm/v3/utils/safeAsyncLocalStorage.js.map +1 -0
  729. package/dist/{v3/utils/structuredLogger.d.mts → esm/v3/utils/structuredLogger.d.ts} +4 -5
  730. package/dist/esm/v3/utils/structuredLogger.js +60 -0
  731. package/dist/esm/v3/utils/structuredLogger.js.map +1 -0
  732. package/dist/esm/v3/utils/styleAttributes.d.ts +3 -0
  733. package/dist/esm/v3/utils/styleAttributes.js +6 -0
  734. package/dist/esm/v3/utils/styleAttributes.js.map +1 -0
  735. package/dist/esm/v3/utils/timers.d.ts +3 -0
  736. package/dist/esm/v3/utils/timers.js +21 -0
  737. package/dist/esm/v3/utils/timers.js.map +1 -0
  738. package/dist/esm/v3/workers/index.d.ts +12 -0
  739. package/dist/esm/v3/workers/index.js +12 -0
  740. package/dist/esm/v3/workers/index.js.map +1 -0
  741. package/dist/esm/v3/workers/taskExecutor.d.ts +27 -0
  742. package/dist/esm/v3/workers/taskExecutor.js +341 -0
  743. package/dist/esm/v3/workers/taskExecutor.js.map +1 -0
  744. package/dist/{v3/zodIpc.d.mts → esm/v3/zodIpc.d.ts} +7 -9
  745. package/dist/esm/v3/zodIpc.js +202 -0
  746. package/dist/esm/v3/zodIpc.js.map +1 -0
  747. package/dist/{v3/zodMessageHandler.d.mts → esm/v3/zodMessageHandler.d.ts} +19 -18
  748. package/dist/esm/v3/zodMessageHandler.js +197 -0
  749. package/dist/esm/v3/zodMessageHandler.js.map +1 -0
  750. package/dist/esm/v3/zodNamespace.d.ts +34 -0
  751. package/dist/esm/v3/zodNamespace.js +92 -0
  752. package/dist/esm/v3/zodNamespace.js.map +1 -0
  753. package/dist/{v3/zodSocket.d.mts → esm/v3/zodSocket.d.ts} +22 -24
  754. package/dist/esm/v3/zodSocket.js +224 -0
  755. package/dist/esm/v3/zodSocket.js.map +1 -0
  756. package/dist/esm/v3/zodfetch.d.ts +3 -0
  757. package/dist/esm/v3/zodfetch.js +4 -0
  758. package/dist/esm/v3/zodfetch.js.map +1 -0
  759. package/dist/esm/version.d.ts +1 -0
  760. package/dist/esm/version.js +2 -0
  761. package/dist/esm/version.js.map +1 -0
  762. package/dist/esm/versions.d.ts +9 -0
  763. package/dist/esm/versions.js +19 -0
  764. package/dist/esm/versions.js.map +1 -0
  765. package/package.json +352 -178
  766. package/dist/catalog-1uqiDu4t.d.ts +0 -202
  767. package/dist/catalog-HfeyVfYa.d.mts +0 -202
  768. package/dist/eventFilterMatches.d.mts +0 -6
  769. package/dist/eventFilterMatches.d.ts +0 -6
  770. package/dist/eventFilterMatches.js +0 -165
  771. package/dist/eventFilterMatches.js.map +0 -1
  772. package/dist/eventFilterMatches.mjs +0 -163
  773. package/dist/eventFilterMatches.mjs.map +0 -1
  774. package/dist/index.d.mts +0 -17
  775. package/dist/index.d.ts +0 -17
  776. package/dist/index.js +0 -2050
  777. package/dist/index.js.map +0 -1
  778. package/dist/index.mjs +0 -1868
  779. package/dist/index.mjs.map +0 -1
  780. package/dist/replacements.d.mts +0 -22
  781. package/dist/replacements.d.ts +0 -22
  782. package/dist/replacements.js +0 -33
  783. package/dist/replacements.js.map +0 -1
  784. package/dist/replacements.mjs +0 -28
  785. package/dist/replacements.mjs.map +0 -1
  786. package/dist/requestFilterMatches.d.mts +0 -13
  787. package/dist/requestFilterMatches.d.ts +0 -13
  788. package/dist/requestFilterMatches.js +0 -238
  789. package/dist/requestFilterMatches.js.map +0 -1
  790. package/dist/requestFilterMatches.mjs +0 -235
  791. package/dist/requestFilterMatches.mjs.map +0 -1
  792. package/dist/retry.d.mts +0 -10
  793. package/dist/retry.d.ts +0 -10
  794. package/dist/retry.js +0 -100
  795. package/dist/retry.js.map +0 -1
  796. package/dist/retry.mjs +0 -97
  797. package/dist/retry.mjs.map +0 -1
  798. package/dist/schemas/index.d.mts +0 -2611
  799. package/dist/schemas/index.d.ts +0 -2611
  800. package/dist/schemas/index.js +0 -1630
  801. package/dist/schemas/index.js.map +0 -1
  802. package/dist/schemas/index.mjs +0 -1463
  803. package/dist/schemas/index.mjs.map +0 -1
  804. package/dist/types.js +0 -4
  805. package/dist/types.js.map +0 -1
  806. package/dist/types.mjs +0 -3
  807. package/dist/types.mjs.map +0 -1
  808. package/dist/utils.d.mts +0 -7
  809. package/dist/utils.d.ts +0 -7
  810. package/dist/utils.js +0 -33
  811. package/dist/utils.js.map +0 -1
  812. package/dist/utils.mjs +0 -30
  813. package/dist/utils.mjs.map +0 -1
  814. package/dist/v3/dev/index.js +0 -93
  815. package/dist/v3/dev/index.js.map +0 -1
  816. package/dist/v3/dev/index.mjs +0 -91
  817. package/dist/v3/dev/index.mjs.map +0 -1
  818. package/dist/v3/errors.d.mts +0 -39
  819. package/dist/v3/errors.d.ts +0 -39
  820. package/dist/v3/errors.js +0 -204
  821. package/dist/v3/errors.js.map +0 -1
  822. package/dist/v3/errors.mjs +0 -195
  823. package/dist/v3/errors.mjs.map +0 -1
  824. package/dist/v3/index.d.mts +0 -520
  825. package/dist/v3/index.d.ts +0 -520
  826. package/dist/v3/index.js +0 -4725
  827. package/dist/v3/index.js.map +0 -1
  828. package/dist/v3/index.mjs +0 -4512
  829. package/dist/v3/index.mjs.map +0 -1
  830. package/dist/v3/logger-api.js +0 -118
  831. package/dist/v3/logger-api.js.map +0 -1
  832. package/dist/v3/logger-api.mjs +0 -116
  833. package/dist/v3/logger-api.mjs.map +0 -1
  834. package/dist/v3/otel/index.js +0 -492
  835. package/dist/v3/otel/index.js.map +0 -1
  836. package/dist/v3/otel/index.mjs +0 -489
  837. package/dist/v3/otel/index.mjs.map +0 -1
  838. package/dist/v3/prod/index.js +0 -180
  839. package/dist/v3/prod/index.js.map +0 -1
  840. package/dist/v3/prod/index.mjs +0 -178
  841. package/dist/v3/prod/index.mjs.map +0 -1
  842. package/dist/v3/schemas/index.js +0 -2054
  843. package/dist/v3/schemas/index.js.map +0 -1
  844. package/dist/v3/schemas/index.mjs +0 -1913
  845. package/dist/v3/schemas/index.mjs.map +0 -1
  846. package/dist/v3/semanticInternalAttributes.js +0 -61
  847. package/dist/v3/semanticInternalAttributes.js.map +0 -1
  848. package/dist/v3/semanticInternalAttributes.mjs +0 -59
  849. package/dist/v3/semanticInternalAttributes.mjs.map +0 -1
  850. package/dist/v3/utils/durations.d.mts +0 -15
  851. package/dist/v3/utils/durations.d.ts +0 -15
  852. package/dist/v3/utils/durations.js +0 -93
  853. package/dist/v3/utils/durations.js.map +0 -1
  854. package/dist/v3/utils/durations.mjs +0 -82
  855. package/dist/v3/utils/durations.mjs.map +0 -1
  856. package/dist/v3/utils/flattenAttributes.d.mts +0 -8
  857. package/dist/v3/utils/flattenAttributes.d.ts +0 -8
  858. package/dist/v3/utils/flattenAttributes.js +0 -131
  859. package/dist/v3/utils/flattenAttributes.js.map +0 -1
  860. package/dist/v3/utils/flattenAttributes.mjs +0 -126
  861. package/dist/v3/utils/flattenAttributes.mjs.map +0 -1
  862. package/dist/v3/utils/ioSerialization.d.mts +0 -21
  863. package/dist/v3/utils/ioSerialization.d.ts +0 -21
  864. package/dist/v3/utils/ioSerialization.js +0 -2392
  865. package/dist/v3/utils/ioSerialization.js.map +0 -1
  866. package/dist/v3/utils/ioSerialization.mjs +0 -2383
  867. package/dist/v3/utils/ioSerialization.mjs.map +0 -1
  868. package/dist/v3/utils/omit.d.mts +0 -3
  869. package/dist/v3/utils/omit.d.ts +0 -3
  870. package/dist/v3/utils/omit.js +0 -20
  871. package/dist/v3/utils/omit.js.map +0 -1
  872. package/dist/v3/utils/omit.mjs +0 -18
  873. package/dist/v3/utils/omit.mjs.map +0 -1
  874. package/dist/v3/utils/retries.js +0 -118
  875. package/dist/v3/utils/retries.js.map +0 -1
  876. package/dist/v3/utils/retries.mjs +0 -113
  877. package/dist/v3/utils/retries.mjs.map +0 -1
  878. package/dist/v3/utils/structuredLogger.js +0 -88
  879. package/dist/v3/utils/structuredLogger.js.map +0 -1
  880. package/dist/v3/utils/structuredLogger.mjs +0 -86
  881. package/dist/v3/utils/structuredLogger.mjs.map +0 -1
  882. package/dist/v3/utils/timers.d.mts +0 -6
  883. package/dist/v3/utils/timers.d.ts +0 -6
  884. package/dist/v3/utils/timers.js +0 -31
  885. package/dist/v3/utils/timers.js.map +0 -1
  886. package/dist/v3/utils/timers.mjs +0 -28
  887. package/dist/v3/utils/timers.mjs.map +0 -1
  888. package/dist/v3/workers/index.d.mts +0 -144
  889. package/dist/v3/workers/index.d.ts +0 -144
  890. package/dist/v3/workers/index.js +0 -3708
  891. package/dist/v3/workers/index.js.map +0 -1
  892. package/dist/v3/workers/index.mjs +0 -3689
  893. package/dist/v3/workers/index.mjs.map +0 -1
  894. package/dist/v3/zodIpc.js +0 -268
  895. package/dist/v3/zodIpc.js.map +0 -1
  896. package/dist/v3/zodIpc.mjs +0 -266
  897. package/dist/v3/zodIpc.mjs.map +0 -1
  898. package/dist/v3/zodMessageHandler.js +0 -222
  899. package/dist/v3/zodMessageHandler.js.map +0 -1
  900. package/dist/v3/zodMessageHandler.mjs +0 -217
  901. package/dist/v3/zodMessageHandler.mjs.map +0 -1
  902. package/dist/v3/zodNamespace.d.mts +0 -3663
  903. package/dist/v3/zodNamespace.d.ts +0 -3663
  904. package/dist/v3/zodNamespace.js +0 -397
  905. package/dist/v3/zodNamespace.js.map +0 -1
  906. package/dist/v3/zodNamespace.mjs +0 -395
  907. package/dist/v3/zodNamespace.mjs.map +0 -1
  908. package/dist/v3/zodSocket.js +0 -350
  909. package/dist/v3/zodSocket.js.map +0 -1
  910. package/dist/v3/zodSocket.mjs +0 -346
  911. package/dist/v3/zodSocket.mjs.map +0 -1
  912. package/dist/v3/zodfetch.d.mts +0 -219
  913. package/dist/v3/zodfetch.d.ts +0 -219
  914. package/dist/v3/zodfetch.js +0 -834
  915. package/dist/v3/zodfetch.js.map +0 -1
  916. package/dist/v3/zodfetch.mjs +0 -811
  917. package/dist/v3/zodfetch.mjs.map +0 -1
  918. package/dist/versions.d.mts +0 -11
  919. package/dist/versions.d.ts +0 -11
  920. package/dist/versions.js +0 -31
  921. package/dist/versions.js.map +0 -1
  922. package/dist/versions.mjs +0 -27
  923. package/dist/versions.mjs.map +0 -1
package/dist/index.js DELETED
@@ -1,2050 +0,0 @@
1
- 'use strict';
2
-
3
- var ulidx = require('ulidx');
4
- var zod = require('zod');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
-
9
- // src/schemas/addMissingVersionField.ts
10
- function addMissingVersionField(val) {
11
- if (val !== null && typeof val === "object" && !("version" in val)) {
12
- return {
13
- ...val,
14
- version: "1"
15
- };
16
- }
17
- return val;
18
- }
19
- __name(addMissingVersionField, "addMissingVersionField");
20
- var ErrorWithStackSchema = zod.z.object({
21
- message: zod.z.string(),
22
- name: zod.z.string().optional(),
23
- stack: zod.z.string().optional()
24
- });
25
- var SchemaErrorSchema = zod.z.object({
26
- path: zod.z.array(zod.z.string()),
27
- message: zod.z.string()
28
- });
29
- var stringPatternMatchers = [
30
- zod.z.object({
31
- $endsWith: zod.z.string()
32
- }),
33
- zod.z.object({
34
- $startsWith: zod.z.string()
35
- }),
36
- zod.z.object({
37
- $ignoreCaseEquals: zod.z.string()
38
- })
39
- ];
40
- var EventMatcherSchema = zod.z.union([
41
- /** Match against a string */
42
- zod.z.array(zod.z.string()),
43
- /** Match against a number */
44
- zod.z.array(zod.z.number()),
45
- /** Match against a boolean */
46
- zod.z.array(zod.z.boolean()),
47
- zod.z.array(zod.z.union([
48
- ...stringPatternMatchers,
49
- zod.z.object({
50
- $exists: zod.z.boolean()
51
- }),
52
- zod.z.object({
53
- $isNull: zod.z.boolean()
54
- }),
55
- zod.z.object({
56
- $anythingBut: zod.z.union([
57
- zod.z.string(),
58
- zod.z.number(),
59
- zod.z.boolean()
60
- ])
61
- }),
62
- zod.z.object({
63
- $anythingBut: zod.z.union([
64
- zod.z.array(zod.z.string()),
65
- zod.z.array(zod.z.number()),
66
- zod.z.array(zod.z.boolean())
67
- ])
68
- }),
69
- zod.z.object({
70
- $gt: zod.z.number()
71
- }),
72
- zod.z.object({
73
- $lt: zod.z.number()
74
- }),
75
- zod.z.object({
76
- $gte: zod.z.number()
77
- }),
78
- zod.z.object({
79
- $lte: zod.z.number()
80
- }),
81
- zod.z.object({
82
- $between: zod.z.tuple([
83
- zod.z.number(),
84
- zod.z.number()
85
- ])
86
- }),
87
- zod.z.object({
88
- $includes: zod.z.union([
89
- zod.z.string(),
90
- zod.z.number(),
91
- zod.z.boolean()
92
- ])
93
- }),
94
- zod.z.object({
95
- $not: zod.z.union([
96
- zod.z.string(),
97
- zod.z.number(),
98
- zod.z.boolean()
99
- ])
100
- })
101
- ]))
102
- ]);
103
- var EventFilterSchema = zod.z.lazy(() => zod.z.record(zod.z.union([
104
- EventMatcherSchema,
105
- EventFilterSchema
106
- ])));
107
- var EventRuleSchema = zod.z.object({
108
- event: zod.z.string().or(zod.z.array(zod.z.string())),
109
- source: zod.z.string(),
110
- payload: EventFilterSchema.optional(),
111
- context: EventFilterSchema.optional()
112
- });
113
- var ConnectionAuthSchema = zod.z.object({
114
- type: zod.z.enum([
115
- "oauth2",
116
- "apiKey"
117
- ]),
118
- accessToken: zod.z.string(),
119
- scopes: zod.z.array(zod.z.string()).optional(),
120
- additionalFields: zod.z.record(zod.z.string()).optional()
121
- });
122
- var IntegrationMetadataSchema = zod.z.object({
123
- id: zod.z.string(),
124
- name: zod.z.string(),
125
- instructions: zod.z.string().optional()
126
- });
127
- var IntegrationConfigSchema = zod.z.object({
128
- id: zod.z.string(),
129
- metadata: IntegrationMetadataSchema,
130
- authSource: zod.z.enum([
131
- "HOSTED",
132
- "LOCAL",
133
- "RESOLVER"
134
- ])
135
- });
136
- var LiteralSchema = zod.z.union([
137
- zod.z.string(),
138
- zod.z.number(),
139
- zod.z.boolean(),
140
- zod.z.null()
141
- ]);
142
- var DeserializedJsonSchema = zod.z.lazy(() => zod.z.union([
143
- LiteralSchema,
144
- zod.z.array(DeserializedJsonSchema),
145
- zod.z.record(DeserializedJsonSchema)
146
- ]));
147
- var SerializableSchema = zod.z.union([
148
- zod.z.string(),
149
- zod.z.number(),
150
- zod.z.boolean(),
151
- zod.z.null(),
152
- zod.z.date(),
153
- zod.z.undefined(),
154
- zod.z.symbol()
155
- ]);
156
- var SerializableJsonSchema = zod.z.lazy(() => zod.z.union([
157
- SerializableSchema,
158
- zod.z.array(SerializableJsonSchema),
159
- zod.z.record(SerializableJsonSchema)
160
- ]));
161
- var DisplayPropertySchema = zod.z.object({
162
- /** The label for the property */
163
- label: zod.z.string(),
164
- /** The value of the property */
165
- text: zod.z.string(),
166
- /** The URL to link to when the property is clicked */
167
- url: zod.z.string().optional(),
168
- /** The URL to a list of images to display next to the property */
169
- imageUrl: zod.z.array(zod.z.string()).optional()
170
- });
171
- var DisplayPropertiesSchema = zod.z.array(DisplayPropertySchema);
172
- var StyleSchema = zod.z.object({
173
- /** The style, `normal` or `minimal` */
174
- style: zod.z.enum([
175
- "normal",
176
- "minimal"
177
- ]),
178
- /** A variant of the style. */
179
- variant: zod.z.string().optional()
180
- });
181
- var SCHEDULED_EVENT = "dev.trigger.scheduled";
182
- var ScheduledPayloadSchema = zod.z.object({
183
- ts: zod.z.coerce.date(),
184
- lastTimestamp: zod.z.coerce.date().optional()
185
- });
186
- var IntervalOptionsSchema = zod.z.object({
187
- /** The number of seconds for the interval. Min = 20, Max = 2_592_000 (30 days) */
188
- seconds: zod.z.number().int().positive().min(20).max(2592e3)
189
- });
190
- var CronOptionsSchema = zod.z.object({
191
- /** A CRON expression that defines the schedule. A useful tool when writing CRON
192
- expressions is [crontab guru](https://crontab.guru). Note that the timezone
193
- used is UTC. */
194
- cron: zod.z.string()
195
- });
196
- var CronMetadataSchema = zod.z.object({
197
- type: zod.z.literal("cron"),
198
- options: CronOptionsSchema,
199
- /** An optional Account ID to associate with runs triggered by this interval */
200
- accountId: zod.z.string().optional(),
201
- metadata: zod.z.any()
202
- });
203
- var IntervalMetadataSchema = zod.z.object({
204
- /** An interval reoccurs at the specified number of seconds */
205
- type: zod.z.literal("interval"),
206
- /** An object containing options about the interval. */
207
- options: IntervalOptionsSchema,
208
- /** An optional Account ID to associate with runs triggered by this interval */
209
- accountId: zod.z.string().optional(),
210
- /** Any additional metadata about the schedule. */
211
- metadata: zod.z.any()
212
- });
213
- var ScheduleMetadataSchema = zod.z.discriminatedUnion("type", [
214
- IntervalMetadataSchema,
215
- CronMetadataSchema
216
- ]);
217
- var RegisterDynamicSchedulePayloadSchema = zod.z.object({
218
- id: zod.z.string(),
219
- jobs: zod.z.array(zod.z.object({
220
- id: zod.z.string(),
221
- version: zod.z.string()
222
- }))
223
- });
224
- var TaskStatusSchema = zod.z.enum([
225
- "PENDING",
226
- "WAITING",
227
- "RUNNING",
228
- "COMPLETED",
229
- "ERRORED",
230
- "CANCELED"
231
- ]);
232
- var TaskSchema = zod.z.object({
233
- id: zod.z.string(),
234
- name: zod.z.string(),
235
- icon: zod.z.string().optional().nullable(),
236
- noop: zod.z.boolean(),
237
- startedAt: zod.z.coerce.date().optional().nullable(),
238
- completedAt: zod.z.coerce.date().optional().nullable(),
239
- delayUntil: zod.z.coerce.date().optional().nullable(),
240
- status: TaskStatusSchema,
241
- description: zod.z.string().optional().nullable(),
242
- properties: zod.z.array(DisplayPropertySchema).optional().nullable(),
243
- outputProperties: zod.z.array(DisplayPropertySchema).optional().nullable(),
244
- params: DeserializedJsonSchema.optional().nullable(),
245
- output: DeserializedJsonSchema.optional().nullable(),
246
- context: DeserializedJsonSchema.optional().nullable(),
247
- error: zod.z.string().optional().nullable(),
248
- parentId: zod.z.string().optional().nullable(),
249
- style: StyleSchema.optional().nullable(),
250
- operation: zod.z.string().optional().nullable(),
251
- callbackUrl: zod.z.string().optional().nullable(),
252
- childExecutionMode: zod.z.enum([
253
- "SEQUENTIAL",
254
- "PARALLEL"
255
- ]).optional().nullable()
256
- });
257
- var ServerTaskSchema = TaskSchema.extend({
258
- idempotencyKey: zod.z.string(),
259
- attempts: zod.z.number(),
260
- forceYield: zod.z.boolean().optional().nullable()
261
- });
262
- var CachedTaskSchema = zod.z.object({
263
- id: zod.z.string(),
264
- idempotencyKey: zod.z.string(),
265
- status: TaskStatusSchema,
266
- noop: zod.z.boolean().default(false),
267
- output: DeserializedJsonSchema.optional().nullable(),
268
- parentId: zod.z.string().optional().nullable()
269
- });
270
- var EventExampleSchema = zod.z.object({
271
- id: zod.z.string(),
272
- icon: zod.z.string().optional(),
273
- name: zod.z.string(),
274
- payload: zod.z.any()
275
- });
276
- var EventSpecificationSchema = zod.z.object({
277
- name: zod.z.string().or(zod.z.array(zod.z.string())),
278
- title: zod.z.string(),
279
- source: zod.z.string(),
280
- icon: zod.z.string(),
281
- filter: EventFilterSchema.optional(),
282
- properties: zod.z.array(DisplayPropertySchema).optional(),
283
- schema: zod.z.any().optional(),
284
- examples: zod.z.array(EventExampleSchema).optional()
285
- });
286
- var DynamicTriggerMetadataSchema = zod.z.object({
287
- type: zod.z.literal("dynamic"),
288
- id: zod.z.string()
289
- });
290
- var TriggerHelpSchema = zod.z.object({
291
- noRuns: zod.z.object({
292
- text: zod.z.string(),
293
- link: zod.z.string().optional()
294
- }).optional()
295
- });
296
- var StaticTriggerMetadataSchema = zod.z.object({
297
- type: zod.z.literal("static"),
298
- title: zod.z.union([
299
- zod.z.string(),
300
- zod.z.array(zod.z.string())
301
- ]),
302
- properties: zod.z.array(DisplayPropertySchema).optional(),
303
- rule: EventRuleSchema,
304
- link: zod.z.string().optional(),
305
- help: TriggerHelpSchema.optional()
306
- });
307
- var InvokeTriggerMetadataSchema = zod.z.object({
308
- type: zod.z.literal("invoke")
309
- });
310
- var ScheduledTriggerMetadataSchema = zod.z.object({
311
- type: zod.z.literal("scheduled"),
312
- schedule: ScheduleMetadataSchema
313
- });
314
- var TriggerMetadataSchema = zod.z.discriminatedUnion("type", [
315
- DynamicTriggerMetadataSchema,
316
- StaticTriggerMetadataSchema,
317
- ScheduledTriggerMetadataSchema,
318
- InvokeTriggerMetadataSchema
319
- ]);
320
- var StatusUpdateStateSchema = zod.z.union([
321
- zod.z.literal("loading"),
322
- zod.z.literal("success"),
323
- zod.z.literal("failure")
324
- ]);
325
- var StatusUpdateDataSchema = zod.z.record(SerializableJsonSchema);
326
- var StatusUpdateSchema = zod.z.object({
327
- label: zod.z.string().optional(),
328
- state: StatusUpdateStateSchema.optional(),
329
- data: StatusUpdateDataSchema.optional()
330
- });
331
- var InitalStatusUpdateSchema = StatusUpdateSchema.required({
332
- label: true
333
- });
334
- var StatusHistorySchema = zod.z.array(StatusUpdateSchema);
335
- var JobRunStatusRecordSchema = InitalStatusUpdateSchema.extend({
336
- key: zod.z.string(),
337
- history: StatusHistorySchema
338
- });
339
-
340
- // src/schemas/runs.ts
341
- var RunStatusSchema = zod.z.union([
342
- zod.z.literal("PENDING"),
343
- zod.z.literal("QUEUED"),
344
- zod.z.literal("WAITING_ON_CONNECTIONS"),
345
- zod.z.literal("PREPROCESSING"),
346
- zod.z.literal("STARTED"),
347
- zod.z.literal("SUCCESS"),
348
- zod.z.literal("FAILURE"),
349
- zod.z.literal("TIMED_OUT"),
350
- zod.z.literal("ABORTED"),
351
- zod.z.literal("CANCELED"),
352
- zod.z.literal("UNRESOLVED_AUTH"),
353
- zod.z.literal("INVALID_PAYLOAD"),
354
- zod.z.literal("EXECUTING"),
355
- zod.z.literal("WAITING_TO_CONTINUE"),
356
- zod.z.literal("WAITING_TO_EXECUTE")
357
- ]);
358
- var RunTaskSchema = zod.z.object({
359
- /** The Task id */
360
- id: zod.z.string(),
361
- /** The key that you defined when creating the Task, the first param in any task. */
362
- displayKey: zod.z.string().nullable(),
363
- /** The Task status */
364
- status: TaskStatusSchema,
365
- /** The name of the Task */
366
- name: zod.z.string(),
367
- /** The icon of the Task, a string.
368
- * For integrations, this will be a lowercase name of the company.
369
- * Can be used with the [@trigger.dev/companyicons](https://www.npmjs.com/package/@trigger.dev/companyicons) package to display an svg. */
370
- icon: zod.z.string().nullable(),
371
- /** When the task started */
372
- startedAt: zod.z.coerce.date().nullable(),
373
- /** When the task completed */
374
- completedAt: zod.z.coerce.date().nullable()
375
- });
376
- var RunTaskWithSubtasksSchema = RunTaskSchema.extend({
377
- subtasks: zod.z.lazy(() => RunTaskWithSubtasksSchema.array()).optional()
378
- });
379
- var GetRunOptionsSchema = zod.z.object({
380
- /** Return subtasks, which appear in a `subtasks` array on a task. @default false */
381
- subtasks: zod.z.boolean().optional(),
382
- /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
383
- cursor: zod.z.string().optional(),
384
- /** How many tasks you want to return in one go, max 50. @default 20 */
385
- take: zod.z.number().optional()
386
- });
387
- GetRunOptionsSchema.extend({
388
- /** If `true`, it returns the `params` and `output` of all tasks. @default false */
389
- taskdetails: zod.z.boolean().optional()
390
- });
391
- var RunSchema = zod.z.object({
392
- /** The Run id */
393
- id: zod.z.string(),
394
- /** The Run status */
395
- status: RunStatusSchema,
396
- /** When the run started */
397
- startedAt: zod.z.coerce.date().nullable(),
398
- /** When the run was last updated */
399
- updatedAt: zod.z.coerce.date().nullable(),
400
- /** When the run was completed */
401
- completedAt: zod.z.coerce.date().nullable()
402
- });
403
- var GetRunSchema = RunSchema.extend({
404
- /** The output of the run */
405
- output: zod.z.any().optional(),
406
- /** The tasks from the run */
407
- tasks: zod.z.array(RunTaskWithSubtasksSchema),
408
- /** Any status updates that were published from the run */
409
- statuses: zod.z.array(JobRunStatusRecordSchema).default([]),
410
- /** If there are more tasks, you can use this to get them */
411
- nextCursor: zod.z.string().optional()
412
- });
413
- zod.z.object({
414
- /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
415
- cursor: zod.z.string().optional(),
416
- /** How many runs you want to return in one go, max 50. @default 20 */
417
- take: zod.z.number().optional()
418
- });
419
- var GetRunsSchema = zod.z.object({
420
- /** The runs from the query */
421
- runs: RunSchema.array(),
422
- /** If there are more runs, you can use this to get them */
423
- nextCursor: zod.z.string().optional()
424
- });
425
- var StringMatchSchema = zod.z.union([
426
- /** Match against a string */
427
- zod.z.array(zod.z.string()),
428
- zod.z.array(zod.z.union(stringPatternMatchers))
429
- ]);
430
- var HTTPMethodUnionSchema = zod.z.union([
431
- zod.z.literal("GET"),
432
- zod.z.literal("POST"),
433
- zod.z.literal("PUT"),
434
- zod.z.literal("PATCH"),
435
- zod.z.literal("DELETE"),
436
- zod.z.literal("HEAD"),
437
- zod.z.literal("OPTIONS")
438
- ]);
439
- var RequestFilterSchema = zod.z.object({
440
- /** An array of HTTP methods to match.
441
- * For example, `["GET", "POST"]` will match both `GET` and `POST` Requests. */
442
- method: zod.z.array(HTTPMethodUnionSchema).optional(),
443
- /** An object of header key/values to match.
444
- * This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
445
-
446
- @example
447
- ```ts
448
- filter: {
449
- header: {
450
- "content-type": ["application/json"],
451
- },
452
- },
453
- ``` */
454
- headers: zod.z.record(StringMatchSchema).optional(),
455
- /** An object of query parameters to match.
456
- * This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
457
-
458
- @example
459
- ```ts
460
- filter: {
461
- query: {
462
- "hub.mode": [{ $startsWith: "sub" }],
463
- },
464
- },
465
- ``` */
466
- query: zod.z.record(StringMatchSchema).optional(),
467
- /** An object of key/values to match.
468
- * This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
469
- */
470
- body: EventFilterSchema.optional()
471
- });
472
- var ResponseFilterSchema = RequestFilterSchema.omit({
473
- method: true,
474
- query: true
475
- }).extend({
476
- status: zod.z.array(zod.z.number()).optional()
477
- });
478
-
479
- // src/schemas/api.ts
480
- var UpdateTriggerSourceBodyV1Schema = zod.z.object({
481
- registeredEvents: zod.z.array(zod.z.string()),
482
- secret: zod.z.string().optional(),
483
- data: SerializableJsonSchema.optional()
484
- });
485
- var UpdateTriggerSourceBodyV2Schema = zod.z.object({
486
- secret: zod.z.string().optional(),
487
- data: SerializableJsonSchema.optional(),
488
- options: zod.z.object({
489
- event: zod.z.array(zod.z.string())
490
- }).and(zod.z.record(zod.z.string(), zod.z.array(zod.z.string())).optional())
491
- });
492
- var UpdateWebhookBodySchema = zod.z.discriminatedUnion("active", [
493
- zod.z.object({
494
- active: zod.z.literal(false)
495
- }),
496
- zod.z.object({
497
- active: zod.z.literal(true),
498
- config: zod.z.record(zod.z.string().array())
499
- })
500
- ]);
501
- var RegisterHTTPTriggerSourceBodySchema = zod.z.object({
502
- type: zod.z.literal("HTTP"),
503
- url: zod.z.string().url()
504
- });
505
- var RegisterSMTPTriggerSourceBodySchema = zod.z.object({
506
- type: zod.z.literal("SMTP")
507
- });
508
- var RegisterSQSTriggerSourceBodySchema = zod.z.object({
509
- type: zod.z.literal("SQS")
510
- });
511
- var RegisterSourceChannelBodySchema = zod.z.discriminatedUnion("type", [
512
- RegisterHTTPTriggerSourceBodySchema,
513
- RegisterSMTPTriggerSourceBodySchema,
514
- RegisterSQSTriggerSourceBodySchema
515
- ]);
516
- var REGISTER_WEBHOOK = "dev.trigger.webhook.register";
517
- var DELIVER_WEBHOOK_REQUEST = "dev.trigger.webhook.deliver";
518
- var RegisterWebhookSourceSchema = zod.z.object({
519
- key: zod.z.string(),
520
- params: zod.z.any(),
521
- config: zod.z.any(),
522
- active: zod.z.boolean(),
523
- secret: zod.z.string(),
524
- url: zod.z.string(),
525
- data: DeserializedJsonSchema.optional(),
526
- clientId: zod.z.string().optional()
527
- });
528
- var RegisterWebhookPayloadSchema = zod.z.object({
529
- active: zod.z.boolean(),
530
- params: zod.z.any().optional(),
531
- config: zod.z.object({
532
- current: zod.z.record(zod.z.string().array()),
533
- desired: zod.z.record(zod.z.string().array())
534
- }),
535
- // from HTTP Endpoint
536
- url: zod.z.string(),
537
- secret: zod.z.string()
538
- });
539
- var REGISTER_SOURCE_EVENT_V1 = "dev.trigger.source.register";
540
- var REGISTER_SOURCE_EVENT_V2 = "dev.trigger.source.register.v2";
541
- var RegisterTriggerSourceSchema = zod.z.object({
542
- key: zod.z.string(),
543
- params: zod.z.any(),
544
- active: zod.z.boolean(),
545
- secret: zod.z.string(),
546
- data: DeserializedJsonSchema.optional(),
547
- channel: RegisterSourceChannelBodySchema,
548
- clientId: zod.z.string().optional()
549
- });
550
- zod.z.object({
551
- name: zod.z.string(),
552
- value: zod.z.string()
553
- });
554
- var RegisterSourceEventSchemaV1 = zod.z.object({
555
- /** The id of the source */
556
- id: zod.z.string(),
557
- source: RegisterTriggerSourceSchema,
558
- events: zod.z.array(zod.z.string()),
559
- missingEvents: zod.z.array(zod.z.string()),
560
- orphanedEvents: zod.z.array(zod.z.string()),
561
- dynamicTriggerId: zod.z.string().optional()
562
- });
563
- var RegisteredOptionsDiffSchema = zod.z.object({
564
- desired: zod.z.array(zod.z.string()),
565
- missing: zod.z.array(zod.z.string()),
566
- orphaned: zod.z.array(zod.z.string())
567
- });
568
- var RegisterSourceEventOptionsSchema = zod.z.object({
569
- event: RegisteredOptionsDiffSchema
570
- }).and(zod.z.record(zod.z.string(), RegisteredOptionsDiffSchema));
571
- var RegisterSourceEventSchemaV2 = zod.z.object({
572
- /** The id of the source */
573
- id: zod.z.string(),
574
- source: RegisterTriggerSourceSchema,
575
- options: RegisterSourceEventOptionsSchema,
576
- dynamicTriggerId: zod.z.string().optional()
577
- });
578
- var TriggerSourceSchema = zod.z.object({
579
- id: zod.z.string(),
580
- key: zod.z.string()
581
- });
582
- var HttpSourceResponseMetadataSchema = DeserializedJsonSchema;
583
- var HandleTriggerSourceSchema = zod.z.object({
584
- key: zod.z.string(),
585
- secret: zod.z.string(),
586
- data: zod.z.any(),
587
- params: zod.z.any(),
588
- auth: ConnectionAuthSchema.optional(),
589
- metadata: HttpSourceResponseMetadataSchema.optional()
590
- });
591
- var HttpSourceRequestHeadersSchema = zod.z.object({
592
- "x-ts-key": zod.z.string(),
593
- "x-ts-dynamic-id": zod.z.string().optional(),
594
- "x-ts-secret": zod.z.string(),
595
- "x-ts-data": zod.z.string().transform((s) => JSON.parse(s)),
596
- "x-ts-params": zod.z.string().transform((s) => JSON.parse(s)),
597
- "x-ts-http-url": zod.z.string(),
598
- "x-ts-http-method": zod.z.string(),
599
- "x-ts-http-headers": zod.z.string().transform((s) => zod.z.record(zod.z.string()).parse(JSON.parse(s))),
600
- "x-ts-auth": zod.z.string().optional().transform((s) => {
601
- if (s === void 0)
602
- return;
603
- const json = JSON.parse(s);
604
- return ConnectionAuthSchema.parse(json);
605
- }),
606
- "x-ts-metadata": zod.z.string().optional().transform((s) => {
607
- if (s === void 0)
608
- return;
609
- const json = JSON.parse(s);
610
- return DeserializedJsonSchema.parse(json);
611
- })
612
- });
613
- var HttpEndpointRequestHeadersSchema = zod.z.object({
614
- "x-ts-key": zod.z.string(),
615
- "x-ts-http-url": zod.z.string(),
616
- "x-ts-http-method": zod.z.string(),
617
- "x-ts-http-headers": zod.z.string().transform((s) => zod.z.record(zod.z.string()).parse(JSON.parse(s)))
618
- });
619
- var WebhookSourceRequestHeadersSchema = zod.z.object({
620
- "x-ts-key": zod.z.string(),
621
- "x-ts-dynamic-id": zod.z.string().optional(),
622
- "x-ts-secret": zod.z.string(),
623
- "x-ts-params": zod.z.string().transform((s) => JSON.parse(s)),
624
- "x-ts-http-url": zod.z.string(),
625
- "x-ts-http-method": zod.z.string(),
626
- "x-ts-http-headers": zod.z.string().transform((s) => zod.z.record(zod.z.string()).parse(JSON.parse(s)))
627
- });
628
- var PongSuccessResponseSchema = zod.z.object({
629
- ok: zod.z.literal(true),
630
- triggerVersion: zod.z.string().optional(),
631
- triggerSdkVersion: zod.z.string().optional()
632
- });
633
- var PongErrorResponseSchema = zod.z.object({
634
- ok: zod.z.literal(false),
635
- error: zod.z.string(),
636
- triggerVersion: zod.z.string().optional(),
637
- triggerSdkVersion: zod.z.string().optional()
638
- });
639
- var PongResponseSchema = zod.z.discriminatedUnion("ok", [
640
- PongSuccessResponseSchema,
641
- PongErrorResponseSchema
642
- ]);
643
- var ValidateSuccessResponseSchema = zod.z.object({
644
- ok: zod.z.literal(true),
645
- endpointId: zod.z.string(),
646
- triggerVersion: zod.z.string().optional()
647
- });
648
- var ValidateErrorResponseSchema = zod.z.object({
649
- ok: zod.z.literal(false),
650
- error: zod.z.string(),
651
- triggerVersion: zod.z.string().optional()
652
- });
653
- var ValidateResponseSchema = zod.z.discriminatedUnion("ok", [
654
- ValidateSuccessResponseSchema,
655
- ValidateErrorResponseSchema
656
- ]);
657
- var QueueOptionsSchema = zod.z.object({
658
- name: zod.z.string(),
659
- maxConcurrent: zod.z.number().optional()
660
- });
661
- var ConcurrencyLimitOptionsSchema = zod.z.object({
662
- id: zod.z.string(),
663
- limit: zod.z.number()
664
- });
665
- var JobMetadataSchema = zod.z.object({
666
- id: zod.z.string(),
667
- name: zod.z.string(),
668
- version: zod.z.string(),
669
- event: EventSpecificationSchema,
670
- trigger: TriggerMetadataSchema,
671
- integrations: zod.z.record(IntegrationConfigSchema),
672
- internal: zod.z.boolean().default(false),
673
- enabled: zod.z.boolean(),
674
- startPosition: zod.z.enum([
675
- "initial",
676
- "latest"
677
- ]),
678
- preprocessRuns: zod.z.boolean(),
679
- concurrencyLimit: ConcurrencyLimitOptionsSchema.or(zod.z.number().int().positive()).optional()
680
- });
681
- var SourceMetadataV1Schema = zod.z.object({
682
- version: zod.z.literal("1"),
683
- channel: zod.z.enum([
684
- "HTTP",
685
- "SQS",
686
- "SMTP"
687
- ]),
688
- integration: IntegrationConfigSchema,
689
- key: zod.z.string(),
690
- params: zod.z.any(),
691
- events: zod.z.array(zod.z.string()),
692
- registerSourceJob: zod.z.object({
693
- id: zod.z.string(),
694
- version: zod.z.string()
695
- }).optional()
696
- });
697
- var SourceMetadataV2Schema = zod.z.object({
698
- version: zod.z.literal("2"),
699
- channel: zod.z.enum([
700
- "HTTP",
701
- "SQS",
702
- "SMTP"
703
- ]),
704
- integration: IntegrationConfigSchema,
705
- key: zod.z.string(),
706
- params: zod.z.any(),
707
- options: zod.z.record(zod.z.array(zod.z.string())),
708
- registerSourceJob: zod.z.object({
709
- id: zod.z.string(),
710
- version: zod.z.string()
711
- }).optional()
712
- });
713
- var SourceMetadataSchema = zod.z.preprocess(addMissingVersionField, zod.z.discriminatedUnion("version", [
714
- SourceMetadataV1Schema,
715
- SourceMetadataV2Schema
716
- ]));
717
- var WebhookMetadataSchema = zod.z.object({
718
- key: zod.z.string(),
719
- params: zod.z.any(),
720
- config: zod.z.record(zod.z.array(zod.z.string())),
721
- integration: IntegrationConfigSchema,
722
- httpEndpoint: zod.z.object({
723
- id: zod.z.string()
724
- })
725
- });
726
- var WebhookContextMetadataSchema = zod.z.object({
727
- params: zod.z.any(),
728
- config: zod.z.record(zod.z.string().array()),
729
- secret: zod.z.string()
730
- });
731
- var DynamicTriggerEndpointMetadataSchema = zod.z.object({
732
- id: zod.z.string(),
733
- jobs: zod.z.array(JobMetadataSchema.pick({
734
- id: true,
735
- version: true
736
- })),
737
- registerSourceJob: zod.z.object({
738
- id: zod.z.string(),
739
- version: zod.z.string()
740
- }).optional()
741
- });
742
- var HttpEndpointMetadataSchema = zod.z.object({
743
- id: zod.z.string(),
744
- version: zod.z.string(),
745
- enabled: zod.z.boolean(),
746
- title: zod.z.string().optional(),
747
- icon: zod.z.string().optional(),
748
- properties: zod.z.array(DisplayPropertySchema).optional(),
749
- event: EventSpecificationSchema,
750
- immediateResponseFilter: RequestFilterSchema.optional(),
751
- skipTriggeringRuns: zod.z.boolean().optional(),
752
- source: zod.z.string()
753
- });
754
- var IndexEndpointResponseSchema = zod.z.object({
755
- jobs: zod.z.array(JobMetadataSchema),
756
- sources: zod.z.array(SourceMetadataSchema),
757
- webhooks: zod.z.array(WebhookMetadataSchema).optional(),
758
- dynamicTriggers: zod.z.array(DynamicTriggerEndpointMetadataSchema),
759
- dynamicSchedules: zod.z.array(RegisterDynamicSchedulePayloadSchema),
760
- httpEndpoints: zod.z.array(HttpEndpointMetadataSchema).optional()
761
- });
762
- var EndpointIndexErrorSchema = zod.z.object({
763
- message: zod.z.string(),
764
- raw: zod.z.any().optional()
765
- });
766
- var IndexEndpointStatsSchema = zod.z.object({
767
- jobs: zod.z.number(),
768
- sources: zod.z.number(),
769
- webhooks: zod.z.number().optional(),
770
- dynamicTriggers: zod.z.number(),
771
- dynamicSchedules: zod.z.number(),
772
- disabledJobs: zod.z.number().default(0),
773
- httpEndpoints: zod.z.number().default(0)
774
- });
775
- function parseEndpointIndexStats(stats) {
776
- if (stats === null || stats === void 0) {
777
- return;
778
- }
779
- return IndexEndpointStatsSchema.parse(stats);
780
- }
781
- __name(parseEndpointIndexStats, "parseEndpointIndexStats");
782
- var GetEndpointIndexResponseSchema = zod.z.discriminatedUnion("status", [
783
- zod.z.object({
784
- status: zod.z.literal("PENDING"),
785
- updatedAt: zod.z.coerce.date()
786
- }),
787
- zod.z.object({
788
- status: zod.z.literal("STARTED"),
789
- updatedAt: zod.z.coerce.date()
790
- }),
791
- zod.z.object({
792
- status: zod.z.literal("SUCCESS"),
793
- stats: IndexEndpointStatsSchema,
794
- updatedAt: zod.z.coerce.date()
795
- }),
796
- zod.z.object({
797
- status: zod.z.literal("FAILURE"),
798
- error: EndpointIndexErrorSchema,
799
- updatedAt: zod.z.coerce.date()
800
- })
801
- ]);
802
- var EndpointHeadersSchema = zod.z.object({
803
- "trigger-version": zod.z.string().optional(),
804
- "trigger-sdk-version": zod.z.string().optional()
805
- });
806
- var ExecuteJobRunMetadataSchema = zod.z.object({
807
- successSubscription: zod.z.boolean().optional(),
808
- failedSubscription: zod.z.boolean().optional()
809
- });
810
- var ExecuteJobHeadersSchema = EndpointHeadersSchema.extend({
811
- "x-trigger-run-metadata": zod.z.preprocess((val) => typeof val === "string" && JSON.parse(val), ExecuteJobRunMetadataSchema).optional()
812
- });
813
- var RawEventSchema = zod.z.object({
814
- /** The `name` property must exactly match any subscriptions you want to
815
- trigger. */
816
- name: zod.z.string(),
817
- /** The `payload` property will be sent to any matching Jobs and will appear
818
- as the `payload` param of the `run()` function. You can leave this
819
- parameter out if you just want to trigger a Job without any input data. */
820
- payload: zod.z.any(),
821
- /** The optional `context` property will be sent to any matching Jobs and will
822
- be passed through as the `context.event.context` param of the `run()`
823
- function. This is optional but can be useful if you want to pass through
824
- some additional context to the Job. */
825
- context: zod.z.any().optional(),
826
- /** The `id` property uniquely identify this particular event. If unset it
827
- will be set automatically using `ulid`. */
828
- id: zod.z.string().default(() => ulidx.ulid()),
829
- /** This is optional, it defaults to the current timestamp. Usually you would
830
- only set this if you have a timestamp that you wish to pass through, e.g.
831
- you receive a timestamp from a service and you want the same timestamp to
832
- be used in your Job. */
833
- timestamp: zod.z.coerce.date().optional(),
834
- /** This is optional, it defaults to "trigger.dev". It can be useful to set
835
- this as you can filter events using this in the `eventTrigger()`. */
836
- source: zod.z.string().optional(),
837
- /** This is optional, it defaults to "JSON". If your event is actually a request,
838
- with a url, headers, method and rawBody you can use "REQUEST" */
839
- payloadType: zod.z.union([
840
- zod.z.literal("JSON"),
841
- zod.z.literal("REQUEST")
842
- ]).optional()
843
- });
844
- var ApiEventLogSchema = zod.z.object({
845
- /** The `id` of the event that was sent.
846
- */
847
- id: zod.z.string(),
848
- /** The `name` of the event that was sent. */
849
- name: zod.z.string(),
850
- /** The `payload` of the event that was sent */
851
- payload: DeserializedJsonSchema,
852
- /** The `context` of the event that was sent. Is `undefined` if no context was
853
- set when sending the event. */
854
- context: DeserializedJsonSchema.optional().nullable(),
855
- /** The `timestamp` of the event that was sent */
856
- timestamp: zod.z.coerce.date(),
857
- /** The timestamp when the event will be delivered to any matching Jobs. Is
858
- `undefined` if `deliverAt` or `deliverAfter` wasn't set when sending the
859
- event. */
860
- deliverAt: zod.z.coerce.date().optional().nullable(),
861
- /** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
862
- or `deliverAfter` were set when sending the event. */
863
- deliveredAt: zod.z.coerce.date().optional().nullable(),
864
- /** The timestamp when the event was cancelled. Is `undefined` if the event
865
- * wasn't cancelled. */
866
- cancelledAt: zod.z.coerce.date().optional().nullable()
867
- });
868
- var SendEventOptionsSchema = zod.z.object({
869
- /** An optional Date when you want the event to trigger Jobs. The event will
870
- be sent to the platform immediately but won't be acted upon until the
871
- specified time. */
872
- deliverAt: zod.z.coerce.date().optional(),
873
- /** An optional number of seconds you want to wait for the event to trigger
874
- any relevant Jobs. The event will be sent to the platform immediately but
875
- won't be delivered until after the elapsed number of seconds. */
876
- deliverAfter: zod.z.number().int().optional(),
877
- /** This optional param will be used by Trigger.dev Connect, which
878
- is coming soon. */
879
- accountId: zod.z.string().optional()
880
- });
881
- var SendEventBodySchema = zod.z.object({
882
- event: RawEventSchema,
883
- options: SendEventOptionsSchema.optional()
884
- });
885
- var SendBulkEventsBodySchema = zod.z.object({
886
- events: RawEventSchema.array(),
887
- options: SendEventOptionsSchema.optional()
888
- });
889
- var DeliverEventResponseSchema = zod.z.object({
890
- deliveredAt: zod.z.string().datetime()
891
- });
892
- var RuntimeEnvironmentTypeSchema = zod.z.enum([
893
- "PRODUCTION",
894
- "STAGING",
895
- "DEVELOPMENT",
896
- "PREVIEW"
897
- ]);
898
- var RunSourceContextSchema = zod.z.object({
899
- id: zod.z.string(),
900
- metadata: zod.z.any()
901
- });
902
- var AutoYieldConfigSchema = zod.z.object({
903
- startTaskThreshold: zod.z.number(),
904
- beforeExecuteTaskThreshold: zod.z.number(),
905
- beforeCompleteTaskThreshold: zod.z.number(),
906
- afterCompleteTaskThreshold: zod.z.number()
907
- });
908
- var RunJobBodySchema = zod.z.object({
909
- event: ApiEventLogSchema,
910
- job: zod.z.object({
911
- id: zod.z.string(),
912
- version: zod.z.string()
913
- }),
914
- run: zod.z.object({
915
- id: zod.z.string(),
916
- isTest: zod.z.boolean(),
917
- isRetry: zod.z.boolean().default(false),
918
- startedAt: zod.z.coerce.date()
919
- }),
920
- environment: zod.z.object({
921
- id: zod.z.string(),
922
- slug: zod.z.string(),
923
- type: RuntimeEnvironmentTypeSchema
924
- }),
925
- organization: zod.z.object({
926
- id: zod.z.string(),
927
- title: zod.z.string(),
928
- slug: zod.z.string()
929
- }),
930
- project: zod.z.object({
931
- id: zod.z.string(),
932
- name: zod.z.string(),
933
- slug: zod.z.string()
934
- }).optional(),
935
- account: zod.z.object({
936
- id: zod.z.string(),
937
- metadata: zod.z.any()
938
- }).optional(),
939
- source: RunSourceContextSchema.optional(),
940
- tasks: zod.z.array(CachedTaskSchema).optional(),
941
- cachedTaskCursor: zod.z.string().optional(),
942
- noopTasksSet: zod.z.string().optional(),
943
- connections: zod.z.record(ConnectionAuthSchema).optional(),
944
- yieldedExecutions: zod.z.string().array().optional(),
945
- runChunkExecutionLimit: zod.z.number().optional(),
946
- autoYieldConfig: AutoYieldConfigSchema.optional()
947
- });
948
- var RunJobErrorSchema = zod.z.object({
949
- status: zod.z.literal("ERROR"),
950
- error: ErrorWithStackSchema,
951
- task: TaskSchema.optional()
952
- });
953
- var RunJobYieldExecutionErrorSchema = zod.z.object({
954
- status: zod.z.literal("YIELD_EXECUTION"),
955
- key: zod.z.string()
956
- });
957
- var AutoYieldMetadataSchema = zod.z.object({
958
- location: zod.z.string(),
959
- timeRemaining: zod.z.number(),
960
- timeElapsed: zod.z.number(),
961
- limit: zod.z.number().optional()
962
- });
963
- var RunJobAutoYieldExecutionErrorSchema = AutoYieldMetadataSchema.extend({
964
- status: zod.z.literal("AUTO_YIELD_EXECUTION")
965
- });
966
- var RunJobAutoYieldWithCompletedTaskExecutionErrorSchema = zod.z.object({
967
- status: zod.z.literal("AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK"),
968
- id: zod.z.string(),
969
- properties: zod.z.array(DisplayPropertySchema).optional(),
970
- output: zod.z.string().optional(),
971
- data: AutoYieldMetadataSchema
972
- });
973
- var RunJobAutoYieldRateLimitErrorSchema = zod.z.object({
974
- status: zod.z.literal("AUTO_YIELD_RATE_LIMIT"),
975
- reset: zod.z.coerce.number()
976
- });
977
- var RunJobInvalidPayloadErrorSchema = zod.z.object({
978
- status: zod.z.literal("INVALID_PAYLOAD"),
979
- errors: zod.z.array(SchemaErrorSchema)
980
- });
981
- var RunJobUnresolvedAuthErrorSchema = zod.z.object({
982
- status: zod.z.literal("UNRESOLVED_AUTH_ERROR"),
983
- issues: zod.z.record(zod.z.object({
984
- id: zod.z.string(),
985
- error: zod.z.string()
986
- }))
987
- });
988
- var RunJobResumeWithTaskSchema = zod.z.object({
989
- status: zod.z.literal("RESUME_WITH_TASK"),
990
- task: TaskSchema
991
- });
992
- var RunJobRetryWithTaskSchema = zod.z.object({
993
- status: zod.z.literal("RETRY_WITH_TASK"),
994
- task: TaskSchema,
995
- error: ErrorWithStackSchema,
996
- retryAt: zod.z.coerce.date()
997
- });
998
- var RunJobCanceledWithTaskSchema = zod.z.object({
999
- status: zod.z.literal("CANCELED"),
1000
- task: TaskSchema
1001
- });
1002
- var RunJobSuccessSchema = zod.z.object({
1003
- status: zod.z.literal("SUCCESS"),
1004
- output: DeserializedJsonSchema.optional()
1005
- });
1006
- var RunJobErrorResponseSchema = zod.z.union([
1007
- RunJobAutoYieldExecutionErrorSchema,
1008
- RunJobAutoYieldWithCompletedTaskExecutionErrorSchema,
1009
- RunJobYieldExecutionErrorSchema,
1010
- RunJobAutoYieldRateLimitErrorSchema,
1011
- RunJobErrorSchema,
1012
- RunJobUnresolvedAuthErrorSchema,
1013
- RunJobInvalidPayloadErrorSchema,
1014
- RunJobResumeWithTaskSchema,
1015
- RunJobRetryWithTaskSchema,
1016
- RunJobCanceledWithTaskSchema
1017
- ]);
1018
- var RunJobResumeWithParallelTaskSchema = zod.z.object({
1019
- status: zod.z.literal("RESUME_WITH_PARALLEL_TASK"),
1020
- task: TaskSchema,
1021
- childErrors: zod.z.array(RunJobErrorResponseSchema)
1022
- });
1023
- var RunJobResponseSchema = zod.z.discriminatedUnion("status", [
1024
- RunJobAutoYieldExecutionErrorSchema,
1025
- RunJobAutoYieldWithCompletedTaskExecutionErrorSchema,
1026
- RunJobYieldExecutionErrorSchema,
1027
- RunJobAutoYieldRateLimitErrorSchema,
1028
- RunJobErrorSchema,
1029
- RunJobUnresolvedAuthErrorSchema,
1030
- RunJobInvalidPayloadErrorSchema,
1031
- RunJobResumeWithTaskSchema,
1032
- RunJobResumeWithParallelTaskSchema,
1033
- RunJobRetryWithTaskSchema,
1034
- RunJobCanceledWithTaskSchema,
1035
- RunJobSuccessSchema
1036
- ]);
1037
- var PreprocessRunBodySchema = zod.z.object({
1038
- event: ApiEventLogSchema,
1039
- job: zod.z.object({
1040
- id: zod.z.string(),
1041
- version: zod.z.string()
1042
- }),
1043
- run: zod.z.object({
1044
- id: zod.z.string(),
1045
- isTest: zod.z.boolean()
1046
- }),
1047
- environment: zod.z.object({
1048
- id: zod.z.string(),
1049
- slug: zod.z.string(),
1050
- type: RuntimeEnvironmentTypeSchema
1051
- }),
1052
- organization: zod.z.object({
1053
- id: zod.z.string(),
1054
- title: zod.z.string(),
1055
- slug: zod.z.string()
1056
- }),
1057
- account: zod.z.object({
1058
- id: zod.z.string(),
1059
- metadata: zod.z.any()
1060
- }).optional()
1061
- });
1062
- var PreprocessRunResponseSchema = zod.z.object({
1063
- abort: zod.z.boolean(),
1064
- properties: zod.z.array(DisplayPropertySchema).optional()
1065
- });
1066
- var CreateRunResponseOkSchema = zod.z.object({
1067
- ok: zod.z.literal(true),
1068
- data: zod.z.object({
1069
- id: zod.z.string()
1070
- })
1071
- });
1072
- var CreateRunResponseErrorSchema = zod.z.object({
1073
- ok: zod.z.literal(false),
1074
- error: zod.z.string()
1075
- });
1076
- var CreateRunResponseBodySchema = zod.z.discriminatedUnion("ok", [
1077
- CreateRunResponseOkSchema,
1078
- CreateRunResponseErrorSchema
1079
- ]);
1080
- var RedactStringSchema = zod.z.object({
1081
- __redactedString: zod.z.literal(true),
1082
- strings: zod.z.array(zod.z.string()),
1083
- interpolations: zod.z.array(zod.z.string())
1084
- });
1085
- var LogMessageSchema = zod.z.object({
1086
- level: zod.z.enum([
1087
- "DEBUG",
1088
- "INFO",
1089
- "WARN",
1090
- "ERROR"
1091
- ]),
1092
- message: zod.z.string(),
1093
- data: SerializableJsonSchema.optional()
1094
- });
1095
- var RedactSchema = zod.z.object({
1096
- paths: zod.z.array(zod.z.string())
1097
- });
1098
- var RetryOptionsSchema = zod.z.object({
1099
- /** The maximum number of times to retry the request. */
1100
- limit: zod.z.number().optional(),
1101
- /** The exponential factor to use when calculating the next retry time. */
1102
- factor: zod.z.number().optional(),
1103
- /** The minimum amount of time to wait before retrying the request. */
1104
- minTimeoutInMs: zod.z.number().optional(),
1105
- /** The maximum amount of time to wait before retrying the request. */
1106
- maxTimeoutInMs: zod.z.number().optional(),
1107
- /** Whether to randomize the retry time. */
1108
- randomize: zod.z.boolean().optional()
1109
- });
1110
- var RunTaskOptionsSchema = zod.z.object({
1111
- /** The name of the Task is required. This is displayed on the Task in the logs. */
1112
- name: zod.z.string().optional(),
1113
- /** The Task will wait and only start at the specified Date */
1114
- delayUntil: zod.z.coerce.date().optional(),
1115
- /** Retry options */
1116
- retry: RetryOptionsSchema.optional(),
1117
- /** The icon for the Task, it will appear in the logs.
1118
- * You can use the name of a company in lowercase, e.g. "github".
1119
- * Or any icon name that [Tabler Icons](https://tabler-icons.io/) supports. */
1120
- icon: zod.z.string().optional(),
1121
- /** The key for the Task that you want to appear in the logs */
1122
- displayKey: zod.z.string().optional(),
1123
- /** A description of the Task */
1124
- description: zod.z.string().optional(),
1125
- /** Properties that are displayed in the logs */
1126
- properties: zod.z.array(DisplayPropertySchema).optional(),
1127
- /** The input params to the Task, will be displayed in the logs */
1128
- params: zod.z.any(),
1129
- /** The style of the log entry. */
1130
- style: StyleSchema.optional(),
1131
- /** Allows you to expose a `task.callbackUrl` to use in your tasks. Enabling this feature will cause the task to return the data sent to the callbackUrl instead of the usual async callback result. */
1132
- callback: zod.z.object({
1133
- /** Causes the task to wait for and return the data of the first request sent to `task.callbackUrl`. */
1134
- enabled: zod.z.boolean(),
1135
- /** Time to wait for the first request to `task.callbackUrl`. Default: One hour. */
1136
- timeoutInSeconds: zod.z.number()
1137
- }).partial().optional(),
1138
- /** Allows you to link the Integration connection in the logs. This is handled automatically in integrations. */
1139
- connectionKey: zod.z.string().optional(),
1140
- /** An operation you want to perform on the Trigger.dev platform, current only "fetch", "fetch-response", and "fetch-poll" is supported. If you wish to `fetch` use [`io.backgroundFetch()`](https://trigger.dev/docs/sdk/io/backgroundfetch) instead. */
1141
- operation: zod.z.enum([
1142
- "fetch",
1143
- "fetch-response",
1144
- "fetch-poll"
1145
- ]).optional(),
1146
- /** A No Operation means that the code won't be executed. This is used internally to implement features like [io.wait()](https://trigger.dev/docs/sdk/io/wait). */
1147
- noop: zod.z.boolean().default(false),
1148
- redact: RedactSchema.optional(),
1149
- parallel: zod.z.boolean().optional()
1150
- });
1151
- var RunTaskBodyInputSchema = RunTaskOptionsSchema.extend({
1152
- idempotencyKey: zod.z.string(),
1153
- parentId: zod.z.string().optional()
1154
- });
1155
- var RunTaskBodyOutputSchema = RunTaskBodyInputSchema.extend({
1156
- properties: zod.z.array(DisplayPropertySchema.partial()).optional(),
1157
- params: DeserializedJsonSchema.optional().nullable(),
1158
- callback: zod.z.object({
1159
- enabled: zod.z.boolean(),
1160
- timeoutInSeconds: zod.z.number().default(3600)
1161
- }).optional()
1162
- });
1163
- var RunTaskResponseWithCachedTasksBodySchema = zod.z.object({
1164
- task: ServerTaskSchema,
1165
- cachedTasks: zod.z.object({
1166
- tasks: zod.z.array(CachedTaskSchema),
1167
- cursor: zod.z.string().optional()
1168
- }).optional()
1169
- });
1170
- var CompleteTaskBodyInputSchema = RunTaskBodyInputSchema.pick({
1171
- properties: true,
1172
- description: true,
1173
- params: true
1174
- }).extend({
1175
- output: SerializableJsonSchema.optional().transform((v) => v ? DeserializedJsonSchema.parse(JSON.parse(JSON.stringify(v))) : {})
1176
- });
1177
- var CompleteTaskBodyV2InputSchema = RunTaskBodyInputSchema.pick({
1178
- properties: true,
1179
- description: true,
1180
- params: true
1181
- }).extend({
1182
- output: zod.z.string().optional()
1183
- });
1184
- var FailTaskBodyInputSchema = zod.z.object({
1185
- error: ErrorWithStackSchema
1186
- });
1187
- var NormalizedRequestSchema = zod.z.object({
1188
- headers: zod.z.record(zod.z.string()),
1189
- method: zod.z.string(),
1190
- query: zod.z.record(zod.z.string()),
1191
- url: zod.z.string(),
1192
- body: zod.z.any()
1193
- });
1194
- var NormalizedResponseSchema = zod.z.object({
1195
- status: zod.z.number(),
1196
- body: zod.z.any(),
1197
- headers: zod.z.record(zod.z.string()).optional()
1198
- });
1199
- var HttpSourceResponseSchema = zod.z.object({
1200
- response: NormalizedResponseSchema,
1201
- events: zod.z.array(RawEventSchema),
1202
- metadata: HttpSourceResponseMetadataSchema.optional()
1203
- });
1204
- var WebhookDeliveryResponseSchema = zod.z.object({
1205
- response: NormalizedResponseSchema,
1206
- verified: zod.z.boolean(),
1207
- error: zod.z.string().optional()
1208
- });
1209
- var RegisterTriggerBodySchemaV1 = zod.z.object({
1210
- rule: EventRuleSchema,
1211
- source: SourceMetadataV1Schema
1212
- });
1213
- var RegisterTriggerBodySchemaV2 = zod.z.object({
1214
- rule: EventRuleSchema,
1215
- source: SourceMetadataV2Schema,
1216
- accountId: zod.z.string().optional()
1217
- });
1218
- var InitializeTriggerBodySchema = zod.z.object({
1219
- id: zod.z.string(),
1220
- params: zod.z.any(),
1221
- accountId: zod.z.string().optional(),
1222
- metadata: zod.z.any().optional()
1223
- });
1224
- var RegisterCommonScheduleBodySchema = zod.z.object({
1225
- /** A unique id for the schedule. This is used to identify and unregister the schedule later. */
1226
- id: zod.z.string(),
1227
- /** Any additional metadata about the schedule. */
1228
- metadata: zod.z.any(),
1229
- /** An optional Account ID to associate with runs triggered by this schedule */
1230
- accountId: zod.z.string().optional()
1231
- });
1232
- var RegisterIntervalScheduleBodySchema = RegisterCommonScheduleBodySchema.merge(IntervalMetadataSchema);
1233
- var InitializeCronScheduleBodySchema = RegisterCommonScheduleBodySchema.merge(CronMetadataSchema);
1234
- var RegisterScheduleBodySchema = zod.z.discriminatedUnion("type", [
1235
- RegisterIntervalScheduleBodySchema,
1236
- InitializeCronScheduleBodySchema
1237
- ]);
1238
- var RegisterScheduleResponseBodySchema = zod.z.object({
1239
- id: zod.z.string(),
1240
- schedule: ScheduleMetadataSchema,
1241
- metadata: zod.z.any(),
1242
- active: zod.z.boolean()
1243
- });
1244
- var CreateExternalConnectionBodySchema = zod.z.object({
1245
- accessToken: zod.z.string(),
1246
- type: zod.z.enum([
1247
- "oauth2"
1248
- ]),
1249
- scopes: zod.z.array(zod.z.string()).optional(),
1250
- metadata: zod.z.any()
1251
- });
1252
- var GetRunStatusesSchema = zod.z.object({
1253
- run: zod.z.object({
1254
- id: zod.z.string(),
1255
- status: RunStatusSchema,
1256
- output: zod.z.any().optional()
1257
- }),
1258
- statuses: zod.z.array(JobRunStatusRecordSchema)
1259
- });
1260
- var InvokeJobResponseSchema = zod.z.object({
1261
- id: zod.z.string()
1262
- });
1263
- var InvokeJobRequestBodySchema = zod.z.object({
1264
- payload: zod.z.any(),
1265
- context: zod.z.any().optional(),
1266
- options: zod.z.object({
1267
- accountId: zod.z.string().optional(),
1268
- callbackUrl: zod.z.string().optional()
1269
- }).optional()
1270
- });
1271
- var InvokeOptionsSchema = zod.z.object({
1272
- accountId: zod.z.string().optional(),
1273
- idempotencyKey: zod.z.string().optional(),
1274
- context: zod.z.any().optional(),
1275
- callbackUrl: zod.z.string().optional()
1276
- });
1277
- var EphemeralEventDispatcherRequestBodySchema = zod.z.object({
1278
- url: zod.z.string(),
1279
- name: zod.z.string().or(zod.z.array(zod.z.string())),
1280
- source: zod.z.string().optional(),
1281
- filter: EventFilterSchema.optional(),
1282
- contextFilter: EventFilterSchema.optional(),
1283
- accountId: zod.z.string().optional(),
1284
- timeoutInSeconds: zod.z.number().int().positive().min(10).max(60 * 60 * 24 * 365).default(3600)
1285
- });
1286
- var EphemeralEventDispatcherResponseBodySchema = zod.z.object({
1287
- id: zod.z.string()
1288
- });
1289
- var KeyValueStoreResponseBodySchema = zod.z.discriminatedUnion("action", [
1290
- zod.z.object({
1291
- action: zod.z.literal("DELETE"),
1292
- key: zod.z.string(),
1293
- deleted: zod.z.boolean()
1294
- }),
1295
- zod.z.object({
1296
- action: zod.z.literal("GET"),
1297
- key: zod.z.string(),
1298
- value: zod.z.string().optional()
1299
- }),
1300
- zod.z.object({
1301
- action: zod.z.literal("HAS"),
1302
- key: zod.z.string(),
1303
- has: zod.z.boolean()
1304
- }),
1305
- zod.z.object({
1306
- action: zod.z.literal("SET"),
1307
- key: zod.z.string(),
1308
- value: zod.z.string().optional()
1309
- })
1310
- ]);
1311
- var MISSING_CONNECTION_NOTIFICATION = "dev.trigger.notifications.missingConnection";
1312
- var MISSING_CONNECTION_RESOLVED_NOTIFICATION = "dev.trigger.notifications.missingConnectionResolved";
1313
- var CommonMissingConnectionNotificationPayloadSchema = zod.z.object({
1314
- id: zod.z.string(),
1315
- client: zod.z.object({
1316
- id: zod.z.string(),
1317
- title: zod.z.string(),
1318
- scopes: zod.z.array(zod.z.string()),
1319
- createdAt: zod.z.coerce.date(),
1320
- updatedAt: zod.z.coerce.date()
1321
- }),
1322
- authorizationUrl: zod.z.string()
1323
- });
1324
- var MissingDeveloperConnectionNotificationPayloadSchema = CommonMissingConnectionNotificationPayloadSchema.extend({
1325
- type: zod.z.literal("DEVELOPER")
1326
- });
1327
- var MissingExternalConnectionNotificationPayloadSchema = CommonMissingConnectionNotificationPayloadSchema.extend({
1328
- type: zod.z.literal("EXTERNAL"),
1329
- account: zod.z.object({
1330
- id: zod.z.string(),
1331
- metadata: zod.z.any()
1332
- })
1333
- });
1334
- var MissingConnectionNotificationPayloadSchema = zod.z.discriminatedUnion("type", [
1335
- MissingDeveloperConnectionNotificationPayloadSchema,
1336
- MissingExternalConnectionNotificationPayloadSchema
1337
- ]);
1338
- var CommonMissingConnectionNotificationResolvedPayloadSchema = zod.z.object({
1339
- id: zod.z.string(),
1340
- client: zod.z.object({
1341
- id: zod.z.string(),
1342
- title: zod.z.string(),
1343
- scopes: zod.z.array(zod.z.string()),
1344
- createdAt: zod.z.coerce.date(),
1345
- updatedAt: zod.z.coerce.date(),
1346
- integrationIdentifier: zod.z.string(),
1347
- integrationAuthMethod: zod.z.string()
1348
- }),
1349
- expiresAt: zod.z.coerce.date()
1350
- });
1351
- var MissingDeveloperConnectionResolvedNotificationPayloadSchema = CommonMissingConnectionNotificationResolvedPayloadSchema.extend({
1352
- type: zod.z.literal("DEVELOPER")
1353
- });
1354
- var MissingExternalConnectionResolvedNotificationPayloadSchema = CommonMissingConnectionNotificationResolvedPayloadSchema.extend({
1355
- type: zod.z.literal("EXTERNAL"),
1356
- account: zod.z.object({
1357
- id: zod.z.string(),
1358
- metadata: zod.z.any()
1359
- })
1360
- });
1361
- var MissingConnectionResolvedNotificationPayloadSchema = zod.z.discriminatedUnion("type", [
1362
- MissingDeveloperConnectionResolvedNotificationPayloadSchema,
1363
- MissingExternalConnectionResolvedNotificationPayloadSchema
1364
- ]);
1365
- var FetchRetryHeadersStrategySchema = zod.z.object({
1366
- /** The `headers` strategy retries the request using info from the response headers. */
1367
- strategy: zod.z.literal("headers"),
1368
- /** The header to use to determine the maximum number of times to retry the request. */
1369
- limitHeader: zod.z.string(),
1370
- /** The header to use to determine the number of remaining retries. */
1371
- remainingHeader: zod.z.string(),
1372
- /** The header to use to determine the time when the number of remaining retries will be reset. */
1373
- resetHeader: zod.z.string(),
1374
- /** The event filter to use to determine if the request should be retried. */
1375
- bodyFilter: EventFilterSchema.optional(),
1376
- /** The format of the `resetHeader` value. */
1377
- resetFormat: zod.z.enum([
1378
- "unix_timestamp",
1379
- "unix_timestamp_in_ms",
1380
- "iso_8601",
1381
- "iso_8601_duration_openai_variant"
1382
- ]).default("unix_timestamp")
1383
- });
1384
- var FetchRetryBackoffStrategySchema = RetryOptionsSchema.extend({
1385
- /** The `backoff` strategy retries the request with an exponential backoff. */
1386
- strategy: zod.z.literal("backoff"),
1387
- /** The event filter to use to determine if the request should be retried. */
1388
- bodyFilter: EventFilterSchema.optional()
1389
- });
1390
- var FetchRetryStrategySchema = zod.z.discriminatedUnion("strategy", [
1391
- FetchRetryHeadersStrategySchema,
1392
- FetchRetryBackoffStrategySchema
1393
- ]);
1394
- var FetchRequestInitSchema = zod.z.object({
1395
- /** The HTTP method to use for the request. */
1396
- method: zod.z.string().optional(),
1397
- /** Any headers to send with the request. Note that you can use [redactString](https://trigger.dev/docs/sdk/redactString) to prevent sensitive information from being stored (e.g. in the logs), like API keys and tokens. */
1398
- headers: zod.z.record(zod.z.union([
1399
- zod.z.string(),
1400
- RedactStringSchema
1401
- ])).optional(),
1402
- /** The body of the request. */
1403
- body: zod.z.union([
1404
- zod.z.string(),
1405
- zod.z.instanceof(ArrayBuffer)
1406
- ]).optional()
1407
- });
1408
- var FetchRetryOptionsSchema = zod.z.record(FetchRetryStrategySchema);
1409
- var FetchTimeoutOptionsSchema = zod.z.object({
1410
- durationInMs: zod.z.number(),
1411
- retry: RetryOptionsSchema.optional()
1412
- });
1413
- var FetchOperationSchema = zod.z.object({
1414
- url: zod.z.string(),
1415
- requestInit: FetchRequestInitSchema.optional(),
1416
- retry: zod.z.record(FetchRetryStrategySchema).optional(),
1417
- timeout: FetchTimeoutOptionsSchema.optional()
1418
- });
1419
- var FetchPollOperationSchema = zod.z.object({
1420
- url: zod.z.string(),
1421
- interval: zod.z.number().int().positive().min(10).max(600).default(10),
1422
- timeout: zod.z.number().int().positive().min(30).max(3600).default(600),
1423
- responseFilter: ResponseFilterSchema,
1424
- requestInit: FetchRequestInitSchema.optional(),
1425
- requestTimeout: FetchTimeoutOptionsSchema.optional()
1426
- });
1427
- var GetEventSchema = zod.z.object({
1428
- /** The event id */
1429
- id: zod.z.string(),
1430
- /** The event name */
1431
- name: zod.z.string(),
1432
- /** When the event was created */
1433
- createdAt: zod.z.coerce.date(),
1434
- /** When the event was last updated */
1435
- updatedAt: zod.z.coerce.date(),
1436
- /** The runs that were triggered by the event */
1437
- runs: zod.z.array(zod.z.object({
1438
- /** The Run id */
1439
- id: zod.z.string(),
1440
- /** The Run status */
1441
- status: RunStatusSchema,
1442
- /** When the run started */
1443
- startedAt: zod.z.coerce.date().optional().nullable(),
1444
- /** When the run completed */
1445
- completedAt: zod.z.coerce.date().optional().nullable()
1446
- }))
1447
- });
1448
- var CancelRunsForEventSchema = zod.z.object({
1449
- cancelledRunIds: zod.z.array(zod.z.string()),
1450
- failedToCancelRunIds: zod.z.array(zod.z.string())
1451
- });
1452
- var RequestWithRawBodySchema = zod.z.object({
1453
- url: zod.z.string(),
1454
- method: zod.z.string(),
1455
- headers: zod.z.record(zod.z.string()),
1456
- rawBody: zod.z.string()
1457
- });
1458
- var CancelRunsForJobSchema = zod.z.object({
1459
- cancelledRunIds: zod.z.array(zod.z.string()),
1460
- failedToCancelRunIds: zod.z.array(zod.z.string())
1461
- });
1462
-
1463
- // src/utils.ts
1464
- function deepMergeFilters(...filters) {
1465
- const result = {};
1466
- for (const filter of filters) {
1467
- for (const key in filter) {
1468
- if (filter.hasOwnProperty(key)) {
1469
- const filterValue = filter[key];
1470
- const existingValue = result[key];
1471
- if (existingValue && typeof existingValue === "object" && typeof filterValue === "object" && !Array.isArray(existingValue) && !Array.isArray(filterValue) && existingValue !== null && filterValue !== null) {
1472
- result[key] = deepMergeFilters(existingValue, filterValue);
1473
- } else {
1474
- result[key] = filterValue;
1475
- }
1476
- }
1477
- }
1478
- }
1479
- return result;
1480
- }
1481
- __name(deepMergeFilters, "deepMergeFilters");
1482
- function assertExhaustive(x) {
1483
- throw new Error("Unexpected object: " + x);
1484
- }
1485
- __name(assertExhaustive, "assertExhaustive");
1486
-
1487
- // src/retry.ts
1488
- var DEFAULT_RETRY_OPTIONS = {
1489
- limit: 5,
1490
- factor: 1.8,
1491
- minTimeoutInMs: 1e3,
1492
- maxTimeoutInMs: 6e4,
1493
- randomize: true
1494
- };
1495
- function calculateRetryAt(retryOptions, attempts) {
1496
- const options = {
1497
- ...DEFAULT_RETRY_OPTIONS,
1498
- ...retryOptions
1499
- };
1500
- const retryCount = attempts + 1;
1501
- if (retryCount >= options.limit) {
1502
- return;
1503
- }
1504
- const random = options.randomize ? Math.random() + 1 : 1;
1505
- let timeoutInMs = Math.round(random * Math.max(options.minTimeoutInMs, 1) * Math.pow(options.factor, Math.max(attempts - 1, 0)));
1506
- timeoutInMs = Math.min(timeoutInMs, options.maxTimeoutInMs);
1507
- return new Date(Date.now() + timeoutInMs);
1508
- }
1509
- __name(calculateRetryAt, "calculateRetryAt");
1510
- function calculateResetAt(resets, format, now = /* @__PURE__ */ new Date()) {
1511
- if (!resets)
1512
- return;
1513
- switch (format) {
1514
- case "iso_8601_duration_openai_variant": {
1515
- return calculateISO8601DurationOpenAIVariantResetAt(resets, now);
1516
- }
1517
- case "iso_8601": {
1518
- return calculateISO8601ResetAt(resets, now);
1519
- }
1520
- case "unix_timestamp": {
1521
- return calculateUnixTimestampResetAt(resets, now);
1522
- }
1523
- case "unix_timestamp_in_ms": {
1524
- return calculateUnixTimestampInMsResetAt(resets, now);
1525
- }
1526
- }
1527
- }
1528
- __name(calculateResetAt, "calculateResetAt");
1529
- function calculateUnixTimestampResetAt(resets, now = /* @__PURE__ */ new Date()) {
1530
- if (!resets)
1531
- return void 0;
1532
- const resetAt = parseInt(resets, 10);
1533
- if (isNaN(resetAt))
1534
- return void 0;
1535
- return new Date(resetAt * 1e3);
1536
- }
1537
- __name(calculateUnixTimestampResetAt, "calculateUnixTimestampResetAt");
1538
- function calculateUnixTimestampInMsResetAt(resets, now = /* @__PURE__ */ new Date()) {
1539
- if (!resets)
1540
- return void 0;
1541
- const resetAt = parseInt(resets, 10);
1542
- if (isNaN(resetAt))
1543
- return void 0;
1544
- return new Date(resetAt);
1545
- }
1546
- __name(calculateUnixTimestampInMsResetAt, "calculateUnixTimestampInMsResetAt");
1547
- function calculateISO8601ResetAt(resets, now = /* @__PURE__ */ new Date()) {
1548
- if (!resets)
1549
- return void 0;
1550
- const resetAt = new Date(resets);
1551
- if (isNaN(resetAt.getTime()))
1552
- return void 0;
1553
- return resetAt;
1554
- }
1555
- __name(calculateISO8601ResetAt, "calculateISO8601ResetAt");
1556
- function calculateISO8601DurationOpenAIVariantResetAt(resets, now = /* @__PURE__ */ new Date()) {
1557
- if (!resets)
1558
- return void 0;
1559
- const pattern = /^(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+(?:\.\d+)?)s)?(?:(\d+)ms)?$/;
1560
- const match = resets.match(pattern);
1561
- if (!match)
1562
- return void 0;
1563
- const days = parseInt(match[1], 10) || 0;
1564
- const hours = parseInt(match[2], 10) || 0;
1565
- const minutes = parseInt(match[3], 10) || 0;
1566
- const seconds = parseFloat(match[4]) || 0;
1567
- const milliseconds = parseInt(match[5], 10) || 0;
1568
- const resetAt = new Date(now);
1569
- resetAt.setDate(resetAt.getDate() + days);
1570
- resetAt.setHours(resetAt.getHours() + hours);
1571
- resetAt.setMinutes(resetAt.getMinutes() + minutes);
1572
- resetAt.setSeconds(resetAt.getSeconds() + Math.floor(seconds));
1573
- resetAt.setMilliseconds(resetAt.getMilliseconds() + (seconds - Math.floor(seconds)) * 1e3 + milliseconds);
1574
- return resetAt;
1575
- }
1576
- __name(calculateISO8601DurationOpenAIVariantResetAt, "calculateISO8601DurationOpenAIVariantResetAt");
1577
-
1578
- // src/replacements.ts
1579
- var currentDate = {
1580
- marker: "__CURRENT_DATE__",
1581
- replace({ data: { now } }) {
1582
- return now.toISOString();
1583
- }
1584
- };
1585
- var currentTimestampMilliseconds = {
1586
- marker: "__CURRENT_TIMESTAMP_MS__",
1587
- replace({ data: { now } }) {
1588
- return now.getTime();
1589
- }
1590
- };
1591
- var currentTimestampSeconds = {
1592
- marker: "__CURRENT_TIMESTAMP_S__",
1593
- replace({ data: { now } }) {
1594
- return now.getTime() / 1e3;
1595
- }
1596
- };
1597
- var replacements = [
1598
- currentDate,
1599
- currentTimestampMilliseconds,
1600
- currentTimestampSeconds
1601
- ];
1602
-
1603
- // src/searchParams.ts
1604
- function urlWithSearchParams(url, params) {
1605
- if (!params) {
1606
- return url;
1607
- }
1608
- const urlObj = new URL(url);
1609
- for (const [key, value] of Object.entries(params)) {
1610
- if (value !== void 0) {
1611
- urlObj.searchParams.append(key, String(value));
1612
- }
1613
- }
1614
- return urlObj.toString();
1615
- }
1616
- __name(urlWithSearchParams, "urlWithSearchParams");
1617
-
1618
- // src/eventFilterMatches.ts
1619
- function eventFilterMatches(payload, filter) {
1620
- if (payload === void 0 || payload === null) {
1621
- if (Object.entries(filter).length === 0) {
1622
- return true;
1623
- } else {
1624
- return false;
1625
- }
1626
- }
1627
- for (const [patternKey, patternValue] of Object.entries(filter)) {
1628
- const payloadValue = payload[patternKey];
1629
- if (Array.isArray(patternValue)) {
1630
- if (patternValue.length === 0) {
1631
- continue;
1632
- }
1633
- if (patternValue.every((item) => typeof item === "string")) {
1634
- if (patternValue.includes(payloadValue)) {
1635
- continue;
1636
- }
1637
- return false;
1638
- }
1639
- if (patternValue.every((item) => typeof item === "number")) {
1640
- if (patternValue.includes(payloadValue)) {
1641
- continue;
1642
- }
1643
- return false;
1644
- }
1645
- if (patternValue.every((item) => typeof item === "boolean")) {
1646
- if (patternValue.includes(payloadValue)) {
1647
- continue;
1648
- }
1649
- return false;
1650
- }
1651
- const objectArray = patternValue;
1652
- if (!contentFiltersMatches(payloadValue, objectArray)) {
1653
- return false;
1654
- }
1655
- continue;
1656
- } else if (typeof patternValue === "object") {
1657
- if (Array.isArray(payloadValue)) {
1658
- if (!payloadValue.some((item) => eventFilterMatches(item, patternValue))) {
1659
- return false;
1660
- }
1661
- } else {
1662
- if (!eventFilterMatches(payloadValue, patternValue)) {
1663
- return false;
1664
- }
1665
- }
1666
- }
1667
- }
1668
- return true;
1669
- }
1670
- __name(eventFilterMatches, "eventFilterMatches");
1671
- function contentFiltersMatches(actualValue, contentFilters) {
1672
- for (const contentFilter of contentFilters) {
1673
- if (typeof contentFilter === "object") {
1674
- Object.entries(contentFilter)[0];
1675
- if (!contentFilterMatches(actualValue, contentFilter)) {
1676
- return false;
1677
- }
1678
- }
1679
- }
1680
- return true;
1681
- }
1682
- __name(contentFiltersMatches, "contentFiltersMatches");
1683
- function contentFilterMatches(actualValue, contentFilter) {
1684
- if ("$endsWith" in contentFilter) {
1685
- if (typeof actualValue !== "string") {
1686
- return false;
1687
- }
1688
- return actualValue.endsWith(contentFilter.$endsWith);
1689
- }
1690
- if ("$startsWith" in contentFilter) {
1691
- if (typeof actualValue !== "string") {
1692
- return false;
1693
- }
1694
- return actualValue.startsWith(contentFilter.$startsWith);
1695
- }
1696
- if ("$anythingBut" in contentFilter) {
1697
- if (Array.isArray(contentFilter.$anythingBut)) {
1698
- if (contentFilter.$anythingBut.includes(actualValue)) {
1699
- return false;
1700
- }
1701
- }
1702
- if (contentFilter.$anythingBut === actualValue) {
1703
- return false;
1704
- }
1705
- return true;
1706
- }
1707
- if ("$exists" in contentFilter) {
1708
- if (contentFilter.$exists) {
1709
- return actualValue !== void 0;
1710
- }
1711
- return actualValue === void 0;
1712
- }
1713
- if ("$gt" in contentFilter) {
1714
- if (typeof actualValue !== "number") {
1715
- return false;
1716
- }
1717
- return actualValue > contentFilter.$gt;
1718
- }
1719
- if ("$lt" in contentFilter) {
1720
- if (typeof actualValue !== "number") {
1721
- return false;
1722
- }
1723
- return actualValue < contentFilter.$lt;
1724
- }
1725
- if ("$gte" in contentFilter) {
1726
- if (typeof actualValue !== "number") {
1727
- return false;
1728
- }
1729
- return actualValue >= contentFilter.$gte;
1730
- }
1731
- if ("$lte" in contentFilter) {
1732
- if (typeof actualValue !== "number") {
1733
- return false;
1734
- }
1735
- return actualValue <= contentFilter.$lte;
1736
- }
1737
- if ("$between" in contentFilter) {
1738
- if (typeof actualValue !== "number") {
1739
- return false;
1740
- }
1741
- return actualValue >= contentFilter.$between[0] && actualValue <= contentFilter.$between[1];
1742
- }
1743
- if ("$includes" in contentFilter) {
1744
- if (Array.isArray(actualValue)) {
1745
- return actualValue.includes(contentFilter.$includes);
1746
- }
1747
- return false;
1748
- }
1749
- if ("$ignoreCaseEquals" in contentFilter) {
1750
- if (typeof actualValue !== "string") {
1751
- return false;
1752
- }
1753
- return actualValue.localeCompare(contentFilter.$ignoreCaseEquals, void 0, {
1754
- sensitivity: "accent"
1755
- }) === 0;
1756
- }
1757
- if ("$isNull" in contentFilter) {
1758
- if (contentFilter.$isNull) {
1759
- return actualValue === null;
1760
- }
1761
- return actualValue !== null;
1762
- }
1763
- if ("$not" in contentFilter) {
1764
- if (Array.isArray(actualValue)) {
1765
- return !actualValue.includes(contentFilter.$not);
1766
- } else if (typeof actualValue === "number" || typeof actualValue === "boolean" || typeof actualValue === "string") {
1767
- return actualValue !== contentFilter.$not;
1768
- }
1769
- return false;
1770
- }
1771
- return true;
1772
- }
1773
- __name(contentFilterMatches, "contentFilterMatches");
1774
-
1775
- // src/requestFilterMatches.ts
1776
- async function requestFilterMatches(request, filter) {
1777
- const clonedRequest = request.clone();
1778
- if (!requestMethodMatches(clonedRequest.method, filter.method)) {
1779
- return false;
1780
- }
1781
- const headersObj = Object.fromEntries(clonedRequest.headers.entries());
1782
- if (filter.headers && !eventFilterMatches(headersObj, filter.headers)) {
1783
- return false;
1784
- }
1785
- const searchParams = new URL(clonedRequest.url).searchParams;
1786
- const searchParamsObject = {};
1787
- for (const [key, value] of searchParams.entries()) {
1788
- searchParamsObject[key] = value;
1789
- }
1790
- if (filter.query && !eventFilterMatches(searchParamsObject, filter.query)) {
1791
- return false;
1792
- }
1793
- try {
1794
- const json = await clonedRequest.json();
1795
- if (filter.body && !eventFilterMatches(json, filter.body)) {
1796
- return false;
1797
- }
1798
- } catch (e) {
1799
- if (filter.body) {
1800
- return false;
1801
- }
1802
- }
1803
- return true;
1804
- }
1805
- __name(requestFilterMatches, "requestFilterMatches");
1806
- async function responseFilterMatches(response, filter) {
1807
- if (filter.headers && !eventFilterMatches(response.headers, filter.headers)) {
1808
- return {
1809
- match: false
1810
- };
1811
- }
1812
- try {
1813
- const json = await response.json();
1814
- if (filter.body && !eventFilterMatches(json, filter.body)) {
1815
- return {
1816
- match: false,
1817
- body: json
1818
- };
1819
- } else {
1820
- return {
1821
- match: true,
1822
- body: json
1823
- };
1824
- }
1825
- } catch (e) {
1826
- if (filter.body) {
1827
- return {
1828
- match: false,
1829
- body: void 0
1830
- };
1831
- }
1832
- }
1833
- return {
1834
- match: true,
1835
- body: void 0
1836
- };
1837
- }
1838
- __name(responseFilterMatches, "responseFilterMatches");
1839
- function requestMethodMatches(method, filter) {
1840
- if (!filter) {
1841
- return true;
1842
- }
1843
- return filter.includes(method);
1844
- }
1845
- __name(requestMethodMatches, "requestMethodMatches");
1846
-
1847
- // src/versions.ts
1848
- var API_VERSIONS = {
1849
- LAZY_LOADED_CACHED_TASKS: "2023-09-29",
1850
- SERIALIZED_TASK_OUTPUT: "2023-11-01"
1851
- };
1852
- var PLATFORM_FEATURES = {
1853
- yieldExecution: API_VERSIONS.LAZY_LOADED_CACHED_TASKS,
1854
- lazyLoadedCachedTasks: API_VERSIONS.LAZY_LOADED_CACHED_TASKS
1855
- };
1856
- function supportsFeature(featureName, version) {
1857
- if (version === "unversioned" || version === "unknown") {
1858
- return false;
1859
- }
1860
- const supportedVersion = PLATFORM_FEATURES[featureName];
1861
- if (!supportedVersion) {
1862
- return false;
1863
- }
1864
- return version >= supportedVersion;
1865
- }
1866
- __name(supportsFeature, "supportsFeature");
1867
-
1868
- exports.API_VERSIONS = API_VERSIONS;
1869
- exports.ApiEventLogSchema = ApiEventLogSchema;
1870
- exports.AutoYieldConfigSchema = AutoYieldConfigSchema;
1871
- exports.AutoYieldMetadataSchema = AutoYieldMetadataSchema;
1872
- exports.CachedTaskSchema = CachedTaskSchema;
1873
- exports.CancelRunsForEventSchema = CancelRunsForEventSchema;
1874
- exports.CancelRunsForJobSchema = CancelRunsForJobSchema;
1875
- exports.CommonMissingConnectionNotificationPayloadSchema = CommonMissingConnectionNotificationPayloadSchema;
1876
- exports.CommonMissingConnectionNotificationResolvedPayloadSchema = CommonMissingConnectionNotificationResolvedPayloadSchema;
1877
- exports.CompleteTaskBodyInputSchema = CompleteTaskBodyInputSchema;
1878
- exports.CompleteTaskBodyV2InputSchema = CompleteTaskBodyV2InputSchema;
1879
- exports.ConcurrencyLimitOptionsSchema = ConcurrencyLimitOptionsSchema;
1880
- exports.ConnectionAuthSchema = ConnectionAuthSchema;
1881
- exports.CreateExternalConnectionBodySchema = CreateExternalConnectionBodySchema;
1882
- exports.CreateRunResponseBodySchema = CreateRunResponseBodySchema;
1883
- exports.CronMetadataSchema = CronMetadataSchema;
1884
- exports.CronOptionsSchema = CronOptionsSchema;
1885
- exports.DELIVER_WEBHOOK_REQUEST = DELIVER_WEBHOOK_REQUEST;
1886
- exports.DeliverEventResponseSchema = DeliverEventResponseSchema;
1887
- exports.DeserializedJsonSchema = DeserializedJsonSchema;
1888
- exports.DisplayPropertiesSchema = DisplayPropertiesSchema;
1889
- exports.DisplayPropertySchema = DisplayPropertySchema;
1890
- exports.DynamicTriggerEndpointMetadataSchema = DynamicTriggerEndpointMetadataSchema;
1891
- exports.DynamicTriggerMetadataSchema = DynamicTriggerMetadataSchema;
1892
- exports.EndpointHeadersSchema = EndpointHeadersSchema;
1893
- exports.EndpointIndexErrorSchema = EndpointIndexErrorSchema;
1894
- exports.EphemeralEventDispatcherRequestBodySchema = EphemeralEventDispatcherRequestBodySchema;
1895
- exports.EphemeralEventDispatcherResponseBodySchema = EphemeralEventDispatcherResponseBodySchema;
1896
- exports.ErrorWithStackSchema = ErrorWithStackSchema;
1897
- exports.EventExampleSchema = EventExampleSchema;
1898
- exports.EventFilterSchema = EventFilterSchema;
1899
- exports.EventRuleSchema = EventRuleSchema;
1900
- exports.EventSpecificationSchema = EventSpecificationSchema;
1901
- exports.ExecuteJobHeadersSchema = ExecuteJobHeadersSchema;
1902
- exports.ExecuteJobRunMetadataSchema = ExecuteJobRunMetadataSchema;
1903
- exports.FailTaskBodyInputSchema = FailTaskBodyInputSchema;
1904
- exports.FetchOperationSchema = FetchOperationSchema;
1905
- exports.FetchPollOperationSchema = FetchPollOperationSchema;
1906
- exports.FetchRequestInitSchema = FetchRequestInitSchema;
1907
- exports.FetchRetryBackoffStrategySchema = FetchRetryBackoffStrategySchema;
1908
- exports.FetchRetryHeadersStrategySchema = FetchRetryHeadersStrategySchema;
1909
- exports.FetchRetryOptionsSchema = FetchRetryOptionsSchema;
1910
- exports.FetchRetryStrategySchema = FetchRetryStrategySchema;
1911
- exports.FetchTimeoutOptionsSchema = FetchTimeoutOptionsSchema;
1912
- exports.GetEndpointIndexResponseSchema = GetEndpointIndexResponseSchema;
1913
- exports.GetEventSchema = GetEventSchema;
1914
- exports.GetRunSchema = GetRunSchema;
1915
- exports.GetRunStatusesSchema = GetRunStatusesSchema;
1916
- exports.GetRunsSchema = GetRunsSchema;
1917
- exports.HTTPMethodUnionSchema = HTTPMethodUnionSchema;
1918
- exports.HandleTriggerSourceSchema = HandleTriggerSourceSchema;
1919
- exports.HttpEndpointRequestHeadersSchema = HttpEndpointRequestHeadersSchema;
1920
- exports.HttpSourceRequestHeadersSchema = HttpSourceRequestHeadersSchema;
1921
- exports.HttpSourceResponseSchema = HttpSourceResponseSchema;
1922
- exports.IndexEndpointResponseSchema = IndexEndpointResponseSchema;
1923
- exports.InitializeCronScheduleBodySchema = InitializeCronScheduleBodySchema;
1924
- exports.InitializeTriggerBodySchema = InitializeTriggerBodySchema;
1925
- exports.IntegrationConfigSchema = IntegrationConfigSchema;
1926
- exports.IntegrationMetadataSchema = IntegrationMetadataSchema;
1927
- exports.IntervalMetadataSchema = IntervalMetadataSchema;
1928
- exports.IntervalOptionsSchema = IntervalOptionsSchema;
1929
- exports.InvokeJobRequestBodySchema = InvokeJobRequestBodySchema;
1930
- exports.InvokeJobResponseSchema = InvokeJobResponseSchema;
1931
- exports.InvokeOptionsSchema = InvokeOptionsSchema;
1932
- exports.InvokeTriggerMetadataSchema = InvokeTriggerMetadataSchema;
1933
- exports.JobMetadataSchema = JobMetadataSchema;
1934
- exports.JobRunStatusRecordSchema = JobRunStatusRecordSchema;
1935
- exports.KeyValueStoreResponseBodySchema = KeyValueStoreResponseBodySchema;
1936
- exports.LogMessageSchema = LogMessageSchema;
1937
- exports.MISSING_CONNECTION_NOTIFICATION = MISSING_CONNECTION_NOTIFICATION;
1938
- exports.MISSING_CONNECTION_RESOLVED_NOTIFICATION = MISSING_CONNECTION_RESOLVED_NOTIFICATION;
1939
- exports.MissingConnectionNotificationPayloadSchema = MissingConnectionNotificationPayloadSchema;
1940
- exports.MissingConnectionResolvedNotificationPayloadSchema = MissingConnectionResolvedNotificationPayloadSchema;
1941
- exports.MissingDeveloperConnectionNotificationPayloadSchema = MissingDeveloperConnectionNotificationPayloadSchema;
1942
- exports.MissingDeveloperConnectionResolvedNotificationPayloadSchema = MissingDeveloperConnectionResolvedNotificationPayloadSchema;
1943
- exports.MissingExternalConnectionNotificationPayloadSchema = MissingExternalConnectionNotificationPayloadSchema;
1944
- exports.MissingExternalConnectionResolvedNotificationPayloadSchema = MissingExternalConnectionResolvedNotificationPayloadSchema;
1945
- exports.NormalizedRequestSchema = NormalizedRequestSchema;
1946
- exports.NormalizedResponseSchema = NormalizedResponseSchema;
1947
- exports.PLATFORM_FEATURES = PLATFORM_FEATURES;
1948
- exports.PongErrorResponseSchema = PongErrorResponseSchema;
1949
- exports.PongResponseSchema = PongResponseSchema;
1950
- exports.PongSuccessResponseSchema = PongSuccessResponseSchema;
1951
- exports.PreprocessRunBodySchema = PreprocessRunBodySchema;
1952
- exports.PreprocessRunResponseSchema = PreprocessRunResponseSchema;
1953
- exports.QueueOptionsSchema = QueueOptionsSchema;
1954
- exports.REGISTER_SOURCE_EVENT_V1 = REGISTER_SOURCE_EVENT_V1;
1955
- exports.REGISTER_SOURCE_EVENT_V2 = REGISTER_SOURCE_EVENT_V2;
1956
- exports.REGISTER_WEBHOOK = REGISTER_WEBHOOK;
1957
- exports.RawEventSchema = RawEventSchema;
1958
- exports.RedactSchema = RedactSchema;
1959
- exports.RedactStringSchema = RedactStringSchema;
1960
- exports.RegisterDynamicSchedulePayloadSchema = RegisterDynamicSchedulePayloadSchema;
1961
- exports.RegisterHTTPTriggerSourceBodySchema = RegisterHTTPTriggerSourceBodySchema;
1962
- exports.RegisterIntervalScheduleBodySchema = RegisterIntervalScheduleBodySchema;
1963
- exports.RegisterSMTPTriggerSourceBodySchema = RegisterSMTPTriggerSourceBodySchema;
1964
- exports.RegisterSQSTriggerSourceBodySchema = RegisterSQSTriggerSourceBodySchema;
1965
- exports.RegisterScheduleBodySchema = RegisterScheduleBodySchema;
1966
- exports.RegisterScheduleResponseBodySchema = RegisterScheduleResponseBodySchema;
1967
- exports.RegisterSourceChannelBodySchema = RegisterSourceChannelBodySchema;
1968
- exports.RegisterSourceEventSchemaV1 = RegisterSourceEventSchemaV1;
1969
- exports.RegisterSourceEventSchemaV2 = RegisterSourceEventSchemaV2;
1970
- exports.RegisterTriggerBodySchemaV1 = RegisterTriggerBodySchemaV1;
1971
- exports.RegisterTriggerBodySchemaV2 = RegisterTriggerBodySchemaV2;
1972
- exports.RegisterTriggerSourceSchema = RegisterTriggerSourceSchema;
1973
- exports.RegisterWebhookPayloadSchema = RegisterWebhookPayloadSchema;
1974
- exports.RegisterWebhookSourceSchema = RegisterWebhookSourceSchema;
1975
- exports.RequestFilterSchema = RequestFilterSchema;
1976
- exports.RequestWithRawBodySchema = RequestWithRawBodySchema;
1977
- exports.ResponseFilterSchema = ResponseFilterSchema;
1978
- exports.RetryOptionsSchema = RetryOptionsSchema;
1979
- exports.RunJobAutoYieldExecutionErrorSchema = RunJobAutoYieldExecutionErrorSchema;
1980
- exports.RunJobAutoYieldRateLimitErrorSchema = RunJobAutoYieldRateLimitErrorSchema;
1981
- exports.RunJobAutoYieldWithCompletedTaskExecutionErrorSchema = RunJobAutoYieldWithCompletedTaskExecutionErrorSchema;
1982
- exports.RunJobBodySchema = RunJobBodySchema;
1983
- exports.RunJobCanceledWithTaskSchema = RunJobCanceledWithTaskSchema;
1984
- exports.RunJobErrorResponseSchema = RunJobErrorResponseSchema;
1985
- exports.RunJobErrorSchema = RunJobErrorSchema;
1986
- exports.RunJobInvalidPayloadErrorSchema = RunJobInvalidPayloadErrorSchema;
1987
- exports.RunJobResponseSchema = RunJobResponseSchema;
1988
- exports.RunJobResumeWithParallelTaskSchema = RunJobResumeWithParallelTaskSchema;
1989
- exports.RunJobResumeWithTaskSchema = RunJobResumeWithTaskSchema;
1990
- exports.RunJobRetryWithTaskSchema = RunJobRetryWithTaskSchema;
1991
- exports.RunJobSuccessSchema = RunJobSuccessSchema;
1992
- exports.RunJobUnresolvedAuthErrorSchema = RunJobUnresolvedAuthErrorSchema;
1993
- exports.RunJobYieldExecutionErrorSchema = RunJobYieldExecutionErrorSchema;
1994
- exports.RunSourceContextSchema = RunSourceContextSchema;
1995
- exports.RunStatusSchema = RunStatusSchema;
1996
- exports.RunTaskBodyInputSchema = RunTaskBodyInputSchema;
1997
- exports.RunTaskBodyOutputSchema = RunTaskBodyOutputSchema;
1998
- exports.RunTaskOptionsSchema = RunTaskOptionsSchema;
1999
- exports.RunTaskResponseWithCachedTasksBodySchema = RunTaskResponseWithCachedTasksBodySchema;
2000
- exports.RunTaskSchema = RunTaskSchema;
2001
- exports.RuntimeEnvironmentTypeSchema = RuntimeEnvironmentTypeSchema;
2002
- exports.SCHEDULED_EVENT = SCHEDULED_EVENT;
2003
- exports.ScheduleMetadataSchema = ScheduleMetadataSchema;
2004
- exports.ScheduledPayloadSchema = ScheduledPayloadSchema;
2005
- exports.ScheduledTriggerMetadataSchema = ScheduledTriggerMetadataSchema;
2006
- exports.SchemaErrorSchema = SchemaErrorSchema;
2007
- exports.SendBulkEventsBodySchema = SendBulkEventsBodySchema;
2008
- exports.SendEventBodySchema = SendEventBodySchema;
2009
- exports.SendEventOptionsSchema = SendEventOptionsSchema;
2010
- exports.SerializableJsonSchema = SerializableJsonSchema;
2011
- exports.ServerTaskSchema = ServerTaskSchema;
2012
- exports.SourceMetadataV2Schema = SourceMetadataV2Schema;
2013
- exports.StaticTriggerMetadataSchema = StaticTriggerMetadataSchema;
2014
- exports.StatusHistorySchema = StatusHistorySchema;
2015
- exports.StatusUpdateSchema = StatusUpdateSchema;
2016
- exports.StatusUpdateStateSchema = StatusUpdateStateSchema;
2017
- exports.StyleSchema = StyleSchema;
2018
- exports.TaskSchema = TaskSchema;
2019
- exports.TaskStatusSchema = TaskStatusSchema;
2020
- exports.TriggerHelpSchema = TriggerHelpSchema;
2021
- exports.TriggerMetadataSchema = TriggerMetadataSchema;
2022
- exports.TriggerSourceSchema = TriggerSourceSchema;
2023
- exports.UpdateTriggerSourceBodyV1Schema = UpdateTriggerSourceBodyV1Schema;
2024
- exports.UpdateTriggerSourceBodyV2Schema = UpdateTriggerSourceBodyV2Schema;
2025
- exports.UpdateWebhookBodySchema = UpdateWebhookBodySchema;
2026
- exports.ValidateErrorResponseSchema = ValidateErrorResponseSchema;
2027
- exports.ValidateResponseSchema = ValidateResponseSchema;
2028
- exports.ValidateSuccessResponseSchema = ValidateSuccessResponseSchema;
2029
- exports.WebhookContextMetadataSchema = WebhookContextMetadataSchema;
2030
- exports.WebhookDeliveryResponseSchema = WebhookDeliveryResponseSchema;
2031
- exports.WebhookMetadataSchema = WebhookMetadataSchema;
2032
- exports.WebhookSourceRequestHeadersSchema = WebhookSourceRequestHeadersSchema;
2033
- exports.addMissingVersionField = addMissingVersionField;
2034
- exports.assertExhaustive = assertExhaustive;
2035
- exports.calculateResetAt = calculateResetAt;
2036
- exports.calculateRetryAt = calculateRetryAt;
2037
- exports.currentDate = currentDate;
2038
- exports.currentTimestampMilliseconds = currentTimestampMilliseconds;
2039
- exports.currentTimestampSeconds = currentTimestampSeconds;
2040
- exports.deepMergeFilters = deepMergeFilters;
2041
- exports.eventFilterMatches = eventFilterMatches;
2042
- exports.parseEndpointIndexStats = parseEndpointIndexStats;
2043
- exports.replacements = replacements;
2044
- exports.requestFilterMatches = requestFilterMatches;
2045
- exports.responseFilterMatches = responseFilterMatches;
2046
- exports.stringPatternMatchers = stringPatternMatchers;
2047
- exports.supportsFeature = supportsFeature;
2048
- exports.urlWithSearchParams = urlWithSearchParams;
2049
- //# sourceMappingURL=out.js.map
2050
- //# sourceMappingURL=index.js.map