@suveren/gateway 0.39.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1039) hide show
  1. package/dist/control-plane/index.mjs +182 -37
  2. package/dist/mcp-server/http.mjs +356 -72
  3. package/dist/ui/assets/index-CO-dj98E.js +123 -0
  4. package/dist/ui/assets/index-DM9WXky8.css +1 -0
  5. package/dist/ui/index.html +2 -2
  6. package/node_modules/@hap/core/README.md +3 -3
  7. package/node_modules/@hap/core/dist/index.d.mts +567 -123
  8. package/node_modules/@hap/core/dist/index.d.ts +567 -123
  9. package/node_modules/@hap/core/dist/index.js +869 -23
  10. package/node_modules/@hap/core/dist/index.mjs +829 -22
  11. package/node_modules/@hap/core/node_modules/@hpke/core/LICENSE +21 -0
  12. package/node_modules/@hap/core/node_modules/@hpke/core/README.md +263 -0
  13. package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts +11 -0
  14. package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts.map +1 -0
  15. package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.js +6 -0
  16. package/node_modules/@hap/core/node_modules/@hpke/core/esm/package.json +3 -0
  17. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts +80 -0
  18. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts.map +1 -0
  19. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.js +167 -0
  20. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts +34 -0
  21. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts.map +1 -0
  22. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.js +56 -0
  23. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts +145 -0
  24. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts.map +1 -0
  25. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.js +326 -0
  26. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts +15 -0
  27. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts.map +1 -0
  28. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.js +68 -0
  29. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts +19 -0
  30. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts.map +1 -0
  31. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.js +62 -0
  32. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts +17 -0
  33. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts.map +1 -0
  34. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.js +1 -0
  35. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts +13 -0
  36. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
  37. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.js +1 -0
  38. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts +8 -0
  39. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts.map +1 -0
  40. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.js +1 -0
  41. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts +40 -0
  42. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts.map +1 -0
  43. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.js +1 -0
  44. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts +17 -0
  45. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts.map +1 -0
  46. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.js +1 -0
  47. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts +7 -0
  48. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts.map +1 -0
  49. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.js +1 -0
  50. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts +10 -0
  51. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts.map +1 -0
  52. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.js +1 -0
  53. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts +26 -0
  54. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts.map +1 -0
  55. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.js +112 -0
  56. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
  57. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
  58. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +214 -0
  59. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +24 -0
  60. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
  61. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +214 -0
  62. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts +38 -0
  63. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts.map +1 -0
  64. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.js +66 -0
  65. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts +38 -0
  66. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts.map +1 -0
  67. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.js +66 -0
  68. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts +5 -0
  69. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts.map +1 -0
  70. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.js +28 -0
  71. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts +236 -0
  72. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts.map +1 -0
  73. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.js +235 -0
  74. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts +6 -0
  75. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts.map +1 -0
  76. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.js +38 -0
  77. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts +11 -0
  78. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts.map +1 -0
  79. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.js +45 -0
  80. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts +2 -0
  81. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts.map +1 -0
  82. package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.js +6 -0
  83. package/node_modules/@hap/core/node_modules/@hpke/core/package.json +46 -0
  84. package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts +11 -0
  85. package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts.map +1 -0
  86. package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.js +47 -0
  87. package/node_modules/@hap/core/node_modules/@hpke/core/script/package.json +3 -0
  88. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts +80 -0
  89. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts.map +1 -0
  90. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.js +183 -0
  91. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts +34 -0
  92. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts.map +1 -0
  93. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.js +70 -0
  94. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts +145 -0
  95. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts.map +1 -0
  96. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.js +340 -0
  97. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts +15 -0
  98. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts.map +1 -0
  99. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.js +82 -0
  100. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts +19 -0
  101. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts.map +1 -0
  102. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.js +78 -0
  103. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts +17 -0
  104. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts.map +1 -0
  105. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.js +12 -0
  106. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts +13 -0
  107. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
  108. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.js +12 -0
  109. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts +8 -0
  110. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts.map +1 -0
  111. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.js +12 -0
  112. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts +40 -0
  113. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts.map +1 -0
  114. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.js +12 -0
  115. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts +17 -0
  116. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts.map +1 -0
  117. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.js +12 -0
  118. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts +7 -0
  119. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts.map +1 -0
  120. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.js +12 -0
  121. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts +10 -0
  122. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts.map +1 -0
  123. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.js +12 -0
  124. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts +26 -0
  125. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts.map +1 -0
  126. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.js +128 -0
  127. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
  128. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
  129. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +228 -0
  130. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +24 -0
  131. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
  132. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +228 -0
  133. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts +38 -0
  134. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts.map +1 -0
  135. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.js +80 -0
  136. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts +38 -0
  137. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts.map +1 -0
  138. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.js +80 -0
  139. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts +5 -0
  140. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts.map +1 -0
  141. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.js +42 -0
  142. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts +236 -0
  143. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts.map +1 -0
  144. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.js +255 -0
  145. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts +6 -0
  146. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts.map +1 -0
  147. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.js +52 -0
  148. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts +11 -0
  149. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts.map +1 -0
  150. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.js +59 -0
  151. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts +2 -0
  152. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts.map +1 -0
  153. package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.js +19 -0
  154. package/node_modules/@hap/core/package.json +2 -1
  155. package/node_modules/@hap/core/src/canonicalize.ts +9 -0
  156. package/node_modules/@hap/core/src/commitment-modes.ts +21 -9
  157. package/node_modules/@hap/core/src/errors.ts +24 -8
  158. package/node_modules/@hap/core/src/gatekeeper.ts +52 -8
  159. package/node_modules/@hap/core/src/index.ts +5 -1
  160. package/node_modules/@hap/core/src/issuance.ts +250 -0
  161. package/node_modules/@hap/core/src/mandate.ts +52 -14
  162. package/node_modules/@hap/core/src/owner-signature.ts +86 -39
  163. package/node_modules/@hap/core/src/profile.ts +45 -0
  164. package/node_modules/@hap/core/src/proposal-content.ts +219 -0
  165. package/node_modules/@hap/core/src/ticket-projection.ts +167 -0
  166. package/node_modules/@hap/core/src/ticket.ts +254 -20
  167. package/node_modules/@hap/core/src/types.ts +33 -5
  168. package/node_modules/@hap/core/src/verifier-policy.ts +178 -0
  169. package/node_modules/@hap/core/src/versions.ts +50 -19
  170. package/node_modules/@hono/node-server/dist/index.cjs +31 -6
  171. package/node_modules/@hono/node-server/dist/index.mjs +31 -6
  172. package/node_modules/@hono/node-server/package.json +1 -1
  173. package/node_modules/@hpke/common/esm/package.json +5 -1
  174. package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts +2 -2
  175. package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts.map +1 -1
  176. package/node_modules/@hpke/common/esm/src/curve/montgomery.js +41 -26
  177. package/node_modules/@hpke/common/esm/src/hash/sha3.d.ts.map +1 -1
  178. package/node_modules/@hpke/common/esm/src/hash/sha3.js +0 -15
  179. package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts +2 -1
  180. package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts.map +1 -1
  181. package/node_modules/@hpke/common/esm/src/kdfs/hkdf.js +12 -2
  182. package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
  183. package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.js +14 -3
  184. package/node_modules/@hpke/common/esm/src/utils/misc.d.ts +6 -0
  185. package/node_modules/@hpke/common/esm/src/utils/misc.d.ts.map +1 -1
  186. package/node_modules/@hpke/common/esm/src/utils/misc.js +43 -10
  187. package/node_modules/@hpke/common/esm/src/utils/noble.d.ts +1 -1
  188. package/node_modules/@hpke/common/esm/src/utils/noble.d.ts.map +1 -1
  189. package/node_modules/@hpke/common/esm/src/utils/noble.js +21 -10
  190. package/node_modules/@hpke/common/package.json +5 -1
  191. package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts +2 -2
  192. package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts.map +1 -1
  193. package/node_modules/@hpke/common/script/src/curve/montgomery.js +40 -25
  194. package/node_modules/@hpke/common/script/src/hash/sha3.d.ts.map +1 -1
  195. package/node_modules/@hpke/common/script/src/hash/sha3.js +0 -15
  196. package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts +2 -1
  197. package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts.map +1 -1
  198. package/node_modules/@hpke/common/script/src/kdfs/hkdf.js +12 -2
  199. package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
  200. package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.js +13 -2
  201. package/node_modules/@hpke/common/script/src/utils/misc.d.ts +6 -0
  202. package/node_modules/@hpke/common/script/src/utils/misc.d.ts.map +1 -1
  203. package/node_modules/@hpke/common/script/src/utils/misc.js +43 -9
  204. package/node_modules/@hpke/common/script/src/utils/noble.d.ts +1 -1
  205. package/node_modules/@hpke/common/script/src/utils/noble.d.ts.map +1 -1
  206. package/node_modules/@hpke/common/script/src/utils/noble.js +22 -11
  207. package/node_modules/@hpke/core/README.md +56 -56
  208. package/node_modules/@hpke/core/esm/package.json +2 -1
  209. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
  210. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
  211. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +3 -201
  212. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +3 -21
  213. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
  214. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +3 -201
  215. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
  216. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
  217. package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.js +216 -0
  218. package/node_modules/@hpke/core/package.json +6 -2
  219. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
  220. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
  221. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +4 -202
  222. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +3 -21
  223. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
  224. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +4 -202
  225. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
  226. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
  227. package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.js +230 -0
  228. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  229. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
  230. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  231. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
  232. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  233. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  234. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
  235. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  236. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
  237. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  238. package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
  239. package/node_modules/@types/node/README.md +1 -1
  240. package/node_modules/@types/node/package.json +2 -2
  241. package/node_modules/@types/node/zlib.d.ts +752 -0
  242. package/node_modules/encodeurl/README.md +14 -0
  243. package/node_modules/encodeurl/index.js +5 -10
  244. package/node_modules/encodeurl/package.json +10 -6
  245. package/node_modules/express-rate-limit/dist/index.cjs +7 -3
  246. package/node_modules/express-rate-limit/dist/index.mjs +7 -3
  247. package/node_modules/express-rate-limit/package.json +10 -10
  248. package/node_modules/follow-redirects/README.md +27 -1
  249. package/node_modules/follow-redirects/index.js +1 -5
  250. package/node_modules/follow-redirects/package.json +1 -1
  251. package/node_modules/hono/README.md +2 -3
  252. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +1 -1
  253. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +1 -1
  254. package/node_modules/hono/dist/cjs/context.js +1 -1
  255. package/node_modules/hono/dist/cjs/helper/css/common.js +11 -8
  256. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  257. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  258. package/node_modules/hono/dist/cjs/hono-base.js +4 -10
  259. package/node_modules/hono/dist/cjs/hono.js +0 -1
  260. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  261. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +1 -1
  262. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +9 -1
  263. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +2 -2
  264. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +2 -2
  265. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +2 -2
  266. package/node_modules/hono/dist/cjs/middleware/mount/index.js +4 -4
  267. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  268. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +13 -11
  269. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +4 -4
  270. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +39 -51
  271. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +15 -5
  272. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  273. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +2 -1
  274. package/node_modules/hono/dist/cjs/utils/mount.js +35 -0
  275. package/node_modules/hono/dist/cjs/utils/url.js +21 -6
  276. package/node_modules/hono/dist/cjs/validator/validator.js +1 -1
  277. package/node_modules/hono/dist/context.js +1 -1
  278. package/node_modules/hono/dist/helper/css/common.js +11 -8
  279. package/node_modules/hono/dist/helper/css/index.js +1 -1
  280. package/node_modules/hono/dist/helper/route/index.js +3 -1
  281. package/node_modules/hono/dist/hono-base.js +4 -10
  282. package/node_modules/hono/dist/hono.js +0 -1
  283. package/node_modules/hono/dist/jsx/base.js +1 -1
  284. package/node_modules/hono/dist/middleware/basic-auth/index.js +1 -1
  285. package/node_modules/hono/dist/middleware/bearer-auth/index.js +9 -1
  286. package/node_modules/hono/dist/middleware/csrf/index.js +2 -2
  287. package/node_modules/hono/dist/middleware/jwk/jwk.js +2 -2
  288. package/node_modules/hono/dist/middleware/jwt/jwt.js +2 -2
  289. package/node_modules/hono/dist/middleware/language/language.js +1 -1
  290. package/node_modules/hono/dist/middleware/mount/index.js +4 -4
  291. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  292. package/node_modules/hono/dist/router/reg-exp-router/node.js +13 -11
  293. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +5 -5
  294. package/node_modules/hono/dist/router/reg-exp-router/router.js +40 -52
  295. package/node_modules/hono/dist/router/reg-exp-router/trie.js +15 -5
  296. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  297. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  298. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  299. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  300. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  301. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  302. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  303. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  304. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  305. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  306. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  307. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  308. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  309. package/node_modules/hono/dist/types/index.d.ts +1 -1
  310. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  311. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  312. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  313. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  314. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  315. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  316. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  317. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  318. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +1 -0
  319. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +3 -3
  320. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +1 -1
  321. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  322. package/node_modules/hono/dist/types/utils/mount.d.ts +4 -0
  323. package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
  324. package/node_modules/hono/dist/utils/jwt/jwt.js +2 -1
  325. package/node_modules/hono/dist/utils/mount.js +34 -0
  326. package/node_modules/hono/dist/utils/url.js +21 -7
  327. package/node_modules/hono/dist/validator/validator.js +1 -1
  328. package/node_modules/hono/package.json +1 -1
  329. package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
  330. package/node_modules/http-proxy-middleware/package.json +1 -1
  331. package/node_modules/ip-address/README.md +39 -39
  332. package/node_modules/ip-address/dist/common.js +2 -2
  333. package/node_modules/ip-address/dist/common.js.map +1 -1
  334. package/node_modules/ip-address/dist/ipv6.js +1 -1
  335. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  336. package/node_modules/ip-address/package.json +2 -2
  337. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
  338. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
  339. package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
  340. package/node_modules/jose/dist/types/types.d.ts +8 -0
  341. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
  342. package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
  343. package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
  344. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
  345. package/node_modules/jose/package.json +1 -1
  346. package/node_modules/postcss/lib/input.js +1 -1
  347. package/node_modules/postcss/lib/lazy-result.js +1 -1
  348. package/node_modules/postcss/lib/no-work-result.js +1 -1
  349. package/node_modules/postcss/lib/node.js +2 -2
  350. package/node_modules/postcss/lib/processor.js +1 -1
  351. package/node_modules/postcss/lib/warning.js +1 -0
  352. package/node_modules/postcss/package.json +1 -1
  353. package/node_modules/qs/CHANGELOG.md +29 -22
  354. package/node_modules/qs/dist/qs.js +14 -14
  355. package/node_modules/qs/eslint.config.mjs +6 -0
  356. package/node_modules/qs/lib/stringify.js +1 -1
  357. package/node_modules/qs/package.json +5 -5
  358. package/node_modules/qs/test/stringify.js +74 -0
  359. package/node_modules/zod/README.md +34 -24
  360. package/node_modules/zod/compile.cjs +96 -0
  361. package/node_modules/zod/compile.d.cts +1 -0
  362. package/node_modules/zod/compile.d.ts +1 -0
  363. package/node_modules/zod/compile.js +52 -0
  364. package/node_modules/zod/index.cjs +22 -3
  365. package/node_modules/zod/index.d.cts +3 -4
  366. package/node_modules/zod/index.d.ts +3 -4
  367. package/node_modules/zod/index.js +7 -4
  368. package/node_modules/zod/locales/index.cjs +36 -0
  369. package/node_modules/zod/locales/index.d.cts +1 -0
  370. package/node_modules/zod/locales/index.d.ts +1 -0
  371. package/node_modules/zod/locales/index.js +1 -0
  372. package/node_modules/zod/locales/package.json +7 -0
  373. package/node_modules/zod/mini/index.cjs +51 -0
  374. package/node_modules/zod/mini/index.d.cts +3 -0
  375. package/node_modules/zod/mini/index.d.ts +3 -0
  376. package/node_modules/zod/mini/index.js +3 -0
  377. package/node_modules/zod/mini/package.json +7 -0
  378. package/node_modules/zod/package.json +44 -15
  379. package/node_modules/zod/src/compile.ts +56 -0
  380. package/node_modules/zod/src/index.ts +7 -4
  381. package/node_modules/zod/src/locales/index.ts +1 -0
  382. package/node_modules/zod/src/mini/index.ts +3 -0
  383. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  384. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  385. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  386. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  387. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  388. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  389. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  390. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  391. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  392. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  393. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  394. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  395. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  396. package/node_modules/zod/src/v3/types.ts +8 -6
  397. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  398. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  399. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  400. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  401. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  402. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  403. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  404. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  405. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  406. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  407. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  408. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  409. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  410. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  411. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  412. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  413. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  414. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  415. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  416. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  417. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  418. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  419. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  420. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  421. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  422. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  423. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  424. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  425. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  426. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  427. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  428. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  429. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  430. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  431. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  432. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  433. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  434. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  435. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  436. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  437. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  438. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  439. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  440. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  441. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  442. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  443. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  444. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  445. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  446. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  447. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  448. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  449. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  450. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  451. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  452. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  453. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  454. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  455. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  456. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  457. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  458. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  459. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  460. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  461. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  462. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  463. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  464. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  465. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  466. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  467. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  468. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  469. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  470. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  471. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  472. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  473. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  474. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  475. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  476. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  477. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  478. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  479. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  480. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  481. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  482. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  483. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  484. package/node_modules/zod/src/v4/core/api.ts +442 -161
  485. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  486. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  487. package/node_modules/zod/src/v4/core/core.ts +146 -50
  488. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  489. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  490. package/node_modules/zod/src/v4/core/index.ts +5 -1
  491. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  492. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  493. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  494. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  495. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  496. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  497. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  498. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  499. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  500. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  501. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  502. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  503. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  504. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  505. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  506. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  507. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  508. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  509. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  510. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  511. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  512. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  513. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  514. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  515. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  516. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  517. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  518. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  519. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  520. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  521. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  522. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  523. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  524. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  525. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  526. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  527. package/node_modules/zod/src/v4/core/util.ts +675 -157
  528. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  529. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  530. package/node_modules/zod/src/v4/index.ts +3 -3
  531. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  532. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  533. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  534. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  535. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  536. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  537. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  538. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  539. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  540. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  541. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  542. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  543. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  544. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  545. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  546. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  547. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  548. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  549. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  550. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  551. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  552. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  553. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  554. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  555. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  556. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  557. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  558. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  559. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  560. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  561. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  562. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  563. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  564. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  565. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  566. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  567. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  568. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  569. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  570. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  571. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  572. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  573. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  574. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  575. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  576. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  577. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  578. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  579. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  580. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  581. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  582. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  583. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  584. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  585. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  586. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  587. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  588. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  589. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  590. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  591. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  592. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  593. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  594. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  595. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  596. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  597. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  598. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  599. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  600. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  601. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  602. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  603. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  604. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  605. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  606. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  607. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  608. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  609. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  610. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  611. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  612. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  613. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  614. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  615. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  616. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  617. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  618. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  619. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  620. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  621. package/node_modules/zod/v3/ZodError.cjs +42 -13
  622. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  623. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  624. package/node_modules/zod/v3/ZodError.js +23 -13
  625. package/node_modules/zod/v3/errors.cjs +19 -0
  626. package/node_modules/zod/v3/external.cjs +19 -0
  627. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  628. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  629. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  630. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  631. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  632. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  633. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  634. package/node_modules/zod/v3/index.cjs +19 -0
  635. package/node_modules/zod/v3/locales/en.cjs +1 -0
  636. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  637. package/node_modules/zod/v3/package.json +7 -0
  638. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  639. package/node_modules/zod/v3/types.cjs +28 -5
  640. package/node_modules/zod/v3/types.d.cts +4 -1
  641. package/node_modules/zod/v3/types.d.ts +4 -1
  642. package/node_modules/zod/v3/types.js +9 -5
  643. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  644. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  645. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  646. package/node_modules/zod/v4/classic/checks.js +1 -1
  647. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  648. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  649. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  650. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  651. package/node_modules/zod/v4/classic/compat.js +4 -0
  652. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  653. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  654. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  655. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  656. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  657. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  658. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  659. package/node_modules/zod/v4/classic/errors.js +45 -29
  660. package/node_modules/zod/v4/classic/external.cjs +55 -28
  661. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  662. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  663. package/node_modules/zod/v4/classic/external.js +7 -8
  664. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  665. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  666. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  667. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  668. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  669. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  670. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  671. package/node_modules/zod/v4/classic/in-out.js +36 -0
  672. package/node_modules/zod/v4/classic/index.cjs +21 -2
  673. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  674. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  675. package/node_modules/zod/v4/classic/index.js +2 -2
  676. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  677. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  678. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  679. package/node_modules/zod/v4/classic/iso.js +2 -17
  680. package/node_modules/zod/v4/classic/package.json +7 -0
  681. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  682. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  683. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  684. package/node_modules/zod/v4/classic/parse.js +10 -0
  685. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  686. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  687. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  688. package/node_modules/zod/v4/classic/schemas.js +766 -237
  689. package/node_modules/zod/v4/core/api.cjs +284 -54
  690. package/node_modules/zod/v4/core/api.d.cts +133 -82
  691. package/node_modules/zod/v4/core/api.d.ts +133 -82
  692. package/node_modules/zod/v4/core/api.js +255 -54
  693. package/node_modules/zod/v4/core/checks.cjs +100 -130
  694. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  695. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  696. package/node_modules/zod/v4/core/checks.js +80 -129
  697. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  698. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  699. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  700. package/node_modules/zod/v4/core/compile.js +1866 -0
  701. package/node_modules/zod/v4/core/core.cjs +120 -20
  702. package/node_modules/zod/v4/core/core.d.cts +40 -7
  703. package/node_modules/zod/v4/core/core.d.ts +40 -7
  704. package/node_modules/zod/v4/core/core.js +101 -21
  705. package/node_modules/zod/v4/core/doc.cjs +31 -9
  706. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  707. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  708. package/node_modules/zod/v4/core/doc.js +12 -9
  709. package/node_modules/zod/v4/core/errors.cjs +151 -60
  710. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  711. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  712. package/node_modules/zod/v4/core/errors.js +132 -60
  713. package/node_modules/zod/v4/core/index.cjs +28 -2
  714. package/node_modules/zod/v4/core/index.d.cts +5 -1
  715. package/node_modules/zod/v4/core/index.d.ts +5 -1
  716. package/node_modules/zod/v4/core/index.js +5 -1
  717. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  718. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  719. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  720. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  721. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  722. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  723. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  724. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  725. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  726. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  727. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  728. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  729. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  730. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  731. package/node_modules/zod/v4/core/memoizer.js +311 -0
  732. package/node_modules/zod/v4/core/package.json +7 -0
  733. package/node_modules/zod/v4/core/parse.cjs +183 -37
  734. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  735. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  736. package/node_modules/zod/v4/core/parse.js +154 -36
  737. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  738. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  739. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  740. package/node_modules/zod/v4/core/regexes.js +90 -29
  741. package/node_modules/zod/v4/core/registries.cjs +26 -7
  742. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  743. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  744. package/node_modules/zod/v4/core/registries.js +9 -9
  745. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  746. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  747. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  748. package/node_modules/zod/v4/core/schemas.js +1341 -422
  749. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  750. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  751. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  752. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  753. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  754. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  755. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  756. package/node_modules/zod/v4/core/util.cjs +580 -155
  757. package/node_modules/zod/v4/core/util.d.cts +98 -1
  758. package/node_modules/zod/v4/core/util.d.ts +98 -1
  759. package/node_modules/zod/v4/core/util.js +536 -156
  760. package/node_modules/zod/v4/core/versions.cjs +21 -2
  761. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  762. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  763. package/node_modules/zod/v4/core/versions.js +2 -2
  764. package/node_modules/zod/v4/core/visit.cjs +214 -0
  765. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  766. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  767. package/node_modules/zod/v4/core/visit.js +169 -0
  768. package/node_modules/zod/v4/index.cjs +34 -5
  769. package/node_modules/zod/v4/index.d.cts +2 -2
  770. package/node_modules/zod/v4/index.d.ts +2 -2
  771. package/node_modules/zod/v4/index.js +3 -2
  772. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  773. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  774. package/node_modules/zod/v4/locales/ar.js +19 -24
  775. package/node_modules/zod/v4/locales/az.cjs +20 -24
  776. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  777. package/node_modules/zod/v4/locales/az.js +19 -24
  778. package/node_modules/zod/v4/locales/be.cjs +29 -24
  779. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  780. package/node_modules/zod/v4/locales/be.js +28 -24
  781. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  782. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  783. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  784. package/node_modules/zod/v4/locales/bg.js +125 -0
  785. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  786. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  787. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  788. package/node_modules/zod/v4/locales/bn.js +113 -0
  789. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  790. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  791. package/node_modules/zod/v4/locales/ca.js +19 -25
  792. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  793. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  794. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  795. package/node_modules/zod/v4/locales/ckb.js +133 -0
  796. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  797. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  798. package/node_modules/zod/v4/locales/cs.js +23 -42
  799. package/node_modules/zod/v4/locales/da.cjs +147 -0
  800. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  801. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  802. package/node_modules/zod/v4/locales/da.js +120 -0
  803. package/node_modules/zod/v4/locales/de.cjs +22 -24
  804. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  805. package/node_modules/zod/v4/locales/de.js +21 -24
  806. package/node_modules/zod/v4/locales/el.cjs +139 -0
  807. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  808. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  809. package/node_modules/zod/v4/locales/el.js +112 -0
  810. package/node_modules/zod/v4/locales/en.cjs +35 -28
  811. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  812. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  813. package/node_modules/zod/v4/locales/en.js +34 -26
  814. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  815. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  816. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  817. package/node_modules/zod/v4/locales/eo.js +22 -24
  818. package/node_modules/zod/v4/locales/es.cjs +51 -31
  819. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  820. package/node_modules/zod/v4/locales/es.js +50 -31
  821. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  822. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  823. package/node_modules/zod/v4/locales/fa.js +21 -24
  824. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  825. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  826. package/node_modules/zod/v4/locales/fi.js +19 -24
  827. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  828. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  829. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  830. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  831. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  832. package/node_modules/zod/v4/locales/fr.js +52 -39
  833. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  834. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  835. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  836. package/node_modules/zod/v4/locales/gu.js +113 -0
  837. package/node_modules/zod/v4/locales/he.cjs +183 -78
  838. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  839. package/node_modules/zod/v4/locales/he.js +182 -78
  840. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  841. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  842. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  843. package/node_modules/zod/v4/locales/hi.js +111 -0
  844. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  845. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  846. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  847. package/node_modules/zod/v4/locales/hr.js +126 -0
  848. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  849. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  850. package/node_modules/zod/v4/locales/hu.js +21 -25
  851. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  852. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  853. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  854. package/node_modules/zod/v4/locales/hy.js +158 -0
  855. package/node_modules/zod/v4/locales/id.cjs +20 -24
  856. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  857. package/node_modules/zod/v4/locales/id.js +19 -24
  858. package/node_modules/zod/v4/locales/index.cjs +69 -1
  859. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  860. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  861. package/node_modules/zod/v4/locales/index.js +24 -0
  862. package/node_modules/zod/v4/locales/is.cjs +141 -0
  863. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  864. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  865. package/node_modules/zod/v4/locales/is.js +114 -0
  866. package/node_modules/zod/v4/locales/it.cjs +22 -25
  867. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  868. package/node_modules/zod/v4/locales/it.js +21 -25
  869. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  870. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  871. package/node_modules/zod/v4/locales/ja.js +21 -24
  872. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  873. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  874. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  875. package/node_modules/zod/v4/locales/ka.js +117 -0
  876. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  877. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  878. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  879. package/node_modules/zod/v4/locales/kh.js +3 -115
  880. package/node_modules/zod/v4/locales/km.cjs +142 -0
  881. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  882. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  883. package/node_modules/zod/v4/locales/km.js +115 -0
  884. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  885. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  886. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  887. package/node_modules/zod/v4/locales/kn.js +116 -0
  888. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  889. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  890. package/node_modules/zod/v4/locales/ko.js +19 -24
  891. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  892. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  893. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  894. package/node_modules/zod/v4/locales/lt.js +207 -0
  895. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  896. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  897. package/node_modules/zod/v4/locales/mk.js +21 -25
  898. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  899. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  900. package/node_modules/zod/v4/locales/ms.js +20 -24
  901. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  902. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  903. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  904. package/node_modules/zod/v4/locales/ne.js +111 -0
  905. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  906. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  907. package/node_modules/zod/v4/locales/nl.js +30 -32
  908. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  909. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  910. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  911. package/node_modules/zod/v4/locales/nn.js +113 -0
  912. package/node_modules/zod/v4/locales/no.cjs +24 -26
  913. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  914. package/node_modules/zod/v4/locales/no.js +23 -26
  915. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  916. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  917. package/node_modules/zod/v4/locales/ota.js +22 -25
  918. package/node_modules/zod/v4/locales/package.json +7 -0
  919. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  920. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  921. package/node_modules/zod/v4/locales/pl.js +21 -24
  922. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  923. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  924. package/node_modules/zod/v4/locales/ps.js +21 -24
  925. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  926. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  927. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  928. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  929. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  930. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  931. package/node_modules/zod/v4/locales/pt.js +94 -68
  932. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  933. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  934. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  935. package/node_modules/zod/v4/locales/ro.js +122 -0
  936. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  937. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  938. package/node_modules/zod/v4/locales/ru.js +28 -24
  939. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  940. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  941. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  942. package/node_modules/zod/v4/locales/sk.js +116 -0
  943. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  944. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  945. package/node_modules/zod/v4/locales/sl.js +21 -24
  946. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  947. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  948. package/node_modules/zod/v4/locales/sv.js +23 -26
  949. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  950. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  951. package/node_modules/zod/v4/locales/ta.js +22 -24
  952. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  953. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  954. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  955. package/node_modules/zod/v4/locales/tg.js +117 -0
  956. package/node_modules/zod/v4/locales/th.cjs +23 -24
  957. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  958. package/node_modules/zod/v4/locales/th.js +22 -24
  959. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  960. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  961. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  962. package/node_modules/zod/v4/locales/tk.js +107 -0
  963. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  964. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  965. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  966. package/node_modules/zod/v4/locales/tr.js +19 -24
  967. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  968. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  969. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  970. package/node_modules/zod/v4/locales/ua.js +3 -115
  971. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  972. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  973. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  974. package/node_modules/zod/v4/locales/uk.js +113 -0
  975. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  976. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  977. package/node_modules/zod/v4/locales/ur.js +22 -24
  978. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  979. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  980. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  981. package/node_modules/zod/v4/locales/uz.js +113 -0
  982. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  983. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  984. package/node_modules/zod/v4/locales/vi.js +21 -24
  985. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  986. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  987. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  988. package/node_modules/zod/v4/locales/yo.js +112 -0
  989. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  990. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  991. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  992. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  993. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  994. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  995. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  996. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  997. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  998. package/node_modules/zod/v4/mini/checks.js +1 -1
  999. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  1000. package/node_modules/zod/v4/mini/coerce.js +5 -0
  1001. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1002. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1003. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1004. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1005. package/node_modules/zod/v4/mini/external.cjs +36 -3
  1006. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  1007. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  1008. package/node_modules/zod/v4/mini/external.js +4 -1
  1009. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1010. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1011. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1012. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1013. package/node_modules/zod/v4/mini/index.cjs +19 -0
  1014. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  1015. package/node_modules/zod/v4/mini/iso.js +8 -4
  1016. package/node_modules/zod/v4/mini/package.json +7 -0
  1017. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  1018. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  1019. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  1020. package/node_modules/zod/v4/mini/parse.js +1 -1
  1021. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  1022. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  1023. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  1024. package/node_modules/zod/v4/mini/schemas.js +329 -59
  1025. package/node_modules/zod/v4/package.json +7 -0
  1026. package/node_modules/zod/v4-mini/index.cjs +35 -1
  1027. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  1028. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  1029. package/node_modules/zod/v4-mini/index.js +3 -1
  1030. package/node_modules/zod/v4-mini/package.json +7 -0
  1031. package/package.json +4 -4
  1032. package/dist/ui/assets/index-DNNXeRpZ.js +0 -123
  1033. package/dist/ui/assets/index-Osk4E49r.css +0 -1
  1034. package/node_modules/zod/src/v4/core/config.ts +0 -15
  1035. package/node_modules/zod/src/v4/core/function.ts +0 -176
  1036. package/node_modules/zod/v4/core/function.cjs +0 -102
  1037. package/node_modules/zod/v4/core/function.d.cts +0 -52
  1038. package/node_modules/zod/v4/core/function.d.ts +0 -52
  1039. package/node_modules/zod/v4/core/function.js +0 -75
