@openclaw/firecrawl-plugin 2026.9.8 → 2026.10.1-beta.2

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 (850) hide show
  1. package/dist/.setup/{firecrawl-client-S2gdb9zo.mjs → firecrawl-client-Bqyr6x90.mjs} +58 -104
  2. package/dist/.setup/{firecrawl-fetch-provider-Cq_h8okw.mjs → firecrawl-fetch-provider-CcYAp_u6.mjs} +1 -1
  3. package/dist/.setup/{firecrawl-search-provider-DzEHIoq7.mjs → firecrawl-search-provider-lAiZ3IJ5.mjs} +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/index.js +17 -28
  6. package/dist/web-fetch-contract-api.js +1 -1
  7. package/dist/web-fetch-provider.js +1 -1
  8. package/dist/web-search-contract-api.js +1 -1
  9. package/dist/web-search-provider.js +1 -1
  10. package/package.json +6 -8
  11. package/node_modules/zod/LICENSE +0 -21
  12. package/node_modules/zod/README.md +0 -218
  13. package/node_modules/zod/compile.cjs +0 -96
  14. package/node_modules/zod/compile.d.cts +0 -1
  15. package/node_modules/zod/compile.d.ts +0 -1
  16. package/node_modules/zod/compile.js +0 -52
  17. package/node_modules/zod/index.cjs +0 -52
  18. package/node_modules/zod/index.d.cts +0 -3
  19. package/node_modules/zod/index.d.ts +0 -3
  20. package/node_modules/zod/index.js +0 -7
  21. package/node_modules/zod/locales/index.cjs +0 -36
  22. package/node_modules/zod/locales/index.d.cts +0 -1
  23. package/node_modules/zod/locales/index.d.ts +0 -1
  24. package/node_modules/zod/locales/index.js +0 -1
  25. package/node_modules/zod/locales/package.json +0 -7
  26. package/node_modules/zod/mini/index.cjs +0 -51
  27. package/node_modules/zod/mini/index.d.cts +0 -3
  28. package/node_modules/zod/mini/index.d.ts +0 -3
  29. package/node_modules/zod/mini/index.js +0 -3
  30. package/node_modules/zod/mini/package.json +0 -7
  31. package/node_modules/zod/package.json +0 -147
  32. package/node_modules/zod/src/compile.ts +0 -56
  33. package/node_modules/zod/src/index.ts +0 -7
  34. package/node_modules/zod/src/locales/index.ts +0 -1
  35. package/node_modules/zod/src/mini/index.ts +0 -3
  36. package/node_modules/zod/src/v3/ZodError.ts +0 -340
  37. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  38. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  39. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  40. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  41. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  42. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  43. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  44. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  45. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  46. package/node_modules/zod/src/v3/errors.ts +0 -13
  47. package/node_modules/zod/src/v3/external.ts +0 -6
  48. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  49. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  50. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  51. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  52. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  53. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  54. package/node_modules/zod/src/v3/index.ts +0 -4
  55. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  56. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  57. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  58. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  59. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  60. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  61. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  62. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  63. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  64. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  65. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  66. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  67. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  68. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  69. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  70. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  71. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  72. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  73. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  74. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  75. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  76. package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
  77. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  78. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  79. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  80. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  81. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  82. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
  83. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  84. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
  85. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  86. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  87. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  88. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  89. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  90. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  91. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  92. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  93. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  94. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  95. package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
  96. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  97. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  98. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  99. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  100. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  101. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  102. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  103. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  104. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  105. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
  106. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  107. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  108. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  109. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  110. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  111. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  112. package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
  113. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  114. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  115. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  116. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  117. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  118. package/node_modules/zod/src/v3/types.ts +0 -5138
  119. package/node_modules/zod/src/v4/classic/checks.ts +0 -33
  120. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  121. package/node_modules/zod/src/v4/classic/compat.ts +0 -78
  122. package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
  123. package/node_modules/zod/src/v4/classic/errors.ts +0 -97
  124. package/node_modules/zod/src/v4/classic/external.ts +0 -57
  125. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -944
  126. package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
  127. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  128. package/node_modules/zod/src/v4/classic/iso.ts +0 -20
  129. package/node_modules/zod/src/v4/classic/parse.ts +0 -88
  130. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2937
  131. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  132. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
  133. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  134. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -402
  135. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  136. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  137. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  138. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -89
  139. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  140. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
  141. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  142. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
  143. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
  144. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  145. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  146. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
  147. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  148. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -985
  149. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
  150. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
  151. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
  152. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
  153. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
  154. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  155. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  156. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
  157. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -942
  158. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -305
  159. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
  160. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -1108
  161. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  162. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  163. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  164. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1467
  165. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
  166. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  167. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
  168. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
  169. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +0 -81
  170. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
  171. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
  172. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -319
  173. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -127
  174. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
  175. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -215
  176. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
  177. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  178. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
  179. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
  180. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  181. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  182. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -342
  183. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  184. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  185. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  186. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  187. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -401
  188. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -1006
  189. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -235
  190. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
  191. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
  192. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  193. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  194. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -144
  195. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
  196. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  197. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  198. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  199. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +0 -141
  200. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  201. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
  202. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
  203. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -707
  204. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
  205. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
  206. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  207. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -190
  208. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -153
  209. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  210. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1440
  211. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
  212. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -812
  213. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  214. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4733
  215. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  216. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
  217. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
  218. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  219. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -645
  220. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  221. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  222. package/node_modules/zod/src/v4/core/api.ts +0 -1875
  223. package/node_modules/zod/src/v4/core/checks.ts +0 -1266
  224. package/node_modules/zod/src/v4/core/compile.ts +0 -2313
  225. package/node_modules/zod/src/v4/core/core.ts +0 -230
  226. package/node_modules/zod/src/v4/core/doc.ts +0 -52
  227. package/node_modules/zod/src/v4/core/errors.ts +0 -543
  228. package/node_modules/zod/src/v4/core/index.ts +0 -19
  229. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
  230. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -934
  231. package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
  232. package/node_modules/zod/src/v4/core/memoizer.ts +0 -331
  233. package/node_modules/zod/src/v4/core/parse.ts +0 -309
  234. package/node_modules/zod/src/v4/core/regexes.ts +0 -217
  235. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  236. package/node_modules/zod/src/v4/core/schemas.ts +0 -5192
  237. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  238. package/node_modules/zod/src/v4/core/tests/cached.test.ts +0 -54
  239. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -1004
  240. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +0 -445
  241. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
  242. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
  243. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
  244. package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -2036
  245. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +0 -140
  246. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  247. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  248. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  249. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
  250. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  251. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
  252. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  253. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  254. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  255. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  256. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
  257. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  258. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +0 -85
  259. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
  260. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  261. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  262. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +0 -46
  263. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  264. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  265. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
  266. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -133
  267. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -857
  268. package/node_modules/zod/src/v4/core/util.ts +0 -1280
  269. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  270. package/node_modules/zod/src/v4/core/visit.ts +0 -193
  271. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  272. package/node_modules/zod/src/v4/index.ts +0 -4
  273. package/node_modules/zod/src/v4/locales/ar.ts +0 -120
  274. package/node_modules/zod/src/v4/locales/az.ts +0 -116
  275. package/node_modules/zod/src/v4/locales/be.ts +0 -188
  276. package/node_modules/zod/src/v4/locales/bg.ts +0 -133
  277. package/node_modules/zod/src/v4/locales/bn.ts +0 -123
  278. package/node_modules/zod/src/v4/locales/ca.ts +0 -121
  279. package/node_modules/zod/src/v4/locales/ckb.ts +0 -140
  280. package/node_modules/zod/src/v4/locales/cs.ts +0 -123
  281. package/node_modules/zod/src/v4/locales/da.ts +0 -128
  282. package/node_modules/zod/src/v4/locales/de.ts +0 -121
  283. package/node_modules/zod/src/v4/locales/el.ts +0 -124
  284. package/node_modules/zod/src/v4/locales/en.ts +0 -136
  285. package/node_modules/zod/src/v4/locales/eo.ts +0 -123
  286. package/node_modules/zod/src/v4/locales/es.ts +0 -145
  287. package/node_modules/zod/src/v4/locales/fa.ts +0 -131
  288. package/node_modules/zod/src/v4/locales/fi.ts +0 -126
  289. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -121
  290. package/node_modules/zod/src/v4/locales/fr.ts +0 -139
  291. package/node_modules/zod/src/v4/locales/gu.ts +0 -123
  292. package/node_modules/zod/src/v4/locales/he.ts +0 -253
  293. package/node_modules/zod/src/v4/locales/hi.ts +0 -126
  294. package/node_modules/zod/src/v4/locales/hr.ts +0 -135
  295. package/node_modules/zod/src/v4/locales/hu.ts +0 -122
  296. package/node_modules/zod/src/v4/locales/hy.ts +0 -175
  297. package/node_modules/zod/src/v4/locales/id.ts +0 -120
  298. package/node_modules/zod/src/v4/locales/index.ts +0 -63
  299. package/node_modules/zod/src/v4/locales/is.ts +0 -124
  300. package/node_modules/zod/src/v4/locales/it.ts +0 -121
  301. package/node_modules/zod/src/v4/locales/ja.ts +0 -119
  302. package/node_modules/zod/src/v4/locales/ka.ts +0 -128
  303. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  304. package/node_modules/zod/src/v4/locales/km.ts +0 -124
  305. package/node_modules/zod/src/v4/locales/kn.ts +0 -126
  306. package/node_modules/zod/src/v4/locales/ko.ts +0 -126
  307. package/node_modules/zod/src/v4/locales/lt.ts +0 -243
  308. package/node_modules/zod/src/v4/locales/mk.ts +0 -123
  309. package/node_modules/zod/src/v4/locales/ms.ts +0 -120
  310. package/node_modules/zod/src/v4/locales/ne.ts +0 -128
  311. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  312. package/node_modules/zod/src/v4/locales/nn.ts +0 -121
  313. package/node_modules/zod/src/v4/locales/no.ts +0 -121
  314. package/node_modules/zod/src/v4/locales/ota.ts +0 -122
  315. package/node_modules/zod/src/v4/locales/pl.ts +0 -123
  316. package/node_modules/zod/src/v4/locales/ps.ts +0 -131
  317. package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -161
  318. package/node_modules/zod/src/v4/locales/pt.ts +0 -159
  319. package/node_modules/zod/src/v4/locales/ro.ts +0 -132
  320. package/node_modules/zod/src/v4/locales/ru.ts +0 -188
  321. package/node_modules/zod/src/v4/locales/sk.ts +0 -123
  322. package/node_modules/zod/src/v4/locales/sl.ts +0 -123
  323. package/node_modules/zod/src/v4/locales/sv.ts +0 -124
  324. package/node_modules/zod/src/v4/locales/ta.ts +0 -123
  325. package/node_modules/zod/src/v4/locales/tg.ts +0 -135
  326. package/node_modules/zod/src/v4/locales/th.ts +0 -124
  327. package/node_modules/zod/src/v4/locales/tk.ts +0 -113
  328. package/node_modules/zod/src/v4/locales/tr.ts +0 -116
  329. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  330. package/node_modules/zod/src/v4/locales/uk.ts +0 -122
  331. package/node_modules/zod/src/v4/locales/ur.ts +0 -124
  332. package/node_modules/zod/src/v4/locales/uz.ts +0 -120
  333. package/node_modules/zod/src/v4/locales/vi.ts +0 -122
  334. package/node_modules/zod/src/v4/locales/yo.ts +0 -129
  335. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -121
  336. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -120
  337. package/node_modules/zod/src/v4/mini/checks.ts +0 -33
  338. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  339. package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
  340. package/node_modules/zod/src/v4/mini/external.ts +0 -52
  341. package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
  342. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  343. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  344. package/node_modules/zod/src/v4/mini/parse.ts +0 -16
  345. package/node_modules/zod/src/v4/mini/schemas.ts +0 -2051
  346. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
  347. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
  348. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  349. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
  350. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
  351. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -30
  352. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
  353. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
  354. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
  355. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
  356. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1146
  357. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
  358. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
  359. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  360. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -341
  361. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  362. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -396
  363. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  364. package/node_modules/zod/v3/ZodError.cjs +0 -167
  365. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  366. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  367. package/node_modules/zod/v3/ZodError.js +0 -143
  368. package/node_modules/zod/v3/errors.cjs +0 -36
  369. package/node_modules/zod/v3/errors.d.cts +0 -5
  370. package/node_modules/zod/v3/errors.d.ts +0 -5
  371. package/node_modules/zod/v3/errors.js +0 -9
  372. package/node_modules/zod/v3/external.cjs +0 -41
  373. package/node_modules/zod/v3/external.d.cts +0 -6
  374. package/node_modules/zod/v3/external.d.ts +0 -6
  375. package/node_modules/zod/v3/external.js +0 -6
  376. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -21
  377. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  378. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  379. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  380. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -28
  381. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  382. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  383. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  384. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -143
  385. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  386. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  387. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  388. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -21
  389. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  390. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  391. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  392. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -21
  393. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  394. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  395. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  396. package/node_modules/zod/v3/helpers/util.cjs +0 -156
  397. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  398. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  399. package/node_modules/zod/v3/helpers/util.js +0 -133
  400. package/node_modules/zod/v3/index.cjs +0 -52
  401. package/node_modules/zod/v3/index.d.cts +0 -4
  402. package/node_modules/zod/v3/index.d.ts +0 -4
  403. package/node_modules/zod/v3/index.js +0 -4
  404. package/node_modules/zod/v3/locales/en.cjs +0 -112
  405. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  406. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  407. package/node_modules/zod/v3/locales/en.js +0 -109
  408. package/node_modules/zod/v3/package.json +0 -7
  409. package/node_modules/zod/v3/standard-schema.cjs +0 -21
  410. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  411. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  412. package/node_modules/zod/v3/standard-schema.js +0 -1
  413. package/node_modules/zod/v3/types.cjs +0 -3798
  414. package/node_modules/zod/v3/types.d.cts +0 -1034
  415. package/node_modules/zod/v3/types.d.ts +0 -1034
  416. package/node_modules/zod/v3/types.js +0 -3697
  417. package/node_modules/zod/v4/classic/checks.cjs +0 -53
  418. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  419. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  420. package/node_modules/zod/v4/classic/checks.js +0 -1
  421. package/node_modules/zod/v4/classic/coerce.cjs +0 -66
  422. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  423. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  424. package/node_modules/zod/v4/classic/coerce.js +0 -17
  425. package/node_modules/zod/v4/classic/compat.cjs +0 -80
  426. package/node_modules/zod/v4/classic/compat.d.cts +0 -48
  427. package/node_modules/zod/v4/classic/compat.d.ts +0 -48
  428. package/node_modules/zod/v4/classic/compat.js +0 -31
  429. package/node_modules/zod/v4/classic/deep-partial.cjs +0 -58
  430. package/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
  431. package/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
  432. package/node_modules/zod/v4/classic/deep-partial.js +0 -13
  433. package/node_modules/zod/v4/classic/errors.cjs +0 -102
  434. package/node_modules/zod/v4/classic/errors.d.cts +0 -29
  435. package/node_modules/zod/v4/classic/errors.d.ts +0 -29
  436. package/node_modules/zod/v4/classic/errors.js +0 -57
  437. package/node_modules/zod/v4/classic/external.cjs +0 -97
  438. package/node_modules/zod/v4/classic/external.d.cts +0 -19
  439. package/node_modules/zod/v4/classic/external.d.ts +0 -19
  440. package/node_modules/zod/v4/classic/external.js +0 -17
  441. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -926
  442. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  443. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  444. package/node_modules/zod/v4/classic/from-json-schema.js +0 -881
  445. package/node_modules/zod/v4/classic/in-out.cjs +0 -82
  446. package/node_modules/zod/v4/classic/in-out.d.cts +0 -8
  447. package/node_modules/zod/v4/classic/in-out.d.ts +0 -8
  448. package/node_modules/zod/v4/classic/in-out.js +0 -36
  449. package/node_modules/zod/v4/classic/index.cjs +0 -52
  450. package/node_modules/zod/v4/classic/index.d.cts +0 -3
  451. package/node_modules/zod/v4/classic/index.d.ts +0 -3
  452. package/node_modules/zod/v4/classic/index.js +0 -4
  453. package/node_modules/zod/v4/classic/iso.cjs +0 -68
  454. package/node_modules/zod/v4/classic/iso.d.cts +0 -7
  455. package/node_modules/zod/v4/classic/iso.d.ts +0 -7
  456. package/node_modules/zod/v4/classic/iso.js +0 -15
  457. package/node_modules/zod/v4/classic/package.json +0 -7
  458. package/node_modules/zod/v4/classic/parse.cjs +0 -63
  459. package/node_modules/zod/v4/classic/parse.d.cts +0 -44
  460. package/node_modules/zod/v4/classic/parse.d.ts +0 -44
  461. package/node_modules/zod/v4/classic/parse.js +0 -16
  462. package/node_modules/zod/v4/classic/schemas.cjs +0 -1676
  463. package/node_modules/zod/v4/classic/schemas.d.cts +0 -816
  464. package/node_modules/zod/v4/classic/schemas.d.ts +0 -816
  465. package/node_modules/zod/v4/classic/schemas.js +0 -1535
  466. package/node_modules/zod/v4/core/api.cjs +0 -1269
  467. package/node_modules/zod/v4/core/api.d.cts +0 -335
  468. package/node_modules/zod/v4/core/api.d.ts +0 -335
  469. package/node_modules/zod/v4/core/api.js +0 -1107
  470. package/node_modules/zod/v4/core/checks.cjs +0 -561
  471. package/node_modules/zod/v4/core/checks.d.cts +0 -294
  472. package/node_modules/zod/v4/core/checks.d.ts +0 -294
  473. package/node_modules/zod/v4/core/checks.js +0 -516
  474. package/node_modules/zod/v4/core/compile.cjs +0 -1908
  475. package/node_modules/zod/v4/core/compile.d.cts +0 -65
  476. package/node_modules/zod/v4/core/compile.d.ts +0 -65
  477. package/node_modules/zod/v4/core/compile.js +0 -1858
  478. package/node_modules/zod/v4/core/core.cjs +0 -167
  479. package/node_modules/zod/v4/core/core.d.cts +0 -82
  480. package/node_modules/zod/v4/core/core.d.ts +0 -82
  481. package/node_modules/zod/v4/core/core.js +0 -141
  482. package/node_modules/zod/v4/core/doc.cjs +0 -61
  483. package/node_modules/zod/v4/core/doc.d.cts +0 -16
  484. package/node_modules/zod/v4/core/doc.d.ts +0 -16
  485. package/node_modules/zod/v4/core/doc.js +0 -38
  486. package/node_modules/zod/v4/core/errors.cjs +0 -317
  487. package/node_modules/zod/v4/core/errors.d.cts +0 -225
  488. package/node_modules/zod/v4/core/errors.d.ts +0 -225
  489. package/node_modules/zod/v4/core/errors.js +0 -267
  490. package/node_modules/zod/v4/core/index.cjs +0 -70
  491. package/node_modules/zod/v4/core/index.d.cts +0 -19
  492. package/node_modules/zod/v4/core/index.d.ts +0 -19
  493. package/node_modules/zod/v4/core/index.js +0 -19
  494. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -122
  495. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  496. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  497. package/node_modules/zod/v4/core/json-schema-generator.js +0 -99
  498. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -929
  499. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -65
  500. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -65
  501. package/node_modules/zod/v4/core/json-schema-processors.js +0 -843
  502. package/node_modules/zod/v4/core/json-schema.cjs +0 -21
  503. package/node_modules/zod/v4/core/json-schema.d.cts +0 -89
  504. package/node_modules/zod/v4/core/json-schema.d.ts +0 -89
  505. package/node_modules/zod/v4/core/json-schema.js +0 -1
  506. package/node_modules/zod/v4/core/memoizer.cjs +0 -360
  507. package/node_modules/zod/v4/core/memoizer.d.cts +0 -15
  508. package/node_modules/zod/v4/core/memoizer.d.ts +0 -15
  509. package/node_modules/zod/v4/core/memoizer.js +0 -311
  510. package/node_modules/zod/v4/core/package.json +0 -7
  511. package/node_modules/zod/v4/core/parse.cjs +0 -233
  512. package/node_modules/zod/v4/core/parse.d.cts +0 -52
  513. package/node_modules/zod/v4/core/parse.d.ts +0 -52
  514. package/node_modules/zod/v4/core/parse.js +0 -175
  515. package/node_modules/zod/v4/core/regexes.cjs +0 -209
  516. package/node_modules/zod/v4/core/regexes.d.cts +0 -90
  517. package/node_modules/zod/v4/core/regexes.d.ts +0 -90
  518. package/node_modules/zod/v4/core/regexes.js +0 -156
  519. package/node_modules/zod/v4/core/registries.cjs +0 -75
  520. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  521. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  522. package/node_modules/zod/v4/core/registries.js +0 -51
  523. package/node_modules/zod/v4/core/schemas.cjs +0 -2669
  524. package/node_modules/zod/v4/core/schemas.d.cts +0 -1273
  525. package/node_modules/zod/v4/core/schemas.d.ts +0 -1273
  526. package/node_modules/zod/v4/core/schemas.js +0 -2606
  527. package/node_modules/zod/v4/core/standard-schema.cjs +0 -21
  528. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  529. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  530. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  531. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -681
  532. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -154
  533. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -154
  534. package/node_modules/zod/v4/core/to-json-schema.js +0 -651
  535. package/node_modules/zod/v4/core/util.cjs +0 -949
  536. package/node_modules/zod/v4/core/util.d.cts +0 -278
  537. package/node_modules/zod/v4/core/util.d.ts +0 -278
  538. package/node_modules/zod/v4/core/util.js +0 -859
  539. package/node_modules/zod/v4/core/versions.cjs +0 -27
  540. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  541. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  542. package/node_modules/zod/v4/core/versions.js +0 -5
  543. package/node_modules/zod/v4/core/visit.cjs +0 -214
  544. package/node_modules/zod/v4/core/visit.d.cts +0 -30
  545. package/node_modules/zod/v4/core/visit.d.ts +0 -30
  546. package/node_modules/zod/v4/core/visit.js +0 -169
  547. package/node_modules/zod/v4/index.cjs +0 -51
  548. package/node_modules/zod/v4/index.d.cts +0 -3
  549. package/node_modules/zod/v4/index.d.ts +0 -3
  550. package/node_modules/zod/v4/index.js +0 -4
  551. package/node_modules/zod/v4/locales/ar.cjs +0 -138
  552. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  553. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  554. package/node_modules/zod/v4/locales/ar.js +0 -111
  555. package/node_modules/zod/v4/locales/az.cjs +0 -137
  556. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  557. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  558. package/node_modules/zod/v4/locales/az.js +0 -110
  559. package/node_modules/zod/v4/locales/be.cjs +0 -195
  560. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  561. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  562. package/node_modules/zod/v4/locales/be.js +0 -168
  563. package/node_modules/zod/v4/locales/bg.cjs +0 -152
  564. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  565. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  566. package/node_modules/zod/v4/locales/bg.js +0 -125
  567. package/node_modules/zod/v4/locales/bn.cjs +0 -140
  568. package/node_modules/zod/v4/locales/bn.d.cts +0 -5
  569. package/node_modules/zod/v4/locales/bn.d.ts +0 -4
  570. package/node_modules/zod/v4/locales/bn.js +0 -113
  571. package/node_modules/zod/v4/locales/ca.cjs +0 -139
  572. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  573. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  574. package/node_modules/zod/v4/locales/ca.js +0 -112
  575. package/node_modules/zod/v4/locales/ckb.cjs +0 -160
  576. package/node_modules/zod/v4/locales/ckb.d.cts +0 -5
  577. package/node_modules/zod/v4/locales/ckb.d.ts +0 -4
  578. package/node_modules/zod/v4/locales/ckb.js +0 -133
  579. package/node_modules/zod/v4/locales/cs.cjs +0 -143
  580. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  581. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  582. package/node_modules/zod/v4/locales/cs.js +0 -116
  583. package/node_modules/zod/v4/locales/da.cjs +0 -147
  584. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  585. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  586. package/node_modules/zod/v4/locales/da.js +0 -120
  587. package/node_modules/zod/v4/locales/de.cjs +0 -140
  588. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  589. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  590. package/node_modules/zod/v4/locales/de.js +0 -113
  591. package/node_modules/zod/v4/locales/el.cjs +0 -139
  592. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  593. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  594. package/node_modules/zod/v4/locales/el.js +0 -112
  595. package/node_modules/zod/v4/locales/en.cjs +0 -152
  596. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  597. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  598. package/node_modules/zod/v4/locales/en.js +0 -125
  599. package/node_modules/zod/v4/locales/eo.cjs +0 -141
  600. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  601. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  602. package/node_modules/zod/v4/locales/eo.js +0 -114
  603. package/node_modules/zod/v4/locales/es.cjs +0 -163
  604. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  605. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  606. package/node_modules/zod/v4/locales/es.js +0 -136
  607. package/node_modules/zod/v4/locales/fa.cjs +0 -146
  608. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  609. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  610. package/node_modules/zod/v4/locales/fa.js +0 -119
  611. package/node_modules/zod/v4/locales/fi.cjs +0 -144
  612. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  613. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  614. package/node_modules/zod/v4/locales/fi.js +0 -117
  615. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -139
  616. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  617. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  618. package/node_modules/zod/v4/locales/fr-CA.js +0 -112
  619. package/node_modules/zod/v4/locales/fr.cjs +0 -156
  620. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  621. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  622. package/node_modules/zod/v4/locales/fr.js +0 -129
  623. package/node_modules/zod/v4/locales/gu.cjs +0 -140
  624. package/node_modules/zod/v4/locales/gu.d.cts +0 -5
  625. package/node_modules/zod/v4/locales/gu.d.ts +0 -4
  626. package/node_modules/zod/v4/locales/gu.js +0 -113
  627. package/node_modules/zod/v4/locales/he.cjs +0 -248
  628. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  629. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  630. package/node_modules/zod/v4/locales/he.js +0 -221
  631. package/node_modules/zod/v4/locales/hi.cjs +0 -138
  632. package/node_modules/zod/v4/locales/hi.d.cts +0 -5
  633. package/node_modules/zod/v4/locales/hi.d.ts +0 -4
  634. package/node_modules/zod/v4/locales/hi.js +0 -111
  635. package/node_modules/zod/v4/locales/hr.cjs +0 -153
  636. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  637. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  638. package/node_modules/zod/v4/locales/hr.js +0 -126
  639. package/node_modules/zod/v4/locales/hu.cjs +0 -140
  640. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  641. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  642. package/node_modules/zod/v4/locales/hu.js +0 -113
  643. package/node_modules/zod/v4/locales/hy.cjs +0 -185
  644. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  645. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  646. package/node_modules/zod/v4/locales/hy.js +0 -158
  647. package/node_modules/zod/v4/locales/id.cjs +0 -138
  648. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  649. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  650. package/node_modules/zod/v4/locales/id.js +0 -111
  651. package/node_modules/zod/v4/locales/index.cjs +0 -152
  652. package/node_modules/zod/v4/locales/index.d.cts +0 -63
  653. package/node_modules/zod/v4/locales/index.d.ts +0 -63
  654. package/node_modules/zod/v4/locales/index.js +0 -63
  655. package/node_modules/zod/v4/locales/is.cjs +0 -141
  656. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  657. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  658. package/node_modules/zod/v4/locales/is.js +0 -114
  659. package/node_modules/zod/v4/locales/it.cjs +0 -140
  660. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  661. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  662. package/node_modules/zod/v4/locales/it.js +0 -113
  663. package/node_modules/zod/v4/locales/ja.cjs +0 -139
  664. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  665. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  666. package/node_modules/zod/v4/locales/ja.js +0 -112
  667. package/node_modules/zod/v4/locales/ka.cjs +0 -144
  668. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  669. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  670. package/node_modules/zod/v4/locales/ka.js +0 -117
  671. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  672. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  673. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  674. package/node_modules/zod/v4/locales/kh.js +0 -5
  675. package/node_modules/zod/v4/locales/km.cjs +0 -142
  676. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  677. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  678. package/node_modules/zod/v4/locales/km.js +0 -115
  679. package/node_modules/zod/v4/locales/kn.cjs +0 -143
  680. package/node_modules/zod/v4/locales/kn.d.cts +0 -5
  681. package/node_modules/zod/v4/locales/kn.d.ts +0 -4
  682. package/node_modules/zod/v4/locales/kn.js +0 -116
  683. package/node_modules/zod/v4/locales/ko.cjs +0 -143
  684. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  685. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  686. package/node_modules/zod/v4/locales/ko.js +0 -116
  687. package/node_modules/zod/v4/locales/lt.cjs +0 -234
  688. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  689. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  690. package/node_modules/zod/v4/locales/lt.js +0 -207
  691. package/node_modules/zod/v4/locales/mk.cjs +0 -141
  692. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  693. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  694. package/node_modules/zod/v4/locales/mk.js +0 -114
  695. package/node_modules/zod/v4/locales/ms.cjs +0 -139
  696. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  697. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  698. package/node_modules/zod/v4/locales/ms.js +0 -112
  699. package/node_modules/zod/v4/locales/ne.cjs +0 -138
  700. package/node_modules/zod/v4/locales/ne.d.cts +0 -5
  701. package/node_modules/zod/v4/locales/ne.d.ts +0 -4
  702. package/node_modules/zod/v4/locales/ne.js +0 -111
  703. package/node_modules/zod/v4/locales/nl.cjs +0 -142
  704. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  705. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  706. package/node_modules/zod/v4/locales/nl.js +0 -115
  707. package/node_modules/zod/v4/locales/nn.cjs +0 -140
  708. package/node_modules/zod/v4/locales/nn.d.cts +0 -5
  709. package/node_modules/zod/v4/locales/nn.d.ts +0 -4
  710. package/node_modules/zod/v4/locales/nn.js +0 -113
  711. package/node_modules/zod/v4/locales/no.cjs +0 -140
  712. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  713. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  714. package/node_modules/zod/v4/locales/no.js +0 -113
  715. package/node_modules/zod/v4/locales/ota.cjs +0 -141
  716. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  717. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  718. package/node_modules/zod/v4/locales/ota.js +0 -114
  719. package/node_modules/zod/v4/locales/package.json +0 -7
  720. package/node_modules/zod/v4/locales/pl.cjs +0 -141
  721. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  722. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  723. package/node_modules/zod/v4/locales/pl.js +0 -114
  724. package/node_modules/zod/v4/locales/ps.cjs +0 -146
  725. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  726. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  727. package/node_modules/zod/v4/locales/ps.js +0 -119
  728. package/node_modules/zod/v4/locales/pt-BR.cjs +0 -170
  729. package/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
  730. package/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
  731. package/node_modules/zod/v4/locales/pt-BR.js +0 -143
  732. package/node_modules/zod/v4/locales/pt.cjs +0 -169
  733. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  734. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  735. package/node_modules/zod/v4/locales/pt.js +0 -142
  736. package/node_modules/zod/v4/locales/ro.cjs +0 -149
  737. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  738. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  739. package/node_modules/zod/v4/locales/ro.js +0 -122
  740. package/node_modules/zod/v4/locales/ru.cjs +0 -195
  741. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  742. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  743. package/node_modules/zod/v4/locales/ru.js +0 -168
  744. package/node_modules/zod/v4/locales/sk.cjs +0 -143
  745. package/node_modules/zod/v4/locales/sk.d.cts +0 -5
  746. package/node_modules/zod/v4/locales/sk.d.ts +0 -4
  747. package/node_modules/zod/v4/locales/sk.js +0 -116
  748. package/node_modules/zod/v4/locales/sl.cjs +0 -141
  749. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  750. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  751. package/node_modules/zod/v4/locales/sl.js +0 -114
  752. package/node_modules/zod/v4/locales/sv.cjs +0 -142
  753. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  754. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  755. package/node_modules/zod/v4/locales/sv.js +0 -115
  756. package/node_modules/zod/v4/locales/ta.cjs +0 -142
  757. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  758. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  759. package/node_modules/zod/v4/locales/ta.js +0 -115
  760. package/node_modules/zod/v4/locales/tg.cjs +0 -144
  761. package/node_modules/zod/v4/locales/tg.d.cts +0 -5
  762. package/node_modules/zod/v4/locales/tg.d.ts +0 -4
  763. package/node_modules/zod/v4/locales/tg.js +0 -117
  764. package/node_modules/zod/v4/locales/th.cjs +0 -142
  765. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  766. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  767. package/node_modules/zod/v4/locales/th.js +0 -115
  768. package/node_modules/zod/v4/locales/tk.cjs +0 -134
  769. package/node_modules/zod/v4/locales/tk.d.cts +0 -5
  770. package/node_modules/zod/v4/locales/tk.d.ts +0 -4
  771. package/node_modules/zod/v4/locales/tk.js +0 -107
  772. package/node_modules/zod/v4/locales/tr.cjs +0 -137
  773. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  774. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  775. package/node_modules/zod/v4/locales/tr.js +0 -110
  776. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  777. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  778. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  779. package/node_modules/zod/v4/locales/ua.js +0 -5
  780. package/node_modules/zod/v4/locales/uk.cjs +0 -140
  781. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  782. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  783. package/node_modules/zod/v4/locales/uk.js +0 -113
  784. package/node_modules/zod/v4/locales/ur.cjs +0 -142
  785. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  786. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  787. package/node_modules/zod/v4/locales/ur.js +0 -115
  788. package/node_modules/zod/v4/locales/uz.cjs +0 -140
  789. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  790. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  791. package/node_modules/zod/v4/locales/uz.js +0 -113
  792. package/node_modules/zod/v4/locales/vi.cjs +0 -140
  793. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  794. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  795. package/node_modules/zod/v4/locales/vi.js +0 -113
  796. package/node_modules/zod/v4/locales/yo.cjs +0 -139
  797. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  798. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  799. package/node_modules/zod/v4/locales/yo.js +0 -112
  800. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -141
  801. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  802. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  803. package/node_modules/zod/v4/locales/zh-CN.js +0 -114
  804. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -139
  805. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  806. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  807. package/node_modules/zod/v4/locales/zh-TW.js +0 -112
  808. package/node_modules/zod/v4/mini/checks.cjs +0 -54
  809. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  810. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  811. package/node_modules/zod/v4/mini/checks.js +0 -1
  812. package/node_modules/zod/v4/mini/coerce.cjs +0 -71
  813. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  814. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  815. package/node_modules/zod/v4/mini/coerce.js +0 -22
  816. package/node_modules/zod/v4/mini/deep-partial.cjs +0 -58
  817. package/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
  818. package/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
  819. package/node_modules/zod/v4/mini/deep-partial.js +0 -13
  820. package/node_modules/zod/v4/mini/external.cjs +0 -95
  821. package/node_modules/zod/v4/mini/external.d.cts +0 -16
  822. package/node_modules/zod/v4/mini/external.d.ts +0 -16
  823. package/node_modules/zod/v4/mini/external.js +0 -16
  824. package/node_modules/zod/v4/mini/in-out.cjs +0 -82
  825. package/node_modules/zod/v4/mini/in-out.d.cts +0 -8
  826. package/node_modules/zod/v4/mini/in-out.d.ts +0 -8
  827. package/node_modules/zod/v4/mini/in-out.js +0 -36
  828. package/node_modules/zod/v4/mini/index.cjs +0 -51
  829. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  830. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  831. package/node_modules/zod/v4/mini/index.js +0 -3
  832. package/node_modules/zod/v4/mini/iso.cjs +0 -83
  833. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  834. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  835. package/node_modules/zod/v4/mini/iso.js +0 -34
  836. package/node_modules/zod/v4/mini/package.json +0 -7
  837. package/node_modules/zod/v4/mini/parse.cjs +0 -37
  838. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  839. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  840. package/node_modules/zod/v4/mini/parse.js +0 -1
  841. package/node_modules/zod/v4/mini/schemas.cjs +0 -1147
  842. package/node_modules/zod/v4/mini/schemas.d.cts +0 -480
  843. package/node_modules/zod/v4/mini/schemas.d.ts +0 -480
  844. package/node_modules/zod/v4/mini/schemas.js +0 -1002
  845. package/node_modules/zod/v4/package.json +0 -7
  846. package/node_modules/zod/v4-mini/index.cjs +0 -51
  847. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  848. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  849. package/node_modules/zod/v4-mini/index.js +0 -3
  850. package/node_modules/zod/v4-mini/package.json +0 -7
