@suveren/gateway 0.39.0 → 0.40.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 (751) hide show
  1. package/dist/mcp-server/http.mjs +1 -1
  2. package/dist/ui/assets/index-C-lA_7Lt.js +123 -0
  3. package/dist/ui/assets/index-DM9WXky8.css +1 -0
  4. package/dist/ui/index.html +2 -2
  5. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  6. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
  7. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  8. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
  9. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  10. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  11. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
  12. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  13. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
  14. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  15. package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
  16. package/node_modules/follow-redirects/README.md +27 -1
  17. package/node_modules/follow-redirects/index.js +1 -5
  18. package/node_modules/follow-redirects/package.json +1 -1
  19. package/node_modules/hono/README.md +2 -3
  20. package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
  21. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  22. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  23. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  24. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
  25. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  26. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  27. package/node_modules/hono/dist/cjs/utils/url.js +11 -6
  28. package/node_modules/hono/dist/helper/css/common.js +8 -3
  29. package/node_modules/hono/dist/helper/css/index.js +1 -1
  30. package/node_modules/hono/dist/helper/route/index.js +3 -1
  31. package/node_modules/hono/dist/jsx/base.js +1 -1
  32. package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
  33. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  34. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  35. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  36. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  37. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  38. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  39. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  40. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  41. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  42. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  43. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  44. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  45. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  46. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  47. package/node_modules/hono/dist/types/index.d.ts +1 -1
  48. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  49. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  50. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  51. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  52. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  53. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  54. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  55. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  56. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  57. package/node_modules/hono/dist/utils/url.js +11 -6
  58. package/node_modules/hono/package.json +1 -1
  59. package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
  60. package/node_modules/http-proxy-middleware/package.json +1 -1
  61. package/node_modules/ip-address/dist/common.js +2 -2
  62. package/node_modules/ip-address/dist/common.js.map +1 -1
  63. package/node_modules/ip-address/package.json +2 -2
  64. package/node_modules/postcss/lib/input.js +1 -1
  65. package/node_modules/postcss/lib/lazy-result.js +1 -1
  66. package/node_modules/postcss/lib/no-work-result.js +1 -1
  67. package/node_modules/postcss/lib/node.js +2 -2
  68. package/node_modules/postcss/lib/processor.js +1 -1
  69. package/node_modules/postcss/lib/warning.js +1 -0
  70. package/node_modules/postcss/package.json +1 -1
  71. package/node_modules/zod/README.md +34 -24
  72. package/node_modules/zod/compile.cjs +96 -0
  73. package/node_modules/zod/compile.d.cts +1 -0
  74. package/node_modules/zod/compile.d.ts +1 -0
  75. package/node_modules/zod/compile.js +52 -0
  76. package/node_modules/zod/index.cjs +22 -3
  77. package/node_modules/zod/index.d.cts +3 -4
  78. package/node_modules/zod/index.d.ts +3 -4
  79. package/node_modules/zod/index.js +7 -4
  80. package/node_modules/zod/locales/index.cjs +36 -0
  81. package/node_modules/zod/locales/index.d.cts +1 -0
  82. package/node_modules/zod/locales/index.d.ts +1 -0
  83. package/node_modules/zod/locales/index.js +1 -0
  84. package/node_modules/zod/locales/package.json +7 -0
  85. package/node_modules/zod/mini/index.cjs +51 -0
  86. package/node_modules/zod/mini/index.d.cts +3 -0
  87. package/node_modules/zod/mini/index.d.ts +3 -0
  88. package/node_modules/zod/mini/index.js +3 -0
  89. package/node_modules/zod/mini/package.json +7 -0
  90. package/node_modules/zod/package.json +44 -15
  91. package/node_modules/zod/src/compile.ts +56 -0
  92. package/node_modules/zod/src/index.ts +7 -4
  93. package/node_modules/zod/src/locales/index.ts +1 -0
  94. package/node_modules/zod/src/mini/index.ts +3 -0
  95. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  96. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  97. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  98. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  99. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  100. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  101. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  102. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  103. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  104. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  105. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  106. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  107. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  108. package/node_modules/zod/src/v3/types.ts +8 -6
  109. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  110. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  111. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  112. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  113. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  114. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  115. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  116. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  117. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  118. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  119. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  120. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  121. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  122. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  123. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  124. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  125. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  126. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  127. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  128. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  129. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  130. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  131. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  132. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  133. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  134. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  135. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  136. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  137. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  138. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  139. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  140. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  141. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  142. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  143. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  144. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  145. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  146. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  147. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  148. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  149. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  150. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  151. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  152. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  153. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  154. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  155. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  156. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  157. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  158. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  159. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  160. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  161. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  162. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  163. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  164. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  165. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  166. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  167. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  168. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  169. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  170. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  171. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  172. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  173. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  174. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  175. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  176. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  177. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  178. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  179. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  180. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  181. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  182. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  183. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  184. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  185. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  186. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  187. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  188. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  189. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  190. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  191. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  192. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  193. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  194. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  195. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  196. package/node_modules/zod/src/v4/core/api.ts +442 -161
  197. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  198. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  199. package/node_modules/zod/src/v4/core/core.ts +146 -50
  200. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  201. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  202. package/node_modules/zod/src/v4/core/index.ts +5 -1
  203. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  204. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  205. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  206. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  207. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  208. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  209. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  210. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  211. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  212. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  213. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  214. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  215. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  216. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  217. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  218. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  219. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  220. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  221. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  222. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  223. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  224. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  225. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  226. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  227. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  228. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  229. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  230. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  231. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  232. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  233. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  234. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  235. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  236. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  237. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  238. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  239. package/node_modules/zod/src/v4/core/util.ts +675 -157
  240. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  241. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  242. package/node_modules/zod/src/v4/index.ts +3 -3
  243. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  244. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  245. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  246. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  247. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  248. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  249. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  250. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  251. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  252. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  253. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  254. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  255. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  256. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  257. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  258. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  259. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  260. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  261. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  262. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  263. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  264. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  265. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  266. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  267. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  268. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  269. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  270. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  271. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  272. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  273. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  274. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  275. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  276. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  277. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  278. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  279. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  280. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  281. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  282. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  283. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  284. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  285. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  286. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  287. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  288. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  289. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  290. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  291. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  292. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  293. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  294. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  295. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  296. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  297. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  298. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  299. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  300. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  301. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  302. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  303. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  304. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  305. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  306. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  307. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  308. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  309. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  310. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  311. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  312. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  313. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  314. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  315. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  316. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  317. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  318. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  319. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  320. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  321. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  322. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  323. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  324. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  325. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  326. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  327. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  328. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  329. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  330. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  331. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  332. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  333. package/node_modules/zod/v3/ZodError.cjs +42 -13
  334. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  335. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  336. package/node_modules/zod/v3/ZodError.js +23 -13
  337. package/node_modules/zod/v3/errors.cjs +19 -0
  338. package/node_modules/zod/v3/external.cjs +19 -0
  339. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  340. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  341. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  342. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  343. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  344. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  345. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  346. package/node_modules/zod/v3/index.cjs +19 -0
  347. package/node_modules/zod/v3/locales/en.cjs +1 -0
  348. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  349. package/node_modules/zod/v3/package.json +7 -0
  350. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  351. package/node_modules/zod/v3/types.cjs +28 -5
  352. package/node_modules/zod/v3/types.d.cts +4 -1
  353. package/node_modules/zod/v3/types.d.ts +4 -1
  354. package/node_modules/zod/v3/types.js +9 -5
  355. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  356. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  357. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  358. package/node_modules/zod/v4/classic/checks.js +1 -1
  359. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  360. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  361. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  362. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  363. package/node_modules/zod/v4/classic/compat.js +4 -0
  364. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  365. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  366. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  367. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  368. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  369. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  370. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  371. package/node_modules/zod/v4/classic/errors.js +45 -29
  372. package/node_modules/zod/v4/classic/external.cjs +55 -28
  373. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  374. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  375. package/node_modules/zod/v4/classic/external.js +7 -8
  376. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  377. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  378. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  379. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  380. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  381. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  382. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  383. package/node_modules/zod/v4/classic/in-out.js +36 -0
  384. package/node_modules/zod/v4/classic/index.cjs +21 -2
  385. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  386. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  387. package/node_modules/zod/v4/classic/index.js +2 -2
  388. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  389. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  390. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  391. package/node_modules/zod/v4/classic/iso.js +2 -17
  392. package/node_modules/zod/v4/classic/package.json +7 -0
  393. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  394. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  395. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  396. package/node_modules/zod/v4/classic/parse.js +10 -0
  397. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  398. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  399. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  400. package/node_modules/zod/v4/classic/schemas.js +766 -237
  401. package/node_modules/zod/v4/core/api.cjs +284 -54
  402. package/node_modules/zod/v4/core/api.d.cts +133 -82
  403. package/node_modules/zod/v4/core/api.d.ts +133 -82
  404. package/node_modules/zod/v4/core/api.js +255 -54
  405. package/node_modules/zod/v4/core/checks.cjs +100 -130
  406. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  407. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  408. package/node_modules/zod/v4/core/checks.js +80 -129
  409. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  410. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  411. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  412. package/node_modules/zod/v4/core/compile.js +1866 -0
  413. package/node_modules/zod/v4/core/core.cjs +120 -20
  414. package/node_modules/zod/v4/core/core.d.cts +40 -7
  415. package/node_modules/zod/v4/core/core.d.ts +40 -7
  416. package/node_modules/zod/v4/core/core.js +101 -21
  417. package/node_modules/zod/v4/core/doc.cjs +31 -9
  418. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  419. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  420. package/node_modules/zod/v4/core/doc.js +12 -9
  421. package/node_modules/zod/v4/core/errors.cjs +151 -60
  422. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  423. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  424. package/node_modules/zod/v4/core/errors.js +132 -60
  425. package/node_modules/zod/v4/core/index.cjs +28 -2
  426. package/node_modules/zod/v4/core/index.d.cts +5 -1
  427. package/node_modules/zod/v4/core/index.d.ts +5 -1
  428. package/node_modules/zod/v4/core/index.js +5 -1
  429. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  430. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  431. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  432. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  433. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  434. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  435. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  436. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  437. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  438. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  439. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  440. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  441. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  442. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  443. package/node_modules/zod/v4/core/memoizer.js +311 -0
  444. package/node_modules/zod/v4/core/package.json +7 -0
  445. package/node_modules/zod/v4/core/parse.cjs +183 -37
  446. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  447. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  448. package/node_modules/zod/v4/core/parse.js +154 -36
  449. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  450. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  451. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  452. package/node_modules/zod/v4/core/regexes.js +90 -29
  453. package/node_modules/zod/v4/core/registries.cjs +26 -7
  454. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  455. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  456. package/node_modules/zod/v4/core/registries.js +9 -9
  457. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  458. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  459. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  460. package/node_modules/zod/v4/core/schemas.js +1341 -422
  461. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  462. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  463. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  464. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  465. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  466. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  467. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  468. package/node_modules/zod/v4/core/util.cjs +580 -155
  469. package/node_modules/zod/v4/core/util.d.cts +98 -1
  470. package/node_modules/zod/v4/core/util.d.ts +98 -1
  471. package/node_modules/zod/v4/core/util.js +536 -156
  472. package/node_modules/zod/v4/core/versions.cjs +21 -2
  473. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  474. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  475. package/node_modules/zod/v4/core/versions.js +2 -2
  476. package/node_modules/zod/v4/core/visit.cjs +214 -0
  477. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  478. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  479. package/node_modules/zod/v4/core/visit.js +169 -0
  480. package/node_modules/zod/v4/index.cjs +34 -5
  481. package/node_modules/zod/v4/index.d.cts +2 -2
  482. package/node_modules/zod/v4/index.d.ts +2 -2
  483. package/node_modules/zod/v4/index.js +3 -2
  484. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  485. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  486. package/node_modules/zod/v4/locales/ar.js +19 -24
  487. package/node_modules/zod/v4/locales/az.cjs +20 -24
  488. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  489. package/node_modules/zod/v4/locales/az.js +19 -24
  490. package/node_modules/zod/v4/locales/be.cjs +29 -24
  491. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  492. package/node_modules/zod/v4/locales/be.js +28 -24
  493. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  494. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  495. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  496. package/node_modules/zod/v4/locales/bg.js +125 -0
  497. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  498. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  499. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  500. package/node_modules/zod/v4/locales/bn.js +113 -0
  501. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  502. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  503. package/node_modules/zod/v4/locales/ca.js +19 -25
  504. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  505. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  506. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  507. package/node_modules/zod/v4/locales/ckb.js +133 -0
  508. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  509. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  510. package/node_modules/zod/v4/locales/cs.js +23 -42
  511. package/node_modules/zod/v4/locales/da.cjs +147 -0
  512. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  513. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  514. package/node_modules/zod/v4/locales/da.js +120 -0
  515. package/node_modules/zod/v4/locales/de.cjs +22 -24
  516. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  517. package/node_modules/zod/v4/locales/de.js +21 -24
  518. package/node_modules/zod/v4/locales/el.cjs +139 -0
  519. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  520. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  521. package/node_modules/zod/v4/locales/el.js +112 -0
  522. package/node_modules/zod/v4/locales/en.cjs +35 -28
  523. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  524. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  525. package/node_modules/zod/v4/locales/en.js +34 -26
  526. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  527. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  528. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  529. package/node_modules/zod/v4/locales/eo.js +22 -24
  530. package/node_modules/zod/v4/locales/es.cjs +51 -31
  531. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  532. package/node_modules/zod/v4/locales/es.js +50 -31
  533. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  534. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  535. package/node_modules/zod/v4/locales/fa.js +21 -24
  536. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  537. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  538. package/node_modules/zod/v4/locales/fi.js +19 -24
  539. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  540. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  541. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  542. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  543. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  544. package/node_modules/zod/v4/locales/fr.js +52 -39
  545. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  546. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  547. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  548. package/node_modules/zod/v4/locales/gu.js +113 -0
  549. package/node_modules/zod/v4/locales/he.cjs +183 -78
  550. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  551. package/node_modules/zod/v4/locales/he.js +182 -78
  552. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  553. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  554. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  555. package/node_modules/zod/v4/locales/hi.js +111 -0
  556. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  557. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  558. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  559. package/node_modules/zod/v4/locales/hr.js +126 -0
  560. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  561. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  562. package/node_modules/zod/v4/locales/hu.js +21 -25
  563. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  564. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  565. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  566. package/node_modules/zod/v4/locales/hy.js +158 -0
  567. package/node_modules/zod/v4/locales/id.cjs +20 -24
  568. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  569. package/node_modules/zod/v4/locales/id.js +19 -24
  570. package/node_modules/zod/v4/locales/index.cjs +69 -1
  571. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  572. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  573. package/node_modules/zod/v4/locales/index.js +24 -0
  574. package/node_modules/zod/v4/locales/is.cjs +141 -0
  575. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  576. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  577. package/node_modules/zod/v4/locales/is.js +114 -0
  578. package/node_modules/zod/v4/locales/it.cjs +22 -25
  579. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  580. package/node_modules/zod/v4/locales/it.js +21 -25
  581. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  582. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  583. package/node_modules/zod/v4/locales/ja.js +21 -24
  584. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  585. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  586. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  587. package/node_modules/zod/v4/locales/ka.js +117 -0
  588. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  589. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  590. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  591. package/node_modules/zod/v4/locales/kh.js +3 -115
  592. package/node_modules/zod/v4/locales/km.cjs +142 -0
  593. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  594. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  595. package/node_modules/zod/v4/locales/km.js +115 -0
  596. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  597. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  598. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  599. package/node_modules/zod/v4/locales/kn.js +116 -0
  600. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  601. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  602. package/node_modules/zod/v4/locales/ko.js +19 -24
  603. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  604. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  605. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  606. package/node_modules/zod/v4/locales/lt.js +207 -0
  607. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  608. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  609. package/node_modules/zod/v4/locales/mk.js +21 -25
  610. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  611. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  612. package/node_modules/zod/v4/locales/ms.js +20 -24
  613. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  614. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  615. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  616. package/node_modules/zod/v4/locales/ne.js +111 -0
  617. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  618. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  619. package/node_modules/zod/v4/locales/nl.js +30 -32
  620. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  621. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  622. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  623. package/node_modules/zod/v4/locales/nn.js +113 -0
  624. package/node_modules/zod/v4/locales/no.cjs +24 -26
  625. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  626. package/node_modules/zod/v4/locales/no.js +23 -26
  627. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  628. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  629. package/node_modules/zod/v4/locales/ota.js +22 -25
  630. package/node_modules/zod/v4/locales/package.json +7 -0
  631. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  632. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  633. package/node_modules/zod/v4/locales/pl.js +21 -24
  634. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  635. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  636. package/node_modules/zod/v4/locales/ps.js +21 -24
  637. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  638. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  639. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  640. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  641. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  642. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  643. package/node_modules/zod/v4/locales/pt.js +94 -68
  644. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  645. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  646. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  647. package/node_modules/zod/v4/locales/ro.js +122 -0
  648. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  649. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  650. package/node_modules/zod/v4/locales/ru.js +28 -24
  651. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  652. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  653. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  654. package/node_modules/zod/v4/locales/sk.js +116 -0
  655. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  656. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  657. package/node_modules/zod/v4/locales/sl.js +21 -24
  658. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  659. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  660. package/node_modules/zod/v4/locales/sv.js +23 -26
  661. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  662. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  663. package/node_modules/zod/v4/locales/ta.js +22 -24
  664. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  665. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  666. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  667. package/node_modules/zod/v4/locales/tg.js +117 -0
  668. package/node_modules/zod/v4/locales/th.cjs +23 -24
  669. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  670. package/node_modules/zod/v4/locales/th.js +22 -24
  671. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  672. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  673. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  674. package/node_modules/zod/v4/locales/tk.js +107 -0
  675. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  676. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  677. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  678. package/node_modules/zod/v4/locales/tr.js +19 -24
  679. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  680. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  681. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  682. package/node_modules/zod/v4/locales/ua.js +3 -115
  683. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  684. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  685. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  686. package/node_modules/zod/v4/locales/uk.js +113 -0
  687. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  688. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  689. package/node_modules/zod/v4/locales/ur.js +22 -24
  690. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  691. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/uz.js +113 -0
  694. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  695. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  696. package/node_modules/zod/v4/locales/vi.js +21 -24
  697. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  698. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  699. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  700. package/node_modules/zod/v4/locales/yo.js +112 -0
  701. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  702. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  703. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  704. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  705. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  706. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  707. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  708. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  709. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  710. package/node_modules/zod/v4/mini/checks.js +1 -1
  711. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  712. package/node_modules/zod/v4/mini/coerce.js +5 -0
  713. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  714. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  715. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  716. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  717. package/node_modules/zod/v4/mini/external.cjs +36 -3
  718. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  719. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  720. package/node_modules/zod/v4/mini/external.js +4 -1
  721. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  722. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  723. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  724. package/node_modules/zod/v4/mini/in-out.js +36 -0
  725. package/node_modules/zod/v4/mini/index.cjs +19 -0
  726. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  727. package/node_modules/zod/v4/mini/iso.js +8 -4
  728. package/node_modules/zod/v4/mini/package.json +7 -0
  729. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  730. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  731. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  732. package/node_modules/zod/v4/mini/parse.js +1 -1
  733. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  734. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  735. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  736. package/node_modules/zod/v4/mini/schemas.js +329 -59
  737. package/node_modules/zod/v4/package.json +7 -0
  738. package/node_modules/zod/v4-mini/index.cjs +35 -1
  739. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  740. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  741. package/node_modules/zod/v4-mini/index.js +3 -1
  742. package/node_modules/zod/v4-mini/package.json +7 -0
  743. package/package.json +3 -3
  744. package/dist/ui/assets/index-DNNXeRpZ.js +0 -123
  745. package/dist/ui/assets/index-Osk4E49r.css +0 -1
  746. package/node_modules/zod/src/v4/core/config.ts +0 -15
  747. package/node_modules/zod/src/v4/core/function.ts +0 -176
  748. package/node_modules/zod/v4/core/function.cjs +0 -102
  749. package/node_modules/zod/v4/core/function.d.cts +0 -52
  750. package/node_modules/zod/v4/core/function.d.ts +0 -52
  751. package/node_modules/zod/v4/core/function.js +0 -75
