@wopee-io/wopee.wdio 5.2.5 → 6.0.1

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 (858) hide show
  1. package/README.md +14 -0
  2. package/build/domain/model/config.interface.d.ts +15 -60
  3. package/build/domain/model/config.interface.d.ts.map +1 -1
  4. package/build/domain/service/wopeeService.d.ts.map +1 -1
  5. package/build/domain/service/wopeeService.js +2 -0
  6. package/build/domain/service/wopeeService.js.map +1 -1
  7. package/build/utils/versionMetadata.d.ts.map +1 -1
  8. package/build/utils/versionMetadata.js +2 -2
  9. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +1 -7
  10. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +1 -23
  11. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +1 -5
  12. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +1 -7
  13. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +3 -11
  14. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +1 -1
  15. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +1 -7
  16. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.d.ts +3 -11
  17. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.js +1 -1
  18. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssertPayload.interface.d.ts +1 -9
  19. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +9 -2
  20. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +30 -3
  21. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +15 -1
  22. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +17 -1
  23. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.d.ts +36 -0
  24. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.js +63 -0
  25. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +10 -0
  26. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
  27. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +2 -2
  28. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +41 -224
  29. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +16 -8
  30. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.d.ts +52 -0
  31. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.js +122 -0
  32. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +3 -7
  33. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +2 -2
  34. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +5 -10
  35. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +2 -1
  36. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  37. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +10 -0
  38. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +8 -0
  39. package/node_modules/@autonomous-testing/sdk/package.json +2 -2
  40. package/node_modules/debug/README.md +1 -1
  41. package/node_modules/debug/package.json +8 -4
  42. package/node_modules/debug/src/browser.js +2 -1
  43. package/node_modules/debug/src/common.js +57 -39
  44. package/node_modules/follow-redirects/README.md +27 -1
  45. package/node_modules/follow-redirects/index.js +11 -6
  46. package/node_modules/follow-redirects/package.json +1 -1
  47. package/node_modules/ms/index.js +1 -1
  48. package/node_modules/ms/license.md +1 -1
  49. package/node_modules/ms/package.json +5 -4
  50. package/node_modules/ms/readme.md +1 -2
  51. package/node_modules/zod/README.md +34 -24
  52. package/node_modules/zod/compile.cjs +96 -0
  53. package/node_modules/zod/compile.d.cts +1 -0
  54. package/node_modules/zod/compile.d.ts +1 -0
  55. package/node_modules/zod/compile.js +52 -0
  56. package/node_modules/zod/index.cjs +22 -3
  57. package/node_modules/zod/index.d.cts +3 -4
  58. package/node_modules/zod/index.d.ts +3 -4
  59. package/node_modules/zod/index.js +7 -4
  60. package/node_modules/zod/locales/index.cjs +36 -0
  61. package/node_modules/zod/locales/index.d.cts +1 -0
  62. package/node_modules/zod/locales/index.d.ts +1 -0
  63. package/node_modules/zod/locales/index.js +1 -0
  64. package/node_modules/zod/locales/package.json +7 -0
  65. package/node_modules/zod/mini/index.cjs +51 -0
  66. package/node_modules/zod/mini/index.d.cts +3 -0
  67. package/node_modules/zod/mini/index.d.ts +3 -0
  68. package/node_modules/zod/mini/index.js +3 -0
  69. package/node_modules/zod/mini/package.json +7 -0
  70. package/node_modules/zod/package.json +44 -15
  71. package/node_modules/zod/src/compile.ts +56 -0
  72. package/node_modules/zod/src/index.ts +7 -4
  73. package/node_modules/zod/src/locales/index.ts +1 -0
  74. package/node_modules/zod/src/mini/index.ts +3 -0
  75. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  76. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  77. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  78. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  79. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  80. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  81. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  82. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  83. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  84. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  85. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  86. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  87. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  88. package/node_modules/zod/src/v3/types.ts +8 -6
  89. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  90. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  91. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  92. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  93. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  94. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  95. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  96. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  97. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  98. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  99. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  100. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  101. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  102. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  103. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  104. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  105. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  106. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  107. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  108. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  109. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  110. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  111. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  112. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  113. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  114. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  115. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  116. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  117. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  118. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  119. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  120. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  121. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  122. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  123. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  124. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  125. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  126. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  127. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  128. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  129. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  130. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  131. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  132. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  133. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  134. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  135. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  136. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  137. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  138. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  139. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  140. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  141. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  142. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  143. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  144. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  145. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  146. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  147. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  148. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  149. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  150. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  151. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  152. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  153. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  154. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  155. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  156. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  157. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  158. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  159. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  160. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  161. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  162. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  163. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  164. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  165. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  166. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  167. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  168. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  169. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  170. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  171. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  172. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  173. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  174. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  175. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  176. package/node_modules/zod/src/v4/core/api.ts +442 -161
  177. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  178. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  179. package/node_modules/zod/src/v4/core/core.ts +146 -50
  180. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  181. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  182. package/node_modules/zod/src/v4/core/index.ts +5 -1
  183. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  184. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  185. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  186. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  187. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  188. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  189. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  190. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  191. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  192. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  193. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  194. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  195. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  196. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  197. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  198. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  199. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  200. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  201. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  202. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  203. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  204. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  205. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  206. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  207. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  208. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  209. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  210. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  211. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  212. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  213. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  214. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  215. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  216. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  217. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  218. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  219. package/node_modules/zod/src/v4/core/util.ts +675 -157
  220. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  221. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  222. package/node_modules/zod/src/v4/index.ts +3 -3
  223. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  224. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  225. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  226. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  227. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  228. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  229. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  230. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  231. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  232. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  233. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  234. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  235. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  236. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  237. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  238. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  239. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  240. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  241. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  242. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  243. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  244. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  245. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  246. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  247. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  248. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  249. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  250. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  251. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  252. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  253. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  254. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  255. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  256. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  257. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  258. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  259. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  260. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  261. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  262. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  263. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  264. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  265. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  266. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  267. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  268. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  269. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  270. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  271. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  272. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  273. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  274. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  275. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  276. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  277. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  278. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  279. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  280. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  281. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  282. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  283. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  284. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  285. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  286. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  287. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  288. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  289. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  290. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  291. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  292. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  293. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  294. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  295. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  296. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  297. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  298. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  299. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  300. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  301. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  302. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  303. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  304. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  305. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  306. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  307. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  308. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  309. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  310. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  311. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  312. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  313. package/node_modules/zod/v3/ZodError.cjs +42 -13
  314. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  315. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  316. package/node_modules/zod/v3/ZodError.js +23 -13
  317. package/node_modules/zod/v3/errors.cjs +19 -0
  318. package/node_modules/zod/v3/external.cjs +19 -0
  319. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  320. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  321. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  322. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  323. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  324. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  325. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  326. package/node_modules/zod/v3/index.cjs +19 -0
  327. package/node_modules/zod/v3/locales/en.cjs +1 -0
  328. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  329. package/node_modules/zod/v3/package.json +7 -0
  330. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  331. package/node_modules/zod/v3/types.cjs +28 -5
  332. package/node_modules/zod/v3/types.d.cts +4 -1
  333. package/node_modules/zod/v3/types.d.ts +4 -1
  334. package/node_modules/zod/v3/types.js +9 -5
  335. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  336. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  337. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  338. package/node_modules/zod/v4/classic/checks.js +1 -1
  339. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  340. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  341. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  342. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  343. package/node_modules/zod/v4/classic/compat.js +4 -0
  344. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  345. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  346. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  347. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  348. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  349. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  350. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  351. package/node_modules/zod/v4/classic/errors.js +45 -29
  352. package/node_modules/zod/v4/classic/external.cjs +55 -28
  353. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  354. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  355. package/node_modules/zod/v4/classic/external.js +7 -8
  356. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  357. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  358. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  359. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  360. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  361. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  362. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  363. package/node_modules/zod/v4/classic/in-out.js +36 -0
  364. package/node_modules/zod/v4/classic/index.cjs +21 -2
  365. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  366. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  367. package/node_modules/zod/v4/classic/index.js +2 -2
  368. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  369. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  370. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  371. package/node_modules/zod/v4/classic/iso.js +2 -17
  372. package/node_modules/zod/v4/classic/package.json +7 -0
  373. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  374. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  375. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  376. package/node_modules/zod/v4/classic/parse.js +10 -0
  377. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  378. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  379. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  380. package/node_modules/zod/v4/classic/schemas.js +766 -237
  381. package/node_modules/zod/v4/core/api.cjs +284 -54
  382. package/node_modules/zod/v4/core/api.d.cts +133 -82
  383. package/node_modules/zod/v4/core/api.d.ts +133 -82
  384. package/node_modules/zod/v4/core/api.js +255 -54
  385. package/node_modules/zod/v4/core/checks.cjs +100 -130
  386. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  387. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  388. package/node_modules/zod/v4/core/checks.js +80 -129
  389. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  390. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  391. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  392. package/node_modules/zod/v4/core/compile.js +1866 -0
  393. package/node_modules/zod/v4/core/core.cjs +120 -20
  394. package/node_modules/zod/v4/core/core.d.cts +40 -7
  395. package/node_modules/zod/v4/core/core.d.ts +40 -7
  396. package/node_modules/zod/v4/core/core.js +101 -21
  397. package/node_modules/zod/v4/core/doc.cjs +31 -9
  398. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  399. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  400. package/node_modules/zod/v4/core/doc.js +12 -9
  401. package/node_modules/zod/v4/core/errors.cjs +151 -60
  402. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  403. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  404. package/node_modules/zod/v4/core/errors.js +132 -60
  405. package/node_modules/zod/v4/core/index.cjs +28 -2
  406. package/node_modules/zod/v4/core/index.d.cts +5 -1
  407. package/node_modules/zod/v4/core/index.d.ts +5 -1
  408. package/node_modules/zod/v4/core/index.js +5 -1
  409. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  410. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  411. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  412. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  413. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  414. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  415. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  416. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  417. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  418. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  419. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  420. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  421. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  422. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  423. package/node_modules/zod/v4/core/memoizer.js +311 -0
  424. package/node_modules/zod/v4/core/package.json +7 -0
  425. package/node_modules/zod/v4/core/parse.cjs +183 -37
  426. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  427. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  428. package/node_modules/zod/v4/core/parse.js +154 -36
  429. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  430. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  431. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  432. package/node_modules/zod/v4/core/regexes.js +90 -29
  433. package/node_modules/zod/v4/core/registries.cjs +26 -7
  434. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  435. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  436. package/node_modules/zod/v4/core/registries.js +9 -9
  437. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  438. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  439. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  440. package/node_modules/zod/v4/core/schemas.js +1341 -422
  441. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  442. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  443. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  444. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  445. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  446. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  447. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  448. package/node_modules/zod/v4/core/util.cjs +580 -155
  449. package/node_modules/zod/v4/core/util.d.cts +98 -1
  450. package/node_modules/zod/v4/core/util.d.ts +98 -1
  451. package/node_modules/zod/v4/core/util.js +536 -156
  452. package/node_modules/zod/v4/core/versions.cjs +21 -2
  453. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  454. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  455. package/node_modules/zod/v4/core/versions.js +2 -2
  456. package/node_modules/zod/v4/core/visit.cjs +214 -0
  457. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  458. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  459. package/node_modules/zod/v4/core/visit.js +169 -0
  460. package/node_modules/zod/v4/index.cjs +34 -5
  461. package/node_modules/zod/v4/index.d.cts +2 -2
  462. package/node_modules/zod/v4/index.d.ts +2 -2
  463. package/node_modules/zod/v4/index.js +3 -2
  464. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  465. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  466. package/node_modules/zod/v4/locales/ar.js +19 -24
  467. package/node_modules/zod/v4/locales/az.cjs +20 -24
  468. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  469. package/node_modules/zod/v4/locales/az.js +19 -24
  470. package/node_modules/zod/v4/locales/be.cjs +29 -24
  471. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  472. package/node_modules/zod/v4/locales/be.js +28 -24
  473. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  474. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  475. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  476. package/node_modules/zod/v4/locales/bg.js +125 -0
  477. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  478. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  479. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  480. package/node_modules/zod/v4/locales/bn.js +113 -0
  481. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  482. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  483. package/node_modules/zod/v4/locales/ca.js +19 -25
  484. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  485. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  486. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  487. package/node_modules/zod/v4/locales/ckb.js +133 -0
  488. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  489. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  490. package/node_modules/zod/v4/locales/cs.js +23 -42
  491. package/node_modules/zod/v4/locales/da.cjs +147 -0
  492. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  493. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  494. package/node_modules/zod/v4/locales/da.js +120 -0
  495. package/node_modules/zod/v4/locales/de.cjs +22 -24
  496. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  497. package/node_modules/zod/v4/locales/de.js +21 -24
  498. package/node_modules/zod/v4/locales/el.cjs +139 -0
  499. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  500. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  501. package/node_modules/zod/v4/locales/el.js +112 -0
  502. package/node_modules/zod/v4/locales/en.cjs +35 -28
  503. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  504. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  505. package/node_modules/zod/v4/locales/en.js +34 -26
  506. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  507. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  508. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  509. package/node_modules/zod/v4/locales/eo.js +22 -24
  510. package/node_modules/zod/v4/locales/es.cjs +51 -31
  511. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  512. package/node_modules/zod/v4/locales/es.js +50 -31
  513. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  514. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  515. package/node_modules/zod/v4/locales/fa.js +21 -24
  516. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  517. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  518. package/node_modules/zod/v4/locales/fi.js +19 -24
  519. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  520. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  521. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  522. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  523. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  524. package/node_modules/zod/v4/locales/fr.js +52 -39
  525. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  526. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  527. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  528. package/node_modules/zod/v4/locales/gu.js +113 -0
  529. package/node_modules/zod/v4/locales/he.cjs +183 -78
  530. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  531. package/node_modules/zod/v4/locales/he.js +182 -78
  532. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  533. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  534. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  535. package/node_modules/zod/v4/locales/hi.js +111 -0
  536. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  537. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  538. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  539. package/node_modules/zod/v4/locales/hr.js +126 -0
  540. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  541. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  542. package/node_modules/zod/v4/locales/hu.js +21 -25
  543. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  544. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  545. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  546. package/node_modules/zod/v4/locales/hy.js +158 -0
  547. package/node_modules/zod/v4/locales/id.cjs +20 -24
  548. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  549. package/node_modules/zod/v4/locales/id.js +19 -24
  550. package/node_modules/zod/v4/locales/index.cjs +69 -1
  551. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  552. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  553. package/node_modules/zod/v4/locales/index.js +24 -0
  554. package/node_modules/zod/v4/locales/is.cjs +141 -0
  555. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  556. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  557. package/node_modules/zod/v4/locales/is.js +114 -0
  558. package/node_modules/zod/v4/locales/it.cjs +22 -25
  559. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  560. package/node_modules/zod/v4/locales/it.js +21 -25
  561. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  562. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  563. package/node_modules/zod/v4/locales/ja.js +21 -24
  564. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  565. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  566. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  567. package/node_modules/zod/v4/locales/ka.js +117 -0
  568. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  569. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  570. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  571. package/node_modules/zod/v4/locales/kh.js +3 -115
  572. package/node_modules/zod/v4/locales/km.cjs +142 -0
  573. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  574. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  575. package/node_modules/zod/v4/locales/km.js +115 -0
  576. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  577. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  578. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  579. package/node_modules/zod/v4/locales/kn.js +116 -0
  580. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  581. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  582. package/node_modules/zod/v4/locales/ko.js +19 -24
  583. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  584. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  585. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  586. package/node_modules/zod/v4/locales/lt.js +207 -0
  587. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  588. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  589. package/node_modules/zod/v4/locales/mk.js +21 -25
  590. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  591. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  592. package/node_modules/zod/v4/locales/ms.js +20 -24
  593. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  594. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  595. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  596. package/node_modules/zod/v4/locales/ne.js +111 -0
  597. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  598. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  599. package/node_modules/zod/v4/locales/nl.js +30 -32
  600. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  601. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  602. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  603. package/node_modules/zod/v4/locales/nn.js +113 -0
  604. package/node_modules/zod/v4/locales/no.cjs +24 -26
  605. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  606. package/node_modules/zod/v4/locales/no.js +23 -26
  607. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  608. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  609. package/node_modules/zod/v4/locales/ota.js +22 -25
  610. package/node_modules/zod/v4/locales/package.json +7 -0
  611. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  612. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  613. package/node_modules/zod/v4/locales/pl.js +21 -24
  614. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  615. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  616. package/node_modules/zod/v4/locales/ps.js +21 -24
  617. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  618. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  619. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  620. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  621. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  622. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  623. package/node_modules/zod/v4/locales/pt.js +94 -68
  624. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  625. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  626. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  627. package/node_modules/zod/v4/locales/ro.js +122 -0
  628. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  629. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  630. package/node_modules/zod/v4/locales/ru.js +28 -24
  631. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  632. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  633. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  634. package/node_modules/zod/v4/locales/sk.js +116 -0
  635. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  636. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  637. package/node_modules/zod/v4/locales/sl.js +21 -24
  638. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  639. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  640. package/node_modules/zod/v4/locales/sv.js +23 -26
  641. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  642. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  643. package/node_modules/zod/v4/locales/ta.js +22 -24
  644. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  645. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  646. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  647. package/node_modules/zod/v4/locales/tg.js +117 -0
  648. package/node_modules/zod/v4/locales/th.cjs +23 -24
  649. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  650. package/node_modules/zod/v4/locales/th.js +22 -24
  651. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  652. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  653. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  654. package/node_modules/zod/v4/locales/tk.js +107 -0
  655. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  656. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  657. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  658. package/node_modules/zod/v4/locales/tr.js +19 -24
  659. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  660. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  661. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  662. package/node_modules/zod/v4/locales/ua.js +3 -115
  663. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  664. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  665. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  666. package/node_modules/zod/v4/locales/uk.js +113 -0
  667. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  668. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  669. package/node_modules/zod/v4/locales/ur.js +22 -24
  670. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  671. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  672. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  673. package/node_modules/zod/v4/locales/uz.js +113 -0
  674. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  675. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  676. package/node_modules/zod/v4/locales/vi.js +21 -24
  677. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  678. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  679. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  680. package/node_modules/zod/v4/locales/yo.js +112 -0
  681. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  682. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  683. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  684. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  685. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  686. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  687. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  688. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  689. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  690. package/node_modules/zod/v4/mini/checks.js +1 -1
  691. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  692. package/node_modules/zod/v4/mini/coerce.js +5 -0
  693. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  694. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  695. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  696. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  697. package/node_modules/zod/v4/mini/external.cjs +36 -3
  698. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  699. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  700. package/node_modules/zod/v4/mini/external.js +4 -1
  701. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  702. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  703. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  704. package/node_modules/zod/v4/mini/in-out.js +36 -0
  705. package/node_modules/zod/v4/mini/index.cjs +19 -0
  706. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  707. package/node_modules/zod/v4/mini/iso.js +8 -4
  708. package/node_modules/zod/v4/mini/package.json +7 -0
  709. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  710. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  711. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  712. package/node_modules/zod/v4/mini/parse.js +1 -1
  713. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  714. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  715. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  716. package/node_modules/zod/v4/mini/schemas.js +329 -59
  717. package/node_modules/zod/v4/package.json +7 -0
  718. package/node_modules/zod/v4-mini/index.cjs +35 -1
  719. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  720. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  721. package/node_modules/zod/v4-mini/index.js +3 -1
  722. package/node_modules/zod/v4-mini/package.json +7 -0
  723. package/package.json +23 -16
  724. package/node_modules/zod/src/v4/core/config.ts +0 -15
  725. package/node_modules/zod/src/v4/core/function.ts +0 -176
  726. package/node_modules/zod/v4/core/function.cjs +0 -102
  727. package/node_modules/zod/v4/core/function.d.cts +0 -52
  728. package/node_modules/zod/v4/core/function.d.ts +0 -52
  729. package/node_modules/zod/v4/core/function.js +0 -75
  730. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/CHANGELOG.md +0 -0
  731. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/LICENSE +0 -0
  732. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/MIGRATION_GUIDE.md +0 -0
  733. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/README.md +0 -0
  734. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.js +0 -0
  735. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js +0 -0
  736. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js.map +0 -0
  737. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/browser/axios.cjs +0 -0
  738. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.js +0 -0
  739. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js +0 -0
  740. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js.map +0 -0
  741. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/node/axios.cjs +0 -0
  742. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.cts +0 -0
  743. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.ts +0 -0
  744. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.js +0 -0
  745. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/README.md +0 -0
  746. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/adapters.js +0 -0
  747. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/fetch.js +0 -0
  748. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/http.js +0 -0
  749. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/xhr.js +0 -0
  750. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/axios.js +0 -0
  751. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CancelToken.js +0 -0
  752. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CanceledError.js +0 -0
  753. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/isCancel.js +0 -0
  754. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/Axios.js +0 -0
  755. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosError.js +0 -0
  756. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosHeaders.js +0 -0
  757. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/InterceptorManager.js +0 -0
  758. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/README.md +0 -0
  759. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/buildFullPath.js +0 -0
  760. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/dispatchRequest.js +0 -0
  761. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/mergeConfig.js +0 -0
  762. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/methodList.js +0 -0
  763. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/setFormDataHeaders.js +0 -0
  764. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/settle.js +0 -0
  765. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/transformData.js +0 -0
  766. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/index.js +0 -0
  767. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/transitional.js +0 -0
  768. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/README.md +0 -0
  769. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/classes/FormData.js +0 -0
  770. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/data.js +0 -0
  771. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosTransformStream.js +0 -0
  772. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosURLSearchParams.js +0 -0
  773. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/Http2Sessions.js +0 -0
  774. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/HttpStatusCode.js +0 -0
  775. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/README.md +0 -0
  776. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/ZlibHeaderTransformStream.js +0 -0
  777. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/bind.js +0 -0
  778. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/buildURL.js +0 -0
  779. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/callbackify.js +0 -0
  780. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/combineURLs.js +0 -0
  781. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/composeSignals.js +0 -0
  782. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/cookies.js +0 -0
  783. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/deprecatedMethod.js +0 -0
  784. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/estimateDataURLDecodedBytes.js +0 -0
  785. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToJSON.js +0 -0
  786. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToStream.js +0 -0
  787. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/fromDataURI.js +0 -0
  788. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAbsoluteURL.js +0 -0
  789. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAxiosError.js +0 -0
  790. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isURLSameOrigin.js +0 -0
  791. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/normalizeURLForProtocolCheck.js +0 -0
  792. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/null.js +0 -0
  793. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseHeaders.js +0 -0
  794. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseProtocol.js +0 -0
  795. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/progressEventReducer.js +0 -0
  796. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/readBlob.js +0 -0
  797. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/resolveConfig.js +0 -0
  798. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/sanitizeHeaderValue.js +0 -0
  799. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/shouldBypassProxy.js +0 -0
  800. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/speedometer.js +0 -0
  801. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/spread.js +0 -0
  802. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/throttle.js +0 -0
  803. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toFormData.js +0 -0
  804. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toURLEncodedForm.js +0 -0
  805. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/trackStream.js +0 -0
  806. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/validator.js +0 -0
  807. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/Blob.js +0 -0
  808. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/FormData.js +0 -0
  809. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/URLSearchParams.js +0 -0
  810. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/index.js +0 -0
  811. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/common/utils.js +0 -0
  812. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/index.js +0 -0
  813. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/Buffer.js +0 -0
  814. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/FormData.js +0 -0
  815. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/URLSearchParams.js +0 -0
  816. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/index.js +0 -0
  817. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/utils.js +0 -0
  818. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/README.md +0 -0
  819. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.d.ts +0 -0
  820. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js +0 -0
  821. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js.map +0 -0
  822. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.d.ts +0 -0
  823. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js +0 -0
  824. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js.map +0 -0
  825. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/package.json +0 -0
  826. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/index.ts +0 -0
  827. /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/promisify.ts +0 -0
  828. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/README.md +0 -0
  829. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.d.ts +0 -0
  830. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js +0 -0
  831. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js.map +0 -0
  832. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.d.ts +0 -0
  833. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js +0 -0
  834. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js.map +0 -0
  835. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -0
  836. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -0
  837. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -0
  838. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/package.json +0 -0
  839. /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/package.json +0 -0
  840. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/CHANGELOG.md +0 -0
  841. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/License +0 -0
  842. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/README.md +0 -0
  843. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/index.d.ts +0 -0
  844. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/browser.js +0 -0
  845. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/form_data.js +0 -0
  846. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/populate.js +0 -0
  847. /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/package.json +0 -0
  848. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/HISTORY.md +0 -0
  849. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/LICENSE +0 -0
  850. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/README.md +0 -0
  851. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/db.json +0 -0
  852. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/index.js +0 -0
  853. /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/package.json +0 -0
  854. /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/LICENSE +0 -0
  855. /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/README.md +0 -0
  856. /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.cjs +0 -0
  857. /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.js +0 -0
  858. /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/package.json +0 -0
