@wopee-io/wopee.pw 4.26.2 → 4.26.4

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 (702) hide show
  1. package/build/shared/metadata/versionMetadata.js +2 -2
  2. package/build/tools/wopee-reporter/types/wopeeReporter.interface.d.ts +2 -30
  3. package/build/tools/wopee-reporter/types/wopeeReporter.interface.js +3 -6
  4. package/build/tools/wopee-reporter/types/wopeeReporter.interface.js.map +1 -1
  5. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +1 -7
  6. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +1 -23
  7. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +1 -5
  8. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +1 -7
  9. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +3 -11
  10. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +1 -1
  11. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +1 -7
  12. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.d.ts +3 -11
  13. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.js +1 -1
  14. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssertPayload.interface.d.ts +1 -9
  15. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
  16. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +32 -229
  17. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +8 -8
  18. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +5 -10
  19. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +2 -1
  20. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  21. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +10 -0
  22. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +8 -0
  23. package/node_modules/@autonomous-testing/sdk/package.json +2 -2
  24. package/node_modules/zod/README.md +34 -24
  25. package/node_modules/zod/compile.cjs +96 -0
  26. package/node_modules/zod/compile.d.cts +1 -0
  27. package/node_modules/zod/compile.d.ts +1 -0
  28. package/node_modules/zod/compile.js +52 -0
  29. package/node_modules/zod/index.cjs +22 -3
  30. package/node_modules/zod/index.d.cts +3 -4
  31. package/node_modules/zod/index.d.ts +3 -4
  32. package/node_modules/zod/index.js +7 -4
  33. package/node_modules/zod/locales/index.cjs +36 -0
  34. package/node_modules/zod/locales/index.d.cts +1 -0
  35. package/node_modules/zod/locales/index.d.ts +1 -0
  36. package/node_modules/zod/locales/index.js +1 -0
  37. package/node_modules/zod/locales/package.json +7 -0
  38. package/node_modules/zod/mini/index.cjs +51 -0
  39. package/node_modules/zod/mini/index.d.cts +3 -0
  40. package/node_modules/zod/mini/index.d.ts +3 -0
  41. package/node_modules/zod/mini/index.js +3 -0
  42. package/node_modules/zod/mini/package.json +7 -0
  43. package/node_modules/zod/package.json +44 -15
  44. package/node_modules/zod/src/compile.ts +56 -0
  45. package/node_modules/zod/src/index.ts +7 -4
  46. package/node_modules/zod/src/locales/index.ts +1 -0
  47. package/node_modules/zod/src/mini/index.ts +3 -0
  48. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  49. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  50. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  51. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  52. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  53. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  54. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  55. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  56. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  57. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  58. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  59. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  60. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  61. package/node_modules/zod/src/v3/types.ts +8 -6
  62. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  63. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  64. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  65. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  66. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  67. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  68. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  69. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  70. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  71. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  72. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  73. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  74. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  75. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  76. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  77. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  78. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  79. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  80. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  81. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  82. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  83. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  84. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  85. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  86. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  87. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  88. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  89. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  90. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  91. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  92. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  93. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  94. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  95. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  96. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  97. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  98. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  99. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  100. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  101. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  102. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  103. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  104. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  105. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  106. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  107. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  108. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  109. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  110. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  111. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  112. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  113. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  114. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  115. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  116. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  117. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  118. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  119. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  120. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  121. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  122. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  123. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  124. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  125. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  126. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  127. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  128. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  129. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  130. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  131. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  132. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  133. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  134. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  135. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  136. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  137. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  138. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  139. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  140. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  141. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  142. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  143. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  144. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  145. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  146. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  147. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  148. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  149. package/node_modules/zod/src/v4/core/api.ts +442 -161
  150. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  151. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  152. package/node_modules/zod/src/v4/core/core.ts +146 -50
  153. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  154. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  155. package/node_modules/zod/src/v4/core/index.ts +5 -1
  156. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  157. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  158. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  159. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  160. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  161. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  162. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  163. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  164. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  165. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  166. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  167. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  168. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  169. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  170. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  171. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  172. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  173. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  174. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  175. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  176. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  177. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  178. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  179. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  180. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  181. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  182. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  183. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  184. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  185. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  186. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  187. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  188. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  189. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  190. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  191. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  192. package/node_modules/zod/src/v4/core/util.ts +675 -157
  193. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  194. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  195. package/node_modules/zod/src/v4/index.ts +3 -3
  196. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  197. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  198. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  199. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  200. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  201. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  202. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  203. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  204. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  205. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  206. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  207. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  208. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  209. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  210. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  211. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  212. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  213. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  214. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  215. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  216. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  217. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  218. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  219. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  220. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  221. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  222. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  223. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  224. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  225. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  226. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  227. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  228. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  229. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  230. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  231. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  232. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  233. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  234. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  235. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  236. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  237. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  238. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  239. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  240. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  241. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  242. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  243. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  244. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  245. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  246. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  247. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  248. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  249. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  250. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  251. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  252. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  253. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  254. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  255. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  256. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  257. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  258. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  259. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  260. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  261. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  262. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  263. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  264. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  265. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  266. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  267. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  268. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  269. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  270. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  271. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  272. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  273. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  274. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  275. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  276. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  277. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  278. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  279. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  280. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  281. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  282. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  283. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  284. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  285. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  286. package/node_modules/zod/v3/ZodError.cjs +42 -13
  287. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  288. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  289. package/node_modules/zod/v3/ZodError.js +23 -13
  290. package/node_modules/zod/v3/errors.cjs +19 -0
  291. package/node_modules/zod/v3/external.cjs +19 -0
  292. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  293. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  294. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  295. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  296. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  297. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  298. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  299. package/node_modules/zod/v3/index.cjs +19 -0
  300. package/node_modules/zod/v3/locales/en.cjs +1 -0
  301. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  302. package/node_modules/zod/v3/package.json +7 -0
  303. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  304. package/node_modules/zod/v3/types.cjs +28 -5
  305. package/node_modules/zod/v3/types.d.cts +4 -1
  306. package/node_modules/zod/v3/types.d.ts +4 -1
  307. package/node_modules/zod/v3/types.js +9 -5
  308. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  309. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  310. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  311. package/node_modules/zod/v4/classic/checks.js +1 -1
  312. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  313. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  314. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  315. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  316. package/node_modules/zod/v4/classic/compat.js +4 -0
  317. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  318. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  319. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  320. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  321. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  322. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  323. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  324. package/node_modules/zod/v4/classic/errors.js +45 -29
  325. package/node_modules/zod/v4/classic/external.cjs +55 -28
  326. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  327. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  328. package/node_modules/zod/v4/classic/external.js +7 -8
  329. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  330. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  331. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  332. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  333. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  334. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  335. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  336. package/node_modules/zod/v4/classic/in-out.js +36 -0
  337. package/node_modules/zod/v4/classic/index.cjs +21 -2
  338. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  339. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  340. package/node_modules/zod/v4/classic/index.js +2 -2
  341. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  342. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  343. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  344. package/node_modules/zod/v4/classic/iso.js +2 -17
  345. package/node_modules/zod/v4/classic/package.json +7 -0
  346. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  347. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  348. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  349. package/node_modules/zod/v4/classic/parse.js +10 -0
  350. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  351. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  352. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  353. package/node_modules/zod/v4/classic/schemas.js +766 -237
  354. package/node_modules/zod/v4/core/api.cjs +284 -54
  355. package/node_modules/zod/v4/core/api.d.cts +133 -82
  356. package/node_modules/zod/v4/core/api.d.ts +133 -82
  357. package/node_modules/zod/v4/core/api.js +255 -54
  358. package/node_modules/zod/v4/core/checks.cjs +100 -130
  359. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  360. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  361. package/node_modules/zod/v4/core/checks.js +80 -129
  362. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  363. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  364. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  365. package/node_modules/zod/v4/core/compile.js +1866 -0
  366. package/node_modules/zod/v4/core/core.cjs +120 -20
  367. package/node_modules/zod/v4/core/core.d.cts +40 -7
  368. package/node_modules/zod/v4/core/core.d.ts +40 -7
  369. package/node_modules/zod/v4/core/core.js +101 -21
  370. package/node_modules/zod/v4/core/doc.cjs +31 -9
  371. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  372. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  373. package/node_modules/zod/v4/core/doc.js +12 -9
  374. package/node_modules/zod/v4/core/errors.cjs +151 -60
  375. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  376. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  377. package/node_modules/zod/v4/core/errors.js +132 -60
  378. package/node_modules/zod/v4/core/index.cjs +28 -2
  379. package/node_modules/zod/v4/core/index.d.cts +5 -1
  380. package/node_modules/zod/v4/core/index.d.ts +5 -1
  381. package/node_modules/zod/v4/core/index.js +5 -1
  382. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  383. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  384. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  385. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  386. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  387. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  388. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  389. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  390. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  391. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  392. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  393. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  394. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  395. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  396. package/node_modules/zod/v4/core/memoizer.js +311 -0
  397. package/node_modules/zod/v4/core/package.json +7 -0
  398. package/node_modules/zod/v4/core/parse.cjs +183 -37
  399. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  400. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  401. package/node_modules/zod/v4/core/parse.js +154 -36
  402. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  403. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  404. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  405. package/node_modules/zod/v4/core/regexes.js +90 -29
  406. package/node_modules/zod/v4/core/registries.cjs +26 -7
  407. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  408. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  409. package/node_modules/zod/v4/core/registries.js +9 -9
  410. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  411. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  412. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  413. package/node_modules/zod/v4/core/schemas.js +1341 -422
  414. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  415. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  416. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  417. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  418. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  419. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  420. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  421. package/node_modules/zod/v4/core/util.cjs +580 -155
  422. package/node_modules/zod/v4/core/util.d.cts +98 -1
  423. package/node_modules/zod/v4/core/util.d.ts +98 -1
  424. package/node_modules/zod/v4/core/util.js +536 -156
  425. package/node_modules/zod/v4/core/versions.cjs +21 -2
  426. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  427. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  428. package/node_modules/zod/v4/core/versions.js +2 -2
  429. package/node_modules/zod/v4/core/visit.cjs +214 -0
  430. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  431. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  432. package/node_modules/zod/v4/core/visit.js +169 -0
  433. package/node_modules/zod/v4/index.cjs +34 -5
  434. package/node_modules/zod/v4/index.d.cts +2 -2
  435. package/node_modules/zod/v4/index.d.ts +2 -2
  436. package/node_modules/zod/v4/index.js +3 -2
  437. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  438. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  439. package/node_modules/zod/v4/locales/ar.js +19 -24
  440. package/node_modules/zod/v4/locales/az.cjs +20 -24
  441. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  442. package/node_modules/zod/v4/locales/az.js +19 -24
  443. package/node_modules/zod/v4/locales/be.cjs +29 -24
  444. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  445. package/node_modules/zod/v4/locales/be.js +28 -24
  446. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  447. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  448. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  449. package/node_modules/zod/v4/locales/bg.js +125 -0
  450. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  451. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  452. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  453. package/node_modules/zod/v4/locales/bn.js +113 -0
  454. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  455. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  456. package/node_modules/zod/v4/locales/ca.js +19 -25
  457. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  458. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  459. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  460. package/node_modules/zod/v4/locales/ckb.js +133 -0
  461. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  462. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  463. package/node_modules/zod/v4/locales/cs.js +23 -42
  464. package/node_modules/zod/v4/locales/da.cjs +147 -0
  465. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  466. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  467. package/node_modules/zod/v4/locales/da.js +120 -0
  468. package/node_modules/zod/v4/locales/de.cjs +22 -24
  469. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  470. package/node_modules/zod/v4/locales/de.js +21 -24
  471. package/node_modules/zod/v4/locales/el.cjs +139 -0
  472. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  473. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  474. package/node_modules/zod/v4/locales/el.js +112 -0
  475. package/node_modules/zod/v4/locales/en.cjs +35 -28
  476. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  477. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  478. package/node_modules/zod/v4/locales/en.js +34 -26
  479. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  480. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  481. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  482. package/node_modules/zod/v4/locales/eo.js +22 -24
  483. package/node_modules/zod/v4/locales/es.cjs +51 -31
  484. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  485. package/node_modules/zod/v4/locales/es.js +50 -31
  486. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  487. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  488. package/node_modules/zod/v4/locales/fa.js +21 -24
  489. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  490. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  491. package/node_modules/zod/v4/locales/fi.js +19 -24
  492. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  493. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  494. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  495. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  496. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  497. package/node_modules/zod/v4/locales/fr.js +52 -39
  498. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  499. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  500. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  501. package/node_modules/zod/v4/locales/gu.js +113 -0
  502. package/node_modules/zod/v4/locales/he.cjs +183 -78
  503. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  504. package/node_modules/zod/v4/locales/he.js +182 -78
  505. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  506. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  507. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  508. package/node_modules/zod/v4/locales/hi.js +111 -0
  509. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  510. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  511. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  512. package/node_modules/zod/v4/locales/hr.js +126 -0
  513. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  514. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  515. package/node_modules/zod/v4/locales/hu.js +21 -25
  516. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  517. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  518. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  519. package/node_modules/zod/v4/locales/hy.js +158 -0
  520. package/node_modules/zod/v4/locales/id.cjs +20 -24
  521. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  522. package/node_modules/zod/v4/locales/id.js +19 -24
  523. package/node_modules/zod/v4/locales/index.cjs +69 -1
  524. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  525. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  526. package/node_modules/zod/v4/locales/index.js +24 -0
  527. package/node_modules/zod/v4/locales/is.cjs +141 -0
  528. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  529. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  530. package/node_modules/zod/v4/locales/is.js +114 -0
  531. package/node_modules/zod/v4/locales/it.cjs +22 -25
  532. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  533. package/node_modules/zod/v4/locales/it.js +21 -25
  534. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  535. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  536. package/node_modules/zod/v4/locales/ja.js +21 -24
  537. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  538. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  539. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  540. package/node_modules/zod/v4/locales/ka.js +117 -0
  541. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  542. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  543. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  544. package/node_modules/zod/v4/locales/kh.js +3 -115
  545. package/node_modules/zod/v4/locales/km.cjs +142 -0
  546. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  547. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  548. package/node_modules/zod/v4/locales/km.js +115 -0
  549. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  550. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  551. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  552. package/node_modules/zod/v4/locales/kn.js +116 -0
  553. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  554. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  555. package/node_modules/zod/v4/locales/ko.js +19 -24
  556. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  557. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  558. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  559. package/node_modules/zod/v4/locales/lt.js +207 -0
  560. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  561. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  562. package/node_modules/zod/v4/locales/mk.js +21 -25
  563. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  564. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  565. package/node_modules/zod/v4/locales/ms.js +20 -24
  566. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  567. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  568. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  569. package/node_modules/zod/v4/locales/ne.js +111 -0
  570. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  571. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  572. package/node_modules/zod/v4/locales/nl.js +30 -32
  573. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  574. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  575. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  576. package/node_modules/zod/v4/locales/nn.js +113 -0
  577. package/node_modules/zod/v4/locales/no.cjs +24 -26
  578. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  579. package/node_modules/zod/v4/locales/no.js +23 -26
  580. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  581. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  582. package/node_modules/zod/v4/locales/ota.js +22 -25
  583. package/node_modules/zod/v4/locales/package.json +7 -0
  584. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  585. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  586. package/node_modules/zod/v4/locales/pl.js +21 -24
  587. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  588. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  589. package/node_modules/zod/v4/locales/ps.js +21 -24
  590. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  591. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  592. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  593. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  594. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  595. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  596. package/node_modules/zod/v4/locales/pt.js +94 -68
  597. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  598. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  599. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  600. package/node_modules/zod/v4/locales/ro.js +122 -0
  601. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  602. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  603. package/node_modules/zod/v4/locales/ru.js +28 -24
  604. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  605. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  606. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  607. package/node_modules/zod/v4/locales/sk.js +116 -0
  608. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  609. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  610. package/node_modules/zod/v4/locales/sl.js +21 -24
  611. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  612. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  613. package/node_modules/zod/v4/locales/sv.js +23 -26
  614. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  615. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  616. package/node_modules/zod/v4/locales/ta.js +22 -24
  617. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  618. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  619. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  620. package/node_modules/zod/v4/locales/tg.js +117 -0
  621. package/node_modules/zod/v4/locales/th.cjs +23 -24
  622. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  623. package/node_modules/zod/v4/locales/th.js +22 -24
  624. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  625. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  626. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  627. package/node_modules/zod/v4/locales/tk.js +107 -0
  628. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  629. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  630. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  631. package/node_modules/zod/v4/locales/tr.js +19 -24
  632. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  633. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  634. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  635. package/node_modules/zod/v4/locales/ua.js +3 -115
  636. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  637. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  638. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  639. package/node_modules/zod/v4/locales/uk.js +113 -0
  640. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  641. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  642. package/node_modules/zod/v4/locales/ur.js +22 -24
  643. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  644. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  645. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  646. package/node_modules/zod/v4/locales/uz.js +113 -0
  647. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  648. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  649. package/node_modules/zod/v4/locales/vi.js +21 -24
  650. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  651. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  652. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  653. package/node_modules/zod/v4/locales/yo.js +112 -0
  654. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  655. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  656. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  657. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  658. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  659. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  660. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  661. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  662. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  663. package/node_modules/zod/v4/mini/checks.js +1 -1
  664. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  665. package/node_modules/zod/v4/mini/coerce.js +5 -0
  666. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  667. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  668. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  669. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  670. package/node_modules/zod/v4/mini/external.cjs +36 -3
  671. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  672. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  673. package/node_modules/zod/v4/mini/external.js +4 -1
  674. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  675. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  676. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  677. package/node_modules/zod/v4/mini/in-out.js +36 -0
  678. package/node_modules/zod/v4/mini/index.cjs +19 -0
  679. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  680. package/node_modules/zod/v4/mini/iso.js +8 -4
  681. package/node_modules/zod/v4/mini/package.json +7 -0
  682. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  683. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  684. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  685. package/node_modules/zod/v4/mini/parse.js +1 -1
  686. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  687. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  688. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  689. package/node_modules/zod/v4/mini/schemas.js +329 -59
  690. package/node_modules/zod/v4/package.json +7 -0
  691. package/node_modules/zod/v4-mini/index.cjs +35 -1
  692. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  693. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  694. package/node_modules/zod/v4-mini/index.js +3 -1
  695. package/node_modules/zod/v4-mini/package.json +7 -0
  696. package/package.json +3 -3
  697. package/node_modules/zod/src/v4/core/config.ts +0 -15
  698. package/node_modules/zod/src/v4/core/function.ts +0 -176
  699. package/node_modules/zod/v4/core/function.cjs +0 -102
  700. package/node_modules/zod/v4/core/function.d.cts +0 -52
  701. package/node_modules/zod/v4/core/function.d.ts +0 -52
  702. package/node_modules/zod/v4/core/function.js +0 -75