@@ -13,7 +13,7 @@ export interface $ZodCheckDef {
13
13
  error?: errors.$ZodErrorMap<never> | undefined;
14
14
  /** If true, no later checks will be executed if this check fails. Default `false`. */
15
15
  abort?: boolean | undefined;
16
- /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
16
+ /** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
17
17
  when?: ((payload: schemas.ParsePayload) => boolean) | undefined;
18
18
  }
19
19
 
@@ -38,6 +38,18 @@ export const $ZodCheck: core.$constructor<$ZodCheck<any>> = /*@__PURE__*/ core.$
38
38
  }
39
39
  );
40
40
 
41
+ /** Default `when` for size-based checks: run only on non-nullish values with a `size`. */
42
+ const _whenHasSize = (payload: schemas.ParsePayload): boolean => {
43
+ const val = payload.value;
44
+ return !util.nullish(val) && (val as any).size !== undefined;
45
+ };
46
+
47
+ /** Default `when` for length-based checks: run only on non-nullish values with a `length`. */
48
+ const _whenHasLength = (payload: schemas.ParsePayload): boolean => {
49
+ const val = payload.value;
50
+ return !util.nullish(val) && (val as any).length !== undefined;
51
+ };
52
+
41
53
  ///////////////////////////////////////
42
54
  ///// $ZodCheckLessThan /////
