@suveren/gateway 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp-server/http.mjs +1 -1
- package/dist/ui/assets/index-C-lA_7Lt.js +123 -0
- package/dist/ui/assets/index-DM9WXky8.css +1 -0
- package/dist/ui/index.html +2 -2
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md +17 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js +74 -57
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js +0 -15
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json +7 -12
- package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
- package/node_modules/body-parser/HISTORY.md +7 -2
- package/node_modules/body-parser/README.md +3 -3
- package/node_modules/body-parser/lib/read.js +26 -8
- package/node_modules/body-parser/package.json +1 -1
- package/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hono/README.md +2 -3
- package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
- package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
- package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/cjs/utils/url.js +11 -6
- package/node_modules/hono/dist/helper/css/common.js +8 -3
- package/node_modules/hono/dist/helper/css/index.js +1 -1
- package/node_modules/hono/dist/helper/route/index.js +3 -1
- package/node_modules/hono/dist/jsx/base.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
- package/node_modules/hono/dist/types/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
- package/node_modules/hono/dist/utils/url.js +11 -6
- package/node_modules/hono/package.json +1 -1
- package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
- package/node_modules/http-proxy-middleware/package.json +1 -1
- package/node_modules/ip-address/dist/common.js +2 -2
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/package.json +2 -2
- package/node_modules/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- package/node_modules/postcss/lib/input.js +1 -1
- package/node_modules/postcss/lib/lazy-result.js +1 -1
- package/node_modules/postcss/lib/no-work-result.js +1 -1
- package/node_modules/postcss/lib/node.js +2 -2
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/warning.js +1 -0
- package/node_modules/postcss/package.json +1 -1
- package/node_modules/zod/README.md +34 -24
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +22 -3
- package/node_modules/zod/index.d.cts +3 -4
- package/node_modules/zod/index.d.ts +3 -4
- package/node_modules/zod/index.js +7 -4
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +44 -15
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -4
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +23 -13
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
- package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
- package/node_modules/zod/src/v3/types.ts +8 -6
- package/node_modules/zod/src/v4/classic/checks.ts +3 -0
- package/node_modules/zod/src/v4/classic/compat.ts +30 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +61 -39
- package/node_modules/zod/src/v4/classic/external.ts +18 -11
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +57 -2
- package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +442 -161
- package/node_modules/zod/src/v4/core/checks.ts +134 -151
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +146 -50
- package/node_modules/zod/src/v4/core/doc.ts +18 -10
- package/node_modules/zod/src/v4/core/errors.ts +221 -102
- package/node_modules/zod/src/v4/core/index.ts +5 -1
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +252 -37
- package/node_modules/zod/src/v4/core/regexes.ts +112 -30
- package/node_modules/zod/src/v4/core/registries.ts +19 -10
- package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
- package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
- package/node_modules/zod/src/v4/core/util.ts +675 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +22 -27
- package/node_modules/zod/src/v4/locales/az.ts +22 -27
- package/node_modules/zod/src/v4/locales/be.ts +31 -27
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +22 -28
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +26 -45
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +24 -27
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +38 -29
- package/node_modules/zod/src/v4/locales/eo.ts +25 -27
- package/node_modules/zod/src/v4/locales/es.ts +53 -33
- package/node_modules/zod/src/v4/locales/fa.ts +24 -27
- package/node_modules/zod/src/v4/locales/fi.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr.ts +58 -43
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +208 -80
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +24 -28
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +22 -27
- package/node_modules/zod/src/v4/locales/index.ts +24 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +24 -28
- package/node_modules/zod/src/v4/locales/ja.ts +24 -27
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +3 -122
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +22 -27
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +24 -28
- package/node_modules/zod/src/v4/locales/ms.ts +23 -27
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +37 -37
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +26 -29
- package/node_modules/zod/src/v4/locales/ota.ts +25 -28
- package/node_modules/zod/src/v4/locales/pl.ts +24 -27
- package/node_modules/zod/src/v4/locales/ps.ts +24 -26
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +107 -71
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +31 -27
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +24 -27
- package/node_modules/zod/src/v4/locales/sv.ts +26 -29
- package/node_modules/zod/src/v4/locales/ta.ts +25 -27
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +25 -27
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +22 -27
- package/node_modules/zod/src/v4/locales/ua.ts +3 -122
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +25 -27
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +24 -27
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
- package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +15 -3
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/iso.ts +8 -4
- package/node_modules/zod/src/v4/mini/parse.ts +16 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
- package/node_modules/zod/src/v4-mini/index.ts +3 -1
- package/node_modules/zod/v3/ZodError.cjs +42 -13
- package/node_modules/zod/v3/ZodError.d.cts +6 -6
- package/node_modules/zod/v3/ZodError.d.ts +6 -6
- package/node_modules/zod/v3/ZodError.js +23 -13
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/locales/en.cjs +1 -0
- package/node_modules/zod/v3/locales/en.d.cts +1 -1
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +28 -5
- package/node_modules/zod/v3/types.d.cts +4 -1
- package/node_modules/zod/v3/types.d.ts +4 -1
- package/node_modules/zod/v3/types.js +9 -5
- package/node_modules/zod/v4/classic/checks.cjs +22 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +24 -1
- package/node_modules/zod/v4/classic/compat.d.cts +13 -11
- package/node_modules/zod/v4/classic/compat.d.ts +13 -11
- package/node_modules/zod/v4/classic/compat.js +4 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +63 -28
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +45 -29
- package/node_modules/zod/v4/classic/external.cjs +55 -28
- package/node_modules/zod/v4/classic/external.d.cts +8 -2
- package/node_modules/zod/v4/classic/external.d.ts +8 -2
- package/node_modules/zod/v4/classic/external.js +7 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -1
- package/node_modules/zod/v4/classic/parse.d.cts +21 -0
- package/node_modules/zod/v4/classic/parse.d.ts +21 -0
- package/node_modules/zod/v4/classic/parse.js +10 -0
- package/node_modules/zod/v4/classic/schemas.cjs +805 -238
- package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
- package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
- package/node_modules/zod/v4/classic/schemas.js +766 -237
- package/node_modules/zod/v4/core/api.cjs +284 -54
- package/node_modules/zod/v4/core/api.d.cts +133 -82
- package/node_modules/zod/v4/core/api.d.ts +133 -82
- package/node_modules/zod/v4/core/api.js +255 -54
- package/node_modules/zod/v4/core/checks.cjs +100 -130
- package/node_modules/zod/v4/core/checks.d.cts +32 -16
- package/node_modules/zod/v4/core/checks.d.ts +32 -16
- package/node_modules/zod/v4/core/checks.js +80 -129
- package/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1866 -0
- package/node_modules/zod/v4/core/core.cjs +120 -20
- package/node_modules/zod/v4/core/core.d.cts +40 -7
- package/node_modules/zod/v4/core/core.d.ts +40 -7
- package/node_modules/zod/v4/core/core.js +101 -21
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +4 -2
- package/node_modules/zod/v4/core/doc.d.ts +4 -2
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +151 -60
- package/node_modules/zod/v4/core/errors.d.cts +41 -24
- package/node_modules/zod/v4/core/errors.d.ts +41 -24
- package/node_modules/zod/v4/core/errors.js +132 -60
- package/node_modules/zod/v4/core/index.cjs +28 -2
- package/node_modules/zod/v4/core/index.d.cts +5 -1
- package/node_modules/zod/v4/core/index.d.ts +5 -1
- package/node_modules/zod/v4/core/index.js +5 -1
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
- package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +183 -37
- package/node_modules/zod/v4/core/parse.d.cts +34 -7
- package/node_modules/zod/v4/core/parse.d.ts +34 -7
- package/node_modules/zod/v4/core/parse.js +154 -36
- package/node_modules/zod/v4/core/regexes.cjs +137 -31
- package/node_modules/zod/v4/core/regexes.d.cts +30 -2
- package/node_modules/zod/v4/core/regexes.d.ts +30 -2
- package/node_modules/zod/v4/core/regexes.js +90 -29
- package/node_modules/zod/v4/core/registries.cjs +26 -7
- package/node_modules/zod/v4/core/registries.d.cts +2 -2
- package/node_modules/zod/v4/core/registries.d.ts +2 -2
- package/node_modules/zod/v4/core/registries.js +9 -9
- package/node_modules/zod/v4/core/schemas.cjs +1373 -422
- package/node_modules/zod/v4/core/schemas.d.cts +276 -42
- package/node_modules/zod/v4/core/schemas.d.ts +276 -42
- package/node_modules/zod/v4/core/schemas.js +1341 -422
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
- package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
- package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
- package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.js +602 -800
- package/node_modules/zod/v4/core/util.cjs +580 -155
- package/node_modules/zod/v4/core/util.d.cts +98 -1
- package/node_modules/zod/v4/core/util.d.ts +98 -1
- package/node_modules/zod/v4/core/util.js +536 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +20 -24
- package/node_modules/zod/v4/locales/ar.d.cts +2 -1
- package/node_modules/zod/v4/locales/ar.js +19 -24
- package/node_modules/zod/v4/locales/az.cjs +20 -24
- package/node_modules/zod/v4/locales/az.d.cts +2 -1
- package/node_modules/zod/v4/locales/az.js +19 -24
- package/node_modules/zod/v4/locales/be.cjs +29 -24
- package/node_modules/zod/v4/locales/be.d.cts +2 -1
- package/node_modules/zod/v4/locales/be.js +28 -24
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +20 -25
- package/node_modules/zod/v4/locales/ca.d.cts +2 -1
- package/node_modules/zod/v4/locales/ca.js +19 -25
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +24 -42
- package/node_modules/zod/v4/locales/cs.d.cts +2 -1
- package/node_modules/zod/v4/locales/cs.js +23 -42
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +22 -24
- package/node_modules/zod/v4/locales/de.d.cts +2 -1
- package/node_modules/zod/v4/locales/de.js +21 -24
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +35 -28
- package/node_modules/zod/v4/locales/en.d.cts +2 -2
- package/node_modules/zod/v4/locales/en.d.ts +0 -1
- package/node_modules/zod/v4/locales/en.js +34 -26
- package/node_modules/zod/v4/locales/eo.cjs +23 -26
- package/node_modules/zod/v4/locales/eo.d.cts +2 -2
- package/node_modules/zod/v4/locales/eo.d.ts +0 -1
- package/node_modules/zod/v4/locales/eo.js +22 -24
- package/node_modules/zod/v4/locales/es.cjs +51 -31
- package/node_modules/zod/v4/locales/es.d.cts +2 -1
- package/node_modules/zod/v4/locales/es.js +50 -31
- package/node_modules/zod/v4/locales/fa.cjs +22 -24
- package/node_modules/zod/v4/locales/fa.d.cts +2 -1
- package/node_modules/zod/v4/locales/fa.js +21 -24
- package/node_modules/zod/v4/locales/fi.cjs +20 -24
- package/node_modules/zod/v4/locales/fi.d.cts +2 -1
- package/node_modules/zod/v4/locales/fi.js +19 -24
- package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
- package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr-CA.js +19 -24
- package/node_modules/zod/v4/locales/fr.cjs +53 -39
- package/node_modules/zod/v4/locales/fr.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr.js +52 -39
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +183 -78
- package/node_modules/zod/v4/locales/he.d.cts +2 -1
- package/node_modules/zod/v4/locales/he.js +182 -78
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +22 -25
- package/node_modules/zod/v4/locales/hu.d.cts +2 -1
- package/node_modules/zod/v4/locales/hu.js +21 -25
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +20 -24
- package/node_modules/zod/v4/locales/id.d.cts +2 -1
- package/node_modules/zod/v4/locales/id.js +19 -24
- package/node_modules/zod/v4/locales/index.cjs +69 -1
- package/node_modules/zod/v4/locales/index.d.cts +24 -0
- package/node_modules/zod/v4/locales/index.d.ts +24 -0
- package/node_modules/zod/v4/locales/index.js +24 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +22 -25
- package/node_modules/zod/v4/locales/it.d.cts +2 -1
- package/node_modules/zod/v4/locales/it.js +21 -25
- package/node_modules/zod/v4/locales/ja.cjs +22 -24
- package/node_modules/zod/v4/locales/ja.d.cts +2 -1
- package/node_modules/zod/v4/locales/ja.js +21 -24
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +6 -137
- package/node_modules/zod/v4/locales/kh.d.cts +2 -1
- package/node_modules/zod/v4/locales/kh.d.ts +1 -0
- package/node_modules/zod/v4/locales/kh.js +3 -115
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +20 -24
- package/node_modules/zod/v4/locales/ko.d.cts +2 -1
- package/node_modules/zod/v4/locales/ko.js +19 -24
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +22 -25
- package/node_modules/zod/v4/locales/mk.d.cts +2 -1
- package/node_modules/zod/v4/locales/mk.js +21 -25
- package/node_modules/zod/v4/locales/ms.cjs +21 -24
- package/node_modules/zod/v4/locales/ms.d.cts +2 -1
- package/node_modules/zod/v4/locales/ms.js +20 -24
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +31 -32
- package/node_modules/zod/v4/locales/nl.d.cts +2 -1
- package/node_modules/zod/v4/locales/nl.js +30 -32
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +24 -26
- package/node_modules/zod/v4/locales/no.d.cts +2 -1
- package/node_modules/zod/v4/locales/no.js +23 -26
- package/node_modules/zod/v4/locales/ota.cjs +23 -25
- package/node_modules/zod/v4/locales/ota.d.cts +2 -1
- package/node_modules/zod/v4/locales/ota.js +22 -25
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +22 -24
- package/node_modules/zod/v4/locales/pl.d.cts +2 -1
- package/node_modules/zod/v4/locales/pl.js +21 -24
- package/node_modules/zod/v4/locales/ps.cjs +22 -24
- package/node_modules/zod/v4/locales/ps.d.cts +2 -1
- package/node_modules/zod/v4/locales/ps.js +21 -24
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +95 -68
- package/node_modules/zod/v4/locales/pt.d.cts +2 -1
- package/node_modules/zod/v4/locales/pt.js +94 -68
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +29 -24
- package/node_modules/zod/v4/locales/ru.d.cts +2 -1
- package/node_modules/zod/v4/locales/ru.js +28 -24
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +22 -24
- package/node_modules/zod/v4/locales/sl.d.cts +2 -1
- package/node_modules/zod/v4/locales/sl.js +21 -24
- package/node_modules/zod/v4/locales/sv.cjs +24 -26
- package/node_modules/zod/v4/locales/sv.d.cts +2 -1
- package/node_modules/zod/v4/locales/sv.js +23 -26
- package/node_modules/zod/v4/locales/ta.cjs +23 -24
- package/node_modules/zod/v4/locales/ta.d.cts +2 -1
- package/node_modules/zod/v4/locales/ta.js +22 -24
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +23 -24
- package/node_modules/zod/v4/locales/th.d.cts +2 -1
- package/node_modules/zod/v4/locales/th.js +22 -24
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +20 -26
- package/node_modules/zod/v4/locales/tr.d.cts +2 -2
- package/node_modules/zod/v4/locales/tr.d.ts +0 -1
- package/node_modules/zod/v4/locales/tr.js +19 -24
- package/node_modules/zod/v4/locales/ua.cjs +6 -137
- package/node_modules/zod/v4/locales/ua.d.cts +2 -1
- package/node_modules/zod/v4/locales/ua.d.ts +1 -0
- package/node_modules/zod/v4/locales/ua.js +3 -115
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +23 -24
- package/node_modules/zod/v4/locales/ur.d.cts +2 -1
- package/node_modules/zod/v4/locales/ur.js +22 -24
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +22 -24
- package/node_modules/zod/v4/locales/vi.d.cts +2 -1
- package/node_modules/zod/v4/locales/vi.js +21 -24
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
- package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-CN.js +22 -24
- package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
- package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-TW.js +19 -24
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +24 -0
- package/node_modules/zod/v4/mini/coerce.js +5 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +36 -3
- package/node_modules/zod/v4/mini/external.d.cts +7 -2
- package/node_modules/zod/v4/mini/external.d.ts +7 -2
- package/node_modules/zod/v4/mini/external.js +4 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +27 -4
- package/node_modules/zod/v4/mini/iso.js +8 -4
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +30 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +390 -82
- package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
- package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
- package/node_modules/zod/v4/mini/schemas.js +329 -59
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +35 -1
- package/node_modules/zod/v4-mini/index.d.cts +3 -1
- package/node_modules/zod/v4-mini/index.d.ts +3 -1
- package/node_modules/zod/v4-mini/index.js +3 -1
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +3 -3
- package/dist/ui/assets/index--GktkOfY.js +0 -123
- package/dist/ui/assets/index-7tDbGQbQ.css +0 -1
- package/node_modules/on-finished/HISTORY.md +0 -98
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
|
@@ -1,36 +1,82 @@
|
|
|
1
1
|
import { $constructor } from "./core.js";
|
|
2
2
|
import * as util from "./util.js";
|
|
3
|
+
/* Computing the message eagerly is expensive (pretty-printed JSON of all
|
|
4
|
+
* issues), so defer it until first read. The accessor functions and
|
|
5
|
+
* descriptors are shared across instances to keep error construction
|
|
6
|
+
* cheap; the computed message is cached on the internals object. The
|
|
7
|
+
* setter preserves plain assignment semantics for consumers that
|
|
8
|
+
* overwrite `message`. */
|
|
9
|
+
function _getMessage() {
|
|
10
|
+
const internals = this._zod;
|
|
11
|
+
internals.message ?? (internals.message = JSON.stringify(internals.def, util.jsonStringifyReplacer, 2));
|
|
12
|
+
return internals.message;
|
|
13
|
+
}
|
|
14
|
+
function _setMessage(value) {
|
|
15
|
+
this._zod.message = value;
|
|
16
|
+
}
|
|
17
|
+
const _messageDesc = {
|
|
18
|
+
get: _getMessage,
|
|
19
|
+
set: _setMessage,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
};
|
|
23
|
+
const _issuesDesc = { value: undefined, enumerable: false };
|
|
24
|
+
/* Prototypes that already carry the lazy `toString`. Seeded with the
|
|
25
|
+
* intrinsics so that `init` on a foreign object — it accepts any object —
|
|
26
|
+
* can never install an accessor onto a prototype we do not own. */
|
|
27
|
+
const _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
3
28
|
const initializer = (inst, def) => {
|
|
4
29
|
inst.name = "$ZodError";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
// `_zod` is already non-enumerable: $constructor's init defined it with this same descriptor
|
|
31
|
+
_issuesDesc.value = def;
|
|
32
|
+
Object.defineProperty(inst, "issues", _issuesDesc);
|
|
33
|
+
// Clear the shared slot; a retained `value` pins the last error's issues.
|
|
34
|
+
_issuesDesc.value = undefined;
|
|
35
|
+
Object.defineProperty(inst, "message", _messageDesc);
|
|
36
|
+
/* `toString` lives as a non-enumerable lazy getter on the shared
|
|
37
|
+
* prototype; on first access it caches a per-instance closure so
|
|
38
|
+
* detached usage still works. */
|
|
39
|
+
const proto = Object.getPrototypeOf(inst);
|
|
40
|
+
if (!_installedToString.has(proto)) {
|
|
41
|
+
_installedToString.add(proto);
|
|
42
|
+
Object.defineProperty(proto, "toString", {
|
|
43
|
+
configurable: true,
|
|
44
|
+
enumerable: false,
|
|
45
|
+
get() {
|
|
46
|
+
const value = () => this.message;
|
|
47
|
+
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
48
|
+
return value;
|
|
49
|
+
},
|
|
50
|
+
set(value) {
|
|
51
|
+
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
24
55
|
};
|
|
25
56
|
export const $ZodError = $constructor("$ZodError", initializer);
|
|
26
|
-
export const $ZodRealError = $constructor("$ZodError", initializer, {
|
|
57
|
+
export const $ZodRealError = $constructor("$ZodError", initializer, undefined, {
|
|
58
|
+
Parent: Error,
|
|
59
|
+
});
|
|
60
|
+
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
61
|
+
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
62
|
+
* "__proto__" would hit the setter instead of creating a key. */
|
|
63
|
+
function node(obj, key, make) {
|
|
64
|
+
if (!Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
65
|
+
if (key === "__proto__") {
|
|
66
|
+
Object.defineProperty(obj, key, { value: make(), writable: true, enumerable: true, configurable: true });
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
obj[key] = make();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj[key];
|
|
73
|
+
}
|
|
27
74
|
export function flattenError(error, mapper = (issue) => issue.message) {
|
|
28
75
|
const fieldErrors = {};
|
|
29
76
|
const formErrors = [];
|
|
30
77
|
for (const sub of error.issues) {
|
|
31
78
|
if (sub.path.length > 0) {
|
|
32
|
-
fieldErrors
|
|
33
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
79
|
+
node(fieldErrors, sub.path[0], () => []).push(mapper(sub));
|
|
34
80
|
}
|
|
35
81
|
else {
|
|
36
82
|
formErrors.push(mapper(sub));
|
|
@@ -38,41 +84,58 @@ export function flattenError(error, mapper = (issue) => issue.message) {
|
|
|
38
84
|
}
|
|
39
85
|
return { formErrors, fieldErrors };
|
|
40
86
|
}
|
|
41
|
-
export function formatError(error,
|
|
42
|
-
const mapper = _mapper ||
|
|
43
|
-
function (issue) {
|
|
44
|
-
return issue.message;
|
|
45
|
-
};
|
|
87
|
+
export function formatError(error, mapper = (issue) => issue.message) {
|
|
46
88
|
const fieldErrors = { _errors: [] };
|
|
47
|
-
const processError = (error) => {
|
|
89
|
+
const processError = (error, path = []) => {
|
|
48
90
|
for (const issue of error.issues) {
|
|
49
91
|
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
50
|
-
issue.errors.map((issues) => processError({ issues }));
|
|
92
|
+
issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
|
|
51
93
|
}
|
|
52
94
|
else if (issue.code === "invalid_key") {
|
|
53
|
-
processError({ issues: issue.issues });
|
|
95
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
54
96
|
}
|
|
55
97
|
else if (issue.code === "invalid_element") {
|
|
56
|
-
processError({ issues: issue.issues });
|
|
57
|
-
}
|
|
58
|
-
else if (issue.path.length === 0) {
|
|
59
|
-
fieldErrors._errors.push(mapper(issue));
|
|
98
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
60
99
|
}
|
|
61
100
|
else {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
101
|
+
const fullpath = [...path, ...issue.path];
|
|
102
|
+
if (fullpath.length === 0) {
|
|
103
|
+
fieldErrors._errors.push(mapper(issue));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
let curr = fieldErrors;
|
|
107
|
+
let i = 0;
|
|
108
|
+
while (i < fullpath.length) {
|
|
109
|
+
const el = fullpath[i];
|
|
110
|
+
const terminal = i === fullpath.length - 1;
|
|
111
|
+
// `_errors` is reserved by this legacy format, so merge a matching path segment into the current node instead of treating its array as a child.
|
|
112
|
+
if (el === "_errors") {
|
|
113
|
+
if (terminal)
|
|
114
|
+
curr._errors.push(mapper(issue));
|
|
115
|
+
i++;
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
// A path element may collide with an inherited property name such as
|
|
119
|
+
// "__proto__" or "constructor". Truthiness checks read the prototype
|
|
120
|
+
// (so no node is created, then ._errors.push throws), and bracket
|
|
121
|
+
// assignment of "__proto__" hits the setter instead of creating an
|
|
122
|
+
// own key. Guard the read with hasOwnProperty and create the node
|
|
123
|
+
// with defineProperty so any path element becomes a real own key.
|
|
124
|
+
if (!Object.prototype.hasOwnProperty.call(curr, el)) {
|
|
125
|
+
Object.defineProperty(curr, el, {
|
|
126
|
+
value: { _errors: [] },
|
|
127
|
+
enumerable: true,
|
|
128
|
+
writable: true,
|
|
129
|
+
configurable: true,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const node = curr[el];
|
|
133
|
+
if (terminal) {
|
|
134
|
+
node._errors.push(mapper(issue));
|
|
135
|
+
}
|
|
136
|
+
curr = node;
|
|
137
|
+
i++;
|
|
73
138
|
}
|
|
74
|
-
curr = curr[el];
|
|
75
|
-
i++;
|
|
76
139
|
}
|
|
77
140
|
}
|
|
78
141
|
}
|
|
@@ -80,24 +143,20 @@ export function formatError(error, _mapper) {
|
|
|
80
143
|
processError(error);
|
|
81
144
|
return fieldErrors;
|
|
82
145
|
}
|
|
83
|
-
export function treeifyError(error,
|
|
84
|
-
const mapper = _mapper ||
|
|
85
|
-
function (issue) {
|
|
86
|
-
return issue.message;
|
|
87
|
-
};
|
|
146
|
+
export function treeifyError(error, mapper = (issue) => issue.message) {
|
|
88
147
|
const result = { errors: [] };
|
|
89
148
|
const processError = (error, path = []) => {
|
|
90
|
-
var _a
|
|
149
|
+
var _a;
|
|
91
150
|
for (const issue of error.issues) {
|
|
92
151
|
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
93
152
|
// regular union error
|
|
94
|
-
issue.errors.map((issues) => processError({ issues }, issue.path));
|
|
153
|
+
issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
|
|
95
154
|
}
|
|
96
155
|
else if (issue.code === "invalid_key") {
|
|
97
|
-
processError({ issues: issue.issues }, issue.path);
|
|
156
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
98
157
|
}
|
|
99
158
|
else if (issue.code === "invalid_element") {
|
|
100
|
-
processError({ issues: issue.issues }, issue.path);
|
|
159
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
101
160
|
}
|
|
102
161
|
else {
|
|
103
162
|
const fullpath = [...path, ...issue.path];
|
|
@@ -112,12 +171,24 @@ export function treeifyError(error, _mapper) {
|
|
|
112
171
|
const terminal = i === fullpath.length - 1;
|
|
113
172
|
if (typeof el === "string") {
|
|
114
173
|
curr.properties ?? (curr.properties = {});
|
|
115
|
-
|
|
174
|
+
// el may collide with an inherited property name ("__proto__",
|
|
175
|
+
// "constructor", ...); ??= reads the prototype so the node is never
|
|
176
|
+
// created and curr.errors.push throws. Guard with hasOwnProperty and
|
|
177
|
+
// create the node with defineProperty so "__proto__" becomes a real
|
|
178
|
+
// own key rather than invoking the prototype setter.
|
|
179
|
+
if (!Object.prototype.hasOwnProperty.call(curr.properties, el)) {
|
|
180
|
+
Object.defineProperty(curr.properties, el, {
|
|
181
|
+
value: { errors: [] },
|
|
182
|
+
enumerable: true,
|
|
183
|
+
writable: true,
|
|
184
|
+
configurable: true,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
116
187
|
curr = curr.properties[el];
|
|
117
188
|
}
|
|
118
189
|
else {
|
|
119
190
|
curr.items ?? (curr.items = []);
|
|
120
|
-
(
|
|
191
|
+
(_a = curr.items)[el] ?? (_a[el] = { errors: [] });
|
|
121
192
|
curr = curr.items[el];
|
|
122
193
|
}
|
|
123
194
|
if (terminal) {
|
|
@@ -163,8 +234,9 @@ export function treeifyError(error, _mapper) {
|
|
|
163
234
|
* ✖ Invalid input: expected number
|
|
164
235
|
* ```
|
|
165
236
|
*/
|
|
166
|
-
export function toDotPath(
|
|
237
|
+
export function toDotPath(_path) {
|
|
167
238
|
const segs = [];
|
|
239
|
+
const path = _path.map((seg) => (typeof seg === "object" ? seg.key : seg));
|
|
168
240
|
for (const seg of path) {
|
|
169
241
|
if (typeof seg === "number")
|
|
170
242
|
segs.push(`[${seg}]`);
|
|
@@ -183,7 +255,7 @@ export function toDotPath(path) {
|
|
|
183
255
|
export function prettifyError(error) {
|
|
184
256
|
const lines = [];
|
|
185
257
|
// sort by path length
|
|
186
|
-
const issues = [...error.issues].sort((a, b) => a.path.length - b.path.length);
|
|
258
|
+
const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
187
259
|
// Process each issue
|
|
188
260
|
for (const issue of issues) {
|
|
189
261
|
lines.push(`✖ ${issue.message}`);
|
|
@@ -26,19 +26,45 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.JSONSchema = exports.locales = exports.regexes = exports.util = void 0;
|
|
29
|
+
exports.JSONSchema = exports.JSONSchemaGenerator = exports.toJSONSchema = exports.locales = exports.regexes = exports.toZod = exports.util = void 0;
|
|
30
30
|
__exportStar(require("./core.cjs"), exports);
|
|
31
31
|
__exportStar(require("./parse.cjs"), exports);
|
|
32
32
|
__exportStar(require("./errors.cjs"), exports);
|
|
33
33
|
__exportStar(require("./schemas.cjs"), exports);
|
|
34
|
+
__exportStar(require("./memoizer.cjs"), exports);
|
|
34
35
|
__exportStar(require("./checks.cjs"), exports);
|
|
35
36
|
__exportStar(require("./versions.cjs"), exports);
|
|
36
37
|
exports.util = __importStar(require("./util.cjs"));
|
|
38
|
+
var util_js_1 = require("./util.cjs");
|
|
39
|
+
Object.defineProperty(exports, "toZod", { enumerable: true, get: function () { return util_js_1.toZod; } });
|
|
37
40
|
exports.regexes = __importStar(require("./regexes.cjs"));
|
|
38
41
|
exports.locales = __importStar(require("../locales/index.cjs"));
|
|
39
42
|
__exportStar(require("./registries.cjs"), exports);
|
|
40
43
|
__exportStar(require("./doc.cjs"), exports);
|
|
41
|
-
__exportStar(require("./
|
|
44
|
+
__exportStar(require("./compile.cjs"), exports);
|
|
42
45
|
__exportStar(require("./api.cjs"), exports);
|
|
43
46
|
__exportStar(require("./to-json-schema.cjs"), exports);
|
|
47
|
+
var json_schema_processors_js_1 = require("./json-schema-processors.cjs");
|
|
48
|
+
Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return json_schema_processors_js_1.toJSONSchema; } });
|
|
49
|
+
var json_schema_generator_js_1 = require("./json-schema-generator.cjs");
|
|
50
|
+
Object.defineProperty(exports, "JSONSchemaGenerator", { enumerable: true, get: function () { return json_schema_generator_js_1.JSONSchemaGenerator; } });
|
|
44
51
|
exports.JSONSchema = __importStar(require("./json-schema.cjs"));
|
|
52
|
+
|
|
53
|
+
// seal-cjs-exports
|
|
54
|
+
(function () {
|
|
55
|
+
var keys = Object.getOwnPropertyNames(exports);
|
|
56
|
+
for (var i = 0; i < keys.length; i++) {
|
|
57
|
+
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
58
|
+
if (!desc || !desc.get || !desc.configurable) continue;
|
|
59
|
+
var value;
|
|
60
|
+
try {
|
|
61
|
+
value = desc.get();
|
|
62
|
+
} catch (e) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
// a circular require may not have settled this one yet, so leave it live
|
|
66
|
+
if (value === undefined) continue;
|
|
67
|
+
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
68
|
+
}
|
|
69
|
+
Object.freeze(exports);
|
|
70
|
+
})();
|
|
@@ -2,14 +2,18 @@ export * from "./core.cjs";
|
|
|
2
2
|
export * from "./parse.cjs";
|
|
3
3
|
export * from "./errors.cjs";
|
|
4
4
|
export * from "./schemas.cjs";
|
|
5
|
+
export * from "./memoizer.cjs";
|
|
5
6
|
export * from "./checks.cjs";
|
|
6
7
|
export * from "./versions.cjs";
|
|
7
8
|
export * as util from "./util.cjs";
|
|
9
|
+
export { toZod } from "./util.cjs";
|
|
8
10
|
export * as regexes from "./regexes.cjs";
|
|
9
11
|
export * as locales from "../locales/index.cjs";
|
|
10
12
|
export * from "./registries.cjs";
|
|
11
13
|
export * from "./doc.cjs";
|
|
12
|
-
export * from "./
|
|
14
|
+
export * from "./compile.cjs";
|
|
13
15
|
export * from "./api.cjs";
|
|
14
16
|
export * from "./to-json-schema.cjs";
|
|
17
|
+
export { toJSONSchema } from "./json-schema-processors.cjs";
|
|
18
|
+
export { JSONSchemaGenerator } from "./json-schema-generator.cjs";
|
|
15
19
|
export * as JSONSchema from "./json-schema.cjs";
|
|
@@ -2,14 +2,18 @@ export * from "./core.js";
|
|
|
2
2
|
export * from "./parse.js";
|
|
3
3
|
export * from "./errors.js";
|
|
4
4
|
export * from "./schemas.js";
|
|
5
|
+
export * from "./memoizer.js";
|
|
5
6
|
export * from "./checks.js";
|
|
6
7
|
export * from "./versions.js";
|
|
7
8
|
export * as util from "./util.js";
|
|
9
|
+
export { toZod } from "./util.js";
|
|
8
10
|
export * as regexes from "./regexes.js";
|
|
9
11
|
export * as locales from "../locales/index.js";
|
|
10
12
|
export * from "./registries.js";
|
|
11
13
|
export * from "./doc.js";
|
|
12
|
-
export * from "./
|
|
14
|
+
export * from "./compile.js";
|
|
13
15
|
export * from "./api.js";
|
|
14
16
|
export * from "./to-json-schema.js";
|
|
17
|
+
export { toJSONSchema } from "./json-schema-processors.js";
|
|
18
|
+
export { JSONSchemaGenerator } from "./json-schema-generator.js";
|
|
15
19
|
export * as JSONSchema from "./json-schema.js";
|
|
@@ -2,14 +2,18 @@ export * from "./core.js";
|
|
|
2
2
|
export * from "./parse.js";
|
|
3
3
|
export * from "./errors.js";
|
|
4
4
|
export * from "./schemas.js";
|
|
5
|
+
export * from "./memoizer.js";
|
|
5
6
|
export * from "./checks.js";
|
|
6
7
|
export * from "./versions.js";
|
|
7
8
|
export * as util from "./util.js";
|
|
9
|
+
export { toZod } from "./util.js";
|
|
8
10
|
export * as regexes from "./regexes.js";
|
|
9
11
|
export * as locales from "../locales/index.js";
|
|
10
12
|
export * from "./registries.js";
|
|
11
13
|
export * from "./doc.js";
|
|
12
|
-
export * from "./
|
|
14
|
+
export * from "./compile.js";
|
|
13
15
|
export * from "./api.js";
|
|
14
16
|
export * from "./to-json-schema.js";
|
|
17
|
+
export { toJSONSchema } from "./json-schema-processors.js";
|
|
18
|
+
export { JSONSchemaGenerator } from "./json-schema-generator.js";
|
|
15
19
|
export * as JSONSchema from "./json-schema.js";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JSONSchemaGenerator = void 0;
|
|
4
|
+
const json_schema_processors_js_1 = require("./json-schema-processors.cjs");
|
|
5
|
+
const to_json_schema_js_1 = require("./to-json-schema.cjs");
|
|
6
|
+
/**
|
|
7
|
+
* Legacy class-based interface for JSON Schema generation.
|
|
8
|
+
* This class wraps the new functional implementation to provide backward compatibility.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use the `toJSONSchema` function instead for new code.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* // Legacy usage (still supported)
|
|
15
|
+
* const gen = new JSONSchemaGenerator({ target: "draft-07" });
|
|
16
|
+
* gen.process(schema);
|
|
17
|
+
* const result = gen.emit(schema);
|
|
18
|
+
*
|
|
19
|
+
* // Preferred modern usage
|
|
20
|
+
* const result = toJSONSchema(schema, { target: "draft-07" });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class JSONSchemaGenerator {
|
|
24
|
+
/** @deprecated Access via ctx instead */
|
|
25
|
+
get metadataRegistry() {
|
|
26
|
+
return this.ctx.metadataRegistry;
|
|
27
|
+
}
|
|
28
|
+
/** @deprecated Access via ctx instead */
|
|
29
|
+
get target() {
|
|
30
|
+
return this.ctx.target;
|
|
31
|
+
}
|
|
32
|
+
// annotated so the .d.cts emits an indexed access rather than an inline `import()` of an ESM path
|
|
33
|
+
/** @deprecated Access via ctx instead */
|
|
34
|
+
get unrepresentable() {
|
|
35
|
+
return this.ctx.unrepresentable;
|
|
36
|
+
}
|
|
37
|
+
/** @deprecated Access via ctx instead */
|
|
38
|
+
get override() {
|
|
39
|
+
return this.ctx.override;
|
|
40
|
+
}
|
|
41
|
+
/** @deprecated Access via ctx instead */
|
|
42
|
+
get io() {
|
|
43
|
+
return this.ctx.io;
|
|
44
|
+
}
|
|
45
|
+
/** @deprecated Access via ctx instead */
|
|
46
|
+
get counter() {
|
|
47
|
+
return this.ctx.counter;
|
|
48
|
+
}
|
|
49
|
+
set counter(value) {
|
|
50
|
+
this.ctx.counter = value;
|
|
51
|
+
}
|
|
52
|
+
/** @deprecated Access via ctx instead */
|
|
53
|
+
get seen() {
|
|
54
|
+
return this.ctx.seen;
|
|
55
|
+
}
|
|
56
|
+
constructor(params) {
|
|
57
|
+
// Normalize target for internal context
|
|
58
|
+
let normalizedTarget = params?.target ?? "draft-2020-12";
|
|
59
|
+
if (normalizedTarget === "draft-4")
|
|
60
|
+
normalizedTarget = "draft-04";
|
|
61
|
+
if (normalizedTarget === "draft-7")
|
|
62
|
+
normalizedTarget = "draft-07";
|
|
63
|
+
this.ctx = (0, to_json_schema_js_1.initializeContext)({
|
|
64
|
+
processors: json_schema_processors_js_1.allProcessors,
|
|
65
|
+
target: normalizedTarget,
|
|
66
|
+
...(params?.metadata && { metadata: params.metadata }),
|
|
67
|
+
...(params?.unrepresentable && { unrepresentable: params.unrepresentable }),
|
|
68
|
+
...(params?.override && { override: params.override }),
|
|
69
|
+
...(params?.io && { io: params.io }),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Process a schema to prepare it for JSON Schema generation.
|
|
74
|
+
* This must be called before emit().
|
|
75
|
+
*/
|
|
76
|
+
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
77
|
+
return (0, to_json_schema_js_1.processSchema)(schema, this.ctx, _params);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Emit the final JSON Schema after processing.
|
|
81
|
+
* Must call process() first.
|
|
82
|
+
*/
|
|
83
|
+
emit(schema, _params) {
|
|
84
|
+
// Apply emit params to the context
|
|
85
|
+
if (_params) {
|
|
86
|
+
if (_params.cycles)
|
|
87
|
+
this.ctx.cycles = _params.cycles;
|
|
88
|
+
if (_params.reused)
|
|
89
|
+
this.ctx.reused = _params.reused;
|
|
90
|
+
if (_params.external)
|
|
91
|
+
this.ctx.external = _params.external;
|
|
92
|
+
}
|
|
93
|
+
// extractDefs/finalize skip their whole-map passes when they have already run for this `external`, but they also branch on `cycles`, `reused`, `seen.count` and the metadata registry — any of which can change between emits, including with no params at all. Drop the guards so the passes re-run. The registry conversion calls extractDefs/finalize directly and never routes through here, so it keeps skipping them.
|
|
94
|
+
this.ctx.sharedDefsExtractedFor = undefined;
|
|
95
|
+
this.ctx.sharedEmitDoneFor = undefined;
|
|
96
|
+
(0, to_json_schema_js_1.extractDefs)(this.ctx, schema);
|
|
97
|
+
const result = (0, to_json_schema_js_1.finalize)(this.ctx, schema);
|
|
98
|
+
// Strip ~standard property to match old implementation's return type
|
|
99
|
+
const { "~standard": _, ...plainResult } = result;
|
|
100
|
+
return plainResult;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.JSONSchemaGenerator = JSONSchemaGenerator;
|
|
104
|
+
|
|
105
|
+
// seal-cjs-exports
|
|
106
|
+
(function () {
|
|
107
|
+
var keys = Object.getOwnPropertyNames(exports);
|
|
108
|
+
for (var i = 0; i < keys.length; i++) {
|
|
109
|
+
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
110
|
+
if (!desc || !desc.get || !desc.configurable) continue;
|
|
111
|
+
var value;
|
|
112
|
+
try {
|
|
113
|
+
value = desc.get();
|
|
114
|
+
} catch (e) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
// a circular require may not have settled this one yet, so leave it live
|
|
118
|
+
if (value === undefined) continue;
|
|
119
|
+
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
120
|
+
}
|
|
121
|
+
Object.freeze(exports);
|
|
122
|
+
})();
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type * as JSONSchema from "./json-schema.cjs";
|
|
2
|
+
import type { $ZodRegistry } from "./registries.cjs";
|
|
3
|
+
import type * as schemas from "./schemas.cjs";
|
|
4
|
+
import { type JSONSchemaGeneratorParams, type ProcessParams, type Seen, type ToJSONSchemaContext } from "./to-json-schema.cjs";
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for the emit method of JSONSchemaGenerator.
|
|
7
|
+
* @deprecated Use toJSONSchema function instead
|
|
8
|
+
*/
|
|
9
|
+
export type EmitParams = Pick<JSONSchemaGeneratorParams, "cycles" | "reused" | "external">;
|
|
10
|
+
/**
|
|
11
|
+
* Parameters for JSONSchemaGenerator constructor.
|
|
12
|
+
* @deprecated Use toJSONSchema function instead
|
|
13
|
+
*/
|
|
14
|
+
type JSONSchemaGeneratorConstructorParams = Pick<JSONSchemaGeneratorParams, "metadata" | "target" | "unrepresentable" | "override" | "io">;
|
|
15
|
+
/**
|
|
16
|
+
* Legacy class-based interface for JSON Schema generation.
|
|
17
|
+
* This class wraps the new functional implementation to provide backward compatibility.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use the `toJSONSchema` function instead for new code.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* // Legacy usage (still supported)
|
|
24
|
+
* const gen = new JSONSchemaGenerator({ target: "draft-07" });
|
|
25
|
+
* gen.process(schema);
|
|
26
|
+
* const result = gen.emit(schema);
|
|
27
|
+
*
|
|
28
|
+
* // Preferred modern usage
|
|
29
|
+
* const result = toJSONSchema(schema, { target: "draft-07" });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class JSONSchemaGenerator {
|
|
33
|
+
private ctx;
|
|
34
|
+
/** @deprecated Access via ctx instead */
|
|
35
|
+
get metadataRegistry(): $ZodRegistry<Record<string, any>>;
|
|
36
|
+
/** @deprecated Access via ctx instead */
|
|
37
|
+
get target(): ({} & string) | "draft-2020-12" | "draft-07" | "openapi-3.0" | "draft-04";
|
|
38
|
+
/** @deprecated Access via ctx instead */
|
|
39
|
+
get unrepresentable(): ToJSONSchemaContext["unrepresentable"];
|
|
40
|
+
/** @deprecated Access via ctx instead */
|
|
41
|
+
get override(): (ctx: {
|
|
42
|
+
zodSchema: schemas.$ZodType;
|
|
43
|
+
jsonSchema: JSONSchema.BaseSchema;
|
|
44
|
+
path: (string | number)[];
|
|
45
|
+
}) => void;
|
|
46
|
+
/** @deprecated Access via ctx instead */
|
|
47
|
+
get io(): "input" | "output";
|
|
48
|
+
/** @deprecated Access via ctx instead */
|
|
49
|
+
get counter(): number;
|
|
50
|
+
set counter(value: number);
|
|
51
|
+
/** @deprecated Access via ctx instead */
|
|
52
|
+
get seen(): Map<schemas.$ZodType, Seen>;
|
|
53
|
+
constructor(params?: JSONSchemaGeneratorConstructorParams);
|
|
54
|
+
/**
|
|
55
|
+
* Process a schema to prepare it for JSON Schema generation.
|
|
56
|
+
* This must be called before emit().
|
|
57
|
+
*/
|
|
58
|
+
process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
|
|
59
|
+
/**
|
|
60
|
+
* Emit the final JSON Schema after processing.
|
|
61
|
+
* Must call process() first.
|
|
62
|
+
*/
|
|
63
|
+
emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type * as JSONSchema from "./json-schema.js";
|
|
2
|
+
import type { $ZodRegistry } from "./registries.js";
|
|
3
|
+
import type * as schemas from "./schemas.js";
|
|
4
|
+
import { type JSONSchemaGeneratorParams, type ProcessParams, type Seen, type ToJSONSchemaContext } from "./to-json-schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for the emit method of JSONSchemaGenerator.
|
|
7
|
+
* @deprecated Use toJSONSchema function instead
|
|
8
|
+
*/
|
|
9
|
+
export type EmitParams = Pick<JSONSchemaGeneratorParams, "cycles" | "reused" | "external">;
|
|
10
|
+
/**
|
|
11
|
+
* Parameters for JSONSchemaGenerator constructor.
|
|
12
|
+
* @deprecated Use toJSONSchema function instead
|
|
13
|
+
*/
|
|
14
|
+
type JSONSchemaGeneratorConstructorParams = Pick<JSONSchemaGeneratorParams, "metadata" | "target" | "unrepresentable" | "override" | "io">;
|
|
15
|
+
/**
|
|
16
|
+
* Legacy class-based interface for JSON Schema generation.
|
|
17
|
+
* This class wraps the new functional implementation to provide backward compatibility.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use the `toJSONSchema` function instead for new code.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* // Legacy usage (still supported)
|
|
24
|
+
* const gen = new JSONSchemaGenerator({ target: "draft-07" });
|
|
25
|
+
* gen.process(schema);
|
|
26
|
+
* const result = gen.emit(schema);
|
|
27
|
+
*
|
|
28
|
+
* // Preferred modern usage
|
|
29
|
+
* const result = toJSONSchema(schema, { target: "draft-07" });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class JSONSchemaGenerator {
|
|
33
|
+
private ctx;
|
|
34
|
+
/** @deprecated Access via ctx instead */
|
|
35
|
+
get metadataRegistry(): $ZodRegistry<Record<string, any>>;
|
|
36
|
+
/** @deprecated Access via ctx instead */
|
|
37
|
+
get target(): ({} & string) | "draft-2020-12" | "draft-07" | "openapi-3.0" | "draft-04";
|
|
38
|
+
/** @deprecated Access via ctx instead */
|
|
39
|
+
get unrepresentable(): ToJSONSchemaContext["unrepresentable"];
|
|
40
|
+
/** @deprecated Access via ctx instead */
|
|
41
|
+
get override(): (ctx: {
|
|
42
|
+
zodSchema: schemas.$ZodType;
|
|
43
|
+
jsonSchema: JSONSchema.BaseSchema;
|
|
44
|
+
path: (string | number)[];
|
|
45
|
+
}) => void;
|
|
46
|
+
/** @deprecated Access via ctx instead */
|
|
47
|
+
get io(): "input" | "output";
|
|
48
|
+
/** @deprecated Access via ctx instead */
|
|
49
|
+
get counter(): number;
|
|
50
|
+
set counter(value: number);
|
|
51
|
+
/** @deprecated Access via ctx instead */
|
|
52
|
+
get seen(): Map<schemas.$ZodType, Seen>;
|
|
53
|
+
constructor(params?: JSONSchemaGeneratorConstructorParams);
|
|
54
|
+
/**
|
|
55
|
+
* Process a schema to prepare it for JSON Schema generation.
|
|
56
|
+
* This must be called before emit().
|
|
57
|
+
*/
|
|
58
|
+
process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
|
|
59
|
+
/**
|
|
60
|
+
* Emit the final JSON Schema after processing.
|
|
61
|
+
* Must call process() first.
|
|
62
|
+
*/
|
|
63
|
+
emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
|
|
64
|
+
}
|
|
65
|
+
export {};
|