@@ -1,5 +1,7 @@
1
1
  import * as core from "../core/index.js";
2
- import { util } from "../core/index.js";
2
+ import type { $ZodBigIntFormats } from "../core/index.js";
3
+ import * as regexes from "../core/regexes.js";
4
+ import * as util from "../core/util.js";
3
5
  import * as parse from "./parse.js";
4
6
 
5
7
  type SomeType = core.SomeType;
@@ -9,7 +11,9 @@ export interface ZodMiniType<
9
11
  out Input = unknown,
10
12
  out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>,
11
13
  > extends core.$ZodType<Output, Input, Internals> {
14
+ type: Internals["def"]["type"];
12
15
  check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
16
+ with(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
13
17
  clone(def?: Internals["def"], params?: { parent: boolean }): this;
14
18
  register<R extends core.$ZodRegistry>(
15
19
  registry: R,
@@ -19,9 +23,9 @@ export interface ZodMiniType<
19
23
  : [core.$replace<R["_meta"], this>]
20
24
  : ["Incompatible schema"]
21
25
  ): this;
22
- brand<T extends PropertyKey = PropertyKey>(
26
+ brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(
23
27
  value?: T
24
- ): PropertyKey extends T ? this : this & Record<"_zod", Record<"output", core.output<this> & core.$brand<T>>>;
28
+ ): PropertyKey extends T ? this : core.$ZodBranded<this, T, Dir>;
25
29
 
26
30
  def: Internals["def"];
27
31
 
@@ -32,24 +36,45 @@ export interface ZodMiniType<
32
36
  data: unknown,
33
37
  params?: core.ParseContext<core.$ZodIssue>
34
38
  ): Promise<util.SafeParseResult<core.output<this>>>;
39
+ apply<T, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs): T;
35
40
  }