@@ -1,41 +1,50 @@
1
+ import type * as core from "../core/index.cjs";
1
2
  import type * as JSONSchema from "./json-schema.cjs";
2
- import { $ZodRegistry } from "./registries.cjs";
3
+ import { type $ZodRegistry } from "./registries.cjs";
3
4
  import type * as schemas from "./schemas.cjs";
4
- interface JSONSchemaGeneratorParams {
5
+ import type { StandardJSONSchemaV1, StandardSchemaWithJSONProps } from "./standard-schema.cjs";
6
+ export type Processor<T extends schemas.$ZodType = schemas.$ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, params: ProcessParams) => void;
7
+ /**
8
+ * Called for each schema that has no JSON Schema equivalent. Return a JSON Schema to use in its
9
+ * place, `"any"` to fall back to the `unrepresentable: "any"` behavior, or `"throw"`/`undefined` to
10
+ * throw the default error. Throwing from the handler propagates, so custom errors work too.
11
+ */
12
+ export type UnrepresentableHandler<T extends schemas.$ZodType = schemas.$ZodType> = (ctx: {
13
+ zodSchema: T;
14
+ path: (string | number)[];
15
+ /** The error Zod would throw. Distinguishes sites that share a `zodSchema`, e.g. an `undefined`
16
+ * vs a `bigint` member of the same literal. */
17
+ message: string;
18
+ }) => JSONSchema.BaseSchema | "throw" | "any" | undefined;
19
+ export interface JSONSchemaGeneratorParams {
20
+ processors: Record<string, Processor>;
5
21
  /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
6
22
  * @default globalRegistry */
7
23
  metadata?: $ZodRegistry<Record<string, any>>;
8
24
  /** The JSON Schema version to target.
9
25
  * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
10
- * - `"draft-7"` — JSON Schema Draft 7 */
11
- target?: "draft-7" | "draft-2020-12";
26
+ * - `"draft-07"` — JSON Schema Draft 7
27
+ * - `"draft-04"` — JSON Schema Draft 4
28
+ * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
29
+ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
12
30
  /** How to handle unrepresentable types.
13
31
  * - `"throw"` — Default. Unrepresentable types throw an error
14
- * - `"any"` — Unrepresentable types become `{}` */
15
- unrepresentable?: "throw" | "any";
32
+ * - `"any"` — Unrepresentable types become `{}`
33
+ * - A function — called once per unrepresentable schema; see {@link UnrepresentableHandler}. */
34
+ unrepresentable?: "throw" | "any" | UnrepresentableHandler<schemas.$ZodTypes>;
16
35
  /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
17
36
  override?: (ctx: {
18
37
  zodSchema: schemas.$ZodTypes;
19
38
  jsonSchema: JSONSchema.BaseSchema;
20
39
  path: (string | number)[];
21
40
  }) => void;
22
- /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc.
41
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
23
42
  * - `"output"` — Default. Convert the output schema.
24
43
  * - `"input"` — Convert the input schema. */
25
44
  io?: "input" | "output";
26
- }
27
- interface ProcessParams {
28
- schemaPath: schemas.$ZodType[];
29
- path: (string | number)[];
30
- }
31
- interface EmitParams {
32
- /** How to handle cycles.
33
- * - `"ref"` — Default. Cycles will be broken using $defs
34
- * - `"throw"` — Cycles will throw an error if encountered */
35
45
  cycles?: "ref" | "throw";
36
46
  reused?: "ref" | "inline";
37
47
  external?: {
38
- /** */
39
48
  registry: $ZodRegistry<{
40
49
  id?: string | undefined;
41
50
  }>;
@@ -43,7 +52,21 @@ interface EmitParams {
43
52
  defs: Record<string, JSONSchema.BaseSchema>;
44
53
  } | undefined;
45
54
  }
46
- interface Seen {
55
+ /**
56
+ * Parameters for the toJSONSchema function.
57
+ */
58
+ export type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
59
+ /**
60
+ * Parameters for the toJSONSchema function when passing a registry.
61
+ */
62
+ export interface RegistryToJSONSchemaParams extends ToJSONSchemaParams {
63
+ uri?: (id: string) => string;
64
+ }
65
+ export interface ProcessParams {
66
+ schemaPath: schemas.$ZodType[];
67
+ path: (string | number)[];
68
+ }
69
+ export interface Seen {
47
70
  /** JSON Schema result for this Zod schema */
48
71
  schema: JSONSchema.BaseSchema;
49
72
  /** A cached version of the schema that doesn't get overwritten during ref resolution */
@@ -54,35 +77,78 @@ interface Seen {
54
77
  /** Cycle path */
55
78
  cycle?: (string | number)[] | undefined;
56
79
  isParent?: boolean | undefined;
57
- ref?: schemas.$ZodType | undefined | null;
80
+ /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
81
+ ref?: schemas.$ZodType | null;
58
82
  /** JSON Schema property path for this schema */
59
83
  path?: (string | number)[] | undefined;
60
84
  }
61
- export declare class JSONSchemaGenerator {
85
+ export interface ToJSONSchemaContext {
86
+ processors: Record<string, Processor>;
62
87
  metadataRegistry: $ZodRegistry<Record<string, any>>;
63
- target: "draft-7" | "draft-2020-12";
64
- unrepresentable: "throw" | "any";
88
+ target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
89
+ unrepresentable: "throw" | "any" | UnrepresentableHandler;
65
90
  override: (ctx: {
66
- zodSchema: schemas.$ZodTypes;
91
+ zodSchema: schemas.$ZodType;
67
92
  jsonSchema: JSONSchema.BaseSchema;
68
93
  path: (string | number)[];
69
94
  }) => void;
70
95
  io: "input" | "output";
71
96
  counter: number;
72
97
  seen: Map<schemas.$ZodType, Seen>;
73
- constructor(params?: JSONSchemaGeneratorParams);
74
- process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
75
- emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
76
- }
77
- interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
98
+ /** Registry conversions share one `seen` map across every emitted schema. These hold the
99
+ * `external` the whole-map passes below last ran for, so the passes are not repeated once per
100
+ * schema — and still re-run if the map grows or `external` is swapped. `sharedEmitDoneFor`
101
+ * covers both passes in `finalize`: the ref flattening and the `$defs` build.
102
+ *
103
+ * The passes are valid only while nothing they read has changed, so both are cleared in
104
+ * `processSchema()` when the map grows, and in `JSONSchemaGenerator.emit()`, which can also change
105
+ * the `cycles` and `reused` they branch on.
106
+ *
107
+ * One case is deliberately not covered: an `override` callback that writes to
108
+ * `metadataRegistry` mid-conversion. It runs inside `finalize`, so a registry conversion has
109
+ * nowhere left to clear the guards, and later schemas keep the ids the first pass saw. That
110
+ * output was never coherent — before this, whether a shared subschema was inlined or extracted
111
+ * depended on which registry entry happened to be emitted when the callback fired. */
112
+ sharedDefsExtractedFor?: ToJSONSchemaContext["external"];
113
+ sharedEmitDoneFor?: ToJSONSchemaContext["external"];
114
+ cycles: "ref" | "throw";
115
+ reused: "ref" | "inline";
116
+ /** The `allOf` array of each intersection encountered during traversal, innermost first. `finalize` folds every emitted object holding one; see `foldIntersection`. */
117
+ intersections: JSONSchema.BaseSchema[][];
118
+ /** Rewrites a processor deferred to `finalize`, where the flatten has resolved every ref and the union branches are in place. */
119
+ deferred: (() => void)[];
120
+ external?: {
121
+ registry: $ZodRegistry<{
122
+ id?: string | undefined;
123
+ }>;
124
+ uri?: ((id: string) => string) | undefined;
125
+ defs: Record<string, JSONSchema.BaseSchema>;
126
+ } | undefined;
78
127
  }
79
- interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
80
- uri?: (id: string) => string;
128
+ export declare function initializeContext(params: JSONSchemaGeneratorParams): ToJSONSchemaContext;
129
+ /**
130
+ * Applies the `unrepresentable` setting at a site that has no JSON Schema equivalent. Throws
131
+ * `message` unless the setting (or the handler's return value) says otherwise. Returns `true` if a
132
+ * custom JSON Schema was written into `json`, in which case the caller must not write its own.
133
+ */
134
+ export declare function handleUnrepresentable(schema: schemas.$ZodType, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, params: ProcessParams, message: string): boolean;
135
+ export declare function processSchema<T extends schemas.$ZodType>(schema: T, ctx: ToJSONSchemaContext, _params?: ProcessParams): JSONSchema.BaseSchema;
136
+ /** @deprecated Renamed to `processSchema`. An export alias declares no binding, so it is safe to keep. */
137
+ export { processSchema as process };
138
+ export declare function extractDefs<T extends schemas.$ZodType>(ctx: ToJSONSchemaContext, schema: T): void;
139
+ export declare function finalize<T extends schemas.$ZodType>(ctx: ToJSONSchemaContext, schema: T): ZodStandardJSONSchemaPayload<T>;
140
+ export type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<core.input<T>, core.output<T>>;
141
+ export interface ZodStandardJSONSchemaPayload<T> extends JSONSchema.BaseSchema {
142
+ "~standard": ZodStandardSchemaWithJSON<T>;
81
143
  }
82
- export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
83
- export declare function toJSONSchema(registry: $ZodRegistry<{
84
- id?: string | undefined;
85
- }>, _params?: RegistryToJSONSchemaParams): {
86
- schemas: Record<string, JSONSchema.BaseSchema>;
87
- };
88
- export {};
144
+ /**
145
+ * Creates a toJSONSchema method for a schema instance.
146
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
147
+ */
148
+ export declare const createToJSONSchemaMethod: <T extends schemas.$ZodType>(schema: T, processors?: Record<string, Processor>) => (params?: ToJSONSchemaParams) => ZodStandardJSONSchemaPayload<T>;
149
+ /**
150
+ * Creates a toJSONSchema method for a schema instance.
151
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
152
+ */
153
+ type StandardJSONSchemaMethodParams = Parameters<StandardJSONSchemaV1["~standard"]["jsonSchema"]["input"]>[0];
154
+ export declare const createStandardJSONSchemaMethod: <T extends schemas.$ZodType>(schema: T, io: "input" | "output", processors?: Record<string, Processor>) => (params?: StandardJSONSchemaMethodParams) => JSONSchema.BaseSchema;
@@ -1,41 +1,50 @@
1
+ import type * as core from "../core/index.js";
1
2
  import type * as JSONSchema from "./json-schema.js";
2
- import { $ZodRegistry } from "./registries.js";
3
+ import { type $ZodRegistry } from "./registries.js";
3
4
  import type * as schemas from "./schemas.js";
4
- interface JSONSchemaGeneratorParams {
5
+ import type { StandardJSONSchemaV1, StandardSchemaWithJSONProps } from "./standard-schema.js";
6
+ export type Processor<T extends schemas.$ZodType = schemas.$ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, params: ProcessParams) => void;
7
+ /**
8
+ * Called for each schema that has no JSON Schema equivalent. Return a JSON Schema to use in its
9
+ * place, `"any"` to fall back to the `unrepresentable: "any"` behavior, or `"throw"`/`undefined` to
10
+ * throw the default error. Throwing from the handler propagates, so custom errors work too.
11
+ */
12
+ export type UnrepresentableHandler<T extends schemas.$ZodType = schemas.$ZodType> = (ctx: {
13
+ zodSchema: T;
14
+ path: (string | number)[];
15
+ /** The error Zod would throw. Distinguishes sites that share a `zodSchema`, e.g. an `undefined`
16
+ * vs a `bigint` member of the same literal. */
17
+ message: string;
18
+ }) => JSONSchema.BaseSchema | "throw" | "any" | undefined;
19
+ export interface JSONSchemaGeneratorParams {
20
+ processors: Record<string, Processor>;
5
21
  /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
6
22
  * @default globalRegistry */
7
23
  metadata?: $ZodRegistry<Record<string, any>>;
8
24
  /** The JSON Schema version to target.
9
25
  * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
10
- * - `"draft-7"` — JSON Schema Draft 7 */
11
- target?: "draft-7" | "draft-2020-12";
26
+ * - `"draft-07"` — JSON Schema Draft 7
27
+ * - `"draft-04"` — JSON Schema Draft 4
28
+ * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
29
+ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
12
30
  /** How to handle unrepresentable types.
13
31
  * - `"throw"` — Default. Unrepresentable types throw an error
14
- * - `"any"` — Unrepresentable types become `{}` */
15
- unrepresentable?: "throw" | "any";
32
+ * - `"any"` — Unrepresentable types become `{}`
33
+ * - A function — called once per unrepresentable schema; see {@link UnrepresentableHandler}. */
34
+ unrepresentable?: "throw" | "any" | UnrepresentableHandler<schemas.$ZodTypes>;
16
35
  /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
17
36
  override?: (ctx: {
18
37
  zodSchema: schemas.$ZodTypes;
19
38
  jsonSchema: JSONSchema.BaseSchema;
20
39
  path: (string | number)[];
21
40
  }) => void;
22
- /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc.
41
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
23
42
  * - `"output"` — Default. Convert the output schema.
24
43
  * - `"input"` — Convert the input schema. */
25
44
  io?: "input" | "output";
26
- }
27
- interface ProcessParams {
28
- schemaPath: schemas.$ZodType[];
29
- path: (string | number)[];
30
- }
31
- interface EmitParams {
32
- /** How to handle cycles.
33
- * - `"ref"` — Default. Cycles will be broken using $defs
34
- * - `"throw"` — Cycles will throw an error if encountered */
35
45
  cycles?: "ref" | "throw";
36
46
  reused?: "ref" | "inline";
37
47
  external?: {
38
- /** */
39
48
  registry: $ZodRegistry<{
40
49
  id?: string | undefined;
41
50
  }>;
@@ -43,7 +52,21 @@ interface EmitParams {
43
52
  defs: Record<string, JSONSchema.BaseSchema>;
44
53
  } | undefined;
45
54
  }
46
- interface Seen {
55
+ /**
56
+ * Parameters for the toJSONSchema function.
57
+ */
58
+ export type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
59
+ /**
60
+ * Parameters for the toJSONSchema function when passing a registry.
61
+ */
62
+ export interface RegistryToJSONSchemaParams extends ToJSONSchemaParams {
63
+ uri?: (id: string) => string;
64
+ }
65
+ export interface ProcessParams {
66
+ schemaPath: schemas.$ZodType[];
67
+ path: (string | number)[];
68
+ }
69
+ export interface Seen {
47
70
  /** JSON Schema result for this Zod schema */
48
71
  schema: JSONSchema.BaseSchema;
49
72
  /** A cached version of the schema that doesn't get overwritten during ref resolution */
@@ -54,35 +77,78 @@ interface Seen {
54
77
  /** Cycle path */
55
78
  cycle?: (string | number)[] | undefined;
56
79
  isParent?: boolean | undefined;
57
- ref?: schemas.$ZodType | undefined | null;
80
+ /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
81
+ ref?: schemas.$ZodType | null;
58
82
  /** JSON Schema property path for this schema */
59
83
  path?: (string | number)[] | undefined;
60
84
  }
61
- export declare class JSONSchemaGenerator {
85
+ export interface ToJSONSchemaContext {
86
+ processors: Record<string, Processor>;
62
87
  metadataRegistry: $ZodRegistry<Record<string, any>>;
63
- target: "draft-7" | "draft-2020-12";
64
- unrepresentable: "throw" | "any";
88
+ target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
89
+ unrepresentable: "throw" | "any" | UnrepresentableHandler;
65
90
  override: (ctx: {
66
- zodSchema: schemas.$ZodTypes;
91
+ zodSchema: schemas.$ZodType;
67
92
  jsonSchema: JSONSchema.BaseSchema;
68
93
  path: (string | number)[];
69
94
  }) => void;
70
95
  io: "input" | "output";
71
96
  counter: number;
72
97
  seen: Map<schemas.$ZodType, Seen>;
73
- constructor(params?: JSONSchemaGeneratorParams);
74
- process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
75
- emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
76
- }
77
- interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
98
+ /** Registry conversions share one `seen` map across every emitted schema. These hold the
99
+ * `external` the whole-map passes below last ran for, so the passes are not repeated once per
100
+ * schema — and still re-run if the map grows or `external` is swapped. `sharedEmitDoneFor`
101
+ * covers both passes in `finalize`: the ref flattening and the `$defs` build.
102
+ *
103
+ * The passes are valid only while nothing they read has changed, so both are cleared in
104
+ * `processSchema()` when the map grows, and in `JSONSchemaGenerator.emit()`, which can also change
105
+ * the `cycles` and `reused` they branch on.
106
+ *
107
+ * One case is deliberately not covered: an `override` callback that writes to
108
+ * `metadataRegistry` mid-conversion. It runs inside `finalize`, so a registry conversion has
109
+ * nowhere left to clear the guards, and later schemas keep the ids the first pass saw. That
110
+ * output was never coherent — before this, whether a shared subschema was inlined or extracted
111
+ * depended on which registry entry happened to be emitted when the callback fired. */
112
+ sharedDefsExtractedFor?: ToJSONSchemaContext["external"];
113
+ sharedEmitDoneFor?: ToJSONSchemaContext["external"];
114
+ cycles: "ref" | "throw";
115
+ reused: "ref" | "inline";
116
+ /** The `allOf` array of each intersection encountered during traversal, innermost first. `finalize` folds every emitted object holding one; see `foldIntersection`. */
117
+ intersections: JSONSchema.BaseSchema[][];
118
+ /** Rewrites a processor deferred to `finalize`, where the flatten has resolved every ref and the union branches are in place. */
119
+ deferred: (() => void)[];
120
+ external?: {
121
+ registry: $ZodRegistry<{
122
+ id?: string | undefined;
123
+ }>;
124
+ uri?: ((id: string) => string) | undefined;
125
+ defs: Record<string, JSONSchema.BaseSchema>;
126
+ } | undefined;
78
127
  }
79
- interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
80
- uri?: (id: string) => string;
128
+ export declare function initializeContext(params: JSONSchemaGeneratorParams): ToJSONSchemaContext;
129
+ /**
130
+ * Applies the `unrepresentable` setting at a site that has no JSON Schema equivalent. Throws
131
+ * `message` unless the setting (or the handler's return value) says otherwise. Returns `true` if a
132
+ * custom JSON Schema was written into `json`, in which case the caller must not write its own.
133
+ */
134
+ export declare function handleUnrepresentable(schema: schemas.$ZodType, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, params: ProcessParams, message: string): boolean;
135
+ export declare function processSchema<T extends schemas.$ZodType>(schema: T, ctx: ToJSONSchemaContext, _params?: ProcessParams): JSONSchema.BaseSchema;
136
+ /** @deprecated Renamed to `processSchema`. An export alias declares no binding, so it is safe to keep. */
137
+ export { processSchema as process };
138
+ export declare function extractDefs<T extends schemas.$ZodType>(ctx: ToJSONSchemaContext, schema: T): void;
139
+ export declare function finalize<T extends schemas.$ZodType>(ctx: ToJSONSchemaContext, schema: T): ZodStandardJSONSchemaPayload<T>;
140
+ export type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<core.input<T>, core.output<T>>;
141
+ export interface ZodStandardJSONSchemaPayload<T> extends JSONSchema.BaseSchema {
142
+ "~standard": ZodStandardSchemaWithJSON<T>;
81
143
  }
82
- export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
83
- export declare function toJSONSchema(registry: $ZodRegistry<{
84
- id?: string | undefined;
85
- }>, _params?: RegistryToJSONSchemaParams): {
86
- schemas: Record<string, JSONSchema.BaseSchema>;
87
- };
88
- export {};
144
+ /**
145
+ * Creates a toJSONSchema method for a schema instance.
146
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
147
+ */
148
+ export declare const createToJSONSchemaMethod: <T extends schemas.$ZodType>(schema: T, processors?: Record<string, Processor>) => (params?: ToJSONSchemaParams) => ZodStandardJSONSchemaPayload<T>;
149
+ /**
150
+ * Creates a toJSONSchema method for a schema instance.
151
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
152
+ */
153
+ type StandardJSONSchemaMethodParams = Parameters<StandardJSONSchemaV1["~standard"]["jsonSchema"]["input"]>[0];
154
+ export declare const createStandardJSONSchemaMethod: <T extends schemas.$ZodType>(schema: T, io: "input" | "output", processors?: Record<string, Processor>) => (params?: StandardJSONSchemaMethodParams) => JSONSchema.BaseSchema;