@trigger.dev/core 4.5.16 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/dist/commonjs/schemas/eventFilter.d.ts +27 -105
  2. package/dist/commonjs/schemas/eventFilter.js +38 -38
  3. package/dist/commonjs/schemas/eventFilter.js.map +1 -1
  4. package/dist/commonjs/schemas/json.d.ts +3 -3
  5. package/dist/commonjs/schemas/json.js +20 -12
  6. package/dist/commonjs/schemas/json.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/core.d.ts +14 -14
  8. package/dist/commonjs/v3/apiClient/core.js +39 -18
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  11. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js +20 -0
  12. package/dist/commonjs/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  13. package/dist/commonjs/v3/apiClient/index.d.ts +82 -184
  14. package/dist/commonjs/v3/apiClient/index.js +27 -8
  15. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  16. package/dist/commonjs/v3/apiClient/stream.d.ts +4 -4
  17. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  18. package/dist/commonjs/v3/errors.d.ts +5 -4
  19. package/dist/commonjs/v3/errors.js.map +1 -1
  20. package/dist/commonjs/v3/index.d.ts +1 -1
  21. package/dist/commonjs/v3/index.js.map +1 -1
  22. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  23. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  24. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js +3 -0
  25. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  26. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +4 -0
  27. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +5 -12
  30. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  31. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  32. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +84 -67
  33. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  34. package/dist/commonjs/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  35. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +15 -110
  36. package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -16
  37. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  38. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  39. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +10 -9
  40. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  41. package/dist/commonjs/v3/schemas/api.d.ts +1869 -12681
  42. package/dist/commonjs/v3/schemas/api.js +1023 -943
  43. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  44. package/dist/commonjs/v3/schemas/build.d.ts +645 -9115
  45. package/dist/commonjs/v3/schemas/build.js +71 -71
  46. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  47. package/dist/commonjs/v3/schemas/checkpoints.d.ts +121 -461
  48. package/dist/commonjs/v3/schemas/checkpoints.js +11 -11
  49. package/dist/commonjs/v3/schemas/checkpoints.js.map +1 -1
  50. package/dist/commonjs/v3/schemas/common.d.ts +1018 -6499
  51. package/dist/commonjs/v3/schemas/common.js +225 -218
  52. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  53. package/dist/commonjs/v3/schemas/config.d.ts +3 -9
  54. package/dist/commonjs/v3/schemas/config.js +4 -4
  55. package/dist/commonjs/v3/schemas/config.js.map +1 -1
  56. package/dist/commonjs/v3/schemas/errors.d.ts +42 -173
  57. package/dist/commonjs/v3/schemas/errors.js +44 -44
  58. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  59. package/dist/commonjs/v3/schemas/eventFilter.d.ts +23 -91
  60. package/dist/commonjs/v3/schemas/eventFilter.js +35 -35
  61. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  62. package/dist/commonjs/v3/schemas/fetch.d.ts +119 -415
  63. package/dist/commonjs/v3/schemas/fetch.js +17 -14
  64. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  65. package/dist/commonjs/v3/schemas/messages.d.ts +603 -7438
  66. package/dist/commonjs/v3/schemas/messages.js +50 -50
  67. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  68. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +50 -401
  69. package/dist/commonjs/v3/schemas/openTelemetry.js +32 -32
  70. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  71. package/dist/commonjs/v3/schemas/query.d.ts +51 -273
  72. package/dist/commonjs/v3/schemas/query.js +41 -40
  73. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  74. package/dist/commonjs/v3/schemas/queues.d.ts +29 -100
  75. package/dist/commonjs/v3/schemas/queues.js +22 -22
  76. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  77. package/dist/commonjs/v3/schemas/reports.d.ts +150 -692
  78. package/dist/commonjs/v3/schemas/reports.js +55 -55
  79. package/dist/commonjs/v3/schemas/reports.js.map +1 -1
  80. package/dist/commonjs/v3/schemas/resources.d.ts +533 -5985
  81. package/dist/commonjs/v3/schemas/resources.js +49 -49
  82. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  83. package/dist/commonjs/v3/schemas/runEngine.d.ts +467 -1822
  84. package/dist/commonjs/v3/schemas/runEngine.js +113 -109
  85. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  86. package/dist/commonjs/v3/schemas/scheduleWindow.d.ts +2 -2
  87. package/dist/commonjs/v3/schemas/scheduleWindow.js +3 -3
  88. package/dist/commonjs/v3/schemas/scheduleWindow.js.map +1 -1
  89. package/dist/commonjs/v3/schemas/schemas.d.ts +788 -7456
  90. package/dist/commonjs/v3/schemas/schemas.js +133 -132
  91. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  92. package/dist/commonjs/v3/schemas/snapshotRoute.d.ts +33 -0
  93. package/dist/commonjs/v3/schemas/snapshotRoute.js +33 -0
  94. package/dist/commonjs/v3/schemas/snapshotRoute.js.map +1 -0
  95. package/dist/commonjs/v3/schemas/style.d.ts +24 -86
  96. package/dist/commonjs/v3/schemas/style.js +12 -12
  97. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  98. package/dist/commonjs/v3/schemas/tokens.d.ts +5 -31
  99. package/dist/commonjs/v3/schemas/tokens.js +10 -10
  100. package/dist/commonjs/v3/schemas/tokens.js.map +1 -1
  101. package/dist/commonjs/v3/schemas/warmStart.d.ts +2 -8
  102. package/dist/commonjs/v3/schemas/warmStart.js +4 -4
  103. package/dist/commonjs/v3/schemas/warmStart.js.map +1 -1
  104. package/dist/commonjs/v3/schemas/webhookApi.d.ts +75 -249
  105. package/dist/commonjs/v3/schemas/webhookApi.js +41 -41
  106. package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
  107. package/dist/commonjs/v3/schemas/webhookConfig.d.ts +473 -3309
  108. package/dist/commonjs/v3/schemas/webhookConfig.js +79 -78
  109. package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
  110. package/dist/commonjs/v3/schemas/webhookFilter.d.ts +16 -4
  111. package/dist/commonjs/v3/schemas/webhookFilter.js +16 -16
  112. package/dist/commonjs/v3/schemas/webhookFilter.js.map +1 -1
  113. package/dist/commonjs/v3/schemas/webhooks.d.ts +247 -2055
  114. package/dist/commonjs/v3/schemas/webhooks.js +116 -115
  115. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  116. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +19 -8
  117. package/dist/commonjs/v3/serverOnly/httpServer.js +6 -3
  118. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  119. package/dist/commonjs/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  120. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js +332 -8
  121. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  122. package/dist/commonjs/v3/sessionStreams/router.d.ts +39 -1
  123. package/dist/commonjs/v3/sessionStreams/router.js +62 -0
  124. package/dist/commonjs/v3/sessionStreams/router.js.map +1 -1
  125. package/dist/commonjs/v3/sessionStreams/wireProtocol.d.ts +15 -0
  126. package/dist/commonjs/v3/sessionStreams/wireProtocol.js +16 -1
  127. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  128. package/dist/commonjs/v3/test/test-session-stream-manager.js +5 -1
  129. package/dist/commonjs/v3/test/test-session-stream-manager.js.map +1 -1
  130. package/dist/commonjs/v3/types/schemas.d.ts +21 -1
  131. package/dist/commonjs/v3/types/schemas.js +2 -1
  132. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  133. package/dist/commonjs/v3/types/tools.d.ts +16 -5
  134. package/dist/commonjs/v3/types/tools.js +2 -2
  135. package/dist/commonjs/v3/types/tools.js.map +1 -1
  136. package/dist/commonjs/v3/utils/ioSerialization.js +3 -3
  137. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  138. package/dist/commonjs/v3/utils/zod.d.ts +8 -0
  139. package/dist/commonjs/v3/utils/zod.js +8 -0
  140. package/dist/commonjs/v3/utils/zod.js.map +1 -0
  141. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +2 -21
  142. package/dist/commonjs/v3/workloadDeploymentToken.js +10 -10
  143. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  144. package/dist/commonjs/v3/zodIpc.d.ts +6 -6
  145. package/dist/commonjs/v3/zodIpc.js +20 -18
  146. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  147. package/dist/commonjs/v3/zodMessageHandler.d.ts +14 -21
  148. package/dist/commonjs/v3/zodMessageHandler.js +20 -7
  149. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  150. package/dist/commonjs/v3/zodSocket.d.ts +11 -11
  151. package/dist/commonjs/v3/zodSocket.js +9 -8
  152. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  153. package/dist/commonjs/version.js +1 -1
  154. package/dist/esm/schemas/eventFilter.d.ts +27 -105
  155. package/dist/esm/schemas/eventFilter.js +2 -2
  156. package/dist/esm/schemas/eventFilter.js.map +1 -1
  157. package/dist/esm/schemas/json.d.ts +3 -3
  158. package/dist/esm/schemas/json.js +11 -3
  159. package/dist/esm/schemas/json.js.map +1 -1
  160. package/dist/esm/v3/apiClient/core.d.ts +14 -14
  161. package/dist/esm/v3/apiClient/core.js +38 -17
  162. package/dist/esm/v3/apiClient/core.js.map +1 -1
  163. package/dist/esm/v3/apiClient/encodeTaskIdForPath.d.ts +6 -0
  164. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js +17 -0
  165. package/dist/esm/v3/apiClient/encodeTaskIdForPath.js.map +1 -0
  166. package/dist/esm/v3/apiClient/index.d.ts +82 -184
  167. package/dist/esm/v3/apiClient/index.js +22 -4
  168. package/dist/esm/v3/apiClient/index.js.map +1 -1
  169. package/dist/esm/v3/apiClient/stream.d.ts +4 -4
  170. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  171. package/dist/esm/v3/errors.d.ts +5 -4
  172. package/dist/esm/v3/errors.js.map +1 -1
  173. package/dist/esm/v3/index.d.ts +1 -1
  174. package/dist/esm/v3/index.js.map +1 -1
  175. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js +3 -0
  176. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  177. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js +3 -0
  178. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  179. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +4 -0
  180. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  181. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +25 -114
  182. package/dist/esm/v3/runEngineWorker/supervisor/http.js +4 -11
  183. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  184. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +594 -4187
  185. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +22 -5
  186. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  187. package/dist/esm/v3/runEngineWorker/supervisor/types.d.ts +2 -0
  188. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +15 -110
  189. package/dist/esm/v3/runEngineWorker/workload/http.js +8 -16
  190. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  191. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +465 -3624
  192. package/dist/esm/v3/runEngineWorker/workload/schemas.js +5 -4
  193. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  194. package/dist/esm/v3/schemas/api.d.ts +1869 -12681
  195. package/dist/esm/v3/schemas/api.js +115 -35
  196. package/dist/esm/v3/schemas/api.js.map +1 -1
  197. package/dist/esm/v3/schemas/build.d.ts +645 -9115
  198. package/dist/esm/v3/schemas/build.js +10 -10
  199. package/dist/esm/v3/schemas/build.js.map +1 -1
  200. package/dist/esm/v3/schemas/checkpoints.d.ts +121 -461
  201. package/dist/esm/v3/schemas/checkpoints.js +1 -1
  202. package/dist/esm/v3/schemas/checkpoints.js.map +1 -1
  203. package/dist/esm/v3/schemas/common.d.ts +1018 -6499
  204. package/dist/esm/v3/schemas/common.js +17 -10
  205. package/dist/esm/v3/schemas/common.js.map +1 -1
  206. package/dist/esm/v3/schemas/config.d.ts +3 -9
  207. package/dist/esm/v3/schemas/config.js +1 -1
  208. package/dist/esm/v3/schemas/config.js.map +1 -1
  209. package/dist/esm/v3/schemas/errors.d.ts +42 -173
  210. package/dist/esm/v3/schemas/errors.js +1 -1
  211. package/dist/esm/v3/schemas/errors.js.map +1 -1
  212. package/dist/esm/v3/schemas/eventFilter.d.ts +23 -91
  213. package/dist/esm/v3/schemas/eventFilter.js +2 -2
  214. package/dist/esm/v3/schemas/eventFilter.js.map +1 -1
  215. package/dist/esm/v3/schemas/fetch.d.ts +119 -415
  216. package/dist/esm/v3/schemas/fetch.js +6 -3
  217. package/dist/esm/v3/schemas/fetch.js.map +1 -1
  218. package/dist/esm/v3/schemas/messages.d.ts +603 -7438
  219. package/dist/esm/v3/schemas/messages.js +3 -3
  220. package/dist/esm/v3/schemas/messages.js.map +1 -1
  221. package/dist/esm/v3/schemas/openTelemetry.d.ts +50 -401
  222. package/dist/esm/v3/schemas/openTelemetry.js +2 -2
  223. package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
  224. package/dist/esm/v3/schemas/query.d.ts +51 -273
  225. package/dist/esm/v3/schemas/query.js +4 -3
  226. package/dist/esm/v3/schemas/query.js.map +1 -1
  227. package/dist/esm/v3/schemas/queues.d.ts +29 -100
  228. package/dist/esm/v3/schemas/queues.js +1 -1
  229. package/dist/esm/v3/schemas/queues.js.map +1 -1
  230. package/dist/esm/v3/schemas/reports.d.ts +150 -692
  231. package/dist/esm/v3/schemas/reports.js +5 -5
  232. package/dist/esm/v3/schemas/reports.js.map +1 -1
  233. package/dist/esm/v3/schemas/resources.d.ts +533 -5985
  234. package/dist/esm/v3/schemas/resources.js +3 -3
  235. package/dist/esm/v3/schemas/resources.js.map +1 -1
  236. package/dist/esm/v3/schemas/runEngine.d.ts +467 -1822
  237. package/dist/esm/v3/schemas/runEngine.js +11 -3
  238. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  239. package/dist/esm/v3/schemas/scheduleWindow.d.ts +2 -2
  240. package/dist/esm/v3/schemas/scheduleWindow.js +1 -1
  241. package/dist/esm/v3/schemas/scheduleWindow.js.map +1 -1
  242. package/dist/esm/v3/schemas/schemas.d.ts +788 -7456
  243. package/dist/esm/v3/schemas/schemas.js +11 -10
  244. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  245. package/dist/esm/v3/schemas/snapshotRoute.d.ts +33 -0
  246. package/dist/esm/v3/schemas/snapshotRoute.js +30 -0
  247. package/dist/esm/v3/schemas/snapshotRoute.js.map +1 -0
  248. package/dist/esm/v3/schemas/style.d.ts +24 -86
  249. package/dist/esm/v3/schemas/style.js +1 -1
  250. package/dist/esm/v3/schemas/style.js.map +1 -1
  251. package/dist/esm/v3/schemas/tokens.d.ts +5 -31
  252. package/dist/esm/v3/schemas/tokens.js +1 -1
  253. package/dist/esm/v3/schemas/tokens.js.map +1 -1
  254. package/dist/esm/v3/schemas/warmStart.d.ts +2 -8
  255. package/dist/esm/v3/schemas/warmStart.js +1 -1
  256. package/dist/esm/v3/schemas/warmStart.js.map +1 -1
  257. package/dist/esm/v3/schemas/webhookApi.d.ts +75 -249
  258. package/dist/esm/v3/schemas/webhookApi.js +2 -2
  259. package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
  260. package/dist/esm/v3/schemas/webhookConfig.d.ts +473 -3309
  261. package/dist/esm/v3/schemas/webhookConfig.js +10 -9
  262. package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
  263. package/dist/esm/v3/schemas/webhookFilter.d.ts +16 -4
  264. package/dist/esm/v3/schemas/webhookFilter.js +1 -1
  265. package/dist/esm/v3/schemas/webhookFilter.js.map +1 -1
  266. package/dist/esm/v3/schemas/webhooks.d.ts +247 -2055
  267. package/dist/esm/v3/schemas/webhooks.js +3 -2
  268. package/dist/esm/v3/schemas/webhooks.js.map +1 -1
  269. package/dist/esm/v3/serverOnly/httpServer.d.ts +19 -8
  270. package/dist/esm/v3/serverOnly/httpServer.js +5 -2
  271. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  272. package/dist/esm/v3/sessionStreams/chatSnapshot.d.ts +163 -16
  273. package/dist/esm/v3/sessionStreams/chatSnapshot.js +318 -2
  274. package/dist/esm/v3/sessionStreams/chatSnapshot.js.map +1 -1
  275. package/dist/esm/v3/sessionStreams/router.d.ts +39 -1
  276. package/dist/esm/v3/sessionStreams/router.js +62 -0
  277. package/dist/esm/v3/sessionStreams/router.js.map +1 -1
  278. package/dist/esm/v3/sessionStreams/wireProtocol.d.ts +15 -0
  279. package/dist/esm/v3/sessionStreams/wireProtocol.js +15 -0
  280. package/dist/esm/v3/sessionStreams/wireProtocol.js.map +1 -1
  281. package/dist/esm/v3/test/test-session-stream-manager.js +5 -1
  282. package/dist/esm/v3/test/test-session-stream-manager.js.map +1 -1
  283. package/dist/esm/v3/types/schemas.d.ts +21 -1
  284. package/dist/esm/v3/types/schemas.js +2 -1
  285. package/dist/esm/v3/types/schemas.js.map +1 -1
  286. package/dist/esm/v3/types/tools.d.ts +16 -5
  287. package/dist/esm/v3/types/tools.js +2 -2
  288. package/dist/esm/v3/types/tools.js.map +1 -1
  289. package/dist/esm/v3/utils/ioSerialization.js +1 -1
  290. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  291. package/dist/esm/v3/utils/zod.d.ts +8 -0
  292. package/dist/esm/v3/utils/zod.js +5 -0
  293. package/dist/esm/v3/utils/zod.js.map +1 -0
  294. package/dist/esm/v3/workloadDeploymentToken.d.ts +2 -21
  295. package/dist/esm/v3/workloadDeploymentToken.js +1 -1
  296. package/dist/esm/v3/workloadDeploymentToken.js.map +1 -1
  297. package/dist/esm/v3/zodIpc.d.ts +6 -6
  298. package/dist/esm/v3/zodIpc.js +5 -3
  299. package/dist/esm/v3/zodIpc.js.map +1 -1
  300. package/dist/esm/v3/zodMessageHandler.d.ts +14 -21
  301. package/dist/esm/v3/zodMessageHandler.js +16 -3
  302. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  303. package/dist/esm/v3/zodSocket.d.ts +11 -11
  304. package/dist/esm/v3/zodSocket.js +3 -2
  305. package/dist/esm/v3/zodSocket.js.map +1 -1
  306. package/dist/esm/version.js +1 -1
  307. package/package.json +7 -3
