fullstacked 0.12.0-1173 → 0.12.0-1184

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 (500) hide show
  1. package/fullstacked_modules/@fullstacked/ai-agent/README.md +1 -0
  2. package/fullstacked_modules/@fullstacked/ai-agent/chat.json +1 -0
  3. package/fullstacked_modules/@fullstacked/ai-agent/index.scss +15 -0
  4. package/fullstacked_modules/@fullstacked/ai-agent/index.ts +92 -0
  5. package/fullstacked_modules/@fullstacked/ai-agent/lock.json +726 -0
  6. package/fullstacked_modules/@fullstacked/ai-agent/package.json +15 -0
  7. package/fullstacked_modules/@fullstacked/ai-agent/src/conversation.ts +169 -0
  8. package/fullstacked_modules/@fullstacked/ai-agent/src/default.scss +23 -0
  9. package/fullstacked_modules/@fullstacked/ai-agent/src/index.ts +3 -0
  10. package/fullstacked_modules/@fullstacked/ai-agent/src/input.ts +36 -0
  11. package/fullstacked_modules/@fullstacked/ai-agent/src/markdown.ts +46 -0
  12. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/interface.ts +6 -0
  13. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/ollama.ts +42 -0
  14. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/openai.ts +33 -0
  15. package/fullstacked_modules/@fullstacked/ai-agent/story.txt +7 -0
  16. package/fullstacked_modules/ai/index.d.ts +2 -0
  17. package/fullstacked_modules/ai/index.js +88268 -0
  18. package/fullstacked_modules/ai/index.ts +14 -0
  19. package/fullstacked_modules/ai/package.json +5 -0
  20. package/fullstacked_modules/ai/tools/fs.ts +60 -0
  21. package/{lib → fullstacked_modules}/archive/archive.ts +140 -140
  22. package/fullstacked_modules/archive/index.d.ts +2 -0
  23. package/{lib → fullstacked_modules}/archive/index.ts +4 -4
  24. package/{lib → fullstacked_modules}/base64.ts +144 -144
  25. package/fullstacked_modules/bridge/index.ts +120 -0
  26. package/{lib → fullstacked_modules}/bridge/platform/android.ts +18 -18
  27. package/{lib → fullstacked_modules}/bridge/platform/apple.ts +46 -46
  28. package/{lib → fullstacked_modules}/bridge/platform/electron.ts +14 -14
  29. package/{lib → fullstacked_modules}/bridge/platform/linux-gtk.ts +48 -48
  30. package/{lib → fullstacked_modules}/bridge/platform/linux-qt.ts +68 -68
  31. package/{lib → fullstacked_modules}/bridge/platform/node.ts +32 -32
  32. package/{lib → fullstacked_modules}/bridge/platform/wasm.ts +17 -17
  33. package/{lib → fullstacked_modules}/bridge/platform/windows.ts +49 -49
  34. package/{lib → fullstacked_modules}/bridge/serialization.ts +153 -153
  35. package/{lib → fullstacked_modules}/components/snackbar.ts +60 -60
  36. package/fullstacked_modules/config/config.ts +33 -0
  37. package/fullstacked_modules/config/index.ts +3 -0
  38. package/fullstacked_modules/connect/index.d.ts +2 -0
  39. package/{lib → fullstacked_modules}/connect/index.ts +125 -125
  40. package/{lib → fullstacked_modules}/core_message/core_message.ts +57 -76
  41. package/{lib → fullstacked_modules}/core_message/index.ts +3 -3
  42. package/fullstacked_modules/core_open.ts +9 -0
  43. package/fullstacked_modules/esbuild/esbuild.ts +101 -0
  44. package/fullstacked_modules/esbuild/index.ts +3 -0
  45. package/fullstacked_modules/esbuild/sass.ts +103 -0
  46. package/fullstacked_modules/fetch/index.d.ts +2 -0
  47. package/{lib → fullstacked_modules}/fetch/index.ts +332 -318
  48. package/{lib → fullstacked_modules}/fs/fs.ts +157 -157
  49. package/fullstacked_modules/fs/index.d.ts +2 -0
  50. package/{lib → fullstacked_modules}/fs/index.ts +3 -3
  51. package/fullstacked_modules/git/git.ts +238 -0
  52. package/fullstacked_modules/git/index.ts +3 -0
  53. package/fullstacked_modules/packages/index.ts +3 -0
  54. package/fullstacked_modules/packages/packages.ts +143 -0
  55. package/fullstacked_modules/platform/index.d.ts +2 -0
  56. package/{lib → fullstacked_modules}/platform/index.ts +14 -14
  57. package/fullstacked_modules/zod/LICENSE +21 -0
  58. package/fullstacked_modules/zod/README.md +208 -0
  59. package/fullstacked_modules/zod/index.d.cts +4 -0
  60. package/fullstacked_modules/zod/index.d.ts +4 -0
  61. package/fullstacked_modules/zod/locales/index.d.cts +1 -0
  62. package/fullstacked_modules/zod/locales/index.d.ts +1 -0
  63. package/fullstacked_modules/zod/mini/index.d.cts +1 -0
  64. package/fullstacked_modules/zod/mini/index.d.ts +1 -0
  65. package/fullstacked_modules/zod/package.json +134 -0
  66. package/fullstacked_modules/zod/src/index.ts +4 -0
  67. package/fullstacked_modules/zod/src/locales/index.ts +1 -0
  68. package/fullstacked_modules/zod/src/mini/index.ts +1 -0
  69. package/fullstacked_modules/zod/src/v3/ZodError.ts +330 -0
  70. package/fullstacked_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  71. package/fullstacked_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  72. package/fullstacked_modules/zod/src/v3/benchmarks/index.ts +59 -0
  73. package/fullstacked_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  74. package/fullstacked_modules/zod/src/v3/benchmarks/object.ts +69 -0
  75. package/fullstacked_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  76. package/fullstacked_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  77. package/fullstacked_modules/zod/src/v3/benchmarks/string.ts +55 -0
  78. package/fullstacked_modules/zod/src/v3/benchmarks/union.ts +80 -0
  79. package/fullstacked_modules/zod/src/v3/errors.ts +13 -0
  80. package/fullstacked_modules/zod/src/v3/external.ts +6 -0
  81. package/fullstacked_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  82. package/fullstacked_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  83. package/fullstacked_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  84. package/fullstacked_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  85. package/fullstacked_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  86. package/fullstacked_modules/zod/src/v3/helpers/util.ts +224 -0
  87. package/fullstacked_modules/zod/src/v3/index.ts +4 -0
  88. package/fullstacked_modules/zod/src/v3/locales/en.ts +124 -0
  89. package/fullstacked_modules/zod/src/v3/standard-schema.ts +113 -0
  90. package/fullstacked_modules/zod/src/v3/tests/Mocker.ts +54 -0
  91. package/fullstacked_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  92. package/fullstacked_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  93. package/fullstacked_modules/zod/src/v3/tests/array.test.ts +71 -0
  94. package/fullstacked_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  95. package/fullstacked_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  96. package/fullstacked_modules/zod/src/v3/tests/base.test.ts +29 -0
  97. package/fullstacked_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  98. package/fullstacked_modules/zod/src/v3/tests/branded.test.ts +53 -0
  99. package/fullstacked_modules/zod/src/v3/tests/catch.test.ts +220 -0
  100. package/fullstacked_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  101. package/fullstacked_modules/zod/src/v3/tests/complex.test.ts +56 -0
  102. package/fullstacked_modules/zod/src/v3/tests/custom.test.ts +31 -0
  103. package/fullstacked_modules/zod/src/v3/tests/date.test.ts +32 -0
  104. package/fullstacked_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  105. package/fullstacked_modules/zod/src/v3/tests/default.test.ts +112 -0
  106. package/fullstacked_modules/zod/src/v3/tests/description.test.ts +33 -0
  107. package/fullstacked_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  108. package/fullstacked_modules/zod/src/v3/tests/enum.test.ts +80 -0
  109. package/fullstacked_modules/zod/src/v3/tests/error.test.ts +551 -0
  110. package/fullstacked_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  111. package/fullstacked_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  112. package/fullstacked_modules/zod/src/v3/tests/function.test.ts +257 -0
  113. package/fullstacked_modules/zod/src/v3/tests/generics.test.ts +48 -0
  114. package/fullstacked_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  115. package/fullstacked_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  116. package/fullstacked_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  117. package/fullstacked_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  118. package/fullstacked_modules/zod/src/v3/tests/literal.test.ts +36 -0
  119. package/fullstacked_modules/zod/src/v3/tests/map.test.ts +110 -0
  120. package/fullstacked_modules/zod/src/v3/tests/masking.test.ts +4 -0
  121. package/fullstacked_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  122. package/fullstacked_modules/zod/src/v3/tests/nan.test.ts +21 -0
  123. package/fullstacked_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  124. package/fullstacked_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  125. package/fullstacked_modules/zod/src/v3/tests/number.test.ts +176 -0
  126. package/fullstacked_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  127. package/fullstacked_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  128. package/fullstacked_modules/zod/src/v3/tests/object.test.ts +434 -0
  129. package/fullstacked_modules/zod/src/v3/tests/optional.test.ts +42 -0
  130. package/fullstacked_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  131. package/fullstacked_modules/zod/src/v3/tests/parser.test.ts +41 -0
  132. package/fullstacked_modules/zod/src/v3/tests/partials.test.ts +243 -0
  133. package/fullstacked_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  134. package/fullstacked_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  135. package/fullstacked_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  136. package/fullstacked_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  137. package/fullstacked_modules/zod/src/v3/tests/promise.test.ts +90 -0
  138. package/fullstacked_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  139. package/fullstacked_modules/zod/src/v3/tests/record.test.ts +171 -0
  140. package/fullstacked_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  141. package/fullstacked_modules/zod/src/v3/tests/refine.test.ts +313 -0
  142. package/fullstacked_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  143. package/fullstacked_modules/zod/src/v3/tests/set.test.ts +142 -0
  144. package/fullstacked_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  145. package/fullstacked_modules/zod/src/v3/tests/string.test.ts +916 -0
  146. package/fullstacked_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  147. package/fullstacked_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  148. package/fullstacked_modules/zod/src/v3/tests/unions.test.ts +57 -0
  149. package/fullstacked_modules/zod/src/v3/tests/validations.test.ts +133 -0
  150. package/fullstacked_modules/zod/src/v3/tests/void.test.ts +15 -0
  151. package/fullstacked_modules/zod/src/v3/types.ts +5138 -0
  152. package/fullstacked_modules/zod/src/v4/classic/checks.ts +31 -0
  153. package/fullstacked_modules/zod/src/v4/classic/coerce.ts +27 -0
  154. package/fullstacked_modules/zod/src/v4/classic/compat.ts +70 -0
  155. package/fullstacked_modules/zod/src/v4/classic/errors.ts +82 -0
  156. package/fullstacked_modules/zod/src/v4/classic/external.ts +50 -0
  157. package/fullstacked_modules/zod/src/v4/classic/index.ts +5 -0
  158. package/fullstacked_modules/zod/src/v4/classic/iso.ts +90 -0
  159. package/fullstacked_modules/zod/src/v4/classic/parse.ts +33 -0
  160. package/fullstacked_modules/zod/src/v4/classic/schemas.ts +2031 -0
  161. package/fullstacked_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  162. package/fullstacked_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  163. package/fullstacked_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  164. package/fullstacked_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  165. package/fullstacked_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  166. package/fullstacked_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  167. package/fullstacked_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  168. package/fullstacked_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  169. package/fullstacked_modules/zod/src/v4/classic/tests/catch.test.ts +251 -0
  170. package/fullstacked_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  171. package/fullstacked_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  172. package/fullstacked_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  173. package/fullstacked_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  174. package/fullstacked_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  175. package/fullstacked_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  176. package/fullstacked_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  177. package/fullstacked_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  178. package/fullstacked_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
  179. package/fullstacked_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  180. package/fullstacked_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
  181. package/fullstacked_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  182. package/fullstacked_modules/zod/src/v4/classic/tests/file.test.ts +94 -0
  183. package/fullstacked_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  184. package/fullstacked_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  185. package/fullstacked_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  186. package/fullstacked_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  187. package/fullstacked_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  188. package/fullstacked_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  189. package/fullstacked_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  190. package/fullstacked_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  191. package/fullstacked_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  192. package/fullstacked_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  193. package/fullstacked_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  194. package/fullstacked_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  195. package/fullstacked_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  196. package/fullstacked_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  197. package/fullstacked_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
  198. package/fullstacked_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  199. package/fullstacked_modules/zod/src/v4/classic/tests/optional.test.ts +136 -0
  200. package/fullstacked_modules/zod/src/v4/classic/tests/partial.test.ts +340 -0
  201. package/fullstacked_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  202. package/fullstacked_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  203. package/fullstacked_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  204. package/fullstacked_modules/zod/src/v4/classic/tests/preprocess.test.ts +287 -0
  205. package/fullstacked_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  206. package/fullstacked_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  207. package/fullstacked_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  208. package/fullstacked_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  209. package/fullstacked_modules/zod/src/v4/classic/tests/record.test.ts +356 -0
  210. package/fullstacked_modules/zod/src/v4/classic/tests/recursive-types.test.ts +477 -0
  211. package/fullstacked_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  212. package/fullstacked_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  213. package/fullstacked_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  214. package/fullstacked_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  215. package/fullstacked_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  216. package/fullstacked_modules/zod/src/v4/classic/tests/string.test.ts +996 -0
  217. package/fullstacked_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  218. package/fullstacked_modules/zod/src/v4/classic/tests/template-literal.test.ts +761 -0
  219. package/fullstacked_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2341 -0
  220. package/fullstacked_modules/zod/src/v4/classic/tests/transform.test.ts +354 -0
  221. package/fullstacked_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  222. package/fullstacked_modules/zod/src/v4/classic/tests/union.test.ts +181 -0
  223. package/fullstacked_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  224. package/fullstacked_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  225. package/fullstacked_modules/zod/src/v4/core/api.ts +1628 -0
  226. package/fullstacked_modules/zod/src/v4/core/checks.ts +1285 -0
  227. package/fullstacked_modules/zod/src/v4/core/config.ts +15 -0
  228. package/fullstacked_modules/zod/src/v4/core/core.ts +134 -0
  229. package/fullstacked_modules/zod/src/v4/core/doc.ts +44 -0
  230. package/fullstacked_modules/zod/src/v4/core/errors.ts +423 -0
  231. package/fullstacked_modules/zod/src/v4/core/function.ts +176 -0
  232. package/fullstacked_modules/zod/src/v4/core/index.ts +15 -0
  233. package/fullstacked_modules/zod/src/v4/core/json-schema.ts +146 -0
  234. package/fullstacked_modules/zod/src/v4/core/parse.ts +94 -0
  235. package/fullstacked_modules/zod/src/v4/core/regexes.ts +138 -0
  236. package/fullstacked_modules/zod/src/v4/core/registries.ts +97 -0
  237. package/fullstacked_modules/zod/src/v4/core/schemas.ts +3900 -0
  238. package/fullstacked_modules/zod/src/v4/core/standard-schema.ts +64 -0
  239. package/fullstacked_modules/zod/src/v4/core/tests/extend.test.ts +18 -0
  240. package/fullstacked_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  241. package/fullstacked_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  242. package/fullstacked_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  243. package/fullstacked_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  244. package/fullstacked_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  245. package/fullstacked_modules/zod/src/v4/core/to-json-schema.ts +1004 -0
  246. package/fullstacked_modules/zod/src/v4/core/util.ts +827 -0
  247. package/fullstacked_modules/zod/src/v4/core/versions.ts +5 -0
  248. package/fullstacked_modules/zod/src/v4/core/zsf.ts +323 -0
  249. package/fullstacked_modules/zod/src/v4/index.ts +4 -0
  250. package/fullstacked_modules/zod/src/v4/locales/ar.ts +125 -0
  251. package/fullstacked_modules/zod/src/v4/locales/az.ts +121 -0
  252. package/fullstacked_modules/zod/src/v4/locales/be.ts +184 -0
  253. package/fullstacked_modules/zod/src/v4/locales/bg.ts +136 -0
  254. package/fullstacked_modules/zod/src/v4/locales/ca.ts +127 -0
  255. package/fullstacked_modules/zod/src/v4/locales/cs.ts +142 -0
  256. package/fullstacked_modules/zod/src/v4/locales/da.ts +141 -0
  257. package/fullstacked_modules/zod/src/v4/locales/de.ts +124 -0
  258. package/fullstacked_modules/zod/src/v4/locales/en.ts +127 -0
  259. package/fullstacked_modules/zod/src/v4/locales/eo.ts +125 -0
  260. package/fullstacked_modules/zod/src/v4/locales/es.ts +125 -0
  261. package/fullstacked_modules/zod/src/v4/locales/fa.ts +134 -0
  262. package/fullstacked_modules/zod/src/v4/locales/fi.ts +131 -0
  263. package/fullstacked_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  264. package/fullstacked_modules/zod/src/v4/locales/fr.ts +124 -0
  265. package/fullstacked_modules/zod/src/v4/locales/he.ts +125 -0
  266. package/fullstacked_modules/zod/src/v4/locales/hu.ts +126 -0
  267. package/fullstacked_modules/zod/src/v4/locales/id.ts +125 -0
  268. package/fullstacked_modules/zod/src/v4/locales/index.ts +42 -0
  269. package/fullstacked_modules/zod/src/v4/locales/is.ts +127 -0
  270. package/fullstacked_modules/zod/src/v4/locales/it.ts +125 -0
  271. package/fullstacked_modules/zod/src/v4/locales/ja.ts +122 -0
  272. package/fullstacked_modules/zod/src/v4/locales/kh.ts +126 -0
  273. package/fullstacked_modules/zod/src/v4/locales/ko.ts +131 -0
  274. package/fullstacked_modules/zod/src/v4/locales/mk.ts +127 -0
  275. package/fullstacked_modules/zod/src/v4/locales/ms.ts +124 -0
  276. package/fullstacked_modules/zod/src/v4/locales/nl.ts +126 -0
  277. package/fullstacked_modules/zod/src/v4/locales/no.ts +124 -0
  278. package/fullstacked_modules/zod/src/v4/locales/ota.ts +125 -0
  279. package/fullstacked_modules/zod/src/v4/locales/pl.ts +126 -0
  280. package/fullstacked_modules/zod/src/v4/locales/ps.ts +133 -0
  281. package/fullstacked_modules/zod/src/v4/locales/pt.ts +123 -0
  282. package/fullstacked_modules/zod/src/v4/locales/ru.ts +184 -0
  283. package/fullstacked_modules/zod/src/v4/locales/sl.ts +126 -0
  284. package/fullstacked_modules/zod/src/v4/locales/sv.ts +127 -0
  285. package/fullstacked_modules/zod/src/v4/locales/ta.ts +125 -0
  286. package/fullstacked_modules/zod/src/v4/locales/th.ts +126 -0
  287. package/fullstacked_modules/zod/src/v4/locales/tr.ts +121 -0
  288. package/fullstacked_modules/zod/src/v4/locales/ua.ts +126 -0
  289. package/fullstacked_modules/zod/src/v4/locales/ur.ts +126 -0
  290. package/fullstacked_modules/zod/src/v4/locales/vi.ts +125 -0
  291. package/fullstacked_modules/zod/src/v4/locales/yo.ts +131 -0
  292. package/fullstacked_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  293. package/fullstacked_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  294. package/fullstacked_modules/zod/src/v4/mini/checks.ts +32 -0
  295. package/fullstacked_modules/zod/src/v4/mini/coerce.ts +22 -0
  296. package/fullstacked_modules/zod/src/v4/mini/external.ts +40 -0
  297. package/fullstacked_modules/zod/src/v4/mini/index.ts +3 -0
  298. package/fullstacked_modules/zod/src/v4/mini/iso.ts +62 -0
  299. package/fullstacked_modules/zod/src/v4/mini/parse.ts +1 -0
  300. package/fullstacked_modules/zod/src/v4/mini/schemas.ts +1592 -0
  301. package/fullstacked_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  302. package/fullstacked_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  303. package/fullstacked_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  304. package/fullstacked_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  305. package/fullstacked_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  306. package/fullstacked_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  307. package/fullstacked_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  308. package/fullstacked_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  309. package/fullstacked_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  310. package/fullstacked_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  311. package/fullstacked_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  312. package/fullstacked_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  313. package/fullstacked_modules/zod/src/v4-mini/index.ts +1 -0
  314. package/fullstacked_modules/zod/v3/ZodError.d.cts +164 -0
  315. package/fullstacked_modules/zod/v3/ZodError.d.ts +164 -0
  316. package/fullstacked_modules/zod/v3/errors.d.cts +5 -0
  317. package/fullstacked_modules/zod/v3/errors.d.ts +5 -0
  318. package/fullstacked_modules/zod/v3/external.d.cts +6 -0
  319. package/fullstacked_modules/zod/v3/external.d.ts +6 -0
  320. package/fullstacked_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  321. package/fullstacked_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  322. package/fullstacked_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  323. package/fullstacked_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  324. package/fullstacked_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  325. package/fullstacked_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  326. package/fullstacked_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  327. package/fullstacked_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  328. package/fullstacked_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  329. package/fullstacked_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  330. package/fullstacked_modules/zod/v3/helpers/util.d.cts +85 -0
  331. package/fullstacked_modules/zod/v3/helpers/util.d.ts +85 -0
  332. package/fullstacked_modules/zod/v3/index.d.cts +4 -0
  333. package/fullstacked_modules/zod/v3/index.d.ts +4 -0
  334. package/fullstacked_modules/zod/v3/locales/en.d.cts +3 -0
  335. package/fullstacked_modules/zod/v3/locales/en.d.ts +3 -0
  336. package/fullstacked_modules/zod/v3/standard-schema.d.cts +102 -0
  337. package/fullstacked_modules/zod/v3/standard-schema.d.ts +102 -0
  338. package/fullstacked_modules/zod/v3/types.d.cts +1034 -0
  339. package/fullstacked_modules/zod/v3/types.d.ts +1034 -0
  340. package/fullstacked_modules/zod/v4/classic/checks.d.cts +1 -0
  341. package/fullstacked_modules/zod/v4/classic/checks.d.ts +1 -0
  342. package/fullstacked_modules/zod/v4/classic/coerce.d.cts +17 -0
  343. package/fullstacked_modules/zod/v4/classic/coerce.d.ts +17 -0
  344. package/fullstacked_modules/zod/v4/classic/compat.d.cts +50 -0
  345. package/fullstacked_modules/zod/v4/classic/compat.d.ts +50 -0
  346. package/fullstacked_modules/zod/v4/classic/errors.d.cts +30 -0
  347. package/fullstacked_modules/zod/v4/classic/errors.d.ts +30 -0
  348. package/fullstacked_modules/zod/v4/classic/external.d.cts +13 -0
  349. package/fullstacked_modules/zod/v4/classic/external.d.ts +13 -0
  350. package/fullstacked_modules/zod/v4/classic/index.d.cts +4 -0
  351. package/fullstacked_modules/zod/v4/classic/index.d.ts +4 -0
  352. package/fullstacked_modules/zod/v4/classic/iso.d.cts +22 -0
  353. package/fullstacked_modules/zod/v4/classic/iso.d.ts +22 -0
  354. package/fullstacked_modules/zod/v4/classic/parse.d.cts +23 -0
  355. package/fullstacked_modules/zod/v4/classic/parse.d.ts +23 -0
  356. package/fullstacked_modules/zod/v4/classic/schemas.d.cts +619 -0
  357. package/fullstacked_modules/zod/v4/classic/schemas.d.ts +619 -0
  358. package/fullstacked_modules/zod/v4/core/api.d.cts +296 -0
  359. package/fullstacked_modules/zod/v4/core/api.d.ts +296 -0
  360. package/fullstacked_modules/zod/v4/core/checks.d.cts +278 -0
  361. package/fullstacked_modules/zod/v4/core/checks.d.ts +278 -0
  362. package/fullstacked_modules/zod/v4/core/core.d.cts +49 -0
  363. package/fullstacked_modules/zod/v4/core/core.d.ts +49 -0
  364. package/fullstacked_modules/zod/v4/core/doc.d.cts +14 -0
  365. package/fullstacked_modules/zod/v4/core/doc.d.ts +14 -0
  366. package/fullstacked_modules/zod/v4/core/errors.d.cts +210 -0
  367. package/fullstacked_modules/zod/v4/core/errors.d.ts +210 -0
  368. package/fullstacked_modules/zod/v4/core/function.d.cts +52 -0
  369. package/fullstacked_modules/zod/v4/core/function.d.ts +52 -0
  370. package/fullstacked_modules/zod/v4/core/index.d.cts +15 -0
  371. package/fullstacked_modules/zod/v4/core/index.d.ts +15 -0
  372. package/fullstacked_modules/zod/v4/core/json-schema.d.cts +87 -0
  373. package/fullstacked_modules/zod/v4/core/json-schema.d.ts +87 -0
  374. package/fullstacked_modules/zod/v4/core/parse.d.cts +25 -0
  375. package/fullstacked_modules/zod/v4/core/parse.d.ts +25 -0
  376. package/fullstacked_modules/zod/v4/core/regexes.d.cts +62 -0
  377. package/fullstacked_modules/zod/v4/core/regexes.d.ts +62 -0
  378. package/fullstacked_modules/zod/v4/core/registries.d.cts +35 -0
  379. package/fullstacked_modules/zod/v4/core/registries.d.ts +35 -0
  380. package/fullstacked_modules/zod/v4/core/schemas.d.cts +1055 -0
  381. package/fullstacked_modules/zod/v4/core/schemas.d.ts +1055 -0
  382. package/fullstacked_modules/zod/v4/core/standard-schema.d.cts +55 -0
  383. package/fullstacked_modules/zod/v4/core/standard-schema.d.ts +55 -0
  384. package/fullstacked_modules/zod/v4/core/to-json-schema.d.cts +89 -0
  385. package/fullstacked_modules/zod/v4/core/to-json-schema.d.ts +89 -0
  386. package/fullstacked_modules/zod/v4/core/util.d.cts +185 -0
  387. package/fullstacked_modules/zod/v4/core/util.d.ts +185 -0
  388. package/fullstacked_modules/zod/v4/core/versions.d.cts +5 -0
  389. package/fullstacked_modules/zod/v4/core/versions.d.ts +5 -0
  390. package/fullstacked_modules/zod/v4/index.d.cts +3 -0
  391. package/fullstacked_modules/zod/v4/index.d.ts +3 -0
  392. package/fullstacked_modules/zod/v4/locales/ar.d.cts +5 -0
  393. package/fullstacked_modules/zod/v4/locales/ar.d.ts +4 -0
  394. package/fullstacked_modules/zod/v4/locales/az.d.cts +5 -0
  395. package/fullstacked_modules/zod/v4/locales/az.d.ts +4 -0
  396. package/fullstacked_modules/zod/v4/locales/be.d.cts +5 -0
  397. package/fullstacked_modules/zod/v4/locales/be.d.ts +4 -0
  398. package/fullstacked_modules/zod/v4/locales/bg.d.cts +5 -0
  399. package/fullstacked_modules/zod/v4/locales/bg.d.ts +5 -0
  400. package/fullstacked_modules/zod/v4/locales/ca.d.cts +5 -0
  401. package/fullstacked_modules/zod/v4/locales/ca.d.ts +4 -0
  402. package/fullstacked_modules/zod/v4/locales/cs.d.cts +5 -0
  403. package/fullstacked_modules/zod/v4/locales/cs.d.ts +4 -0
  404. package/fullstacked_modules/zod/v4/locales/da.d.cts +5 -0
  405. package/fullstacked_modules/zod/v4/locales/da.d.ts +4 -0
  406. package/fullstacked_modules/zod/v4/locales/de.d.cts +5 -0
  407. package/fullstacked_modules/zod/v4/locales/de.d.ts +4 -0
  408. package/fullstacked_modules/zod/v4/locales/en.d.cts +5 -0
  409. package/fullstacked_modules/zod/v4/locales/en.d.ts +5 -0
  410. package/fullstacked_modules/zod/v4/locales/eo.d.cts +5 -0
  411. package/fullstacked_modules/zod/v4/locales/eo.d.ts +5 -0
  412. package/fullstacked_modules/zod/v4/locales/es.d.cts +5 -0
  413. package/fullstacked_modules/zod/v4/locales/es.d.ts +4 -0
  414. package/fullstacked_modules/zod/v4/locales/fa.d.cts +5 -0
  415. package/fullstacked_modules/zod/v4/locales/fa.d.ts +4 -0
  416. package/fullstacked_modules/zod/v4/locales/fi.d.cts +5 -0
  417. package/fullstacked_modules/zod/v4/locales/fi.d.ts +4 -0
  418. package/fullstacked_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  419. package/fullstacked_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  420. package/fullstacked_modules/zod/v4/locales/fr.d.cts +5 -0
  421. package/fullstacked_modules/zod/v4/locales/fr.d.ts +4 -0
  422. package/fullstacked_modules/zod/v4/locales/he.d.cts +5 -0
  423. package/fullstacked_modules/zod/v4/locales/he.d.ts +4 -0
  424. package/fullstacked_modules/zod/v4/locales/hu.d.cts +5 -0
  425. package/fullstacked_modules/zod/v4/locales/hu.d.ts +4 -0
  426. package/fullstacked_modules/zod/v4/locales/id.d.cts +5 -0
  427. package/fullstacked_modules/zod/v4/locales/id.d.ts +4 -0
  428. package/fullstacked_modules/zod/v4/locales/index.d.cts +42 -0
  429. package/fullstacked_modules/zod/v4/locales/index.d.ts +42 -0
  430. package/fullstacked_modules/zod/v4/locales/is.d.cts +5 -0
  431. package/fullstacked_modules/zod/v4/locales/is.d.ts +5 -0
  432. package/fullstacked_modules/zod/v4/locales/it.d.cts +5 -0
  433. package/fullstacked_modules/zod/v4/locales/it.d.ts +4 -0
  434. package/fullstacked_modules/zod/v4/locales/ja.d.cts +5 -0
  435. package/fullstacked_modules/zod/v4/locales/ja.d.ts +4 -0
  436. package/fullstacked_modules/zod/v4/locales/kh.d.cts +5 -0
  437. package/fullstacked_modules/zod/v4/locales/kh.d.ts +4 -0
  438. package/fullstacked_modules/zod/v4/locales/ko.d.cts +5 -0
  439. package/fullstacked_modules/zod/v4/locales/ko.d.ts +4 -0
  440. package/fullstacked_modules/zod/v4/locales/mk.d.cts +5 -0
  441. package/fullstacked_modules/zod/v4/locales/mk.d.ts +4 -0
  442. package/fullstacked_modules/zod/v4/locales/ms.d.cts +5 -0
  443. package/fullstacked_modules/zod/v4/locales/ms.d.ts +4 -0
  444. package/fullstacked_modules/zod/v4/locales/nl.d.cts +5 -0
  445. package/fullstacked_modules/zod/v4/locales/nl.d.ts +4 -0
  446. package/fullstacked_modules/zod/v4/locales/no.d.cts +5 -0
  447. package/fullstacked_modules/zod/v4/locales/no.d.ts +4 -0
  448. package/fullstacked_modules/zod/v4/locales/ota.d.cts +5 -0
  449. package/fullstacked_modules/zod/v4/locales/ota.d.ts +4 -0
  450. package/fullstacked_modules/zod/v4/locales/pl.d.cts +5 -0
  451. package/fullstacked_modules/zod/v4/locales/pl.d.ts +4 -0
  452. package/fullstacked_modules/zod/v4/locales/ps.d.cts +5 -0
  453. package/fullstacked_modules/zod/v4/locales/ps.d.ts +4 -0
  454. package/fullstacked_modules/zod/v4/locales/pt.d.cts +5 -0
  455. package/fullstacked_modules/zod/v4/locales/pt.d.ts +4 -0
  456. package/fullstacked_modules/zod/v4/locales/ru.d.cts +5 -0
  457. package/fullstacked_modules/zod/v4/locales/ru.d.ts +4 -0
  458. package/fullstacked_modules/zod/v4/locales/sl.d.cts +5 -0
  459. package/fullstacked_modules/zod/v4/locales/sl.d.ts +4 -0
  460. package/fullstacked_modules/zod/v4/locales/sv.d.cts +5 -0
  461. package/fullstacked_modules/zod/v4/locales/sv.d.ts +4 -0
  462. package/fullstacked_modules/zod/v4/locales/ta.d.cts +5 -0
  463. package/fullstacked_modules/zod/v4/locales/ta.d.ts +4 -0
  464. package/fullstacked_modules/zod/v4/locales/th.d.cts +5 -0
  465. package/fullstacked_modules/zod/v4/locales/th.d.ts +4 -0
  466. package/fullstacked_modules/zod/v4/locales/tr.d.cts +5 -0
  467. package/fullstacked_modules/zod/v4/locales/tr.d.ts +5 -0
  468. package/fullstacked_modules/zod/v4/locales/ua.d.cts +5 -0
  469. package/fullstacked_modules/zod/v4/locales/ua.d.ts +4 -0
  470. package/fullstacked_modules/zod/v4/locales/ur.d.cts +5 -0
  471. package/fullstacked_modules/zod/v4/locales/ur.d.ts +4 -0
  472. package/fullstacked_modules/zod/v4/locales/vi.d.cts +5 -0
  473. package/fullstacked_modules/zod/v4/locales/vi.d.ts +4 -0
  474. package/fullstacked_modules/zod/v4/locales/yo.d.cts +5 -0
  475. package/fullstacked_modules/zod/v4/locales/yo.d.ts +4 -0
  476. package/fullstacked_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  477. package/fullstacked_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  478. package/fullstacked_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  479. package/fullstacked_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  480. package/fullstacked_modules/zod/v4/mini/checks.d.cts +1 -0
  481. package/fullstacked_modules/zod/v4/mini/checks.d.ts +1 -0
  482. package/fullstacked_modules/zod/v4/mini/coerce.d.cts +7 -0
  483. package/fullstacked_modules/zod/v4/mini/coerce.d.ts +7 -0
  484. package/fullstacked_modules/zod/v4/mini/external.d.cts +11 -0
  485. package/fullstacked_modules/zod/v4/mini/external.d.ts +11 -0
  486. package/fullstacked_modules/zod/v4/mini/index.d.cts +3 -0
  487. package/fullstacked_modules/zod/v4/mini/index.d.ts +3 -0
  488. package/fullstacked_modules/zod/v4/mini/iso.d.cts +22 -0
  489. package/fullstacked_modules/zod/v4/mini/iso.d.ts +22 -0
  490. package/fullstacked_modules/zod/v4/mini/parse.d.cts +1 -0
  491. package/fullstacked_modules/zod/v4/mini/parse.d.ts +1 -0
  492. package/fullstacked_modules/zod/v4/mini/schemas.d.cts +358 -0
  493. package/fullstacked_modules/zod/v4/mini/schemas.d.ts +358 -0
  494. package/fullstacked_modules/zod/v4-mini/index.d.cts +1 -0
  495. package/fullstacked_modules/zod/v4-mini/index.d.ts +1 -0
  496. package/index.js +17 -12
  497. package/package.json +1 -1
  498. package/lib/bridge/index.ts +0 -53
  499. package/lib/fullstacked.d.ts +0 -208
  500. /package/{lib → fullstacked_modules}/components/snackbar.css +0 -0
