@vellumai/cli 0.10.6-dev.202607072040.fb971ce → 0.10.6-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +411 -0
- package/bunfig.toml +6 -0
- package/node_modules/@vellumai/environments/bun.lock +24 -0
- package/node_modules/@vellumai/environments/tsconfig.json +1 -1
- package/node_modules/@vellumai/local-mode/bun.lock +32 -0
- package/node_modules/@vellumai/local-mode/src/status.ts +7 -84
- package/node_modules/@vellumai/local-mode/tsconfig.json +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/README.md +1 -18
- package/node_modules/{@vellumai/local-mode/node_modules/zod/v3 → zod/locales}/package.json +2 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod/locales → zod/mini}/package.json +2 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/package.json +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/object.test.ts +5 -5
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/errors.ts +2 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/external.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/from-json-schema.ts +39 -23
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/parse.ts +6 -6
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/schemas.ts +414 -151
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/assignability.test.ts +6 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/catch.test.ts +50 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/codec.test.ts +142 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/continuability.test.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/datetime.test.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/default.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/discriminated-unions.test.ts +34 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/error-utils.test.ts +214 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/from-json-schema.test.ts +161 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/function.test.ts +6 -6
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/index.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- 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/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/number.test.ts +55 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/object.test.ts +83 -6
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/optional.test.ts +114 -4
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/partial.test.ts +24 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/prefault.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/preprocess.test.ts +69 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/record.test.ts +85 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/recursive-types.test.ts +49 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/refine.test.ts +63 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/string.test.ts +50 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/template-literal.test.ts +4 -4
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/to-json-schema.test.ts +150 -15
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/transform.test.ts +17 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/union.test.ts +54 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/api.ts +31 -6
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/checks.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/core.ts +17 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/errors.ts +31 -24
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/json-schema-processors.ts +17 -18
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/parse.ts +7 -7
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/regexes.ts +8 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/schemas.ts +263 -71
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- 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/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/uz.test.ts +22 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/record-constructor.test.ts +58 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/to-json-schema.ts +10 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/util.ts +52 -35
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/en.ts +4 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/fr.ts +24 -8
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/index.ts +3 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/it.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ka.ts +8 -8
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/uz.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/external.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/schemas.ts +56 -25
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/codec.test.ts +19 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/index.test.ts +32 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/object.test.ts +9 -9
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/recursive-types.test.ts +51 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/string.test.ts +5 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod/mini → zod/v3}/package.json +2 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/errors.js +2 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/external.d.cts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/external.d.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/from-json-schema.cjs +31 -16
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/from-json-schema.js +31 -16
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/schemas.cjs +358 -119
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/schemas.d.cts +42 -14
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/schemas.d.ts +42 -14
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/schemas.js +356 -118
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/api.cjs +7 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/api.d.cts +26 -5
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/api.d.ts +26 -5
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/api.js +7 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/checks.d.cts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/checks.d.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/core.cjs +3 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/core.js +4 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/errors.cjs +26 -23
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/errors.d.cts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/errors.d.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/errors.js +26 -23
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-processors.cjs +16 -20
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-processors.js +16 -20
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/parse.cjs +7 -7
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/parse.js +7 -7
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/regexes.cjs +9 -3
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/regexes.d.cts +6 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/regexes.d.ts +6 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/regexes.js +7 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/schemas.cjs +211 -65
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/schemas.d.cts +39 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/schemas.d.ts +39 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/schemas.js +210 -64
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/to-json-schema.cjs +12 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/to-json-schema.js +12 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/util.cjs +54 -30
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/util.d.cts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/util.d.ts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/util.js +55 -32
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/versions.cjs +2 -2
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/versions.d.cts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/versions.d.ts +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/en.cjs +4 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/en.js +4 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fr.cjs +24 -7
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fr.js +24 -7
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/index.cjs +8 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/index.d.cts +3 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/index.d.ts +3 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/index.js +3 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/it.cjs +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/it.js +1 -1
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ka.cjs +8 -8
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ka.js +8 -8
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/uz.cjs +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/uz.js +1 -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/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/external.d.cts +1 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/external.d.ts +1 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/schemas.cjs +41 -4
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/schemas.d.cts +28 -10
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/schemas.d.ts +28 -10
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/schemas.js +40 -4
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4-mini/package.json +2 -1
- package/package.json +2 -1
- package/src/__tests__/recover.test.ts +1 -5
- package/src/__tests__/upgrade-local.test.ts +0 -4
- package/src/commands/restore.ts +8 -31
- package/src/commands/upgrade.ts +2 -33
- package/src/commands/wake.ts +2 -80
- package/src/lib/backup-ops.ts +36 -59
- package/src/lib/docker.ts +25 -60
- package/src/lib/http-client.ts +11 -107
- package/src/lib/local.ts +74 -157
- package/src/lib/process.ts +30 -70
- package/src/lib/upgrade-lifecycle.ts +25 -129
- package/tsconfig.json +1 -1
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/package.json +0 -18
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/__tests__/package-boundary.test.ts +0 -95
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/index.ts +0 -11
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/seeds.ts +0 -70
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/types.ts +0 -70
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/tsconfig.json +0 -20
- package/node_modules/@vellumai/local-mode/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/classic/package.json +0 -6
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/core/package.json +0 -6
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/locales/package.json +0 -6
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/mini/package.json +0 -6
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/package.json +0 -6
- package/src/__tests__/daemon-readiness-probe.test.ts +0 -158
- package/src/__tests__/upgrade-wait-for-ready.test.ts +0 -103
- package/src/lib/__tests__/local-ces.test.ts +0 -104
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/LICENSE +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/locales/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/locales/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/locales/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/locales/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/mini/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/mini/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/mini/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/mini/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/locales/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/mini/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/ZodError.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/datetime.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/discriminatedUnion.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/ipv4.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/object.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/primitives.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/realworld.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/string.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/benchmarks/union.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/errors.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/external.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/enumUtil.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/errorUtil.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/parseUtil.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/partialUtil.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/typeAliases.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/helpers/util.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/locales/en.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/standard-schema.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/Mocker.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/anyunknown.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/array.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/async-parsing.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/async-refinements.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/base.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/bigint.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/branded.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/catch.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/coerce.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/complex.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/custom.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/date.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/deepmasking.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/default.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/description.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/discriminated-unions.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/enum.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/error.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/firstparty.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/firstpartyschematypes.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/function.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/generics.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/instanceof.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/intersection.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/language-server.source.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/language-server.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/literal.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/map.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/masking.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/mocker.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/nan.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/nativeEnum.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/nullable.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/number.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/object-augmentation.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/object-in-es5-env.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/optional.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/parseUtil.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/parser.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/pickomit.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/pipeline.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/preprocess.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/primitive.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/promise.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/readonly.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/record.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/recursive.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/refine.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/safeparse.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/set.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/string.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/transformer.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/tuple.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/unions.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/validations.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/tests/void.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v3/types.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/checks.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/coerce.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/compat.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/iso.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/anyunknown.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/apply.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/array.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/async-parsing.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/async-refinements.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/base.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/bigint.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/brand.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/coalesce.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/codec-examples.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/coerce.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/custom.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/date.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/describe-meta-checks.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/description.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/enum.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/error.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/file.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/firstparty.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/fix-json-issue.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/generics.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/hash.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/instanceof.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/intersection.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/json.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/lazy.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/literal.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/map.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/nan.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/nested-refine.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/nonoptional.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/nullable.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/pickomit.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/pipe.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/primitive.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/promise.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/prototypes.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/readonly.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/registries.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/set.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/string-formats.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/stringbool.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/url.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/validations.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/tests/void.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/config.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/doc.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/json-schema-generator.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/json-schema.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/registries.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/standard-schema.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/extend.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/index.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/be.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/en.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/es.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/he.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/nl.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/ru.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/locales/tr.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/tests/recursive-tuples.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/core/zsf.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ar.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/az.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/be.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/bg.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ca.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/cs.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/da.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/de.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/eo.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/es.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/fa.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/fi.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/fr-CA.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/he.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/hu.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/hy.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/id.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/is.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ja.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/kh.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/km.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ko.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/lt.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/mk.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ms.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/nl.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/no.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ota.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/pl.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ps.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/pt.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ru.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/sl.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/sv.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ta.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/th.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/tr.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ua.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/uk.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/ur.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/vi.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/yo.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/zh-CN.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/locales/zh-TW.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/checks.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/coerce.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/iso.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/parse.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/apply.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/assignability.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/brand.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/checks.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/computed.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/error.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/functions.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/number.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/prototypes.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/mini/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4-mini/index.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/ZodError.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/ZodError.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/ZodError.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/ZodError.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/errors.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/errors.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/errors.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/errors.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/external.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/external.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/external.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/external.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/enumUtil.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/enumUtil.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/enumUtil.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/enumUtil.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/errorUtil.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/errorUtil.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/errorUtil.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/errorUtil.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/parseUtil.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/parseUtil.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/parseUtil.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/parseUtil.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/partialUtil.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/partialUtil.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/partialUtil.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/partialUtil.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/typeAliases.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/typeAliases.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/typeAliases.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/typeAliases.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/util.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/util.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/util.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/helpers/util.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/locales/en.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/locales/en.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/locales/en.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/locales/en.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/standard-schema.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/standard-schema.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/standard-schema.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/standard-schema.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/types.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/types.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/types.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v3/types.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/checks.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/checks.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/checks.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/checks.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/coerce.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/coerce.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/coerce.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/coerce.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/compat.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/compat.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/compat.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/compat.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/errors.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/errors.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/errors.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/external.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/external.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/from-json-schema.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/from-json-schema.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/iso.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/iso.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/iso.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/iso.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/parse.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/parse.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/parse.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/classic/parse.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/checks.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/checks.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/core.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/core.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/doc.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/doc.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/doc.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/doc.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-generator.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-generator.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-generator.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-generator.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-processors.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema-processors.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/json-schema.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/parse.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/parse.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/registries.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/registries.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/registries.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/registries.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/standard-schema.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/standard-schema.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/standard-schema.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/standard-schema.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/to-json-schema.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/core/to-json-schema.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ar.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ar.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ar.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ar.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/az.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/az.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/az.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/az.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/be.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/be.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/be.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/be.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/bg.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/bg.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/bg.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/bg.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ca.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ca.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ca.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ca.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/cs.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/cs.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/cs.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/cs.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/da.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/da.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/da.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/da.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/de.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/de.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/de.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/de.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/en.d.cts → zod/v4/locales/el.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/en.d.ts → zod/v4/locales/el.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/eo.d.cts → zod/v4/locales/en.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/eo.d.ts → zod/v4/locales/en.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/eo.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/es.d.cts → zod/v4/locales/eo.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/es.d.ts → zod/v4/locales/eo.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/eo.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/es.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fa.d.cts → zod/v4/locales/es.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fa.d.ts → zod/v4/locales/es.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/es.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fa.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fi.d.cts → zod/v4/locales/fa.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fi.d.ts → zod/v4/locales/fa.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fa.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fi.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fr-CA.d.cts → zod/v4/locales/fi.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fr-CA.d.ts → zod/v4/locales/fi.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fi.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fr-CA.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fr.d.cts → zod/v4/locales/fr-CA.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/fr.d.ts → zod/v4/locales/fr-CA.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/fr-CA.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/he.d.cts → zod/v4/locales/fr.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/he.d.ts → zod/v4/locales/fr.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/he.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/hu.d.cts → zod/v4/locales/he.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/hu.d.ts → zod/v4/locales/he.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/he.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/hy.d.cts → zod/v4/locales/hr.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/hy.d.ts → zod/v4/locales/hr.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/hu.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/id.d.cts → zod/v4/locales/hu.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/id.d.ts → zod/v4/locales/hu.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/hu.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/hy.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/is.d.cts → zod/v4/locales/hy.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/is.d.ts → zod/v4/locales/hy.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/hy.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/id.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/it.d.cts → zod/v4/locales/id.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/it.d.ts → zod/v4/locales/id.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/id.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/is.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ja.d.cts → zod/v4/locales/is.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ja.d.ts → zod/v4/locales/is.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/is.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ka.d.cts → zod/v4/locales/it.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ka.d.ts → zod/v4/locales/it.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ja.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/kh.d.cts → zod/v4/locales/ja.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/km.d.ts → zod/v4/locales/ja.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ja.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/km.d.cts → zod/v4/locales/ka.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ko.d.ts → zod/v4/locales/ka.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/kh.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ko.d.cts → zod/v4/locales/kh.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/kh.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/kh.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/km.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/lt.d.cts → zod/v4/locales/km.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/lt.d.ts → zod/v4/locales/km.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/km.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ko.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/mk.d.cts → zod/v4/locales/ko.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/mk.d.ts → zod/v4/locales/ko.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ko.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/lt.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ms.d.cts → zod/v4/locales/lt.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ms.d.ts → zod/v4/locales/lt.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/lt.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/mk.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/nl.d.cts → zod/v4/locales/mk.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/nl.d.ts → zod/v4/locales/mk.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/mk.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ms.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/no.d.cts → zod/v4/locales/ms.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/no.d.ts → zod/v4/locales/ms.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ms.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/nl.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ota.d.cts → zod/v4/locales/nl.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ota.d.ts → zod/v4/locales/nl.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/nl.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/no.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/pl.d.cts → zod/v4/locales/no.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/pl.d.ts → zod/v4/locales/no.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/no.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ota.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ps.d.cts → zod/v4/locales/ota.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ps.d.ts → zod/v4/locales/ota.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ota.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/pl.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/pt.d.cts → zod/v4/locales/pl.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/pt.d.ts → zod/v4/locales/pl.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/pl.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ps.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ru.d.cts → zod/v4/locales/ps.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ru.d.ts → zod/v4/locales/ps.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ps.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/pt.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/sl.d.cts → zod/v4/locales/pt.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/sl.d.ts → zod/v4/locales/pt.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/pt.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/sv.d.cts → zod/v4/locales/ro.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/sv.d.ts → zod/v4/locales/ro.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ru.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ta.d.cts → zod/v4/locales/ru.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ta.d.ts → zod/v4/locales/ru.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ru.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/sl.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/th.d.cts → zod/v4/locales/sl.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/th.d.ts → zod/v4/locales/sl.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/sl.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/sv.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/tr.d.cts → zod/v4/locales/sv.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/tr.d.ts → zod/v4/locales/sv.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/sv.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ta.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ua.d.cts → zod/v4/locales/ta.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/uk.d.ts → zod/v4/locales/ta.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ta.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/th.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/uk.d.cts → zod/v4/locales/th.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ur.d.ts → zod/v4/locales/th.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/th.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/tr.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/ur.d.cts → zod/v4/locales/tr.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/uz.d.ts → zod/v4/locales/tr.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/tr.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ua.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/uz.d.cts → zod/v4/locales/ua.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ua.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ua.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/uk.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/vi.d.cts → zod/v4/locales/uk.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/vi.d.ts → zod/v4/locales/uk.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/uk.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ur.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/yo.d.cts → zod/v4/locales/ur.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/yo.d.ts → zod/v4/locales/ur.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/ur.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/zh-CN.d.cts → zod/v4/locales/uz.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/zh-CN.d.ts → zod/v4/locales/uz.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/vi.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/zh-TW.d.cts → zod/v4/locales/vi.d.cts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod/v4/locales/zh-TW.d.ts → zod/v4/locales/vi.d.ts} +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/vi.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/yo.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/yo.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/zh-CN.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/zh-CN.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/zh-TW.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/locales/zh-TW.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/checks.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/checks.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/checks.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/checks.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/coerce.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/coerce.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/coerce.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/coerce.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/external.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/external.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/index.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/iso.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/iso.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/iso.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/iso.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/parse.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/parse.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/parse.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4/mini/parse.js +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4-mini/index.cjs +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4-mini/index.d.cts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4-mini/index.d.ts +0 -0
- /package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/v4-mini/index.js +0 -0
package/node_modules/{@vellumai/local-mode/node_modules/zod → zod}/src/v4/classic/schemas.ts
RENAMED
|
@@ -8,6 +8,65 @@ import * as checks from "./checks.js";
|
|
|
8
8
|
import * as iso from "./iso.js";
|
|
9
9
|
import * as parse from "./parse.js";
|
|
10
10
|
|
|
11
|
+
// Lazy-bind builder methods.
|
|
12
|
+
//
|
|
13
|
+
// Builder methods (`.optional`, `.array`, `.refine`, ...) live as
|
|
14
|
+
// non-enumerable getters on each concrete schema constructor's
|
|
15
|
+
// prototype. On first access from an instance the getter allocates
|
|
16
|
+
// `fn.bind(this)` and caches it as an own property on that instance,
|
|
17
|
+
// so detached usage (`const m = schema.optional; m()`) still works
|
|
18
|
+
// and the per-instance allocation only happens for methods actually
|
|
19
|
+
// touched.
|
|
20
|
+
//
|
|
21
|
+
// One install per (prototype, group), memoized by `_installedGroups`.
|
|
22
|
+
const _installedGroups = /* @__PURE__ */ new WeakMap<object, Set<string>>();
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Methods of `T` reshaped so each body has `this: T` and matches the
|
|
26
|
+
* declared (args, return) of the corresponding interface method. Allows
|
|
27
|
+
* us to type-check inline method-shorthand bodies against the
|
|
28
|
+
* `ZodType` / `_ZodString` / etc. interface declarations.
|
|
29
|
+
*/
|
|
30
|
+
type _LazyMethodsOf<T> = Partial<{
|
|
31
|
+
[K in keyof T]: T[K] extends (...args: infer A) => infer R ? (this: T, ...args: A) => R : never;
|
|
32
|
+
}>;
|
|
33
|
+
|
|
34
|
+
function _installLazyMethods<T extends object>(inst: T, group: string, methods: _LazyMethodsOf<T>): void {
|
|
35
|
+
const proto = Object.getPrototypeOf(inst);
|
|
36
|
+
let installed = _installedGroups.get(proto);
|
|
37
|
+
if (!installed) {
|
|
38
|
+
installed = new Set();
|
|
39
|
+
_installedGroups.set(proto, installed);
|
|
40
|
+
}
|
|
41
|
+
if (installed.has(group)) return;
|
|
42
|
+
installed.add(group);
|
|
43
|
+
for (const key in methods) {
|
|
44
|
+
const fn = methods[key]!;
|
|
45
|
+
Object.defineProperty(proto, key, {
|
|
46
|
+
configurable: true,
|
|
47
|
+
enumerable: false,
|
|
48
|
+
get(this: any) {
|
|
49
|
+
const bound = fn.bind(this);
|
|
50
|
+
Object.defineProperty(this, key, {
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
value: bound,
|
|
55
|
+
});
|
|
56
|
+
return bound;
|
|
57
|
+
},
|
|
58
|
+
set(this: any, v: unknown) {
|
|
59
|
+
Object.defineProperty(this, key, {
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
enumerable: true,
|
|
63
|
+
value: v,
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
11
70
|
///////////////////////////////////////////
|
|
12
71
|
///////////////////////////////////////////
|
|
13
72
|
//////////// ////////////
|
|
@@ -94,7 +153,8 @@ export interface ZodType<
|
|
|
94
153
|
params?: string | core.$ZodCustomParams
|
|
95
154
|
): Ch extends (arg: any) => arg is infer R ? this & ZodType<R, core.input<this>> : this;
|
|
96
155
|
superRefine(
|
|
97
|
-
refinement: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => void | Promise<void
|
|
156
|
+
refinement: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => void | Promise<void>,
|
|
157
|
+
params?: core.$ZodSuperRefineParams
|
|
98
158
|
): this;
|
|
99
159
|
overwrite(fn: (x: core.output<this>) => core.output<this>): this;
|
|
100
160
|
|
|
@@ -167,38 +227,16 @@ export const ZodType: core.$constructor<ZodType> = /*@__PURE__*/ core.$construct
|
|
|
167
227
|
inst.type = def.type;
|
|
168
228
|
Object.defineProperty(inst, "_def", { value: def });
|
|
169
229
|
|
|
170
|
-
//
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
...(def.checks ?? []),
|
|
176
|
-
...checks.map((ch) =>
|
|
177
|
-
typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
|
|
178
|
-
),
|
|
179
|
-
],
|
|
180
|
-
}),
|
|
181
|
-
{
|
|
182
|
-
parent: true,
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
};
|
|
186
|
-
inst.with = inst.check;
|
|
187
|
-
inst.clone = (def, params) => core.clone(inst, def, params);
|
|
188
|
-
inst.brand = () => inst as any;
|
|
189
|
-
inst.register = ((reg: any, meta: any) => {
|
|
190
|
-
reg.add(inst, meta);
|
|
191
|
-
return inst;
|
|
192
|
-
}) as any;
|
|
193
|
-
|
|
194
|
-
// parsing
|
|
230
|
+
// Parse-family is intentionally kept as per-instance closures: these are
|
|
231
|
+
// the hot path AND the most-detached methods (`arr.map(schema.parse)`,
|
|
232
|
+
// `const { parse } = schema`, etc.). Eager closures here mean callers pay
|
|
233
|
+
// ~12 closure allocations per schema but get monomorphic call sites and
|
|
234
|
+
// detached usage that "just works".
|
|
195
235
|
inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
|
|
196
236
|
inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
|
|
197
237
|
inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
198
238
|
inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);
|
|
199
239
|
inst.spa = inst.safeParseAsync;
|
|
200
|
-
|
|
201
|
-
// encoding/decoding
|
|
202
240
|
inst.encode = (data, params) => parse.encode(inst, data, params);
|
|
203
241
|
inst.decode = (data, params) => parse.decode(inst, data, params);
|
|
204
242
|
inst.encodeAsync = async (data, params) => parse.encodeAsync(inst, data, params);
|
|
@@ -208,53 +246,122 @@ export const ZodType: core.$constructor<ZodType> = /*@__PURE__*/ core.$construct
|
|
|
208
246
|
inst.safeEncodeAsync = async (data, params) => parse.safeEncodeAsync(inst, data, params);
|
|
209
247
|
inst.safeDecodeAsync = async (data, params) => parse.safeDecodeAsync(inst, data, params);
|
|
210
248
|
|
|
211
|
-
//
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
//
|
|
217
|
-
inst
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
249
|
+
// All builder methods are placed on the internal prototype as lazy-bind
|
|
250
|
+
// getters. On first access per-instance, a bound thunk is allocated and
|
|
251
|
+
// cached as an own property; subsequent accesses skip the getter. This
|
|
252
|
+
// means: no per-instance allocation for unused methods, full
|
|
253
|
+
// detachability preserved (`const m = schema.optional; m()` works), and
|
|
254
|
+
// shared underlying function references across all instances.
|
|
255
|
+
_installLazyMethods(inst, "ZodType", {
|
|
256
|
+
check(...chks) {
|
|
257
|
+
const def = this.def;
|
|
258
|
+
return this.clone(
|
|
259
|
+
util.mergeDefs(def, {
|
|
260
|
+
checks: [
|
|
261
|
+
...(def.checks ?? []),
|
|
262
|
+
...chks.map((ch) =>
|
|
263
|
+
typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
|
|
264
|
+
),
|
|
265
|
+
],
|
|
266
|
+
}),
|
|
267
|
+
{ parent: true }
|
|
268
|
+
);
|
|
269
|
+
},
|
|
270
|
+
with(...chks) {
|
|
271
|
+
return this.check(...chks);
|
|
272
|
+
},
|
|
273
|
+
clone(def, params) {
|
|
274
|
+
return core.clone(this, def, params);
|
|
275
|
+
},
|
|
276
|
+
brand() {
|
|
277
|
+
return this;
|
|
278
|
+
},
|
|
279
|
+
register(reg, meta) {
|
|
280
|
+
reg.add(this, meta);
|
|
281
|
+
return this;
|
|
282
|
+
},
|
|
283
|
+
refine(check, params) {
|
|
284
|
+
return this.check(refine(check, params));
|
|
285
|
+
},
|
|
286
|
+
superRefine(refinement, params) {
|
|
287
|
+
return this.check(superRefine(refinement, params));
|
|
288
|
+
},
|
|
289
|
+
overwrite(fn) {
|
|
290
|
+
return this.check(checks.overwrite(fn));
|
|
291
|
+
},
|
|
292
|
+
optional() {
|
|
293
|
+
return optional(this);
|
|
294
|
+
},
|
|
295
|
+
exactOptional() {
|
|
296
|
+
return exactOptional(this);
|
|
297
|
+
},
|
|
298
|
+
nullable() {
|
|
299
|
+
return nullable(this);
|
|
300
|
+
},
|
|
301
|
+
nullish() {
|
|
302
|
+
return optional(nullable(this));
|
|
303
|
+
},
|
|
304
|
+
nonoptional(params) {
|
|
305
|
+
return nonoptional(this, params);
|
|
306
|
+
},
|
|
307
|
+
array() {
|
|
308
|
+
return array(this);
|
|
309
|
+
},
|
|
310
|
+
or(arg) {
|
|
311
|
+
return union([this, arg]);
|
|
312
|
+
},
|
|
313
|
+
and(arg) {
|
|
314
|
+
return intersection(this, arg);
|
|
315
|
+
},
|
|
316
|
+
transform(tx) {
|
|
317
|
+
return pipe(this, transform(tx));
|
|
318
|
+
},
|
|
319
|
+
default(d) {
|
|
320
|
+
return _default(this, d);
|
|
321
|
+
},
|
|
322
|
+
prefault(d) {
|
|
323
|
+
return prefault(this, d);
|
|
324
|
+
},
|
|
325
|
+
catch(params) {
|
|
326
|
+
return _catch(this, params);
|
|
327
|
+
},
|
|
328
|
+
pipe(target) {
|
|
329
|
+
return pipe(this, target);
|
|
330
|
+
},
|
|
331
|
+
readonly() {
|
|
332
|
+
return readonly(this);
|
|
333
|
+
},
|
|
334
|
+
describe(description) {
|
|
335
|
+
const cl = this.clone();
|
|
336
|
+
core.globalRegistry.add(cl, { description });
|
|
337
|
+
return cl;
|
|
338
|
+
},
|
|
339
|
+
meta(...args: any[]): any {
|
|
340
|
+
// overloaded: meta() returns the registered metadata, meta(data)
|
|
341
|
+
// returns a clone with `data` registered. The mapped type picks
|
|
342
|
+
// up the second overload, so we accept variadic any-args and
|
|
343
|
+
// return `any` to satisfy both at runtime.
|
|
344
|
+
if (args.length === 0) return core.globalRegistry.get(this);
|
|
345
|
+
const cl = this.clone();
|
|
346
|
+
core.globalRegistry.add(cl, args[0]);
|
|
347
|
+
return cl;
|
|
348
|
+
},
|
|
349
|
+
isOptional() {
|
|
350
|
+
return this.safeParse(undefined).success;
|
|
351
|
+
},
|
|
352
|
+
isNullable() {
|
|
353
|
+
return this.safeParse(null).success;
|
|
354
|
+
},
|
|
355
|
+
apply(fn) {
|
|
356
|
+
return fn(this);
|
|
357
|
+
},
|
|
358
|
+
});
|
|
239
359
|
Object.defineProperty(inst, "description", {
|
|
240
360
|
get() {
|
|
241
361
|
return core.globalRegistry.get(inst)?.description;
|
|
242
362
|
},
|
|
243
363
|
configurable: true,
|
|
244
364
|
});
|
|
245
|
-
inst.meta = (...args: any) => {
|
|
246
|
-
if (args.length === 0) {
|
|
247
|
-
return core.globalRegistry.get(inst);
|
|
248
|
-
}
|
|
249
|
-
const cl = inst.clone();
|
|
250
|
-
core.globalRegistry.add(cl, args[0]);
|
|
251
|
-
return cl as any;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
// helpers
|
|
255
|
-
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
256
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
257
|
-
inst.apply = (fn) => fn(inst);
|
|
258
365
|
return inst;
|
|
259
366
|
});
|
|
260
367
|
|
|
@@ -297,24 +404,53 @@ export const _ZodString: core.$constructor<_ZodString> = /*@__PURE__*/ core.$con
|
|
|
297
404
|
inst.minLength = bag.minimum ?? null;
|
|
298
405
|
inst.maxLength = bag.maximum ?? null;
|
|
299
406
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
407
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
408
|
+
regex(...args) {
|
|
409
|
+
return this.check((checks.regex as any)(...args));
|
|
410
|
+
},
|
|
411
|
+
includes(...args) {
|
|
412
|
+
return this.check((checks.includes as any)(...args));
|
|
413
|
+
},
|
|
414
|
+
startsWith(...args) {
|
|
415
|
+
return this.check((checks.startsWith as any)(...args));
|
|
416
|
+
},
|
|
417
|
+
endsWith(...args) {
|
|
418
|
+
return this.check((checks.endsWith as any)(...args));
|
|
419
|
+
},
|
|
420
|
+
min(...args) {
|
|
421
|
+
return this.check((checks.minLength as any)(...args));
|
|
422
|
+
},
|
|
423
|
+
max(...args) {
|
|
424
|
+
return this.check((checks.maxLength as any)(...args));
|
|
425
|
+
},
|
|
426
|
+
length(...args) {
|
|
427
|
+
return this.check((checks.length as any)(...args));
|
|
428
|
+
},
|
|
429
|
+
nonempty(...args) {
|
|
430
|
+
return this.check((checks.minLength as any)(1, ...args));
|
|
431
|
+
},
|
|
432
|
+
lowercase(params) {
|
|
433
|
+
return this.check(checks.lowercase(params));
|
|
434
|
+
},
|
|
435
|
+
uppercase(params) {
|
|
436
|
+
return this.check(checks.uppercase(params));
|
|
437
|
+
},
|
|
438
|
+
trim() {
|
|
439
|
+
return this.check(checks.trim());
|
|
440
|
+
},
|
|
441
|
+
normalize(...args) {
|
|
442
|
+
return this.check(checks.normalize(...args));
|
|
443
|
+
},
|
|
444
|
+
toLowerCase() {
|
|
445
|
+
return this.check(checks.toLowerCase());
|
|
446
|
+
},
|
|
447
|
+
toUpperCase() {
|
|
448
|
+
return this.check(checks.toUpperCase());
|
|
449
|
+
},
|
|
450
|
+
slugify() {
|
|
451
|
+
return this.check(checks.slugify());
|
|
452
|
+
},
|
|
453
|
+
});
|
|
318
454
|
});
|
|
319
455
|
|
|
320
456
|
export interface ZodString extends _ZodString<core.$ZodStringInternals<string>> {
|
|
@@ -342,7 +478,11 @@ export interface ZodString extends _ZodString<core.$ZodStringInternals<string>>
|
|
|
342
478
|
nanoid(params?: string | core.$ZodCheckNanoIDParams): this;
|
|
343
479
|
/** @deprecated Use `z.guid()` instead. */
|
|
344
480
|
guid(params?: string | core.$ZodCheckGUIDParams): this;
|
|
345
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
483
|
+
* (timestamps embedded in the id). Use `z.cuid2()` instead.
|
|
484
|
+
* See https://github.com/paralleldrive/cuid.
|
|
485
|
+
*/
|
|
346
486
|
cuid(params?: string | core.$ZodCheckCUIDParams): this;
|
|
347
487
|
/** @deprecated Use `z.cuid2()` instead. */
|
|
348
488
|
cuid2(params?: string | core.$ZodCheckCUID2Params): this;
|
|
@@ -428,7 +568,7 @@ export const ZodString: core.$constructor<ZodString> = /*@__PURE__*/ core.$const
|
|
|
428
568
|
export function string(params?: string | core.$ZodStringParams): ZodString;
|
|
429
569
|
export function string<T extends string>(params?: string | core.$ZodStringParams): core.$ZodType<T, T>;
|
|
430
570
|
export function string(params?: string | core.$ZodStringParams): ZodString {
|
|
431
|
-
return core._string(ZodString, params)
|
|
571
|
+
return core._string(ZodString, params);
|
|
432
572
|
}
|
|
433
573
|
|
|
434
574
|
// ZodStringFormat
|
|
@@ -516,7 +656,7 @@ export function url(params?: string | core.$ZodURLParams): ZodURL {
|
|
|
516
656
|
|
|
517
657
|
export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodURL {
|
|
518
658
|
return core._url(ZodURL, {
|
|
519
|
-
protocol:
|
|
659
|
+
protocol: core.regexes.httpProtocol,
|
|
520
660
|
hostname: core.regexes.domain,
|
|
521
661
|
...util.normalizeParams(params),
|
|
522
662
|
});
|
|
@@ -551,15 +691,32 @@ export function nanoid(params?: string | core.$ZodNanoIDParams): ZodNanoID {
|
|
|
551
691
|
}
|
|
552
692
|
|
|
553
693
|
// ZodCUID
|
|
694
|
+
/**
|
|
695
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
696
|
+
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
697
|
+
* See https://github.com/paralleldrive/cuid.
|
|
698
|
+
*/
|
|
554
699
|
export interface ZodCUID extends ZodStringFormat<"cuid"> {
|
|
555
700
|
_zod: core.$ZodCUIDInternals;
|
|
556
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
704
|
+
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
705
|
+
* See https://github.com/paralleldrive/cuid.
|
|
706
|
+
*/
|
|
557
707
|
export const ZodCUID: core.$constructor<ZodCUID> = /*@__PURE__*/ core.$constructor("ZodCUID", (inst, def) => {
|
|
558
708
|
// ZodStringFormat.init(inst, def);
|
|
559
709
|
core.$ZodCUID.init(inst, def);
|
|
560
710
|
ZodStringFormat.init(inst, def);
|
|
561
711
|
});
|
|
562
712
|
|
|
713
|
+
/**
|
|
714
|
+
* Validates a CUID v1 string.
|
|
715
|
+
*
|
|
716
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
717
|
+
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
718
|
+
* See https://github.com/paralleldrive/cuid.
|
|
719
|
+
*/
|
|
563
720
|
export function cuid(params?: string | core.$ZodCUIDParams): ZodCUID {
|
|
564
721
|
return core._cuid(ZodCUID, params);
|
|
565
722
|
}
|
|
@@ -845,23 +1002,53 @@ export const ZodNumber: core.$constructor<ZodNumber> = /*@__PURE__*/ core.$const
|
|
|
845
1002
|
|
|
846
1003
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
|
|
847
1004
|
|
|
848
|
-
inst
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
1005
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
1006
|
+
gt(value, params) {
|
|
1007
|
+
return this.check(checks.gt(value, params));
|
|
1008
|
+
},
|
|
1009
|
+
gte(value, params) {
|
|
1010
|
+
return this.check(checks.gte(value, params));
|
|
1011
|
+
},
|
|
1012
|
+
min(value, params) {
|
|
1013
|
+
return this.check(checks.gte(value, params));
|
|
1014
|
+
},
|
|
1015
|
+
lt(value, params) {
|
|
1016
|
+
return this.check(checks.lt(value, params));
|
|
1017
|
+
},
|
|
1018
|
+
lte(value, params) {
|
|
1019
|
+
return this.check(checks.lte(value, params));
|
|
1020
|
+
},
|
|
1021
|
+
max(value, params) {
|
|
1022
|
+
return this.check(checks.lte(value, params));
|
|
1023
|
+
},
|
|
1024
|
+
int(params) {
|
|
1025
|
+
return this.check(int(params));
|
|
1026
|
+
},
|
|
1027
|
+
safe(params) {
|
|
1028
|
+
return this.check(int(params));
|
|
1029
|
+
},
|
|
1030
|
+
positive(params) {
|
|
1031
|
+
return this.check(checks.gt(0, params));
|
|
1032
|
+
},
|
|
1033
|
+
nonnegative(params) {
|
|
1034
|
+
return this.check(checks.gte(0, params));
|
|
1035
|
+
},
|
|
1036
|
+
negative(params) {
|
|
1037
|
+
return this.check(checks.lt(0, params));
|
|
1038
|
+
},
|
|
1039
|
+
nonpositive(params) {
|
|
1040
|
+
return this.check(checks.lte(0, params));
|
|
1041
|
+
},
|
|
1042
|
+
multipleOf(value, params) {
|
|
1043
|
+
return this.check(checks.multipleOf(value, params));
|
|
1044
|
+
},
|
|
1045
|
+
step(value, params) {
|
|
1046
|
+
return this.check(checks.multipleOf(value, params));
|
|
1047
|
+
},
|
|
1048
|
+
finite() {
|
|
1049
|
+
return this;
|
|
1050
|
+
},
|
|
1051
|
+
});
|
|
865
1052
|
|
|
866
1053
|
const bag = inst._zod.bag;
|
|
867
1054
|
inst.minValue =
|
|
@@ -874,7 +1061,7 @@ export const ZodNumber: core.$constructor<ZodNumber> = /*@__PURE__*/ core.$const
|
|
|
874
1061
|
});
|
|
875
1062
|
|
|
876
1063
|
export function number(params?: string | core.$ZodNumberParams): ZodNumber {
|
|
877
|
-
return core._number(ZodNumber, params)
|
|
1064
|
+
return core._number(ZodNumber, params);
|
|
878
1065
|
}
|
|
879
1066
|
|
|
880
1067
|
// ZodNumberFormat
|
|
@@ -929,7 +1116,7 @@ export const ZodBoolean: core.$constructor<ZodBoolean> = /*@__PURE__*/ core.$con
|
|
|
929
1116
|
});
|
|
930
1117
|
|
|
931
1118
|
export function boolean(params?: string | core.$ZodBooleanParams): ZodBoolean {
|
|
932
|
-
return core._boolean(ZodBoolean, params)
|
|
1119
|
+
return core._boolean(ZodBoolean, params);
|
|
933
1120
|
}
|
|
934
1121
|
|
|
935
1122
|
// bigint
|
|
@@ -980,7 +1167,7 @@ export const ZodBigInt: core.$constructor<ZodBigInt> = /*@__PURE__*/ core.$const
|
|
|
980
1167
|
});
|
|
981
1168
|
|
|
982
1169
|
export function bigint(params?: string | core.$ZodBigIntParams): ZodBigInt {
|
|
983
|
-
return core._bigint(ZodBigInt, params)
|
|
1170
|
+
return core._bigint(ZodBigInt, params);
|
|
984
1171
|
}
|
|
985
1172
|
// bigint formats
|
|
986
1173
|
|
|
@@ -1143,13 +1330,24 @@ export const ZodArray: core.$constructor<ZodArray> = /*@__PURE__*/ core.$constru
|
|
|
1143
1330
|
ZodType.init(inst, def);
|
|
1144
1331
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
|
|
1145
1332
|
|
|
1146
|
-
inst.element = def.element
|
|
1147
|
-
inst
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1333
|
+
inst.element = def.element;
|
|
1334
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
1335
|
+
min(n, params) {
|
|
1336
|
+
return this.check(checks.minLength(n, params));
|
|
1337
|
+
},
|
|
1338
|
+
nonempty(params) {
|
|
1339
|
+
return this.check(checks.minLength(1, params));
|
|
1340
|
+
},
|
|
1341
|
+
max(n, params) {
|
|
1342
|
+
return this.check(checks.maxLength(n, params));
|
|
1343
|
+
},
|
|
1344
|
+
length(n, params) {
|
|
1345
|
+
return this.check(checks.length(n, params));
|
|
1346
|
+
},
|
|
1347
|
+
unwrap() {
|
|
1348
|
+
return this.element;
|
|
1349
|
+
},
|
|
1350
|
+
});
|
|
1153
1351
|
});
|
|
1154
1352
|
|
|
1155
1353
|
export function array<T extends core.SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodArray<T> {
|
|
@@ -1198,11 +1396,11 @@ export interface ZodObject<
|
|
|
1198
1396
|
/** This is the default behavior. This method call is likely unnecessary. */
|
|
1199
1397
|
strip(): ZodObject<Shape, core.$strip>;
|
|
1200
1398
|
|
|
1201
|
-
extend<U extends core.$ZodLooseShape>(shape: U): ZodObject<util.Extend<Shape, U
|
|
1399
|
+
extend<U extends core.$ZodLooseShape>(shape: U): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
|
|
1202
1400
|
|
|
1203
1401
|
safeExtend<U extends core.$ZodLooseShape>(
|
|
1204
1402
|
shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>
|
|
1205
|
-
): ZodObject<util.Extend<Shape, U
|
|
1403
|
+
): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
|
|
1206
1404
|
|
|
1207
1405
|
/**
|
|
1208
1406
|
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
@@ -1219,7 +1417,7 @@ export interface ZodObject<
|
|
|
1219
1417
|
|
|
1220
1418
|
partial(): ZodObject<
|
|
1221
1419
|
{
|
|
1222
|
-
[k in keyof Shape]: ZodOptional<Shape[k]>;
|
|
1420
|
+
-readonly [k in keyof Shape]: ZodOptional<Shape[k]>;
|
|
1223
1421
|
},
|
|
1224
1422
|
Config
|
|
1225
1423
|
>;
|
|
@@ -1227,7 +1425,7 @@ export interface ZodObject<
|
|
|
1227
1425
|
mask: M & Record<Exclude<keyof M, keyof Shape>, never>
|
|
1228
1426
|
): ZodObject<
|
|
1229
1427
|
{
|
|
1230
|
-
[k in keyof Shape]: k extends keyof M
|
|
1428
|
+
-readonly [k in keyof Shape]: k extends keyof M
|
|
1231
1429
|
? // Shape[k] extends OptionalInSchema
|
|
1232
1430
|
// ? Shape[k]
|
|
1233
1431
|
// :
|
|
@@ -1240,7 +1438,7 @@ export interface ZodObject<
|
|
|
1240
1438
|
// required
|
|
1241
1439
|
required(): ZodObject<
|
|
1242
1440
|
{
|
|
1243
|
-
[k in keyof Shape]: ZodNonOptional<Shape[k]>;
|
|
1441
|
+
-readonly [k in keyof Shape]: ZodNonOptional<Shape[k]>;
|
|
1244
1442
|
},
|
|
1245
1443
|
Config
|
|
1246
1444
|
>;
|
|
@@ -1248,7 +1446,7 @@ export interface ZodObject<
|
|
|
1248
1446
|
mask: M & Record<Exclude<keyof M, keyof Shape>, never>
|
|
1249
1447
|
): ZodObject<
|
|
1250
1448
|
{
|
|
1251
|
-
[k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k];
|
|
1449
|
+
-readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k];
|
|
1252
1450
|
},
|
|
1253
1451
|
Config
|
|
1254
1452
|
>;
|
|
@@ -1263,24 +1461,47 @@ export const ZodObject: core.$constructor<ZodObject> = /*@__PURE__*/ core.$const
|
|
|
1263
1461
|
return def.shape;
|
|
1264
1462
|
});
|
|
1265
1463
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1464
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
1465
|
+
keyof() {
|
|
1466
|
+
return _enum(Object.keys(this._zod.def.shape));
|
|
1467
|
+
},
|
|
1468
|
+
catchall(catchall) {
|
|
1469
|
+
return this.clone({ ...this._zod.def, catchall: catchall as any });
|
|
1470
|
+
},
|
|
1471
|
+
passthrough() {
|
|
1472
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
1473
|
+
},
|
|
1474
|
+
loose() {
|
|
1475
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
1476
|
+
},
|
|
1477
|
+
strict() {
|
|
1478
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
1479
|
+
},
|
|
1480
|
+
strip() {
|
|
1481
|
+
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
1482
|
+
},
|
|
1483
|
+
extend(incoming) {
|
|
1484
|
+
return util.extend(this, incoming);
|
|
1485
|
+
},
|
|
1486
|
+
safeExtend(incoming) {
|
|
1487
|
+
return util.safeExtend(this, incoming);
|
|
1488
|
+
},
|
|
1489
|
+
merge(other) {
|
|
1490
|
+
return util.merge(this, other);
|
|
1491
|
+
},
|
|
1492
|
+
pick(mask) {
|
|
1493
|
+
return util.pick(this, mask);
|
|
1494
|
+
},
|
|
1495
|
+
omit(mask) {
|
|
1496
|
+
return util.omit(this, mask);
|
|
1497
|
+
},
|
|
1498
|
+
partial(...args) {
|
|
1499
|
+
return util.partial(ZodOptional, this, args[0]);
|
|
1500
|
+
},
|
|
1501
|
+
required(...args) {
|
|
1502
|
+
return util.required(ZodNonOptional, this, args[0]);
|
|
1503
|
+
},
|
|
1504
|
+
});
|
|
1284
1505
|
});
|
|
1285
1506
|
|
|
1286
1507
|
export function object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>>(
|
|
@@ -1300,7 +1521,7 @@ export function object<T extends core.$ZodLooseShape = Partial<Record<never, cor
|
|
|
1300
1521
|
export function strictObject<T extends core.$ZodLooseShape>(
|
|
1301
1522
|
shape: T,
|
|
1302
1523
|
params?: string | core.$ZodObjectParams
|
|
1303
|
-
): ZodObject<T
|
|
1524
|
+
): ZodObject<util.Writeable<T>, core.$strict> {
|
|
1304
1525
|
return new ZodObject({
|
|
1305
1526
|
type: "object",
|
|
1306
1527
|
shape,
|
|
@@ -1314,7 +1535,7 @@ export function strictObject<T extends core.$ZodLooseShape>(
|
|
|
1314
1535
|
export function looseObject<T extends core.$ZodLooseShape>(
|
|
1315
1536
|
shape: T,
|
|
1316
1537
|
params?: string | core.$ZodObjectParams
|
|
1317
|
-
): ZodObject<T
|
|
1538
|
+
): ZodObject<util.Writeable<T>, core.$loose> {
|
|
1318
1539
|
return new ZodObject({
|
|
1319
1540
|
type: "object",
|
|
1320
1541
|
shape,
|
|
@@ -1396,7 +1617,7 @@ export const ZodDiscriminatedUnion: core.$constructor<ZodDiscriminatedUnion> = /
|
|
|
1396
1617
|
);
|
|
1397
1618
|
|
|
1398
1619
|
export function discriminatedUnion<
|
|
1399
|
-
Types extends readonly [core.$ZodTypeDiscriminable
|
|
1620
|
+
Types extends readonly [core.$ZodTypeDiscriminable<Disc>, ...core.$ZodTypeDiscriminable<Disc>[]],
|
|
1400
1621
|
Disc extends string,
|
|
1401
1622
|
>(
|
|
1402
1623
|
discriminator: Disc,
|
|
@@ -1508,6 +1729,15 @@ export function record<Key extends core.$ZodRecordKey, Value extends core.SomeTy
|
|
|
1508
1729
|
valueType: Value,
|
|
1509
1730
|
params?: string | core.$ZodRecordParams
|
|
1510
1731
|
): ZodRecord<Key, Value> {
|
|
1732
|
+
// v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
|
|
1733
|
+
if (!valueType || !(valueType as any)._zod) {
|
|
1734
|
+
return new ZodRecord({
|
|
1735
|
+
type: "record",
|
|
1736
|
+
keyType: string() as any,
|
|
1737
|
+
valueType: keyType as any as core.$ZodType,
|
|
1738
|
+
...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
|
|
1739
|
+
}) as any;
|
|
1740
|
+
}
|
|
1511
1741
|
return new ZodRecord({
|
|
1512
1742
|
type: "record",
|
|
1513
1743
|
keyType,
|
|
@@ -1702,7 +1932,7 @@ export function nativeEnum<T extends util.EnumLike>(entries: T, params?: string
|
|
|
1702
1932
|
type: "enum",
|
|
1703
1933
|
entries,
|
|
1704
1934
|
...util.normalizeParams(params),
|
|
1705
|
-
}) as
|
|
1935
|
+
}) as ZodEnum<T>;
|
|
1706
1936
|
}
|
|
1707
1937
|
|
|
1708
1938
|
// ZodLiteral
|
|
@@ -1804,17 +2034,19 @@ export const ZodTransform: core.$constructor<ZodTransform> = /*@__PURE__*/ core.
|
|
|
1804
2034
|
if (output instanceof Promise) {
|
|
1805
2035
|
return output.then((output) => {
|
|
1806
2036
|
payload.value = output;
|
|
2037
|
+
payload.fallback = true;
|
|
1807
2038
|
return payload;
|
|
1808
2039
|
});
|
|
1809
2040
|
}
|
|
1810
2041
|
payload.value = output;
|
|
2042
|
+
payload.fallback = true;
|
|
1811
2043
|
return payload;
|
|
1812
2044
|
};
|
|
1813
2045
|
}
|
|
1814
2046
|
);
|
|
1815
2047
|
|
|
1816
2048
|
export function transform<I = unknown, O = I>(
|
|
1817
|
-
fn: (input: I, ctx: core
|
|
2049
|
+
fn: (input: I, ctx: core.$RefinementCtx) => O
|
|
1818
2050
|
): ZodTransform<Awaited<O>, I> {
|
|
1819
2051
|
return new ZodTransform({
|
|
1820
2052
|
type: "transform",
|
|
@@ -2120,6 +2352,33 @@ export function codec<const A extends core.SomeType, B extends core.SomeType = c
|
|
|
2120
2352
|
}) as any;
|
|
2121
2353
|
}
|
|
2122
2354
|
|
|
2355
|
+
export function invertCodec<A extends core.SomeType, B extends core.SomeType>(codec: ZodCodec<A, B>): ZodCodec<B, A> {
|
|
2356
|
+
const def = codec._zod.def;
|
|
2357
|
+
return new ZodCodec({
|
|
2358
|
+
type: "pipe",
|
|
2359
|
+
in: def.out as any,
|
|
2360
|
+
out: def.in as any,
|
|
2361
|
+
transform: def.reverseTransform as any,
|
|
2362
|
+
reverseTransform: def.transform as any,
|
|
2363
|
+
}) as any;
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
// ZodPreprocess
|
|
2367
|
+
export interface ZodPreprocess<B extends core.SomeType = core.$ZodType>
|
|
2368
|
+
extends ZodPipe<core.$ZodTransform, B>,
|
|
2369
|
+
core.$ZodPreprocess<B> {
|
|
2370
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2371
|
+
_zod: core.$ZodPreprocessInternals<B>;
|
|
2372
|
+
def: core.$ZodPreprocessDef<B>;
|
|
2373
|
+
}
|
|
2374
|
+
export const ZodPreprocess: core.$constructor<ZodPreprocess> = /*@__PURE__*/ core.$constructor(
|
|
2375
|
+
"ZodPreprocess",
|
|
2376
|
+
(inst, def) => {
|
|
2377
|
+
ZodPipe.init(inst, def);
|
|
2378
|
+
core.$ZodPreprocess.init(inst, def);
|
|
2379
|
+
}
|
|
2380
|
+
);
|
|
2381
|
+
|
|
2123
2382
|
// ZodReadonly
|
|
2124
2383
|
export interface ZodReadonly<T extends core.SomeType = core.$ZodType>
|
|
2125
2384
|
extends _ZodType<core.$ZodReadonlyInternals<T>>,
|
|
@@ -2321,9 +2580,10 @@ export function refine<T>(
|
|
|
2321
2580
|
|
|
2322
2581
|
// superRefine
|
|
2323
2582
|
export function superRefine<T>(
|
|
2324
|
-
fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void
|
|
2583
|
+
fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
|
|
2584
|
+
params?: core.$ZodSuperRefineParams
|
|
2325
2585
|
): core.$ZodCheck<T> {
|
|
2326
|
-
return core._superRefine(fn);
|
|
2586
|
+
return core._superRefine(fn, params);
|
|
2327
2587
|
}
|
|
2328
2588
|
|
|
2329
2589
|
// Re-export describe and meta from core
|
|
@@ -2400,10 +2660,13 @@ export function json(params?: string | core.$ZodCustomParams): ZodJSONSchema {
|
|
|
2400
2660
|
|
|
2401
2661
|
// preprocess
|
|
2402
2662
|
|
|
2403
|
-
// /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
|
|
2404
2663
|
export function preprocess<A, U extends core.SomeType, B = unknown>(
|
|
2405
2664
|
fn: (arg: B, ctx: core.$RefinementCtx) => A,
|
|
2406
2665
|
schema: U
|
|
2407
|
-
):
|
|
2408
|
-
return
|
|
2666
|
+
): ZodPreprocess<U> {
|
|
2667
|
+
return new ZodPreprocess({
|
|
2668
|
+
type: "pipe",
|
|
2669
|
+
in: transform(fn as any) as any as core.$ZodTransform,
|
|
2670
|
+
out: schema as any as core.$ZodType,
|
|
2671
|
+
}) as any;
|
|
2409
2672
|
}
|