@trigger.dev/core 4.5.11 → 4.5.12

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 (303) hide show
  1. package/dist/commonjs/v3/apiClient/core.js +5 -5
  2. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  3. package/dist/commonjs/v3/apiClient/index.d.ts +9 -1
  4. package/dist/commonjs/v3/apiClient/runStream.d.ts +2 -4
  5. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  6. package/dist/commonjs/v3/apiClient/stream.d.ts +0 -4
  7. package/dist/commonjs/v3/apiClient/stream.js +0 -30
  8. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  9. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -3
  10. package/dist/commonjs/v3/apiClientManager/index.js +9 -2
  11. package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
  12. package/dist/commonjs/v3/apiClientManager/types.d.ts +6 -0
  13. package/dist/commonjs/v3/auth/environment.d.ts +1 -0
  14. package/dist/commonjs/v3/clock/preciseWallClock.d.ts +2 -1
  15. package/dist/commonjs/v3/errors.js +2 -0
  16. package/dist/commonjs/v3/errors.js.map +1 -1
  17. package/dist/commonjs/v3/externalDeploymentId.d.ts +14 -0
  18. package/dist/commonjs/v3/externalDeploymentId.js +81 -0
  19. package/dist/commonjs/v3/externalDeploymentId.js.map +1 -0
  20. package/dist/commonjs/v3/externalDeploymentId.test.d.ts +1 -0
  21. package/dist/commonjs/v3/externalDeploymentId.test.js +173 -0
  22. package/dist/commonjs/v3/externalDeploymentId.test.js.map +1 -0
  23. package/dist/commonjs/v3/idempotencyKeys.js +34 -10
  24. package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
  25. package/dist/commonjs/v3/idempotencyKeys.test.js +158 -0
  26. package/dist/commonjs/v3/idempotencyKeys.test.js.map +1 -1
  27. package/dist/commonjs/v3/index.d.ts +1 -0
  28. package/dist/commonjs/v3/index.js +1 -0
  29. package/dist/commonjs/v3/index.js.map +1 -1
  30. package/dist/commonjs/v3/isomorphic/deploymentVersions.d.ts +1 -0
  31. package/dist/commonjs/v3/isomorphic/deploymentVersions.js +23 -0
  32. package/dist/commonjs/v3/isomorphic/deploymentVersions.js.map +1 -0
  33. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +19 -0
  34. package/dist/commonjs/v3/isomorphic/friendlyId.js +69 -1
  35. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  36. package/dist/commonjs/v3/isomorphic/friendlyId.test.js +43 -0
  37. package/dist/commonjs/v3/isomorphic/friendlyId.test.js.map +1 -1
  38. package/dist/commonjs/v3/isomorphic/index.d.ts +1 -0
  39. package/dist/commonjs/v3/isomorphic/index.js +1 -0
  40. package/dist/commonjs/v3/isomorphic/index.js.map +1 -1
  41. package/dist/commonjs/v3/lifecycleHooks/types.d.ts +4 -3
  42. package/dist/commonjs/v3/locals/manager.js +1 -1
  43. package/dist/commonjs/v3/locals/manager.js.map +1 -1
  44. package/dist/commonjs/v3/logger/taskLogger.d.ts +2 -1
  45. package/dist/commonjs/v3/otel/tracingSDK.d.ts +48 -4
  46. package/dist/commonjs/v3/otel/tracingSDK.js +113 -23
  47. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  48. package/dist/commonjs/v3/otel/tracingSDK.test.d.ts +1 -0
  49. package/dist/commonjs/v3/otel/tracingSDK.test.js +174 -0
  50. package/dist/commonjs/v3/otel/tracingSDK.test.js.map +1 -0
  51. package/dist/commonjs/v3/otel/tracingSDKShutdown.test.d.ts +1 -0
  52. package/dist/commonjs/v3/otel/tracingSDKShutdown.test.js +18 -0
  53. package/dist/commonjs/v3/otel/tracingSDKShutdown.test.js.map +1 -0
  54. package/dist/commonjs/v3/realtimeStreams/index.d.ts +0 -3
  55. package/dist/commonjs/v3/realtimeStreams/index.js +1 -8
  56. package/dist/commonjs/v3/realtimeStreams/index.js.map +1 -1
  57. package/dist/commonjs/v3/resource-catalog/catalog.d.ts +11 -1
  58. package/dist/commonjs/v3/resource-catalog/index.d.ts +11 -1
  59. package/dist/commonjs/v3/resource-catalog/index.js +21 -0
  60. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  61. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +11 -1
  62. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +21 -0
  63. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  64. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +16 -1
  65. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +63 -0
  66. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  67. package/dist/commonjs/v3/runEngineWorker/supervisor/events.d.ts +0 -1
  68. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +2 -0
  69. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +14 -0
  70. package/dist/commonjs/v3/runEngineWorker/supervisor/util.d.ts +0 -1
  71. package/dist/commonjs/v3/runEngineWorker/supervisor/util.js +0 -25
  72. package/dist/commonjs/v3/runEngineWorker/supervisor/util.js.map +1 -1
  73. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +1 -0
  74. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +61 -54
  75. package/dist/commonjs/v3/schemas/api-type.test.js +162 -0
  76. package/dist/commonjs/v3/schemas/api-type.test.js.map +1 -1
  77. package/dist/commonjs/v3/schemas/api.d.ts +4129 -6
  78. package/dist/commonjs/v3/schemas/api.js +81 -4
  79. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  80. package/dist/commonjs/v3/schemas/build.d.ts +7672 -2
  81. package/dist/commonjs/v3/schemas/build.js +2 -0
  82. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  83. package/dist/commonjs/v3/schemas/checkpoints.d.ts +7 -0
  84. package/dist/commonjs/v3/schemas/index.d.ts +3 -0
  85. package/dist/commonjs/v3/schemas/index.js +3 -0
  86. package/dist/commonjs/v3/schemas/index.js.map +1 -1
  87. package/dist/commonjs/v3/schemas/messages.d.ts +3890 -55
  88. package/dist/commonjs/v3/schemas/resources.d.ts +5843 -2
  89. package/dist/commonjs/v3/schemas/resources.js +15 -1
  90. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  91. package/dist/commonjs/v3/schemas/runEngine.d.ts +10 -0
  92. package/dist/commonjs/v3/schemas/runEngine.js +1 -0
  93. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  94. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +38 -0
  95. package/dist/commonjs/v3/schemas/scheduleWindow.js +42 -0
  96. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -0
  97. package/dist/commonjs/v3/schemas/scheduleWindow.test.d.ts +1 -0
  98. package/dist/commonjs/v3/schemas/scheduleWindow.test.js +52 -0
  99. package/dist/commonjs/v3/schemas/scheduleWindow.test.js.map +1 -0
  100. package/dist/commonjs/v3/schemas/schemas.d.ts +5241 -10
  101. package/dist/commonjs/v3/schemas/schemas.js +35 -8
  102. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  103. package/dist/commonjs/v3/schemas/triggerExternalDeploymentId.test.d.ts +1 -0
  104. package/dist/commonjs/v3/schemas/triggerExternalDeploymentId.test.js +104 -0
  105. package/dist/commonjs/v3/schemas/triggerExternalDeploymentId.test.js.map +1 -0
  106. package/dist/commonjs/v3/schemas/webhookApi.d.ts +309 -0
  107. package/dist/commonjs/v3/schemas/webhookApi.js +88 -0
  108. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -0
  109. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +3710 -0
  110. package/dist/commonjs/v3/schemas/webhookConfig.js +168 -0
  111. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -0
  112. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +83 -0
  113. package/dist/commonjs/v3/schemas/webhookFilter.js +41 -0
  114. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -0
  115. package/dist/commonjs/v3/schemas/webhooks.js +4 -0
  116. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  117. package/dist/commonjs/v3/serverOnly/httpServer.js +2 -0
  118. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  119. package/dist/commonjs/v3/taskContext/otelProcessors.js +25 -1
  120. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  121. package/dist/commonjs/v3/taskContext/otelProcessors.test.d.ts +1 -0
  122. package/dist/commonjs/v3/taskContext/otelProcessors.test.js +109 -0
  123. package/dist/commonjs/v3/taskContext/otelProcessors.test.js.map +1 -0
  124. package/dist/commonjs/v3/test/mock-task-context.d.ts +2 -1
  125. package/dist/commonjs/v3/types/chatEvents.d.ts +41 -0
  126. package/dist/commonjs/v3/types/chatEvents.js +3 -0
  127. package/dist/commonjs/v3/types/chatEvents.js.map +1 -0
  128. package/dist/commonjs/v3/types/index.d.ts +2 -0
  129. package/dist/commonjs/v3/types/index.js +2 -0
  130. package/dist/commonjs/v3/types/index.js.map +1 -1
  131. package/dist/commonjs/v3/types/schemas.d.ts +12 -11
  132. package/dist/commonjs/v3/types/tasks.d.ts +21 -0
  133. package/dist/commonjs/v3/types/webhooks.d.ts +26 -0
  134. package/dist/commonjs/v3/types/webhooks.js +3 -0
  135. package/dist/commonjs/v3/types/webhooks.js.map +1 -0
  136. package/dist/commonjs/v3/usage/usageClient.d.ts +0 -4
  137. package/dist/commonjs/v3/usage/usageClient.js.map +1 -1
  138. package/dist/commonjs/v3/utils/flattenAttributes.js +2 -0
  139. package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
  140. package/dist/commonjs/v3/webhooks/index.d.ts +1289 -0
  141. package/dist/commonjs/v3/webhooks/index.js +270 -0
  142. package/dist/commonjs/v3/webhooks/index.js.map +1 -0
  143. package/dist/commonjs/v3/workers/populateEnv.js +2 -2
  144. package/dist/commonjs/v3/workers/populateEnv.js.map +1 -1
  145. package/dist/commonjs/version.js +1 -1
  146. package/dist/esm/v3/apiClient/core.js +6 -6
  147. package/dist/esm/v3/apiClient/core.js.map +1 -1
  148. package/dist/esm/v3/apiClient/index.d.ts +9 -1
  149. package/dist/esm/v3/apiClient/runStream.d.ts +2 -4
  150. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  151. package/dist/esm/v3/apiClient/stream.d.ts +0 -4
  152. package/dist/esm/v3/apiClient/stream.js +0 -28
  153. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  154. package/dist/esm/v3/apiClientManager/index.d.ts +1 -3
  155. package/dist/esm/v3/apiClientManager/index.js +9 -1
  156. package/dist/esm/v3/apiClientManager/index.js.map +1 -1
  157. package/dist/esm/v3/apiClientManager/types.d.ts +6 -0
  158. package/dist/esm/v3/auth/environment.d.ts +1 -0
  159. package/dist/esm/v3/clock/preciseWallClock.d.ts +2 -1
  160. package/dist/esm/v3/errors.js +2 -0
  161. package/dist/esm/v3/errors.js.map +1 -1
  162. package/dist/esm/v3/externalDeploymentId.d.ts +14 -0
  163. package/dist/esm/v3/externalDeploymentId.js +74 -0
  164. package/dist/esm/v3/externalDeploymentId.js.map +1 -0
  165. package/dist/esm/v3/externalDeploymentId.test.d.ts +1 -0
  166. package/dist/esm/v3/externalDeploymentId.test.js +171 -0
  167. package/dist/esm/v3/externalDeploymentId.test.js.map +1 -0
  168. package/dist/esm/v3/idempotencyKeys.js +34 -10
  169. package/dist/esm/v3/idempotencyKeys.js.map +1 -1
  170. package/dist/esm/v3/idempotencyKeys.test.js +160 -2
  171. package/dist/esm/v3/idempotencyKeys.test.js.map +1 -1
  172. package/dist/esm/v3/index.d.ts +1 -0
  173. package/dist/esm/v3/index.js +1 -0
  174. package/dist/esm/v3/index.js.map +1 -1
  175. package/dist/esm/v3/isomorphic/deploymentVersions.d.ts +1 -0
  176. package/dist/esm/v3/isomorphic/deploymentVersions.js +20 -0
  177. package/dist/esm/v3/isomorphic/deploymentVersions.js.map +1 -0
  178. package/dist/esm/v3/isomorphic/friendlyId.d.ts +19 -0
  179. package/dist/esm/v3/isomorphic/friendlyId.js +68 -0
  180. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  181. package/dist/esm/v3/isomorphic/friendlyId.test.js +44 -1
  182. package/dist/esm/v3/isomorphic/friendlyId.test.js.map +1 -1
  183. package/dist/esm/v3/isomorphic/index.d.ts +1 -0
  184. package/dist/esm/v3/isomorphic/index.js +1 -0
  185. package/dist/esm/v3/isomorphic/index.js.map +1 -1
  186. package/dist/esm/v3/lifecycleHooks/types.d.ts +4 -3
  187. package/dist/esm/v3/locals/manager.js +1 -1
  188. package/dist/esm/v3/locals/manager.js.map +1 -1
  189. package/dist/esm/v3/logger/taskLogger.d.ts +2 -1
  190. package/dist/esm/v3/otel/tracingSDK.d.ts +48 -4
  191. package/dist/esm/v3/otel/tracingSDK.js +112 -23
  192. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  193. package/dist/esm/v3/otel/tracingSDK.test.d.ts +1 -0
  194. package/dist/esm/v3/otel/tracingSDK.test.js +172 -0
  195. package/dist/esm/v3/otel/tracingSDK.test.js.map +1 -0
  196. package/dist/esm/v3/otel/tracingSDKShutdown.test.d.ts +1 -0
  197. package/dist/esm/v3/otel/tracingSDKShutdown.test.js +16 -0
  198. package/dist/esm/v3/otel/tracingSDKShutdown.test.js.map +1 -0
  199. package/dist/esm/v3/realtimeStreams/index.d.ts +0 -3
  200. package/dist/esm/v3/realtimeStreams/index.js +0 -2
  201. package/dist/esm/v3/realtimeStreams/index.js.map +1 -1
  202. package/dist/esm/v3/resource-catalog/catalog.d.ts +11 -1
  203. package/dist/esm/v3/resource-catalog/index.d.ts +11 -1
  204. package/dist/esm/v3/resource-catalog/index.js +21 -0
  205. package/dist/esm/v3/resource-catalog/index.js.map +1 -1
  206. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +11 -1
  207. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +21 -0
  208. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  209. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +16 -1
  210. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +63 -0
  211. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  212. package/dist/esm/v3/runEngineWorker/supervisor/events.d.ts +0 -1
  213. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +2 -0
  214. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +14 -0
  215. package/dist/esm/v3/runEngineWorker/supervisor/util.d.ts +0 -1
  216. package/dist/esm/v3/runEngineWorker/supervisor/util.js +0 -24
  217. package/dist/esm/v3/runEngineWorker/supervisor/util.js.map +1 -1
  218. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +1 -0
  219. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +7 -0
  220. package/dist/esm/v3/schemas/api-type.test.js +163 -1
  221. package/dist/esm/v3/schemas/api-type.test.js.map +1 -1
  222. package/dist/esm/v3/schemas/api.d.ts +4129 -6
  223. package/dist/esm/v3/schemas/api.js +76 -0
  224. package/dist/esm/v3/schemas/api.js.map +1 -1
  225. package/dist/esm/v3/schemas/build.d.ts +7672 -2
  226. package/dist/esm/v3/schemas/build.js +3 -1
  227. package/dist/esm/v3/schemas/build.js.map +1 -1
  228. package/dist/esm/v3/schemas/checkpoints.d.ts +7 -0
  229. package/dist/esm/v3/schemas/index.d.ts +3 -0
  230. package/dist/esm/v3/schemas/index.js +3 -0
  231. package/dist/esm/v3/schemas/index.js.map +1 -1
  232. package/dist/esm/v3/schemas/messages.d.ts +3890 -55
  233. package/dist/esm/v3/schemas/resources.d.ts +5843 -2
  234. package/dist/esm/v3/schemas/resources.js +14 -0
  235. package/dist/esm/v3/schemas/resources.js.map +1 -1
  236. package/dist/esm/v3/schemas/runEngine.d.ts +10 -0
  237. package/dist/esm/v3/schemas/runEngine.js +1 -0
  238. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  239. package/dist/esm/v3/schemas/scheduleWindow.d.ts +38 -0
  240. package/dist/esm/v3/schemas/scheduleWindow.js +38 -0
  241. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -0
  242. package/dist/esm/v3/schemas/scheduleWindow.test.d.ts +1 -0
  243. package/dist/esm/v3/schemas/scheduleWindow.test.js +50 -0
  244. package/dist/esm/v3/schemas/scheduleWindow.test.js.map +1 -0
  245. package/dist/esm/v3/schemas/schemas.d.ts +5241 -10
  246. package/dist/esm/v3/schemas/schemas.js +19 -6
  247. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  248. package/dist/esm/v3/schemas/triggerExternalDeploymentId.test.d.ts +1 -0
  249. package/dist/esm/v3/schemas/triggerExternalDeploymentId.test.js +102 -0
  250. package/dist/esm/v3/schemas/triggerExternalDeploymentId.test.js.map +1 -0
  251. package/dist/esm/v3/schemas/webhookApi.d.ts +309 -0
  252. package/dist/esm/v3/schemas/webhookApi.js +85 -0
  253. package/dist/esm/v3/schemas/webhookApi.js.map +1 -0
  254. package/dist/esm/v3/schemas/webhookConfig.d.ts +3710 -0
  255. package/dist/esm/v3/schemas/webhookConfig.js +165 -0
  256. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -0
  257. package/dist/esm/v3/schemas/webhookFilter.d.ts +83 -0
  258. package/dist/esm/v3/schemas/webhookFilter.js +38 -0
  259. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -0
  260. package/dist/esm/v3/schemas/webhooks.js +4 -0
  261. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  262. package/dist/esm/v3/serverOnly/httpServer.js +2 -0
  263. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  264. package/dist/esm/v3/taskContext/otelProcessors.js +25 -1
  265. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  266. package/dist/esm/v3/taskContext/otelProcessors.test.d.ts +1 -0
  267. package/dist/esm/v3/taskContext/otelProcessors.test.js +107 -0
  268. package/dist/esm/v3/taskContext/otelProcessors.test.js.map +1 -0
  269. package/dist/esm/v3/test/mock-task-context.d.ts +2 -1
  270. package/dist/esm/v3/types/chatEvents.d.ts +41 -0
  271. package/dist/esm/v3/types/chatEvents.js +2 -0
  272. package/dist/esm/v3/types/chatEvents.js.map +1 -0
  273. package/dist/esm/v3/types/index.d.ts +2 -0
  274. package/dist/esm/v3/types/index.js +2 -0
  275. package/dist/esm/v3/types/index.js.map +1 -1
  276. package/dist/esm/v3/types/schemas.d.ts +12 -11
  277. package/dist/esm/v3/types/tasks.d.ts +21 -0
  278. package/dist/esm/v3/types/webhooks.d.ts +26 -0
  279. package/dist/esm/v3/types/webhooks.js +2 -0
  280. package/dist/esm/v3/types/webhooks.js.map +1 -0
  281. package/dist/esm/v3/usage/usageClient.d.ts +0 -4
  282. package/dist/esm/v3/usage/usageClient.js.map +1 -1
  283. package/dist/esm/v3/utils/flattenAttributes.js +2 -0
  284. package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
  285. package/dist/esm/v3/webhooks/index.d.ts +1289 -0
  286. package/dist/esm/v3/webhooks/index.js +248 -0
  287. package/dist/esm/v3/webhooks/index.js.map +1 -0
  288. package/dist/esm/v3/workers/populateEnv.js +2 -2
  289. package/dist/esm/v3/workers/populateEnv.js.map +1 -1
  290. package/dist/esm/version.js +1 -1
  291. package/package.json +18 -9
  292. package/dist/commonjs/debounce.d.ts +0 -2
  293. package/dist/commonjs/debounce.js +0 -19
  294. package/dist/commonjs/debounce.js.map +0 -1
  295. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.d.ts +0 -7
  296. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js +0 -21
  297. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js.map +0 -1
  298. package/dist/esm/debounce.d.ts +0 -2
  299. package/dist/esm/debounce.js +0 -16
  300. package/dist/esm/debounce.js.map +0 -1
  301. package/dist/esm/v3/utils/safeAsyncLocalStorage.d.ts +0 -7
  302. package/dist/esm/v3/utils/safeAsyncLocalStorage.js +0 -17
  303. package/dist/esm/v3/utils/safeAsyncLocalStorage.js.map +0 -1
