@next-vibe/checker 1.0.11 → 1.0.12
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/bin/vibe-runtime.js +10 -19
- package/.dist/bin/vibe-runtime.js.map +3 -3
- package/check.config.ts +4 -4
- package/package.json +2 -9
- package/src/app/api/[locale]/LICENSE +674 -0
- package/src/app/api/[locale]/i18n/de/index.ts +13 -0
- package/src/app/api/[locale]/i18n/en/index.ts +12 -0
- package/src/app/api/[locale]/i18n/pl/index.ts +11 -0
- package/src/app/api/[locale]/shared/i18n/de/index.ts +85 -0
- package/src/app/api/[locale]/shared/i18n/en/index.ts +83 -0
- package/src/app/api/[locale]/shared/i18n/pl/index.ts +85 -0
- package/src/app/api/[locale]/shared/stats-filtering.ts +202 -0
- package/src/app/api/[locale]/shared/types/common.schema.ts +55 -0
- package/src/app/api/[locale]/shared/types/response.schema.ts +372 -0
- package/src/app/api/[locale]/shared/types/stats-filtering.schema.ts +375 -0
- package/src/app/api/[locale]/shared/types/utils.ts +190 -0
- package/src/app/api/[locale]/shared/utils/base64.ts +49 -0
- package/src/app/api/[locale]/shared/utils/env-util.ts +40 -0
- package/src/app/api/[locale]/shared/utils/i18n/de/index.ts +21 -0
- package/src/app/api/[locale]/shared/utils/i18n/en/index.ts +19 -0
- package/src/app/api/[locale]/shared/utils/i18n/pl/index.ts +21 -0
- package/src/app/api/[locale]/shared/utils/index.ts +11 -0
- package/src/app/api/[locale]/shared/utils/object-path.ts +41 -0
- package/src/app/api/[locale]/shared/utils/object.test.ts +82 -0
- package/src/app/api/[locale]/shared/utils/object.ts +75 -0
- package/src/app/api/[locale]/shared/utils/parse-error.ts +134 -0
- package/src/app/api/[locale]/shared/utils/parse-json.ts +70 -0
- package/src/app/api/[locale]/shared/utils/time.ts +53 -0
- package/src/app/api/[locale]/shared/utils/validation.ts +127 -0
- package/src/app/api/[locale]/shared/utils/zod-required-fields.ts +116 -0
- package/src/app/api/[locale]/system/builder/definition.ts +1942 -0
- package/src/app/api/[locale]/system/builder/enum.ts +77 -0
- package/src/app/api/[locale]/system/builder/i18n/de/index.ts +677 -0
- package/src/app/api/[locale]/system/builder/i18n/en/index.ts +665 -0
- package/src/app/api/[locale]/system/builder/i18n/pl/index.ts +668 -0
- package/src/app/api/[locale]/system/builder/repository/build-executor.test.ts +182 -0
- package/src/app/api/[locale]/system/builder/repository/build-executor.ts +583 -0
- package/src/app/api/[locale]/system/builder/repository/bun-compiler.ts +261 -0
- package/src/app/api/[locale]/system/builder/repository/bundle-analyzer.ts +197 -0
- package/src/app/api/[locale]/system/builder/repository/config-loader.ts +159 -0
- package/src/app/api/[locale]/system/builder/repository/config-validator.ts +97 -0
- package/src/app/api/[locale]/system/builder/repository/constants.ts +125 -0
- package/src/app/api/[locale]/system/builder/repository/error-suggester.ts +75 -0
- package/src/app/api/[locale]/system/builder/repository/file-copier.ts +98 -0
- package/src/app/api/[locale]/system/builder/repository/folder-cleaner.ts +80 -0
- package/src/app/api/[locale]/system/builder/repository/index.ts +2 -0
- package/src/app/api/[locale]/system/builder/repository/npm-package-generator.ts +146 -0
- package/src/app/api/[locale]/system/builder/repository/output-formatter.ts +104 -0
- package/src/app/api/[locale]/system/builder/repository/profile-service.ts +79 -0
- package/src/app/api/[locale]/system/builder/repository/report-generator.ts +125 -0
- package/src/app/api/[locale]/system/builder/repository/vite-compiler.ts +291 -0
- package/src/app/api/[locale]/system/builder/route.ts +21 -0
- package/src/app/api/[locale]/system/builder/test-files/file1.ts +2 -0
- package/src/app/api/[locale]/system/builder/test-files/file2.tsx +10 -0
- package/src/app/api/[locale]/system/builder/test-files/file3.tsx +16 -0
- package/src/app/api/[locale]/system/builder/test-files/folderToCopy/fileInFolder.ts +2 -0
- package/src/app/api/[locale]/system/builder/test-files/test-config.ts +38 -0
- package/src/app/api/[locale]/system/builder/test-files/test-delete-config.ts +8 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/package.json +24 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/constants.ts +6 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/greet.ts +18 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/index.ts +7 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/utils/calculate.ts +27 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/tsconfig.json +19 -0
- package/src/app/api/[locale]/system/builder/test-files/test-project/tsconfig.tsbuildinfo +1 -0
- package/src/app/api/[locale]/system/builder/test-files/test3.css +1 -0
- package/src/app/api/[locale]/system/check/config/repository.ts +819 -0
- package/src/app/api/[locale]/system/check/config/shared.ts +396 -0
- package/src/app/api/[locale]/system/check/config/types.ts +616 -0
- package/src/app/api/[locale]/system/check/config/utils.ts +171 -0
- package/src/app/api/[locale]/system/check/i18n/de/index.ts +15 -0
- package/src/app/api/[locale]/system/check/i18n/en/index.ts +14 -0
- package/src/app/api/[locale]/system/check/i18n/pl/index.ts +15 -0
- package/src/app/api/[locale]/system/check/lint/definition.ts +414 -0
- package/src/app/api/[locale]/system/check/lint/enum.ts +37 -0
- package/src/app/api/[locale]/system/check/lint/i18n/de/index.ts +164 -0
- package/src/app/api/[locale]/system/check/lint/i18n/en/index.ts +162 -0
- package/src/app/api/[locale]/system/check/lint/i18n/pl/index.ts +164 -0
- package/src/app/api/[locale]/system/check/lint/repository.ts +753 -0
- package/src/app/api/[locale]/system/check/lint/route.ts +21 -0
- package/src/app/api/[locale]/system/check/oxlint/README.md +190 -0
- package/src/app/api/[locale]/system/check/oxlint/definition.ts +414 -0
- package/src/app/api/[locale]/system/check/oxlint/enum.ts +37 -0
- package/src/app/api/[locale]/system/check/oxlint/i18n/de/index.ts +171 -0
- package/src/app/api/[locale]/system/check/oxlint/i18n/en/index.ts +168 -0
- package/src/app/api/[locale]/system/check/oxlint/i18n/pl/index.ts +172 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/i18n/src/index.ts +372 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/jsx-capitalization/README.md +246 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/jsx-capitalization/src/index.ts +583 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/restricted-syntax/src/index.ts +500 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/restricted-syntax/test.tsx +74 -0
- package/src/app/api/[locale]/system/check/oxlint/plugins/shared/config-loader.ts +305 -0
- package/src/app/api/[locale]/system/check/oxlint/repository.ts +959 -0
- package/src/app/api/[locale]/system/check/oxlint/route.ts +21 -0
- package/src/app/api/[locale]/system/check/oxlint/types.ts +193 -0
- package/src/app/api/[locale]/system/check/test-project/bun.lock +449 -0
- package/src/app/api/[locale]/system/check/test-project/check.config.ts +989 -0
- package/src/app/api/[locale]/system/check/test-project/package.json +20 -0
- package/src/app/api/[locale]/system/check/test-project/src/constants.ts +6 -0
- package/src/app/api/[locale]/system/check/test-project/src/greet.ts +18 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/a11y-issues.tsx +107 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/eslint-issues.tsx +37 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/general-issues.ts +137 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/i18n-issues.tsx +129 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/jsx-capitalization-issues.tsx +131 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/nextjs-issues.tsx +95 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/promise-issues.ts +76 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/react-issues.tsx +95 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/restricted-syntax-issues.tsx +61 -0
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/typescript-issues.ts +80 -0
- package/src/app/api/[locale]/system/check/test-project/src/utils/calculate.ts +27 -0
- package/src/app/api/[locale]/system/check/test-project/tsconfig.json +38 -0
- package/src/app/api/[locale]/system/check/test-project/tsconfig.tsbuildinfo +1 -0
- package/src/app/api/[locale]/system/check/typecheck/definition.ts +369 -0
- package/src/app/api/[locale]/system/check/typecheck/enum.ts +37 -0
- package/src/app/api/[locale]/system/check/typecheck/i18n/de/index.ts +159 -0
- package/src/app/api/[locale]/system/check/typecheck/i18n/en/index.ts +150 -0
- package/src/app/api/[locale]/system/check/typecheck/i18n/pl/index.ts +155 -0
- package/src/app/api/[locale]/system/check/typecheck/repository.ts +919 -0
- package/src/app/api/[locale]/system/check/typecheck/route.ts +22 -0
- package/src/app/api/[locale]/system/check/typecheck/utils.ts +168 -0
- package/src/app/api/[locale]/system/check/vibe-check/definition.ts +568 -0
- package/src/app/api/[locale]/system/check/vibe-check/enum.ts +69 -0
- package/src/app/api/[locale]/system/check/vibe-check/i18n/de/index.ts +192 -0
- package/src/app/api/[locale]/system/check/vibe-check/i18n/en/index.ts +189 -0
- package/src/app/api/[locale]/system/check/vibe-check/i18n/pl/index.ts +192 -0
- package/src/app/api/[locale]/system/check/vibe-check/repository.ts +545 -0
- package/src/app/api/[locale]/system/check/vibe-check/route.test.ts +1142 -0
- package/src/app/api/[locale]/system/check/vibe-check/route.ts +21 -0
- package/src/app/api/[locale]/system/generated/endpoint.ts +313 -0
- package/src/app/api/[locale]/system/generated/endpoints.ts +156 -0
- package/src/app/api/[locale]/system/generated/route-handlers.ts +224 -0
- package/src/app/api/[locale]/system/generators/endpoint/definition.ts +193 -0
- package/src/app/api/[locale]/system/generators/endpoint/i18n/de/index.ts +48 -0
- package/src/app/api/[locale]/system/generators/endpoint/i18n/en/index.ts +48 -0
- package/src/app/api/[locale]/system/generators/endpoint/i18n/pl/index.ts +50 -0
- package/src/app/api/[locale]/system/generators/endpoint/repository.ts +291 -0
- package/src/app/api/[locale]/system/generators/endpoint/route.ts +21 -0
- package/src/app/api/[locale]/system/generators/endpoints/definition.ts +246 -0
- package/src/app/api/[locale]/system/generators/endpoints/i18n/de/index.ts +54 -0
- package/src/app/api/[locale]/system/generators/endpoints/i18n/en/index.ts +52 -0
- package/src/app/api/[locale]/system/generators/endpoints/i18n/pl/index.ts +54 -0
- package/src/app/api/[locale]/system/generators/endpoints/options-repository.ts +463 -0
- package/src/app/api/[locale]/system/generators/endpoints/repository.ts +383 -0
- package/src/app/api/[locale]/system/generators/endpoints/route.ts +18 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/definition.ts +194 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/de/index.ts +71 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/en/index.ts +69 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/pl/index.ts +71 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/repository.ts +294 -0
- package/src/app/api/[locale]/system/generators/endpoints-index/route.ts +18 -0
- package/src/app/api/[locale]/system/generators/generate-all/definition.ts +355 -0
- package/src/app/api/[locale]/system/generators/generate-all/i18n/de/index.ts +96 -0
- package/src/app/api/[locale]/system/generators/generate-all/i18n/en/index.ts +94 -0
- package/src/app/api/[locale]/system/generators/generate-all/i18n/pl/index.ts +96 -0
- package/src/app/api/[locale]/system/generators/generate-all/repository.ts +257 -0
- package/src/app/api/[locale]/system/generators/generate-all/route.ts +20 -0
- package/src/app/api/[locale]/system/generators/i18n/de/index.ts +15 -0
- package/src/app/api/[locale]/system/generators/i18n/en/index.ts +14 -0
- package/src/app/api/[locale]/system/generators/i18n/pl/index.ts +15 -0
- package/src/app/api/[locale]/system/generators/route-handlers/definition.ts +198 -0
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/de/index.ts +48 -0
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/en/index.ts +48 -0
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/pl/index.ts +50 -0
- package/src/app/api/[locale]/system/generators/route-handlers/repository.ts +277 -0
- package/src/app/api/[locale]/system/generators/route-handlers/route.ts +17 -0
- package/src/app/api/[locale]/system/generators/shared/utils.ts +233 -0
- package/src/app/api/[locale]/system/help/definition.ts +445 -0
- package/src/app/api/[locale]/system/help/i18n/de/index.ts +267 -0
- package/src/app/api/[locale]/system/help/i18n/en/index.ts +262 -0
- package/src/app/api/[locale]/system/help/i18n/pl/index.ts +265 -0
- package/src/app/api/[locale]/system/help/interactive/definition.ts +125 -0
- package/src/app/api/[locale]/system/help/interactive/i18n/de/index.ts +22 -0
- package/src/app/api/[locale]/system/help/interactive/i18n/en/index.ts +19 -0
- package/src/app/api/[locale]/system/help/interactive/i18n/pl/index.ts +22 -0
- package/src/app/api/[locale]/system/help/interactive/repository.ts +1025 -0
- package/src/app/api/[locale]/system/help/interactive/route.ts +53 -0
- package/src/app/api/[locale]/system/help/list/definition.ts +372 -0
- package/src/app/api/[locale]/system/help/list/repository.ts +110 -0
- package/src/app/api/[locale]/system/help/list/route.ts +21 -0
- package/src/app/api/[locale]/system/help/repository.ts +212 -0
- package/src/app/api/[locale]/system/help/route.ts +16 -0
- package/src/app/api/[locale]/system/i18n/de/index.ts +68 -0
- package/src/app/api/[locale]/system/i18n/en/index.ts +65 -0
- package/src/app/api/[locale]/system/i18n/pl/index.ts +66 -0
- package/src/app/api/[locale]/system/release-tool/definition.ts +3104 -0
- package/src/app/api/[locale]/system/release-tool/i18n/de/index.ts +813 -0
- package/src/app/api/[locale]/system/release-tool/i18n/en/index.ts +797 -0
- package/src/app/api/[locale]/system/release-tool/i18n/pl/index.ts +810 -0
- package/src/app/api/[locale]/system/release-tool/repository/asset-zipper.ts +128 -0
- package/src/app/api/[locale]/system/release-tool/repository/changelog-generator.ts +212 -0
- package/src/app/api/[locale]/system/release-tool/repository/ci-detector.ts +566 -0
- package/src/app/api/[locale]/system/release-tool/repository/config.ts +113 -0
- package/src/app/api/[locale]/system/release-tool/repository/constants.ts +407 -0
- package/src/app/api/[locale]/system/release-tool/repository/dependency-manager.ts +527 -0
- package/src/app/api/[locale]/system/release-tool/repository/git-service.ts +403 -0
- package/src/app/api/[locale]/system/release-tool/repository/hook-runner.ts +100 -0
- package/src/app/api/[locale]/system/release-tool/repository/index.ts +1 -0
- package/src/app/api/[locale]/system/release-tool/repository/notification-service.ts +638 -0
- package/src/app/api/[locale]/system/release-tool/repository/package-service.ts +169 -0
- package/src/app/api/[locale]/system/release-tool/repository/publisher.ts +253 -0
- package/src/app/api/[locale]/system/release-tool/repository/quality-runner.ts +428 -0
- package/src/app/api/[locale]/system/release-tool/repository/release-creator.ts +293 -0
- package/src/app/api/[locale]/system/release-tool/repository/release-executor.ts +1198 -0
- package/src/app/api/[locale]/system/release-tool/repository/snyk-service.ts +136 -0
- package/src/app/api/[locale]/system/release-tool/repository/utils.ts +642 -0
- package/src/app/api/[locale]/system/release-tool/repository/validation.ts +288 -0
- package/src/app/api/[locale]/system/release-tool/repository/version-service.ts +297 -0
- package/src/app/api/[locale]/system/release-tool/route.ts +21 -0
- package/src/app/api/[locale]/system/unified-interface/README.md +328 -0
- package/src/app/api/[locale]/system/unified-interface/cli/README.md +349 -0
- package/src/app/api/[locale]/system/unified-interface/cli/auth/cli-handler.ts +95 -0
- package/src/app/api/[locale]/system/unified-interface/cli/auth/cli-user.ts +146 -0
- package/src/app/api/[locale]/system/unified-interface/cli/auth/session-file.ts +266 -0
- package/src/app/api/[locale]/system/unified-interface/cli/env.ts +26 -0
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/de/index.ts +157 -0
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/en/index.ts +155 -0
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/pl/index.ts +158 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/debug.ts +595 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/entry-point.ts +129 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/environment.ts +155 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/execution-errors.ts +452 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/parsing.ts +297 -0
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/route-executor.ts +859 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/de/index.ts +12 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/en/index.ts +11 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/pl/index.ts +12 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/definition.ts +262 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/de/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/en/index.ts +52 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/pl/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/repository.ts +421 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/route.ts +25 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/definition.ts +181 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/de/index.ts +61 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/en/index.ts +59 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/pl/index.ts +61 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/repository.ts +195 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/route.ts +22 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/definition.ts +188 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/de/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/en/index.ts +52 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/pl/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/repository.ts +209 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/route.ts +24 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/definition.ts +200 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/de/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/en/index.ts +52 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/pl/index.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/repository.ts +113 -0
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/route.ts +22 -0
- package/src/app/api/[locale]/system/unified-interface/cli/vibe-runtime.ts +304 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/base-renderer.ts +270 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/registry.ts +309 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/types.ts +126 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/de/index.ts +67 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/en/index.ts +65 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/pl/index.ts +67 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/accordion.ts +74 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/avatar.ts +39 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/badge.ts +54 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-output.ts +298 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-files.ts +89 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-list.ts +298 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-summary.ts +96 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/container.ts +186 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-card.ts +65 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-cards.ts +570 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-list.ts +80 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-table.ts +385 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/editable-text.ts +99 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/empty-state.ts +55 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/errors.ts +67 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/grouped-list.ts +729 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link-card.ts +87 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link-list.ts +112 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link.ts +59 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/loading.ts +50 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/markdown.ts +131 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/metric.ts +291 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/section.ts +120 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/stats-grid.ts +149 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/tabs.ts +61 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/text.ts +78 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/title.ts +42 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/renderers/response-renderer.ts +418 -0
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/renderers/schema-handler.ts +534 -0
- package/src/app/api/[locale]/system/unified-interface/i18n/de/index.ts +42 -0
- package/src/app/api/[locale]/system/unified-interface/i18n/en/index.ts +40 -0
- package/src/app/api/[locale]/system/unified-interface/i18n/pl/index.ts +43 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/README.md +114 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/converter.ts +146 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/de/index.ts +182 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/en/index.ts +179 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/pl/index.ts +181 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/registry.ts +343 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/definition.ts +147 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/repository.ts +38 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/route.ts +14 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/server/protocol-handler.ts +309 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/server/server.ts +154 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/server/stdio-transport.ts +193 -0
- package/src/app/api/[locale]/system/unified-interface/mcp/types.ts +246 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/create-form.ts +1510 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/create.ts +581 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/endpoint-to-metadata.ts +52 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/loader.ts +152 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definitions/registry.ts +265 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/permissions/registry.ts +680 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/executor.ts +220 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/handler.ts +325 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/multi.ts +184 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/request-validator.ts +201 -0
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/single.ts +58 -0
- package/src/app/api/[locale]/system/unified-interface/shared/env/define-env-client.ts +49 -0
- package/src/app/api/[locale]/system/unified-interface/shared/env/define-env.ts +47 -0
- package/src/app/api/[locale]/system/unified-interface/shared/env/validation-logger.ts +58 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field/enum.ts +110 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field/specialized.ts +339 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field/utils.test.ts +408 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field/utils.ts +1349 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field-config/endpoint-field-types.ts +107 -0
- package/src/app/api/[locale]/system/unified-interface/shared/field-config/field-config-types.ts +268 -0
- package/src/app/api/[locale]/system/unified-interface/shared/logger/colors.ts +114 -0
- package/src/app/api/[locale]/system/unified-interface/shared/logger/endpoint.ts +169 -0
- package/src/app/api/[locale]/system/unified-interface/shared/logger/file-logger.ts +88 -0
- package/src/app/api/[locale]/system/unified-interface/shared/logger/formatters.ts +177 -0
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/auth/base-auth-handler.ts +82 -0
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/auth/factory.ts +33 -0
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/server-only.ts +4 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/actions.ts +289 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/endpoint.ts +1167 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/enums.ts +382 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/platform.ts +34 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/types.ts +80 -0
- package/src/app/api/[locale]/system/unified-interface/shared/types/ui-config.ts +76 -0
- package/src/app/api/[locale]/system/unified-interface/shared/utils/error-types.ts +27 -0
- package/src/app/api/[locale]/system/unified-interface/shared/utils/path.ts +63 -0
- package/src/app/api/[locale]/system/unified-interface/shared/utils/scanner.ts +241 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/actions.ts +256 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/configs.ts +1158 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/helpers.ts +80 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/accordion.ts +82 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/avatar.ts +75 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/badge.ts +89 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/code-output.ts +302 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/code-quality-list.ts +202 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/container.ts +129 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-card.ts +81 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-cards.ts +258 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-list.ts +123 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-table.ts +387 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/editable-text.ts +89 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/empty-state.ts +78 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/errors.ts +93 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/grouped-list.ts +448 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/index.ts +38 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link-card.ts +130 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link-list.ts +127 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link.ts +68 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/loading.ts +81 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/markdown.ts +176 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/metric-card.ts +241 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/section.ts +90 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/stats-grid.ts +71 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/tabs.ts +80 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/text.ts +105 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/title.ts +72 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/types.ts +240 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/field-helpers.ts +137 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/formatting.ts +437 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/url.ts +40 -0
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/widget-helpers.ts +465 -0
- package/src/app/api/[locale]/user/auth/enum.ts +16 -0
- package/src/app/api/[locale]/user/auth/i18n/de/index.ts +227 -0
- package/src/app/api/[locale]/user/auth/i18n/en/index.ts +205 -0
- package/src/app/api/[locale]/user/auth/i18n/pl/index.ts +219 -0
- package/src/app/api/[locale]/user/auth/types.ts +110 -0
- package/src/app/api/[locale]/user/enum.ts +64 -0
- package/src/app/api/[locale]/user/private/i18n/de/index.ts +3 -0
- package/src/app/api/[locale]/user/private/i18n/en/index.ts +1 -0
- package/src/app/api/[locale]/user/private/i18n/pl/index.ts +3 -0
- package/src/app/api/[locale]/user/types.ts +118 -0
- package/src/app/api/[locale]/user/user-roles/enum.ts +112 -0
- package/src/app/api/[locale]/user/user-roles/i18n/de/index.ts +85 -0
- package/src/app/api/[locale]/user/user-roles/i18n/en/index.ts +83 -0
- package/src/app/api/[locale]/user/user-roles/i18n/pl/index.ts +86 -0
- package/src/app/api/[locale]/user/user-roles/types.ts +34 -0
- package/src/app/api/i18n/de/index.ts +6 -0
- package/src/app/api/i18n/en/index.ts +5 -0
- package/src/app/api/i18n/pl/index.ts +5 -0
- package/src/app/i18n/de/index.ts +6 -0
- package/src/app/i18n/en/index.ts +5 -0
- package/src/app/i18n/pl/index.ts +5 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
export const translations = {
|
|
2
|
+
authClient: {
|
|
3
|
+
errors: {
|
|
4
|
+
status_save_failed: "Failed to save authentication status",
|
|
5
|
+
status_remove_failed: "Failed to remove authentication status",
|
|
6
|
+
status_check_failed: "Failed to check authentication status",
|
|
7
|
+
token_save_failed: "Failed to save authentication token",
|
|
8
|
+
token_get_failed: "Failed to retrieve authentication token",
|
|
9
|
+
token_remove_failed: "Failed to remove authentication token",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
debug: {
|
|
13
|
+
getAuthMinimalUserNext: {
|
|
14
|
+
start: "getAuthMinimalUserNext: - Checking authentication first",
|
|
15
|
+
result: "getAuthMinimalUserNext: getCurrentUserNext result",
|
|
16
|
+
authenticated:
|
|
17
|
+
"getAuthMinimalUserNext: User is authenticated, getting leadId",
|
|
18
|
+
returningAuth: "getAuthMinimalUserNext: Returning authenticated user",
|
|
19
|
+
notAuthenticated:
|
|
20
|
+
"getAuthMinimalUserNext: User not authenticated, returning public user",
|
|
21
|
+
},
|
|
22
|
+
signingJwt: "Signing JWT",
|
|
23
|
+
jwtSignedSuccessfully: "JWT signed successfully",
|
|
24
|
+
errorSigningJwt: "Error signing JWT",
|
|
25
|
+
verifyingJwt: "Verifying JWT",
|
|
26
|
+
invalidTokenPayload: "Invalid token payload",
|
|
27
|
+
jwtVerifiedSuccessfully: "JWT verified successfully",
|
|
28
|
+
errorVerifyingJwt: "Error verifying JWT",
|
|
29
|
+
userIdNotExistsInDb: "User ID does not exist in database",
|
|
30
|
+
sessionNotFound: "Session not found",
|
|
31
|
+
sessionExpired: "Session expired",
|
|
32
|
+
errorValidatingUserSession: "Error validating user session",
|
|
33
|
+
errorGettingUserRoles: "Error getting user roles",
|
|
34
|
+
errorCheckingUserAuth: "Error checking user authentication",
|
|
35
|
+
gettingCurrentUserFromTrpc: "Getting current user from tRPC",
|
|
36
|
+
errorGettingAuthUserForTrpc: "Error getting auth user for tRPC",
|
|
37
|
+
errorGettingUserRolesForTrpc: "Error getting user roles for tRPC",
|
|
38
|
+
authenticatingCliUserWithPayload: "Authenticating CLI user with payload",
|
|
39
|
+
errorAuthenticatingCliUserWithPayload:
|
|
40
|
+
"Error authenticating CLI user with payload",
|
|
41
|
+
creatingCliToken: "Creating CLI token",
|
|
42
|
+
errorCreatingCliToken: "Error creating CLI token",
|
|
43
|
+
validatingCliToken: "Validating CLI token",
|
|
44
|
+
errorValidatingCliToken: "Error validating CLI token",
|
|
45
|
+
gettingCurrentUserFromNextjs: "Getting current user from Next.js",
|
|
46
|
+
errorGettingAuthUserForNextjs: "Error getting auth user for Next.js",
|
|
47
|
+
settingNextjsAuthCookies: "Setting Next.js auth cookies",
|
|
48
|
+
clearingNextjsAuthCookies: "Clearing Next.js auth cookies",
|
|
49
|
+
gettingCurrentUserFromToken: "Getting current user from token",
|
|
50
|
+
errorGettingCurrentUserFromCli: "Error getting current user from CLI",
|
|
51
|
+
errorGettingAuthUserForCli: "Error getting auth user for CLI",
|
|
52
|
+
errorGettingUserRolesForCli: "Error getting user roles for CLI",
|
|
53
|
+
tokenFromAuthHeader: "Token from auth header",
|
|
54
|
+
tokenFromCookie: "Token from cookie",
|
|
55
|
+
noTokenFound: "No token found",
|
|
56
|
+
errorExtractingToken: "Error extracting token",
|
|
57
|
+
errorParsingCookies: "Error parsing cookies",
|
|
58
|
+
errorGettingCurrentUserFromTrpc: "Error getting current user from tRPC",
|
|
59
|
+
},
|
|
60
|
+
errors: {
|
|
61
|
+
token_generation_failed: "Failed to generate authentication token",
|
|
62
|
+
invalid_session: "The session is invalid or expired",
|
|
63
|
+
missing_request_context: "Request context is missing",
|
|
64
|
+
missing_locale: "Locale is missing from request",
|
|
65
|
+
unsupported_platform: "Platform is not supported",
|
|
66
|
+
session_retrieval_failed: "Failed to retrieve session",
|
|
67
|
+
missing_token: "Authentication token is missing",
|
|
68
|
+
invalid_token_signature: "Token signature is invalid",
|
|
69
|
+
jwt_payload_missing_id: "JWT payload is missing user ID",
|
|
70
|
+
cookie_set_failed: "Failed to set authentication cookie",
|
|
71
|
+
cookie_clear_failed: "Failed to clear authentication cookie",
|
|
72
|
+
publicPayloadNotSupported:
|
|
73
|
+
"Public JWT payload is not supported for CLI authentication",
|
|
74
|
+
jwt_signing_failed: "Failed to sign JWT token",
|
|
75
|
+
authentication_failed: "Authentication failed",
|
|
76
|
+
user_not_authenticated: "User is not authenticated",
|
|
77
|
+
publicUserNotAllowed: "Public user is not allowed for this endpoint",
|
|
78
|
+
validation_failed: "Validation failed",
|
|
79
|
+
failed_to_create_lead: "Failed to create lead",
|
|
80
|
+
native: {
|
|
81
|
+
unsupported:
|
|
82
|
+
"This authentication method is not supported on React Native",
|
|
83
|
+
storage_failed: "Failed to store authentication data",
|
|
84
|
+
clear_failed: "Failed to clear authentication data",
|
|
85
|
+
},
|
|
86
|
+
not_implemented_native:
|
|
87
|
+
"This feature is not yet implemented for React Native",
|
|
88
|
+
unknownError: "An unknown error occurred during authentication",
|
|
89
|
+
},
|
|
90
|
+
post: {
|
|
91
|
+
title: "Auth",
|
|
92
|
+
description: "Auth endpoint",
|
|
93
|
+
form: {
|
|
94
|
+
title: "Auth Configuration",
|
|
95
|
+
description: "Configure auth parameters",
|
|
96
|
+
},
|
|
97
|
+
response: {
|
|
98
|
+
title: "Response",
|
|
99
|
+
description: "Auth response data",
|
|
100
|
+
},
|
|
101
|
+
errors: {
|
|
102
|
+
unauthorized: {
|
|
103
|
+
title: "Unauthorized",
|
|
104
|
+
description: "Authentication required",
|
|
105
|
+
},
|
|
106
|
+
validation: {
|
|
107
|
+
title: "Validation Error",
|
|
108
|
+
description: "Invalid request parameters",
|
|
109
|
+
},
|
|
110
|
+
missing_locale: {
|
|
111
|
+
title: "Missing Locale",
|
|
112
|
+
description: "Locale parameter is required",
|
|
113
|
+
},
|
|
114
|
+
server: {
|
|
115
|
+
title: "Server Error",
|
|
116
|
+
description: "Internal server error occurred",
|
|
117
|
+
},
|
|
118
|
+
unknown: {
|
|
119
|
+
title: "Unknown Error",
|
|
120
|
+
description: "An unknown error occurred",
|
|
121
|
+
},
|
|
122
|
+
network: {
|
|
123
|
+
title: "Network Error",
|
|
124
|
+
description: "Network error occurred",
|
|
125
|
+
},
|
|
126
|
+
forbidden: {
|
|
127
|
+
title: "Forbidden",
|
|
128
|
+
description: "Access forbidden",
|
|
129
|
+
},
|
|
130
|
+
notFound: {
|
|
131
|
+
title: "Not Found",
|
|
132
|
+
description: "Resource not found",
|
|
133
|
+
},
|
|
134
|
+
conflict: {
|
|
135
|
+
title: "Conflict",
|
|
136
|
+
description: "Data conflict occurred",
|
|
137
|
+
},
|
|
138
|
+
token_generation_failed: {
|
|
139
|
+
title: "Token Generation Failed",
|
|
140
|
+
description: "Failed to generate authentication token",
|
|
141
|
+
},
|
|
142
|
+
invalid_session: {
|
|
143
|
+
title: "Invalid Session",
|
|
144
|
+
description: "The session is invalid or expired",
|
|
145
|
+
},
|
|
146
|
+
missing_request_context: {
|
|
147
|
+
title: "Missing Request Context",
|
|
148
|
+
description: "Request context is missing",
|
|
149
|
+
},
|
|
150
|
+
unsupported_platform: {
|
|
151
|
+
title: "Unsupported Platform",
|
|
152
|
+
description: "Platform is not supported",
|
|
153
|
+
},
|
|
154
|
+
session_retrieval_failed: {
|
|
155
|
+
title: "Session Retrieval Failed",
|
|
156
|
+
description: "Failed to retrieve session",
|
|
157
|
+
},
|
|
158
|
+
missing_token: {
|
|
159
|
+
title: "Missing Token",
|
|
160
|
+
description: "Authentication token is missing",
|
|
161
|
+
},
|
|
162
|
+
invalid_token_signature: {
|
|
163
|
+
title: "Invalid Token Signature",
|
|
164
|
+
description: "Token signature is invalid",
|
|
165
|
+
},
|
|
166
|
+
jwt_payload_missing_id: {
|
|
167
|
+
title: "JWT Payload Missing ID",
|
|
168
|
+
description: "JWT payload is missing user ID",
|
|
169
|
+
},
|
|
170
|
+
cookie_set_failed: {
|
|
171
|
+
title: "Cookie Set Failed",
|
|
172
|
+
description: "Failed to set authentication cookie",
|
|
173
|
+
},
|
|
174
|
+
cookie_clear_failed: {
|
|
175
|
+
title: "Cookie Clear Failed",
|
|
176
|
+
description: "Failed to clear authentication cookie",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
success: {
|
|
180
|
+
title: "Success",
|
|
181
|
+
description: "Operation completed successfully",
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
check: {
|
|
185
|
+
get: {
|
|
186
|
+
title: "Check Authentication",
|
|
187
|
+
description: "Check current authentication status",
|
|
188
|
+
response: {
|
|
189
|
+
title: "Authentication Status",
|
|
190
|
+
description: "Current authentication state",
|
|
191
|
+
authenticated: "Authenticated",
|
|
192
|
+
tokenValid: "Token Valid",
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
enums: {
|
|
197
|
+
webSocketErrorCode: {
|
|
198
|
+
unauthorized: "Unauthorized",
|
|
199
|
+
forbidden: "Forbidden",
|
|
200
|
+
invalidToken: "Invalid Token",
|
|
201
|
+
tokenExpired: "Token Expired",
|
|
202
|
+
serverError: "Server Error",
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { translations as enTranslations } from "../en";
|
|
2
|
+
|
|
3
|
+
export const translations: typeof enTranslations = {
|
|
4
|
+
authClient: {
|
|
5
|
+
errors: {
|
|
6
|
+
status_save_failed: "Nie udało się zapisać statusu uwierzytelniania",
|
|
7
|
+
status_remove_failed: "Nie udało się usunąć statusu uwierzytelniania",
|
|
8
|
+
status_check_failed: "Nie udało się sprawdzić statusu uwierzytelniania",
|
|
9
|
+
token_save_failed: "Nie udało się zapisać tokenu uwierzytelniania",
|
|
10
|
+
token_get_failed: "Nie udało się pobrać tokenu uwierzytelniania",
|
|
11
|
+
token_remove_failed: "Nie udało się usunąć tokenu uwierzytelniania",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
errors: {
|
|
15
|
+
token_generation_failed:
|
|
16
|
+
"Nie udało się wygenerować tokenu uwierzytelniania",
|
|
17
|
+
invalid_session: "Sesja jest nieprawidłowa lub wygasła",
|
|
18
|
+
missing_request_context: "Kontekst żądania jest brakujący",
|
|
19
|
+
missing_locale: "Brak locale w żądaniu",
|
|
20
|
+
unsupported_platform: "Platforma nie jest obsługiwana",
|
|
21
|
+
session_retrieval_failed: "Nie udało się pobrać sesji",
|
|
22
|
+
missing_token: "Token uwierzytelniania jest brakujący",
|
|
23
|
+
invalid_token_signature: "Podpis tokenu jest nieprawidłowy",
|
|
24
|
+
jwt_payload_missing_id: "JWT payload brakuje ID użytkownika",
|
|
25
|
+
cookie_set_failed: "Nie udało się ustawić cookie uwierzytelniania",
|
|
26
|
+
cookie_clear_failed: "Nie udało się usunąć cookie uwierzytelniania",
|
|
27
|
+
publicPayloadNotSupported:
|
|
28
|
+
"Publiczny payload JWT nie jest obsługiwany dla uwierzytelniania CLI",
|
|
29
|
+
jwt_signing_failed: "Nie udało się podpisać tokenu JWT",
|
|
30
|
+
authentication_failed: "Uwierzytelnianie nie powiodło się",
|
|
31
|
+
user_not_authenticated: "Użytkownik nie jest uwierzytelniony",
|
|
32
|
+
publicUserNotAllowed:
|
|
33
|
+
"Użytkownik publiczny nie jest dozwolony dla tego endpointu",
|
|
34
|
+
validation_failed: "Walidacja nie powiodła się",
|
|
35
|
+
failed_to_create_lead: "Nie udało się utworzyć leada",
|
|
36
|
+
native: {
|
|
37
|
+
unsupported:
|
|
38
|
+
"Ta metoda uwierzytelniania nie jest obsługiwana w React Native",
|
|
39
|
+
storage_failed: "Nie udało się zapisać danych uwierzytelniania",
|
|
40
|
+
clear_failed: "Nie udało się wyczyścić danych uwierzytelniania",
|
|
41
|
+
},
|
|
42
|
+
not_implemented_native:
|
|
43
|
+
"Ta funkcja nie jest jeszcze zaimplementowana dla React Native",
|
|
44
|
+
unknownError: "Wystąpił nieznany błąd podczas uwierzytelniania",
|
|
45
|
+
},
|
|
46
|
+
post: {
|
|
47
|
+
title: "Tytuł",
|
|
48
|
+
description: "Opis endpointu",
|
|
49
|
+
form: {
|
|
50
|
+
title: "Konfiguracja",
|
|
51
|
+
description: "Skonfiguruj parametry",
|
|
52
|
+
},
|
|
53
|
+
response: {
|
|
54
|
+
title: "Odpowiedź",
|
|
55
|
+
description: "Dane odpowiedzi",
|
|
56
|
+
},
|
|
57
|
+
errors: {
|
|
58
|
+
unauthorized: {
|
|
59
|
+
title: "Brak autoryzacji",
|
|
60
|
+
description: "Wymagana autoryzacja",
|
|
61
|
+
},
|
|
62
|
+
validation: {
|
|
63
|
+
title: "Błąd walidacji",
|
|
64
|
+
description: "Nieprawidłowe parametry żądania",
|
|
65
|
+
},
|
|
66
|
+
missing_locale: {
|
|
67
|
+
title: "Brak locale",
|
|
68
|
+
description: "Parametr locale jest wymagany",
|
|
69
|
+
},
|
|
70
|
+
server: {
|
|
71
|
+
title: "Błąd serwera",
|
|
72
|
+
description: "Wystąpił wewnętrzny błąd serwera",
|
|
73
|
+
},
|
|
74
|
+
unknown: {
|
|
75
|
+
title: "Nieznany błąd",
|
|
76
|
+
description: "Wystąpił nieznany błąd",
|
|
77
|
+
},
|
|
78
|
+
network: {
|
|
79
|
+
title: "Błąd sieci",
|
|
80
|
+
description: "Wystąpił błąd sieci",
|
|
81
|
+
},
|
|
82
|
+
forbidden: {
|
|
83
|
+
title: "Zabronione",
|
|
84
|
+
description: "Dostęp zabroniony",
|
|
85
|
+
},
|
|
86
|
+
notFound: {
|
|
87
|
+
title: "Nie znaleziono",
|
|
88
|
+
description: "Zasób nie został znaleziony",
|
|
89
|
+
},
|
|
90
|
+
conflict: {
|
|
91
|
+
title: "Konflikt",
|
|
92
|
+
description: "Wystąpił konflikt danych",
|
|
93
|
+
},
|
|
94
|
+
token_generation_failed: {
|
|
95
|
+
title: "Generowanie tokenu nie powiodło się",
|
|
96
|
+
description: "Nie udało się wygenerować tokenu uwierzytelniania",
|
|
97
|
+
},
|
|
98
|
+
invalid_session: {
|
|
99
|
+
title: "Nieprawidłowa sesja",
|
|
100
|
+
description: "Sesja jest nieprawidłowa lub wygasła",
|
|
101
|
+
},
|
|
102
|
+
missing_request_context: {
|
|
103
|
+
title: "Brak kontekstu żądania",
|
|
104
|
+
description: "Kontekst żądania jest brakujący",
|
|
105
|
+
},
|
|
106
|
+
unsupported_platform: {
|
|
107
|
+
title: "Nieobsługiwana platforma",
|
|
108
|
+
description: "Platforma nie jest obsługiwana",
|
|
109
|
+
},
|
|
110
|
+
session_retrieval_failed: {
|
|
111
|
+
title: "Pobieranie sesji nie powiodło się",
|
|
112
|
+
description: "Nie udało się pobrać sesji",
|
|
113
|
+
},
|
|
114
|
+
missing_token: {
|
|
115
|
+
title: "Brak tokenu",
|
|
116
|
+
description: "Token uwierzytelniania jest brakujący",
|
|
117
|
+
},
|
|
118
|
+
invalid_token_signature: {
|
|
119
|
+
title: "Nieprawidłowy podpis tokenu",
|
|
120
|
+
description: "Podpis tokenu jest nieprawidłowy",
|
|
121
|
+
},
|
|
122
|
+
jwt_payload_missing_id: {
|
|
123
|
+
title: "Brak ID w payload JWT",
|
|
124
|
+
description: "Payload JWT nie zawiera ID użytkownika",
|
|
125
|
+
},
|
|
126
|
+
cookie_set_failed: {
|
|
127
|
+
title: "Ustawienie cookie nie powiodło się",
|
|
128
|
+
description: "Nie udało się ustawić cookie uwierzytelniania",
|
|
129
|
+
},
|
|
130
|
+
cookie_clear_failed: {
|
|
131
|
+
title: "Wyczyszczenie cookie nie powiodło się",
|
|
132
|
+
description: "Nie udało się wyczyścić cookie uwierzytelniania",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
success: {
|
|
136
|
+
title: "Sukces",
|
|
137
|
+
description: "Operacja zakończona pomyślnie",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
check: {
|
|
141
|
+
get: {
|
|
142
|
+
title: "Sprawdź uwierzytelnianie",
|
|
143
|
+
description: "Sprawdź aktualny status uwierzytelniania",
|
|
144
|
+
response: {
|
|
145
|
+
title: "Status uwierzytelniania",
|
|
146
|
+
description: "Aktualny stan uwierzytelniania",
|
|
147
|
+
authenticated: "Uwierzytelniony",
|
|
148
|
+
tokenValid: "Token ważny",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
enums: {
|
|
153
|
+
webSocketErrorCode: {
|
|
154
|
+
unauthorized: "Brak autoryzacji",
|
|
155
|
+
forbidden: "Zabronione",
|
|
156
|
+
invalidToken: "Nieprawidłowy token",
|
|
157
|
+
tokenExpired: "Token wygasł",
|
|
158
|
+
serverError: "Błąd serwera",
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
debug: {
|
|
162
|
+
getAuthMinimalUserNext: {
|
|
163
|
+
start: "getAuthMinimalUserNext: - Sprawdzanie autentykacji jako pierwsze",
|
|
164
|
+
result: "getAuthMinimalUserNext: wynik getCurrentUserNext",
|
|
165
|
+
authenticated:
|
|
166
|
+
"getAuthMinimalUserNext: Użytkownik jest uwierzytelniony, pobieranie leadId",
|
|
167
|
+
returningAuth:
|
|
168
|
+
"getAuthMinimalUserNext: Zwracanie uwierzytelnionego użytkownika",
|
|
169
|
+
notAuthenticated:
|
|
170
|
+
"getAuthMinimalUserNext: Użytkownik nie uwierzytelniony, zwracanie użytkownika publicznego",
|
|
171
|
+
},
|
|
172
|
+
signingJwt: "Podpisywanie JWT",
|
|
173
|
+
jwtSignedSuccessfully: "JWT pomyślnie podpisany",
|
|
174
|
+
errorSigningJwt: "Błąd podczas podpisywania JWT",
|
|
175
|
+
verifyingJwt: "Weryfikacja JWT",
|
|
176
|
+
invalidTokenPayload: "Nieprawidłowe dane tokenu",
|
|
177
|
+
jwtVerifiedSuccessfully: "JWT pomyślnie zweryfikowany",
|
|
178
|
+
errorVerifyingJwt: "Błąd podczas weryfikacji JWT",
|
|
179
|
+
userIdNotExistsInDb: "ID użytkownika nie istnieje w bazie danych",
|
|
180
|
+
sessionNotFound: "Sesja nie została znaleziona",
|
|
181
|
+
sessionExpired: "Sesja wygasła",
|
|
182
|
+
errorValidatingUserSession: "Błąd podczas walidacji sesji użytkownika",
|
|
183
|
+
errorGettingUserRoles: "Błąd podczas pobierania ról użytkownika",
|
|
184
|
+
errorCheckingUserAuth:
|
|
185
|
+
"Błąd podczas sprawdzania uwierzytelniania użytkownika",
|
|
186
|
+
gettingCurrentUserFromTrpc: "Pobieranie bieżącego użytkownika z tRPC",
|
|
187
|
+
errorGettingAuthUserForTrpc:
|
|
188
|
+
"Błąd podczas pobierania użytkownika auth dla tRPC",
|
|
189
|
+
errorGettingUserRolesForTrpc:
|
|
190
|
+
"Błąd podczas pobierania ról użytkownika dla tRPC",
|
|
191
|
+
authenticatingCliUserWithPayload:
|
|
192
|
+
"Uwierzytelnianie użytkownika CLI z danymi",
|
|
193
|
+
errorAuthenticatingCliUserWithPayload:
|
|
194
|
+
"Błąd podczas uwierzytelniania użytkownika CLI z danymi",
|
|
195
|
+
creatingCliToken: "Tworzenie tokenu CLI",
|
|
196
|
+
errorCreatingCliToken: "Błąd podczas tworzenia tokenu CLI",
|
|
197
|
+
validatingCliToken: "Walidacja tokenu CLI",
|
|
198
|
+
errorValidatingCliToken: "Błąd podczas walidacji tokenu CLI",
|
|
199
|
+
gettingCurrentUserFromNextjs: "Pobieranie bieżącego użytkownika z Next.js",
|
|
200
|
+
errorGettingAuthUserForNextjs:
|
|
201
|
+
"Błąd podczas pobierania użytkownika auth dla Next.js",
|
|
202
|
+
settingNextjsAuthCookies: "Ustawianie cookies auth Next.js",
|
|
203
|
+
clearingNextjsAuthCookies: "Czyszczenie cookies auth Next.js",
|
|
204
|
+
gettingCurrentUserFromToken: "Pobieranie bieżącego użytkownika z tokenu",
|
|
205
|
+
errorGettingCurrentUserFromCli:
|
|
206
|
+
"Błąd podczas pobierania bieżącego użytkownika z CLI",
|
|
207
|
+
errorGettingAuthUserForCli:
|
|
208
|
+
"Błąd podczas pobierania użytkownika auth dla CLI",
|
|
209
|
+
errorGettingUserRolesForCli:
|
|
210
|
+
"Błąd podczas pobierania ról użytkownika dla CLI",
|
|
211
|
+
tokenFromAuthHeader: "Token z nagłówka auth",
|
|
212
|
+
tokenFromCookie: "Token z cookie",
|
|
213
|
+
noTokenFound: "Nie znaleziono tokenu",
|
|
214
|
+
errorExtractingToken: "Błąd podczas wyodrębniania tokenu",
|
|
215
|
+
errorParsingCookies: "Błąd podczas parsowania cookies",
|
|
216
|
+
errorGettingCurrentUserFromTrpc:
|
|
217
|
+
"Błąd podczas pobierania bieżącego użytkownika z tRPC",
|
|
218
|
+
},
|
|
219
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth Definition
|
|
3
|
+
* Defines API types for authentication endpoints
|
|
4
|
+
* Repository-first architecture: exports TypeOutput types for repositories and routes
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { dateSchema } from "next-vibe/shared/types/common.schema";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
UserPermissionRole,
|
|
12
|
+
UserRoleDB,
|
|
13
|
+
} from "@/app/api/[locale]/user/user-roles/enum";
|
|
14
|
+
|
|
15
|
+
import { WebSocketErrorCode } from "./enum";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* JWT Payload Schema
|
|
19
|
+
* Defines the structure of JWT token payloads using discriminated union
|
|
20
|
+
*
|
|
21
|
+
* IMPORTANT: Roles are fetched from DB and included in JWT during token creation/refresh.
|
|
22
|
+
* Once in the JWT, roles can be trusted because the JWT is signed and cannot be tampered with.
|
|
23
|
+
* Never fetch roles from cookies - always use roles from the verified JWT payload.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
const publicJwtPayloadSchema = z.object({
|
|
27
|
+
isPublic: z.literal(true),
|
|
28
|
+
leadId: z.uuid(),
|
|
29
|
+
roles: z
|
|
30
|
+
.array(z.enum([UserPermissionRole.PUBLIC]))
|
|
31
|
+
.default([UserPermissionRole.PUBLIC]),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const privateJwtPayloadSchema = z.object({
|
|
35
|
+
id: z.uuid(),
|
|
36
|
+
// user has always a leadId
|
|
37
|
+
leadId: z.uuid(),
|
|
38
|
+
isPublic: z.literal(false),
|
|
39
|
+
// Roles are fetched from DB during login/signup and stored in JWT
|
|
40
|
+
roles: z.array(z.enum(UserRoleDB)),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const jwtPayloadSchema = z.discriminatedUnion("isPublic", [
|
|
44
|
+
publicJwtPayloadSchema,
|
|
45
|
+
privateJwtPayloadSchema,
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
export type JWTPublicPayloadType = z.infer<typeof publicJwtPayloadSchema> & {
|
|
49
|
+
id?: never;
|
|
50
|
+
};
|
|
51
|
+
export type JwtPrivatePayloadType = z.infer<typeof privateJwtPayloadSchema>;
|
|
52
|
+
|
|
53
|
+
export type JwtPayloadType = JWTPublicPayloadType | JwtPrivatePayloadType;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Session Schema
|
|
57
|
+
* Defines the structure of user sessions
|
|
58
|
+
*/
|
|
59
|
+
export const sessionSchema = z.object({
|
|
60
|
+
id: z.uuid().optional(),
|
|
61
|
+
userId: z.uuid(),
|
|
62
|
+
token: z.string(),
|
|
63
|
+
expiresAt: dateSchema,
|
|
64
|
+
createdAt: dateSchema,
|
|
65
|
+
lastUsedAt: dateSchema.optional(),
|
|
66
|
+
ipAddress: z.string().optional(),
|
|
67
|
+
userAgent: z.string().optional(),
|
|
68
|
+
isRevoked: z.boolean().default(false),
|
|
69
|
+
});
|
|
70
|
+
export type SessionType = z.infer<typeof sessionSchema>;
|
|
71
|
+
export type NewSessionType = Omit<SessionType, "id">;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Auth Token Schema
|
|
75
|
+
* Defines the structure of authentication tokens
|
|
76
|
+
*/
|
|
77
|
+
export const authTokenSchema = z.object({
|
|
78
|
+
token: z.string(),
|
|
79
|
+
expiresAt: dateSchema,
|
|
80
|
+
});
|
|
81
|
+
export type AuthTokenType = z.infer<typeof authTokenSchema>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* WebSocket User Schema
|
|
85
|
+
* Defines the structure of WebSocket user data
|
|
86
|
+
*/
|
|
87
|
+
export const webSocketUserSchema = z.object({
|
|
88
|
+
id: z.uuid(),
|
|
89
|
+
});
|
|
90
|
+
export type WebSocketUserType = z.infer<typeof webSocketUserSchema>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* WebSocket Error Code Enum
|
|
94
|
+
* Defines error codes for WebSocket authentication
|
|
95
|
+
*/
|
|
96
|
+
export const webSocketErrorCodeEnum = z.enum(WebSocketErrorCode);
|
|
97
|
+
export type WebSocketErrorCodeType = z.infer<typeof webSocketErrorCodeEnum>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Auth Verification Result Schema
|
|
101
|
+
* Defines the structure of authentication verification results
|
|
102
|
+
*/
|
|
103
|
+
export const authVerificationResultSchema = z.object({
|
|
104
|
+
isValid: z.boolean(),
|
|
105
|
+
payload: jwtPayloadSchema.optional(),
|
|
106
|
+
error: z.string().optional(),
|
|
107
|
+
});
|
|
108
|
+
export type AuthVerificationResultType = z.infer<
|
|
109
|
+
typeof authVerificationResultSchema
|
|
110
|
+
>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User enums
|
|
3
|
+
* Defines the enums used in the user module
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { createEnumOptions } from "@/app/api/[locale]/system/unified-interface/shared/field/enum";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Theme enum using createEnumOptions pattern
|
|
10
|
+
*/
|
|
11
|
+
export const {
|
|
12
|
+
enum: Theme,
|
|
13
|
+
options: ThemeOptions,
|
|
14
|
+
Value: ThemeValue,
|
|
15
|
+
} = createEnumOptions({
|
|
16
|
+
LIGHT: "app.api.user.theme.light",
|
|
17
|
+
DARK: "app.api.user.theme.dark",
|
|
18
|
+
SYSTEM: "app.api.user.theme.system",
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Profile visibility enum and options
|
|
23
|
+
*/
|
|
24
|
+
export const {
|
|
25
|
+
enum: ProfileVisibility,
|
|
26
|
+
options: ProfileVisibilityOptions,
|
|
27
|
+
Value: ProfileVisibilityValue,
|
|
28
|
+
} = createEnumOptions({
|
|
29
|
+
PUBLIC: "app.api.user.profileVisibility.public",
|
|
30
|
+
PRIVATE: "app.api.user.profileVisibility.private",
|
|
31
|
+
CONTACTS_ONLY: "app.api.user.profileVisibility.contactsOnly",
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* User detail level enum and options
|
|
36
|
+
*/
|
|
37
|
+
export const {
|
|
38
|
+
enum: UserDetailLevel,
|
|
39
|
+
options: UserDetailLevelOptions,
|
|
40
|
+
Value: UserDetailLevelValue,
|
|
41
|
+
} = createEnumOptions({
|
|
42
|
+
MINIMAL: "app.api.user.userDetailLevel.minimal",
|
|
43
|
+
STANDARD: "app.api.user.userDetailLevel.standard",
|
|
44
|
+
COMPLETE: "app.api.user.userDetailLevel.complete",
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Language enum for user language preferences
|
|
49
|
+
*/
|
|
50
|
+
export const {
|
|
51
|
+
enum: Language,
|
|
52
|
+
options: LanguageOptions,
|
|
53
|
+
Value: LanguageValue,
|
|
54
|
+
} = createEnumOptions({
|
|
55
|
+
EN: "app.api.user.language.en",
|
|
56
|
+
DE: "app.api.user.language.de",
|
|
57
|
+
PL: "app.api.user.language.pl",
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const UserDetailLevelDB = [
|
|
61
|
+
UserDetailLevel.MINIMAL,
|
|
62
|
+
UserDetailLevel.STANDARD,
|
|
63
|
+
UserDetailLevel.COMPLETE,
|
|
64
|
+
] as const;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const translations = {};
|