@@ -1,253 +1,90 @@
1
- import { z } from "zod";
2
- export declare const WebhookSecretProvisioning: z.ZodEnum<["provider", "integrator", "either"]>;
1
+ import { z } from "zod/v4";
2
+ export declare const WebhookSecretProvisioning: z.ZodEnum<{
3
+ either: "either";
4
+ integrator: "integrator";
5
+ provider: "provider";
6
+ }>;
3
7
  export type WebhookSecretProvisioning = z.infer<typeof WebhookSecretProvisioning>;
4
8
  export declare const WebhookIdempotencyField: z.ZodObject<{
5
- from: z.ZodEnum<["header", "body"]>;
9
+ from: z.ZodEnum<{
10
+ body: "body";
11
+ header: "header";
12
+ }>;
6
13
  name: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- from: "body" | "header";
9
- name: string;
10
- }, {
11
- from: "body" | "header";
12
- name: string;
13
- }>;
14
+ }, z.core.$strip>;
14
15
  export type WebhookIdempotencyField = z.infer<typeof WebhookIdempotencyField>;
15
- export declare const WebhookValueSource: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
16
+ export declare const WebhookValueSource: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
16
17
  from: z.ZodLiteral<"header">;
17
18
  name: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- from: "header";
20
- name: string;
21
- }, {
22
- from: "header";
23
- name: string;
24
- }>, z.ZodObject<{
19
+ }, z.core.$strip>, z.ZodObject<{
25
20
  from: z.ZodLiteral<"signatureField">;
26
21
  field: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- from: "signatureField";
29
- field: string;
30
- }, {
31
- from: "signatureField";
32
- field: string;
33
- }>, z.ZodObject<{
22
+ }, z.core.$strip>, z.ZodObject<{
34
23
  from: z.ZodLiteral<"body">;
35
24
  path: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- from: "body";
38
- path: string;
39
- }, {
40
- from: "body";
41
- path: string;
42
- }>, z.ZodObject<{
25
+ }, z.core.$strip>, z.ZodObject<{
43
26
  from: z.ZodLiteral<"url">;
44
- }, "strip", z.ZodTypeAny, {
45
- from: "url";
46
- }, {
47
- from: "url";
48
- }>, z.ZodObject<{
27
+ }, z.core.$strip>, z.ZodObject<{
49
28
  from: z.ZodLiteral<"constant">;
50
29
  value: z.ZodString;
51
- }, "strip", z.ZodTypeAny, {
52
- from: "constant";
53
- value: string;
54
- }, {
55
- from: "constant";
56
- value: string;
57
- }>]>;
30
+ }, z.core.$strip>]>;
58
31
  export type WebhookValueSource = z.infer<typeof WebhookValueSource>;