@@ -44,6 +44,7 @@ export declare const GetProjectResponseBody: z.ZodObject<{
44
44
  slug: z.ZodString;
45
45
  createdAt: z.ZodDate;
46
46
  defaultRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ defaultRuntime: z.ZodOptional<z.ZodNullable<z.ZodEnum<["node", "node-22", "node-24", "node-26", "bun"]>>>;
47
48
  organization: z.ZodObject<{
48
49
  id: z.ZodString;
49
50
  title: z.ZodString;
@@ -67,6 +68,7 @@ export declare const GetProjectResponseBody: z.ZodObject<{
67
68
  slug: string;
68
69
  createdAt: Date;
69
70
  defaultRegion?: string | null | undefined;
71
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
70
72
  organization: {
71
73
  id: string;
72
74
  title: string;
@@ -80,6 +82,7 @@ export declare const GetProjectResponseBody: z.ZodObject<{
80
82
  slug: string;
81
83
  createdAt: Date;
82
84
  defaultRegion?: string | null | undefined;
85
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
83
86
  organization: {
84
87
  id: string;
85
88
  title: string;
@@ -95,6 +98,7 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
95
98
  slug: z.ZodString;
96
99
  createdAt: z.ZodDate;
97
100
  defaultRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ defaultRuntime: z.ZodOptional<z.ZodNullable<z.ZodEnum<["node", "node-22", "node-24", "node-26", "bun"]>>>;
98
102
  organization: z.ZodObject<{
99
103
  id: z.ZodString;
100
104
  title: z.ZodString;
@@ -118,6 +122,7 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
118
122
  slug: string;
119
123
  createdAt: Date;
120
124
  defaultRegion?: string | null | undefined;
125
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
121
126
  organization: {
122
127
  id: string;
123
128
  title: string;
@@ -131,6 +136,7 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
131
136
  slug: string;
132
137
  createdAt: Date;
133
138
  defaultRegion?: string | null | undefined;
139
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
134
140
  organization: {
135
141
  id: string;
136
142
  title: string;
@@ -139,6 +145,107 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
139
145
  };
140
146
  }>, "many">;
141
147
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
148
+ /** The Node.js major version currently targeted by the runtime update report. */
149
+ export declare const NODE_RUNTIME_UPDATE_MAJOR = 21;
150
+ /**
151
+ * Returns the observed Node.js major version for a deployment.
152
+ *
153
+ * `runtime: "node"` is an alias whose underlying Node.js version has changed over time, so the
154
+ * recorded runtimeVersion is deliberately the source of truth here.
155
+ */
156
+ export declare function nodeMajor(runtime: string | null | undefined, runtimeVersion: string | null | undefined): number | undefined;
157
+ export declare const GetProjectRuntimesResponseBody: z.ZodArray<z.ZodObject<{
158
+ organization: z.ZodObject<{
159
+ title: z.ZodString;
160
+ slug: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ title: string;
163
+ slug: string;
164
+ }, {
165
+ title: string;
166
+ slug: string;
167
+ }>;
168
+ project: z.ZodObject<{
169
+ name: z.ZodString;
170
+ slug: z.ZodString;
171
+ externalRef: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ name: string;
174
+ slug: string;
175
+ externalRef: string;
176
+ }, {
177
+ name: string;
178
+ slug: string;
179
+ externalRef: string;
180
+ }>;
181
+ environment: z.ZodObject<{
182
+ slug: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ slug: string;
185
+ }, {
186
+ slug: string;
187
+ }>;
188
+ deployment: z.ZodNullable<z.ZodObject<{
189
+ runtime: z.ZodNullable<z.ZodString>;
190
+ runtimeVersion: z.ZodNullable<z.ZodString>;
191
+ nodeMajor: z.ZodNullable<z.ZodNumber>;
192
+ deployedAt: z.ZodNullable<z.ZodDate>;
193
+ shortCode: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ runtime: string | null;
196
+ runtimeVersion: string | null;
197
+ nodeMajor: number | null;
198
+ deployedAt: Date | null;
199
+ shortCode: string;
200
+ }, {
201
+ runtime: string | null;
202
+ runtimeVersion: string | null;
203
+ nodeMajor: number | null;
204
+ deployedAt: Date | null;
205
+ shortCode: string;
206
+ }>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ organization: {
209
+ title: string;
210
+ slug: string;
211
+ };
212
+ project: {
213
+ name: string;
214
+ slug: string;
215
+ externalRef: string;
216
+ };
217
+ environment: {
218
+ slug: string;
219
+ };
220
+ deployment: {
221
+ runtime: string | null;
222
+ runtimeVersion: string | null;
223
+ nodeMajor: number | null;
224
+ deployedAt: Date | null;
225
+ shortCode: string;
226
+ } | null;
227
+ }, {
228
+ organization: {
229
+ title: string;
230
+ slug: string;
231
+ };
232
+ project: {
233
+ name: string;
234
+ slug: string;
235
+ externalRef: string;
236
+ };
237
+ environment: {
238
+ slug: string;
239
+ };
240
+ deployment: {
241
+ runtime: string | null;
242
+ runtimeVersion: string | null;
243
+ nodeMajor: number | null;
244
+ deployedAt: Date | null;
245
+ shortCode: string;
246
+ } | null;
247
+ }>, "many">;
248
+ export type GetProjectRuntimesResponseBody = z.infer<typeof GetProjectRuntimesResponseBody>;
142
249
  export declare const GetOrgsResponseBody: z.ZodArray<z.ZodObject<{
143
250
  id: z.ZodString;
144
251
  title: z.ZodString;
@@ -200,16 +307,19 @@ export declare const GetProjectEnvResponse: z.ZodObject<{
200
307
  name: z.ZodString;
201
308
  apiUrl: z.ZodString;
202
309
  projectId: z.ZodString;
310
+ defaultRuntime: z.ZodOptional<z.ZodNullable<z.ZodEnum<["node", "node-22", "node-24", "node-26", "bun"]>>>;
203
311
  }, "strip", z.ZodTypeAny, {
204
312
  apiKey: string;
205
313
  name: string;
206
314
  apiUrl: string;
207
315
  projectId: string;
316
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
208
317
  }, {
209
318
  apiKey: string;
210
319
  name: string;
211
320
  apiUrl: string;
212
321
  projectId: string;
322
+ defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
213
323
  }>;
214
324
  export type GetProjectEnvResponse = z.infer<typeof GetProjectEnvResponse>;
215
325
  export declare const ProjectEnvironment: z.ZodObject<{
@@ -503,7 +613,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
503
613
  cron: z.ZodString;
504
614
  timezone: z.ZodString;
505
615
  environments: z.ZodOptional<z.ZodArray<z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>, "many">>;
506
- window: z.ZodOptional<z.ZodString>;
616
+ window: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
507
617
  }, "strip", z.ZodTypeAny, {
508
618
  cron: string;
509
619
  timezone: string;
@@ -621,6 +731,2625 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
621
731
  config?: Record<string, unknown> | undefined;
622
732
  variableSchema?: unknown;
623
733
  }>, "many">>;
734
+ webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
735
+ id: z.ZodString;
736
+ description: z.ZodOptional<z.ZodString>;
737
+ filePath: z.ZodString;
738
+ exportName: z.ZodOptional<z.ZodString>;
739
+ source: z.ZodString;
740
+ verifierArtifact: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
741
+ kind: z.ZodLiteral<"config">;
742
+ config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
743
+ scheme: z.ZodLiteral<"hmac">;
744
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
745
+ encoding: z.ZodEnum<["hex", "base64"]>;
746
+ signatureHeader: z.ZodString;
747
+ signature: z.ZodOptional<z.ZodObject<{
748
+ itemSeparator: z.ZodOptional<z.ZodString>;
749
+ fieldSeparator: z.ZodOptional<z.ZodString>;
750
+ field: z.ZodOptional<z.ZodString>;
751
+ trim: z.ZodOptional<z.ZodBoolean>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ itemSeparator?: string | undefined;
754
+ fieldSeparator?: string | undefined;
755
+ field?: string | undefined;
756
+ trim?: boolean | undefined;
757
+ }, {
758
+ itemSeparator?: string | undefined;
759
+ fieldSeparator?: string | undefined;
760
+ field?: string | undefined;
761
+ trim?: boolean | undefined;
762
+ }>>;
763
+ timestamp: z.ZodOptional<z.ZodObject<{
764
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
765
+ from: z.ZodLiteral<"header">;
766
+ name: z.ZodString;
767
+ }, "strip", z.ZodTypeAny, {
768
+ from: "header";
769
+ name: string;
770
+ }, {
771
+ from: "header";
772
+ name: string;
773
+ }>, z.ZodObject<{
774
+ from: z.ZodLiteral<"signatureField">;
775
+ field: z.ZodString;
776
+ }, "strip", z.ZodTypeAny, {
777
+ from: "signatureField";
778
+ field: string;
779
+ }, {
780
+ from: "signatureField";
781
+ field: string;
782
+ }>, z.ZodObject<{
783
+ from: z.ZodLiteral<"body">;
784
+ path: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ from: "body";
787
+ path: string;
788
+ }, {
789
+ from: "body";
790
+ path: string;
791
+ }>, z.ZodObject<{
792
+ from: z.ZodLiteral<"url">;
793
+ }, "strip", z.ZodTypeAny, {
794
+ from: "url";
795
+ }, {
796
+ from: "url";
797
+ }>, z.ZodObject<{
798
+ from: z.ZodLiteral<"constant">;
799
+ value: z.ZodString;
800
+ }, "strip", z.ZodTypeAny, {
801
+ from: "constant";
802
+ value: string;
803
+ }, {
804
+ from: "constant";
805
+ value: string;
806
+ }>]>;
807
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
808
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ source: {
811
+ from: "header";
812
+ name: string;
813
+ } | {
814
+ from: "signatureField";
815
+ field: string;
816
+ } | {
817
+ from: "body";
818
+ path: string;
819
+ } | {
820
+ from: "url";
821
+ } | {
822
+ from: "constant";
823
+ value: string;
824
+ };
825
+ unit?: "milliseconds" | "seconds" | undefined;
826
+ toleranceSeconds?: number | undefined;
827
+ }, {
828
+ source: {
829
+ from: "header";
830
+ name: string;
831
+ } | {
832
+ from: "signatureField";
833
+ field: string;
834
+ } | {
835
+ from: "body";
836
+ path: string;
837
+ } | {
838
+ from: "url";
839
+ } | {
840
+ from: "constant";
841
+ value: string;
842
+ };
843
+ unit?: "milliseconds" | "seconds" | undefined;
844
+ toleranceSeconds?: number | undefined;
845
+ }>>;
846
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
847
+ template: z.ZodString;
848
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
849
+ from: z.ZodLiteral<"header">;
850
+ name: z.ZodString;
851
+ }, "strip", z.ZodTypeAny, {
852
+ from: "header";
853
+ name: string;
854
+ }, {
855
+ from: "header";
856
+ name: string;
857
+ }>, z.ZodObject<{
858
+ from: z.ZodLiteral<"signatureField">;
859
+ field: z.ZodString;
860
+ }, "strip", z.ZodTypeAny, {
861
+ from: "signatureField";
862
+ field: string;
863
+ }, {
864
+ from: "signatureField";
865
+ field: string;
866
+ }>, z.ZodObject<{
867
+ from: z.ZodLiteral<"body">;
868
+ path: z.ZodString;
869
+ }, "strip", z.ZodTypeAny, {
870
+ from: "body";
871
+ path: string;
872
+ }, {
873
+ from: "body";
874
+ path: string;
875
+ }>, z.ZodObject<{
876
+ from: z.ZodLiteral<"url">;
877
+ }, "strip", z.ZodTypeAny, {
878
+ from: "url";
879
+ }, {
880
+ from: "url";
881
+ }>, z.ZodObject<{
882
+ from: z.ZodLiteral<"constant">;
883
+ value: z.ZodString;
884
+ }, "strip", z.ZodTypeAny, {
885
+ from: "constant";
886
+ value: string;
887
+ }, {
888
+ from: "constant";
889
+ value: string;
890
+ }>]>>>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ template: string;
893
+ vars?: Record<string, {
894
+ from: "header";
895
+ name: string;
896
+ } | {
897
+ from: "signatureField";
898
+ field: string;
899
+ } | {
900
+ from: "body";
901
+ path: string;
902
+ } | {
903
+ from: "url";
904
+ } | {
905
+ from: "constant";
906
+ value: string;
907
+ }> | undefined;
908
+ }, {
909
+ template: string;
910
+ vars?: Record<string, {
911
+ from: "header";
912
+ name: string;
913
+ } | {
914
+ from: "signatureField";
915
+ field: string;
916
+ } | {
917
+ from: "body";
918
+ path: string;
919
+ } | {
920
+ from: "url";
921
+ } | {
922
+ from: "constant";
923
+ value: string;
924
+ }> | undefined;
925
+ }>]>;
926
+ secret: z.ZodOptional<z.ZodObject<{
927
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
928
+ stripPrefix: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ encoding?: "base64" | "utf8" | undefined;
931
+ stripPrefix?: string | undefined;
932
+ }, {
933
+ encoding?: "base64" | "utf8" | undefined;
934
+ stripPrefix?: string | undefined;
935
+ }>>;
936
+ idempotencyField: z.ZodOptional<z.ZodObject<{
937
+ from: z.ZodEnum<["header", "body"]>;
938
+ name: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ from: "body" | "header";
941
+ name: string;
942
+ }, {
943
+ from: "body" | "header";
944
+ name: string;
945
+ }>>;
946
+ formPayload: z.ZodOptional<z.ZodObject<{
947
+ field: z.ZodString;
948
+ }, "strip", z.ZodTypeAny, {
949
+ field: string;
950
+ }, {
951
+ field: string;
952
+ }>>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ scheme: "hmac";
955
+ algorithm: "sha1" | "sha256";
956
+ encoding: "base64" | "hex";
957
+ signatureHeader: string;
958
+ signature?: {
959
+ itemSeparator?: string | undefined;
960
+ fieldSeparator?: string | undefined;
961
+ field?: string | undefined;
962
+ trim?: boolean | undefined;
963
+ } | undefined;
964
+ timestamp?: {
965
+ source: {
966
+ from: "header";
967
+ name: string;
968
+ } | {
969
+ from: "signatureField";
970
+ field: string;
971
+ } | {
972
+ from: "body";
973
+ path: string;
974
+ } | {
975
+ from: "url";
976
+ } | {
977
+ from: "constant";
978
+ value: string;
979
+ };
980
+ unit?: "milliseconds" | "seconds" | undefined;
981
+ toleranceSeconds?: number | undefined;
982
+ } | undefined;
983
+ signingString: "raw" | {
984
+ template: string;
985
+ vars?: Record<string, {
986
+ from: "header";
987
+ name: string;
988
+ } | {
989
+ from: "signatureField";
990
+ field: string;
991
+ } | {
992
+ from: "body";
993
+ path: string;
994
+ } | {
995
+ from: "url";
996
+ } | {
997
+ from: "constant";
998
+ value: string;
999
+ }> | undefined;
1000
+ };
1001
+ secret?: {
1002
+ encoding?: "base64" | "utf8" | undefined;
1003
+ stripPrefix?: string | undefined;
1004
+ } | undefined;
1005
+ idempotencyField?: {
1006
+ from: "body" | "header";
1007
+ name: string;
1008
+ } | undefined;
1009
+ formPayload?: {
1010
+ field: string;
1011
+ } | undefined;
1012
+ }, {
1013
+ scheme: "hmac";
1014
+ algorithm: "sha1" | "sha256";
1015
+ encoding: "base64" | "hex";
1016
+ signatureHeader: string;
1017
+ signature?: {
1018
+ itemSeparator?: string | undefined;
1019
+ fieldSeparator?: string | undefined;
1020
+ field?: string | undefined;
1021
+ trim?: boolean | undefined;
1022
+ } | undefined;
1023
+ timestamp?: {
1024
+ source: {
1025
+ from: "header";
1026
+ name: string;
1027
+ } | {
1028
+ from: "signatureField";
1029
+ field: string;
1030
+ } | {
1031
+ from: "body";
1032
+ path: string;
1033
+ } | {
1034
+ from: "url";
1035
+ } | {
1036
+ from: "constant";
1037
+ value: string;
1038
+ };
1039
+ unit?: "milliseconds" | "seconds" | undefined;
1040
+ toleranceSeconds?: number | undefined;
1041
+ } | undefined;
1042
+ signingString: "raw" | {
1043
+ template: string;
1044
+ vars?: Record<string, {
1045
+ from: "header";
1046
+ name: string;
1047
+ } | {
1048
+ from: "signatureField";
1049
+ field: string;
1050
+ } | {
1051
+ from: "body";
1052
+ path: string;
1053
+ } | {
1054
+ from: "url";
1055
+ } | {
1056
+ from: "constant";
1057
+ value: string;
1058
+ }> | undefined;
1059
+ };
1060
+ secret?: {
1061
+ encoding?: "base64" | "utf8" | undefined;
1062
+ stripPrefix?: string | undefined;
1063
+ } | undefined;
1064
+ idempotencyField?: {
1065
+ from: "body" | "header";
1066
+ name: string;
1067
+ } | undefined;
1068
+ formPayload?: {
1069
+ field: string;
1070
+ } | undefined;
1071
+ }>, z.ZodObject<{
1072
+ scheme: z.ZodLiteral<"shared-secret">;
1073
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
1074
+ fieldName: z.ZodOptional<z.ZodString>;
1075
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1076
+ from: z.ZodEnum<["header", "body"]>;
1077
+ name: z.ZodString;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ from: "body" | "header";
1080
+ name: string;
1081
+ }, {
1082
+ from: "body" | "header";
1083
+ name: string;
1084
+ }>>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ scheme: "shared-secret";
1087
+ placement: "basic" | "bearer" | "body" | "header";
1088
+ fieldName?: string | undefined;
1089
+ idempotencyField?: {
1090
+ from: "body" | "header";
1091
+ name: string;
1092
+ } | undefined;
1093
+ }, {
1094
+ scheme: "shared-secret";
1095
+ placement: "basic" | "bearer" | "body" | "header";
1096
+ fieldName?: string | undefined;
1097
+ idempotencyField?: {
1098
+ from: "body" | "header";
1099
+ name: string;
1100
+ } | undefined;
1101
+ }>, z.ZodObject<{
1102
+ scheme: z.ZodLiteral<"url-secret">;
1103
+ placement: z.ZodEnum<["query", "path"]>;
1104
+ paramName: z.ZodString;
1105
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1106
+ from: z.ZodEnum<["header", "body"]>;
1107
+ name: z.ZodString;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ from: "body" | "header";
1110
+ name: string;
1111
+ }, {
1112
+ from: "body" | "header";
1113
+ name: string;
1114
+ }>>;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ scheme: "url-secret";
1117
+ placement: "path" | "query";
1118
+ paramName: string;
1119
+ idempotencyField?: {
1120
+ from: "body" | "header";
1121
+ name: string;
1122
+ } | undefined;
1123
+ }, {
1124
+ scheme: "url-secret";
1125
+ placement: "path" | "query";
1126
+ paramName: string;
1127
+ idempotencyField?: {
1128
+ from: "body" | "header";
1129
+ name: string;
1130
+ } | undefined;
1131
+ }>, z.ZodObject<{
1132
+ scheme: z.ZodLiteral<"asymmetric">;
1133
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
1134
+ encoding: z.ZodEnum<["hex", "base64"]>;
1135
+ signatureHeader: z.ZodString;
1136
+ signature: z.ZodOptional<z.ZodObject<{
1137
+ itemSeparator: z.ZodOptional<z.ZodString>;
1138
+ fieldSeparator: z.ZodOptional<z.ZodString>;
1139
+ field: z.ZodOptional<z.ZodString>;
1140
+ trim: z.ZodOptional<z.ZodBoolean>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ itemSeparator?: string | undefined;
1143
+ fieldSeparator?: string | undefined;
1144
+ field?: string | undefined;
1145
+ trim?: boolean | undefined;
1146
+ }, {
1147
+ itemSeparator?: string | undefined;
1148
+ fieldSeparator?: string | undefined;
1149
+ field?: string | undefined;
1150
+ trim?: boolean | undefined;
1151
+ }>>;
1152
+ timestamp: z.ZodOptional<z.ZodObject<{
1153
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1154
+ from: z.ZodLiteral<"header">;
1155
+ name: z.ZodString;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ from: "header";
1158
+ name: string;
1159
+ }, {
1160
+ from: "header";
1161
+ name: string;
1162
+ }>, z.ZodObject<{
1163
+ from: z.ZodLiteral<"signatureField">;
1164
+ field: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ from: "signatureField";
1167
+ field: string;
1168
+ }, {
1169
+ from: "signatureField";
1170
+ field: string;
1171
+ }>, z.ZodObject<{
1172
+ from: z.ZodLiteral<"body">;
1173
+ path: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ from: "body";
1176
+ path: string;
1177
+ }, {
1178
+ from: "body";
1179
+ path: string;
1180
+ }>, z.ZodObject<{
1181
+ from: z.ZodLiteral<"url">;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ from: "url";
1184
+ }, {
1185
+ from: "url";
1186
+ }>, z.ZodObject<{
1187
+ from: z.ZodLiteral<"constant">;
1188
+ value: z.ZodString;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ from: "constant";
1191
+ value: string;
1192
+ }, {
1193
+ from: "constant";
1194
+ value: string;
1195
+ }>]>;
1196
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
1197
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ source: {
1200
+ from: "header";
1201
+ name: string;
1202
+ } | {
1203
+ from: "signatureField";
1204
+ field: string;
1205
+ } | {
1206
+ from: "body";
1207
+ path: string;
1208
+ } | {
1209
+ from: "url";
1210
+ } | {
1211
+ from: "constant";
1212
+ value: string;
1213
+ };
1214
+ unit?: "milliseconds" | "seconds" | undefined;
1215
+ toleranceSeconds?: number | undefined;
1216
+ }, {
1217
+ source: {
1218
+ from: "header";
1219
+ name: string;
1220
+ } | {
1221
+ from: "signatureField";
1222
+ field: string;
1223
+ } | {
1224
+ from: "body";
1225
+ path: string;
1226
+ } | {
1227
+ from: "url";
1228
+ } | {
1229
+ from: "constant";
1230
+ value: string;
1231
+ };
1232
+ unit?: "milliseconds" | "seconds" | undefined;
1233
+ toleranceSeconds?: number | undefined;
1234
+ }>>;
1235
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
1236
+ template: z.ZodString;
1237
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1238
+ from: z.ZodLiteral<"header">;
1239
+ name: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ from: "header";
1242
+ name: string;
1243
+ }, {
1244
+ from: "header";
1245
+ name: string;
1246
+ }>, z.ZodObject<{
1247
+ from: z.ZodLiteral<"signatureField">;
1248
+ field: z.ZodString;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ from: "signatureField";
1251
+ field: string;
1252
+ }, {
1253
+ from: "signatureField";
1254
+ field: string;
1255
+ }>, z.ZodObject<{
1256
+ from: z.ZodLiteral<"body">;
1257
+ path: z.ZodString;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ from: "body";
1260
+ path: string;
1261
+ }, {
1262
+ from: "body";
1263
+ path: string;
1264
+ }>, z.ZodObject<{
1265
+ from: z.ZodLiteral<"url">;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ from: "url";
1268
+ }, {
1269
+ from: "url";
1270
+ }>, z.ZodObject<{
1271
+ from: z.ZodLiteral<"constant">;
1272
+ value: z.ZodString;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ from: "constant";
1275
+ value: string;
1276
+ }, {
1277
+ from: "constant";
1278
+ value: string;
1279
+ }>]>>>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ template: string;
1282
+ vars?: Record<string, {
1283
+ from: "header";
1284
+ name: string;
1285
+ } | {
1286
+ from: "signatureField";
1287
+ field: string;
1288
+ } | {
1289
+ from: "body";
1290
+ path: string;
1291
+ } | {
1292
+ from: "url";
1293
+ } | {
1294
+ from: "constant";
1295
+ value: string;
1296
+ }> | undefined;
1297
+ }, {
1298
+ template: string;
1299
+ vars?: Record<string, {
1300
+ from: "header";
1301
+ name: string;
1302
+ } | {
1303
+ from: "signatureField";
1304
+ field: string;
1305
+ } | {
1306
+ from: "body";
1307
+ path: string;
1308
+ } | {
1309
+ from: "url";
1310
+ } | {
1311
+ from: "constant";
1312
+ value: string;
1313
+ }> | undefined;
1314
+ }>]>;
1315
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
1316
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1317
+ from: z.ZodEnum<["header", "body"]>;
1318
+ name: z.ZodString;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ from: "body" | "header";
1321
+ name: string;
1322
+ }, {
1323
+ from: "body" | "header";
1324
+ name: string;
1325
+ }>>;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ scheme: "asymmetric";
1328
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1329
+ encoding: "base64" | "hex";
1330
+ signatureHeader: string;
1331
+ signature?: {
1332
+ itemSeparator?: string | undefined;
1333
+ fieldSeparator?: string | undefined;
1334
+ field?: string | undefined;
1335
+ trim?: boolean | undefined;
1336
+ } | undefined;
1337
+ timestamp?: {
1338
+ source: {
1339
+ from: "header";
1340
+ name: string;
1341
+ } | {
1342
+ from: "signatureField";
1343
+ field: string;
1344
+ } | {
1345
+ from: "body";
1346
+ path: string;
1347
+ } | {
1348
+ from: "url";
1349
+ } | {
1350
+ from: "constant";
1351
+ value: string;
1352
+ };
1353
+ unit?: "milliseconds" | "seconds" | undefined;
1354
+ toleranceSeconds?: number | undefined;
1355
+ } | undefined;
1356
+ signingString: "raw" | {
1357
+ template: string;
1358
+ vars?: Record<string, {
1359
+ from: "header";
1360
+ name: string;
1361
+ } | {
1362
+ from: "signatureField";
1363
+ field: string;
1364
+ } | {
1365
+ from: "body";
1366
+ path: string;
1367
+ } | {
1368
+ from: "url";
1369
+ } | {
1370
+ from: "constant";
1371
+ value: string;
1372
+ }> | undefined;
1373
+ };
1374
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1375
+ idempotencyField?: {
1376
+ from: "body" | "header";
1377
+ name: string;
1378
+ } | undefined;
1379
+ }, {
1380
+ scheme: "asymmetric";
1381
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1382
+ encoding: "base64" | "hex";
1383
+ signatureHeader: string;
1384
+ signature?: {
1385
+ itemSeparator?: string | undefined;
1386
+ fieldSeparator?: string | undefined;
1387
+ field?: string | undefined;
1388
+ trim?: boolean | undefined;
1389
+ } | undefined;
1390
+ timestamp?: {
1391
+ source: {
1392
+ from: "header";
1393
+ name: string;
1394
+ } | {
1395
+ from: "signatureField";
1396
+ field: string;
1397
+ } | {
1398
+ from: "body";
1399
+ path: string;
1400
+ } | {
1401
+ from: "url";
1402
+ } | {
1403
+ from: "constant";
1404
+ value: string;
1405
+ };
1406
+ unit?: "milliseconds" | "seconds" | undefined;
1407
+ toleranceSeconds?: number | undefined;
1408
+ } | undefined;
1409
+ signingString: "raw" | {
1410
+ template: string;
1411
+ vars?: Record<string, {
1412
+ from: "header";
1413
+ name: string;
1414
+ } | {
1415
+ from: "signatureField";
1416
+ field: string;
1417
+ } | {
1418
+ from: "body";
1419
+ path: string;
1420
+ } | {
1421
+ from: "url";
1422
+ } | {
1423
+ from: "constant";
1424
+ value: string;
1425
+ }> | undefined;
1426
+ };
1427
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1428
+ idempotencyField?: {
1429
+ from: "body" | "header";
1430
+ name: string;
1431
+ } | undefined;
1432
+ }>]>;
1433
+ handshake: z.ZodOptional<z.ZodObject<{
1434
+ matchPath: z.ZodString;
1435
+ matchValue: z.ZodString;
1436
+ respondPath: z.ZodString;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ matchPath: string;
1439
+ matchValue: string;
1440
+ respondPath: string;
1441
+ }, {
1442
+ matchPath: string;
1443
+ matchValue: string;
1444
+ respondPath: string;
1445
+ }>>;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ kind: "config";
1448
+ config: {
1449
+ scheme: "hmac";
1450
+ algorithm: "sha1" | "sha256";
1451
+ encoding: "base64" | "hex";
1452
+ signatureHeader: string;
1453
+ signature?: {
1454
+ itemSeparator?: string | undefined;
1455
+ fieldSeparator?: string | undefined;
1456
+ field?: string | undefined;
1457
+ trim?: boolean | undefined;
1458
+ } | undefined;
1459
+ timestamp?: {
1460
+ source: {
1461
+ from: "header";
1462
+ name: string;
1463
+ } | {
1464
+ from: "signatureField";
1465
+ field: string;
1466
+ } | {
1467
+ from: "body";
1468
+ path: string;
1469
+ } | {
1470
+ from: "url";
1471
+ } | {
1472
+ from: "constant";
1473
+ value: string;
1474
+ };
1475
+ unit?: "milliseconds" | "seconds" | undefined;
1476
+ toleranceSeconds?: number | undefined;
1477
+ } | undefined;
1478
+ signingString: "raw" | {
1479
+ template: string;
1480
+ vars?: Record<string, {
1481
+ from: "header";
1482
+ name: string;
1483
+ } | {
1484
+ from: "signatureField";
1485
+ field: string;
1486
+ } | {
1487
+ from: "body";
1488
+ path: string;
1489
+ } | {
1490
+ from: "url";
1491
+ } | {
1492
+ from: "constant";
1493
+ value: string;
1494
+ }> | undefined;
1495
+ };
1496
+ secret?: {
1497
+ encoding?: "base64" | "utf8" | undefined;
1498
+ stripPrefix?: string | undefined;
1499
+ } | undefined;
1500
+ idempotencyField?: {
1501
+ from: "body" | "header";
1502
+ name: string;
1503
+ } | undefined;
1504
+ formPayload?: {
1505
+ field: string;
1506
+ } | undefined;
1507
+ } | {
1508
+ scheme: "shared-secret";
1509
+ placement: "basic" | "bearer" | "body" | "header";
1510
+ fieldName?: string | undefined;
1511
+ idempotencyField?: {
1512
+ from: "body" | "header";
1513
+ name: string;
1514
+ } | undefined;
1515
+ } | {
1516
+ scheme: "url-secret";
1517
+ placement: "path" | "query";
1518
+ paramName: string;
1519
+ idempotencyField?: {
1520
+ from: "body" | "header";
1521
+ name: string;
1522
+ } | undefined;
1523
+ } | {
1524
+ scheme: "asymmetric";
1525
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1526
+ encoding: "base64" | "hex";
1527
+ signatureHeader: string;
1528
+ signature?: {
1529
+ itemSeparator?: string | undefined;
1530
+ fieldSeparator?: string | undefined;
1531
+ field?: string | undefined;
1532
+ trim?: boolean | undefined;
1533
+ } | undefined;
1534
+ timestamp?: {
1535
+ source: {
1536
+ from: "header";
1537
+ name: string;
1538
+ } | {
1539
+ from: "signatureField";
1540
+ field: string;
1541
+ } | {
1542
+ from: "body";
1543
+ path: string;
1544
+ } | {
1545
+ from: "url";
1546
+ } | {
1547
+ from: "constant";
1548
+ value: string;
1549
+ };
1550
+ unit?: "milliseconds" | "seconds" | undefined;
1551
+ toleranceSeconds?: number | undefined;
1552
+ } | undefined;
1553
+ signingString: "raw" | {
1554
+ template: string;
1555
+ vars?: Record<string, {
1556
+ from: "header";
1557
+ name: string;
1558
+ } | {
1559
+ from: "signatureField";
1560
+ field: string;
1561
+ } | {
1562
+ from: "body";
1563
+ path: string;
1564
+ } | {
1565
+ from: "url";
1566
+ } | {
1567
+ from: "constant";
1568
+ value: string;
1569
+ }> | undefined;
1570
+ };
1571
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1572
+ idempotencyField?: {
1573
+ from: "body" | "header";
1574
+ name: string;
1575
+ } | undefined;
1576
+ };
1577
+ handshake?: {
1578
+ matchPath: string;
1579
+ matchValue: string;
1580
+ respondPath: string;
1581
+ } | undefined;
1582
+ }, {
1583
+ kind: "config";
1584
+ config: {
1585
+ scheme: "hmac";
1586
+ algorithm: "sha1" | "sha256";
1587
+ encoding: "base64" | "hex";
1588
+ signatureHeader: string;
1589
+ signature?: {
1590
+ itemSeparator?: string | undefined;
1591
+ fieldSeparator?: string | undefined;
1592
+ field?: string | undefined;
1593
+ trim?: boolean | undefined;
1594
+ } | undefined;
1595
+ timestamp?: {
1596
+ source: {
1597
+ from: "header";
1598
+ name: string;
1599
+ } | {
1600
+ from: "signatureField";
1601
+ field: string;
1602
+ } | {
1603
+ from: "body";
1604
+ path: string;
1605
+ } | {
1606
+ from: "url";
1607
+ } | {
1608
+ from: "constant";
1609
+ value: string;
1610
+ };
1611
+ unit?: "milliseconds" | "seconds" | undefined;
1612
+ toleranceSeconds?: number | undefined;
1613
+ } | undefined;
1614
+ signingString: "raw" | {
1615
+ template: string;
1616
+ vars?: Record<string, {
1617
+ from: "header";
1618
+ name: string;
1619
+ } | {
1620
+ from: "signatureField";
1621
+ field: string;
1622
+ } | {
1623
+ from: "body";
1624
+ path: string;
1625
+ } | {
1626
+ from: "url";
1627
+ } | {
1628
+ from: "constant";
1629
+ value: string;
1630
+ }> | undefined;
1631
+ };
1632
+ secret?: {
1633
+ encoding?: "base64" | "utf8" | undefined;
1634
+ stripPrefix?: string | undefined;
1635
+ } | undefined;
1636
+ idempotencyField?: {
1637
+ from: "body" | "header";
1638
+ name: string;
1639
+ } | undefined;
1640
+ formPayload?: {
1641
+ field: string;
1642
+ } | undefined;
1643
+ } | {
1644
+ scheme: "shared-secret";
1645
+ placement: "basic" | "bearer" | "body" | "header";
1646
+ fieldName?: string | undefined;
1647
+ idempotencyField?: {
1648
+ from: "body" | "header";
1649
+ name: string;
1650
+ } | undefined;
1651
+ } | {
1652
+ scheme: "url-secret";
1653
+ placement: "path" | "query";
1654
+ paramName: string;
1655
+ idempotencyField?: {
1656
+ from: "body" | "header";
1657
+ name: string;
1658
+ } | undefined;
1659
+ } | {
1660
+ scheme: "asymmetric";
1661
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1662
+ encoding: "base64" | "hex";
1663
+ signatureHeader: string;
1664
+ signature?: {
1665
+ itemSeparator?: string | undefined;
1666
+ fieldSeparator?: string | undefined;
1667
+ field?: string | undefined;
1668
+ trim?: boolean | undefined;
1669
+ } | undefined;
1670
+ timestamp?: {
1671
+ source: {
1672
+ from: "header";
1673
+ name: string;
1674
+ } | {
1675
+ from: "signatureField";
1676
+ field: string;
1677
+ } | {
1678
+ from: "body";
1679
+ path: string;
1680
+ } | {
1681
+ from: "url";
1682
+ } | {
1683
+ from: "constant";
1684
+ value: string;
1685
+ };
1686
+ unit?: "milliseconds" | "seconds" | undefined;
1687
+ toleranceSeconds?: number | undefined;
1688
+ } | undefined;
1689
+ signingString: "raw" | {
1690
+ template: string;
1691
+ vars?: Record<string, {
1692
+ from: "header";
1693
+ name: string;
1694
+ } | {
1695
+ from: "signatureField";
1696
+ field: string;
1697
+ } | {
1698
+ from: "body";
1699
+ path: string;
1700
+ } | {
1701
+ from: "url";
1702
+ } | {
1703
+ from: "constant";
1704
+ value: string;
1705
+ }> | undefined;
1706
+ };
1707
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1708
+ idempotencyField?: {
1709
+ from: "body" | "header";
1710
+ name: string;
1711
+ } | undefined;
1712
+ };
1713
+ handshake?: {
1714
+ matchPath: string;
1715
+ matchValue: string;
1716
+ respondPath: string;
1717
+ } | undefined;
1718
+ }>, z.ZodObject<{
1719
+ kind: z.ZodLiteral<"preset">;
1720
+ preset: z.ZodString;
1721
+ config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
1722
+ scheme: z.ZodLiteral<"hmac">;
1723
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
1724
+ encoding: z.ZodEnum<["hex", "base64"]>;
1725
+ signatureHeader: z.ZodString;
1726
+ signature: z.ZodOptional<z.ZodObject<{
1727
+ itemSeparator: z.ZodOptional<z.ZodString>;
1728
+ fieldSeparator: z.ZodOptional<z.ZodString>;
1729
+ field: z.ZodOptional<z.ZodString>;
1730
+ trim: z.ZodOptional<z.ZodBoolean>;
1731
+ }, "strip", z.ZodTypeAny, {
1732
+ itemSeparator?: string | undefined;
1733
+ fieldSeparator?: string | undefined;
1734
+ field?: string | undefined;
1735
+ trim?: boolean | undefined;
1736
+ }, {
1737
+ itemSeparator?: string | undefined;
1738
+ fieldSeparator?: string | undefined;
1739
+ field?: string | undefined;
1740
+ trim?: boolean | undefined;
1741
+ }>>;
1742
+ timestamp: z.ZodOptional<z.ZodObject<{
1743
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1744
+ from: z.ZodLiteral<"header">;
1745
+ name: z.ZodString;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ from: "header";
1748
+ name: string;
1749
+ }, {
1750
+ from: "header";
1751
+ name: string;
1752
+ }>, z.ZodObject<{
1753
+ from: z.ZodLiteral<"signatureField">;
1754
+ field: z.ZodString;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ from: "signatureField";
1757
+ field: string;
1758
+ }, {
1759
+ from: "signatureField";
1760
+ field: string;
1761
+ }>, z.ZodObject<{
1762
+ from: z.ZodLiteral<"body">;
1763
+ path: z.ZodString;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ from: "body";
1766
+ path: string;
1767
+ }, {
1768
+ from: "body";
1769
+ path: string;
1770
+ }>, z.ZodObject<{
1771
+ from: z.ZodLiteral<"url">;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ from: "url";
1774
+ }, {
1775
+ from: "url";
1776
+ }>, z.ZodObject<{
1777
+ from: z.ZodLiteral<"constant">;
1778
+ value: z.ZodString;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ from: "constant";
1781
+ value: string;
1782
+ }, {
1783
+ from: "constant";
1784
+ value: string;
1785
+ }>]>;
1786
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
1787
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ source: {
1790
+ from: "header";
1791
+ name: string;
1792
+ } | {
1793
+ from: "signatureField";
1794
+ field: string;
1795
+ } | {
1796
+ from: "body";
1797
+ path: string;
1798
+ } | {
1799
+ from: "url";
1800
+ } | {
1801
+ from: "constant";
1802
+ value: string;
1803
+ };
1804
+ unit?: "milliseconds" | "seconds" | undefined;
1805
+ toleranceSeconds?: number | undefined;
1806
+ }, {
1807
+ source: {
1808
+ from: "header";
1809
+ name: string;
1810
+ } | {
1811
+ from: "signatureField";
1812
+ field: string;
1813
+ } | {
1814
+ from: "body";
1815
+ path: string;
1816
+ } | {
1817
+ from: "url";
1818
+ } | {
1819
+ from: "constant";
1820
+ value: string;
1821
+ };
1822
+ unit?: "milliseconds" | "seconds" | undefined;
1823
+ toleranceSeconds?: number | undefined;
1824
+ }>>;
1825
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
1826
+ template: z.ZodString;
1827
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1828
+ from: z.ZodLiteral<"header">;
1829
+ name: z.ZodString;
1830
+ }, "strip", z.ZodTypeAny, {
1831
+ from: "header";
1832
+ name: string;
1833
+ }, {
1834
+ from: "header";
1835
+ name: string;
1836
+ }>, z.ZodObject<{
1837
+ from: z.ZodLiteral<"signatureField">;
1838
+ field: z.ZodString;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ from: "signatureField";
1841
+ field: string;
1842
+ }, {
1843
+ from: "signatureField";
1844
+ field: string;
1845
+ }>, z.ZodObject<{
1846
+ from: z.ZodLiteral<"body">;
1847
+ path: z.ZodString;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ from: "body";
1850
+ path: string;
1851
+ }, {
1852
+ from: "body";
1853
+ path: string;
1854
+ }>, z.ZodObject<{
1855
+ from: z.ZodLiteral<"url">;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ from: "url";
1858
+ }, {
1859
+ from: "url";
1860
+ }>, z.ZodObject<{
1861
+ from: z.ZodLiteral<"constant">;
1862
+ value: z.ZodString;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ from: "constant";
1865
+ value: string;
1866
+ }, {
1867
+ from: "constant";
1868
+ value: string;
1869
+ }>]>>>;
1870
+ }, "strip", z.ZodTypeAny, {
1871
+ template: string;
1872
+ vars?: Record<string, {
1873
+ from: "header";
1874
+ name: string;
1875
+ } | {
1876
+ from: "signatureField";
1877
+ field: string;
1878
+ } | {
1879
+ from: "body";
1880
+ path: string;
1881
+ } | {
1882
+ from: "url";
1883
+ } | {
1884
+ from: "constant";
1885
+ value: string;
1886
+ }> | undefined;
1887
+ }, {
1888
+ template: string;
1889
+ vars?: Record<string, {
1890
+ from: "header";
1891
+ name: string;
1892
+ } | {
1893
+ from: "signatureField";
1894
+ field: string;
1895
+ } | {
1896
+ from: "body";
1897
+ path: string;
1898
+ } | {
1899
+ from: "url";
1900
+ } | {
1901
+ from: "constant";
1902
+ value: string;
1903
+ }> | undefined;
1904
+ }>]>;
1905
+ secret: z.ZodOptional<z.ZodObject<{
1906
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
1907
+ stripPrefix: z.ZodOptional<z.ZodString>;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ encoding?: "base64" | "utf8" | undefined;
1910
+ stripPrefix?: string | undefined;
1911
+ }, {
1912
+ encoding?: "base64" | "utf8" | undefined;
1913
+ stripPrefix?: string | undefined;
1914
+ }>>;
1915
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1916
+ from: z.ZodEnum<["header", "body"]>;
1917
+ name: z.ZodString;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ from: "body" | "header";
1920
+ name: string;
1921
+ }, {
1922
+ from: "body" | "header";
1923
+ name: string;
1924
+ }>>;
1925
+ formPayload: z.ZodOptional<z.ZodObject<{
1926
+ field: z.ZodString;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ field: string;
1929
+ }, {
1930
+ field: string;
1931
+ }>>;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ scheme: "hmac";
1934
+ algorithm: "sha1" | "sha256";
1935
+ encoding: "base64" | "hex";
1936
+ signatureHeader: string;
1937
+ signature?: {
1938
+ itemSeparator?: string | undefined;
1939
+ fieldSeparator?: string | undefined;
1940
+ field?: string | undefined;
1941
+ trim?: boolean | undefined;
1942
+ } | undefined;
1943
+ timestamp?: {
1944
+ source: {
1945
+ from: "header";
1946
+ name: string;
1947
+ } | {
1948
+ from: "signatureField";
1949
+ field: string;
1950
+ } | {
1951
+ from: "body";
1952
+ path: string;
1953
+ } | {
1954
+ from: "url";
1955
+ } | {
1956
+ from: "constant";
1957
+ value: string;
1958
+ };
1959
+ unit?: "milliseconds" | "seconds" | undefined;
1960
+ toleranceSeconds?: number | undefined;
1961
+ } | undefined;
1962
+ signingString: "raw" | {
1963
+ template: string;
1964
+ vars?: Record<string, {
1965
+ from: "header";
1966
+ name: string;
1967
+ } | {
1968
+ from: "signatureField";
1969
+ field: string;
1970
+ } | {
1971
+ from: "body";
1972
+ path: string;
1973
+ } | {
1974
+ from: "url";
1975
+ } | {
1976
+ from: "constant";
1977
+ value: string;
1978
+ }> | undefined;
1979
+ };
1980
+ secret?: {
1981
+ encoding?: "base64" | "utf8" | undefined;
1982
+ stripPrefix?: string | undefined;
1983
+ } | undefined;
1984
+ idempotencyField?: {
1985
+ from: "body" | "header";
1986
+ name: string;
1987
+ } | undefined;
1988
+ formPayload?: {
1989
+ field: string;
1990
+ } | undefined;
1991
+ }, {
1992
+ scheme: "hmac";
1993
+ algorithm: "sha1" | "sha256";
1994
+ encoding: "base64" | "hex";
1995
+ signatureHeader: string;
1996
+ signature?: {
1997
+ itemSeparator?: string | undefined;
1998
+ fieldSeparator?: string | undefined;
1999
+ field?: string | undefined;
2000
+ trim?: boolean | undefined;
2001
+ } | undefined;
2002
+ timestamp?: {
2003
+ source: {
2004
+ from: "header";
2005
+ name: string;
2006
+ } | {
2007
+ from: "signatureField";
2008
+ field: string;
2009
+ } | {
2010
+ from: "body";
2011
+ path: string;
2012
+ } | {
2013
+ from: "url";
2014
+ } | {
2015
+ from: "constant";
2016
+ value: string;
2017
+ };
2018
+ unit?: "milliseconds" | "seconds" | undefined;
2019
+ toleranceSeconds?: number | undefined;
2020
+ } | undefined;
2021
+ signingString: "raw" | {
2022
+ template: string;
2023
+ vars?: Record<string, {
2024
+ from: "header";
2025
+ name: string;
2026
+ } | {
2027
+ from: "signatureField";
2028
+ field: string;
2029
+ } | {
2030
+ from: "body";
2031
+ path: string;
2032
+ } | {
2033
+ from: "url";
2034
+ } | {
2035
+ from: "constant";
2036
+ value: string;
2037
+ }> | undefined;
2038
+ };
2039
+ secret?: {
2040
+ encoding?: "base64" | "utf8" | undefined;
2041
+ stripPrefix?: string | undefined;
2042
+ } | undefined;
2043
+ idempotencyField?: {
2044
+ from: "body" | "header";
2045
+ name: string;
2046
+ } | undefined;
2047
+ formPayload?: {
2048
+ field: string;
2049
+ } | undefined;
2050
+ }>, z.ZodObject<{
2051
+ scheme: z.ZodLiteral<"shared-secret">;
2052
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
2053
+ fieldName: z.ZodOptional<z.ZodString>;
2054
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2055
+ from: z.ZodEnum<["header", "body"]>;
2056
+ name: z.ZodString;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ from: "body" | "header";
2059
+ name: string;
2060
+ }, {
2061
+ from: "body" | "header";
2062
+ name: string;
2063
+ }>>;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ scheme: "shared-secret";
2066
+ placement: "basic" | "bearer" | "body" | "header";
2067
+ fieldName?: string | undefined;
2068
+ idempotencyField?: {
2069
+ from: "body" | "header";
2070
+ name: string;
2071
+ } | undefined;
2072
+ }, {
2073
+ scheme: "shared-secret";
2074
+ placement: "basic" | "bearer" | "body" | "header";
2075
+ fieldName?: string | undefined;
2076
+ idempotencyField?: {
2077
+ from: "body" | "header";
2078
+ name: string;
2079
+ } | undefined;
2080
+ }>, z.ZodObject<{
2081
+ scheme: z.ZodLiteral<"url-secret">;
2082
+ placement: z.ZodEnum<["query", "path"]>;
2083
+ paramName: z.ZodString;
2084
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2085
+ from: z.ZodEnum<["header", "body"]>;
2086
+ name: z.ZodString;
2087
+ }, "strip", z.ZodTypeAny, {
2088
+ from: "body" | "header";
2089
+ name: string;
2090
+ }, {
2091
+ from: "body" | "header";
2092
+ name: string;
2093
+ }>>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ scheme: "url-secret";
2096
+ placement: "path" | "query";
2097
+ paramName: string;
2098
+ idempotencyField?: {
2099
+ from: "body" | "header";
2100
+ name: string;
2101
+ } | undefined;
2102
+ }, {
2103
+ scheme: "url-secret";
2104
+ placement: "path" | "query";
2105
+ paramName: string;
2106
+ idempotencyField?: {
2107
+ from: "body" | "header";
2108
+ name: string;
2109
+ } | undefined;
2110
+ }>, z.ZodObject<{
2111
+ scheme: z.ZodLiteral<"asymmetric">;
2112
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
2113
+ encoding: z.ZodEnum<["hex", "base64"]>;
2114
+ signatureHeader: z.ZodString;
2115
+ signature: z.ZodOptional<z.ZodObject<{
2116
+ itemSeparator: z.ZodOptional<z.ZodString>;
2117
+ fieldSeparator: z.ZodOptional<z.ZodString>;
2118
+ field: z.ZodOptional<z.ZodString>;
2119
+ trim: z.ZodOptional<z.ZodBoolean>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ itemSeparator?: string | undefined;
2122
+ fieldSeparator?: string | undefined;
2123
+ field?: string | undefined;
2124
+ trim?: boolean | undefined;
2125
+ }, {
2126
+ itemSeparator?: string | undefined;
2127
+ fieldSeparator?: string | undefined;
2128
+ field?: string | undefined;
2129
+ trim?: boolean | undefined;
2130
+ }>>;
2131
+ timestamp: z.ZodOptional<z.ZodObject<{
2132
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2133
+ from: z.ZodLiteral<"header">;
2134
+ name: z.ZodString;
2135
+ }, "strip", z.ZodTypeAny, {
2136
+ from: "header";
2137
+ name: string;
2138
+ }, {
2139
+ from: "header";
2140
+ name: string;
2141
+ }>, z.ZodObject<{
2142
+ from: z.ZodLiteral<"signatureField">;
2143
+ field: z.ZodString;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ from: "signatureField";
2146
+ field: string;
2147
+ }, {
2148
+ from: "signatureField";
2149
+ field: string;
2150
+ }>, z.ZodObject<{
2151
+ from: z.ZodLiteral<"body">;
2152
+ path: z.ZodString;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ from: "body";
2155
+ path: string;
2156
+ }, {
2157
+ from: "body";
2158
+ path: string;
2159
+ }>, z.ZodObject<{
2160
+ from: z.ZodLiteral<"url">;
2161
+ }, "strip", z.ZodTypeAny, {
2162
+ from: "url";
2163
+ }, {
2164
+ from: "url";
2165
+ }>, z.ZodObject<{
2166
+ from: z.ZodLiteral<"constant">;
2167
+ value: z.ZodString;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ from: "constant";
2170
+ value: string;
2171
+ }, {
2172
+ from: "constant";
2173
+ value: string;
2174
+ }>]>;
2175
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
2176
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ source: {
2179
+ from: "header";
2180
+ name: string;
2181
+ } | {
2182
+ from: "signatureField";
2183
+ field: string;
2184
+ } | {
2185
+ from: "body";
2186
+ path: string;
2187
+ } | {
2188
+ from: "url";
2189
+ } | {
2190
+ from: "constant";
2191
+ value: string;
2192
+ };
2193
+ unit?: "milliseconds" | "seconds" | undefined;
2194
+ toleranceSeconds?: number | undefined;
2195
+ }, {
2196
+ source: {
2197
+ from: "header";
2198
+ name: string;
2199
+ } | {
2200
+ from: "signatureField";
2201
+ field: string;
2202
+ } | {
2203
+ from: "body";
2204
+ path: string;
2205
+ } | {
2206
+ from: "url";
2207
+ } | {
2208
+ from: "constant";
2209
+ value: string;
2210
+ };
2211
+ unit?: "milliseconds" | "seconds" | undefined;
2212
+ toleranceSeconds?: number | undefined;
2213
+ }>>;
2214
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
2215
+ template: z.ZodString;
2216
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2217
+ from: z.ZodLiteral<"header">;
2218
+ name: z.ZodString;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ from: "header";
2221
+ name: string;
2222
+ }, {
2223
+ from: "header";
2224
+ name: string;
2225
+ }>, z.ZodObject<{
2226
+ from: z.ZodLiteral<"signatureField">;
2227
+ field: z.ZodString;
2228
+ }, "strip", z.ZodTypeAny, {
2229
+ from: "signatureField";
2230
+ field: string;
2231
+ }, {
2232
+ from: "signatureField";
2233
+ field: string;
2234
+ }>, z.ZodObject<{
2235
+ from: z.ZodLiteral<"body">;
2236
+ path: z.ZodString;
2237
+ }, "strip", z.ZodTypeAny, {
2238
+ from: "body";
2239
+ path: string;
2240
+ }, {
2241
+ from: "body";
2242
+ path: string;
2243
+ }>, z.ZodObject<{
2244
+ from: z.ZodLiteral<"url">;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ from: "url";
2247
+ }, {
2248
+ from: "url";
2249
+ }>, z.ZodObject<{
2250
+ from: z.ZodLiteral<"constant">;
2251
+ value: z.ZodString;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ from: "constant";
2254
+ value: string;
2255
+ }, {
2256
+ from: "constant";
2257
+ value: string;
2258
+ }>]>>>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ template: string;
2261
+ vars?: Record<string, {
2262
+ from: "header";
2263
+ name: string;
2264
+ } | {
2265
+ from: "signatureField";
2266
+ field: string;
2267
+ } | {
2268
+ from: "body";
2269
+ path: string;
2270
+ } | {
2271
+ from: "url";
2272
+ } | {
2273
+ from: "constant";
2274
+ value: string;
2275
+ }> | undefined;
2276
+ }, {
2277
+ template: string;
2278
+ vars?: Record<string, {
2279
+ from: "header";
2280
+ name: string;
2281
+ } | {
2282
+ from: "signatureField";
2283
+ field: string;
2284
+ } | {
2285
+ from: "body";
2286
+ path: string;
2287
+ } | {
2288
+ from: "url";
2289
+ } | {
2290
+ from: "constant";
2291
+ value: string;
2292
+ }> | undefined;
2293
+ }>]>;
2294
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
2295
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2296
+ from: z.ZodEnum<["header", "body"]>;
2297
+ name: z.ZodString;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ from: "body" | "header";
2300
+ name: string;
2301
+ }, {
2302
+ from: "body" | "header";
2303
+ name: string;
2304
+ }>>;
2305
+ }, "strip", z.ZodTypeAny, {
2306
+ scheme: "asymmetric";
2307
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2308
+ encoding: "base64" | "hex";
2309
+ signatureHeader: string;
2310
+ signature?: {
2311
+ itemSeparator?: string | undefined;
2312
+ fieldSeparator?: string | undefined;
2313
+ field?: string | undefined;
2314
+ trim?: boolean | undefined;
2315
+ } | undefined;
2316
+ timestamp?: {
2317
+ source: {
2318
+ from: "header";
2319
+ name: string;
2320
+ } | {
2321
+ from: "signatureField";
2322
+ field: string;
2323
+ } | {
2324
+ from: "body";
2325
+ path: string;
2326
+ } | {
2327
+ from: "url";
2328
+ } | {
2329
+ from: "constant";
2330
+ value: string;
2331
+ };
2332
+ unit?: "milliseconds" | "seconds" | undefined;
2333
+ toleranceSeconds?: number | undefined;
2334
+ } | undefined;
2335
+ signingString: "raw" | {
2336
+ template: string;
2337
+ vars?: Record<string, {
2338
+ from: "header";
2339
+ name: string;
2340
+ } | {
2341
+ from: "signatureField";
2342
+ field: string;
2343
+ } | {
2344
+ from: "body";
2345
+ path: string;
2346
+ } | {
2347
+ from: "url";
2348
+ } | {
2349
+ from: "constant";
2350
+ value: string;
2351
+ }> | undefined;
2352
+ };
2353
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2354
+ idempotencyField?: {
2355
+ from: "body" | "header";
2356
+ name: string;
2357
+ } | undefined;
2358
+ }, {
2359
+ scheme: "asymmetric";
2360
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2361
+ encoding: "base64" | "hex";
2362
+ signatureHeader: string;
2363
+ signature?: {
2364
+ itemSeparator?: string | undefined;
2365
+ fieldSeparator?: string | undefined;
2366
+ field?: string | undefined;
2367
+ trim?: boolean | undefined;
2368
+ } | undefined;
2369
+ timestamp?: {
2370
+ source: {
2371
+ from: "header";
2372
+ name: string;
2373
+ } | {
2374
+ from: "signatureField";
2375
+ field: string;
2376
+ } | {
2377
+ from: "body";
2378
+ path: string;
2379
+ } | {
2380
+ from: "url";
2381
+ } | {
2382
+ from: "constant";
2383
+ value: string;
2384
+ };
2385
+ unit?: "milliseconds" | "seconds" | undefined;
2386
+ toleranceSeconds?: number | undefined;
2387
+ } | undefined;
2388
+ signingString: "raw" | {
2389
+ template: string;
2390
+ vars?: Record<string, {
2391
+ from: "header";
2392
+ name: string;
2393
+ } | {
2394
+ from: "signatureField";
2395
+ field: string;
2396
+ } | {
2397
+ from: "body";
2398
+ path: string;
2399
+ } | {
2400
+ from: "url";
2401
+ } | {
2402
+ from: "constant";
2403
+ value: string;
2404
+ }> | undefined;
2405
+ };
2406
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2407
+ idempotencyField?: {
2408
+ from: "body" | "header";
2409
+ name: string;
2410
+ } | undefined;
2411
+ }>]>;
2412
+ handshake: z.ZodOptional<z.ZodObject<{
2413
+ matchPath: z.ZodString;
2414
+ matchValue: z.ZodString;
2415
+ respondPath: z.ZodString;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ matchPath: string;
2418
+ matchValue: string;
2419
+ respondPath: string;
2420
+ }, {
2421
+ matchPath: string;
2422
+ matchValue: string;
2423
+ respondPath: string;
2424
+ }>>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ kind: "preset";
2427
+ preset: string;
2428
+ config: {
2429
+ scheme: "hmac";
2430
+ algorithm: "sha1" | "sha256";
2431
+ encoding: "base64" | "hex";
2432
+ signatureHeader: string;
2433
+ signature?: {
2434
+ itemSeparator?: string | undefined;
2435
+ fieldSeparator?: string | undefined;
2436
+ field?: string | undefined;
2437
+ trim?: boolean | undefined;
2438
+ } | undefined;
2439
+ timestamp?: {
2440
+ source: {
2441
+ from: "header";
2442
+ name: string;
2443
+ } | {
2444
+ from: "signatureField";
2445
+ field: string;
2446
+ } | {
2447
+ from: "body";
2448
+ path: string;
2449
+ } | {
2450
+ from: "url";
2451
+ } | {
2452
+ from: "constant";
2453
+ value: string;
2454
+ };
2455
+ unit?: "milliseconds" | "seconds" | undefined;
2456
+ toleranceSeconds?: number | undefined;
2457
+ } | undefined;
2458
+ signingString: "raw" | {
2459
+ template: string;
2460
+ vars?: Record<string, {
2461
+ from: "header";
2462
+ name: string;
2463
+ } | {
2464
+ from: "signatureField";
2465
+ field: string;
2466
+ } | {
2467
+ from: "body";
2468
+ path: string;
2469
+ } | {
2470
+ from: "url";
2471
+ } | {
2472
+ from: "constant";
2473
+ value: string;
2474
+ }> | undefined;
2475
+ };
2476
+ secret?: {
2477
+ encoding?: "base64" | "utf8" | undefined;
2478
+ stripPrefix?: string | undefined;
2479
+ } | undefined;
2480
+ idempotencyField?: {
2481
+ from: "body" | "header";
2482
+ name: string;
2483
+ } | undefined;
2484
+ formPayload?: {
2485
+ field: string;
2486
+ } | undefined;
2487
+ } | {
2488
+ scheme: "shared-secret";
2489
+ placement: "basic" | "bearer" | "body" | "header";
2490
+ fieldName?: string | undefined;
2491
+ idempotencyField?: {
2492
+ from: "body" | "header";
2493
+ name: string;
2494
+ } | undefined;
2495
+ } | {
2496
+ scheme: "url-secret";
2497
+ placement: "path" | "query";
2498
+ paramName: string;
2499
+ idempotencyField?: {
2500
+ from: "body" | "header";
2501
+ name: string;
2502
+ } | undefined;
2503
+ } | {
2504
+ scheme: "asymmetric";
2505
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2506
+ encoding: "base64" | "hex";
2507
+ signatureHeader: string;
2508
+ signature?: {
2509
+ itemSeparator?: string | undefined;
2510
+ fieldSeparator?: string | undefined;
2511
+ field?: string | undefined;
2512
+ trim?: boolean | undefined;
2513
+ } | undefined;
2514
+ timestamp?: {
2515
+ source: {
2516
+ from: "header";
2517
+ name: string;
2518
+ } | {
2519
+ from: "signatureField";
2520
+ field: string;
2521
+ } | {
2522
+ from: "body";
2523
+ path: string;
2524
+ } | {
2525
+ from: "url";
2526
+ } | {
2527
+ from: "constant";
2528
+ value: string;
2529
+ };
2530
+ unit?: "milliseconds" | "seconds" | undefined;
2531
+ toleranceSeconds?: number | undefined;
2532
+ } | undefined;
2533
+ signingString: "raw" | {
2534
+ template: string;
2535
+ vars?: Record<string, {
2536
+ from: "header";
2537
+ name: string;
2538
+ } | {
2539
+ from: "signatureField";
2540
+ field: string;
2541
+ } | {
2542
+ from: "body";
2543
+ path: string;
2544
+ } | {
2545
+ from: "url";
2546
+ } | {
2547
+ from: "constant";
2548
+ value: string;
2549
+ }> | undefined;
2550
+ };
2551
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2552
+ idempotencyField?: {
2553
+ from: "body" | "header";
2554
+ name: string;
2555
+ } | undefined;
2556
+ };
2557
+ handshake?: {
2558
+ matchPath: string;
2559
+ matchValue: string;
2560
+ respondPath: string;
2561
+ } | undefined;
2562
+ }, {
2563
+ kind: "preset";
2564
+ preset: string;
2565
+ config: {
2566
+ scheme: "hmac";
2567
+ algorithm: "sha1" | "sha256";
2568
+ encoding: "base64" | "hex";
2569
+ signatureHeader: string;
2570
+ signature?: {
2571
+ itemSeparator?: string | undefined;
2572
+ fieldSeparator?: string | undefined;
2573
+ field?: string | undefined;
2574
+ trim?: boolean | undefined;
2575
+ } | undefined;
2576
+ timestamp?: {
2577
+ source: {
2578
+ from: "header";
2579
+ name: string;
2580
+ } | {
2581
+ from: "signatureField";
2582
+ field: string;
2583
+ } | {
2584
+ from: "body";
2585
+ path: string;
2586
+ } | {
2587
+ from: "url";
2588
+ } | {
2589
+ from: "constant";
2590
+ value: string;
2591
+ };
2592
+ unit?: "milliseconds" | "seconds" | undefined;
2593
+ toleranceSeconds?: number | undefined;
2594
+ } | undefined;
2595
+ signingString: "raw" | {
2596
+ template: string;
2597
+ vars?: Record<string, {
2598
+ from: "header";
2599
+ name: string;
2600
+ } | {
2601
+ from: "signatureField";
2602
+ field: string;
2603
+ } | {
2604
+ from: "body";
2605
+ path: string;
2606
+ } | {
2607
+ from: "url";
2608
+ } | {
2609
+ from: "constant";
2610
+ value: string;
2611
+ }> | undefined;
2612
+ };
2613
+ secret?: {
2614
+ encoding?: "base64" | "utf8" | undefined;
2615
+ stripPrefix?: string | undefined;
2616
+ } | undefined;
2617
+ idempotencyField?: {
2618
+ from: "body" | "header";
2619
+ name: string;
2620
+ } | undefined;
2621
+ formPayload?: {
2622
+ field: string;
2623
+ } | undefined;
2624
+ } | {
2625
+ scheme: "shared-secret";
2626
+ placement: "basic" | "bearer" | "body" | "header";
2627
+ fieldName?: string | undefined;
2628
+ idempotencyField?: {
2629
+ from: "body" | "header";
2630
+ name: string;
2631
+ } | undefined;
2632
+ } | {
2633
+ scheme: "url-secret";
2634
+ placement: "path" | "query";
2635
+ paramName: string;
2636
+ idempotencyField?: {
2637
+ from: "body" | "header";
2638
+ name: string;
2639
+ } | undefined;
2640
+ } | {
2641
+ scheme: "asymmetric";
2642
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2643
+ encoding: "base64" | "hex";
2644
+ signatureHeader: string;
2645
+ signature?: {
2646
+ itemSeparator?: string | undefined;
2647
+ fieldSeparator?: string | undefined;
2648
+ field?: string | undefined;
2649
+ trim?: boolean | undefined;
2650
+ } | undefined;
2651
+ timestamp?: {
2652
+ source: {
2653
+ from: "header";
2654
+ name: string;
2655
+ } | {
2656
+ from: "signatureField";
2657
+ field: string;
2658
+ } | {
2659
+ from: "body";
2660
+ path: string;
2661
+ } | {
2662
+ from: "url";
2663
+ } | {
2664
+ from: "constant";
2665
+ value: string;
2666
+ };
2667
+ unit?: "milliseconds" | "seconds" | undefined;
2668
+ toleranceSeconds?: number | undefined;
2669
+ } | undefined;
2670
+ signingString: "raw" | {
2671
+ template: string;
2672
+ vars?: Record<string, {
2673
+ from: "header";
2674
+ name: string;
2675
+ } | {
2676
+ from: "signatureField";
2677
+ field: string;
2678
+ } | {
2679
+ from: "body";
2680
+ path: string;
2681
+ } | {
2682
+ from: "url";
2683
+ } | {
2684
+ from: "constant";
2685
+ value: string;
2686
+ }> | undefined;
2687
+ };
2688
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2689
+ idempotencyField?: {
2690
+ from: "body" | "header";
2691
+ name: string;
2692
+ } | undefined;
2693
+ };
2694
+ handshake?: {
2695
+ matchPath: string;
2696
+ matchValue: string;
2697
+ respondPath: string;
2698
+ } | undefined;
2699
+ }>, z.ZodObject<{
2700
+ kind: z.ZodLiteral<"bundle">;
2701
+ bundleUrl: z.ZodString;
2702
+ hash: z.ZodString;
2703
+ }, "strip", z.ZodTypeAny, {
2704
+ kind: "bundle";
2705
+ bundleUrl: string;
2706
+ hash: string;
2707
+ }, {
2708
+ kind: "bundle";
2709
+ bundleUrl: string;
2710
+ hash: string;
2711
+ }>]>;
2712
+ routingTarget: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2713
+ type: z.ZodLiteral<"task">;
2714
+ taskId: z.ZodString;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ type: "task";
2717
+ taskId: string;
2718
+ }, {
2719
+ type: "task";
2720
+ taskId: string;
2721
+ }>, z.ZodObject<{
2722
+ type: z.ZodLiteral<"session">;
2723
+ taskIdentifier: z.ZodString;
2724
+ keyTemplate: z.ZodString;
2725
+ deliverAs: z.ZodEnum<["action", "message"]>;
2726
+ actionType: z.ZodOptional<z.ZodString>;
2727
+ connectorId: z.ZodOptional<z.ZodString>;
2728
+ triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2729
+ startOn: z.ZodOptional<z.ZodString>;
2730
+ }, "strip", z.ZodTypeAny, {
2731
+ type: "session";
2732
+ taskIdentifier: string;
2733
+ keyTemplate: string;
2734
+ deliverAs: "action" | "message";
2735
+ actionType?: string | undefined;
2736
+ connectorId?: string | undefined;
2737
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
2738
+ startOn?: string | undefined;
2739
+ }, {
2740
+ type: "session";
2741
+ taskIdentifier: string;
2742
+ keyTemplate: string;
2743
+ deliverAs: "action" | "message";
2744
+ actionType?: string | undefined;
2745
+ connectorId?: string | undefined;
2746
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
2747
+ startOn?: string | undefined;
2748
+ }>]>;
2749
+ secretProvisioning: z.ZodOptional<z.ZodEnum<["provider", "integrator", "either"]>>;
2750
+ filter: z.ZodOptional<z.ZodString>;
2751
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2752
+ }, "strip", z.ZodTypeAny, {
2753
+ id: string;
2754
+ description?: string | undefined;
2755
+ filePath: string;
2756
+ exportName?: string | undefined;
2757
+ source: string;
2758
+ verifierArtifact: {
2759
+ kind: "config";
2760
+ config: {
2761
+ scheme: "hmac";
2762
+ algorithm: "sha1" | "sha256";
2763
+ encoding: "base64" | "hex";
2764
+ signatureHeader: string;
2765
+ signature?: {
2766
+ itemSeparator?: string | undefined;
2767
+ fieldSeparator?: string | undefined;
2768
+ field?: string | undefined;
2769
+ trim?: boolean | undefined;
2770
+ } | undefined;
2771
+ timestamp?: {
2772
+ source: {
2773
+ from: "header";
2774
+ name: string;
2775
+ } | {
2776
+ from: "signatureField";
2777
+ field: string;
2778
+ } | {
2779
+ from: "body";
2780
+ path: string;
2781
+ } | {
2782
+ from: "url";
2783
+ } | {
2784
+ from: "constant";
2785
+ value: string;
2786
+ };
2787
+ unit?: "milliseconds" | "seconds" | undefined;
2788
+ toleranceSeconds?: number | undefined;
2789
+ } | undefined;
2790
+ signingString: "raw" | {
2791
+ template: string;
2792
+ vars?: Record<string, {
2793
+ from: "header";
2794
+ name: string;
2795
+ } | {
2796
+ from: "signatureField";
2797
+ field: string;
2798
+ } | {
2799
+ from: "body";
2800
+ path: string;
2801
+ } | {
2802
+ from: "url";
2803
+ } | {
2804
+ from: "constant";
2805
+ value: string;
2806
+ }> | undefined;
2807
+ };
2808
+ secret?: {
2809
+ encoding?: "base64" | "utf8" | undefined;
2810
+ stripPrefix?: string | undefined;
2811
+ } | undefined;
2812
+ idempotencyField?: {
2813
+ from: "body" | "header";
2814
+ name: string;
2815
+ } | undefined;
2816
+ formPayload?: {
2817
+ field: string;
2818
+ } | undefined;
2819
+ } | {
2820
+ scheme: "shared-secret";
2821
+ placement: "basic" | "bearer" | "body" | "header";
2822
+ fieldName?: string | undefined;
2823
+ idempotencyField?: {
2824
+ from: "body" | "header";
2825
+ name: string;
2826
+ } | undefined;
2827
+ } | {
2828
+ scheme: "url-secret";
2829
+ placement: "path" | "query";
2830
+ paramName: string;
2831
+ idempotencyField?: {
2832
+ from: "body" | "header";
2833
+ name: string;
2834
+ } | undefined;
2835
+ } | {
2836
+ scheme: "asymmetric";
2837
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2838
+ encoding: "base64" | "hex";
2839
+ signatureHeader: string;
2840
+ signature?: {
2841
+ itemSeparator?: string | undefined;
2842
+ fieldSeparator?: string | undefined;
2843
+ field?: string | undefined;
2844
+ trim?: boolean | undefined;
2845
+ } | undefined;
2846
+ timestamp?: {
2847
+ source: {
2848
+ from: "header";
2849
+ name: string;
2850
+ } | {
2851
+ from: "signatureField";
2852
+ field: string;
2853
+ } | {
2854
+ from: "body";
2855
+ path: string;
2856
+ } | {
2857
+ from: "url";
2858
+ } | {
2859
+ from: "constant";
2860
+ value: string;
2861
+ };
2862
+ unit?: "milliseconds" | "seconds" | undefined;
2863
+ toleranceSeconds?: number | undefined;
2864
+ } | undefined;
2865
+ signingString: "raw" | {
2866
+ template: string;
2867
+ vars?: Record<string, {
2868
+ from: "header";
2869
+ name: string;
2870
+ } | {
2871
+ from: "signatureField";
2872
+ field: string;
2873
+ } | {
2874
+ from: "body";
2875
+ path: string;
2876
+ } | {
2877
+ from: "url";
2878
+ } | {
2879
+ from: "constant";
2880
+ value: string;
2881
+ }> | undefined;
2882
+ };
2883
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2884
+ idempotencyField?: {
2885
+ from: "body" | "header";
2886
+ name: string;
2887
+ } | undefined;
2888
+ };
2889
+ handshake?: {
2890
+ matchPath: string;
2891
+ matchValue: string;
2892
+ respondPath: string;
2893
+ } | undefined;
2894
+ } | {
2895
+ kind: "preset";
2896
+ preset: string;
2897
+ config: {
2898
+ scheme: "hmac";
2899
+ algorithm: "sha1" | "sha256";
2900
+ encoding: "base64" | "hex";
2901
+ signatureHeader: string;
2902
+ signature?: {
2903
+ itemSeparator?: string | undefined;
2904
+ fieldSeparator?: string | undefined;
2905
+ field?: string | undefined;
2906
+ trim?: boolean | undefined;
2907
+ } | undefined;
2908
+ timestamp?: {
2909
+ source: {
2910
+ from: "header";
2911
+ name: string;
2912
+ } | {
2913
+ from: "signatureField";
2914
+ field: string;
2915
+ } | {
2916
+ from: "body";
2917
+ path: string;
2918
+ } | {
2919
+ from: "url";
2920
+ } | {
2921
+ from: "constant";
2922
+ value: string;
2923
+ };
2924
+ unit?: "milliseconds" | "seconds" | undefined;
2925
+ toleranceSeconds?: number | undefined;
2926
+ } | undefined;
2927
+ signingString: "raw" | {
2928
+ template: string;
2929
+ vars?: Record<string, {
2930
+ from: "header";
2931
+ name: string;
2932
+ } | {
2933
+ from: "signatureField";
2934
+ field: string;
2935
+ } | {
2936
+ from: "body";
2937
+ path: string;
2938
+ } | {
2939
+ from: "url";
2940
+ } | {
2941
+ from: "constant";
2942
+ value: string;
2943
+ }> | undefined;
2944
+ };
2945
+ secret?: {
2946
+ encoding?: "base64" | "utf8" | undefined;
2947
+ stripPrefix?: string | undefined;
2948
+ } | undefined;
2949
+ idempotencyField?: {
2950
+ from: "body" | "header";
2951
+ name: string;
2952
+ } | undefined;
2953
+ formPayload?: {
2954
+ field: string;
2955
+ } | undefined;
2956
+ } | {
2957
+ scheme: "shared-secret";
2958
+ placement: "basic" | "bearer" | "body" | "header";
2959
+ fieldName?: string | undefined;
2960
+ idempotencyField?: {
2961
+ from: "body" | "header";
2962
+ name: string;
2963
+ } | undefined;
2964
+ } | {
2965
+ scheme: "url-secret";
2966
+ placement: "path" | "query";
2967
+ paramName: string;
2968
+ idempotencyField?: {
2969
+ from: "body" | "header";
2970
+ name: string;
2971
+ } | undefined;
2972
+ } | {
2973
+ scheme: "asymmetric";
2974
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2975
+ encoding: "base64" | "hex";
2976
+ signatureHeader: string;
2977
+ signature?: {
2978
+ itemSeparator?: string | undefined;
2979
+ fieldSeparator?: string | undefined;
2980
+ field?: string | undefined;
2981
+ trim?: boolean | undefined;
2982
+ } | undefined;
2983
+ timestamp?: {
2984
+ source: {
2985
+ from: "header";
2986
+ name: string;
2987
+ } | {
2988
+ from: "signatureField";
2989
+ field: string;
2990
+ } | {
2991
+ from: "body";
2992
+ path: string;
2993
+ } | {
2994
+ from: "url";
2995
+ } | {
2996
+ from: "constant";
2997
+ value: string;
2998
+ };
2999
+ unit?: "milliseconds" | "seconds" | undefined;
3000
+ toleranceSeconds?: number | undefined;
3001
+ } | undefined;
3002
+ signingString: "raw" | {
3003
+ template: string;
3004
+ vars?: Record<string, {
3005
+ from: "header";
3006
+ name: string;
3007
+ } | {
3008
+ from: "signatureField";
3009
+ field: string;
3010
+ } | {
3011
+ from: "body";
3012
+ path: string;
3013
+ } | {
3014
+ from: "url";
3015
+ } | {
3016
+ from: "constant";
3017
+ value: string;
3018
+ }> | undefined;
3019
+ };
3020
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3021
+ idempotencyField?: {
3022
+ from: "body" | "header";
3023
+ name: string;
3024
+ } | undefined;
3025
+ };
3026
+ handshake?: {
3027
+ matchPath: string;
3028
+ matchValue: string;
3029
+ respondPath: string;
3030
+ } | undefined;
3031
+ } | {
3032
+ kind: "bundle";
3033
+ bundleUrl: string;
3034
+ hash: string;
3035
+ };
3036
+ routingTarget: {
3037
+ type: "task";
3038
+ taskId: string;
3039
+ } | {
3040
+ type: "session";
3041
+ taskIdentifier: string;
3042
+ keyTemplate: string;
3043
+ deliverAs: "action" | "message";
3044
+ actionType?: string | undefined;
3045
+ connectorId?: string | undefined;
3046
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
3047
+ startOn?: string | undefined;
3048
+ };
3049
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
3050
+ filter?: string | undefined;
3051
+ metadata?: Record<string, unknown> | undefined;
3052
+ }, {
3053
+ id: string;
3054
+ description?: string | undefined;
3055
+ filePath: string;
3056
+ exportName?: string | undefined;
3057
+ source: string;
3058
+ verifierArtifact: {
3059
+ kind: "config";
3060
+ config: {
3061
+ scheme: "hmac";
3062
+ algorithm: "sha1" | "sha256";
3063
+ encoding: "base64" | "hex";
3064
+ signatureHeader: string;
3065
+ signature?: {
3066
+ itemSeparator?: string | undefined;
3067
+ fieldSeparator?: string | undefined;
3068
+ field?: string | undefined;
3069
+ trim?: boolean | undefined;
3070
+ } | undefined;
3071
+ timestamp?: {
3072
+ source: {
3073
+ from: "header";
3074
+ name: string;
3075
+ } | {
3076
+ from: "signatureField";
3077
+ field: string;
3078
+ } | {
3079
+ from: "body";
3080
+ path: string;
3081
+ } | {
3082
+ from: "url";
3083
+ } | {
3084
+ from: "constant";
3085
+ value: string;
3086
+ };
3087
+ unit?: "milliseconds" | "seconds" | undefined;
3088
+ toleranceSeconds?: number | undefined;
3089
+ } | undefined;
3090
+ signingString: "raw" | {
3091
+ template: string;
3092
+ vars?: Record<string, {
3093
+ from: "header";
3094
+ name: string;
3095
+ } | {
3096
+ from: "signatureField";
3097
+ field: string;
3098
+ } | {
3099
+ from: "body";
3100
+ path: string;
3101
+ } | {
3102
+ from: "url";
3103
+ } | {
3104
+ from: "constant";
3105
+ value: string;
3106
+ }> | undefined;
3107
+ };
3108
+ secret?: {
3109
+ encoding?: "base64" | "utf8" | undefined;
3110
+ stripPrefix?: string | undefined;
3111
+ } | undefined;
3112
+ idempotencyField?: {
3113
+ from: "body" | "header";
3114
+ name: string;
3115
+ } | undefined;
3116
+ formPayload?: {
3117
+ field: string;
3118
+ } | undefined;
3119
+ } | {
3120
+ scheme: "shared-secret";
3121
+ placement: "basic" | "bearer" | "body" | "header";
3122
+ fieldName?: string | undefined;
3123
+ idempotencyField?: {
3124
+ from: "body" | "header";
3125
+ name: string;
3126
+ } | undefined;
3127
+ } | {
3128
+ scheme: "url-secret";
3129
+ placement: "path" | "query";
3130
+ paramName: string;
3131
+ idempotencyField?: {
3132
+ from: "body" | "header";
3133
+ name: string;
3134
+ } | undefined;
3135
+ } | {
3136
+ scheme: "asymmetric";
3137
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3138
+ encoding: "base64" | "hex";
3139
+ signatureHeader: string;
3140
+ signature?: {
3141
+ itemSeparator?: string | undefined;
3142
+ fieldSeparator?: string | undefined;
3143
+ field?: string | undefined;
3144
+ trim?: boolean | undefined;
3145
+ } | undefined;
3146
+ timestamp?: {
3147
+ source: {
3148
+ from: "header";
3149
+ name: string;
3150
+ } | {
3151
+ from: "signatureField";
3152
+ field: string;
3153
+ } | {
3154
+ from: "body";
3155
+ path: string;
3156
+ } | {
3157
+ from: "url";
3158
+ } | {
3159
+ from: "constant";
3160
+ value: string;
3161
+ };
3162
+ unit?: "milliseconds" | "seconds" | undefined;
3163
+ toleranceSeconds?: number | undefined;
3164
+ } | undefined;
3165
+ signingString: "raw" | {
3166
+ template: string;
3167
+ vars?: Record<string, {
3168
+ from: "header";
3169
+ name: string;
3170
+ } | {
3171
+ from: "signatureField";
3172
+ field: string;
3173
+ } | {
3174
+ from: "body";
3175
+ path: string;
3176
+ } | {
3177
+ from: "url";
3178
+ } | {
3179
+ from: "constant";
3180
+ value: string;
3181
+ }> | undefined;
3182
+ };
3183
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3184
+ idempotencyField?: {
3185
+ from: "body" | "header";
3186
+ name: string;
3187
+ } | undefined;
3188
+ };
3189
+ handshake?: {
3190
+ matchPath: string;
3191
+ matchValue: string;
3192
+ respondPath: string;
3193
+ } | undefined;
3194
+ } | {
3195
+ kind: "preset";
3196
+ preset: string;
3197
+ config: {
3198
+ scheme: "hmac";
3199
+ algorithm: "sha1" | "sha256";
3200
+ encoding: "base64" | "hex";
3201
+ signatureHeader: string;
3202
+ signature?: {
3203
+ itemSeparator?: string | undefined;
3204
+ fieldSeparator?: string | undefined;
3205
+ field?: string | undefined;
3206
+ trim?: boolean | undefined;
3207
+ } | undefined;
3208
+ timestamp?: {
3209
+ source: {
3210
+ from: "header";
3211
+ name: string;
3212
+ } | {
3213
+ from: "signatureField";
3214
+ field: string;
3215
+ } | {
3216
+ from: "body";
3217
+ path: string;
3218
+ } | {
3219
+ from: "url";
3220
+ } | {
3221
+ from: "constant";
3222
+ value: string;
3223
+ };
3224
+ unit?: "milliseconds" | "seconds" | undefined;
3225
+ toleranceSeconds?: number | undefined;
3226
+ } | undefined;
3227
+ signingString: "raw" | {
3228
+ template: string;
3229
+ vars?: Record<string, {
3230
+ from: "header";
3231
+ name: string;
3232
+ } | {
3233
+ from: "signatureField";
3234
+ field: string;
3235
+ } | {
3236
+ from: "body";
3237
+ path: string;
3238
+ } | {
3239
+ from: "url";
3240
+ } | {
3241
+ from: "constant";
3242
+ value: string;
3243
+ }> | undefined;
3244
+ };
3245
+ secret?: {
3246
+ encoding?: "base64" | "utf8" | undefined;
3247
+ stripPrefix?: string | undefined;
3248
+ } | undefined;
3249
+ idempotencyField?: {
3250
+ from: "body" | "header";
3251
+ name: string;
3252
+ } | undefined;
3253
+ formPayload?: {
3254
+ field: string;
3255
+ } | undefined;
3256
+ } | {
3257
+ scheme: "shared-secret";
3258
+ placement: "basic" | "bearer" | "body" | "header";
3259
+ fieldName?: string | undefined;
3260
+ idempotencyField?: {
3261
+ from: "body" | "header";
3262
+ name: string;
3263
+ } | undefined;
3264
+ } | {
3265
+ scheme: "url-secret";
3266
+ placement: "path" | "query";
3267
+ paramName: string;
3268
+ idempotencyField?: {
3269
+ from: "body" | "header";
3270
+ name: string;
3271
+ } | undefined;
3272
+ } | {
3273
+ scheme: "asymmetric";
3274
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3275
+ encoding: "base64" | "hex";
3276
+ signatureHeader: string;
3277
+ signature?: {
3278
+ itemSeparator?: string | undefined;
3279
+ fieldSeparator?: string | undefined;
3280
+ field?: string | undefined;
3281
+ trim?: boolean | undefined;
3282
+ } | undefined;
3283
+ timestamp?: {
3284
+ source: {
3285
+ from: "header";
3286
+ name: string;
3287
+ } | {
3288
+ from: "signatureField";
3289
+ field: string;
3290
+ } | {
3291
+ from: "body";
3292
+ path: string;
3293
+ } | {
3294
+ from: "url";
3295
+ } | {
3296
+ from: "constant";
3297
+ value: string;
3298
+ };
3299
+ unit?: "milliseconds" | "seconds" | undefined;
3300
+ toleranceSeconds?: number | undefined;
3301
+ } | undefined;
3302
+ signingString: "raw" | {
3303
+ template: string;
3304
+ vars?: Record<string, {
3305
+ from: "header";
3306
+ name: string;
3307
+ } | {
3308
+ from: "signatureField";
3309
+ field: string;
3310
+ } | {
3311
+ from: "body";
3312
+ path: string;
3313
+ } | {
3314
+ from: "url";
3315
+ } | {
3316
+ from: "constant";
3317
+ value: string;
3318
+ }> | undefined;
3319
+ };
3320
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3321
+ idempotencyField?: {
3322
+ from: "body" | "header";
3323
+ name: string;
3324
+ } | undefined;
3325
+ };
3326
+ handshake?: {
3327
+ matchPath: string;
3328
+ matchValue: string;
3329
+ respondPath: string;
3330
+ } | undefined;
3331
+ } | {
3332
+ kind: "bundle";
3333
+ bundleUrl: string;
3334
+ hash: string;
3335
+ };
3336
+ routingTarget: {
3337
+ type: "task";
3338
+ taskId: string;
3339
+ } | {
3340
+ type: "session";
3341
+ taskIdentifier: string;
3342
+ keyTemplate: string;
3343
+ deliverAs: "action" | "message";
3344
+ actionType?: string | undefined;
3345
+ connectorId?: string | undefined;
3346
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
3347
+ startOn?: string | undefined;
3348
+ };
3349
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
3350
+ filter?: string | undefined;
3351
+ metadata?: Record<string, unknown> | undefined;
3352
+ }>, "many">>;
624
3353
  queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
