claude-scope 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/stdin-provider.d.ts +1 -1
- package/dist/data/stdin-provider.d.ts.map +1 -1
- package/dist/data/stdin-provider.js +7 -18
- package/dist/data/stdin-provider.js.map +1 -1
- package/dist/schemas/stdin-schema.d.ts +80 -119
- package/dist/schemas/stdin-schema.d.ts.map +1 -1
- package/dist/schemas/stdin-schema.js +35 -68
- package/dist/schemas/stdin-schema.js.map +1 -1
- package/dist/validation/combinators.d.ts +10 -0
- package/dist/validation/combinators.d.ts.map +1 -0
- package/dist/validation/combinators.js +49 -0
- package/dist/validation/combinators.js.map +1 -0
- package/dist/validation/core.d.ts +30 -0
- package/dist/validation/core.d.ts.map +1 -0
- package/dist/validation/core.js +2 -0
- package/dist/validation/core.js.map +1 -0
- package/dist/validation/index.d.ts +4 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +4 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/result.d.ts +5 -0
- package/dist/validation/result.d.ts.map +1 -0
- package/dist/validation/result.js +11 -0
- package/dist/validation/result.js.map +1 -0
- package/dist/validation/validators.d.ts +7 -0
- package/dist/validation/validators.d.ts.map +1 -0
- package/dist/validation/validators.js +41 -0
- package/dist/validation/validators.js.map +1 -0
- package/package.json +4 -6
- package/dist/core/stdin-data-widget.d.ts +0 -85
- package/dist/core/stdin-data-widget.d.ts.map +0 -1
- package/dist/core/stdin-data-widget.js +0 -75
- package/dist/core/stdin-data-widget.js.map +0 -1
- package/dist/providers/stdin-provider.d.ts +0 -44
- package/dist/providers/stdin-provider.d.ts.map +0 -1
- package/dist/providers/stdin-provider.js +0 -83
- package/dist/providers/stdin-provider.js.map +0 -1
- package/dist/utils/colors.d.ts +0 -52
- package/dist/utils/colors.d.ts.map +0 -1
- package/dist/utils/colors.js +0 -54
- package/dist/utils/colors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -56
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -114
- package/dist/utils/formatters.js.map +0 -1
- package/dist/widgets/git-changes-widget.d.ts +0 -16
- package/dist/widgets/git-changes-widget.d.ts.map +0 -1
- package/dist/widgets/git-changes-widget.js +0 -37
- package/dist/widgets/git-changes-widget.js.map +0 -1
- package/dist/widgets/git-widget.d.ts +0 -35
- package/dist/widgets/git-widget.d.ts.map +0 -1
- package/dist/widgets/git-widget.js +0 -51
- package/dist/widgets/git-widget.js.map +0 -1
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -6
- package/node_modules/zod/mini/index.cjs +0 -17
- package/node_modules/zod/mini/index.d.cts +0 -1
- package/node_modules/zod/mini/index.d.ts +0 -1
- package/node_modules/zod/mini/index.js +0 -1
- package/node_modules/zod/mini/package.json +0 -6
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -1
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -51
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1798
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -138
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -448
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -183
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4543
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
- package/node_modules/zod/src/v4/core/util.ts +0 -966
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/en.ts +0 -119
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -116
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -49
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -116
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
- package/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -6
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -15
- package/node_modules/zod/v4/classic/external.d.ts +0 -15
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -584
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -6
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1272
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -739
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -739
- package/node_modules/zod/v4/classic/schemas.js +0 -1157
- package/node_modules/zod/v4/core/api.cjs +0 -1222
- package/node_modules/zod/v4/core/api.d.cts +0 -304
- package/node_modules/zod/v4/core/api.d.ts +0 -304
- package/node_modules/zod/v4/core/api.js +0 -1082
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -83
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -76
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -213
- package/node_modules/zod/v4/core/errors.d.cts +0 -220
- package/node_modules/zod/v4/core/errors.d.ts +0 -220
- package/node_modules/zod/v4/core/errors.js +0 -182
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -605
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -6
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -166
- package/node_modules/zod/v4/core/regexes.d.cts +0 -79
- package/node_modules/zod/v4/core/regexes.d.ts +0 -79
- package/node_modules/zod/v4/core/regexes.js +0 -133
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2126
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1146
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1146
- package/node_modules/zod/v4/core/schemas.js +0 -2095
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -437
- package/node_modules/zod/v4/core/util.cjs +0 -710
- package/node_modules/zod/v4/core/util.d.cts +0 -199
- package/node_modules/zod/v4/core/util.d.ts +0 -199
- package/node_modules/zod/v4/core/util.js +0 -651
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/en.cjs +0 -136
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -109
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -135
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -108
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -104
- package/node_modules/zod/v4/locales/index.d.cts +0 -49
- package/node_modules/zod/v4/locales/index.d.ts +0 -49
- package/node_modules/zod/v4/locales/index.js +0 -49
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -6
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -136
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -109
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -12
- package/node_modules/zod/v4/mini/external.d.ts +0 -12
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -6
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1046
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -427
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -427
- package/node_modules/zod/v4/mini/schemas.js +0 -925
- package/node_modules/zod/v4/package.json +0 -6
- package/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/zod/v4-mini/index.js +0 -1
- package/node_modules/zod/v4-mini/package.json +0 -6
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import type { $ZodStringFormats } from "../core/checks.js";
|
|
2
|
-
import type * as errors from "../core/errors.js";
|
|
3
|
-
import * as util from "../core/util.js";
|
|
4
|
-
|
|
5
|
-
const error: () => errors.$ZodErrorMap = () => {
|
|
6
|
-
const Sizable: Record<string, { unit: string; subject: string }> = {
|
|
7
|
-
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
8
|
-
file: { unit: "tavua", subject: "tiedoston" },
|
|
9
|
-
array: { unit: "alkiota", subject: "listan" },
|
|
10
|
-
set: { unit: "alkiota", subject: "joukon" },
|
|
11
|
-
number: { unit: "", subject: "luvun" },
|
|
12
|
-
bigint: { unit: "", subject: "suuren kokonaisluvun" },
|
|
13
|
-
int: { unit: "", subject: "kokonaisluvun" },
|
|
14
|
-
date: { unit: "", subject: "päivämäärän" },
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function getSizing(origin: string): { unit: string; subject: string } | null {
|
|
18
|
-
return Sizable[origin] ?? null;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const FormatDictionary: {
|
|
22
|
-
[k in $ZodStringFormats | (string & {})]?: string;
|
|
23
|
-
} = {
|
|
24
|
-
regex: "säännöllinen lauseke",
|
|
25
|
-
email: "sähköpostiosoite",
|
|
26
|
-
url: "URL-osoite",
|
|
27
|
-
emoji: "emoji",
|
|
28
|
-
uuid: "UUID",
|
|
29
|
-
uuidv4: "UUIDv4",
|
|
30
|
-
uuidv6: "UUIDv6",
|
|
31
|
-
nanoid: "nanoid",
|
|
32
|
-
guid: "GUID",
|
|
33
|
-
cuid: "cuid",
|
|
34
|
-
cuid2: "cuid2",
|
|
35
|
-
ulid: "ULID",
|
|
36
|
-
xid: "XID",
|
|
37
|
-
ksuid: "KSUID",
|
|
38
|
-
datetime: "ISO-aikaleima",
|
|
39
|
-
date: "ISO-päivämäärä",
|
|
40
|
-
time: "ISO-aika",
|
|
41
|
-
duration: "ISO-kesto",
|
|
42
|
-
ipv4: "IPv4-osoite",
|
|
43
|
-
ipv6: "IPv6-osoite",
|
|
44
|
-
cidrv4: "IPv4-alue",
|
|
45
|
-
cidrv6: "IPv6-alue",
|
|
46
|
-
base64: "base64-koodattu merkkijono",
|
|
47
|
-
base64url: "base64url-koodattu merkkijono",
|
|
48
|
-
json_string: "JSON-merkkijono",
|
|
49
|
-
e164: "E.164-luku",
|
|
50
|
-
jwt: "JWT",
|
|
51
|
-
template_literal: "templaattimerkkijono",
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const TypeDictionary: {
|
|
55
|
-
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
56
|
-
} = {
|
|
57
|
-
nan: "NaN",
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
return (issue) => {
|
|
61
|
-
switch (issue.code) {
|
|
62
|
-
case "invalid_type": {
|
|
63
|
-
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
64
|
-
const receivedType = util.parsedType(issue.input);
|
|
65
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
66
|
-
if (/^[A-Z]/.test(issue.expected)) {
|
|
67
|
-
return `Virheellinen tyyppi: odotettiin instanceof ${issue.expected}, oli ${received}`;
|
|
68
|
-
}
|
|
69
|
-
return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`;
|
|
70
|
-
}
|
|
71
|
-
case "invalid_value":
|
|
72
|
-
if (issue.values.length === 1)
|
|
73
|
-
return `Virheellinen syöte: täytyy olla ${util.stringifyPrimitive(issue.values[0])}`;
|
|
74
|
-
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${util.joinValues(issue.values, "|")}`;
|
|
75
|
-
case "too_big": {
|
|
76
|
-
const adj = issue.inclusive ? "<=" : "<";
|
|
77
|
-
const sizing = getSizing(issue.origin);
|
|
78
|
-
if (sizing) {
|
|
79
|
-
return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue.maximum.toString()} ${sizing.unit}`.trim();
|
|
80
|
-
}
|
|
81
|
-
return `Liian suuri: arvon täytyy olla ${adj}${issue.maximum.toString()}`;
|
|
82
|
-
}
|
|
83
|
-
case "too_small": {
|
|
84
|
-
const adj = issue.inclusive ? ">=" : ">";
|
|
85
|
-
const sizing = getSizing(issue.origin);
|
|
86
|
-
if (sizing) {
|
|
87
|
-
return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue.minimum.toString()} ${sizing.unit}`.trim();
|
|
88
|
-
}
|
|
89
|
-
return `Liian pieni: arvon täytyy olla ${adj}${issue.minimum.toString()}`;
|
|
90
|
-
}
|
|
91
|
-
case "invalid_format": {
|
|
92
|
-
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
93
|
-
if (_issue.format === "starts_with") return `Virheellinen syöte: täytyy alkaa "${_issue.prefix}"`;
|
|
94
|
-
if (_issue.format === "ends_with") return `Virheellinen syöte: täytyy loppua "${_issue.suffix}"`;
|
|
95
|
-
if (_issue.format === "includes") return `Virheellinen syöte: täytyy sisältää "${_issue.includes}"`;
|
|
96
|
-
if (_issue.format === "regex") {
|
|
97
|
-
return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`;
|
|
98
|
-
}
|
|
99
|
-
return `Virheellinen ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
100
|
-
}
|
|
101
|
-
case "not_multiple_of":
|
|
102
|
-
return `Virheellinen luku: täytyy olla luvun ${issue.divisor} monikerta`;
|
|
103
|
-
case "unrecognized_keys":
|
|
104
|
-
return `${issue.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${util.joinValues(issue.keys, ", ")}`;
|
|
105
|
-
case "invalid_key":
|
|
106
|
-
return "Virheellinen avain tietueessa";
|
|
107
|
-
case "invalid_union":
|
|
108
|
-
return "Virheellinen unioni";
|
|
109
|
-
case "invalid_element":
|
|
110
|
-
return "Virheellinen arvo joukossa";
|
|
111
|
-
default:
|
|
112
|
-
return `Virheellinen syöte`;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
118
|
-
return {
|
|
119
|
-
localeError: error(),
|
|
120
|
-
};
|
|
121
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import type { $ZodStringFormats } from "../core/checks.js";
|
|
2
|
-
import type * as errors from "../core/errors.js";
|
|
3
|
-
import * as util from "../core/util.js";
|
|
4
|
-
|
|
5
|
-
const error: () => errors.$ZodErrorMap = () => {
|
|
6
|
-
const Sizable: Record<string, { unit: string; verb: string }> = {
|
|
7
|
-
string: { unit: "caractères", verb: "avoir" },
|
|
8
|
-
file: { unit: "octets", verb: "avoir" },
|
|
9
|
-
array: { unit: "éléments", verb: "avoir" },
|
|
10
|
-
set: { unit: "éléments", verb: "avoir" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
14
|
-
return Sizable[origin] ?? null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const FormatDictionary: {
|
|
18
|
-
[k in $ZodStringFormats | (string & {})]?: string;
|
|
19
|
-
} = {
|
|
20
|
-
regex: "entrée",
|
|
21
|
-
email: "adresse courriel",
|
|
22
|
-
url: "URL",
|
|
23
|
-
emoji: "emoji",
|
|
24
|
-
uuid: "UUID",
|
|
25
|
-
uuidv4: "UUIDv4",
|
|
26
|
-
uuidv6: "UUIDv6",
|
|
27
|
-
nanoid: "nanoid",
|
|
28
|
-
guid: "GUID",
|
|
29
|
-
cuid: "cuid",
|
|
30
|
-
cuid2: "cuid2",
|
|
31
|
-
ulid: "ULID",
|
|
32
|
-
xid: "XID",
|
|
33
|
-
ksuid: "KSUID",
|
|
34
|
-
datetime: "date-heure ISO",
|
|
35
|
-
date: "date ISO",
|
|
36
|
-
time: "heure ISO",
|
|
37
|
-
duration: "durée ISO",
|
|
38
|
-
ipv4: "adresse IPv4",
|
|
39
|
-
ipv6: "adresse IPv6",
|
|
40
|
-
cidrv4: "plage IPv4",
|
|
41
|
-
cidrv6: "plage IPv6",
|
|
42
|
-
base64: "chaîne encodée en base64",
|
|
43
|
-
base64url: "chaîne encodée en base64url",
|
|
44
|
-
json_string: "chaîne JSON",
|
|
45
|
-
e164: "numéro E.164",
|
|
46
|
-
jwt: "JWT",
|
|
47
|
-
template_literal: "entrée",
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const TypeDictionary: {
|
|
51
|
-
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
52
|
-
} = {
|
|
53
|
-
nan: "NaN",
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return (issue) => {
|
|
57
|
-
switch (issue.code) {
|
|
58
|
-
case "invalid_type": {
|
|
59
|
-
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
60
|
-
const receivedType = util.parsedType(issue.input);
|
|
61
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
62
|
-
if (/^[A-Z]/.test(issue.expected)) {
|
|
63
|
-
return `Entrée invalide : attendu instanceof ${issue.expected}, reçu ${received}`;
|
|
64
|
-
}
|
|
65
|
-
return `Entrée invalide : attendu ${expected}, reçu ${received}`;
|
|
66
|
-
}
|
|
67
|
-
case "invalid_value":
|
|
68
|
-
if (issue.values.length === 1) return `Entrée invalide : attendu ${util.stringifyPrimitive(issue.values[0])}`;
|
|
69
|
-
return `Option invalide : attendu l'une des valeurs suivantes ${util.joinValues(issue.values, "|")}`;
|
|
70
|
-
case "too_big": {
|
|
71
|
-
const adj = issue.inclusive ? "≤" : "<";
|
|
72
|
-
const sizing = getSizing(issue.origin);
|
|
73
|
-
if (sizing)
|
|
74
|
-
return `Trop grand : attendu que ${issue.origin ?? "la valeur"} ait ${adj}${issue.maximum.toString()} ${sizing.unit}`;
|
|
75
|
-
return `Trop grand : attendu que ${issue.origin ?? "la valeur"} soit ${adj}${issue.maximum.toString()}`;
|
|
76
|
-
}
|
|
77
|
-
case "too_small": {
|
|
78
|
-
const adj = issue.inclusive ? "≥" : ">";
|
|
79
|
-
const sizing = getSizing(issue.origin);
|
|
80
|
-
if (sizing) {
|
|
81
|
-
return `Trop petit : attendu que ${issue.origin} ait ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return `Trop petit : attendu que ${issue.origin} soit ${adj}${issue.minimum.toString()}`;
|
|
85
|
-
}
|
|
86
|
-
case "invalid_format": {
|
|
87
|
-
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
88
|
-
if (_issue.format === "starts_with") {
|
|
89
|
-
return `Chaîne invalide : doit commencer par "${_issue.prefix}"`;
|
|
90
|
-
}
|
|
91
|
-
if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`;
|
|
92
|
-
if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`;
|
|
93
|
-
if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`;
|
|
94
|
-
return `${FormatDictionary[_issue.format] ?? issue.format} invalide`;
|
|
95
|
-
}
|
|
96
|
-
case "not_multiple_of":
|
|
97
|
-
return `Nombre invalide : doit être un multiple de ${issue.divisor}`;
|
|
98
|
-
case "unrecognized_keys":
|
|
99
|
-
return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${util.joinValues(issue.keys, ", ")}`;
|
|
100
|
-
case "invalid_key":
|
|
101
|
-
return `Clé invalide dans ${issue.origin}`;
|
|
102
|
-
case "invalid_union":
|
|
103
|
-
return "Entrée invalide";
|
|
104
|
-
case "invalid_element":
|
|
105
|
-
return `Valeur invalide dans ${issue.origin}`;
|
|
106
|
-
default:
|
|
107
|
-
return `Entrée invalide`;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
113
|
-
return {
|
|
114
|
-
localeError: error(),
|
|
115
|
-
};
|
|
116
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import type { $ZodStringFormats } from "../core/checks.js";
|
|
2
|
-
import type * as errors from "../core/errors.js";
|
|
3
|
-
import * as util from "../core/util.js";
|
|
4
|
-
|
|
5
|
-
const error: () => errors.$ZodErrorMap = () => {
|
|
6
|
-
const Sizable: Record<string, { unit: string; verb: string }> = {
|
|
7
|
-
string: { unit: "caractères", verb: "avoir" },
|
|
8
|
-
file: { unit: "octets", verb: "avoir" },
|
|
9
|
-
array: { unit: "éléments", verb: "avoir" },
|
|
10
|
-
set: { unit: "éléments", verb: "avoir" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
14
|
-
return Sizable[origin] ?? null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const FormatDictionary: {
|
|
18
|
-
[k in $ZodStringFormats | (string & {})]?: string;
|
|
19
|
-
} = {
|
|
20
|
-
regex: "entrée",
|
|
21
|
-
email: "adresse e-mail",
|
|
22
|
-
url: "URL",
|
|
23
|
-
emoji: "emoji",
|
|
24
|
-
uuid: "UUID",
|
|
25
|
-
uuidv4: "UUIDv4",
|
|
26
|
-
uuidv6: "UUIDv6",
|
|
27
|
-
nanoid: "nanoid",
|
|
28
|
-
guid: "GUID",
|
|
29
|
-
cuid: "cuid",
|
|
30
|
-
cuid2: "cuid2",
|
|
31
|
-
ulid: "ULID",
|
|
32
|
-
xid: "XID",
|
|
33
|
-
ksuid: "KSUID",
|
|
34
|
-
datetime: "date et heure ISO",
|
|
35
|
-
date: "date ISO",
|
|
36
|
-
time: "heure ISO",
|
|
37
|
-
duration: "durée ISO",
|
|
38
|
-
ipv4: "adresse IPv4",
|
|
39
|
-
ipv6: "adresse IPv6",
|
|
40
|
-
cidrv4: "plage IPv4",
|
|
41
|
-
cidrv6: "plage IPv6",
|
|
42
|
-
base64: "chaîne encodée en base64",
|
|
43
|
-
base64url: "chaîne encodée en base64url",
|
|
44
|
-
json_string: "chaîne JSON",
|
|
45
|
-
e164: "numéro E.164",
|
|
46
|
-
jwt: "JWT",
|
|
47
|
-
template_literal: "entrée",
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const TypeDictionary: {
|
|
51
|
-
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
52
|
-
} = {
|
|
53
|
-
nan: "NaN",
|
|
54
|
-
number: "nombre",
|
|
55
|
-
array: "tableau",
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return (issue) => {
|
|
59
|
-
switch (issue.code) {
|
|
60
|
-
case "invalid_type": {
|
|
61
|
-
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
62
|
-
const receivedType = util.parsedType(issue.input);
|
|
63
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
64
|
-
if (/^[A-Z]/.test(issue.expected)) {
|
|
65
|
-
return `Entrée invalide : instanceof ${issue.expected} attendu, ${received} reçu`;
|
|
66
|
-
}
|
|
67
|
-
return `Entrée invalide : ${expected} attendu, ${received} reçu`;
|
|
68
|
-
}
|
|
69
|
-
case "invalid_value":
|
|
70
|
-
if (issue.values.length === 1) return `Entrée invalide : ${util.stringifyPrimitive(issue.values[0])} attendu`;
|
|
71
|
-
return `Option invalide : une valeur parmi ${util.joinValues(issue.values, "|")} attendue`;
|
|
72
|
-
case "too_big": {
|
|
73
|
-
const adj = issue.inclusive ? "<=" : "<";
|
|
74
|
-
const sizing = getSizing(issue.origin);
|
|
75
|
-
if (sizing)
|
|
76
|
-
return `Trop grand : ${issue.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
77
|
-
return `Trop grand : ${issue.origin ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`;
|
|
78
|
-
}
|
|
79
|
-
case "too_small": {
|
|
80
|
-
const adj = issue.inclusive ? ">=" : ">";
|
|
81
|
-
const sizing = getSizing(issue.origin);
|
|
82
|
-
if (sizing) {
|
|
83
|
-
return `Trop petit : ${issue.origin} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return `Trop petit : ${issue.origin} doit être ${adj}${issue.minimum.toString()}`;
|
|
87
|
-
}
|
|
88
|
-
case "invalid_format": {
|
|
89
|
-
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
90
|
-
if (_issue.format === "starts_with") return `Chaîne invalide : doit commencer par "${_issue.prefix}"`;
|
|
91
|
-
if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`;
|
|
92
|
-
if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`;
|
|
93
|
-
if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`;
|
|
94
|
-
return `${FormatDictionary[_issue.format] ?? issue.format} invalide`;
|
|
95
|
-
}
|
|
96
|
-
case "not_multiple_of":
|
|
97
|
-
return `Nombre invalide : doit être un multiple de ${issue.divisor}`;
|
|
98
|
-
case "unrecognized_keys":
|
|
99
|
-
return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${util.joinValues(issue.keys, ", ")}`;
|
|
100
|
-
case "invalid_key":
|
|
101
|
-
return `Clé invalide dans ${issue.origin}`;
|
|
102
|
-
case "invalid_union":
|
|
103
|
-
return "Entrée invalide";
|
|
104
|
-
case "invalid_element":
|
|
105
|
-
return `Valeur invalide dans ${issue.origin}`;
|
|
106
|
-
default:
|
|
107
|
-
return `Entrée invalide`;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
113
|
-
return {
|
|
114
|
-
localeError: error(),
|
|
115
|
-
};
|
|
116
|
-
}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import type { $ZodStringFormats } from "../core/checks.js";
|
|
2
|
-
import type * as errors from "../core/errors.js";
|
|
3
|
-
import * as util from "../core/util.js";
|
|
4
|
-
|
|
5
|
-
const error: () => errors.$ZodErrorMap = () => {
|
|
6
|
-
// Hebrew labels + grammatical gender
|
|
7
|
-
const TypeNames: Record<string, { label: string; gender: "m" | "f" }> = {
|
|
8
|
-
string: { label: "מחרוזת", gender: "f" },
|
|
9
|
-
number: { label: "מספר", gender: "m" },
|
|
10
|
-
boolean: { label: "ערך בוליאני", gender: "m" },
|
|
11
|
-
bigint: { label: "BigInt", gender: "m" },
|
|
12
|
-
date: { label: "תאריך", gender: "m" },
|
|
13
|
-
array: { label: "מערך", gender: "m" },
|
|
14
|
-
object: { label: "אובייקט", gender: "m" },
|
|
15
|
-
null: { label: "ערך ריק (null)", gender: "m" },
|
|
16
|
-
undefined: { label: "ערך לא מוגדר (undefined)", gender: "m" },
|
|
17
|
-
symbol: { label: "סימבול (Symbol)", gender: "m" },
|
|
18
|
-
function: { label: "פונקציה", gender: "f" },
|
|
19
|
-
map: { label: "מפה (Map)", gender: "f" },
|
|
20
|
-
set: { label: "קבוצה (Set)", gender: "f" },
|
|
21
|
-
file: { label: "קובץ", gender: "m" },
|
|
22
|
-
promise: { label: "Promise", gender: "m" },
|
|
23
|
-
NaN: { label: "NaN", gender: "m" },
|
|
24
|
-
unknown: { label: "ערך לא ידוע", gender: "m" },
|
|
25
|
-
value: { label: "ערך", gender: "m" },
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// Sizing units for size-related messages + localized origin labels
|
|
29
|
-
const Sizable: Record<string, { unit: string; shortLabel?: string; longLabel?: string }> = {
|
|
30
|
-
string: { unit: "תווים", shortLabel: "קצר", longLabel: "ארוך" },
|
|
31
|
-
file: { unit: "בייטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
32
|
-
array: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
33
|
-
set: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" },
|
|
34
|
-
number: { unit: "", shortLabel: "קטן", longLabel: "גדול" }, // no unit
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// Helpers — labels, articles, and verbs
|
|
38
|
-
const typeEntry = (t?: string | null) => (t ? TypeNames[t] : undefined);
|
|
39
|
-
|
|
40
|
-
const typeLabel = (t?: string | null): string => {
|
|
41
|
-
const e = typeEntry(t);
|
|
42
|
-
if (e) return e.label;
|
|
43
|
-
// fallback: show raw string if unknown
|
|
44
|
-
return t ?? TypeNames.unknown.label;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const withDefinite = (t?: string | null): string => `ה${typeLabel(t)}`;
|
|
48
|
-
|
|
49
|
-
const verbFor = (t?: string | null): string => {
|
|
50
|
-
const e = typeEntry(t);
|
|
51
|
-
const gender = e?.gender ?? "m";
|
|
52
|
-
return gender === "f" ? "צריכה להיות" : "צריך להיות";
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const getSizing = (origin?: string | null) => {
|
|
56
|
-
if (!origin) return null;
|
|
57
|
-
return Sizable[origin] ?? null;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const FormatDictionary: {
|
|
61
|
-
[k in $ZodStringFormats]: { label: string; gender: "m" | "f" };
|
|
62
|
-
} = {
|
|
63
|
-
regex: { label: "קלט", gender: "m" },
|
|
64
|
-
email: { label: "כתובת אימייל", gender: "f" },
|
|
65
|
-
url: { label: "כתובת רשת", gender: "f" },
|
|
66
|
-
emoji: { label: "אימוג'י", gender: "m" },
|
|
67
|
-
uuid: { label: "UUID", gender: "m" },
|
|
68
|
-
nanoid: { label: "nanoid", gender: "m" },
|
|
69
|
-
guid: { label: "GUID", gender: "m" },
|
|
70
|
-
cuid: { label: "cuid", gender: "m" },
|
|
71
|
-
cuid2: { label: "cuid2", gender: "m" },
|
|
72
|
-
ulid: { label: "ULID", gender: "m" },
|
|
73
|
-
xid: { label: "XID", gender: "m" },
|
|
74
|
-
ksuid: { label: "KSUID", gender: "m" },
|
|
75
|
-
datetime: { label: "תאריך וזמן ISO", gender: "m" },
|
|
76
|
-
date: { label: "תאריך ISO", gender: "m" },
|
|
77
|
-
time: { label: "זמן ISO", gender: "m" },
|
|
78
|
-
duration: { label: "משך זמן ISO", gender: "m" },
|
|
79
|
-
ipv4: { label: "כתובת IPv4", gender: "f" },
|
|
80
|
-
ipv6: { label: "כתובת IPv6", gender: "f" },
|
|
81
|
-
cidrv4: { label: "טווח IPv4", gender: "m" },
|
|
82
|
-
cidrv6: { label: "טווח IPv6", gender: "m" },
|
|
83
|
-
base64: { label: "מחרוזת בבסיס 64", gender: "f" },
|
|
84
|
-
base64url: { label: "מחרוזת בבסיס 64 לכתובות רשת", gender: "f" },
|
|
85
|
-
json_string: { label: "מחרוזת JSON", gender: "f" },
|
|
86
|
-
e164: { label: "מספר E.164", gender: "m" },
|
|
87
|
-
jwt: { label: "JWT", gender: "m" },
|
|
88
|
-
ends_with: { label: "קלט", gender: "m" },
|
|
89
|
-
includes: { label: "קלט", gender: "m" },
|
|
90
|
-
lowercase: { label: "קלט", gender: "m" },
|
|
91
|
-
starts_with: { label: "קלט", gender: "m" },
|
|
92
|
-
uppercase: { label: "קלט", gender: "m" },
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const TypeDictionary: {
|
|
96
|
-
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
97
|
-
} = {
|
|
98
|
-
nan: "NaN",
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
return (issue) => {
|
|
102
|
-
switch (issue.code) {
|
|
103
|
-
case "invalid_type": {
|
|
104
|
-
// Expected type: show without definite article for clearer Hebrew
|
|
105
|
-
const expectedKey = issue.expected as string | undefined;
|
|
106
|
-
const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey);
|
|
107
|
-
// Received: show localized label if known, otherwise constructor/raw
|
|
108
|
-
const receivedType = util.parsedType(issue.input);
|
|
109
|
-
const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
|
|
110
|
-
if (/^[A-Z]/.test(issue.expected)) {
|
|
111
|
-
return `קלט לא תקין: צריך להיות instanceof ${issue.expected}, התקבל ${received}`;
|
|
112
|
-
}
|
|
113
|
-
return `קלט לא תקין: צריך להיות ${expected}, התקבל ${received}`;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
case "invalid_value": {
|
|
117
|
-
if (issue.values.length === 1) {
|
|
118
|
-
return `ערך לא תקין: הערך חייב להיות ${util.stringifyPrimitive(issue.values[0])}`;
|
|
119
|
-
}
|
|
120
|
-
// Join values with proper Hebrew formatting
|
|
121
|
-
const stringified = issue.values.map((v) => util.stringifyPrimitive(v));
|
|
122
|
-
if (issue.values.length === 2) {
|
|
123
|
-
return `ערך לא תקין: האפשרויות המתאימות הן ${stringified[0]} או ${stringified[1]}`;
|
|
124
|
-
}
|
|
125
|
-
// For 3+ values: "a", "b" או "c"
|
|
126
|
-
const lastValue = stringified[stringified.length - 1];
|
|
127
|
-
const restValues = stringified.slice(0, -1).join(", ");
|
|
128
|
-
return `ערך לא תקין: האפשרויות המתאימות הן ${restValues} או ${lastValue}`;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
case "too_big": {
|
|
132
|
-
const sizing = getSizing(issue.origin);
|
|
133
|
-
const subject = withDefinite(issue.origin ?? "value");
|
|
134
|
-
|
|
135
|
-
if (issue.origin === "string") {
|
|
136
|
-
// Special handling for strings - more natural Hebrew
|
|
137
|
-
return `${sizing?.longLabel ?? "ארוך"} מדי: ${subject} צריכה להכיל ${issue.maximum.toString()} ${sizing?.unit ?? ""} ${issue.inclusive ? "או פחות" : "לכל היותר"}`.trim();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if (issue.origin === "number") {
|
|
141
|
-
// Natural Hebrew for numbers
|
|
142
|
-
const comparison = issue.inclusive ? `קטן או שווה ל-${issue.maximum}` : `קטן מ-${issue.maximum}`;
|
|
143
|
-
return `גדול מדי: ${subject} צריך להיות ${comparison}`;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (issue.origin === "array" || issue.origin === "set") {
|
|
147
|
-
// Natural Hebrew for arrays and sets
|
|
148
|
-
const verb = issue.origin === "set" ? "צריכה" : "צריך";
|
|
149
|
-
const comparison = issue.inclusive
|
|
150
|
-
? `${issue.maximum} ${sizing?.unit ?? ""} או פחות`
|
|
151
|
-
: `פחות מ-${issue.maximum} ${sizing?.unit ?? ""}`;
|
|
152
|
-
return `גדול מדי: ${subject} ${verb} להכיל ${comparison}`.trim();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const adj = issue.inclusive ? "<=" : "<";
|
|
156
|
-
const be = verbFor(issue.origin ?? "value");
|
|
157
|
-
if (sizing?.unit) {
|
|
158
|
-
return `${sizing.longLabel} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()} ${sizing.unit}`;
|
|
159
|
-
}
|
|
160
|
-
return `${sizing?.longLabel ?? "גדול"} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()}`;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
case "too_small": {
|
|
164
|
-
const sizing = getSizing(issue.origin);
|
|
165
|
-
const subject = withDefinite(issue.origin ?? "value");
|
|
166
|
-
|
|
167
|
-
if (issue.origin === "string") {
|
|
168
|
-
// Special handling for strings - more natural Hebrew
|
|
169
|
-
return `${sizing?.shortLabel ?? "קצר"} מדי: ${subject} צריכה להכיל ${issue.minimum.toString()} ${sizing?.unit ?? ""} ${issue.inclusive ? "או יותר" : "לפחות"}`.trim();
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (issue.origin === "number") {
|
|
173
|
-
// Natural Hebrew for numbers
|
|
174
|
-
const comparison = issue.inclusive ? `גדול או שווה ל-${issue.minimum}` : `גדול מ-${issue.minimum}`;
|
|
175
|
-
return `קטן מדי: ${subject} צריך להיות ${comparison}`;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (issue.origin === "array" || issue.origin === "set") {
|
|
179
|
-
// Natural Hebrew for arrays and sets
|
|
180
|
-
const verb = issue.origin === "set" ? "צריכה" : "צריך";
|
|
181
|
-
|
|
182
|
-
// Special case for singular (minimum === 1)
|
|
183
|
-
if (issue.minimum === 1 && issue.inclusive) {
|
|
184
|
-
const singularPhrase = issue.origin === "set" ? "לפחות פריט אחד" : "לפחות פריט אחד";
|
|
185
|
-
return `קטן מדי: ${subject} ${verb} להכיל ${singularPhrase}`;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
const comparison = issue.inclusive
|
|
189
|
-
? `${issue.minimum} ${sizing?.unit ?? ""} או יותר`
|
|
190
|
-
: `יותר מ-${issue.minimum} ${sizing?.unit ?? ""}`;
|
|
191
|
-
return `קטן מדי: ${subject} ${verb} להכיל ${comparison}`.trim();
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
const adj = issue.inclusive ? ">=" : ">";
|
|
195
|
-
const be = verbFor(issue.origin ?? "value");
|
|
196
|
-
if (sizing?.unit) {
|
|
197
|
-
return `${sizing.shortLabel} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
198
|
-
}
|
|
199
|
-
return `${sizing?.shortLabel ?? "קטן"} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()}`;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
case "invalid_format": {
|
|
203
|
-
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
204
|
-
// These apply to strings — use feminine grammar + ה׳ הידיעה
|
|
205
|
-
if (_issue.format === "starts_with") return `המחרוזת חייבת להתחיל ב "${_issue.prefix}"`;
|
|
206
|
-
if (_issue.format === "ends_with") return `המחרוזת חייבת להסתיים ב "${_issue.suffix}"`;
|
|
207
|
-
if (_issue.format === "includes") return `המחרוזת חייבת לכלול "${_issue.includes}"`;
|
|
208
|
-
if (_issue.format === "regex") return `המחרוזת חייבת להתאים לתבנית ${_issue.pattern}`;
|
|
209
|
-
|
|
210
|
-
// Handle gender agreement for formats
|
|
211
|
-
const nounEntry = FormatDictionary[_issue.format];
|
|
212
|
-
const noun = nounEntry?.label ?? _issue.format;
|
|
213
|
-
const gender = nounEntry?.gender ?? "m";
|
|
214
|
-
const adjective = gender === "f" ? "תקינה" : "תקין";
|
|
215
|
-
return `${noun} לא ${adjective}`;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
case "not_multiple_of":
|
|
219
|
-
return `מספר לא תקין: חייב להיות מכפלה של ${issue.divisor}`;
|
|
220
|
-
|
|
221
|
-
case "unrecognized_keys":
|
|
222
|
-
return `מפתח${issue.keys.length > 1 ? "ות" : ""} לא מזוה${issue.keys.length > 1 ? "ים" : "ה"}: ${util.joinValues(issue.keys, ", ")}`;
|
|
223
|
-
|
|
224
|
-
case "invalid_key": {
|
|
225
|
-
return `שדה לא תקין באובייקט`;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
case "invalid_union":
|
|
229
|
-
return "קלט לא תקין";
|
|
230
|
-
|
|
231
|
-
case "invalid_element": {
|
|
232
|
-
const place = withDefinite(issue.origin ?? "array");
|
|
233
|
-
return `ערך לא תקין ב${place}`;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
default:
|
|
237
|
-
return `קלט לא תקין`;
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
243
|
-
return {
|
|
244
|
-
localeError: error(),
|
|
245
|
-
};
|
|
246
|
-
}
|