59
32
  export declare const WebhookSignatureExtraction: z.ZodObject<{
60
33
  itemSeparator: z.ZodOptional<z.ZodString>;
61
34
  fieldSeparator: z.ZodOptional<z.ZodString>;
62
35
  field: z.ZodOptional<z.ZodString>;
63
36
  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
- }>;
37
+ }, z.core.$strip>;
75
38
  export type WebhookSignatureExtraction = z.infer<typeof WebhookSignatureExtraction>;
76
39
  export declare const WebhookTimestampConfig: z.ZodObject<{
77
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
40
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
78
41
  from: z.ZodLiteral<"header">;
79
42
  name: z.ZodString;
80
- }, "strip", z.ZodTypeAny, {
81
- from: "header";
82
- name: string;
83
- }, {
84
- from: "header";
85
- name: string;
86
- }>, z.ZodObject<{
43
+ }, z.core.$strip>, z.ZodObject<{
87
44
  from: z.ZodLiteral<"signatureField">;
88
45
  field: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- from: "signatureField";
91
- field: string;
92
- }, {
93
- from: "signatureField";
94
- field: string;
95
- }>, z.ZodObject<{
46
+ }, z.core.$strip>, z.ZodObject<{
96
47
  from: z.ZodLiteral<"body">;
97
48
  path: z.ZodString;
98
- }, "strip", z.ZodTypeAny, {
99
- from: "body";
100
- path: string;
101
- }, {
102
- from: "body";
103
- path: string;
104
- }>, z.ZodObject<{
49
+ }, z.core.$strip>, z.ZodObject<{
105
50
  from: z.ZodLiteral<"url">;
106
- }, "strip", z.ZodTypeAny, {
107
- from: "url";
108
- }, {
109
- from: "url";
110
- }>, z.ZodObject<{
51
+ }, z.core.$strip>, z.ZodObject<{
111
52
  from: z.ZodLiteral<"constant">;
112
53
  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"]>>;
54
+ }, z.core.$strip>]>;
55
+ unit: z.ZodOptional<z.ZodEnum<{
56
+ milliseconds: "milliseconds";
57
+ seconds: "seconds";
58
+ }>>;
121
59
  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
- }>;
60
+ }, z.core.$strip>;
159
61
  export type WebhookTimestampConfig = z.infer<typeof WebhookTimestampConfig>;
160
62
  export declare const WebhookSecretTransform: z.ZodObject<{
161
- encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
63
+ encoding: z.ZodOptional<z.ZodEnum<{
64
+ base64: "base64";
65
+ utf8: "utf8";
66
+ }>>;
162
67
  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
- }>;
68
+ }, z.core.$strip>;
170
69
  export type WebhookSecretTransform = z.infer<typeof WebhookSecretTransform>;
171
- export declare const WebhookSigningString: z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodObject<{
70
+ export declare const WebhookSigningString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
172
71
  template: z.ZodString;
173
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
72
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
174
73
  from: z.ZodLiteral<"header">;
175
74
  name: z.ZodString;
176
- }, "strip", z.ZodTypeAny, {
177
- from: "header";
178
- name: string;
179
- }, {
180
- from: "header";
181
- name: string;
182
- }>, z.ZodObject<{
75
+ }, z.core.$strip>, z.ZodObject<{
183
76
  from: z.ZodLiteral<"signatureField">;
184
77
  field: z.ZodString;
185
- }, "strip", z.ZodTypeAny, {
186
- from: "signatureField";
187
- field: string;
188
- }, {
189
- from: "signatureField";
190
- field: string;
191
- }>, z.ZodObject<{
78
+ }, z.core.$strip>, z.ZodObject<{
192
79
  from: z.ZodLiteral<"body">;
193
80
  path: z.ZodString;
194
- }, "strip", z.ZodTypeAny, {
195
- from: "body";
196
- path: string;
197
- }, {
198
- from: "body";
199
- path: string;
200
- }>, z.ZodObject<{
81
+ }, z.core.$strip>, z.ZodObject<{
201
82
  from: z.ZodLiteral<"url">;
202
- }, "strip", z.ZodTypeAny, {
203
- from: "url";
204
- }, {
205
- from: "url";
206
- }>, z.ZodObject<{
83
+ }, z.core.$strip>, z.ZodObject<{
207
84
  from: z.ZodLiteral<"constant">;
208
85
  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
- }>]>;
86
+ }, z.core.$strip>]>>>;
87
+ }, z.core.$strip>]>;
251
88
  export type WebhookSigningString = z.infer<typeof WebhookSigningString>;
252
89
  /**
253
90
  * Body-parsing hint. Some providers send an event as JSON but a SECOND kind of callback (e.g. Slack
@@ -257,3443 +94,770 @@ export type WebhookSigningString = z.infer<typeof WebhookSigningString>;
257
94
  */
258
95
  export declare const WebhookFormPayload: z.ZodObject<{
259
96
  field: z.ZodString;
260
- }, "strip", z.ZodTypeAny, {
261
- field: string;
262
- }, {
263
- field: string;
264
- }>;
97
+ }, z.core.$strip>;
265
98
  export type WebhookFormPayload = z.infer<typeof WebhookFormPayload>;
266
99
  export declare const WebhookHmacConfig: z.ZodObject<{
267
100
  scheme: z.ZodLiteral<"hmac">;
268
- algorithm: z.ZodEnum<["sha256", "sha1"]>;
269
- encoding: z.ZodEnum<["hex", "base64"]>;
101
+ algorithm: z.ZodEnum<{
102
+ sha1: "sha1";
103
+ sha256: "sha256";
104
+ }>;
105
+ encoding: z.ZodEnum<{
106
+ base64: "base64";
107
+ hex: "hex";
108
+ }>;
270
109
  signatureHeader: z.ZodString;
271
110
  signature: z.ZodOptional<z.ZodObject<{
272
111
  itemSeparator: z.ZodOptional<z.ZodString>;
273
112
  fieldSeparator: z.ZodOptional<z.ZodString>;
274
113
  field: z.ZodOptional<z.ZodString>;
275
114
  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
- }>>;
115
+ }, z.core.$strip>>;
287
116
  timestamp: z.ZodOptional<z.ZodObject<{
288
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
117
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
289
118
  from: z.ZodLiteral<"header">;
290
119
  name: z.ZodString;
291
- }, "strip", z.ZodTypeAny, {
292
- from: "header";
293
- name: string;
294
- }, {
295
- from: "header";
296
- name: string;
297
- }>, z.ZodObject<{
120
+ }, z.core.$strip>, z.ZodObject<{
298
121
  from: z.ZodLiteral<"signatureField">;
299
122
  field: z.ZodString;
300
- }, "strip", z.ZodTypeAny, {
301
- from: "signatureField";
302
- field: string;
303
- }, {
304
- from: "signatureField";
305
- field: string;
306
- }>, z.ZodObject<{
123
+ }, z.core.$strip>, z.ZodObject<{
307
124
  from: z.ZodLiteral<"body">;
308
125
  path: z.ZodString;
309
- }, "strip", z.ZodTypeAny, {
310
- from: "body";
311
- path: string;
312
- }, {
313
- from: "body";
314
- path: string;
315
- }>, z.ZodObject<{
126
+ }, z.core.$strip>, z.ZodObject<{
316
127
  from: z.ZodLiteral<"url">;
317
- }, "strip", z.ZodTypeAny, {
318
- from: "url";
319
- }, {
320
- from: "url";
321
- }>, z.ZodObject<{
128
+ }, z.core.$strip>, z.ZodObject<{
322
129
  from: z.ZodLiteral<"constant">;
323
130
  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"]>>;
131
+ }, z.core.$strip>]>;
132
+ unit: z.ZodOptional<z.ZodEnum<{
133
+ milliseconds: "milliseconds";
134
+ seconds: "seconds";
135
+ }>>;
332
136
  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<{
137
+ }, z.core.$strip>>;
138
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
371
139
  template: z.ZodString;
372
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
140
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
373
141
  from: z.ZodLiteral<"header">;