625
3354
  name: z.ZodString;
626
3355
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -701,6 +3430,307 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
701
3430
  config?: Record<string, unknown> | undefined;
702
3431
  variableSchema?: unknown;
703
3432
  }[] | undefined;
3433
+ webhooks?: {
3434
+ id: string;
3435
+ description?: string | undefined;
3436
+ filePath: string;
3437
+ exportName?: string | undefined;
3438
+ source: string;
3439
+ verifierArtifact: {
3440
+ kind: "config";
3441
+ config: {
3442
+ scheme: "hmac";
3443
+ algorithm: "sha1" | "sha256";
3444
+ encoding: "base64" | "hex";
3445
+ signatureHeader: string;
3446
+ signature?: {
3447
+ itemSeparator?: string | undefined;
3448
+ fieldSeparator?: string | undefined;
3449
+ field?: string | undefined;
3450
+ trim?: boolean | undefined;
3451
+ } | undefined;
3452
+ timestamp?: {
3453
+ source: {
3454
+ from: "header";
3455
+ name: string;
3456
+ } | {
3457
+ from: "signatureField";
3458
+ field: string;
3459
+ } | {
3460
+ from: "body";
3461
+ path: string;
3462
+ } | {
3463
+ from: "url";
3464
+ } | {
3465
+ from: "constant";
3466
+ value: string;
3467
+ };
3468
+ unit?: "milliseconds" | "seconds" | undefined;
3469
+ toleranceSeconds?: number | undefined;
3470
+ } | undefined;
3471
+ signingString: "raw" | {
3472
+ template: string;
3473
+ vars?: Record<string, {
3474
+ from: "header";
3475
+ name: string;
3476
+ } | {
3477
+ from: "signatureField";
3478
+ field: string;
3479
+ } | {
3480
+ from: "body";
3481
+ path: string;
3482
+ } | {
3483
+ from: "url";
3484
+ } | {
3485
+ from: "constant";
3486
+ value: string;
3487
+ }> | undefined;
3488
+ };
3489
+ secret?: {
3490
+ encoding?: "base64" | "utf8" | undefined;
3491
+ stripPrefix?: string | undefined;
3492
+ } | undefined;
3493
+ idempotencyField?: {
3494
+ from: "body" | "header";
3495
+ name: string;
3496
+ } | undefined;
3497
+ formPayload?: {
3498
+ field: string;
3499
+ } | undefined;
3500
+ } | {
3501
+ scheme: "shared-secret";
3502
+ placement: "basic" | "bearer" | "body" | "header";
3503
+ fieldName?: string | undefined;
3504
+ idempotencyField?: {
3505
+ from: "body" | "header";
3506
+ name: string;
3507
+ } | undefined;
3508
+ } | {
3509
+ scheme: "url-secret";
3510
+ placement: "path" | "query";
3511
+ paramName: string;
3512
+ idempotencyField?: {
3513
+ from: "body" | "header";
3514
+ name: string;
3515
+ } | undefined;
3516
+ } | {
3517
+ scheme: "asymmetric";
3518
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3519
+ encoding: "base64" | "hex";
3520
+ signatureHeader: string;
3521
+ signature?: {
3522
+ itemSeparator?: string | undefined;
3523
+ fieldSeparator?: string | undefined;
3524
+ field?: string | undefined;
3525
+ trim?: boolean | undefined;
3526
+ } | undefined;
3527
+ timestamp?: {
3528
+ source: {
3529
+ from: "header";
3530
+ name: string;
3531
+ } | {
3532
+ from: "signatureField";
3533
+ field: string;
3534
+ } | {
3535
+ from: "body";
3536
+ path: string;
3537
+ } | {
3538
+ from: "url";
3539
+ } | {
3540
+ from: "constant";
3541
+ value: string;
3542
+ };
3543
+ unit?: "milliseconds" | "seconds" | undefined;
3544
+ toleranceSeconds?: number | undefined;
3545
+ } | undefined;
3546
+ signingString: "raw" | {
3547
+ template: string;
3548
+ vars?: Record<string, {
3549
+ from: "header";
3550
+ name: string;
3551
+ } | {
3552
+ from: "signatureField";
3553
+ field: string;
3554
+ } | {
3555
+ from: "body";
3556
+ path: string;
3557
+ } | {
3558
+ from: "url";
3559
+ } | {
3560
+ from: "constant";
3561
+ value: string;
3562
+ }> | undefined;
3563
+ };
3564
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3565
+ idempotencyField?: {
3566
+ from: "body" | "header";
3567
+ name: string;
3568
+ } | undefined;
3569
+ };
3570
+ handshake?: {
3571
+ matchPath: string;
3572
+ matchValue: string;
3573
+ respondPath: string;
3574
+ } | undefined;
3575
+ } | {
3576
+ kind: "preset";
3577
+ preset: string;
3578
+ config: {
3579
+ scheme: "hmac";
3580
+ algorithm: "sha1" | "sha256";
3581
+ encoding: "base64" | "hex";
3582
+ signatureHeader: string;
3583
+ signature?: {
3584
+ itemSeparator?: string | undefined;
3585
+ fieldSeparator?: string | undefined;
3586
+ field?: string | undefined;
3587
+ trim?: boolean | undefined;
3588
+ } | undefined;
3589
+ timestamp?: {
3590
+ source: {
3591
+ from: "header";
3592
+ name: string;
3593
+ } | {
3594
+ from: "signatureField";
3595
+ field: string;
3596
+ } | {
3597
+ from: "body";
3598
+ path: string;
3599
+ } | {
3600
+ from: "url";
3601
+ } | {
3602
+ from: "constant";
3603
+ value: string;
3604
+ };
3605
+ unit?: "milliseconds" | "seconds" | undefined;
3606
+ toleranceSeconds?: number | undefined;
3607
+ } | undefined;
3608
+ signingString: "raw" | {
3609
+ template: string;
3610
+ vars?: Record<string, {
3611
+ from: "header";
3612
+ name: string;
3613
+ } | {
3614
+ from: "signatureField";
3615
+ field: string;
3616
+ } | {
3617
+ from: "body";
3618
+ path: string;
3619
+ } | {
3620
+ from: "url";
3621
+ } | {
3622
+ from: "constant";
3623
+ value: string;
3624
+ }> | undefined;
3625
+ };
3626
+ secret?: {
3627
+ encoding?: "base64" | "utf8" | undefined;
3628
+ stripPrefix?: string | undefined;
3629
+ } | undefined;
3630
+ idempotencyField?: {
3631
+ from: "body" | "header";
3632
+ name: string;
3633
+ } | undefined;
3634
+ formPayload?: {
3635
+ field: string;
3636
+ } | undefined;
3637
+ } | {
3638
+ scheme: "shared-secret";
3639
+ placement: "basic" | "bearer" | "body" | "header";
3640
+ fieldName?: string | undefined;
3641
+ idempotencyField?: {
3642
+ from: "body" | "header";
3643
+ name: string;
3644
+ } | undefined;
3645
+ } | {
3646
+ scheme: "url-secret";
3647
+ placement: "path" | "query";
3648
+ paramName: string;
3649
+ idempotencyField?: {
3650
+ from: "body" | "header";
3651
+ name: string;
3652
+ } | undefined;
3653
+ } | {
3654
+ scheme: "asymmetric";
3655
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3656
+ encoding: "base64" | "hex";
3657
+ signatureHeader: string;
3658
+ signature?: {
3659
+ itemSeparator?: string | undefined;
3660
+ fieldSeparator?: string | undefined;
3661
+ field?: string | undefined;
3662
+ trim?: boolean | undefined;
3663
+ } | undefined;
3664
+ timestamp?: {
3665
+ source: {
3666
+ from: "header";
3667
+ name: string;
3668
+ } | {
3669
+ from: "signatureField";
3670
+ field: string;
3671
+ } | {
3672
+ from: "body";
3673
+ path: string;
3674
+ } | {
3675
+ from: "url";
3676
+ } | {
3677
+ from: "constant";
3678
+ value: string;
3679
+ };
3680
+ unit?: "milliseconds" | "seconds" | undefined;
3681
+ toleranceSeconds?: number | undefined;
3682
+ } | undefined;
3683
+ signingString: "raw" | {
3684
+ template: string;
3685
+ vars?: Record<string, {
3686
+ from: "header";
3687
+ name: string;
3688
+ } | {
3689
+ from: "signatureField";
3690
+ field: string;
3691
+ } | {
3692
+ from: "body";
3693
+ path: string;
3694
+ } | {
3695
+ from: "url";
3696
+ } | {
3697
+ from: "constant";
3698
+ value: string;
3699
+ }> | undefined;
3700
+ };
3701
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3702
+ idempotencyField?: {
3703
+ from: "body" | "header";
3704
+ name: string;
3705
+ } | undefined;
3706
+ };
3707
+ handshake?: {
3708
+ matchPath: string;
3709
+ matchValue: string;
3710
+ respondPath: string;
3711
+ } | undefined;
3712
+ } | {
3713
+ kind: "bundle";
3714
+ bundleUrl: string;
3715
+ hash: string;
3716
+ };
3717
+ routingTarget: {
3718
+ type: "task";
3719
+ taskId: string;
3720
+ } | {
3721
+ type: "session";
3722
+ taskIdentifier: string;
3723
+ keyTemplate: string;
3724
+ deliverAs: "action" | "message";
3725
+ actionType?: string | undefined;
3726
+ connectorId?: string | undefined;
3727
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
3728
+ startOn?: string | undefined;
3729
+ };
3730
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
3731
+ filter?: string | undefined;
3732
+ metadata?: Record<string, unknown> | undefined;
3733
+ }[] | undefined;
704
3734
  queues?: {
705
3735
  name: string;
706
3736
  concurrencyLimit?: number | null | undefined;
@@ -765,6 +3795,307 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
765
3795
  config?: Record<string, unknown> | undefined;
766
3796
  variableSchema?: unknown;
767
3797
  }[] | undefined;