36
41
 
37
42
  interface _ZodMiniType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals>
38
43
  extends ZodMiniType<any, any, Internals> {}
39
44
 
40
- export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$constructor(
45
+ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$constructor<ZodMiniType>(
41
46
  "ZodMiniType",
42
47
  (inst, def) => {
43
48
  if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
44
49
 
45
50
  core.$ZodType.init(inst, def);
51
+
46
52
  inst.def = def;
47
- inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
48
- inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
49
- inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
50
- inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);
51
- inst.check = (...checks) => {
52
- return inst.clone(
53
+ inst.type = def.type;
54
+ },
55
+ {
56
+ // `with` is an alias for `check`: the same function object, not a wrapper.
57
+ get with(): ZodMiniType["check"] {
58
+ return this.check;
59
+ },
60
+ set with(value: ZodMiniType["check"]) {
61
+ util.own(this, "with", value);
62
+ },
63
+ parse(data, params) {
64
+ return parse.parse(this, data, params, { callee: this.parse });
65
+ },
66
+ parseAsync(data, params) {
67
+ return parse.parseAsync(this, data, params, { callee: this.parseAsync });
68
+ },
69
+ safeParse(data, params) {
70
+ return parse.safeParse(this, data, params);
71
+ },
72
+ safeParseAsync(data, params) {
73
+ return parse.safeParseAsync(this, data, params);
74
+ },
75
+ check(...checks) {
76
+ const def = this.def;
77
+ return this.clone(
53
78
  {
54
79
  ...def,
55
80
  checks: [
@@ -58,16 +83,23 @@ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$c
58
83
  typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
59
84
  ),
60
85
  ],
61
- }
62
- // { parent: true }
86
+ },
87
+ { parent: true }
63
88
  );
64
- };
65
- inst.clone = (_def, params) => core.clone(inst, _def, params);
66
- inst.brand = () => inst as any;
67
- inst.register = ((reg: any, meta: any) => {
68
- reg.add(inst, meta);
69
- return inst;
70
- }) as any;
89
+ },
90
+ clone(_def, params) {
91
+ return core.clone(this, _def, params);
92
+ },
93
+ brand() {
94
+ return this as any;
95
+ },
96
+ register(reg: any, meta: any): any {
97
+ reg.add(this, meta);
98
+ return this;
99
+ },
100
+ apply(fn: any, ...args: any[]) {
101
+ return args.length === 0 ? fn(this) : fn(this, ...args);
102
+ },
71
103
  }
72
104
  );
73
105
 
@@ -89,6 +121,7 @@ export const ZodMiniString: core.$constructor<ZodMiniString> = /*@__PURE__*/ cor
89
121
  }