374
142
  name: z.ZodString;
375
- }, "strip", z.ZodTypeAny, {
376
- from: "header";
377
- name: string;
378
- }, {
379
- from: "header";
380
- name: string;
381
- }>, z.ZodObject<{
143
+ }, z.core.$strip>, z.ZodObject<{
382
144
  from: z.ZodLiteral<"signatureField">;
383
145
  field: z.ZodString;
384
- }, "strip", z.ZodTypeAny, {
385
- from: "signatureField";
386
- field: string;
387
- }, {
388
- from: "signatureField";
389
- field: string;
390
- }>, z.ZodObject<{
146
+ }, z.core.$strip>, z.ZodObject<{
391
147
  from: z.ZodLiteral<"body">;
392
148
  path: z.ZodString;
393
- }, "strip", z.ZodTypeAny, {
394
- from: "body";
395
- path: string;
396
- }, {
397
- from: "body";
398
- path: string;
399
- }>, z.ZodObject<{
149
+ }, z.core.$strip>, z.ZodObject<{
400
150
  from: z.ZodLiteral<"url">;
401
- }, "strip", z.ZodTypeAny, {
402
- from: "url";
403
- }, {
404
- from: "url";
405
- }>, z.ZodObject<{
151
+ }, z.core.$strip>, z.ZodObject<{
406
152
  from: z.ZodLiteral<"constant">;
407
153
  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
- }>]>;
154
+ }, z.core.$strip>]>>>;
155
+ }, z.core.$strip>]>;
450
156
  secret: z.ZodOptional<z.ZodObject<{
451
- encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
157
+ encoding: z.ZodOptional<z.ZodEnum<{
158
+ base64: "base64";
159
+ utf8: "utf8";
160
+ }>>;
452
161
  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
- }>>;
162
+ }, z.core.$strip>>;
460
163
  idempotencyField: z.ZodOptional<z.ZodObject<{
461
- from: z.ZodEnum<["header", "body"]>;
164
+ from: z.ZodEnum<{
165
+ body: "body";
166
+ header: "header";
167
+ }>;
462
168
  name: z.ZodString;
463
- }, "strip", z.ZodTypeAny, {
464
- from: "body" | "header";
465
- name: string;
466
- }, {
467
- from: "body" | "header";
468
- name: string;
469
- }>>;
169
+ }, z.core.$strip>>;
470
170
  formPayload: z.ZodOptional<z.ZodObject<{
471
171
  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
- }>;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$strip>;
596
174
  export type WebhookHmacConfig = z.infer<typeof WebhookHmacConfig>;
597
175
  export declare const WebhookAsymmetricConfig: z.ZodObject<{
598
176
  scheme: z.ZodLiteral<"asymmetric">;
599
- algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
600
- encoding: z.ZodEnum<["hex", "base64"]>;
177
+ algorithm: z.ZodEnum<{
178
+ "ecdsa-p256": "ecdsa-p256";
179
+ ed25519: "ed25519";
180
+ "rsa-sha256": "rsa-sha256";
181
+ }>;
182
+ encoding: z.ZodEnum<{
183
+ base64: "base64";
184
+ hex: "hex";
185
+ }>;
601
186
  signatureHeader: z.ZodString;
602
187
  signature: z.ZodOptional<z.ZodObject<{
603
188
  itemSeparator: z.ZodOptional<z.ZodString>;
604
189
  fieldSeparator: z.ZodOptional<z.ZodString>;
605
190
  field: z.ZodOptional<z.ZodString>;
606
191
  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
- }>>;
192
+ }, z.core.$strip>>;
618
193
  timestamp: z.ZodOptional<z.ZodObject<{
619
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
194
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
620
195
  from: z.ZodLiteral<"header">;
621
196
  name: z.ZodString;
622
- }, "strip", z.ZodTypeAny, {
623
- from: "header";
624
- name: string;
625
- }, {
626
- from: "header";
627
- name: string;
628
- }>, z.ZodObject<{
197
+ }, z.core.$strip>, z.ZodObject<{
629
198
  from: z.ZodLiteral<"signatureField">;
630
199
  field: z.ZodString;
631
- }, "strip", z.ZodTypeAny, {
632
- from: "signatureField";
633
- field: string;
634
- }, {
635
- from: "signatureField";
636
- field: string;
637
- }>, z.ZodObject<{
200
+ }, z.core.$strip>, z.ZodObject<{
638
201
  from: z.ZodLiteral<"body">;
639
202
  path: z.ZodString;
640
- }, "strip", z.ZodTypeAny, {
641
- from: "body";
642
- path: string;
643
- }, {
644
- from: "body";
645
- path: string;
646
- }>, z.ZodObject<{
203
+ }, z.core.$strip>, z.ZodObject<{
647
204
  from: z.ZodLiteral<"url">;
648
- }, "strip", z.ZodTypeAny, {
649
- from: "url";
650
- }, {
651
- from: "url";
652
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
653
206
  from: z.ZodLiteral<"constant">;
654
207
  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"]>>;
208
+ }, z.core.$strip>]>;
209
+ unit: z.ZodOptional<z.ZodEnum<{
210
+ milliseconds: "milliseconds";
211
+ seconds: "seconds";
212
+ }>>;
663
213
  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<{
214
+ }, z.core.$strip>>;
215
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
702
216
  template: z.ZodString;
703
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
217
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
704
218
  from: z.ZodLiteral<"header">;
705
219
  name: z.ZodString;
706
- }, "strip", z.ZodTypeAny, {
707
- from: "header";
708
- name: string;
709
- }, {
710
- from: "header";
711
- name: string;
712
- }>, z.ZodObject<{
220
+ }, z.core.$strip>, z.ZodObject<{
713
221
  from: z.ZodLiteral<"signatureField">;
714
222
  field: z.ZodString;
715
- }, "strip", z.ZodTypeAny, {
716
- from: "signatureField";
717
- field: string;
718
- }, {
719
- from: "signatureField";
720
- field: string;
721
- }>, z.ZodObject<{
223
+ }, z.core.$strip>, z.ZodObject<{
722
224
  from: z.ZodLiteral<"body">;
723
225
  path: z.ZodString;
724
- }, "strip", z.ZodTypeAny, {
725
- from: "body";
726
- path: string;
727
- }, {
728
- from: "body";
729
- path: string;
730
- }>, z.ZodObject<{
226
+ }, z.core.$strip>, z.ZodObject<{
731
227
  from: z.ZodLiteral<"url">;
732
- }, "strip", z.ZodTypeAny, {
733
- from: "url";
734
- }, {
735
- from: "url";
736
- }>, z.ZodObject<{
228
+ }, z.core.$strip>, z.ZodObject<{
737
229
  from: z.ZodLiteral<"constant">;
738
230
  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"]>>;
231
+ }, z.core.$strip>]>>>;
232
+ }, z.core.$strip>]>;
233
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<{
234
+ pem: "pem";
235
+ "raw-base64": "raw-base64";
236
+ "raw-hex": "raw-hex";
237
+ "spki-der-base64": "spki-der-base64";
238
+ }>>;
782
239
  idempotencyField: z.ZodOptional<z.ZodObject<{
783
- from: z.ZodEnum<["header", "body"]>;
240
+ from: z.ZodEnum<{
241
+ body: "body";
242
+ header: "header";
243
+ }>;
784
244
  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
- }>;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$strip>;
899
247
  export type WebhookAsymmetricConfig = z.infer<typeof WebhookAsymmetricConfig>;
900
248
  export declare const WebhookSharedSecretConfig: z.ZodObject<{
901
249
  scheme: z.ZodLiteral<"shared-secret">;
902
- placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
250
+ placement: z.ZodEnum<{
251
+ basic: "basic";
252
+ bearer: "bearer";
253
+ body: "body";
254
+ header: "header";
255
+ }>;
903
256
  fieldName: z.ZodOptional<z.ZodString>;
904
257
  idempotencyField: z.ZodOptional<z.ZodObject<{
905
- from: z.ZodEnum<["header", "body"]>;
258
+ from: z.ZodEnum<{
259
+ body: "body";
260
+ header: "header";
261
+ }>;
906
262
  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
- }>;
263
+ }, z.core.$strip>>;
264
+ }, z.core.$strip>;
931
265
  export type WebhookSharedSecretConfig = z.infer<typeof WebhookSharedSecretConfig>;
932
266
  export declare const WebhookUrlSecretConfig: z.ZodObject<{
933
267
  scheme: z.ZodLiteral<"url-secret">;
934
- placement: z.ZodEnum<["query", "path"]>;
268
+ placement: z.ZodEnum<{
269
+ path: "path";
270
+ query: "query";
271
+ }>;
935
272
  paramName: z.ZodString;
936
273
  idempotencyField: z.ZodOptional<z.ZodObject<{
937
- from: z.ZodEnum<["header", "body"]>;
274
+ from: z.ZodEnum<{
275
+ body: "body";
276
+ header: "header";
277
+ }>;
938
278
  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
- }>;
279
+ }, z.core.$strip>>;
280
+ }, z.core.$strip>;
963
281
  export type WebhookUrlSecretConfig = z.infer<typeof WebhookUrlSecretConfig>;
964
- export declare const WebhookVerifierConfig: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
282
+ export declare const WebhookVerifierConfig: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
965
283
  scheme: z.ZodLiteral<"hmac">;
966
- algorithm: z.ZodEnum<["sha256", "sha1"]>;
967
- encoding: z.ZodEnum<["hex", "base64"]>;
284
+ algorithm: z.ZodEnum<{
285
+ sha1: "sha1";
286
+ sha256: "sha256";
287
+ }>;
288
+ encoding: z.ZodEnum<{
289
+ base64: "base64";
290
+ hex: "hex";
291
+ }>;
968
292
  signatureHeader: z.ZodString;
