cross-seed 7.0.0-21 → 7.0.0-23
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/action.js +7 -8
- package/dist/action.js.map +1 -1
- package/dist/arr.js +2 -2
- package/dist/arr.js.map +1 -1
- package/dist/bencode.d.ts +62 -0
- package/dist/bencode.js +248 -0
- package/dist/bencode.js.map +1 -0
- package/dist/clients/Deluge.d.ts +5 -10
- package/dist/clients/Deluge.js +115 -89
- package/dist/clients/Deluge.js.map +1 -1
- package/dist/clients/QBittorrent.d.ts +3 -0
- package/dist/clients/QBittorrent.js +43 -30
- package/dist/clients/QBittorrent.js.map +1 -1
- package/dist/clients/RTorrent.d.ts +3 -2
- package/dist/clients/RTorrent.js +120 -41
- package/dist/clients/RTorrent.js.map +1 -1
- package/dist/clients/TorrentClient.d.ts +3 -2
- package/dist/clients/TorrentClient.js +3 -5
- package/dist/clients/TorrentClient.js.map +1 -1
- package/dist/clients/Transmission.d.ts +1 -0
- package/dist/clients/Transmission.js +90 -40
- package/dist/clients/Transmission.js.map +1 -1
- package/dist/clients/qbittorrent-version.d.ts +6 -0
- package/dist/clients/qbittorrent-version.js +11 -0
- package/dist/clients/qbittorrent-version.js.map +1 -0
- package/dist/clients/scgi.d.ts +14 -0
- package/dist/clients/scgi.js +111 -0
- package/dist/clients/scgi.js.map +1 -0
- package/dist/cmd.js +1 -1
- package/dist/cmd.js.map +1 -1
- package/dist/configuration.js +49 -9
- package/dist/configuration.js.map +1 -1
- package/dist/constants.d.ts +10 -0
- package/dist/constants.js +12 -2
- package/dist/constants.js.map +1 -1
- package/dist/dataFiles.d.ts +1 -0
- package/dist/dataFiles.js +252 -60
- package/dist/dataFiles.js.map +1 -1
- package/dist/db.js +8 -4
- package/dist/db.js.map +1 -1
- package/dist/decide.js +8 -8
- package/dist/decide.js.map +1 -1
- package/dist/devLogin.js.map +1 -1
- package/dist/diff.js.map +1 -1
- package/dist/indexers.js +5 -4
- package/dist/indexers.js.map +1 -1
- package/dist/inject.js +5 -5
- package/dist/inject.js.map +1 -1
- package/dist/jobs.js +2 -1
- package/dist/jobs.js.map +1 -1
- package/dist/libraryInventory.d.ts +176 -0
- package/dist/libraryInventory.js +701 -0
- package/dist/libraryInventory.js.map +1 -0
- package/dist/logger.js +7 -5
- package/dist/logger.js.map +1 -1
- package/dist/migrations/09-clientAndDataSearchees.js +1 -0
- package/dist/migrations/09-clientAndDataSearchees.js.map +1 -1
- package/dist/migrations/17-api-key-settings-json.js +3 -1
- package/dist/migrations/17-api-key-settings-json.js.map +1 -1
- package/dist/migrations/18-library-inventory.d.ts +9 -0
- package/dist/migrations/18-library-inventory.js +48 -0
- package/dist/migrations/18-library-inventory.js.map +1 -0
- package/dist/migrations/19-library-files.d.ts +9 -0
- package/dist/migrations/19-library-files.js +26 -0
- package/dist/migrations/19-library-files.js.map +1 -0
- package/dist/migrations/migrations.d.ts +12 -5
- package/dist/migrations/migrations.js +5 -1
- package/dist/migrations/migrations.js.map +1 -1
- package/dist/parseTorrent.d.ts +1 -1
- package/dist/parseTorrent.js +18 -4
- package/dist/parseTorrent.js.map +1 -1
- package/dist/pipeline.js +12 -11
- package/dist/pipeline.js.map +1 -1
- package/dist/problems/linking.js +1 -1
- package/dist/problems/linking.js.map +1 -1
- package/dist/problems.js +2 -1
- package/dist/problems.js.map +1 -1
- package/dist/pushNotifier.js +10 -9
- package/dist/pushNotifier.js.map +1 -1
- package/dist/routes/baseApi.d.ts +8 -0
- package/dist/routes/baseApi.js +26 -52
- package/dist/routes/baseApi.js.map +1 -1
- package/dist/routes/devLogin.js +1 -0
- package/dist/routes/devLogin.js.map +1 -1
- package/dist/routes/indexerApi.js +1 -0
- package/dist/routes/indexerApi.js.map +1 -1
- package/dist/routes/staticFrontendPlugin.js +1 -0
- package/dist/routes/staticFrontendPlugin.js.map +1 -1
- package/dist/searchee.d.ts +14 -2
- package/dist/searchee.js +26 -9
- package/dist/searchee.js.map +1 -1
- package/dist/services/indexerService.js +8 -2
- package/dist/services/indexerService.js.map +1 -1
- package/dist/startup.d.ts +1 -0
- package/dist/startup.js +11 -4
- package/dist/startup.js.map +1 -1
- package/dist/torrent.js +302 -115
- package/dist/torrent.js.map +1 -1
- package/dist/torznab.d.ts +2 -2
- package/dist/torznab.js +15 -14
- package/dist/torznab.js.map +1 -1
- package/dist/trpc/routers/auth.js +1 -1
- package/dist/trpc/routers/auth.js.map +1 -1
- package/dist/trpc/routers/clients.js +8 -13
- package/dist/trpc/routers/clients.js.map +1 -1
- package/dist/trpc/routers/index.d.ts +51 -50
- package/dist/trpc/routers/index.js +2 -2
- package/dist/trpc/routers/index.js.map +1 -1
- package/dist/trpc/routers/jobs.js +1 -1
- package/dist/trpc/routers/jobs.js.map +1 -1
- package/dist/trpc/routers/library.d.ts +50 -0
- package/dist/trpc/routers/library.js +85 -0
- package/dist/trpc/routers/library.js.map +1 -0
- package/dist/trpc/routers/logs.js +6 -5
- package/dist/trpc/routers/logs.js.map +1 -1
- package/dist/trpc/routers/settings.js +78 -21
- package/dist/trpc/routers/settings.js.map +1 -1
- package/dist/trpc/routers/stats.d.ts +1 -0
- package/dist/trpc/routers/stats.js +11 -5
- package/dist/trpc/routers/stats.js.map +1 -1
- package/dist/userAuth.js +1 -1
- package/dist/userAuth.js.map +1 -1
- package/dist/utils/background.d.ts +7 -0
- package/dist/utils/background.js +14 -0
- package/dist/utils/background.js.map +1 -0
- package/dist/utils/logWatcher.js +3 -2
- package/dist/utils/logWatcher.js.map +1 -1
- package/dist/utils.d.ts +11 -1
- package/dist/utils.js +47 -8
- package/dist/utils.js.map +1 -1
- package/dist/webui/assets/DeleteOption-DkdJCiOu.js +1 -0
- package/dist/webui/assets/FieldInfo-rcCXc0d-.js +1 -0
- package/dist/webui/assets/Page-CKwSnUie.js +1 -0
- package/dist/webui/assets/array-field-DM2mAVqa.js +1 -0
- package/dist/webui/assets/badge-CLUazitN.js +1 -0
- package/dist/webui/assets/button-DoKPR9Fv.js +1 -0
- package/dist/webui/assets/check-BlfHpqkp.js +1 -0
- package/dist/webui/assets/clients-B5C80D0F.js +1 -0
- package/dist/webui/assets/connect-BM7yGLAl.js +2 -0
- package/dist/webui/assets/createLucideIcon-Cv-_CLkr.js +1 -0
- package/dist/webui/assets/debug-C8d57uIb.js +1 -0
- package/dist/webui/assets/directories-DkJnb01t.js +1 -0
- package/dist/webui/assets/dist-B7BqKb_s.js +1 -0
- package/dist/webui/assets/dist-CXZZv-cf.js +41 -0
- package/dist/webui/assets/dist-ChMQZgJB.js +1 -0
- package/dist/webui/assets/dist-DQ6Xm99Z.js +1 -0
- package/dist/webui/assets/duration-field-w-qiOS_S.js +1 -0
- package/dist/webui/assets/general-2HmkyF5T.js +1 -0
- package/dist/webui/assets/health-D6tv4ioy.js +1 -0
- package/dist/webui/assets/index-NlorOk2I.js +11 -0
- package/dist/webui/assets/index-UQKt4Igp.css +2 -0
- package/dist/webui/assets/input-BggK3IOz.js +1 -0
- package/dist/webui/assets/jobs-Do8vAIqy.js +1 -0
- package/dist/webui/assets/library-B1r1nAY-.js +1 -0
- package/dist/webui/assets/loader-circle-D988WNxu.js +1 -0
- package/dist/webui/assets/logs-_rm8bxf-.js +1 -0
- package/dist/webui/assets/number-field-CeKyqI7R.js +1 -0
- package/dist/webui/assets/react-dom-DtIef6y6.js +1 -0
- package/dist/webui/assets/required-indicator-Ba9NOQEP.js +1 -0
- package/dist/webui/assets/routes-Djgf7dZI.js +1 -0
- package/dist/webui/assets/search-DGY0ui92.js +1 -0
- package/dist/webui/assets/select-BzZ418Yt.js +1 -0
- package/dist/webui/assets/select-field-DsBowTDT.js +1 -0
- package/dist/webui/assets/settings-B4G8vHXc.js +1 -0
- package/dist/webui/assets/sidebar-Qy-rYdhU.js +5 -0
- package/dist/webui/assets/submit-button-Bx2Dvr03.js +1 -0
- package/dist/webui/assets/switch-CttdmVGp.js +1 -0
- package/dist/webui/assets/switch-field-p-JPVVvW.js +1 -0
- package/dist/webui/assets/table-Bs6CQscS.js +1 -0
- package/dist/webui/assets/{test-tube-CbcievIk.js → test-tube-DD9Yz2bZ.js} +1 -1
- package/dist/webui/assets/text-field-B0a3dEGb.js +1 -0
- package/dist/webui/assets/time-KFQKyrl-.js +1 -0
- package/dist/webui/assets/trackers-DG-YCaaO.js +7 -0
- package/dist/webui/assets/{trash-D083IWKI.js → trash-PHXIGUCt.js} +1 -1
- package/dist/webui/assets/use-settings-form-submit-CDmMUcwW.js +57 -0
- package/dist/webui/assets/useSelector-BoN-mufS.js +2 -0
- package/dist/webui/assets/utils-P-unlvb4.js +1 -0
- package/dist/webui/assets/with-selector-fbK2t2oY.js +1 -0
- package/dist/webui/index.html +12 -14
- package/node_modules/@cross-seed/shared/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@cross-seed/shared/package.json +6 -2
- package/node_modules/zod/README.md +30 -20
- 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 +21 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/locales/package.json +2 -1
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/mini/package.json +2 -1
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- 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/error.test.ts +35 -0
- 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/object.test.ts +8 -11
- 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 +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +60 -45
- package/node_modules/zod/src/v4/classic/external.ts +15 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +389 -88
- 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 +16 -10
- package/node_modules/zod/src/v4/classic/schemas.ts +863 -335
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +29 -2
- 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/catch.test.ts +328 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +144 -2
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +4 -4
- 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 +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +31 -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 +90 -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 +291 -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 +324 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +743 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +37 -6
- 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 +1 -2
- 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 +23 -4
- 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 +67 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- 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/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -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 +19 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +138 -7
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +378 -12
- 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 +156 -13
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +71 -1
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +71 -1
- 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 +69 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +269 -16
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +126 -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 +123 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +269 -4
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +48 -7
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1948 -205
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +17 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +330 -2
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +93 -2
- 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 +111 -34
- package/node_modules/zod/src/v4/core/checks.ts +120 -147
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +116 -24
- package/node_modules/zod/src/v4/core/doc.ts +17 -9
- package/node_modules/zod/src/v4/core/errors.ts +138 -43
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +440 -173
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +167 -53
- package/node_modules/zod/src/v4/core/regexes.ts +50 -16
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +1219 -531
- 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/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -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/uz.test.ts +22 -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 +58 -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 +288 -44
- package/node_modules/zod/src/v4/core/util.ts +506 -179
- 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 +5 -0
- package/node_modules/zod/src/v4/locales/az.ts +5 -0
- package/node_modules/zod/src/v4/locales/be.ts +12 -0
- package/node_modules/zod/src/v4/locales/bg.ts +5 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +5 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +5 -0
- package/node_modules/zod/src/v4/locales/da.ts +7 -2
- package/node_modules/zod/src/v4/locales/de.ts +5 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +21 -4
- package/node_modules/zod/src/v4/locales/eo.ts +5 -0
- package/node_modules/zod/src/v4/locales/es.ts +4 -0
- package/node_modules/zod/src/v4/locales/fa.ts +5 -0
- package/node_modules/zod/src/v4/locales/fi.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr.ts +41 -18
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +8 -1
- 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 +5 -0
- package/node_modules/zod/src/v4/locales/hy.ts +11 -0
- package/node_modules/zod/src/v4/locales/id.ts +5 -0
- package/node_modules/zod/src/v4/locales/index.ts +14 -0
- package/node_modules/zod/src/v4/locales/is.ts +5 -0
- package/node_modules/zod/src/v4/locales/it.ts +6 -1
- package/node_modules/zod/src/v4/locales/ja.ts +5 -0
- package/node_modules/zod/src/v4/locales/ka.ts +13 -8
- package/node_modules/zod/src/v4/locales/km.ts +5 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +5 -0
- package/node_modules/zod/src/v4/locales/lt.ts +4 -0
- package/node_modules/zod/src/v4/locales/mk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ms.ts +5 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +5 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +7 -2
- package/node_modules/zod/src/v4/locales/ota.ts +5 -0
- package/node_modules/zod/src/v4/locales/pl.ts +5 -0
- package/node_modules/zod/src/v4/locales/ps.ts +5 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +101 -58
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +12 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +5 -0
- package/node_modules/zod/src/v4/locales/sv.ts +7 -2
- package/node_modules/zod/src/v4/locales/ta.ts +5 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +5 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +5 -0
- package/node_modules/zod/src/v4/locales/uk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ur.ts +5 -0
- package/node_modules/zod/src/v4/locales/uz.ts +4 -0
- package/node_modules/zod/src/v4/locales/vi.ts +5 -0
- package/node_modules/zod/src/v4/locales/yo.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +13 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +214 -79
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +54 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- 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 +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +187 -4
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +74 -9
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +67 -1
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +49 -0
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- 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/package.json +2 -1
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -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 +19 -0
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- 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 +62 -34
- 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 +44 -35
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.d.cts +6 -2
- package/node_modules/zod/v4/classic/external.d.ts +6 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +394 -78
- package/node_modules/zod/v4/classic/from-json-schema.js +375 -78
- 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 +2 -1
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +629 -225
- package/node_modules/zod/v4/classic/schemas.d.cts +104 -27
- package/node_modules/zod/v4/classic/schemas.d.ts +104 -27
- package/node_modules/zod/v4/classic/schemas.js +601 -223
- package/node_modules/zod/v4/core/api.cjs +73 -26
- package/node_modules/zod/v4/core/api.d.cts +40 -9
- package/node_modules/zod/v4/core/api.d.ts +40 -9
- package/node_modules/zod/v4/core/api.js +51 -26
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.d.cts +30 -14
- package/node_modules/zod/v4/core/checks.d.ts +30 -14
- package/node_modules/zod/v4/core/checks.js +68 -127
- 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 +104 -20
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +87 -22
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +146 -42
- package/node_modules/zod/v4/core/errors.d.cts +5 -0
- package/node_modules/zod/v4/core/errors.d.ts +5 -0
- package/node_modules/zod/v4/core/errors.js +127 -42
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +454 -173
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +413 -175
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- 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 +2 -1
- package/node_modules/zod/v4/core/parse.cjs +151 -49
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +130 -48
- package/node_modules/zod/v4/core/regexes.cjs +61 -18
- package/node_modules/zod/v4/core/regexes.d.cts +11 -0
- package/node_modules/zod/v4/core/regexes.d.ts +11 -0
- package/node_modules/zod/v4/core/regexes.js +39 -16
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +957 -382
- package/node_modules/zod/v4/core/schemas.d.cts +154 -25
- package/node_modules/zod/v4/core/schemas.d.ts +154 -25
- package/node_modules/zod/v4/core/schemas.js +925 -382
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +275 -40
- package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.js +253 -39
- package/node_modules/zod/v4/core/util.cjs +428 -174
- package/node_modules/zod/v4/core/util.d.cts +82 -1
- package/node_modules/zod/v4/core/util.d.ts +82 -1
- package/node_modules/zod/v4/core/util.js +397 -175
- 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 +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -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 +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- 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 +20 -4
- package/node_modules/zod/v4/locales/en.js +20 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +38 -17
- package/node_modules/zod/v4/locales/fr.js +38 -17
- 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 +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +49 -1
- package/node_modules/zod/v4/locales/index.d.cts +14 -0
- package/node_modules/zod/v4/locales/index.d.ts +14 -0
- package/node_modules/zod/v4/locales/index.js +14 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +6 -1
- package/node_modules/zod/v4/locales/it.js +6 -1
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +13 -8
- package/node_modules/zod/v4/locales/ka.js +13 -8
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -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 +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- 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 +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/package.json +2 -1
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- 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 +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- 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 +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- 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 +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +4 -0
- package/node_modules/zod/v4/locales/uz.js +4 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- 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 +19 -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 +33 -1
- package/node_modules/zod/v4/mini/external.d.cts +6 -2
- package/node_modules/zod/v4/mini/external.d.ts +6 -2
- package/node_modules/zod/v4/mini/external.js +3 -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 +19 -0
- package/node_modules/zod/v4/mini/package.json +2 -1
- package/node_modules/zod/v4/mini/parse.cjs +22 -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 +151 -50
- package/node_modules/zod/v4/mini/schemas.d.cts +75 -22
- package/node_modules/zod/v4/mini/schemas.d.ts +75 -22
- package/node_modules/zod/v4/mini/schemas.js +125 -48
- package/node_modules/zod/v4/package.json +2 -1
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/node_modules/zod/v4-mini/package.json +2 -1
- package/package.json +16 -14
- package/dist/trpc/routers/searchees.d.ts +0 -51
- package/dist/trpc/routers/searchees.js +0 -156
- package/dist/trpc/routers/searchees.js.map +0 -1
- package/dist/webui/assets/ClientOnly-CzZIsGML.js +0 -1
- package/dist/webui/assets/DeleteOption-dxKSbv6N.js +0 -1
- package/dist/webui/assets/FieldInfo-FLjtPgL4.js +0 -1
- package/dist/webui/assets/Page-C7KClZ28.js +0 -1
- package/dist/webui/assets/array-field-DGB7Lbh7.js +0 -1
- package/dist/webui/assets/badge-hukNSIir.js +0 -1
- package/dist/webui/assets/button-1cIaa9Lf.js +0 -1
- package/dist/webui/assets/check-CUrWQ2C7.js +0 -1
- package/dist/webui/assets/chevron-down-CVVogpPh.js +0 -1
- package/dist/webui/assets/clients-CHdgqO4r.js +0 -1
- package/dist/webui/assets/connect-Cr6Q3W8U.js +0 -2
- package/dist/webui/assets/createLucideIcon-zYRS_Hrv.js +0 -1
- package/dist/webui/assets/debug-CEmoQ2W_.js +0 -1
- package/dist/webui/assets/directories-CNuHKfHz.js +0 -1
- package/dist/webui/assets/dist-Bbmh5Du9.js +0 -1
- package/dist/webui/assets/dist-DhH_lYkz.js +0 -1
- package/dist/webui/assets/dist-DzdkRn7I.js +0 -1
- package/dist/webui/assets/dist-b2njvUJz.js +0 -41
- package/dist/webui/assets/dist-d-Lt00zD.js +0 -1
- package/dist/webui/assets/duration-field-CnlQcr37.js +0 -1
- package/dist/webui/assets/form-context-B-ekdUc0.js +0 -1
- package/dist/webui/assets/form-validation-context-CPAPOloL.js +0 -1
- package/dist/webui/assets/general-Cs8dEydJ.js +0 -1
- package/dist/webui/assets/health-DugF7R6A.js +0 -1
- package/dist/webui/assets/index-DhV1H9AB.css +0 -2
- package/dist/webui/assets/index-DinSQfHc.js +0 -11
- package/dist/webui/assets/input-CsfmMUT5.js +0 -1
- package/dist/webui/assets/jobs-Cr1xWWzM.js +0 -1
- package/dist/webui/assets/library-BNsctrbc.js +0 -1
- package/dist/webui/assets/loader-circle-BQbzoYGJ.js +0 -1
- package/dist/webui/assets/logs-C1l3cu_j.js +0 -1
- package/dist/webui/assets/number-field-Ce3QdLSz.js +0 -1
- package/dist/webui/assets/react-dom-mEftaaxx.js +0 -1
- package/dist/webui/assets/required-indicator-BXf2UzTH.js +0 -1
- package/dist/webui/assets/routes-Bw2nXmFg.js +0 -1
- package/dist/webui/assets/search-D9W5vk_0.js +0 -1
- package/dist/webui/assets/select-CZn10WME.js +0 -1
- package/dist/webui/assets/select-field-DozTirAZ.js +0 -1
- package/dist/webui/assets/settings-BXbhXNDK.js +0 -1
- package/dist/webui/assets/sidebar-y9WJu7Jw.js +0 -5
- package/dist/webui/assets/submit-button-CBOzR0f_.js +0 -1
- package/dist/webui/assets/switch-D4S9As9u.js +0 -1
- package/dist/webui/assets/switch-field-2E9ctvy_.js +0 -1
- package/dist/webui/assets/table-B1Y18B60.js +0 -1
- package/dist/webui/assets/text-field-DV4EP-I8.js +0 -1
- package/dist/webui/assets/time-DjUFOA4D.js +0 -1
- package/dist/webui/assets/trackers-ULhLxA6-.js +0 -7
- package/dist/webui/assets/use-settings-form-submit-D87nmJRy.js +0 -79
- package/dist/webui/assets/useBaseQuery-BvrWhgOK.js +0 -1
- package/dist/webui/assets/useRouterState-CZfD5Xdv.js +0 -1
- package/dist/webui/assets/useStore-CusP06SD.js +0 -1
- package/node_modules/zod/src/v4/core/config.ts +0 -15
|
@@ -22,9 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.stringbool = exports.meta = exports.describe = exports.ZodCustom = exports.ZodFunction = exports.ZodPromise = exports.ZodLazy = exports.ZodTemplateLiteral = exports.ZodReadonly = exports.ZodCodec = exports.ZodPipe = exports.ZodNaN = exports.ZodCatch = exports.ZodSuccess = exports.ZodNonOptional = exports.ZodPrefault = exports.ZodDefault = exports.ZodNullable = exports.ZodExactOptional = exports.ZodOptional = exports.ZodTransform = exports.ZodFile = void 0;
|
|
29
|
+
exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodXor = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodDate = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodBigIntFormat = exports.ZodBigInt = exports.ZodBoolean = exports.ZodNumberFormat = exports.ZodNumber = exports.ZodCustomStringFormat = exports.ZodJWT = exports.ZodIBAN = exports.ZodCreditCard = exports.ZodE164 = exports.ZodBase64URL = exports.ZodBase64 = exports.ZodCIDRv6 = exports.ZodCIDRv4 = exports.ZodIPv6 = exports.ZodMAC = exports.ZodIPv4 = exports.ZodKSUID = exports.ZodXID = exports.ZodULID = exports.ZodCUID2 = exports.ZodCUID = exports.ZodNanoID = exports.ZodEmoji = exports.ZodURL = exports.ZodUUID = exports.ZodGUID = exports.ZodEmail = exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = exports.ZodStringFormat = exports.ZodString = exports._ZodString = exports.ZodType = void 0;
|
|
30
|
+
exports.stringbool = exports.ZodInstanceOf = exports.meta = exports.describe = exports.ZodCustom = exports.ZodFunction = exports.ZodPromise = exports.ZodLazy = exports.ZodTemplateLiteral = exports.ZodReadonly = exports.ZodPreprocess = exports.ZodCodec = exports.ZodPipe = exports.ZodNaN = exports.ZodCatch = exports.ZodSuccess = exports.ZodNonOptional = exports.ZodPrefault = exports.ZodDefault = exports.ZodNullable = exports.ZodExactOptional = exports.ZodOptional = exports.ZodTransform = exports.ZodFile = exports.ZodLiteral = exports.ZodEnum = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = void 0;
|
|
28
31
|
exports.string = string;
|
|
29
32
|
exports.email = email;
|
|
30
33
|
exports.guid = guid;
|
|
@@ -49,10 +52,13 @@ exports.cidrv6 = cidrv6;
|
|
|
49
52
|
exports.base64 = base64;
|
|
50
53
|
exports.base64url = base64url;
|
|
51
54
|
exports.e164 = e164;
|
|
55
|
+
exports.creditCard = creditCard;
|
|
56
|
+
exports.iban = iban;
|
|
52
57
|
exports.jwt = jwt;
|
|
53
58
|
exports.stringFormat = stringFormat;
|
|
54
59
|
exports.hostname = hostname;
|
|
55
60
|
exports.hex = hex;
|
|
61
|
+
exports.currencyCode = currencyCode;
|
|
56
62
|
exports.hash = hash;
|
|
57
63
|
exports.number = number;
|
|
58
64
|
exports.int = int;
|
|
@@ -104,6 +110,7 @@ exports.catch = _catch;
|
|
|
104
110
|
exports.nan = nan;
|
|
105
111
|
exports.pipe = pipe;
|
|
106
112
|
exports.codec = codec;
|
|
113
|
+
exports.invertCodec = invertCodec;
|
|
107
114
|
exports.readonly = readonly;
|
|
108
115
|
exports.templateLiteral = templateLiteral;
|
|
109
116
|
exports.lazy = lazy;
|
|
@@ -122,159 +129,336 @@ exports.preprocess = preprocess;
|
|
|
122
129
|
const core = __importStar(require("../core/index.cjs"));
|
|
123
130
|
const index_js_1 = require("../core/index.cjs");
|
|
124
131
|
const processors = __importStar(require("../core/json-schema-processors.cjs"));
|
|
132
|
+
const regexes = __importStar(require("../core/regexes.cjs"));
|
|
125
133
|
const to_json_schema_js_1 = require("../core/to-json-schema.cjs");
|
|
134
|
+
const en_js_1 = __importDefault(require("../locales/en.cjs"));
|
|
126
135
|
const checks = __importStar(require("./checks.cjs"));
|
|
127
|
-
const iso = __importStar(require("./iso.cjs"));
|
|
128
136
|
const parse = __importStar(require("./parse.cjs"));
|
|
137
|
+
// Register English as the default locale on first ZodType construction. Hooked into the `ZodType` `$constructor` (rather than a top-level `config(en())` in `external.ts`) so bundlers honoring `sideEffects: false` can't tree-shake it out — see #5953, #5725. An explicit `z.config(z.locales.xx())` call wins regardless of order, since this only sets the default when none is present.
|
|
138
|
+
function _ensureDefaultLocale() {
|
|
139
|
+
if (!core.globalConfig.localeError)
|
|
140
|
+
core.config((0, en_js_1.default)());
|
|
141
|
+
}
|
|
142
|
+
// the default memoizer is read by the core container init, which runs before `ZodType.init`, so each container calls this first
|
|
143
|
+
function _ensureDefaultMemoizer() {
|
|
144
|
+
if (!core.globalConfig.memoizer)
|
|
145
|
+
core.config({ memoizer: core.memoizer() });
|
|
146
|
+
}
|
|
129
147
|
exports.ZodType = core.$constructor("ZodType", (inst, def) => {
|
|
148
|
+
_ensureDefaultLocale();
|
|
130
149
|
core.$ZodType.init(inst, def);
|
|
131
|
-
Object.assign(inst["~standard"], {
|
|
132
|
-
jsonSchema: {
|
|
133
|
-
input: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(inst, "input"),
|
|
134
|
-
output: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(inst, "output"),
|
|
135
|
-
},
|
|
136
|
-
});
|
|
137
|
-
inst.toJSONSchema = (0, to_json_schema_js_1.createToJSONSchemaMethod)(inst, {});
|
|
138
150
|
inst.def = def;
|
|
139
151
|
inst.type = def.type;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
152
|
+
return inst;
|
|
153
|
+
}, {
|
|
154
|
+
check(...chks) {
|
|
155
|
+
const def = this.def;
|
|
156
|
+
return this.clone(index_js_1.util.mergeDefs(def, {
|
|
144
157
|
checks: [
|
|
145
158
|
...(def.checks ?? []),
|
|
146
|
-
...
|
|
159
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
147
160
|
],
|
|
148
|
-
}), {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
161
|
+
}), { parent: true });
|
|
162
|
+
},
|
|
163
|
+
with(...chks) {
|
|
164
|
+
return this.check(...chks);
|
|
165
|
+
},
|
|
166
|
+
clone(def, params) {
|
|
167
|
+
return core.clone(this, def, params);
|
|
168
|
+
},
|
|
169
|
+
brand() {
|
|
170
|
+
return this;
|
|
171
|
+
},
|
|
172
|
+
register(reg, meta) {
|
|
173
|
+
reg.add(this, meta);
|
|
174
|
+
return this;
|
|
175
|
+
},
|
|
176
|
+
refine(check, params) {
|
|
177
|
+
return this.check(refine(check, params));
|
|
178
|
+
},
|
|
179
|
+
superRefine(refinement, params) {
|
|
180
|
+
return this.check(superRefine(refinement, params));
|
|
181
|
+
},
|
|
182
|
+
overwrite(fn) {
|
|
183
|
+
return this.check(checks.overwrite(fn));
|
|
184
|
+
},
|
|
185
|
+
optional() {
|
|
186
|
+
return optional(this);
|
|
187
|
+
},
|
|
188
|
+
exactOptional() {
|
|
189
|
+
return exactOptional(this);
|
|
190
|
+
},
|
|
191
|
+
nullable() {
|
|
192
|
+
return nullable(this);
|
|
193
|
+
},
|
|
194
|
+
nullish() {
|
|
195
|
+
return optional(nullable(this));
|
|
196
|
+
},
|
|
197
|
+
nonoptional(params) {
|
|
198
|
+
return nonoptional(this, params);
|
|
199
|
+
},
|
|
200
|
+
array() {
|
|
201
|
+
return array(this);
|
|
202
|
+
},
|
|
203
|
+
or(arg) {
|
|
204
|
+
return union([this, arg]);
|
|
205
|
+
},
|
|
206
|
+
and(arg) {
|
|
207
|
+
return intersection(this, arg);
|
|
208
|
+
},
|
|
209
|
+
transform(tx) {
|
|
210
|
+
return pipe(this, transform(tx));
|
|
211
|
+
},
|
|
212
|
+
default(d) {
|
|
213
|
+
return _default(this, d);
|
|
214
|
+
},
|
|
215
|
+
prefault(d) {
|
|
216
|
+
return prefault(this, d);
|
|
217
|
+
},
|
|
218
|
+
catch(params) {
|
|
219
|
+
return _catch(this, params);
|
|
220
|
+
},
|
|
221
|
+
pipe(target) {
|
|
222
|
+
return pipe(this, target);
|
|
223
|
+
},
|
|
224
|
+
readonly() {
|
|
225
|
+
return readonly(this);
|
|
226
|
+
},
|
|
227
|
+
describe(description) {
|
|
228
|
+
const cl = this.clone();
|
|
197
229
|
core.globalRegistry.add(cl, { description });
|
|
198
230
|
return cl;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
});
|
|
206
|
-
inst.meta = (...args) => {
|
|
207
|
-
if (args.length === 0) {
|
|
208
|
-
return core.globalRegistry.get(inst);
|
|
209
|
-
}
|
|
210
|
-
const cl = inst.clone();
|
|
231
|
+
},
|
|
232
|
+
meta(...args) {
|
|
233
|
+
// overloaded: meta() returns the registered metadata, meta(data) returns a clone with `data` registered. The mapped type picks up the second overload, so we accept variadic any-args and return `any` to satisfy both at runtime.
|
|
234
|
+
if (args.length === 0)
|
|
235
|
+
return core.globalRegistry.get(this);
|
|
236
|
+
const cl = this.clone();
|
|
211
237
|
core.globalRegistry.add(cl, args[0]);
|
|
212
238
|
return cl;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
239
|
+
},
|
|
240
|
+
isOptional() {
|
|
241
|
+
return this.safeParse(undefined).success;
|
|
242
|
+
},
|
|
243
|
+
isNullable() {
|
|
244
|
+
return this.safeParse(null).success;
|
|
245
|
+
},
|
|
246
|
+
apply(fn, ...args) {
|
|
247
|
+
return args.length === 0 ? fn(this) : fn(this, ...args);
|
|
248
|
+
},
|
|
249
|
+
// Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.
|
|
250
|
+
get "~standard"() {
|
|
251
|
+
return index_js_1.util.hide(this, "~standard", {
|
|
252
|
+
...core.standardProps(this),
|
|
253
|
+
jsonSchema: {
|
|
254
|
+
input: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "input"),
|
|
255
|
+
output: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "output"),
|
|
256
|
+
},
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
set "~standard"(value) {
|
|
260
|
+
index_js_1.util.own(this, "~standard", value);
|
|
261
|
+
},
|
|
262
|
+
parse: function _parse(data, params) {
|
|
263
|
+
return parse.parse(this, data, params, { callee: _parse });
|
|
264
|
+
},
|
|
265
|
+
parseAsync: async function _parseAsync(data, params) {
|
|
266
|
+
return await parse.parseAsync(this, data, params, { callee: _parseAsync });
|
|
267
|
+
},
|
|
268
|
+
safeParse(data, params) {
|
|
269
|
+
return parse.safeParse(this, data, params);
|
|
270
|
+
},
|
|
271
|
+
async safeParseAsync(data, params) {
|
|
272
|
+
return parse.safeParseAsync(this, data, params);
|
|
273
|
+
},
|
|
274
|
+
// `spa` is an alias: same function object as `safeParseAsync`, as before.
|
|
275
|
+
get spa() {
|
|
276
|
+
return this?.safeParseAsync;
|
|
277
|
+
},
|
|
278
|
+
set spa(value) {
|
|
279
|
+
index_js_1.util.own(this, "spa", value);
|
|
280
|
+
},
|
|
281
|
+
validate(data, params) {
|
|
282
|
+
return parse.validate(this, data, params);
|
|
283
|
+
},
|
|
284
|
+
validateAsync(data, params) {
|
|
285
|
+
return parse.validateAsync(this, data, params);
|
|
286
|
+
},
|
|
287
|
+
encode: function _encode(data, params) {
|
|
288
|
+
return parse.encode(this, data, params, { callee: _encode });
|
|
289
|
+
},
|
|
290
|
+
decode: function _decode(data, params) {
|
|
291
|
+
return parse.decode(this, data, params, { callee: _decode });
|
|
292
|
+
},
|
|
293
|
+
encodeAsync: async function _encodeAsync(data, params) {
|
|
294
|
+
return await parse.encodeAsync(this, data, params, { callee: _encodeAsync });
|
|
295
|
+
},
|
|
296
|
+
decodeAsync: async function _decodeAsync(data, params) {
|
|
297
|
+
return await parse.decodeAsync(this, data, params, { callee: _decodeAsync });
|
|
298
|
+
},
|
|
299
|
+
safeEncode(data, params) {
|
|
300
|
+
return parse.safeEncode(this, data, params);
|
|
301
|
+
},
|
|
302
|
+
safeDecode(data, params) {
|
|
303
|
+
return parse.safeDecode(this, data, params);
|
|
304
|
+
},
|
|
305
|
+
async safeEncodeAsync(data, params) {
|
|
306
|
+
return parse.safeEncodeAsync(this, data, params);
|
|
307
|
+
},
|
|
308
|
+
async safeDecodeAsync(data, params) {
|
|
309
|
+
return parse.safeDecodeAsync(this, data, params);
|
|
310
|
+
},
|
|
311
|
+
toJSONSchema(params) {
|
|
312
|
+
return (0, to_json_schema_js_1.createToJSONSchemaMethod)(this, {})(params);
|
|
313
|
+
},
|
|
314
|
+
// Reads through to the registry on every access, so it must not cache.
|
|
315
|
+
get description() {
|
|
316
|
+
return core.globalRegistry.get(this)?.description;
|
|
317
|
+
},
|
|
318
|
+
// No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.
|
|
319
|
+
get _def() {
|
|
320
|
+
return this._zod.def;
|
|
321
|
+
},
|
|
219
322
|
});
|
|
220
323
|
/** @internal */
|
|
221
324
|
exports._ZodString = core.$constructor("_ZodString", (inst, def) => {
|
|
222
325
|
core.$ZodString.init(inst, def);
|
|
223
326
|
exports.ZodType.init(inst, def);
|
|
224
327
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
inst
|
|
228
|
-
inst
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
328
|
+
},
|
|
329
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
330
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
331
|
+
minLength: (inst) => processors.aggregateChecks(inst).minimum ?? null,
|
|
332
|
+
maxLength: (inst) => processors.aggregateChecks(inst).maximum ?? null,
|
|
333
|
+
}, {
|
|
334
|
+
regex(...args) {
|
|
335
|
+
return this.check(checks.regex(...args));
|
|
336
|
+
},
|
|
337
|
+
includes(...args) {
|
|
338
|
+
return this.check(checks.includes(...args));
|
|
339
|
+
},
|
|
340
|
+
startsWith(...args) {
|
|
341
|
+
return this.check(checks.startsWith(...args));
|
|
342
|
+
},
|
|
343
|
+
endsWith(...args) {
|
|
344
|
+
return this.check(checks.endsWith(...args));
|
|
345
|
+
},
|
|
346
|
+
min(...args) {
|
|
347
|
+
return this.check(checks.minLength(...args));
|
|
348
|
+
},
|
|
349
|
+
max(...args) {
|
|
350
|
+
return this.check(checks.maxLength(...args));
|
|
351
|
+
},
|
|
352
|
+
length(...args) {
|
|
353
|
+
return this.check(checks.length(...args));
|
|
354
|
+
},
|
|
355
|
+
nonempty(...args) {
|
|
356
|
+
return this.check(checks.minLength(1, ...args));
|
|
357
|
+
},
|
|
358
|
+
lowercase(params) {
|
|
359
|
+
return this.check(checks.lowercase(params));
|
|
360
|
+
},
|
|
361
|
+
uppercase(params) {
|
|
362
|
+
return this.check(checks.uppercase(params));
|
|
363
|
+
},
|
|
364
|
+
trim() {
|
|
365
|
+
return this.check(checks.trim());
|
|
366
|
+
},
|
|
367
|
+
normalize(...args) {
|
|
368
|
+
return this.check(checks.normalize(...args));
|
|
369
|
+
},
|
|
370
|
+
toLowerCase() {
|
|
371
|
+
return this.check(checks.toLowerCase());
|
|
372
|
+
},
|
|
373
|
+
toUpperCase() {
|
|
374
|
+
return this.check(checks.toUpperCase());
|
|
375
|
+
},
|
|
376
|
+
slugify() {
|
|
377
|
+
return this.check(checks.slugify());
|
|
378
|
+
},
|
|
379
|
+
}));
|
|
247
380
|
exports.ZodString = core.$constructor("ZodString", (inst, def) => {
|
|
248
381
|
core.$ZodString.init(inst, def);
|
|
249
382
|
exports._ZodString.init(inst, def);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
383
|
+
}, {
|
|
384
|
+
email(params) {
|
|
385
|
+
return this.check(core._email(exports.ZodEmail, params));
|
|
386
|
+
},
|
|
387
|
+
url(params) {
|
|
388
|
+
return this.check(core._url(exports.ZodURL, params));
|
|
389
|
+
},
|
|
390
|
+
jwt(params) {
|
|
391
|
+
return this.check(core._jwt(exports.ZodJWT, params));
|
|
392
|
+
},
|
|
393
|
+
emoji(params) {
|
|
394
|
+
return this.check(core._emoji(exports.ZodEmoji, params));
|
|
395
|
+
},
|
|
396
|
+
guid(params) {
|
|
397
|
+
return this.check(core._guid(exports.ZodGUID, params));
|
|
398
|
+
},
|
|
399
|
+
uuid(params) {
|
|
400
|
+
return this.check(core._uuid(exports.ZodUUID, params));
|
|
401
|
+
},
|
|
402
|
+
uuidv4(params) {
|
|
403
|
+
return this.check(core._uuidv4(exports.ZodUUID, params));
|
|
404
|
+
},
|
|
405
|
+
uuidv6(params) {
|
|
406
|
+
return this.check(core._uuidv6(exports.ZodUUID, params));
|
|
407
|
+
},
|
|
408
|
+
uuidv7(params) {
|
|
409
|
+
return this.check(core._uuidv7(exports.ZodUUID, params));
|
|
410
|
+
},
|
|
411
|
+
nanoid(params) {
|
|
412
|
+
return this.check(core._nanoid(exports.ZodNanoID, params));
|
|
413
|
+
},
|
|
414
|
+
cuid(params) {
|
|
415
|
+
return this.check(core._cuid(exports.ZodCUID, params));
|
|
416
|
+
},
|
|
417
|
+
cuid2(params) {
|
|
418
|
+
return this.check(core._cuid2(exports.ZodCUID2, params));
|
|
419
|
+
},
|
|
420
|
+
ulid(params) {
|
|
421
|
+
return this.check(core._ulid(exports.ZodULID, params));
|
|
422
|
+
},
|
|
423
|
+
base64(params) {
|
|
424
|
+
return this.check(core._base64(exports.ZodBase64, params));
|
|
425
|
+
},
|
|
426
|
+
base64url(params) {
|
|
427
|
+
return this.check(core._base64url(exports.ZodBase64URL, params));
|
|
428
|
+
},
|
|
429
|
+
xid(params) {
|
|
430
|
+
return this.check(core._xid(exports.ZodXID, params));
|
|
431
|
+
},
|
|
432
|
+
ksuid(params) {
|
|
433
|
+
return this.check(core._ksuid(exports.ZodKSUID, params));
|
|
434
|
+
},
|
|
435
|
+
ipv4(params) {
|
|
436
|
+
return this.check(core._ipv4(exports.ZodIPv4, params));
|
|
437
|
+
},
|
|
438
|
+
ipv6(params) {
|
|
439
|
+
return this.check(core._ipv6(exports.ZodIPv6, params));
|
|
440
|
+
},
|
|
441
|
+
cidrv4(params) {
|
|
442
|
+
return this.check(core._cidrv4(exports.ZodCIDRv4, params));
|
|
443
|
+
},
|
|
444
|
+
cidrv6(params) {
|
|
445
|
+
return this.check(core._cidrv6(exports.ZodCIDRv6, params));
|
|
446
|
+
},
|
|
447
|
+
e164(params) {
|
|
448
|
+
return this.check(core._e164(exports.ZodE164, params));
|
|
449
|
+
},
|
|
450
|
+
datetime(params) {
|
|
451
|
+
return this.check(core._isoDateTime(exports.ZodISODateTime, params));
|
|
452
|
+
},
|
|
453
|
+
date(params) {
|
|
454
|
+
return this.check(core._isoDate(exports.ZodISODate, params));
|
|
455
|
+
},
|
|
456
|
+
time(params) {
|
|
457
|
+
return this.check(core._isoTime(exports.ZodISOTime, params));
|
|
458
|
+
},
|
|
459
|
+
duration(params) {
|
|
460
|
+
return this.check(core._isoDuration(exports.ZodISODuration, params));
|
|
461
|
+
},
|
|
278
462
|
});
|
|
279
463
|
function string(params) {
|
|
280
464
|
return core._string(exports.ZodString, params);
|
|
@@ -283,6 +467,22 @@ exports.ZodStringFormat = core.$constructor("ZodStringFormat", (inst, def) => {
|
|
|
283
467
|
core.$ZodStringFormat.init(inst, def);
|
|
284
468
|
exports._ZodString.init(inst, def);
|
|
285
469
|
});
|
|
470
|
+
exports.ZodISODateTime = core.$constructor("ZodISODateTime", (inst, def) => {
|
|
471
|
+
core.$ZodISODateTime.init(inst, def);
|
|
472
|
+
exports.ZodStringFormat.init(inst, def);
|
|
473
|
+
});
|
|
474
|
+
exports.ZodISODate = core.$constructor("ZodISODate", (inst, def) => {
|
|
475
|
+
core.$ZodISODate.init(inst, def);
|
|
476
|
+
exports.ZodStringFormat.init(inst, def);
|
|
477
|
+
});
|
|
478
|
+
exports.ZodISOTime = core.$constructor("ZodISOTime", (inst, def) => {
|
|
479
|
+
core.$ZodISOTime.init(inst, def);
|
|
480
|
+
exports.ZodStringFormat.init(inst, def);
|
|
481
|
+
});
|
|
482
|
+
exports.ZodISODuration = core.$constructor("ZodISODuration", (inst, def) => {
|
|
483
|
+
core.$ZodISODuration.init(inst, def);
|
|
484
|
+
exports.ZodStringFormat.init(inst, def);
|
|
485
|
+
});
|
|
286
486
|
exports.ZodEmail = core.$constructor("ZodEmail", (inst, def) => {
|
|
287
487
|
// ZodStringFormat.init(inst, def);
|
|
288
488
|
core.$ZodEmail.init(inst, def);
|
|
@@ -328,8 +528,8 @@ function url(params) {
|
|
|
328
528
|
}
|
|
329
529
|
function httpUrl(params) {
|
|
330
530
|
return core._url(exports.ZodURL, {
|
|
331
|
-
protocol:
|
|
332
|
-
hostname:
|
|
531
|
+
protocol: regexes.httpProtocol,
|
|
532
|
+
hostname: regexes.domain,
|
|
333
533
|
...index_js_1.util.normalizeParams(params),
|
|
334
534
|
});
|
|
335
535
|
}
|
|
@@ -349,11 +549,23 @@ exports.ZodNanoID = core.$constructor("ZodNanoID", (inst, def) => {
|
|
|
349
549
|
function nanoid(params) {
|
|
350
550
|
return core._nanoid(exports.ZodNanoID, params);
|
|
351
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
554
|
+
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
555
|
+
* See https://github.com/paralleldrive/cuid.
|
|
556
|
+
*/
|
|
352
557
|
exports.ZodCUID = core.$constructor("ZodCUID", (inst, def) => {
|
|
353
558
|
// ZodStringFormat.init(inst, def);
|
|
354
559
|
core.$ZodCUID.init(inst, def);
|
|
355
560
|
exports.ZodStringFormat.init(inst, def);
|
|
356
561
|
});
|
|
562
|
+
/**
|
|
563
|
+
* Validates a CUID v1 string.
|
|
564
|
+
*
|
|
565
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
566
|
+
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
567
|
+
* See https://github.com/paralleldrive/cuid.
|
|
568
|
+
*/
|
|
357
569
|
function cuid(params) {
|
|
358
570
|
return core._cuid(exports.ZodCUID, params);
|
|
359
571
|
}
|
|
@@ -451,6 +663,20 @@ exports.ZodE164 = core.$constructor("ZodE164", (inst, def) => {
|
|
|
451
663
|
function e164(params) {
|
|
452
664
|
return core._e164(exports.ZodE164, params);
|
|
453
665
|
}
|
|
666
|
+
exports.ZodCreditCard = core.$constructor("ZodCreditCard", (inst, def) => {
|
|
667
|
+
core.$ZodCreditCard.init(inst, def);
|
|
668
|
+
exports.ZodStringFormat.init(inst, def);
|
|
669
|
+
});
|
|
670
|
+
function creditCard(params) {
|
|
671
|
+
return core._creditCard(exports.ZodCreditCard, params);
|
|
672
|
+
}
|
|
673
|
+
exports.ZodIBAN = core.$constructor("ZodIBAN", (inst, def) => {
|
|
674
|
+
core.$ZodIBAN.init(inst, def);
|
|
675
|
+
exports.ZodStringFormat.init(inst, def);
|
|
676
|
+
});
|
|
677
|
+
function iban(params) {
|
|
678
|
+
return core._iban(exports.ZodIBAN, params);
|
|
679
|
+
}
|
|
454
680
|
exports.ZodJWT = core.$constructor("ZodJWT", (inst, def) => {
|
|
455
681
|
// ZodStringFormat.init(inst, def);
|
|
456
682
|
core.$ZodJWT.init(inst, def);
|
|
@@ -468,10 +694,13 @@ function stringFormat(format, fnOrRegex, _params = {}) {
|
|
|
468
694
|
return core._stringFormat(exports.ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
469
695
|
}
|
|
470
696
|
function hostname(_params) {
|
|
471
|
-
return core._stringFormat(exports.ZodCustomStringFormat, "hostname",
|
|
697
|
+
return core._stringFormat(exports.ZodCustomStringFormat, "hostname", regexes.hostname, _params);
|
|
472
698
|
}
|
|
473
699
|
function hex(_params) {
|
|
474
|
-
return core._stringFormat(exports.ZodCustomStringFormat, "hex",
|
|
700
|
+
return core._stringFormat(exports.ZodCustomStringFormat, "hex", regexes.hex, _params);
|
|
701
|
+
}
|
|
702
|
+
function currencyCode(_params) {
|
|
703
|
+
return core._stringFormat(exports.ZodCustomStringFormat, "currency_code", regexes.currencyCode, _params);
|
|
475
704
|
}
|
|
476
705
|
function hash(alg, params) {
|
|
477
706
|
const enc = params?.enc ?? "hex";
|
|
@@ -485,31 +714,69 @@ exports.ZodNumber = core.$constructor("ZodNumber", (inst, def) => {
|
|
|
485
714
|
core.$ZodNumber.init(inst, def);
|
|
486
715
|
exports.ZodType.init(inst, def);
|
|
487
716
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
|
|
488
|
-
inst.gt = (value, params) => inst.check(checks.gt(value, params));
|
|
489
|
-
inst.gte = (value, params) => inst.check(checks.gte(value, params));
|
|
490
|
-
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
491
|
-
inst.lt = (value, params) => inst.check(checks.lt(value, params));
|
|
492
|
-
inst.lte = (value, params) => inst.check(checks.lte(value, params));
|
|
493
|
-
inst.max = (value, params) => inst.check(checks.lte(value, params));
|
|
494
|
-
inst.int = (params) => inst.check(int(params));
|
|
495
|
-
inst.safe = (params) => inst.check(int(params));
|
|
496
|
-
inst.positive = (params) => inst.check(checks.gt(0, params));
|
|
497
|
-
inst.nonnegative = (params) => inst.check(checks.gte(0, params));
|
|
498
|
-
inst.negative = (params) => inst.check(checks.lt(0, params));
|
|
499
|
-
inst.nonpositive = (params) => inst.check(checks.lte(0, params));
|
|
500
|
-
inst.multipleOf = (value, params) => inst.check(checks.multipleOf(value, params));
|
|
501
|
-
inst.step = (value, params) => inst.check(checks.multipleOf(value, params));
|
|
502
|
-
// inst.finite = (params) => inst.check(core.finite(params));
|
|
503
|
-
inst.finite = () => inst;
|
|
504
|
-
const bag = inst._zod.bag;
|
|
505
|
-
inst.minValue =
|
|
506
|
-
Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
507
|
-
inst.maxValue =
|
|
508
|
-
Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
509
|
-
inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5);
|
|
510
717
|
inst.isFinite = true;
|
|
511
|
-
|
|
512
|
-
|
|
718
|
+
},
|
|
719
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
720
|
+
minValue: (inst) => {
|
|
721
|
+
const { minimum, exclusiveMinimum } = processors.aggregateChecks(inst);
|
|
722
|
+
return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
|
|
723
|
+
},
|
|
724
|
+
maxValue: (inst) => {
|
|
725
|
+
const { maximum, exclusiveMaximum } = processors.aggregateChecks(inst);
|
|
726
|
+
return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);
|
|
727
|
+
},
|
|
728
|
+
isInt: (inst) => {
|
|
729
|
+
const { isInt, multipleOf } = processors.aggregateChecks(inst);
|
|
730
|
+
return !!isInt || !!multipleOf?.some(Number.isSafeInteger);
|
|
731
|
+
},
|
|
732
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
733
|
+
}, {
|
|
734
|
+
gt(value, params) {
|
|
735
|
+
return this.check(checks.gt(value, params));
|
|
736
|
+
},
|
|
737
|
+
gte(value, params) {
|
|
738
|
+
return this.check(checks.gte(value, params));
|
|
739
|
+
},
|
|
740
|
+
min(value, params) {
|
|
741
|
+
return this.check(checks.gte(value, params));
|
|
742
|
+
},
|
|
743
|
+
lt(value, params) {
|
|
744
|
+
return this.check(checks.lt(value, params));
|
|
745
|
+
},
|
|
746
|
+
lte(value, params) {
|
|
747
|
+
return this.check(checks.lte(value, params));
|
|
748
|
+
},
|
|
749
|
+
max(value, params) {
|
|
750
|
+
return this.check(checks.lte(value, params));
|
|
751
|
+
},
|
|
752
|
+
int(params) {
|
|
753
|
+
return this.check(int(params));
|
|
754
|
+
},
|
|
755
|
+
safe(params) {
|
|
756
|
+
return this.check(int(params));
|
|
757
|
+
},
|
|
758
|
+
positive(params) {
|
|
759
|
+
return this.check(checks.gt(0, params));
|
|
760
|
+
},
|
|
761
|
+
nonnegative(params) {
|
|
762
|
+
return this.check(checks.gte(0, params));
|
|
763
|
+
},
|
|
764
|
+
negative(params) {
|
|
765
|
+
return this.check(checks.lt(0, params));
|
|
766
|
+
},
|
|
767
|
+
nonpositive(params) {
|
|
768
|
+
return this.check(checks.lte(0, params));
|
|
769
|
+
},
|
|
770
|
+
multipleOf(value, params) {
|
|
771
|
+
return this.check(checks.multipleOf(value, params));
|
|
772
|
+
},
|
|
773
|
+
step(value, params) {
|
|
774
|
+
return this.check(checks.multipleOf(value, params));
|
|
775
|
+
},
|
|
776
|
+
finite() {
|
|
777
|
+
return this;
|
|
778
|
+
},
|
|
779
|
+
}));
|
|
513
780
|
function number(params) {
|
|
514
781
|
return core._number(exports.ZodNumber, params);
|
|
515
782
|
}
|
|
@@ -544,24 +811,46 @@ exports.ZodBigInt = core.$constructor("ZodBigInt", (inst, def) => {
|
|
|
544
811
|
core.$ZodBigInt.init(inst, def);
|
|
545
812
|
exports.ZodType.init(inst, def);
|
|
546
813
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
814
|
+
},
|
|
815
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
816
|
+
minValue: (inst) => processors.aggregateChecks(inst).minimum ?? null,
|
|
817
|
+
maxValue: (inst) => processors.aggregateChecks(inst).maximum ?? null,
|
|
818
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
819
|
+
}, {
|
|
820
|
+
gte(value, params) {
|
|
821
|
+
return this.check(checks.gte(value, params));
|
|
822
|
+
},
|
|
823
|
+
min(value, params) {
|
|
824
|
+
return this.check(checks.gte(value, params));
|
|
825
|
+
},
|
|
826
|
+
gt(value, params) {
|
|
827
|
+
return this.check(checks.gt(value, params));
|
|
828
|
+
},
|
|
829
|
+
lt(value, params) {
|
|
830
|
+
return this.check(checks.lt(value, params));
|
|
831
|
+
},
|
|
832
|
+
lte(value, params) {
|
|
833
|
+
return this.check(checks.lte(value, params));
|
|
834
|
+
},
|
|
835
|
+
max(value, params) {
|
|
836
|
+
return this.check(checks.lte(value, params));
|
|
837
|
+
},
|
|
838
|
+
positive(params) {
|
|
839
|
+
return this.check(checks.gt(BigInt(0), params));
|
|
840
|
+
},
|
|
841
|
+
negative(params) {
|
|
842
|
+
return this.check(checks.lt(BigInt(0), params));
|
|
843
|
+
},
|
|
844
|
+
nonpositive(params) {
|
|
845
|
+
return this.check(checks.lte(BigInt(0), params));
|
|
846
|
+
},
|
|
847
|
+
nonnegative(params) {
|
|
848
|
+
return this.check(checks.gte(BigInt(0), params));
|
|
849
|
+
},
|
|
850
|
+
multipleOf(value, params) {
|
|
851
|
+
return this.check(checks.multipleOf(value, params));
|
|
852
|
+
},
|
|
853
|
+
}));
|
|
565
854
|
function bigint(params) {
|
|
566
855
|
return core._bigint(exports.ZodBigInt, params);
|
|
567
856
|
}
|
|
@@ -569,11 +858,9 @@ exports.ZodBigIntFormat = core.$constructor("ZodBigIntFormat", (inst, def) => {
|
|
|
569
858
|
core.$ZodBigIntFormat.init(inst, def);
|
|
570
859
|
exports.ZodBigInt.init(inst, def);
|
|
571
860
|
});
|
|
572
|
-
// int64
|
|
573
861
|
function int64(params) {
|
|
574
862
|
return core._int64(exports.ZodBigIntFormat, params);
|
|
575
863
|
}
|
|
576
|
-
// uint64
|
|
577
864
|
function uint64(params) {
|
|
578
865
|
return core._uint64(exports.ZodBigIntFormat, params);
|
|
579
866
|
}
|
|
@@ -639,23 +926,42 @@ exports.ZodDate = core.$constructor("ZodDate", (inst, def) => {
|
|
|
639
926
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);
|
|
640
927
|
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
641
928
|
inst.max = (value, params) => inst.check(checks.lte(value, params));
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
});
|
|
929
|
+
},
|
|
930
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
931
|
+
minDate: (inst) => {
|
|
932
|
+
const { minimum } = processors.aggregateChecks(inst);
|
|
933
|
+
return minimum ? new Date(minimum) : null;
|
|
934
|
+
},
|
|
935
|
+
maxDate: (inst) => {
|
|
936
|
+
const { maximum } = processors.aggregateChecks(inst);
|
|
937
|
+
return maximum ? new Date(maximum) : null;
|
|
938
|
+
},
|
|
939
|
+
}, {}));
|
|
646
940
|
function date(params) {
|
|
647
941
|
return core._date(exports.ZodDate, params);
|
|
648
942
|
}
|
|
649
943
|
exports.ZodArray = core.$constructor("ZodArray", (inst, def) => {
|
|
944
|
+
_ensureDefaultMemoizer();
|
|
650
945
|
core.$ZodArray.init(inst, def);
|
|
651
946
|
exports.ZodType.init(inst, def);
|
|
652
947
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
|
|
653
948
|
inst.element = def.element;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
949
|
+
}, {
|
|
950
|
+
min(n, params) {
|
|
951
|
+
return this.check(checks.minLength(n, params));
|
|
952
|
+
},
|
|
953
|
+
nonempty(params) {
|
|
954
|
+
return this.check(checks.minLength(1, params));
|
|
955
|
+
},
|
|
956
|
+
max(n, params) {
|
|
957
|
+
return this.check(checks.maxLength(n, params));
|
|
958
|
+
},
|
|
959
|
+
length(n, params) {
|
|
960
|
+
return this.check(checks.length(n, params));
|
|
961
|
+
},
|
|
962
|
+
unwrap() {
|
|
963
|
+
return this.element;
|
|
964
|
+
},
|
|
659
965
|
});
|
|
660
966
|
function array(element, params) {
|
|
661
967
|
return core._array(exports.ZodArray, element, params);
|
|
@@ -666,29 +972,55 @@ function keyof(schema) {
|
|
|
666
972
|
return _enum(Object.keys(shape));
|
|
667
973
|
}
|
|
668
974
|
exports.ZodObject = core.$constructor("ZodObject", (inst, def) => {
|
|
975
|
+
_ensureDefaultMemoizer();
|
|
669
976
|
core.$ZodObjectJIT.init(inst, def);
|
|
670
977
|
exports.ZodType.init(inst, def);
|
|
671
978
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);
|
|
672
|
-
index_js_1.util.
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
return index_js_1.util.
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
return index_js_1.util.
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
979
|
+
index_js_1.util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
|
|
980
|
+
}, {
|
|
981
|
+
keyof() {
|
|
982
|
+
return _enum(Object.keys(this._zod.def.shape));
|
|
983
|
+
},
|
|
984
|
+
catchall(catchall) {
|
|
985
|
+
// `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
|
|
986
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: catchall }));
|
|
987
|
+
},
|
|
988
|
+
passthrough() {
|
|
989
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
|
|
990
|
+
},
|
|
991
|
+
loose() {
|
|
992
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
|
|
993
|
+
},
|
|
994
|
+
strict() {
|
|
995
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: never() }));
|
|
996
|
+
},
|
|
997
|
+
strip() {
|
|
998
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: undefined }));
|
|
999
|
+
},
|
|
1000
|
+
extend(incoming) {
|
|
1001
|
+
return index_js_1.util.extend(this, incoming);
|
|
1002
|
+
},
|
|
1003
|
+
safeExtend(incoming) {
|
|
1004
|
+
return index_js_1.util.safeExtend(this, incoming);
|
|
1005
|
+
},
|
|
1006
|
+
merge(other) {
|
|
1007
|
+
return index_js_1.util.merge(this, other);
|
|
1008
|
+
},
|
|
1009
|
+
pick(mask) {
|
|
1010
|
+
return index_js_1.util.pick(this, mask);
|
|
1011
|
+
},
|
|
1012
|
+
omit(mask) {
|
|
1013
|
+
return index_js_1.util.omit(this, mask);
|
|
1014
|
+
},
|
|
1015
|
+
partial(...args) {
|
|
1016
|
+
return index_js_1.util.partial(exports.ZodOptional, this, args[0]);
|
|
1017
|
+
},
|
|
1018
|
+
exactPartial(...args) {
|
|
1019
|
+
return index_js_1.util.partial(exports.ZodExactOptional, this, args[0], "exactPartial");
|
|
1020
|
+
},
|
|
1021
|
+
required(...args) {
|
|
1022
|
+
return index_js_1.util.required(exports.ZodNonOptional, this, args[0]);
|
|
1023
|
+
},
|
|
692
1024
|
});
|
|
693
1025
|
function object(shape, params) {
|
|
694
1026
|
const def = {
|
|
@@ -754,7 +1086,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
754
1086
|
// const [options, params] = args;
|
|
755
1087
|
return new exports.ZodDiscriminatedUnion({
|
|
756
1088
|
type: "union",
|
|
757
|
-
options,
|
|
1089
|
+
options: options,
|
|
758
1090
|
discriminator,
|
|
759
1091
|
...index_js_1.util.normalizeParams(params),
|
|
760
1092
|
});
|
|
@@ -772,13 +1104,27 @@ function intersection(left, right) {
|
|
|
772
1104
|
});
|
|
773
1105
|
}
|
|
774
1106
|
exports.ZodTuple = core.$constructor("ZodTuple", (inst, def) => {
|
|
1107
|
+
_ensureDefaultMemoizer();
|
|
775
1108
|
core.$ZodTuple.init(inst, def);
|
|
776
1109
|
exports.ZodType.init(inst, def);
|
|
777
1110
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
1111
|
+
}, {
|
|
1112
|
+
rest(rest) {
|
|
1113
|
+
return this.clone({
|
|
1114
|
+
...this._zod.def,
|
|
1115
|
+
rest: rest,
|
|
1116
|
+
});
|
|
1117
|
+
},
|
|
1118
|
+
partial() {
|
|
1119
|
+
const def = this._zod.def;
|
|
1120
|
+
// a refinement was authored against the full arity; partialing would run it on a shorter array
|
|
1121
|
+
if (def.checks?.length)
|
|
1122
|
+
throw new Error(".partial() cannot be used on tuple schemas containing refinements");
|
|
1123
|
+
return this.clone({
|
|
1124
|
+
...def,
|
|
1125
|
+
items: def.items.map((item) => new exports.ZodOptional({ type: "optional", innerType: item })),
|
|
1126
|
+
});
|
|
1127
|
+
},
|
|
782
1128
|
});
|
|
783
1129
|
function tuple(items, _paramsOrRest, _params) {
|
|
784
1130
|
const hasRest = _paramsOrRest instanceof core.$ZodType;
|
|
@@ -792,6 +1138,7 @@ function tuple(items, _paramsOrRest, _params) {
|
|
|
792
1138
|
});
|
|
793
1139
|
}
|
|
794
1140
|
exports.ZodRecord = core.$constructor("ZodRecord", (inst, def) => {
|
|
1141
|
+
_ensureDefaultMemoizer();
|
|
795
1142
|
core.$ZodRecord.init(inst, def);
|
|
796
1143
|
exports.ZodType.init(inst, def);
|
|
797
1144
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);
|
|
@@ -799,6 +1146,15 @@ exports.ZodRecord = core.$constructor("ZodRecord", (inst, def) => {
|
|
|
799
1146
|
inst.valueType = def.valueType;
|
|
800
1147
|
});
|
|
801
1148
|
function record(keyType, valueType, params) {
|
|
1149
|
+
// v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
|
|
1150
|
+
if (!valueType || !valueType._zod) {
|
|
1151
|
+
return new exports.ZodRecord({
|
|
1152
|
+
type: "record",
|
|
1153
|
+
keyType: string(),
|
|
1154
|
+
valueType: keyType,
|
|
1155
|
+
...index_js_1.util.normalizeParams(valueType),
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
802
1158
|
return new exports.ZodRecord({
|
|
803
1159
|
type: "record",
|
|
804
1160
|
keyType,
|
|
@@ -808,13 +1164,12 @@ function record(keyType, valueType, params) {
|
|
|
808
1164
|
}
|
|
809
1165
|
// type alksjf = core.output<core.$ZodRecordKey>;
|
|
810
1166
|
function partialRecord(keyType, valueType, params) {
|
|
811
|
-
const k = core.clone(keyType);
|
|
812
|
-
k._zod.values = undefined;
|
|
813
1167
|
return new exports.ZodRecord({
|
|
814
1168
|
type: "record",
|
|
815
|
-
keyType
|
|
1169
|
+
keyType,
|
|
816
1170
|
valueType: valueType,
|
|
817
1171
|
...index_js_1.util.normalizeParams(params),
|
|
1172
|
+
partial: true,
|
|
818
1173
|
});
|
|
819
1174
|
}
|
|
820
1175
|
function looseRecord(keyType, valueType, params) {
|
|
@@ -827,6 +1182,7 @@ function looseRecord(keyType, valueType, params) {
|
|
|
827
1182
|
});
|
|
828
1183
|
}
|
|
829
1184
|
exports.ZodMap = core.$constructor("ZodMap", (inst, def) => {
|
|
1185
|
+
_ensureDefaultMemoizer();
|
|
830
1186
|
core.$ZodMap.init(inst, def);
|
|
831
1187
|
exports.ZodType.init(inst, def);
|
|
832
1188
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);
|
|
@@ -846,6 +1202,7 @@ function map(keyType, valueType, params) {
|
|
|
846
1202
|
});
|
|
847
1203
|
}
|
|
848
1204
|
exports.ZodSet = core.$constructor("ZodSet", (inst, def) => {
|
|
1205
|
+
_ensureDefaultMemoizer();
|
|
849
1206
|
core.$ZodSet.init(inst, def);
|
|
850
1207
|
exports.ZodType.init(inst, def);
|
|
851
1208
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);
|
|
@@ -866,7 +1223,8 @@ exports.ZodEnum = core.$constructor("ZodEnum", (inst, def) => {
|
|
|
866
1223
|
exports.ZodType.init(inst, def);
|
|
867
1224
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);
|
|
868
1225
|
inst.enum = def.entries;
|
|
869
|
-
|
|
1226
|
+
// reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
|
|
1227
|
+
inst.options = [...inst._zod.values];
|
|
870
1228
|
const keys = new Set(Object.keys(def.entries));
|
|
871
1229
|
inst.extract = (values, params) => {
|
|
872
1230
|
const newEntries = {};
|
|
@@ -956,6 +1314,7 @@ function file(params) {
|
|
|
956
1314
|
return core._file(exports.ZodFile, params);
|
|
957
1315
|
}
|
|
958
1316
|
exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
|
|
1317
|
+
_ensureDefaultMemoizer();
|
|
959
1318
|
core.$ZodTransform.init(inst, def);
|
|
960
1319
|
exports.ZodType.init(inst, def);
|
|
961
1320
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);
|
|
@@ -973,7 +1332,8 @@ exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
|
|
|
973
1332
|
if (_issue.fatal)
|
|
974
1333
|
_issue.continue = false;
|
|
975
1334
|
_issue.code ?? (_issue.code = "custom");
|
|
976
|
-
|
|
1335
|
+
if (!("input" in _issue))
|
|
1336
|
+
_issue.input = payload.value;
|
|
977
1337
|
_issue.inst ?? (_issue.inst = inst);
|
|
978
1338
|
// _issue.continue ??= true;
|
|
979
1339
|
payload.issues.push(index_js_1.util.issue(_issue));
|
|
@@ -1103,7 +1463,7 @@ function _catch(innerType, catchValue) {
|
|
|
1103
1463
|
return new exports.ZodCatch({
|
|
1104
1464
|
type: "catch",
|
|
1105
1465
|
innerType: innerType,
|
|
1106
|
-
catchValue: (typeof catchValue === "function" ? catchValue : (
|
|
1466
|
+
catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)),
|
|
1107
1467
|
});
|
|
1108
1468
|
}
|
|
1109
1469
|
exports.ZodNaN = core.$constructor("ZodNaN", (inst, def) => {
|
|
@@ -1142,6 +1502,20 @@ function codec(in_, out, params) {
|
|
|
1142
1502
|
reverseTransform: params.encode,
|
|
1143
1503
|
});
|
|
1144
1504
|
}
|
|
1505
|
+
function invertCodec(codec) {
|
|
1506
|
+
const def = codec._zod.def;
|
|
1507
|
+
return new exports.ZodCodec({
|
|
1508
|
+
type: "pipe",
|
|
1509
|
+
in: def.out,
|
|
1510
|
+
out: def.in,
|
|
1511
|
+
transform: def.reverseTransform,
|
|
1512
|
+
reverseTransform: def.transform,
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
exports.ZodPreprocess = core.$constructor("ZodPreprocess", (inst, def) => {
|
|
1516
|
+
exports.ZodPipe.init(inst, def);
|
|
1517
|
+
core.$ZodPreprocess.init(inst, def);
|
|
1518
|
+
});
|
|
1145
1519
|
exports.ZodReadonly = core.$constructor("ZodReadonly", (inst, def) => {
|
|
1146
1520
|
core.$ZodReadonly.init(inst, def);
|
|
1147
1521
|
exports.ZodType.init(inst, def);
|
|
@@ -1223,14 +1597,22 @@ function refine(fn, _params = {}) {
|
|
|
1223
1597
|
return core._refine(exports.ZodCustom, fn, _params);
|
|
1224
1598
|
}
|
|
1225
1599
|
// superRefine
|
|
1226
|
-
function superRefine(fn) {
|
|
1227
|
-
return core._superRefine(fn);
|
|
1600
|
+
function superRefine(fn, params) {
|
|
1601
|
+
return core._superRefine(fn, params);
|
|
1228
1602
|
}
|
|
1229
1603
|
// Re-export describe and meta from core
|
|
1230
1604
|
exports.describe = core.describe;
|
|
1231
1605
|
exports.meta = core.meta;
|
|
1606
|
+
exports.ZodInstanceOf = core.$constructor("ZodInstanceOf", (inst, def) => {
|
|
1607
|
+
exports.ZodCustom.init(inst, def);
|
|
1608
|
+
}, {
|
|
1609
|
+
properties(shape, params) {
|
|
1610
|
+
// asserts in place, so the narrowed output type is truthful without a wrapper
|
|
1611
|
+
return this.check(core._properties(shape, params));
|
|
1612
|
+
},
|
|
1613
|
+
});
|
|
1232
1614
|
function _instanceof(cls, params = {}) {
|
|
1233
|
-
const inst = new exports.
|
|
1615
|
+
const inst = new exports.ZodInstanceOf({
|
|
1234
1616
|
type: "custom",
|
|
1235
1617
|
check: "custom",
|
|
1236
1618
|
fn: (data) => data instanceof cls,
|
|
@@ -1266,7 +1648,29 @@ function json(params) {
|
|
|
1266
1648
|
return jsonSchema;
|
|
1267
1649
|
}
|
|
1268
1650
|
// preprocess
|
|
1269
|
-
// /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
|
|
1270
1651
|
function preprocess(fn, schema) {
|
|
1271
|
-
return
|
|
1652
|
+
return new exports.ZodPreprocess({
|
|
1653
|
+
type: "pipe",
|
|
1654
|
+
in: transform(fn),
|
|
1655
|
+
out: schema,
|
|
1656
|
+
});
|
|
1272
1657
|
}
|
|
1658
|
+
|
|
1659
|
+
// seal-cjs-exports
|
|
1660
|
+
(function () {
|
|
1661
|
+
var keys = Object.getOwnPropertyNames(exports);
|
|
1662
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1663
|
+
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
1664
|
+
if (!desc || !desc.get || !desc.configurable) continue;
|
|
1665
|
+
var value;
|
|
1666
|
+
try {
|
|
1667
|
+
value = desc.get();
|
|
1668
|
+
} catch (e) {
|
|
1669
|
+
continue;
|
|
1670
|
+
}
|
|
1671
|
+
// a circular require may not have settled this one yet, so leave it live
|
|
1672
|
+
if (value === undefined) continue;
|
|
1673
|
+
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
1674
|
+
}
|
|
1675
|
+
Object.freeze(exports);
|
|
1676
|
+
})();
|