90
122
  );
91
123
 
124
+ // @__NO_SIDE_EFFECTS__
92
125
  export function string(params?: string | core.$ZodStringParams): ZodMiniString<string> {
93
126
  return core._string(ZodMiniString, params) as any;
94
127
  }
@@ -117,6 +150,7 @@ export const ZodMiniEmail: core.$constructor<ZodMiniEmail> = /*@__PURE__*/ core.
117
150
  }
118
151
  );
119
152
 
153
+ // @__NO_SIDE_EFFECTS__
120
154
  export function email(params?: string | core.$ZodEmailParams): ZodMiniEmail {
121
155
  return core._email(ZodMiniEmail, params);
122
156
  }
@@ -133,6 +167,7 @@ export const ZodMiniGUID: core.$constructor<ZodMiniGUID> = /*@__PURE__*/ core.$c
133
167
  }
134
168
  );
135
169
 
170
+ // @__NO_SIDE_EFFECTS__
136
171
  export function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID {
137
172
  return core._guid(ZodMiniGUID, params);
138
173
  }
@@ -149,22 +184,26 @@ export const ZodMiniUUID: core.$constructor<ZodMiniUUID> = /*@__PURE__*/ core.$c
149
184
  }
150
185
  );
151
186
 
187
+ // @__NO_SIDE_EFFECTS__
152
188
  export function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID {
153
189
  return core._uuid(ZodMiniUUID, params);
154
190
  }
155
191
 
192
+ // @__NO_SIDE_EFFECTS__
156
193
  export function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID {
157
194
  return core._uuidv4(ZodMiniUUID, params);
158
195
  }
159
196
 
160
197
  // ZodMiniUUIDv6
161
198
 
199
+ // @__NO_SIDE_EFFECTS__
162
200
  export function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID {
163
201
  return core._uuidv6(ZodMiniUUID, params);
164
202
  }
165
203
 
166
204
  // ZodMiniUUIDv7
167
205
 
206
+ // @__NO_SIDE_EFFECTS__
168
207
  export function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID {
169
208
  return core._uuidv7(ZodMiniUUID, params);
170
209
  }
@@ -178,10 +217,20 @@ export const ZodMiniURL: core.$constructor<ZodMiniURL> = /*@__PURE__*/ core.$con
178
217
  ZodMiniStringFormat.init(inst, def);
179
218
  });
180
219
 
220
+ // @__NO_SIDE_EFFECTS__
181
221
  export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
182
222
  return core._url(ZodMiniURL, params);
183
223
  }
184
224
 
225
+ // @__NO_SIDE_EFFECTS__
226
+ export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL {
227
+ return core._url(ZodMiniURL, {
228
+ protocol: regexes.httpProtocol,
229
+ hostname: regexes.domain,
230
+ ...util.normalizeParams(params),
231
+ });
232
+ }
233
+
185
234
  // ZodMiniEmoji
186
235
  export interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> {
187
236
  // _zod: core.$ZodEmojiInternals;
@@ -194,6 +243,7 @@ export const ZodMiniEmoji: core.$constructor<ZodMiniEmoji> = /*@__PURE__*/ core.
194
243
  }
195
244
  );
196
245
 
246
+ // @__NO_SIDE_EFFECTS__
197
247
  export function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji {
198
248
  return core._emoji(ZodMiniEmoji, params);
199
249
  }
@@ -210,14 +260,25 @@ export const ZodMiniNanoID: core.$constructor<ZodMiniNanoID> = /*@__PURE__*/ cor
210
260
  }
211
261
  );
212
262
 
263
+ // @__NO_SIDE_EFFECTS__
213
264
  export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
214
265
  return core._nanoid(ZodMiniNanoID, params);
215
266
  }
216
267
 
217
268
  // ZodMiniCUID
269
+ /**
270
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
271
+ * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
272
+ * See https://github.com/paralleldrive/cuid.
273
+ */
218
274
  export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
219
275
  // _zod: core.$ZodCUIDInternals;
220
276
  }
277
+ /**
278
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
279
+ * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
280
+ * See https://github.com/paralleldrive/cuid.
281
+ */
221
282
  export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
222
283
  "ZodMiniCUID",
223
284
  (inst, def) => {
@@ -226,6 +287,14 @@ export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$c
226
287
  }
227
288
  );
228
289
 
290
+ /**
291
+ * Validates a CUID v1 string.
292
+ *
293
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
294
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
295
+ * See https://github.com/paralleldrive/cuid.
296
+ */
297
+ // @__NO_SIDE_EFFECTS__
229
298
  export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
230
299
  return core._cuid(ZodMiniCUID, params);
231
300
  }
@@ -242,6 +311,7 @@ export const ZodMiniCUID2: core.$constructor<ZodMiniCUID2> = /*@__PURE__*/ core.
242
311
  }
243
312
  );
244
313
 
314
+ // @__NO_SIDE_EFFECTS__
245
315
  export function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2 {
246
316
  return core._cuid2(ZodMiniCUID2, params);
247
317
  }
@@ -258,6 +328,7 @@ export const ZodMiniULID: core.$constructor<ZodMiniULID> = /*@__PURE__*/ core.$c
258
328
  }
259
329
  );
260
330
 
331
+ // @__NO_SIDE_EFFECTS__
261
332
  export function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID {
262
333
  return core._ulid(ZodMiniULID, params);
263
334
  }
@@ -271,6 +342,7 @@ export const ZodMiniXID: core.$constructor<ZodMiniXID> = /*@__PURE__*/ core.$con
271
342
  ZodMiniStringFormat.init(inst, def);
272
343
  });
273
344
 
345
+ // @__NO_SIDE_EFFECTS__
274
346
  export function xid(params?: string | core.$ZodXIDParams): ZodMiniXID {
275
347
  return core._xid(ZodMiniXID, params);
276
348
  }
@@ -287,6 +359,7 @@ export const ZodMiniKSUID: core.$constructor<ZodMiniKSUID> = /*@__PURE__*/ core.
287
359
  }
288
360
  );
289
361
 
362
+ // @__NO_SIDE_EFFECTS__
290
363
  export function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID {
291
364
  return core._ksuid(ZodMiniKSUID, params);
292
365
  }
@@ -303,6 +376,7 @@ export const ZodMiniIPv4: core.$constructor<ZodMiniIPv4> = /*@__PURE__*/ core.$c
303
376
  }
304
377
  );
305
378
 
379
+ // @__NO_SIDE_EFFECTS__
306
380
  export function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4 {
307
381
  return core._ipv4(ZodMiniIPv4, params);
308
382
  }
@@ -319,6 +393,7 @@ export const ZodMiniIPv6: core.$constructor<ZodMiniIPv6> = /*@__PURE__*/ core.$c
319
393
  }
320
394
  );
321
395
 
396
+ // @__NO_SIDE_EFFECTS__
322
397
  export function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6 {
323
398
  return core._ipv6(ZodMiniIPv6, params);
324
399
  }
@@ -335,6 +410,7 @@ export const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4> = /*@__PURE__*/ cor
335
410
  }
336
411
  );
337
412
 
413
+ // @__NO_SIDE_EFFECTS__
338
414
  export function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4 {
339
415
  return core._cidrv4(ZodMiniCIDRv4, params);
340
416
  }
@@ -351,10 +427,25 @@ export const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6> = /*@__PURE__*/ cor
351
427
  }
352
428
  );
353
429
 
430
+ // @__NO_SIDE_EFFECTS__
354
431
  export function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6 {
355
432
  return core._cidrv6(ZodMiniCIDRv6, params);
356
433
  }
357
434
 
435
+ // ZodMiniMAC
436
+ export interface ZodMiniMAC extends _ZodMiniString<core.$ZodMACInternals> {
437
+ // _zod: core.$ZodMACInternals;
438
+ }
439
+ export const ZodMiniMAC: core.$constructor<ZodMiniMAC> = /*@__PURE__*/ core.$constructor("ZodMiniMAC", (inst, def) => {
440
+ core.$ZodMAC.init(inst, def);
441
+ ZodMiniStringFormat.init(inst, def);
442
+ });
443
+
444
+ // @__NO_SIDE_EFFECTS__
445
+ export function mac(params?: string | core.$ZodMACParams): ZodMiniMAC {
446
+ return core._mac(ZodMiniMAC, params);
447
+ }
448
+
358
449
  // ZodMiniBase64
359
450
  export interface ZodMiniBase64 extends _ZodMiniString<core.$ZodBase64Internals> {
360
451
  // _zod: core.$ZodBase64Internals;
@@ -366,6 +457,7 @@ export const ZodMiniBase64: core.$constructor<ZodMiniBase64> = /*@__PURE__*/ cor
366
457
  ZodMiniStringFormat.init(inst, def);
367
458
  }
368
459
  );
460
+ // @__NO_SIDE_EFFECTS__
369
461
  export function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64 {
370
462
  return core._base64(ZodMiniBase64, params);
371
463
  }
@@ -381,6 +473,7 @@ export const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL> = /*@__PURE__
381
473
  ZodMiniStringFormat.init(inst, def);
382
474
  }
383
475
  );
476
+ // @__NO_SIDE_EFFECTS__
384
477
  export function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL {
385
478
  return core._base64url(ZodMiniBase64URL, params);
386
479
  }
@@ -397,10 +490,41 @@ export const ZodMiniE164: core.$constructor<ZodMiniE164> = /*@__PURE__*/ core.$c
397
490
  }
398
491
  );
399
492
 
493
+ // @__NO_SIDE_EFFECTS__
400
494
  export function e164(params?: string | core.$ZodE164Params): ZodMiniE164 {
401
495
  return core._e164(ZodMiniE164, params);
402
496
  }
403
497
 
498
+ // ZodMiniCreditCard
499
+ export interface ZodMiniCreditCard extends _ZodMiniString<core.$ZodCreditCardInternals> {}
500
+ export const ZodMiniCreditCard: core.$constructor<ZodMiniCreditCard> = /*@__PURE__*/ core.$constructor(
501
+ "ZodMiniCreditCard",
502
+ (inst, def) => {
503
+ core.$ZodCreditCard.init(inst, def);
504
+ ZodMiniStringFormat.init(inst, def);
505
+ }
506
+ );
507
+
508
+ // @__NO_SIDE_EFFECTS__
509
+ export function creditCard(params?: string | core.$ZodCreditCardParams): ZodMiniCreditCard {
510
+ return core._creditCard(ZodMiniCreditCard, params);
511
+ }
512
+
513
+ // ZodMiniIBAN
514
+ export interface ZodMiniIBAN extends _ZodMiniString<core.$ZodIBANInternals> {}
515
+ export const ZodMiniIBAN: core.$constructor<ZodMiniIBAN> = /*@__PURE__*/ core.$constructor(
516
+ "ZodMiniIBAN",
517
+ (inst, def) => {
518
+ core.$ZodIBAN.init(inst, def);
519
+ ZodMiniStringFormat.init(inst, def);
520
+ }
521
+ );
522
+
523
+ // @__NO_SIDE_EFFECTS__
524
+ export function iban(params?: string | core.$ZodIBANParams): ZodMiniIBAN {
525
+ return core._iban(ZodMiniIBAN, params);
526
+ }
527
+
404
528
  // ZodMiniJWT
405
529
  export interface ZodMiniJWT extends _ZodMiniString<core.$ZodJWTInternals> {
406
530
  // _zod: core.$ZodJWTInternals;
@@ -410,6 +534,7 @@ export const ZodMiniJWT: core.$constructor<ZodMiniJWT> = /*@__PURE__*/ core.$con
410
534
  ZodMiniStringFormat.init(inst, def);
411
535
  });
412
536
 
537
+ // @__NO_SIDE_EFFECTS__
413
538
  export function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT {
414
539
  return core._jwt(ZodMiniJWT, params);
415
540
  }
@@ -428,6 +553,7 @@ export const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFor
428
553
  }
429
554
  );
430
555
 
556
+ // @__NO_SIDE_EFFECTS__
431
557
  export function stringFormat<Format extends string>(
432
558
  format: Format,
433
559
  fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
@@ -436,6 +562,38 @@ export function stringFormat<Format extends string>(
436
562
  return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params) as any;
437
563
  }
438
564
 