969
293
  signature: z.ZodOptional<z.ZodObject<{
970
294
  itemSeparator: z.ZodOptional<z.ZodString>;
971
295
  fieldSeparator: z.ZodOptional<z.ZodString>;
972
296
  field: z.ZodOptional<z.ZodString>;
973
297
  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
- }>>;
298
+ }, z.core.$strip>>;
985
299
  timestamp: z.ZodOptional<z.ZodObject<{
986
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
300
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
987
301
  from: z.ZodLiteral<"header">;
988
302
  name: z.ZodString;
989
- }, "strip", z.ZodTypeAny, {
990
- from: "header";
991
- name: string;
992
- }, {
993
- from: "header";
994
- name: string;
995
- }>, z.ZodObject<{
303
+ }, z.core.$strip>, z.ZodObject<{
996
304
  from: z.ZodLiteral<"signatureField">;
997
305
  field: z.ZodString;
998
- }, "strip", z.ZodTypeAny, {
999
- from: "signatureField";
1000
- field: string;
1001
- }, {
1002
- from: "signatureField";
1003
- field: string;
1004
- }>, z.ZodObject<{
306
+ }, z.core.$strip>, z.ZodObject<{
1005
307
  from: z.ZodLiteral<"body">;
1006
308
  path: z.ZodString;
1007
- }, "strip", z.ZodTypeAny, {
1008
- from: "body";
1009
- path: string;
1010
- }, {
1011
- from: "body";
1012
- path: string;
1013
- }>, z.ZodObject<{
309
+ }, z.core.$strip>, z.ZodObject<{
1014
310
  from: z.ZodLiteral<"url">;
1015
- }, "strip", z.ZodTypeAny, {
1016
- from: "url";
1017
- }, {
1018
- from: "url";
1019
- }>, z.ZodObject<{
311
+ }, z.core.$strip>, z.ZodObject<{
1020
312
  from: z.ZodLiteral<"constant">;
1021
313
  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"]>>;
314
+ }, z.core.$strip>]>;
315
+ unit: z.ZodOptional<z.ZodEnum<{
316
+ milliseconds: "milliseconds";
317
+ seconds: "seconds";
318
+ }>>;
1030
319
  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<{
320
+ }, z.core.$strip>>;
321
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
1069
322
  template: z.ZodString;
1070
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
323
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1071
324
  from: z.ZodLiteral<"header">;
1072
325
  name: z.ZodString;
1073
- }, "strip", z.ZodTypeAny, {
1074
- from: "header";
1075
- name: string;
1076
- }, {
1077
- from: "header";
1078
- name: string;
1079
- }>, z.ZodObject<{
326
+ }, z.core.$strip>, z.ZodObject<{
1080
327
  from: z.ZodLiteral<"signatureField">;
1081
328
  field: z.ZodString;
1082
- }, "strip", z.ZodTypeAny, {
1083
- from: "signatureField";
1084
- field: string;
1085
- }, {
1086
- from: "signatureField";
1087
- field: string;
1088
- }>, z.ZodObject<{
329
+ }, z.core.$strip>, z.ZodObject<{
1089
330
  from: z.ZodLiteral<"body">;
1090
331
  path: z.ZodString;
1091
- }, "strip", z.ZodTypeAny, {
1092
- from: "body";
1093
- path: string;
1094
- }, {
1095
- from: "body";
1096
- path: string;
1097
- }>, z.ZodObject<{
332
+ }, z.core.$strip>, z.ZodObject<{
1098
333
  from: z.ZodLiteral<"url">;
1099
- }, "strip", z.ZodTypeAny, {
1100
- from: "url";
1101
- }, {
1102
- from: "url";
1103
- }>, z.ZodObject<{
334
+ }, z.core.$strip>, z.ZodObject<{
1104
335
  from: z.ZodLiteral<"constant">;
1105
336
  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
- }>]>;
337
+ }, z.core.$strip>]>>>;
338
+ }, z.core.$strip>]>;
1148
339
  secret: z.ZodOptional<z.ZodObject<{
1149
- encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
340
+ encoding: z.ZodOptional<z.ZodEnum<{
341
+ base64: "base64";
342
+ utf8: "utf8";
343
+ }>>;
1150
344
  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
- }>>;
345
+ }, z.core.$strip>>;
1158
346
  idempotencyField: z.ZodOptional<z.ZodObject<{
1159
- from: z.ZodEnum<["header", "body"]>;
347
+ from: z.ZodEnum<{
348
+ body: "body";
349
+ header: "header";
350
+ }>;
1160
351
  name: z.ZodString;
1161
- }, "strip", z.ZodTypeAny, {
1162
- from: "body" | "header";
1163
- name: string;
1164
- }, {
1165
- from: "body" | "header";
1166
- name: string;
1167
- }>>;
352
+ }, z.core.$strip>>;
1168
353
  formPayload: z.ZodOptional<z.ZodObject<{
1169
354
  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<{
355
+ }, z.core.$strip>>;
356
+ }, z.core.$strip>, z.ZodObject<{
1294
357
  scheme: z.ZodLiteral<"shared-secret">;
1295
- placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
358
+ placement: z.ZodEnum<{
359
+ basic: "basic";
360
+ bearer: "bearer";
361
+ body: "body";
362
+ header: "header";
363
+ }>;
1296
364
  fieldName: z.ZodOptional<z.ZodString>;
1297
365
  idempotencyField: z.ZodOptional<z.ZodObject<{
1298
- from: z.ZodEnum<["header", "body"]>;
366
+ from: z.ZodEnum<{
367
+ body: "body";
368
+ header: "header";
369
+ }>;
1299
370
  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<{
371
+ }, z.core.$strip>>;
372
+ }, z.core.$strip>, z.ZodObject<{
1324
373
  scheme: z.ZodLiteral<"url-secret">;
1325
- placement: z.ZodEnum<["query", "path"]>;
374
+ placement: z.ZodEnum<{
375
+ path: "path";
376
+ query: "query";
377
+ }>;
1326
378
  paramName: z.ZodString;
1327
379
  idempotencyField: z.ZodOptional<z.ZodObject<{
1328
- from: z.ZodEnum<["header", "body"]>;
380
+ from: z.ZodEnum<{
381
+ body: "body";
382
+ header: "header";
383
+ }>;
1329
384
  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<{
385
+ }, z.core.$strip>>;
386
+ }, z.core.$strip>, z.ZodObject<{
1354
387
  scheme: z.ZodLiteral<"asymmetric">;
1355
- algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
1356
- encoding: z.ZodEnum<["hex", "base64"]>;
388
+ algorithm: z.ZodEnum<{
389
+ "ecdsa-p256": "ecdsa-p256";
390
+ ed25519: "ed25519";
391
+ "rsa-sha256": "rsa-sha256";
392
+ }>;
393
+ encoding: z.ZodEnum<{
394
+ base64: "base64";
395
+ hex: "hex";
396
+ }>;
1357
397
  signatureHeader: z.ZodString;
1358
398
  signature: z.ZodOptional<z.ZodObject<{
1359
399
  itemSeparator: z.ZodOptional<z.ZodString>;
1360
400
  fieldSeparator: z.ZodOptional<z.ZodString>;
1361
401
  field: z.ZodOptional<z.ZodString>;
1362
402
  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
- }>>;
403
+ }, z.core.$strip>>;
1374
404
  timestamp: z.ZodOptional<z.ZodObject<{
1375
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
405
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1376
406
  from: z.ZodLiteral<"header">;
1377
407
  name: z.ZodString;
1378
- }, "strip", z.ZodTypeAny, {
1379
- from: "header";
1380
- name: string;
1381
- }, {
1382
- from: "header";
1383
- name: string;
1384
- }>, z.ZodObject<{
408
+ }, z.core.$strip>, z.ZodObject<{
1385
409
  from: z.ZodLiteral<"signatureField">;
1386
410
  field: z.ZodString;
1387
- }, "strip", z.ZodTypeAny, {
1388
- from: "signatureField";
1389
- field: string;
1390
- }, {
1391
- from: "signatureField";
1392
- field: string;
1393
- }>, z.ZodObject<{
411
+ }, z.core.$strip>, z.ZodObject<{
1394
412
  from: z.ZodLiteral<"body">;
1395
413
  path: z.ZodString;
1396
- }, "strip", z.ZodTypeAny, {
1397
- from: "body";
1398
- path: string;
1399
- }, {
1400
- from: "body";
1401
- path: string;
1402
- }>, z.ZodObject<{
414
+ }, z.core.$strip>, z.ZodObject<{
1403
415
  from: z.ZodLiteral<"url">;
1404
- }, "strip", z.ZodTypeAny, {
1405
- from: "url";
1406
- }, {
1407
- from: "url";
1408
- }>, z.ZodObject<{
416
+ }, z.core.$strip>, z.ZodObject<{
1409
417
  from: z.ZodLiteral<"constant">;
1410
418
  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"]>>;
419
+ }, z.core.$strip>]>;
420
+ unit: z.ZodOptional<z.ZodEnum<{
421
+ milliseconds: "milliseconds";
422
+ seconds: "seconds";
423
+ }>>;
1419
424
  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<{
425
+ }, z.core.$strip>>;
426
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
1458
427
  template: z.ZodString;
1459
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
428
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1460
429
  from: z.ZodLiteral<"header">;
1461
430
  name: z.ZodString;
1462
- }, "strip", z.ZodTypeAny, {
1463
- from: "header";
1464
- name: string;
1465
- }, {
1466
- from: "header";
1467
- name: string;
1468
- }>, z.ZodObject<{
431
+ }, z.core.$strip>, z.ZodObject<{
1469
432
  from: z.ZodLiteral<"signatureField">;
1470
433
  field: z.ZodString;
1471
- }, "strip", z.ZodTypeAny, {
1472
- from: "signatureField";
1473
- field: string;
1474
- }, {
1475
- from: "signatureField";
1476
- field: string;
1477
- }>, z.ZodObject<{
434
+ }, z.core.$strip>, z.ZodObject<{
1478
435
  from: z.ZodLiteral<"body">;
1479
436
  path: z.ZodString;
1480
- }, "strip", z.ZodTypeAny, {
1481
- from: "body";
1482
- path: string;
1483
- }, {
1484
- from: "body";
1485
- path: string;
1486
- }>, z.ZodObject<{
437
+ }, z.core.$strip>, z.ZodObject<{
1487
438
  from: z.ZodLiteral<"url">;
1488
- }, "strip", z.ZodTypeAny, {
1489
- from: "url";
1490
- }, {
1491
- from: "url";
1492
- }>, z.ZodObject<{
439
+ }, z.core.$strip>, z.ZodObject<{
1493
440
  from: z.ZodLiteral<"constant">;
1494
441
  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"]>>;
442
+ }, z.core.$strip>]>>>;
443
+ }, z.core.$strip>]>;
444
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<{
445
+ pem: "pem";
446
+ "raw-base64": "raw-base64";
447
+ "raw-hex": "raw-hex";
448
+ "spki-der-base64": "spki-der-base64";
449
+ }>>;
1538
450
  idempotencyField: z.ZodOptional<z.ZodObject<{
1539
- from: z.ZodEnum<["header", "body"]>;
451
+ from: z.ZodEnum<{
452
+ body: "body";
453
+ header: "header";
454
+ }>;
1540
455
  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
- }>]>;
456
+ }, z.core.$strip>>;
457
+ }, z.core.$strip>]>;
1655
458
  export type WebhookVerifierConfig = z.infer<typeof WebhookVerifierConfig>;
