agentf 0.7.0 → 0.8.0

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