@@ -1,1676 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodXor = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodDate = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodBigIntFormat = exports.ZodBigInt = exports.ZodBoolean = exports.ZodNumberFormat = exports.ZodNumber = exports.ZodCustomStringFormat = exports.ZodJWT = exports.ZodIBAN = exports.ZodCreditCard = exports.ZodE164 = exports.ZodBase64URL = exports.ZodBase64 = exports.ZodCIDRv6 = exports.ZodCIDRv4 = exports.ZodIPv6 = exports.ZodMAC = exports.ZodIPv4 = exports.ZodKSUID = exports.ZodXID = exports.ZodULID = exports.ZodCUID2 = exports.ZodCUID = exports.ZodNanoID = exports.ZodEmoji = exports.ZodURL = exports.ZodUUID = exports.ZodGUID = exports.ZodEmail = exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = exports.ZodStringFormat = exports.ZodString = exports._ZodString = exports.ZodType = void 0;
30
- exports.stringbool = exports.ZodInstanceOf = exports.meta = exports.describe = exports.ZodCustom = exports.ZodFunction = exports.ZodPromise = exports.ZodLazy = exports.ZodTemplateLiteral = exports.ZodReadonly = exports.ZodPreprocess = exports.ZodCodec = exports.ZodPipe = exports.ZodNaN = exports.ZodCatch = exports.ZodSuccess = exports.ZodNonOptional = exports.ZodPrefault = exports.ZodDefault = exports.ZodNullable = exports.ZodExactOptional = exports.ZodOptional = exports.ZodTransform = exports.ZodFile = exports.ZodLiteral = exports.ZodEnum = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = void 0;
31
- exports.string = string;
32
- exports.email = email;
33
- exports.guid = guid;
34
- exports.uuid = uuid;
35
- exports.uuidv4 = uuidv4;
36
- exports.uuidv6 = uuidv6;
37
- exports.uuidv7 = uuidv7;
38
- exports.url = url;
39
- exports.httpUrl = httpUrl;
40
- exports.emoji = emoji;
41
- exports.nanoid = nanoid;
42
- exports.cuid = cuid;
43
- exports.cuid2 = cuid2;
44
- exports.ulid = ulid;
45
- exports.xid = xid;
46
- exports.ksuid = ksuid;
47
- exports.ipv4 = ipv4;
48
- exports.mac = mac;
49
- exports.ipv6 = ipv6;
50
- exports.cidrv4 = cidrv4;
51
- exports.cidrv6 = cidrv6;
52
- exports.base64 = base64;
53
- exports.base64url = base64url;
54
- exports.e164 = e164;
55
- exports.creditCard = creditCard;
56
- exports.iban = iban;
57
- exports.jwt = jwt;
58
- exports.stringFormat = stringFormat;
59
- exports.hostname = hostname;
60
- exports.hex = hex;
61
- exports.currencyCode = currencyCode;
62
- exports.hash = hash;
63
- exports.number = number;
64
- exports.int = int;
65
- exports.float32 = float32;
66
- exports.float64 = float64;
67
- exports.int32 = int32;
68
- exports.uint32 = uint32;
69
- exports.boolean = boolean;
70
- exports.bigint = bigint;
71
- exports.int64 = int64;
72
- exports.uint64 = uint64;
73
- exports.symbol = symbol;
74
- exports.undefined = _undefined;
75
- exports.null = _null;
76
- exports.any = any;
77
- exports.unknown = unknown;
78
- exports.never = never;
79
- exports.void = _void;
80
- exports.date = date;
81
- exports.array = array;
82
- exports.keyof = keyof;
83
- exports.object = object;
84
- exports.strictObject = strictObject;
85
- exports.looseObject = looseObject;
86
- exports.union = union;
87
- exports.xor = xor;
88
- exports.discriminatedUnion = discriminatedUnion;
89
- exports.intersection = intersection;
90
- exports.tuple = tuple;
91
- exports.record = record;
92
- exports.partialRecord = partialRecord;
93
- exports.looseRecord = looseRecord;
94
- exports.map = map;
95
- exports.set = set;
96
- exports.enum = _enum;
97
- exports.nativeEnum = nativeEnum;
98
- exports.literal = literal;
99
- exports.file = file;
100
- exports.transform = transform;
101
- exports.optional = optional;
102
- exports.exactOptional = exactOptional;
103
- exports.nullable = nullable;
104
- exports.nullish = nullish;
105
- exports._default = _default;
106
- exports.prefault = prefault;
107
- exports.nonoptional = nonoptional;
108
- exports.success = success;
109
- exports.catch = _catch;
110
- exports.nan = nan;
111
- exports.pipe = pipe;
112
- exports.codec = codec;
113
- exports.invertCodec = invertCodec;
114
- exports.readonly = readonly;
115
- exports.templateLiteral = templateLiteral;
116
- exports.lazy = lazy;
117
- exports.promise = promise;
118
- exports._function = _function;
119
- exports.function = _function;
120
- exports._function = _function;
121
- exports.function = _function;
122
- exports.check = check;
123
- exports.custom = custom;
124
- exports.refine = refine;
125
- exports.superRefine = superRefine;
126
- exports.instanceof = _instanceof;
127
- exports.json = json;
128
- exports.preprocess = preprocess;
129
- const core = __importStar(require("../core/index.cjs"));
130
- const index_js_1 = require("../core/index.cjs");
131
- const processors = __importStar(require("../core/json-schema-processors.cjs"));
132
- const regexes = __importStar(require("../core/regexes.cjs"));
133
- const to_json_schema_js_1 = require("../core/to-json-schema.cjs");
134
- const en_js_1 = __importDefault(require("../locales/en.cjs"));
135
- const checks = __importStar(require("./checks.cjs"));
136
- const parse = __importStar(require("./parse.cjs"));
137
- // Register English as the default locale on first ZodType construction. Hooked into the `ZodType` `$constructor` (rather than a top-level `config(en())` in `external.ts`) so bundlers honoring `sideEffects: false` can't tree-shake it out — see #5953, #5725. An explicit `z.config(z.locales.xx())` call wins regardless of order, since this only sets the default when none is present.
138
- function _ensureDefaultLocale() {
139
- if (!core.globalConfig.localeError)
140
- core.config((0, en_js_1.default)());
141
- }
142
- // the default memoizer is read by the core container init, which runs before `ZodType.init`, so each container calls this first
143
- function _ensureDefaultMemoizer() {
144
- if (!core.globalConfig.memoizer)
145
- core.config({ memoizer: core.memoizer() });
146
- }
147
- exports.ZodType = core.$constructor("ZodType", (inst, def) => {
148
- _ensureDefaultLocale();
149
- core.$ZodType.init(inst, def);
150
- inst.def = def;
151
- inst.type = def.type;
152
- return inst;
153
- }, {
154
- check(...chks) {
155
- const def = this.def;
156
- return this.clone(index_js_1.util.mergeDefs(def, {
157
- checks: [
158
- ...(def.checks ?? []),
159
- ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
160
- ],
161
- }), { parent: true });
162
- },
163
- with(...chks) {
164
- return this.check(...chks);
165
- },
166
- clone(def, params) {
167
- return core.clone(this, def, params);
168
- },
169
- brand() {
170
- return this;
171
- },
172
- register(reg, meta) {
173
- reg.add(this, meta);
174
- return this;
175
- },
176
- refine(check, params) {
177
- return this.check(refine(check, params));
178
- },
179
- superRefine(refinement, params) {
180
- return this.check(superRefine(refinement, params));
181
- },
182
- overwrite(fn) {
183
- return this.check(checks.overwrite(fn));
184
- },
185
- optional() {
186
- return optional(this);
187
- },
188
- exactOptional() {
189
- return exactOptional(this);
190
- },
191
- nullable() {
192
- return nullable(this);
193
- },
194
- nullish() {
195
- return optional(nullable(this));
196
- },
197
- nonoptional(params) {
198
- return nonoptional(this, params);
199
- },
200
- array() {
201
- return array(this);
202
- },
203
- or(arg) {
204
- return union([this, arg]);
205
- },
206
- and(arg) {
207
- return intersection(this, arg);
208
- },
209
- transform(tx) {
210
- return pipe(this, transform(tx));
211
- },
212
- default(d) {
213
- return _default(this, d);
214
- },
215
- prefault(d) {
216
- return prefault(this, d);
217
- },
218
- catch(params) {
219
- return _catch(this, params);
220
- },
221
- pipe(target) {
222
- return pipe(this, target);
223
- },
224
- readonly() {
225
- return readonly(this);
226
- },
227
- describe(description) {
228
- const cl = this.clone();
229
- core.globalRegistry.add(cl, { description });
230
- return cl;
231
- },
232
- meta(...args) {
233
- // overloaded: meta() returns the registered metadata, meta(data) returns a clone with `data` registered. The mapped type picks up the second overload, so we accept variadic any-args and return `any` to satisfy both at runtime.
234
- if (args.length === 0)
235
- return core.globalRegistry.get(this);
236
- const cl = this.clone();
237
- core.globalRegistry.add(cl, args[0]);
238
- return cl;
239
- },
240
- isOptional() {
241
- return this.safeParse(undefined).success;
242
- },
243
- isNullable() {
244
- return this.safeParse(null).success;
245
- },
246
- apply(fn, ...args) {
247
- return args.length === 0 ? fn(this) : fn(this, ...args);
248
- },
249
- // Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.
250
- get "~standard"() {
251
- return index_js_1.util.hide(this, "~standard", {
252
- ...core.standardProps(this),
253
- jsonSchema: {
254
- input: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "input"),
255
- output: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "output"),
256
- },
257
- });
258
- },
259
- set "~standard"(value) {
260
- index_js_1.util.own(this, "~standard", value);
261
- },
262
- parse: function _parse(data, params) {
263
- return parse.parse(this, data, params, { callee: _parse });
264
- },
265
- parseAsync: async function _parseAsync(data, params) {
266
- return await parse.parseAsync(this, data, params, { callee: _parseAsync });
267
- },
268
- safeParse(data, params) {
269
- return parse.safeParse(this, data, params);
270
- },
271
- async safeParseAsync(data, params) {
272
- return parse.safeParseAsync(this, data, params);
273
- },
274
- // `spa` is an alias: same function object as `safeParseAsync`, as before.
275
- get spa() {
276
- return this?.safeParseAsync;
277
- },
278
- set spa(value) {
279
- index_js_1.util.own(this, "spa", value);
280
- },
281
- validate(data, params) {
282
- return parse.validate(this, data, params);
283
- },
284
- validateAsync(data, params) {
285
- return parse.validateAsync(this, data, params);
286
- },
287
- encode: function _encode(data, params) {
288
- return parse.encode(this, data, params, { callee: _encode });
289
- },
290
- decode: function _decode(data, params) {
291
- return parse.decode(this, data, params, { callee: _decode });
292
- },
293
- encodeAsync: async function _encodeAsync(data, params) {
294
- return await parse.encodeAsync(this, data, params, { callee: _encodeAsync });
295
- },
296
- decodeAsync: async function _decodeAsync(data, params) {
297
- return await parse.decodeAsync(this, data, params, { callee: _decodeAsync });
298
- },
299
- safeEncode(data, params) {
300
- return parse.safeEncode(this, data, params);
301
- },
302
- safeDecode(data, params) {
303
- return parse.safeDecode(this, data, params);
304
- },
305
- async safeEncodeAsync(data, params) {
306
- return parse.safeEncodeAsync(this, data, params);
307
- },
308
- async safeDecodeAsync(data, params) {
309
- return parse.safeDecodeAsync(this, data, params);
310
- },
311
- toJSONSchema(params) {
312
- return (0, to_json_schema_js_1.createToJSONSchemaMethod)(this, {})(params);
313
- },
314
- // Reads through to the registry on every access, so it must not cache.
315
- get description() {
316
- return core.globalRegistry.get(this)?.description;
317
- },
318
- // No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.
319
- get _def() {
320
- return this._zod.def;
321
- },
322
- });
323
- /** @internal */
324
- exports._ZodString = core.$constructor("_ZodString", (inst, def) => {
325
- core.$ZodString.init(inst, def);
326
- exports.ZodType.init(inst, def);
327
- inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);
328
- },
329
- /*@__PURE__*/ index_js_1.util.derived({
330
- format: (inst) => processors.aggregateChecks(inst).format ?? null,
331
- minLength: (inst) => processors.aggregateChecks(inst).minimum ?? null,
332
- maxLength: (inst) => processors.aggregateChecks(inst).maximum ?? null,
333
- }, {
334
- regex(...args) {
335
- return this.check(checks.regex(...args));
336
- },
337
- includes(...args) {
338
- return this.check(checks.includes(...args));
339
- },
340
- startsWith(...args) {
341
- return this.check(checks.startsWith(...args));
342
- },
343
- endsWith(...args) {
344
- return this.check(checks.endsWith(...args));
345
- },
346
- min(...args) {
347
- return this.check(checks.minLength(...args));
348
- },
349
- max(...args) {
350
- return this.check(checks.maxLength(...args));
351
- },
352
- length(...args) {
353
- return this.check(checks.length(...args));
354
- },
355
- nonempty(...args) {
356
- return this.check(checks.minLength(1, ...args));
357
- },
358
- lowercase(params) {
359
- return this.check(checks.lowercase(params));
360
- },
361
- uppercase(params) {
362
- return this.check(checks.uppercase(params));
363
- },
364
- trim() {
365
- return this.check(checks.trim());
366
- },
367
- normalize(...args) {
368
- return this.check(checks.normalize(...args));
369
- },
370
- toLowerCase() {
371
- return this.check(checks.toLowerCase());
372
- },
373
- toUpperCase() {
374
- return this.check(checks.toUpperCase());
375
- },
376
- slugify() {
377
- return this.check(checks.slugify());
378
- },
379
- }));
380
- exports.ZodString = core.$constructor("ZodString", (inst, def) => {
381
- core.$ZodString.init(inst, def);
382
- exports._ZodString.init(inst, def);
383
- }, {
384
- email(params) {
385
- return this.check(core._email(exports.ZodEmail, params));
386
- },
387
- url(params) {
388
- return this.check(core._url(exports.ZodURL, params));
389
- },
390
- jwt(params) {
391
- return this.check(core._jwt(exports.ZodJWT, params));
392
- },
393
- emoji(params) {
394
- return this.check(core._emoji(exports.ZodEmoji, params));
395
- },
396
- guid(params) {
397
- return this.check(core._guid(exports.ZodGUID, params));
398
- },
399
- uuid(params) {
400
- return this.check(core._uuid(exports.ZodUUID, params));
401
- },
402
- uuidv4(params) {
403
- return this.check(core._uuidv4(exports.ZodUUID, params));
404
- },
405
- uuidv6(params) {
406
- return this.check(core._uuidv6(exports.ZodUUID, params));
407
- },
408
- uuidv7(params) {
409
- return this.check(core._uuidv7(exports.ZodUUID, params));
410
- },
411
- nanoid(params) {
412
- return this.check(core._nanoid(exports.ZodNanoID, params));
413
- },
414
- cuid(params) {
415
- return this.check(core._cuid(exports.ZodCUID, params));
416
- },
417
- cuid2(params) {
418
- return this.check(core._cuid2(exports.ZodCUID2, params));
419
- },
420
- ulid(params) {
421
- return this.check(core._ulid(exports.ZodULID, params));
422
- },
423
- base64(params) {
424
- return this.check(core._base64(exports.ZodBase64, params));
425
- },
426
- base64url(params) {
427
- return this.check(core._base64url(exports.ZodBase64URL, params));
428
- },
429
- xid(params) {
430
- return this.check(core._xid(exports.ZodXID, params));
431
- },
432
- ksuid(params) {
433
- return this.check(core._ksuid(exports.ZodKSUID, params));
434
- },
435
- ipv4(params) {
436
- return this.check(core._ipv4(exports.ZodIPv4, params));
437
- },
438
- ipv6(params) {
439
- return this.check(core._ipv6(exports.ZodIPv6, params));
440
- },
441
- cidrv4(params) {
442
- return this.check(core._cidrv4(exports.ZodCIDRv4, params));
443
- },
444
- cidrv6(params) {
445
- return this.check(core._cidrv6(exports.ZodCIDRv6, params));
446
- },
447
- e164(params) {
448
- return this.check(core._e164(exports.ZodE164, params));
449
- },
450
- datetime(params) {
451
- return this.check(core._isoDateTime(exports.ZodISODateTime, params));
452
- },
453
- date(params) {
454
- return this.check(core._isoDate(exports.ZodISODate, params));
455
- },
456
- time(params) {
457
- return this.check(core._isoTime(exports.ZodISOTime, params));
458
- },
459
- duration(params) {
460
- return this.check(core._isoDuration(exports.ZodISODuration, params));
461
- },
462
- });
463
- function string(params) {
464
- return core._string(exports.ZodString, params);
465
- }
466
- exports.ZodStringFormat = core.$constructor("ZodStringFormat", (inst, def) => {
467
- core.$ZodStringFormat.init(inst, def);
468
- exports._ZodString.init(inst, def);
469
- });
470
- exports.ZodISODateTime = core.$constructor("ZodISODateTime", (inst, def) => {
471
- core.$ZodISODateTime.init(inst, def);
472
- exports.ZodStringFormat.init(inst, def);
473
- });
474
- exports.ZodISODate = core.$constructor("ZodISODate", (inst, def) => {
475
- core.$ZodISODate.init(inst, def);
476
- exports.ZodStringFormat.init(inst, def);
477
- });
478
- exports.ZodISOTime = core.$constructor("ZodISOTime", (inst, def) => {
479
- core.$ZodISOTime.init(inst, def);
480
- exports.ZodStringFormat.init(inst, def);
481
- });
482
- exports.ZodISODuration = core.$constructor("ZodISODuration", (inst, def) => {
483
- core.$ZodISODuration.init(inst, def);
484
- exports.ZodStringFormat.init(inst, def);
485
- });
486
- exports.ZodEmail = core.$constructor("ZodEmail", (inst, def) => {
487
- // ZodStringFormat.init(inst, def);
488
- core.$ZodEmail.init(inst, def);
489
- exports.ZodStringFormat.init(inst, def);
490
- });
491
- function email(params) {
492
- return core._email(exports.ZodEmail, params);
493
- }
494
- exports.ZodGUID = core.$constructor("ZodGUID", (inst, def) => {
495
- // ZodStringFormat.init(inst, def);
496
- core.$ZodGUID.init(inst, def);
497
- exports.ZodStringFormat.init(inst, def);
498
- });
499
- function guid(params) {
500
- return core._guid(exports.ZodGUID, params);
501
- }
502
- exports.ZodUUID = core.$constructor("ZodUUID", (inst, def) => {
503
- // ZodStringFormat.init(inst, def);
504
- core.$ZodUUID.init(inst, def);
505
- exports.ZodStringFormat.init(inst, def);
506
- });
507
- function uuid(params) {
508
- return core._uuid(exports.ZodUUID, params);
509
- }
510
- function uuidv4(params) {
511
- return core._uuidv4(exports.ZodUUID, params);
512
- }
513
- // ZodUUIDv6
514
- function uuidv6(params) {
515
- return core._uuidv6(exports.ZodUUID, params);
516
- }
517
- // ZodUUIDv7
518
- function uuidv7(params) {
519
- return core._uuidv7(exports.ZodUUID, params);
520
- }
521
- exports.ZodURL = core.$constructor("ZodURL", (inst, def) => {
522
- // ZodStringFormat.init(inst, def);
523
- core.$ZodURL.init(inst, def);
524
- exports.ZodStringFormat.init(inst, def);
525
- });
526
- function url(params) {
527
- return core._url(exports.ZodURL, params);
528
- }
529
- function httpUrl(params) {
530
- return core._url(exports.ZodURL, {
531
- protocol: regexes.httpProtocol,
532
- hostname: regexes.domain,
533
- ...index_js_1.util.normalizeParams(params),
534
- });
535
- }
536
- exports.ZodEmoji = core.$constructor("ZodEmoji", (inst, def) => {
537
- // ZodStringFormat.init(inst, def);
538
- core.$ZodEmoji.init(inst, def);
539
- exports.ZodStringFormat.init(inst, def);
540
- });
541
- function emoji(params) {
542
- return core._emoji(exports.ZodEmoji, params);
543
- }
544
- exports.ZodNanoID = core.$constructor("ZodNanoID", (inst, def) => {
545
- // ZodStringFormat.init(inst, def);
546
- core.$ZodNanoID.init(inst, def);
547
- exports.ZodStringFormat.init(inst, def);
548
- });
549
- function nanoid(params) {
550
- return core._nanoid(exports.ZodNanoID, params);
551
- }
552
- /**
553
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
554
- * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
555
- * See https://github.com/paralleldrive/cuid.
556
- */
557
- exports.ZodCUID = core.$constructor("ZodCUID", (inst, def) => {
558
- // ZodStringFormat.init(inst, def);
559
- core.$ZodCUID.init(inst, def);
560
- exports.ZodStringFormat.init(inst, def);
561
- });
562
- /**
563
- * Validates a CUID v1 string.
564
- *
565
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
566
- * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
567
- * See https://github.com/paralleldrive/cuid.
568
- */
569
- function cuid(params) {
570
- return core._cuid(exports.ZodCUID, params);
571
- }
572
- exports.ZodCUID2 = core.$constructor("ZodCUID2", (inst, def) => {
573
- // ZodStringFormat.init(inst, def);
574
- core.$ZodCUID2.init(inst, def);
575
- exports.ZodStringFormat.init(inst, def);
576
- });
577
- function cuid2(params) {
578
- return core._cuid2(exports.ZodCUID2, params);
579
- }
580
- exports.ZodULID = core.$constructor("ZodULID", (inst, def) => {
581
- // ZodStringFormat.init(inst, def);
582
- core.$ZodULID.init(inst, def);
583
- exports.ZodStringFormat.init(inst, def);
584
- });
585
- function ulid(params) {
586
- return core._ulid(exports.ZodULID, params);
587
- }
588
- exports.ZodXID = core.$constructor("ZodXID", (inst, def) => {
589
- // ZodStringFormat.init(inst, def);
590
- core.$ZodXID.init(inst, def);
591
- exports.ZodStringFormat.init(inst, def);
592
- });
593
- function xid(params) {
594
- return core._xid(exports.ZodXID, params);
595
- }
596
- exports.ZodKSUID = core.$constructor("ZodKSUID", (inst, def) => {
597
- // ZodStringFormat.init(inst, def);
598
- core.$ZodKSUID.init(inst, def);
599
- exports.ZodStringFormat.init(inst, def);
600
- });
601
- function ksuid(params) {
602
- return core._ksuid(exports.ZodKSUID, params);
603
- }
604
- exports.ZodIPv4 = core.$constructor("ZodIPv4", (inst, def) => {
605
- // ZodStringFormat.init(inst, def);
606
- core.$ZodIPv4.init(inst, def);
607
- exports.ZodStringFormat.init(inst, def);
608
- });
609
- function ipv4(params) {
610
- return core._ipv4(exports.ZodIPv4, params);
611
- }
612
- exports.ZodMAC = core.$constructor("ZodMAC", (inst, def) => {
613
- // ZodStringFormat.init(inst, def);
614
- core.$ZodMAC.init(inst, def);
615
- exports.ZodStringFormat.init(inst, def);
616
- });
617
- function mac(params) {
618
- return core._mac(exports.ZodMAC, params);
619
- }
620
- exports.ZodIPv6 = core.$constructor("ZodIPv6", (inst, def) => {
621
- // ZodStringFormat.init(inst, def);
622
- core.$ZodIPv6.init(inst, def);
623
- exports.ZodStringFormat.init(inst, def);
624
- });
625
- function ipv6(params) {
626
- return core._ipv6(exports.ZodIPv6, params);
627
- }
628
- exports.ZodCIDRv4 = core.$constructor("ZodCIDRv4", (inst, def) => {
629
- core.$ZodCIDRv4.init(inst, def);
630
- exports.ZodStringFormat.init(inst, def);
631
- });
632
- function cidrv4(params) {
633
- return core._cidrv4(exports.ZodCIDRv4, params);
634
- }
635
- exports.ZodCIDRv6 = core.$constructor("ZodCIDRv6", (inst, def) => {
636
- core.$ZodCIDRv6.init(inst, def);
637
- exports.ZodStringFormat.init(inst, def);
638
- });
639
- function cidrv6(params) {
640
- return core._cidrv6(exports.ZodCIDRv6, params);
641
- }
642
- exports.ZodBase64 = core.$constructor("ZodBase64", (inst, def) => {
643
- // ZodStringFormat.init(inst, def);
644
- core.$ZodBase64.init(inst, def);
645
- exports.ZodStringFormat.init(inst, def);
646
- });
647
- function base64(params) {
648
- return core._base64(exports.ZodBase64, params);
649
- }
650
- exports.ZodBase64URL = core.$constructor("ZodBase64URL", (inst, def) => {
651
- // ZodStringFormat.init(inst, def);
652
- core.$ZodBase64URL.init(inst, def);
653
- exports.ZodStringFormat.init(inst, def);
654
- });
655
- function base64url(params) {
656
- return core._base64url(exports.ZodBase64URL, params);
657
- }
658
- exports.ZodE164 = core.$constructor("ZodE164", (inst, def) => {
659
- // ZodStringFormat.init(inst, def);
660
- core.$ZodE164.init(inst, def);
661
- exports.ZodStringFormat.init(inst, def);
662
- });
663
- function e164(params) {
664
- return core._e164(exports.ZodE164, params);
665
- }
666
- exports.ZodCreditCard = core.$constructor("ZodCreditCard", (inst, def) => {
667
- core.$ZodCreditCard.init(inst, def);
668
- exports.ZodStringFormat.init(inst, def);
669
- });
670
- function creditCard(params) {
671
- return core._creditCard(exports.ZodCreditCard, params);
672
- }
673
- exports.ZodIBAN = core.$constructor("ZodIBAN", (inst, def) => {
674
- core.$ZodIBAN.init(inst, def);
675
- exports.ZodStringFormat.init(inst, def);
676
- });
677
- function iban(params) {
678
- return core._iban(exports.ZodIBAN, params);
679
- }
680
- exports.ZodJWT = core.$constructor("ZodJWT", (inst, def) => {
681
- // ZodStringFormat.init(inst, def);
682
- core.$ZodJWT.init(inst, def);
683
- exports.ZodStringFormat.init(inst, def);
684
- });
685
- function jwt(params) {
686
- return core._jwt(exports.ZodJWT, params);
687
- }
688
- exports.ZodCustomStringFormat = core.$constructor("ZodCustomStringFormat", (inst, def) => {
689
- // ZodStringFormat.init(inst, def);
690
- core.$ZodCustomStringFormat.init(inst, def);
691
- exports.ZodStringFormat.init(inst, def);
692
- });
693
- function stringFormat(format, fnOrRegex, _params = {}) {
694
- return core._stringFormat(exports.ZodCustomStringFormat, format, fnOrRegex, _params);
695
- }
696
- function hostname(_params) {
697
- return core._stringFormat(exports.ZodCustomStringFormat, "hostname", regexes.hostname, _params);
698
- }
699
- function hex(_params) {
700
- return core._stringFormat(exports.ZodCustomStringFormat, "hex", regexes.hex, _params);
701
- }
702
- function currencyCode(_params) {
703
- return core._stringFormat(exports.ZodCustomStringFormat, "currency_code", regexes.currencyCode, _params);
704
- }
705
- function hash(alg, params) {
706
- const enc = params?.enc ?? "hex";
707
- const format = `${alg}_${enc}`;
708
- const regex = core.regexes[format];
709
- if (!regex)
710
- throw new Error(`Unrecognized hash format: ${format}`);
711
- return core._stringFormat(exports.ZodCustomStringFormat, format, regex, params);
712
- }
713
- exports.ZodNumber = core.$constructor("ZodNumber", (inst, def) => {
714
- core.$ZodNumber.init(inst, def);
715
- exports.ZodType.init(inst, def);
716
- inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
717
- inst.isFinite = true;
718
- },
719
- /*@__PURE__*/ index_js_1.util.derived({
720
- minValue: (inst) => {
721
- const { minimum, exclusiveMinimum } = processors.aggregateChecks(inst);
722
- return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
723
- },
724
- maxValue: (inst) => {
725
- const { maximum, exclusiveMaximum } = processors.aggregateChecks(inst);
726
- return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);
727
- },
728
- isInt: (inst) => {
729
- const { isInt, multipleOf } = processors.aggregateChecks(inst);
730
- return !!isInt || !!multipleOf?.some(Number.isSafeInteger);
731
- },
732
- format: (inst) => processors.aggregateChecks(inst).format ?? null,
733
- }, {
734
- gt(value, params) {
735
- return this.check(checks.gt(value, params));
736
- },
737
- gte(value, params) {
738
- return this.check(checks.gte(value, params));
739
- },
740
- min(value, params) {
741
- return this.check(checks.gte(value, params));
742
- },
743
- lt(value, params) {
744
- return this.check(checks.lt(value, params));
745
- },
746
- lte(value, params) {
747
- return this.check(checks.lte(value, params));
748
- },
749
- max(value, params) {
750
- return this.check(checks.lte(value, params));
751
- },
752
- int(params) {
753
- return this.check(int(params));
754
- },
755
- safe(params) {
756
- return this.check(int(params));
757
- },
758
- positive(params) {
759
- return this.check(checks.gt(0, params));
760
- },
761
- nonnegative(params) {
762
- return this.check(checks.gte(0, params));
763
- },
764
- negative(params) {
765
- return this.check(checks.lt(0, params));
766
- },
767
- nonpositive(params) {
768
- return this.check(checks.lte(0, params));
769
- },
770
- multipleOf(value, params) {
771
- return this.check(checks.multipleOf(value, params));
772
- },
773
- step(value, params) {
774
- return this.check(checks.multipleOf(value, params));
775
- },
776
- finite() {
777
- return this;
778
- },
779
- }));
780
- function number(params) {
781
- return core._number(exports.ZodNumber, params);
782
- }
783
- exports.ZodNumberFormat = core.$constructor("ZodNumberFormat", (inst, def) => {
784
- core.$ZodNumberFormat.init(inst, def);
785
- exports.ZodNumber.init(inst, def);
786
- });
787
- function int(params) {
788
- return core._int(exports.ZodNumberFormat, params);
789
- }
790
- function float32(params) {
791
- return core._float32(exports.ZodNumberFormat, params);
792
- }
793
- function float64(params) {
794
- return core._float64(exports.ZodNumberFormat, params);
795
- }
796
- function int32(params) {
797
- return core._int32(exports.ZodNumberFormat, params);
798
- }
799
- function uint32(params) {
800
- return core._uint32(exports.ZodNumberFormat, params);
801
- }
802
- exports.ZodBoolean = core.$constructor("ZodBoolean", (inst, def) => {
803
- core.$ZodBoolean.init(inst, def);
804
- exports.ZodType.init(inst, def);
805
- inst._zod.processJSONSchema = (ctx, json, params) => processors.booleanProcessor(inst, ctx, json, params);
806
- });
807
- function boolean(params) {
808
- return core._boolean(exports.ZodBoolean, params);
809
- }
810
- exports.ZodBigInt = core.$constructor("ZodBigInt", (inst, def) => {
811
- core.$ZodBigInt.init(inst, def);
812
- exports.ZodType.init(inst, def);
813
- inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);
814
- },
815
- /*@__PURE__*/ index_js_1.util.derived({
816
- minValue: (inst) => processors.aggregateChecks(inst).minimum ?? null,
817
- maxValue: (inst) => processors.aggregateChecks(inst).maximum ?? null,
818
- format: (inst) => processors.aggregateChecks(inst).format ?? null,
819
- }, {
820
- gte(value, params) {
821
- return this.check(checks.gte(value, params));
822
- },
823
- min(value, params) {
824
- return this.check(checks.gte(value, params));
825
- },
826
- gt(value, params) {
827
- return this.check(checks.gt(value, params));
828
- },
829
- lt(value, params) {
830
- return this.check(checks.lt(value, params));
831
- },
832
- lte(value, params) {
833
- return this.check(checks.lte(value, params));
834
- },
835
- max(value, params) {
836
- return this.check(checks.lte(value, params));
837
- },
838
- positive(params) {
839
- return this.check(checks.gt(BigInt(0), params));
840
- },
841
- negative(params) {
842
- return this.check(checks.lt(BigInt(0), params));
843
- },
844
- nonpositive(params) {
845
- return this.check(checks.lte(BigInt(0), params));
846
- },
847
- nonnegative(params) {
848
- return this.check(checks.gte(BigInt(0), params));
849
- },
850
- multipleOf(value, params) {
851
- return this.check(checks.multipleOf(value, params));
852
- },
853
- }));
854
- function bigint(params) {
855
- return core._bigint(exports.ZodBigInt, params);
856
- }
857
- exports.ZodBigIntFormat = core.$constructor("ZodBigIntFormat", (inst, def) => {
858
- core.$ZodBigIntFormat.init(inst, def);
859
- exports.ZodBigInt.init(inst, def);
860
- });
861
- function int64(params) {
862
- return core._int64(exports.ZodBigIntFormat, params);
863
- }
864
- function uint64(params) {
865
- return core._uint64(exports.ZodBigIntFormat, params);
866
- }
867
- exports.ZodSymbol = core.$constructor("ZodSymbol", (inst, def) => {
868
- core.$ZodSymbol.init(inst, def);
869
- exports.ZodType.init(inst, def);
870
- inst._zod.processJSONSchema = (ctx, json, params) => processors.symbolProcessor(inst, ctx, json, params);
871
- });
872
- function symbol(params) {
873
- return core._symbol(exports.ZodSymbol, params);
874
- }
875
- exports.ZodUndefined = core.$constructor("ZodUndefined", (inst, def) => {
876
- core.$ZodUndefined.init(inst, def);
877
- exports.ZodType.init(inst, def);
878
- inst._zod.processJSONSchema = (ctx, json, params) => processors.undefinedProcessor(inst, ctx, json, params);
879
- });
880
- function _undefined(params) {
881
- return core._undefined(exports.ZodUndefined, params);
882
- }
883
- exports.ZodNull = core.$constructor("ZodNull", (inst, def) => {
884
- core.$ZodNull.init(inst, def);
885
- exports.ZodType.init(inst, def);
886
- inst._zod.processJSONSchema = (ctx, json, params) => processors.nullProcessor(inst, ctx, json, params);
887
- });
888
- function _null(params) {
889
- return core._null(exports.ZodNull, params);
890
- }
891
- exports.ZodAny = core.$constructor("ZodAny", (inst, def) => {
892
- core.$ZodAny.init(inst, def);
893
- exports.ZodType.init(inst, def);
894
- inst._zod.processJSONSchema = (ctx, json, params) => processors.anyProcessor(inst, ctx, json, params);
895
- });
896
- function any() {
897
- return core._any(exports.ZodAny);
898
- }
899
- exports.ZodUnknown = core.$constructor("ZodUnknown", (inst, def) => {
900
- core.$ZodUnknown.init(inst, def);
901
- exports.ZodType.init(inst, def);
902
- inst._zod.processJSONSchema = (ctx, json, params) => processors.unknownProcessor(inst, ctx, json, params);
903
- });
904
- function unknown() {
905
- return core._unknown(exports.ZodUnknown);
906
- }
907
- exports.ZodNever = core.$constructor("ZodNever", (inst, def) => {
908
- core.$ZodNever.init(inst, def);
909
- exports.ZodType.init(inst, def);
910
- inst._zod.processJSONSchema = (ctx, json, params) => processors.neverProcessor(inst, ctx, json, params);
911
- });
912
- function never(params) {
913
- return core._never(exports.ZodNever, params);
914
- }
915
- exports.ZodVoid = core.$constructor("ZodVoid", (inst, def) => {
916
- core.$ZodVoid.init(inst, def);
917
- exports.ZodType.init(inst, def);
918
- inst._zod.processJSONSchema = (ctx, json, params) => processors.voidProcessor(inst, ctx, json, params);
919
- });
920
- function _void(params) {
921
- return core._void(exports.ZodVoid, params);
922
- }
923
- exports.ZodDate = core.$constructor("ZodDate", (inst, def) => {
924
- core.$ZodDate.init(inst, def);
925
- exports.ZodType.init(inst, def);
926
- inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);
927
- inst.min = (value, params) => inst.check(checks.gte(value, params));
928
- inst.max = (value, params) => inst.check(checks.lte(value, params));
929
- },
930
- /*@__PURE__*/ index_js_1.util.derived({
931
- minDate: (inst) => {
932
- const { minimum } = processors.aggregateChecks(inst);
933
- return minimum ? new Date(minimum) : null;
934
- },
935
- maxDate: (inst) => {
936
- const { maximum } = processors.aggregateChecks(inst);
937
- return maximum ? new Date(maximum) : null;
938
- },
939
- }, {}));
940
- function date(params) {
941
- return core._date(exports.ZodDate, params);
942
- }
943
- exports.ZodArray = core.$constructor("ZodArray", (inst, def) => {
944
- _ensureDefaultMemoizer();
945
- core.$ZodArray.init(inst, def);
946
- exports.ZodType.init(inst, def);
947
- inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
948
- inst.element = def.element;
949
- }, {
950
- min(n, params) {
951
- return this.check(checks.minLength(n, params));
952
- },
953
- nonempty(params) {
954
- return this.check(checks.minLength(1, params));
955
- },
956
- max(n, params) {
957
- return this.check(checks.maxLength(n, params));
958
- },
959
- length(n, params) {
960
- return this.check(checks.length(n, params));
961
- },
962
- unwrap() {
963
- return this.element;
964
- },
965
- });
966
- function array(element, params) {
967
- return core._array(exports.ZodArray, element, params);
968
- }
969
- // .keyof
970
- function keyof(schema) {
971
- const shape = schema._zod.def.shape;
972
- return _enum(Object.keys(shape));
973
- }
974
- exports.ZodObject = core.$constructor("ZodObject", (inst, def) => {
975
- _ensureDefaultMemoizer();
976
- core.$ZodObjectJIT.init(inst, def);
977
- exports.ZodType.init(inst, def);
978
- inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);
979
- index_js_1.util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
980
- }, {
981
- keyof() {
982
- return _enum(Object.keys(this._zod.def.shape));
983
- },
984
- catchall(catchall) {
985
- // `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
986
- return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: catchall }));
987
- },
988
- passthrough() {
989
- return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
990
- },
991
- loose() {
992
- return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
993
- },
994
- strict() {
995
- return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: never() }));
996
- },
997
- strip() {
998
- return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: undefined }));
999
- },
1000
- extend(incoming) {
1001
- return index_js_1.util.extend(this, incoming);
1002
- },
1003
- safeExtend(incoming) {
1004
- return index_js_1.util.safeExtend(this, incoming);
1005
- },
1006
- merge(other) {
1007
- return index_js_1.util.merge(this, other);
1008
- },
1009
- pick(mask) {
1010
- return index_js_1.util.pick(this, mask);
1011
- },
1012
- omit(mask) {
1013
- return index_js_1.util.omit(this, mask);
1014
- },
1015
- partial(...args) {
1016
- return index_js_1.util.partial(exports.ZodOptional, this, args[0]);
1017
- },
1018
- exactPartial(...args) {
1019
- return index_js_1.util.partial(exports.ZodExactOptional, this, args[0], "exactPartial");
1020
- },
1021
- required(...args) {
1022
- return index_js_1.util.required(exports.ZodNonOptional, this, args[0]);
1023
- },
1024
- });
1025
- function object(shape, params) {
1026
- const def = {
1027
- type: "object",
1028
- shape: shape ?? {},
1029
- ...index_js_1.util.normalizeParams(params),
1030
- };
1031
- return new exports.ZodObject(def);
1032
- }
1033
- // strictObject
1034
- function strictObject(shape, params) {
1035
- return new exports.ZodObject({
1036
- type: "object",
1037
- shape,
1038
- catchall: never(),
1039
- ...index_js_1.util.normalizeParams(params),
1040
- });
1041
- }
1042
- // looseObject
1043
- function looseObject(shape, params) {
1044
- return new exports.ZodObject({
1045
- type: "object",
1046
- shape,
1047
- catchall: unknown(),
1048
- ...index_js_1.util.normalizeParams(params),
1049
- });
1050
- }
1051
- exports.ZodUnion = core.$constructor("ZodUnion", (inst, def) => {
1052
- core.$ZodUnion.init(inst, def);
1053
- exports.ZodType.init(inst, def);
1054
- inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
1055
- inst.options = def.options;
1056
- });
1057
- function union(options, params) {
1058
- return new exports.ZodUnion({
1059
- type: "union",
1060
- options: options,
1061
- ...index_js_1.util.normalizeParams(params),
1062
- });
1063
- }
1064
- exports.ZodXor = core.$constructor("ZodXor", (inst, def) => {
1065
- exports.ZodUnion.init(inst, def);
1066
- core.$ZodXor.init(inst, def);
1067
- inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
1068
- inst.options = def.options;
1069
- });
1070
- /** Creates an exclusive union (XOR) where exactly one option must match.
1071
- * Unlike regular unions that succeed when any option matches, xor fails if
1072
- * zero or more than one option matches the input. */
1073
- function xor(options, params) {
1074
- return new exports.ZodXor({
1075
- type: "union",
1076
- options: options,
1077
- inclusive: false,
1078
- ...index_js_1.util.normalizeParams(params),
1079
- });
1080
- }
1081
- exports.ZodDiscriminatedUnion = core.$constructor("ZodDiscriminatedUnion", (inst, def) => {
1082
- exports.ZodUnion.init(inst, def);
1083
- core.$ZodDiscriminatedUnion.init(inst, def);
1084
- });
1085
- function discriminatedUnion(discriminator, options, params) {
1086
- // const [options, params] = args;
1087
- return new exports.ZodDiscriminatedUnion({
1088
- type: "union",
1089
- options: options,
1090
- discriminator,
1091
- ...index_js_1.util.normalizeParams(params),
1092
- });
1093
- }
1094
- exports.ZodIntersection = core.$constructor("ZodIntersection", (inst, def) => {
1095
- core.$ZodIntersection.init(inst, def);
1096
- exports.ZodType.init(inst, def);
1097
- inst._zod.processJSONSchema = (ctx, json, params) => processors.intersectionProcessor(inst, ctx, json, params);
1098
- });
1099
- function intersection(left, right) {
1100
- return new exports.ZodIntersection({
1101
- type: "intersection",
1102
- left: left,
1103
- right: right,
1104
- });
1105
- }
1106
- exports.ZodTuple = core.$constructor("ZodTuple", (inst, def) => {
1107
- _ensureDefaultMemoizer();
1108
- core.$ZodTuple.init(inst, def);
1109
- exports.ZodType.init(inst, def);
1110
- inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);
1111
- }, {
1112
- rest(rest) {
1113
- return this.clone({
1114
- ...this._zod.def,
1115
- rest: rest,
1116
- });
1117
- },
1118
- partial() {
1119
- const def = this._zod.def;
1120
- // a refinement was authored against the full arity; partialing would run it on a shorter array
1121
- if (def.checks?.length)
1122
- throw new Error(".partial() cannot be used on tuple schemas containing refinements");
1123
- return this.clone({
1124
- ...def,
1125
- items: def.items.map((item) => new exports.ZodOptional({ type: "optional", innerType: item })),
1126
- });
1127
- },
1128
- });
1129
- function tuple(items, _paramsOrRest, _params) {
1130
- const hasRest = _paramsOrRest instanceof core.$ZodType;
1131
- const params = hasRest ? _params : _paramsOrRest;
1132
- const rest = hasRest ? _paramsOrRest : null;
1133
- return new exports.ZodTuple({
1134
- type: "tuple",
1135
- items: items,
1136
- rest,
1137
- ...index_js_1.util.normalizeParams(params),
1138
- });
1139
- }
1140
- exports.ZodRecord = core.$constructor("ZodRecord", (inst, def) => {
1141
- _ensureDefaultMemoizer();
1142
- core.$ZodRecord.init(inst, def);
1143
- exports.ZodType.init(inst, def);
1144
- inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);
1145
- inst.keyType = def.keyType;
1146
- inst.valueType = def.valueType;
1147
- });
1148
- function record(keyType, valueType, params) {
1149
- // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
1150
- if (!valueType || !valueType._zod) {
1151
- return new exports.ZodRecord({
1152
- type: "record",
1153
- keyType: string(),
1154
- valueType: keyType,
1155
- ...index_js_1.util.normalizeParams(valueType),
1156
- });
1157
- }
1158
- return new exports.ZodRecord({
1159
- type: "record",
1160
- keyType,
1161
- valueType: valueType,
1162
- ...index_js_1.util.normalizeParams(params),
1163
- });
1164
- }
1165
- // type alksjf = core.output<core.$ZodRecordKey>;
1166
- function partialRecord(keyType, valueType, params) {
1167
- return new exports.ZodRecord({
1168
- type: "record",
1169
- keyType,
1170
- valueType: valueType,
1171
- ...index_js_1.util.normalizeParams(params),
1172
- partial: true,
1173
- });
1174
- }
1175
- function looseRecord(keyType, valueType, params) {
1176
- return new exports.ZodRecord({
1177
- type: "record",
1178
- keyType,
1179
- valueType: valueType,
1180
- mode: "loose",
1181
- ...index_js_1.util.normalizeParams(params),
1182
- });
1183
- }
1184
- exports.ZodMap = core.$constructor("ZodMap", (inst, def) => {
1185
- _ensureDefaultMemoizer();
1186
- core.$ZodMap.init(inst, def);
1187
- exports.ZodType.init(inst, def);
1188
- inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);
1189
- inst.keyType = def.keyType;
1190
- inst.valueType = def.valueType;
1191
- inst.min = (...args) => inst.check(core._minSize(...args));
1192
- inst.nonempty = (params) => inst.check(core._minSize(1, params));
1193
- inst.max = (...args) => inst.check(core._maxSize(...args));
1194
- inst.size = (...args) => inst.check(core._size(...args));
1195
- });
1196
- function map(keyType, valueType, params) {
1197
- return new exports.ZodMap({
1198
- type: "map",
1199
- keyType: keyType,
1200
- valueType: valueType,
1201
- ...index_js_1.util.normalizeParams(params),
1202
- });
1203
- }
1204
- exports.ZodSet = core.$constructor("ZodSet", (inst, def) => {
1205
- _ensureDefaultMemoizer();
1206
- core.$ZodSet.init(inst, def);
1207
- exports.ZodType.init(inst, def);
1208
- inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);
1209
- inst.min = (...args) => inst.check(core._minSize(...args));
1210
- inst.nonempty = (params) => inst.check(core._minSize(1, params));
1211
- inst.max = (...args) => inst.check(core._maxSize(...args));
1212
- inst.size = (...args) => inst.check(core._size(...args));
1213
- });
1214
- function set(valueType, params) {
1215
- return new exports.ZodSet({
1216
- type: "set",
1217
- valueType: valueType,
1218
- ...index_js_1.util.normalizeParams(params),
1219
- });
1220
- }
1221
- exports.ZodEnum = core.$constructor("ZodEnum", (inst, def) => {
1222
- core.$ZodEnum.init(inst, def);
1223
- exports.ZodType.init(inst, def);
1224
- inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);
1225
- inst.enum = def.entries;
1226
- // reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
1227
- inst.options = [...inst._zod.values];
1228
- const keys = new Set(Object.keys(def.entries));
1229
- inst.extract = (values, params) => {
1230
- const newEntries = {};
1231
- for (const value of values) {
1232
- if (keys.has(value)) {
1233
- newEntries[value] = def.entries[value];
1234
- }
1235
- else
1236
- throw new Error(`Key ${value} not found in enum`);
1237
- }
1238
- return new exports.ZodEnum({
1239
- ...def,
1240
- checks: [],
1241
- ...index_js_1.util.normalizeParams(params),
1242
- entries: newEntries,
1243
- });
1244
- };
1245
- inst.exclude = (values, params) => {
1246
- const newEntries = { ...def.entries };
1247
- for (const value of values) {
1248
- if (keys.has(value)) {
1249
- delete newEntries[value];
1250
- }
1251
- else
1252
- throw new Error(`Key ${value} not found in enum`);
1253
- }
1254
- return new exports.ZodEnum({
1255
- ...def,
1256
- checks: [],
1257
- ...index_js_1.util.normalizeParams(params),
1258
- entries: newEntries,
1259
- });
1260
- };
1261
- });
1262
- function _enum(values, params) {
1263
- const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1264
- return new exports.ZodEnum({
1265
- type: "enum",
1266
- entries,
1267
- ...index_js_1.util.normalizeParams(params),
1268
- });
1269
- }
1270
- /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1271
- *
1272
- * ```ts
1273
- * enum Colors { red, green, blue }
1274
- * z.enum(Colors);
1275
- * ```
1276
- */
1277
- function nativeEnum(entries, params) {
1278
- return new exports.ZodEnum({
1279
- type: "enum",
1280
- entries,
1281
- ...index_js_1.util.normalizeParams(params),
1282
- });
1283
- }
1284
- exports.ZodLiteral = core.$constructor("ZodLiteral", (inst, def) => {
1285
- core.$ZodLiteral.init(inst, def);
1286
- exports.ZodType.init(inst, def);
1287
- inst._zod.processJSONSchema = (ctx, json, params) => processors.literalProcessor(inst, ctx, json, params);
1288
- inst.values = new Set(def.values);
1289
- Object.defineProperty(inst, "value", {
1290
- get() {
1291
- if (def.values.length > 1) {
1292
- throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
1293
- }
1294
- return def.values[0];
1295
- },
1296
- });
1297
- });
1298
- function literal(value, params) {
1299
- return new exports.ZodLiteral({
1300
- type: "literal",
1301
- values: Array.isArray(value) ? value : [value],
1302
- ...index_js_1.util.normalizeParams(params),
1303
- });
1304
- }
1305
- exports.ZodFile = core.$constructor("ZodFile", (inst, def) => {
1306
- core.$ZodFile.init(inst, def);
1307
- exports.ZodType.init(inst, def);
1308
- inst._zod.processJSONSchema = (ctx, json, params) => processors.fileProcessor(inst, ctx, json, params);
1309
- inst.min = (size, params) => inst.check(core._minSize(size, params));
1310
- inst.max = (size, params) => inst.check(core._maxSize(size, params));
1311
- inst.mime = (types, params) => inst.check(core._mime(Array.isArray(types) ? types : [types], params));
1312
- });
1313
- function file(params) {
1314
- return core._file(exports.ZodFile, params);
1315
- }
1316
- exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
1317
- _ensureDefaultMemoizer();
1318
- core.$ZodTransform.init(inst, def);
1319
- exports.ZodType.init(inst, def);
1320
- inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);
1321
- inst._zod.parse = (payload, _ctx) => {
1322
- if (_ctx.direction === "backward") {
1323
- throw new core.$ZodEncodeError(inst.constructor.name);
1324
- }
1325
- payload.addIssue = (issue) => {
1326
- if (typeof issue === "string") {
1327
- payload.issues.push(index_js_1.util.issue(issue, payload.value, def));
1328
- }
1329
- else {
1330
- // for Zod 3 backwards compatibility
1331
- const _issue = issue;
1332
- if (_issue.fatal)
1333
- _issue.continue = false;
1334
- _issue.code ?? (_issue.code = "custom");
1335
- if (!("input" in _issue))
1336
- _issue.input = payload.value;
1337
- _issue.inst ?? (_issue.inst = inst);
1338
- // _issue.continue ??= true;
1339
- payload.issues.push(index_js_1.util.issue(_issue));
1340
- }
1341
- };
1342
- const output = def.transform(payload.value, payload);
1343
- if (output instanceof Promise) {
1344
- return output.then((output) => {
1345
- payload.value = output;
1346
- return payload;
1347
- });
1348
- }
1349
- payload.value = output;
1350
- return payload;
1351
- };
1352
- });
1353
- function transform(fn) {
1354
- return new exports.ZodTransform({
1355
- type: "transform",
1356
- transform: fn,
1357
- });
1358
- }
1359
- exports.ZodOptional = core.$constructor("ZodOptional", (inst, def) => {
1360
- core.$ZodOptional.init(inst, def);
1361
- exports.ZodType.init(inst, def);
1362
- inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
1363
- inst.unwrap = () => inst._zod.def.innerType;
1364
- });
1365
- function optional(innerType) {
1366
- return new exports.ZodOptional({
1367
- type: "optional",
1368
- innerType: innerType,
1369
- });
1370
- }
1371
- exports.ZodExactOptional = core.$constructor("ZodExactOptional", (inst, def) => {
1372
- core.$ZodExactOptional.init(inst, def);
1373
- exports.ZodType.init(inst, def);
1374
- inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
1375
- inst.unwrap = () => inst._zod.def.innerType;
1376
- });
1377
- function exactOptional(innerType) {
1378
- return new exports.ZodExactOptional({
1379
- type: "optional",
1380
- innerType: innerType,
1381
- });
1382
- }
1383
- exports.ZodNullable = core.$constructor("ZodNullable", (inst, def) => {
1384
- core.$ZodNullable.init(inst, def);
1385
- exports.ZodType.init(inst, def);
1386
- inst._zod.processJSONSchema = (ctx, json, params) => processors.nullableProcessor(inst, ctx, json, params);
1387
- inst.unwrap = () => inst._zod.def.innerType;
1388
- });
1389
- function nullable(innerType) {
1390
- return new exports.ZodNullable({
1391
- type: "nullable",
1392
- innerType: innerType,
1393
- });
1394
- }
1395
- // nullish
1396
- function nullish(innerType) {
1397
- return optional(nullable(innerType));
1398
- }
1399
- exports.ZodDefault = core.$constructor("ZodDefault", (inst, def) => {
1400
- core.$ZodDefault.init(inst, def);
1401
- exports.ZodType.init(inst, def);
1402
- inst._zod.processJSONSchema = (ctx, json, params) => processors.defaultProcessor(inst, ctx, json, params);
1403
- inst.unwrap = () => inst._zod.def.innerType;
1404
- inst.removeDefault = inst.unwrap;
1405
- });
1406
- function _default(innerType, defaultValue) {
1407
- return new exports.ZodDefault({
1408
- type: "default",
1409
- innerType: innerType,
1410
- get defaultValue() {
1411
- return typeof defaultValue === "function" ? defaultValue() : index_js_1.util.shallowClone(defaultValue);
1412
- },
1413
- });
1414
- }
1415
- exports.ZodPrefault = core.$constructor("ZodPrefault", (inst, def) => {
1416
- core.$ZodPrefault.init(inst, def);
1417
- exports.ZodType.init(inst, def);
1418
- inst._zod.processJSONSchema = (ctx, json, params) => processors.prefaultProcessor(inst, ctx, json, params);
1419
- inst.unwrap = () => inst._zod.def.innerType;
1420
- });
1421
- function prefault(innerType, defaultValue) {
1422
- return new exports.ZodPrefault({
1423
- type: "prefault",
1424
- innerType: innerType,
1425
- get defaultValue() {
1426
- return typeof defaultValue === "function" ? defaultValue() : index_js_1.util.shallowClone(defaultValue);
1427
- },
1428
- });
1429
- }
1430
- exports.ZodNonOptional = core.$constructor("ZodNonOptional", (inst, def) => {
1431
- core.$ZodNonOptional.init(inst, def);
1432
- exports.ZodType.init(inst, def);
1433
- inst._zod.processJSONSchema = (ctx, json, params) => processors.nonoptionalProcessor(inst, ctx, json, params);
1434
- inst.unwrap = () => inst._zod.def.innerType;
1435
- });
1436
- function nonoptional(innerType, params) {
1437
- return new exports.ZodNonOptional({
1438
- type: "nonoptional",
1439
- innerType: innerType,
1440
- ...index_js_1.util.normalizeParams(params),
1441
- });
1442
- }
1443
- exports.ZodSuccess = core.$constructor("ZodSuccess", (inst, def) => {
1444
- core.$ZodSuccess.init(inst, def);
1445
- exports.ZodType.init(inst, def);
1446
- inst._zod.processJSONSchema = (ctx, json, params) => processors.successProcessor(inst, ctx, json, params);
1447
- inst.unwrap = () => inst._zod.def.innerType;
1448
- });
1449
- function success(innerType) {
1450
- return new exports.ZodSuccess({
1451
- type: "success",
1452
- innerType: innerType,
1453
- });
1454
- }
1455
- exports.ZodCatch = core.$constructor("ZodCatch", (inst, def) => {
1456
- core.$ZodCatch.init(inst, def);
1457
- exports.ZodType.init(inst, def);
1458
- inst._zod.processJSONSchema = (ctx, json, params) => processors.catchProcessor(inst, ctx, json, params);
1459
- inst.unwrap = () => inst._zod.def.innerType;
1460
- inst.removeCatch = inst.unwrap;
1461
- });
1462
- function _catch(innerType, catchValue) {
1463
- return new exports.ZodCatch({
1464
- type: "catch",
1465
- innerType: innerType,
1466
- catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)),
1467
- });
1468
- }
1469
- exports.ZodNaN = core.$constructor("ZodNaN", (inst, def) => {
1470
- core.$ZodNaN.init(inst, def);
1471
- exports.ZodType.init(inst, def);
1472
- inst._zod.processJSONSchema = (ctx, json, params) => processors.nanProcessor(inst, ctx, json, params);
1473
- });
1474
- function nan(params) {
1475
- return core._nan(exports.ZodNaN, params);
1476
- }
1477
- exports.ZodPipe = core.$constructor("ZodPipe", (inst, def) => {
1478
- core.$ZodPipe.init(inst, def);
1479
- exports.ZodType.init(inst, def);
1480
- inst._zod.processJSONSchema = (ctx, json, params) => processors.pipeProcessor(inst, ctx, json, params);
1481
- inst.in = def.in;
1482
- inst.out = def.out;
1483
- });
1484
- function pipe(in_, out) {
1485
- return new exports.ZodPipe({
1486
- type: "pipe",
1487
- in: in_,
1488
- out: out,
1489
- // ...util.normalizeParams(params),
1490
- });
1491
- }
1492
- exports.ZodCodec = core.$constructor("ZodCodec", (inst, def) => {
1493
- exports.ZodPipe.init(inst, def);
1494
- core.$ZodCodec.init(inst, def);
1495
- });
1496
- function codec(in_, out, params) {
1497
- return new exports.ZodCodec({
1498
- type: "pipe",
1499
- in: in_,
1500
- out: out,
1501
- transform: params.decode,
1502
- reverseTransform: params.encode,
1503
- });
1504
- }
1505
- function invertCodec(codec) {
1506
- const def = codec._zod.def;
1507
- return new exports.ZodCodec({
1508
- type: "pipe",
1509
- in: def.out,
1510
- out: def.in,
1511
- transform: def.reverseTransform,
1512
- reverseTransform: def.transform,
1513
- });
1514
- }
1515
- exports.ZodPreprocess = core.$constructor("ZodPreprocess", (inst, def) => {
1516
- exports.ZodPipe.init(inst, def);
1517
- core.$ZodPreprocess.init(inst, def);
1518
- });
1519
- exports.ZodReadonly = core.$constructor("ZodReadonly", (inst, def) => {
1520
- core.$ZodReadonly.init(inst, def);
1521
- exports.ZodType.init(inst, def);
1522
- inst._zod.processJSONSchema = (ctx, json, params) => processors.readonlyProcessor(inst, ctx, json, params);
1523
- inst.unwrap = () => inst._zod.def.innerType;
1524
- });
1525
- function readonly(innerType) {
1526
- return new exports.ZodReadonly({
1527
- type: "readonly",
1528
- innerType: innerType,
1529
- });
1530
- }
1531
- exports.ZodTemplateLiteral = core.$constructor("ZodTemplateLiteral", (inst, def) => {
1532
- core.$ZodTemplateLiteral.init(inst, def);
1533
- exports.ZodType.init(inst, def);
1534
- inst._zod.processJSONSchema = (ctx, json, params) => processors.templateLiteralProcessor(inst, ctx, json, params);
1535
- });
1536
- function templateLiteral(parts, params) {
1537
- return new exports.ZodTemplateLiteral({
1538
- type: "template_literal",
1539
- parts,
1540
- ...index_js_1.util.normalizeParams(params),
1541
- });
1542
- }
1543
- exports.ZodLazy = core.$constructor("ZodLazy", (inst, def) => {
1544
- core.$ZodLazy.init(inst, def);
1545
- exports.ZodType.init(inst, def);
1546
- inst._zod.processJSONSchema = (ctx, json, params) => processors.lazyProcessor(inst, ctx, json, params);
1547
- inst.unwrap = () => inst._zod.def.getter();
1548
- });
1549
- function lazy(getter) {
1550
- return new exports.ZodLazy({
1551
- type: "lazy",
1552
- getter: getter,
1553
- });
1554
- }
1555
- exports.ZodPromise = core.$constructor("ZodPromise", (inst, def) => {
1556
- core.$ZodPromise.init(inst, def);
1557
- exports.ZodType.init(inst, def);
1558
- inst._zod.processJSONSchema = (ctx, json, params) => processors.promiseProcessor(inst, ctx, json, params);
1559
- inst.unwrap = () => inst._zod.def.innerType;
1560
- });
1561
- function promise(innerType) {
1562
- return new exports.ZodPromise({
1563
- type: "promise",
1564
- innerType: innerType,
1565
- });
1566
- }
1567
- exports.ZodFunction = core.$constructor("ZodFunction", (inst, def) => {
1568
- core.$ZodFunction.init(inst, def);
1569
- exports.ZodType.init(inst, def);
1570
- inst._zod.processJSONSchema = (ctx, json, params) => processors.functionProcessor(inst, ctx, json, params);
1571
- });
1572
- function _function(params) {
1573
- return new exports.ZodFunction({
1574
- type: "function",
1575
- input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),
1576
- output: params?.output ?? unknown(),
1577
- });
1578
- }
1579
- exports.ZodCustom = core.$constructor("ZodCustom", (inst, def) => {
1580
- core.$ZodCustom.init(inst, def);
1581
- exports.ZodType.init(inst, def);
1582
- inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);
1583
- });
1584
- // custom checks
1585
- function check(fn) {
1586
- const ch = new core.$ZodCheck({
1587
- check: "custom",
1588
- // ...util.normalizeParams(params),
1589
- });
1590
- ch._zod.check = fn;
1591
- return ch;
1592
- }
1593
- function custom(fn, _params) {
1594
- return core._custom(exports.ZodCustom, fn ?? (() => true), _params);
1595
- }
1596
- function refine(fn, _params = {}) {
1597
- return core._refine(exports.ZodCustom, fn, _params);
1598
- }
1599
- // superRefine
1600
- function superRefine(fn, params) {
1601
- return core._superRefine(fn, params);
1602
- }
1603
- // Re-export describe and meta from core
1604
- exports.describe = core.describe;
1605
- exports.meta = core.meta;
1606
- exports.ZodInstanceOf = core.$constructor("ZodInstanceOf", (inst, def) => {
1607
- exports.ZodCustom.init(inst, def);
1608
- }, {
1609
- properties(shape, params) {
1610
- // asserts in place, so the narrowed output type is truthful without a wrapper
1611
- return this.check(core._properties(shape, params));
1612
- },
1613
- });
1614
- function _instanceof(cls, params = {}) {
1615
- const inst = new exports.ZodInstanceOf({
1616
- type: "custom",
1617
- check: "custom",
1618
- fn: (data) => data instanceof cls,
1619
- abort: true,
1620
- ...index_js_1.util.normalizeParams(params),
1621
- });
1622
- inst._zod.bag.Class = cls;
1623
- // Override check to emit invalid_type instead of custom
1624
- inst._zod.check = (payload) => {
1625
- if (!(payload.value instanceof cls)) {
1626
- payload.issues.push({
1627
- code: "invalid_type",
1628
- expected: cls.name,
1629
- input: payload.value,
1630
- inst,
1631
- path: [...(inst._zod.def.path ?? [])],
1632
- });
1633
- }
1634
- };
1635
- return inst;
1636
- }
1637
- // stringbool
1638
- const stringbool = (...args) => core._stringbool({
1639
- Codec: exports.ZodCodec,
1640
- Boolean: exports.ZodBoolean,
1641
- String: exports.ZodString,
1642
- }, ...args);
1643
- exports.stringbool = stringbool;
1644
- function json(params) {
1645
- const jsonSchema = lazy(() => {
1646
- return union([string(params), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
1647
- });
1648
- return jsonSchema;
1649
- }
1650
- // preprocess
1651
- function preprocess(fn, schema) {
1652
- return new exports.ZodPreprocess({
1653
- type: "pipe",
1654
- in: transform(fn),
1655
- out: schema,
1656
- });
1657
- }
1658
-
1659
- // seal-cjs-exports
1660
- (function () {
1661
- var keys = Object.getOwnPropertyNames(exports);
1662
- for (var i = 0; i < keys.length; i++) {
1663
- var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
1664
- if (!desc || !desc.get || !desc.configurable) continue;
1665
- var value;
1666
- try {
1667
- value = desc.get();
1668
- } catch (e) {
1669
- continue;
1670
- }
1671
- // a circular require may not have settled this one yet, so leave it live
1672
- if (value === undefined) continue;
1673
- Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
1674
- }
1675
- Object.freeze(exports);
1676
- })();