@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
@@ -0,0 +1,3710 @@
1
+ import { z } from "zod";
2
+ export declare const WebhookSecretProvisioning: z.ZodEnum<["provider", "integrator", "either"]>;
3
+ export type WebhookSecretProvisioning = z.infer<typeof WebhookSecretProvisioning>;
4
+ export declare const WebhookIdempotencyField: z.ZodObject<{
5
+ from: z.ZodEnum<["header", "body"]>;
6
+ name: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ from: "body" | "header";
9
+ name: string;
10
+ }, {
11
+ from: "body" | "header";
12
+ name: string;
13
+ }>;
14
+ export type WebhookIdempotencyField = z.infer<typeof WebhookIdempotencyField>;
15
+ export declare const WebhookValueSource: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
16
+ from: z.ZodLiteral<"header">;
17
+ name: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ from: "header";
20
+ name: string;
21
+ }, {
22
+ from: "header";
23
+ name: string;
24
+ }>, z.ZodObject<{
25
+ from: z.ZodLiteral<"signatureField">;
26
+ field: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ from: "signatureField";
29
+ field: string;
30
+ }, {
31
+ from: "signatureField";
32
+ field: string;
33
+ }>, z.ZodObject<{
34
+ from: z.ZodLiteral<"body">;
35
+ path: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ from: "body";
38
+ path: string;
39
+ }, {
40
+ from: "body";
41
+ path: string;
42
+ }>, z.ZodObject<{
43
+ from: z.ZodLiteral<"url">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ from: "url";
46
+ }, {
47
+ from: "url";
48
+ }>, z.ZodObject<{
49
+ from: z.ZodLiteral<"constant">;
50
+ value: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ from: "constant";
53
+ value: string;
54
+ }, {
55
+ from: "constant";
56
+ value: string;
57
+ }>]>;
58
+ export type WebhookValueSource = z.infer<typeof WebhookValueSource>;
59
+ export declare const WebhookSignatureExtraction: z.ZodObject<{
60
+ itemSeparator: z.ZodOptional<z.ZodString>;
61
+ fieldSeparator: z.ZodOptional<z.ZodString>;
62
+ field: z.ZodOptional<z.ZodString>;
63
+ trim: z.ZodOptional<z.ZodBoolean>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ itemSeparator?: string | undefined;
66
+ fieldSeparator?: string | undefined;
67
+ field?: string | undefined;
68
+ trim?: boolean | undefined;
69
+ }, {
70
+ itemSeparator?: string | undefined;
71
+ fieldSeparator?: string | undefined;
72
+ field?: string | undefined;
73
+ trim?: boolean | undefined;
74
+ }>;
75
+ export type WebhookSignatureExtraction = z.infer<typeof WebhookSignatureExtraction>;
76
+ export declare const WebhookTimestampConfig: z.ZodObject<{
77
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
78
+ from: z.ZodLiteral<"header">;
79
+ name: z.ZodString;
80
+ }, "strip", z.ZodTypeAny, {
81
+ from: "header";
82
+ name: string;
83
+ }, {
84
+ from: "header";
85
+ name: string;
86
+ }>, z.ZodObject<{
87
+ from: z.ZodLiteral<"signatureField">;
88
+ field: z.ZodString;
89
+ }, "strip", z.ZodTypeAny, {
90
+ from: "signatureField";
91
+ field: string;
92
+ }, {
93
+ from: "signatureField";
94
+ field: string;
95
+ }>, z.ZodObject<{
96
+ from: z.ZodLiteral<"body">;
97
+ path: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ from: "body";
100
+ path: string;
101
+ }, {
102
+ from: "body";
103
+ path: string;
104
+ }>, z.ZodObject<{
105
+ from: z.ZodLiteral<"url">;
106
+ }, "strip", z.ZodTypeAny, {
107
+ from: "url";
108
+ }, {
109
+ from: "url";
110
+ }>, z.ZodObject<{
111
+ from: z.ZodLiteral<"constant">;
112
+ value: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ from: "constant";
115
+ value: string;
116
+ }, {
117
+ from: "constant";
118
+ value: string;
119
+ }>]>;
120
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
121
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ source: {
124
+ from: "header";
125
+ name: string;
126
+ } | {
127
+ from: "signatureField";
128
+ field: string;
129
+ } | {
130
+ from: "body";
131
+ path: string;
132
+ } | {
133
+ from: "url";
134
+ } | {
135
+ from: "constant";
136
+ value: string;
137
+ };
138
+ unit?: "milliseconds" | "seconds" | undefined;
139
+ toleranceSeconds?: number | undefined;
140
+ }, {
141
+ source: {
142
+ from: "header";
143
+ name: string;
144
+ } | {
145
+ from: "signatureField";
146
+ field: string;
147
+ } | {
148
+ from: "body";
149
+ path: string;
150
+ } | {
151
+ from: "url";
152
+ } | {
153
+ from: "constant";
154
+ value: string;
155
+ };
156
+ unit?: "milliseconds" | "seconds" | undefined;
157
+ toleranceSeconds?: number | undefined;
158
+ }>;
159
+ export type WebhookTimestampConfig = z.infer<typeof WebhookTimestampConfig>;
160
+ export declare const WebhookSecretTransform: z.ZodObject<{
161
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
162
+ stripPrefix: z.ZodOptional<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ encoding?: "base64" | "utf8" | undefined;
165
+ stripPrefix?: string | undefined;
166
+ }, {
167
+ encoding?: "base64" | "utf8" | undefined;
168
+ stripPrefix?: string | undefined;
169
+ }>;
170
+ export type WebhookSecretTransform = z.infer<typeof WebhookSecretTransform>;
171
+ export declare const WebhookSigningString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
172
+ template: z.ZodString;
173
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
174
+ from: z.ZodLiteral<"header">;
175
+ name: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ from: "header";
178
+ name: string;
179
+ }, {
180
+ from: "header";
181
+ name: string;
182
+ }>, z.ZodObject<{
183
+ from: z.ZodLiteral<"signatureField">;
184
+ field: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ from: "signatureField";
187
+ field: string;
188
+ }, {
189
+ from: "signatureField";
190
+ field: string;
191
+ }>, z.ZodObject<{
192
+ from: z.ZodLiteral<"body">;
193
+ path: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ from: "body";
196
+ path: string;
197
+ }, {
198
+ from: "body";
199
+ path: string;
200
+ }>, z.ZodObject<{
201
+ from: z.ZodLiteral<"url">;
202
+ }, "strip", z.ZodTypeAny, {
203
+ from: "url";
204
+ }, {
205
+ from: "url";
206
+ }>, z.ZodObject<{
207
+ from: z.ZodLiteral<"constant">;
208
+ value: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ from: "constant";
211
+ value: string;
212
+ }, {
213
+ from: "constant";
214
+ value: string;
215
+ }>]>>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ template: string;
218
+ vars?: Record<string, {
219
+ from: "header";
220
+ name: string;
221
+ } | {
222
+ from: "signatureField";
223
+ field: string;
224
+ } | {
225
+ from: "body";
226
+ path: string;
227
+ } | {
228
+ from: "url";
229
+ } | {
230
+ from: "constant";
231
+ value: string;
232
+ }> | undefined;
233
+ }, {
234
+ template: string;
235
+ vars?: Record<string, {
236
+ from: "header";
237
+ name: string;
238
+ } | {
239
+ from: "signatureField";
240
+ field: string;
241
+ } | {
242
+ from: "body";
243
+ path: string;
244
+ } | {
245
+ from: "url";
246
+ } | {
247
+ from: "constant";
248
+ value: string;
249
+ }> | undefined;
250
+ }>]>;
251
+ export type WebhookSigningString = z.infer<typeof WebhookSigningString>;
252
+ /**
253
+ * Body-parsing hint. Some providers send an event as JSON but a SECOND kind of callback (e.g. Slack
254
+ * interactivity) as `application/x-www-form-urlencoded` with the JSON in a single field (Slack: `payload`).
255
+ * When JSON parsing fails, the engine form-decodes and JSON-parses `field`'s value. The signature is over
256
+ * the raw body either way, so verification is unaffected. Generic (a field name), no provider code in the engine.
257
+ */
258
+ export declare const WebhookFormPayload: z.ZodObject<{
259
+ field: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ field: string;
262
+ }, {
263
+ field: string;
264
+ }>;
265
+ export type WebhookFormPayload = z.infer<typeof WebhookFormPayload>;
266
+ export declare const WebhookHmacConfig: z.ZodObject<{
267
+ scheme: z.ZodLiteral<"hmac">;
268
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
269
+ encoding: z.ZodEnum<["hex", "base64"]>;
270
+ signatureHeader: z.ZodString;
271
+ signature: z.ZodOptional<z.ZodObject<{
272
+ itemSeparator: z.ZodOptional<z.ZodString>;
273
+ fieldSeparator: z.ZodOptional<z.ZodString>;
274
+ field: z.ZodOptional<z.ZodString>;
275
+ trim: z.ZodOptional<z.ZodBoolean>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ itemSeparator?: string | undefined;
278
+ fieldSeparator?: string | undefined;
279
+ field?: string | undefined;
280
+ trim?: boolean | undefined;
281
+ }, {
282
+ itemSeparator?: string | undefined;
283
+ fieldSeparator?: string | undefined;
284
+ field?: string | undefined;
285
+ trim?: boolean | undefined;
286
+ }>>;
287
+ timestamp: z.ZodOptional<z.ZodObject<{
288
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
289
+ from: z.ZodLiteral<"header">;
290
+ name: z.ZodString;
291
+ }, "strip", z.ZodTypeAny, {
292
+ from: "header";
293
+ name: string;
294
+ }, {
295
+ from: "header";
296
+ name: string;
297
+ }>, z.ZodObject<{
298
+ from: z.ZodLiteral<"signatureField">;
299
+ field: z.ZodString;
300
+ }, "strip", z.ZodTypeAny, {
301
+ from: "signatureField";
302
+ field: string;
303
+ }, {
304
+ from: "signatureField";
305
+ field: string;
306
+ }>, z.ZodObject<{
307
+ from: z.ZodLiteral<"body">;
308
+ path: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ from: "body";
311
+ path: string;
312
+ }, {
313
+ from: "body";
314
+ path: string;
315
+ }>, z.ZodObject<{
316
+ from: z.ZodLiteral<"url">;
317
+ }, "strip", z.ZodTypeAny, {
318
+ from: "url";
319
+ }, {
320
+ from: "url";
321
+ }>, z.ZodObject<{
322
+ from: z.ZodLiteral<"constant">;
323
+ value: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ from: "constant";
326
+ value: string;
327
+ }, {
328
+ from: "constant";
329
+ value: string;
330
+ }>]>;
331
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
332
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ source: {
335
+ from: "header";
336
+ name: string;
337
+ } | {
338
+ from: "signatureField";
339
+ field: string;
340
+ } | {
341
+ from: "body";
342
+ path: string;
343
+ } | {
344
+ from: "url";
345
+ } | {
346
+ from: "constant";
347
+ value: string;
348
+ };
349
+ unit?: "milliseconds" | "seconds" | undefined;
350
+ toleranceSeconds?: number | undefined;
351
+ }, {
352
+ source: {
353
+ from: "header";
354
+ name: string;
355
+ } | {
356
+ from: "signatureField";
357
+ field: string;
358
+ } | {
359
+ from: "body";
360
+ path: string;
361
+ } | {
362
+ from: "url";
363
+ } | {
364
+ from: "constant";
365
+ value: string;
366
+ };
367
+ unit?: "milliseconds" | "seconds" | undefined;
368
+ toleranceSeconds?: number | undefined;
369
+ }>>;
370
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
371
+ template: z.ZodString;
372
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
373
+ from: z.ZodLiteral<"header">;
374
+ name: z.ZodString;
375
+ }, "strip", z.ZodTypeAny, {
376
+ from: "header";
377
+ name: string;
378
+ }, {
379
+ from: "header";
380
+ name: string;
381
+ }>, z.ZodObject<{
382
+ from: z.ZodLiteral<"signatureField">;
383
+ field: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ from: "signatureField";
386
+ field: string;
387
+ }, {
388
+ from: "signatureField";
389
+ field: string;
390
+ }>, z.ZodObject<{
391
+ from: z.ZodLiteral<"body">;
392
+ path: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ from: "body";
395
+ path: string;
396
+ }, {
397
+ from: "body";
398
+ path: string;
399
+ }>, z.ZodObject<{
400
+ from: z.ZodLiteral<"url">;
401
+ }, "strip", z.ZodTypeAny, {
402
+ from: "url";
403
+ }, {
404
+ from: "url";
405
+ }>, z.ZodObject<{
406
+ from: z.ZodLiteral<"constant">;
407
+ value: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ from: "constant";
410
+ value: string;
411
+ }, {
412
+ from: "constant";
413
+ value: string;
414
+ }>]>>>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ template: string;
417
+ vars?: Record<string, {
418
+ from: "header";
419
+ name: string;
420
+ } | {
421
+ from: "signatureField";
422
+ field: string;
423
+ } | {
424
+ from: "body";
425
+ path: string;
426
+ } | {
427
+ from: "url";
428
+ } | {
429
+ from: "constant";
430
+ value: string;
431
+ }> | undefined;
432
+ }, {
433
+ template: string;
434
+ vars?: Record<string, {
435
+ from: "header";
436
+ name: string;
437
+ } | {
438
+ from: "signatureField";
439
+ field: string;
440
+ } | {
441
+ from: "body";
442
+ path: string;
443
+ } | {
444
+ from: "url";
445
+ } | {
446
+ from: "constant";
447
+ value: string;
448
+ }> | undefined;
449
+ }>]>;
450
+ secret: z.ZodOptional<z.ZodObject<{
451
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
452
+ stripPrefix: z.ZodOptional<z.ZodString>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ encoding?: "base64" | "utf8" | undefined;
455
+ stripPrefix?: string | undefined;
456
+ }, {
457
+ encoding?: "base64" | "utf8" | undefined;
458
+ stripPrefix?: string | undefined;
459
+ }>>;
460
+ idempotencyField: z.ZodOptional<z.ZodObject<{
461
+ from: z.ZodEnum<["header", "body"]>;
462
+ name: z.ZodString;
463
+ }, "strip", z.ZodTypeAny, {
464
+ from: "body" | "header";
465
+ name: string;
466
+ }, {
467
+ from: "body" | "header";
468
+ name: string;
469
+ }>>;
470
+ formPayload: z.ZodOptional<z.ZodObject<{
471
+ field: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ field: string;
474
+ }, {
475
+ field: string;
476
+ }>>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ scheme: "hmac";
479
+ algorithm: "sha1" | "sha256";
480
+ encoding: "base64" | "hex";
481
+ signatureHeader: string;
482
+ signature?: {
483
+ itemSeparator?: string | undefined;
484
+ fieldSeparator?: string | undefined;
485
+ field?: string | undefined;
486
+ trim?: boolean | undefined;
487
+ } | undefined;
488
+ timestamp?: {
489
+ source: {
490
+ from: "header";
491
+ name: string;
492
+ } | {
493
+ from: "signatureField";
494
+ field: string;
495
+ } | {
496
+ from: "body";
497
+ path: string;
498
+ } | {
499
+ from: "url";
500
+ } | {
501
+ from: "constant";
502
+ value: string;
503
+ };
504
+ unit?: "milliseconds" | "seconds" | undefined;
505
+ toleranceSeconds?: number | undefined;
506
+ } | undefined;
507
+ signingString: "raw" | {
508
+ template: string;
509
+ vars?: Record<string, {
510
+ from: "header";
511
+ name: string;
512
+ } | {
513
+ from: "signatureField";
514
+ field: string;
515
+ } | {
516
+ from: "body";
517
+ path: string;
518
+ } | {
519
+ from: "url";
520
+ } | {
521
+ from: "constant";
522
+ value: string;
523
+ }> | undefined;
524
+ };
525
+ secret?: {
526
+ encoding?: "base64" | "utf8" | undefined;
527
+ stripPrefix?: string | undefined;
528
+ } | undefined;
529
+ idempotencyField?: {
530
+ from: "body" | "header";
531
+ name: string;
532
+ } | undefined;
533
+ formPayload?: {
534
+ field: string;
535
+ } | undefined;
536
+ }, {
537
+ scheme: "hmac";
538
+ algorithm: "sha1" | "sha256";
539
+ encoding: "base64" | "hex";
540
+ signatureHeader: string;
541
+ signature?: {
542
+ itemSeparator?: string | undefined;
543
+ fieldSeparator?: string | undefined;
544
+ field?: string | undefined;
545
+ trim?: boolean | undefined;
546
+ } | undefined;
547
+ timestamp?: {
548
+ source: {
549
+ from: "header";
550
+ name: string;
551
+ } | {
552
+ from: "signatureField";
553
+ field: string;
554
+ } | {
555
+ from: "body";
556
+ path: string;
557
+ } | {
558
+ from: "url";
559
+ } | {
560
+ from: "constant";
561
+ value: string;
562
+ };
563
+ unit?: "milliseconds" | "seconds" | undefined;
564
+ toleranceSeconds?: number | undefined;
565
+ } | undefined;
566
+ signingString: "raw" | {
567
+ template: string;
568
+ vars?: Record<string, {
569
+ from: "header";
570
+ name: string;
571
+ } | {
572
+ from: "signatureField";
573
+ field: string;
574
+ } | {
575
+ from: "body";
576
+ path: string;
577
+ } | {
578
+ from: "url";
579
+ } | {
580
+ from: "constant";
581
+ value: string;
582
+ }> | undefined;
583
+ };
584
+ secret?: {
585
+ encoding?: "base64" | "utf8" | undefined;
586
+ stripPrefix?: string | undefined;
587
+ } | undefined;
588
+ idempotencyField?: {
589
+ from: "body" | "header";
590
+ name: string;
591
+ } | undefined;
592
+ formPayload?: {
593
+ field: string;
594
+ } | undefined;
595
+ }>;
596
+ export type WebhookHmacConfig = z.infer<typeof WebhookHmacConfig>;
597
+ export declare const WebhookAsymmetricConfig: z.ZodObject<{
598
+ scheme: z.ZodLiteral<"asymmetric">;
599
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
600
+ encoding: z.ZodEnum<["hex", "base64"]>;
601
+ signatureHeader: z.ZodString;
602
+ signature: z.ZodOptional<z.ZodObject<{
603
+ itemSeparator: z.ZodOptional<z.ZodString>;
604
+ fieldSeparator: z.ZodOptional<z.ZodString>;
605
+ field: z.ZodOptional<z.ZodString>;
606
+ trim: z.ZodOptional<z.ZodBoolean>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ itemSeparator?: string | undefined;
609
+ fieldSeparator?: string | undefined;
610
+ field?: string | undefined;
611
+ trim?: boolean | undefined;
612
+ }, {
613
+ itemSeparator?: string | undefined;
614
+ fieldSeparator?: string | undefined;
615
+ field?: string | undefined;
616
+ trim?: boolean | undefined;
617
+ }>>;
618
+ timestamp: z.ZodOptional<z.ZodObject<{
619
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
620
+ from: z.ZodLiteral<"header">;
621
+ name: z.ZodString;
622
+ }, "strip", z.ZodTypeAny, {
623
+ from: "header";
624
+ name: string;
625
+ }, {
626
+ from: "header";
627
+ name: string;
628
+ }>, z.ZodObject<{
629
+ from: z.ZodLiteral<"signatureField">;
630
+ field: z.ZodString;
631
+ }, "strip", z.ZodTypeAny, {
632
+ from: "signatureField";
633
+ field: string;
634
+ }, {
635
+ from: "signatureField";
636
+ field: string;
637
+ }>, z.ZodObject<{
638
+ from: z.ZodLiteral<"body">;
639
+ path: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ from: "body";
642
+ path: string;
643
+ }, {
644
+ from: "body";
645
+ path: string;
646
+ }>, z.ZodObject<{
647
+ from: z.ZodLiteral<"url">;
648
+ }, "strip", z.ZodTypeAny, {
649
+ from: "url";
650
+ }, {
651
+ from: "url";
652
+ }>, z.ZodObject<{
653
+ from: z.ZodLiteral<"constant">;
654
+ value: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ from: "constant";
657
+ value: string;
658
+ }, {
659
+ from: "constant";
660
+ value: string;
661
+ }>]>;
662
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
663
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ source: {
666
+ from: "header";
667
+ name: string;
668
+ } | {
669
+ from: "signatureField";
670
+ field: string;
671
+ } | {
672
+ from: "body";
673
+ path: string;
674
+ } | {
675
+ from: "url";
676
+ } | {
677
+ from: "constant";
678
+ value: string;
679
+ };
680
+ unit?: "milliseconds" | "seconds" | undefined;
681
+ toleranceSeconds?: number | undefined;
682
+ }, {
683
+ source: {
684
+ from: "header";
685
+ name: string;
686
+ } | {
687
+ from: "signatureField";
688
+ field: string;
689
+ } | {
690
+ from: "body";
691
+ path: string;
692
+ } | {
693
+ from: "url";
694
+ } | {
695
+ from: "constant";
696
+ value: string;
697
+ };
698
+ unit?: "milliseconds" | "seconds" | undefined;
699
+ toleranceSeconds?: number | undefined;
700
+ }>>;
701
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
702
+ template: z.ZodString;
703
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
704
+ from: z.ZodLiteral<"header">;
705
+ name: z.ZodString;
706
+ }, "strip", z.ZodTypeAny, {
707
+ from: "header";
708
+ name: string;
709
+ }, {
710
+ from: "header";
711
+ name: string;
712
+ }>, z.ZodObject<{
713
+ from: z.ZodLiteral<"signatureField">;
714
+ field: z.ZodString;
715
+ }, "strip", z.ZodTypeAny, {
716
+ from: "signatureField";
717
+ field: string;
718
+ }, {
719
+ from: "signatureField";
720
+ field: string;
721
+ }>, z.ZodObject<{
722
+ from: z.ZodLiteral<"body">;
723
+ path: z.ZodString;
724
+ }, "strip", z.ZodTypeAny, {
725
+ from: "body";
726
+ path: string;
727
+ }, {
728
+ from: "body";
729
+ path: string;
730
+ }>, z.ZodObject<{
731
+ from: z.ZodLiteral<"url">;
732
+ }, "strip", z.ZodTypeAny, {
733
+ from: "url";
734
+ }, {
735
+ from: "url";
736
+ }>, z.ZodObject<{
737
+ from: z.ZodLiteral<"constant">;
738
+ value: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ from: "constant";
741
+ value: string;
742
+ }, {
743
+ from: "constant";
744
+ value: string;
745
+ }>]>>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ template: string;
748
+ vars?: Record<string, {
749
+ from: "header";
750
+ name: string;
751
+ } | {
752
+ from: "signatureField";
753
+ field: string;
754
+ } | {
755
+ from: "body";
756
+ path: string;
757
+ } | {
758
+ from: "url";
759
+ } | {
760
+ from: "constant";
761
+ value: string;
762
+ }> | undefined;
763
+ }, {
764
+ template: string;
765
+ vars?: Record<string, {
766
+ from: "header";
767
+ name: string;
768
+ } | {
769
+ from: "signatureField";
770
+ field: string;
771
+ } | {
772
+ from: "body";
773
+ path: string;
774
+ } | {
775
+ from: "url";
776
+ } | {
777
+ from: "constant";
778
+ value: string;
779
+ }> | undefined;
780
+ }>]>;
781
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
782
+ idempotencyField: z.ZodOptional<z.ZodObject<{
783
+ from: z.ZodEnum<["header", "body"]>;
784
+ name: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ from: "body" | "header";
787
+ name: string;
788
+ }, {
789
+ from: "body" | "header";
790
+ name: string;
791
+ }>>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ scheme: "asymmetric";
794
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
795
+ encoding: "base64" | "hex";
796
+ signatureHeader: string;
797
+ signature?: {
798
+ itemSeparator?: string | undefined;
799
+ fieldSeparator?: string | undefined;
800
+ field?: string | undefined;
801
+ trim?: boolean | undefined;
802
+ } | undefined;
803
+ timestamp?: {
804
+ source: {
805
+ from: "header";
806
+ name: string;
807
+ } | {
808
+ from: "signatureField";
809
+ field: string;
810
+ } | {
811
+ from: "body";
812
+ path: string;
813
+ } | {
814
+ from: "url";
815
+ } | {
816
+ from: "constant";
817
+ value: string;
818
+ };
819
+ unit?: "milliseconds" | "seconds" | undefined;
820
+ toleranceSeconds?: number | undefined;
821
+ } | undefined;
822
+ signingString: "raw" | {
823
+ template: string;
824
+ vars?: Record<string, {
825
+ from: "header";
826
+ name: string;
827
+ } | {
828
+ from: "signatureField";
829
+ field: string;
830
+ } | {
831
+ from: "body";
832
+ path: string;
833
+ } | {
834
+ from: "url";
835
+ } | {
836
+ from: "constant";
837
+ value: string;
838
+ }> | undefined;
839
+ };
840
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
841
+ idempotencyField?: {
842
+ from: "body" | "header";
843
+ name: string;
844
+ } | undefined;
845
+ }, {
846
+ scheme: "asymmetric";
847
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
848
+ encoding: "base64" | "hex";
849
+ signatureHeader: string;
850
+ signature?: {
851
+ itemSeparator?: string | undefined;
852
+ fieldSeparator?: string | undefined;
853
+ field?: string | undefined;
854
+ trim?: boolean | undefined;
855
+ } | undefined;
856
+ timestamp?: {
857
+ source: {
858
+ from: "header";
859
+ name: string;
860
+ } | {
861
+ from: "signatureField";
862
+ field: string;
863
+ } | {
864
+ from: "body";
865
+ path: string;
866
+ } | {
867
+ from: "url";
868
+ } | {
869
+ from: "constant";
870
+ value: string;
871
+ };
872
+ unit?: "milliseconds" | "seconds" | undefined;
873
+ toleranceSeconds?: number | undefined;
874
+ } | undefined;
875
+ signingString: "raw" | {
876
+ template: string;
877
+ vars?: Record<string, {
878
+ from: "header";
879
+ name: string;
880
+ } | {
881
+ from: "signatureField";
882
+ field: string;
883
+ } | {
884
+ from: "body";
885
+ path: string;
886
+ } | {
887
+ from: "url";
888
+ } | {
889
+ from: "constant";
890
+ value: string;
891
+ }> | undefined;
892
+ };
893
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
894
+ idempotencyField?: {
895
+ from: "body" | "header";
896
+ name: string;
897
+ } | undefined;
898
+ }>;
899
+ export type WebhookAsymmetricConfig = z.infer<typeof WebhookAsymmetricConfig>;
900
+ export declare const WebhookSharedSecretConfig: z.ZodObject<{
901
+ scheme: z.ZodLiteral<"shared-secret">;
902
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
903
+ fieldName: z.ZodOptional<z.ZodString>;
904
+ idempotencyField: z.ZodOptional<z.ZodObject<{
905
+ from: z.ZodEnum<["header", "body"]>;
906
+ name: z.ZodString;
907
+ }, "strip", z.ZodTypeAny, {
908
+ from: "body" | "header";
909
+ name: string;
910
+ }, {
911
+ from: "body" | "header";
912
+ name: string;
913
+ }>>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ scheme: "shared-secret";
916
+ placement: "basic" | "bearer" | "body" | "header";
917
+ fieldName?: string | undefined;
918
+ idempotencyField?: {
919
+ from: "body" | "header";
920
+ name: string;
921
+ } | undefined;
922
+ }, {
923
+ scheme: "shared-secret";
924
+ placement: "basic" | "bearer" | "body" | "header";
925
+ fieldName?: string | undefined;
926
+ idempotencyField?: {
927
+ from: "body" | "header";
928
+ name: string;
929
+ } | undefined;
930
+ }>;
931
+ export type WebhookSharedSecretConfig = z.infer<typeof WebhookSharedSecretConfig>;
932
+ export declare const WebhookUrlSecretConfig: z.ZodObject<{
933
+ scheme: z.ZodLiteral<"url-secret">;
934
+ placement: z.ZodEnum<["query", "path"]>;
935
+ paramName: z.ZodString;
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
+ }, "strip", z.ZodTypeAny, {
947
+ scheme: "url-secret";
948
+ placement: "path" | "query";
949
+ paramName: string;
950
+ idempotencyField?: {
951
+ from: "body" | "header";
952
+ name: string;
953
+ } | undefined;
954
+ }, {
955
+ scheme: "url-secret";
956
+ placement: "path" | "query";
957
+ paramName: string;
958
+ idempotencyField?: {
959
+ from: "body" | "header";
960
+ name: string;
961
+ } | undefined;
962
+ }>;
963
+ export type WebhookUrlSecretConfig = z.infer<typeof WebhookUrlSecretConfig>;
964
+ export declare const WebhookVerifierConfig: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
965
+ scheme: z.ZodLiteral<"hmac">;
966
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
967
+ encoding: z.ZodEnum<["hex", "base64"]>;
968
+ signatureHeader: z.ZodString;
969
+ signature: z.ZodOptional<z.ZodObject<{
970
+ itemSeparator: z.ZodOptional<z.ZodString>;
971
+ fieldSeparator: z.ZodOptional<z.ZodString>;
972
+ field: z.ZodOptional<z.ZodString>;
973
+ trim: z.ZodOptional<z.ZodBoolean>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ itemSeparator?: string | undefined;
976
+ fieldSeparator?: string | undefined;
977
+ field?: string | undefined;
978
+ trim?: boolean | undefined;
979
+ }, {
980
+ itemSeparator?: string | undefined;
981
+ fieldSeparator?: string | undefined;
982
+ field?: string | undefined;
983
+ trim?: boolean | undefined;
984
+ }>>;
985
+ timestamp: z.ZodOptional<z.ZodObject<{
986
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
987
+ from: z.ZodLiteral<"header">;
988
+ name: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ from: "header";
991
+ name: string;
992
+ }, {
993
+ from: "header";
994
+ name: string;
995
+ }>, z.ZodObject<{
996
+ from: z.ZodLiteral<"signatureField">;
997
+ field: z.ZodString;
998
+ }, "strip", z.ZodTypeAny, {
999
+ from: "signatureField";
1000
+ field: string;
1001
+ }, {
1002
+ from: "signatureField";
1003
+ field: string;
1004
+ }>, z.ZodObject<{
1005
+ from: z.ZodLiteral<"body">;
1006
+ path: z.ZodString;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ from: "body";
1009
+ path: string;
1010
+ }, {
1011
+ from: "body";
1012
+ path: string;
1013
+ }>, z.ZodObject<{
1014
+ from: z.ZodLiteral<"url">;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ from: "url";
1017
+ }, {
1018
+ from: "url";
1019
+ }>, z.ZodObject<{
1020
+ from: z.ZodLiteral<"constant">;
1021
+ value: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ from: "constant";
1024
+ value: string;
1025
+ }, {
1026
+ from: "constant";
1027
+ value: string;
1028
+ }>]>;
1029
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
1030
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ source: {
1033
+ from: "header";
1034
+ name: string;
1035
+ } | {
1036
+ from: "signatureField";
1037
+ field: string;
1038
+ } | {
1039
+ from: "body";
1040
+ path: string;
1041
+ } | {
1042
+ from: "url";
1043
+ } | {
1044
+ from: "constant";
1045
+ value: string;
1046
+ };
1047
+ unit?: "milliseconds" | "seconds" | undefined;
1048
+ toleranceSeconds?: number | undefined;
1049
+ }, {
1050
+ source: {
1051
+ from: "header";
1052
+ name: string;
1053
+ } | {
1054
+ from: "signatureField";
1055
+ field: string;
1056
+ } | {
1057
+ from: "body";
1058
+ path: string;
1059
+ } | {
1060
+ from: "url";
1061
+ } | {
1062
+ from: "constant";
1063
+ value: string;
1064
+ };
1065
+ unit?: "milliseconds" | "seconds" | undefined;
1066
+ toleranceSeconds?: number | undefined;
1067
+ }>>;
1068
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
1069
+ template: z.ZodString;
1070
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1071
+ from: z.ZodLiteral<"header">;
1072
+ name: z.ZodString;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ from: "header";
1075
+ name: string;
1076
+ }, {
1077
+ from: "header";
1078
+ name: string;
1079
+ }>, z.ZodObject<{
1080
+ from: z.ZodLiteral<"signatureField">;
1081
+ field: z.ZodString;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ from: "signatureField";
1084
+ field: string;
1085
+ }, {
1086
+ from: "signatureField";
1087
+ field: string;
1088
+ }>, z.ZodObject<{
1089
+ from: z.ZodLiteral<"body">;
1090
+ path: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ from: "body";
1093
+ path: string;
1094
+ }, {
1095
+ from: "body";
1096
+ path: string;
1097
+ }>, z.ZodObject<{
1098
+ from: z.ZodLiteral<"url">;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ from: "url";
1101
+ }, {
1102
+ from: "url";
1103
+ }>, z.ZodObject<{
1104
+ from: z.ZodLiteral<"constant">;
1105
+ value: z.ZodString;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ from: "constant";
1108
+ value: string;
1109
+ }, {
1110
+ from: "constant";
1111
+ value: string;
1112
+ }>]>>>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ template: string;
1115
+ vars?: Record<string, {
1116
+ from: "header";
1117
+ name: string;
1118
+ } | {
1119
+ from: "signatureField";
1120
+ field: string;
1121
+ } | {
1122
+ from: "body";
1123
+ path: string;
1124
+ } | {
1125
+ from: "url";
1126
+ } | {
1127
+ from: "constant";
1128
+ value: string;
1129
+ }> | undefined;
1130
+ }, {
1131
+ template: string;
1132
+ vars?: Record<string, {
1133
+ from: "header";
1134
+ name: string;
1135
+ } | {
1136
+ from: "signatureField";
1137
+ field: string;
1138
+ } | {
1139
+ from: "body";
1140
+ path: string;
1141
+ } | {
1142
+ from: "url";
1143
+ } | {
1144
+ from: "constant";
1145
+ value: string;
1146
+ }> | undefined;
1147
+ }>]>;
1148
+ secret: z.ZodOptional<z.ZodObject<{
1149
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
1150
+ stripPrefix: z.ZodOptional<z.ZodString>;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ encoding?: "base64" | "utf8" | undefined;
1153
+ stripPrefix?: string | undefined;
1154
+ }, {
1155
+ encoding?: "base64" | "utf8" | undefined;
1156
+ stripPrefix?: string | undefined;
1157
+ }>>;
1158
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1159
+ from: z.ZodEnum<["header", "body"]>;
1160
+ name: z.ZodString;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ from: "body" | "header";
1163
+ name: string;
1164
+ }, {
1165
+ from: "body" | "header";
1166
+ name: string;
1167
+ }>>;
1168
+ formPayload: z.ZodOptional<z.ZodObject<{
1169
+ field: z.ZodString;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ field: string;
1172
+ }, {
1173
+ field: string;
1174
+ }>>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ scheme: "hmac";
1177
+ algorithm: "sha1" | "sha256";
1178
+ encoding: "base64" | "hex";
1179
+ signatureHeader: string;
1180
+ signature?: {
1181
+ itemSeparator?: string | undefined;
1182
+ fieldSeparator?: string | undefined;
1183
+ field?: string | undefined;
1184
+ trim?: boolean | undefined;
1185
+ } | undefined;
1186
+ timestamp?: {
1187
+ source: {
1188
+ from: "header";
1189
+ name: string;
1190
+ } | {
1191
+ from: "signatureField";
1192
+ field: string;
1193
+ } | {
1194
+ from: "body";
1195
+ path: string;
1196
+ } | {
1197
+ from: "url";
1198
+ } | {
1199
+ from: "constant";
1200
+ value: string;
1201
+ };
1202
+ unit?: "milliseconds" | "seconds" | undefined;
1203
+ toleranceSeconds?: number | undefined;
1204
+ } | undefined;
1205
+ signingString: "raw" | {
1206
+ template: string;
1207
+ vars?: Record<string, {
1208
+ from: "header";
1209
+ name: string;
1210
+ } | {
1211
+ from: "signatureField";
1212
+ field: string;
1213
+ } | {
1214
+ from: "body";
1215
+ path: string;
1216
+ } | {
1217
+ from: "url";
1218
+ } | {
1219
+ from: "constant";
1220
+ value: string;
1221
+ }> | undefined;
1222
+ };
1223
+ secret?: {
1224
+ encoding?: "base64" | "utf8" | undefined;
1225
+ stripPrefix?: string | undefined;
1226
+ } | undefined;
1227
+ idempotencyField?: {
1228
+ from: "body" | "header";
1229
+ name: string;
1230
+ } | undefined;
1231
+ formPayload?: {
1232
+ field: string;
1233
+ } | undefined;
1234
+ }, {
1235
+ scheme: "hmac";
1236
+ algorithm: "sha1" | "sha256";
1237
+ encoding: "base64" | "hex";
1238
+ signatureHeader: string;
1239
+ signature?: {
1240
+ itemSeparator?: string | undefined;
1241
+ fieldSeparator?: string | undefined;
1242
+ field?: string | undefined;
1243
+ trim?: boolean | undefined;
1244
+ } | undefined;
1245
+ timestamp?: {
1246
+ source: {
1247
+ from: "header";
1248
+ name: string;
1249
+ } | {
1250
+ from: "signatureField";
1251
+ field: string;
1252
+ } | {
1253
+ from: "body";
1254
+ path: string;
1255
+ } | {
1256
+ from: "url";
1257
+ } | {
1258
+ from: "constant";
1259
+ value: string;
1260
+ };
1261
+ unit?: "milliseconds" | "seconds" | undefined;
1262
+ toleranceSeconds?: number | undefined;
1263
+ } | undefined;
1264
+ signingString: "raw" | {
1265
+ template: string;
1266
+ vars?: Record<string, {
1267
+ from: "header";
1268
+ name: string;
1269
+ } | {
1270
+ from: "signatureField";
1271
+ field: string;
1272
+ } | {
1273
+ from: "body";
1274
+ path: string;
1275
+ } | {
1276
+ from: "url";
1277
+ } | {
1278
+ from: "constant";
1279
+ value: string;
1280
+ }> | undefined;
1281
+ };
1282
+ secret?: {
1283
+ encoding?: "base64" | "utf8" | undefined;
1284
+ stripPrefix?: string | undefined;
1285
+ } | undefined;
1286
+ idempotencyField?: {
1287
+ from: "body" | "header";
1288
+ name: string;
1289
+ } | undefined;
1290
+ formPayload?: {
1291
+ field: string;
1292
+ } | undefined;
1293
+ }>, z.ZodObject<{
1294
+ scheme: z.ZodLiteral<"shared-secret">;
1295
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
1296
+ fieldName: z.ZodOptional<z.ZodString>;
1297
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1298
+ from: z.ZodEnum<["header", "body"]>;
1299
+ name: z.ZodString;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ from: "body" | "header";
1302
+ name: string;
1303
+ }, {
1304
+ from: "body" | "header";
1305
+ name: string;
1306
+ }>>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ scheme: "shared-secret";
1309
+ placement: "basic" | "bearer" | "body" | "header";
1310
+ fieldName?: string | undefined;
1311
+ idempotencyField?: {
1312
+ from: "body" | "header";
1313
+ name: string;
1314
+ } | undefined;
1315
+ }, {
1316
+ scheme: "shared-secret";
1317
+ placement: "basic" | "bearer" | "body" | "header";
1318
+ fieldName?: string | undefined;
1319
+ idempotencyField?: {
1320
+ from: "body" | "header";
1321
+ name: string;
1322
+ } | undefined;
1323
+ }>, z.ZodObject<{
1324
+ scheme: z.ZodLiteral<"url-secret">;
1325
+ placement: z.ZodEnum<["query", "path"]>;
1326
+ paramName: z.ZodString;
1327
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1328
+ from: z.ZodEnum<["header", "body"]>;
1329
+ name: z.ZodString;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ from: "body" | "header";
1332
+ name: string;
1333
+ }, {
1334
+ from: "body" | "header";
1335
+ name: string;
1336
+ }>>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ scheme: "url-secret";
1339
+ placement: "path" | "query";
1340
+ paramName: string;
1341
+ idempotencyField?: {
1342
+ from: "body" | "header";
1343
+ name: string;
1344
+ } | undefined;
1345
+ }, {
1346
+ scheme: "url-secret";
1347
+ placement: "path" | "query";
1348
+ paramName: string;
1349
+ idempotencyField?: {
1350
+ from: "body" | "header";
1351
+ name: string;
1352
+ } | undefined;
1353
+ }>, z.ZodObject<{
1354
+ scheme: z.ZodLiteral<"asymmetric">;
1355
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
1356
+ encoding: z.ZodEnum<["hex", "base64"]>;
1357
+ signatureHeader: z.ZodString;
1358
+ signature: z.ZodOptional<z.ZodObject<{
1359
+ itemSeparator: z.ZodOptional<z.ZodString>;
1360
+ fieldSeparator: z.ZodOptional<z.ZodString>;
1361
+ field: z.ZodOptional<z.ZodString>;
1362
+ trim: z.ZodOptional<z.ZodBoolean>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ itemSeparator?: string | undefined;
1365
+ fieldSeparator?: string | undefined;
1366
+ field?: string | undefined;
1367
+ trim?: boolean | undefined;
1368
+ }, {
1369
+ itemSeparator?: string | undefined;
1370
+ fieldSeparator?: string | undefined;
1371
+ field?: string | undefined;
1372
+ trim?: boolean | undefined;
1373
+ }>>;
1374
+ timestamp: z.ZodOptional<z.ZodObject<{
1375
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1376
+ from: z.ZodLiteral<"header">;
1377
+ name: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ from: "header";
1380
+ name: string;
1381
+ }, {
1382
+ from: "header";
1383
+ name: string;
1384
+ }>, z.ZodObject<{
1385
+ from: z.ZodLiteral<"signatureField">;
1386
+ field: z.ZodString;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ from: "signatureField";
1389
+ field: string;
1390
+ }, {
1391
+ from: "signatureField";
1392
+ field: string;
1393
+ }>, z.ZodObject<{
1394
+ from: z.ZodLiteral<"body">;
1395
+ path: z.ZodString;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ from: "body";
1398
+ path: string;
1399
+ }, {
1400
+ from: "body";
1401
+ path: string;
1402
+ }>, z.ZodObject<{
1403
+ from: z.ZodLiteral<"url">;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ from: "url";
1406
+ }, {
1407
+ from: "url";
1408
+ }>, z.ZodObject<{
1409
+ from: z.ZodLiteral<"constant">;
1410
+ value: z.ZodString;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ from: "constant";
1413
+ value: string;
1414
+ }, {
1415
+ from: "constant";
1416
+ value: string;
1417
+ }>]>;
1418
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
1419
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ source: {
1422
+ from: "header";
1423
+ name: string;
1424
+ } | {
1425
+ from: "signatureField";
1426
+ field: string;
1427
+ } | {
1428
+ from: "body";
1429
+ path: string;
1430
+ } | {
1431
+ from: "url";
1432
+ } | {
1433
+ from: "constant";
1434
+ value: string;
1435
+ };
1436
+ unit?: "milliseconds" | "seconds" | undefined;
1437
+ toleranceSeconds?: number | undefined;
1438
+ }, {
1439
+ source: {
1440
+ from: "header";
1441
+ name: string;
1442
+ } | {
1443
+ from: "signatureField";
1444
+ field: string;
1445
+ } | {
1446
+ from: "body";
1447
+ path: string;
1448
+ } | {
1449
+ from: "url";
1450
+ } | {
1451
+ from: "constant";
1452
+ value: string;
1453
+ };
1454
+ unit?: "milliseconds" | "seconds" | undefined;
1455
+ toleranceSeconds?: number | undefined;
1456
+ }>>;
1457
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
1458
+ template: z.ZodString;
1459
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1460
+ from: z.ZodLiteral<"header">;
1461
+ name: z.ZodString;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ from: "header";
1464
+ name: string;
1465
+ }, {
1466
+ from: "header";
1467
+ name: string;
1468
+ }>, z.ZodObject<{
1469
+ from: z.ZodLiteral<"signatureField">;
1470
+ field: z.ZodString;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ from: "signatureField";
1473
+ field: string;
1474
+ }, {
1475
+ from: "signatureField";
1476
+ field: string;
1477
+ }>, z.ZodObject<{
1478
+ from: z.ZodLiteral<"body">;
1479
+ path: z.ZodString;
1480
+ }, "strip", z.ZodTypeAny, {
1481
+ from: "body";
1482
+ path: string;
1483
+ }, {
1484
+ from: "body";
1485
+ path: string;
1486
+ }>, z.ZodObject<{
1487
+ from: z.ZodLiteral<"url">;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ from: "url";
1490
+ }, {
1491
+ from: "url";
1492
+ }>, z.ZodObject<{
1493
+ from: z.ZodLiteral<"constant">;
1494
+ value: z.ZodString;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ from: "constant";
1497
+ value: string;
1498
+ }, {
1499
+ from: "constant";
1500
+ value: string;
1501
+ }>]>>>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ template: string;
1504
+ vars?: Record<string, {
1505
+ from: "header";
1506
+ name: string;
1507
+ } | {
1508
+ from: "signatureField";
1509
+ field: string;
1510
+ } | {
1511
+ from: "body";
1512
+ path: string;
1513
+ } | {
1514
+ from: "url";
1515
+ } | {
1516
+ from: "constant";
1517
+ value: string;
1518
+ }> | undefined;
1519
+ }, {
1520
+ template: string;
1521
+ vars?: Record<string, {
1522
+ from: "header";
1523
+ name: string;
1524
+ } | {
1525
+ from: "signatureField";
1526
+ field: string;
1527
+ } | {
1528
+ from: "body";
1529
+ path: string;
1530
+ } | {
1531
+ from: "url";
1532
+ } | {
1533
+ from: "constant";
1534
+ value: string;
1535
+ }> | undefined;
1536
+ }>]>;
1537
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
1538
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1539
+ from: z.ZodEnum<["header", "body"]>;
1540
+ name: z.ZodString;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ from: "body" | "header";
1543
+ name: string;
1544
+ }, {
1545
+ from: "body" | "header";
1546
+ name: string;
1547
+ }>>;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ scheme: "asymmetric";
1550
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1551
+ encoding: "base64" | "hex";
1552
+ signatureHeader: string;
1553
+ signature?: {
1554
+ itemSeparator?: string | undefined;
1555
+ fieldSeparator?: string | undefined;
1556
+ field?: string | undefined;
1557
+ trim?: boolean | undefined;
1558
+ } | undefined;
1559
+ timestamp?: {
1560
+ source: {
1561
+ from: "header";
1562
+ name: string;
1563
+ } | {
1564
+ from: "signatureField";
1565
+ field: string;
1566
+ } | {
1567
+ from: "body";
1568
+ path: string;
1569
+ } | {
1570
+ from: "url";
1571
+ } | {
1572
+ from: "constant";
1573
+ value: string;
1574
+ };
1575
+ unit?: "milliseconds" | "seconds" | undefined;
1576
+ toleranceSeconds?: number | undefined;
1577
+ } | undefined;
1578
+ signingString: "raw" | {
1579
+ template: string;
1580
+ vars?: Record<string, {
1581
+ from: "header";
1582
+ name: string;
1583
+ } | {
1584
+ from: "signatureField";
1585
+ field: string;
1586
+ } | {
1587
+ from: "body";
1588
+ path: string;
1589
+ } | {
1590
+ from: "url";
1591
+ } | {
1592
+ from: "constant";
1593
+ value: string;
1594
+ }> | undefined;
1595
+ };
1596
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1597
+ idempotencyField?: {
1598
+ from: "body" | "header";
1599
+ name: string;
1600
+ } | undefined;
1601
+ }, {
1602
+ scheme: "asymmetric";
1603
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
1604
+ encoding: "base64" | "hex";
1605
+ signatureHeader: string;
1606
+ signature?: {
1607
+ itemSeparator?: string | undefined;
1608
+ fieldSeparator?: string | undefined;
1609
+ field?: string | undefined;
1610
+ trim?: boolean | undefined;
1611
+ } | undefined;
1612
+ timestamp?: {
1613
+ source: {
1614
+ from: "header";
1615
+ name: string;
1616
+ } | {
1617
+ from: "signatureField";
1618
+ field: string;
1619
+ } | {
1620
+ from: "body";
1621
+ path: string;
1622
+ } | {
1623
+ from: "url";
1624
+ } | {
1625
+ from: "constant";
1626
+ value: string;
1627
+ };
1628
+ unit?: "milliseconds" | "seconds" | undefined;
1629
+ toleranceSeconds?: number | undefined;
1630
+ } | undefined;
1631
+ signingString: "raw" | {
1632
+ template: string;
1633
+ vars?: Record<string, {
1634
+ from: "header";
1635
+ name: string;
1636
+ } | {
1637
+ from: "signatureField";
1638
+ field: string;
1639
+ } | {
1640
+ from: "body";
1641
+ path: string;
1642
+ } | {
1643
+ from: "url";
1644
+ } | {
1645
+ from: "constant";
1646
+ value: string;
1647
+ }> | undefined;
1648
+ };
1649
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
1650
+ idempotencyField?: {
1651
+ from: "body" | "header";
1652
+ name: string;
1653
+ } | undefined;
1654
+ }>]>;
1655
+ export type WebhookVerifierConfig = z.infer<typeof WebhookVerifierConfig>;
1656
+ export declare const WebhookHandshakeConfig: z.ZodObject<{
1657
+ matchPath: z.ZodString;
1658
+ matchValue: z.ZodString;
1659
+ respondPath: z.ZodString;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ matchPath: string;
1662
+ matchValue: string;
1663
+ respondPath: string;
1664
+ }, {
1665
+ matchPath: string;
1666
+ matchValue: string;
1667
+ respondPath: string;
1668
+ }>;
1669
+ export type WebhookHandshakeConfig = z.infer<typeof WebhookHandshakeConfig>;
1670
+ export declare const WebhookVerifierArtifact: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1671
+ kind: z.ZodLiteral<"config">;
1672
+ config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
1673
+ scheme: z.ZodLiteral<"hmac">;
1674
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
1675
+ encoding: z.ZodEnum<["hex", "base64"]>;
1676
+ signatureHeader: z.ZodString;
1677
+ signature: z.ZodOptional<z.ZodObject<{
1678
+ itemSeparator: z.ZodOptional<z.ZodString>;
1679
+ fieldSeparator: z.ZodOptional<z.ZodString>;
1680
+ field: z.ZodOptional<z.ZodString>;
1681
+ trim: z.ZodOptional<z.ZodBoolean>;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ itemSeparator?: string | undefined;
1684
+ fieldSeparator?: string | undefined;
1685
+ field?: string | undefined;
1686
+ trim?: boolean | undefined;
1687
+ }, {
1688
+ itemSeparator?: string | undefined;
1689
+ fieldSeparator?: string | undefined;
1690
+ field?: string | undefined;
1691
+ trim?: boolean | undefined;
1692
+ }>>;
1693
+ timestamp: z.ZodOptional<z.ZodObject<{
1694
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1695
+ from: z.ZodLiteral<"header">;
1696
+ name: z.ZodString;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ from: "header";
1699
+ name: string;
1700
+ }, {
1701
+ from: "header";
1702
+ name: string;
1703
+ }>, z.ZodObject<{
1704
+ from: z.ZodLiteral<"signatureField">;
1705
+ field: z.ZodString;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ from: "signatureField";
1708
+ field: string;
1709
+ }, {
1710
+ from: "signatureField";
1711
+ field: string;
1712
+ }>, z.ZodObject<{
1713
+ from: z.ZodLiteral<"body">;
1714
+ path: z.ZodString;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ from: "body";
1717
+ path: string;
1718
+ }, {
1719
+ from: "body";
1720
+ path: string;
1721
+ }>, z.ZodObject<{
1722
+ from: z.ZodLiteral<"url">;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ from: "url";
1725
+ }, {
1726
+ from: "url";
1727
+ }>, z.ZodObject<{
1728
+ from: z.ZodLiteral<"constant">;
1729
+ value: z.ZodString;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ from: "constant";
1732
+ value: string;
1733
+ }, {
1734
+ from: "constant";
1735
+ value: string;
1736
+ }>]>;
1737
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
1738
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ source: {
1741
+ from: "header";
1742
+ name: string;
1743
+ } | {
1744
+ from: "signatureField";
1745
+ field: string;
1746
+ } | {
1747
+ from: "body";
1748
+ path: string;
1749
+ } | {
1750
+ from: "url";
1751
+ } | {
1752
+ from: "constant";
1753
+ value: string;
1754
+ };
1755
+ unit?: "milliseconds" | "seconds" | undefined;
1756
+ toleranceSeconds?: number | undefined;
1757
+ }, {
1758
+ source: {
1759
+ from: "header";
1760
+ name: string;
1761
+ } | {
1762
+ from: "signatureField";
1763
+ field: string;
1764
+ } | {
1765
+ from: "body";
1766
+ path: string;
1767
+ } | {
1768
+ from: "url";
1769
+ } | {
1770
+ from: "constant";
1771
+ value: string;
1772
+ };
1773
+ unit?: "milliseconds" | "seconds" | undefined;
1774
+ toleranceSeconds?: number | undefined;
1775
+ }>>;
1776
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
1777
+ template: z.ZodString;
1778
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1779
+ from: z.ZodLiteral<"header">;
1780
+ name: z.ZodString;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ from: "header";
1783
+ name: string;
1784
+ }, {
1785
+ from: "header";
1786
+ name: string;
1787
+ }>, z.ZodObject<{
1788
+ from: z.ZodLiteral<"signatureField">;
1789
+ field: z.ZodString;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ from: "signatureField";
1792
+ field: string;
1793
+ }, {
1794
+ from: "signatureField";
1795
+ field: string;
1796
+ }>, z.ZodObject<{
1797
+ from: z.ZodLiteral<"body">;
1798
+ path: z.ZodString;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ from: "body";
1801
+ path: string;
1802
+ }, {
1803
+ from: "body";
1804
+ path: string;
1805
+ }>, z.ZodObject<{
1806
+ from: z.ZodLiteral<"url">;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ from: "url";
1809
+ }, {
1810
+ from: "url";
1811
+ }>, z.ZodObject<{
1812
+ from: z.ZodLiteral<"constant">;
1813
+ value: z.ZodString;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ from: "constant";
1816
+ value: string;
1817
+ }, {
1818
+ from: "constant";
1819
+ value: string;
1820
+ }>]>>>;
1821
+ }, "strip", z.ZodTypeAny, {
1822
+ template: string;
1823
+ vars?: Record<string, {
1824
+ from: "header";
1825
+ name: string;
1826
+ } | {
1827
+ from: "signatureField";
1828
+ field: string;
1829
+ } | {
1830
+ from: "body";
1831
+ path: string;
1832
+ } | {
1833
+ from: "url";
1834
+ } | {
1835
+ from: "constant";
1836
+ value: string;
1837
+ }> | undefined;
1838
+ }, {
1839
+ template: string;
1840
+ vars?: Record<string, {
1841
+ from: "header";
1842
+ name: string;
1843
+ } | {
1844
+ from: "signatureField";
1845
+ field: string;
1846
+ } | {
1847
+ from: "body";
1848
+ path: string;
1849
+ } | {
1850
+ from: "url";
1851
+ } | {
1852
+ from: "constant";
1853
+ value: string;
1854
+ }> | undefined;
1855
+ }>]>;
1856
+ secret: z.ZodOptional<z.ZodObject<{
1857
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
1858
+ stripPrefix: z.ZodOptional<z.ZodString>;
1859
+ }, "strip", z.ZodTypeAny, {
1860
+ encoding?: "base64" | "utf8" | undefined;
1861
+ stripPrefix?: string | undefined;
1862
+ }, {
1863
+ encoding?: "base64" | "utf8" | undefined;
1864
+ stripPrefix?: string | undefined;
1865
+ }>>;
1866
+ idempotencyField: z.ZodOptional<z.ZodObject<{
1867
+ from: z.ZodEnum<["header", "body"]>;
1868
+ name: z.ZodString;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ from: "body" | "header";
1871
+ name: string;
1872
+ }, {
1873
+ from: "body" | "header";
1874
+ name: string;
1875
+ }>>;
1876
+ formPayload: z.ZodOptional<z.ZodObject<{
1877
+ field: z.ZodString;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ field: string;
1880
+ }, {
1881
+ field: string;
1882
+ }>>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ scheme: "hmac";
1885
+ algorithm: "sha1" | "sha256";
1886
+ encoding: "base64" | "hex";
1887
+ signatureHeader: string;
1888
+ signature?: {
1889
+ itemSeparator?: string | undefined;
1890
+ fieldSeparator?: string | undefined;
1891
+ field?: string | undefined;
1892
+ trim?: boolean | undefined;
1893
+ } | undefined;
1894
+ timestamp?: {
1895
+ source: {
1896
+ from: "header";
1897
+ name: string;
1898
+ } | {
1899
+ from: "signatureField";
1900
+ field: string;
1901
+ } | {
1902
+ from: "body";
1903
+ path: string;
1904
+ } | {
1905
+ from: "url";
1906
+ } | {
1907
+ from: "constant";
1908
+ value: string;
1909
+ };
1910
+ unit?: "milliseconds" | "seconds" | undefined;
1911
+ toleranceSeconds?: number | undefined;
1912
+ } | undefined;
1913
+ signingString: "raw" | {
1914
+ template: string;
1915
+ vars?: Record<string, {
1916
+ from: "header";
1917
+ name: string;
1918
+ } | {
1919
+ from: "signatureField";
1920
+ field: string;
1921
+ } | {
1922
+ from: "body";
1923
+ path: string;
1924
+ } | {
1925
+ from: "url";
1926
+ } | {
1927
+ from: "constant";
1928
+ value: string;
1929
+ }> | undefined;
1930
+ };
1931
+ secret?: {
1932
+ encoding?: "base64" | "utf8" | undefined;
1933
+ stripPrefix?: string | undefined;
1934
+ } | undefined;
1935
+ idempotencyField?: {
1936
+ from: "body" | "header";
1937
+ name: string;
1938
+ } | undefined;
1939
+ formPayload?: {
1940
+ field: string;
1941
+ } | undefined;
1942
+ }, {
1943
+ scheme: "hmac";
1944
+ algorithm: "sha1" | "sha256";
1945
+ encoding: "base64" | "hex";
1946
+ signatureHeader: string;
1947
+ signature?: {
1948
+ itemSeparator?: string | undefined;
1949
+ fieldSeparator?: string | undefined;
1950
+ field?: string | undefined;
1951
+ trim?: boolean | undefined;
1952
+ } | undefined;
1953
+ timestamp?: {
1954
+ source: {
1955
+ from: "header";
1956
+ name: string;
1957
+ } | {
1958
+ from: "signatureField";
1959
+ field: string;
1960
+ } | {
1961
+ from: "body";
1962
+ path: string;
1963
+ } | {
1964
+ from: "url";
1965
+ } | {
1966
+ from: "constant";
1967
+ value: string;
1968
+ };
1969
+ unit?: "milliseconds" | "seconds" | undefined;
1970
+ toleranceSeconds?: number | undefined;
1971
+ } | undefined;
1972
+ signingString: "raw" | {
1973
+ template: string;
1974
+ vars?: Record<string, {
1975
+ from: "header";
1976
+ name: string;
1977
+ } | {
1978
+ from: "signatureField";
1979
+ field: string;
1980
+ } | {
1981
+ from: "body";
1982
+ path: string;
1983
+ } | {
1984
+ from: "url";
1985
+ } | {
1986
+ from: "constant";
1987
+ value: string;
1988
+ }> | undefined;
1989
+ };
1990
+ secret?: {
1991
+ encoding?: "base64" | "utf8" | undefined;
1992
+ stripPrefix?: string | undefined;
1993
+ } | undefined;
1994
+ idempotencyField?: {
1995
+ from: "body" | "header";
1996
+ name: string;
1997
+ } | undefined;
1998
+ formPayload?: {
1999
+ field: string;
2000
+ } | undefined;
2001
+ }>, z.ZodObject<{
2002
+ scheme: z.ZodLiteral<"shared-secret">;
2003
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
2004
+ fieldName: z.ZodOptional<z.ZodString>;
2005
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2006
+ from: z.ZodEnum<["header", "body"]>;
2007
+ name: z.ZodString;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ from: "body" | "header";
2010
+ name: string;
2011
+ }, {
2012
+ from: "body" | "header";
2013
+ name: string;
2014
+ }>>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ scheme: "shared-secret";
2017
+ placement: "basic" | "bearer" | "body" | "header";
2018
+ fieldName?: string | undefined;
2019
+ idempotencyField?: {
2020
+ from: "body" | "header";
2021
+ name: string;
2022
+ } | undefined;
2023
+ }, {
2024
+ scheme: "shared-secret";
2025
+ placement: "basic" | "bearer" | "body" | "header";
2026
+ fieldName?: string | undefined;
2027
+ idempotencyField?: {
2028
+ from: "body" | "header";
2029
+ name: string;
2030
+ } | undefined;
2031
+ }>, z.ZodObject<{
2032
+ scheme: z.ZodLiteral<"url-secret">;
2033
+ placement: z.ZodEnum<["query", "path"]>;
2034
+ paramName: z.ZodString;
2035
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2036
+ from: z.ZodEnum<["header", "body"]>;
2037
+ name: z.ZodString;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ from: "body" | "header";
2040
+ name: string;
2041
+ }, {
2042
+ from: "body" | "header";
2043
+ name: string;
2044
+ }>>;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ scheme: "url-secret";
2047
+ placement: "path" | "query";
2048
+ paramName: string;
2049
+ idempotencyField?: {
2050
+ from: "body" | "header";
2051
+ name: string;
2052
+ } | undefined;
2053
+ }, {
2054
+ scheme: "url-secret";
2055
+ placement: "path" | "query";
2056
+ paramName: string;
2057
+ idempotencyField?: {
2058
+ from: "body" | "header";
2059
+ name: string;
2060
+ } | undefined;
2061
+ }>, z.ZodObject<{
2062
+ scheme: z.ZodLiteral<"asymmetric">;
2063
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
2064
+ encoding: z.ZodEnum<["hex", "base64"]>;
2065
+ signatureHeader: z.ZodString;
2066
+ signature: z.ZodOptional<z.ZodObject<{
2067
+ itemSeparator: z.ZodOptional<z.ZodString>;
2068
+ fieldSeparator: z.ZodOptional<z.ZodString>;
2069
+ field: z.ZodOptional<z.ZodString>;
2070
+ trim: z.ZodOptional<z.ZodBoolean>;
2071
+ }, "strip", z.ZodTypeAny, {
2072
+ itemSeparator?: string | undefined;
2073
+ fieldSeparator?: string | undefined;
2074
+ field?: string | undefined;
2075
+ trim?: boolean | undefined;
2076
+ }, {
2077
+ itemSeparator?: string | undefined;
2078
+ fieldSeparator?: string | undefined;
2079
+ field?: string | undefined;
2080
+ trim?: boolean | undefined;
2081
+ }>>;
2082
+ timestamp: z.ZodOptional<z.ZodObject<{
2083
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2084
+ from: z.ZodLiteral<"header">;
2085
+ name: z.ZodString;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ from: "header";
2088
+ name: string;
2089
+ }, {
2090
+ from: "header";
2091
+ name: string;
2092
+ }>, z.ZodObject<{
2093
+ from: z.ZodLiteral<"signatureField">;
2094
+ field: z.ZodString;
2095
+ }, "strip", z.ZodTypeAny, {
2096
+ from: "signatureField";
2097
+ field: string;
2098
+ }, {
2099
+ from: "signatureField";
2100
+ field: string;
2101
+ }>, z.ZodObject<{
2102
+ from: z.ZodLiteral<"body">;
2103
+ path: z.ZodString;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ from: "body";
2106
+ path: string;
2107
+ }, {
2108
+ from: "body";
2109
+ path: string;
2110
+ }>, z.ZodObject<{
2111
+ from: z.ZodLiteral<"url">;
2112
+ }, "strip", z.ZodTypeAny, {
2113
+ from: "url";
2114
+ }, {
2115
+ from: "url";
2116
+ }>, z.ZodObject<{
2117
+ from: z.ZodLiteral<"constant">;
2118
+ value: z.ZodString;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ from: "constant";
2121
+ value: string;
2122
+ }, {
2123
+ from: "constant";
2124
+ value: string;
2125
+ }>]>;
2126
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
2127
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
2128
+ }, "strip", z.ZodTypeAny, {
2129
+ source: {
2130
+ from: "header";
2131
+ name: string;
2132
+ } | {
2133
+ from: "signatureField";
2134
+ field: string;
2135
+ } | {
2136
+ from: "body";
2137
+ path: string;
2138
+ } | {
2139
+ from: "url";
2140
+ } | {
2141
+ from: "constant";
2142
+ value: string;
2143
+ };
2144
+ unit?: "milliseconds" | "seconds" | undefined;
2145
+ toleranceSeconds?: number | undefined;
2146
+ }, {
2147
+ source: {
2148
+ from: "header";
2149
+ name: string;
2150
+ } | {
2151
+ from: "signatureField";
2152
+ field: string;
2153
+ } | {
2154
+ from: "body";
2155
+ path: string;
2156
+ } | {
2157
+ from: "url";
2158
+ } | {
2159
+ from: "constant";
2160
+ value: string;
2161
+ };
2162
+ unit?: "milliseconds" | "seconds" | undefined;
2163
+ toleranceSeconds?: number | undefined;
2164
+ }>>;
2165
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
2166
+ template: z.ZodString;
2167
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2168
+ from: z.ZodLiteral<"header">;
2169
+ name: z.ZodString;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ from: "header";
2172
+ name: string;
2173
+ }, {
2174
+ from: "header";
2175
+ name: string;
2176
+ }>, z.ZodObject<{
2177
+ from: z.ZodLiteral<"signatureField">;
2178
+ field: z.ZodString;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ from: "signatureField";
2181
+ field: string;
2182
+ }, {
2183
+ from: "signatureField";
2184
+ field: string;
2185
+ }>, z.ZodObject<{
2186
+ from: z.ZodLiteral<"body">;
2187
+ path: z.ZodString;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ from: "body";
2190
+ path: string;
2191
+ }, {
2192
+ from: "body";
2193
+ path: string;
2194
+ }>, z.ZodObject<{
2195
+ from: z.ZodLiteral<"url">;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ from: "url";
2198
+ }, {
2199
+ from: "url";
2200
+ }>, z.ZodObject<{
2201
+ from: z.ZodLiteral<"constant">;
2202
+ value: z.ZodString;
2203
+ }, "strip", z.ZodTypeAny, {
2204
+ from: "constant";
2205
+ value: string;
2206
+ }, {
2207
+ from: "constant";
2208
+ value: string;
2209
+ }>]>>>;
2210
+ }, "strip", z.ZodTypeAny, {
2211
+ template: string;
2212
+ vars?: Record<string, {
2213
+ from: "header";
2214
+ name: string;
2215
+ } | {
2216
+ from: "signatureField";
2217
+ field: string;
2218
+ } | {
2219
+ from: "body";
2220
+ path: string;
2221
+ } | {
2222
+ from: "url";
2223
+ } | {
2224
+ from: "constant";
2225
+ value: string;
2226
+ }> | undefined;
2227
+ }, {
2228
+ template: string;
2229
+ vars?: Record<string, {
2230
+ from: "header";
2231
+ name: string;
2232
+ } | {
2233
+ from: "signatureField";
2234
+ field: string;
2235
+ } | {
2236
+ from: "body";
2237
+ path: string;
2238
+ } | {
2239
+ from: "url";
2240
+ } | {
2241
+ from: "constant";
2242
+ value: string;
2243
+ }> | undefined;
2244
+ }>]>;
2245
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
2246
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2247
+ from: z.ZodEnum<["header", "body"]>;
2248
+ name: z.ZodString;
2249
+ }, "strip", z.ZodTypeAny, {
2250
+ from: "body" | "header";
2251
+ name: string;
2252
+ }, {
2253
+ from: "body" | "header";
2254
+ name: string;
2255
+ }>>;
2256
+ }, "strip", z.ZodTypeAny, {
2257
+ scheme: "asymmetric";
2258
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2259
+ encoding: "base64" | "hex";
2260
+ signatureHeader: string;
2261
+ signature?: {
2262
+ itemSeparator?: string | undefined;
2263
+ fieldSeparator?: string | undefined;
2264
+ field?: string | undefined;
2265
+ trim?: boolean | undefined;
2266
+ } | undefined;
2267
+ timestamp?: {
2268
+ source: {
2269
+ from: "header";
2270
+ name: string;
2271
+ } | {
2272
+ from: "signatureField";
2273
+ field: string;
2274
+ } | {
2275
+ from: "body";
2276
+ path: string;
2277
+ } | {
2278
+ from: "url";
2279
+ } | {
2280
+ from: "constant";
2281
+ value: string;
2282
+ };
2283
+ unit?: "milliseconds" | "seconds" | undefined;
2284
+ toleranceSeconds?: number | undefined;
2285
+ } | undefined;
2286
+ signingString: "raw" | {
2287
+ template: string;
2288
+ vars?: Record<string, {
2289
+ from: "header";
2290
+ name: string;
2291
+ } | {
2292
+ from: "signatureField";
2293
+ field: string;
2294
+ } | {
2295
+ from: "body";
2296
+ path: string;
2297
+ } | {
2298
+ from: "url";
2299
+ } | {
2300
+ from: "constant";
2301
+ value: string;
2302
+ }> | undefined;
2303
+ };
2304
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2305
+ idempotencyField?: {
2306
+ from: "body" | "header";
2307
+ name: string;
2308
+ } | undefined;
2309
+ }, {
2310
+ scheme: "asymmetric";
2311
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2312
+ encoding: "base64" | "hex";
2313
+ signatureHeader: string;
2314
+ signature?: {
2315
+ itemSeparator?: string | undefined;
2316
+ fieldSeparator?: string | undefined;
2317
+ field?: string | undefined;
2318
+ trim?: boolean | undefined;
2319
+ } | undefined;
2320
+ timestamp?: {
2321
+ source: {
2322
+ from: "header";
2323
+ name: string;
2324
+ } | {
2325
+ from: "signatureField";
2326
+ field: string;
2327
+ } | {
2328
+ from: "body";
2329
+ path: string;
2330
+ } | {
2331
+ from: "url";
2332
+ } | {
2333
+ from: "constant";
2334
+ value: string;
2335
+ };
2336
+ unit?: "milliseconds" | "seconds" | undefined;
2337
+ toleranceSeconds?: number | undefined;
2338
+ } | undefined;
2339
+ signingString: "raw" | {
2340
+ template: string;
2341
+ vars?: Record<string, {
2342
+ from: "header";
2343
+ name: string;
2344
+ } | {
2345
+ from: "signatureField";
2346
+ field: string;
2347
+ } | {
2348
+ from: "body";
2349
+ path: string;
2350
+ } | {
2351
+ from: "url";
2352
+ } | {
2353
+ from: "constant";
2354
+ value: string;
2355
+ }> | undefined;
2356
+ };
2357
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2358
+ idempotencyField?: {
2359
+ from: "body" | "header";
2360
+ name: string;
2361
+ } | undefined;
2362
+ }>]>;
2363
+ handshake: z.ZodOptional<z.ZodObject<{
2364
+ matchPath: z.ZodString;
2365
+ matchValue: z.ZodString;
2366
+ respondPath: z.ZodString;
2367
+ }, "strip", z.ZodTypeAny, {
2368
+ matchPath: string;
2369
+ matchValue: string;
2370
+ respondPath: string;
2371
+ }, {
2372
+ matchPath: string;
2373
+ matchValue: string;
2374
+ respondPath: string;
2375
+ }>>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ kind: "config";
2378
+ config: {
2379
+ scheme: "hmac";
2380
+ algorithm: "sha1" | "sha256";
2381
+ encoding: "base64" | "hex";
2382
+ signatureHeader: string;
2383
+ signature?: {
2384
+ itemSeparator?: string | undefined;
2385
+ fieldSeparator?: string | undefined;
2386
+ field?: string | undefined;
2387
+ trim?: boolean | undefined;
2388
+ } | undefined;
2389
+ timestamp?: {
2390
+ source: {
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
+ };
2405
+ unit?: "milliseconds" | "seconds" | undefined;
2406
+ toleranceSeconds?: number | undefined;
2407
+ } | undefined;
2408
+ signingString: "raw" | {
2409
+ template: string;
2410
+ vars?: Record<string, {
2411
+ from: "header";
2412
+ name: string;
2413
+ } | {
2414
+ from: "signatureField";
2415
+ field: string;
2416
+ } | {
2417
+ from: "body";
2418
+ path: string;
2419
+ } | {
2420
+ from: "url";
2421
+ } | {
2422
+ from: "constant";
2423
+ value: string;
2424
+ }> | undefined;
2425
+ };
2426
+ secret?: {
2427
+ encoding?: "base64" | "utf8" | undefined;
2428
+ stripPrefix?: string | undefined;
2429
+ } | undefined;
2430
+ idempotencyField?: {
2431
+ from: "body" | "header";
2432
+ name: string;
2433
+ } | undefined;
2434
+ formPayload?: {
2435
+ field: string;
2436
+ } | undefined;
2437
+ } | {
2438
+ scheme: "asymmetric";
2439
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2440
+ encoding: "base64" | "hex";
2441
+ signatureHeader: string;
2442
+ signature?: {
2443
+ itemSeparator?: string | undefined;
2444
+ fieldSeparator?: string | undefined;
2445
+ field?: string | undefined;
2446
+ trim?: boolean | undefined;
2447
+ } | undefined;
2448
+ timestamp?: {
2449
+ source: {
2450
+ from: "header";
2451
+ name: string;
2452
+ } | {
2453
+ from: "signatureField";
2454
+ field: string;
2455
+ } | {
2456
+ from: "body";
2457
+ path: string;
2458
+ } | {
2459
+ from: "url";
2460
+ } | {
2461
+ from: "constant";
2462
+ value: string;
2463
+ };
2464
+ unit?: "milliseconds" | "seconds" | undefined;
2465
+ toleranceSeconds?: number | undefined;
2466
+ } | undefined;
2467
+ signingString: "raw" | {
2468
+ template: string;
2469
+ vars?: Record<string, {
2470
+ from: "header";
2471
+ name: string;
2472
+ } | {
2473
+ from: "signatureField";
2474
+ field: string;
2475
+ } | {
2476
+ from: "body";
2477
+ path: string;
2478
+ } | {
2479
+ from: "url";
2480
+ } | {
2481
+ from: "constant";
2482
+ value: string;
2483
+ }> | undefined;
2484
+ };
2485
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2486
+ idempotencyField?: {
2487
+ from: "body" | "header";
2488
+ name: string;
2489
+ } | undefined;
2490
+ } | {
2491
+ scheme: "shared-secret";
2492
+ placement: "basic" | "bearer" | "body" | "header";
2493
+ fieldName?: string | undefined;
2494
+ idempotencyField?: {
2495
+ from: "body" | "header";
2496
+ name: string;
2497
+ } | undefined;
2498
+ } | {
2499
+ scheme: "url-secret";
2500
+ placement: "path" | "query";
2501
+ paramName: string;
2502
+ idempotencyField?: {
2503
+ from: "body" | "header";
2504
+ name: string;
2505
+ } | undefined;
2506
+ };
2507
+ handshake?: {
2508
+ matchPath: string;
2509
+ matchValue: string;
2510
+ respondPath: string;
2511
+ } | undefined;
2512
+ }, {
2513
+ kind: "config";
2514
+ config: {
2515
+ scheme: "hmac";
2516
+ algorithm: "sha1" | "sha256";
2517
+ encoding: "base64" | "hex";
2518
+ signatureHeader: string;
2519
+ signature?: {
2520
+ itemSeparator?: string | undefined;
2521
+ fieldSeparator?: string | undefined;
2522
+ field?: string | undefined;
2523
+ trim?: boolean | undefined;
2524
+ } | undefined;
2525
+ timestamp?: {
2526
+ source: {
2527
+ from: "header";
2528
+ name: string;
2529
+ } | {
2530
+ from: "signatureField";
2531
+ field: string;
2532
+ } | {
2533
+ from: "body";
2534
+ path: string;
2535
+ } | {
2536
+ from: "url";
2537
+ } | {
2538
+ from: "constant";
2539
+ value: string;
2540
+ };
2541
+ unit?: "milliseconds" | "seconds" | undefined;
2542
+ toleranceSeconds?: number | undefined;
2543
+ } | undefined;
2544
+ signingString: "raw" | {
2545
+ template: string;
2546
+ vars?: Record<string, {
2547
+ from: "header";
2548
+ name: string;
2549
+ } | {
2550
+ from: "signatureField";
2551
+ field: string;
2552
+ } | {
2553
+ from: "body";
2554
+ path: string;
2555
+ } | {
2556
+ from: "url";
2557
+ } | {
2558
+ from: "constant";
2559
+ value: string;
2560
+ }> | undefined;
2561
+ };
2562
+ secret?: {
2563
+ encoding?: "base64" | "utf8" | undefined;
2564
+ stripPrefix?: string | undefined;
2565
+ } | undefined;
2566
+ idempotencyField?: {
2567
+ from: "body" | "header";
2568
+ name: string;
2569
+ } | undefined;
2570
+ formPayload?: {
2571
+ field: string;
2572
+ } | undefined;
2573
+ } | {
2574
+ scheme: "asymmetric";
2575
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
2576
+ encoding: "base64" | "hex";
2577
+ signatureHeader: string;
2578
+ signature?: {
2579
+ itemSeparator?: string | undefined;
2580
+ fieldSeparator?: string | undefined;
2581
+ field?: string | undefined;
2582
+ trim?: boolean | undefined;
2583
+ } | undefined;
2584
+ timestamp?: {
2585
+ source: {
2586
+ from: "header";
2587
+ name: string;
2588
+ } | {
2589
+ from: "signatureField";
2590
+ field: string;
2591
+ } | {
2592
+ from: "body";
2593
+ path: string;
2594
+ } | {
2595
+ from: "url";
2596
+ } | {
2597
+ from: "constant";
2598
+ value: string;
2599
+ };
2600
+ unit?: "milliseconds" | "seconds" | undefined;
2601
+ toleranceSeconds?: number | undefined;
2602
+ } | undefined;
2603
+ signingString: "raw" | {
2604
+ template: string;
2605
+ vars?: Record<string, {
2606
+ from: "header";
2607
+ name: string;
2608
+ } | {
2609
+ from: "signatureField";
2610
+ field: string;
2611
+ } | {
2612
+ from: "body";
2613
+ path: string;
2614
+ } | {
2615
+ from: "url";
2616
+ } | {
2617
+ from: "constant";
2618
+ value: string;
2619
+ }> | undefined;
2620
+ };
2621
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
2622
+ idempotencyField?: {
2623
+ from: "body" | "header";
2624
+ name: string;
2625
+ } | undefined;
2626
+ } | {
2627
+ scheme: "shared-secret";
2628
+ placement: "basic" | "bearer" | "body" | "header";
2629
+ fieldName?: string | undefined;
2630
+ idempotencyField?: {
2631
+ from: "body" | "header";
2632
+ name: string;
2633
+ } | undefined;
2634
+ } | {
2635
+ scheme: "url-secret";
2636
+ placement: "path" | "query";
2637
+ paramName: string;
2638
+ idempotencyField?: {
2639
+ from: "body" | "header";
2640
+ name: string;
2641
+ } | undefined;
2642
+ };
2643
+ handshake?: {
2644
+ matchPath: string;
2645
+ matchValue: string;
2646
+ respondPath: string;
2647
+ } | undefined;
2648
+ }>, z.ZodObject<{
2649
+ kind: z.ZodLiteral<"preset">;
2650
+ preset: z.ZodString;
2651
+ config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
2652
+ scheme: z.ZodLiteral<"hmac">;
2653
+ algorithm: z.ZodEnum<["sha256", "sha1"]>;
2654
+ encoding: z.ZodEnum<["hex", "base64"]>;
2655
+ signatureHeader: z.ZodString;
2656
+ signature: z.ZodOptional<z.ZodObject<{
2657
+ itemSeparator: z.ZodOptional<z.ZodString>;
2658
+ fieldSeparator: z.ZodOptional<z.ZodString>;
2659
+ field: z.ZodOptional<z.ZodString>;
2660
+ trim: z.ZodOptional<z.ZodBoolean>;
2661
+ }, "strip", z.ZodTypeAny, {
2662
+ itemSeparator?: string | undefined;
2663
+ fieldSeparator?: string | undefined;
2664
+ field?: string | undefined;
2665
+ trim?: boolean | undefined;
2666
+ }, {
2667
+ itemSeparator?: string | undefined;
2668
+ fieldSeparator?: string | undefined;
2669
+ field?: string | undefined;
2670
+ trim?: boolean | undefined;
2671
+ }>>;
2672
+ timestamp: z.ZodOptional<z.ZodObject<{
2673
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2674
+ from: z.ZodLiteral<"header">;
2675
+ name: z.ZodString;
2676
+ }, "strip", z.ZodTypeAny, {
2677
+ from: "header";
2678
+ name: string;
2679
+ }, {
2680
+ from: "header";
2681
+ name: string;
2682
+ }>, z.ZodObject<{
2683
+ from: z.ZodLiteral<"signatureField">;
2684
+ field: z.ZodString;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ from: "signatureField";
2687
+ field: string;
2688
+ }, {
2689
+ from: "signatureField";
2690
+ field: string;
2691
+ }>, z.ZodObject<{
2692
+ from: z.ZodLiteral<"body">;
2693
+ path: z.ZodString;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ from: "body";
2696
+ path: string;
2697
+ }, {
2698
+ from: "body";
2699
+ path: string;
2700
+ }>, z.ZodObject<{
2701
+ from: z.ZodLiteral<"url">;
2702
+ }, "strip", z.ZodTypeAny, {
2703
+ from: "url";
2704
+ }, {
2705
+ from: "url";
2706
+ }>, z.ZodObject<{
2707
+ from: z.ZodLiteral<"constant">;
2708
+ value: z.ZodString;
2709
+ }, "strip", z.ZodTypeAny, {
2710
+ from: "constant";
2711
+ value: string;
2712
+ }, {
2713
+ from: "constant";
2714
+ value: string;
2715
+ }>]>;
2716
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
2717
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
2718
+ }, "strip", z.ZodTypeAny, {
2719
+ source: {
2720
+ from: "header";
2721
+ name: string;
2722
+ } | {
2723
+ from: "signatureField";
2724
+ field: string;
2725
+ } | {
2726
+ from: "body";
2727
+ path: string;
2728
+ } | {
2729
+ from: "url";
2730
+ } | {
2731
+ from: "constant";
2732
+ value: string;
2733
+ };
2734
+ unit?: "milliseconds" | "seconds" | undefined;
2735
+ toleranceSeconds?: number | undefined;
2736
+ }, {
2737
+ source: {
2738
+ from: "header";
2739
+ name: string;
2740
+ } | {
2741
+ from: "signatureField";
2742
+ field: string;
2743
+ } | {
2744
+ from: "body";
2745
+ path: string;
2746
+ } | {
2747
+ from: "url";
2748
+ } | {
2749
+ from: "constant";
2750
+ value: string;
2751
+ };
2752
+ unit?: "milliseconds" | "seconds" | undefined;
2753
+ toleranceSeconds?: number | undefined;
2754
+ }>>;
2755
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
2756
+ template: z.ZodString;
2757
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2758
+ from: z.ZodLiteral<"header">;
2759
+ name: z.ZodString;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ from: "header";
2762
+ name: string;
2763
+ }, {
2764
+ from: "header";
2765
+ name: string;
2766
+ }>, z.ZodObject<{
2767
+ from: z.ZodLiteral<"signatureField">;
2768
+ field: z.ZodString;
2769
+ }, "strip", z.ZodTypeAny, {
2770
+ from: "signatureField";
2771
+ field: string;
2772
+ }, {
2773
+ from: "signatureField";
2774
+ field: string;
2775
+ }>, z.ZodObject<{
2776
+ from: z.ZodLiteral<"body">;
2777
+ path: z.ZodString;
2778
+ }, "strip", z.ZodTypeAny, {
2779
+ from: "body";
2780
+ path: string;
2781
+ }, {
2782
+ from: "body";
2783
+ path: string;
2784
+ }>, z.ZodObject<{
2785
+ from: z.ZodLiteral<"url">;
2786
+ }, "strip", z.ZodTypeAny, {
2787
+ from: "url";
2788
+ }, {
2789
+ from: "url";
2790
+ }>, z.ZodObject<{
2791
+ from: z.ZodLiteral<"constant">;
2792
+ value: z.ZodString;
2793
+ }, "strip", z.ZodTypeAny, {
2794
+ from: "constant";
2795
+ value: string;
2796
+ }, {
2797
+ from: "constant";
2798
+ value: string;
2799
+ }>]>>>;
2800
+ }, "strip", z.ZodTypeAny, {
2801
+ template: string;
2802
+ vars?: Record<string, {
2803
+ from: "header";
2804
+ name: string;
2805
+ } | {
2806
+ from: "signatureField";
2807
+ field: string;
2808
+ } | {
2809
+ from: "body";
2810
+ path: string;
2811
+ } | {
2812
+ from: "url";
2813
+ } | {
2814
+ from: "constant";
2815
+ value: string;
2816
+ }> | undefined;
2817
+ }, {
2818
+ template: string;
2819
+ vars?: Record<string, {
2820
+ from: "header";
2821
+ name: string;
2822
+ } | {
2823
+ from: "signatureField";
2824
+ field: string;
2825
+ } | {
2826
+ from: "body";
2827
+ path: string;
2828
+ } | {
2829
+ from: "url";
2830
+ } | {
2831
+ from: "constant";
2832
+ value: string;
2833
+ }> | undefined;
2834
+ }>]>;
2835
+ secret: z.ZodOptional<z.ZodObject<{
2836
+ encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
2837
+ stripPrefix: z.ZodOptional<z.ZodString>;
2838
+ }, "strip", z.ZodTypeAny, {
2839
+ encoding?: "base64" | "utf8" | undefined;
2840
+ stripPrefix?: string | undefined;
2841
+ }, {
2842
+ encoding?: "base64" | "utf8" | undefined;
2843
+ stripPrefix?: string | undefined;
2844
+ }>>;
2845
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2846
+ from: z.ZodEnum<["header", "body"]>;
2847
+ name: z.ZodString;
2848
+ }, "strip", z.ZodTypeAny, {
2849
+ from: "body" | "header";
2850
+ name: string;
2851
+ }, {
2852
+ from: "body" | "header";
2853
+ name: string;
2854
+ }>>;
2855
+ formPayload: z.ZodOptional<z.ZodObject<{
2856
+ field: z.ZodString;
2857
+ }, "strip", z.ZodTypeAny, {
2858
+ field: string;
2859
+ }, {
2860
+ field: string;
2861
+ }>>;
2862
+ }, "strip", z.ZodTypeAny, {
2863
+ scheme: "hmac";
2864
+ algorithm: "sha1" | "sha256";
2865
+ encoding: "base64" | "hex";
2866
+ signatureHeader: string;
2867
+ signature?: {
2868
+ itemSeparator?: string | undefined;
2869
+ fieldSeparator?: string | undefined;
2870
+ field?: string | undefined;
2871
+ trim?: boolean | undefined;
2872
+ } | undefined;
2873
+ timestamp?: {
2874
+ source: {
2875
+ from: "header";
2876
+ name: string;
2877
+ } | {
2878
+ from: "signatureField";
2879
+ field: string;
2880
+ } | {
2881
+ from: "body";
2882
+ path: string;
2883
+ } | {
2884
+ from: "url";
2885
+ } | {
2886
+ from: "constant";
2887
+ value: string;
2888
+ };
2889
+ unit?: "milliseconds" | "seconds" | undefined;
2890
+ toleranceSeconds?: number | undefined;
2891
+ } | undefined;
2892
+ signingString: "raw" | {
2893
+ template: string;
2894
+ vars?: Record<string, {
2895
+ from: "header";
2896
+ name: string;
2897
+ } | {
2898
+ from: "signatureField";
2899
+ field: string;
2900
+ } | {
2901
+ from: "body";
2902
+ path: string;
2903
+ } | {
2904
+ from: "url";
2905
+ } | {
2906
+ from: "constant";
2907
+ value: string;
2908
+ }> | undefined;
2909
+ };
2910
+ secret?: {
2911
+ encoding?: "base64" | "utf8" | undefined;
2912
+ stripPrefix?: string | undefined;
2913
+ } | undefined;
2914
+ idempotencyField?: {
2915
+ from: "body" | "header";
2916
+ name: string;
2917
+ } | undefined;
2918
+ formPayload?: {
2919
+ field: string;
2920
+ } | undefined;
2921
+ }, {
2922
+ scheme: "hmac";
2923
+ algorithm: "sha1" | "sha256";
2924
+ encoding: "base64" | "hex";
2925
+ signatureHeader: string;
2926
+ signature?: {
2927
+ itemSeparator?: string | undefined;
2928
+ fieldSeparator?: string | undefined;
2929
+ field?: string | undefined;
2930
+ trim?: boolean | undefined;
2931
+ } | undefined;
2932
+ timestamp?: {
2933
+ source: {
2934
+ from: "header";
2935
+ name: string;
2936
+ } | {
2937
+ from: "signatureField";
2938
+ field: string;
2939
+ } | {
2940
+ from: "body";
2941
+ path: string;
2942
+ } | {
2943
+ from: "url";
2944
+ } | {
2945
+ from: "constant";
2946
+ value: string;
2947
+ };
2948
+ unit?: "milliseconds" | "seconds" | undefined;
2949
+ toleranceSeconds?: number | undefined;
2950
+ } | undefined;
2951
+ signingString: "raw" | {
2952
+ template: string;
2953
+ vars?: Record<string, {
2954
+ from: "header";
2955
+ name: string;
2956
+ } | {
2957
+ from: "signatureField";
2958
+ field: string;
2959
+ } | {
2960
+ from: "body";
2961
+ path: string;
2962
+ } | {
2963
+ from: "url";
2964
+ } | {
2965
+ from: "constant";
2966
+ value: string;
2967
+ }> | undefined;
2968
+ };
2969
+ secret?: {
2970
+ encoding?: "base64" | "utf8" | undefined;
2971
+ stripPrefix?: string | undefined;
2972
+ } | undefined;
2973
+ idempotencyField?: {
2974
+ from: "body" | "header";
2975
+ name: string;
2976
+ } | undefined;
2977
+ formPayload?: {
2978
+ field: string;
2979
+ } | undefined;
2980
+ }>, z.ZodObject<{
2981
+ scheme: z.ZodLiteral<"shared-secret">;
2982
+ placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
2983
+ fieldName: z.ZodOptional<z.ZodString>;
2984
+ idempotencyField: z.ZodOptional<z.ZodObject<{
2985
+ from: z.ZodEnum<["header", "body"]>;
2986
+ name: z.ZodString;
2987
+ }, "strip", z.ZodTypeAny, {
2988
+ from: "body" | "header";
2989
+ name: string;
2990
+ }, {
2991
+ from: "body" | "header";
2992
+ name: string;
2993
+ }>>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ scheme: "shared-secret";
2996
+ placement: "basic" | "bearer" | "body" | "header";
2997
+ fieldName?: string | undefined;
2998
+ idempotencyField?: {
2999
+ from: "body" | "header";
3000
+ name: string;
3001
+ } | undefined;
3002
+ }, {
3003
+ scheme: "shared-secret";
3004
+ placement: "basic" | "bearer" | "body" | "header";
3005
+ fieldName?: string | undefined;
3006
+ idempotencyField?: {
3007
+ from: "body" | "header";
3008
+ name: string;
3009
+ } | undefined;
3010
+ }>, z.ZodObject<{
3011
+ scheme: z.ZodLiteral<"url-secret">;
3012
+ placement: z.ZodEnum<["query", "path"]>;
3013
+ paramName: z.ZodString;
3014
+ idempotencyField: z.ZodOptional<z.ZodObject<{
3015
+ from: z.ZodEnum<["header", "body"]>;
3016
+ name: z.ZodString;
3017
+ }, "strip", z.ZodTypeAny, {
3018
+ from: "body" | "header";
3019
+ name: string;
3020
+ }, {
3021
+ from: "body" | "header";
3022
+ name: string;
3023
+ }>>;
3024
+ }, "strip", z.ZodTypeAny, {
3025
+ scheme: "url-secret";
3026
+ placement: "path" | "query";
3027
+ paramName: string;
3028
+ idempotencyField?: {
3029
+ from: "body" | "header";
3030
+ name: string;
3031
+ } | undefined;
3032
+ }, {
3033
+ scheme: "url-secret";
3034
+ placement: "path" | "query";
3035
+ paramName: string;
3036
+ idempotencyField?: {
3037
+ from: "body" | "header";
3038
+ name: string;
3039
+ } | undefined;
3040
+ }>, z.ZodObject<{
3041
+ scheme: z.ZodLiteral<"asymmetric">;
3042
+ algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
3043
+ encoding: z.ZodEnum<["hex", "base64"]>;
3044
+ signatureHeader: z.ZodString;
3045
+ signature: z.ZodOptional<z.ZodObject<{
3046
+ itemSeparator: z.ZodOptional<z.ZodString>;
3047
+ fieldSeparator: z.ZodOptional<z.ZodString>;
3048
+ field: z.ZodOptional<z.ZodString>;
3049
+ trim: z.ZodOptional<z.ZodBoolean>;
3050
+ }, "strip", z.ZodTypeAny, {
3051
+ itemSeparator?: string | undefined;
3052
+ fieldSeparator?: string | undefined;
3053
+ field?: string | undefined;
3054
+ trim?: boolean | undefined;
3055
+ }, {
3056
+ itemSeparator?: string | undefined;
3057
+ fieldSeparator?: string | undefined;
3058
+ field?: string | undefined;
3059
+ trim?: boolean | undefined;
3060
+ }>>;
3061
+ timestamp: z.ZodOptional<z.ZodObject<{
3062
+ source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
3063
+ from: z.ZodLiteral<"header">;
3064
+ name: z.ZodString;
3065
+ }, "strip", z.ZodTypeAny, {
3066
+ from: "header";
3067
+ name: string;
3068
+ }, {
3069
+ from: "header";
3070
+ name: string;
3071
+ }>, z.ZodObject<{
3072
+ from: z.ZodLiteral<"signatureField">;
3073
+ field: z.ZodString;
3074
+ }, "strip", z.ZodTypeAny, {
3075
+ from: "signatureField";
3076
+ field: string;
3077
+ }, {
3078
+ from: "signatureField";
3079
+ field: string;
3080
+ }>, z.ZodObject<{
3081
+ from: z.ZodLiteral<"body">;
3082
+ path: z.ZodString;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ from: "body";
3085
+ path: string;
3086
+ }, {
3087
+ from: "body";
3088
+ path: string;
3089
+ }>, z.ZodObject<{
3090
+ from: z.ZodLiteral<"url">;
3091
+ }, "strip", z.ZodTypeAny, {
3092
+ from: "url";
3093
+ }, {
3094
+ from: "url";
3095
+ }>, z.ZodObject<{
3096
+ from: z.ZodLiteral<"constant">;
3097
+ value: z.ZodString;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ from: "constant";
3100
+ value: string;
3101
+ }, {
3102
+ from: "constant";
3103
+ value: string;
3104
+ }>]>;
3105
+ unit: z.ZodOptional<z.ZodEnum<["seconds", "milliseconds"]>>;
3106
+ toleranceSeconds: z.ZodOptional<z.ZodNumber>;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ source: {
3109
+ from: "header";
3110
+ name: string;
3111
+ } | {
3112
+ from: "signatureField";
3113
+ field: string;
3114
+ } | {
3115
+ from: "body";
3116
+ path: string;
3117
+ } | {
3118
+ from: "url";
3119
+ } | {
3120
+ from: "constant";
3121
+ value: string;
3122
+ };
3123
+ unit?: "milliseconds" | "seconds" | undefined;
3124
+ toleranceSeconds?: number | undefined;
3125
+ }, {
3126
+ source: {
3127
+ from: "header";
3128
+ name: string;
3129
+ } | {
3130
+ from: "signatureField";
3131
+ field: string;
3132
+ } | {
3133
+ from: "body";
3134
+ path: string;
3135
+ } | {
3136
+ from: "url";
3137
+ } | {
3138
+ from: "constant";
3139
+ value: string;
3140
+ };
3141
+ unit?: "milliseconds" | "seconds" | undefined;
3142
+ toleranceSeconds?: number | undefined;
3143
+ }>>;
3144
+ signingString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
3145
+ template: z.ZodString;
3146
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
3147
+ from: z.ZodLiteral<"header">;
3148
+ name: z.ZodString;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ from: "header";
3151
+ name: string;
3152
+ }, {
3153
+ from: "header";
3154
+ name: string;
3155
+ }>, z.ZodObject<{
3156
+ from: z.ZodLiteral<"signatureField">;
3157
+ field: z.ZodString;
3158
+ }, "strip", z.ZodTypeAny, {
3159
+ from: "signatureField";
3160
+ field: string;
3161
+ }, {
3162
+ from: "signatureField";
3163
+ field: string;
3164
+ }>, z.ZodObject<{
3165
+ from: z.ZodLiteral<"body">;
3166
+ path: z.ZodString;
3167
+ }, "strip", z.ZodTypeAny, {
3168
+ from: "body";
3169
+ path: string;
3170
+ }, {
3171
+ from: "body";
3172
+ path: string;
3173
+ }>, z.ZodObject<{
3174
+ from: z.ZodLiteral<"url">;
3175
+ }, "strip", z.ZodTypeAny, {
3176
+ from: "url";
3177
+ }, {
3178
+ from: "url";
3179
+ }>, z.ZodObject<{
3180
+ from: z.ZodLiteral<"constant">;
3181
+ value: z.ZodString;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ from: "constant";
3184
+ value: string;
3185
+ }, {
3186
+ from: "constant";
3187
+ value: string;
3188
+ }>]>>>;
3189
+ }, "strip", z.ZodTypeAny, {
3190
+ template: string;
3191
+ vars?: Record<string, {
3192
+ from: "header";
3193
+ name: string;
3194
+ } | {
3195
+ from: "signatureField";
3196
+ field: string;
3197
+ } | {
3198
+ from: "body";
3199
+ path: string;
3200
+ } | {
3201
+ from: "url";
3202
+ } | {
3203
+ from: "constant";
3204
+ value: string;
3205
+ }> | undefined;
3206
+ }, {
3207
+ template: string;
3208
+ vars?: Record<string, {
3209
+ from: "header";
3210
+ name: string;
3211
+ } | {
3212
+ from: "signatureField";
3213
+ field: string;
3214
+ } | {
3215
+ from: "body";
3216
+ path: string;
3217
+ } | {
3218
+ from: "url";
3219
+ } | {
3220
+ from: "constant";
3221
+ value: string;
3222
+ }> | undefined;
3223
+ }>]>;
3224
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<["pem", "spki-der-base64", "raw-hex", "raw-base64"]>>;
3225
+ idempotencyField: z.ZodOptional<z.ZodObject<{
3226
+ from: z.ZodEnum<["header", "body"]>;
3227
+ name: z.ZodString;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ from: "body" | "header";
3230
+ name: string;
3231
+ }, {
3232
+ from: "body" | "header";
3233
+ name: string;
3234
+ }>>;
3235
+ }, "strip", z.ZodTypeAny, {
3236
+ scheme: "asymmetric";
3237
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3238
+ encoding: "base64" | "hex";
3239
+ signatureHeader: string;
3240
+ signature?: {
3241
+ itemSeparator?: string | undefined;
3242
+ fieldSeparator?: string | undefined;
3243
+ field?: string | undefined;
3244
+ trim?: boolean | undefined;
3245
+ } | undefined;
3246
+ timestamp?: {
3247
+ source: {
3248
+ from: "header";
3249
+ name: string;
3250
+ } | {
3251
+ from: "signatureField";
3252
+ field: string;
3253
+ } | {
3254
+ from: "body";
3255
+ path: string;
3256
+ } | {
3257
+ from: "url";
3258
+ } | {
3259
+ from: "constant";
3260
+ value: string;
3261
+ };
3262
+ unit?: "milliseconds" | "seconds" | undefined;
3263
+ toleranceSeconds?: number | undefined;
3264
+ } | undefined;
3265
+ signingString: "raw" | {
3266
+ template: string;
3267
+ vars?: Record<string, {
3268
+ from: "header";
3269
+ name: string;
3270
+ } | {
3271
+ from: "signatureField";
3272
+ field: string;
3273
+ } | {
3274
+ from: "body";
3275
+ path: string;
3276
+ } | {
3277
+ from: "url";
3278
+ } | {
3279
+ from: "constant";
3280
+ value: string;
3281
+ }> | undefined;
3282
+ };
3283
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3284
+ idempotencyField?: {
3285
+ from: "body" | "header";
3286
+ name: string;
3287
+ } | undefined;
3288
+ }, {
3289
+ scheme: "asymmetric";
3290
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3291
+ encoding: "base64" | "hex";
3292
+ signatureHeader: string;
3293
+ signature?: {
3294
+ itemSeparator?: string | undefined;
3295
+ fieldSeparator?: string | undefined;
3296
+ field?: string | undefined;
3297
+ trim?: boolean | undefined;
3298
+ } | undefined;
3299
+ timestamp?: {
3300
+ source: {
3301
+ from: "header";
3302
+ name: string;
3303
+ } | {
3304
+ from: "signatureField";
3305
+ field: string;
3306
+ } | {
3307
+ from: "body";
3308
+ path: string;
3309
+ } | {
3310
+ from: "url";
3311
+ } | {
3312
+ from: "constant";
3313
+ value: string;
3314
+ };
3315
+ unit?: "milliseconds" | "seconds" | undefined;
3316
+ toleranceSeconds?: number | undefined;
3317
+ } | undefined;
3318
+ signingString: "raw" | {
3319
+ template: string;
3320
+ vars?: Record<string, {
3321
+ from: "header";
3322
+ name: string;
3323
+ } | {
3324
+ from: "signatureField";
3325
+ field: string;
3326
+ } | {
3327
+ from: "body";
3328
+ path: string;
3329
+ } | {
3330
+ from: "url";
3331
+ } | {
3332
+ from: "constant";
3333
+ value: string;
3334
+ }> | undefined;
3335
+ };
3336
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3337
+ idempotencyField?: {
3338
+ from: "body" | "header";
3339
+ name: string;
3340
+ } | undefined;
3341
+ }>]>;
3342
+ handshake: z.ZodOptional<z.ZodObject<{
3343
+ matchPath: z.ZodString;
3344
+ matchValue: z.ZodString;
3345
+ respondPath: z.ZodString;
3346
+ }, "strip", z.ZodTypeAny, {
3347
+ matchPath: string;
3348
+ matchValue: string;
3349
+ respondPath: string;
3350
+ }, {
3351
+ matchPath: string;
3352
+ matchValue: string;
3353
+ respondPath: string;
3354
+ }>>;
3355
+ }, "strip", z.ZodTypeAny, {
3356
+ kind: "preset";
3357
+ preset: string;
3358
+ config: {
3359
+ scheme: "hmac";
3360
+ algorithm: "sha1" | "sha256";
3361
+ encoding: "base64" | "hex";
3362
+ signatureHeader: string;
3363
+ signature?: {
3364
+ itemSeparator?: string | undefined;
3365
+ fieldSeparator?: string | undefined;
3366
+ field?: string | undefined;
3367
+ trim?: boolean | undefined;
3368
+ } | undefined;
3369
+ timestamp?: {
3370
+ source: {
3371
+ from: "header";
3372
+ name: string;
3373
+ } | {
3374
+ from: "signatureField";
3375
+ field: string;
3376
+ } | {
3377
+ from: "body";
3378
+ path: string;
3379
+ } | {
3380
+ from: "url";
3381
+ } | {
3382
+ from: "constant";
3383
+ value: string;
3384
+ };
3385
+ unit?: "milliseconds" | "seconds" | undefined;
3386
+ toleranceSeconds?: number | undefined;
3387
+ } | undefined;
3388
+ signingString: "raw" | {
3389
+ template: string;
3390
+ vars?: Record<string, {
3391
+ from: "header";
3392
+ name: string;
3393
+ } | {
3394
+ from: "signatureField";
3395
+ field: string;
3396
+ } | {
3397
+ from: "body";
3398
+ path: string;
3399
+ } | {
3400
+ from: "url";
3401
+ } | {
3402
+ from: "constant";
3403
+ value: string;
3404
+ }> | undefined;
3405
+ };
3406
+ secret?: {
3407
+ encoding?: "base64" | "utf8" | undefined;
3408
+ stripPrefix?: string | undefined;
3409
+ } | undefined;
3410
+ idempotencyField?: {
3411
+ from: "body" | "header";
3412
+ name: string;
3413
+ } | undefined;
3414
+ formPayload?: {
3415
+ field: string;
3416
+ } | undefined;
3417
+ } | {
3418
+ scheme: "asymmetric";
3419
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3420
+ encoding: "base64" | "hex";
3421
+ signatureHeader: string;
3422
+ signature?: {
3423
+ itemSeparator?: string | undefined;
3424
+ fieldSeparator?: string | undefined;
3425
+ field?: string | undefined;
3426
+ trim?: boolean | undefined;
3427
+ } | undefined;
3428
+ timestamp?: {
3429
+ source: {
3430
+ from: "header";
3431
+ name: string;
3432
+ } | {
3433
+ from: "signatureField";
3434
+ field: string;
3435
+ } | {
3436
+ from: "body";
3437
+ path: string;
3438
+ } | {
3439
+ from: "url";
3440
+ } | {
3441
+ from: "constant";
3442
+ value: string;
3443
+ };
3444
+ unit?: "milliseconds" | "seconds" | undefined;
3445
+ toleranceSeconds?: number | undefined;
3446
+ } | undefined;
3447
+ signingString: "raw" | {
3448
+ template: string;
3449
+ vars?: Record<string, {
3450
+ from: "header";
3451
+ name: string;
3452
+ } | {
3453
+ from: "signatureField";
3454
+ field: string;
3455
+ } | {
3456
+ from: "body";
3457
+ path: string;
3458
+ } | {
3459
+ from: "url";
3460
+ } | {
3461
+ from: "constant";
3462
+ value: string;
3463
+ }> | undefined;
3464
+ };
3465
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3466
+ idempotencyField?: {
3467
+ from: "body" | "header";
3468
+ name: string;
3469
+ } | undefined;
3470
+ } | {
3471
+ scheme: "shared-secret";
3472
+ placement: "basic" | "bearer" | "body" | "header";
3473
+ fieldName?: string | undefined;
3474
+ idempotencyField?: {
3475
+ from: "body" | "header";
3476
+ name: string;
3477
+ } | undefined;
3478
+ } | {
3479
+ scheme: "url-secret";
3480
+ placement: "path" | "query";
3481
+ paramName: string;
3482
+ idempotencyField?: {
3483
+ from: "body" | "header";
3484
+ name: string;
3485
+ } | undefined;
3486
+ };
3487
+ handshake?: {
3488
+ matchPath: string;
3489
+ matchValue: string;
3490
+ respondPath: string;
3491
+ } | undefined;
3492
+ }, {
3493
+ kind: "preset";
3494
+ preset: string;
3495
+ config: {
3496
+ scheme: "hmac";
3497
+ algorithm: "sha1" | "sha256";
3498
+ encoding: "base64" | "hex";
3499
+ signatureHeader: string;
3500
+ signature?: {
3501
+ itemSeparator?: string | undefined;
3502
+ fieldSeparator?: string | undefined;
3503
+ field?: string | undefined;
3504
+ trim?: boolean | undefined;
3505
+ } | undefined;
3506
+ timestamp?: {
3507
+ source: {
3508
+ from: "header";
3509
+ name: string;
3510
+ } | {
3511
+ from: "signatureField";
3512
+ field: string;
3513
+ } | {
3514
+ from: "body";
3515
+ path: string;
3516
+ } | {
3517
+ from: "url";
3518
+ } | {
3519
+ from: "constant";
3520
+ value: string;
3521
+ };
3522
+ unit?: "milliseconds" | "seconds" | undefined;
3523
+ toleranceSeconds?: number | undefined;
3524
+ } | undefined;
3525
+ signingString: "raw" | {
3526
+ template: string;
3527
+ vars?: Record<string, {
3528
+ from: "header";
3529
+ name: string;
3530
+ } | {
3531
+ from: "signatureField";
3532
+ field: string;
3533
+ } | {
3534
+ from: "body";
3535
+ path: string;
3536
+ } | {
3537
+ from: "url";
3538
+ } | {
3539
+ from: "constant";
3540
+ value: string;
3541
+ }> | undefined;
3542
+ };
3543
+ secret?: {
3544
+ encoding?: "base64" | "utf8" | undefined;
3545
+ stripPrefix?: string | undefined;
3546
+ } | undefined;
3547
+ idempotencyField?: {
3548
+ from: "body" | "header";
3549
+ name: string;
3550
+ } | undefined;
3551
+ formPayload?: {
3552
+ field: string;
3553
+ } | undefined;
3554
+ } | {
3555
+ scheme: "asymmetric";
3556
+ algorithm: "ecdsa-p256" | "ed25519" | "rsa-sha256";
3557
+ encoding: "base64" | "hex";
3558
+ signatureHeader: string;
3559
+ signature?: {
3560
+ itemSeparator?: string | undefined;
3561
+ fieldSeparator?: string | undefined;
3562
+ field?: string | undefined;
3563
+ trim?: boolean | undefined;
3564
+ } | undefined;
3565
+ timestamp?: {
3566
+ source: {
3567
+ from: "header";
3568
+ name: string;
3569
+ } | {
3570
+ from: "signatureField";
3571
+ field: string;
3572
+ } | {
3573
+ from: "body";
3574
+ path: string;
3575
+ } | {
3576
+ from: "url";
3577
+ } | {
3578
+ from: "constant";
3579
+ value: string;
3580
+ };
3581
+ unit?: "milliseconds" | "seconds" | undefined;
3582
+ toleranceSeconds?: number | undefined;
3583
+ } | undefined;
3584
+ signingString: "raw" | {
3585
+ template: string;
3586
+ vars?: Record<string, {
3587
+ from: "header";
3588
+ name: string;
3589
+ } | {
3590
+ from: "signatureField";
3591
+ field: string;
3592
+ } | {
3593
+ from: "body";
3594
+ path: string;
3595
+ } | {
3596
+ from: "url";
3597
+ } | {
3598
+ from: "constant";
3599
+ value: string;
3600
+ }> | undefined;
3601
+ };
3602
+ publicKeyEncoding?: "pem" | "raw-base64" | "raw-hex" | "spki-der-base64" | undefined;
3603
+ idempotencyField?: {
3604
+ from: "body" | "header";
3605
+ name: string;
3606
+ } | undefined;
3607
+ } | {
3608
+ scheme: "shared-secret";
3609
+ placement: "basic" | "bearer" | "body" | "header";
3610
+ fieldName?: string | undefined;
3611
+ idempotencyField?: {
3612
+ from: "body" | "header";
3613
+ name: string;
3614
+ } | undefined;
3615
+ } | {
3616
+ scheme: "url-secret";
3617
+ placement: "path" | "query";
3618
+ paramName: string;
3619
+ idempotencyField?: {
3620
+ from: "body" | "header";
3621
+ name: string;
3622
+ } | undefined;
3623
+ };
3624
+ handshake?: {
3625
+ matchPath: string;
3626
+ matchValue: string;
3627
+ respondPath: string;
3628
+ } | undefined;
3629
+ }>, z.ZodObject<{
3630
+ kind: z.ZodLiteral<"bundle">;
3631
+ bundleUrl: z.ZodString;
3632
+ hash: z.ZodString;
3633
+ }, "strip", z.ZodTypeAny, {
3634
+ kind: "bundle";
3635
+ bundleUrl: string;
3636
+ hash: string;
3637
+ }, {
3638
+ kind: "bundle";
3639
+ bundleUrl: string;
3640
+ hash: string;
3641
+ }>]>;
3642
+ export type WebhookVerifierArtifact = z.infer<typeof WebhookVerifierArtifact>;
3643
+ export declare const WebhookRoutingTarget: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3644
+ type: z.ZodLiteral<"task">;
3645
+ taskId: z.ZodString;
3646
+ }, "strip", z.ZodTypeAny, {
3647
+ type: "task";
3648
+ taskId: string;
3649
+ }, {
3650
+ type: "task";
3651
+ taskId: string;
3652
+ }>, z.ZodObject<{
3653
+ type: z.ZodLiteral<"session">;
3654
+ taskIdentifier: z.ZodString;
3655
+ keyTemplate: z.ZodString;
3656
+ deliverAs: z.ZodEnum<["action", "message"]>;
3657
+ actionType: z.ZodOptional<z.ZodString>;
3658
+ connectorId: z.ZodOptional<z.ZodString>;
3659
+ triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3660
+ startOn: z.ZodOptional<z.ZodString>;
3661
+ }, "strip", z.ZodTypeAny, {
3662
+ type: "session";
3663
+ taskIdentifier: string;
3664
+ keyTemplate: string;
3665
+ deliverAs: "action" | "message";
3666
+ actionType?: string | undefined;
3667
+ connectorId?: string | undefined;
3668
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
3669
+ startOn?: string | undefined;
3670
+ }, {
3671
+ type: "session";
3672
+ taskIdentifier: string;
3673
+ keyTemplate: string;
3674
+ deliverAs: "action" | "message";
3675
+ actionType?: string | undefined;
3676
+ connectorId?: string | undefined;
3677
+ triggerConfigTemplate?: Record<string, unknown> | undefined;
3678
+ startOn?: string | undefined;
3679
+ }>]>;
3680
+ export type WebhookRoutingTarget = z.infer<typeof WebhookRoutingTarget>;
3681
+ export declare const WebhookVerifierResult: z.ZodObject<{
3682
+ ok: z.ZodBoolean;
3683
+ idempotencyKey: z.ZodString;
3684
+ parsedEvent: z.ZodOptional<z.ZodUnknown>;
3685
+ error: z.ZodOptional<z.ZodString>;
3686
+ }, "strip", z.ZodTypeAny, {
3687
+ ok: boolean;
3688
+ idempotencyKey: string;
3689
+ parsedEvent?: unknown;
3690
+ error?: string | undefined;
3691
+ }, {
3692
+ ok: boolean;
3693
+ idempotencyKey: string;
3694
+ parsedEvent?: unknown;
3695
+ error?: string | undefined;
3696
+ }>;
3697
+ export type WebhookVerifierResult = z.infer<typeof WebhookVerifierResult>;
3698
+ export type StripeWebhookEvent = {
3699
+ id: string;
3700
+ object: "event";
3701
+ type: string;
3702
+ created: number;
3703
+ data: {
3704
+ object: Record<string, unknown>;
3705
+ };
3706
+ [k: string]: unknown;
3707
+ };
3708
+ export type GitHubWebhookEvent = {
3709
+ [k: string]: unknown;
3710
+ };