3798
+ webhooks?: {
3799
+ id: string;
3800
+ description?: string | undefined;
3801
+ filePath: string;
3802
+ exportName?: string | undefined;
3803
+ source: string;
3804
+ verifierArtifact: {
3805
+ kind: "config";
3806
+ config: {
3807
+ scheme: "hmac";
3808
+ algorithm: "sha1" | "sha256";
3809
+ encoding: "base64" | "hex";
3810
+ signatureHeader: string;
3811
+ signature?: {
3812
+ itemSeparator?: string | undefined;
3813
+ fieldSeparator?: string | undefined;
3814
+ field?: string | undefined;
3815
+ trim?: boolean | undefined;
3816
+ } | undefined;
3817
+ timestamp?: {
3818
+ source: {
3819
+ from: "header";
3820
+ name: string;
3821
+ } | {
3822
+ from: "signatureField";
3823
+ field: string;
3824
+ } | {
3825
+ from: "body";
3826
+ path: string;
3827
+ } | {
3828
+ from: "url";
3829
+ } | {
3830
+ from: "constant";
3831
+ value: string;
3832
+ };
3833
+ unit?: "milliseconds" | "seconds" | undefined;
3834
+ toleranceSeconds?: number | undefined;
3835
+ } | undefined;
3836
+ signingString: "raw" | {
3837
+ template: string;
3838
+ vars?: Record<string, {
3839
+ from: "header";
3840
+ name: string;
3841
+ } | {
3842
+ from: "signatureField";
3843
+ field: string;
3844
+ } | {
3845
+ from: "body";
3846
+ path: string;
3847
+ } | {
3848
+ from: "url";
3849
+ } | {
3850
+ from: "constant";
3851
+ value: string;
3852
+ }> | undefined;
3853
+ };
3854
+ secret?: {
3855
+ encoding?: "base64" | "utf8" | undefined;
3856
+ stripPrefix?: string | undefined;
3857
+ } | undefined;
3858
+ idempotencyField?: {
3859
+ from: "body" | "header";
3860
+ name: string;
3861
+ } | undefined;
3862
+ formPayload?: {
3863
+ field: string;
3864
+ } | undefined;
3865
+ } | {
3866
+ scheme: "shared-secret";
3867
+ placement: "basic" | "bearer" | "body" | "header";
3868
+ fieldName?: string | undefined;
3869
+ idempotencyField?: {
3870
+ from: "body" | "header";
3871
+ name: string;
3872
+ } | undefined;
3873
+ } | {
3874
+ scheme: "url-secret";
3875
+ placement: "path" | "query";
3876
+ paramName: string;
3877
+ idempotencyField?: {
3878
+ from: "body" | "header";
3879
+ name: string;
3880
+ } | undefined;
3881
+ } | {
3882
+ scheme: "asymmetric";
3883
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3884
+ encoding: "base64" | "hex";
3885
+ signatureHeader: string;
3886
+ signature?: {
3887
+ itemSeparator?: string | undefined;
3888
+ fieldSeparator?: string | undefined;
3889
+ field?: string | undefined;
3890
+ trim?: boolean | undefined;
3891
+ } | undefined;
3892
+ timestamp?: {
3893
+ source: {
3894
+ from: "header";
3895
+ name: string;
3896
+ } | {
3897
+ from: "signatureField";
3898
+ field: string;
3899
+ } | {
3900
+ from: "body";
3901
+ path: string;
3902
+ } | {
3903
+ from: "url";
3904
+ } | {
3905
+ from: "constant";
3906
+ value: string;
3907
+ };
3908
+ unit?: "milliseconds" | "seconds" | undefined;
3909
+ toleranceSeconds?: number | undefined;
3910
+ } | undefined;
3911
+ signingString: "raw" | {
3912
+ template: string;
3913
+ vars?: Record<string, {
3914
+ from: "header";
3915
+ name: string;
3916
+ } | {
3917
+ from: "signatureField";
3918
+ field: string;
3919
+ } | {
3920
+ from: "body";
3921
+ path: string;
3922
+ } | {
3923
+ from: "url";
3924
+ } | {
3925
+ from: "constant";
3926
+ value: string;
3927
+ }> | undefined;
3928
+ };
3929
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3930
+ idempotencyField?: {
3931
+ from: "body" | "header";
3932
+ name: string;
3933
+ } | undefined;
3934
+ };
3935
+ handshake?: {
3936
+ matchPath: string;
3937
+ matchValue: string;
3938
+ respondPath: string;
3939
+ } | undefined;
3940
+ } | {
3941
+ kind: "preset";
3942
+ preset: string;
3943
+ config: {
3944
+ scheme: "hmac";
3945
+ algorithm: "sha1" | "sha256";
3946
+ encoding: "base64" | "hex";
3947
+ signatureHeader: string;
3948
+ signature?: {
3949
+ itemSeparator?: string | undefined;
3950
+ fieldSeparator?: string | undefined;
3951
+ field?: string | undefined;
3952
+ trim?: boolean | undefined;
3953
+ } | undefined;
3954
+ timestamp?: {
3955
+ source: {
3956
+ from: "header";
3957
+ name: string;
3958
+ } | {
3959
+ from: "signatureField";
3960
+ field: string;
3961
+ } | {
3962
+ from: "body";
3963
+ path: string;
3964
+ } | {
3965
+ from: "url";
3966
+ } | {
3967
+ from: "constant";
3968
+ value: string;
3969
+ };
3970
+ unit?: "milliseconds" | "seconds" | undefined;
3971
+ toleranceSeconds?: number | undefined;
3972
+ } | undefined;
3973
+ signingString: "raw" | {
3974
+ template: string;
3975
+ vars?: Record<string, {
3976
+ from: "header";
3977
+ name: string;
3978
+ } | {
3979
+ from: "signatureField";
3980
+ field: string;
3981
+ } | {
3982
+ from: "body";
3983
+ path: string;
3984
+ } | {
3985
+ from: "url";
3986
+ } | {
3987
+ from: "constant";
3988
+ value: string;
3989
+ }> | undefined;
3990
+ };
3991
+ secret?: {
3992
+ encoding?: "base64" | "utf8" | undefined;
3993
+ stripPrefix?: string | undefined;
3994
+ } | undefined;
3995
+ idempotencyField?: {
3996
+ from: "body" | "header";
3997
+ name: string;
3998
+ } | undefined;
3999
+ formPayload?: {
4000
+ field: string;
4001
+ } | undefined;
4002
+ } | {
4003
+ scheme: "shared-secret";
4004
+ placement: "basic" | "bearer" | "body" | "header";
4005
+ fieldName?: string | undefined;
4006
+ idempotencyField?: {
4007
+ from: "body" | "header";
4008
+ name: string;
4009
+ } | undefined;
4010
+ } | {
4011
+ scheme: "url-secret";
4012
+ placement: "path" | "query";
4013
+ paramName: string;
4014
+ idempotencyField?: {
4015
+ from: "body" | "header";
4016
+ name: string;
4017
+ } | undefined;
4018
+ } | {
4019
+ scheme: "asymmetric";
4020
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
4021
+ encoding: "base64" | "hex";
4022
+ signatureHeader: string;
4023
+ signature?: {
4024
+ itemSeparator?: string | undefined;
4025
+ fieldSeparator?: string | undefined;
4026
+ field?: string | undefined;
4027
+ trim?: boolean | undefined;
4028
+ } | undefined;
4029
+ timestamp?: {
4030
+ source: {
4031
+ from: "header";
4032
+ name: string;
4033
+ } | {
4034
+ from: "signatureField";
4035
+ field: string;
4036
+ } | {
4037
+ from: "body";
4038
+ path: string;
4039
+ } | {
4040
+ from: "url";
4041
+ } | {
4042
+ from: "constant";
4043
+ value: string;
4044
+ };
4045
+ unit?: "milliseconds" | "seconds" | undefined;
4046
+ toleranceSeconds?: number | undefined;
4047
+ } | undefined;
4048
+ signingString: "raw" | {
4049
+ template: string;
4050
+ vars?: Record<string, {
4051
+ from: "header";
4052
+ name: string;
4053
+ } | {
4054
+ from: "signatureField";
4055
+ field: string;
4056
+ } | {
4057
+ from: "body";
4058
+ path: string;
4059
+ } | {
4060
+ from: "url";
4061
+ } | {
4062
+ from: "constant";
4063
+ value: string;
4064
+ }> | undefined;
4065
+ };
4066
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
4067
+ idempotencyField?: {
4068
+ from: "body" | "header";
4069
+ name: string;
4070
+ } | undefined;
4071
+ };
4072
+ handshake?: {
4073
+ matchPath: string;
4074
+ matchValue: string;
4075
+ respondPath: string;
4076
+ } | undefined;
4077
+ } | {
4078
+ kind: "bundle";
4079
+ bundleUrl: string;
4080
+ hash: string;
4081
+ };
4082
+ routingTarget: {
4083
+ type: "task";
4084
+ taskId: string;
4085
+ } | {
4086
+ type: "session";
4087
+ taskIdentifier: string;
4088
+ keyTemplate: string;
4089
+ deliverAs: "action" | "message";
4090
+ actionType?: string | undefined;
4091
+ connectorId?: string | undefined;
4092
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
4093
+ startOn?: string | undefined;
4094
+ };
4095
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
4096
+ filter?: string | undefined;
4097
+ metadata?: Record<string, unknown> | undefined;
4098
+ }[] | undefined;
768
4099
  queues?: {
769
4100
  name: string;
770
4101
  concurrencyLimit?: number | null | undefined;
@@ -836,6 +4167,307 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
836
4167
  config?: Record<string, unknown> | undefined;
837
4168
  variableSchema?: unknown;
838
4169
  }[] | undefined;
