@suveren/gateway 0.39.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/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/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-DNNXeRpZ.js +0 -123
- package/dist/ui/assets/index-Osk4E49r.css +0 -1
- 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
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.stringbool = exports.ZodMiniCustom = exports.ZodMiniPromise = exports.ZodMiniLazy = exports.ZodMiniTemplateLiteral = exports.ZodMiniReadonly = exports.ZodMiniPipe = exports.ZodMiniNaN = exports.ZodMiniCatch = exports.ZodMiniSuccess = exports.ZodMiniNonOptional = exports.ZodMiniPrefault = exports.ZodMiniDefault = exports.ZodMiniNullable = void 0;
|
|
26
|
+
exports.ZodMiniEnum = exports.ZodMiniSet = exports.ZodMiniMap = exports.ZodMiniRecord = exports.ZodMiniTuple = exports.ZodMiniIntersection = exports.ZodMiniDiscriminatedUnion = exports.ZodMiniXor = exports.ZodMiniUnion = exports.ZodMiniObject = exports.ZodMiniArray = exports.ZodMiniDate = exports.ZodMiniVoid = exports.ZodMiniNever = exports.ZodMiniUnknown = exports.ZodMiniAny = exports.ZodMiniNull = exports.ZodMiniUndefined = exports.ZodMiniSymbol = exports.ZodMiniBigIntFormat = exports.ZodMiniBigInt = exports.ZodMiniBoolean = exports.ZodMiniNumberFormat = exports.ZodMiniNumber = exports.ZodMiniCustomStringFormat = exports.ZodMiniJWT = exports.ZodMiniIBAN = exports.ZodMiniCreditCard = exports.ZodMiniE164 = exports.ZodMiniBase64URL = exports.ZodMiniBase64 = exports.ZodMiniMAC = exports.ZodMiniCIDRv6 = exports.ZodMiniCIDRv4 = exports.ZodMiniIPv6 = exports.ZodMiniIPv4 = exports.ZodMiniKSUID = exports.ZodMiniXID = exports.ZodMiniULID = exports.ZodMiniCUID2 = exports.ZodMiniCUID = exports.ZodMiniNanoID = exports.ZodMiniEmoji = exports.ZodMiniURL = exports.ZodMiniUUID = exports.ZodMiniGUID = exports.ZodMiniEmail = exports.ZodMiniStringFormat = exports.ZodMiniString = exports.ZodMiniType = void 0;
|
|
27
|
+
exports.ZodMiniFunction = exports.stringbool = exports.meta = exports.describe = exports.ZodMiniCustom = exports.ZodMiniPromise = exports.ZodMiniLazy = exports.ZodMiniTemplateLiteral = exports.ZodMiniReadonly = exports.ZodMiniCodec = exports.ZodMiniPipe = exports.ZodMiniNaN = exports.ZodMiniCatch = exports.ZodMiniSuccess = exports.ZodMiniNonOptional = exports.ZodMiniPrefault = exports.ZodMiniDefault = exports.ZodMiniNullable = exports.ZodMiniExactOptional = exports.ZodMiniOptional = exports.ZodMiniTransform = exports.ZodMiniFile = exports.ZodMiniLiteral = void 0;
|
|
28
28
|
exports.string = string;
|
|
29
29
|
exports.email = email;
|
|
30
30
|
exports.guid = guid;
|
|
@@ -33,6 +33,7 @@ exports.uuidv4 = uuidv4;
|
|
|
33
33
|
exports.uuidv6 = uuidv6;
|
|
34
34
|
exports.uuidv7 = uuidv7;
|
|
35
35
|
exports.url = url;
|
|
36
|
+
exports.httpUrl = httpUrl;
|
|
36
37
|
exports.emoji = emoji;
|
|
37
38
|
exports.nanoid = nanoid;
|
|
38
39
|
exports.cuid = cuid;
|
|
@@ -44,11 +45,18 @@ exports.ipv4 = ipv4;
|
|
|
44
45
|
exports.ipv6 = ipv6;
|
|
45
46
|
exports.cidrv4 = cidrv4;
|
|
46
47
|
exports.cidrv6 = cidrv6;
|
|
48
|
+
exports.mac = mac;
|
|
47
49
|
exports.base64 = base64;
|
|
48
50
|
exports.base64url = base64url;
|
|
49
51
|
exports.e164 = e164;
|
|
52
|
+
exports.creditCard = creditCard;
|
|
53
|
+
exports.iban = iban;
|
|
50
54
|
exports.jwt = jwt;
|
|
51
55
|
exports.stringFormat = stringFormat;
|
|
56
|
+
exports.hostname = hostname;
|
|
57
|
+
exports.hex = hex;
|
|
58
|
+
exports.currencyCode = currencyCode;
|
|
59
|
+
exports.hash = hash;
|
|
52
60
|
exports.number = number;
|
|
53
61
|
exports.int = int;
|
|
54
62
|
exports.float32 = float32;
|
|
@@ -73,18 +81,22 @@ exports.object = object;
|
|
|
73
81
|
exports.strictObject = strictObject;
|
|
74
82
|
exports.looseObject = looseObject;
|
|
75
83
|
exports.extend = extend;
|
|
84
|
+
exports.safeExtend = safeExtend;
|
|
76
85
|
exports.merge = merge;
|
|
77
86
|
exports.pick = pick;
|
|
78
87
|
exports.omit = omit;
|
|
79
88
|
exports.partial = partial;
|
|
89
|
+
exports.exactPartial = exactPartial;
|
|
80
90
|
exports.required = required;
|
|
81
91
|
exports.catchall = catchall;
|
|
82
92
|
exports.union = union;
|
|
93
|
+
exports.xor = xor;
|
|
83
94
|
exports.discriminatedUnion = discriminatedUnion;
|
|
84
95
|
exports.intersection = intersection;
|
|
85
96
|
exports.tuple = tuple;
|
|
86
97
|
exports.record = record;
|
|
87
98
|
exports.partialRecord = partialRecord;
|
|
99
|
+
exports.looseRecord = looseRecord;
|
|
88
100
|
exports.map = map;
|
|
89
101
|
exports.set = set;
|
|
90
102
|
exports.enum = _enum;
|
|
@@ -93,6 +105,7 @@ exports.literal = literal;
|
|
|
93
105
|
exports.file = file;
|
|
94
106
|
exports.transform = transform;
|
|
95
107
|
exports.optional = optional;
|
|
108
|
+
exports.exactOptional = exactOptional;
|
|
96
109
|
exports.nullable = nullable;
|
|
97
110
|
exports.nullish = nullish;
|
|
98
111
|
exports._default = _default;
|
|
@@ -102,6 +115,8 @@ exports.success = success;
|
|
|
102
115
|
exports.catch = _catch;
|
|
103
116
|
exports.nan = nan;
|
|
104
117
|
exports.pipe = pipe;
|
|
118
|
+
exports.codec = codec;
|
|
119
|
+
exports.invertCodec = invertCodec;
|
|
105
120
|
exports.readonly = readonly;
|
|
106
121
|
exports.templateLiteral = templateLiteral;
|
|
107
122
|
exports.lazy = _lazy;
|
|
@@ -109,42 +124,72 @@ exports.promise = promise;
|
|
|
109
124
|
exports.check = check;
|
|
110
125
|
exports.custom = custom;
|
|
111
126
|
exports.refine = refine;
|
|
127
|
+
exports.superRefine = superRefine;
|
|
112
128
|
exports.instanceof = _instanceof;
|
|
113
129
|
exports.json = json;
|
|
130
|
+
exports._function = _function;
|
|
131
|
+
exports.function = _function;
|
|
132
|
+
exports._function = _function;
|
|
133
|
+
exports.function = _function;
|
|
114
134
|
const core = __importStar(require("../core/index.cjs"));
|
|
115
|
-
const
|
|
135
|
+
const regexes = __importStar(require("../core/regexes.cjs"));
|
|
136
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
116
137
|
const parse = __importStar(require("./parse.cjs"));
|
|
117
138
|
exports.ZodMiniType = core.$constructor("ZodMiniType", (inst, def) => {
|
|
118
139
|
if (!inst._zod)
|
|
119
140
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
120
141
|
core.$ZodType.init(inst, def);
|
|
121
142
|
inst.def = def;
|
|
122
|
-
inst.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
143
|
+
inst.type = def.type;
|
|
144
|
+
}, {
|
|
145
|
+
// `with` is an alias for `check`: the same function object, not a wrapper.
|
|
146
|
+
get with() {
|
|
147
|
+
return this.check;
|
|
148
|
+
},
|
|
149
|
+
set with(value) {
|
|
150
|
+
util.own(this, "with", value);
|
|
151
|
+
},
|
|
152
|
+
parse(data, params) {
|
|
153
|
+
return parse.parse(this, data, params, { callee: this.parse });
|
|
154
|
+
},
|
|
155
|
+
parseAsync(data, params) {
|
|
156
|
+
return parse.parseAsync(this, data, params, { callee: this.parseAsync });
|
|
157
|
+
},
|
|
158
|
+
safeParse(data, params) {
|
|
159
|
+
return parse.safeParse(this, data, params);
|
|
160
|
+
},
|
|
161
|
+
safeParseAsync(data, params) {
|
|
162
|
+
return parse.safeParseAsync(this, data, params);
|
|
163
|
+
},
|
|
164
|
+
check(...checks) {
|
|
165
|
+
const def = this.def;
|
|
166
|
+
return this.clone({
|
|
128
167
|
...def,
|
|
129
168
|
checks: [
|
|
130
169
|
...(def.checks ?? []),
|
|
131
170
|
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
132
171
|
],
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
172
|
+
}, { parent: true });
|
|
173
|
+
},
|
|
174
|
+
clone(_def, params) {
|
|
175
|
+
return core.clone(this, _def, params);
|
|
176
|
+
},
|
|
177
|
+
brand() {
|
|
178
|
+
return this;
|
|
179
|
+
},
|
|
180
|
+
register(reg, meta) {
|
|
181
|
+
reg.add(this, meta);
|
|
182
|
+
return this;
|
|
183
|
+
},
|
|
184
|
+
apply(fn, ...args) {
|
|
185
|
+
return args.length === 0 ? fn(this) : fn(this, ...args);
|
|
186
|
+
},
|
|
143
187
|
});
|
|
144
188
|
exports.ZodMiniString = core.$constructor("ZodMiniString", (inst, def) => {
|
|
145
189
|
core.$ZodString.init(inst, def);
|
|
146
190
|
exports.ZodMiniType.init(inst, def);
|
|
147
191
|
});
|
|
192
|
+
// @__NO_SIDE_EFFECTS__
|
|
148
193
|
function string(params) {
|
|
149
194
|
return core._string(exports.ZodMiniString, params);
|
|
150
195
|
}
|
|
@@ -156,6 +201,7 @@ exports.ZodMiniEmail = core.$constructor("ZodMiniEmail", (inst, def) => {
|
|
|
156
201
|
core.$ZodEmail.init(inst, def);
|
|
157
202
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
158
203
|
});
|
|
204
|
+
// @__NO_SIDE_EFFECTS__
|
|
159
205
|
function email(params) {
|
|
160
206
|
return core._email(exports.ZodMiniEmail, params);
|
|
161
207
|
}
|
|
@@ -163,6 +209,7 @@ exports.ZodMiniGUID = core.$constructor("ZodMiniGUID", (inst, def) => {
|
|
|
163
209
|
core.$ZodGUID.init(inst, def);
|
|
164
210
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
165
211
|
});
|
|
212
|
+
// @__NO_SIDE_EFFECTS__
|
|
166
213
|
function guid(params) {
|
|
167
214
|
return core._guid(exports.ZodMiniGUID, params);
|
|
168
215
|
}
|
|
@@ -170,17 +217,21 @@ exports.ZodMiniUUID = core.$constructor("ZodMiniUUID", (inst, def) => {
|
|
|
170
217
|
core.$ZodUUID.init(inst, def);
|
|
171
218
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
172
219
|
});
|
|
220
|
+
// @__NO_SIDE_EFFECTS__
|
|
173
221
|
function uuid(params) {
|
|
174
222
|
return core._uuid(exports.ZodMiniUUID, params);
|
|
175
223
|
}
|
|
224
|
+
// @__NO_SIDE_EFFECTS__
|
|
176
225
|
function uuidv4(params) {
|
|
177
226
|
return core._uuidv4(exports.ZodMiniUUID, params);
|
|
178
227
|
}
|
|
179
228
|
// ZodMiniUUIDv6
|
|
229
|
+
// @__NO_SIDE_EFFECTS__
|
|
180
230
|
function uuidv6(params) {
|
|
181
231
|
return core._uuidv6(exports.ZodMiniUUID, params);
|
|
182
232
|
}
|
|
183
233
|
// ZodMiniUUIDv7
|
|
234
|
+
// @__NO_SIDE_EFFECTS__
|
|
184
235
|
function uuidv7(params) {
|
|
185
236
|
return core._uuidv7(exports.ZodMiniUUID, params);
|
|
186
237
|
}
|
|
@@ -188,13 +239,23 @@ exports.ZodMiniURL = core.$constructor("ZodMiniURL", (inst, def) => {
|
|
|
188
239
|
core.$ZodURL.init(inst, def);
|
|
189
240
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
190
241
|
});
|
|
242
|
+
// @__NO_SIDE_EFFECTS__
|
|
191
243
|
function url(params) {
|
|
192
244
|
return core._url(exports.ZodMiniURL, params);
|
|
193
245
|
}
|
|
246
|
+
// @__NO_SIDE_EFFECTS__
|
|
247
|
+
function httpUrl(params) {
|
|
248
|
+
return core._url(exports.ZodMiniURL, {
|
|
249
|
+
protocol: regexes.httpProtocol,
|
|
250
|
+
hostname: regexes.domain,
|
|
251
|
+
...util.normalizeParams(params),
|
|
252
|
+
});
|
|
253
|
+
}
|
|
194
254
|
exports.ZodMiniEmoji = core.$constructor("ZodMiniEmoji", (inst, def) => {
|
|
195
255
|
core.$ZodEmoji.init(inst, def);
|
|
196
256
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
197
257
|
});
|
|
258
|
+
// @__NO_SIDE_EFFECTS__
|
|
198
259
|
function emoji(params) {
|
|
199
260
|
return core._emoji(exports.ZodMiniEmoji, params);
|
|
200
261
|
}
|
|
@@ -202,13 +263,27 @@ exports.ZodMiniNanoID = core.$constructor("ZodMiniNanoID", (inst, def) => {
|
|
|
202
263
|
core.$ZodNanoID.init(inst, def);
|
|
203
264
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
204
265
|
});
|
|
266
|
+
// @__NO_SIDE_EFFECTS__
|
|
205
267
|
function nanoid(params) {
|
|
206
268
|
return core._nanoid(exports.ZodMiniNanoID, params);
|
|
207
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
272
|
+
* (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
|
|
273
|
+
* See https://github.com/paralleldrive/cuid.
|
|
274
|
+
*/
|
|
208
275
|
exports.ZodMiniCUID = core.$constructor("ZodMiniCUID", (inst, def) => {
|
|
209
276
|
core.$ZodCUID.init(inst, def);
|
|
210
277
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
211
278
|
});
|
|
279
|
+
/**
|
|
280
|
+
* Validates a CUID v1 string.
|
|
281
|
+
*
|
|
282
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
283
|
+
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
284
|
+
* See https://github.com/paralleldrive/cuid.
|
|
285
|
+
*/
|
|
286
|
+
// @__NO_SIDE_EFFECTS__
|
|
212
287
|
function cuid(params) {
|
|
213
288
|
return core._cuid(exports.ZodMiniCUID, params);
|
|
214
289
|
}
|
|
@@ -216,6 +291,7 @@ exports.ZodMiniCUID2 = core.$constructor("ZodMiniCUID2", (inst, def) => {
|
|
|
216
291
|
core.$ZodCUID2.init(inst, def);
|
|
217
292
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
218
293
|
});
|
|
294
|
+
// @__NO_SIDE_EFFECTS__
|
|
219
295
|
function cuid2(params) {
|
|
220
296
|
return core._cuid2(exports.ZodMiniCUID2, params);
|
|
221
297
|
}
|
|
@@ -223,6 +299,7 @@ exports.ZodMiniULID = core.$constructor("ZodMiniULID", (inst, def) => {
|
|
|
223
299
|
core.$ZodULID.init(inst, def);
|
|
224
300
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
225
301
|
});
|
|
302
|
+
// @__NO_SIDE_EFFECTS__
|
|
226
303
|
function ulid(params) {
|
|
227
304
|
return core._ulid(exports.ZodMiniULID, params);
|
|
228
305
|
}
|
|
@@ -230,6 +307,7 @@ exports.ZodMiniXID = core.$constructor("ZodMiniXID", (inst, def) => {
|
|
|
230
307
|
core.$ZodXID.init(inst, def);
|
|
231
308
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
232
309
|
});
|
|
310
|
+
// @__NO_SIDE_EFFECTS__
|
|
233
311
|
function xid(params) {
|
|
234
312
|
return core._xid(exports.ZodMiniXID, params);
|
|
235
313
|
}
|
|
@@ -237,6 +315,7 @@ exports.ZodMiniKSUID = core.$constructor("ZodMiniKSUID", (inst, def) => {
|
|
|
237
315
|
core.$ZodKSUID.init(inst, def);
|
|
238
316
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
239
317
|
});
|
|
318
|
+
// @__NO_SIDE_EFFECTS__
|
|
240
319
|
function ksuid(params) {
|
|
241
320
|
return core._ksuid(exports.ZodMiniKSUID, params);
|
|
242
321
|
}
|
|
@@ -244,6 +323,7 @@ exports.ZodMiniIPv4 = core.$constructor("ZodMiniIPv4", (inst, def) => {
|
|
|
244
323
|
core.$ZodIPv4.init(inst, def);
|
|
245
324
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
246
325
|
});
|
|
326
|
+
// @__NO_SIDE_EFFECTS__
|
|
247
327
|
function ipv4(params) {
|
|
248
328
|
return core._ipv4(exports.ZodMiniIPv4, params);
|
|
249
329
|
}
|
|
@@ -251,6 +331,7 @@ exports.ZodMiniIPv6 = core.$constructor("ZodMiniIPv6", (inst, def) => {
|
|
|
251
331
|
core.$ZodIPv6.init(inst, def);
|
|
252
332
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
253
333
|
});
|
|
334
|
+
// @__NO_SIDE_EFFECTS__
|
|
254
335
|
function ipv6(params) {
|
|
255
336
|
return core._ipv6(exports.ZodMiniIPv6, params);
|
|
256
337
|
}
|
|
@@ -258,6 +339,7 @@ exports.ZodMiniCIDRv4 = core.$constructor("ZodMiniCIDRv4", (inst, def) => {
|
|
|
258
339
|
core.$ZodCIDRv4.init(inst, def);
|
|
259
340
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
260
341
|
});
|
|
342
|
+
// @__NO_SIDE_EFFECTS__
|
|
261
343
|
function cidrv4(params) {
|
|
262
344
|
return core._cidrv4(exports.ZodMiniCIDRv4, params);
|
|
263
345
|
}
|
|
@@ -265,13 +347,23 @@ exports.ZodMiniCIDRv6 = core.$constructor("ZodMiniCIDRv6", (inst, def) => {
|
|
|
265
347
|
core.$ZodCIDRv6.init(inst, def);
|
|
266
348
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
267
349
|
});
|
|
350
|
+
// @__NO_SIDE_EFFECTS__
|
|
268
351
|
function cidrv6(params) {
|
|
269
352
|
return core._cidrv6(exports.ZodMiniCIDRv6, params);
|
|
270
353
|
}
|
|
354
|
+
exports.ZodMiniMAC = core.$constructor("ZodMiniMAC", (inst, def) => {
|
|
355
|
+
core.$ZodMAC.init(inst, def);
|
|
356
|
+
exports.ZodMiniStringFormat.init(inst, def);
|
|
357
|
+
});
|
|
358
|
+
// @__NO_SIDE_EFFECTS__
|
|
359
|
+
function mac(params) {
|
|
360
|
+
return core._mac(exports.ZodMiniMAC, params);
|
|
361
|
+
}
|
|
271
362
|
exports.ZodMiniBase64 = core.$constructor("ZodMiniBase64", (inst, def) => {
|
|
272
363
|
core.$ZodBase64.init(inst, def);
|
|
273
364
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
274
365
|
});
|
|
366
|
+
// @__NO_SIDE_EFFECTS__
|
|
275
367
|
function base64(params) {
|
|
276
368
|
return core._base64(exports.ZodMiniBase64, params);
|
|
277
369
|
}
|
|
@@ -279,6 +371,7 @@ exports.ZodMiniBase64URL = core.$constructor("ZodMiniBase64URL", (inst, def) =>
|
|
|
279
371
|
core.$ZodBase64URL.init(inst, def);
|
|
280
372
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
281
373
|
});
|
|
374
|
+
// @__NO_SIDE_EFFECTS__
|
|
282
375
|
function base64url(params) {
|
|
283
376
|
return core._base64url(exports.ZodMiniBase64URL, params);
|
|
284
377
|
}
|
|
@@ -286,13 +379,31 @@ exports.ZodMiniE164 = core.$constructor("ZodMiniE164", (inst, def) => {
|
|
|
286
379
|
core.$ZodE164.init(inst, def);
|
|
287
380
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
288
381
|
});
|
|
382
|
+
// @__NO_SIDE_EFFECTS__
|
|
289
383
|
function e164(params) {
|
|
290
384
|
return core._e164(exports.ZodMiniE164, params);
|
|
291
385
|
}
|
|
386
|
+
exports.ZodMiniCreditCard = core.$constructor("ZodMiniCreditCard", (inst, def) => {
|
|
387
|
+
core.$ZodCreditCard.init(inst, def);
|
|
388
|
+
exports.ZodMiniStringFormat.init(inst, def);
|
|
389
|
+
});
|
|
390
|
+
// @__NO_SIDE_EFFECTS__
|
|
391
|
+
function creditCard(params) {
|
|
392
|
+
return core._creditCard(exports.ZodMiniCreditCard, params);
|
|
393
|
+
}
|
|
394
|
+
exports.ZodMiniIBAN = core.$constructor("ZodMiniIBAN", (inst, def) => {
|
|
395
|
+
core.$ZodIBAN.init(inst, def);
|
|
396
|
+
exports.ZodMiniStringFormat.init(inst, def);
|
|
397
|
+
});
|
|
398
|
+
// @__NO_SIDE_EFFECTS__
|
|
399
|
+
function iban(params) {
|
|
400
|
+
return core._iban(exports.ZodMiniIBAN, params);
|
|
401
|
+
}
|
|
292
402
|
exports.ZodMiniJWT = core.$constructor("ZodMiniJWT", (inst, def) => {
|
|
293
403
|
core.$ZodJWT.init(inst, def);
|
|
294
404
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
295
405
|
});
|
|
406
|
+
// @__NO_SIDE_EFFECTS__
|
|
296
407
|
function jwt(params) {
|
|
297
408
|
return core._jwt(exports.ZodMiniJWT, params);
|
|
298
409
|
}
|
|
@@ -300,13 +411,37 @@ exports.ZodMiniCustomStringFormat = core.$constructor("ZodMiniCustomStringFormat
|
|
|
300
411
|
core.$ZodCustomStringFormat.init(inst, def);
|
|
301
412
|
exports.ZodMiniStringFormat.init(inst, def);
|
|
302
413
|
});
|
|
414
|
+
// @__NO_SIDE_EFFECTS__
|
|
303
415
|
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
304
416
|
return core._stringFormat(exports.ZodMiniCustomStringFormat, format, fnOrRegex, _params);
|
|
305
417
|
}
|
|
418
|
+
// @__NO_SIDE_EFFECTS__
|
|
419
|
+
function hostname(_params) {
|
|
420
|
+
return core._stringFormat(exports.ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
|
|
421
|
+
}
|
|
422
|
+
// @__NO_SIDE_EFFECTS__
|
|
423
|
+
function hex(_params) {
|
|
424
|
+
return core._stringFormat(exports.ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
|
|
425
|
+
}
|
|
426
|
+
// @__NO_SIDE_EFFECTS__
|
|
427
|
+
function currencyCode(_params) {
|
|
428
|
+
return core._stringFormat(exports.ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
|
|
429
|
+
}
|
|
430
|
+
// @__NO_SIDE_EFFECTS__
|
|
431
|
+
function hash(alg, params) {
|
|
432
|
+
const enc = params?.enc ?? "hex";
|
|
433
|
+
const format = `${alg}_${enc}`;
|
|
434
|
+
const regex = core.regexes[format];
|
|
435
|
+
// check for unrecognized format
|
|
436
|
+
if (!regex)
|
|
437
|
+
throw new Error(`Unrecognized hash format: ${format}`);
|
|
438
|
+
return core._stringFormat(exports.ZodMiniCustomStringFormat, format, regex, params);
|
|
439
|
+
}
|
|
306
440
|
exports.ZodMiniNumber = core.$constructor("ZodMiniNumber", (inst, def) => {
|
|
307
441
|
core.$ZodNumber.init(inst, def);
|
|
308
442
|
exports.ZodMiniType.init(inst, def);
|
|
309
443
|
});
|
|
444
|
+
// @__NO_SIDE_EFFECTS__
|
|
310
445
|
function number(params) {
|
|
311
446
|
return core._number(exports.ZodMiniNumber, params);
|
|
312
447
|
}
|
|
@@ -314,23 +449,18 @@ exports.ZodMiniNumberFormat = core.$constructor("ZodMiniNumberFormat", (inst, de
|
|
|
314
449
|
core.$ZodNumberFormat.init(inst, def);
|
|
315
450
|
exports.ZodMiniNumber.init(inst, def);
|
|
316
451
|
});
|
|
317
|
-
// int
|
|
318
452
|
function int(params) {
|
|
319
453
|
return core._int(exports.ZodMiniNumberFormat, params);
|
|
320
454
|
}
|
|
321
|
-
// float32
|
|
322
455
|
function float32(params) {
|
|
323
456
|
return core._float32(exports.ZodMiniNumberFormat, params);
|
|
324
457
|
}
|
|
325
|
-
// float64
|
|
326
458
|
function float64(params) {
|
|
327
459
|
return core._float64(exports.ZodMiniNumberFormat, params);
|
|
328
460
|
}
|
|
329
|
-
// int32
|
|
330
461
|
function int32(params) {
|
|
331
462
|
return core._int32(exports.ZodMiniNumberFormat, params);
|
|
332
463
|
}
|
|
333
|
-
// uint32
|
|
334
464
|
function uint32(params) {
|
|
335
465
|
return core._uint32(exports.ZodMiniNumberFormat, params);
|
|
336
466
|
}
|
|
@@ -338,6 +468,7 @@ exports.ZodMiniBoolean = core.$constructor("ZodMiniBoolean", (inst, def) => {
|
|
|
338
468
|
core.$ZodBoolean.init(inst, def);
|
|
339
469
|
exports.ZodMiniType.init(inst, def);
|
|
340
470
|
});
|
|
471
|
+
// @__NO_SIDE_EFFECTS__
|
|
341
472
|
function boolean(params) {
|
|
342
473
|
return core._boolean(exports.ZodMiniBoolean, params);
|
|
343
474
|
}
|
|
@@ -345,6 +476,7 @@ exports.ZodMiniBigInt = core.$constructor("ZodMiniBigInt", (inst, def) => {
|
|
|
345
476
|
core.$ZodBigInt.init(inst, def);
|
|
346
477
|
exports.ZodMiniType.init(inst, def);
|
|
347
478
|
});
|
|
479
|
+
// @__NO_SIDE_EFFECTS__
|
|
348
480
|
function bigint(params) {
|
|
349
481
|
return core._bigint(exports.ZodMiniBigInt, params);
|
|
350
482
|
}
|
|
@@ -352,11 +484,9 @@ exports.ZodMiniBigIntFormat = core.$constructor("ZodMiniBigIntFormat", (inst, de
|
|
|
352
484
|
core.$ZodBigIntFormat.init(inst, def);
|
|
353
485
|
exports.ZodMiniBigInt.init(inst, def);
|
|
354
486
|
});
|
|
355
|
-
// int64
|
|
356
487
|
function int64(params) {
|
|
357
488
|
return core._int64(exports.ZodMiniBigIntFormat, params);
|
|
358
489
|
}
|
|
359
|
-
// uint64
|
|
360
490
|
function uint64(params) {
|
|
361
491
|
return core._uint64(exports.ZodMiniBigIntFormat, params);
|
|
362
492
|
}
|
|
@@ -364,6 +494,7 @@ exports.ZodMiniSymbol = core.$constructor("ZodMiniSymbol", (inst, def) => {
|
|
|
364
494
|
core.$ZodSymbol.init(inst, def);
|
|
365
495
|
exports.ZodMiniType.init(inst, def);
|
|
366
496
|
});
|
|
497
|
+
// @__NO_SIDE_EFFECTS__
|
|
367
498
|
function symbol(params) {
|
|
368
499
|
return core._symbol(exports.ZodMiniSymbol, params);
|
|
369
500
|
}
|
|
@@ -371,6 +502,7 @@ exports.ZodMiniUndefined = core.$constructor("ZodMiniUndefined", (inst, def) =>
|
|
|
371
502
|
core.$ZodUndefined.init(inst, def);
|
|
372
503
|
exports.ZodMiniType.init(inst, def);
|
|
373
504
|
});
|
|
505
|
+
// @__NO_SIDE_EFFECTS__
|
|
374
506
|
function _undefined(params) {
|
|
375
507
|
return core._undefined(exports.ZodMiniUndefined, params);
|
|
376
508
|
}
|
|
@@ -378,6 +510,7 @@ exports.ZodMiniNull = core.$constructor("ZodMiniNull", (inst, def) => {
|
|
|
378
510
|
core.$ZodNull.init(inst, def);
|
|
379
511
|
exports.ZodMiniType.init(inst, def);
|
|
380
512
|
});
|
|
513
|
+
// @__NO_SIDE_EFFECTS__
|
|
381
514
|
function _null(params) {
|
|
382
515
|
return core._null(exports.ZodMiniNull, params);
|
|
383
516
|
}
|
|
@@ -385,6 +518,7 @@ exports.ZodMiniAny = core.$constructor("ZodMiniAny", (inst, def) => {
|
|
|
385
518
|
core.$ZodAny.init(inst, def);
|
|
386
519
|
exports.ZodMiniType.init(inst, def);
|
|
387
520
|
});
|
|
521
|
+
// @__NO_SIDE_EFFECTS__
|
|
388
522
|
function any() {
|
|
389
523
|
return core._any(exports.ZodMiniAny);
|
|
390
524
|
}
|
|
@@ -392,6 +526,7 @@ exports.ZodMiniUnknown = core.$constructor("ZodMiniUnknown", (inst, def) => {
|
|
|
392
526
|
core.$ZodUnknown.init(inst, def);
|
|
393
527
|
exports.ZodMiniType.init(inst, def);
|
|
394
528
|
});
|
|
529
|
+
// @__NO_SIDE_EFFECTS__
|
|
395
530
|
function unknown() {
|
|
396
531
|
return core._unknown(exports.ZodMiniUnknown);
|
|
397
532
|
}
|
|
@@ -399,6 +534,7 @@ exports.ZodMiniNever = core.$constructor("ZodMiniNever", (inst, def) => {
|
|
|
399
534
|
core.$ZodNever.init(inst, def);
|
|
400
535
|
exports.ZodMiniType.init(inst, def);
|
|
401
536
|
});
|
|
537
|
+
// @__NO_SIDE_EFFECTS__
|
|
402
538
|
function never(params) {
|
|
403
539
|
return core._never(exports.ZodMiniNever, params);
|
|
404
540
|
}
|
|
@@ -406,6 +542,7 @@ exports.ZodMiniVoid = core.$constructor("ZodMiniVoid", (inst, def) => {
|
|
|
406
542
|
core.$ZodVoid.init(inst, def);
|
|
407
543
|
exports.ZodMiniType.init(inst, def);
|
|
408
544
|
});
|
|
545
|
+
// @__NO_SIDE_EFFECTS__
|
|
409
546
|
function _void(params) {
|
|
410
547
|
return core._void(exports.ZodMiniVoid, params);
|
|
411
548
|
}
|
|
@@ -413,6 +550,7 @@ exports.ZodMiniDate = core.$constructor("ZodMiniDate", (inst, def) => {
|
|
|
413
550
|
core.$ZodDate.init(inst, def);
|
|
414
551
|
exports.ZodMiniType.init(inst, def);
|
|
415
552
|
});
|
|
553
|
+
// @__NO_SIDE_EFFECTS__
|
|
416
554
|
function date(params) {
|
|
417
555
|
return core._date(exports.ZodMiniDate, params);
|
|
418
556
|
}
|
|
@@ -420,113 +558,150 @@ exports.ZodMiniArray = core.$constructor("ZodMiniArray", (inst, def) => {
|
|
|
420
558
|
core.$ZodArray.init(inst, def);
|
|
421
559
|
exports.ZodMiniType.init(inst, def);
|
|
422
560
|
});
|
|
561
|
+
// @__NO_SIDE_EFFECTS__
|
|
423
562
|
function array(element, params) {
|
|
424
563
|
return new exports.ZodMiniArray({
|
|
425
564
|
type: "array",
|
|
426
565
|
element: element,
|
|
427
|
-
...
|
|
566
|
+
...util.normalizeParams(params),
|
|
428
567
|
});
|
|
429
568
|
}
|
|
430
569
|
// .keyof
|
|
570
|
+
// @__NO_SIDE_EFFECTS__
|
|
431
571
|
function keyof(schema) {
|
|
432
572
|
const shape = schema._zod.def.shape;
|
|
433
|
-
return
|
|
573
|
+
return _enum(Object.keys(shape));
|
|
434
574
|
}
|
|
435
575
|
exports.ZodMiniObject = core.$constructor("ZodMiniObject", (inst, def) => {
|
|
436
576
|
core.$ZodObject.init(inst, def);
|
|
437
577
|
exports.ZodMiniType.init(inst, def);
|
|
438
|
-
|
|
578
|
+
util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
|
|
439
579
|
});
|
|
580
|
+
// @__NO_SIDE_EFFECTS__
|
|
440
581
|
function object(shape, params) {
|
|
441
582
|
const def = {
|
|
442
583
|
type: "object",
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return this.shape;
|
|
446
|
-
},
|
|
447
|
-
...index_js_1.util.normalizeParams(params),
|
|
584
|
+
shape: shape ?? {},
|
|
585
|
+
...util.normalizeParams(params),
|
|
448
586
|
};
|
|
449
587
|
return new exports.ZodMiniObject(def);
|
|
450
588
|
}
|
|
451
589
|
// strictObject
|
|
590
|
+
// @__NO_SIDE_EFFECTS__
|
|
452
591
|
function strictObject(shape, params) {
|
|
453
592
|
return new exports.ZodMiniObject({
|
|
454
593
|
type: "object",
|
|
455
|
-
|
|
456
|
-
get shape() {
|
|
457
|
-
index_js_1.util.assignProp(this, "shape", { ...shape });
|
|
458
|
-
return this.shape;
|
|
459
|
-
},
|
|
594
|
+
shape,
|
|
460
595
|
catchall: never(),
|
|
461
|
-
...
|
|
596
|
+
...util.normalizeParams(params),
|
|
462
597
|
});
|
|
463
598
|
}
|
|
464
599
|
// looseObject
|
|
600
|
+
// @__NO_SIDE_EFFECTS__
|
|
465
601
|
function looseObject(shape, params) {
|
|
466
602
|
return new exports.ZodMiniObject({
|
|
467
603
|
type: "object",
|
|
468
|
-
|
|
469
|
-
get shape() {
|
|
470
|
-
index_js_1.util.assignProp(this, "shape", { ...shape });
|
|
471
|
-
return this.shape;
|
|
472
|
-
},
|
|
473
|
-
// get optional() {
|
|
474
|
-
// return util.optionalKeys(shape);
|
|
475
|
-
// },
|
|
604
|
+
shape,
|
|
476
605
|
catchall: unknown(),
|
|
477
|
-
...
|
|
606
|
+
...util.normalizeParams(params),
|
|
478
607
|
});
|
|
479
608
|
}
|
|
480
609
|
// object methods
|
|
610
|
+
// @__NO_SIDE_EFFECTS__
|
|
481
611
|
function extend(schema, shape) {
|
|
482
|
-
return
|
|
612
|
+
return util.extend(schema, shape);
|
|
613
|
+
}
|
|
614
|
+
// @__NO_SIDE_EFFECTS__
|
|
615
|
+
function safeExtend(schema, shape) {
|
|
616
|
+
return util.safeExtend(schema, shape);
|
|
483
617
|
}
|
|
484
|
-
|
|
485
|
-
|
|
618
|
+
/**
|
|
619
|
+
* @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
620
|
+
*/
|
|
621
|
+
// @__NO_SIDE_EFFECTS__
|
|
622
|
+
function merge(a, b) {
|
|
623
|
+
return util.merge(a, b);
|
|
486
624
|
}
|
|
625
|
+
// @__NO_SIDE_EFFECTS__
|
|
487
626
|
function pick(schema, mask) {
|
|
488
|
-
return
|
|
627
|
+
return util.pick(schema, mask);
|
|
489
628
|
}
|
|
490
629
|
// .omit
|
|
630
|
+
// @__NO_SIDE_EFFECTS__
|
|
491
631
|
function omit(schema, mask) {
|
|
492
|
-
return
|
|
632
|
+
return util.omit(schema, mask);
|
|
493
633
|
}
|
|
634
|
+
// @__NO_SIDE_EFFECTS__
|
|
494
635
|
function partial(schema, mask) {
|
|
495
|
-
|
|
636
|
+
const def = schema._zod.def;
|
|
637
|
+
if (def.type !== "tuple")
|
|
638
|
+
return util.partial(exports.ZodMiniOptional, schema, mask);
|
|
639
|
+
// a refinement was authored against the full arity; partialing would run it on a shorter array
|
|
640
|
+
if (def.checks?.length)
|
|
641
|
+
throw new Error(".partial() cannot be used on tuple schemas containing refinements");
|
|
642
|
+
return util.clone(schema, {
|
|
643
|
+
...def,
|
|
644
|
+
items: def.items.map((item) => new exports.ZodMiniOptional({ type: "optional", innerType: item })),
|
|
645
|
+
});
|
|
496
646
|
}
|
|
647
|
+
// @__NO_SIDE_EFFECTS__
|
|
648
|
+
function exactPartial(schema, mask) {
|
|
649
|
+
return util.partial(exports.ZodMiniExactOptional, schema, mask, "exactPartial");
|
|
650
|
+
}
|
|
651
|
+
// @__NO_SIDE_EFFECTS__
|
|
497
652
|
function required(schema, mask) {
|
|
498
|
-
return
|
|
653
|
+
return util.required(exports.ZodMiniNonOptional, schema, mask);
|
|
499
654
|
}
|
|
655
|
+
// @__NO_SIDE_EFFECTS__
|
|
500
656
|
function catchall(inst, catchall) {
|
|
501
|
-
|
|
657
|
+
// `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
|
|
658
|
+
return inst.clone(util.mergeDefs(inst._zod.def, { catchall: catchall }));
|
|
502
659
|
}
|
|
503
660
|
exports.ZodMiniUnion = core.$constructor("ZodMiniUnion", (inst, def) => {
|
|
504
661
|
core.$ZodUnion.init(inst, def);
|
|
505
662
|
exports.ZodMiniType.init(inst, def);
|
|
506
663
|
});
|
|
664
|
+
// @__NO_SIDE_EFFECTS__
|
|
507
665
|
function union(options, params) {
|
|
508
666
|
return new exports.ZodMiniUnion({
|
|
509
667
|
type: "union",
|
|
510
668
|
options: options,
|
|
511
|
-
...
|
|
669
|
+
...util.normalizeParams(params),
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
exports.ZodMiniXor = core.$constructor("ZodMiniXor", (inst, def) => {
|
|
673
|
+
exports.ZodMiniUnion.init(inst, def);
|
|
674
|
+
core.$ZodXor.init(inst, def);
|
|
675
|
+
});
|
|
676
|
+
/** Creates an exclusive union (XOR) where exactly one option must match.
|
|
677
|
+
* Unlike regular unions that succeed when any option matches, xor fails if
|
|
678
|
+
* zero or more than one option matches the input. */
|
|
679
|
+
function xor(options, params) {
|
|
680
|
+
return new exports.ZodMiniXor({
|
|
681
|
+
type: "union",
|
|
682
|
+
options: options,
|
|
683
|
+
inclusive: false,
|
|
684
|
+
...util.normalizeParams(params),
|
|
512
685
|
});
|
|
513
686
|
}
|
|
514
687
|
exports.ZodMiniDiscriminatedUnion = core.$constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
|
|
515
688
|
core.$ZodDiscriminatedUnion.init(inst, def);
|
|
516
689
|
exports.ZodMiniType.init(inst, def);
|
|
517
690
|
});
|
|
691
|
+
// @__NO_SIDE_EFFECTS__
|
|
518
692
|
function discriminatedUnion(discriminator, options, params) {
|
|
519
693
|
return new exports.ZodMiniDiscriminatedUnion({
|
|
520
694
|
type: "union",
|
|
521
|
-
options,
|
|
695
|
+
options: options,
|
|
522
696
|
discriminator,
|
|
523
|
-
...
|
|
697
|
+
...util.normalizeParams(params),
|
|
524
698
|
});
|
|
525
699
|
}
|
|
526
700
|
exports.ZodMiniIntersection = core.$constructor("ZodMiniIntersection", (inst, def) => {
|
|
527
701
|
core.$ZodIntersection.init(inst, def);
|
|
528
702
|
exports.ZodMiniType.init(inst, def);
|
|
529
703
|
});
|
|
704
|
+
// @__NO_SIDE_EFFECTS__
|
|
530
705
|
function intersection(left, right) {
|
|
531
706
|
return new exports.ZodMiniIntersection({
|
|
532
707
|
type: "intersection",
|
|
@@ -538,6 +713,7 @@ exports.ZodMiniTuple = core.$constructor("ZodMiniTuple", (inst, def) => {
|
|
|
538
713
|
core.$ZodTuple.init(inst, def);
|
|
539
714
|
exports.ZodMiniType.init(inst, def);
|
|
540
715
|
});
|
|
716
|
+
// @__NO_SIDE_EFFECTS__
|
|
541
717
|
function tuple(items, _paramsOrRest, _params) {
|
|
542
718
|
const hasRest = _paramsOrRest instanceof core.$ZodType;
|
|
543
719
|
const params = hasRest ? _params : _paramsOrRest;
|
|
@@ -546,64 +722,91 @@ function tuple(items, _paramsOrRest, _params) {
|
|
|
546
722
|
type: "tuple",
|
|
547
723
|
items: items,
|
|
548
724
|
rest,
|
|
549
|
-
...
|
|
725
|
+
...util.normalizeParams(params),
|
|
550
726
|
});
|
|
551
727
|
}
|
|
552
728
|
exports.ZodMiniRecord = core.$constructor("ZodMiniRecord", (inst, def) => {
|
|
553
729
|
core.$ZodRecord.init(inst, def);
|
|
554
730
|
exports.ZodMiniType.init(inst, def);
|
|
555
731
|
});
|
|
732
|
+
// @__NO_SIDE_EFFECTS__
|
|
556
733
|
function record(keyType, valueType, params) {
|
|
734
|
+
// v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
|
|
735
|
+
if (!valueType || !valueType._zod) {
|
|
736
|
+
return new exports.ZodMiniRecord({
|
|
737
|
+
type: "record",
|
|
738
|
+
keyType: string(),
|
|
739
|
+
valueType: keyType,
|
|
740
|
+
...util.normalizeParams(valueType),
|
|
741
|
+
});
|
|
742
|
+
}
|
|
557
743
|
return new exports.ZodMiniRecord({
|
|
558
744
|
type: "record",
|
|
559
745
|
keyType,
|
|
560
746
|
valueType: valueType,
|
|
561
|
-
...
|
|
747
|
+
...util.normalizeParams(params),
|
|
562
748
|
});
|
|
563
749
|
}
|
|
750
|
+
// @__NO_SIDE_EFFECTS__
|
|
564
751
|
function partialRecord(keyType, valueType, params) {
|
|
565
752
|
return new exports.ZodMiniRecord({
|
|
566
753
|
type: "record",
|
|
567
|
-
keyType
|
|
754
|
+
keyType,
|
|
755
|
+
valueType: valueType,
|
|
756
|
+
...util.normalizeParams(params),
|
|
757
|
+
partial: true,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
function looseRecord(keyType, valueType, params) {
|
|
761
|
+
return new exports.ZodMiniRecord({
|
|
762
|
+
type: "record",
|
|
763
|
+
keyType,
|
|
568
764
|
valueType: valueType,
|
|
569
|
-
|
|
765
|
+
mode: "loose",
|
|
766
|
+
...util.normalizeParams(params),
|
|
570
767
|
});
|
|
571
768
|
}
|
|
572
769
|
exports.ZodMiniMap = core.$constructor("ZodMiniMap", (inst, def) => {
|
|
573
770
|
core.$ZodMap.init(inst, def);
|
|
574
771
|
exports.ZodMiniType.init(inst, def);
|
|
575
772
|
});
|
|
773
|
+
// @__NO_SIDE_EFFECTS__
|
|
576
774
|
function map(keyType, valueType, params) {
|
|
577
775
|
return new exports.ZodMiniMap({
|
|
578
776
|
type: "map",
|
|
579
777
|
keyType: keyType,
|
|
580
778
|
valueType: valueType,
|
|
581
|
-
...
|
|
779
|
+
...util.normalizeParams(params),
|
|
582
780
|
});
|
|
583
781
|
}
|
|
584
782
|
exports.ZodMiniSet = core.$constructor("ZodMiniSet", (inst, def) => {
|
|
585
783
|
core.$ZodSet.init(inst, def);
|
|
586
784
|
exports.ZodMiniType.init(inst, def);
|
|
587
785
|
});
|
|
786
|
+
// @__NO_SIDE_EFFECTS__
|
|
588
787
|
function set(valueType, params) {
|
|
589
788
|
return new exports.ZodMiniSet({
|
|
590
789
|
type: "set",
|
|
591
790
|
valueType: valueType,
|
|
592
|
-
...
|
|
791
|
+
...util.normalizeParams(params),
|
|
593
792
|
});
|
|
594
793
|
}
|
|
595
794
|
exports.ZodMiniEnum = core.$constructor("ZodMiniEnum", (inst, def) => {
|
|
596
795
|
core.$ZodEnum.init(inst, def);
|
|
597
796
|
exports.ZodMiniType.init(inst, def);
|
|
797
|
+
// reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
|
|
798
|
+
inst.options = [...inst._zod.values];
|
|
598
799
|
});
|
|
800
|
+
// @__NO_SIDE_EFFECTS__
|
|
599
801
|
function _enum(values, params) {
|
|
600
802
|
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
601
803
|
return new exports.ZodMiniEnum({
|
|
602
804
|
type: "enum",
|
|
603
805
|
entries,
|
|
604
|
-
...
|
|
806
|
+
...util.normalizeParams(params),
|
|
605
807
|
});
|
|
606
808
|
}
|
|
809
|
+
// @__NO_SIDE_EFFECTS__
|
|
607
810
|
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
608
811
|
*
|
|
609
812
|
* ```ts
|
|
@@ -615,24 +818,26 @@ function nativeEnum(entries, params) {
|
|
|
615
818
|
return new exports.ZodMiniEnum({
|
|
616
819
|
type: "enum",
|
|
617
820
|
entries,
|
|
618
|
-
...
|
|
821
|
+
...util.normalizeParams(params),
|
|
619
822
|
});
|
|
620
823
|
}
|
|
621
824
|
exports.ZodMiniLiteral = core.$constructor("ZodMiniLiteral", (inst, def) => {
|
|
622
825
|
core.$ZodLiteral.init(inst, def);
|
|
623
826
|
exports.ZodMiniType.init(inst, def);
|
|
624
827
|
});
|
|
828
|
+
// @__NO_SIDE_EFFECTS__
|
|
625
829
|
function literal(value, params) {
|
|
626
830
|
return new exports.ZodMiniLiteral({
|
|
627
831
|
type: "literal",
|
|
628
832
|
values: Array.isArray(value) ? value : [value],
|
|
629
|
-
...
|
|
833
|
+
...util.normalizeParams(params),
|
|
630
834
|
});
|
|
631
835
|
}
|
|
632
836
|
exports.ZodMiniFile = core.$constructor("ZodMiniFile", (inst, def) => {
|
|
633
837
|
core.$ZodFile.init(inst, def);
|
|
634
838
|
exports.ZodMiniType.init(inst, def);
|
|
635
839
|
});
|
|
840
|
+
// @__NO_SIDE_EFFECTS__
|
|
636
841
|
function file(params) {
|
|
637
842
|
return core._file(exports.ZodMiniFile, params);
|
|
638
843
|
}
|
|
@@ -640,6 +845,7 @@ exports.ZodMiniTransform = core.$constructor("ZodMiniTransform", (inst, def) =>
|
|
|
640
845
|
core.$ZodTransform.init(inst, def);
|
|
641
846
|
exports.ZodMiniType.init(inst, def);
|
|
642
847
|
});
|
|
848
|
+
// @__NO_SIDE_EFFECTS__
|
|
643
849
|
function transform(fn) {
|
|
644
850
|
return new exports.ZodMiniTransform({
|
|
645
851
|
type: "transform",
|
|
@@ -650,16 +856,29 @@ exports.ZodMiniOptional = core.$constructor("ZodMiniOptional", (inst, def) => {
|
|
|
650
856
|
core.$ZodOptional.init(inst, def);
|
|
651
857
|
exports.ZodMiniType.init(inst, def);
|
|
652
858
|
});
|
|
859
|
+
// @__NO_SIDE_EFFECTS__
|
|
653
860
|
function optional(innerType) {
|
|
654
861
|
return new exports.ZodMiniOptional({
|
|
655
862
|
type: "optional",
|
|
656
863
|
innerType: innerType,
|
|
657
864
|
});
|
|
658
865
|
}
|
|
866
|
+
exports.ZodMiniExactOptional = core.$constructor("ZodMiniExactOptional", (inst, def) => {
|
|
867
|
+
core.$ZodExactOptional.init(inst, def);
|
|
868
|
+
exports.ZodMiniType.init(inst, def);
|
|
869
|
+
});
|
|
870
|
+
// @__NO_SIDE_EFFECTS__
|
|
871
|
+
function exactOptional(innerType) {
|
|
872
|
+
return new exports.ZodMiniExactOptional({
|
|
873
|
+
type: "optional",
|
|
874
|
+
innerType: innerType,
|
|
875
|
+
});
|
|
876
|
+
}
|
|
659
877
|
exports.ZodMiniNullable = core.$constructor("ZodMiniNullable", (inst, def) => {
|
|
660
878
|
core.$ZodNullable.init(inst, def);
|
|
661
879
|
exports.ZodMiniType.init(inst, def);
|
|
662
880
|
});
|
|
881
|
+
// @__NO_SIDE_EFFECTS__
|
|
663
882
|
function nullable(innerType) {
|
|
664
883
|
return new exports.ZodMiniNullable({
|
|
665
884
|
type: "nullable",
|
|
@@ -667,6 +886,7 @@ function nullable(innerType) {
|
|
|
667
886
|
});
|
|
668
887
|
}
|
|
669
888
|
// nullish
|
|
889
|
+
// @__NO_SIDE_EFFECTS__
|
|
670
890
|
function nullish(innerType) {
|
|
671
891
|
return optional(nullable(innerType));
|
|
672
892
|
}
|
|
@@ -674,12 +894,13 @@ exports.ZodMiniDefault = core.$constructor("ZodMiniDefault", (inst, def) => {
|
|
|
674
894
|
core.$ZodDefault.init(inst, def);
|
|
675
895
|
exports.ZodMiniType.init(inst, def);
|
|
676
896
|
});
|
|
897
|
+
// @__NO_SIDE_EFFECTS__
|
|
677
898
|
function _default(innerType, defaultValue) {
|
|
678
899
|
return new exports.ZodMiniDefault({
|
|
679
900
|
type: "default",
|
|
680
901
|
innerType: innerType,
|
|
681
902
|
get defaultValue() {
|
|
682
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
903
|
+
return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
|
|
683
904
|
},
|
|
684
905
|
});
|
|
685
906
|
}
|
|
@@ -687,12 +908,13 @@ exports.ZodMiniPrefault = core.$constructor("ZodMiniPrefault", (inst, def) => {
|
|
|
687
908
|
core.$ZodPrefault.init(inst, def);
|
|
688
909
|
exports.ZodMiniType.init(inst, def);
|
|
689
910
|
});
|
|
911
|
+
// @__NO_SIDE_EFFECTS__
|
|
690
912
|
function prefault(innerType, defaultValue) {
|
|
691
913
|
return new exports.ZodMiniPrefault({
|
|
692
914
|
type: "prefault",
|
|
693
915
|
innerType: innerType,
|
|
694
916
|
get defaultValue() {
|
|
695
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
917
|
+
return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
|
|
696
918
|
},
|
|
697
919
|
});
|
|
698
920
|
}
|
|
@@ -700,17 +922,19 @@ exports.ZodMiniNonOptional = core.$constructor("ZodMiniNonOptional", (inst, def)
|
|
|
700
922
|
core.$ZodNonOptional.init(inst, def);
|
|
701
923
|
exports.ZodMiniType.init(inst, def);
|
|
702
924
|
});
|
|
925
|
+
// @__NO_SIDE_EFFECTS__
|
|
703
926
|
function nonoptional(innerType, params) {
|
|
704
927
|
return new exports.ZodMiniNonOptional({
|
|
705
928
|
type: "nonoptional",
|
|
706
929
|
innerType: innerType,
|
|
707
|
-
...
|
|
930
|
+
...util.normalizeParams(params),
|
|
708
931
|
});
|
|
709
932
|
}
|
|
710
933
|
exports.ZodMiniSuccess = core.$constructor("ZodMiniSuccess", (inst, def) => {
|
|
711
934
|
core.$ZodSuccess.init(inst, def);
|
|
712
935
|
exports.ZodMiniType.init(inst, def);
|
|
713
936
|
});
|
|
937
|
+
// @__NO_SIDE_EFFECTS__
|
|
714
938
|
function success(innerType) {
|
|
715
939
|
return new exports.ZodMiniSuccess({
|
|
716
940
|
type: "success",
|
|
@@ -721,17 +945,19 @@ exports.ZodMiniCatch = core.$constructor("ZodMiniCatch", (inst, def) => {
|
|
|
721
945
|
core.$ZodCatch.init(inst, def);
|
|
722
946
|
exports.ZodMiniType.init(inst, def);
|
|
723
947
|
});
|
|
948
|
+
// @__NO_SIDE_EFFECTS__
|
|
724
949
|
function _catch(innerType, catchValue) {
|
|
725
950
|
return new exports.ZodMiniCatch({
|
|
726
951
|
type: "catch",
|
|
727
952
|
innerType: innerType,
|
|
728
|
-
catchValue: (typeof catchValue === "function" ? catchValue : (
|
|
953
|
+
catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)),
|
|
729
954
|
});
|
|
730
955
|
}
|
|
731
956
|
exports.ZodMiniNaN = core.$constructor("ZodMiniNaN", (inst, def) => {
|
|
732
957
|
core.$ZodNaN.init(inst, def);
|
|
733
958
|
exports.ZodMiniType.init(inst, def);
|
|
734
959
|
});
|
|
960
|
+
// @__NO_SIDE_EFFECTS__
|
|
735
961
|
function nan(params) {
|
|
736
962
|
return core._nan(exports.ZodMiniNaN, params);
|
|
737
963
|
}
|
|
@@ -739,6 +965,7 @@ exports.ZodMiniPipe = core.$constructor("ZodMiniPipe", (inst, def) => {
|
|
|
739
965
|
core.$ZodPipe.init(inst, def);
|
|
740
966
|
exports.ZodMiniType.init(inst, def);
|
|
741
967
|
});
|
|
968
|
+
// @__NO_SIDE_EFFECTS__
|
|
742
969
|
function pipe(in_, out) {
|
|
743
970
|
return new exports.ZodMiniPipe({
|
|
744
971
|
type: "pipe",
|
|
@@ -746,10 +973,36 @@ function pipe(in_, out) {
|
|
|
746
973
|
out: out,
|
|
747
974
|
});
|
|
748
975
|
}
|
|
976
|
+
exports.ZodMiniCodec = core.$constructor("ZodMiniCodec", (inst, def) => {
|
|
977
|
+
exports.ZodMiniPipe.init(inst, def);
|
|
978
|
+
core.$ZodCodec.init(inst, def);
|
|
979
|
+
});
|
|
980
|
+
// @__NO_SIDE_EFFECTS__
|
|
981
|
+
function codec(in_, out, params) {
|
|
982
|
+
return new exports.ZodMiniCodec({
|
|
983
|
+
type: "pipe",
|
|
984
|
+
in: in_,
|
|
985
|
+
out: out,
|
|
986
|
+
transform: params.decode,
|
|
987
|
+
reverseTransform: params.encode,
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
// @__NO_SIDE_EFFECTS__
|
|
991
|
+
function invertCodec(codec) {
|
|
992
|
+
const def = codec._zod.def;
|
|
993
|
+
return new exports.ZodMiniCodec({
|
|
994
|
+
type: "pipe",
|
|
995
|
+
in: def.out,
|
|
996
|
+
out: def.in,
|
|
997
|
+
transform: def.reverseTransform,
|
|
998
|
+
reverseTransform: def.transform,
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
749
1001
|
exports.ZodMiniReadonly = core.$constructor("ZodMiniReadonly", (inst, def) => {
|
|
750
1002
|
core.$ZodReadonly.init(inst, def);
|
|
751
1003
|
exports.ZodMiniType.init(inst, def);
|
|
752
1004
|
});
|
|
1005
|
+
// @__NO_SIDE_EFFECTS__
|
|
753
1006
|
function readonly(innerType) {
|
|
754
1007
|
return new exports.ZodMiniReadonly({
|
|
755
1008
|
type: "readonly",
|
|
@@ -760,11 +1013,12 @@ exports.ZodMiniTemplateLiteral = core.$constructor("ZodMiniTemplateLiteral", (in
|
|
|
760
1013
|
core.$ZodTemplateLiteral.init(inst, def);
|
|
761
1014
|
exports.ZodMiniType.init(inst, def);
|
|
762
1015
|
});
|
|
1016
|
+
// @__NO_SIDE_EFFECTS__
|
|
763
1017
|
function templateLiteral(parts, params) {
|
|
764
1018
|
return new exports.ZodMiniTemplateLiteral({
|
|
765
1019
|
type: "template_literal",
|
|
766
1020
|
parts,
|
|
767
|
-
...
|
|
1021
|
+
...util.normalizeParams(params),
|
|
768
1022
|
});
|
|
769
1023
|
}
|
|
770
1024
|
exports.ZodMiniLazy = core.$constructor("ZodMiniLazy", (inst, def) => {
|
|
@@ -774,6 +1028,7 @@ exports.ZodMiniLazy = core.$constructor("ZodMiniLazy", (inst, def) => {
|
|
|
774
1028
|
// export function lazy<T extends object>(getter: () => T): T {
|
|
775
1029
|
// return util.createTransparentProxy<T>(getter);
|
|
776
1030
|
// }
|
|
1031
|
+
// @__NO_SIDE_EFFECTS__
|
|
777
1032
|
function _lazy(getter) {
|
|
778
1033
|
return new exports.ZodMiniLazy({
|
|
779
1034
|
type: "lazy",
|
|
@@ -784,6 +1039,7 @@ exports.ZodMiniPromise = core.$constructor("ZodMiniPromise", (inst, def) => {
|
|
|
784
1039
|
core.$ZodPromise.init(inst, def);
|
|
785
1040
|
exports.ZodMiniType.init(inst, def);
|
|
786
1041
|
});
|
|
1042
|
+
// @__NO_SIDE_EFFECTS__
|
|
787
1043
|
function promise(innerType) {
|
|
788
1044
|
return new exports.ZodMiniPromise({
|
|
789
1045
|
type: "promise",
|
|
@@ -795,45 +1051,97 @@ exports.ZodMiniCustom = core.$constructor("ZodMiniCustom", (inst, def) => {
|
|
|
795
1051
|
exports.ZodMiniType.init(inst, def);
|
|
796
1052
|
});
|
|
797
1053
|
// custom checks
|
|
1054
|
+
// @__NO_SIDE_EFFECTS__
|
|
798
1055
|
function check(fn, params) {
|
|
799
1056
|
const ch = new core.$ZodCheck({
|
|
800
1057
|
check: "custom",
|
|
801
|
-
...
|
|
1058
|
+
...util.normalizeParams(params),
|
|
802
1059
|
});
|
|
803
1060
|
ch._zod.check = fn;
|
|
804
1061
|
return ch;
|
|
805
1062
|
}
|
|
806
|
-
// ZodCustom
|
|
807
|
-
//
|
|
1063
|
+
// ZodCustom custom schema
|
|
1064
|
+
// @__NO_SIDE_EFFECTS__
|
|
808
1065
|
function custom(fn, _params) {
|
|
809
1066
|
return core._custom(exports.ZodMiniCustom, fn ?? (() => true), _params);
|
|
810
1067
|
}
|
|
811
1068
|
// refine
|
|
1069
|
+
// @__NO_SIDE_EFFECTS__
|
|
812
1070
|
function refine(fn, _params = {}) {
|
|
813
1071
|
return core._refine(exports.ZodMiniCustom, fn, _params);
|
|
814
1072
|
}
|
|
1073
|
+
// superRefine
|
|
1074
|
+
// @__NO_SIDE_EFFECTS__
|
|
1075
|
+
function superRefine(fn, params) {
|
|
1076
|
+
return core._superRefine(fn, params);
|
|
1077
|
+
}
|
|
1078
|
+
// Re-export describe and meta from core
|
|
1079
|
+
exports.describe = core.describe;
|
|
1080
|
+
exports.meta = core.meta;
|
|
815
1081
|
// instanceof
|
|
816
1082
|
class Class {
|
|
817
1083
|
constructor(..._args) { }
|
|
818
1084
|
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}) {
|
|
1085
|
+
// @__NO_SIDE_EFFECTS__
|
|
1086
|
+
function _instanceof(cls, params = {}) {
|
|
822
1087
|
const inst = custom((data) => data instanceof cls, params);
|
|
823
1088
|
inst._zod.bag.Class = cls;
|
|
1089
|
+
// Override check to emit invalid_type instead of custom
|
|
1090
|
+
inst._zod.check = (payload) => {
|
|
1091
|
+
if (!(payload.value instanceof cls)) {
|
|
1092
|
+
payload.issues.push({
|
|
1093
|
+
code: "invalid_type",
|
|
1094
|
+
expected: cls.name,
|
|
1095
|
+
input: payload.value,
|
|
1096
|
+
inst,
|
|
1097
|
+
path: [...(inst._zod.def.path ?? [])],
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
824
1101
|
return inst;
|
|
825
1102
|
}
|
|
826
1103
|
// stringbool
|
|
827
1104
|
const stringbool = (...args) => core._stringbool({
|
|
828
|
-
|
|
1105
|
+
Codec: exports.ZodMiniCodec,
|
|
829
1106
|
Boolean: exports.ZodMiniBoolean,
|
|
830
1107
|
String: exports.ZodMiniString,
|
|
831
|
-
Transform: exports.ZodMiniTransform,
|
|
832
1108
|
}, ...args);
|
|
833
1109
|
exports.stringbool = stringbool;
|
|
1110
|
+
// @__NO_SIDE_EFFECTS__
|
|
834
1111
|
function json() {
|
|
835
1112
|
const jsonSchema = _lazy(() => {
|
|
836
1113
|
return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
|
|
837
1114
|
});
|
|
838
1115
|
return jsonSchema;
|
|
839
1116
|
}
|
|
1117
|
+
exports.ZodMiniFunction = core.$constructor("ZodMiniFunction", (inst, def) => {
|
|
1118
|
+
core.$ZodFunction.init(inst, def);
|
|
1119
|
+
exports.ZodMiniType.init(inst, def);
|
|
1120
|
+
});
|
|
1121
|
+
// @__NO_SIDE_EFFECTS__
|
|
1122
|
+
function _function(params) {
|
|
1123
|
+
return new exports.ZodMiniFunction({
|
|
1124
|
+
type: "function",
|
|
1125
|
+
input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),
|
|
1126
|
+
output: params?.output ?? unknown(),
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
// seal-cjs-exports
|
|
1131
|
+
(function () {
|
|
1132
|
+
var keys = Object.getOwnPropertyNames(exports);
|
|
1133
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1134
|
+
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
1135
|
+
if (!desc || !desc.get || !desc.configurable) continue;
|
|
1136
|
+
var value;
|
|
1137
|
+
try {
|
|
1138
|
+
value = desc.get();
|
|
1139
|
+
} catch (e) {
|
|
1140
|
+
continue;
|
|
1141
|
+
}
|
|
1142
|
+
// a circular require may not have settled this one yet, so leave it live
|
|
1143
|
+
if (value === undefined) continue;
|
|
1144
|
+
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
1145
|
+
}
|
|
1146
|
+
Object.freeze(exports);
|
|
1147
|
+
})();
|