@@ -0,0 +1,985 @@
1
+ import v8 from "node:v8";
2
+ import vm from "node:vm";
3
+ import { expect, test } from "vitest";
4
+ import * as z from "zod/v4";
5
+
6
+ test("parses a self-referential object and preserves identity", () => {
7
+ const Node: any = z.object({
8
+ id: z.number(),
9
+ get self() {
10
+ return Node;
11
+ },
12
+ });
13
+
14
+ const input: any = { id: 1 };
15
+ input.self = input;
16
+
17
+ const result = Node.parse(input);
18
+ expect(result.id).toBe(1);
19
+ expect(result.self).toBe(result);
20
+ expect(result).not.toBe(input);
21
+ });
22
+
23
+ test("validates a node against every schema that reaches it", () => {
24
+ const A: any = z.object({
25
+ x: z.string(),
26
+ get b() {
27
+ return B;
28
+ },
29
+ });
30
+ const B: any = z.object({
31
+ y: z.number(),
32
+ get a() {
33
+ return A;
34
+ },
35
+ });
36
+
37
+ const input: any = { x: "s", y: 1 };
38
+ input.b = input;
39
+ input.a = input;
40
+
41
+ const result = A.parse(input);
42
+ expect(Object.keys(result).sort()).toEqual(["b", "x"]);
43
+ expect(Object.keys(result.b).sort()).toEqual(["a", "y"]);
44
+ expect(result.b.y).toBe(1);
45
+ expect(result.b.a).toBe(result);
46
+
47
+ const bad: any = { x: "s", y: "not a number" };
48
+ bad.b = bad;
49
+ bad.a = bad;
50
+ expect(A.safeParse(bad).success).toBe(false);
51
+ });
52
+
53
+ test("breaks cycles through every container", () => {
54
+ const cases: [string, () => { schema: any; input: any }][] = [
55
+ [
56
+ "array",
57
+ () => {
58
+ const S: any = z.object({
59
+ id: z.number(),
60
+ get kids() {
61
+ return z.array(S);
62
+ },
63
+ });
64
+ const a: any = { id: 1, kids: [] };
65
+ a.kids.push(a);
66
+ return { schema: S, input: a };
67
+ },
68
+ ],
69
+ [
70
+ "record",
71
+ () => {
72
+ const S: any = z.object({
73
+ id: z.number(),
74
+ get kids() {
75
+ return z.record(z.string(), S);
76
+ },
77
+ });
78
+ const a: any = { id: 1, kids: {} };
79
+ a.kids.self = a;
80
+ return { schema: S, input: a };
81
+ },
82
+ ],
83
+ [
84
+ "tuple",
85
+ () => {
86
+ const S: any = z.object({
87
+ id: z.number(),
88
+ get pair() {
89
+ return z.tuple([z.number(), S]);
90
+ },
91
+ });
92
+ const a: any = { id: 1 };
93
+ a.pair = [1, a];
94
+ return { schema: S, input: a };
95
+ },
96
+ ],
97
+ [
98
+ "set",
99
+ () => {
100
+ const S: any = z.object({
101
+ id: z.number(),
102
+ get peers() {
103
+ return z.set(S);
104
+ },
105
+ });
106
+ const a: any = { id: 1, peers: new Set() };
107
+ a.peers.add(a);
108
+ return { schema: S, input: a };
109
+ },
110
+ ],
111
+ [
112
+ "map",
113
+ () => {
114
+ const S: any = z.object({
115
+ id: z.number(),
116
+ get links() {
117
+ return z.map(z.string(), S);
118
+ },
119
+ });
120
+ const a: any = { id: 1, links: new Map() };
121
+ a.links.set("s", a);
122
+ return { schema: S, input: a };
123
+ },
124
+ ],
125
+ [
126
+ "union",
127
+ () => {
128
+ const S: any = z.object({
129
+ id: z.number(),
130
+ get self() {
131
+ return z.union([z.string(), S]);
132
+ },
133
+ });
134
+ const a: any = { id: 1 };
135
+ a.self = a;
136
+ return { schema: S, input: a };
137
+ },
138
+ ],
139
+ [
140
+ "discriminated union",
141
+ () => {
142
+ const S: any = z.discriminatedUnion("kind", [
143
+ z.object({ kind: z.literal("leaf"), v: z.number() }),
144
+ z.object({
145
+ kind: z.literal("branch"),
146
+ get next() {
147
+ return S;
148
+ },
149
+ }),
150
+ ]);
151
+ const a: any = { kind: "branch" };
152
+ a.next = a;
153
+ return { schema: S, input: a };
154
+ },
155
+ ],
156
+ [
157
+ "lazy",
158
+ () => {
159
+ const S: any = z.object({ id: z.number(), self: z.lazy(() => S) });
160
+ const a: any = { id: 1 };
161
+ a.self = a;
162
+ return { schema: S, input: a };
163
+ },
164
+ ],
165
+ [
166
+ "mutual recursion five hops apart",
167
+ () => {
168
+ const A: any = z.object({
169
+ get b() {
170
+ return B;
171
+ },
172
+ });
173
+ const B: any = z.object({
174
+ get c() {
175
+ return C;
176
+ },
177
+ });
178
+ const C: any = z.object({
179
+ get d() {
180
+ return D;
181
+ },
182
+ });
183
+ const D: any = z.object({
184
+ get e() {
185
+ return E;
186
+ },
187
+ });
188
+ const E: any = z.object({
189
+ get a() {
190
+ return A;
191
+ },
192
+ });
193
+ const a: any = {};
194
+ a.b = { c: { d: { e: { a } } } };
195
+ return { schema: A, input: a };
196
+ },
197
+ ],
198
+ ];
199
+
200
+ for (const [name, build] of cases) {
201
+ for (const jitless of [false, true]) {
202
+ const { schema, input } = build();
203
+ expect(() => schema.parse(input, { jitless }), `${name} (jitless: ${jitless})`).not.toThrow();
204
+ }
205
+ }
206
+ });
207
+
208
+ test("checks run once per node and never against a half-built object", () => {
209
+ const seen: number[] = [];
210
+ const Node: any = z
211
+ .object({
212
+ id: z.number(),
213
+ get self() {
214
+ return Node;
215
+ },
216
+ })
217
+ .refine((value: any) => {
218
+ seen.push(Object.keys(value).length);
219
+ return true;
220
+ });
221
+
222
+ const input: any = { id: 1 };
223
+ input.self = input;
224
+ Node.parse(input);
225
+
226
+ expect(seen).toEqual([2]);
227
+ });
228
+
229
+ test("reports a failing check inside a cycle", () => {
230
+ const Node: any = z
231
+ .object({
232
+ id: z.number(),
233
+ get self() {
234
+ return Node;
235
+ },
236
+ })
237
+ .refine((value: any) => value.id > 100, "too small");
238
+
239
+ const input: any = { id: 1 };
240
+ input.self = input;
241
+ expect(Node.safeParse(input).success).toBe(false);
242
+ });
243
+
244
+ test("reports an invalid value inside a cycle once, at its own path", () => {
245
+ const Node: any = z.object({
246
+ id: z.number(),
247
+ get self() {
248
+ return Node;
249
+ },
250
+ });
251
+
252
+ const input: any = { id: "nope" };
253
+ input.self = input;
254
+
255
+ const result = Node.safeParse(input);
256
+ expect(result.success).toBe(false);
257
+ expect(result.error!.issues).toHaveLength(1);
258
+ expect(result.error!.issues[0].path).toEqual(["id"]);
259
+ });
260
+
261
+ test("rejects a cycle that closes through a transform", () => {
262
+ const Inner: any = z.object({
263
+ name: z.string(),
264
+ get self() {
265
+ return Wrapped;
266
+ },
267
+ });
268
+ const Wrapped: any = Inner.transform((value: any) => ({ wrapped: value }));
269
+
270
+ const input: any = { name: "x" };
271
+ input.self = input;
272
+
273
+ expect(() => Wrapped.parse(input)).toThrow(/reference cycle/);
274
+ });
275
+
276
+ test("leaves a transform that is not on the cycle alone", () => {
277
+ const Node: any = z.object({
278
+ n: z.number().transform((value: number) => value * 2),
279
+ get self() {
280
+ return Node;
281
+ },
282
+ });
283
+
284
+ const input: any = { n: 21 };
285
+ input.self = input;
286
+
287
+ const result = Node.parse(input);
288
+ expect(result.n).toBe(42);
289
+ expect(result.self).toBe(result);
290
+ });
291
+
292
+ test("encodes through a cycle", () => {
293
+ const Stringified = z.codec(z.string(), z.number(), {
294
+ decode: (value) => Number(value),
295
+ encode: (value) => String(value),
296
+ });
297
+ const Node: any = z.object({
298
+ n: Stringified,
299
+ get self() {
300
+ return Node;
301
+ },
302
+ });
303
+
304
+ const input: any = { n: 5 };
305
+ input.self = input;
306
+
307
+ const result: any = z.encode(Node, input);
308
+ expect(result.n).toBe("5");
309
+ expect(result.self).toBe(result);
310
+ });
311
+
312
+ test("keeps separate parses independent", () => {
313
+ const Node: any = z.object({
314
+ id: z.number(),
315
+ get self() {
316
+ return Node;
317
+ },
318
+ });
319
+
320
+ const input: any = { id: 1 };
321
+ input.self = input;
322
+
323
+ const first = Node.parse(input);
324
+ const second = Node.parse(input);
325
+ expect(first).not.toBe(second);
326
+ expect(first.self).toBe(first);
327
+ expect(second.self).toBe(second);
328
+
329
+ const bad: any = { id: "x" };
330
+ bad.self = bad;
331
+ expect(Node.safeParse(bad).success).toBe(false);
332
+ expect(Node.safeParse(input).success).toBe(true);
333
+ });
334
+
335
+ test("parses a cycle asynchronously", async () => {
336
+ const Node: any = z.object({
337
+ id: z.number().refine(async (value: number) => value > 0),
338
+ get self() {
339
+ return Node;
340
+ },
341
+ });
342
+
343
+ const input: any = { id: 1 };
344
+ input.self = input;
345
+
346
+ const result = await Node.parseAsync(input);
347
+ expect(result.self).toBe(result);
348
+
349
+ const bad: any = { id: -1 };
350
+ bad.self = bad;
351
+ expect((await Node.safeParseAsync(bad)).success).toBe(false);
352
+ });
353
+
354
+ test("a non-recursive schema still copies a shared reference twice", () => {
355
+ const Leaf = z.object({ v: z.number() });
356
+ const Pair = z.object({ a: Leaf, b: Leaf });
357
+
358
+ const shared = { v: 1 };
359
+ const result = Pair.parse({ a: shared, b: shared });
360
+
361
+ expect(result.a).not.toBe(result.b);
362
+ expect(result.a.v).toBe(1);
363
+ expect(result.b.v).toBe(1);
364
+ });
365
+
366
+ test("a recursive schema shares one output node per input node", () => {
367
+ const Node: any = z.object({
368
+ v: z.number(),
369
+ get kids() {
370
+ return z.array(Node);
371
+ },
372
+ });
373
+
374
+ const shared: any = { v: 1, kids: [] };
375
+ const result = Node.parse({ v: 0, kids: [shared, shared] });
376
+
377
+ expect(result.kids[0]).toBe(result.kids[1]);
378
+ });
379
+
380
+ test("sync and async agree on a shared reference", async () => {
381
+ const build = (asyncCheck: boolean) => {
382
+ const Node: any = z.object({
383
+ v: asyncCheck ? z.number().refine(async (n: number) => n >= 0) : z.number(),
384
+ get kids() {
385
+ return z.array(Node);
386
+ },
387
+ });
388
+ return Node;
389
+ };
390
+
391
+ const shared: any = { v: 1, kids: [] };
392
+ const input = { v: 0, kids: [shared, shared] };
393
+
394
+ const syncResult = build(false).parse(input);
395
+ const asyncResult = await build(true).parseAsync(input);
396
+
397
+ expect(syncResult.kids[0]).toBe(syncResult.kids[1]);
398
+ expect(asyncResult.kids[0]).toBe(asyncResult.kids[1]);
399
+ });
400
+
401
+ test("a cycle through .readonly() keeps the node intact", () => {
402
+ const Node: any = z.object({
403
+ id: z.number(),
404
+ get self() {
405
+ return Node.readonly();
406
+ },
407
+ });
408
+
409
+ const input: any = { id: 1 };
410
+ input.self = input;
411
+
412
+ // Freezing a node that is still being built would make its remaining keys fail to assign, silently, because generated code is not strict mode.
413
+ const result = Node.parse(input);
414
+ expect(Object.keys(result).sort()).toEqual(["id", "self"]);
415
+ expect(result.self).toBe(result);
416
+ });
417
+
418
+ test("a cycle through z.intersection validates but does not mirror the graph", () => {
419
+ const Node: any = z.object({
420
+ id: z.number(),
421
+ get self() {
422
+ return z.intersection(Node, z.object({ id: z.number() }));
423
+ },
424
+ });
425
+
426
+ const input: any = { id: 7 };
427
+ input.self = input;
428
+
429
+ // The merged value is built after both sides are parsed, so it cannot be the object a back-edge already resolved to. Values are right, the graph is not.
430
+ const result = Node.parse(input);
431
+ expect(result.id).toBe(7);
432
+ expect(result.self.id).toBe(7);
433
+ expect(result.self).not.toBe(result);
434
+ expect(result.self.self).toBeUndefined();
435
+
436
+ const bad: any = { id: "nope" };
437
+ bad.self = bad;
438
+ expect(Node.safeParse(bad).success).toBe(false);
439
+ });
440
+
441
+ test("keeps two cycles and a shared node distinct in one input", () => {
442
+ const Node: any = z.object({
443
+ id: z.number(),
444
+ get kids() {
445
+ return z.array(Node);
446
+ },
447
+ });
448
+
449
+ const shared: any = { id: 9, kids: [] };
450
+ const root: any = { id: 0, kids: [shared, shared] };
451
+ root.kids.push(root);
452
+
453
+ const result = Node.parse(root);
454
+ expect(result.kids[0]).toBe(result.kids[1]);
455
+ expect(result.kids[2]).toBe(result);
456
+ });
457
+
458
+ test("closes a cycle through a Map key and a Set member", () => {
459
+ const Keyed: any = z.object({
460
+ id: z.number(),
461
+ get keyed() {
462
+ return z.map(Keyed, z.string());
463
+ },
464
+ });
465
+ const k: any = { id: 1, keyed: new Map() };
466
+ k.keyed.set(k, "v");
467
+ const keyedOut = Keyed.parse(k);
468
+ expect([...keyedOut.keyed.keys()][0]).toBe(keyedOut);
469
+
470
+ const Peered: any = z.object({
471
+ id: z.number(),
472
+ get peers() {
473
+ return z.set(Peered);
474
+ },
475
+ });
476
+ const p: any = { id: 1, peers: new Set() };
477
+ p.peers.add(p);
478
+ const peeredOut = Peered.parse(p);
479
+ expect([...peeredOut.peers][0]).toBe(peeredOut);
480
+ });
481
+
482
+ test("does not mutate the input, and tolerates a frozen one", () => {
483
+ const Node: any = z.object({
484
+ id: z.number(),
485
+ get self() {
486
+ return Node;
487
+ },
488
+ });
489
+
490
+ const input: any = { id: 1 };
491
+ input.self = input;
492
+ Object.freeze(input);
493
+
494
+ const result = Node.parse(input);
495
+ expect(result).not.toBe(input);
496
+ expect(result.self).toBe(result);
497
+ expect(Reflect.ownKeys(input)).toEqual(["id", "self"]);
498
+ });
499
+
500
+ test("keys identity on the schema, not just the input", () => {
501
+ const Node: any = z.object({
502
+ id: z.number(),
503
+ get self() {
504
+ return Node.optional();
505
+ },
506
+ });
507
+ const Partial: any = Node.partial();
508
+
509
+ const input: any = { id: 1 };
510
+ input.self = input;
511
+
512
+ // `Partial` and `Node` are different schemas, so the root and the node its cycle points back to are different output objects. Same rule that lets one input node be validated against two schemas in mutual recursion.
513
+ const result = Partial.parse(input);
514
+ expect(result.self).not.toBe(result);
515
+ expect(result.self.self).toBe(result.self);
516
+ expect(result.id).toBe(1);
517
+ expect(result.self.id).toBe(1);
518
+ });
519
+
520
+ test("keeps concurrent async parses of one schema independent", async () => {
521
+ const Node: any = z.object({
522
+ id: z.number().refine(async (n: number) => {
523
+ await new Promise((r) => setTimeout(r, 5 + (n % 3)));
524
+ return true;
525
+ }),
526
+ get self() {
527
+ return Node;
528
+ },
529
+ });
530
+
531
+ const make = (id: number) => {
532
+ const o: any = { id };
533
+ o.self = o;
534
+ return o;
535
+ };
536
+
537
+ const [a, b, c] = await Promise.all([Node.parseAsync(make(1)), Node.parseAsync(make(2)), Node.parseAsync(make(3))]);
538
+
539
+ expect([a.id, b.id, c.id]).toEqual([1, 2, 3]);
540
+ expect(a.self).toBe(a);
541
+ expect(b.self).toBe(b);
542
+ expect(c.self).toBe(c);
543
+ });
544
+
545
+ test("runs checks once per reference, as it does without a cycle", () => {
546
+ let calls = 0;
547
+ const Node: any = z
548
+ .object({
549
+ id: z.number(),
550
+ get kids() {
551
+ return z.array(Node);
552
+ },
553
+ })
554
+ .refine(() => {
555
+ calls++;
556
+ return true;
557
+ });
558
+
559
+ const shared: any = { id: 1, kids: [] };
560
+ Node.parse({ id: 0, kids: [shared, shared] });
561
+
562
+ // Memoization skips the container's parse, not the checks layered on it.
563
+ expect(calls).toBe(3);
564
+ });
565
+
566
+ test("a schema wrapped at the root adds one node and no more", () => {
567
+ const Node: any = z.object({
568
+ id: z.number(),
569
+ get self() {
570
+ return Node.optional();
571
+ },
572
+ });
573
+
574
+ const input: any = { id: 1 };
575
+ input.self = input;
576
+
577
+ // The root is keyed on the wrapper, everything under it on `Node`, so the graph closes one level down rather than at the root. It does not compound: stacking wrappers still yields exactly two nodes.
578
+ const count = (root: any) => {
579
+ const seen: any[] = [];
580
+ let n = root;
581
+ while (n && !seen.includes(n)) {
582
+ seen.push(n);
583
+ n = n.self;
584
+ }
585
+ return seen.length;
586
+ };
587
+
588
+ expect(count(Node.parse(input))).toBe(1);
589
+ expect(count(Node.partial().parse(input))).toBe(2);
590
+ expect(count(Node.partial().partial().parse(input))).toBe(2);
591
+ expect(count(Node.extend({ extra: z.string().optional() }).parse(input))).toBe(2);
592
+ });
593
+
594
+ test("resolves a recursive reference once, however it is written", () => {
595
+ // This is what bounds the above: core caches a shape getter and a lazy getter, so a getter returning a fresh clone still yields a finite schema graph rather than a new schema per node.
596
+ let getterCalls = 0;
597
+ const ViaGetter: any = z.object({
598
+ id: z.number(),
599
+ get self() {
600
+ getterCalls++;
601
+ return ViaGetter.partial();
602
+ },
603
+ });
604
+
605
+ let lazyCalls = 0;
606
+ const ViaLazy: any = z.object({
607
+ id: z.number(),
608
+ self: z.lazy(() => {
609
+ lazyCalls++;
610
+ return ViaLazy.partial();
611
+ }),
612
+ });
613
+
614
+ const input: any = { id: 1 };
615
+ input.self = input;
616
+
617
+ expect(() => ViaGetter.parse(input)).not.toThrow();
618
+ expect(() => ViaLazy.parse(input)).not.toThrow();
619
+ expect(getterCalls).toBe(1);
620
+ expect(lazyCalls).toBe(1);
621
+ });
622
+
623
+ // The second visitor of a shared node must not prefix onto the first visitor's path.
624
+ test.each([false, true])("prefixes a shared node's issues once per reference (jitless: %s)", (jitless) => {
625
+ z.config({ jitless });
626
+ try {
627
+ const Node: any = z.object({
628
+ name: z.string(),
629
+ get left() {
630
+ return z.optional(Node);
631
+ },
632
+ get right() {
633
+ return z.optional(Node);
634
+ },
635
+ });
636
+
637
+ const shared: any = { name: 123 };
638
+ const result = Node.safeParse({ name: "root", left: shared, right: shared });
639
+
640
+ expect(result.success).toBe(false);
641
+ expect(result.error.issues.map((iss: any) => iss.path)).toEqual([
642
+ ["left", "name"],
643
+ ["right", "name"],
644
+ ]);
645
+ } finally {
646
+ z.config({ jitless: false });
647
+ }
648
+ });
649
+
650
+ test("the default memoizer is installed before the first container reads it", () => {
651
+ // the delete manufactures the fresh-process state; a container with only getter keys then constructs no leaf before the config read
652
+ delete z.config().memoizer;
653
+ const Node: any = z.object({
654
+ get self() {
655
+ return Node;
656
+ },
657
+ });
658
+ const input: any = {};
659
+ input.self = input;
660
+ const out = Node.parse(input);
661
+ expect(out.self).toBe(out);
662
+ });
663
+
664
+ test("guards a transform built before any container", () => {
665
+ // the guard attaches at construction, so a transform predating the first container must still get the default
666
+ delete z.config().memoizer;
667
+ const wrap = z.transform((value: any) => ({ wrapped: value }));
668
+ const Inner: any = z.object({
669
+ name: z.string(),
670
+ get self() {
671
+ return Wrapped;
672
+ },
673
+ });
674
+ const Wrapped: any = z.pipe(Inner, wrap);
675
+
676
+ const input: any = { name: "x" };
677
+ input.self = input;
678
+
679
+ expect(() => Wrapped.parse(input)).toThrow(/reference cycle/);
680
+ });
681
+
682
+ test("detects a cycle reachable only through a merged catchall", () => {
683
+ const Cyclic: any = z.object({
684
+ id: z.string(),
685
+ get next() {
686
+ return z.optional(Root);
687
+ },
688
+ });
689
+ const Root: any = z.object({ tag: z.string() }).merge(z.object({}).catchall(Cyclic));
690
+
691
+ const input: any = { tag: "root" };
692
+ input.child = { id: "1", next: input };
693
+
694
+ const out: any = Root.parse(input);
695
+ expect(out.child.next).toBe(out);
696
+ });
697
+
698
+ // the per-type switch can only enumerate kinds Zod ships, so an unknown `def.type` falls back to scanning the def; without it a cycle through a third-party container overflows the stack
699
+ test("detects a cycle through a user-defined container type", () => {
700
+ const MyBox: any = z.core.$constructor("MyBox", (inst: any, def: any) => {
701
+ z.core.$ZodType.init(inst, def);
702
+ inst._zod.parse = (payload: any, ctx: any) => {
703
+ if (payload.value === null || typeof payload.value !== "object") return payload;
704
+ const inner = def.inner._zod.run({ value: payload.value.v, issues: [] }, ctx);
705
+ payload.value = { v: inner.value };
706
+ return payload;
707
+ };
708
+ });
709
+
710
+ const Node: any = z.object({
711
+ id: z.string(),
712
+ get boxed() {
713
+ return z.optional(new MyBox({ type: "mybox", inner: z.lazy(() => Node) }));
714
+ },
715
+ });
716
+
717
+ const input: any = { id: "1" };
718
+ input.boxed = { v: input };
719
+
720
+ const out: any = Node.parse(input);
721
+ expect(out.boxed.v).toBe(out);
722
+ });
723
+
724
+ // #6526: a factory returns fresh instances, so the identity walk never revisits a node; it descends until the stack overflows unless it stops at the deferred edge
725
+ test("parses a factory-built recursive schema", () => {
726
+ const Node = (): any =>
727
+ z.object({
728
+ id: z.number(),
729
+ get kids() {
730
+ return z.array(Node());
731
+ },
732
+ });
733
+
734
+ const S = z.object({ root: Node() });
735
+ const out = S.parse({ root: { id: 1, kids: [{ id: 2, kids: [] }] } });
736
+ expect(out.root.kids[0].id).toBe(2);
737
+ expect(S.safeParse({ root: { id: 1, kids: [{ id: "x", kids: [] }] } }).success).toBe(false);
738
+ });
739
+
740
+ test("parses a factory-built recursive discriminated union at the root and nested", () => {
741
+ const Geometry = (): any =>
742
+ z.discriminatedUnion("type", [
743
+ z.object({ type: z.literal("Point"), coordinates: z.array(z.number()) }),
744
+ z.looseObject({
745
+ type: z.literal("GeometryCollection"),
746
+ get geometries() {
747
+ return z.array(Geometry());
748
+ },
749
+ }),
750
+ ]);
751
+
752
+ const collection = { type: "GeometryCollection", geometries: [{ type: "Point", coordinates: [1, 2] }] };
753
+ expect(Geometry().parse(collection).geometries[0].coordinates).toEqual([1, 2]);
754
+ expect(z.object({ g: Geometry() }).parse({ g: collection }).g.type).toBe("GeometryCollection");
755
+ });
756
+
757
+ test("the walk reports a cycle for a deferred edge instead of resolving it", () => {
758
+ const Node = (): any =>
759
+ z.object({
760
+ get self() {
761
+ return Node();
762
+ },
763
+ });
764
+ expect(z.core.isRecursiveSchema(Node())).toBe(true);
765
+
766
+ // conservative by design: a getter that closes no cycle is reported too, and pays only the memoizer it keeps
767
+ const Leaf = z.object({ id: z.string() });
768
+ const forward: any = z.object({
769
+ get leaf() {
770
+ return Leaf;
771
+ },
772
+ });
773
+ expect(z.core.isRecursiveSchema(forward)).toBe(true);
774
+
775
+ // a lazy is followed one hop, which is what lets z.compile see past it; past that hop it is deferred like any other edge
776
+ expect(z.core.isRecursiveSchema(z.lazy(() => Leaf) as any)).toBe(false);
777
+ expect(z.core.isRecursiveSchema(z.lazy(() => z.lazy(() => Leaf)) as any)).toBe(true);
778
+ });
779
+
780
+ // the builders answer `shape` from an accessor that resolves the source's getters, so the walk has to reach the source schema itself
781
+ test("parses a factory-built recursive schema through every object builder", () => {
782
+ const wraps: [string, (base: () => any) => any][] = [
783
+ ["extend", (b) => b().extend({ x: z.string() })],
784
+ ["safeExtend", (b) => b().safeExtend({ x: z.string() })],
785
+ ["merge", (b) => z.object({ x: z.string() }).merge(b())],
786
+ ["partial", (b) => b().partial()],
787
+ ["required", (b) => b().required()],
788
+ ["pick", (b) => b().pick({ self: true })],
789
+ ["omit", (b) => b().omit({ y: true })],
790
+ ["chained", (b) => b().extend({ x: z.string() }).partial()],
791
+ // rebuilds the def without touching the shape, so the clone carries the source's accessor rather than a shape of its own
792
+ ["strict", (b) => b().extend({ x: z.string() }).strict()],
793
+ ["catchall", (b) => b().extend({ x: z.string() }).catchall(z.unknown())],
794
+ ["meta", (b) => b().extend({ x: z.string() }).meta({ id: "node" })],
795
+ ];
796
+
797
+ for (const [name, wrap] of wraps) {
798
+ const Node = (): any =>
799
+ wrap(() =>
800
+ z.object({
801
+ y: z.string(),
802
+ get self() {
803
+ return z.optional(Node());
804
+ },
805
+ })
806
+ );
807
+ const S = z.object({ r: Node() });
808
+ for (const attempt of ["first", "second"]) {
809
+ expect(() => S.safeParse({ r: { y: "s", x: "s" } }), `${name} (${attempt} parse)`).not.toThrow();
810
+ }
811
+ }
812
+ });
813
+
814
+ test("an ordinary builder stays exact, so it still compiles", () => {
815
+ const plain = z.object({ a: z.string(), b: z.number() });
816
+ const derived: [string, any][] = [
817
+ ["extend", plain.extend({ c: z.boolean() })],
818
+ ["merge", plain.merge(z.object({ d: z.string() }))],
819
+ ["partial", plain.partial()],
820
+ ["required", plain.partial().required()],
821
+ ["pick", plain.pick({ a: true })],
822
+ ["omit", plain.omit({ a: true })],
823
+ ["strict", plain.extend({ c: z.boolean() }).strict()],
824
+ ["catchall", plain.extend({ c: z.boolean() }).catchall(z.unknown())],
825
+ ["meta", plain.extend({ c: z.boolean() }).meta({ id: "plain" })],
826
+ ];
827
+ for (const [name, schema] of derived) {
828
+ expect(z.core.isRecursiveSchema(schema), name).toBe(false);
829
+ expect(() => z.compile(schema, { strict: true }), name).not.toThrow();
830
+ }
831
+ });
832
+
833
+ // a derived shape mirrors its source's descriptors, so dropping or overwriting the key that carries the cycle leaves nothing deferred and the walk is exact before anything parses
834
+ test("a builder that drops the recursive key ends up exact", () => {
835
+ const Node: any = z.object({
836
+ id: z.number(),
837
+ get self() {
838
+ return z.optional(Node);
839
+ },
840
+ });
841
+
842
+ const derived: [string, any, any][] = [
843
+ ["omit", Node.omit({ self: true }), { id: 1 }],
844
+ ["pick", Node.pick({ id: true }), { id: 1 }],
845
+ ["extend overwrites it", Node.extend({ self: z.string() }), { id: 1, self: "x" }],
846
+ ];
847
+ for (const [name, schema, input] of derived) {
848
+ expect(z.core.isRecursiveSchema(schema), name).toBe(false);
849
+ expect(() => z.compile(schema, { strict: true }), name).not.toThrow();
850
+ expect(schema.parse(input), name).toEqual(input);
851
+ }
852
+
853
+ // the branch that stays is still found
854
+ const kept = Node.extend({ x: z.string() });
855
+ expect(z.core.isRecursiveSchema(kept)).toBe(true);
856
+ });
857
+
858
+ // resolving a lazy runs user code, which can re-enter the walk; a walk that kept its certainty outside its own frames would have the inner one clobber the outer
859
+ test("a nested walk can't corrupt the one that resolved into it", () => {
860
+ const Node: any = z.object({
861
+ id: z.number(),
862
+ self: z.lazy(() => {
863
+ z.compile(z.string(), { strict: true });
864
+ return z.optional(Node);
865
+ }),
866
+ });
867
+
868
+ const omitted = Node.omit({ self: true });
869
+ // exact before anything parses: the mirrored shape kept only `id`, so nothing here is deferred
870
+ expect(z.core.isRecursiveSchema(omitted)).toBe(false);
871
+ omitted.parse({ id: 1 });
872
+ expect(z.core.isRecursiveSchema(omitted)).toBe(false);
873
+ expect(() => z.compile(omitted, { strict: true })).not.toThrow();
874
+
875
+ const shared = { id: 1 };
876
+ const out: any = z.object({ a: omitted, b: omitted }).parse({ a: shared, b: shared });
877
+ expect(out.a).not.toBe(out.b);
878
+ expect(z.core.isRecursiveSchema(Node)).toBe(true);
879
+ });
880
+
881
+ test("detects a cycle that closes through a builder", () => {
882
+ const Node: any = z
883
+ .object({
884
+ id: z.number(),
885
+ get self() {
886
+ return z.optional(Node);
887
+ },
888
+ })
889
+ .extend({ x: z.string() });
890
+
891
+ const input: any = { id: 1, x: "s" };
892
+ input.self = input;
893
+ const out = Node.parse(input);
894
+ expect(out.self).toBe(out);
895
+ });
896
+
897
+ test("a deferred edge stops being assumed a cycle once the graph resolves", () => {
898
+ const Leaf = z.object({ n: z.number() });
899
+ const Forward: any = z.object({
900
+ get a() {
901
+ return Leaf;
902
+ },
903
+ });
904
+ expect(z.core.isRecursiveSchema(Forward)).toBe(true);
905
+ Forward.parse({ a: { n: 1 } });
906
+ // the parse resolved the getter, so the walk can follow it and drop the assumption
907
+ expect(z.core.isRecursiveSchema(Forward)).toBe(false);
908
+
909
+ // a factory hands back a fresh subtree every time, so no parse ever resolves it into a finite graph
910
+ const Node = (): any =>
911
+ z.object({
912
+ get kids() {
913
+ return z.array(Node());
914
+ },
915
+ });
916
+ const Generated = Node();
917
+ expect(z.core.isRecursiveSchema(Generated)).toBe(true);
918
+ Generated.parse({ kids: [] });
919
+ expect(z.core.isRecursiveSchema(Generated)).toBe(true);
920
+
921
+ // a lazy that closes a real cycle stays recursive however often it resolves
922
+ const Cyclic: any = z.object({ id: z.number(), self: z.lazy(() => z.optional(Cyclic)) });
923
+ Cyclic.parse({ id: 1 });
924
+ expect(z.core.isRecursiveSchema(Cyclic)).toBe(true);
925
+ });
926
+
927
+ // `z.object` resolves its shape by spread, so a non-enumerable key is no part of it
928
+ test("a non-enumerable key does not count for z.object", () => {
929
+ const object = (enumerable: boolean) => {
930
+ const shape: Record<string, any> = { id: z.number() };
931
+ const O: any = z.object(shape);
932
+ Object.defineProperty(shape, "next", { value: z.lazy(() => z.optional(O)), enumerable, configurable: true });
933
+ return O;
934
+ };
935
+ expect(z.core.isRecursiveSchema(object(true))).toBe(true);
936
+ // the spread drops it, so nothing can ever parse it
937
+ expect(z.core.isRecursiveSchema(object(false))).toBe(false);
938
+ });
939
+
940
+ test("the walk stays exact where nothing is deferred", () => {
941
+ let deep: any = z.string();
942
+ for (let i = 0; i < 300; i++) deep = z.object({ v: deep });
943
+ expect(z.core.isRecursiveSchema(deep)).toBe(false);
944
+ });
945
+
946
+ test("parses a factory-built recursive schema through z.lazy", () => {
947
+ const Node = (): any =>
948
+ z.object({
949
+ id: z.number(),
950
+ child: z.lazy(() => z.optional(Node())),
951
+ });
952
+
953
+ const out = z.object({ root: Node() }).parse({ root: { id: 1, child: { id: 2, child: undefined } } });
954
+ expect(out.root.child.id).toBe(2);
955
+ });
956
+
957
+ test("a finished parse pins nothing on the schema", async () => {
958
+ // es2020 is the target, and its lib predates WeakRef
959
+ type Weak<T extends object> = { deref(): T | undefined };
960
+ const { WeakRef: Weak } = globalThis as unknown as { WeakRef: new <T extends object>(target: T) => Weak<T> };
961
+ // vitest carries no --expose-gc, so reach the collector the way node's own tests do
962
+ v8.setFlagsFromString("--expose-gc");
963
+ const gc = vm.runInNewContext("gc") as () => void;
964
+
965
+ const Node: any = z.object({
966
+ id: z.number(),
967
+ get next() {
968
+ return z.optional(Node);
969
+ },
970
+ });
971
+
972
+ const ref = ((): Weak<object> => {
973
+ const input = { id: 1, next: { id: 2, next: undefined } };
974
+ Node.parse(input);
975
+ return new Weak(input);
976
+ })();
977
+
978
+ for (let attempt = 0; attempt < 10 && ref.deref(); attempt++) {
979
+ // the input stays on the stack until a macrotask boundary
980
+ await new Promise((resolve) => setTimeout(resolve, 0));
981
+ gc();
982
+ }
983
+
984
+ expect(ref.deref()).toBeUndefined();
985
+ });