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,579 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
|
3
|
+
* separate module.
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/https.js)
|
|
5
|
+
*/
|
|
6
|
+
declare module "https" {
|
|
7
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
8
|
+
import { Duplex } from "node:stream";
|
|
9
|
+
import * as tls from "node:tls";
|
|
10
|
+
import * as http from "node:http";
|
|
11
|
+
import { URL } from "node:url";
|
|
12
|
+
interface ServerOptions<
|
|
13
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
14
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
15
|
+
> extends http.ServerOptions<Request, Response>, tls.TlsOptions {}
|
|
16
|
+
interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions {
|
|
17
|
+
checkServerIdentity?:
|
|
18
|
+
| ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined)
|
|
19
|
+
| undefined;
|
|
20
|
+
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
21
|
+
servername?: string | undefined; // SNI TLS Extension
|
|
22
|
+
}
|
|
23
|
+
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
24
|
+
maxCachedSessions?: number | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
|
|
28
|
+
* @since v0.4.5
|
|
29
|
+
*/
|
|
30
|
+
class Agent extends http.Agent {
|
|
31
|
+
constructor(options?: AgentOptions);
|
|
32
|
+
options: AgentOptions;
|
|
33
|
+
createConnection(
|
|
34
|
+
options: RequestOptions,
|
|
35
|
+
callback?: (err: Error | null, stream: Duplex) => void,
|
|
36
|
+
): Duplex | null | undefined;
|
|
37
|
+
getName(options?: RequestOptions): string;
|
|
38
|
+
}
|
|
39
|
+
interface Server<
|
|
40
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
41
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
42
|
+
> extends http.Server<Request, Response> {}
|
|
43
|
+
/**
|
|
44
|
+
* See `http.Server` for more information.
|
|
45
|
+
* @since v0.3.4
|
|
46
|
+
*/
|
|
47
|
+
class Server<
|
|
48
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
49
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
50
|
+
> extends tls.Server {
|
|
51
|
+
constructor(requestListener?: http.RequestListener<Request, Response>);
|
|
52
|
+
constructor(
|
|
53
|
+
options: ServerOptions<Request, Response>,
|
|
54
|
+
requestListener?: http.RequestListener<Request, Response>,
|
|
55
|
+
);
|
|
56
|
+
/**
|
|
57
|
+
* Closes all connections connected to this server.
|
|
58
|
+
* @since v18.2.0
|
|
59
|
+
*/
|
|
60
|
+
closeAllConnections(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Closes all connections connected to this server which are not sending a request or waiting for a response.
|
|
63
|
+
* @since v18.2.0
|
|
64
|
+
*/
|
|
65
|
+
closeIdleConnections(): void;
|
|
66
|
+
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
67
|
+
addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
68
|
+
addListener(
|
|
69
|
+
event: "newSession",
|
|
70
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
71
|
+
): this;
|
|
72
|
+
addListener(
|
|
73
|
+
event: "OCSPRequest",
|
|
74
|
+
listener: (
|
|
75
|
+
certificate: NonSharedBuffer,
|
|
76
|
+
issuer: NonSharedBuffer,
|
|
77
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
78
|
+
) => void,
|
|
79
|
+
): this;
|
|
80
|
+
addListener(
|
|
81
|
+
event: "resumeSession",
|
|
82
|
+
listener: (
|
|
83
|
+
sessionId: NonSharedBuffer,
|
|
84
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
85
|
+
) => void,
|
|
86
|
+
): this;
|
|
87
|
+
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
88
|
+
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
89
|
+
addListener(event: "close", listener: () => void): this;
|
|
90
|
+
addListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
91
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
92
|
+
addListener(event: "listening", listener: () => void): this;
|
|
93
|
+
addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
94
|
+
addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
95
|
+
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
96
|
+
addListener(
|
|
97
|
+
event: "connect",
|
|
98
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
99
|
+
): this;
|
|
100
|
+
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
101
|
+
addListener(
|
|
102
|
+
event: "upgrade",
|
|
103
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
104
|
+
): this;
|
|
105
|
+
emit(event: string, ...args: any[]): boolean;
|
|
106
|
+
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean;
|
|
107
|
+
emit(
|
|
108
|
+
event: "newSession",
|
|
109
|
+
sessionId: NonSharedBuffer,
|
|
110
|
+
sessionData: NonSharedBuffer,
|
|
111
|
+
callback: () => void,
|
|
112
|
+
): boolean;
|
|
113
|
+
emit(
|
|
114
|
+
event: "OCSPRequest",
|
|
115
|
+
certificate: NonSharedBuffer,
|
|
116
|
+
issuer: NonSharedBuffer,
|
|
117
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
118
|
+
): boolean;
|
|
119
|
+
emit(
|
|
120
|
+
event: "resumeSession",
|
|
121
|
+
sessionId: NonSharedBuffer,
|
|
122
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
123
|
+
): boolean;
|
|
124
|
+
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
125
|
+
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
126
|
+
emit(event: "close"): boolean;
|
|
127
|
+
emit(event: "connection", socket: Duplex): boolean;
|
|
128
|
+
emit(event: "error", err: Error): boolean;
|
|
129
|
+
emit(event: "listening"): boolean;
|
|
130
|
+
emit(
|
|
131
|
+
event: "checkContinue",
|
|
132
|
+
req: InstanceType<Request>,
|
|
133
|
+
res: InstanceType<Response>,
|
|
134
|
+
): boolean;
|
|
135
|
+
emit(
|
|
136
|
+
event: "checkExpectation",
|
|
137
|
+
req: InstanceType<Request>,
|
|
138
|
+
res: InstanceType<Response>,
|
|
139
|
+
): boolean;
|
|
140
|
+
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
141
|
+
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
142
|
+
emit(
|
|
143
|
+
event: "request",
|
|
144
|
+
req: InstanceType<Request>,
|
|
145
|
+
res: InstanceType<Response>,
|
|
146
|
+
): boolean;
|
|
147
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
148
|
+
on(event: string, listener: (...args: any[]) => void): this;
|
|
149
|
+
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
150
|
+
on(
|
|
151
|
+
event: "newSession",
|
|
152
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
153
|
+
): this;
|
|
154
|
+
on(
|
|
155
|
+
event: "OCSPRequest",
|
|
156
|
+
listener: (
|
|
157
|
+
certificate: NonSharedBuffer,
|
|
158
|
+
issuer: NonSharedBuffer,
|
|
159
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
160
|
+
) => void,
|
|
161
|
+
): this;
|
|
162
|
+
on(
|
|
163
|
+
event: "resumeSession",
|
|
164
|
+
listener: (
|
|
165
|
+
sessionId: NonSharedBuffer,
|
|
166
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
167
|
+
) => void,
|
|
168
|
+
): this;
|
|
169
|
+
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
170
|
+
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
171
|
+
on(event: "close", listener: () => void): this;
|
|
172
|
+
on(event: "connection", listener: (socket: Duplex) => void): this;
|
|
173
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
174
|
+
on(event: "listening", listener: () => void): this;
|
|
175
|
+
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
176
|
+
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
177
|
+
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
178
|
+
on(
|
|
179
|
+
event: "connect",
|
|
180
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
181
|
+
): this;
|
|
182
|
+
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
183
|
+
on(
|
|
184
|
+
event: "upgrade",
|
|
185
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
186
|
+
): this;
|
|
187
|
+
once(event: string, listener: (...args: any[]) => void): this;
|
|
188
|
+
once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
189
|
+
once(
|
|
190
|
+
event: "newSession",
|
|
191
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
192
|
+
): this;
|
|
193
|
+
once(
|
|
194
|
+
event: "OCSPRequest",
|
|
195
|
+
listener: (
|
|
196
|
+
certificate: NonSharedBuffer,
|
|
197
|
+
issuer: NonSharedBuffer,
|
|
198
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
199
|
+
) => void,
|
|
200
|
+
): this;
|
|
201
|
+
once(
|
|
202
|
+
event: "resumeSession",
|
|
203
|
+
listener: (
|
|
204
|
+
sessionId: NonSharedBuffer,
|
|
205
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
206
|
+
) => void,
|
|
207
|
+
): this;
|
|
208
|
+
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
209
|
+
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
210
|
+
once(event: "close", listener: () => void): this;
|
|
211
|
+
once(event: "connection", listener: (socket: Duplex) => void): this;
|
|
212
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
213
|
+
once(event: "listening", listener: () => void): this;
|
|
214
|
+
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
215
|
+
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
216
|
+
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
217
|
+
once(
|
|
218
|
+
event: "connect",
|
|
219
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
220
|
+
): this;
|
|
221
|
+
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
222
|
+
once(
|
|
223
|
+
event: "upgrade",
|
|
224
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
225
|
+
): this;
|
|
226
|
+
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
227
|
+
prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
228
|
+
prependListener(
|
|
229
|
+
event: "newSession",
|
|
230
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
231
|
+
): this;
|
|
232
|
+
prependListener(
|
|
233
|
+
event: "OCSPRequest",
|
|
234
|
+
listener: (
|
|
235
|
+
certificate: NonSharedBuffer,
|
|
236
|
+
issuer: NonSharedBuffer,
|
|
237
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
238
|
+
) => void,
|
|
239
|
+
): this;
|
|
240
|
+
prependListener(
|
|
241
|
+
event: "resumeSession",
|
|
242
|
+
listener: (
|
|
243
|
+
sessionId: NonSharedBuffer,
|
|
244
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
245
|
+
) => void,
|
|
246
|
+
): this;
|
|
247
|
+
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
248
|
+
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
249
|
+
prependListener(event: "close", listener: () => void): this;
|
|
250
|
+
prependListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
251
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
252
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
253
|
+
prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
254
|
+
prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
255
|
+
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
256
|
+
prependListener(
|
|
257
|
+
event: "connect",
|
|
258
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
259
|
+
): this;
|
|
260
|
+
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
261
|
+
prependListener(
|
|
262
|
+
event: "upgrade",
|
|
263
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
264
|
+
): this;
|
|
265
|
+
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
266
|
+
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
267
|
+
prependOnceListener(
|
|
268
|
+
event: "newSession",
|
|
269
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
270
|
+
): this;
|
|
271
|
+
prependOnceListener(
|
|
272
|
+
event: "OCSPRequest",
|
|
273
|
+
listener: (
|
|
274
|
+
certificate: NonSharedBuffer,
|
|
275
|
+
issuer: NonSharedBuffer,
|
|
276
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
277
|
+
) => void,
|
|
278
|
+
): this;
|
|
279
|
+
prependOnceListener(
|
|
280
|
+
event: "resumeSession",
|
|
281
|
+
listener: (
|
|
282
|
+
sessionId: NonSharedBuffer,
|
|
283
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
284
|
+
) => void,
|
|
285
|
+
): this;
|
|
286
|
+
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
287
|
+
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
288
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
289
|
+
prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
290
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
291
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
292
|
+
prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
293
|
+
prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
294
|
+
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
295
|
+
prependOnceListener(
|
|
296
|
+
event: "connect",
|
|
297
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
298
|
+
): this;
|
|
299
|
+
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
300
|
+
prependOnceListener(
|
|
301
|
+
event: "upgrade",
|
|
302
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
303
|
+
): this;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* ```js
|
|
307
|
+
* // curl -k https://localhost:8000/
|
|
308
|
+
* import https from 'node:https';
|
|
309
|
+
* import fs from 'node:fs';
|
|
310
|
+
*
|
|
311
|
+
* const options = {
|
|
312
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
313
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
314
|
+
* };
|
|
315
|
+
*
|
|
316
|
+
* https.createServer(options, (req, res) => {
|
|
317
|
+
* res.writeHead(200);
|
|
318
|
+
* res.end('hello world\n');
|
|
319
|
+
* }).listen(8000);
|
|
320
|
+
* ```
|
|
321
|
+
*
|
|
322
|
+
* Or
|
|
323
|
+
*
|
|
324
|
+
* ```js
|
|
325
|
+
* import https from 'node:https';
|
|
326
|
+
* import fs from 'node:fs';
|
|
327
|
+
*
|
|
328
|
+
* const options = {
|
|
329
|
+
* pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
|
|
330
|
+
* passphrase: 'sample',
|
|
331
|
+
* };
|
|
332
|
+
*
|
|
333
|
+
* https.createServer(options, (req, res) => {
|
|
334
|
+
* res.writeHead(200);
|
|
335
|
+
* res.end('hello world\n');
|
|
336
|
+
* }).listen(8000);
|
|
337
|
+
* ```
|
|
338
|
+
* @since v0.3.4
|
|
339
|
+
* @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
|
|
340
|
+
* @param requestListener A listener to be added to the `'request'` event.
|
|
341
|
+
*/
|
|
342
|
+
function createServer<
|
|
343
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
344
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
345
|
+
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
|
|
346
|
+
function createServer<
|
|
347
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
348
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
349
|
+
>(
|
|
350
|
+
options: ServerOptions<Request, Response>,
|
|
351
|
+
requestListener?: http.RequestListener<Request, Response>,
|
|
352
|
+
): Server<Request, Response>;
|
|
353
|
+
/**
|
|
354
|
+
* Makes a request to a secure web server.
|
|
355
|
+
*
|
|
356
|
+
* The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
|
357
|
+
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
|
358
|
+
*
|
|
359
|
+
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
360
|
+
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
361
|
+
*
|
|
362
|
+
* `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
|
|
363
|
+
* upload a file with a POST request, then write to the `ClientRequest` object.
|
|
364
|
+
*
|
|
365
|
+
* ```js
|
|
366
|
+
* import https from 'node:https';
|
|
367
|
+
*
|
|
368
|
+
* const options = {
|
|
369
|
+
* hostname: 'encrypted.google.com',
|
|
370
|
+
* port: 443,
|
|
371
|
+
* path: '/',
|
|
372
|
+
* method: 'GET',
|
|
373
|
+
* };
|
|
374
|
+
*
|
|
375
|
+
* const req = https.request(options, (res) => {
|
|
376
|
+
* console.log('statusCode:', res.statusCode);
|
|
377
|
+
* console.log('headers:', res.headers);
|
|
378
|
+
*
|
|
379
|
+
* res.on('data', (d) => {
|
|
380
|
+
* process.stdout.write(d);
|
|
381
|
+
* });
|
|
382
|
+
* });
|
|
383
|
+
*
|
|
384
|
+
* req.on('error', (e) => {
|
|
385
|
+
* console.error(e);
|
|
386
|
+
* });
|
|
387
|
+
* req.end();
|
|
388
|
+
* ```
|
|
389
|
+
*
|
|
390
|
+
* Example using options from `tls.connect()`:
|
|
391
|
+
*
|
|
392
|
+
* ```js
|
|
393
|
+
* const options = {
|
|
394
|
+
* hostname: 'encrypted.google.com',
|
|
395
|
+
* port: 443,
|
|
396
|
+
* path: '/',
|
|
397
|
+
* method: 'GET',
|
|
398
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
399
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
400
|
+
* };
|
|
401
|
+
* options.agent = new https.Agent(options);
|
|
402
|
+
*
|
|
403
|
+
* const req = https.request(options, (res) => {
|
|
404
|
+
* // ...
|
|
405
|
+
* });
|
|
406
|
+
* ```
|
|
407
|
+
*
|
|
408
|
+
* Alternatively, opt out of connection pooling by not using an `Agent`.
|
|
409
|
+
*
|
|
410
|
+
* ```js
|
|
411
|
+
* const options = {
|
|
412
|
+
* hostname: 'encrypted.google.com',
|
|
413
|
+
* port: 443,
|
|
414
|
+
* path: '/',
|
|
415
|
+
* method: 'GET',
|
|
416
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
417
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
418
|
+
* agent: false,
|
|
419
|
+
* };
|
|
420
|
+
*
|
|
421
|
+
* const req = https.request(options, (res) => {
|
|
422
|
+
* // ...
|
|
423
|
+
* });
|
|
424
|
+
* ```
|
|
425
|
+
*
|
|
426
|
+
* Example using a `URL` as `options`:
|
|
427
|
+
*
|
|
428
|
+
* ```js
|
|
429
|
+
* const options = new URL('https://abc:xyz@example.com');
|
|
430
|
+
*
|
|
431
|
+
* const req = https.request(options, (res) => {
|
|
432
|
+
* // ...
|
|
433
|
+
* });
|
|
434
|
+
* ```
|
|
435
|
+
*
|
|
436
|
+
* Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
|
|
437
|
+
*
|
|
438
|
+
* ```js
|
|
439
|
+
* import tls from 'node:tls';
|
|
440
|
+
* import https from 'node:https';
|
|
441
|
+
* import crypto from 'node:crypto';
|
|
442
|
+
*
|
|
443
|
+
* function sha256(s) {
|
|
444
|
+
* return crypto.createHash('sha256').update(s).digest('base64');
|
|
445
|
+
* }
|
|
446
|
+
* const options = {
|
|
447
|
+
* hostname: 'github.com',
|
|
448
|
+
* port: 443,
|
|
449
|
+
* path: '/',
|
|
450
|
+
* method: 'GET',
|
|
451
|
+
* checkServerIdentity: function(host, cert) {
|
|
452
|
+
* // Make sure the certificate is issued to the host we are connected to
|
|
453
|
+
* const err = tls.checkServerIdentity(host, cert);
|
|
454
|
+
* if (err) {
|
|
455
|
+
* return err;
|
|
456
|
+
* }
|
|
457
|
+
*
|
|
458
|
+
* // Pin the public key, similar to HPKP pin-sha256 pinning
|
|
459
|
+
* const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
|
|
460
|
+
* if (sha256(cert.pubkey) !== pubkey256) {
|
|
461
|
+
* const msg = 'Certificate verification error: ' +
|
|
462
|
+
* `The public key of '${cert.subject.CN}' ` +
|
|
463
|
+
* 'does not match our pinned fingerprint';
|
|
464
|
+
* return new Error(msg);
|
|
465
|
+
* }
|
|
466
|
+
*
|
|
467
|
+
* // Pin the exact certificate, rather than the pub key
|
|
468
|
+
* const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
|
|
469
|
+
* 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
|
|
470
|
+
* if (cert.fingerprint256 !== cert256) {
|
|
471
|
+
* const msg = 'Certificate verification error: ' +
|
|
472
|
+
* `The certificate of '${cert.subject.CN}' ` +
|
|
473
|
+
* 'does not match our pinned fingerprint';
|
|
474
|
+
* return new Error(msg);
|
|
475
|
+
* }
|
|
476
|
+
*
|
|
477
|
+
* // This loop is informational only.
|
|
478
|
+
* // Print the certificate and public key fingerprints of all certs in the
|
|
479
|
+
* // chain. Its common to pin the public key of the issuer on the public
|
|
480
|
+
* // internet, while pinning the public key of the service in sensitive
|
|
481
|
+
* // environments.
|
|
482
|
+
* do {
|
|
483
|
+
* console.log('Subject Common Name:', cert.subject.CN);
|
|
484
|
+
* console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
|
|
485
|
+
*
|
|
486
|
+
* hash = crypto.createHash('sha256');
|
|
487
|
+
* console.log(' Public key ping-sha256:', sha256(cert.pubkey));
|
|
488
|
+
*
|
|
489
|
+
* lastprint256 = cert.fingerprint256;
|
|
490
|
+
* cert = cert.issuerCertificate;
|
|
491
|
+
* } while (cert.fingerprint256 !== lastprint256);
|
|
492
|
+
*
|
|
493
|
+
* },
|
|
494
|
+
* };
|
|
495
|
+
*
|
|
496
|
+
* options.agent = new https.Agent(options);
|
|
497
|
+
* const req = https.request(options, (res) => {
|
|
498
|
+
* console.log('All OK. Server matched our pinned cert or public key');
|
|
499
|
+
* console.log('statusCode:', res.statusCode);
|
|
500
|
+
* // Print the HPKP values
|
|
501
|
+
* console.log('headers:', res.headers['public-key-pins']);
|
|
502
|
+
*
|
|
503
|
+
* res.on('data', (d) => {});
|
|
504
|
+
* });
|
|
505
|
+
*
|
|
506
|
+
* req.on('error', (e) => {
|
|
507
|
+
* console.error(e.message);
|
|
508
|
+
* });
|
|
509
|
+
* req.end();
|
|
510
|
+
* ```
|
|
511
|
+
*
|
|
512
|
+
* Outputs for example:
|
|
513
|
+
*
|
|
514
|
+
* ```text
|
|
515
|
+
* Subject Common Name: github.com
|
|
516
|
+
* Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
|
|
517
|
+
* Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
|
|
518
|
+
* Subject Common Name: DigiCert SHA2 Extended Validation Server CA
|
|
519
|
+
* Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
|
|
520
|
+
* Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
|
|
521
|
+
* Subject Common Name: DigiCert High Assurance EV Root CA
|
|
522
|
+
* Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
|
|
523
|
+
* Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
|
|
524
|
+
* All OK. Server matched our pinned cert or public key
|
|
525
|
+
* statusCode: 200
|
|
526
|
+
* headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
|
|
527
|
+
* pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
|
|
528
|
+
* pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
|
|
529
|
+
* ```
|
|
530
|
+
* @since v0.3.6
|
|
531
|
+
* @param options Accepts all `options` from `request`, with some differences in default values:
|
|
532
|
+
*/
|
|
533
|
+
function request(
|
|
534
|
+
options: RequestOptions | string | URL,
|
|
535
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
536
|
+
): http.ClientRequest;
|
|
537
|
+
function request(
|
|
538
|
+
url: string | URL,
|
|
539
|
+
options: RequestOptions,
|
|
540
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
541
|
+
): http.ClientRequest;
|
|
542
|
+
/**
|
|
543
|
+
* Like `http.get()` but for HTTPS.
|
|
544
|
+
*
|
|
545
|
+
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
546
|
+
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
547
|
+
*
|
|
548
|
+
* ```js
|
|
549
|
+
* import https from 'node:https';
|
|
550
|
+
*
|
|
551
|
+
* https.get('https://encrypted.google.com/', (res) => {
|
|
552
|
+
* console.log('statusCode:', res.statusCode);
|
|
553
|
+
* console.log('headers:', res.headers);
|
|
554
|
+
*
|
|
555
|
+
* res.on('data', (d) => {
|
|
556
|
+
* process.stdout.write(d);
|
|
557
|
+
* });
|
|
558
|
+
*
|
|
559
|
+
* }).on('error', (e) => {
|
|
560
|
+
* console.error(e);
|
|
561
|
+
* });
|
|
562
|
+
* ```
|
|
563
|
+
* @since v0.3.6
|
|
564
|
+
* @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
|
|
565
|
+
*/
|
|
566
|
+
function get(
|
|
567
|
+
options: RequestOptions | string | URL,
|
|
568
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
569
|
+
): http.ClientRequest;
|
|
570
|
+
function get(
|
|
571
|
+
url: string | URL,
|
|
572
|
+
options: RequestOptions,
|
|
573
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
574
|
+
): http.ClientRequest;
|
|
575
|
+
let globalAgent: Agent;
|
|
576
|
+
}
|
|
577
|
+
declare module "node:https" {
|
|
578
|
+
export * from "https";
|
|
579
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* License for programmatically and manually incorporated
|
|
3
|
+
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
|
4
|
+
*
|
|
5
|
+
* Copyright Node.js contributors. All rights reserved.
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to
|
|
8
|
+
* deal in the Software without restriction, including without limitation the
|
|
9
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
* IN THE SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.7+.
|
|
26
|
+
|
|
27
|
+
// Reference required TypeScript libs:
|
|
28
|
+
/// <reference lib="es2020" />
|
|
29
|
+
|
|
30
|
+
// TypeScript backwards-compatibility definitions:
|
|
31
|
+
/// <reference path="compatibility/index.d.ts" />
|
|
32
|
+
|
|
33
|
+
// Definitions specific to TypeScript 5.7+:
|
|
34
|
+
/// <reference path="globals.typedarray.d.ts" />
|
|
35
|
+
/// <reference path="buffer.buffer.d.ts" />
|
|
36
|
+
|
|
37
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
38
|
+
/// <reference path="globals.d.ts" />
|
|
39
|
+
/// <reference path="web-globals/abortcontroller.d.ts" />
|
|
40
|
+
/// <reference path="web-globals/domexception.d.ts" />
|
|
41
|
+
/// <reference path="web-globals/events.d.ts" />
|
|
42
|
+
/// <reference path="web-globals/fetch.d.ts" />
|
|
43
|
+
/// <reference path="web-globals/navigator.d.ts" />
|
|
44
|
+
/// <reference path="web-globals/storage.d.ts" />
|
|
45
|
+
/// <reference path="assert.d.ts" />
|
|
46
|
+
/// <reference path="assert/strict.d.ts" />
|
|
47
|
+
/// <reference path="async_hooks.d.ts" />
|
|
48
|
+
/// <reference path="buffer.d.ts" />
|
|
49
|
+
/// <reference path="child_process.d.ts" />
|
|
50
|
+
/// <reference path="cluster.d.ts" />
|
|
51
|
+
/// <reference path="console.d.ts" />
|
|
52
|
+
/// <reference path="constants.d.ts" />
|
|
53
|
+
/// <reference path="crypto.d.ts" />
|
|
54
|
+
/// <reference path="dgram.d.ts" />
|
|
55
|
+
/// <reference path="diagnostics_channel.d.ts" />
|
|
56
|
+
/// <reference path="dns.d.ts" />
|
|
57
|
+
/// <reference path="dns/promises.d.ts" />
|
|
58
|
+
/// <reference path="domain.d.ts" />
|
|
59
|
+
/// <reference path="events.d.ts" />
|
|
60
|
+
/// <reference path="fs.d.ts" />
|
|
61
|
+
/// <reference path="fs/promises.d.ts" />
|
|
62
|
+
/// <reference path="http.d.ts" />
|
|
63
|
+
/// <reference path="http2.d.ts" />
|
|
64
|
+
/// <reference path="https.d.ts" />
|
|
65
|
+
/// <reference path="inspector.d.ts" />
|
|
66
|
+
/// <reference path="inspector.generated.d.ts" />
|
|
67
|
+
/// <reference path="module.d.ts" />
|
|
68
|
+
/// <reference path="net.d.ts" />
|
|
69
|
+
/// <reference path="os.d.ts" />
|
|
70
|
+
/// <reference path="path.d.ts" />
|
|
71
|
+
/// <reference path="perf_hooks.d.ts" />
|
|
72
|
+
/// <reference path="process.d.ts" />
|
|
73
|
+
/// <reference path="punycode.d.ts" />
|
|
74
|
+
/// <reference path="querystring.d.ts" />
|
|
75
|
+
/// <reference path="readline.d.ts" />
|
|
76
|
+
/// <reference path="readline/promises.d.ts" />
|
|
77
|
+
/// <reference path="repl.d.ts" />
|
|
78
|
+
/// <reference path="sea.d.ts" />
|
|
79
|
+
/// <reference path="sqlite.d.ts" />
|
|
80
|
+
/// <reference path="stream.d.ts" />
|
|
81
|
+
/// <reference path="stream/promises.d.ts" />
|
|
82
|
+
/// <reference path="stream/consumers.d.ts" />
|
|
83
|
+
/// <reference path="stream/web.d.ts" />
|
|
84
|
+
/// <reference path="string_decoder.d.ts" />
|
|
85
|
+
/// <reference path="test.d.ts" />
|
|
86
|
+
/// <reference path="timers.d.ts" />
|
|
87
|
+
/// <reference path="timers/promises.d.ts" />
|
|
88
|
+
/// <reference path="tls.d.ts" />
|
|
89
|
+
/// <reference path="trace_events.d.ts" />
|
|
90
|
+
/// <reference path="tty.d.ts" />
|
|
91
|
+
/// <reference path="url.d.ts" />
|
|
92
|
+
/// <reference path="util.d.ts" />
|
|
93
|
+
/// <reference path="v8.d.ts" />
|
|
94
|
+
/// <reference path="vm.d.ts" />
|
|
95
|
+
/// <reference path="wasi.d.ts" />
|
|
96
|
+
/// <reference path="worker_threads.d.ts" />
|
|
97
|
+
/// <reference path="zlib.d.ts" />
|