From 4dcc8f4e0315d5c5f01a7067be6b4552756df496 Mon Sep 17 00:00:00 2001 From: kodemon Date: Thu, 22 Jan 2026 15:30:31 +0100 Subject: [PATCH] chore: clean config --- app/src/services/zitadel.ts | 6 +- deno.json | 4 - deno.lock | 171 +++----------------- modules/payment/libraries/database.ts | 0 modules/payment/repositories/transaction.ts | 3 - modules/storage/schemas/image.ts | 2 + 6 files changed, 26 insertions(+), 160 deletions(-) delete mode 100644 modules/payment/libraries/database.ts delete mode 100644 modules/payment/repositories/transaction.ts diff --git a/app/src/services/zitadel.ts b/app/src/services/zitadel.ts index 07b14b6..64fe5c6 100644 --- a/app/src/services/zitadel.ts +++ b/app/src/services/zitadel.ts @@ -2,12 +2,12 @@ import { createZitadelAuth, type ZitadelConfig } from "@zitadel/react"; const config: ZitadelConfig = { authority: "https://iam.valkyrjs.com", - project_resource_id: "348389288439709700", - client_id: "348389308220112900", + project_resource_id: "356672856689475587", + client_id: "356672963459743747", redirect_uri: "http://localhost:5173/callback", post_logout_redirect_uri: "http://localhost:5173", response_type: "code", - scope: "openid profile email urn:zitadel:iam:user:metadata urn:zitadel:iam:org:id:348388915649970180", + scope: "openid profile email urn:zitadel:iam:user:metadata urn:zitadel:iam:org:id:354958981547950083", }; export const zitadel = createZitadelAuth(config); diff --git a/deno.json b/deno.json index c65153c..f176004 100644 --- a/deno.json +++ b/deno.json @@ -4,7 +4,6 @@ "workspace": [ "api", "app", - "desktop", "modules/payment", "modules/storage", "platform/cerbos", @@ -29,9 +28,6 @@ "command": "cd ./app && deno run dev", "description": "Start app client instance." }, - "desktop": { - "command": "cd ./desktop && deno task tauri dev" - }, "check": { "command": "deno run -A npm:@biomejs/biome check --write ./api ./apps/react/src ./modules ./platform", "description": "Format, lint, and organize imports of the entire project." diff --git a/deno.lock b/deno.lock index 7f9b73d..4f61c30 100644 --- a/deno.lock +++ b/deno.lock @@ -35,17 +35,11 @@ "npm:@tanstack/react-router@1.139.9": "1.139.9_react@19.2.0_react-dom@19.2.0__react@19.2.0", "npm:@tanstack/react-table@8.21.3": "8.21.3_react@19.2.0_react-dom@19.2.0__react@19.2.0", "npm:@tanstack/router-plugin@1.145.2": "1.145.2_@tanstack+react-router@1.139.9__react@19.2.0__react-dom@19.2.0___react@19.2.0_vite@7.2.4__@types+node@24.10.1__picomatch@4.0.3_@babel+core@7.28.5_react@19.2.0_react-dom@19.2.0__react@19.2.0_@types+node@24.10.1", - "npm:@tauri-apps/api@2": "2.9.1", - "npm:@tauri-apps/cli@2": "2.9.6", - "npm:@tauri-apps/plugin-opener@2": "2.5.2", "npm:@types/node@24.10.1": "24.10.1", "npm:@types/react-dom@19.2.3": "19.2.3_@types+react@19.2.7", - "npm:@types/react-dom@^19.1.6": "19.2.3_@types+react@19.2.7", "npm:@types/react@19.2.7": "19.2.7", - "npm:@types/react@^19.1.8": "19.2.7", "npm:@types/transit-js@0.8.3": "0.8.3", "npm:@vitejs/plugin-react@5.1.1": "5.1.1_vite@7.2.4__@types+node@24.10.1__picomatch@4.0.3_@babel+core@7.28.5_@types+node@24.10.1", - "npm:@vitejs/plugin-react@^4.6.0": "4.7.0_vite@7.2.4__@types+node@24.10.1__picomatch@4.0.3_@babel+core@7.28.5_@types+node@24.10.1", "npm:@zitadel/react@1.1.0": "1.1.0", "npm:babel-plugin-react-compiler@1.0.0": "1.0.0", "npm:class-variance-authority@0.7.1": "0.7.1", @@ -63,21 +57,17 @@ "npm:path-to-regexp@8": "8.3.0", "npm:postgres@3.4.7": "3.4.7", "npm:react-dom@19.2.0": "19.2.0_react@19.2.0", - "npm:react-dom@^19.1.0": "19.2.0_react@19.2.0", "npm:react@19.2.0": "19.2.0", - "npm:react@^19.1.0": "19.2.0", "npm:recharts@2.15.4": "2.15.4_react@19.2.0_react-dom@19.2.0__react@19.2.0", "npm:sonner@2.0.7": "2.0.7_react@19.2.0_react-dom@19.2.0__react@19.2.0", "npm:tailwind-merge@3.4.0": "3.4.0", "npm:tailwindcss@4.1.17": "4.1.17", "npm:transit-js@0.8.874": "0.8.874", "npm:tw-animate-css@1.4.0": "1.4.0", - "npm:typescript-eslint@8.46.4": "8.46.4_eslint@9.39.1_typescript@5.8.3_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.8.3", - "npm:typescript@~5.8.3": "5.8.3", + "npm:typescript-eslint@8.46.4": "8.46.4_eslint@9.39.1_typescript@5.9.3_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.9.3", "npm:typescript@~5.9.3": "5.9.3", "npm:vaul@1.1.2": "1.1.2_react@19.2.0_react-dom@19.2.0__react@19.2.0_@types+react@19.2.7_@types+react-dom@19.2.3__@types+react@19.2.7", "npm:vite@7.2.4": "7.2.4_@types+node@24.10.1_picomatch@4.0.3", - "npm:vite@^7.0.4": "7.2.4_@types+node@24.10.1_picomatch@4.0.3", "npm:zod@4.3.5": "4.3.5" }, "npm": { @@ -1558,9 +1548,6 @@ "@radix-ui/rect@1.1.1": { "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==" }, - "@rolldown/pluginutils@1.0.0-beta.27": { - "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==" - }, "@rolldown/pluginutils@1.0.0-beta.47": { "integrity": "sha512-8QagwMH3kNCuzD8EWL8R2YPW5e4OrHNSAHRFDdmFqEwEaD/KcNKjVoumo+gP2vW5eKB2UPbM6vTYiGZX0ixLnw==" }, @@ -1934,87 +1921,6 @@ "@tanstack/virtual-file-routes@1.141.0": { "integrity": "sha512-CJrWtr6L9TVzEImm9S7dQINx+xJcYP/aDkIi6gnaWtIgbZs1pnzsE0yJc2noqXZ+yAOqLx3TBGpBEs9tS0P9/A==" }, - "@tauri-apps/api@2.9.1": { - "integrity": "sha512-IGlhP6EivjXHepbBic618GOmiWe4URJiIeZFlB7x3czM0yDHHYviH1Xvoiv4FefdkQtn6v7TuwWCRfOGdnVUGw==" - }, - "@tauri-apps/cli-darwin-arm64@2.9.6": { - "integrity": "sha512-gf5no6N9FCk1qMrti4lfwP77JHP5haASZgVbBgpZG7BUepB3fhiLCXGUK8LvuOjP36HivXewjg72LTnPDScnQQ==", - "os": ["darwin"], - "cpu": ["arm64"] - }, - "@tauri-apps/cli-darwin-x64@2.9.6": { - "integrity": "sha512-oWh74WmqbERwwrwcueJyY6HYhgCksUc6NT7WKeXyrlY/FPmNgdyQAgcLuTSkhRFuQ6zh4Np1HZpOqCTpeZBDcw==", - "os": ["darwin"], - "cpu": ["x64"] - }, - "@tauri-apps/cli-linux-arm-gnueabihf@2.9.6": { - "integrity": "sha512-/zde3bFroFsNXOHN204DC2qUxAcAanUjVXXSdEGmhwMUZeAQalNj5cz2Qli2elsRjKN/hVbZOJj0gQ5zaYUjSg==", - "os": ["linux"], - "cpu": ["arm"] - }, - "@tauri-apps/cli-linux-arm64-gnu@2.9.6": { - "integrity": "sha512-pvbljdhp9VOo4RnID5ywSxgBs7qiylTPlK56cTk7InR3kYSTJKYMqv/4Q/4rGo/mG8cVppesKIeBMH42fw6wjg==", - "os": ["linux"], - "cpu": ["arm64"] - }, - "@tauri-apps/cli-linux-arm64-musl@2.9.6": { - "integrity": "sha512-02TKUndpodXBCR0oP//6dZWGYcc22Upf2eP27NvC6z0DIqvkBBFziQUcvi2n6SrwTRL0yGgQjkm9K5NIn8s6jw==", - "os": ["linux"], - "cpu": ["arm64"] - }, - "@tauri-apps/cli-linux-riscv64-gnu@2.9.6": { - "integrity": "sha512-fmp1hnulbqzl1GkXl4aTX9fV+ubHw2LqlLH1PE3BxZ11EQk+l/TmiEongjnxF0ie4kV8DQfDNJ1KGiIdWe1GvQ==", - "os": ["linux"], - "cpu": ["riscv64"] - }, - "@tauri-apps/cli-linux-x64-gnu@2.9.6": { - "integrity": "sha512-vY0le8ad2KaV1PJr+jCd8fUF9VOjwwQP/uBuTJvhvKTloEwxYA/kAjKK9OpIslGA9m/zcnSo74czI6bBrm2sYA==", - "os": ["linux"], - "cpu": ["x64"] - }, - "@tauri-apps/cli-linux-x64-musl@2.9.6": { - "integrity": "sha512-TOEuB8YCFZTWVDzsO2yW0+zGcoMiPPwcUgdnW1ODnmgfwccpnihDRoks+ABT1e3fHb1ol8QQWsHSCovb3o2ENQ==", - "os": ["linux"], - "cpu": ["x64"] - }, - "@tauri-apps/cli-win32-arm64-msvc@2.9.6": { - "integrity": "sha512-ujmDGMRc4qRLAnj8nNG26Rlz9klJ0I0jmZs2BPpmNNf0gM/rcVHhqbEkAaHPTBVIrtUdf7bGvQAD2pyIiUrBHQ==", - "os": ["win32"], - "cpu": ["arm64"] - }, - "@tauri-apps/cli-win32-ia32-msvc@2.9.6": { - "integrity": "sha512-S4pT0yAJgFX8QRCyKA1iKjZ9Q/oPjCZf66A/VlG5Yw54Nnr88J1uBpmenINbXxzyhduWrIXBaUbEY1K80ZbpMg==", - "os": ["win32"], - "cpu": ["ia32"] - }, - "@tauri-apps/cli-win32-x64-msvc@2.9.6": { - "integrity": "sha512-ldWuWSSkWbKOPjQMJoYVj9wLHcOniv7diyI5UAJ4XsBdtaFB0pKHQsqw/ItUma0VXGC7vB4E9fZjivmxur60aw==", - "os": ["win32"], - "cpu": ["x64"] - }, - "@tauri-apps/cli@2.9.6": { - "integrity": "sha512-3xDdXL5omQ3sPfBfdC8fCtDKcnyV7OqyzQgfyT5P3+zY6lcPqIYKQBvUasNvppi21RSdfhy44ttvJmftb0PCDw==", - "optionalDependencies": [ - "@tauri-apps/cli-darwin-arm64", - "@tauri-apps/cli-darwin-x64", - "@tauri-apps/cli-linux-arm-gnueabihf", - "@tauri-apps/cli-linux-arm64-gnu", - "@tauri-apps/cli-linux-arm64-musl", - "@tauri-apps/cli-linux-riscv64-gnu", - "@tauri-apps/cli-linux-x64-gnu", - "@tauri-apps/cli-linux-x64-musl", - "@tauri-apps/cli-win32-arm64-msvc", - "@tauri-apps/cli-win32-ia32-msvc", - "@tauri-apps/cli-win32-x64-msvc" - ], - "bin": true - }, - "@tauri-apps/plugin-opener@2.5.2": { - "integrity": "sha512-ei/yRRoCklWHImwpCcDK3VhNXx+QXM9793aQ64YxpqVF0BDuuIlXhZgiAkc15wnPVav+IbkYhmDJIv5R326Mew==", - "dependencies": [ - "@tauri-apps/api" - ] - }, "@types/babel__core@7.20.5": { "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dependencies": [ @@ -2116,7 +2022,7 @@ "@types/webidl-conversions" ] }, - "@typescript-eslint/eslint-plugin@8.46.4_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.8.3_eslint@9.39.1_typescript@5.8.3": { + "@typescript-eslint/eslint-plugin@8.46.4_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.9.3_eslint@9.39.1_typescript@5.9.3": { "integrity": "sha512-R48VhmTJqplNyDxCyqqVkFSZIx1qX6PzwqgcXn1olLrzxcSBDlOsbtcnQuQhNtnNiJ4Xe5gREI1foajYaYU2Vg==", "dependencies": [ "@eslint-community/regexpp", @@ -2130,10 +2036,10 @@ "ignore@7.0.5", "natural-compare", "ts-api-utils", - "typescript@5.8.3" + "typescript" ] }, - "@typescript-eslint/parser@8.46.4_eslint@9.39.1_typescript@5.8.3": { + "@typescript-eslint/parser@8.46.4_eslint@9.39.1_typescript@5.9.3": { "integrity": "sha512-tK3GPFWbirvNgsNKto+UmB/cRtn6TZfyw0D6IKrW55n6Vbs7KJoZtI//kpTKzE/DUmmnAFD8/Ca46s7Obs92/w==", "dependencies": [ "@typescript-eslint/scope-manager", @@ -2142,16 +2048,16 @@ "@typescript-eslint/visitor-keys", "debug", "eslint", - "typescript@5.8.3" + "typescript" ] }, - "@typescript-eslint/project-service@8.46.4_typescript@5.8.3": { + "@typescript-eslint/project-service@8.46.4_typescript@5.9.3": { "integrity": "sha512-nPiRSKuvtTN+no/2N1kt2tUh/HoFzeEgOm9fQ6XQk4/ApGqjx0zFIIaLJ6wooR1HIoozvj2j6vTi/1fgAz7UYQ==", "dependencies": [ "@typescript-eslint/tsconfig-utils", "@typescript-eslint/types", "debug", - "typescript@5.8.3" + "typescript" ] }, "@typescript-eslint/scope-manager@8.46.4": { @@ -2161,13 +2067,13 @@ "@typescript-eslint/visitor-keys" ] }, - "@typescript-eslint/tsconfig-utils@8.46.4_typescript@5.8.3": { + "@typescript-eslint/tsconfig-utils@8.46.4_typescript@5.9.3": { "integrity": "sha512-+/XqaZPIAk6Cjg7NWgSGe27X4zMGqrFqZ8atJsX3CWxH/jACqWnrWI68h7nHQld0y+k9eTTjb9r+KU4twLoo9A==", "dependencies": [ - "typescript@5.8.3" + "typescript" ] }, - "@typescript-eslint/type-utils@8.46.4_eslint@9.39.1_typescript@5.8.3": { + "@typescript-eslint/type-utils@8.46.4_eslint@9.39.1_typescript@5.9.3": { "integrity": "sha512-V4QC8h3fdT5Wro6vANk6eojqfbv5bpwHuMsBcJUJkqs2z5XnYhJzyz9Y02eUmF9u3PgXEUiOt4w4KHR3P+z0PQ==", "dependencies": [ "@typescript-eslint/types", @@ -2176,13 +2082,13 @@ "debug", "eslint", "ts-api-utils", - "typescript@5.8.3" + "typescript" ] }, "@typescript-eslint/types@8.46.4": { "integrity": "sha512-USjyxm3gQEePdUwJBFjjGNG18xY9A2grDVGuk7/9AkjIF1L+ZrVnwR5VAU5JXtUnBL/Nwt3H31KlRDaksnM7/w==" }, - "@typescript-eslint/typescript-estree@8.46.4_typescript@5.8.3": { + "@typescript-eslint/typescript-estree@8.46.4_typescript@5.9.3": { "integrity": "sha512-7oV2qEOr1d4NWNmpXLR35LvCfOkTNymY9oyW+lUHkmCno7aOmIf/hMaydnJBUTBMRCOGZh8YjkFOc8dadEoNGA==", "dependencies": [ "@typescript-eslint/project-service", @@ -2195,10 +2101,10 @@ "minimatch@9.0.5", "semver@7.7.3", "ts-api-utils", - "typescript@5.8.3" + "typescript" ] }, - "@typescript-eslint/utils@8.46.4_eslint@9.39.1_typescript@5.8.3": { + "@typescript-eslint/utils@8.46.4_eslint@9.39.1_typescript@5.9.3": { "integrity": "sha512-AbSv11fklGXV6T28dp2Me04Uw90R2iJ30g2bgLz529Koehrmkbs1r7paFqr1vPCZi7hHwYxYtxfyQMRC8QaVSg==", "dependencies": [ "@eslint-community/eslint-utils", @@ -2206,7 +2112,7 @@ "@typescript-eslint/types", "@typescript-eslint/typescript-estree", "eslint", - "typescript@5.8.3" + "typescript" ] }, "@typescript-eslint/visitor-keys@8.46.4": { @@ -2216,27 +2122,15 @@ "eslint-visitor-keys@4.2.1" ] }, - "@vitejs/plugin-react@4.7.0_vite@7.2.4__@types+node@24.10.1__picomatch@4.0.3_@babel+core@7.28.5_@types+node@24.10.1": { - "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", - "dependencies": [ - "@babel/core", - "@babel/plugin-transform-react-jsx-self", - "@babel/plugin-transform-react-jsx-source", - "@rolldown/pluginutils@1.0.0-beta.27", - "@types/babel__core", - "react-refresh@0.17.0", - "vite" - ] - }, "@vitejs/plugin-react@5.1.1_vite@7.2.4__@types+node@24.10.1__picomatch@4.0.3_@babel+core@7.28.5_@types+node@24.10.1": { "integrity": "sha512-WQfkSw0QbQ5aJ2CHYw23ZGkqnRwqKHD/KYsMeTkZzPT4Jcf0DcBxBtwMJxnu6E7oxw5+JC6ZAiePgh28uJ1HBA==", "dependencies": [ "@babel/core", "@babel/plugin-transform-react-jsx-self", "@babel/plugin-transform-react-jsx-source", - "@rolldown/pluginutils@1.0.0-beta.47", + "@rolldown/pluginutils", "@types/babel__core", - "react-refresh@0.18.0", + "react-refresh", "vite" ] }, @@ -3369,9 +3263,6 @@ "react-is@18.3.1": { "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, - "react-refresh@0.17.0": { - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==" - }, "react-refresh@0.18.0": { "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==" }, @@ -3681,10 +3572,10 @@ "transit-js@0.8.874": { "integrity": "sha512-IDJJGKRzUbJHmN0P15HBBa05nbKor3r2MmG6aSt0UxXIlJZZKcddTk67/U7WyAeW9Hv/VYI02IqLzolsC4sbPA==" }, - "ts-api-utils@2.4.0_typescript@5.8.3": { + "ts-api-utils@2.4.0_typescript@5.9.3": { "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", "dependencies": [ - "typescript@5.8.3" + "typescript" ] }, "tslib@2.8.1": { @@ -3710,7 +3601,7 @@ "prelude-ls" ] }, - "typescript-eslint@8.46.4_eslint@9.39.1_typescript@5.8.3_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.8.3": { + "typescript-eslint@8.46.4_eslint@9.39.1_typescript@5.9.3_@typescript-eslint+parser@8.46.4__eslint@9.39.1__typescript@5.9.3": { "integrity": "sha512-KALyxkpYV5Ix7UhvjTwJXZv76VWsHG+NjNlt/z+a17SOQSiOcBdUXdbJdyXi7RPxrBFECtFOiPwUJQusJuCqrg==", "dependencies": [ "@typescript-eslint/eslint-plugin", @@ -3718,13 +3609,9 @@ "@typescript-eslint/typescript-estree", "@typescript-eslint/utils", "eslint", - "typescript@5.8.3" + "typescript" ] }, - "typescript@5.8.3": { - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "bin": true - }, "typescript@5.9.3": { "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "bin": true @@ -3955,22 +3842,6 @@ ] } }, - "desktop": { - "packageJson": { - "dependencies": [ - "npm:@tauri-apps/api@2", - "npm:@tauri-apps/cli@2", - "npm:@tauri-apps/plugin-opener@2", - "npm:@types/react-dom@^19.1.6", - "npm:@types/react@^19.1.8", - "npm:@vitejs/plugin-react@^4.6.0", - "npm:react-dom@^19.1.0", - "npm:react@^19.1.0", - "npm:typescript@~5.8.3", - "npm:vite@^7.0.4" - ] - } - }, "modules/payment": { "packageJson": { "dependencies": [ diff --git a/modules/payment/libraries/database.ts b/modules/payment/libraries/database.ts deleted file mode 100644 index e69de29..0000000 diff --git a/modules/payment/repositories/transaction.ts b/modules/payment/repositories/transaction.ts deleted file mode 100644 index 9417c7a..0000000 --- a/modules/payment/repositories/transaction.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { db } from "@platform/database"; - -export async function createTransaction() {} diff --git a/modules/storage/schemas/image.ts b/modules/storage/schemas/image.ts index 6f75546..517e66c 100644 --- a/modules/storage/schemas/image.ts +++ b/modules/storage/schemas/image.ts @@ -28,6 +28,7 @@ const MIME_MAP = { | such as the MIME type. | */ + const RawImageSchema = z.strictObject({ _id: z.uuid().describe("Primary identifier of the image"), @@ -59,6 +60,7 @@ const RawImageSchema = z.strictObject({ | format. No extra keys are permitted. | */ + export const ImageSchema = RawImageSchema.transform((data) => ({ ...data, mime: mimeForFormat(data.format),