4170
+ webhooks?: {
4171
+ id: string;
4172
+ description?: string | undefined;
4173
+ filePath: string;
4174
+ exportName?: string | undefined;
4175
+ source: string;
4176
+ verifierArtifact: {
4177
+ kind: "config";
4178
+ config: {
4179
+ scheme: "hmac";
4180
+ algorithm: "sha1" | "sha256";
4181
+ encoding: "base64" | "hex";
4182
+ signatureHeader: string;
4183
+ signature?: {
4184
+ itemSeparator?: string | undefined;
4185
+ fieldSeparator?: string | undefined;
4186
+ field?: string | undefined;
4187
+ trim?: boolean | undefined;
4188
+ } | undefined;
4189
+ timestamp?: {
4190
+ source: {
4191
+ from: "header";
4192
+ name: string;
4193
+ } | {
4194
+ from: "signatureField";
4195
+ field: string;
4196
+ } | {
4197
+ from: "body";
4198
+ path: string;
4199
+ } | {
4200
+ from: "url";
4201
+ } | {
4202
+ from: "constant";
4203
+ value: string;
4204
+ };
4205
+ unit?: "milliseconds" | "seconds" | undefined;
4206
+ toleranceSeconds?: number | undefined;
4207
+ } | undefined;
4208
+ signingString: "raw" | {
4209
+ template: string;
4210
+ vars?: Record<string, {
4211
+ from: "header";
4212
+ name: string;
4213
+ } | {
4214
+ from: "signatureField";
4215
+ field: string;
4216
+ } | {
4217
+ from: "body";
4218
+ path: string;
4219
+ } | {
4220
+ from: "url";
4221
+ } | {
4222
+ from: "constant";
4223
+ value: string;
4224
+ }> | undefined;
4225
+ };
4226
+ secret?: {
4227
+ encoding?: "base64" | "utf8" | undefined;
4228
+ stripPrefix?: string | undefined;
4229
+ } | undefined;
4230
+ idempotencyField?: {
4231
+ from: "body" | "header";
4232
+ name: string;
4233
+ } | undefined;
4234
+ formPayload?: {
4235
+ field: string;
4236
+ } | undefined;
4237
+ } | {
4238
+ scheme: "shared-secret";
4239
+ placement: "basic" | "bearer" | "body" | "header";
4240
+ fieldName?: string | undefined;
4241
+ idempotencyField?: {
4242
+ from: "body" | "header";
4243
+ name: string;
4244
+ } | undefined;
4245
+ } | {
4246
+ scheme: "url-secret";
4247
+ placement: "path" | "query";
4248
+ paramName: string;
4249
+ idempotencyField?: {
4250
+ from: "body" | "header";
4251
+ name: string;
4252
+ } | undefined;
4253
+ } | {
4254
+ scheme: "asymmetric";
4255
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
4256
+ encoding: "base64" | "hex";
4257
+ signatureHeader: string;
4258
+ signature?: {
4259
+ itemSeparator?: string | undefined;
4260
+ fieldSeparator?: string | undefined;
4261
+ field?: string | undefined;
4262
+ trim?: boolean | undefined;
4263
+ } | undefined;
4264
+ timestamp?: {
4265
+ source: {
4266
+ from: "header";
4267
+ name: string;
4268
+ } | {
4269
+ from: "signatureField";
4270
+ field: string;
4271
+ } | {
4272
+ from: "body";
4273
+ path: string;
4274
+ } | {
4275
+ from: "url";
4276
+ } | {
4277
+ from: "constant";
4278
+ value: string;
4279
+ };
4280
+ unit?: "milliseconds" | "seconds" | undefined;
4281
+ toleranceSeconds?: number | undefined;
4282
+ } | undefined;
4283
+ signingString: "raw" | {
4284
+ template: string;
4285
+ vars?: Record<string, {
4286
+ from: "header";
4287
+ name: string;
4288
+ } | {
4289
+ from: "signatureField";
4290
+ field: string;
4291
+ } | {
4292
+ from: "body";
4293
+ path: string;
4294
+ } | {
4295
+ from: "url";
4296
+ } | {
4297
+ from: "constant";
4298
+ value: string;
4299
+ }> | undefined;
4300
+ };
4301
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
4302
+ idempotencyField?: {
4303
+ from: "body" | "header";
4304
+ name: string;
4305
+ } | undefined;
4306
+ };
4307
+ handshake?: {
4308
+ matchPath: string;
4309
+ matchValue: string;
4310
+ respondPath: string;
4311
+ } | undefined;
4312
+ } | {
4313
+ kind: "preset";
4314
+ preset: string;
4315
+ config: {
4316
+ scheme: "hmac";
4317
+ algorithm: "sha1" | "sha256";
4318
+ encoding: "base64" | "hex";
4319
+ signatureHeader: string;
4320
+ signature?: {
4321
+ itemSeparator?: string | undefined;
4322
+ fieldSeparator?: string | undefined;
4323
+ field?: string | undefined;
4324
+ trim?: boolean | undefined;
4325
+ } | undefined;
4326
+ timestamp?: {
4327
+ source: {
4328
+ from: "header";
4329
+ name: string;
4330
+ } | {
4331
+ from: "signatureField";
4332
+ field: string;
4333
+ } | {
4334
+ from: "body";
4335
+ path: string;
4336
+ } | {
4337
+ from: "url";
4338
+ } | {
4339
+ from: "constant";
4340
+ value: string;
4341
+ };
4342
+ unit?: "milliseconds" | "seconds" | undefined;
4343
+ toleranceSeconds?: number | undefined;
4344
+ } | undefined;
4345
+ signingString: "raw" | {
4346
+ template: string;
4347
+ vars?: Record<string, {
4348
+ from: "header";
4349
+ name: string;
4350
+ } | {
4351
+ from: "signatureField";
4352
+ field: string;
4353
+ } | {
4354
+ from: "body";
4355
+ path: string;
4356
+ } | {
4357
+ from: "url";
4358
+ } | {
4359
+ from: "constant";
4360
+ value: string;
4361
+ }> | undefined;
4362
+ };
4363
+ secret?: {
4364
+ encoding?: "base64" | "utf8" | undefined;
4365
+ stripPrefix?: string | undefined;
4366
+ } | undefined;
4367
+ idempotencyField?: {
4368
+ from: "body" | "header";
4369
+ name: string;
4370
+ } | undefined;
4371
+ formPayload?: {
4372
+ field: string;
4373
+ } | undefined;
4374
+ } | {
4375
+ scheme: "shared-secret";
4376
+ placement: "basic" | "bearer" | "body" | "header";
4377
+ fieldName?: string | undefined;
4378
+ idempotencyField?: {
4379
+ from: "body" | "header";
4380
+ name: string;
4381
+ } | undefined;
4382
+ } | {
4383
+ scheme: "url-secret";
4384
+ placement: "path" | "query";
4385
+ paramName: string;
4386
+ idempotencyField?: {
4387
+ from: "body" | "header";
4388
+ name: string;
4389
+ } | undefined;
4390
+ } | {
4391
+ scheme: "asymmetric";
4392
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
4393
+ encoding: "base64" | "hex";
4394
+ signatureHeader: string;
4395
+ signature?: {
4396
+ itemSeparator?: string | undefined;
4397
+ fieldSeparator?: string | undefined;
4398
+ field?: string | undefined;
4399
+ trim?: boolean | undefined;
4400
+ } | undefined;
4401
+ timestamp?: {
4402
+ source: {
4403
+ from: "header";
4404
+ name: string;
4405
+ } | {
4406
+ from: "signatureField";
4407
+ field: string;
4408
+ } | {
4409
+ from: "body";
4410
+ path: string;
4411
+ } | {
4412
+ from: "url";
4413
+ } | {
4414
+ from: "constant";
4415
+ value: string;
4416
+ };
4417
+ unit?: "milliseconds" | "seconds" | undefined;
4418
+ toleranceSeconds?: number | undefined;
4419
+ } | undefined;
4420
+ signingString: "raw" | {
4421
+ template: string;
4422
+ vars?: Record<string, {
4423
+ from: "header";
4424
+ name: string;
4425
+ } | {
4426
+ from: "signatureField";
4427
+ field: string;
4428
+ } | {
4429
+ from: "body";
4430
+ path: string;
4431
+ } | {
4432
+ from: "url";
4433
+ } | {
4434
+ from: "constant";
4435
+ value: string;
4436
+ }> | undefined;
4437
+ };
4438
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
4439
+ idempotencyField?: {
4440
+ from: "body" | "header";
4441
+ name: string;
4442
+ } | undefined;
4443
+ };
4444
+ handshake?: {
4445
+ matchPath: string;
4446
+ matchValue: string;
4447
+ respondPath: string;
4448
+ } | undefined;
4449
+ } | {
4450
+ kind: "bundle";
4451
+ bundleUrl: string;
4452
+ hash: string;
4453
+ };
4454
+ routingTarget: {
4455
+ type: "task";
4456
+ taskId: string;
4457
+ } | {
4458
+ type: "session";
4459
+ taskIdentifier: string;
4460
+ keyTemplate: string;
4461
+ deliverAs: "action" | "message";
4462
+ actionType?: string | undefined;
4463
+ connectorId?: string | undefined;
4464
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
4465
+ startOn?: string | undefined;
4466
+ };
4467
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
4468
+ filter?: string | undefined;
4469
+ metadata?: Record<string, unknown> | undefined;
4470
+ }[] | undefined;
839
4471
  queues?: {
840
4472
  name: string;
841
4473
  concurrencyLimit?: number | null | undefined;
@@ -907,6 +4539,307 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
907
4539
  config?: Record<string, unknown> | undefined;
908
4540
  variableSchema?: unknown;
909
4541
  }[] | undefined;