43
55
  ///////////////////////////////////////
@@ -67,24 +79,15 @@ export const $ZodCheckLessThan: core.$constructor<$ZodCheckLessThan> = /*@__PURE
67
79
  $ZodCheck.init(inst, def);
68
80
  const origin = numericOriginMap[typeof def.value as "number" | "bigint" | "object"];
69
81
 
70
- inst._zod.onattach.push((inst) => {
71
- const bag = inst._zod.bag;
72
- const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
73
- if (def.value < curr) {
74
- if (def.inclusive) bag.maximum = def.value;
75
- else bag.exclusiveMaximum = def.value;
76
- }
77
- });
78
-
79
82
  inst._zod.check = (payload) => {
80
83
  if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {
81
84
  return;
82
85
  }
83
86
 
84
87
  payload.issues.push({
85
- origin,
88
+ origin: numericOriginMap[typeof payload.value as "number" | "bigint" | "object"] ?? origin,
86
89
  code: "too_big",
87
- maximum: def.value as number,
90
+ maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
88
91
  input: payload.value,
89
92
  inclusive: def.inclusive,
90
93
  inst,
@@ -118,24 +121,15 @@ export const $ZodCheckGreaterThan: core.$constructor<$ZodCheckGreaterThan> = /*@
118
121
  $ZodCheck.init(inst, def);
119
122
  const origin = numericOriginMap[typeof def.value as "number" | "bigint" | "object"];
120
123
 
121
- inst._zod.onattach.push((inst) => {
122
- const bag = inst._zod.bag;
123
- const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
124
- if (def.value > curr) {
125
- if (def.inclusive) bag.minimum = def.value;
126
- else bag.exclusiveMinimum = def.value;
127
- }
128
- });
129
-
130
124
  inst._zod.check = (payload) => {
131
125
  if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {
132
126
  return;
133
127
  }
134
128
 
135
129
  payload.issues.push({
136
- origin,
130
+ origin: numericOriginMap[typeof payload.value as "number" | "bigint" | "object"] ?? origin,
137
131
  code: "too_small",
138
- minimum: def.value as number,
132
+ minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
139
133
  input: payload.value,
140
134
  inclusive: def.inclusive,
141
135
  inst,
@@ -169,16 +163,13 @@ export const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number |
169
163
  /*@__PURE__*/ core.$constructor("$ZodCheckMultipleOf", (inst, def) => {
170
164
  $ZodCheck.init(inst, def);
171
165
 
172
- inst._zod.onattach.push((inst) => {
173
- inst._zod.bag.multipleOf ??= def.value;
174
- });
175
-
176
166
  inst._zod.check = (payload) => {
177
167
  if (typeof payload.value !== typeof def.value)
178
168
  throw new Error("Cannot mix number and bigint in multiple_of check.");
179
169
  const isMultiple =
180
170
  typeof payload.value === "bigint"
181
- ? payload.value % (def.value as bigint) === BigInt(0)
171
+ ? // `value % 0n` throws, and nothing is a multiple of zero — the number branch already fails this way via NaN
172
+ (def.value as bigint) !== BigInt(0) && payload.value % (def.value as bigint) === BigInt(0)
182
173
  : util.floatSafeRemainder(payload.value, def.value as number) === 0;
183
174
 
184
175
  if (isMultiple) return;
@@ -243,22 +234,23 @@ export const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number |
243
234
 
244
235
  export type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
245
236
 
246
- export interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
237
+ export interface $ZodCheckNumberFormatDef<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheckDef {
247
238
  check: "number_format";
248
- format: $ZodNumberFormats;
239
+ format: Format;
249
240
  // abort?: boolean;
250
241
  }
251
242
 
252
- export interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
253
- def: $ZodCheckNumberFormatDef;
243
+ export interface $ZodCheckNumberFormatInternals<Format extends $ZodNumberFormats = $ZodNumberFormats>
244
+ extends $ZodCheckInternals<number> {
245
+ def: $ZodCheckNumberFormatDef<Format>;
254
246
  issc: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<"number"> | errors.$ZodIssueTooSmall<"number">;
255
247
  // bag: util.LoosePartial<{
256
248
  // minimum?: number | undefined;
257
249
  // }>;
258
250
  }
259
251
 
260
- export interface $ZodCheckNumberFormat extends $ZodCheck<number> {
261
- _zod: $ZodCheckNumberFormatInternals;
252
+ export interface $ZodCheckNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheck<number> {
253
+ _zod: $ZodCheckNumberFormatInternals<Format>;
262
254
  }
263
255
 
264
256
  export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /*@__PURE__*/ core.$constructor(
@@ -271,14 +263,6 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
271
263
  const origin = isInt ? "int" : "number";
272
264
  const [minimum, maximum] = util.NUMBER_FORMAT_RANGES[def.format];
273
265
 
274
- inst._zod.onattach.push((inst) => {
275
- const bag = inst._zod.bag;
276
- bag.format = def.format;
277
- bag.minimum = minimum;
278
- bag.maximum = maximum;
279
- if (isInt) bag.pattern = regexes.integer;
280
- });
281
-
282
266
  inst._zod.check = (payload) => {
283
267
  const input = payload.value;
284
268
 
@@ -297,6 +281,7 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
297
281
  expected: origin,
298
282
  format: def.format,
299
283
  code: "invalid_type",
284
+ continue: false,
300
285
  input,
301
286
  inst,
302
287
  });
@@ -322,6 +307,7 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
322
307
  note: "Integers must be within the safe integer range.",
323
308
  inst,
324
309
  origin,
310
+ inclusive: true,
325
311
  continue: !def.abort,
326
312
  });
327
313
  } else {
@@ -333,6 +319,7 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
333
319
  note: "Integers must be within the safe integer range.",
334
320
  inst,
335
321
  origin,
322
+ inclusive: true,
336
323
  continue: !def.abort,
337
324
  });