565
+ // @__NO_SIDE_EFFECTS__
566
+ export function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname"> {
567
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params) as any;
568
+ }
569
+
570
+ // @__NO_SIDE_EFFECTS__
571
+ export function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex"> {
572
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params) as any;
573
+ }
574
+
575
+ // @__NO_SIDE_EFFECTS__
576
+ export function currencyCode(
577
+ _params?: string | core.$ZodStringFormatParams
578
+ ): ZodMiniCustomStringFormat<"currency_code"> {
579
+ return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params) as any;
580
+ }
581
+
582
+ // @__NO_SIDE_EFFECTS__
583
+ export function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(
584
+ alg: Alg,
585
+ params?: {
586
+ enc?: Enc;
587
+ } & core.$ZodStringFormatParams
588
+ ): ZodMiniCustomStringFormat<`${Alg}_${Enc}`> {
589
+ const enc = params?.enc ?? "hex";
590
+ const format = `${alg}_${enc}` as const;
591
+ const regex = core.regexes[format as keyof typeof core.regexes] as RegExp;
592
+ // check for unrecognized format
593
+ if (!regex) throw new Error(`Unrecognized hash format: ${format}`);
594
+ return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params) as any;
595
+ }
596
+
439
597
  // ZodMiniNumber
440
598
  interface _ZodMiniNumber<T extends core.$ZodNumberInternals<unknown> = core.$ZodNumberInternals<unknown>>
441
599
  extends _ZodMiniType<T>,
@@ -453,12 +611,15 @@ export const ZodMiniNumber: core.$constructor<ZodMiniNumber> = /*@__PURE__*/ cor
453
611
  }
454
612
  );
455
613
 
614
+ // @__NO_SIDE_EFFECTS__
456
615
  export function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number> {
457
616
  return core._number(ZodMiniNumber, params) as any;
458
617
  }
459
618
 
460
619
  // ZodMiniNumberFormat
461
- export interface ZodMiniNumberFormat extends _ZodMiniNumber<core.$ZodNumberFormatInternals>, core.$ZodNumberFormat {}
620
+ export interface ZodMiniNumberFormat<Format extends core.$ZodNumberFormats = core.$ZodNumberFormats>
621
+ extends _ZodMiniNumber<core.$ZodNumberFormatInternals<Format>>,
622
+ core.$ZodNumberFormat<Format> {}
462
623
  export const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> = /*@__PURE__*/ core.$constructor(
463
624
  "ZodMiniNumberFormat",
464
625
  (inst, def) => {
@@ -469,32 +630,42 @@ export const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> = /*@__
469
630
 
470
631
  // int
471
632
 
472
- export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
473
- return core._int(ZodMiniNumberFormat, params);
633
+ // @__NO_SIDE_EFFECTS__
634
+ export interface ZodMiniInt extends ZodMiniNumberFormat<"safeint"> {}
635
+ export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt {
636
+ return core._int(ZodMiniNumberFormat, params) as ZodMiniInt;
474
637
  }
475
638
 
476
639
  // float32
477
640
 
478
- export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
479
- return core._float32(ZodMiniNumberFormat, params);
641
+ // @__NO_SIDE_EFFECTS__
642
+ export interface ZodMiniFloat32 extends ZodMiniNumberFormat<"float32"> {}
643
+ export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat32 {
644
+ return core._float32(ZodMiniNumberFormat, params) as ZodMiniFloat32;
480
645
  }
481
646
 
482
647
  // float64
483
648
 
484
- export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
485
- return core._float64(ZodMiniNumberFormat, params);
649
+ // @__NO_SIDE_EFFECTS__
650
+ export interface ZodMiniFloat64 extends ZodMiniNumberFormat<"float64"> {}
651
+ export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat64 {
652
+ return core._float64(ZodMiniNumberFormat, params) as ZodMiniFloat64;
486
653
  }
487
654
 
488
655
  // int32
489
656
 
490
- export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
491
- return core._int32(ZodMiniNumberFormat, params);
657
+ // @__NO_SIDE_EFFECTS__
658
+ export interface ZodMiniInt32 extends ZodMiniNumberFormat<"int32"> {}
659
+ export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt32 {
660
+ return core._int32(ZodMiniNumberFormat, params) as ZodMiniInt32;
492
661
  }
493
662
 
494
663
  // uint32
495
664
 
496
- export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
497
- return core._uint32(ZodMiniNumberFormat, params);
665
+ // @__NO_SIDE_EFFECTS__
666
+ export interface ZodMiniUInt32 extends ZodMiniNumberFormat<"uint32"> {}
667
+ export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniUInt32 {
668
+ return core._uint32(ZodMiniNumberFormat, params) as ZodMiniUInt32;
498
669
  }
499
670
 
500
671
  // ZodMiniBoolean
@@ -509,6 +680,7 @@ export const ZodMiniBoolean: core.$constructor<ZodMiniBoolean> = /*@__PURE__*/ c
509
680
  }
510
681
  );
511
682
 
683
+ // @__NO_SIDE_EFFECTS__
512
684
  export function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean> {
513
685
  return core._boolean(ZodMiniBoolean, params) as any;
514
686
  }
@@ -525,6 +697,7 @@ export const ZodMiniBigInt: core.$constructor<ZodMiniBigInt> = /*@__PURE__*/ cor
525
697
  }
526
698
  );
527
699
 
700
+ // @__NO_SIDE_EFFECTS__
528
701
  export function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint> {
529
702
  return core._bigint(ZodMiniBigInt, params) as any;
530
703
  }
@@ -532,8 +705,9 @@ export function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<b
532
705
  // bigint formats
533
706
 
534
707
  // ZodMiniBigIntFormat
535
- export interface ZodMiniBigIntFormat extends _ZodMiniType<core.$ZodBigIntFormatInternals> {
536
- // _zod: core.$ZodBigIntFormatInternals;
708
+ export interface ZodMiniBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats>
709
+ extends _ZodMiniType<core.$ZodBigIntFormatInternals<Format>> {
710
+ // _zod: core.$ZodBigIntFormatInternals<Format>;
537
711
  }
538
712
  export const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> = /*@__PURE__*/ core.$constructor(
539
713
  "ZodMiniBigIntFormat",
@@ -545,14 +719,18 @@ export const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> = /*@__
545
719
 
546
720
  // int64
547
721
 
548
- export function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat {
549
- return core._int64(ZodMiniBigIntFormat, params);
722
+ // @__NO_SIDE_EFFECTS__
723
+ export interface ZodMiniInt64 extends ZodMiniBigIntFormat<"int64"> {}
724
+ export function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniInt64 {
725
+ return core._int64(ZodMiniBigIntFormat, params) as ZodMiniInt64;
550
726
  }
551
727
 
552
728
  // uint64
553
729
 
554
- export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat {
555
- return core._uint64(ZodMiniBigIntFormat, params);
730
+ // @__NO_SIDE_EFFECTS__
731
+ export interface ZodMiniUInt64 extends ZodMiniBigIntFormat<"uint64"> {}
732
+ export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniUInt64 {
733
+ return core._uint64(ZodMiniBigIntFormat, params) as ZodMiniUInt64;
556
734
  }
557
735
 
558
736
  // ZodMiniSymbol
@@ -567,6 +745,7 @@ export const ZodMiniSymbol: core.$constructor<ZodMiniSymbol> = /*@__PURE__*/ cor
567
745
  }
568
746
  );
569
747
 
748
+ // @__NO_SIDE_EFFECTS__
570
749
  export function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol {
571
750
  return core._symbol(ZodMiniSymbol, params) as any;
572
751
  }
@@ -583,6 +762,7 @@ export const ZodMiniUndefined: core.$constructor<ZodMiniUndefined> = /*@__PURE__
583
762
  }
584
763
  );
585
764
 
765
+ // @__NO_SIDE_EFFECTS__
586
766
  function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined {
587
767
  return core._undefined(ZodMiniUndefined, params) as any;
588
768
  }
@@ -600,6 +780,7 @@ export const ZodMiniNull: core.$constructor<ZodMiniNull> = /*@__PURE__*/ core.$c
600
780
  }
601
781
  );
602
782
 
783
+ // @__NO_SIDE_EFFECTS__
603
784
  function _null(params?: string | core.$ZodNullParams): ZodMiniNull {
604
785
  return core._null(ZodMiniNull, params) as any;
605
786
  }
@@ -614,6 +795,7 @@ export const ZodMiniAny: core.$constructor<ZodMiniAny> = /*@__PURE__*/ core.$con
614
795
  ZodMiniType.init(inst, def);
615
796
  });
616
797
 
798
+ // @__NO_SIDE_EFFECTS__
617
799
  export function any(): ZodMiniAny {
618
800
  return core._any(ZodMiniAny) as any;
619
801
  }
@@ -630,6 +812,7 @@ export const ZodMiniUnknown: core.$constructor<ZodMiniUnknown> = /*@__PURE__*/ c
630
812
  }
631
813
  );
632
814
 
815
+ // @__NO_SIDE_EFFECTS__
633
816
  export function unknown(): ZodMiniUnknown {
634
817
  return core._unknown(ZodMiniUnknown) as any;
635
818
  }
@@ -646,6 +829,7 @@ export const ZodMiniNever: core.$constructor<ZodMiniNever> = /*@__PURE__*/ core.
646
829
  }
647
830
  );
648
831
 
832
+ // @__NO_SIDE_EFFECTS__
649
833
  export function never(params?: string | core.$ZodNeverParams): ZodMiniNever {
650
834
  return core._never(ZodMiniNever, params) as any;
651
835
  }
@@ -662,6 +846,7 @@ export const ZodMiniVoid: core.$constructor<ZodMiniVoid> = /*@__PURE__*/ core.$c
662
846
  }
663
847
  );
664
848
 
849
+ // @__NO_SIDE_EFFECTS__
665
850
  function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid {
666
851
  return core._void(ZodMiniVoid, params) as any;
667
852
  }
@@ -680,6 +865,7 @@ export const ZodMiniDate: core.$constructor<ZodMiniDate> = /*@__PURE__*/ core.$c
680
865
  }
681
866
  );
682
867
 
868
+ // @__NO_SIDE_EFFECTS__
683
869
  export function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date> {
684
870
  return core._date(ZodMiniDate, params) as any;
685
871
  }
@@ -699,6 +885,7 @@ export const ZodMiniArray: core.$constructor<ZodMiniArray> = /*@__PURE__*/ core.
699
885
  );
700
886
 
701
887
  export function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
888
+ // @__NO_SIDE_EFFECTS__
702
889
  export function array<T extends SomeType>(element: SomeType, params?: any): ZodMiniArray<T> {
703
890
  return new ZodMiniArray({
704
891
  type: "array",
@@ -708,9 +895,10 @@ export function array<T extends SomeType>(element: SomeType, params?: any): ZodM
708
895
  }
709
896
 
710
897
  // .keyof
711
- export function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<Exclude<keyof T["shape"], symbol>> {
898
+ // @__NO_SIDE_EFFECTS__
899
+ export function keyof<T extends ZodMiniObject>(schema: T): ZodMiniEnum<util.KeysEnum<T["shape"]>> {
712
900
  const shape = schema._zod.def.shape;
713
- return literal(Object.keys(shape)) as any;
901
+ return _enum(Object.keys(shape)) as any;
714
902
  }
715
903
 
716
904
  // ZodMiniObject
@@ -727,113 +915,163 @@ export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ cor
727
915
  (inst, def) => {
728
916
  core.$ZodObject.init(inst, def);
729
917
  ZodMiniType.init(inst, def);
730
- util.defineLazy(inst, "shape", () => def.shape);
918
+ util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
731
919
  }
732
920
  );
921
+ // @__NO_SIDE_EFFECTS__
733
922
  export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
734
923
  shape?: T,
735
924
  params?: string | core.$ZodObjectParams
736
- ): ZodMiniObject<T, core.$strip> {
925
+ ): ZodMiniObject<util.Writeable<T>, core.$strip> {
737
926
  const def: core.$ZodObjectDef = {
738
927
  type: "object",
739
- get shape() {
740
- util.assignProp(this, "shape", { ...shape });
741
- return this.shape;
742
- },
928
+ shape: shape ?? {},
743
929
  ...util.normalizeParams(params),
744
930
  };
745
931
  return new ZodMiniObject(def) as any;
746
932
  }
747
933
 
748
934
  // strictObject
935
+ // @__NO_SIDE_EFFECTS__
749
936
  export function strictObject<T extends core.$ZodLooseShape>(
750
937
  shape: T,
751
938
  params?: string | core.$ZodObjectParams
752
- ): ZodMiniObject<T, core.$strict> {
939
+ ): ZodMiniObject<util.Writeable<T>, core.$strict> {
753
940
  return new ZodMiniObject({
754
941
  type: "object",
755
- // shape: shape as core.$ZodLooseShape,
756
- get shape() {
757
- util.assignProp(this, "shape", { ...shape });
758
- return this.shape;
759
- },
942
+ shape,
760
943
  catchall: never(),
761
944
  ...util.normalizeParams(params),
762
945
  }) as any;
763
946
  }
764
947
 
765
948
  // looseObject
949
+ // @__NO_SIDE_EFFECTS__
766
950
  export function looseObject<T extends core.$ZodLooseShape>(
767
951
  shape: T,
768
952
  params?: string | core.$ZodObjectParams
769
- ): ZodMiniObject<T, core.$loose> {
953
+ ): ZodMiniObject<util.Writeable<T>, core.$loose> {
770
954
  return new ZodMiniObject({
771
955
  type: "object",
772
- // shape: shape as core.$ZodLooseShape,
773
- get shape() {
774
- util.assignProp(this, "shape", { ...shape });
775
- return this.shape;
776
- },
777
- // get optional() {
778
- // return util.optionalKeys(shape);
779
- // },
956
+ shape,
780
957
  catchall: unknown(),
781
958
  ...util.normalizeParams(params),
782
959
  }) as any;
783
960
  }
784
961
 
785
962
  // object methods
963
+ // @__NO_SIDE_EFFECTS__
786
964
  export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
787
965
  schema: T,
788
966
  shape: U
789
- ): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]> {
967
+ ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
790
968
  return util.extend(schema, shape);
791
969
  }
