@osmo.inc/cli-linux-arm64 0.1.20 → 0.1.21

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 (860) hide show
  1. package/dist/studio.js +2209 -935
  2. package/node_modules/zod/LICENSE +21 -0
  3. package/node_modules/zod/README.md +218 -0
  4. package/node_modules/zod/compile.cjs +96 -0
  5. package/node_modules/zod/compile.d.cts +1 -0
  6. package/node_modules/zod/compile.d.ts +1 -0
  7. package/node_modules/zod/compile.js +52 -0
  8. package/node_modules/zod/index.cjs +52 -0
  9. package/node_modules/zod/index.d.cts +3 -0
  10. package/node_modules/zod/index.d.ts +3 -0
  11. package/node_modules/zod/index.js +7 -0
  12. package/node_modules/zod/locales/index.cjs +36 -0
  13. package/node_modules/zod/locales/index.d.cts +1 -0
  14. package/node_modules/zod/locales/index.d.ts +1 -0
  15. package/node_modules/zod/locales/index.js +1 -0
  16. package/node_modules/zod/locales/package.json +7 -0
  17. package/node_modules/zod/mini/index.cjs +51 -0
  18. package/node_modules/zod/mini/index.d.cts +3 -0
  19. package/node_modules/zod/mini/index.d.ts +3 -0
  20. package/node_modules/zod/mini/index.js +3 -0
  21. package/node_modules/zod/mini/package.json +7 -0
  22. package/node_modules/zod/package.json +147 -0
  23. package/node_modules/zod/src/compile.ts +56 -0
  24. package/node_modules/zod/src/index.ts +7 -0
  25. package/node_modules/zod/src/locales/index.ts +1 -0
  26. package/node_modules/zod/src/mini/index.ts +3 -0
  27. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  28. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  29. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  30. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  31. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  32. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  33. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  34. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  35. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  36. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  37. package/node_modules/zod/src/v3/errors.ts +13 -0
  38. package/node_modules/zod/src/v3/external.ts +6 -0
  39. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  40. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  41. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  42. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  43. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  44. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  45. package/node_modules/zod/src/v3/index.ts +4 -0
  46. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  47. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  48. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  49. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  50. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  51. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  52. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  53. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  54. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  55. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  56. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  57. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  58. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  59. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  60. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  61. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  62. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  63. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  64. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  65. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  66. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  67. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  68. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  69. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  70. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  71. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  72. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  73. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  74. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  75. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  76. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  77. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  78. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  79. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  80. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  81. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  82. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  83. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  84. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  85. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  86. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  87. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  88. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  89. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  90. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  91. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  92. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  93. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  94. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  95. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  96. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  97. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  98. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  99. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  100. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  101. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  102. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  103. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  104. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  105. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  106. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  107. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  108. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  109. package/node_modules/zod/src/v3/types.ts +5138 -0
  110. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  111. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  112. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  113. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  114. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  115. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  116. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  117. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  118. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  119. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  120. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  121. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  122. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  123. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  124. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  125. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  126. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  127. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  128. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  129. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  130. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  131. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  132. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  133. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  134. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  135. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  136. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  137. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  138. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  139. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  140. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  141. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  142. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  143. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  144. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  145. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  146. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  147. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  148. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  149. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  150. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  151. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  152. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  153. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  154. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  155. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  156. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  157. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  158. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  159. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  160. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  161. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  162. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  163. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  164. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  165. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  166. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  167. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  168. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  169. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  170. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  171. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  172. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  173. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  174. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  175. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  176. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  177. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  178. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  179. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  180. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  181. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  182. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  183. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  184. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  185. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  186. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  187. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  188. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  189. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  190. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  191. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  192. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  193. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  194. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  195. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  196. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  197. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  198. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  199. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  200. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  201. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  202. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  203. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  204. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  205. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  206. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  207. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  208. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  209. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  210. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  211. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  212. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  213. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  214. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  215. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  216. package/node_modules/zod/src/v4/core/core.ts +230 -0
  217. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  218. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  219. package/node_modules/zod/src/v4/core/index.ts +19 -0
  220. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  221. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  222. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  223. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  224. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  225. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  226. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  227. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  228. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  229. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  230. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  231. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  232. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  233. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  234. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  235. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  236. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  237. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  238. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  239. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  240. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  241. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  242. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  243. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  244. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  245. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  246. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  247. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  248. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  249. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  250. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  251. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  252. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  253. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  254. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  255. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  256. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  257. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  258. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  259. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  260. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  261. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  262. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  263. package/node_modules/zod/src/v4/index.ts +4 -0
  264. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  265. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  266. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  267. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  268. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  269. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  270. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  271. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  272. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  273. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  274. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  275. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  276. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  277. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  278. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  279. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  280. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  281. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  282. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  283. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  284. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  285. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  286. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  287. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  288. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  289. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  290. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  291. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  292. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  293. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  294. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  295. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  296. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  297. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  298. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  299. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  300. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  301. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  302. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  303. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  304. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  305. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  306. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  307. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  308. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  309. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  310. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  311. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  312. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  313. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  314. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  315. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  316. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  317. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  318. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  319. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  320. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  321. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  322. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  323. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  324. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  325. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  326. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  327. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  328. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  329. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  330. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  331. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  332. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  333. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  334. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  335. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  336. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  337. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  338. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  339. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  340. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  341. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  342. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  343. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  344. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  345. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  346. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  347. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  348. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  349. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  350. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  351. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  352. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  353. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  354. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  355. package/node_modules/zod/v3/ZodError.cjs +167 -0
  356. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  357. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  358. package/node_modules/zod/v3/ZodError.js +143 -0
  359. package/node_modules/zod/v3/errors.cjs +36 -0
  360. package/node_modules/zod/v3/errors.d.cts +5 -0
  361. package/node_modules/zod/v3/errors.d.ts +5 -0
  362. package/node_modules/zod/v3/errors.js +9 -0
  363. package/node_modules/zod/v3/external.cjs +41 -0
  364. package/node_modules/zod/v3/external.d.cts +6 -0
  365. package/node_modules/zod/v3/external.d.ts +6 -0
  366. package/node_modules/zod/v3/external.js +6 -0
  367. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  368. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  369. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  370. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  371. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  372. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  373. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  374. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  375. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  376. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  377. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  378. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  379. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  380. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  381. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  382. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  383. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  384. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  385. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  386. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  387. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  388. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  389. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  390. package/node_modules/zod/v3/helpers/util.js +133 -0
  391. package/node_modules/zod/v3/index.cjs +52 -0
  392. package/node_modules/zod/v3/index.d.cts +4 -0
  393. package/node_modules/zod/v3/index.d.ts +4 -0
  394. package/node_modules/zod/v3/index.js +4 -0
  395. package/node_modules/zod/v3/locales/en.cjs +112 -0
  396. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  397. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  398. package/node_modules/zod/v3/locales/en.js +109 -0
  399. package/node_modules/zod/v3/package.json +7 -0
  400. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  401. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  402. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  403. package/node_modules/zod/v3/standard-schema.js +1 -0
  404. package/node_modules/zod/v3/types.cjs +3798 -0
  405. package/node_modules/zod/v3/types.d.cts +1034 -0
  406. package/node_modules/zod/v3/types.d.ts +1034 -0
  407. package/node_modules/zod/v3/types.js +3697 -0
  408. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  409. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  410. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  411. package/node_modules/zod/v4/classic/checks.js +1 -0
  412. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  413. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  414. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  415. package/node_modules/zod/v4/classic/coerce.js +17 -0
  416. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  417. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  418. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  419. package/node_modules/zod/v4/classic/compat.js +31 -0
  420. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  421. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  422. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  423. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  424. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  425. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  426. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  427. package/node_modules/zod/v4/classic/errors.js +57 -0
  428. package/node_modules/zod/v4/classic/external.cjs +97 -0
  429. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  430. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  431. package/node_modules/zod/v4/classic/external.js +17 -0
  432. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  433. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  434. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  435. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  436. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  437. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  438. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  439. package/node_modules/zod/v4/classic/in-out.js +36 -0
  440. package/node_modules/zod/v4/classic/index.cjs +52 -0
  441. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  442. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  443. package/node_modules/zod/v4/classic/index.js +4 -0
  444. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  445. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  446. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  447. package/node_modules/zod/v4/classic/iso.js +15 -0
  448. package/node_modules/zod/v4/classic/package.json +7 -0
  449. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  450. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  451. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  452. package/node_modules/zod/v4/classic/parse.js +16 -0
  453. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  454. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  455. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  456. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  457. package/node_modules/zod/v4/core/api.cjs +1269 -0
  458. package/node_modules/zod/v4/core/api.d.cts +335 -0
  459. package/node_modules/zod/v4/core/api.d.ts +335 -0
  460. package/node_modules/zod/v4/core/api.js +1107 -0
  461. package/node_modules/zod/v4/core/checks.cjs +561 -0
  462. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  463. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  464. package/node_modules/zod/v4/core/checks.js +516 -0
  465. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  466. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  467. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  468. package/node_modules/zod/v4/core/compile.js +1858 -0
  469. package/node_modules/zod/v4/core/core.cjs +167 -0
  470. package/node_modules/zod/v4/core/core.d.cts +82 -0
  471. package/node_modules/zod/v4/core/core.d.ts +82 -0
  472. package/node_modules/zod/v4/core/core.js +141 -0
  473. package/node_modules/zod/v4/core/doc.cjs +61 -0
  474. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  475. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  476. package/node_modules/zod/v4/core/doc.js +38 -0
  477. package/node_modules/zod/v4/core/errors.cjs +317 -0
  478. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  479. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  480. package/node_modules/zod/v4/core/errors.js +267 -0
  481. package/node_modules/zod/v4/core/index.cjs +70 -0
  482. package/node_modules/zod/v4/core/index.d.cts +19 -0
  483. package/node_modules/zod/v4/core/index.d.ts +19 -0
  484. package/node_modules/zod/v4/core/index.js +19 -0
  485. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  486. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  487. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  488. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  489. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  490. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  491. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  492. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  493. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  494. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  495. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  496. package/node_modules/zod/v4/core/json-schema.js +1 -0
  497. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  498. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  499. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  500. package/node_modules/zod/v4/core/memoizer.js +311 -0
  501. package/node_modules/zod/v4/core/package.json +7 -0
  502. package/node_modules/zod/v4/core/parse.cjs +233 -0
  503. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  504. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  505. package/node_modules/zod/v4/core/parse.js +175 -0
  506. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  507. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  508. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  509. package/node_modules/zod/v4/core/regexes.js +156 -0
  510. package/node_modules/zod/v4/core/registries.cjs +75 -0
  511. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  512. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  513. package/node_modules/zod/v4/core/registries.js +51 -0
  514. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  515. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  516. package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
  517. package/node_modules/zod/v4/core/schemas.js +2606 -0
  518. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  519. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  520. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  521. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  522. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  523. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  524. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  525. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  526. package/node_modules/zod/v4/core/util.cjs +949 -0
  527. package/node_modules/zod/v4/core/util.d.cts +278 -0
  528. package/node_modules/zod/v4/core/util.d.ts +278 -0
  529. package/node_modules/zod/v4/core/util.js +859 -0
  530. package/node_modules/zod/v4/core/versions.cjs +27 -0
  531. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  532. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  533. package/node_modules/zod/v4/core/versions.js +5 -0
  534. package/node_modules/zod/v4/core/visit.cjs +214 -0
  535. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  536. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  537. package/node_modules/zod/v4/core/visit.js +169 -0
  538. package/node_modules/zod/v4/index.cjs +51 -0
  539. package/node_modules/zod/v4/index.d.cts +3 -0
  540. package/node_modules/zod/v4/index.d.ts +3 -0
  541. package/node_modules/zod/v4/index.js +4 -0
  542. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  543. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  544. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  545. package/node_modules/zod/v4/locales/ar.js +111 -0
  546. package/node_modules/zod/v4/locales/az.cjs +137 -0
  547. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  548. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  549. package/node_modules/zod/v4/locales/az.js +110 -0
  550. package/node_modules/zod/v4/locales/be.cjs +195 -0
  551. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  552. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  553. package/node_modules/zod/v4/locales/be.js +168 -0
  554. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  555. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  556. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  557. package/node_modules/zod/v4/locales/bg.js +125 -0
  558. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  559. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  560. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  561. package/node_modules/zod/v4/locales/bn.js +113 -0
  562. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  563. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  564. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  565. package/node_modules/zod/v4/locales/ca.js +112 -0
  566. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  567. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  568. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  569. package/node_modules/zod/v4/locales/ckb.js +133 -0
  570. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  571. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  572. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  573. package/node_modules/zod/v4/locales/cs.js +116 -0
  574. package/node_modules/zod/v4/locales/da.cjs +147 -0
  575. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  576. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  577. package/node_modules/zod/v4/locales/da.js +120 -0
  578. package/node_modules/zod/v4/locales/de.cjs +140 -0
  579. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  580. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  581. package/node_modules/zod/v4/locales/de.js +113 -0
  582. package/node_modules/zod/v4/locales/el.cjs +139 -0
  583. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  584. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  585. package/node_modules/zod/v4/locales/el.js +112 -0
  586. package/node_modules/zod/v4/locales/en.cjs +152 -0
  587. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  588. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  589. package/node_modules/zod/v4/locales/en.js +125 -0
  590. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  591. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  592. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  593. package/node_modules/zod/v4/locales/eo.js +114 -0
  594. package/node_modules/zod/v4/locales/es.cjs +163 -0
  595. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  596. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  597. package/node_modules/zod/v4/locales/es.js +136 -0
  598. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  599. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  600. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  601. package/node_modules/zod/v4/locales/fa.js +119 -0
  602. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  603. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  604. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  605. package/node_modules/zod/v4/locales/fi.js +117 -0
  606. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  607. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  608. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  609. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  610. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  611. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  612. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  613. package/node_modules/zod/v4/locales/fr.js +129 -0
  614. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  615. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  616. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  617. package/node_modules/zod/v4/locales/gu.js +113 -0
  618. package/node_modules/zod/v4/locales/he.cjs +248 -0
  619. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  620. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  621. package/node_modules/zod/v4/locales/he.js +221 -0
  622. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  623. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  624. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  625. package/node_modules/zod/v4/locales/hi.js +111 -0
  626. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  627. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  628. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  629. package/node_modules/zod/v4/locales/hr.js +126 -0
  630. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  631. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  632. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  633. package/node_modules/zod/v4/locales/hu.js +113 -0
  634. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  635. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  636. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  637. package/node_modules/zod/v4/locales/hy.js +158 -0
  638. package/node_modules/zod/v4/locales/id.cjs +138 -0
  639. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  640. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  641. package/node_modules/zod/v4/locales/id.js +111 -0
  642. package/node_modules/zod/v4/locales/index.cjs +152 -0
  643. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  644. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  645. package/node_modules/zod/v4/locales/index.js +63 -0
  646. package/node_modules/zod/v4/locales/is.cjs +141 -0
  647. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  648. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  649. package/node_modules/zod/v4/locales/is.js +114 -0
  650. package/node_modules/zod/v4/locales/it.cjs +140 -0
  651. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  652. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  653. package/node_modules/zod/v4/locales/it.js +113 -0
  654. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  655. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  656. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  657. package/node_modules/zod/v4/locales/ja.js +112 -0
  658. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  659. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  660. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  661. package/node_modules/zod/v4/locales/ka.js +117 -0
  662. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  663. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  664. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  665. package/node_modules/zod/v4/locales/kh.js +5 -0
  666. package/node_modules/zod/v4/locales/km.cjs +142 -0
  667. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  668. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  669. package/node_modules/zod/v4/locales/km.js +115 -0
  670. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  671. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  672. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  673. package/node_modules/zod/v4/locales/kn.js +116 -0
  674. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  675. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  676. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  677. package/node_modules/zod/v4/locales/ko.js +116 -0
  678. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  679. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  680. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  681. package/node_modules/zod/v4/locales/lt.js +207 -0
  682. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  683. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  684. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  685. package/node_modules/zod/v4/locales/mk.js +114 -0
  686. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  687. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  688. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  689. package/node_modules/zod/v4/locales/ms.js +112 -0
  690. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  691. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/ne.js +111 -0
  694. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  695. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  696. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  697. package/node_modules/zod/v4/locales/nl.js +115 -0
  698. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  699. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  700. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  701. package/node_modules/zod/v4/locales/nn.js +113 -0
  702. package/node_modules/zod/v4/locales/no.cjs +140 -0
  703. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  704. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  705. package/node_modules/zod/v4/locales/no.js +113 -0
  706. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  707. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  708. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  709. package/node_modules/zod/v4/locales/ota.js +114 -0
  710. package/node_modules/zod/v4/locales/package.json +7 -0
  711. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  712. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  713. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  714. package/node_modules/zod/v4/locales/pl.js +114 -0
  715. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  716. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  717. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  718. package/node_modules/zod/v4/locales/ps.js +119 -0
  719. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  720. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  721. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  722. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  723. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  724. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  725. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  726. package/node_modules/zod/v4/locales/pt.js +142 -0
  727. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  728. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  729. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  730. package/node_modules/zod/v4/locales/ro.js +122 -0
  731. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  732. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  733. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  734. package/node_modules/zod/v4/locales/ru.js +168 -0
  735. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  736. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  737. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  738. package/node_modules/zod/v4/locales/sk.js +116 -0
  739. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  740. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  741. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  742. package/node_modules/zod/v4/locales/sl.js +114 -0
  743. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  744. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  745. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  746. package/node_modules/zod/v4/locales/sv.js +115 -0
  747. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  748. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  749. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  750. package/node_modules/zod/v4/locales/ta.js +115 -0
  751. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  752. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  753. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  754. package/node_modules/zod/v4/locales/tg.js +117 -0
  755. package/node_modules/zod/v4/locales/th.cjs +142 -0
  756. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  757. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  758. package/node_modules/zod/v4/locales/th.js +115 -0
  759. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  760. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  761. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  762. package/node_modules/zod/v4/locales/tk.js +107 -0
  763. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  764. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  765. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  766. package/node_modules/zod/v4/locales/tr.js +110 -0
  767. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  768. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  769. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  770. package/node_modules/zod/v4/locales/ua.js +5 -0
  771. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  772. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  773. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  774. package/node_modules/zod/v4/locales/uk.js +113 -0
  775. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  776. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  777. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  778. package/node_modules/zod/v4/locales/ur.js +115 -0
  779. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  780. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  781. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  782. package/node_modules/zod/v4/locales/uz.js +113 -0
  783. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  784. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  785. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  786. package/node_modules/zod/v4/locales/vi.js +113 -0
  787. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  788. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  789. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  790. package/node_modules/zod/v4/locales/yo.js +112 -0
  791. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  792. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  793. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  794. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  795. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  796. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  797. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  798. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  799. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  800. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  801. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  802. package/node_modules/zod/v4/mini/checks.js +1 -0
  803. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  804. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  805. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  806. package/node_modules/zod/v4/mini/coerce.js +22 -0
  807. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  808. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  809. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  810. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  811. package/node_modules/zod/v4/mini/external.cjs +95 -0
  812. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  813. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  814. package/node_modules/zod/v4/mini/external.js +16 -0
  815. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  816. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  817. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  818. package/node_modules/zod/v4/mini/in-out.js +36 -0
  819. package/node_modules/zod/v4/mini/index.cjs +51 -0
  820. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  821. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  822. package/node_modules/zod/v4/mini/index.js +3 -0
  823. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  824. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  825. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  826. package/node_modules/zod/v4/mini/iso.js +34 -0
  827. package/node_modules/zod/v4/mini/package.json +7 -0
  828. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  829. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  830. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  831. package/node_modules/zod/v4/mini/parse.js +1 -0
  832. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  833. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  834. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  835. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  836. package/node_modules/zod/v4/package.json +7 -0
  837. package/node_modules/zod/v4-mini/index.cjs +51 -0
  838. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  839. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  840. package/node_modules/zod/v4-mini/index.js +3 -0
  841. package/node_modules/zod/v4-mini/package.json +7 -0
  842. package/package.json +4 -2
  843. package/release.json +36 -35
  844. package/runtime/packages/scene/scripts/validate-strict.mjs +6 -3
  845. package/runtime/packages/scene/src/elements.ts +4 -0
  846. package/runtime/packages/scene/src/evaluate.ts +19 -8
  847. package/runtime/packages/scene/src/text-animation.ts +3 -0
  848. package/studio/src/app.css +1 -1
  849. package/studio/src/app.js +199 -189
  850. package/studio/src/claude-code-KJ6GQSFJ.png +0 -0
  851. package/studio/src/codex-V5I4YAB6.png +0 -0
  852. package/studio/src/cursor-6JHYZW5J.png +0 -0
  853. package/studio/src/engine_bg.wasm +0 -0
  854. package/studio/src/opencode-CEYXKS6E.png +0 -0
  855. package/third-party/inventory.json +14 -0
  856. package/third-party/npm/zod@4.6.5/LICENSE +21 -0
  857. package/third-party/npm/zod@4.6.5/package.json +147 -0
  858. package/vendor/osmo-lite +0 -0
  859. package/vendor/osmo-scene-0.1.0.tgz +0 -0
  860. package/vendor/platform.json +1 -1