338
325
  }
@@ -359,7 +346,9 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
359
346
  input,
360
347
  code: "too_big",
361
348
  maximum,
349
+ inclusive: true,
362
350
  inst,
351
+ continue: !def.abort,
363
352
  } as any);
364
353
  }
365
354
  };
@@ -372,18 +361,19 @@ export const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> = /
372
361
 
373
362
  export type $ZodBigIntFormats = "int64" | "uint64";
374
363
 
375
- export interface $ZodCheckBigIntFormatDef extends $ZodCheckDef {
364
+ export interface $ZodCheckBigIntFormatDef<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodCheckDef {
376
365
  check: "bigint_format";
377
- format: $ZodBigIntFormats | undefined;
366
+ format: Format;
378
367
  }
379
368
 
380
- export interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> {
381
- def: $ZodCheckBigIntFormatDef;
369
+ export interface $ZodCheckBigIntFormatInternals<Format extends $ZodBigIntFormats = $ZodBigIntFormats>
370
+ extends $ZodCheckInternals<bigint> {
371
+ def: $ZodCheckBigIntFormatDef<Format>;
382
372
  issc: errors.$ZodIssueTooBig<"bigint"> | errors.$ZodIssueTooSmall<"bigint">;
383
373
  }
384
374
 
385
- export interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> {
386
- _zod: $ZodCheckBigIntFormatInternals;
375
+ export interface $ZodCheckBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodCheck<bigint> {
376
+ _zod: $ZodCheckBigIntFormatInternals<Format>;
387
377
  }
388
378
 
389
379
  export const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat> = /*@__PURE__*/ core.$constructor(
@@ -391,14 +381,7 @@ export const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat> = /
391
381
  (inst, def) => {
392
382
  $ZodCheck.init(inst, def); // no format checks
393
383
 
394
- const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format!];
395
-
396
- inst._zod.onattach.push((inst) => {
397
- const bag = inst._zod.bag;
398
- bag.format = def.format;
399
- bag.minimum = minimum;
400
- bag.maximum = maximum;
401
- });
384
+ const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format];
402
385
 
403
386
  inst._zod.check = (payload) => {
404
387
  const input = payload.value;
@@ -421,7 +404,9 @@ export const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat> = /
421
404
  input,
422
405
  code: "too_big",
423
406
  maximum,
407
+ inclusive: true,
424
408
  inst,
409
+ continue: !def.abort,
425
410
  } as any);
426
411
  }
427
412
  };