4542
+ webhooks?: {
4543
+ id: string;
4544
+ description?: string | undefined;
4545
+ filePath: string;
4546
+ exportName?: string | undefined;
4547
+ source: string;
4548
+ verifierArtifact: {
4549
+ kind: "config";
4550
+ config: {
4551
+ scheme: "hmac";
4552
+ algorithm: "sha1" | "sha256";
4553
+ encoding: "base64" | "hex";
4554
+ signatureHeader: string;
4555
+ signature?: {
4556
+ itemSeparator?: string | undefined;
4557
+ fieldSeparator?: string | undefined;
4558
+ field?: string | undefined;
4559
+ trim?: boolean | undefined;
4560
+ } | undefined;
4561
+ timestamp?: {
4562
+ source: {
4563
+ from: "header";
4564
+ name: string;
4565
+ } | {
4566
+ from: "signatureField";
4567
+ field: string;
4568
+ } | {
4569
+ from: "body";
4570
+ path: string;
4571
+ } | {
4572
+ from: "url";
4573
+ } | {
4574
+ from: "constant";
4575
+ value: string;
4576
+ };
4577
+ unit?: "milliseconds" | "seconds" | undefined;
4578
+ toleranceSeconds?: number | undefined;
4579
+ } | undefined;
4580
+ signingString: "raw" | {
4581
+ template: string;
4582
+ vars?: Record<string, {
4583
+ from: "header";
4584
+ name: string;
4585
+ } | {
4586
+ from: "signatureField";
4587
+ field: string;
4588
+ } | {
4589
+ from: "body";
4590
+ path: string;
4591
+ } | {
4592
+ from: "url";
4593
+ } | {
4594
+ from: "constant";
4595
+ value: string;
4596
+ }> | undefined;
4597
+ };
4598
+ secret?: {
4599
+ encoding?: "base64" | "utf8" | undefined;
4600
+ stripPrefix?: string | undefined;
4601
+ } | undefined;
4602
+ idempotencyField?: {
4603
+ from: "body" | "header";
4604
+ name: string;
4605
+ } | undefined;
4606
+ formPayload?: {
4607
+ field: string;
4608
+ } | undefined;
4609
+ } | {
4610
+ scheme: "shared-secret";
4611
+ placement: "basic" | "bearer" | "body" | "header";
4612
+ fieldName?: string | undefined;
4613
+ idempotencyField?: {
4614
+ from: "body" | "header";
4615
+ name: string;
4616
+ } | undefined;
4617
+ } | {
4618
+ scheme: "url-secret";
4619
+ placement: "path" | "query";
4620
+ paramName: string;
4621
+ idempotencyField?: {
4622
+ from: "body" | "header";
4623
+ name: string;
4624
+ } | undefined;
4625
+ } | {
4626
+ scheme: "asymmetric";
4627
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
4628
+ encoding: "base64" | "hex";
4629
+ signatureHeader: string;
4630
+ signature?: {
4631
+ itemSeparator?: string | undefined;
4632
+ fieldSeparator?: string | undefined;
4633
+ field?: string | undefined;
4634
+ trim?: boolean | undefined;
4635
+ } | undefined;
4636
+ timestamp?: {
4637
+ source: {
4638
+ from: "header";
4639
+ name: string;
4640
+ } | {
4641
+ from: "signatureField";
4642
+ field: string;
4643
+ } | {
4644
+ from: "body";
4645
+ path: string;
4646
+ } | {
4647
+ from: "url";
4648
+ } | {
4649
+ from: "constant";
4650
+ value: string;
4651
+ };
4652
+ unit?: "milliseconds" | "seconds" | undefined;
4653
+ toleranceSeconds?: number | undefined;
4654
+ } | undefined;
4655
+ signingString: "raw" | {
4656
+ template: string;
4657
+ vars?: Record<string, {
4658
+ from: "header";
4659
+ name: string;
4660
+ } | {
4661
+ from: "signatureField";
4662
+ field: string;
4663
+ } | {
4664
+ from: "body";
4665
+ path: string;
4666
+ } | {
4667
+ from: "url";
4668
+ } | {
4669
+ from: "constant";
4670
+ value: string;
4671
+ }> | undefined;
4672
+ };
4673
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
4674
+ idempotencyField?: {
4675
+ from: "body" | "header";
4676
+ name: string;
4677
+ } | undefined;
4678
+ };
4679
+ handshake?: {
4680
+ matchPath: string;
4681
+ matchValue: string;
4682
+ respondPath: string;
4683
+ } | undefined;
4684
+ } | {
4685
+ kind: "preset";
4686
+ preset: string;
4687
+ config: {
4688
+ scheme: "hmac";
4689
+ algorithm: "sha1" | "sha256";
4690
+ encoding: "base64" | "hex";
4691
+ signatureHeader: string;
4692
+ signature?: {
4693
+ itemSeparator?: string | undefined;
4694
+ fieldSeparator?: string | undefined;
4695
+ field?: string | undefined;
4696
+ trim?: boolean | undefined;
4697
+ } | undefined;
4698
+ timestamp?: {
4699
+ source: {
4700
+ from: "header";
4701
+ name: string;
4702
+ } | {
4703
+ from: "signatureField";
4704
+ field: string;
4705
+ } | {
4706
+ from: "body";
4707
+ path: string;
4708
+ } | {
4709
+ from: "url";
4710
+ } | {
4711
+ from: "constant";
4712
+ value: string;
4713
+ };
4714
+ unit?: "milliseconds" | "seconds" | undefined;
4715
+ toleranceSeconds?: number | undefined;
4716
+ } | undefined;
4717
+ signingString: "raw" | {
4718
+ template: string;
4719
+ vars?: Record<string, {
4720
+ from: "header";
4721
+ name: string;
4722
+ } | {
4723
+ from: "signatureField";
4724
+ field: string;
4725
+ } | {
4726
+ from: "body";
4727
+ path: string;
4728
+ } | {
4729
+ from: "url";
4730
+ } | {
4731
+ from: "constant";
4732
+ value: string;
4733
+ }> | undefined;
4734
+ };
4735
+ secret?: {
4736
+ encoding?: "base64" | "utf8" | undefined;
4737
+ stripPrefix?: string | undefined;
4738
+ } | undefined;
4739
+ idempotencyField?: {
4740
+ from: "body" | "header";
4741
+ name: string;
4742
+ } | undefined;
4743
+ formPayload?: {
4744
+ field: string;
4745
+ } | undefined;
4746
+ } | {
4747
+ scheme: "shared-secret";
4748
+ placement: "basic" | "bearer" | "body" | "header";
4749
+ fieldName?: string | undefined;
4750
+ idempotencyField?: {
4751
+ from: "body" | "header";
4752
+ name: string;
4753
+ } | undefined;
4754
+ } | {
4755
+ scheme: "url-secret";
4756
+ placement: "path" | "query";
4757
+ paramName: string;
4758
+ idempotencyField?: {
4759
+ from: "body" | "header";
4760
+ name: string;
4761
+ } | undefined;
4762
+ } | {
4763
+ scheme: "asymmetric";
4764
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
4765
+ encoding: "base64" | "hex";
4766
+ signatureHeader: string;
4767
+ signature?: {
4768
+ itemSeparator?: string | undefined;
4769
+ fieldSeparator?: string | undefined;
4770
+ field?: string | undefined;
4771
+ trim?: boolean | undefined;
4772
+ } | undefined;
4773
+ timestamp?: {
4774
+ source: {
4775
+ from: "header";
4776
+ name: string;
4777
+ } | {
4778
+ from: "signatureField";
4779
+ field: string;
4780
+ } | {
4781
+ from: "body";
4782
+ path: string;
4783
+ } | {
4784
+ from: "url";
4785
+ } | {
4786
+ from: "constant";
4787
+ value: string;
4788
+ };
4789
+ unit?: "milliseconds" | "seconds" | undefined;
4790
+ toleranceSeconds?: number | undefined;
4791
+ } | undefined;
4792
+ signingString: "raw" | {
4793
+ template: string;
4794
+ vars?: Record<string, {
4795
+ from: "header";
4796
+ name: string;
4797
+ } | {
4798
+ from: "signatureField";
4799
+ field: string;
4800
+ } | {
4801
+ from: "body";
4802
+ path: string;
4803
+ } | {
4804
+ from: "url";
4805
+ } | {
4806
+ from: "constant";
4807
+ value: string;
4808
+ }> | undefined;
4809
+ };
4810
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
4811
+ idempotencyField?: {
4812
+ from: "body" | "header";
4813
+ name: string;
4814
+ } | undefined;
4815
+ };
4816
+ handshake?: {
4817
+ matchPath: string;
4818
+ matchValue: string;
4819
+ respondPath: string;
4820
+ } | undefined;
4821
+ } | {
4822
+ kind: "bundle";
4823
+ bundleUrl: string;
4824
+ hash: string;
4825
+ };
4826
+ routingTarget: {
4827
+ type: "task";
4828
+ taskId: string;
4829
+ } | {
4830
+ type: "session";
4831
+ taskIdentifier: string;
4832
+ keyTemplate: string;
4833
+ deliverAs: "action" | "message";
4834
+ actionType?: string | undefined;
4835
+ connectorId?: string | undefined;
4836
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
4837
+ startOn?: string | undefined;
4838
+ };
4839
+ secretProvisioning?: "either" | "integrator" | "provider" | undefined;
4840
+ filter?: string | undefined;
4841
+ metadata?: Record<string, unknown> | undefined;
4842
+ }[] | undefined;
910
4843
  queues?: {
911
4844
  name: string;
912
4845
  concurrencyLimit?: number | null | undefined;
@@ -983,6 +4916,14 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
983
4916
  * Automatically set when using `triggerAndWait` or `batchTriggerAndWait`
984
4917
  */
985
4918
  lockToVersion: z.ZodOptional<z.ZodString>;
4919
+ /**
4920
+ * The external deployment id the calling application belongs to — a commit SHA, a
4921
+ * CI run id, a release tag. Independent of `lockToVersion`: the SDK reports every
4922
+ * pinning signal it can see and the server decides which one governs, so a trigger
4923
+ * carrying both sends both. Resolution is environment-scoped, and an id naming a
4924
+ * deployment that has not landed yet parks the run rather than failing it.
4925
+ */
4926
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
986
4927
  queue: z.ZodOptional<z.ZodObject<{
987
4928
  name: z.ZodString;
988
4929
  concurrencyLimit: z.ZodOptional<z.ZodNumber>;
@@ -1050,6 +4991,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1050
4991
  parentRunId?: string | undefined;
1051
4992
  resumeParentOnCompletion?: boolean | undefined;
1052
4993
  lockToVersion?: string | undefined;
4994
+ externalDeploymentId?: string | undefined;
1053
4995
  queue?: {
1054
4996
  name: string;
1055
4997
  concurrencyLimit?: number | undefined;
@@ -1089,6 +5031,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1089
5031
  parentRunId?: string | undefined;
1090
5032
  resumeParentOnCompletion?: boolean | undefined;
1091
5033
  lockToVersion?: string | undefined;
5034
+ externalDeploymentId?: unknown;
1092
5035
  queue?: {
1093
5036
  name: string;
1094
5037
  concurrencyLimit?: number | undefined;
@@ -1132,6 +5075,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1132
5075
  parentRunId?: string | undefined;
1133
5076
  resumeParentOnCompletion?: boolean | undefined;
1134
5077
  lockToVersion?: string | undefined;
5078
+ externalDeploymentId?: string | undefined;
1135
5079
  queue?: {
1136
5080
  name: string;
1137
5081
  concurrencyLimit?: number | undefined;
@@ -1175,6 +5119,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1175
5119
  parentRunId?: string | undefined;
1176
5120
  resumeParentOnCompletion?: boolean | undefined;
1177
5121
  lockToVersion?: string | undefined;
5122
+ externalDeploymentId?: unknown;
1178
5123
  queue?: {
1179
5124
  name: string;
1180
5125
  concurrencyLimit?: number | undefined;
@@ -1218,6 +5163,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1218
5163
  parentRunId?: string | undefined;
1219
5164
  resumeParentOnCompletion?: boolean | undefined;
1220
5165
  lockToVersion?: string | undefined;
5166
+ externalDeploymentId?: string | undefined;
1221
5167
  queue?: {
1222
5168
  name: string;
1223
5169
  concurrencyLimit?: number | undefined;
@@ -1261,6 +5207,7 @@ export declare const TriggerTaskRequestBody: z.ZodEffects<z.ZodObject<{
1261
5207
  parentRunId?: string | undefined;
1262
5208
  resumeParentOnCompletion?: boolean | undefined;
1263
5209
  lockToVersion?: string | undefined;
5210
+ externalDeploymentId?: unknown;
1264
5211
  queue?: {
1265
5212
  name: string;
1266
5213
  concurrencyLimit?: number | undefined;
@@ -1336,6 +5283,14 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1336
5283
  * Automatically set when using `triggerAndWait` or `batchTriggerAndWait`
1337
5284
  */
1338
5285
  lockToVersion: z.ZodOptional<z.ZodString>;
5286
+ /**
5287
+ * The external deployment id the calling application belongs to — a commit SHA, a
5288
+ * CI run id, a release tag. Independent of `lockToVersion`: the SDK reports every
5289
+ * pinning signal it can see and the server decides which one governs, so a trigger
5290
+ * carrying both sends both. Resolution is environment-scoped, and an id naming a
5291
+ * deployment that has not landed yet parks the run rather than failing it.
5292
+ */
5293
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1339
5294
  queue: z.ZodOptional<z.ZodObject<{
1340
5295
  name: z.ZodString;
1341
5296
  concurrencyLimit: z.ZodOptional<z.ZodNumber>;
@@ -1403,6 +5358,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1403
5358
  parentRunId?: string | undefined;
1404
5359
  resumeParentOnCompletion?: boolean | undefined;
1405
5360
  lockToVersion?: string | undefined;
5361
+ externalDeploymentId?: string | undefined;
1406
5362
  queue?: {
1407
5363
  name: string;
1408
5364
  concurrencyLimit?: number | undefined;
@@ -1442,6 +5398,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1442
5398
  parentRunId?: string | undefined;
1443
5399
  resumeParentOnCompletion?: boolean | undefined;
1444
5400
  lockToVersion?: string | undefined;
5401
+ externalDeploymentId?: unknown;
1445
5402
  queue?: {
1446
5403
  name: string;
1447
5404
  concurrencyLimit?: number | undefined;
@@ -1485,6 +5442,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1485
5442
  parentRunId?: string | undefined;
1486
5443
  resumeParentOnCompletion?: boolean | undefined;
1487
5444
  lockToVersion?: string | undefined;
5445
+ externalDeploymentId?: string | undefined;
1488
5446
  queue?: {
1489
5447
  name: string;
1490
5448
  concurrencyLimit?: number | undefined;
@@ -1528,6 +5486,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1528
5486
  parentRunId?: string | undefined;
1529
5487
  resumeParentOnCompletion?: boolean | undefined;
1530
5488
  lockToVersion?: string | undefined;
5489
+ externalDeploymentId?: unknown;
1531
5490
  queue?: {
1532
5491
  name: string;
1533
5492
  concurrencyLimit?: number | undefined;
@@ -1571,6 +5530,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1571
5530
  parentRunId?: string | undefined;
1572
5531
  resumeParentOnCompletion?: boolean | undefined;
1573
5532
  lockToVersion?: string | undefined;
5533
+ externalDeploymentId?: string | undefined;
1574
5534
  queue?: {
1575
5535
  name: string;
1576
5536
  concurrencyLimit?: number | undefined;
@@ -1614,6 +5574,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1614
5574
  parentRunId?: string | undefined;
1615
5575
  resumeParentOnCompletion?: boolean | undefined;
1616
5576
  lockToVersion?: string | undefined;
5577
+ externalDeploymentId?: unknown;
1617
5578
  queue?: {
1618
5579
  name: string;
1619
5580
  concurrencyLimit?: number | undefined;
@@ -1660,6 +5621,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1660
5621
  parentRunId?: string | undefined;
1661
5622
  resumeParentOnCompletion?: boolean | undefined;
1662
5623
  lockToVersion?: string | undefined;
5624
+ externalDeploymentId?: string | undefined;
1663
5625
  queue?: {
1664
5626
  name: string;
1665
5627
  concurrencyLimit?: number | undefined;
@@ -1706,6 +5668,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1706
5668
  parentRunId?: string | undefined;
1707
5669
  resumeParentOnCompletion?: boolean | undefined;
1708
5670
  lockToVersion?: string | undefined;
5671
+ externalDeploymentId?: unknown;
1709
5672
  queue?: {
1710
5673
  name: string;
1711
5674
  concurrencyLimit?: number | undefined;
@@ -1763,6 +5726,8 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1763
5726
  scope: "attempt" | "global" | "run";
1764
5727
  }>>;
1765
5728
  lockToVersion: z.ZodOptional<z.ZodString>;
5729
+ /** See `TriggerTaskRequestBody.options.externalDeploymentId`. */
5730
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1766
5731
  machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1767
5732
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1768
5733
  maxDuration: z.ZodOptional<z.ZodNumber>;
@@ -1810,6 +5775,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1810
5775
  scope: "attempt" | "global" | "run";
1811
5776
  } | undefined;
1812
5777
  lockToVersion?: string | undefined;
5778
+ externalDeploymentId?: string | undefined;
1813
5779
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
1814
5780
  maxAttempts?: number | undefined;
1815
5781
  maxDuration?: number | undefined;
@@ -1842,6 +5808,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1842
5808
  scope: "attempt" | "global" | "run";
1843
5809
  } | undefined;
1844
5810
  lockToVersion?: string | undefined;
5811
+ externalDeploymentId?: unknown;
1845
5812
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
1846
5813
  maxAttempts?: number | undefined;
1847
5814
  maxDuration?: number | undefined;
@@ -1879,6 +5846,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1879
5846
  scope: "attempt" | "global" | "run";
1880
5847
  } | undefined;
1881
5848
  lockToVersion?: string | undefined;
5849
+ externalDeploymentId?: string | undefined;
1882
5850
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
1883
5851
  maxAttempts?: number | undefined;
1884
5852
  maxDuration?: number | undefined;
@@ -1916,6 +5884,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1916
5884
  scope: "attempt" | "global" | "run";
1917
5885
  } | undefined;
1918
5886
  lockToVersion?: string | undefined;
5887
+ externalDeploymentId?: unknown;
1919
5888
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
1920
5889
  maxAttempts?: number | undefined;
1921
5890
  maxDuration?: number | undefined;
@@ -1963,6 +5932,8 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1963
5932
  scope: "attempt" | "global" | "run";
1964
5933
  }>>;
1965
5934
  lockToVersion: z.ZodOptional<z.ZodString>;
5935
+ /** See `TriggerTaskRequestBody.options.externalDeploymentId`. */
5936
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1966
5937
  machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1967
5938
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1968
5939
  maxDuration: z.ZodOptional<z.ZodNumber>;
@@ -2010,6 +5981,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2010
5981
  scope: "attempt" | "global" | "run";
2011
5982
  } | undefined;
2012
5983
  lockToVersion?: string | undefined;
5984
+ externalDeploymentId?: string | undefined;
2013
5985
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2014
5986
  maxAttempts?: number | undefined;
2015
5987
  maxDuration?: number | undefined;
@@ -2042,6 +6014,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2042
6014
  scope: "attempt" | "global" | "run";
2043
6015
  } | undefined;
2044
6016
  lockToVersion?: string | undefined;
6017
+ externalDeploymentId?: unknown;
2045
6018
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2046
6019
  maxAttempts?: number | undefined;
2047
6020
  maxDuration?: number | undefined;
@@ -2079,6 +6052,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2079
6052
  scope: "attempt" | "global" | "run";
2080
6053
  } | undefined;
2081
6054
  lockToVersion?: string | undefined;
6055
+ externalDeploymentId?: string | undefined;
2082
6056
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2083
6057
  maxAttempts?: number | undefined;
2084
6058
  maxDuration?: number | undefined;
@@ -2116,6 +6090,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2116
6090
  scope: "attempt" | "global" | "run";
2117
6091
  } | undefined;
2118
6092
  lockToVersion?: string | undefined;
6093
+ externalDeploymentId?: unknown;
2119
6094
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2120
6095
  maxAttempts?: number | undefined;
2121
6096
  maxDuration?: number | undefined;
@@ -2167,6 +6142,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2167
6142
  scope: "attempt" | "global" | "run";
2168
6143
  } | undefined;
2169
6144
  lockToVersion?: string | undefined;
6145
+ externalDeploymentId?: string | undefined;
2170
6146
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2171
6147
  maxAttempts?: number | undefined;
2172
6148
  maxDuration?: number | undefined;
@@ -2209,6 +6185,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
2209
6185
  scope: "attempt" | "global" | "run";
2210
6186
  } | undefined;
2211
6187
  lockToVersion?: string | undefined;
6188
+ externalDeploymentId?: unknown;
2212
6189
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2213
6190
  maxAttempts?: number | undefined;
2214
6191
  maxDuration?: number | undefined;
@@ -2302,6 +6279,8 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2302
6279
  scope: "attempt" | "global" | "run";
2303
6280
  }>>;
2304
6281
  lockToVersion: z.ZodOptional<z.ZodString>;
6282
+ /** See `TriggerTaskRequestBody.options.externalDeploymentId`. */
6283
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
2305
6284
  machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2306
6285
  maxAttempts: z.ZodOptional<z.ZodNumber>;
2307
6286
  maxDuration: z.ZodOptional<z.ZodNumber>;
@@ -2349,6 +6328,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2349
6328
  scope: "attempt" | "global" | "run";
2350
6329
  } | undefined;
2351
6330
  lockToVersion?: string | undefined;
6331
+ externalDeploymentId?: string | undefined;
2352
6332
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2353
6333
  maxAttempts?: number | undefined;
2354
6334
  maxDuration?: number | undefined;
@@ -2381,6 +6361,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2381
6361
  scope: "attempt" | "global" | "run";
2382
6362
  } | undefined;
2383
6363
  lockToVersion?: string | undefined;
6364
+ externalDeploymentId?: unknown;
2384
6365
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2385
6366
  maxAttempts?: number | undefined;
2386
6367
  maxDuration?: number | undefined;
@@ -2418,6 +6399,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2418
6399
  scope: "attempt" | "global" | "run";
2419
6400
  } | undefined;
2420
6401
  lockToVersion?: string | undefined;
6402
+ externalDeploymentId?: string | undefined;
2421
6403
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2422
6404
  maxAttempts?: number | undefined;
2423
6405
  maxDuration?: number | undefined;
@@ -2455,6 +6437,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2455
6437
  scope: "attempt" | "global" | "run";
2456
6438
  } | undefined;
2457
6439
  lockToVersion?: string | undefined;
6440
+ externalDeploymentId?: unknown;
2458
6441
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2459
6442
  maxAttempts?: number | undefined;
2460
6443
  maxDuration?: number | undefined;
@@ -2504,6 +6487,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2504
6487
  scope: "attempt" | "global" | "run";
2505
6488
  } | undefined;