1656
459
  export declare const WebhookHandshakeConfig: z.ZodObject<{
1657
460
  matchPath: z.ZodString;
1658
461
  matchValue: z.ZodString;
1659
462
  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
- }>;
463
+ }, z.core.$strip>;
1669
464
  export type WebhookHandshakeConfig = z.infer<typeof WebhookHandshakeConfig>;
1670
- export declare const WebhookVerifierArtifact: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
465
+ export declare const WebhookVerifierArtifact: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1671
466
  kind: z.ZodLiteral<"config">;
1672
- config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
467
+ config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1673
468
  scheme: z.ZodLiteral<"hmac">;
1674
- algorithm: z.ZodEnum<["sha256", "sha1"]>;
1675
- encoding: z.ZodEnum<["hex", "base64"]>;
469
+ algorithm: z.ZodEnum<{
470
+ sha1: "sha1";
471
+ sha256: "sha256";
472
+ }>;
473
+ encoding: z.ZodEnum<{
474
+ base64: "base64";
475
+ hex: "hex";
476
+ }>;
1676
477
  signatureHeader: z.ZodString;
1677
478
  signature: z.ZodOptional<z.ZodObject<{
1678
479
  itemSeparator: z.ZodOptional<z.ZodString>;
1679
480
  fieldSeparator: z.ZodOptional<z.ZodString>;
1680
481
  field: z.ZodOptional<z.ZodString>;
1681
482
  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
- }>>;
483
+ }, z.core.$strip>>;
1693
484
  timestamp: z.ZodOptional<z.ZodObject<{
1694
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
485
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1695
486
  from: z.ZodLiteral<"header">;
1696
487
  name: z.ZodString;
1697
- }, "strip", z.ZodTypeAny, {
1698
- from: "header";
1699
- name: string;
1700
- }, {
1701
- from: "header";
1702
- name: string;
1703
- }>, z.ZodObject<{
488
+ }, z.core.$strip>, z.ZodObject<{
1704
489
  from: z.ZodLiteral<"signatureField">;
1705
490
  field: z.ZodString;
1706
- }, "strip", z.ZodTypeAny, {
1707
- from: "signatureField";
1708
- field: string;
1709
- }, {
1710
- from: "signatureField";
1711
- field: string;
1712
- }>, z.ZodObject<{
491
+ }, z.core.$strip>, z.ZodObject<{
1713
492
  from: z.ZodLiteral<"body">;
1714
493
  path: z.ZodString;
1715
- }, "strip", z.ZodTypeAny, {
1716
- from: "body";
1717
- path: string;
1718
- }, {
1719
- from: "body";
1720
- path: string;
1721
- }>, z.ZodObject<{
494
+ }, z.core.$strip>, z.ZodObject<{
1722
495
  from: z.ZodLiteral<"url">;
1723
- }, "strip", z.ZodTypeAny, {
1724
- from: "url";
1725
- }, {
1726
- from: "url";
1727
- }>, z.ZodObject<{
496
+ }, z.core.$strip>, z.ZodObject<{
1728
497
  from: z.ZodLiteral<"constant">;
1729
498
  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"]>>;
499
+ }, z.core.$strip>]>;
500
+ unit: z.ZodOptional<z.ZodEnum<{
501
+ milliseconds: "milliseconds";
502
+ seconds: "seconds";
503
+ }>>;
1738
504
  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<{
505
+ }, z.core.$strip>>;
506
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
1777
507
  template: z.ZodString;
1778
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
508
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
1779
509
  from: z.ZodLiteral<"header">;
1780
510
  name: z.ZodString;
