create-croissant 0.1.28 → 0.1.30
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/index.js +7 -7
- package/package.json +4 -1
- package/template/apps/desktop/.editorconfig +9 -0
- package/template/apps/desktop/.prettierignore +6 -0
- package/template/apps/desktop/.vscode/extensions.json +3 -0
- package/template/apps/desktop/.vscode/launch.json +39 -0
- package/template/apps/desktop/.vscode/settings.json +11 -0
- package/template/apps/desktop/README.md +34 -0
- package/template/apps/desktop/build/entitlements.mac.plist +12 -0
- package/template/apps/desktop/build/icon.icns +0 -0
- package/template/apps/desktop/build/icon.ico +0 -0
- package/template/apps/desktop/build/icon.png +0 -0
- package/template/apps/desktop/dev-app-update.yml +3 -0
- package/template/apps/desktop/electron-builder.yml +45 -0
- package/template/apps/desktop/electron.vite.config.ts +16 -0
- package/template/apps/desktop/eslint.config.ts +8 -0
- package/template/apps/desktop/package.json +49 -0
- package/template/apps/desktop/prettier.config.ts +3 -0
- package/template/apps/desktop/resources/icon.png +0 -0
- package/template/apps/desktop/src/main/index.ts +74 -0
- package/template/apps/desktop/src/preload/index.d.ts +8 -0
- package/template/apps/desktop/src/preload/index.ts +22 -0
- package/template/apps/desktop/src/renderer/index.html +17 -0
- package/template/apps/desktop/src/renderer/src/App.tsx +35 -0
- package/template/apps/desktop/src/renderer/src/assets/base.css +67 -0
- package/template/apps/desktop/src/renderer/src/assets/electron.svg +10 -0
- package/template/apps/desktop/src/renderer/src/assets/main.css +171 -0
- package/template/apps/desktop/src/renderer/src/assets/wavy-lines.svg +25 -0
- package/template/apps/desktop/src/renderer/src/components/Versions.tsx +15 -0
- package/template/apps/desktop/src/renderer/src/env.d.ts +1 -0
- package/template/apps/desktop/src/renderer/src/main.tsx +11 -0
- package/template/apps/desktop/tsconfig.json +9 -0
- package/template/apps/desktop/tsconfig.node.json +8 -0
- package/template/apps/desktop/tsconfig.web.json +21 -0
- package/template/apps/mobile/.vscode/extensions.json +1 -0
- package/template/apps/mobile/.vscode/settings.json +7 -0
- package/template/apps/mobile/README.md +50 -0
- package/template/apps/mobile/app/(tabs)/_layout.tsx +35 -0
- package/template/apps/mobile/app/(tabs)/explore.tsx +112 -0
- package/template/apps/mobile/app/(tabs)/index.tsx +98 -0
- package/template/apps/mobile/app/_layout.tsx +24 -0
- package/template/apps/mobile/app/modal.tsx +29 -0
- package/template/apps/mobile/app.json +48 -0
- package/template/apps/mobile/assets/images/android-icon-background.png +0 -0
- package/template/apps/mobile/assets/images/android-icon-foreground.png +0 -0
- package/template/apps/mobile/assets/images/android-icon-monochrome.png +0 -0
- package/template/apps/mobile/assets/images/favicon.png +0 -0
- package/template/apps/mobile/assets/images/icon.png +0 -0
- package/template/apps/mobile/assets/images/partial-react-logo.png +0 -0
- package/template/apps/mobile/assets/images/react-logo.png +0 -0
- package/template/apps/mobile/assets/images/react-logo@2x.png +0 -0
- package/template/apps/mobile/assets/images/react-logo@3x.png +0 -0
- package/template/apps/mobile/assets/images/splash-icon.png +0 -0
- package/template/apps/mobile/components/external-link.tsx +26 -0
- package/template/apps/mobile/components/haptic-tab.tsx +18 -0
- package/template/apps/mobile/components/hello-wave.tsx +19 -0
- package/template/apps/mobile/components/parallax-scroll-view.tsx +79 -0
- package/template/apps/mobile/components/themed-text.tsx +61 -0
- package/template/apps/mobile/components/themed-view.tsx +15 -0
- package/template/apps/mobile/components/ui/collapsible.tsx +46 -0
- package/template/apps/mobile/components/ui/icon-symbol.ios.tsx +33 -0
- package/template/apps/mobile/components/ui/icon-symbol.tsx +41 -0
- package/template/apps/mobile/constants/theme.ts +53 -0
- package/template/apps/mobile/eslint.config.ts +8 -0
- package/template/apps/mobile/hooks/use-color-scheme.ts +1 -0
- package/template/apps/mobile/hooks/use-color-scheme.web.ts +21 -0
- package/template/apps/mobile/hooks/use-theme-color.ts +21 -0
- package/template/apps/mobile/package.json +52 -0
- package/template/apps/mobile/prettier.config.ts +3 -0
- package/template/apps/mobile/scripts/reset-project.js +112 -0
- package/template/apps/mobile/tsconfig.json +11 -0
- package/template/apps/platform/eslint.config.ts +8 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/LICENSE +21 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.cjs +7 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.cjs.map +1 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.d.cts +2 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/types.d.cts +5 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.cjs +44 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.cjs.map +1 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.d.cts +15 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.d.ts +2 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.js +7 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.js.map +1 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/types.d.ts +5 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.d.ts +15 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.js +44 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.js.map +1 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/package.json +50 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/index.ts +2 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/types.ts +6 -0
- package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/validator.ts +77 -0
- package/template/apps/platform/node_modules/zod/LICENSE +21 -0
- package/template/apps/platform/node_modules/zod/README.md +208 -0
- package/template/apps/platform/node_modules/zod/index.cjs +33 -0
- package/template/apps/platform/node_modules/zod/index.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/index.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/index.js +4 -0
- package/template/apps/platform/node_modules/zod/package.json +118 -0
- package/template/apps/platform/node_modules/zod/src/index.ts +4 -0
- package/template/apps/platform/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/template/apps/platform/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/template/apps/platform/node_modules/zod/src/v3/errors.ts +13 -0
- package/template/apps/platform/node_modules/zod/src/v3/external.ts +6 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/template/apps/platform/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/template/apps/platform/node_modules/zod/src/v3/index.ts +4 -0
- package/template/apps/platform/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/template/apps/platform/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/template/apps/platform/node_modules/zod/src/v3/types.ts +5136 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/template/apps/platform/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/config.ts +15 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/core.ts +134 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/function.ts +176 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/index.ts +15 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/util.ts +775 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/template/apps/platform/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/template/apps/platform/node_modules/zod/src/v4/index.ts +4 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/template/apps/platform/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/template/apps/platform/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/template/apps/platform/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/template/apps/platform/node_modules/zod/v3/ZodError.cjs +138 -0
- package/template/apps/platform/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/template/apps/platform/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/template/apps/platform/node_modules/zod/v3/ZodError.js +133 -0
- package/template/apps/platform/node_modules/zod/v3/errors.cjs +17 -0
- package/template/apps/platform/node_modules/zod/v3/errors.d.cts +5 -0
- package/template/apps/platform/node_modules/zod/v3/errors.d.ts +5 -0
- package/template/apps/platform/node_modules/zod/v3/errors.js +9 -0
- package/template/apps/platform/node_modules/zod/v3/external.cjs +22 -0
- package/template/apps/platform/node_modules/zod/v3/external.d.cts +6 -0
- package/template/apps/platform/node_modules/zod/v3/external.d.ts +6 -0
- package/template/apps/platform/node_modules/zod/v3/external.js +6 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/template/apps/platform/node_modules/zod/v3/helpers/util.js +133 -0
- package/template/apps/platform/node_modules/zod/v3/index.cjs +33 -0
- package/template/apps/platform/node_modules/zod/v3/index.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v3/index.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v3/index.js +4 -0
- package/template/apps/platform/node_modules/zod/v3/locales/en.cjs +111 -0
- package/template/apps/platform/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/template/apps/platform/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/template/apps/platform/node_modules/zod/v3/locales/en.js +109 -0
- package/template/apps/platform/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/template/apps/platform/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/template/apps/platform/node_modules/zod/v3/standard-schema.js +1 -0
- package/template/apps/platform/node_modules/zod/v3/types.cjs +3775 -0
- package/template/apps/platform/node_modules/zod/v3/types.d.cts +1031 -0
- package/template/apps/platform/node_modules/zod/v3/types.d.ts +1031 -0
- package/template/apps/platform/node_modules/zod/v3/types.js +3693 -0
- package/template/apps/platform/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/template/apps/platform/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/template/apps/platform/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/template/apps/platform/node_modules/zod/v4/classic/checks.js +1 -0
- package/template/apps/platform/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/template/apps/platform/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/template/apps/platform/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/template/apps/platform/node_modules/zod/v4/classic/coerce.js +17 -0
- package/template/apps/platform/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/template/apps/platform/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/template/apps/platform/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/template/apps/platform/node_modules/zod/v4/classic/compat.js +27 -0
- package/template/apps/platform/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/template/apps/platform/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/template/apps/platform/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/template/apps/platform/node_modules/zod/v4/classic/errors.js +41 -0
- package/template/apps/platform/node_modules/zod/v4/classic/external.cjs +70 -0
- package/template/apps/platform/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/template/apps/platform/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/template/apps/platform/node_modules/zod/v4/classic/external.js +18 -0
- package/template/apps/platform/node_modules/zod/v4/classic/index.cjs +33 -0
- package/template/apps/platform/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/classic/index.js +4 -0
- package/template/apps/platform/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/template/apps/platform/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/template/apps/platform/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/template/apps/platform/node_modules/zod/v4/classic/iso.js +30 -0
- package/template/apps/platform/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/template/apps/platform/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/template/apps/platform/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/template/apps/platform/node_modules/zod/v4/classic/parse.js +6 -0
- package/template/apps/platform/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/template/apps/platform/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/template/apps/platform/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/template/apps/platform/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/template/apps/platform/node_modules/zod/v4/core/api.cjs +1039 -0
- package/template/apps/platform/node_modules/zod/v4/core/api.d.cts +284 -0
- package/template/apps/platform/node_modules/zod/v4/core/api.d.ts +284 -0
- package/template/apps/platform/node_modules/zod/v4/core/api.js +906 -0
- package/template/apps/platform/node_modules/zod/v4/core/checks.cjs +591 -0
- package/template/apps/platform/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/template/apps/platform/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/template/apps/platform/node_modules/zod/v4/core/checks.js +565 -0
- package/template/apps/platform/node_modules/zod/v4/core/core.cjs +67 -0
- package/template/apps/platform/node_modules/zod/v4/core/core.d.cts +49 -0
- package/template/apps/platform/node_modules/zod/v4/core/core.d.ts +49 -0
- package/template/apps/platform/node_modules/zod/v4/core/core.js +61 -0
- package/template/apps/platform/node_modules/zod/v4/core/doc.cjs +39 -0
- package/template/apps/platform/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/template/apps/platform/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/template/apps/platform/node_modules/zod/v4/core/doc.js +35 -0
- package/template/apps/platform/node_modules/zod/v4/core/errors.cjs +226 -0
- package/template/apps/platform/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/template/apps/platform/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/template/apps/platform/node_modules/zod/v4/core/errors.js +195 -0
- package/template/apps/platform/node_modules/zod/v4/core/function.cjs +102 -0
- package/template/apps/platform/node_modules/zod/v4/core/function.d.cts +52 -0
- package/template/apps/platform/node_modules/zod/v4/core/function.d.ts +52 -0
- package/template/apps/platform/node_modules/zod/v4/core/function.js +75 -0
- package/template/apps/platform/node_modules/zod/v4/core/index.cjs +44 -0
- package/template/apps/platform/node_modules/zod/v4/core/index.d.cts +15 -0
- package/template/apps/platform/node_modules/zod/v4/core/index.d.ts +15 -0
- package/template/apps/platform/node_modules/zod/v4/core/index.js +15 -0
- package/template/apps/platform/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/template/apps/platform/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/template/apps/platform/node_modules/zod/v4/core/json-schema.js +1 -0
- package/template/apps/platform/node_modules/zod/v4/core/parse.cjs +87 -0
- package/template/apps/platform/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/template/apps/platform/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/template/apps/platform/node_modules/zod/v4/core/parse.js +57 -0
- package/template/apps/platform/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/template/apps/platform/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/template/apps/platform/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/template/apps/platform/node_modules/zod/v4/core/regexes.js +95 -0
- package/template/apps/platform/node_modules/zod/v4/core/registries.cjs +56 -0
- package/template/apps/platform/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/template/apps/platform/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/template/apps/platform/node_modules/zod/v4/core/registries.js +51 -0
- package/template/apps/platform/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/template/apps/platform/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/template/apps/platform/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/template/apps/platform/node_modules/zod/v4/core/schemas.js +1717 -0
- package/template/apps/platform/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/template/apps/platform/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/template/apps/platform/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/template/apps/platform/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/template/apps/platform/node_modules/zod/v4/core/util.cjs +539 -0
- package/template/apps/platform/node_modules/zod/v4/core/util.d.cts +183 -0
- package/template/apps/platform/node_modules/zod/v4/core/util.d.ts +183 -0
- package/template/apps/platform/node_modules/zod/v4/core/util.js +493 -0
- package/template/apps/platform/node_modules/zod/v4/core/versions.cjs +8 -0
- package/template/apps/platform/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/template/apps/platform/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/template/apps/platform/node_modules/zod/v4/core/versions.js +5 -0
- package/template/apps/platform/node_modules/zod/v4/index.cjs +22 -0
- package/template/apps/platform/node_modules/zod/v4/index.d.cts +3 -0
- package/template/apps/platform/node_modules/zod/v4/index.d.ts +3 -0
- package/template/apps/platform/node_modules/zod/v4/index.js +3 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ar.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/az.cjs +141 -0
- package/template/apps/platform/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/az.js +115 -0
- package/template/apps/platform/node_modules/zod/v4/locales/be.cjs +190 -0
- package/template/apps/platform/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/be.js +164 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ca.js +118 -0
- package/template/apps/platform/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/template/apps/platform/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/cs.js +135 -0
- package/template/apps/platform/node_modules/zod/v4/locales/de.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/de.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/en.cjs +145 -0
- package/template/apps/platform/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/en.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/template/apps/platform/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/eo.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/es.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/es.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fa.js +122 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fi.js +122 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/fr.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/he.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/he.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/hu.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/id.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/id.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/index.cjs +84 -0
- package/template/apps/platform/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/template/apps/platform/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/template/apps/platform/node_modules/zod/v4/locales/index.js +39 -0
- package/template/apps/platform/node_modules/zod/v4/locales/it.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/it.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ja.js +115 -0
- package/template/apps/platform/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/kh.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ko.js +121 -0
- package/template/apps/platform/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/template/apps/platform/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/mk.js +118 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ms.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/nl.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/no.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/no.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ota.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pl.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ps.js +122 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/pt.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ru.js +164 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sl.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/sv.js +118 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ta.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/th.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/th.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/template/apps/platform/node_modules/zod/v4/locales/tr.js +115 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ua.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/ur.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/vi.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/template/apps/platform/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/template/apps/platform/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/checks.js +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/template/apps/platform/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/template/apps/platform/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/template/apps/platform/node_modules/zod/v4/mini/coerce.js +17 -0
- package/template/apps/platform/node_modules/zod/v4/mini/external.cjs +62 -0
- package/template/apps/platform/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/template/apps/platform/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/template/apps/platform/node_modules/zod/v4/mini/external.js +13 -0
- package/template/apps/platform/node_modules/zod/v4/mini/index.cjs +32 -0
- package/template/apps/platform/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/template/apps/platform/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/template/apps/platform/node_modules/zod/v4/mini/index.js +3 -0
- package/template/apps/platform/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/template/apps/platform/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/template/apps/platform/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/template/apps/platform/node_modules/zod/v4/mini/iso.js +30 -0
- package/template/apps/platform/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/template/apps/platform/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/parse.js +1 -0
- package/template/apps/platform/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/template/apps/platform/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/template/apps/platform/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/template/apps/platform/node_modules/zod/v4/mini/schemas.js +732 -0
- package/template/apps/platform/node_modules/zod/v4-mini/index.cjs +17 -0
- package/template/apps/platform/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/template/apps/platform/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/template/apps/platform/node_modules/zod/v4-mini/index.js +1 -0
- package/template/apps/platform/package.json +4 -1
- package/template/apps/platform/prettier.config.ts +3 -0
- package/template/apps/platform/tsconfig.json +2 -15
- package/template/package.json +5 -3
- package/template/packages/auth/eslint.config.ts +2 -2
- package/template/packages/auth/package.json +5 -1
- package/template/packages/auth/prettier.config.ts +3 -0
- package/template/packages/auth/tsconfig.json +2 -9
- package/template/packages/config-eslint/index.ts +24 -0
- package/template/packages/config-eslint/package.json +11 -0
- package/template/packages/config-prettier/index.ts +14 -0
- package/template/packages/config-prettier/package.json +7 -0
- package/template/packages/{ui/tsconfig.lint.json → config-typescript/base.json} +3 -5
- package/template/packages/config-typescript/package.json +9 -0
- package/template/packages/config-typescript/react.json +6 -0
- package/template/packages/db/eslint.config.ts +2 -2
- package/template/packages/db/package.json +3 -0
- package/template/packages/db/prettier.config.ts +3 -0
- package/template/packages/db/tsconfig.json +2 -9
- package/template/packages/orpc/eslint.config.ts +2 -2
- package/template/packages/orpc/node_modules/@types/node/LICENSE +21 -0
- package/template/packages/orpc/node_modules/@types/node/README.md +15 -0
- package/template/packages/orpc/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/template/packages/orpc/node_modules/@types/node/assert.d.ts +1078 -0
- package/template/packages/orpc/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/template/packages/orpc/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/template/packages/orpc/node_modules/@types/node/buffer.d.ts +1934 -0
- package/template/packages/orpc/node_modules/@types/node/child_process.d.ts +1476 -0
- package/template/packages/orpc/node_modules/@types/node/cluster.d.ts +578 -0
- package/template/packages/orpc/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/template/packages/orpc/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/template/packages/orpc/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/template/packages/orpc/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/template/packages/orpc/node_modules/@types/node/console.d.ts +452 -0
- package/template/packages/orpc/node_modules/@types/node/constants.d.ts +21 -0
- package/template/packages/orpc/node_modules/@types/node/crypto.d.ts +4545 -0
- package/template/packages/orpc/node_modules/@types/node/dgram.d.ts +600 -0
- package/template/packages/orpc/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/template/packages/orpc/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/template/packages/orpc/node_modules/@types/node/dns.d.ts +923 -0
- package/template/packages/orpc/node_modules/@types/node/domain.d.ts +170 -0
- package/template/packages/orpc/node_modules/@types/node/events.d.ts +976 -0
- package/template/packages/orpc/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/template/packages/orpc/node_modules/@types/node/fs.d.ts +4461 -0
- package/template/packages/orpc/node_modules/@types/node/globals.d.ts +172 -0
- package/template/packages/orpc/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/template/packages/orpc/node_modules/@types/node/http.d.ts +2089 -0
- package/template/packages/orpc/node_modules/@types/node/http2.d.ts +2644 -0
- package/template/packages/orpc/node_modules/@types/node/https.d.ts +579 -0
- package/template/packages/orpc/node_modules/@types/node/index.d.ts +97 -0
- package/template/packages/orpc/node_modules/@types/node/inspector.d.ts +253 -0
- package/template/packages/orpc/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/template/packages/orpc/node_modules/@types/node/module.d.ts +891 -0
- package/template/packages/orpc/node_modules/@types/node/net.d.ts +1076 -0
- package/template/packages/orpc/node_modules/@types/node/os.d.ts +506 -0
- package/template/packages/orpc/node_modules/@types/node/package.json +145 -0
- package/template/packages/orpc/node_modules/@types/node/path.d.ts +200 -0
- package/template/packages/orpc/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/template/packages/orpc/node_modules/@types/node/process.d.ts +2084 -0
- package/template/packages/orpc/node_modules/@types/node/punycode.d.ts +117 -0
- package/template/packages/orpc/node_modules/@types/node/querystring.d.ts +152 -0
- package/template/packages/orpc/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/template/packages/orpc/node_modules/@types/node/readline.d.ts +594 -0
- package/template/packages/orpc/node_modules/@types/node/repl.d.ts +428 -0
- package/template/packages/orpc/node_modules/@types/node/sea.d.ts +153 -0
- package/template/packages/orpc/node_modules/@types/node/sqlite.d.ts +721 -0
- package/template/packages/orpc/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/template/packages/orpc/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/template/packages/orpc/node_modules/@types/node/stream/web.d.ts +622 -0
- package/template/packages/orpc/node_modules/@types/node/stream.d.ts +1687 -0
- package/template/packages/orpc/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/template/packages/orpc/node_modules/@types/node/test.d.ts +2163 -0
- package/template/packages/orpc/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/template/packages/orpc/node_modules/@types/node/timers.d.ts +287 -0
- package/template/packages/orpc/node_modules/@types/node/tls.d.ts +1319 -0
- package/template/packages/orpc/node_modules/@types/node/trace_events.d.ts +197 -0
- package/template/packages/orpc/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/template/packages/orpc/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/template/packages/orpc/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/template/packages/orpc/node_modules/@types/node/tty.d.ts +208 -0
- package/template/packages/orpc/node_modules/@types/node/url.d.ts +984 -0
- package/template/packages/orpc/node_modules/@types/node/util.d.ts +2606 -0
- package/template/packages/orpc/node_modules/@types/node/v8.d.ts +920 -0
- package/template/packages/orpc/node_modules/@types/node/vm.d.ts +1000 -0
- package/template/packages/orpc/node_modules/@types/node/wasi.d.ts +181 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/template/packages/orpc/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/template/packages/orpc/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/template/packages/orpc/node_modules/@types/node/zlib.d.ts +747 -0
- package/template/packages/orpc/node_modules/undici-types/LICENSE +21 -0
- package/template/packages/orpc/node_modules/undici-types/README.md +6 -0
- package/template/packages/orpc/node_modules/undici-types/agent.d.ts +31 -0
- package/template/packages/orpc/node_modules/undici-types/api.d.ts +43 -0
- package/template/packages/orpc/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/template/packages/orpc/node_modules/undici-types/cache.d.ts +36 -0
- package/template/packages/orpc/node_modules/undici-types/client.d.ts +108 -0
- package/template/packages/orpc/node_modules/undici-types/connector.d.ts +34 -0
- package/template/packages/orpc/node_modules/undici-types/content-type.d.ts +21 -0
- package/template/packages/orpc/node_modules/undici-types/cookies.d.ts +28 -0
- package/template/packages/orpc/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/template/packages/orpc/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/template/packages/orpc/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/template/packages/orpc/node_modules/undici-types/errors.d.ts +149 -0
- package/template/packages/orpc/node_modules/undici-types/eventsource.d.ts +61 -0
- package/template/packages/orpc/node_modules/undici-types/fetch.d.ts +209 -0
- package/template/packages/orpc/node_modules/undici-types/file.d.ts +39 -0
- package/template/packages/orpc/node_modules/undici-types/filereader.d.ts +54 -0
- package/template/packages/orpc/node_modules/undici-types/formdata.d.ts +108 -0
- package/template/packages/orpc/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/template/packages/orpc/node_modules/undici-types/global-origin.d.ts +7 -0
- package/template/packages/orpc/node_modules/undici-types/handlers.d.ts +15 -0
- package/template/packages/orpc/node_modules/undici-types/header.d.ts +4 -0
- package/template/packages/orpc/node_modules/undici-types/index.d.ts +71 -0
- package/template/packages/orpc/node_modules/undici-types/interceptors.d.ts +17 -0
- package/template/packages/orpc/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/template/packages/orpc/node_modules/undici-types/mock-client.d.ts +25 -0
- package/template/packages/orpc/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/template/packages/orpc/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/template/packages/orpc/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/template/packages/orpc/node_modules/undici-types/package.json +55 -0
- package/template/packages/orpc/node_modules/undici-types/patch.d.ts +33 -0
- package/template/packages/orpc/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/template/packages/orpc/node_modules/undici-types/pool.d.ts +39 -0
- package/template/packages/orpc/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/template/packages/orpc/node_modules/undici-types/readable.d.ts +65 -0
- package/template/packages/orpc/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/template/packages/orpc/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/template/packages/orpc/node_modules/undici-types/util.d.ts +18 -0
- package/template/packages/orpc/node_modules/undici-types/webidl.d.ts +228 -0
- package/template/packages/orpc/node_modules/undici-types/websocket.d.ts +150 -0
- package/template/packages/orpc/package.json +6 -0
- package/template/packages/orpc/prettier.config.ts +3 -0
- package/template/packages/orpc/tsconfig.json +2 -9
- package/template/packages/ui/eslint.config.ts +2 -2
- package/template/packages/ui/package.json +3 -0
- package/template/packages/ui/prettier.config.ts +3 -0
- package/template/packages/ui/tsconfig.json +2 -9
- package/template/prettier.config.ts +15 -0
- package/template/.prettierrc +0 -11
- package/template/apps/platform/eslint.config.js +0 -10
- package/template/packages/auth/tsconfig.lint.json +0 -14
- package/template/packages/db/tsconfig.lint.json +0 -14
- package/template/packages/orpc/tsconfig.lint.json +0 -14
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { IssueData, ZodErrorMap, ZodIssue } from "../ZodError.js";
|
|
2
|
+
import type { ZodParsedType } from "./util.js";
|
|
3
|
+
export declare const makeIssue: (params: {
|
|
4
|
+
data: any;
|
|
5
|
+
path: (string | number)[];
|
|
6
|
+
errorMaps: ZodErrorMap[];
|
|
7
|
+
issueData: IssueData;
|
|
8
|
+
}) => ZodIssue;
|
|
9
|
+
export type ParseParams = {
|
|
10
|
+
path: (string | number)[];
|
|
11
|
+
errorMap: ZodErrorMap;
|
|
12
|
+
async: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ParsePathComponent = string | number;
|
|
15
|
+
export type ParsePath = ParsePathComponent[];
|
|
16
|
+
export declare const EMPTY_PATH: ParsePath;
|
|
17
|
+
export interface ParseContext {
|
|
18
|
+
readonly common: {
|
|
19
|
+
readonly issues: ZodIssue[];
|
|
20
|
+
readonly contextualErrorMap?: ZodErrorMap | undefined;
|
|
21
|
+
readonly async: boolean;
|
|
22
|
+
};
|
|
23
|
+
readonly path: ParsePath;
|
|
24
|
+
readonly schemaErrorMap?: ZodErrorMap | undefined;
|
|
25
|
+
readonly parent: ParseContext | null;
|
|
26
|
+
readonly data: any;
|
|
27
|
+
readonly parsedType: ZodParsedType;
|
|
28
|
+
}
|
|
29
|
+
export type ParseInput = {
|
|
30
|
+
data: any;
|
|
31
|
+
path: (string | number)[];
|
|
32
|
+
parent: ParseContext;
|
|
33
|
+
};
|
|
34
|
+
export declare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;
|
|
35
|
+
export type ObjectPair = {
|
|
36
|
+
key: SyncParseReturnType<any>;
|
|
37
|
+
value: SyncParseReturnType<any>;
|
|
38
|
+
};
|
|
39
|
+
export declare class ParseStatus {
|
|
40
|
+
value: "aborted" | "dirty" | "valid";
|
|
41
|
+
dirty(): void;
|
|
42
|
+
abort(): void;
|
|
43
|
+
static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;
|
|
44
|
+
static mergeObjectAsync(status: ParseStatus, pairs: {
|
|
45
|
+
key: ParseReturnType<any>;
|
|
46
|
+
value: ParseReturnType<any>;
|
|
47
|
+
}[]): Promise<SyncParseReturnType<any>>;
|
|
48
|
+
static mergeObjectSync(status: ParseStatus, pairs: {
|
|
49
|
+
key: SyncParseReturnType<any>;
|
|
50
|
+
value: SyncParseReturnType<any>;
|
|
51
|
+
alwaysSet?: boolean;
|
|
52
|
+
}[]): SyncParseReturnType;
|
|
53
|
+
}
|
|
54
|
+
export interface ParseResult {
|
|
55
|
+
status: "aborted" | "dirty" | "valid";
|
|
56
|
+
data: any;
|
|
57
|
+
}
|
|
58
|
+
export type INVALID = {
|
|
59
|
+
status: "aborted";
|
|
60
|
+
};
|
|
61
|
+
export declare const INVALID: INVALID;
|
|
62
|
+
export type DIRTY<T> = {
|
|
63
|
+
status: "dirty";
|
|
64
|
+
value: T;
|
|
65
|
+
};
|
|
66
|
+
export declare const DIRTY: <T>(value: T) => DIRTY<T>;
|
|
67
|
+
export type OK<T> = {
|
|
68
|
+
status: "valid";
|
|
69
|
+
value: T;
|
|
70
|
+
};
|
|
71
|
+
export declare const OK: <T>(value: T) => OK<T>;
|
|
72
|
+
export type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
|
|
73
|
+
export type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
|
|
74
|
+
export type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
|
|
75
|
+
export declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
|
|
76
|
+
export declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
|
|
77
|
+
export declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;
|
|
78
|
+
export declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { getErrorMap } from "../errors.js";
|
|
2
|
+
import defaultErrorMap from "../locales/en.js";
|
|
3
|
+
export const makeIssue = (params) => {
|
|
4
|
+
const { data, path, errorMaps, issueData } = params;
|
|
5
|
+
const fullPath = [...path, ...(issueData.path || [])];
|
|
6
|
+
const fullIssue = {
|
|
7
|
+
...issueData,
|
|
8
|
+
path: fullPath,
|
|
9
|
+
};
|
|
10
|
+
if (issueData.message !== undefined) {
|
|
11
|
+
return {
|
|
12
|
+
...issueData,
|
|
13
|
+
path: fullPath,
|
|
14
|
+
message: issueData.message,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
let errorMessage = "";
|
|
18
|
+
const maps = errorMaps
|
|
19
|
+
.filter((m) => !!m)
|
|
20
|
+
.slice()
|
|
21
|
+
.reverse();
|
|
22
|
+
for (const map of maps) {
|
|
23
|
+
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
...issueData,
|
|
27
|
+
path: fullPath,
|
|
28
|
+
message: errorMessage,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export const EMPTY_PATH = [];
|
|
32
|
+
export function addIssueToContext(ctx, issueData) {
|
|
33
|
+
const overrideMap = getErrorMap();
|
|
34
|
+
const issue = makeIssue({
|
|
35
|
+
issueData: issueData,
|
|
36
|
+
data: ctx.data,
|
|
37
|
+
path: ctx.path,
|
|
38
|
+
errorMaps: [
|
|
39
|
+
ctx.common.contextualErrorMap, // contextual error map is first priority
|
|
40
|
+
ctx.schemaErrorMap, // then schema-bound map if available
|
|
41
|
+
overrideMap, // then global override map
|
|
42
|
+
overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map
|
|
43
|
+
].filter((x) => !!x),
|
|
44
|
+
});
|
|
45
|
+
ctx.common.issues.push(issue);
|
|
46
|
+
}
|
|
47
|
+
export class ParseStatus {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.value = "valid";
|
|
50
|
+
}
|
|
51
|
+
dirty() {
|
|
52
|
+
if (this.value === "valid")
|
|
53
|
+
this.value = "dirty";
|
|
54
|
+
}
|
|
55
|
+
abort() {
|
|
56
|
+
if (this.value !== "aborted")
|
|
57
|
+
this.value = "aborted";
|
|
58
|
+
}
|
|
59
|
+
static mergeArray(status, results) {
|
|
60
|
+
const arrayValue = [];
|
|
61
|
+
for (const s of results) {
|
|
62
|
+
if (s.status === "aborted")
|
|
63
|
+
return INVALID;
|
|
64
|
+
if (s.status === "dirty")
|
|
65
|
+
status.dirty();
|
|
66
|
+
arrayValue.push(s.value);
|
|
67
|
+
}
|
|
68
|
+
return { status: status.value, value: arrayValue };
|
|
69
|
+
}
|
|
70
|
+
static async mergeObjectAsync(status, pairs) {
|
|
71
|
+
const syncPairs = [];
|
|
72
|
+
for (const pair of pairs) {
|
|
73
|
+
const key = await pair.key;
|
|
74
|
+
const value = await pair.value;
|
|
75
|
+
syncPairs.push({
|
|
76
|
+
key,
|
|
77
|
+
value,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return ParseStatus.mergeObjectSync(status, syncPairs);
|
|
81
|
+
}
|
|
82
|
+
static mergeObjectSync(status, pairs) {
|
|
83
|
+
const finalObject = {};
|
|
84
|
+
for (const pair of pairs) {
|
|
85
|
+
const { key, value } = pair;
|
|
86
|
+
if (key.status === "aborted")
|
|
87
|
+
return INVALID;
|
|
88
|
+
if (value.status === "aborted")
|
|
89
|
+
return INVALID;
|
|
90
|
+
if (key.status === "dirty")
|
|
91
|
+
status.dirty();
|
|
92
|
+
if (value.status === "dirty")
|
|
93
|
+
status.dirty();
|
|
94
|
+
if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
95
|
+
finalObject[key.value] = value.value;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return { status: status.value, value: finalObject };
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export const INVALID = Object.freeze({
|
|
102
|
+
status: "aborted",
|
|
103
|
+
});
|
|
104
|
+
export const DIRTY = (value) => ({ status: "dirty", value });
|
|
105
|
+
export const OK = (value) => ({ status: "valid", value });
|
|
106
|
+
export const isAborted = (x) => x.status === "aborted";
|
|
107
|
+
export const isDirty = (x) => x.status === "dirty";
|
|
108
|
+
export const isValid = (x) => x.status === "valid";
|
|
109
|
+
export const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ZodArray, ZodNullable, ZodObject, ZodOptional, ZodRawShape, ZodTuple, ZodTupleItems, ZodTypeAny } from "../types.cjs";
|
|
2
|
+
export declare namespace partialUtil {
|
|
3
|
+
type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{
|
|
4
|
+
[k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>;
|
|
5
|
+
}, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? {
|
|
6
|
+
[k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
|
|
7
|
+
} extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ZodArray, ZodNullable, ZodObject, ZodOptional, ZodRawShape, ZodTuple, ZodTupleItems, ZodTypeAny } from "../types.js";
|
|
2
|
+
export declare namespace partialUtil {
|
|
3
|
+
type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{
|
|
4
|
+
[k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>;
|
|
5
|
+
}, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? {
|
|
6
|
+
[k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
|
|
7
|
+
} extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getParsedType = exports.ZodParsedType = exports.objectUtil = exports.util = void 0;
|
|
4
|
+
var util;
|
|
5
|
+
(function (util) {
|
|
6
|
+
util.assertEqual = (_) => { };
|
|
7
|
+
function assertIs(_arg) { }
|
|
8
|
+
util.assertIs = assertIs;
|
|
9
|
+
function assertNever(_x) {
|
|
10
|
+
throw new Error();
|
|
11
|
+
}
|
|
12
|
+
util.assertNever = assertNever;
|
|
13
|
+
util.arrayToEnum = (items) => {
|
|
14
|
+
const obj = {};
|
|
15
|
+
for (const item of items) {
|
|
16
|
+
obj[item] = item;
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
};
|
|
20
|
+
util.getValidEnumValues = (obj) => {
|
|
21
|
+
const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
22
|
+
const filtered = {};
|
|
23
|
+
for (const k of validKeys) {
|
|
24
|
+
filtered[k] = obj[k];
|
|
25
|
+
}
|
|
26
|
+
return util.objectValues(filtered);
|
|
27
|
+
};
|
|
28
|
+
util.objectValues = (obj) => {
|
|
29
|
+
return util.objectKeys(obj).map(function (e) {
|
|
30
|
+
return obj[e];
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
|
|
34
|
+
? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
|
|
35
|
+
: (object) => {
|
|
36
|
+
const keys = [];
|
|
37
|
+
for (const key in object) {
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
39
|
+
keys.push(key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return keys;
|
|
43
|
+
};
|
|
44
|
+
util.find = (arr, checker) => {
|
|
45
|
+
for (const item of arr) {
|
|
46
|
+
if (checker(item))
|
|
47
|
+
return item;
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
};
|
|
51
|
+
util.isInteger = typeof Number.isInteger === "function"
|
|
52
|
+
? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
|
|
53
|
+
: (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
54
|
+
function joinValues(array, separator = " | ") {
|
|
55
|
+
return array.map((val) => (typeof val === "string" ? `'${val}'` : val)).join(separator);
|
|
56
|
+
}
|
|
57
|
+
util.joinValues = joinValues;
|
|
58
|
+
util.jsonStringifyReplacer = (_, value) => {
|
|
59
|
+
if (typeof value === "bigint") {
|
|
60
|
+
return value.toString();
|
|
61
|
+
}
|
|
62
|
+
return value;
|
|
63
|
+
};
|
|
64
|
+
})(util || (exports.util = util = {}));
|
|
65
|
+
var objectUtil;
|
|
66
|
+
(function (objectUtil) {
|
|
67
|
+
objectUtil.mergeShapes = (first, second) => {
|
|
68
|
+
return {
|
|
69
|
+
...first,
|
|
70
|
+
...second, // second overwrites first
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
})(objectUtil || (exports.objectUtil = objectUtil = {}));
|
|
74
|
+
exports.ZodParsedType = util.arrayToEnum([
|
|
75
|
+
"string",
|
|
76
|
+
"nan",
|
|
77
|
+
"number",
|
|
78
|
+
"integer",
|
|
79
|
+
"float",
|
|
80
|
+
"boolean",
|
|
81
|
+
"date",
|
|
82
|
+
"bigint",
|
|
83
|
+
"symbol",
|
|
84
|
+
"function",
|
|
85
|
+
"undefined",
|
|
86
|
+
"null",
|
|
87
|
+
"array",
|
|
88
|
+
"object",
|
|
89
|
+
"unknown",
|
|
90
|
+
"promise",
|
|
91
|
+
"void",
|
|
92
|
+
"never",
|
|
93
|
+
"map",
|
|
94
|
+
"set",
|
|
95
|
+
]);
|
|
96
|
+
const getParsedType = (data) => {
|
|
97
|
+
const t = typeof data;
|
|
98
|
+
switch (t) {
|
|
99
|
+
case "undefined":
|
|
100
|
+
return exports.ZodParsedType.undefined;
|
|
101
|
+
case "string":
|
|
102
|
+
return exports.ZodParsedType.string;
|
|
103
|
+
case "number":
|
|
104
|
+
return Number.isNaN(data) ? exports.ZodParsedType.nan : exports.ZodParsedType.number;
|
|
105
|
+
case "boolean":
|
|
106
|
+
return exports.ZodParsedType.boolean;
|
|
107
|
+
case "function":
|
|
108
|
+
return exports.ZodParsedType.function;
|
|
109
|
+
case "bigint":
|
|
110
|
+
return exports.ZodParsedType.bigint;
|
|
111
|
+
case "symbol":
|
|
112
|
+
return exports.ZodParsedType.symbol;
|
|
113
|
+
case "object":
|
|
114
|
+
if (Array.isArray(data)) {
|
|
115
|
+
return exports.ZodParsedType.array;
|
|
116
|
+
}
|
|
117
|
+
if (data === null) {
|
|
118
|
+
return exports.ZodParsedType.null;
|
|
119
|
+
}
|
|
120
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
121
|
+
return exports.ZodParsedType.promise;
|
|
122
|
+
}
|
|
123
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
124
|
+
return exports.ZodParsedType.map;
|
|
125
|
+
}
|
|
126
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
127
|
+
return exports.ZodParsedType.set;
|
|
128
|
+
}
|
|
129
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
130
|
+
return exports.ZodParsedType.date;
|
|
131
|
+
}
|
|
132
|
+
return exports.ZodParsedType.object;
|
|
133
|
+
default:
|
|
134
|
+
return exports.ZodParsedType.unknown;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.getParsedType = getParsedType;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare namespace util {
|
|
2
|
+
type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
|
|
3
|
+
export type isAny<T> = 0 extends 1 & T ? true : false;
|
|
4
|
+
export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
|
|
5
|
+
export function assertIs<T>(_arg: T): void;
|
|
6
|
+
export function assertNever(_x: never): never;
|
|
7
|
+
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
8
|
+
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
9
|
+
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
10
|
+
export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
11
|
+
export type InexactPartial<T> = {
|
|
12
|
+
[k in keyof T]?: T[k] | undefined;
|
|
13
|
+
};
|
|
14
|
+
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
15
|
+
export const getValidEnumValues: (obj: any) => any[];
|
|
16
|
+
export const objectValues: (obj: any) => any[];
|
|
17
|
+
export const objectKeys: ObjectConstructor["keys"];
|
|
18
|
+
export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
|
|
19
|
+
export type identity<T> = objectUtil.identity<T>;
|
|
20
|
+
export type flatten<T> = objectUtil.flatten<T>;
|
|
21
|
+
export type noUndefined<T> = T extends undefined ? never : T;
|
|
22
|
+
export const isInteger: NumberConstructor["isInteger"];
|
|
23
|
+
export function joinValues<T extends any[]>(array: T, separator?: string): string;
|
|
24
|
+
export const jsonStringifyReplacer: (_: string, value: any) => any;
|
|
25
|
+
export {};
|
|
26
|
+
}
|
|
27
|
+
export declare namespace objectUtil {
|
|
28
|
+
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
|
|
29
|
+
[k in Exclude<keyof U, keyof V>]: U[k];
|
|
30
|
+
} & V;
|
|
31
|
+
type optionalKeys<T extends object> = {
|
|
32
|
+
[k in keyof T]: undefined extends T[k] ? k : never;
|
|
33
|
+
}[keyof T];
|
|
34
|
+
type requiredKeys<T extends object> = {
|
|
35
|
+
[k in keyof T]: undefined extends T[k] ? never : k;
|
|
36
|
+
}[keyof T];
|
|
37
|
+
export type addQuestionMarks<T extends object, _O = any> = {
|
|
38
|
+
[K in requiredKeys<T>]: T[K];
|
|
39
|
+
} & {
|
|
40
|
+
[K in optionalKeys<T>]?: T[K];
|
|
41
|
+
} & {
|
|
42
|
+
[k in keyof T]?: unknown;
|
|
43
|
+
};
|
|
44
|
+
export type identity<T> = T;
|
|
45
|
+
export type flatten<T> = identity<{
|
|
46
|
+
[k in keyof T]: T[k];
|
|
47
|
+
}>;
|
|
48
|
+
export type noNeverKeys<T> = {
|
|
49
|
+
[k in keyof T]: [T[k]] extends [never] ? never : k;
|
|
50
|
+
}[keyof T];
|
|
51
|
+
export type noNever<T> = identity<{
|
|
52
|
+
[k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
|
|
53
|
+
}>;
|
|
54
|
+
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
55
|
+
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
|
|
56
|
+
[K in keyof A as K extends keyof B ? never : K]: A[K];
|
|
57
|
+
} & {
|
|
58
|
+
[K in keyof B]: B[K];
|
|
59
|
+
};
|
|
60
|
+
export {};
|
|
61
|
+
}
|
|
62
|
+
export declare const ZodParsedType: {
|
|
63
|
+
string: "string";
|
|
64
|
+
nan: "nan";
|
|
65
|
+
number: "number";
|
|
66
|
+
integer: "integer";
|
|
67
|
+
float: "float";
|
|
68
|
+
boolean: "boolean";
|
|
69
|
+
date: "date";
|
|
70
|
+
bigint: "bigint";
|
|
71
|
+
symbol: "symbol";
|
|
72
|
+
function: "function";
|
|
73
|
+
undefined: "undefined";
|
|
74
|
+
null: "null";
|
|
75
|
+
array: "array";
|
|
76
|
+
object: "object";
|
|
77
|
+
unknown: "unknown";
|
|
78
|
+
promise: "promise";
|
|
79
|
+
void: "void";
|
|
80
|
+
never: "never";
|
|
81
|
+
map: "map";
|
|
82
|
+
set: "set";
|
|
83
|
+
};
|
|
84
|
+
export type ZodParsedType = keyof typeof ZodParsedType;
|
|
85
|
+
export declare const getParsedType: (data: any) => ZodParsedType;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare namespace util {
|
|
2
|
+
type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
|
|
3
|
+
export type isAny<T> = 0 extends 1 & T ? true : false;
|
|
4
|
+
export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
|
|
5
|
+
export function assertIs<T>(_arg: T): void;
|
|
6
|
+
export function assertNever(_x: never): never;
|
|
7
|
+
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
8
|
+
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
9
|
+
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
10
|
+
export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
11
|
+
export type InexactPartial<T> = {
|
|
12
|
+
[k in keyof T]?: T[k] | undefined;
|
|
13
|
+
};
|
|
14
|
+
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
15
|
+
export const getValidEnumValues: (obj: any) => any[];
|
|
16
|
+
export const objectValues: (obj: any) => any[];
|
|
17
|
+
export const objectKeys: ObjectConstructor["keys"];
|
|
18
|
+
export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
|
|
19
|
+
export type identity<T> = objectUtil.identity<T>;
|
|
20
|
+
export type flatten<T> = objectUtil.flatten<T>;
|
|
21
|
+
export type noUndefined<T> = T extends undefined ? never : T;
|
|
22
|
+
export const isInteger: NumberConstructor["isInteger"];
|
|
23
|
+
export function joinValues<T extends any[]>(array: T, separator?: string): string;
|
|
24
|
+
export const jsonStringifyReplacer: (_: string, value: any) => any;
|
|
25
|
+
export {};
|
|
26
|
+
}
|
|
27
|
+
export declare namespace objectUtil {
|
|
28
|
+
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
|
|
29
|
+
[k in Exclude<keyof U, keyof V>]: U[k];
|
|
30
|
+
} & V;
|
|
31
|
+
type optionalKeys<T extends object> = {
|
|
32
|
+
[k in keyof T]: undefined extends T[k] ? k : never;
|
|
33
|
+
}[keyof T];
|
|
34
|
+
type requiredKeys<T extends object> = {
|
|
35
|
+
[k in keyof T]: undefined extends T[k] ? never : k;
|
|
36
|
+
}[keyof T];
|
|
37
|
+
export type addQuestionMarks<T extends object, _O = any> = {
|
|
38
|
+
[K in requiredKeys<T>]: T[K];
|
|
39
|
+
} & {
|
|
40
|
+
[K in optionalKeys<T>]?: T[K];
|
|
41
|
+
} & {
|
|
42
|
+
[k in keyof T]?: unknown;
|
|
43
|
+
};
|
|
44
|
+
export type identity<T> = T;
|
|
45
|
+
export type flatten<T> = identity<{
|
|
46
|
+
[k in keyof T]: T[k];
|
|
47
|
+
}>;
|
|
48
|
+
export type noNeverKeys<T> = {
|
|
49
|
+
[k in keyof T]: [T[k]] extends [never] ? never : k;
|
|
50
|
+
}[keyof T];
|
|
51
|
+
export type noNever<T> = identity<{
|
|
52
|
+
[k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
|
|
53
|
+
}>;
|
|
54
|
+
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
55
|
+
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
|
|
56
|
+
[K in keyof A as K extends keyof B ? never : K]: A[K];
|
|
57
|
+
} & {
|
|
58
|
+
[K in keyof B]: B[K];
|
|
59
|
+
};
|
|
60
|
+
export {};
|
|
61
|
+
}
|
|
62
|
+
export declare const ZodParsedType: {
|
|
63
|
+
string: "string";
|
|
64
|
+
nan: "nan";
|
|
65
|
+
number: "number";
|
|
66
|
+
integer: "integer";
|
|
67
|
+
float: "float";
|
|
68
|
+
boolean: "boolean";
|
|
69
|
+
date: "date";
|
|
70
|
+
bigint: "bigint";
|
|
71
|
+
symbol: "symbol";
|
|
72
|
+
function: "function";
|
|
73
|
+
undefined: "undefined";
|
|
74
|
+
null: "null";
|
|
75
|
+
array: "array";
|
|
76
|
+
object: "object";
|
|
77
|
+
unknown: "unknown";
|
|
78
|
+
promise: "promise";
|
|
79
|
+
void: "void";
|
|
80
|
+
never: "never";
|
|
81
|
+
map: "map";
|
|
82
|
+
set: "set";
|
|
83
|
+
};
|
|
84
|
+
export type ZodParsedType = keyof typeof ZodParsedType;
|
|
85
|
+
export declare const getParsedType: (data: any) => ZodParsedType;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export var util;
|
|
2
|
+
(function (util) {
|
|
3
|
+
util.assertEqual = (_) => { };
|
|
4
|
+
function assertIs(_arg) { }
|
|
5
|
+
util.assertIs = assertIs;
|
|
6
|
+
function assertNever(_x) {
|
|
7
|
+
throw new Error();
|
|
8
|
+
}
|
|
9
|
+
util.assertNever = assertNever;
|
|
10
|
+
util.arrayToEnum = (items) => {
|
|
11
|
+
const obj = {};
|
|
12
|
+
for (const item of items) {
|
|
13
|
+
obj[item] = item;
|
|
14
|
+
}
|
|
15
|
+
return obj;
|
|
16
|
+
};
|
|
17
|
+
util.getValidEnumValues = (obj) => {
|
|
18
|
+
const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
19
|
+
const filtered = {};
|
|
20
|
+
for (const k of validKeys) {
|
|
21
|
+
filtered[k] = obj[k];
|
|
22
|
+
}
|
|
23
|
+
return util.objectValues(filtered);
|
|
24
|
+
};
|
|
25
|
+
util.objectValues = (obj) => {
|
|
26
|
+
return util.objectKeys(obj).map(function (e) {
|
|
27
|
+
return obj[e];
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
|
|
31
|
+
? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
|
|
32
|
+
: (object) => {
|
|
33
|
+
const keys = [];
|
|
34
|
+
for (const key in object) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
36
|
+
keys.push(key);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return keys;
|
|
40
|
+
};
|
|
41
|
+
util.find = (arr, checker) => {
|
|
42
|
+
for (const item of arr) {
|
|
43
|
+
if (checker(item))
|
|
44
|
+
return item;
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
};
|
|
48
|
+
util.isInteger = typeof Number.isInteger === "function"
|
|
49
|
+
? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
|
|
50
|
+
: (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
51
|
+
function joinValues(array, separator = " | ") {
|
|
52
|
+
return array.map((val) => (typeof val === "string" ? `'${val}'` : val)).join(separator);
|
|
53
|
+
}
|
|
54
|
+
util.joinValues = joinValues;
|
|
55
|
+
util.jsonStringifyReplacer = (_, value) => {
|
|
56
|
+
if (typeof value === "bigint") {
|
|
57
|
+
return value.toString();
|
|
58
|
+
}
|
|
59
|
+
return value;
|
|
60
|
+
};
|
|
61
|
+
})(util || (util = {}));
|
|
62
|
+
export var objectUtil;
|
|
63
|
+
(function (objectUtil) {
|
|
64
|
+
objectUtil.mergeShapes = (first, second) => {
|
|
65
|
+
return {
|
|
66
|
+
...first,
|
|
67
|
+
...second, // second overwrites first
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
})(objectUtil || (objectUtil = {}));
|
|
71
|
+
export const ZodParsedType = util.arrayToEnum([
|
|
72
|
+
"string",
|
|
73
|
+
"nan",
|
|
74
|
+
"number",
|
|
75
|
+
"integer",
|
|
76
|
+
"float",
|
|
77
|
+
"boolean",
|
|
78
|
+
"date",
|
|
79
|
+
"bigint",
|
|
80
|
+
"symbol",
|
|
81
|
+
"function",
|
|
82
|
+
"undefined",
|
|
83
|
+
"null",
|
|
84
|
+
"array",
|
|
85
|
+
"object",
|
|
86
|
+
"unknown",
|
|
87
|
+
"promise",
|
|
88
|
+
"void",
|
|
89
|
+
"never",
|
|
90
|
+
"map",
|
|
91
|
+
"set",
|
|
92
|
+
]);
|
|
93
|
+
export const getParsedType = (data) => {
|
|
94
|
+
const t = typeof data;
|
|
95
|
+
switch (t) {
|
|
96
|
+
case "undefined":
|
|
97
|
+
return ZodParsedType.undefined;
|
|
98
|
+
case "string":
|
|
99
|
+
return ZodParsedType.string;
|
|
100
|
+
case "number":
|
|
101
|
+
return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
102
|
+
case "boolean":
|
|
103
|
+
return ZodParsedType.boolean;
|
|
104
|
+
case "function":
|
|
105
|
+
return ZodParsedType.function;
|
|
106
|
+
case "bigint":
|
|
107
|
+
return ZodParsedType.bigint;
|
|
108
|
+
case "symbol":
|
|
109
|
+
return ZodParsedType.symbol;
|
|
110
|
+
case "object":
|
|
111
|
+
if (Array.isArray(data)) {
|
|
112
|
+
return ZodParsedType.array;
|
|
113
|
+
}
|
|
114
|
+
if (data === null) {
|
|
115
|
+
return ZodParsedType.null;
|
|
116
|
+
}
|
|
117
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
118
|
+
return ZodParsedType.promise;
|
|
119
|
+
}
|
|
120
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
121
|
+
return ZodParsedType.map;
|
|
122
|
+
}
|
|
123
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
124
|
+
return ZodParsedType.set;
|
|
125
|
+
}
|
|
126
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
127
|
+
return ZodParsedType.date;
|
|
128
|
+
}
|
|
129
|
+
return ZodParsedType.object;
|
|
130
|
+
default:
|
|
131
|
+
return ZodParsedType.unknown;
|
|
132
|
+
}
|
|
133
|
+
};
|