2506
6489
  lockToVersion?: string | undefined;
6490
+ externalDeploymentId?: string | undefined;
2507
6491
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2508
6492
  maxAttempts?: number | undefined;
2509
6493
  maxDuration?: number | undefined;
@@ -2545,6 +6529,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2545
6529
  scope: "attempt" | "global" | "run";
2546
6530
  } | undefined;
2547
6531
  lockToVersion?: string | undefined;
6532
+ externalDeploymentId?: unknown;
2548
6533
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2549
6534
  maxAttempts?: number | undefined;
2550
6535
  maxDuration?: number | undefined;
@@ -2690,6 +6675,8 @@ export declare const BatchItemNDJSON: z.ZodObject<{
2690
6675
  scope: "attempt" | "global" | "run";
2691
6676
  }>>;
2692
6677
  lockToVersion: z.ZodOptional<z.ZodString>;
6678
+ /** See `TriggerTaskRequestBody.options.externalDeploymentId`. */
6679
+ externalDeploymentId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
2693
6680
  machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2694
6681
  maxAttempts: z.ZodOptional<z.ZodNumber>;
2695
6682
  maxDuration: z.ZodOptional<z.ZodNumber>;
@@ -2737,6 +6724,7 @@ export declare const BatchItemNDJSON: z.ZodObject<{
2737
6724
  scope: "attempt" | "global" | "run";
2738
6725
  } | undefined;