1781
- }, "strip", z.ZodTypeAny, {
1782
- from: "header";
1783
- name: string;
1784
- }, {
1785
- from: "header";
1786
- name: string;
1787
- }>, z.ZodObject<{
511
+ }, z.core.$strip>, z.ZodObject<{
1788
512
  from: z.ZodLiteral<"signatureField">;
1789
513
  field: z.ZodString;
1790
- }, "strip", z.ZodTypeAny, {
1791
- from: "signatureField";
1792
- field: string;
1793
- }, {
1794
- from: "signatureField";
1795
- field: string;
1796
- }>, z.ZodObject<{
514
+ }, z.core.$strip>, z.ZodObject<{
1797
515
  from: z.ZodLiteral<"body">;
1798
516
  path: z.ZodString;
1799
- }, "strip", z.ZodTypeAny, {
1800
- from: "body";
1801
- path: string;
1802
- }, {
1803
- from: "body";
1804
- path: string;
1805
- }>, z.ZodObject<{
517
+ }, z.core.$strip>, z.ZodObject<{
1806
518
  from: z.ZodLiteral<"url">;
1807
- }, "strip", z.ZodTypeAny, {
1808
- from: "url";
1809
- }, {
1810
- from: "url";
1811
- }>, z.ZodObject<{
519
+ }, z.core.$strip>, z.ZodObject<{
1812
520
  from: z.ZodLiteral<"constant">;
1813
521
  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
- }>]>;
522
+ }, z.core.$strip>]>>>;
523
+ }, z.core.$strip>]>;
1856
524
  secret: z.ZodOptional<z.ZodObject<{
1857
- encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
525
+ encoding: z.ZodOptional<z.ZodEnum<{
526
+ base64: "base64";
527
+ utf8: "utf8";
528
+ }>>;
1858
529
  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
- }>>;
530
+ }, z.core.$strip>>;
1866
531
  idempotencyField: z.ZodOptional<z.ZodObject<{
1867
- from: z.ZodEnum<["header", "body"]>;
532
+ from: z.ZodEnum<{
533
+ body: "body";
534
+ header: "header";
535
+ }>;
1868
536
  name: z.ZodString;
1869
- }, "strip", z.ZodTypeAny, {
1870
- from: "body" | "header";
1871
- name: string;
1872
- }, {
1873
- from: "body" | "header";
1874
- name: string;
1875
- }>>;
537
+ }, z.core.$strip>>;
1876
538
  formPayload: z.ZodOptional<z.ZodObject<{
1877
539
  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<{
540
+ }, z.core.$strip>>;
541
+ }, z.core.$strip>, z.ZodObject<{
2002
542
  scheme: z.ZodLiteral<"shared-secret">;
2003
- placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
543
+ placement: z.ZodEnum<{
544
+ basic: "basic";
545
+ bearer: "bearer";
546
+ body: "body";
547
+ header: "header";
548
+ }>;
2004
549
  fieldName: z.ZodOptional<z.ZodString>;
2005
550
  idempotencyField: z.ZodOptional<z.ZodObject<{
2006
- from: z.ZodEnum<["header", "body"]>;
551
+ from: z.ZodEnum<{
552
+ body: "body";
553
+ header: "header";
554
+ }>;
2007
555
  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<{
556
+ }, z.core.$strip>>;
557
+ }, z.core.$strip>, z.ZodObject<{
2032
558
  scheme: z.ZodLiteral<"url-secret">;
2033
- placement: z.ZodEnum<["query", "path"]>;
559
+ placement: z.ZodEnum<{
560
+ path: "path";
561
+ query: "query";
562
+ }>;
2034
563
  paramName: z.ZodString;
2035
564
  idempotencyField: z.ZodOptional<z.ZodObject<{
2036
- from: z.ZodEnum<["header", "body"]>;
565
+ from: z.ZodEnum<{
566
+ body: "body";
567
+ header: "header";
568
+ }>;
2037
569
  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<{
570
+ }, z.core.$strip>>;
571
+ }, z.core.$strip>, z.ZodObject<{
2062
572
  scheme: z.ZodLiteral<"asymmetric">;
2063
- algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
2064
- encoding: z.ZodEnum<["hex", "base64"]>;
573
+ algorithm: z.ZodEnum<{
574
+ "ecdsa-p256": "ecdsa-p256";
575
+ ed25519: "ed25519";
576
+ "rsa-sha256": "rsa-sha256";
577
+ }>;
578
+ encoding: z.ZodEnum<{
579
+ base64: "base64";
580
+ hex: "hex";
581
+ }>;
2065
582
  signatureHeader: z.ZodString;
2066
583
  signature: z.ZodOptional<z.ZodObject<{
2067
584
  itemSeparator: z.ZodOptional<z.ZodString>;
2068
585
  fieldSeparator: z.ZodOptional<z.ZodString>;
2069
586
  field: z.ZodOptional<z.ZodString>;
2070
587
  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
- }>>;
588
+ }, z.core.$strip>>;
2082
589
  timestamp: z.ZodOptional<z.ZodObject<{
2083
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
590
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
2084
591
  from: z.ZodLiteral<"header">;
2085
592
  name: z.ZodString;
2086
- }, "strip", z.ZodTypeAny, {
2087
- from: "header";
2088
- name: string;
2089
- }, {
2090
- from: "header";
2091
- name: string;
2092
- }>, z.ZodObject<{
593
+ }, z.core.$strip>, z.ZodObject<{
2093
594
  from: z.ZodLiteral<"signatureField">;
2094
595
  field: z.ZodString;
2095
- }, "strip", z.ZodTypeAny, {
2096
- from: "signatureField";
2097
- field: string;
2098
- }, {
2099
- from: "signatureField";
2100
- field: string;
2101
- }>, z.ZodObject<{
596
+ }, z.core.$strip>, z.ZodObject<{
2102
597
  from: z.ZodLiteral<"body">;
2103
598
  path: z.ZodString;
2104
- }, "strip", z.ZodTypeAny, {
2105
- from: "body";
2106
- path: string;
2107
- }, {
2108
- from: "body";
2109
- path: string;
2110
- }>, z.ZodObject<{
599
+ }, z.core.$strip>, z.ZodObject<{
2111
600
  from: z.ZodLiteral<"url">;
2112
- }, "strip", z.ZodTypeAny, {
2113
- from: "url";
2114
- }, {
2115
- from: "url";
2116
- }>, z.ZodObject<{
601
+ }, z.core.$strip>, z.ZodObject<{
2117
602
  from: z.ZodLiteral<"constant">;
2118
603
  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"]>>;
604
+ }, z.core.$strip>]>;
605
+ unit: z.ZodOptional<z.ZodEnum<{
606
+ milliseconds: "milliseconds";
607
+ seconds: "seconds";
608
+ }>>;
2127
609
  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<{
610
+ }, z.core.$strip>>;
611
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
2166
612
  template: z.ZodString;
2167
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
613
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
2168
614
  from: z.ZodLiteral<"header">;
2169
615
  name: z.ZodString;
2170
- }, "strip", z.ZodTypeAny, {
2171
- from: "header";
2172
- name: string;
2173
- }, {
2174
- from: "header";
2175
- name: string;
2176
- }>, z.ZodObject<{
616
+ }, z.core.$strip>, z.ZodObject<{
2177
617
  from: z.ZodLiteral<"signatureField">;
2178
618
  field: z.ZodString;
2179
- }, "strip", z.ZodTypeAny, {
2180
- from: "signatureField";
2181
- field: string;
2182
- }, {
2183
- from: "signatureField";
2184
- field: string;
2185
- }>, z.ZodObject<{
619
+ }, z.core.$strip>, z.ZodObject<{
2186
620
  from: z.ZodLiteral<"body">;
2187
621
  path: z.ZodString;
2188
- }, "strip", z.ZodTypeAny, {
2189
- from: "body";
2190
- path: string;
2191
- }, {
2192
- from: "body";
2193
- path: string;
2194
- }>, z.ZodObject<{
622
+ }, z.core.$strip>, z.ZodObject<{
2195
623
  from: z.ZodLiteral<"url">;
2196
- }, "strip", z.ZodTypeAny, {
2197
- from: "url";
2198
- }, {
2199
- from: "url";
2200
- }>, z.ZodObject<{
624
+ }, z.core.$strip>, z.ZodObject<{
2201
625
  from: z.ZodLiteral<"constant">;
2202
626
  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"]>>;
627
+ }, z.core.$strip>]>>>;
628
+ }, z.core.$strip>]>;
629
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<{
630
+ pem: "pem";
631
+ "raw-base64": "raw-base64";
632
+ "raw-hex": "raw-hex";
633
+ "spki-der-base64": "spki-der-base64";
634
+ }>>;
2246
635
  idempotencyField: z.ZodOptional<z.ZodObject<{
2247
- from: z.ZodEnum<["header", "body"]>;
636
+ from: z.ZodEnum<{
637
+ body: "body";
638
+ header: "header";
639
+ }>;
2248
640
  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
- }>]>;
641
+ }, z.core.$strip>>;
642
+ }, z.core.$strip>]>;
2363
643
  handshake: z.ZodOptional<z.ZodObject<{
2364
644
  matchPath: z.ZodString;
2365
645
  matchValue: z.ZodString;
2366
646
  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<{
647
+ }, z.core.$strip>>;
648
+ }, z.core.$strip>, z.ZodObject<{
2649
649
  kind: z.ZodLiteral<"preset">;
2650
650
  preset: z.ZodString;
2651
- config: z.ZodDiscriminatedUnion<"scheme", [z.ZodObject<{
651
+ config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
2652
652
  scheme: z.ZodLiteral<"hmac">;
2653
- algorithm: z.ZodEnum<["sha256", "sha1"]>;
2654
- encoding: z.ZodEnum<["hex", "base64"]>;
653
+ algorithm: z.ZodEnum<{
654
+ sha1: "sha1";
655
+ sha256: "sha256";
656
+ }>;
657
+ encoding: z.ZodEnum<{
658
+ base64: "base64";
659
+ hex: "hex";
660
+ }>;
2655
661
  signatureHeader: z.ZodString;
2656
662
  signature: z.ZodOptional<z.ZodObject<{
2657
663
  itemSeparator: z.ZodOptional<z.ZodString>;
2658
664
  fieldSeparator: z.ZodOptional<z.ZodString>;
2659
665
  field: z.ZodOptional<z.ZodString>;
2660
666
  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
- }>>;
667
+ }, z.core.$strip>>;
2672
668
  timestamp: z.ZodOptional<z.ZodObject<{
2673
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
669
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
2674
670
  from: z.ZodLiteral<"header">;
2675
671
  name: z.ZodString;
2676
- }, "strip", z.ZodTypeAny, {
2677
- from: "header";
2678
- name: string;
2679
- }, {
2680
- from: "header";
2681
- name: string;
2682
- }>, z.ZodObject<{
672
+ }, z.core.$strip>, z.ZodObject<{
2683
673
  from: z.ZodLiteral<"signatureField">;
2684
674
  field: z.ZodString;
2685
- }, "strip", z.ZodTypeAny, {
2686
- from: "signatureField";
2687
- field: string;
2688
- }, {
2689
- from: "signatureField";
2690
- field: string;
2691
- }>, z.ZodObject<{
675
+ }, z.core.$strip>, z.ZodObject<{
2692
676
  from: z.ZodLiteral<"body">;
2693
677
  path: z.ZodString;
2694
- }, "strip", z.ZodTypeAny, {
2695
- from: "body";
2696
- path: string;
2697
- }, {
2698
- from: "body";
2699
- path: string;
2700
- }>, z.ZodObject<{
678
+ }, z.core.$strip>, z.ZodObject<{
2701
679
  from: z.ZodLiteral<"url">;
2702
- }, "strip", z.ZodTypeAny, {
2703
- from: "url";
2704
- }, {
2705
- from: "url";
2706
- }>, z.ZodObject<{
680
+ }, z.core.$strip>, z.ZodObject<{
2707
681
  from: z.ZodLiteral<"constant">;
2708
682
  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"]>>;
683
+ }, z.core.$strip>]>;
684
+ unit: z.ZodOptional<z.ZodEnum<{
685
+ milliseconds: "milliseconds";
686
+ seconds: "seconds";
687
+ }>>;
2717
688
  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<{
689
+ }, z.core.$strip>>;
690
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
2756
691
  template: z.ZodString;
2757
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
692
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
2758
693
  from: z.ZodLiteral<"header">;
2759
694
  name: z.ZodString;
2760
- }, "strip", z.ZodTypeAny, {
2761
- from: "header";
2762
- name: string;
2763
- }, {
2764
- from: "header";
2765
- name: string;
2766
- }>, z.ZodObject<{
695
+ }, z.core.$strip>, z.ZodObject<{
2767
696
  from: z.ZodLiteral<"signatureField">;
2768
697
  field: z.ZodString;
2769
- }, "strip", z.ZodTypeAny, {
2770
- from: "signatureField";
2771
- field: string;
2772
- }, {
2773
- from: "signatureField";
2774
- field: string;
2775
- }>, z.ZodObject<{
698
+ }, z.core.$strip>, z.ZodObject<{
2776
699
  from: z.ZodLiteral<"body">;
2777
700
  path: z.ZodString;
2778
- }, "strip", z.ZodTypeAny, {
2779
- from: "body";
2780
- path: string;
2781
- }, {
2782
- from: "body";
2783
- path: string;
2784
- }>, z.ZodObject<{
701
+ }, z.core.$strip>, z.ZodObject<{
2785
702
  from: z.ZodLiteral<"url">;
2786
- }, "strip", z.ZodTypeAny, {
2787
- from: "url";
2788
- }, {
2789
- from: "url";
2790
- }>, z.ZodObject<{
703
+ }, z.core.$strip>, z.ZodObject<{
2791
704
  from: z.ZodLiteral<"constant">;
2792
705
  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
- }>]>;
706
+ }, z.core.$strip>]>>>;
707
+ }, z.core.$strip>]>;
2835
708
  secret: z.ZodOptional<z.ZodObject<{
2836
- encoding: z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>;
709
+ encoding: z.ZodOptional<z.ZodEnum<{
710
+ base64: "base64";
711
+ utf8: "utf8";
712
+ }>>;
2837
713
  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
- }>>;
714
+ }, z.core.$strip>>;
2845
715
  idempotencyField: z.ZodOptional<z.ZodObject<{
2846
- from: z.ZodEnum<["header", "body"]>;
716
+ from: z.ZodEnum<{
717
+ body: "body";
718
+ header: "header";
719
+ }>;
2847
720
  name: z.ZodString;
2848
- }, "strip", z.ZodTypeAny, {
2849
- from: "body" | "header";
2850
- name: string;
2851
- }, {
2852
- from: "body" | "header";
2853
- name: string;
2854
- }>>;
721
+ }, z.core.$strip>>;
2855
722
  formPayload: z.ZodOptional<z.ZodObject<{
2856
723
  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<{
724
+ }, z.core.$strip>>;
725
+ }, z.core.$strip>, z.ZodObject<{
2981
726
  scheme: z.ZodLiteral<"shared-secret">;
2982
- placement: z.ZodEnum<["header", "bearer", "basic", "body"]>;
727
+ placement: z.ZodEnum<{
728
+ basic: "basic";
729
+ bearer: "bearer";
730
+ body: "body";
731
+ header: "header";
732
+ }>;
2983
733
  fieldName: z.ZodOptional<z.ZodString>;
2984
734
  idempotencyField: z.ZodOptional<z.ZodObject<{
2985
- from: z.ZodEnum<["header", "body"]>;
735
+ from: z.ZodEnum<{
736
+ body: "body";
737
+ header: "header";
738
+ }>;
2986
739
  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<{
740
+ }, z.core.$strip>>;
741
+ }, z.core.$strip>, z.ZodObject<{
3011
742
  scheme: z.ZodLiteral<"url-secret">;
3012
- placement: z.ZodEnum<["query", "path"]>;
743
+ placement: z.ZodEnum<{
744
+ path: "path";
745
+ query: "query";
746
+ }>;
3013
747
  paramName: z.ZodString;
3014
748
  idempotencyField: z.ZodOptional<z.ZodObject<{
3015
- from: z.ZodEnum<["header", "body"]>;
749
+ from: z.ZodEnum<{
750
+ body: "body";
751
+ header: "header";
752
+ }>;
3016
753
  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<{
754
+ }, z.core.$strip>>;
755
+ }, z.core.$strip>, z.ZodObject<{
3041
756
  scheme: z.ZodLiteral<"asymmetric">;
3042
- algorithm: z.ZodEnum<["ed25519", "ecdsa-p256", "rsa-sha256"]>;
3043
- encoding: z.ZodEnum<["hex", "base64"]>;
757
+ algorithm: z.ZodEnum<{
758
+ "ecdsa-p256": "ecdsa-p256";
759
+ ed25519: "ed25519";
760
+ "rsa-sha256": "rsa-sha256";
761
+ }>;
762
+ encoding: z.ZodEnum<{
763
+ base64: "base64";
764
+ hex: "hex";
765
+ }>;
3044
766
  signatureHeader: z.ZodString;
3045
767
  signature: z.ZodOptional<z.ZodObject<{
3046
768
  itemSeparator: z.ZodOptional<z.ZodString>;
3047
769
  fieldSeparator: z.ZodOptional<z.ZodString>;
3048
770
  field: z.ZodOptional<z.ZodString>;
3049
771
  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
- }>>;
772
+ }, z.core.$strip>>;
3061
773
  timestamp: z.ZodOptional<z.ZodObject<{
3062
- source: z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
774
+ source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
3063
775
  from: z.ZodLiteral<"header">;
3064
776
  name: z.ZodString;
3065
- }, "strip", z.ZodTypeAny, {
3066
- from: "header";
3067
- name: string;
3068
- }, {
3069
- from: "header";
3070
- name: string;
3071
- }>, z.ZodObject<{
777
+ }, z.core.$strip>, z.ZodObject<{
3072
778
  from: z.ZodLiteral<"signatureField">;
3073
779
  field: z.ZodString;
3074
- }, "strip", z.ZodTypeAny, {
3075
- from: "signatureField";
3076
- field: string;
3077
- }, {
3078
- from: "signatureField";
3079
- field: string;
3080
- }>, z.ZodObject<{
780
+ }, z.core.$strip>, z.ZodObject<{
3081
781
  from: z.ZodLiteral<"body">;
3082
782
  path: z.ZodString;
3083
- }, "strip", z.ZodTypeAny, {
3084
- from: "body";
3085
- path: string;
3086
- }, {
3087
- from: "body";
3088
- path: string;
3089
- }>, z.ZodObject<{
783
+ }, z.core.$strip>, z.ZodObject<{
3090
784
  from: z.ZodLiteral<"url">;
3091
- }, "strip", z.ZodTypeAny, {
3092
- from: "url";
3093
- }, {
3094
- from: "url";
3095
- }>, z.ZodObject<{
785
+ }, z.core.$strip>, z.ZodObject<{
3096
786
  from: z.ZodLiteral<"constant">;
3097
787
  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"]>>;
788
+ }, z.core.$strip>]>;
789
+ unit: z.ZodOptional<z.ZodEnum<{
790
+ milliseconds: "milliseconds";
791
+ seconds: "seconds";
792
+ }>>;
3106
793
  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<{
794
+ }, z.core.$strip>>;
795
+ signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
3145
796
  template: z.ZodString;
3146
- vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
797
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
3147
798
  from: z.ZodLiteral<"header">;
3148
799
  name: z.ZodString;
3149
- }, "strip", z.ZodTypeAny, {
3150
- from: "header";
3151
- name: string;
3152
- }, {
3153
- from: "header";
3154
- name: string;
3155
- }>, z.ZodObject<{
800
+ }, z.core.$strip>, z.ZodObject<{
3156
801
  from: z.ZodLiteral<"signatureField">;
3157
802
  field: z.ZodString;
3158
- }, "strip", z.ZodTypeAny, {
3159
- from: "signatureField";
3160
- field: string;
3161
- }, {
3162
- from: "signatureField";
3163
- field: string;
3164
- }>, z.ZodObject<{
803
+ }, z.core.$strip>, z.ZodObject<{
3165
804
  from: z.ZodLiteral<"body">;
3166
805
  path: z.ZodString;
3167
- }, "strip", z.ZodTypeAny, {
3168
- from: "body";
3169
- path: string;
3170
- }, {
3171
- from: "body";
3172
- path: string;
3173
- }>, z.ZodObject<{
806
+ }, z.core.$strip>, z.ZodObject<{
3174
807
  from: z.ZodLiteral<"url">;
3175
- }, "strip", z.ZodTypeAny, {
3176
- from: "url";
3177
- }, {
3178
- from: "url";
3179
- }>, z.ZodObject<{
808
+ }, z.core.$strip>, z.ZodObject<{
3180
809
  from: z.ZodLiteral<"constant">;
3181
810
  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"]>>;
811
+ }, z.core.$strip>]>>>;
812
+ }, z.core.$strip>]>;
813
+ publicKeyEncoding: z.ZodOptional<z.ZodEnum<{
814
+ pem: "pem";
815
+ "raw-base64": "raw-base64";
816
+ "raw-hex": "raw-hex";
817
+ "spki-der-base64": "spki-der-base64";
818
+ }>>;
3225
819
  idempotencyField: z.ZodOptional<z.ZodObject<{
3226
- from: z.ZodEnum<["header", "body"]>;
820
+ from: z.ZodEnum<{
821
+ body: "body";
822
+ header: "header";
823
+ }>;
3227
824
  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
- }>]>;
825
+ }, z.core.$strip>>;
826
+ }, z.core.$strip>]>;
3342
827
  handshake: z.ZodOptional<z.ZodObject<{
3343
828
  matchPath: z.ZodString;
3344
829
  matchValue: z.ZodString;
3345
830
  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<{
831
+ }, z.core.$strip>>;
832
+ }, z.core.$strip>, z.ZodObject<{
3630
833
  kind: z.ZodLiteral<"bundle">;
3631
834
  bundleUrl: z.ZodString;
3632
835
  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
- }>]>;
836
+ }, z.core.$strip>]>;
3642
837
  export type WebhookVerifierArtifact = z.infer<typeof WebhookVerifierArtifact>;