792
970
 
793
- /** @deprecated Identical to `z.extend(A, B)` */
971
+ export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
972
+ [K in keyof Ext]: K extends keyof Base
973
+ ? core.output<Ext[K]> extends core.output<Base[K]>
974
+ ? core.input<Ext[K]> extends core.input<Base[K]>
975
+ ? Ext[K]
976
+ : never
977
+ : never
978
+ : Ext[K];
979
+ };
980
+
981
+ // @__NO_SIDE_EFFECTS__
982
+ export function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
983
+ schema: T,
984
+ shape: SafeExtendShape<T["shape"], U>
985
+ ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
986
+ return util.safeExtend(schema, shape as any);
987
+ }
988
+
989
+ /**
990
+ * @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.
991
+ */
992
+ // @__NO_SIDE_EFFECTS__
794
993
  export function merge<T extends ZodMiniObject, U extends ZodMiniObject>(
795
994
  a: T,
796
995
  b: U
797
- ): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, T["_zod"]["config"]>;
798
- export function merge(schema: ZodMiniObject, shape: any): ZodMiniObject {
799
- return util.extend(schema, shape);
996
+ ): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, U["_zod"]["config"]> {
997
+ return util.merge(a, b) as any;
800
998
  }
801
999
 
1000
+ // @__NO_SIDE_EFFECTS__
802
1001
  export function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
803
1002
  schema: T,
804
- mask: M
1003
+ mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
805
1004
  ): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]> {
806
1005
  return util.pick(schema, mask as any);
807
1006
  }
808
1007
 
809
1008
  // .omit
810
1009
 
811
- export function omit<T extends ZodMiniObject, const M extends util.Mask<keyof T["shape"]>>(
1010
+ // @__NO_SIDE_EFFECTS__
1011
+ export function omit<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
812
1012
  schema: T,
813
- mask: M
1013
+ mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
814
1014
  ): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]> {
815
1015
  return util.omit(schema, mask);
816
1016
  }
817
1017
 
1018
+ // @__NO_SIDE_EFFECTS__
818
1019
  export function partial<T extends ZodMiniObject>(
819
1020
  schema: T
820
1021
  ): ZodMiniObject<
821
1022
  {
822
- [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
1023
+ -readonly [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
823
1024
  },
824
1025
  T["_zod"]["config"]
825
1026
  >;
1027
+ // @__NO_SIDE_EFFECTS__
826
1028
  export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
827
1029
  schema: T,
828
- mask: M
1030
+ mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
829
1031
  ): ZodMiniObject<
830
1032
  {
831
- [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
1033
+ -readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
832
1034
  },
833
1035
  T["_zod"]["config"]
834
1036
  >;
835
- export function partial(schema: ZodMiniObject, mask?: object) {
836
- return util.partial(ZodMiniOptional, schema, mask);
1037
+ // @__NO_SIDE_EFFECTS__
1038
+ export function partial<T extends util.TupleItems, Rest extends SomeType | null>(
1039
+ schema: ZodMiniTuple<T, Rest>
1040
+ ): ZodMiniTuple<{ -readonly [k in keyof T]: ZodMiniOptional<T[k]> }, Rest>;
1041
+ // @__NO_SIDE_EFFECTS__
1042
+ export function partial(schema: ZodMiniObject | ZodMiniTuple, mask?: object) {
1043
+ const def = schema._zod.def;
1044
+ if (def.type !== "tuple") return util.partial(ZodMiniOptional, schema as ZodMiniObject, mask);
1045
+ // a refinement was authored against the full arity; partialing would run it on a shorter array
1046
+ if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements");
1047
+ return util.clone(schema, {
1048
+ ...def,
1049
+ items: def.items.map((item) => new ZodMiniOptional({ type: "optional", innerType: item as core.$ZodType })),
1050
+ });
1051
+ }
1052
+
1053
+ // @__NO_SIDE_EFFECTS__
1054
+ export function exactPartial<T extends ZodMiniObject>(
1055
+ schema: T
1056
+ ): ZodMiniObject<
1057
+ {
1058
+ -readonly [k in keyof T["shape"]]: ZodMiniExactOptional<T["shape"][k]>;
1059
+ },
1060
+ T["_zod"]["config"]
1061
+ >;
1062
+ // @__NO_SIDE_EFFECTS__
1063
+ export function exactPartial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
1064
+ schema: T,
1065
+ mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
1066
+ ): ZodMiniObject<
1067
+ {
1068
+ -readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniExactOptional<T["shape"][k]> : T["shape"][k];
1069
+ },
1070
+ T["_zod"]["config"]
1071
+ >;
1072
+ // @__NO_SIDE_EFFECTS__
1073
+ export function exactPartial(schema: ZodMiniObject, mask?: object) {
1074
+ return util.partial(ZodMiniExactOptional, schema, mask, "exactPartial");
837
1075
  }
838
1076
 
839
1077
  export type RequiredInterfaceShape<
@@ -847,17 +1085,19 @@ export type RequiredInterfaceShape<
847
1085
  }
848
1086
  >;
849
1087
 
1088
+ // @__NO_SIDE_EFFECTS__
850
1089
  export function required<T extends ZodMiniObject>(
851
1090
  schema: T
852
1091
  ): ZodMiniObject<
853
1092
  {
854
- [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
1093
+ -readonly [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
855
1094
  },
856
1095
  T["_zod"]["config"]
857
1096
  >;
1097
+ // @__NO_SIDE_EFFECTS__
858
1098
  export function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
859
1099
  schema: T,
860
- mask: M
1100
+ mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
861
1101
  ): ZodMiniObject<
862
1102
  util.Extend<
863
1103
  T["shape"],
@@ -867,15 +1107,18 @@ export function required<T extends ZodMiniObject, M extends util.Mask<keyof T["s
867
1107
  >,
868
1108
  T["_zod"]["config"]
869
1109
  >;
1110
+ // @__NO_SIDE_EFFECTS__
870
1111
  export function required(schema: ZodMiniObject, mask?: object) {
871
1112
  return util.required(ZodMiniNonOptional, schema, mask);
872
1113
  }
873
1114
 
1115
+ // @__NO_SIDE_EFFECTS__
874
1116
  export function catchall<T extends ZodMiniObject, U extends SomeType>(
875
1117
  inst: T,
876
1118
  catchall: U
877
1119
  ): ZodMiniObject<T["shape"], core.$catchall<U>> {
878
- return inst.clone({ ...inst._zod.def, catchall: catchall as any }) as any;
1120
+ // `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
1121
+ return inst.clone(util.mergeDefs(inst._zod.def, { catchall: catchall as any })) as any;
879
1122
  }
880
1123
 
881
1124
  // ZodMiniUnion
@@ -891,6 +1134,7 @@ export const ZodMiniUnion: core.$constructor<ZodMiniUnion> = /*@__PURE__*/ core.
891
1134
  }
892
1135
  );
893
1136
 
1137
+ // @__NO_SIDE_EFFECTS__
894
1138
  export function union<const T extends readonly SomeType[]>(
895
1139
  options: T,
896
1140
  params?: string | core.$ZodUnionParams
@@ -902,10 +1146,37 @@ export function union<const T extends readonly SomeType[]>(
902
1146
  }) as any;
903
1147
  }
904
1148
 
1149
+ // ZodMiniXor
1150
+ export interface ZodMiniXor<T extends readonly SomeType[] = readonly core.$ZodType[]>
1151
+ extends _ZodMiniType<core.$ZodXorInternals<T>> {
1152
+ // _zod: core.$ZodXorInternals<T>;
1153
+ }
1154
+ export const ZodMiniXor: core.$constructor<ZodMiniXor> = /*@__PURE__*/ core.$constructor("ZodMiniXor", (inst, def) => {
1155
+ ZodMiniUnion.init(inst, def);
1156
+ core.$ZodXor.init(inst, def);
1157
+ });
1158
+
1159
+ /** Creates an exclusive union (XOR) where exactly one option must match.
1160
+ * Unlike regular unions that succeed when any option matches, xor fails if
1161
+ * zero or more than one option matches the input. */
1162
+ export function xor<const T extends readonly SomeType[]>(
1163
+ options: T,
1164
+ params?: string | core.$ZodXorParams
1165
+ ): ZodMiniXor<T> {
1166
+ return new ZodMiniXor({
1167
+ type: "union",
1168
+ options: options as any as core.$ZodType[],
1169
+ inclusive: false,
1170
+ ...util.normalizeParams(params),
1171
+ }) as any;
1172
+ }
1173
+
905
1174
  // ZodMiniDiscriminatedUnion
906
- export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[]>
907
- extends ZodMiniUnion<Options> {
908
- _zod: core.$ZodDiscriminatedUnionInternals<Options>;
1175
+ export interface ZodMiniDiscriminatedUnion<
1176
+ Options extends readonly SomeType[] = readonly core.$ZodType[],
1177
+ Disc extends string = string,
1178
+ > extends ZodMiniUnion<Options> {
1179
+ _zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
909
1180
  }
910
1181
  export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion> = /*@__PURE__*/ core.$constructor(
911
1182
  "ZodMiniDiscriminatedUnion",
@@ -915,19 +1186,21 @@ export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUn
915
1186
  }
916
1187
  );
917
1188
 
1189
+ // @__NO_SIDE_EFFECTS__
918
1190
  export function discriminatedUnion<
919
1191
  Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
1192
+ Disc extends string,
920
1193
  >(
921
- discriminator: string,
1194
+ discriminator: Disc,
922
1195
  options: Types,
923
1196
  params?: string | core.$ZodDiscriminatedUnionParams
924
- ): ZodMiniDiscriminatedUnion<Types> {
1197
+ ): ZodMiniDiscriminatedUnion<Types, Disc> {
925
1198
  return new ZodMiniDiscriminatedUnion({
926
1199
  type: "union",
927
- options,
1200
+ options: options as any as core.$ZodType[],
928
1201
  discriminator,
929
1202
  ...util.normalizeParams(params),
930
- }) as ZodMiniDiscriminatedUnion<Types>;
1203
+ }) as any as ZodMiniDiscriminatedUnion<Types, Disc>;
931
1204
  }
932
1205
 
933
1206
  // ZodMiniIntersection
@@ -943,6 +1216,7 @@ export const ZodMiniIntersection: core.$constructor<ZodMiniIntersection> = /*@__
943
1216
  }
944
1217
  );
945
1218
 
1219
+ // @__NO_SIDE_EFFECTS__
946
1220
  export function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U> {
947
1221
  return new ZodMiniIntersection({
948
1222
  type: "intersection",
@@ -976,6 +1250,7 @@ export function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest e
976
1250
  params?: string | core.$ZodTupleParams
977
1251
  ): ZodMiniTuple<T, Rest>;
978
1252
  export function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
1253
+ // @__NO_SIDE_EFFECTS__
979
1254
  export function tuple(
980
1255
  items: SomeType[],
981
1256
  _paramsOrRest?: string | core.$ZodTupleParams | SomeType,
@@ -1007,11 +1282,21 @@ export const ZodMiniRecord: core.$constructor<ZodMiniRecord> = /*@__PURE__*/ cor
1007
1282
  }
1008
1283
  );
1009
1284
 
1285
+ // @__NO_SIDE_EFFECTS__
1010
1286
  export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
1011
1287
  keyType: Key,
1012
1288
  valueType: Value,
