@openclaw/firecrawl-plugin 2026.9.4 → 2026.9.6
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/assets/activity.svg +31 -0
- package/assets/icon.png +0 -0
- package/dist/{firecrawl-client-BPFpIblh.js → .setup/firecrawl-client-hBjAoE8s.mjs} +25 -26
- package/dist/{firecrawl-fetch-provider-CIpxLKLq.js → .setup/firecrawl-fetch-provider-DH8FdBjV.mjs} +1 -1
- package/dist/{firecrawl-search-provider-80szkO8A.js → .setup/firecrawl-search-provider-8H0Cu9l0.mjs} +1 -1
- package/dist/api.js +1 -1
- package/dist/index.js +3 -3
- package/dist/web-fetch-contract-api.js +1 -1
- package/dist/web-fetch-provider.js +1 -1
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/node_modules/typebox/build/compile/validator.d.mts +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
- package/node_modules/typebox/build/format/iri.mjs +5 -1
- package/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/node_modules/typebox/build/guard/string.mjs +16 -24
- package/node_modules/typebox/build/schema/build.mjs +2 -2
- package/node_modules/typebox/build/schema/check.mjs +1 -1
- package/node_modules/typebox/build/schema/compile.d.mts +3 -2
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.d.mts +6 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +23 -15
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/_refine.mjs +4 -7
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +34 -16
- package/node_modules/typebox/build/schema/engine/_stack.mjs +148 -104
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -8
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +26 -18
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/allOf.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/boolean.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/const.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/contains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +3 -6
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/enum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/format.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/if.mjs +7 -15
- package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/items.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/minItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -8
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +6 -11
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -7
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/properties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +4 -10
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/ref.mjs +19 -15
- package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/required.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +137 -133
- package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +2 -6
- package/node_modules/typebox/build/schema/errors.d.mts +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +8 -14
- package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.d.mts +11 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +293 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +288 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +300 -0
- package/node_modules/typebox/build/schema/meta/draft_3.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_3.mjs +143 -0
- package/node_modules/typebox/build/schema/meta/draft_4.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_4.mjs +149 -0
- package/node_modules/typebox/build/schema/meta/draft_6.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_6.mjs +155 -0
- package/node_modules/typebox/build/schema/meta/draft_7.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_7.mjs +172 -0
- package/node_modules/typebox/build/schema/meta/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/index.mjs +2 -0
- package/node_modules/typebox/build/schema/meta/meta.d.mts +9 -0
- package/node_modules/typebox/build/schema/meta/meta.mjs +15 -0
- package/node_modules/typebox/build/schema/meta/schema.d.mts +6 -0
- package/node_modules/typebox/build/schema/meta/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/parse.d.mts +1 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +8 -3
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +268 -139
- package/node_modules/typebox/build/schema/schema.d.mts +2 -0
- package/node_modules/typebox/build/schema/schema.mjs +2 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +59 -89
- package/node_modules/zod/README.md +29 -2
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +14 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +640 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +186 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +85 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +222 -6
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1812 -204
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +87 -35
- package/node_modules/zod/src/v4/core/checks.ts +119 -146
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +99 -22
- package/node_modules/zod/src/v4/core/doc.ts +17 -9
- package/node_modules/zod/src/v4/core/errors.ts +113 -25
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +424 -156
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +164 -50
- package/node_modules/zod/src/v4/core/regexes.ts +42 -15
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +1000 -538
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +283 -48
- package/node_modules/zod/src/v4/core/util.ts +454 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +5 -0
- package/node_modules/zod/src/v4/locales/az.ts +5 -0
- package/node_modules/zod/src/v4/locales/be.ts +12 -0
- package/node_modules/zod/src/v4/locales/bg.ts +5 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +5 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +5 -0
- package/node_modules/zod/src/v4/locales/da.ts +7 -2
- package/node_modules/zod/src/v4/locales/de.ts +5 -0
- package/node_modules/zod/src/v4/locales/el.ts +3 -0
- package/node_modules/zod/src/v4/locales/en.ts +17 -4
- package/node_modules/zod/src/v4/locales/eo.ts +5 -0
- package/node_modules/zod/src/v4/locales/es.ts +4 -0
- package/node_modules/zod/src/v4/locales/fa.ts +5 -0
- package/node_modules/zod/src/v4/locales/fi.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr.ts +21 -14
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +8 -1
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +4 -0
- package/node_modules/zod/src/v4/locales/hu.ts +5 -0
- package/node_modules/zod/src/v4/locales/hy.ts +11 -0
- package/node_modules/zod/src/v4/locales/id.ts +5 -0
- package/node_modules/zod/src/v4/locales/index.ts +11 -0
- package/node_modules/zod/src/v4/locales/is.ts +5 -0
- package/node_modules/zod/src/v4/locales/it.ts +5 -0
- package/node_modules/zod/src/v4/locales/ja.ts +5 -0
- package/node_modules/zod/src/v4/locales/ka.ts +5 -0
- package/node_modules/zod/src/v4/locales/km.ts +5 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +5 -0
- package/node_modules/zod/src/v4/locales/lt.ts +4 -0
- package/node_modules/zod/src/v4/locales/mk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ms.ts +5 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +5 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +7 -2
- package/node_modules/zod/src/v4/locales/ota.ts +5 -0
- package/node_modules/zod/src/v4/locales/pl.ts +5 -0
- package/node_modules/zod/src/v4/locales/ps.ts +5 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +101 -58
- package/node_modules/zod/src/v4/locales/ro.ts +3 -0
- package/node_modules/zod/src/v4/locales/ru.ts +12 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +5 -0
- package/node_modules/zod/src/v4/locales/sv.ts +7 -2
- package/node_modules/zod/src/v4/locales/ta.ts +5 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +5 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +5 -0
- package/node_modules/zod/src/v4/locales/uk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ur.ts +5 -0
- package/node_modules/zod/src/v4/locales/uz.ts +3 -0
- package/node_modules/zod/src/v4/locales/vi.ts +5 -0
- package/node_modules/zod/src/v4/locales/yo.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +12 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +167 -63
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +158 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +44 -0
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -426
- package/node_modules/zod/v4/classic/schemas.d.cts +68 -19
- package/node_modules/zod/v4/classic/schemas.d.ts +68 -19
- package/node_modules/zod/v4/classic/schemas.js +564 -424
- package/node_modules/zod/v4/core/api.cjs +66 -24
- package/node_modules/zod/v4/core/api.d.cts +22 -12
- package/node_modules/zod/v4/core/api.d.ts +22 -12
- package/node_modules/zod/v4/core/api.js +44 -24
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.d.cts +29 -13
- package/node_modules/zod/v4/core/checks.d.ts +29 -13
- package/node_modules/zod/v4/core/checks.js +68 -127
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +101 -19
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +83 -20
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +54 -17
- package/node_modules/zod/v4/core/regexes.d.cts +5 -0
- package/node_modules/zod/v4/core/regexes.d.ts +5 -0
- package/node_modules/zod/v4/core/regexes.js +32 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +785 -386
- package/node_modules/zod/v4/core/schemas.d.cts +123 -34
- package/node_modules/zod/v4/core/schemas.d.ts +123 -34
- package/node_modules/zod/v4/core/schemas.js +753 -386
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
- package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.js +247 -44
- package/node_modules/zod/v4/core/util.cjs +372 -157
- package/node_modules/zod/v4/core/util.d.cts +79 -1
- package/node_modules/zod/v4/core/util.d.ts +79 -1
- package/node_modules/zod/v4/core/util.js +341 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- package/node_modules/zod/v4/locales/el.cjs +3 -0
- package/node_modules/zod/v4/locales/el.js +3 -0
- package/node_modules/zod/v4/locales/en.cjs +16 -4
- package/node_modules/zod/v4/locales/en.js +16 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +18 -14
- package/node_modules/zod/v4/locales/fr.js +18 -14
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +4 -0
- package/node_modules/zod/v4/locales/hr.js +4 -0
- package/node_modules/zod/v4/locales/hu.cjs +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.d.cts +11 -0
- package/node_modules/zod/v4/locales/index.d.ts +11 -0
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +5 -0
- package/node_modules/zod/v4/locales/it.js +5 -0
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +5 -0
- package/node_modules/zod/v4/locales/ka.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- package/node_modules/zod/v4/locales/ro.cjs +3 -0
- package/node_modules/zod/v4/locales/ro.js +3 -0
- package/node_modules/zod/v4/locales/ru.cjs +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +3 -0
- package/node_modules/zod/v4/locales/uz.js +3 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +117 -53
- package/node_modules/zod/v4/mini/schemas.d.cts +49 -14
- package/node_modules/zod/v4/mini/schemas.d.ts +49 -14
- package/node_modules/zod/v4/mini/schemas.js +92 -51
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/openclaw.plugin.json +15 -1
- package/package.json +9 -7
- package/node_modules/zod/src/v4/core/config.ts +0 -15
|
@@ -0,0 +1,123 @@
|
|
|
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: "znakov", verb: "mať" },
|
|
8
|
+
file: { unit: "bajtov", verb: "mať" },
|
|
9
|
+
array: { unit: "prvkov", verb: "mať" },
|
|
10
|
+
set: { unit: "prvkov", verb: "mať" },
|
|
11
|
+
map: { unit: "položiek", verb: "mať" },
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
15
|
+
return Sizable[origin] ?? null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const FormatDictionary: {
|
|
19
|
+
[k in $ZodStringFormats | (string & {})]?: string;
|
|
20
|
+
} = {
|
|
21
|
+
regex: "regulárny výraz",
|
|
22
|
+
email: "e-mailová adresa",
|
|
23
|
+
url: "URL",
|
|
24
|
+
emoji: "emoji",
|
|
25
|
+
uuid: "UUID",
|
|
26
|
+
uuidv4: "UUIDv4",
|
|
27
|
+
uuidv6: "UUIDv6",
|
|
28
|
+
nanoid: "nanoid",
|
|
29
|
+
guid: "GUID",
|
|
30
|
+
cuid: "cuid",
|
|
31
|
+
cuid2: "cuid2",
|
|
32
|
+
ulid: "ULID",
|
|
33
|
+
xid: "XID",
|
|
34
|
+
ksuid: "KSUID",
|
|
35
|
+
datetime: "dátum a čas vo formáte ISO",
|
|
36
|
+
date: "dátum vo formáte ISO",
|
|
37
|
+
time: "čas vo formáte ISO",
|
|
38
|
+
duration: "doba trvania ISO",
|
|
39
|
+
ipv4: "IPv4 adresa",
|
|
40
|
+
ipv6: "IPv6 adresa",
|
|
41
|
+
mac: "MAC adresa",
|
|
42
|
+
cidrv4: "rozsah IPv4",
|
|
43
|
+
cidrv6: "rozsah IPv6",
|
|
44
|
+
base64: "reťazec zakódovaný vo formáte base64",
|
|
45
|
+
base64url: "reťazec zakódovaný vo formáte base64url",
|
|
46
|
+
json_string: "reťazec vo formáte JSON",
|
|
47
|
+
e164: "číslo E.164",
|
|
48
|
+
credit_card: "číslo kreditnej karty",
|
|
49
|
+
currency_code: "kód meny",
|
|
50
|
+
iban: "IBAN",
|
|
51
|
+
jwt: "JWT",
|
|
52
|
+
template_literal: "vstup",
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const TypeDictionary: {
|
|
56
|
+
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
57
|
+
} = {
|
|
58
|
+
nan: "NaN",
|
|
59
|
+
number: "číslo",
|
|
60
|
+
string: "reťazec",
|
|
61
|
+
function: "funkcia",
|
|
62
|
+
array: "pole",
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return (issue) => {
|
|
66
|
+
switch (issue.code) {
|
|
67
|
+
case "invalid_type": {
|
|
68
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
69
|
+
const receivedType = util.parsedType(issue.input);
|
|
70
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
71
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
72
|
+
return `Neplatný vstup: očakávané instanceof ${issue.expected}, obdržané ${received}`;
|
|
73
|
+
}
|
|
74
|
+
return `Neplatný vstup: očakávané ${expected}, obdržané ${received}`;
|
|
75
|
+
}
|
|
76
|
+
case "invalid_value":
|
|
77
|
+
if (issue.values.length === 1) return `Neplatný vstup: očakávané ${util.stringifyPrimitive(issue.values[0])}`;
|
|
78
|
+
return `Neplatný vstup: očakávaná jedna z hodnôt ${util.joinValues(issue.values, "|")}`;
|
|
79
|
+
case "too_big": {
|
|
80
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
81
|
+
const sizing = getSizing(issue.origin);
|
|
82
|
+
if (sizing) {
|
|
83
|
+
return `Hodnota je príliš veľká: ${issue.origin ?? "hodnota"} musí mať ${adj}${issue.maximum.toString()} ${sizing.unit ?? "prvkov"}`;
|
|
84
|
+
}
|
|
85
|
+
return `Hodnota je príliš veľká: ${issue.origin ?? "hodnota"} musí byť ${adj}${issue.maximum.toString()}`;
|
|
86
|
+
}
|
|
87
|
+
case "too_small": {
|
|
88
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
89
|
+
const sizing = getSizing(issue.origin);
|
|
90
|
+
if (sizing) {
|
|
91
|
+
return `Hodnota je príliš malá: ${issue.origin ?? "hodnota"} musí mať ${adj}${issue.minimum.toString()} ${sizing.unit ?? "prvkov"}`;
|
|
92
|
+
}
|
|
93
|
+
return `Hodnota je príliš malá: ${issue.origin ?? "hodnota"} musí byť ${adj}${issue.minimum.toString()}`;
|
|
94
|
+
}
|
|
95
|
+
case "invalid_format": {
|
|
96
|
+
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
97
|
+
if (_issue.format === "starts_with") return `Neplatný reťazec: musí začínať na "${_issue.prefix}"`;
|
|
98
|
+
if (_issue.format === "ends_with") return `Neplatný reťazec: musí končiť na "${_issue.suffix}"`;
|
|
99
|
+
if (_issue.format === "includes") return `Neplatný reťazec: musí obsahovať "${_issue.includes}"`;
|
|
100
|
+
if (_issue.format === "regex") return `Neplatný reťazec: musí zodpovedať vzoru ${_issue.pattern}`;
|
|
101
|
+
return `Neplatný formát ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
102
|
+
}
|
|
103
|
+
case "not_multiple_of":
|
|
104
|
+
return `Neplatné číslo: musí byť násobkom ${issue.divisor}`;
|
|
105
|
+
case "unrecognized_keys":
|
|
106
|
+
return `Neznáme klúče: ${util.joinValues(issue.keys, ", ")}`;
|
|
107
|
+
case "invalid_key":
|
|
108
|
+
return `Neplatný klúč v ${issue.origin}`;
|
|
109
|
+
case "invalid_union":
|
|
110
|
+
return "Neplatný vstup";
|
|
111
|
+
case "invalid_element":
|
|
112
|
+
return `Neplatná hodnota v ${issue.origin}`;
|
|
113
|
+
default:
|
|
114
|
+
return `Neplatný vstup`;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
120
|
+
return {
|
|
121
|
+
localeError: error(),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "bajtov", verb: "imeti" },
|
|
9
9
|
array: { unit: "elementov", verb: "imeti" },
|
|
10
10
|
set: { unit: "elementov", verb: "imeti" },
|
|
11
|
+
map: { unit: "elementov", verb: "imeti" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ISO trajanje",
|
|
38
39
|
ipv4: "IPv4 naslov",
|
|
39
40
|
ipv6: "IPv6 naslov",
|
|
41
|
+
mac: "MAC naslov",
|
|
40
42
|
cidrv4: "obseg IPv4",
|
|
41
43
|
cidrv6: "obseg IPv6",
|
|
42
44
|
base64: "base64 kodiran niz",
|
|
43
45
|
base64url: "base64url kodiran niz",
|
|
44
46
|
json_string: "JSON niz",
|
|
45
47
|
e164: "E.164 številka",
|
|
48
|
+
credit_card: "številka kreditne kartice",
|
|
49
|
+
currency_code: "koda valute",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "vnos",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "bytes", verb: "att ha" },
|
|
9
9
|
array: { unit: "objekt", verb: "att innehålla" },
|
|
10
10
|
set: { unit: "objekt", verb: "att innehålla" },
|
|
11
|
+
map: { unit: "objekt", verb: "att innehålla" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -35,14 +36,18 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
35
36
|
date: "ISO-datum",
|
|
36
37
|
time: "ISO-tid",
|
|
37
38
|
duration: "ISO-varaktighet",
|
|
38
|
-
ipv4: "IPv4-
|
|
39
|
-
ipv6: "IPv6-
|
|
39
|
+
ipv4: "IPv4-adress",
|
|
40
|
+
ipv6: "IPv6-adress",
|
|
41
|
+
mac: "MAC-adress",
|
|
40
42
|
cidrv4: "IPv4-spektrum",
|
|
41
43
|
cidrv6: "IPv6-spektrum",
|
|
42
44
|
base64: "base64-kodad sträng",
|
|
43
45
|
base64url: "base64url-kodad sträng",
|
|
44
46
|
json_string: "JSON-sträng",
|
|
45
47
|
e164: "E.164-nummer",
|
|
48
|
+
credit_card: "kreditkortsnummer",
|
|
49
|
+
currency_code: "valutakod",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "mall-literal",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
9
9
|
array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
10
10
|
set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
11
|
+
map: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ISO கால அளவு",
|
|
38
39
|
ipv4: "IPv4 முகவரி",
|
|
39
40
|
ipv6: "IPv6 முகவரி",
|
|
41
|
+
mac: "MAC முகவரி",
|
|
40
42
|
cidrv4: "IPv4 வரம்பு",
|
|
41
43
|
cidrv6: "IPv6 வரம்பு",
|
|
42
44
|
base64: "base64-encoded சரம்",
|
|
43
45
|
base64url: "base64url-encoded சரம்",
|
|
44
46
|
json_string: "JSON சரம்",
|
|
45
47
|
e164: "E.164 எண்",
|
|
48
|
+
credit_card: "கடன் அட்டை எண்",
|
|
49
|
+
currency_code: "நாணயக் குறியீடு",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "input",
|
|
48
53
|
};
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
// singular units after numerals in Tajik
|
|
7
|
+
const Sizable: Record<string, { unit: string; verb: string }> = {
|
|
8
|
+
string: { unit: "аломат", verb: "дошта бошад" },
|
|
9
|
+
file: { unit: "байт", verb: "дошта бошад" },
|
|
10
|
+
array: { unit: "унсур", verb: "дошта бошад" },
|
|
11
|
+
set: { unit: "унсур", verb: "дошта бошад" },
|
|
12
|
+
map: { unit: "сабт", verb: "дошта бошад" },
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
16
|
+
return Sizable[origin] ?? null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const FormatDictionary: {
|
|
20
|
+
[k in $ZodStringFormats | (string & {})]?: string;
|
|
21
|
+
} = {
|
|
22
|
+
regex: "вуруд",
|
|
23
|
+
email: "суроғаи email",
|
|
24
|
+
url: "URL",
|
|
25
|
+
emoji: "эмоҷи",
|
|
26
|
+
uuid: "UUID",
|
|
27
|
+
uuidv4: "UUIDv4",
|
|
28
|
+
uuidv6: "UUIDv6",
|
|
29
|
+
nanoid: "nanoid",
|
|
30
|
+
guid: "GUID",
|
|
31
|
+
cuid: "cuid",
|
|
32
|
+
cuid2: "cuid2",
|
|
33
|
+
ulid: "ULID",
|
|
34
|
+
xid: "XID",
|
|
35
|
+
ksuid: "KSUID",
|
|
36
|
+
datetime: "санаву вақти ISO",
|
|
37
|
+
date: "санаи ISO",
|
|
38
|
+
time: "вақти ISO",
|
|
39
|
+
duration: "давомнокии ISO",
|
|
40
|
+
ipv4: "суроғаи IPv4",
|
|
41
|
+
ipv6: "суроғаи IPv6",
|
|
42
|
+
mac: "суроғаи MAC",
|
|
43
|
+
cidrv4: "маҳдудаи IPv4",
|
|
44
|
+
cidrv6: "маҳдудаи IPv6",
|
|
45
|
+
base64: "сатри дар формати base64",
|
|
46
|
+
base64url: "сатри дар формати base64url",
|
|
47
|
+
json_string: "сатри JSON",
|
|
48
|
+
e164: "рақами E.164",
|
|
49
|
+
credit_card: "рақами корти кредитӣ",
|
|
50
|
+
currency_code: "рамзи асъор",
|
|
51
|
+
iban: "IBAN",
|
|
52
|
+
jwt: "JWT",
|
|
53
|
+
template_literal: "вуруд",
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const TypeDictionary: {
|
|
57
|
+
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
58
|
+
} = {
|
|
59
|
+
nan: "NaN",
|
|
60
|
+
number: "рақам",
|
|
61
|
+
string: "сатр",
|
|
62
|
+
array: "массив",
|
|
63
|
+
object: "объект",
|
|
64
|
+
date: "сана",
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return (issue) => {
|
|
68
|
+
switch (issue.code) {
|
|
69
|
+
case "invalid_type": {
|
|
70
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
71
|
+
const receivedType = util.parsedType(issue.input);
|
|
72
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
73
|
+
return `Вуруди нодуруст: ${expected} интизор мерафт, ${received} гирифта шуд`;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
case "invalid_value":
|
|
77
|
+
if (issue.values.length === 1)
|
|
78
|
+
return `Вуруди нодуруст: ${util.stringifyPrimitive(issue.values[0])} интизор мерафт`;
|
|
79
|
+
return `Интихоби нодуруст: яке аз ${util.joinValues(issue.values, "|")} интизор мерафт`;
|
|
80
|
+
|
|
81
|
+
case "too_big": {
|
|
82
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
83
|
+
const sizing = getSizing(issue.origin);
|
|
84
|
+
if (sizing)
|
|
85
|
+
return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
86
|
+
return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} бошад`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
case "too_small": {
|
|
90
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
91
|
+
const sizing = getSizing(issue.origin);
|
|
92
|
+
if (sizing)
|
|
93
|
+
return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
94
|
+
return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} бошад`;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
case "invalid_format": {
|
|
98
|
+
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
99
|
+
if (_issue.format === "starts_with") return `Сатри нодуруст: бояд бо "${_issue.prefix}" оғоз шавад`;
|
|
100
|
+
if (_issue.format === "ends_with") return `Сатри нодуруст: бояд бо "${_issue.suffix}" анҷом ёбад`;
|
|
101
|
+
if (_issue.format === "includes") return `Сатри нодуруст: бояд "${_issue.includes}"-ро дар бар гирад`;
|
|
102
|
+
if (_issue.format === "regex") return `Сатри нодуруст: бояд ба намунаи ${_issue.pattern} мувофиқат кунад`;
|
|
103
|
+
return `${FormatDictionary[_issue.format] ?? issue.format}-и нодуруст`;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
case "not_multiple_of":
|
|
107
|
+
return `Рақами нодуруст: бояд ба ${issue.divisor} бе бақия тақсим шавад`;
|
|
108
|
+
|
|
109
|
+
case "unrecognized_keys":
|
|
110
|
+
return `Калид${issue.keys.length > 1 ? "ҳои" : "и"} номаълум: ${util.joinValues(issue.keys, ", ")}`;
|
|
111
|
+
|
|
112
|
+
case "invalid_key":
|
|
113
|
+
return `Калиди нодуруст дар ${issue.origin}`;
|
|
114
|
+
|
|
115
|
+
case "invalid_union":
|
|
116
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
117
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
118
|
+
return `Қимати нодурусти дискриминатор: ${opts} интизор мерафт`;
|
|
119
|
+
}
|
|
120
|
+
return "Вуруди нодуруст";
|
|
121
|
+
|
|
122
|
+
case "invalid_element":
|
|
123
|
+
return `Қимати нодуруст дар ${issue.origin}`;
|
|
124
|
+
|
|
125
|
+
default:
|
|
126
|
+
return `Вуруди нодуруст`;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
132
|
+
return {
|
|
133
|
+
localeError: error(),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
9
9
|
array: { unit: "รายการ", verb: "ควรมี" },
|
|
10
10
|
set: { unit: "รายการ", verb: "ควรมี" },
|
|
11
|
+
map: { unit: "รายการ", verb: "ควรมี" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ช่วงเวลาแบบ ISO",
|
|
38
39
|
ipv4: "ที่อยู่ IPv4",
|
|
39
40
|
ipv6: "ที่อยู่ IPv6",
|
|
41
|
+
mac: "ที่อยู่ MAC",
|
|
40
42
|
cidrv4: "ช่วง IP แบบ IPv4",
|
|
41
43
|
cidrv6: "ช่วง IP แบบ IPv6",
|
|
42
44
|
base64: "ข้อความแบบ Base64",
|
|
43
45
|
base64url: "ข้อความแบบ Base64 สำหรับ URL",
|
|
44
46
|
json_string: "ข้อความแบบ JSON",
|
|
45
47
|
e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
|
|
48
|
+
credit_card: "หมายเลขบัตรเครดิต",
|
|
49
|
+
currency_code: "รหัสสกุลเงิน",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "โทเคน JWT",
|
|
47
52
|
template_literal: "ข้อมูลที่ป้อน",
|
|
48
53
|
};
|
|
@@ -0,0 +1,113 @@
|
|
|
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: "simwol", verb: "bolmaly" },
|
|
8
|
+
file: { unit: "baýt", verb: "bolmaly" },
|
|
9
|
+
array: { unit: "elementler", verb: "bolmaly" },
|
|
10
|
+
set: { unit: "elementler", verb: "bolmaly" },
|
|
11
|
+
map: { unit: "elementler", verb: "bolmaly" },
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
15
|
+
return Sizable[origin] ?? null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const FormatDictionary: {
|
|
19
|
+
[k in $ZodStringFormats | (string & {})]?: string;
|
|
20
|
+
} = {
|
|
21
|
+
regex: "giriş",
|
|
22
|
+
email: "e-poçta salgysy",
|
|
23
|
+
url: "URL",
|
|
24
|
+
emoji: "emoji",
|
|
25
|
+
uuid: "UUID",
|
|
26
|
+
uuidv4: "UUIDv4",
|
|
27
|
+
uuidv6: "UUIDv6",
|
|
28
|
+
nanoid: "nanoid",
|
|
29
|
+
guid: "GUID",
|
|
30
|
+
cuid: "cuid",
|
|
31
|
+
cuid2: "cuid2",
|
|
32
|
+
ulid: "ULID",
|
|
33
|
+
xid: "XID",
|
|
34
|
+
ksuid: "KSUID",
|
|
35
|
+
datetime: "ISO sene we wagt",
|
|
36
|
+
date: "ISO sene",
|
|
37
|
+
time: "ISO wagt",
|
|
38
|
+
duration: "ISO wagt aralygy",
|
|
39
|
+
ipv4: "IPv4 salgysy",
|
|
40
|
+
ipv6: "IPv6 salgysy",
|
|
41
|
+
mac: "MAC salgysy",
|
|
42
|
+
cidrv4: "IPv4 aralygy",
|
|
43
|
+
cidrv6: "IPv6 aralygy",
|
|
44
|
+
base64: "base64 bilen şifrlenen setir",
|
|
45
|
+
base64url: "base64url bilen şifrlenen setir",
|
|
46
|
+
json_string: "JSON setiri",
|
|
47
|
+
e164: "E.164 nomeri",
|
|
48
|
+
credit_card: "kredit kartynyň nomeri",
|
|
49
|
+
currency_code: "walýuta kody",
|
|
50
|
+
iban: "IBAN",
|
|
51
|
+
jwt: "JWT",
|
|
52
|
+
template_literal: "şablon",
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const TypeDictionary: {
|
|
56
|
+
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
|
|
57
|
+
} = {
|
|
58
|
+
nan: "NaN",
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return (issue) => {
|
|
62
|
+
switch (issue.code) {
|
|
63
|
+
case "invalid_type": {
|
|
64
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
65
|
+
const receivedType = util.parsedType(issue.input);
|
|
66
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
67
|
+
return `Nädogry baha: garaşylan ${expected} ýerine ${received} alyndy`;
|
|
68
|
+
}
|
|
69
|
+
case "invalid_value":
|
|
70
|
+
if (issue.values.length === 1) return `Nädogry baha: ${util.stringifyPrimitive(issue.values[0])} bolmaly`;
|
|
71
|
+
return `Nädogry saýlaw: aşakdakylardan biri bolmaly: ${util.joinValues(issue.values, "|")}`;
|
|
72
|
+
case "too_big": {
|
|
73
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
74
|
+
const sizing = getSizing(issue.origin);
|
|
75
|
+
if (sizing)
|
|
76
|
+
return `Has uly: garaşylýan ${issue.origin ?? "baha"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "element"}`;
|
|
77
|
+
return `Has uly: garaşylýan ${issue.origin ?? "baha"} ${adj} ${issue.maximum.toString()}`;
|
|
78
|
+
}
|
|
79
|
+
case "too_small": {
|
|
80
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
81
|
+
const sizing = getSizing(issue.origin);
|
|
82
|
+
if (sizing) return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`;
|
|
83
|
+
return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()}`;
|
|
84
|
+
}
|
|
85
|
+
case "invalid_format": {
|
|
86
|
+
const _issue = issue as errors.$ZodStringFormatIssues;
|
|
87
|
+
if (_issue.format === "starts_with") return `Nädogry setir: "${_issue.prefix}" bilen başlamaly`;
|
|
88
|
+
if (_issue.format === "ends_with") return `Nädogry setir: "${_issue.suffix}" bilen gutarmaly`;
|
|
89
|
+
if (_issue.format === "includes") return `Nädogry setir: "${_issue.includes}" saklamaly`;
|
|
90
|
+
if (_issue.format === "regex") return `Nädogry setir: ${_issue.pattern} nusga laýyk bolmaly`;
|
|
91
|
+
return `Nädogry ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
92
|
+
}
|
|
93
|
+
case "not_multiple_of":
|
|
94
|
+
return `Nädogry san: ${issue.divisor} bilen galyndysyz bölünmeli`;
|
|
95
|
+
case "unrecognized_keys":
|
|
96
|
+
return `Tanalmaýan açar${issue.keys.length > 1 ? "lar" : ""}: ${util.joinValues(issue.keys, ", ")}`;
|
|
97
|
+
case "invalid_key":
|
|
98
|
+
return `${issue.origin} içinde nädogry açar`;
|
|
99
|
+
case "invalid_union":
|
|
100
|
+
return "Nädogry baha";
|
|
101
|
+
case "invalid_element":
|
|
102
|
+
return `${issue.origin} içinde nädogry baha`;
|
|
103
|
+
default:
|
|
104
|
+
return `Nädogry baha`;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export default function (): { localeError: errors.$ZodErrorMap } {
|
|
110
|
+
return {
|
|
111
|
+
localeError: error(),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "bayt", verb: "olmalı" },
|
|
9
9
|
array: { unit: "öğe", verb: "olmalı" },
|
|
10
10
|
set: { unit: "öğe", verb: "olmalı" },
|
|
11
|
+
map: { unit: "öğe", verb: "olmalı" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ISO süre",
|
|
38
39
|
ipv4: "IPv4 adresi",
|
|
39
40
|
ipv6: "IPv6 adresi",
|
|
41
|
+
mac: "MAC adresi",
|
|
40
42
|
cidrv4: "IPv4 aralığı",
|
|
41
43
|
cidrv6: "IPv6 aralığı",
|
|
42
44
|
base64: "base64 ile şifrelenmiş metin",
|
|
43
45
|
base64url: "base64url ile şifrelenmiş metin",
|
|
44
46
|
json_string: "JSON dizesi",
|
|
45
47
|
e164: "E.164 sayısı",
|
|
48
|
+
credit_card: "kredi kartı numarası",
|
|
49
|
+
currency_code: "para birimi kodu",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "Şablon dizesi",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "байтів", verb: "матиме" },
|
|
9
9
|
array: { unit: "елементів", verb: "матиме" },
|
|
10
10
|
set: { unit: "елементів", verb: "матиме" },
|
|
11
|
+
map: { unit: "елементів", verb: "матиме" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "тривалість ISO",
|
|
38
39
|
ipv4: "адреса IPv4",
|
|
39
40
|
ipv6: "адреса IPv6",
|
|
41
|
+
mac: "адреса MAC",
|
|
40
42
|
cidrv4: "діапазон IPv4",
|
|
41
43
|
cidrv6: "діапазон IPv6",
|
|
42
44
|
base64: "рядок у кодуванні base64",
|
|
43
45
|
base64url: "рядок у кодуванні base64url",
|
|
44
46
|
json_string: "рядок JSON",
|
|
45
47
|
e164: "номер E.164",
|
|
48
|
+
credit_card: "номер кредитної картки",
|
|
49
|
+
currency_code: "код валюти",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "вхідні дані",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
9
9
|
array: { unit: "آئٹمز", verb: "ہونا" },
|
|
10
10
|
set: { unit: "آئٹمز", verb: "ہونا" },
|
|
11
|
+
map: { unit: "آئٹمز", verb: "ہونا" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "آئی ایس او مدت",
|
|
38
39
|
ipv4: "آئی پی وی 4 ایڈریس",
|
|
39
40
|
ipv6: "آئی پی وی 6 ایڈریس",
|
|
41
|
+
mac: "ایم اے سی ایڈریس",
|
|
40
42
|
cidrv4: "آئی پی وی 4 رینج",
|
|
41
43
|
cidrv6: "آئی پی وی 6 رینج",
|
|
42
44
|
base64: "بیس 64 ان کوڈڈ سٹرنگ",
|
|
43
45
|
base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",
|
|
44
46
|
json_string: "جے ایس او این سٹرنگ",
|
|
45
47
|
e164: "ای 164 نمبر",
|
|
48
|
+
credit_card: "کریڈٹ کارڈ نمبر",
|
|
49
|
+
currency_code: "کرنسی کوڈ",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "جے ڈبلیو ٹی",
|
|
47
52
|
template_literal: "ان پٹ",
|
|
48
53
|
};
|
|
@@ -45,6 +45,9 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
45
45
|
base64url: "base64url kodlangan satr",
|
|
46
46
|
json_string: "JSON satr",
|
|
47
47
|
e164: "E.164 raqam",
|
|
48
|
+
credit_card: "kredit karta raqami",
|
|
49
|
+
currency_code: "valyuta kodi",
|
|
50
|
+
iban: "IBAN",
|
|
48
51
|
jwt: "JWT",
|
|
49
52
|
template_literal: "kirish",
|
|
50
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "byte", verb: "có" },
|
|
9
9
|
array: { unit: "phần tử", verb: "có" },
|
|
10
10
|
set: { unit: "phần tử", verb: "có" },
|
|
11
|
+
map: { unit: "phần tử", verb: "có" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "khoảng thời gian ISO",
|
|
38
39
|
ipv4: "địa chỉ IPv4",
|
|
39
40
|
ipv6: "địa chỉ IPv6",
|
|
41
|
+
mac: "địa chỉ MAC",
|
|
40
42
|
cidrv4: "dải IPv4",
|
|
41
43
|
cidrv6: "dải IPv6",
|
|
42
44
|
base64: "chuỗi mã hóa base64",
|
|
43
45
|
base64url: "chuỗi mã hóa base64url",
|
|
44
46
|
json_string: "chuỗi JSON",
|
|
45
47
|
e164: "số E.164",
|
|
48
|
+
credit_card: "số thẻ tín dụng",
|
|
49
|
+
currency_code: "mã tiền tệ",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "đầu vào",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "bytes", verb: "ní" },
|
|
9
9
|
array: { unit: "nkan", verb: "ní" },
|
|
10
10
|
set: { unit: "nkan", verb: "ní" },
|
|
11
|
+
map: { unit: "nkan", verb: "ní" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "àkókò tó pé ISO",
|
|
38
39
|
ipv4: "àdírẹ́sì IPv4",
|
|
39
40
|
ipv6: "àdírẹ́sì IPv6",
|
|
41
|
+
mac: "àdírẹ́sì MAC",
|
|
40
42
|
cidrv4: "àgbègbè IPv4",
|
|
41
43
|
cidrv6: "àgbègbè IPv6",
|
|
42
44
|
base64: "ọ̀rọ̀ tí a kọ́ ní base64",
|
|
43
45
|
base64url: "ọ̀rọ̀ base64url",
|
|
44
46
|
json_string: "ọ̀rọ̀ JSON",
|
|
45
47
|
e164: "nọ́mbà E.164",
|
|
48
|
+
credit_card: "nọmba kaadi gbese",
|
|
49
|
+
currency_code: "koodu owó",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "ẹ̀rọ ìbáwọlé",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "字节", verb: "包含" },
|
|
9
9
|
array: { unit: "项", verb: "包含" },
|
|
10
10
|
set: { unit: "项", verb: "包含" },
|
|
11
|
+
map: { unit: "项", verb: "包含" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ISO时长",
|
|
38
39
|
ipv4: "IPv4地址",
|
|
39
40
|
ipv6: "IPv6地址",
|
|
41
|
+
mac: "MAC地址",
|
|
40
42
|
cidrv4: "IPv4网段",
|
|
41
43
|
cidrv6: "IPv6网段",
|
|
42
44
|
base64: "base64编码字符串",
|
|
43
45
|
base64url: "base64url编码字符串",
|
|
44
46
|
json_string: "JSON字符串",
|
|
45
47
|
e164: "E.164号码",
|
|
48
|
+
credit_card: "信用卡号",
|
|
49
|
+
currency_code: "货币代码",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "输入",
|
|
48
53
|
};
|
|
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
8
8
|
file: { unit: "位元組", verb: "擁有" },
|
|
9
9
|
array: { unit: "項目", verb: "擁有" },
|
|
10
10
|
set: { unit: "項目", verb: "擁有" },
|
|
11
|
+
map: { unit: "項目", verb: "擁有" },
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function getSizing(origin: string): { unit: string; verb: string } | null {
|
|
@@ -37,12 +38,16 @@ const error: () => errors.$ZodErrorMap = () => {
|
|
|
37
38
|
duration: "ISO 期間",
|
|
38
39
|
ipv4: "IPv4 位址",
|
|
39
40
|
ipv6: "IPv6 位址",
|
|
41
|
+
mac: "MAC 位址",
|
|
40
42
|
cidrv4: "IPv4 範圍",
|
|
41
43
|
cidrv6: "IPv6 範圍",
|
|
42
44
|
base64: "base64 編碼字串",
|
|
43
45
|
base64url: "base64url 編碼字串",
|
|
44
46
|
json_string: "JSON 字串",
|
|
45
47
|
e164: "E.164 數值",
|
|
48
|
+
credit_card: "信用卡號",
|
|
49
|
+
currency_code: "貨幣代碼",
|
|
50
|
+
iban: "IBAN",
|
|
46
51
|
jwt: "JWT",
|
|
47
52
|
template_literal: "輸入",
|
|
48
53
|
};
|