@@ -450,15 +435,7 @@ export const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize> = /*@__PURE__
450
435
  (inst, def) => {
451
436
  $ZodCheck.init(inst, def);
452
437
 
453
- inst._zod.def.when ??= (payload) => {
454
- const val = payload.value;
455
- return !util.nullish(val) && (val as any).size !== undefined;
456
- };
457
-
458
- inst._zod.onattach.push((inst) => {
459
- const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY) as number;
460
- if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
461
- });
438
+ inst._zod.def.when ??= _whenHasSize;
462
439
 
463
440
  inst._zod.check = (payload) => {
464
441
  const input = payload.value;
@@ -469,6 +446,7 @@ export const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize> = /*@__PURE__
469
446
  origin: util.getSizableOrigin(input),
470
447
  code: "too_big",
471
448
  maximum: def.maximum,
449
+ inclusive: true,
472
450
  input,
473
451
  inst,
474
452
  continue: !def.abort,
@@ -499,15 +477,7 @@ export const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize> = /*@__PURE__
499
477
  (inst, def) => {
500
478
  $ZodCheck.init(inst, def);
501
479
 
502
- inst._zod.def.when ??= (payload) => {
503
- const val = payload.value;
504
- return !util.nullish(val) && (val as any).size !== undefined;
505
- };
506
-
507
- inst._zod.onattach.push((inst) => {
508
- const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY) as number;
509
- if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
510
- });
480
+ inst._zod.def.when ??= _whenHasSize;
511
481
 
512
482
  inst._zod.check = (payload) => {
513
483
  const input = payload.value;
@@ -518,6 +488,7 @@ export const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize> = /*@__PURE__
518
488
  origin: util.getSizableOrigin(input),
519
489
  code: "too_small",
520
490
  minimum: def.minimum,
491
+ inclusive: true,
521
492
  input,
522
493
  inst,
523
494
  continue: !def.abort,
@@ -548,17 +519,7 @@ export const $ZodCheckSizeEquals: core.$constructor<$ZodCheckSizeEquals> = /*@__
548
519
  (inst, def) => {
549
520
  $ZodCheck.init(inst, def);
550
521
 
551
- inst._zod.def.when ??= (payload) => {
552
- const val = payload.value;
553
- return !util.nullish(val) && (val as any).size !== undefined;
554
- };
555
-
556
- inst._zod.onattach.push((inst) => {
557
- const bag = inst._zod.bag;
558
- bag.minimum = def.size;
559
- bag.maximum = def.size;
560
- bag.size = def.size;
561
- });
522
+ inst._zod.def.when ??= _whenHasSize;
562
523
 
563
524
  inst._zod.check = (payload) => {
564
525
  const input = payload.value;
@@ -602,19 +563,13 @@ export const $ZodCheckMaxLength: core.$constructor<$ZodCheckMaxLength> = /*@__PU
602
563
  (inst, def) => {
603
564
  $ZodCheck.init(inst, def);
604
565
 
605
- inst._zod.def.when ??= (payload) => {
606
- const val = payload.value;
607
- return !util.nullish(val) && (val as any).length !== undefined;
608
- };
609
-
610
- inst._zod.onattach.push((inst) => {
611
- const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY) as number;
612
- if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
613
- });
566
+ inst._zod.def.when ??= _whenHasLength;
614
567
 
615
568
  inst._zod.check = (payload) => {
616
569
  const input = payload.value;
617
- const length = input.length;
570
+ const units = input.length;
571
+ // Strings are measured in Unicode code points, not UTF-16 units. A code point is at most two units, so a string that already fits in units fits in code points; only an overflow has to be counted.
572
+ const length = typeof input === "string" && units > def.maximum ? util.codePointLength(input) : units;
618
573
 
619
574
  if (length <= def.maximum) return;
620
575
  const origin = util.getLengthableOrigin(input);
@@ -653,19 +608,16 @@ export const $ZodCheckMinLength: core.$constructor<$ZodCheckMinLength> = /*@__PU
653
608
  (inst, def) => {
654
609
  $ZodCheck.init(inst, def);
655
610
 
656
- inst._zod.def.when ??= (payload) => {
657
- const val = payload.value;
658
- return !util.nullish(val) && (val as any).length !== undefined;
659
- };
660
-
661
- inst._zod.onattach.push((inst) => {
662
- const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY) as number;
663
- if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
664
- });
611
+ inst._zod.def.when ??= _whenHasLength;
665
612
 
666
613
  inst._zod.check = (payload) => {
667
614
  const input = payload.value;
668
- const length = input.length;
615
+ const units = input.length;
616
+ // A code point is one or two UTF-16 units, so fewer units than the floor can never reach it and twice the floor always clears it. Only in between is the exact count in doubt.
617
+ const length =
618
+ typeof input === "string" && units >= def.minimum && units < def.minimum * 2
619
+ ? util.codePointLength(input)
620
+ : units;
669
621
 
670
622
  if (length >= def.minimum) return;
671
623
  const origin = util.getLengthableOrigin(input);
@@ -705,21 +657,16 @@ export const $ZodCheckLengthEquals: core.$constructor<$ZodCheckLengthEquals> = /
705
657
  (inst, def) => {
706
658
  $ZodCheck.init(inst, def);
707
659
 
708
- inst._zod.def.when ??= (payload) => {
709
- const val = payload.value;
710
- return !util.nullish(val) && (val as any).length !== undefined;
711
- };
712
-
713
- inst._zod.onattach.push((inst) => {
714
- const bag = inst._zod.bag;
715
- bag.minimum = def.length;
716
- bag.maximum = def.length;
717
- bag.length = def.length;
718
- });
660
+ inst._zod.def.when ??= _whenHasLength;
719
661
 
720
662
  inst._zod.check = (payload) => {
721
663
  const input = payload.value;
722
- const length = input.length;
664
+ const units = input.length;
665
+ // A code point is one or two UTF-16 units, so outside `[length, length * 2]` units the target is missed either way — and missed in the same direction in both measures.
666
+ const length =
667
+ typeof input === "string" && units >= def.length && units <= def.length * 2
668
+ ? util.codePointLength(input)
669
+ : units;
723
670
  if (length === def.length) return;
724
671
  const origin = util.getLengthableOrigin(input);
725
672
  const tooBig = length > def.length;
@@ -763,6 +710,8 @@ export type $ZodStringFormats =
763
710
  | "base64url"
764
711
  | "json_string"
765
712
  | "e164"
713
+ | "credit_card"
714
+ | "iban"
766
715
  | "lowercase"
767
716
  | "uppercase"
768
717
  | "regex"
@@ -790,15 +739,6 @@ export const $ZodCheckStringFormat: core.$constructor<$ZodCheckStringFormat> = /
790
739
  (inst, def) => {
791
740
  $ZodCheck.init(inst, def);
792
741
 
793
- inst._zod.onattach.push((inst) => {
794
- const bag = inst._zod.bag as schemas.$ZodStringInternals<unknown>["bag"];
795
- bag.format = def.format;
796
- if (def.pattern) {
797
- bag.patterns ??= new Set();
798
- bag.patterns.add(def.pattern);
799
- }
800
- });
801
-
802
742
  if (def.pattern)
803
743
  inst._zod.check ??= (payload) => {
804
744
  def.pattern!.lastIndex = 0;
@@ -958,14 +898,11 @@ export const $ZodCheckIncludes: core.$constructor<$ZodCheckIncludes> = /*@__PURE
958
898
  $ZodCheck.init(inst, def);
959
899
 
960
900
  const escapedRegex = util.escapeRegex(def.includes);
961
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
901
+ // `String.prototype.includes(sub, position)` matches `sub` at `position`
902
+ // OR LATER, so the pattern must allow at least `position` leading chars
903
+ // (`{N,}`), not exactly `position` chars (`{N}`).
904
+ const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
962
905
  def.pattern = pattern;
963
- inst._zod.onattach.push((inst) => {
964
- const bag = inst._zod.bag as schemas.$ZodStringInternals<unknown>["bag"];
965
- bag.patterns ??= new Set();
966
- bag.patterns.add(pattern);
967
- });
968
-
969
906
  inst._zod.check = (payload) => {
970
907
  if (payload.value.includes(def.includes, def.position)) return;
971
908
  payload.issues.push({
@@ -1004,12 +941,6 @@ export const $ZodCheckStartsWith: core.$constructor<$ZodCheckStartsWith> = /*@__
1004
941
 
1005
942
  const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);
1006
943
  def.pattern ??= pattern;
1007
- inst._zod.onattach.push((inst) => {
1008
- const bag = inst._zod.bag as schemas.$ZodStringInternals<unknown>["bag"];
1009
- bag.patterns ??= new Set();
1010
- bag.patterns.add(pattern);
1011
- });
1012
-
1013
944
  inst._zod.check = (payload) => {
1014
945
  if (payload.value.startsWith(def.prefix)) return;
1015
946
  payload.issues.push({
@@ -1048,12 +979,6 @@ export const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith> = /*@__PURE
1048
979
 
1049
980
  const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);
1050
981
  def.pattern ??= pattern;
1051
- inst._zod.onattach.push((inst) => {
1052
- const bag = inst._zod.bag as schemas.$ZodStringInternals<unknown>["bag"];
1053
- bag.patterns ??= new Set();
1054
- bag.patterns.add(pattern);
1055
- });
1056
-
1057
982
  inst._zod.check = (payload) => {
1058
983
  if (payload.value.endsWith(def.suffix)) return;
1059
984
  payload.issues.push({
@@ -1075,7 +1000,7 @@ export const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith> = /*@__PURE
1075
1000
  function handleCheckPropertyResult(
1076
1001
  result: schemas.ParsePayload<unknown>,
1077
1002
  payload: schemas.ParsePayload<unknown>,
1078
- property: string
1003
+ property: string | symbol
1079
1004
  ) {
1080
1005
  if (result.issues.length) {
1081
1006
  payload.issues.push(...util.prefixIssues(property, result.issues));
@@ -1120,6 +1045,66 @@ export const $ZodCheckProperty: core.$constructor<$ZodCheckProperty> = /*@__PURE
1120
1045
  }
1121
1046
  );
1122
1047
 
1048
+ /////////////////////////////////////
1049
+ ///// $ZodCheckProperties /////
1050
+ /////////////////////////////////////
1051
+ export interface $ZodCheckPropertiesDef<Shape extends schemas.$ZodShape = schemas.$ZodShape> extends $ZodCheckDef {
1052
+ check: "properties";
1053
+ shape: Shape;
1054
+ }
1055
+
1056
+ // typed over the input side, since each child's result is discarded; a literal widens to its primitive so spreading over a `string` property still type-checks (#6520)
1057
+ export type $ZodCheckPropertiesInput<Shape extends schemas.$ZodShape = schemas.$ZodShape> = {
1058
+ -readonly [k in keyof Shape]: util.Widen<core.input<Shape[k]>>;
1059
+ };
1060
+
1061
+ export interface $ZodCheckPropertiesInternals<Shape extends schemas.$ZodShape = schemas.$ZodShape>
1062
+ extends $ZodCheckInternals<$ZodCheckPropertiesInput<Shape>> {
1063
+ def: $ZodCheckPropertiesDef<Shape>;
1064
+ issc: errors.$ZodIssue;
1065
+ }
1066
+
1067
+ export interface $ZodCheckProperties<Shape extends schemas.$ZodShape = schemas.$ZodShape>
1068
+ extends $ZodCheck<$ZodCheckPropertiesInput<Shape>> {
1069
+ _zod: $ZodCheckPropertiesInternals<Shape>;
1070
+ // yields the check itself, so `.check(...z.properties(shape))` spread call sites keep working
1071
+ [Symbol.iterator](): Iterator<this>;
1072
+ }
1073
+
1074
+ export const $ZodCheckProperties: core.$constructor<$ZodCheckProperties> = /*@__PURE__*/ core.$constructor(
1075
+ "$ZodCheckProperties",
1076
+ (inst, def) => {
1077
+ $ZodCheck.init(inst, def);
1078
+ util.hide(inst, Symbol.iterator, function* () {
1079
+ yield inst;
1080
+ });
1081
+
1082
+ // key and schema snapshotted together: reading one live and the other cached lets a later mutation of the caller's shape object pair a stale key with a missing schema
1083
+ let entries!: [string | symbol, schemas.$ZodType][];
1084
+ inst._zod.check = (payload) => {
1085
+ // the base schema already typed the value, so only a nullish one is rejected here: the properties read on a primitive too, matching z.property() on a string's length
1086
+ if (payload.value == null) {
1087
+ payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
1088
+ return undefined;
1089
+ }
1090
+ entries ??= Reflect.ownKeys(def.shape).map((key) => [key, (def.shape as any)[key] as schemas.$ZodType]);
1091
+ const input = payload.value as any;
1092
+ let proms: Promise<any>[] | undefined;
1093
+ for (const [key, schema] of entries) {
1094
+ const result = schema._zod.run({ value: input[key], issues: [] }, {});
1095
+ if (result instanceof Promise) {
1096
+ proms ??= [];
1097
+ proms.push(result.then((result) => handleCheckPropertyResult(result, payload, key)));
1098
+ } else {
1099
+ handleCheckPropertyResult(result, payload, key);
1100
+ }
1101
+ }
1102
+ if (proms) return Promise.all(proms).then(() => undefined);
1103
+ return undefined;
1104
+ };
1105
+ }
1106
+ );
1107
+
1123
1108
  ///////////////////////////////////