1013
1289
  params?: string | core.$ZodRecordParams
1014
1290
  ): ZodMiniRecord<Key, Value> {
1291
+ // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
1292
+ if (!valueType || !(valueType as any)._zod) {
1293
+ return new ZodMiniRecord({
1294
+ type: "record",
1295
+ keyType: string() as any,
1296
+ valueType: keyType as any as core.$ZodType,
1297
+ ...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
1298
+ }) as any;
1299
+ }
1015
1300
  return new ZodMiniRecord({
1016
1301
  type: "record",
1017
1302
  keyType,
@@ -1019,6 +1304,7 @@ export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
1019
1304
  ...util.normalizeParams(params),
1020
1305
  }) as any;
1021
1306
  }
1307
+ // @__NO_SIDE_EFFECTS__
1022
1308
  export function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
1023
1309
  keyType: Key,
1024
1310
  valueType: Value,
@@ -1026,9 +1312,24 @@ export function partialRecord<Key extends core.$ZodRecordKey, Value extends Some
1026
1312
  ): ZodMiniRecord<Key & core.$partial, Value> {
1027
1313
  return new ZodMiniRecord({
1028
1314
  type: "record",
1029
- keyType: union([keyType, never()]),
1315
+ keyType,
1030
1316
  valueType: valueType as any,
1031
1317
  ...util.normalizeParams(params),
1318
+ partial: true,
1319
+ }) as any;
1320
+ }
1321
+
1322
+ export function looseRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
1323
+ keyType: Key,
1324
+ valueType: Value,
1325
+ params?: string | core.$ZodRecordParams
1326
+ ): ZodMiniRecord<Key, Value> {
1327
+ return new ZodMiniRecord({
1328
+ type: "record",
1329
+ keyType,
1330
+ valueType: valueType as any as core.$ZodType,
1331
+ mode: "loose",
1332
+ ...util.normalizeParams(params),
1032
1333
  }) as any;
1033
1334
  }
1034
1335
 
@@ -1042,6 +1343,7 @@ export const ZodMiniMap: core.$constructor<ZodMiniMap> = /*@__PURE__*/ core.$con
1042
1343
  ZodMiniType.init(inst, def);
1043
1344
  });
1044
1345
 
1346
+ // @__NO_SIDE_EFFECTS__
1045
1347
  export function map<Key extends SomeType, Value extends SomeType>(
1046
1348
  keyType: Key,
1047
1349
  valueType: Value,
@@ -1064,6 +1366,7 @@ export const ZodMiniSet: core.$constructor<ZodMiniSet> = /*@__PURE__*/ core.$con
1064
1366
  ZodMiniType.init(inst, def);
1065
1367
  });
1066
1368
 