3643
- export declare const WebhookRoutingTarget: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
838
+ export declare const WebhookRoutingTarget: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
3644
839
  type: z.ZodLiteral<"task">;
3645
840
  taskId: z.ZodString;
3646
- }, "strip", z.ZodTypeAny, {
3647
- type: "task";
3648
- taskId: string;
3649
- }, {
3650
- type: "task";
3651
- taskId: string;
3652
- }>, z.ZodObject<{
841
+ }, z.core.$strip>, z.ZodObject<{
3653
842
  type: z.ZodLiteral<"session">;
3654
843
  taskIdentifier: z.ZodString;
3655
844
  keyTemplate: z.ZodString;
3656
- deliverAs: z.ZodEnum<["action", "message"]>;
845
+ deliverAs: z.ZodEnum<{
846
+ action: "action";
847
+ message: "message";
848
+ }>;
3657
849
  actionType: z.ZodOptional<z.ZodString>;
3658
850
  connectorId: z.ZodOptional<z.ZodString>;
3659
851
  triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3660
852
  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
- }>]>;
853
+ }, z.core.$strip>]>;
3680
854
  export type WebhookRoutingTarget = z.infer<typeof WebhookRoutingTarget>;
3681
855
  export declare const WebhookVerifierResult: z.ZodObject<{
3682
856
  ok: z.ZodBoolean;
3683
857
  idempotencyKey: z.ZodString;
3684
858
  parsedEvent: z.ZodOptional<z.ZodUnknown>;
3685
859
  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
- }>;
860
+ }, z.core.$strip>;
3697
861
  export type WebhookVerifierResult = z.infer<typeof WebhookVerifierResult>;
3698
862
  export type StripeWebhookEvent = {
3699
863
  id: string;