1124
1109
  ///// $ZodCheckMimeType /////
1125
1110
  ///////////////////////////////////
@@ -1128,12 +1113,12 @@ export interface $ZodCheckMimeTypeDef extends $ZodCheckDef {
1128
1113
  mime: util.MimeTypes[];
1129
1114
  }
1130
1115
 
1131
- export interface $ZodCheckMimeTypeInternals<T extends File = File> extends $ZodCheckInternals<T> {
1116
+ export interface $ZodCheckMimeTypeInternals<T extends schemas.File = schemas.File> extends $ZodCheckInternals<T> {
1132
1117
  def: $ZodCheckMimeTypeDef;
1133
1118
  issc: errors.$ZodIssueInvalidValue;
1134
1119
  }
1135
1120
 
1136
- export interface $ZodCheckMimeType<T extends File = File> extends $ZodCheck<T> {
1121
+ export interface $ZodCheckMimeType<T extends schemas.File = schemas.File> extends $ZodCheck<T> {
1137
1122
  _zod: $ZodCheckMimeTypeInternals<T>;
1138
1123
  }
1139
1124
 
@@ -1142,9 +1127,6 @@ export const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType> = /*@__PURE
1142
1127
  (inst, def) => {
1143
1128
  $ZodCheck.init(inst, def);
1144
1129
  const mimeSet = new Set(def.mime);
1145
- inst._zod.onattach.push((inst) => {
1146
- inst._zod.bag.mime = def.mime;
1147
- });
1148
1130
  inst._zod.check = (payload) => {
1149
1131
  if (mimeSet.has(payload.value.type)) return;
1150
1132
  payload.issues.push({
@@ -1152,6 +1134,7 @@ export const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType> = /*@__PURE
1152
1134
  values: def.mime,
1153
1135
  input: payload.value.type,
1154
1136
  inst,
1137
+ continue: !def.abort,
1155
1138
  });
1156
1139
  };
1157
1140
  }