2739
6726
  lockToVersion?: string | undefined;
6727
+ externalDeploymentId?: string | undefined;
2740
6728
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2741
6729
  maxAttempts?: number | undefined;
2742
6730
  maxDuration?: number | undefined;
@@ -2769,6 +6757,7 @@ export declare const BatchItemNDJSON: z.ZodObject<{
2769
6757
  scope: "attempt" | "global" | "run";
2770
6758
  } | undefined;
2771
6759
  lockToVersion?: string | undefined;
6760
+ externalDeploymentId?: unknown;
2772
6761
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2773
6762
  maxAttempts?: number | undefined;
2774
6763
  maxDuration?: number | undefined;
@@ -2806,6 +6795,7 @@ export declare const BatchItemNDJSON: z.ZodObject<{
2806
6795
  scope: "attempt" | "global" | "run";
2807
6796
  } | undefined;
2808
6797
  lockToVersion?: string | undefined;
6798
+ externalDeploymentId?: string | undefined;
2809
6799
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2810
6800
  maxAttempts?: number | undefined;
2811
6801
  maxDuration?: number | undefined;
@@ -2843,6 +6833,7 @@ export declare const BatchItemNDJSON: z.ZodObject<{
2843
6833
  scope: "attempt" | "global" | "run";
2844
6834
  } | undefined;
2845
6835
  lockToVersion?: string | undefined;
6836
+ externalDeploymentId?: unknown;
2846
6837
  machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined;
2847
6838
  maxAttempts?: number | undefined;
2848
6839
  maxDuration?: number | undefined;
@@ -3304,6 +7295,9 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
3304
7295
  version: z.ZodString;
3305
7296
  imageTag: z.ZodString;
3306
7297
  imagePlatform: z.ZodString;
7298
+ externalId: z.ZodOptional<z.ZodString>;
7299
+ outcome: z.ZodOptional<z.ZodEnum<["created", "existing"]>>;
7300
+ isPromoted: z.ZodOptional<z.ZodBoolean>;
3307
7301
  externalBuildData: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3308
7302
  buildId: z.ZodString;
3309
7303
  buildToken: z.ZodString;
@@ -3317,6 +7311,16 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
3317
7311
  buildToken: string;
3318
7312
  projectId: string;
3319
7313
  }>>>;
7314
+ canceledDeployments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7315
+ version: z.ZodString;
7316
+ shortCode: z.ZodString;
7317
+ }, "strip", z.ZodTypeAny, {
7318
+ version: string;
7319
+ shortCode: string;
7320
+ }, {
7321
+ version: string;
7322
+ shortCode: string;
7323
+ }>, "many">>;
3320
7324
  eventStream: z.ZodOptional<z.ZodObject<{
3321
7325
  s2: z.ZodObject<{
3322
7326
  basin: z.ZodString;
@@ -3351,11 +7355,18 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
3351
7355
  version: string;
3352
7356
  imageTag: string;
3353
7357
  imagePlatform: string;
7358
+ externalId?: string | undefined;
7359
+ outcome?: "created" | "existing" | undefined;
7360
+ isPromoted?: boolean | undefined;
3354
7361
  externalBuildData?: {
3355
7362
  buildId: string;
3356
7363
  buildToken: string;
3357
7364
  projectId: string;
3358
7365
  } | null | undefined;
7366
+ canceledDeployments?: {
7367
+ version: string;
7368
+ shortCode: string;
7369
+ }[] | undefined;
3359
7370
  eventStream?: {
3360
7371
  s2: {
3361
7372
  basin: string;
@@ -3370,11 +7381,18 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
3370
7381
  version: string;
3371
7382
  imageTag: string;
3372
7383
  imagePlatform: string;
7384
+ externalId?: string | undefined;
7385
+ outcome?: "created" | "existing" | undefined;
7386
+ isPromoted?: boolean | undefined;
3373
7387
  externalBuildData?: {
3374
7388
  buildId: string;
3375
7389
  buildToken: string;
3376
7390
  projectId: string;
3377
7391
  } | null | undefined;
7392
+ canceledDeployments?: {
7393
+ version: string;
7394
+ shortCode: string;
7395
+ }[] | undefined;
3378
7396
  eventStream?: {
3379
7397
  s2: {
3380
7398
  basin: string;
@@ -3438,6 +7456,8 @@ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
3438
7456
  isLocalBuild: z.ZodOptional<z.ZodBoolean>;
3439
7457
  triggeredVia: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["cli:manual", "cli:ci_other", "cli:github_actions", "cli:gitlab_ci", "cli:circleci", "cli:jenkins", "cli:azure_pipelines", "cli:bitbucket_pipelines", "cli:travis_ci", "cli:buildkite", "git_integration:github", "dashboard"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
3440
7458
  buildId: z.ZodOptional<z.ZodString>;
7459
+ externalId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7460
+ force: z.ZodOptional<z.ZodBoolean>;
3441
7461
  }, "strip", z.ZodTypeAny, {
3442
7462
  contentHash: string;
3443
7463
  userId?: string | undefined;
@@ -3463,6 +7483,8 @@ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
3463
7483
  isLocalBuild?: boolean | undefined;
3464
7484
  triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
3465
7485
  buildId?: string | undefined;
7486
+ externalId?: string | undefined;
7487
+ force?: boolean | undefined;
3466
7488
  }, {
3467
7489
  contentHash: string;
3468
7490
  userId?: string | undefined;
@@ -3488,6 +7510,8 @@ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
3488
7510
  isLocalBuild?: boolean | undefined;
3489
7511
  triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
3490
7512
  buildId?: string | undefined;
7513
+ externalId?: unknown;
7514
+ force?: boolean | undefined;
3491
7515
  }>;
3492
7516
  type BaseOutput = z.output<typeof InitializeDeploymentRequestBodyBase>;
3493
7517
  type NativeBuildOutput = BaseOutput & {
@@ -3504,7 +7528,7 @@ type NonNativeBuildOutput = BaseOutput & {
3504
7528
  configFilePath?: never;
3505
7529
  skipEnqueue?: never;
3506
7530
  };
3507
- export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
7531
+ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3508
7532
  contentHash: z.ZodString;
3509
7533
  userId: z.ZodOptional<z.ZodString>;
3510
7534
  /** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
@@ -3558,6 +7582,8 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
3558
7582
  isLocalBuild: z.ZodOptional<z.ZodBoolean>;
3559
7583
  triggeredVia: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["cli:manual", "cli:ci_other", "cli:github_actions", "cli:gitlab_ci", "cli:circleci", "cli:jenkins", "cli:azure_pipelines", "cli:bitbucket_pipelines", "cli:travis_ci", "cli:buildkite", "git_integration:github", "dashboard"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
3560
7584
  buildId: z.ZodOptional<z.ZodString>;
7585
+ externalId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7586
+ force: z.ZodOptional<z.ZodBoolean>;
3561
7587
  } & {
3562
7588
  isNativeBuild: z.ZodDefault<z.ZodBoolean>;
3563
7589
  skipPromotion: z.ZodOptional<z.ZodBoolean>;
@@ -3589,6 +7615,72 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
3589
7615
  isLocalBuild?: boolean | undefined;
3590
7616
  triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
3591
7617
  buildId?: string | undefined;
7618
+ externalId?: string | undefined;
7619
+ force?: boolean | undefined;
7620
+ isNativeBuild: boolean;
7621
+ skipPromotion?: boolean | undefined;
7622
+ artifactKey?: string | undefined;
7623
+ configFilePath?: string | undefined;
7624
+ skipEnqueue: boolean;
7625
+ }, {
7626
+ contentHash: string;
7627
+ userId?: string | undefined;
7628
+ selfHosted?: boolean | undefined;
7629
+ gitMeta?: {
7630
+ provider?: string | undefined;
7631
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
7632
+ ghUsername?: string | undefined;
7633
+ ghUserAvatarUrl?: string | undefined;
7634
+ commitAuthorName?: string | undefined;
7635
+ commitMessage?: string | undefined;
7636
+ commitRef?: string | undefined;
7637
+ commitSha?: string | undefined;
7638
+ dirty?: boolean | undefined;
7639
+ remoteUrl?: string | undefined;
7640
+ pullRequestNumber?: number | undefined;
7641
+ pullRequestTitle?: string | undefined;
7642
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
7643
+ } | undefined;
7644
+ type?: "MANAGED" | "UNMANAGED" | "V1" | undefined;
7645
+ runtime?: string | undefined;
7646
+ initialStatus?: "BUILDING" | "PENDING" | undefined;
7647
+ isLocalBuild?: boolean | undefined;
7648
+ triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
7649
+ buildId?: string | undefined;
7650
+ externalId?: unknown;
7651
+ force?: boolean | undefined;
7652
+ isNativeBuild?: boolean | undefined;
7653
+ skipPromotion?: boolean | undefined;
7654
+ artifactKey?: string | undefined;
7655
+ configFilePath?: string | undefined;
7656
+ skipEnqueue?: boolean | undefined;
7657
+ }>, {
7658
+ contentHash: string;
7659
+ userId?: string | undefined;
7660
+ selfHosted?: boolean | undefined;
7661
+ gitMeta?: {
7662
+ provider?: string | undefined;
7663
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
7664
+ ghUsername?: string | undefined;
7665
+ ghUserAvatarUrl?: string | undefined;
7666
+ commitAuthorName?: string | undefined;
7667
+ commitMessage?: string | undefined;
7668
+ commitRef?: string | undefined;
7669
+ commitSha?: string | undefined;
7670
+ dirty?: boolean | undefined;
7671
+ remoteUrl?: string | undefined;
7672
+ pullRequestNumber?: number | undefined;
7673
+ pullRequestTitle?: string | undefined;
7674
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
7675
+ } | undefined;
7676
+ type?: "MANAGED" | "UNMANAGED" | "V1" | undefined;
7677
+ runtime?: string | undefined;
7678
+ initialStatus?: "BUILDING" | "PENDING" | undefined;
7679
+ isLocalBuild?: boolean | undefined;
7680
+ triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
7681
+ buildId?: string | undefined;
7682
+ externalId?: string | undefined;
7683
+ force?: boolean | undefined;
3592
7684
  isNativeBuild: boolean;
3593
7685
  skipPromotion?: boolean | undefined;
3594
7686
  artifactKey?: string | undefined;
@@ -3619,6 +7711,8 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
3619
7711
  isLocalBuild?: boolean | undefined;
3620
7712
  triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
3621
7713
  buildId?: string | undefined;
7714
+ externalId?: unknown;
7715
+ force?: boolean | undefined;
3622
7716
  isNativeBuild?: boolean | undefined;
3623
7717
  skipPromotion?: boolean | undefined;
3624
7718
  artifactKey?: string | undefined;
@@ -3649,6 +7743,8 @@ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
3649
7743
  isLocalBuild?: boolean | undefined;
3650
7744
  triggeredVia?: "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:buildkite" | "cli:ci_other" | "cli:circleci" | "cli:github_actions" | "cli:gitlab_ci" | "cli:jenkins" | "cli:manual" | "cli:travis_ci" | "dashboard" | "git_integration:github" | (string & {}) | undefined;
3651
7745
  buildId?: string | undefined;
7746
+ externalId?: unknown;
7747
+ force?: boolean | undefined;
3652
7748
  isNativeBuild?: boolean | undefined;
3653
7749
  skipPromotion?: boolean | undefined;
3654
7750
  artifactKey?: string | undefined;
@@ -3794,6 +7890,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
3794
7890
  stack?: string | undefined;
3795
7891
  stderr?: string | undefined;
3796
7892
  }>>>;
7893
+ canceledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3797
7894
  worker: z.ZodOptional<z.ZodObject<{
3798
7895
  id: z.ZodString;
3799
7896
  version: z.ZodString;
@@ -3871,6 +7968,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
3871
7968
  stack?: string | undefined;
3872
7969
  stderr?: string | undefined;
3873
7970
  } | null | undefined;
7971
+ canceledReason?: string | null | undefined;
3874
7972
  worker?: {
3875
7973
  id: string;
3876
7974
  version: string;
@@ -3908,6 +8006,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
3908
8006
  stack?: string | undefined;
3909
8007
  stderr?: string | undefined;
3910
8008
  } | null | undefined;
8009
+ canceledReason?: string | null | undefined;
3911
8010
  worker?: {
3912
8011
  id: string;
3913
8012
  version: string;
@@ -3965,6 +8064,7 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
3965
8064
  stack?: string | undefined;
3966
8065
  stderr?: string | undefined;
3967
8066
  }>>>;
8067
+ canceledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3968
8068
  worker: z.ZodOptional<z.ZodObject<{
3969
8069
  id: z.ZodString;
3970
8070
  version: z.ZodString;
@@ -4042,6 +8142,7 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
4042
8142
  stack?: string | undefined;
4043
8143
  stderr?: string | undefined;
4044
8144
  } | null | undefined;
8145
+ canceledReason?: string | null | undefined;
4045
8146
  integrationDeployments?: {
4046
8147
  id: string;
4047
8148
  integrationName: string;
@@ -4069,6 +8170,7 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
4069
8170
  stack?: string | undefined;
4070
8171
  stderr?: string | undefined;
4071
8172
  } | null | undefined;
8173
+ canceledReason?: string | null | undefined;
4072
8174
  integrationDeployments?: {
4073
8175
  id: string;
4074
8176
  integrationName: string;
@@ -4561,18 +8663,21 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4561
8663
  rootTriggerSource: z.ZodUnion<[z.ZodEnum<["sdk", "api", "dashboard", "cli", "mcp", "schedule"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
4562
8664
  rootScheduleId: z.ZodOptional<z.ZodString>;
4563
8665
  taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
8666
+ externalDeploymentId: z.ZodOptional<z.ZodString>;
4564
8667
  }, "strip", z.ZodTypeAny, {
4565
8668
  triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4566
8669
  triggerAction: "replay" | "test" | "trigger" | (string & {});
4567
8670
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4568
8671
  rootScheduleId?: string | undefined;
4569
8672
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8673
+ externalDeploymentId?: string | undefined;
4570
8674
  }, {
4571
8675
  triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4572
8676
  triggerAction: "replay" | "test" | "trigger" | (string & {});
4573
8677
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4574
8678
  rootScheduleId?: string | undefined;
4575
8679
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8680
+ externalDeploymentId?: string | undefined;
4576
8681
  }>>;
4577
8682
  }, "strip", z.ZodTypeAny, {
4578
8683
  id: string;
@@ -4594,6 +8699,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4594
8699
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4595
8700
  rootScheduleId?: string | undefined;
4596
8701
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8702
+ externalDeploymentId?: string | undefined;
4597
8703
  } | undefined;
4598
8704
  }, {
4599
8705
  id: string;
@@ -4615,6 +8721,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4615
8721
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4616
8722
  rootScheduleId?: string | undefined;
4617
8723
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8724
+ externalDeploymentId?: string | undefined;
4618
8725
  } | undefined;
4619
8726
  }>;
4620
8727
  environment: z.ZodObject<{
@@ -4728,6 +8835,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4728
8835
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4729
8836
  rootScheduleId?: string | undefined;
4730
8837
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8838
+ externalDeploymentId?: string | undefined;
4731
8839
  } | undefined;
4732
8840
  };
4733
8841
  environment: {
@@ -4819,6 +8927,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4819
8927
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4820
8928
  rootScheduleId?: string | undefined;
4821
8929
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
8930
+ externalDeploymentId?: string | undefined;
4822
8931
  } | undefined;
4823
8932
  };
4824
8933
  environment: {
@@ -4912,6 +9021,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4912
9021
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4913
9022
  rootScheduleId?: string | undefined;
4914
9023
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
9024
+ externalDeploymentId?: string | undefined;
4915
9025
  } | undefined;
4916
9026
  };
4917
9027
  environment: {
@@ -5005,6 +9115,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
5005
9115
  rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
5006
9116
  rootScheduleId?: string | undefined;
5007
9117
  taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
9118
+ externalDeploymentId?: string | undefined;
5008
9119
  } | undefined;
5009
9120
  };
5010
9121
  environment: {
@@ -5168,7 +9279,7 @@ export declare const CreateScheduleOptions: z.ZodObject<{
5168
9279
  *
5169
9280
  * @example "30m", "2h", "24h", "30%", "100%"
5170
9281
  */
5171
- window: z.ZodOptional<z.ZodString>;
9282
+ window: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5172
9283
  }, "strip", z.ZodTypeAny, {
5173
9284
  task: string;
5174
9285
  cron: string;
@@ -5231,7 +9342,7 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
5231
9342
  *
5232
9343
  * @example "30m", "2h", "24h", "30%", "100%"
5233
9344
  */
5234
- window: z.ZodOptional<z.ZodString>;
9345
+ window: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5235
9346
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
5236
9347
  task: string;
5237
9348
  cron: string;
@@ -5281,8 +9392,11 @@ export declare const ScheduleObject: z.ZodObject<{
5281
9392
  description: string;
5282
9393
  }>;
5283
9394
  timezone: z.ZodString;
5284
- window: z.ZodOptional<z.ZodString>;
9395
+ window: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
9396
+ /** The next nominal CRON time. */
5285
9397
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9398
+ /** The stable assigned time for the next nominal CRON time. */
9399
+ nextRunEffectiveAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5286
9400
  environments: z.ZodArray<z.ZodObject<{
5287
9401
  id: z.ZodString;
5288
9402
  type: z.ZodString;
@@ -5311,6 +9425,7 @@ export declare const ScheduleObject: z.ZodObject<{
5311
9425
  timezone: string;
5312
9426
  window?: string | undefined;
5313
9427
  nextRun?: Date | null | undefined;
9428
+ nextRunEffectiveAt?: Date | null | undefined;
5314
9429
  environments: {
5315
9430
  id: string;
5316
9431
  type: string;
@@ -5331,6 +9446,7 @@ export declare const ScheduleObject: z.ZodObject<{
5331
9446
  timezone: string;
5332
9447
  window?: string | undefined;
5333
9448
  nextRun?: Date | null | undefined;
9449
+ nextRunEffectiveAt?: Date | null | undefined;
5334
9450
  environments: {
5335
9451
  id: string;
5336
9452
  type: string;
@@ -5368,8 +9484,11 @@ export declare const ListSchedulesResult: z.ZodObject<{
5368
9484
  description: string;
5369
9485
  }>;
5370
9486
  timezone: z.ZodString;
5371
- window: z.ZodOptional<z.ZodString>;
9487
+ window: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
9488
+ /** The next nominal CRON time. */
5372
9489
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9490
+ /** The stable assigned time for the next nominal CRON time. */
9491
+ nextRunEffectiveAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5373
9492
  environments: z.ZodArray<z.ZodObject<{
5374
9493
  id: z.ZodString;
5375
9494
  type: z.ZodString;
@@ -5398,6 +9517,7 @@ export declare const ListSchedulesResult: z.ZodObject<{
5398
9517
  timezone: string;
5399
9518
  window?: string | undefined;
5400
9519
  nextRun?: Date | null | undefined;
9520
+ nextRunEffectiveAt?: Date | null | undefined;
5401
9521
  environments: {
5402
9522
  id: string;
5403
9523
  type: string;
@@ -5418,6 +9538,7 @@ export declare const ListSchedulesResult: z.ZodObject<{
5418
9538
  timezone: string;
5419
9539
  window?: string | undefined;
5420
9540
  nextRun?: Date | null | undefined;
9541
+ nextRunEffectiveAt?: Date | null | undefined;
5421
9542
  environments: {
5422
9543
  id: string;
5423
9544
  type: string;
@@ -5453,6 +9574,7 @@ export declare const ListSchedulesResult: z.ZodObject<{
5453
9574
  timezone: string;
5454
9575
  window?: string | undefined;
5455
9576
  nextRun?: Date | null | undefined;
9577
+ nextRunEffectiveAt?: Date | null | undefined;
5456
9578
  environments: {
5457
9579
  id: string;
5458
9580
  type: string;
@@ -5480,6 +9602,7 @@ export declare const ListSchedulesResult: z.ZodObject<{
5480
9602
  timezone: string;
5481
9603
  window?: string | undefined;
5482
9604
  nextRun?: Date | null | undefined;
9605
+ nextRunEffectiveAt?: Date | null | undefined;
5483
9606
  environments: {
5484
9607
  id: string;
5485
9608
  type: string;