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

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