1369
+ // @__NO_SIDE_EFFECTS__
1067
1370
  export function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value> {
1068
1371
  return new ZodMiniSet({
1069
1372
  type: "set",
@@ -1075,12 +1378,16 @@ export function set<Value extends SomeType>(valueType: Value, params?: string |
1075
1378
  // ZodMiniEnum
1076
1379
  export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> {
1077
1380
  // _zod: core.$ZodEnumInternals<T>;
1381
+ options: Array<T[keyof T]>;
1078
1382
  }
1079
1383
  export const ZodMiniEnum: core.$constructor<ZodMiniEnum> = /*@__PURE__*/ core.$constructor(
1080
1384
  "ZodMiniEnum",
1081
1385
  (inst, def) => {
1082
1386
  core.$ZodEnum.init(inst, def);
1083
1387
  ZodMiniType.init(inst, def);
1388
+
1389
+ // reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
1390
+ inst.options = [...inst._zod.values] as util.EnumValue[];
1084
1391
  }
1085
1392
  );
1086
1393
 
@@ -1089,6 +1396,7 @@ function _enum<const T extends readonly string[]>(
1089
1396
  params?: string | core.$ZodEnumParams
1090
1397
  ): ZodMiniEnum<util.ToEnum<T[number]>>;
1091
1398
  function _enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
1399
+ // @__NO_SIDE_EFFECTS__
1092
1400
  function _enum(values: any, params?: string | core.$ZodEnumParams) {
1093
1401
  const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1094
1402
 
@@ -1100,6 +1408,7 @@ function _enum(values: any, params?: string | core.$ZodEnumParams) {
1100
1408
  }
1101
1409
  export { _enum as enum };
1102
1410
 
1411
+ // @__NO_SIDE_EFFECTS__
1103
1412
  /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1104
1413
  *
1105
1414
  * ```ts
@@ -1136,6 +1445,7 @@ export function literal<const T extends util.Literal>(
1136
1445
  value: T,
1137
1446
  params?: string | core.$ZodLiteralParams
1138
1447
  ): ZodMiniLiteral<T>;
1448
+ // @__NO_SIDE_EFFECTS__
1139
1449
  export function literal(value: any, params: any) {
1140
1450
  return new ZodMiniLiteral({
1141
1451
  type: "literal",
@@ -1156,6 +1466,7 @@ export const ZodMiniFile: core.$constructor<ZodMiniFile> = /*@__PURE__*/ core.$c
1156
1466
  }
1157
1467
  );
1158
1468
 
1469
+ // @__NO_SIDE_EFFECTS__
1159
1470
  export function file(params?: string | core.$ZodFileParams): ZodMiniFile {
1160
1471
  return core._file(ZodMiniFile, params) as any;
1161
1472
  }
@@ -1172,6 +1483,7 @@ export const ZodMiniTransform: core.$constructor<ZodMiniTransform> = /*@__PURE__
1172
1483
  }
1173
1484
  );
1174
1485
 
1486
+ // @__NO_SIDE_EFFECTS__
1175
1487
  export function transform<I = unknown, O = I>(
1176
1488
  fn: (input: I, ctx: core.ParsePayload) => O
1177
1489
  ): ZodMiniTransform<Awaited<O>, I> {
@@ -1195,6 +1507,7 @@ export const ZodMiniOptional: core.$constructor<ZodMiniOptional> = /*@__PURE__*/
1195
1507
  }
1196
1508
  );
1197
1509
 
1510
+ // @__NO_SIDE_EFFECTS__
1198
1511
  export function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> {
1199
1512
  return new ZodMiniOptional({
1200
1513
  type: "optional",
@@ -1202,6 +1515,28 @@ export function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> {
1202
1515
  }) as any;
1203
1516
  }
1204
1517
 
1518
+ // ZodMiniExactOptional
1519
+ export interface ZodMiniExactOptional<T extends SomeType = core.$ZodType>
1520
+ extends _ZodMiniType<core.$ZodExactOptionalInternals<T>>,
1521
+ core.$ZodExactOptional<T> {
1522
+ // _zod: core.$ZodExactOptionalInternals<T>;
1523
+ }
1524
+ export const ZodMiniExactOptional: core.$constructor<ZodMiniExactOptional> = /*@__PURE__*/ core.$constructor(
1525
+ "ZodMiniExactOptional",
1526
+ (inst, def) => {
1527
+ core.$ZodExactOptional.init(inst, def);
1528
+ ZodMiniType.init(inst, def);
1529
+ }
1530
+ );
1531
+
1532
+ // @__NO_SIDE_EFFECTS__
1533
+ export function exactOptional<T extends SomeType>(innerType: T): ZodMiniExactOptional<T> {
1534
+ return new ZodMiniExactOptional({
1535
+ type: "optional",
1536
+ innerType: innerType as any as core.$ZodType,
1537
+ }) as any;
1538
+ }
1539
+
1205
1540
  // ZodMiniNullable
1206
1541
  export interface ZodMiniNullable<T extends SomeType = core.$ZodType>
1207
1542
  extends _ZodMiniType<core.$ZodNullableInternals<T>> {
@@ -1215,6 +1550,7 @@ export const ZodMiniNullable: core.$constructor<ZodMiniNullable> = /*@__PURE__*/
1215
1550
  }
1216
1551
  );
1217
1552
 
1553
+ // @__NO_SIDE_EFFECTS__
1218
1554
  export function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> {
1219
1555
  return new ZodMiniNullable({
1220
1556
  type: "nullable",
@@ -1223,6 +1559,7 @@ export function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> {
1223
1559
  }
1224
1560
 
1225
1561
  // nullish
1562
+ // @__NO_SIDE_EFFECTS__
1226
1563
  export function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>> {
1227
1564
  return optional(nullable(innerType));
1228
1565
  }
@@ -1239,6 +1576,7 @@ export const ZodMiniDefault: core.$constructor<ZodMiniDefault> = /*@__PURE__*/ c
1239
1576
  }
1240
1577
  );
1241
1578
 
1579
+ // @__NO_SIDE_EFFECTS__
1242
1580
  export function _default<T extends SomeType>(
1243
1581
  innerType: T,
1244
1582
  defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
@@ -1247,7 +1585,7 @@ export function _default<T extends SomeType>(
1247
1585
  type: "default",
1248
1586
  innerType: innerType as any as core.$ZodType,
1249
1587
  get defaultValue() {
1250
- return typeof defaultValue === "function" ? (defaultValue as Function)() : defaultValue;
1588
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1251
1589
  },
1252
1590
  }) as any;
1253
1591
  }
@@ -1264,15 +1602,16 @@ export const ZodMiniPrefault: core.$constructor<ZodMiniPrefault> = /*@__PURE__*/
1264
1602
  ZodMiniType.init(inst, def);
1265
1603
  }
1266
1604
  );
1605
+ // @__NO_SIDE_EFFECTS__
1267
1606
  export function prefault<T extends SomeType>(
1268
1607
  innerType: T,
1269
- defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)
1608
+ defaultValue: core.input<T> | (() => core.input<T>)
1270
1609
  ): ZodMiniPrefault<T> {
1271
1610
  return new ZodMiniPrefault({
1272
1611
  type: "prefault",
1273
1612
  innerType: innerType as any as core.$ZodType,
1274
1613
  get defaultValue() {
1275
- return typeof defaultValue === "function" ? (defaultValue as Function)() : defaultValue;
1614
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1276
1615
  },
1277
1616
  }) as any;
1278
1617
  }
@@ -1290,6 +1629,7 @@ export const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional> = /*@__PU
1290
1629
  }
1291
1630
  );
1292
1631
 
1632
+ // @__NO_SIDE_EFFECTS__
1293
1633
  export function nonoptional<T extends SomeType>(
1294
1634
  innerType: T,
1295
1635
  params?: string | core.$ZodNonOptionalParams
@@ -1313,6 +1653,7 @@ export const ZodMiniSuccess: core.$constructor<ZodMiniSuccess> = /*@__PURE__*/ c
1313
1653
  }
1314
1654
  );
1315
1655
 
1656
+ // @__NO_SIDE_EFFECTS__
1316
1657
  export function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T> {
1317
1658
  return new ZodMiniSuccess({
1318
1659
  type: "success",
@@ -1332,6 +1673,7 @@ export const ZodMiniCatch: core.$constructor<ZodMiniCatch> = /*@__PURE__*/ core.
1332
1673
  }
1333
1674
  );
1334
1675
 
1676
+ // @__NO_SIDE_EFFECTS__
1335
1677
  function _catch<T extends SomeType>(
1336
1678
  innerType: T,
1337
1679
  catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)
@@ -1339,7 +1681,7 @@ function _catch<T extends SomeType>(
1339
1681
  return new ZodMiniCatch({
1340
1682
  type: "catch",
1341
1683
  innerType: innerType as any as core.$ZodType,
1342
- catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue) as (
1684
+ catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)) as (
1343
1685
  ctx: core.$ZodCatchCtx
1344
1686
  ) => core.output<T>,
1345
1687
  }) as any;
@@ -1355,6 +1697,7 @@ export const ZodMiniNaN: core.$constructor<ZodMiniNaN> = /*@__PURE__*/ core.$con
1355
1697
  ZodMiniType.init(inst, def);
1356
1698
  });
1357
1699
 
1700
+ // @__NO_SIDE_EFFECTS__
1358
1701
  export function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN {
1359
1702
  return core._nan(ZodMiniNaN, params) as any;
1360
1703
  }
@@ -1372,6 +1715,7 @@ export const ZodMiniPipe: core.$constructor<ZodMiniPipe> = /*@__PURE__*/ core.$c
1372
1715
  }
1373
1716
  );
1374
1717
 
1718
+ // @__NO_SIDE_EFFECTS__
1375
1719
  export function pipe<
1376
1720
  const A extends SomeType,
1377
1721
  B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>,
@@ -1383,14 +1727,50 @@ export function pipe<
1383
1727
  }) as any;
1384
1728
  }
1385
1729
 
1386
- // /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
1387
- // export function preprocess<A, U extends core.$ZodType>(
1388
- // fn: (arg: unknown, ctx: core.ParsePayload) => A,
1389
- // schema: U,
1390
- // params?: ZodPreprocessParams
1391
- // ): ZodPipe<ZodTransform<A, unknown>, U> {
1392
- // return pipe(transform(fn as any, params), schema as any, params);
1393
- // }
1730
+ // ZodMiniCodec
1731
+ export interface ZodMiniCodec<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
1732
+ extends ZodMiniPipe<A, B>,
1733
+ core.$ZodCodec<A, B> {
1734
+ _zod: core.$ZodCodecInternals<A, B>;
1735
+ def: core.$ZodCodecDef<A, B>;
1736
+ }
1737
+ export const ZodMiniCodec: core.$constructor<ZodMiniCodec> = /*@__PURE__*/ core.$constructor(
1738
+ "ZodMiniCodec",
1739
+ (inst, def) => {
1740
+ ZodMiniPipe.init(inst, def);
1741
+ core.$ZodCodec.init(inst, def);
1742
+ }
1743
+ );
1744
+
1745
+ // @__NO_SIDE_EFFECTS__
1746
+ export function codec<const A extends SomeType, B extends core.SomeType = core.$ZodType>(
1747
+ in_: A,
1748
+ out: B,
1749
+ params: {
1750
+ decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
1751
+ encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
1752
+ }
1753
+ ): ZodMiniCodec<A, B> {
1754
+ return new ZodMiniCodec({
1755
+ type: "pipe",
1756
+ in: in_ as any as core.$ZodType,
1757
+ out: out as any as core.$ZodType,
1758
+ transform: params.decode as any,
1759
+ reverseTransform: params.encode as any,
1760
+ }) as any;
1761
+ }
1762
+
1763
+ // @__NO_SIDE_EFFECTS__
1764
+ export function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodMiniCodec<A, B>): ZodMiniCodec<B, A> {
1765
+ const def = codec._zod.def;
1766
+ return new ZodMiniCodec({
1767
+ type: "pipe",
1768
+ in: def.out as any,
1769
+ out: def.in as any,
1770
+ transform: def.reverseTransform as any,
1771
+ reverseTransform: def.transform as any,
1772
+ }) as any;
1773
+ }
1394
1774
 
1395
1775
  // ZodMiniReadonly
1396
1776
  export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
@@ -1405,6 +1785,7 @@ export const ZodMiniReadonly: core.$constructor<ZodMiniReadonly> = /*@__PURE__*/
1405
1785
  }
1406
1786
  );
1407
1787
 
1788
+ // @__NO_SIDE_EFFECTS__
1408
1789
  export function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T> {
1409
1790
  return new ZodMiniReadonly({
1410
1791
  type: "readonly",
@@ -1425,6 +1806,7 @@ export const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral> =
1425
1806
  }
1426
1807
  );
1427
1808
 
1809
+ // @__NO_SIDE_EFFECTS__
1428
1810
  export function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(
1429
1811
  parts: Parts,
1430
1812
  params?: string | core.$ZodTemplateLiteralParams
@@ -1451,6 +1833,7 @@ export const ZodMiniLazy: core.$constructor<ZodMiniLazy> = /*@__PURE__*/ core.$c
1451
1833
  // export function lazy<T extends object>(getter: () => T): T {
1452
1834
  // return util.createTransparentProxy<T>(getter);
1453
1835
  // }
1836
+ // @__NO_SIDE_EFFECTS__
1454
1837
  function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T> {
1455
1838
  return new ZodMiniLazy({
1456
1839
  type: "lazy",
@@ -1471,6 +1854,7 @@ export const ZodMiniPromise: core.$constructor<ZodMiniPromise> = /*@__PURE__*/ c
1471
1854
  }
1472
1855
  );
1473
1856
 
1857
+ // @__NO_SIDE_EFFECTS__
1474
1858
  export function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T> {
1475
1859
  return new ZodMiniPromise({
1476
1860
  type: "promise",
@@ -1491,6 +1875,7 @@ export const ZodMiniCustom: core.$constructor<ZodMiniCustom> = /*@__PURE__*/ cor
1491
1875
  );
1492
1876
 
1493
1877
  // custom checks
1878
+ // @__NO_SIDE_EFFECTS__
1494
1879
  export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> {
1495
1880
  const ch = new core.$ZodCheck({
1496
1881
  check: "custom",
@@ -1501,8 +1886,8 @@ export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$
1501
1886
  return ch;
1502
1887
  }
1503
1888
 
1504
- // ZodCustom
1505
- // custom schema
1889
+ // ZodCustom custom schema
1890
+ // @__NO_SIDE_EFFECTS__
1506
1891
  export function custom<O = unknown, I = O>(
1507
1892
  fn?: (data: O) => unknown,
1508
1893
  _params?: string | core.$ZodCustomParams | undefined
@@ -1511,6 +1896,7 @@ export function custom<O = unknown, I = O>(
1511
1896
  }
1512
1897
 
1513
1898
  // refine
1899
+ // @__NO_SIDE_EFFECTS__
1514
1900
  export function refine<T>(
1515
1901
  fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
1516
1902
  _params: string | core.$ZodCustomParams = {}
@@ -1518,40 +1904,62 @@ export function refine<T>(
1518
1904
  return core._refine(ZodMiniCustom, fn, _params);
1519
1905
  }
1520
1906
 
1907
+ // superRefine
1908
+ // @__NO_SIDE_EFFECTS__
1909
+ export function superRefine<T>(
1910
+ fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
1911
+ params?: core.$ZodSuperRefineParams
1912
+ ): core.$ZodCheck<T> {
1913
+ return core._superRefine(fn, params);
1914
+ }
1915
+
1916
+ // Re-export describe and meta from core
1917
+ export const describe = core.describe;
1918
+ export const meta = core.meta;
1919
+
1521
1920
  // instanceof
1522
1921
  abstract class Class {
1523
1922
  constructor(..._args: any[]) {}
1524
1923
  }
1924
+ // @__NO_SIDE_EFFECTS__
1525
1925
  function _instanceof<T extends typeof Class>(
1526
1926
  cls: T,
1527
- params: core.$ZodCustomParams = {
1528
- error: `Input not instance of ${cls.name}`,
1529
- }
1927
+ params: core.$ZodCustomParams = {}
1530
1928
  ): ZodMiniCustom<InstanceType<T>, InstanceType<T>> {
1531
1929
  const inst = custom((data) => data instanceof cls, params);
1532
1930
  inst._zod.bag.Class = cls;
1931
+ // Override check to emit invalid_type instead of custom
1932
+ inst._zod.check = (payload) => {
1933
+ if (!(payload.value instanceof cls)) {
1934
+ payload.issues.push({
1935
+ code: "invalid_type",
1936
+ expected: cls.name,
1937
+ input: payload.value,
1938
+ inst,
1939
+ path: [...(inst._zod.def.path ?? [])],
1940
+ });
1941
+ }
1942
+ };
1533
1943
  return inst as any;
1534
1944
  }
1535
1945
  export { _instanceof as instanceof };
1536
1946
 
1537
1947
  // stringbool
1538
- export const stringbool: (
1539
- _params?: string | core.$ZodStringBoolParams
1540
- ) => ZodMiniPipe<ZodMiniPipe<ZodMiniString, ZodMiniTransform<boolean, string>>, ZodMiniBoolean> = (...args) =>
1541
- core._stringbool(
1542
- {
1543
- Pipe: ZodMiniPipe,
1544
- Boolean: ZodMiniBoolean,
1545
- String: ZodMiniString,
1546
- Transform: ZodMiniTransform,
1547
- },
1548
- ...args
1549
- ) as any;
1948
+ export const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniCodec<ZodMiniString, ZodMiniBoolean> =
1949
+ (...args) =>
1950
+ core._stringbool(
1951
+ {
1952
+ Codec: ZodMiniCodec,
1953
+ Boolean: ZodMiniBoolean,
1954
+ String: ZodMiniString,
1955
+ },
1956
+ ...args
1957
+ ) as any;
1550
1958
 
1551
1959
  // json
1552
1960
 
1553
1961
  // json
1554
- type _ZodMiniJSONSchema = ZodMiniUnion<
1962
+ export type _ZodMiniJSONSchema = ZodMiniUnion<
1555
1963
  [
1556
1964
  ZodMiniString,
1557
1965
  ZodMiniNumber,
@@ -1561,7 +1969,7 @@ type _ZodMiniJSONSchema = ZodMiniUnion<
1561
1969
  ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>,
1562
1970
  ]
1563
1971
  >;
1564
- type _ZodMiniJSONSchemaInternals = _ZodMiniJSONSchema["_zod"];
1972
+ export type _ZodMiniJSONSchemaInternals = _ZodMiniJSONSchema["_zod"];
1565
1973
 
1566
1974
  export interface ZodMiniJSONSchemaInternals extends _ZodMiniJSONSchemaInternals {
1567
1975
  output: util.JSONType;
@@ -1571,9 +1979,73 @@ export interface ZodMiniJSONSchema extends _ZodMiniJSONSchema {
1571
1979
  _zod: ZodMiniJSONSchemaInternals;
1572
1980
  }
1573
1981
 
1982
+ // @__NO_SIDE_EFFECTS__
1574
1983
  export function json(): ZodMiniJSONSchema {
1575
1984
  const jsonSchema: any = _lazy(() => {
1576
1985
  return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
1577
1986
  });
1578
1987
  return jsonSchema;
1579
1988
  }
1989
+
1990
+ // ZodMiniFunction
1991
+ export interface ZodMiniFunction<
1992
+ Args extends core.$ZodFunctionIn = core.$ZodFunctionIn,
1993
+ Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut,
1994
+ > extends _ZodMiniType<core.$ZodFunctionInternals<Args, Returns>>,
1995
+ core.$ZodFunction<Args, Returns> {
1996
+ _def: core.$ZodFunctionDef<Args, Returns>;
1997
+ _input: core.$InferInnerFunctionType<Args, Returns>;
1998
+ _output: core.$InferOuterFunctionType<Args, Returns>;
1999
+
2000
+ input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(
2001
+ args: Items,
2002
+ rest?: Rest
2003
+ ): ZodMiniFunction<ZodMiniTuple<Items, Rest>, Returns>;
2004
+ input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodMiniFunction<NewArgs, Returns>;
2005
+ input(...args: any[]): ZodMiniFunction<any, Returns>;
2006
+
2007
+ output<NewReturns extends core.$ZodFunctionOut>(output: NewReturns): ZodMiniFunction<Args, NewReturns>;
2008
+ }
2009
+
2010
+ export const ZodMiniFunction: core.$constructor<ZodMiniFunction> = /*@__PURE__*/ core.$constructor(
2011
+ "ZodMiniFunction",
2012
+ (inst, def) => {
2013
+ core.$ZodFunction.init(inst, def);
2014
+ ZodMiniType.init(inst, def);
2015
+ }
2016
+ );
2017
+
2018
+ export function _function(): ZodMiniFunction;
2019
+ export function _function<const In extends Array<SomeType> = Array<SomeType>>(params: {
2020
+ input: In;
2021
+ }): ZodMiniFunction<ZodMiniTuple<In, null>, core.$ZodFunctionOut>;
2022
+ export function _function<
2023
+ const In extends Array<SomeType> = Array<SomeType>,
2024
+ const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2025
+ >(params: {
2026
+ input: In;
2027
+ output: Out;
2028
+ }): ZodMiniFunction<ZodMiniTuple<In, null>, Out>;
2029
+ export function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn>(params: {
2030
+ input: In;
2031
+ }): ZodMiniFunction<In, core.$ZodFunctionOut>;
2032
+ export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
2033
+ output: Out;
2034
+ }): ZodMiniFunction<core.$ZodFunctionIn, Out>;
2035
+ export function _function<
2036
+ In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
2037
+ Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2038
+ >(params?: { input: In; output: Out }): ZodMiniFunction<In, Out>;
2039
+ // @__NO_SIDE_EFFECTS__
2040
+ export function _function(params?: {
2041
+ output?: core.$ZodFunctionOut;
2042
+ input?: core.$ZodFunctionArgs | Array<SomeType>;
2043
+ }): ZodMiniFunction {
2044
+ return new ZodMiniFunction({
2045
+ type: "function",
2046
+ input: Array.isArray(params?.input) ? tuple(params?.input as any) : (params?.input ?? array(unknown())),
2047
+ output: params?.output ?? unknown(),
2048
+ });
2049
+ }
2050
+
2051
+ export { _function as function };