@@ -0,0 +1,1875 @@
1
+ import * as checks from "./checks.js";
2
+ import type * as core from "./core.js";
3
+ import type * as errors from "./errors.js";
4
+ import * as registries from "./registries.js";
5
+ import * as schemas from "./schemas.js";
6
+ import * as util from "./util.js";
7
+
8
+ export type Params<
9
+ T extends schemas.$ZodType | checks.$ZodCheck,
10
+ IssueTypes extends errors.$ZodIssueBase,
11
+ OmitKeys extends keyof T["_zod"]["def"] = never,
12
+ > = util.Flatten<
13
+ Partial<
14
+ util.EmptyToNever<
15
+ Omit<T["_zod"]["def"], OmitKeys> &
16
+ ([IssueTypes] extends [never]
17
+ ? {} // unknown
18
+ : {
19
+ error?: string | errors.$ZodErrorMap<IssueTypes> | undefined;
20
+ /** @deprecated This parameter is deprecated. Use `error` instead. */
21
+ message?: string | undefined; // supported in Zod 3
22
+ })
23
+ >
24
+ >
25
+ >;
26
+
27
+ export type TypeParams<
28
+ T extends schemas.$ZodType = schemas.$ZodType & { _isst: never },
29
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never,
30
+ > = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
31
+
32
+ // strips types that are not exposed in the public factory
33
+ // incl. `error`, `check`
34
+ export type CheckParams<
35
+ T extends checks.$ZodCheck = checks.$ZodCheck, // & { _issc: never },
36
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never,
37
+ > = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
38
+
39
+ // strips types that are not exposed in the public factory
40
+ // incl. `type`, `checks`, `error`, `check`, `format`
41
+ export type StringFormatParams<
42
+ T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat,
43
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never,
44
+ > = Params<
45
+ T,
46
+ NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>,
47
+ "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit
48
+ >;
49
+
50
+ export type CheckStringFormatParams<
51
+ T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat,
52
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never,
53
+ > = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
54
+
55
+ export type CheckTypeParams<
56
+ T extends schemas.$ZodType & checks.$ZodCheck = schemas.$ZodType & checks.$ZodCheck,
57
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never,
58
+ > = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
59
+
60
+ // String
61
+ export type $ZodStringParams = TypeParams<schemas.$ZodString<string>, "coerce"> & {
62
+ checks?: readonly checks.$ZodCheck<string>[];
63
+ };
64
+
65
+ function snapshotChecks<T extends { checks?: readonly checks.$ZodCheck<never>[] }>(def: T) {
66
+ if (def.checks) def.checks = [...def.checks];
67
+ return def as T & { checks?: NonNullable<T["checks"]>[number][] };
68
+ }
69
+ // @__NO_SIDE_EFFECTS__
70
+ export function _string<T extends schemas.$ZodString>(
71
+ Class: util.SchemaClass<T>,
72
+ params?: string | $ZodStringParams
73
+ ): T {
74
+ return new Class(snapshotChecks({ type: "string" as const, ...util.normalizeParams(params) }));
75
+ }
76
+
77
+ // @__NO_SIDE_EFFECTS__
78
+ export function _coercedString<T extends schemas.$ZodString>(
79
+ Class: util.SchemaClass<T>,
80
+ params?: string | $ZodStringParams
81
+ ): T {
82
+ return new Class(snapshotChecks({ type: "string" as const, coerce: true, ...util.normalizeParams(params) }));
83
+ }
84
+
85
+ export type $ZodStringFormatParams = CheckTypeParams<
86
+ schemas.$ZodStringFormat,
87
+ "format" | "coerce" | "when" | "pattern"
88
+ >;
89
+ export type $ZodCheckStringFormatParams = CheckParams<checks.$ZodCheckStringFormat, "format">;
90
+ // custom format
91
+
92
+ // Email
93
+ export type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail, "when">;
94
+ export type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail, "when">;
95
+ // @__NO_SIDE_EFFECTS__
96
+ export function _email<T extends schemas.$ZodEmail>(
97
+ Class: util.SchemaClass<T>,
98
+ params?: string | $ZodEmailParams | $ZodCheckEmailParams
99
+ ): T {
100
+ return new Class({
101
+ type: "string",
102
+ format: "email",
103
+ check: "string_format",
104
+ abort: false,
105
+ ...util.normalizeParams(params),
106
+ });
107
+ }
108
+
109
+ // GUID
110
+ export type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
111
+ export type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
112
+ // @__NO_SIDE_EFFECTS__
113
+ export function _guid<T extends schemas.$ZodGUID>(
114
+ Class: util.SchemaClass<T>,
115
+ params?: string | $ZodGUIDParams | $ZodCheckGUIDParams
116
+ ): T {
117
+ return new Class({
118
+ type: "string",
119
+ format: "guid",
120
+ check: "string_format",
121
+ abort: false,
122
+ ...util.normalizeParams(params),
123
+ });
124
+ }
125
+
126
+ // UUID
127
+ export type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
128
+ export type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
129
+ // @__NO_SIDE_EFFECTS__
130
+ export function _uuid<T extends schemas.$ZodUUID>(
131
+ Class: util.SchemaClass<T>,
132
+ params?: string | $ZodUUIDParams | $ZodCheckUUIDParams
133
+ ): T {
134
+ return new Class({
135
+ type: "string",
136
+ format: "uuid",
137
+ check: "string_format",
138
+ abort: false,
139
+ ...util.normalizeParams(params),
140
+ });
141
+ }
142
+
143
+ // UUIDv4
144
+ export type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
145
+ export type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
146
+ // @__NO_SIDE_EFFECTS__
147
+ export function _uuidv4<T extends schemas.$ZodUUID>(
148
+ Class: util.SchemaClass<T>,
149
+ params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params
150
+ ): T {
151
+ return new Class({
152
+ type: "string",
153
+ format: "uuid",
154
+ check: "string_format",
155
+ abort: false,
156
+ version: "v4",
157
+ ...util.normalizeParams(params),
158
+ });
159
+ }
160
+
161
+ // UUIDv6
162
+ export type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
163
+ export type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
164
+ // @__NO_SIDE_EFFECTS__
165
+ export function _uuidv6<T extends schemas.$ZodUUID>(
166
+ Class: util.SchemaClass<T>,
167
+ params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params
168
+ ): T {
169
+ return new Class({
170
+ type: "string",
171
+ format: "uuid",
172
+ check: "string_format",
173
+ abort: false,
174
+ version: "v6",
175
+ ...util.normalizeParams(params),
176
+ });
177
+ }
178
+
179
+ // UUIDv7
180
+ export type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
181
+ export type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
182
+ // @__NO_SIDE_EFFECTS__
183
+ export function _uuidv7<T extends schemas.$ZodUUID>(
184
+ Class: util.SchemaClass<T>,
185
+ params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params
186
+ ): T {
187
+ return new Class({
188
+ type: "string",
189
+ format: "uuid",
190
+ check: "string_format",
191
+ abort: false,
192
+ version: "v7",
193
+ ...util.normalizeParams(params),
194
+ });
195
+ }
196
+
197
+ // URL
198
+ export type $ZodURLParams = StringFormatParams<schemas.$ZodURL, "when">;
199
+ export type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL, "when">;
200
+ // @__NO_SIDE_EFFECTS__
201
+ export function _url<T extends schemas.$ZodURL>(
202
+ Class: util.SchemaClass<T>,
203
+ params?: string | $ZodURLParams | $ZodCheckURLParams
204
+ ): T {
205
+ return new Class({
206
+ type: "string",
207
+ format: "url",
208
+ check: "string_format",
209
+ abort: false,
210
+ ...util.normalizeParams(params),
211
+ });
212
+ }
213
+
214
+ // Emoji
215
+ export type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji, "when">;
216
+ export type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji, "when">;
217
+ // @__NO_SIDE_EFFECTS__
218
+ export function _emoji<T extends schemas.$ZodEmoji>(
219
+ Class: util.SchemaClass<T>,
220
+ params?: string | $ZodEmojiParams | $ZodCheckEmojiParams
221
+ ): T {
222
+ return new Class({
223
+ type: "string",
224
+ format: "emoji",
225
+ check: "string_format",
226
+ abort: false,
227
+ ...util.normalizeParams(params),
228
+ });
229
+ }
230
+
231
+ // NanoID
232
+ export type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
233
+ export type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
234
+ // @__NO_SIDE_EFFECTS__
235
+ export function _nanoid<T extends schemas.$ZodNanoID>(
236
+ Class: util.SchemaClass<T>,
237
+ params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams
238
+ ): T {
239
+ return new Class({
240
+ type: "string",
241
+ format: "nanoid",
242
+ check: "string_format",
243
+ abort: false,
244
+ ...util.normalizeParams(params),
245
+ });
246
+ }
247
+
248
+ // CUID
249
+ /**
250
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
251
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
252
+ * See https://github.com/paralleldrive/cuid.
253
+ */
254
+ export type $ZodCUIDParams = StringFormatParams<schemas.$ZodCUID, "when">;
255
+ /**
256
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
257
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
258
+ * See https://github.com/paralleldrive/cuid.
259
+ */
260
+ export type $ZodCheckCUIDParams = CheckStringFormatParams<schemas.$ZodCUID, "when">;
261
+ /**
262
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
263
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
264
+ * See https://github.com/paralleldrive/cuid.
265
+ */
266
+ // @__NO_SIDE_EFFECTS__
267
+ export function _cuid<T extends schemas.$ZodCUID>(
268
+ Class: util.SchemaClass<T>,
269
+ params?: string | $ZodCUIDParams | $ZodCheckCUIDParams
270
+ ): T {
271
+ return new Class({
272
+ type: "string",
273
+ format: "cuid",
274
+ check: "string_format",
275
+ abort: false,
276
+ ...util.normalizeParams(params),
277
+ });
278
+ }
279
+
280
+ // CUID2
281
+ export type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2, "when">;
282
+ export type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2, "when">;
283
+ // @__NO_SIDE_EFFECTS__
284
+ export function _cuid2<T extends schemas.$ZodCUID2>(
285
+ Class: util.SchemaClass<T>,
286
+ params?: string | $ZodCUID2Params | $ZodCheckCUID2Params
287
+ ): T {
288
+ return new Class({
289
+ type: "string",
290
+ format: "cuid2",
291
+ check: "string_format",
292
+ abort: false,
293
+ ...util.normalizeParams(params),
294
+ });
295
+ }
296
+
297
+ // ULID
298
+ export type $ZodULIDParams = StringFormatParams<schemas.$ZodULID, "when">;
299
+ export type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID, "when">;
300
+ // @__NO_SIDE_EFFECTS__
301
+ export function _ulid<T extends schemas.$ZodULID>(
302
+ Class: util.SchemaClass<T>,
303
+ params?: string | $ZodULIDParams | $ZodCheckULIDParams
304
+ ): T {
305
+ return new Class({
306
+ type: "string",
307
+ format: "ulid",
308
+ check: "string_format",
309
+ abort: false,
310
+ ...util.normalizeParams(params),
311
+ });
312
+ }
313
+
314
+ // XID
315
+ export type $ZodXIDParams = StringFormatParams<schemas.$ZodXID, "when">;
316
+ export type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID, "when">;
317
+ // @__NO_SIDE_EFFECTS__
318
+ export function _xid<T extends schemas.$ZodXID>(
319
+ Class: util.SchemaClass<T>,
320
+ params?: string | $ZodXIDParams | $ZodCheckXIDParams
321
+ ): T {
322
+ return new Class({
323
+ type: "string",
324
+ format: "xid",
325
+ check: "string_format",
326
+ abort: false,
327
+ ...util.normalizeParams(params),
328
+ });
329
+ }
330
+
331
+ // KSUID
332
+ export type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID, "when">;
333
+ export type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID, "when">;
334
+ // @__NO_SIDE_EFFECTS__
335
+ export function _ksuid<T extends schemas.$ZodKSUID>(
336
+ Class: util.SchemaClass<T>,
337
+ params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams
338
+ ): T {
339
+ return new Class({
340
+ type: "string",
341
+ format: "ksuid",
342
+ check: "string_format",
343
+ abort: false,
344
+ ...util.normalizeParams(params),
345
+ });
346
+ }
347
+
348
+ // IPv4
349
+ export type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
350
+ export type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
351
+ // @__NO_SIDE_EFFECTS__
352
+ export function _ipv4<T extends schemas.$ZodIPv4>(
353
+ Class: util.SchemaClass<T>,
354
+ params?: string | $ZodIPv4Params | $ZodCheckIPv4Params
355
+ ): T {
356
+ return new Class({
357
+ type: "string",
358
+ format: "ipv4",
359
+ check: "string_format",
360
+ abort: false,
361
+ ...util.normalizeParams(params),
362
+ });
363
+ }
364
+
365
+ // IPv6
366
+ export type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
367
+ export type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
368
+ // @__NO_SIDE_EFFECTS__
369
+ export function _ipv6<T extends schemas.$ZodIPv6>(
370
+ Class: util.SchemaClass<T>,
371
+ params?: string | $ZodIPv6Params | $ZodCheckIPv6Params
372
+ ): T {
373
+ return new Class({
374
+ type: "string",
375
+ format: "ipv6",
376
+ check: "string_format",
377
+ abort: false,
378
+ ...util.normalizeParams(params),
379
+ });
380
+ }
381
+
382
+ // MAC
383
+ export type $ZodMACParams = StringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
384
+ export type $ZodCheckMACParams = CheckStringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
385
+ // @__NO_SIDE_EFFECTS__
386
+ export function _mac<T extends schemas.$ZodMAC>(
387
+ Class: util.SchemaClass<T>,
388
+ params?: string | $ZodMACParams | $ZodCheckMACParams
389
+ ): T {
390
+ return new Class({
391
+ type: "string",
392
+ format: "mac",
393
+ check: "string_format",
394
+ abort: false,
395
+ ...util.normalizeParams(params),
396
+ });
397
+ }
398
+
399
+ // CIDRv4
400
+ export type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
401
+ export type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
402
+ // @__NO_SIDE_EFFECTS__
403
+ export function _cidrv4<T extends schemas.$ZodCIDRv4>(
404
+ Class: util.SchemaClass<T>,
405
+ params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params
406
+ ): T {
407
+ return new Class({
408
+ type: "string",
409
+ format: "cidrv4",
410
+ check: "string_format",
411
+ abort: false,
412
+ ...util.normalizeParams(params),
413
+ });
414
+ }
415
+
416
+ // CIDRv6
417
+ export type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
418
+ export type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
419
+ // @__NO_SIDE_EFFECTS__
420
+ export function _cidrv6<T extends schemas.$ZodCIDRv6>(
421
+ Class: util.SchemaClass<T>,
422
+ params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params
423
+ ): T {
424
+ return new Class({
425
+ type: "string",
426
+ format: "cidrv6",
427
+ check: "string_format",
428
+ abort: false,
429
+ ...util.normalizeParams(params),
430
+ });
431
+ }
432
+
433
+ // Base64
434
+ export type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
435
+ export type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
436
+ // @__NO_SIDE_EFFECTS__
437
+ export function _base64<T extends schemas.$ZodBase64>(
438
+ Class: util.SchemaClass<T>,
439
+ params?: string | $ZodBase64Params | $ZodCheckBase64Params
440
+ ): T {
441
+ return new Class({
442
+ type: "string",
443
+ format: "base64",
444
+ check: "string_format",
445
+ abort: false,
446
+ ...util.normalizeParams(params),
447
+ });
448
+ }
449
+
450
+ // base64url
451
+ export type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
452
+ export type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
453
+ // @__NO_SIDE_EFFECTS__
454
+ export function _base64url<T extends schemas.$ZodBase64URL>(
455
+ Class: util.SchemaClass<T>,
456
+ params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams
457
+ ): T {
458
+ return new Class({
459
+ type: "string",
460
+ format: "base64url",
461
+ check: "string_format",
462
+ abort: false,
463
+ ...util.normalizeParams(params),
464
+ });
465
+ }
466
+
467
+ // E164
468
+ export type $ZodE164Params = StringFormatParams<schemas.$ZodE164, "when">;
469
+ export type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164, "when">;
470
+ // @__NO_SIDE_EFFECTS__
471
+ export function _e164<T extends schemas.$ZodE164>(
472
+ Class: util.SchemaClass<T>,
473
+ params?: string | $ZodE164Params | $ZodCheckE164Params
474
+ ): T {
475
+ return new Class({
476
+ type: "string",
477
+ format: "e164",
478
+ check: "string_format",
479
+ abort: false,
480
+ ...util.normalizeParams(params),
481
+ });
482
+ }
483
+
484
+ // CreditCard
485
+ export type $ZodCreditCardParams = StringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
486
+ export type $ZodCheckCreditCardParams = CheckStringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
487
+ // @__NO_SIDE_EFFECTS__
488
+ export function _creditCard<T extends schemas.$ZodCreditCard>(
489
+ Class: util.SchemaClass<T>,
490
+ params?: string | $ZodCreditCardParams | $ZodCheckCreditCardParams
491
+ ): T {
492
+ return new Class({
493
+ type: "string",
494
+ format: "credit_card",
495
+ check: "string_format",
496
+ abort: false,
497
+ ...util.normalizeParams(params),
498
+ });
499
+ }
500
+
501
+ // IBAN
502
+ export type $ZodIBANParams = StringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
503
+ export type $ZodCheckIBANParams = CheckStringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
504
+ // @__NO_SIDE_EFFECTS__
505
+ export function _iban<T extends schemas.$ZodIBAN>(
506
+ Class: util.SchemaClass<T>,
507
+ params?: string | $ZodIBANParams | $ZodCheckIBANParams
508
+ ): T {
509
+ return new Class({
510
+ type: "string",
511
+ format: "iban",
512
+ check: "string_format",
513
+ abort: false,
514
+ ...util.normalizeParams(params),
515
+ });
516
+ }
517
+
518
+ // JWT
519
+ export type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
520
+ export type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
521
+ // @__NO_SIDE_EFFECTS__
522
+ export function _jwt<T extends schemas.$ZodJWT>(
523
+ Class: util.SchemaClass<T>,
524
+ params?: string | $ZodJWTParams | $ZodCheckJWTParams
525
+ ): T {
526
+ return new Class({
527
+ type: "string",
528
+ format: "jwt",
529
+ check: "string_format",
530
+ abort: false,
531
+ ...util.normalizeParams(params),
532
+ });
533
+ }
534
+
535
+ export const TimePrecision = {
536
+ Any: null,
537
+ Minute: -1,
538
+ Second: 0,
539
+ Millisecond: 3,
540
+ Microsecond: 6,
541
+ } as const;
542
+ // ISODateTime
543
+ export type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
544
+ export type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
545
+ // @__NO_SIDE_EFFECTS__
546
+ export function _isoDateTime<T extends schemas.$ZodISODateTime>(
547
+ Class: util.SchemaClass<T>,
548
+ params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams
549
+ ): T {
550
+ return new Class({
551
+ type: "string",
552
+ format: "datetime",
553
+ check: "string_format",
554
+ offset: false,
555
+ local: false,
556
+ precision: null,
557
+ ...util.normalizeParams(params),
558
+ });
559
+ }
560
+
561
+ // ISODate
562
+ export type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
563
+ export type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
564
+ // @__NO_SIDE_EFFECTS__
565
+ export function _isoDate<T extends schemas.$ZodISODate>(
566
+ Class: util.SchemaClass<T>,
567
+ params?: string | $ZodISODateParams | $ZodCheckISODateParams
568
+ ): T {
569
+ return new Class({
570
+ type: "string",
571
+ format: "date",
572
+ check: "string_format",
573
+ ...util.normalizeParams(params),
574
+ });
575
+ }
576
+
577
+ // ISOTime
578
+ export type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
579
+ export type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
580
+ // @__NO_SIDE_EFFECTS__
581
+ export function _isoTime<T extends schemas.$ZodISOTime>(
582
+ Class: util.SchemaClass<T>,
583
+ params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams
584
+ ): T {
585
+ return new Class({
586
+ type: "string",
587
+ format: "time",
588
+ check: "string_format",
589
+ precision: null,
590
+ ...util.normalizeParams(params),
591
+ });
592
+ }
593
+
594
+ // ISODuration
595
+ export type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration, "when">;
596
+ export type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration, "when">;
597
+ // @__NO_SIDE_EFFECTS__
598
+ export function _isoDuration<T extends schemas.$ZodISODuration>(
599
+ Class: util.SchemaClass<T>,
600
+ params?: string | $ZodISODurationParams | $ZodCheckISODurationParams
601
+ ): T {
602
+ return new Class({
603
+ type: "string",
604
+ format: "duration",
605
+ check: "string_format",
606
+ ...util.normalizeParams(params),
607
+ });
608
+ }
609
+
610
+ // Number
611
+ export type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, "coerce"> & {
612
+ checks?: readonly checks.$ZodCheck<number>[];
613
+ };
614
+ export type $ZodNumberFormatParams = CheckTypeParams<schemas.$ZodNumberFormat, "format" | "coerce">;
615
+ export type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, "format" | "when">;
616
+ // @__NO_SIDE_EFFECTS__
617
+ export function _number<T extends schemas.$ZodNumber>(
618
+ Class: util.SchemaClass<T>,
619
+ params?: string | $ZodNumberParams
620
+ ): T {
621
+ return new Class(snapshotChecks({ type: "number" as const, checks: [], ...util.normalizeParams(params) }));
622
+ }
623
+
624
+ // @__NO_SIDE_EFFECTS__
625
+ export function _coercedNumber<T extends schemas.$ZodNumber>(
626
+ Class: util.SchemaClass<T>,
627
+ params?: string | $ZodNumberParams
628
+ ): T {
629
+ return new Class(
630
+ snapshotChecks({ type: "number" as const, coerce: true, checks: [], ...util.normalizeParams(params) })
631
+ );
632
+ }
633
+
634
+ // @__NO_SIDE_EFFECTS__
635
+ export function _int<T extends schemas.$ZodNumberFormat>(
636
+ Class: util.SchemaClass<T>,
637
+ params?: string | $ZodCheckNumberFormatParams
638
+ ): T {
639
+ return new Class({
640
+ type: "number",
641
+ check: "number_format",
642
+ abort: false,
643
+ format: "safeint",
644
+ ...util.normalizeParams(params),
645
+ });
646
+ }
647
+ // @__NO_SIDE_EFFECTS__
648
+ export function _float32<T extends schemas.$ZodNumberFormat>(
649
+ Class: util.SchemaClass<T>,
650
+ params?: string | $ZodCheckNumberFormatParams
651
+ ): T {
652
+ return new Class({
653
+ type: "number",
654
+ check: "number_format",
655
+ abort: false,
656
+ format: "float32",
657
+ ...util.normalizeParams(params),
658
+ });
659
+ }
660
+ // @__NO_SIDE_EFFECTS__
661
+ export function _float64<T extends schemas.$ZodNumberFormat>(
662
+ Class: util.SchemaClass<T>,
663
+ params?: string | $ZodCheckNumberFormatParams
664
+ ): T {
665
+ return new Class({
666
+ type: "number",
667
+ check: "number_format",
668
+ abort: false,
669
+ format: "float64",
670
+ ...util.normalizeParams(params),
671
+ });
672
+ }
673
+ // @__NO_SIDE_EFFECTS__
674
+ export function _int32<T extends schemas.$ZodNumberFormat>(
675
+ Class: util.SchemaClass<T>,
676
+ params?: string | $ZodCheckNumberFormatParams
677
+ ): T {
678
+ return new Class({
679
+ type: "number",
680
+ check: "number_format",
681
+ abort: false,
682
+ format: "int32",
683
+ ...util.normalizeParams(params),
684
+ });
685
+ }
686
+ // @__NO_SIDE_EFFECTS__
687
+ export function _uint32<T extends schemas.$ZodNumberFormat>(
688
+ Class: util.SchemaClass<T>,
689
+ params?: string | $ZodCheckNumberFormatParams
690
+ ): T {
691
+ return new Class({
692
+ type: "number",
693
+ check: "number_format",
694
+ abort: false,
695
+ format: "uint32",
696
+ ...util.normalizeParams(params),
697
+ });
698
+ }
699
+
700
+ // Boolean
701
+ export type $ZodBooleanParams = TypeParams<schemas.$ZodBoolean<boolean>, "coerce">;
702
+ // @__NO_SIDE_EFFECTS__
703
+ export function _boolean<T extends schemas.$ZodBoolean>(
704
+ Class: util.SchemaClass<T>,
705
+ params?: string | $ZodBooleanParams
706
+ ): T {
707
+ return new Class({
708
+ type: "boolean",
709
+ ...util.normalizeParams(params),
710
+ });
711
+ }
712
+ // @__NO_SIDE_EFFECTS__
713
+ export function _coercedBoolean<T extends schemas.$ZodBoolean>(
714
+ Class: util.SchemaClass<T>,
715
+ params?: string | $ZodBooleanParams
716
+ ): T {
717
+ return new Class({
718
+ type: "boolean",
719
+ coerce: true,
720
+ ...util.normalizeParams(params),
721
+ });
722
+ }
723
+
724
+ // BigInt
725
+ export type $ZodBigIntParams = TypeParams<schemas.$ZodBigInt<bigint>>;
726
+ export type $ZodBigIntFormatParams = CheckTypeParams<schemas.$ZodBigIntFormat, "format" | "coerce">;
727
+ export type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, "format" | "when">;
728
+ // @__NO_SIDE_EFFECTS__
729
+ export function _bigint<T extends schemas.$ZodBigInt>(
730
+ Class: util.SchemaClass<T>,
731
+ params?: string | $ZodBigIntParams
732
+ ): T {
733
+ return new Class({
734
+ type: "bigint",
735
+ ...util.normalizeParams(params),
736
+ });
737
+ }
738
+ // @__NO_SIDE_EFFECTS__
739
+ export function _coercedBigint<T extends schemas.$ZodBigInt>(
740
+ Class: util.SchemaClass<T>,
741
+ params?: string | $ZodBigIntParams
742
+ ): T {
743
+ return new Class({
744
+ type: "bigint",
745
+ coerce: true,
746
+ ...util.normalizeParams(params),
747
+ });
748
+ }
749
+
750
+ // @__NO_SIDE_EFFECTS__
751
+ export function _int64<T extends schemas.$ZodBigIntFormat>(
752
+ Class: util.SchemaClass<T>,
753
+ params?: string | $ZodBigIntFormatParams
754
+ ): T {
755
+ return new Class({
756
+ type: "bigint",
757
+ check: "bigint_format",
758
+ abort: false,
759
+ format: "int64",
760
+ ...util.normalizeParams(params),
761
+ });
762
+ }
763
+ // @__NO_SIDE_EFFECTS__
764
+ export function _uint64<T extends schemas.$ZodBigIntFormat>(
765
+ Class: util.SchemaClass<T>,
766
+ params?: string | $ZodBigIntFormatParams
767
+ ): T {
768
+ return new Class({
769
+ type: "bigint",
770
+ check: "bigint_format",
771
+ abort: false,
772
+ format: "uint64",
773
+ ...util.normalizeParams(params),
774
+ });
775
+ }
776
+
777
+ // Symbol
778
+ export type $ZodSymbolParams = TypeParams<schemas.$ZodSymbol>;
779
+ // @__NO_SIDE_EFFECTS__
780
+ export function _symbol<T extends schemas.$ZodSymbol>(
781
+ Class: util.SchemaClass<T>,
782
+ params?: string | $ZodSymbolParams
783
+ ): T {
784
+ return new Class({
785
+ type: "symbol",
786
+ ...util.normalizeParams(params),
787
+ });
788
+ }
789
+
790
+ // Undefined
791
+ export type $ZodUndefinedParams = TypeParams<schemas.$ZodUndefined>;
792
+ // @__NO_SIDE_EFFECTS__
793
+ export function _undefined<T extends schemas.$ZodUndefined>(
794
+ Class: util.SchemaClass<T>,
795
+ params?: string | $ZodUndefinedParams
796
+ ): T {
797
+ return new Class({
798
+ type: "undefined",
799
+ ...util.normalizeParams(params),
800
+ });
801
+ }
802
+
803
+ // Null
804
+ export type $ZodNullParams = TypeParams<schemas.$ZodNull>;
805
+ // @__NO_SIDE_EFFECTS__
806
+ export function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, params?: string | $ZodNullParams): T {
807
+ return new Class({
808
+ type: "null",
809
+ ...util.normalizeParams(params),
810
+ });
811
+ }
812
+
813
+ // Any
814
+ export type $ZodAnyParams = TypeParams<schemas.$ZodAny>;
815
+ // @__NO_SIDE_EFFECTS__
816
+ export function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T {
817
+ return new Class({
818
+ type: "any",
819
+ });
820
+ }
821
+
822
+ // Unknown
823
+ export type $ZodUnknownParams = TypeParams<schemas.$ZodUnknown>;
824
+ // @__NO_SIDE_EFFECTS__
825
+ export function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<T>): T {
826
+ return new Class({
827
+ type: "unknown",
828
+ });
829
+ }
830
+
831
+ // Never
832
+ export type $ZodNeverParams = TypeParams<schemas.$ZodNever>;
833
+ // @__NO_SIDE_EFFECTS__
834
+ export function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>, params?: string | $ZodNeverParams): T {
835
+ return new Class({
836
+ type: "never",
837
+ ...util.normalizeParams(params),
838
+ });
839
+ }
840
+
841
+ // Void
842
+ export type $ZodVoidParams = TypeParams<schemas.$ZodVoid>;
843
+ // @__NO_SIDE_EFFECTS__
844
+ export function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, params?: string | $ZodVoidParams): T {
845
+ return new Class({
846
+ type: "void",
847
+ ...util.normalizeParams(params),
848
+ });
849
+ }
850
+
851
+ // Date
852
+ export type $ZodDateParams = TypeParams<schemas.$ZodDate, "coerce">;
853
+ // @__NO_SIDE_EFFECTS__
854
+ export function _date<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T {
855
+ return new Class({
856
+ type: "date",
857
+ ...util.normalizeParams(params),
858
+ });
859
+ }
860
+ // @__NO_SIDE_EFFECTS__
861
+ export function _coercedDate<T extends schemas.$ZodDate>(
862
+ Class: util.SchemaClass<T>,
863
+ params?: string | $ZodDateParams
864
+ ): T {
865
+ return new Class({
866
+ type: "date",
867
+ coerce: true,
868
+ ...util.normalizeParams(params),
869
+ });
870
+ }
871
+
872
+ // NaN
873
+ export type $ZodNaNParams = TypeParams<schemas.$ZodNaN>;
874
+ // @__NO_SIDE_EFFECTS__
875
+ export function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, params?: string | $ZodNaNParams): T {
876
+ return new Class({
877
+ type: "nan",
878
+ ...util.normalizeParams(params),
879
+ });
880
+ }
881
+
882
+ // export type $ZodCheckParams = CheckParams<checks.$ZodCheck, "abort" | "when">;
883
+
884
+ export type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, "inclusive" | "value" | "when">;
885
+ // @__NO_SIDE_EFFECTS__
886
+ export function _lt(
887
+ value: util.Numeric,
888
+ params?: string | $ZodCheckLessThanParams
889
+ ): checks.$ZodCheckLessThan<util.Numeric> {
890
+ return new checks.$ZodCheckLessThan({
891
+ check: "less_than",
892
+ ...util.normalizeParams(params),
893
+ value,
894
+ inclusive: false,
895
+ });
896
+ }
897
+
898
+ // @__NO_SIDE_EFFECTS__
899
+ export function _lte(
900
+ value: util.Numeric,
901
+ params?: string | $ZodCheckLessThanParams
902
+ ): checks.$ZodCheckLessThan<util.Numeric> {
903
+ return new checks.$ZodCheckLessThan({
904
+ check: "less_than",
905
+
906
+ ...util.normalizeParams(params),
907
+ value,
908
+ inclusive: true,
909
+ });
910
+ }
911
+ export {
912
+ /** @deprecated Use `z.lte()` instead. */
913
+ _lte as _max,
914
+ };
915
+
916
+ // ZodCheckGreaterThan
917
+ export type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
918
+ // @__NO_SIDE_EFFECTS__
919
+ export function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
920
+ return new checks.$ZodCheckGreaterThan({
921
+ check: "greater_than",
922
+
923
+ ...util.normalizeParams(params),
924
+ value,
925
+ inclusive: false,
926
+ });
927
+ }
928
+
929
+ // @__NO_SIDE_EFFECTS__
930
+ export function _gte(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
931
+ return new checks.$ZodCheckGreaterThan({
932
+ check: "greater_than",
933
+ ...util.normalizeParams(params),
934
+ value,
935
+ inclusive: true,
936
+ });
937
+ }
938
+
939
+ export {
940
+ /** @deprecated Use `z.gte()` instead. */
941
+ _gte as _min,
942
+ };
943
+
944
+ // @__NO_SIDE_EFFECTS__
945
+ export function _positive(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
946
+ return _gt(0, params);
947
+ }
948
+
949
+ // negative
950
+ // @__NO_SIDE_EFFECTS__
951
+ export function _negative(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
952
+ return _lt(0, params);
953
+ }
954
+
955
+ // nonpositive
956
+ // @__NO_SIDE_EFFECTS__
957
+ export function _nonpositive(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
958
+ return _lte(0, params);
959
+ }
960
+
961
+ // nonnegative
962
+ // @__NO_SIDE_EFFECTS__
963
+ export function _nonnegative(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
964
+ return _gte(0, params);
965
+ }
966
+
967
+ export type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, "value" | "when">;
968
+ // @__NO_SIDE_EFFECTS__
969
+ export function _multipleOf(
970
+ value: number | bigint,
971
+ params?: string | $ZodCheckMultipleOfParams
972
+ ): checks.$ZodCheckMultipleOf {
973
+ return new checks.$ZodCheckMultipleOf({
974
+ check: "multiple_of",
975
+ ...util.normalizeParams(params),
976
+ value,
977
+ });
978
+ }
979
+
980
+ export type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, "maximum" | "when">;
981
+ // @__NO_SIDE_EFFECTS__
982
+ export function _maxSize(
983
+ maximum: number,
984
+ params?: string | $ZodCheckMaxSizeParams
985
+ ): checks.$ZodCheckMaxSize<util.HasSize> {
986
+ return new checks.$ZodCheckMaxSize({
987
+ check: "max_size",
988
+ ...util.normalizeParams(params),
989
+ maximum,
990
+ });
991
+ }
992
+
993
+ export type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, "minimum" | "when">;
994
+ // @__NO_SIDE_EFFECTS__
995
+ export function _minSize(
996
+ minimum: number,
997
+ params?: string | $ZodCheckMinSizeParams
998
+ ): checks.$ZodCheckMinSize<util.HasSize> {
999
+ return new checks.$ZodCheckMinSize({
1000
+ check: "min_size",
1001
+ ...util.normalizeParams(params),
1002
+ minimum,
1003
+ });
1004
+ }
1005
+
1006
+ export type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, "size" | "when">;
1007
+ // @__NO_SIDE_EFFECTS__
1008
+ export function _size(
1009
+ size: number,
1010
+ params?: string | $ZodCheckSizeEqualsParams
1011
+ ): checks.$ZodCheckSizeEquals<util.HasSize> {
1012
+ return new checks.$ZodCheckSizeEquals({
1013
+ check: "size_equals",
1014
+ ...util.normalizeParams(params),
1015
+ size,
1016
+ });
1017
+ }
1018
+
1019
+ export type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, "maximum" | "when">;
1020
+ // @__NO_SIDE_EFFECTS__
1021
+ export function _maxLength(
1022
+ maximum: number,
1023
+ params?: string | $ZodCheckMaxLengthParams
1024
+ ): checks.$ZodCheckMaxLength<util.HasLength> {
1025
+ const ch = new checks.$ZodCheckMaxLength({
1026
+ check: "max_length",
1027
+ ...util.normalizeParams(params),
1028
+ maximum,
1029
+ });
1030
+ return ch;
1031
+ }
1032
+
1033
+ export type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, "minimum" | "when">;
1034
+ // @__NO_SIDE_EFFECTS__
1035
+ export function _minLength(
1036
+ minimum: number,
1037
+ params?: string | $ZodCheckMinLengthParams
1038
+ ): checks.$ZodCheckMinLength<util.HasLength> {
1039
+ return new checks.$ZodCheckMinLength({
1040
+ check: "min_length",
1041
+ ...util.normalizeParams(params),
1042
+ minimum,
1043
+ });
1044
+ }
1045
+
1046
+ export type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, "length" | "when">;
1047
+ // @__NO_SIDE_EFFECTS__
1048
+ export function _length(
1049
+ length: number,
1050
+ params?: string | $ZodCheckLengthEqualsParams
1051
+ ): checks.$ZodCheckLengthEquals<util.HasLength> {
1052
+ return new checks.$ZodCheckLengthEquals({
1053
+ check: "length_equals",
1054
+ ...util.normalizeParams(params),
1055
+ length,
1056
+ });
1057
+ }
1058
+
1059
+ export type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, "format" | "pattern" | "when">;
1060
+ // @__NO_SIDE_EFFECTS__
1061
+ export function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): checks.$ZodCheckRegex {
1062
+ return new checks.$ZodCheckRegex({
1063
+ check: "string_format",
1064
+ format: "regex",
1065
+ ...util.normalizeParams(params),
1066
+ pattern,
1067
+ });
1068
+ }
1069
+
1070
+ export type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, "format" | "when">;
1071
+ // @__NO_SIDE_EFFECTS__
1072
+ export function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$ZodCheckLowerCase {
1073
+ return new checks.$ZodCheckLowerCase({
1074
+ check: "string_format",
1075
+ format: "lowercase",
1076
+ ...util.normalizeParams(params),
1077
+ });
1078
+ }
1079
+
1080
+ export type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, "format" | "when">;
1081
+
1082
+ // @__NO_SIDE_EFFECTS__
1083
+ export function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$ZodCheckUpperCase {
1084
+ return new checks.$ZodCheckUpperCase({
1085
+ check: "string_format",
1086
+ format: "uppercase",
1087
+ ...util.normalizeParams(params),
1088
+ });
1089
+ }
1090
+
1091
+ export type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
1092
+ // @__NO_SIDE_EFFECTS__
1093
+ export function _includes(includes: string, params?: string | $ZodCheckIncludesParams): checks.$ZodCheckIncludes {
1094
+ return new checks.$ZodCheckIncludes({
1095
+ check: "string_format",
1096
+ format: "includes",
1097
+ ...util.normalizeParams(params),
1098
+ includes,
1099
+ });
1100
+ }
1101
+ export type $ZodCheckStartsWithParams = CheckParams<
1102
+ checks.$ZodCheckStartsWith,
1103
+ "prefix" | "format" | "when" | "pattern"
1104
+ >;
1105
+ // @__NO_SIDE_EFFECTS__
1106
+ export function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): checks.$ZodCheckStartsWith {
1107
+ return new checks.$ZodCheckStartsWith({
1108
+ check: "string_format",
1109
+ format: "starts_with",
1110
+ ...util.normalizeParams(params),
1111
+ prefix,
1112
+ });
1113
+ }
1114
+
1115
+ export type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
1116
+
1117
+ // @__NO_SIDE_EFFECTS__
1118
+ export function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): checks.$ZodCheckEndsWith {
1119
+ return new checks.$ZodCheckEndsWith({
1120
+ check: "string_format",
1121
+ format: "ends_with",
1122
+ ...util.normalizeParams(params),
1123
+ suffix,
1124
+ });
1125
+ }
1126
+
1127
+ export type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, "property" | "schema" | "when">;
1128
+ // @__NO_SIDE_EFFECTS__
1129
+ export function _property<K extends string, T extends schemas.$ZodType>(
1130
+ property: K,
1131
+ schema: T,
1132
+ params?: string | $ZodCheckPropertyParams
1133
+ ): checks.$ZodCheckProperty<{ [k in K]: util.Widen<core.input<T>> }> {
1134
+ return new checks.$ZodCheckProperty({
1135
+ check: "property",
1136
+ property,
1137
+ schema,
1138
+ ...util.normalizeParams(params),
1139
+ });
1140
+ }
1141
+
1142
+ export type $ZodCheckPropertiesParams = CheckParams<checks.$ZodCheckProperties, "shape" | "when">;
1143
+ // @__NO_SIDE_EFFECTS__
1144
+ export function _properties<Shape extends schemas.$ZodShape>(
1145
+ shape: Shape,
1146
+ params?: string | $ZodCheckPropertiesParams
1147
+ ): checks.$ZodCheckProperties<Shape> {
1148
+ return new checks.$ZodCheckProperties({
1149
+ check: "properties",
1150
+ shape,
1151
+ ...util.normalizeParams(params),
1152
+ }) as any;
1153
+ }
1154
+
1155
+ export type $ZodCheckMimeTypeParams = CheckParams<checks.$ZodCheckMimeType, "mime" | "when">;
1156
+ // @__NO_SIDE_EFFECTS__
1157
+ export function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTypeParams): checks.$ZodCheckMimeType {
1158
+ return new checks.$ZodCheckMimeType({
1159
+ check: "mime_type",
1160
+ mime: types,
1161
+ ...util.normalizeParams(params),
1162
+ });
1163
+ }
1164
+
1165
+ // @__NO_SIDE_EFFECTS__
1166
+ export function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T> {
1167
+ return new checks.$ZodCheckOverwrite({
1168
+ check: "overwrite",
1169
+ tx,
1170
+ }) as checks.$ZodCheckOverwrite<T>;
1171
+ }
1172
+ // normalize
1173
+ // @__NO_SIDE_EFFECTS__
1174
+ export function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): checks.$ZodCheckOverwrite<string> {
1175
+ return _overwrite((input) => input.normalize(form));
1176
+ }
1177
+
1178
+ // trim
1179
+ // @__NO_SIDE_EFFECTS__
1180
+ export function _trim(): checks.$ZodCheckOverwrite<string> {
1181
+ return _overwrite((input) => input.trim());
1182
+ }
1183
+ // toLowerCase
1184
+ // @__NO_SIDE_EFFECTS__
1185
+ export function _toLowerCase(): checks.$ZodCheckOverwrite<string> {
1186
+ return _overwrite((input) => input.toLowerCase());
1187
+ }
1188
+ // toUpperCase
1189
+ // @__NO_SIDE_EFFECTS__
1190
+ export function _toUpperCase(): checks.$ZodCheckOverwrite<string> {
1191
+ return _overwrite((input) => input.toUpperCase());
1192
+ }
1193
+ // slugify
1194
+ // @__NO_SIDE_EFFECTS__
1195
+ export function _slugify(): checks.$ZodCheckOverwrite<string> {
1196
+ return _overwrite((input) => util.slugify(input));
1197
+ }
1198
+
1199
+ /////// collections ///////
1200
+
1201
+ // Array
1202
+ export type $ZodArrayParams = TypeParams<schemas.$ZodArray, "element">;
1203
+ // @__NO_SIDE_EFFECTS__
1204
+ export function _array<T extends schemas.$ZodType>(
1205
+ Class: util.SchemaClass<schemas.$ZodArray>,
1206
+ element: T,
1207
+ params?: string | $ZodArrayParams
1208
+ ): schemas.$ZodArray<T> {
1209
+ return new Class({
1210
+ type: "array",
1211
+ element,
1212
+ // get element() {
1213
+ // return element;
1214
+ // },
1215
+ ...util.normalizeParams(params),
1216
+ }) as any;
1217
+ }
1218
+
1219
+ export type $ZodObjectParams = TypeParams<schemas.$ZodObject, "shape" | "catchall">;
1220
+
1221
+ // ZodUnion
1222
+ export type $ZodUnionParams = TypeParams<schemas.$ZodUnion, "options">;
1223
+ // @__NO_SIDE_EFFECTS__
1224
+ export function _union<const T extends readonly schemas.$ZodObject[]>(
1225
+ Class: util.SchemaClass<schemas.$ZodUnion>,
1226
+ options: T,
1227
+ params?: string | $ZodUnionParams
1228
+ ): schemas.$ZodUnion<T> {
1229
+ return new Class({
1230
+ type: "union",
1231
+ options,
1232
+ ...util.normalizeParams(params),
1233
+ }) as any;
1234
+ }
1235
+
1236
+ // ZodXor
1237
+ export type $ZodXorParams = TypeParams<schemas.$ZodXor, "options">;
1238
+ export function _xor<const T extends readonly schemas.$ZodObject[]>(
1239
+ Class: util.SchemaClass<schemas.$ZodXor>,
1240
+ options: T,
1241
+ params?: string | $ZodXorParams
1242
+ ): schemas.$ZodXor<T> {
1243
+ return new Class({
1244
+ type: "union",
1245
+ options,
1246
+ inclusive: false,
1247
+ ...util.normalizeParams(params),
1248
+ }) as any;
1249
+ }
1250
+
1251
+ // ZodDiscriminatedUnion
1252
+
1253
+ // The bound stops at `propValues`; it deliberately does not check that the option carries the discriminator. Any such check has to name the option's `input`, and constraining `input` in argument position forces TypeScript to resolve it while checking the call — circular for an option whose input references the union, which collapses the whole union to `any`. `$ZodDiscriminatedUnion` validates the discriminator lazily instead, when it builds its lookup map.
1254
+ //
1255
+ // Validating eagerly through `propValues` is not available: reading it runs the option's shape getters, and for a recursive option that getter references the union whose initializer is still running, so it throws `ReferenceError: Cannot access '...' before initialization`.
1256
+ //
1257
+ // `Object.keys` on the shape is recursion-safe by contrast — it lists the keys without invoking them — so an eager check is reachable. It was tried and reverted: a key list derived from the shape cannot be kept in agreement with `shape` itself, which resolves lazily over the object the caller passed and then freezes to a copy, and it charged every object schema construction time and memory for a check only this one type reads.
1258
+ //
1259
+ // `_Disc` is unused and retained only so `$ZodTypeDiscriminable<"kind">` keeps compiling for external callers.
1260
+ export interface $ZodTypeDiscriminableInternals<_Disc extends string = string> extends schemas._$ZodTypeInternals {
1261
+ propValues: util.PropValues;
1262
+ }
1263
+
1264
+ export interface $ZodTypeDiscriminable<_Disc extends string = string> extends schemas.SomeType {
1265
+ _zod: $ZodTypeDiscriminableInternals;
1266
+ }
1267
+
1268
+ export type $ZodDiscriminatedUnionParams = TypeParams<schemas.$ZodDiscriminatedUnion, "options" | "discriminator">;
1269
+ // @__NO_SIDE_EFFECTS__
1270
+ export function _discriminatedUnion<
1271
+ Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]],
1272
+ Disc extends string,
1273
+ >(
1274
+ Class: util.SchemaClass<schemas.$ZodDiscriminatedUnion>,
1275
+ discriminator: Disc,
1276
+ options: Types,
1277
+ params?: string | $ZodDiscriminatedUnionParams
1278
+ ): schemas.$ZodDiscriminatedUnion<Types, Disc> {
1279
+ return new Class({
1280
+ type: "union",
1281
+ options: options as any as schemas.$ZodType[],
1282
+ discriminator,
1283
+ ...util.normalizeParams(params),
1284
+ }) as any;
1285
+ }
1286
+
1287
+ // ZodIntersection
1288
+ export type $ZodIntersectionParams = TypeParams<schemas.$ZodIntersection, "left" | "right">;
1289
+ // @__NO_SIDE_EFFECTS__
1290
+ export function _intersection<T extends schemas.$ZodObject, U extends schemas.$ZodObject>(
1291
+ Class: util.SchemaClass<schemas.$ZodIntersection>,
1292
+ left: T,
1293
+ right: U
1294
+ ): schemas.$ZodIntersection<T, U> {
1295
+ return new Class({
1296
+ type: "intersection",
1297
+ left,
1298
+ right,
1299
+ }) as any;
1300
+ }
1301
+
1302
+ // ZodTuple
1303
+ export type $ZodTupleParams = TypeParams<schemas.$ZodTuple, "items" | "rest">;
1304
+ // @__NO_SIDE_EFFECTS__
1305
+ export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]]>(
1306
+ Class: util.SchemaClass<schemas.$ZodTuple>,
1307
+ items: T,
1308
+ params?: string | $ZodTupleParams
1309
+ ): schemas.$ZodTuple<T, null>;
1310
+ // @__NO_SIDE_EFFECTS__
1311
+ export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]], Rest extends schemas.$ZodType>(
1312
+ Class: util.SchemaClass<schemas.$ZodTuple>,
1313
+ items: T,
1314
+ rest: Rest,
1315
+ params?: string | $ZodTupleParams
1316
+ ): schemas.$ZodTuple<T, Rest>;
1317
+ // export function _tuple(
1318
+ // Class: util.SchemaClass<schemas.$ZodTuple>,
1319
+ // items: [],
1320
+ // params?: string | $ZodTupleParams
1321
+ // ): schemas.$ZodTuple<[], null>;
1322
+ // @__NO_SIDE_EFFECTS__
1323
+ export function _tuple(
1324
+ Class: util.SchemaClass<schemas.$ZodTuple>,
1325
+ items: schemas.$ZodType[],
1326
+ _paramsOrRest?: string | $ZodTupleParams | schemas.$ZodType,
1327
+ _params?: string | $ZodTupleParams
1328
+ ) {
1329
+ const hasRest = _paramsOrRest instanceof schemas.$ZodType;
1330
+ const params = hasRest ? _params : _paramsOrRest;
1331
+ const rest = hasRest ? _paramsOrRest : null;
1332
+ return new Class({
1333
+ type: "tuple",
1334
+ items,
1335
+ rest,
1336
+ ...util.normalizeParams(params),
1337
+ });
1338
+ }
1339
+
1340
+ // ZodRecord
1341
+ export type $ZodRecordParams = TypeParams<schemas.$ZodRecord, "keyType" | "valueType" | "partial">;
1342
+ // @__NO_SIDE_EFFECTS__
1343
+ export function _record<Key extends schemas.$ZodRecordKey, Value extends schemas.$ZodObject>(
1344
+ Class: util.SchemaClass<schemas.$ZodRecord>,
1345
+ keyType: Key,
1346
+ valueType: Value,
1347
+ params?: string | $ZodRecordParams
1348
+ ): schemas.$ZodRecord<Key, Value> {
1349
+ return new Class({
1350
+ type: "record",
1351
+ keyType,
1352
+ valueType,
1353
+ ...util.normalizeParams(params),
1354
+ }) as any;
1355
+ }
1356
+
1357
+ // ZodMap
1358
+ export type $ZodMapParams = TypeParams<schemas.$ZodMap, "keyType" | "valueType">;
1359
+ // @__NO_SIDE_EFFECTS__
1360
+ export function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodObject>(
1361
+ Class: util.SchemaClass<schemas.$ZodMap>,
1362
+ keyType: Key,
1363
+ valueType: Value,
1364
+ params?: string | $ZodMapParams
1365
+ ): schemas.$ZodMap<Key, Value> {
1366
+ return new Class({
1367
+ type: "map",
1368
+ keyType,
1369
+ valueType,
1370
+ ...util.normalizeParams(params),
1371
+ }) as any;
1372
+ }
1373
+
1374
+ // ZodSet
1375
+ export type $ZodSetParams = TypeParams<schemas.$ZodSet, "valueType">;
1376
+ // @__NO_SIDE_EFFECTS__
1377
+ export function _set<Value extends schemas.$ZodObject>(
1378
+ Class: util.SchemaClass<schemas.$ZodSet>,
1379
+ valueType: Value,
1380
+ params?: string | $ZodSetParams
1381
+ ): schemas.$ZodSet<Value> {
1382
+ return new Class({
1383
+ type: "set",
1384
+ valueType,
1385
+ ...util.normalizeParams(params),
1386
+ }) as any;
1387
+ }
1388
+
1389
+ // ZodEnum
1390
+ export type $ZodEnumParams = TypeParams<schemas.$ZodEnum, "entries">;
1391
+ // @__NO_SIDE_EFFECTS__
1392
+ export function _enum<const T extends string[]>(
1393
+ Class: util.SchemaClass<schemas.$ZodEnum>,
1394
+ values: T,
1395
+ params?: string | $ZodEnumParams
1396
+ ): schemas.$ZodEnum<util.ToEnum<T[number]>>;
1397
+ // @__NO_SIDE_EFFECTS__
1398
+ export function _enum<T extends util.EnumLike>(
1399
+ Class: util.SchemaClass<schemas.$ZodEnum>,
1400
+ entries: T,
1401
+ params?: string | $ZodEnumParams
1402
+ ): schemas.$ZodEnum<T>;
1403
+ // @__NO_SIDE_EFFECTS__
1404
+ export function _enum(Class: util.SchemaClass<schemas.$ZodEnum>, values: any, params?: string | $ZodEnumParams) {
1405
+ const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1406
+ // if (Array.isArray(values)) {
1407
+ // for (const value of values) {
1408
+ // entries[value] = value;
1409
+ // }
1410
+ // } else {
1411
+ // Object.assign(entries, values);
1412
+ // }
1413
+ // const entries: util.EnumLike = {};
1414
+ // for (const val of values) {
1415
+ // entries[val] = val;
1416
+ // }
1417
+
1418
+ return new Class({
1419
+ type: "enum",
1420
+ entries,
1421
+ ...util.normalizeParams(params),
1422
+ }) as any;
1423
+ }
1424
+
1425
+ // @__NO_SIDE_EFFECTS__
1426
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1427
+ *
1428
+ * ```ts
1429
+ * enum Colors { red, green, blue }
1430
+ * z.enum(Colors);
1431
+ * ```
1432
+ */
1433
+ export function _nativeEnum<T extends util.EnumLike>(
1434
+ Class: util.SchemaClass<schemas.$ZodEnum>,
1435
+ entries: T,
1436
+ params?: string | $ZodEnumParams
1437
+ ): schemas.$ZodEnum<T> {
1438
+ return new Class({
1439
+ type: "enum",
1440
+ entries,
1441
+ ...util.normalizeParams(params),
1442
+ }) as any;
1443
+ }
1444
+
1445
+ // ZodLiteral
1446
+ export type $ZodLiteralParams = TypeParams<schemas.$ZodLiteral, "values">;
1447
+ export function _literal<const T extends Array<util.Literal>>(
1448
+ Class: util.SchemaClass<schemas.$ZodLiteral>,
1449
+ value: T,
1450
+ params?: string | $ZodLiteralParams
1451
+ ): schemas.$ZodLiteral<T[number]>;
1452
+ export function _literal<const T extends util.Literal>(
1453
+ Class: util.SchemaClass<schemas.$ZodLiteral>,
1454
+ value: T,
1455
+ params?: string | $ZodLiteralParams
1456
+ ): schemas.$ZodLiteral<T>;
1457
+ // @__NO_SIDE_EFFECTS__
1458
+ export function _literal(Class: util.SchemaClass<schemas.$ZodLiteral>, value: any, params: any) {
1459
+ return new Class({
1460
+ type: "literal",
1461
+ values: Array.isArray(value) ? value : [value],
1462
+ ...util.normalizeParams(params),
1463
+ });
1464
+ }
1465
+
1466
+ // ZodFile
1467
+ export type $ZodFileParams = TypeParams<schemas.$ZodFile>;
1468
+ // @__NO_SIDE_EFFECTS__
1469
+ export function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string | $ZodFileParams): schemas.$ZodFile {
1470
+ return new Class({
1471
+ type: "file",
1472
+ ...util.normalizeParams(params),
1473
+ });
1474
+ }
1475
+
1476
+ // ZodTransform
1477
+ export type $ZodTransformParams = TypeParams<schemas.$ZodTransform, "transform">;
1478
+ // @__NO_SIDE_EFFECTS__
1479
+ export function _transform<I = unknown, O = I>(
1480
+ Class: util.SchemaClass<schemas.$ZodTransform>,
1481
+ fn: (input: I, ctx?: schemas.ParsePayload) => O
1482
+ ): schemas.$ZodTransform<Awaited<O>, I> {
1483
+ return new Class({
1484
+ type: "transform",
1485
+ transform: fn as any,
1486
+ }) as any;
1487
+ }
1488
+
1489
+ // ZodOptional
1490
+ export type $ZodOptionalParams = TypeParams<schemas.$ZodOptional, "innerType">;
1491
+ // @__NO_SIDE_EFFECTS__
1492
+ export function _optional<T extends schemas.$ZodObject>(
1493
+ Class: util.SchemaClass<schemas.$ZodOptional>,
1494
+ innerType: T
1495
+ ): schemas.$ZodOptional<T> {
1496
+ return new Class({
1497
+ type: "optional",
1498
+ innerType,
1499
+ }) as any;
1500
+ }
1501
+
1502
+ // ZodNullable
1503
+ export type $ZodNullableParams = TypeParams<schemas.$ZodNullable, "innerType">;
1504
+ // @__NO_SIDE_EFFECTS__
1505
+ export function _nullable<T extends schemas.$ZodObject>(
1506
+ Class: util.SchemaClass<schemas.$ZodNullable>,
1507
+ innerType: T
1508
+ ): schemas.$ZodNullable<T> {
1509
+ return new Class({
1510
+ type: "nullable",
1511
+ innerType,
1512
+ }) as any;
1513
+ }
1514
+
1515
+ // ZodDefault
1516
+ export type $ZodDefaultParams = TypeParams<schemas.$ZodDefault, "innerType" | "defaultValue">;
1517
+ // @__NO_SIDE_EFFECTS__
1518
+ export function _default<T extends schemas.$ZodObject>(
1519
+ Class: util.SchemaClass<schemas.$ZodDefault>,
1520
+ innerType: T,
1521
+ defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
1522
+ ): schemas.$ZodDefault<T> {
1523
+ return new Class({
1524
+ type: "default",
1525
+ innerType,
1526
+ get defaultValue() {
1527
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1528
+ },
1529
+ }) as any;
1530
+ }
1531
+
1532
+ // ZodNonOptional
1533
+ export type $ZodNonOptionalParams = TypeParams<schemas.$ZodNonOptional, "innerType">;
1534
+ // @__NO_SIDE_EFFECTS__
1535
+ export function _nonoptional<T extends schemas.$ZodObject>(
1536
+ Class: util.SchemaClass<schemas.$ZodNonOptional>,
1537
+ innerType: T,
1538
+ params?: string | $ZodNonOptionalParams
1539
+ ): schemas.$ZodNonOptional<T> {
1540
+ return new Class({
1541
+ type: "nonoptional",
1542
+ innerType,
1543
+ ...util.normalizeParams(params),
1544
+ }) as any;
1545
+ }
1546
+
1547
+ // ZodSuccess
1548
+ export type $ZodSuccessParams = TypeParams<schemas.$ZodSuccess, "innerType">;
1549
+ // @__NO_SIDE_EFFECTS__
1550
+ export function _success<T extends schemas.$ZodObject>(
1551
+ Class: util.SchemaClass<schemas.$ZodSuccess>,
1552
+ innerType: T
1553
+ ): schemas.$ZodSuccess<T> {
1554
+ return new Class({
1555
+ type: "success",
1556
+ innerType,
1557
+ }) as any;
1558
+ }
1559
+
1560
+ // ZodCatch
1561
+ export type $ZodCatchParams = TypeParams<schemas.$ZodCatch, "innerType" | "catchValue">;
1562
+ // @__NO_SIDE_EFFECTS__
1563
+ export function _catch<T extends schemas.$ZodObject>(
1564
+ Class: util.SchemaClass<schemas.$ZodCatch>,
1565
+ innerType: T,
1566
+ catchValue: core.output<T> | ((ctx: schemas.$ZodCatchCtx) => core.output<T>)
1567
+ ): schemas.$ZodCatch<T> {
1568
+ return new Class({
1569
+ type: "catch",
1570
+ innerType,
1571
+ catchValue: (typeof catchValue === "function" ? catchValue : util.constantCatch(catchValue)) as any,
1572
+ }) as any;
1573
+ }
1574
+
1575
+ // ZodPipe
1576
+ export type $ZodPipeParams = TypeParams<schemas.$ZodPipe, "in" | "out">;
1577
+ // @__NO_SIDE_EFFECTS__
1578
+ export function _pipe<
1579
+ const A extends schemas.$ZodType,
1580
+ B extends schemas.$ZodType<unknown, core.output<A>> = schemas.$ZodType<unknown, core.output<A>>,
1581
+ >(
1582
+ Class: util.SchemaClass<schemas.$ZodPipe>,
1583
+ in_: A,
1584
+ out: B | schemas.$ZodType<unknown, core.output<A>>
1585
+ ): schemas.$ZodPipe<A, B> {
1586
+ return new Class({
1587
+ type: "pipe",
1588
+ in: in_,
1589
+ out,
1590
+ }) as any;
1591
+ }
1592
+
1593
+ // ZodReadonly
1594
+ export type $ZodReadonlyParams = TypeParams<schemas.$ZodReadonly, "innerType">;
1595
+ // @__NO_SIDE_EFFECTS__
1596
+ export function _readonly<T extends schemas.$ZodObject>(
1597
+ Class: util.SchemaClass<schemas.$ZodReadonly>,
1598
+ innerType: T
1599
+ ): schemas.$ZodReadonly<T> {
1600
+ return new Class({
1601
+ type: "readonly",
1602
+ innerType,
1603
+ }) as any;
1604
+ }
1605
+
1606
+ // ZodTemplateLiteral
1607
+ export type $ZodTemplateLiteralParams = TypeParams<schemas.$ZodTemplateLiteral, "parts">;
1608
+ // @__NO_SIDE_EFFECTS__
1609
+ export function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteralPart[]>(
1610
+ Class: util.SchemaClass<schemas.$ZodTemplateLiteral>,
1611
+ parts: Parts,
1612
+ params?: string | $ZodTemplateLiteralParams
1613
+ ): schemas.$ZodTemplateLiteral<schemas.$PartsToTemplateLiteral<Parts>> {
1614
+ return new Class({
1615
+ type: "template_literal",
1616
+ parts,
1617
+ ...util.normalizeParams(params),
1618
+ }) as any;
1619
+ }
1620
+
1621
+ // ZodLazy
1622
+ export type $ZodLazyParams = TypeParams<schemas.$ZodLazy, "getter">;
1623
+ // @__NO_SIDE_EFFECTS__
1624
+ export function _lazy<T extends schemas.$ZodType>(
1625
+ Class: util.SchemaClass<schemas.$ZodLazy>,
1626
+ getter: () => T
1627
+ ): schemas.$ZodLazy<T> {
1628
+ return new Class({
1629
+ type: "lazy",
1630
+ getter,
1631
+ }) as any;
1632
+ }
1633
+
1634
+ // ZodPromise
1635
+ export type $ZodPromiseParams = TypeParams<schemas.$ZodPromise, "innerType">;
1636
+ // @__NO_SIDE_EFFECTS__
1637
+ export function _promise<T extends schemas.$ZodObject>(
1638
+ Class: util.SchemaClass<schemas.$ZodPromise>,
1639
+ innerType: T
1640
+ ): schemas.$ZodPromise<T> {
1641
+ return new Class({
1642
+ type: "promise",
1643
+ innerType,
1644
+ }) as any;
1645
+ }
1646
+
1647
+ // ZodCustom
1648
+ export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">;
1649
+ // @__NO_SIDE_EFFECTS__
1650
+ export function _custom<O = unknown, I = O>(
1651
+ Class: util.SchemaClass<schemas.$ZodCustom>,
1652
+ fn: (data: O) => unknown,
1653
+ _params: string | $ZodCustomParams | undefined
1654
+ ): schemas.$ZodCustom<O, I> {
1655
+ const norm = util.normalizeParams(_params);
1656
+ norm.abort ??= true; // default to abort:false
1657
+ const schema = new Class({
1658
+ type: "custom",
1659
+ check: "custom",
1660
+ fn: fn as any,
1661
+ ...norm,
1662
+ });
1663
+
1664
+ return schema as any;
1665
+ }
1666
+
1667
+ // same as _custom but defaults to abort:false
1668
+ // @__NO_SIDE_EFFECTS__
1669
+ export function _refine<O = unknown, I = O>(
1670
+ Class: util.SchemaClass<schemas.$ZodCustom>,
1671
+ fn: (data: O) => unknown,
1672
+ _params: string | $ZodCustomParams | undefined
1673
+ ): schemas.$ZodCustom<O, I> {
1674
+ const schema = new Class({
1675
+ type: "custom",
1676
+ check: "custom",
1677
+ fn: fn as any,
1678
+ ...util.normalizeParams(_params),
1679
+ });
1680
+
1681
+ return schema as any;
1682
+ }
1683
+
1684
+ export type $ZodSuperRefineIssue<T extends errors.$ZodIssueBase = errors.$ZodIssue> = T extends any
1685
+ ? RawIssue<T>
1686
+ : never;
1687
+ type RawIssue<T extends errors.$ZodIssueBase> = T extends any
1688
+ ? util.Flatten<
1689
+ util.MakePartial<T, "message" | "path"> & {
1690
+ /** The schema or check that originated this issue. */
1691
+ readonly inst?: schemas.$ZodType | checks.$ZodCheck;
1692
+ /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1693
+ readonly continue?: boolean | undefined;
1694
+ } & Record<string, unknown>
1695
+ >
1696
+ : never;
1697
+
1698
+ export interface $RefinementCtx<T = unknown> extends schemas.ParsePayload<T> {
1699
+ addIssue(arg: string | $ZodSuperRefineIssue): void;
1700
+ }
1701
+
1702
+ export interface $ZodSuperRefineParams {
1703
+ /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1704
+ when?: ((payload: schemas.ParsePayload) => boolean) | undefined;
1705
+ }
1706
+
1707
+ // @__NO_SIDE_EFFECTS__
1708
+ export function _superRefine<T>(
1709
+ fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>,
1710
+ params?: $ZodSuperRefineParams
1711
+ ): checks.$ZodCheck<T> {
1712
+ const ch = _check<T>((payload) => {
1713
+ (payload as $RefinementCtx).addIssue = (issue) => {
1714
+ if (typeof issue === "string") {
1715
+ payload.issues.push(util.issue(issue, payload.value, ch._zod.def));
1716
+ } else {
1717
+ // for Zod 3 backwards compatibility
1718
+ const _issue: any = issue;
1719
+ if (_issue.fatal) _issue.continue = false;
1720
+ _issue.code ??= "custom";
1721
+ if (!("input" in _issue)) _issue.input = payload.value;
1722
+ _issue.inst ??= ch;
1723
+ _issue.continue ??= !ch._zod.def.abort; // abort is always undefined, so this is always true...
1724
+ payload.issues.push(util.issue(_issue));
1725
+ }
1726
+ };
1727
+
1728
+ return fn(payload.value, payload as $RefinementCtx<T>);
1729
+ }, params);
1730
+ return ch;
1731
+ }
1732
+
1733
+ // @__NO_SIDE_EFFECTS__
1734
+ export function _check<O = unknown>(fn: schemas.CheckFn<O>, params?: string | $ZodCustomParams): checks.$ZodCheck<O> {
1735
+ const ch = new checks.$ZodCheck({
1736
+ check: "custom",
1737
+ ...util.normalizeParams(params),
1738
+ });
1739
+
1740
+ ch._zod.check = fn;
1741
+ return ch;
1742
+ }
1743
+
1744
+ // @__NO_SIDE_EFFECTS__
1745
+ export function describe<T>(description: string): checks.$ZodCheck<T> {
1746
+ const ch = new checks.$ZodCheck({ check: "describe" });
1747
+ ch._zod.onattach = [
1748
+ (inst) => {
1749
+ const existing = registries.globalRegistry.get(inst) ?? {};
1750
+ registries.globalRegistry.add(inst, { ...existing, description });
1751
+ },
1752
+ ];
1753
+ ch._zod.check = () => {}; // no-op check
1754
+ return ch;
1755
+ }
1756
+
1757
+ // @__NO_SIDE_EFFECTS__
1758
+ export function meta<T>(metadata: registries.GlobalMeta): checks.$ZodCheck<T> {
1759
+ const ch = new checks.$ZodCheck({ check: "meta" });
1760
+ ch._zod.onattach = [
1761
+ (inst) => {
1762
+ const existing = registries.globalRegistry.get(inst) ?? {};
1763
+ registries.globalRegistry.add(inst, { ...existing, ...metadata });
1764
+ },
1765
+ ];
1766
+ ch._zod.check = () => {}; // no-op check
1767
+ return ch;
1768
+ }
1769
+
1770
+ // export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">
1771
+
1772
+ ///////// STRINGBOOL /////////
1773
+
1774
+ // stringbool
1775
+ export interface $ZodStringBoolParams extends TypeParams {
1776
+ truthy?: string[];
1777
+ falsy?: string[];
1778
+ /**
1779
+ * Options: `"sensitive"`, `"insensitive"`
1780
+ *
1781
+ * @default `"insensitive"`
1782
+ */
1783
+ case?: "sensitive" | "insensitive" | undefined;
1784
+ }
1785
+
1786
+ // @__NO_SIDE_EFFECTS__
1787
+ export function _stringbool(
1788
+ Classes: {
1789
+ Codec?: typeof schemas.$ZodCodec;
1790
+ Boolean?: typeof schemas.$ZodBoolean;
1791
+ String?: typeof schemas.$ZodString;
1792
+ },
1793
+ _params?: string | $ZodStringBoolParams
1794
+ ): schemas.$ZodCodec<schemas.$ZodString, schemas.$ZodBoolean> {
1795
+ const params = util.normalizeParams(_params);
1796
+
1797
+ let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
1798
+ let falsyArray = params.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
1799
+ if (params.case !== "sensitive") {
1800
+ truthyArray = truthyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
1801
+ falsyArray = falsyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
1802
+ }
1803
+
1804
+ const truthySet = new Set(truthyArray);
1805
+ const falsySet = new Set(falsyArray);
1806
+
1807
+ const _Codec = Classes.Codec ?? schemas.$ZodCodec;
1808
+ const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;
1809
+ const _String = Classes.String ?? schemas.$ZodString;
1810
+
1811
+ const stringSchema = new _String({ type: "string", error: params.error });
1812
+ const booleanSchema = new _Boolean({ type: "boolean", error: params.error });
1813
+
1814
+ const codec = new _Codec({
1815
+ type: "pipe",
1816
+ in: stringSchema as any,
1817
+ out: booleanSchema as any,
1818
+ transform: ((input: string, payload: schemas.ParsePayload<string>) => {
1819
+ let data: string = input;
1820
+ if (params.case !== "sensitive") data = data.toLowerCase();
1821
+ if (truthySet.has(data)) {
1822
+ return true;
1823
+ } else if (falsySet.has(data)) {
1824
+ return false;
1825
+ } else {
1826
+ payload.issues.push({
1827
+ code: "invalid_value",
1828
+ expected: "stringbool",
1829
+ values: [...truthySet, ...falsySet],
1830
+ input: payload.value,
1831
+ inst: codec,
1832
+ continue: false,
1833
+ });
1834
+ return {} as never;
1835
+ }
1836
+ }) as any,
1837
+ reverseTransform: ((input: boolean, _payload: schemas.ParsePayload<boolean>) => {
1838
+ if (input === true) {
1839
+ return truthyArray[0] || "true";
1840
+ } else {
1841
+ return falsyArray[0] || "false";
1842
+ }
1843
+ }) as any,
1844
+ error: params.error,
1845
+ }) as any;
1846
+
1847
+ codec._zod.bag.truthy = truthyArray;
1848
+ codec._zod.bag.falsy = falsyArray;
1849
+ codec._zod.bag.case = params.case ?? "insensitive";
1850
+
1851
+ return codec;
1852
+ }
1853
+
1854
+ // @__NO_SIDE_EFFECTS__
1855
+ export function _stringFormat<Format extends string>(
1856
+ Class: typeof schemas.$ZodCustomStringFormat,
1857
+ format: Format,
1858
+ fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
1859
+ _params: string | $ZodStringFormatParams = {}
1860
+ ): schemas.$ZodCustomStringFormat<Format> {
1861
+ const params = util.normalizeParams(_params);
1862
+ const def: schemas.$ZodCustomStringFormatDef = {
1863
+ check: "string_format",
1864
+ type: "string",
1865
+ format,
1866
+ fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
1867
+ ...params,
1868
+ };
1869
+ if (fnOrRegex instanceof RegExp) {
1870
+ def.pattern = fnOrRegex;
1871
+ }
1872
+
1873
+ const inst = new Class(def);
1874
+ return inst as any;
1875
+ }