@@ -0,0 +1,1592 @@
1
+ import * as core from "../core/index.js";
2
+ import { util } from "../core/index.js";
3
+ import * as parse from "./parse.js";
4
+
5
+ type SomeType = core.SomeType;
6
+
7
+ export interface ZodMiniType<
8
+ out Output = unknown,
9
+ out Input = unknown,
10
+ out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>,
11
+ > extends core.$ZodType<Output, Input, Internals> {
12
+ check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
13
+ clone(def?: Internals["def"], params?: { parent: boolean }): this;
14
+ register<R extends core.$ZodRegistry>(
15
+ registry: R,
16
+ ...meta: this extends R["_schema"]
17
+ ? undefined extends R["_meta"]
18
+ ? [core.$replace<R["_meta"], this>?]
19
+ : [core.$replace<R["_meta"], this>]
20
+ : ["Incompatible schema"]
21
+ ): this;
22
+ brand<T extends PropertyKey = PropertyKey>(
23
+ value?: T
24
+ ): PropertyKey extends T ? this : this & Record<"_zod", Record<"output", core.output<this> & core.$brand<T>>>;
25
+
26
+ def: Internals["def"];
27
+
28
+ parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
29
+ safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>>;
30
+ parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
31
+ safeParseAsync(
32
+ data: unknown,
33
+ params?: core.ParseContext<core.$ZodIssue>
34
+ ): Promise<util.SafeParseResult<core.output<this>>>;
35
+ }
36
+
37
+ interface _ZodMiniType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals>
38
+ extends ZodMiniType<any, any, Internals> {}
39
+
40
+ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$constructor(
41
+ "ZodMiniType",
42
+ (inst, def) => {
43
+ if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
44
+
45
+ core.$ZodType.init(inst, def);
46
+ inst.def = def;
47
+ inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
48
+ inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
49
+ inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
50
+ inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);
51
+ inst.check = (...checks) => {
52
+ return inst.clone(
53
+ {
54
+ ...def,
55
+ checks: [
56
+ ...(def.checks ?? []),
57
+ ...checks.map((ch) =>
58
+ typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
59
+ ),
60
+ ],
61
+ }
62
+ // { parent: true }
63
+ );
64
+ };
65
+ inst.clone = (_def, params) => core.clone(inst, _def, params);
66
+ inst.brand = () => inst as any;
67
+ inst.register = ((reg: any, meta: any) => {
68
+ reg.add(inst, meta);
69
+ return inst;
70
+ }) as any;
71
+ }
72
+ );
73
+
74
+ export interface _ZodMiniString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>>
75
+ extends _ZodMiniType<T>,
76
+ core.$ZodString<T["input"]> {
77
+ _zod: T;
78
+ }
79
+
80
+ // ZodMiniString
81
+ export interface ZodMiniString<Input = unknown>
82
+ extends _ZodMiniString<core.$ZodStringInternals<Input>>,
83
+ core.$ZodString<Input> {}
84
+ export const ZodMiniString: core.$constructor<ZodMiniString> = /*@__PURE__*/ core.$constructor(
85
+ "ZodMiniString",
86
+ (inst, def) => {
87
+ core.$ZodString.init(inst, def);
88
+ ZodMiniType.init(inst, def);
89
+ }
90
+ );
91
+
92
+ export function string(params?: string | core.$ZodStringParams): ZodMiniString<string> {
93
+ return core._string(ZodMiniString, params) as any;
94
+ }
95
+
96
+ // ZodMiniStringFormat
97
+ export interface ZodMiniStringFormat<Format extends string = string>
98
+ extends _ZodMiniString<core.$ZodStringFormatInternals<Format>>,
99
+ core.$ZodStringFormat<Format> {
100
+ // _zod: core.$ZodStringFormatInternals<Format>;
101
+ }
102
+ export const ZodMiniStringFormat: core.$constructor<ZodMiniStringFormat> = /*@__PURE__*/ core.$constructor(
103
+ "ZodMiniStringFormat",
104
+ (inst, def) => {
105
+ core.$ZodStringFormat.init(inst, def);
106
+ ZodMiniString.init(inst, def);
107
+ }
108
+ );
109
+
110
+ // ZodMiniEmail
111
+ export interface ZodMiniEmail extends _ZodMiniString<core.$ZodEmailInternals> {}
112
+ export const ZodMiniEmail: core.$constructor<ZodMiniEmail> = /*@__PURE__*/ core.$constructor(
113
+ "ZodMiniEmail",
114
+ (inst, def) => {
115
+ core.$ZodEmail.init(inst, def);
116
+ ZodMiniStringFormat.init(inst, def);
117
+ }
118
+ );
119
+
120
+ export function email(params?: string | core.$ZodEmailParams): ZodMiniEmail {
121
+ return core._email(ZodMiniEmail, params);
122
+ }
123
+
124
+ // ZodMiniGUID
125
+ export interface ZodMiniGUID extends _ZodMiniString<core.$ZodGUIDInternals> {
126
+ // _zod: core.$ZodGUIDInternals;
127
+ }
128
+ export const ZodMiniGUID: core.$constructor<ZodMiniGUID> = /*@__PURE__*/ core.$constructor(
129
+ "ZodMiniGUID",
130
+ (inst, def) => {
131
+ core.$ZodGUID.init(inst, def);
132
+ ZodMiniStringFormat.init(inst, def);
133
+ }
134
+ );
135
+
136
+ export function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID {
137
+ return core._guid(ZodMiniGUID, params);
138
+ }
139
+
140
+ // ZodMiniUUID
141
+ export interface ZodMiniUUID extends _ZodMiniString<core.$ZodUUIDInternals> {
142
+ // _zod: core.$ZodUUIDInternals;
143
+ }
144
+ export const ZodMiniUUID: core.$constructor<ZodMiniUUID> = /*@__PURE__*/ core.$constructor(
145
+ "ZodMiniUUID",
146
+ (inst, def) => {
147
+ core.$ZodUUID.init(inst, def);
148
+ ZodMiniStringFormat.init(inst, def);
149
+ }
150
+ );
151
+
152
+ export function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID {
153
+ return core._uuid(ZodMiniUUID, params);
154
+ }
155
+
156
+ export function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID {
157
+ return core._uuidv4(ZodMiniUUID, params);
158
+ }
159
+
160
+ // ZodMiniUUIDv6
161
+
162
+ export function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID {
163
+ return core._uuidv6(ZodMiniUUID, params);
164
+ }
165
+
166
+ // ZodMiniUUIDv7
167
+
168
+ export function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID {
169
+ return core._uuidv7(ZodMiniUUID, params);
170
+ }
171
+
172
+ // ZodMiniURL
173
+ export interface ZodMiniURL extends _ZodMiniString<core.$ZodURLInternals> {
174
+ // _zod: core.$ZodURLInternals;
175
+ }
176
+ export const ZodMiniURL: core.$constructor<ZodMiniURL> = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, def) => {
177
+ core.$ZodURL.init(inst, def);
178
+ ZodMiniStringFormat.init(inst, def);
179
+ });
180
+
181
+ export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
182
+ return core._url(ZodMiniURL, params);
183
+ }
184
+
185
+ // ZodMiniEmoji
186
+ export interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> {
187
+ // _zod: core.$ZodEmojiInternals;
188
+ }
189
+ export const ZodMiniEmoji: core.$constructor<ZodMiniEmoji> = /*@__PURE__*/ core.$constructor(
190
+ "ZodMiniEmoji",
191
+ (inst, def) => {
192
+ core.$ZodEmoji.init(inst, def);
193
+ ZodMiniStringFormat.init(inst, def);
194
+ }
195
+ );
196
+
197
+ export function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji {
198
+ return core._emoji(ZodMiniEmoji, params);
199
+ }
200
+
201
+ // ZodMiniNanoID
202
+ export interface ZodMiniNanoID extends _ZodMiniString<core.$ZodNanoIDInternals> {
203
+ // _zod: core.$ZodNanoIDInternals;
204
+ }
205
+ export const ZodMiniNanoID: core.$constructor<ZodMiniNanoID> = /*@__PURE__*/ core.$constructor(
206
+ "ZodMiniNanoID",
207
+ (inst, def) => {
208
+ core.$ZodNanoID.init(inst, def);
209
+ ZodMiniStringFormat.init(inst, def);
210
+ }
211
+ );
212
+
213
+ export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
214
+ return core._nanoid(ZodMiniNanoID, params);
215
+ }
216
+
217
+ // ZodMiniCUID
218
+ export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
219
+ // _zod: core.$ZodCUIDInternals;
220
+ }
221
+ export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
222
+ "ZodMiniCUID",
223
+ (inst, def) => {
224
+ core.$ZodCUID.init(inst, def);
225
+ ZodMiniStringFormat.init(inst, def);
226
+ }
227
+ );
228
+
229
+ export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
230
+ return core._cuid(ZodMiniCUID, params);
231
+ }
232
+
233
+ // ZodMiniCUID2
234
+ export interface ZodMiniCUID2 extends _ZodMiniString<core.$ZodCUID2Internals> {
235
+ // _zod: core.$ZodCUID2Internals;
236
+ }
237
+ export const ZodMiniCUID2: core.$constructor<ZodMiniCUID2> = /*@__PURE__*/ core.$constructor(
238
+ "ZodMiniCUID2",
239
+ (inst, def) => {
240
+ core.$ZodCUID2.init(inst, def);
241
+ ZodMiniStringFormat.init(inst, def);
242
+ }
243
+ );
244
+
245
+ export function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2 {
246
+ return core._cuid2(ZodMiniCUID2, params);
247
+ }
248
+
249
+ // ZodMiniULID
250
+ export interface ZodMiniULID extends _ZodMiniString<core.$ZodULIDInternals> {
251
+ // _zod: core.$ZodULIDInternals;
252
+ }
253
+ export const ZodMiniULID: core.$constructor<ZodMiniULID> = /*@__PURE__*/ core.$constructor(
254
+ "ZodMiniULID",
255
+ (inst, def) => {
256
+ core.$ZodULID.init(inst, def);
257
+ ZodMiniStringFormat.init(inst, def);
258
+ }
259
+ );
260
+
261
+ export function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID {
262
+ return core._ulid(ZodMiniULID, params);
263
+ }
264
+
265
+ // ZodMiniXID
266
+ export interface ZodMiniXID extends _ZodMiniString<core.$ZodXIDInternals> {
267
+ // _zod: core.$ZodXIDInternals;
268
+ }
269
+ export const ZodMiniXID: core.$constructor<ZodMiniXID> = /*@__PURE__*/ core.$constructor("ZodMiniXID", (inst, def) => {
270
+ core.$ZodXID.init(inst, def);
271
+ ZodMiniStringFormat.init(inst, def);
272
+ });
273
+
274
+ export function xid(params?: string | core.$ZodXIDParams): ZodMiniXID {
275
+ return core._xid(ZodMiniXID, params);
276
+ }
277
+
278
+ // ZodMiniKSUID
279
+ export interface ZodMiniKSUID extends _ZodMiniString<core.$ZodKSUIDInternals> {
280
+ // _zod: core.$ZodKSUIDInternals;
281
+ }
282
+ export const ZodMiniKSUID: core.$constructor<ZodMiniKSUID> = /*@__PURE__*/ core.$constructor(
283
+ "ZodMiniKSUID",
284
+ (inst, def) => {
285
+ core.$ZodKSUID.init(inst, def);
286
+ ZodMiniStringFormat.init(inst, def);
287
+ }
288
+ );
289
+
290
+ export function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID {
291
+ return core._ksuid(ZodMiniKSUID, params);
292
+ }
293
+
294
+ // ZodMiniIPv4
295
+ export interface ZodMiniIPv4 extends _ZodMiniString<core.$ZodIPv4Internals> {
296
+ // _zod: core.$ZodIPv4Internals;
297
+ }
298
+ export const ZodMiniIPv4: core.$constructor<ZodMiniIPv4> = /*@__PURE__*/ core.$constructor(
299
+ "ZodMiniIPv4",
300
+ (inst, def) => {
301
+ core.$ZodIPv4.init(inst, def);
302
+ ZodMiniStringFormat.init(inst, def);
303
+ }
304
+ );
305
+
306
+ export function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4 {
307
+ return core._ipv4(ZodMiniIPv4, params);
308
+ }
309
+
310
+ // ZodMiniIPv6
311
+ export interface ZodMiniIPv6 extends _ZodMiniString<core.$ZodIPv6Internals> {
312
+ // _zod: core.$ZodIPv6Internals;
313
+ }
314
+ export const ZodMiniIPv6: core.$constructor<ZodMiniIPv6> = /*@__PURE__*/ core.$constructor(
315
+ "ZodMiniIPv6",
316
+ (inst, def) => {
317
+ core.$ZodIPv6.init(inst, def);
318
+ ZodMiniStringFormat.init(inst, def);
319
+ }
320
+ );
321
+
322
+ export function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6 {
323
+ return core._ipv6(ZodMiniIPv6, params);
324
+ }
325
+
326
+ // ZodMiniCIDRv4
327
+ export interface ZodMiniCIDRv4 extends _ZodMiniString<core.$ZodCIDRv4Internals> {
328
+ // _zod: core.$ZodCIDRv4Internals;
329
+ }
330
+ export const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4> = /*@__PURE__*/ core.$constructor(
331
+ "ZodMiniCIDRv4",
332
+ (inst, def) => {
333
+ core.$ZodCIDRv4.init(inst, def);
334
+ ZodMiniStringFormat.init(inst, def);
335
+ }
336
+ );
337
+
338
+ export function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4 {
339
+ return core._cidrv4(ZodMiniCIDRv4, params);
340
+ }
341
+
342
+ // ZodMiniCIDRv6
343
+ export interface ZodMiniCIDRv6 extends _ZodMiniString<core.$ZodCIDRv6Internals> {
344
+ // _zod: core.$ZodCIDRv6Internals;
345
+ }
346
+ export const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6> = /*@__PURE__*/ core.$constructor(
347
+ "ZodMiniCIDRv6",
348
+ (inst, def) => {
349
+ core.$ZodCIDRv6.init(inst, def);
350
+ ZodMiniStringFormat.init(inst, def);
351
+ }
352
+ );
353
+
354
+ export function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6 {
355
+ return core._cidrv6(ZodMiniCIDRv6, params);
356
+ }
357
+
358
+ // ZodMiniBase64
359
+ export interface ZodMiniBase64 extends _ZodMiniString<core.$ZodBase64Internals> {
360
+ // _zod: core.$ZodBase64Internals;
361
+ }
362
+ export const ZodMiniBase64: core.$constructor<ZodMiniBase64> = /*@__PURE__*/ core.$constructor(
363
+ "ZodMiniBase64",
364
+ (inst, def) => {
365
+ core.$ZodBase64.init(inst, def);
366
+ ZodMiniStringFormat.init(inst, def);
367
+ }
368
+ );
369
+ export function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64 {
370
+ return core._base64(ZodMiniBase64, params);
371
+ }
372
+
373
+ // ZodMiniBase64URL
374
+ export interface ZodMiniBase64URL extends _ZodMiniString<core.$ZodBase64URLInternals> {
375
+ // _zod: core.$ZodBase64URLInternals;
376
+ }
377
+ export const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL> = /*@__PURE__*/ core.$constructor(
378
+ "ZodMiniBase64URL",
379
+ (inst, def) => {
380
+ core.$ZodBase64URL.init(inst, def);
381
+ ZodMiniStringFormat.init(inst, def);
382
+ }
383
+ );
384
+ export function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL {
385
+ return core._base64url(ZodMiniBase64URL, params);
386
+ }
387
+
388
+ // ZodMiniE164
389
+ export interface ZodMiniE164 extends _ZodMiniString<core.$ZodE164Internals> {
390
+ // _zod: core.$ZodE164Internals;
391
+ }
392
+ export const ZodMiniE164: core.$constructor<ZodMiniE164> = /*@__PURE__*/ core.$constructor(
393
+ "ZodMiniE164",
394
+ (inst, def) => {
395
+ core.$ZodE164.init(inst, def);
396
+ ZodMiniStringFormat.init(inst, def);
397
+ }
398
+ );
399
+
400
+ export function e164(params?: string | core.$ZodE164Params): ZodMiniE164 {
401
+ return core._e164(ZodMiniE164, params);
402
+ }
403
+
404
+ // ZodMiniJWT
405
+ export interface ZodMiniJWT extends _ZodMiniString<core.$ZodJWTInternals> {
406
+ // _zod: core.$ZodJWTInternals;
407
+ }
408
+ export const ZodMiniJWT: core.$constructor<ZodMiniJWT> = /*@__PURE__*/ core.$constructor("ZodMiniJWT", (inst, def) => {
409
+ core.$ZodJWT.init(inst, def);
410
+ ZodMiniStringFormat.init(inst, def);
411
+ });
412
+
413
+ export function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT {
414
+ return core._jwt(ZodMiniJWT, params);
415
+ }
416
+
417
+ // ZodMiniCustomStringFormat
418
+ export interface ZodMiniCustomStringFormat<Format extends string = string>
419
+ extends ZodMiniStringFormat<Format>,
420
+ core.$ZodCustomStringFormat<Format> {
421
+ _zod: core.$ZodCustomStringFormatInternals<Format>;
422
+ }
423
+ export const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFormat> = /*@__PURE__*/ core.$constructor(
424
+ "ZodMiniCustomStringFormat",
425
+ (inst, def) => {
426
+ core.$ZodCustomStringFormat.init(inst, def);
427
+ ZodMiniStringFormat.init(inst, def);
428
+ }
429
+ );
430
+
431
+ export function stringFormat<Format extends string>(
432
+ format: Format,
433
+ fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
434
+ _params: string | core.$ZodStringFormatParams = {}
435
+ ): ZodMiniCustomStringFormat<Format> {
436
+ return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params) as any;
437
+ }
438
+
439
+ export function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname"> {
440
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params) as any;
441
+ }
442
+
443
+ // ZodMiniNumber
444
+ interface _ZodMiniNumber<T extends core.$ZodNumberInternals<unknown> = core.$ZodNumberInternals<unknown>>
445
+ extends _ZodMiniType<T>,
446
+ core.$ZodNumber<T["input"]> {
447
+ _zod: T;
448
+ }
449
+ export interface ZodMiniNumber<Input = unknown>
450
+ extends _ZodMiniNumber<core.$ZodNumberInternals<Input>>,
451
+ core.$ZodNumber<Input> {}
452
+ export const ZodMiniNumber: core.$constructor<ZodMiniNumber> = /*@__PURE__*/ core.$constructor(
453
+ "ZodMiniNumber",
454
+ (inst, def) => {
455
+ core.$ZodNumber.init(inst, def);
456
+ ZodMiniType.init(inst, def);
457
+ }
458
+ );
459
+
460
+ export function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number> {
461
+ return core._number(ZodMiniNumber, params) as any;
462
+ }
463
+
464
+ // ZodMiniNumberFormat
465
+ export interface ZodMiniNumberFormat extends _ZodMiniNumber<core.$ZodNumberFormatInternals>, core.$ZodNumberFormat {}
466
+ export const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> = /*@__PURE__*/ core.$constructor(
467
+ "ZodMiniNumberFormat",
468
+ (inst, def) => {
469
+ core.$ZodNumberFormat.init(inst, def);
470
+ ZodMiniNumber.init(inst, def);
471
+ }
472
+ );
473
+
474
+ // int
475
+
476
+ export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
477
+ return core._int(ZodMiniNumberFormat, params);
478
+ }
479
+
480
+ // float32
481
+
482
+ export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
483
+ return core._float32(ZodMiniNumberFormat, params);
484
+ }
485
+
486
+ // float64
487
+
488
+ export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
489
+ return core._float64(ZodMiniNumberFormat, params);
490
+ }
491
+
492
+ // int32
493
+
494
+ export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
495
+ return core._int32(ZodMiniNumberFormat, params);
496
+ }
497
+
498
+ // uint32
499
+
500
+ export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat {
501
+ return core._uint32(ZodMiniNumberFormat, params);
502
+ }
503
+
504
+ // ZodMiniBoolean
505
+ export interface ZodMiniBoolean<T = unknown> extends _ZodMiniType<core.$ZodBooleanInternals<T>> {
506
+ // _zod: core.$ZodBooleanInternals<T>;
507
+ }
508
+ export const ZodMiniBoolean: core.$constructor<ZodMiniBoolean> = /*@__PURE__*/ core.$constructor(
509
+ "ZodMiniBoolean",
510
+ (inst, def) => {
511
+ core.$ZodBoolean.init(inst, def);
512
+ ZodMiniType.init(inst, def);
513
+ }
514
+ );
515
+
516
+ export function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean> {
517
+ return core._boolean(ZodMiniBoolean, params) as any;
518
+ }
519
+
520
+ // ZodMiniBigInt
521
+ export interface ZodMiniBigInt<T = unknown> extends _ZodMiniType<core.$ZodBigIntInternals<T>>, core.$ZodBigInt<T> {
522
+ // _zod: core.$ZodBigIntInternals<T>;
523
+ }
524
+ export const ZodMiniBigInt: core.$constructor<ZodMiniBigInt> = /*@__PURE__*/ core.$constructor(
525
+ "ZodMiniBigInt",
526
+ (inst, def) => {
527
+ core.$ZodBigInt.init(inst, def);
528
+ ZodMiniType.init(inst, def);
529
+ }
530
+ );
531
+
532
+ export function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint> {
533
+ return core._bigint(ZodMiniBigInt, params) as any;
534
+ }
535
+
536
+ // bigint formats
537
+
538
+ // ZodMiniBigIntFormat
539
+ export interface ZodMiniBigIntFormat extends _ZodMiniType<core.$ZodBigIntFormatInternals> {
540
+ // _zod: core.$ZodBigIntFormatInternals;
541
+ }
542
+ export const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> = /*@__PURE__*/ core.$constructor(
543
+ "ZodMiniBigIntFormat",
544
+ (inst, def) => {
545
+ core.$ZodBigIntFormat.init(inst, def);
546
+ ZodMiniBigInt.init(inst, def);
547
+ }
548
+ );
549
+
550
+ // int64
551
+
552
+ export function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat {
553
+ return core._int64(ZodMiniBigIntFormat, params);
554
+ }
555
+
556
+ // uint64
557
+
558
+ export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat {
559
+ return core._uint64(ZodMiniBigIntFormat, params);
560
+ }
561
+
562
+ // ZodMiniSymbol
563
+ export interface ZodMiniSymbol extends _ZodMiniType<core.$ZodSymbolInternals> {
564
+ // _zod: core.$ZodSymbolInternals;
565
+ }
566
+ export const ZodMiniSymbol: core.$constructor<ZodMiniSymbol> = /*@__PURE__*/ core.$constructor(
567
+ "ZodMiniSymbol",
568
+ (inst, def) => {
569
+ core.$ZodSymbol.init(inst, def);
570
+ ZodMiniType.init(inst, def);
571
+ }
572
+ );
573
+
574
+ export function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol {
575
+ return core._symbol(ZodMiniSymbol, params) as any;
576
+ }
577
+
578
+ // ZodMiniUndefined
579
+ export interface ZodMiniUndefined extends _ZodMiniType<core.$ZodUndefinedInternals> {
580
+ // _zod: core.$ZodUndefinedInternals;
581
+ }
582
+ export const ZodMiniUndefined: core.$constructor<ZodMiniUndefined> = /*@__PURE__*/ core.$constructor(
583
+ "ZodMiniUndefined",
584
+ (inst, def) => {
585
+ core.$ZodUndefined.init(inst, def);
586
+ ZodMiniType.init(inst, def);
587
+ }
588
+ );
589
+
590
+ function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined {
591
+ return core._undefined(ZodMiniUndefined, params) as any;
592
+ }
593
+ export { _undefined as undefined };
594
+
595
+ // ZodMiniNull
596
+ export interface ZodMiniNull extends _ZodMiniType<core.$ZodNullInternals> {
597
+ // _zod: core.$ZodNullInternals;
598
+ }
599
+ export const ZodMiniNull: core.$constructor<ZodMiniNull> = /*@__PURE__*/ core.$constructor(
600
+ "ZodMiniNull",
601
+ (inst, def) => {
602
+ core.$ZodNull.init(inst, def);
603
+ ZodMiniType.init(inst, def);
604
+ }
605
+ );
606
+
607
+ function _null(params?: string | core.$ZodNullParams): ZodMiniNull {
608
+ return core._null(ZodMiniNull, params) as any;
609
+ }
610
+ export { _null as null };
611
+
612
+ // ZodMiniAny
613
+ export interface ZodMiniAny extends _ZodMiniType<core.$ZodAnyInternals> {
614
+ // _zod: core.$ZodAnyInternals;
615
+ }
616
+ export const ZodMiniAny: core.$constructor<ZodMiniAny> = /*@__PURE__*/ core.$constructor("ZodMiniAny", (inst, def) => {
617
+ core.$ZodAny.init(inst, def);
618
+ ZodMiniType.init(inst, def);
619
+ });
620
+
621
+ export function any(): ZodMiniAny {
622
+ return core._any(ZodMiniAny) as any;
623
+ }
624
+
625
+ // ZodMiniUnknown
626
+ export interface ZodMiniUnknown extends _ZodMiniType<core.$ZodUnknownInternals> {
627
+ // _zod: core.$ZodUnknownInternals;
628
+ }
629
+ export const ZodMiniUnknown: core.$constructor<ZodMiniUnknown> = /*@__PURE__*/ core.$constructor(
630
+ "ZodMiniUnknown",
631
+ (inst, def) => {
632
+ core.$ZodUnknown.init(inst, def);
633
+ ZodMiniType.init(inst, def);
634
+ }
635
+ );
636
+
637
+ export function unknown(): ZodMiniUnknown {
638
+ return core._unknown(ZodMiniUnknown) as any;
639
+ }
640
+
641
+ // ZodMiniNever
642
+ export interface ZodMiniNever extends _ZodMiniType<core.$ZodNeverInternals> {
643
+ // _zod: core.$ZodNeverInternals;
644
+ }
645
+ export const ZodMiniNever: core.$constructor<ZodMiniNever> = /*@__PURE__*/ core.$constructor(
646
+ "ZodMiniNever",
647
+ (inst, def) => {
648
+ core.$ZodNever.init(inst, def);
649
+ ZodMiniType.init(inst, def);
650
+ }
651
+ );
652
+
653
+ export function never(params?: string | core.$ZodNeverParams): ZodMiniNever {
654
+ return core._never(ZodMiniNever, params) as any;
655
+ }
656
+
657
+ // ZodMiniVoid
658
+ export interface ZodMiniVoid extends _ZodMiniType<core.$ZodVoidInternals> {
659
+ // _zod: core.$ZodVoidInternals;
660
+ }
661
+ export const ZodMiniVoid: core.$constructor<ZodMiniVoid> = /*@__PURE__*/ core.$constructor(
662
+ "ZodMiniVoid",
663
+ (inst, def) => {
664
+ core.$ZodVoid.init(inst, def);
665
+ ZodMiniType.init(inst, def);
666
+ }
667
+ );
668
+
669
+ function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid {
670
+ return core._void(ZodMiniVoid, params) as any;
671
+ }
672
+ export { _void as void };
673
+
674
+ // ZodMiniDate
675
+ export interface ZodMiniDate<T = unknown> extends _ZodMiniType<core.$ZodDateInternals<T>> {
676
+ // _zod: core.$ZodDateInternals<T>;
677
+ }
678
+
679
+ export const ZodMiniDate: core.$constructor<ZodMiniDate> = /*@__PURE__*/ core.$constructor(
680
+ "ZodMiniDate",
681
+ (inst, def) => {
682
+ core.$ZodDate.init(inst, def);
683
+ ZodMiniType.init(inst, def);
684
+ }
685
+ );
686
+
687
+ export function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date> {
688
+ return core._date(ZodMiniDate, params) as any;
689
+ }
690
+
691
+ // ZodMiniArray
692
+ export interface ZodMiniArray<T extends SomeType = core.$ZodType>
693
+ extends _ZodMiniType<core.$ZodArrayInternals<T>>,
694
+ core.$ZodArray<T> {
695
+ // _zod: core.$ZodArrayInternals<T>;
696
+ }
697
+ export const ZodMiniArray: core.$constructor<ZodMiniArray> = /*@__PURE__*/ core.$constructor(
698
+ "ZodMiniArray",
699
+ (inst, def) => {
700
+ core.$ZodArray.init(inst, def);
701
+ ZodMiniType.init(inst, def);
702
+ }
703
+ );
704
+
705
+ export function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
706
+ export function array<T extends SomeType>(element: SomeType, params?: any): ZodMiniArray<T> {
707
+ return new ZodMiniArray({
708
+ type: "array",
709
+ element: element as core.$ZodType,
710
+ ...util.normalizeParams(params),
711
+ }) as any;
712
+ }
713
+
714
+ // .keyof
715
+ export function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<Exclude<keyof T["shape"], symbol>> {
716
+ const shape = schema._zod.def.shape;
717
+ return literal(Object.keys(shape)) as any;
718
+ }
719
+
720
+ // ZodMiniObject
721
+ export interface ZodMiniObject<
722
+ /** @ts-ignore Cast variance */
723
+ out Shape extends core.$ZodShape = core.$ZodShape,
724
+ out Config extends core.$ZodObjectConfig = core.$strip,
725
+ > extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>,
726
+ core.$ZodObject<Shape, Config> {
727
+ shape: Shape;
728
+ }
729
+ export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ core.$constructor(
730
+ "ZodMiniObject",
731
+ (inst, def) => {
732
+ core.$ZodObject.init(inst, def);
733
+ ZodMiniType.init(inst, def);
734
+ util.defineLazy(inst, "shape", () => def.shape);
735
+ }
736
+ );
737
+ export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
738
+ shape?: T,
739
+ params?: string | core.$ZodObjectParams
740
+ ): ZodMiniObject<T, core.$strip> {
741
+ const def: core.$ZodObjectDef = {
742
+ type: "object",
743
+ get shape() {
744
+ util.assignProp(this, "shape", { ...shape });
745
+ return this.shape;
746
+ },
747
+ ...util.normalizeParams(params),
748
+ };
749
+ return new ZodMiniObject(def) as any;
750
+ }
751
+
752
+ // strictObject
753
+ export function strictObject<T extends core.$ZodLooseShape>(
754
+ shape: T,
755
+ params?: string | core.$ZodObjectParams
756
+ ): ZodMiniObject<T, core.$strict> {
757
+ return new ZodMiniObject({
758
+ type: "object",
759
+ // shape: shape as core.$ZodLooseShape,
760
+ get shape() {
761
+ util.assignProp(this, "shape", { ...shape });
762
+ return this.shape;
763
+ },
764
+ catchall: never(),
765
+ ...util.normalizeParams(params),
766
+ }) as any;
767
+ }
768
+
769
+ // looseObject
770
+ export function looseObject<T extends core.$ZodLooseShape>(
771
+ shape: T,
772
+ params?: string | core.$ZodObjectParams
773
+ ): ZodMiniObject<T, core.$loose> {
774
+ return new ZodMiniObject({
775
+ type: "object",
776
+ // shape: shape as core.$ZodLooseShape,
777
+ get shape() {
778
+ util.assignProp(this, "shape", { ...shape });
779
+ return this.shape;
780
+ },
781
+ // get optional() {
782
+ // return util.optionalKeys(shape);
783
+ // },
784
+ catchall: unknown(),
785
+ ...util.normalizeParams(params),
786
+ }) as any;
787
+ }
788
+
789
+ // object methods
790
+ export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
791
+ schema: T,
792
+ shape: U
793
+ ): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]> {
794
+ return util.extend(schema, shape);
795
+ }
796
+
797
+ /** @deprecated Identical to `z.extend(A, B)` */
798
+ export function merge<T extends ZodMiniObject, U extends ZodMiniObject>(
799
+ a: T,
800
+ b: U
801
+ ): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, T["_zod"]["config"]>;
802
+ export function merge(schema: ZodMiniObject, shape: any): ZodMiniObject {
803
+ return util.extend(schema, shape);
804
+ }
805
+
806
+ export function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
807
+ schema: T,
808
+ mask: M
809
+ ): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]> {
810
+ return util.pick(schema, mask as any);
811
+ }
812
+
813
+ // .omit
814
+
815
+ export function omit<T extends ZodMiniObject, const M extends util.Mask<keyof T["shape"]>>(
816
+ schema: T,
817
+ mask: M
818
+ ): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]> {
819
+ return util.omit(schema, mask);
820
+ }
821
+
822
+ export function partial<T extends ZodMiniObject>(
823
+ schema: T
824
+ ): ZodMiniObject<
825
+ {
826
+ [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
827
+ },
828
+ T["_zod"]["config"]
829
+ >;
830
+ export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
831
+ schema: T,
832
+ mask: M
833
+ ): ZodMiniObject<
834
+ {
835
+ [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
836
+ },
837
+ T["_zod"]["config"]
838
+ >;
839
+ export function partial(schema: ZodMiniObject, mask?: object) {
840
+ return util.partial(ZodMiniOptional, schema, mask);
841
+ }
842
+
843
+ export type RequiredInterfaceShape<
844
+ Shape extends core.$ZodLooseShape,
845
+ Keys extends PropertyKey = keyof Shape,
846
+ > = util.Identity<
847
+ {
848
+ [k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional<Shape[k]>;
849
+ } & {
850
+ [k in keyof Shape as k extends Keys ? never : k]: Shape[k];
851
+ }
852
+ >;
853
+
854
+ export function required<T extends ZodMiniObject>(
855
+ schema: T
856
+ ): ZodMiniObject<
857
+ {
858
+ [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
859
+ },
860
+ T["_zod"]["config"]
861
+ >;
862
+ export function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
863
+ schema: T,
864
+ mask: M
865
+ ): ZodMiniObject<
866
+ util.Extend<
867
+ T["shape"],
868
+ {
869
+ [k in keyof M & keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
870
+ }
871
+ >,
872
+ T["_zod"]["config"]
873
+ >;
874
+ export function required(schema: ZodMiniObject, mask?: object) {
875
+ return util.required(ZodMiniNonOptional, schema, mask);
876
+ }
877
+
878
+ export function catchall<T extends ZodMiniObject, U extends SomeType>(
879
+ inst: T,
880
+ catchall: U
881
+ ): ZodMiniObject<T["shape"], core.$catchall<U>> {
882
+ return inst.clone({ ...inst._zod.def, catchall: catchall as any }) as any;
883
+ }
884
+
885
+ // ZodMiniUnion
886
+ export interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$ZodType[]>
887
+ extends _ZodMiniType<core.$ZodUnionInternals<T>> {
888
+ // _zod: core.$ZodUnionInternals<T>;
889
+ }
890
+ export const ZodMiniUnion: core.$constructor<ZodMiniUnion> = /*@__PURE__*/ core.$constructor(
891
+ "ZodMiniUnion",
892
+ (inst, def) => {
893
+ core.$ZodUnion.init(inst, def);
894
+ ZodMiniType.init(inst, def);
895
+ }
896
+ );
897
+
898
+ export function union<const T extends readonly SomeType[]>(
899
+ options: T,
900
+ params?: string | core.$ZodUnionParams
901
+ ): ZodMiniUnion<T> {
902
+ return new ZodMiniUnion({
903
+ type: "union",
904
+ options: options as any as core.$ZodType[],
905
+ ...util.normalizeParams(params),
906
+ }) as any;
907
+ }
908
+
909
+ // ZodMiniDiscriminatedUnion
910
+ export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[]>
911
+ extends ZodMiniUnion<Options> {
912
+ _zod: core.$ZodDiscriminatedUnionInternals<Options>;
913
+ }
914
+ export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion> = /*@__PURE__*/ core.$constructor(
915
+ "ZodMiniDiscriminatedUnion",
916
+ (inst, def) => {
917
+ core.$ZodDiscriminatedUnion.init(inst, def);
918
+ ZodMiniType.init(inst, def);
919
+ }
920
+ );
921
+
922
+ export function discriminatedUnion<
923
+ Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
924
+ >(
925
+ discriminator: string,
926
+ options: Types,
927
+ params?: string | core.$ZodDiscriminatedUnionParams
928
+ ): ZodMiniDiscriminatedUnion<Types> {
929
+ return new ZodMiniDiscriminatedUnion({
930
+ type: "union",
931
+ options,
932
+ discriminator,
933
+ ...util.normalizeParams(params),
934
+ }) as ZodMiniDiscriminatedUnion<Types>;
935
+ }
936
+
937
+ // ZodMiniIntersection
938
+ export interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
939
+ extends _ZodMiniType<core.$ZodIntersectionInternals<A, B>> {
940
+ // _zod: core.$ZodIntersectionInternals<A, B>;
941
+ }
942
+ export const ZodMiniIntersection: core.$constructor<ZodMiniIntersection> = /*@__PURE__*/ core.$constructor(
943
+ "ZodMiniIntersection",
944
+ (inst, def) => {
945
+ core.$ZodIntersection.init(inst, def);
946
+ ZodMiniType.init(inst, def);
947
+ }
948
+ );
949
+
950
+ export function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U> {
951
+ return new ZodMiniIntersection({
952
+ type: "intersection",
953
+ left: left as any as core.$ZodType,
954
+ right: right as any as core.$ZodType,
955
+ }) as any;
956
+ }
957
+
958
+ // ZodMiniTuple
959
+ export interface ZodMiniTuple<
960
+ T extends util.TupleItems = readonly core.$ZodType[],
961
+ Rest extends SomeType | null = core.$ZodType | null,
962
+ > extends _ZodMiniType<core.$ZodTupleInternals<T, Rest>> {
963
+ // _zod: core.$ZodTupleInternals<T, Rest>;
964
+ }
965
+ export const ZodMiniTuple: core.$constructor<ZodMiniTuple> = /*@__PURE__*/ core.$constructor(
966
+ "ZodMiniTuple",
967
+ (inst, def) => {
968
+ core.$ZodTuple.init(inst, def);
969
+ ZodMiniType.init(inst, def);
970
+ }
971
+ );
972
+
973
+ export function tuple<const T extends readonly [SomeType, ...SomeType[]]>(
974
+ items: T,
975
+ params?: string | core.$ZodTupleParams
976
+ ): ZodMiniTuple<T, null>;
977
+ export function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(
978
+ items: T,
979
+ rest: Rest,
980
+ params?: string | core.$ZodTupleParams
981
+ ): ZodMiniTuple<T, Rest>;
982
+ export function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
983
+ export function tuple(
984
+ items: SomeType[],
985
+ _paramsOrRest?: string | core.$ZodTupleParams | SomeType,
986
+ _params?: string | core.$ZodTupleParams
987
+ ) {
988
+ const hasRest = _paramsOrRest instanceof core.$ZodType;
989
+ const params = hasRest ? _params : _paramsOrRest;
990
+ const rest = hasRest ? _paramsOrRest : null;
991
+ return new ZodMiniTuple({
992
+ type: "tuple",
993
+ items: items as any as core.$ZodType[],
994
+ rest,
995
+ ...util.normalizeParams(params),
996
+ });
997
+ }
998
+
999
+ // ZodMiniRecord
1000
+ export interface ZodMiniRecord<
1001
+ Key extends core.$ZodRecordKey = core.$ZodRecordKey,
1002
+ Value extends SomeType = core.$ZodType,
1003
+ > extends _ZodMiniType<core.$ZodRecordInternals<Key, Value>> {
1004
+ // _zod: core.$ZodRecordInternals<Key, Value>;
1005
+ }
1006
+ export const ZodMiniRecord: core.$constructor<ZodMiniRecord> = /*@__PURE__*/ core.$constructor(
1007
+ "ZodMiniRecord",
1008
+ (inst, def) => {
1009
+ core.$ZodRecord.init(inst, def);
1010
+ ZodMiniType.init(inst, def);
1011
+ }
1012
+ );
1013
+
1014
+ export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
1015
+ keyType: Key,
1016
+ valueType: Value,
1017
+ params?: string | core.$ZodRecordParams
1018
+ ): ZodMiniRecord<Key, Value> {
1019
+ return new ZodMiniRecord({
1020
+ type: "record",
1021
+ keyType,
1022
+ valueType: valueType as any as core.$ZodType,
1023
+ ...util.normalizeParams(params),
1024
+ }) as any;
1025
+ }
1026
+ export function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
1027
+ keyType: Key,
1028
+ valueType: Value,
1029
+ params?: string | core.$ZodRecordParams
1030
+ ): ZodMiniRecord<Key & core.$partial, Value> {
1031
+ const k = core.clone(keyType);
1032
+ k._zod.values = undefined;
1033
+ return new ZodMiniRecord({
1034
+ type: "record",
1035
+ keyType: k,
1036
+ valueType: valueType as any,
1037
+ ...util.normalizeParams(params),
1038
+ }) as any;
1039
+ }
1040
+
1041
+ // ZodMiniMap
1042
+ export interface ZodMiniMap<Key extends SomeType = core.$ZodType, Value extends SomeType = core.$ZodType>
1043
+ extends _ZodMiniType<core.$ZodMapInternals<Key, Value>> {
1044
+ // _zod: core.$ZodMapInternals<Key, Value>;
1045
+ }
1046
+ export const ZodMiniMap: core.$constructor<ZodMiniMap> = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, def) => {
1047
+ core.$ZodMap.init(inst, def);
1048
+ ZodMiniType.init(inst, def);
1049
+ });
1050
+
1051
+ export function map<Key extends SomeType, Value extends SomeType>(
1052
+ keyType: Key,
1053
+ valueType: Value,
1054
+ params?: string | core.$ZodMapParams
1055
+ ): ZodMiniMap<Key, Value> {
1056
+ return new ZodMiniMap({
1057
+ type: "map",
1058
+ keyType: keyType as any as core.$ZodType,
1059
+ valueType: valueType as any as core.$ZodType,
1060
+ ...util.normalizeParams(params),
1061
+ }) as any;
1062
+ }
1063
+
1064
+ // ZodMiniSet
1065
+ export interface ZodMiniSet<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSetInternals<T>> {
1066
+ // _zod: core.$ZodSetInternals<T>;
1067
+ }
1068
+ export const ZodMiniSet: core.$constructor<ZodMiniSet> = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, def) => {
1069
+ core.$ZodSet.init(inst, def);
1070
+ ZodMiniType.init(inst, def);
1071
+ });
1072
+
1073
+ export function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value> {
1074
+ return new ZodMiniSet({
1075
+ type: "set",
1076
+ valueType: valueType as any as core.$ZodType,
1077
+ ...util.normalizeParams(params),
1078
+ }) as any;
1079
+ }
1080
+
1081
+ // ZodMiniEnum
1082
+ export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> {
1083
+ // _zod: core.$ZodEnumInternals<T>;
1084
+ }
1085
+ export const ZodMiniEnum: core.$constructor<ZodMiniEnum> = /*@__PURE__*/ core.$constructor(
1086
+ "ZodMiniEnum",
1087
+ (inst, def) => {
1088
+ core.$ZodEnum.init(inst, def);
1089
+ ZodMiniType.init(inst, def);
1090
+ }
1091
+ );
1092
+
1093
+ function _enum<const T extends readonly string[]>(
1094
+ values: T,
1095
+ params?: string | core.$ZodEnumParams
1096
+ ): ZodMiniEnum<util.ToEnum<T[number]>>;
1097
+ function _enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
1098
+ function _enum(values: any, params?: string | core.$ZodEnumParams) {
1099
+ const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1100
+
1101
+ return new ZodMiniEnum({
1102
+ type: "enum",
1103
+ entries,
1104
+ ...util.normalizeParams(params),
1105
+ }) as any;
1106
+ }
1107
+ export { _enum as enum };
1108
+
1109
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1110
+ *
1111
+ * ```ts
1112
+ * enum Colors { red, green, blue }
1113
+ * z.enum(Colors);
1114
+ * ```
1115
+ */
1116
+ export function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T> {
1117
+ return new ZodMiniEnum({
1118
+ type: "enum",
1119
+ entries,
1120
+ ...util.normalizeParams(params),
1121
+ }) as any as ZodMiniEnum<T>;
1122
+ }
1123
+
1124
+ // ZodMiniLiteral
1125
+ export interface ZodMiniLiteral<T extends util.Literal = util.Literal>
1126
+ extends _ZodMiniType<core.$ZodLiteralInternals<T>> {
1127
+ // _zod: core.$ZodLiteralInternals<T>;
1128
+ }
1129
+ export const ZodMiniLiteral: core.$constructor<ZodMiniLiteral> = /*@__PURE__*/ core.$constructor(
1130
+ "ZodMiniLiteral",
1131
+ (inst, def) => {
1132
+ core.$ZodLiteral.init(inst, def);
1133
+ ZodMiniType.init(inst, def);
1134
+ }
1135
+ );
1136
+
1137
+ export function literal<const T extends ReadonlyArray<util.Literal>>(
1138
+ value: T,
1139
+ params?: string | core.$ZodLiteralParams
1140
+ ): ZodMiniLiteral<T[number]>;
1141
+ export function literal<const T extends util.Literal>(
1142
+ value: T,
1143
+ params?: string | core.$ZodLiteralParams
1144
+ ): ZodMiniLiteral<T>;
1145
+ export function literal(value: any, params: any) {
1146
+ return new ZodMiniLiteral({
1147
+ type: "literal",
1148
+ values: Array.isArray(value) ? value : [value],
1149
+ ...util.normalizeParams(params),
1150
+ });
1151
+ }
1152
+
1153
+ // ZodMiniFile
1154
+ export interface ZodMiniFile extends _ZodMiniType<core.$ZodFileInternals> {
1155
+ // _zod: core.$ZodFileInternals;
1156
+ }
1157
+ export const ZodMiniFile: core.$constructor<ZodMiniFile> = /*@__PURE__*/ core.$constructor(
1158
+ "ZodMiniFile",
1159
+ (inst, def) => {
1160
+ core.$ZodFile.init(inst, def);
1161
+ ZodMiniType.init(inst, def);
1162
+ }
1163
+ );
1164
+
1165
+ export function file(params?: string | core.$ZodFileParams): ZodMiniFile {
1166
+ return core._file(ZodMiniFile, params) as any;
1167
+ }
1168
+
1169
+ // ZodMiniTransform
1170
+ export interface ZodMiniTransform<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodTransformInternals<O, I>> {
1171
+ // _zod: core.$ZodTransformInternals<O, I>;
1172
+ }
1173
+ export const ZodMiniTransform: core.$constructor<ZodMiniTransform> = /*@__PURE__*/ core.$constructor(
1174
+ "ZodMiniTransform",
1175
+ (inst, def) => {
1176
+ core.$ZodTransform.init(inst, def);
1177
+ ZodMiniType.init(inst, def);
1178
+ }
1179
+ );
1180
+
1181
+ export function transform<I = unknown, O = I>(
1182
+ fn: (input: I, ctx: core.ParsePayload) => O
1183
+ ): ZodMiniTransform<Awaited<O>, I> {
1184
+ return new ZodMiniTransform({
1185
+ type: "transform",
1186
+ transform: fn as any,
1187
+ }) as any;
1188
+ }
1189
+
1190
+ // ZodMiniOptional
1191
+ export interface ZodMiniOptional<T extends SomeType = core.$ZodType>
1192
+ extends _ZodMiniType<core.$ZodOptionalInternals<T>>,
1193
+ core.$ZodOptional<T> {
1194
+ // _zod: core.$ZodOptionalInternals<T>;
1195
+ }
1196
+ export const ZodMiniOptional: core.$constructor<ZodMiniOptional> = /*@__PURE__*/ core.$constructor(
1197
+ "ZodMiniOptional",
1198
+ (inst, def) => {
1199
+ core.$ZodOptional.init(inst, def);
1200
+ ZodMiniType.init(inst, def);
1201
+ }
1202
+ );
1203
+
1204
+ export function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> {
1205
+ return new ZodMiniOptional({
1206
+ type: "optional",
1207
+ innerType: innerType as any as core.$ZodType,
1208
+ }) as any;
1209
+ }
1210
+
1211
+ // ZodMiniNullable
1212
+ export interface ZodMiniNullable<T extends SomeType = core.$ZodType>
1213
+ extends _ZodMiniType<core.$ZodNullableInternals<T>> {
1214
+ // _zod: core.$ZodNullableInternals<T>;
1215
+ }
1216
+ export const ZodMiniNullable: core.$constructor<ZodMiniNullable> = /*@__PURE__*/ core.$constructor(
1217
+ "ZodMiniNullable",
1218
+ (inst, def) => {
1219
+ core.$ZodNullable.init(inst, def);
1220
+ ZodMiniType.init(inst, def);
1221
+ }
1222
+ );
1223
+
1224
+ export function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> {
1225
+ return new ZodMiniNullable({
1226
+ type: "nullable",
1227
+ innerType: innerType as any as core.$ZodType,
1228
+ }) as any;
1229
+ }
1230
+
1231
+ // nullish
1232
+ export function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>> {
1233
+ return optional(nullable(innerType));
1234
+ }
1235
+
1236
+ // ZodMiniDefault
1237
+ export interface ZodMiniDefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodDefaultInternals<T>> {
1238
+ // _zod: core.$ZodDefaultInternals<T>;
1239
+ }
1240
+ export const ZodMiniDefault: core.$constructor<ZodMiniDefault> = /*@__PURE__*/ core.$constructor(
1241
+ "ZodMiniDefault",
1242
+ (inst, def) => {
1243
+ core.$ZodDefault.init(inst, def);
1244
+ ZodMiniType.init(inst, def);
1245
+ }
1246
+ );
1247
+
1248
+ export function _default<T extends SomeType>(
1249
+ innerType: T,
1250
+ defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
1251
+ ): ZodMiniDefault<T> {
1252
+ return new ZodMiniDefault({
1253
+ type: "default",
1254
+ innerType: innerType as any as core.$ZodType,
1255
+ get defaultValue() {
1256
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : defaultValue;
1257
+ },
1258
+ }) as any;
1259
+ }
1260
+
1261
+ // ZodMiniPrefault
1262
+ export interface ZodMiniPrefault<T extends SomeType = core.$ZodType>
1263
+ extends _ZodMiniType<core.$ZodPrefaultInternals<T>> {
1264
+ // _zod: core.$ZodPrefaultInternals<T>;
1265
+ }
1266
+ export const ZodMiniPrefault: core.$constructor<ZodMiniPrefault> = /*@__PURE__*/ core.$constructor(
1267
+ "ZodMiniPrefault",
1268
+ (inst, def) => {
1269
+ core.$ZodPrefault.init(inst, def);
1270
+ ZodMiniType.init(inst, def);
1271
+ }
1272
+ );
1273
+ export function prefault<T extends SomeType>(
1274
+ innerType: T,
1275
+ defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)
1276
+ ): ZodMiniPrefault<T> {
1277
+ return new ZodMiniPrefault({
1278
+ type: "prefault",
1279
+ innerType: innerType as any as core.$ZodType,
1280
+ get defaultValue() {
1281
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : defaultValue;
1282
+ },
1283
+ }) as any;
1284
+ }
1285
+
1286
+ // ZodMiniNonOptional
1287
+ export interface ZodMiniNonOptional<T extends SomeType = core.$ZodType>
1288
+ extends _ZodMiniType<core.$ZodNonOptionalInternals<T>> {
1289
+ // _zod: core.$ZodNonOptionalInternals<T>;
1290
+ }
1291
+ export const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional> = /*@__PURE__*/ core.$constructor(
1292
+ "ZodMiniNonOptional",
1293
+ (inst, def) => {
1294
+ core.$ZodNonOptional.init(inst, def);
1295
+ ZodMiniType.init(inst, def);
1296
+ }
1297
+ );
1298
+
1299
+ export function nonoptional<T extends SomeType>(
1300
+ innerType: T,
1301
+ params?: string | core.$ZodNonOptionalParams
1302
+ ): ZodMiniNonOptional<T> {
1303
+ return new ZodMiniNonOptional({
1304
+ type: "nonoptional",
1305
+ innerType: innerType as any as core.$ZodType,
1306
+ ...util.normalizeParams(params),
1307
+ }) as any;
1308
+ }
1309
+
1310
+ // ZodMiniSuccess
1311
+ export interface ZodMiniSuccess<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSuccessInternals<T>> {
1312
+ // _zod: core.$ZodSuccessInternals<T>;
1313
+ }
1314
+ export const ZodMiniSuccess: core.$constructor<ZodMiniSuccess> = /*@__PURE__*/ core.$constructor(
1315
+ "ZodMiniSuccess",
1316
+ (inst, def) => {
1317
+ core.$ZodSuccess.init(inst, def);
1318
+ ZodMiniType.init(inst, def);
1319
+ }
1320
+ );
1321
+
1322
+ export function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T> {
1323
+ return new ZodMiniSuccess({
1324
+ type: "success",
1325
+ innerType: innerType as any as core.$ZodType,
1326
+ }) as any;
1327
+ }
1328
+
1329
+ // ZodMiniCatch
1330
+ export interface ZodMiniCatch<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodCatchInternals<T>> {
1331
+ // _zod: core.$ZodCatchInternals<T>;
1332
+ }
1333
+ export const ZodMiniCatch: core.$constructor<ZodMiniCatch> = /*@__PURE__*/ core.$constructor(
1334
+ "ZodMiniCatch",
1335
+ (inst, def) => {
1336
+ core.$ZodCatch.init(inst, def);
1337
+ ZodMiniType.init(inst, def);
1338
+ }
1339
+ );
1340
+
1341
+ function _catch<T extends SomeType>(
1342
+ innerType: T,
1343
+ catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)
1344
+ ): ZodMiniCatch<T> {
1345
+ return new ZodMiniCatch({
1346
+ type: "catch",
1347
+ innerType: innerType as any as core.$ZodType,
1348
+ catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue) as (
1349
+ ctx: core.$ZodCatchCtx
1350
+ ) => core.output<T>,
1351
+ }) as any;
1352
+ }
1353
+ export { _catch as catch };
1354
+
1355
+ // ZodMiniNaN
1356
+ export interface ZodMiniNaN extends _ZodMiniType<core.$ZodNaNInternals> {
1357
+ // _zod: core.$ZodNaNInternals;
1358
+ }
1359
+ export const ZodMiniNaN: core.$constructor<ZodMiniNaN> = /*@__PURE__*/ core.$constructor("ZodMiniNaN", (inst, def) => {
1360
+ core.$ZodNaN.init(inst, def);
1361
+ ZodMiniType.init(inst, def);
1362
+ });
1363
+
1364
+ export function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN {
1365
+ return core._nan(ZodMiniNaN, params) as any;
1366
+ }
1367
+
1368
+ // ZodMiniPipe
1369
+ export interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
1370
+ extends _ZodMiniType<core.$ZodPipeInternals<A, B>> {
1371
+ // _zod: core.$ZodPipeInternals<A, B>;
1372
+ }
1373
+ export const ZodMiniPipe: core.$constructor<ZodMiniPipe> = /*@__PURE__*/ core.$constructor(
1374
+ "ZodMiniPipe",
1375
+ (inst, def) => {
1376
+ core.$ZodPipe.init(inst, def);
1377
+ ZodMiniType.init(inst, def);
1378
+ }
1379
+ );
1380
+
1381
+ export function pipe<
1382
+ const A extends SomeType,
1383
+ B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>,
1384
+ >(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B> {
1385
+ return new ZodMiniPipe({
1386
+ type: "pipe",
1387
+ in: in_ as any as core.$ZodType,
1388
+ out: out as any as core.$ZodType,
1389
+ }) as any;
1390
+ }
1391
+
1392
+ // /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
1393
+ // export function preprocess<A, U extends core.$ZodType>(
1394
+ // fn: (arg: unknown, ctx: core.ParsePayload) => A,
1395
+ // schema: U,
1396
+ // params?: ZodPreprocessParams
1397
+ // ): ZodPipe<ZodTransform<A, unknown>, U> {
1398
+ // return pipe(transform(fn as any, params), schema as any, params);
1399
+ // }
1400
+
1401
+ // ZodMiniReadonly
1402
+ export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
1403
+ extends _ZodMiniType<core.$ZodReadonlyInternals<T>> {
1404
+ // _zod: core.$ZodReadonlyInternals<T>;
1405
+ }
1406
+ export const ZodMiniReadonly: core.$constructor<ZodMiniReadonly> = /*@__PURE__*/ core.$constructor(
1407
+ "ZodMiniReadonly",
1408
+ (inst, def) => {
1409
+ core.$ZodReadonly.init(inst, def);
1410
+ ZodMiniType.init(inst, def);
1411
+ }
1412
+ );
1413
+
1414
+ export function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T> {
1415
+ return new ZodMiniReadonly({
1416
+ type: "readonly",
1417
+ innerType: innerType as any as core.$ZodType,
1418
+ }) as any;
1419
+ }
1420
+
1421
+ // ZodMiniTemplateLiteral
1422
+ export interface ZodMiniTemplateLiteral<Template extends string = string>
1423
+ extends _ZodMiniType<core.$ZodTemplateLiteralInternals<Template>> {
1424
+ // _zod: core.$ZodTemplateLiteralInternals<Template>;
1425
+ }
1426
+ export const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral> = /*@__PURE__*/ core.$constructor(
1427
+ "ZodMiniTemplateLiteral",
1428
+ (inst, def) => {
1429
+ core.$ZodTemplateLiteral.init(inst, def);
1430
+ ZodMiniType.init(inst, def);
1431
+ }
1432
+ );
1433
+
1434
+ export function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(
1435
+ parts: Parts,
1436
+ params?: string | core.$ZodTemplateLiteralParams
1437
+ ): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> {
1438
+ return new ZodMiniTemplateLiteral({
1439
+ type: "template_literal",
1440
+ parts,
1441
+ ...util.normalizeParams(params),
1442
+ }) as any;
1443
+ }
1444
+
1445
+ // ZodMiniLazy
1446
+ export interface ZodMiniLazy<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodLazyInternals<T>> {
1447
+ // _zod: core.$ZodLazyInternals<T>;
1448
+ }
1449
+ export const ZodMiniLazy: core.$constructor<ZodMiniLazy> = /*@__PURE__*/ core.$constructor(
1450
+ "ZodMiniLazy",
1451
+ (inst, def) => {
1452
+ core.$ZodLazy.init(inst, def);
1453
+ ZodMiniType.init(inst, def);
1454
+ }
1455
+ );
1456
+
1457
+ // export function lazy<T extends object>(getter: () => T): T {
1458
+ // return util.createTransparentProxy<T>(getter);
1459
+ // }
1460
+ function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T> {
1461
+ return new ZodMiniLazy({
1462
+ type: "lazy",
1463
+ getter: getter as any,
1464
+ }) as any;
1465
+ }
1466
+ export { _lazy as lazy };
1467
+
1468
+ // ZodMiniPromise
1469
+ export interface ZodMiniPromise<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPromiseInternals<T>> {
1470
+ // _zod: core.$ZodPromiseInternals<T>;
1471
+ }
1472
+ export const ZodMiniPromise: core.$constructor<ZodMiniPromise> = /*@__PURE__*/ core.$constructor(
1473
+ "ZodMiniPromise",
1474
+ (inst, def) => {
1475
+ core.$ZodPromise.init(inst, def);
1476
+ ZodMiniType.init(inst, def);
1477
+ }
1478
+ );
1479
+
1480
+ export function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T> {
1481
+ return new ZodMiniPromise({
1482
+ type: "promise",
1483
+ innerType: innerType as any as core.$ZodType,
1484
+ }) as any;
1485
+ }
1486
+
1487
+ // ZodMiniCustom
1488
+ export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
1489
+ // _zod: core.$ZodCustomInternals<O, I>;
1490
+ }
1491
+ export const ZodMiniCustom: core.$constructor<ZodMiniCustom> = /*@__PURE__*/ core.$constructor(
1492
+ "ZodMiniCustom",
1493
+ (inst, def) => {
1494
+ core.$ZodCustom.init(inst, def);
1495
+ ZodMiniType.init(inst, def);
1496
+ }
1497
+ );
1498
+
1499
+ // custom checks
1500
+ export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> {
1501
+ const ch = new core.$ZodCheck({
1502
+ check: "custom",
1503
+ ...util.normalizeParams(params),
1504
+ });
1505
+
1506
+ ch._zod.check = fn;
1507
+ return ch;
1508
+ }
1509
+
1510
+ // ZodCustom
1511
+ // custom schema
1512
+ export function custom<O = unknown, I = O>(
1513
+ fn?: (data: O) => unknown,
1514
+ _params?: string | core.$ZodCustomParams | undefined
1515
+ ): ZodMiniCustom<O, I> {
1516
+ return core._custom(ZodMiniCustom, fn ?? (() => true), _params) as any;
1517
+ }
1518
+
1519
+ // refine
1520
+ export function refine<T>(
1521
+ fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
1522
+ _params: string | core.$ZodCustomParams = {}
1523
+ ): core.$ZodCheck<T> {
1524
+ return core._refine(ZodMiniCustom, fn, _params);
1525
+ }
1526
+
1527
+ // superRefine
1528
+ export function superRefine<T>(
1529
+ fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>
1530
+ ): core.$ZodCheck<T> {
1531
+ return core._superRefine(fn);
1532
+ }
1533
+
1534
+ // instanceof
1535
+ abstract class Class {
1536
+ constructor(..._args: any[]) {}
1537
+ }
1538
+ function _instanceof<T extends typeof Class>(
1539
+ cls: T,
1540
+ params: core.$ZodCustomParams = {
1541
+ error: `Input not instance of ${cls.name}`,
1542
+ }
1543
+ ): ZodMiniCustom<InstanceType<T>, InstanceType<T>> {
1544
+ const inst = custom((data) => data instanceof cls, params);
1545
+ inst._zod.bag.Class = cls;
1546
+ return inst as any;
1547
+ }
1548
+ export { _instanceof as instanceof };
1549
+
1550
+ // stringbool
1551
+ export const stringbool: (
1552
+ _params?: string | core.$ZodStringBoolParams
1553
+ ) => ZodMiniPipe<ZodMiniPipe<ZodMiniString, ZodMiniTransform<boolean, string>>, ZodMiniBoolean> = (...args) =>
1554
+ core._stringbool(
1555
+ {
1556
+ Pipe: ZodMiniPipe,
1557
+ Boolean: ZodMiniBoolean,
1558
+ String: ZodMiniString,
1559
+ Transform: ZodMiniTransform,
1560
+ },
1561
+ ...args
1562
+ ) as any;
1563
+
1564
+ // json
1565
+
1566
+ // json
1567
+ type _ZodMiniJSONSchema = ZodMiniUnion<
1568
+ [
1569
+ ZodMiniString,
1570
+ ZodMiniNumber,
1571
+ ZodMiniBoolean,
1572
+ ZodMiniNull,
1573
+ ZodMiniArray<ZodMiniJSONSchema>,
1574
+ ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>,
1575
+ ]
1576
+ >;
1577
+ type _ZodMiniJSONSchemaInternals = _ZodMiniJSONSchema["_zod"];
1578
+
1579
+ export interface ZodMiniJSONSchemaInternals extends _ZodMiniJSONSchemaInternals {
1580
+ output: util.JSONType;
1581
+ input: util.JSONType;
1582
+ }
1583
+ export interface ZodMiniJSONSchema extends _ZodMiniJSONSchema {
1584
+ _zod: ZodMiniJSONSchemaInternals;
1585
+ }
1586
+
1587
+ export function json(): ZodMiniJSONSchema {
1588
+ const jsonSchema: any = _lazy(() => {
1589
+ return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
1590
+ });
1591
+ return jsonSchema;
1592
+ }