Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: circleci app connection and secret sync
Daniel Hougaardb758c7d2d696
diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 8852bf7183..b872b8ab6b 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -661,6 +661,7 @@"resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.637.0.tgz","integrity": "sha512-xUi7x4qDubtA8QREtlblPuAcn91GS/09YVEY/RwU7xCY0aqGuFwgszAANlha4OUIqva8oVj2WO4gJuG+iaSnhw==","license": "Apache-2.0",+ "peer": true,"dependencies": {"@aws-crypto/sha256-browser": "5.2.0","@aws-crypto/sha256-js": "5.2.0",@@ -4442,6 +4443,7 @@"version": "3.632.0","resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.632.0.tgz","integrity": "sha512-Oh1fIWaoZluihOCb/zDEpRTi+6an82fgJz7fyRBugyLhEtDjmvpCQ3oKjzaOhoN+4EvXAm1ZS/ZgpvXBlIRTgw==",+ "peer": true,"dependencies": {"@aws-crypto/sha256-browser": "5.2.0","@aws-crypto/sha256-js": "5.2.0",@@ -4518,6 +4520,7 @@"version": "3.632.0","resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.632.0.tgz","integrity": "sha512-Ss5cBH09icpTvT+jtGGuQlRdwtO7RyE9BF4ZV/CEPATdd9whtJt4Qxdya8BUnkWR7h5HHTrQHqai3YVYjku41A==",+ "peer": true,"dependencies": {"@aws-crypto/sha256-browser": "5.2.0","@aws-crypto/sha256-js": "5.2.0",@@ -8808,6 +8811,7 @@"integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.26.2",@@ -10839,6 +10843,7 @@"url": "https://opencollective.com/csstools"}],+ "peer": true,"engines": {"node": ">=18"},@@ -10860,6 +10865,7 @@"url": "https://opencollective.com/csstools"}],+ "peer": true,"engines": {"node": ">=18"}@@ -12777,6 +12783,9 @@"win32"]},+ "node_modules/@infisical/quic/node_modules/@infisical/quic-linux-arm": {+ "optional": true+ },"node_modules/@ioredis/commands": {"version": "1.2.0","resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz",@@ -13492,6 +13501,7 @@"resolved": "https://registry.npmjs.org/zod/-/zod-4.1.13.tgz","integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==","license": "MIT",+ "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}@@ -14198,6 +14208,7 @@"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz","integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==","license": "MIT",+ "peer": true,"dependencies": {"@octokit/auth-token": "^4.0.0","@octokit/graphql": "^7.1.0",@@ -14641,6 +14652,7 @@"version": "1.9.0","resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz","integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",+ "peer": true,"engines": {"node": ">=8.0.0"}@@ -15295,6 +15307,7 @@"resolved": "https://registry.npmjs.org/@react-email/body/-/body-0.2.0.tgz","integrity": "sha512-9GCWmVmKUAoRfloboCd+RKm6X17xn7eGL7HnpAZUnjBXBilWCxsKnLMTC/ixSHDKS/A/057M1Tx6ZUXd89sVBw==","license": "MIT",+ "peer": true,"peerDependencies": {"react": "^18.0 || ^19.0 || ^19.0.0-rc"}@@ -15304,6 +15317,7 @@"resolved": "https://registry.npmjs.org/@react-email/button/-/button-0.2.0.tgz","integrity": "sha512-8i+v6cMxr2emz4ihCrRiYJPp2/sdYsNNsBzXStlcA+/B9Umpm5Jj3WJKYpgTPM+aeyiqlG/MMI1AucnBm4f1oQ==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15316,6 +15330,7 @@"resolved": "https://registry.npmjs.org/@react-email/code-block/-/code-block-0.2.0.tgz","integrity": "sha512-eIrPW9PIFgDopQU0e/OPpwCW2QWQDtNZDSsiN4sJO8KdMnWWnXJicnRfzrit5rHwFo+Y98i+w/Y5ScnBAFr1dQ==","license": "MIT",+ "peer": true,"dependencies": {"prismjs": "^1.30.0"},@@ -15331,6 +15346,7 @@"resolved": "https://registry.npmjs.org/@react-email/code-inline/-/code-inline-0.0.5.tgz","integrity": "sha512-MmAsOzdJpzsnY2cZoPHFPk6uDO/Ncpb4Kh1hAt9UZc1xOW3fIzpe1Pi9y9p6wwUmpaeeDalJxAxH6/fnTquinA==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15406,6 +15422,7 @@"resolved": "https://registry.npmjs.org/@react-email/container/-/container-0.0.15.tgz","integrity": "sha512-Qo2IQo0ru2kZq47REmHW3iXjAQaKu4tpeq/M8m1zHIVwKduL2vYOBQWbC2oDnMtWPmkBjej6XxgtZByxM6cCFg==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15439,6 +15456,7 @@"resolved": "https://registry.npmjs.org/@react-email/heading/-/heading-0.0.15.tgz","integrity": "sha512-xF2GqsvBrp/HbRHWEfOgSfRFX+Q8I5KBEIG5+Lv3Vb2R/NYr0s8A5JhHHGf2pWBMJdbP4B2WHgj/VUrhy8dkIg==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15451,6 +15469,7 @@"resolved": "https://registry.npmjs.org/@react-email/hr/-/hr-0.0.11.tgz","integrity": "sha512-S1gZHVhwOsd1Iad5IFhpfICwNPMGPJidG/Uysy1AwmspyoAP5a4Iw3OWEpINFdgh9MHladbxcLKO2AJO+cA9Lw==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15475,6 +15494,7 @@"resolved": "https://registry.npmjs.org/@react-email/img/-/img-0.0.11.tgz","integrity": "sha512-aGc8Y6U5C3igoMaqAJKsCpkbm1XjguQ09Acd+YcTKwjnC2+0w3yGUJkjWB2vTx4tN8dCqQCXO8FmdJpMfOA9EQ==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15487,6 +15507,7 @@"resolved": "https://registry.npmjs.org/@react-email/link/-/link-0.0.12.tgz","integrity": "sha512-vF+xxQk2fGS1CN7UPQDbzvcBGfffr+GjTPNiWM38fhBfsLv6A/YUfaqxWlmL7zLzVmo0K2cvvV9wxlSyNba1aQ==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15514,6 +15535,7 @@"resolved": "https://registry.npmjs.org/@react-email/preview/-/preview-0.0.13.tgz","integrity": "sha512-F7j9FJ0JN/A4d7yr+aw28p4uX7VLWs7hTHtLo7WRyw4G+Lit6Zucq4UWKRxJC8lpsUdzVmG7aBJnKOT+urqs/w==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -15618,6 +15640,7 @@"resolved": "https://registry.npmjs.org/@react-email/text/-/text-0.1.5.tgz","integrity": "sha512-o5PNHFSE085VMXayxH+SJ1LSOtGsTv+RpNKnTiJDrJUwoBu77G3PlKOsZZQHCNyD28WsQpl9v2WcJLbQudqwPg==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -17729,6 +17752,7 @@"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.23.tgz","integrity": "sha512-yIdlVVVHXpmqRhtyovZAcSy0MiPcYWGkoO4CGe/+jpP0hmNuihm4XhHbADpK++MsiLHP5MVlv+bcgdF99kSiFQ==","license": "MIT",+ "peer": true,"dependencies": {"undici-types": "~6.21.0"}@@ -18219,6 +18243,7 @@"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.20.0.tgz","integrity": "sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w==","dev": true,+ "peer": true,"dependencies": {"@typescript-eslint/scope-manager": "6.20.0","@typescript-eslint/types": "6.20.0",@@ -18677,6 +18702,7 @@"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz","integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==","license": "MIT",+ "peer": true,"bin": {"acorn": "bin/acorn"},@@ -19165,6 +19191,7 @@"resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz","integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==","license": "MIT",+ "peer": true,"dependencies": {"bn.js": "^4.0.0","inherits": "^2.0.1",@@ -19381,6 +19408,7 @@"resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz","integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==","license": "MIT",+ "peer": true,"dependencies": {"follow-redirects": "^1.15.6","form-data": "^4.0.4",@@ -19978,6 +20006,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"baseline-browser-mapping": "^2.8.9","caniuse-lite": "^1.0.30001746",@@ -21391,6 +21420,7 @@"version": "16.4.1","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz","integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",+ "peer": true,"engines": {"node": ">=12"},@@ -21776,6 +21806,7 @@"dev": true,"hasInstallScript": true,"license": "MIT",+ "peer": true,"bin": {"esbuild": "bin/esbuild"},@@ -21858,6 +21889,7 @@"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz","integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==","dev": true,+ "peer": true,"dependencies": {"@eslint-community/eslint-utils": "^4.2.0","@eslint-community/regexpp": "^4.6.1",@@ -21956,6 +21988,7 @@"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz","integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==","dev": true,+ "peer": true,"bin": {"eslint-config-prettier": "bin/cli.js"},@@ -22044,6 +22077,7 @@"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz","integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==","dev": true,+ "peer": true,"dependencies": {"array-includes": "^3.1.7","array.prototype.findlastindex": "^1.2.3",@@ -22455,6 +22489,7 @@"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz","integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==","license": "MIT",+ "peer": true,"dependencies": {"accepts": "~1.3.8","array-flatten": "1.1.1",@@ -22516,7 +22551,6 @@"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz","integrity": "sha512-a5mtTqEaZvBCL9A9aqkrtfz+3SMDhOVUnjafjo+s7A9Txkq+SVX2DLvSp1Zrv4uCXa3lMSK3viWnh9Gg07PBUA==","license": "MIT",- "peer": true,"dependencies": {"cookie": "0.7.2","cookie-signature": "1.0.7",@@ -22534,14 +22568,12 @@"node_modules/express-session/node_modules/cookie-signature": {"version": "1.0.7","resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",- "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",- "peer": true+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA=="},"node_modules/express-session/node_modules/debug": {"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "peer": true,"dependencies": {"ms": "2.0.0"}@@ -22549,8 +22581,7 @@"node_modules/express-session/node_modules/ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",- "peer": true+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="},"node_modules/express/node_modules/cookie": {"version": "0.7.1",@@ -23394,7 +23425,6 @@"integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==","license": "Apache-2.0","optional": true,- "peer": true,"dependencies": {"gaxios": "^5.0.0","json-bigint": "^1.0.0"@@ -23409,7 +23439,6 @@"integrity": "sha512-95hVgBRgEIRQQQHIbnxBXeHbW4TqFk4ZDJW7wmVtvYar72FdhRIo1UGOLS2eRAKCPEdPBWu+M7+A33D9CdX9rA==","license": "Apache-2.0","optional": true,- "peer": true,"dependencies": {"extend": "^3.0.2","https-proxy-agent": "^5.0.0",@@ -29000,7 +29029,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz","integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",- "peer": true,"engines": {"node": ">= 0.8"}@@ -29683,6 +29711,7 @@"version": "3.0.1","resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz","integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==",+ "peer": true,"engines": {"node": ">=10"},@@ -30025,6 +30054,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"nanoid": "^3.3.11","picocolors": "^1.1.1",@@ -30114,6 +30144,7 @@"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz","integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==","license": "MIT",+ "peer": true,"bin": {"prettier": "bin/prettier.cjs"},@@ -30548,7 +30579,6 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz","integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==",- "peer": true,"engines": {"node": ">= 0.8"}@@ -30620,6 +30650,7 @@"resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz","integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==","license": "MIT",+ "peer": true,"engines": {"node": ">=0.10.0"}@@ -30629,6 +30660,7 @@"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz","integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==","license": "MIT",+ "peer": true,"dependencies": {"scheduler": "^0.26.0"},@@ -33405,6 +33437,7 @@"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz","integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==","license": "MIT",+ "peer": true,"dependencies": {"ip-address": "^9.0.5","smart-buffer": "^4.2.0"@@ -34693,6 +34726,7 @@"integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"esbuild": "~0.25.0","get-tsconfig": "^4.7.5"@@ -34860,6 +34894,7 @@"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz","integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==","dev": true,+ "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -34900,7 +34935,6 @@"version": "2.1.5","resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz","integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",- "peer": true,"dependencies": {"random-bytes": "~1.0.0"},@@ -35489,6 +35523,7 @@"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"esbuild": "^0.25.0","fdir": "^6.5.0",@@ -36099,6 +36134,7 @@"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz","integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==","license": "MIT",+ "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/backend/src/server/routes/v1/app-connection-routers/circleci-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/circleci-connection-router.tsindex f3c0a29056..c3de2411e8 100644--- a/backend/src/server/routes/v1/app-connection-routers/circleci-connection-router.ts+++ b/backend/src/server/routes/v1/app-connection-routers/circleci-connection-router.ts@@ -28,21 +28,29 @@ export const registerCircleCIConnectionRouter = async (server: FastifyZodProviderateLimit: readLimit},schema: {- operationId: "listCircleCIProjects",+ operationId: "listCircleCIOrganizations",params: z.object({connectionId: z.string().uuid()}),response: {200: z.object({- projects: z.object({ id: z.string(), name: z.string(), slug: z.string() }).array()+ organizations: z+ .object({+ name: z.string(),+ projects: z.object({ name: z.string(), id: z.string() }).array()+ })+ .array()})}},onRequest: verifyAuth([AuthMode.JWT]),handler: async (req) => {const { connectionId } = req.params;- const projects = await server.services.appConnection.circleci.listProjects(connectionId, req.permission);- return { projects };+ const organizations = await server.services.appConnection.circleci.listOrganizations(+ connectionId,+ req.permission+ );+ return { organizations };}});};diff --git a/backend/src/services/app-connection/circleci/circleci-connection-enums.ts b/backend/src/services/app-connection/circleci/circleci-connection-enums.tsindex 53f230455e..cbd06bacc5 100644--- a/backend/src/services/app-connection/circleci/circleci-connection-enums.ts+++ b/backend/src/services/app-connection/circleci/circleci-connection-enums.ts@@ -1,3 +1,3 @@export enum CircleCIConnectionMethod {- PersonalAccessToken = "personal-access-token"+ ApiToken = "api-token"}diff --git a/backend/src/services/app-connection/circleci/circleci-connection-fns.ts b/backend/src/services/app-connection/circleci/circleci-connection-fns.tsindex 1585b6fba4..a82e2d01c2 100644--- a/backend/src/services/app-connection/circleci/circleci-connection-fns.ts+++ b/backend/src/services/app-connection/circleci/circleci-connection-fns.ts@@ -5,45 +5,44 @@ import { BadRequestError } from "@app/lib/errors";import { AppConnection } from "@app/services/app-connection/app-connection-enums";import { CircleCIConnectionMethod } from "./circleci-connection-enums";-import { TCircleCIConnection, TCircleCIConnectionConfig, TCircleCIProject } from "./circleci-connection-types";+import {+ TCircleCIConnection,+ TCircleCIConnectionConfig,+ TCircleCIOrganization,+ TCircleCIProject+} from "./circleci-connection-types";-export const CIRCLECI_API_URL = "https://circleci.com/api/v2";+export const CIRCLECI_API_URL = "https://circleci.com/api";type TCircleCICollaboration = {- slug?: string;-};--type TCircleCIPipeline = {- project_slug?: string;-};--type TCircleCIPipelineListResponse = {- items: TCircleCIPipeline[];- next_page_token?: string | null;-};--type TCircleCIProjectResponse = {id?: string;name?: string;slug?: string;+ vcs_type?: string;+};++type TCircleCIProjectV1Response = {+ reponame: string;+ username: string;+ vcs_url: string;};export const getCircleCIConnectionListItem = () => {return {name: "CircleCI" as const,app: AppConnection.CircleCI as const,- methods: Object.values(CircleCIConnectionMethod) as [CircleCIConnectionMethod.PersonalAccessToken]+ methods: Object.values(CircleCIConnectionMethod) as [CircleCIConnectionMethod.ApiToken]};};export const validateCircleCIConnectionCredentials = async (config: TCircleCIConnectionConfig) => {- const { credentials: inputCredentials } = config;+ const { credentials } = config;try {// Validate the API token by calling the /me endpoint- await request.get(`${CIRCLECI_API_URL}/me`, {+ await request.get(`${CIRCLECI_API_URL}/v2/me`, {headers: {- "Circle-Token": inputCredentials.apiToken+ "Circle-Token": credentials.apiToken}});} catch (error: unknown) {@@ -57,16 +56,19 @@ export const validateCircleCIConnectionCredentials = async (config: TCircleCICon});}- return inputCredentials;+ return credentials;};-export const listCircleCIProjects = async (appConnection: TCircleCIConnection): Promise<TCircleCIProject[]> => {+export const listCircleCIOrganizations = async (+ appConnection: TCircleCIConnection+): Promise<TCircleCIOrganization[]> => {const { credentials } = appConnection;const { apiToken } = credentials;try {+ // Fetch organizations the user has access to (same as legacy integration)const { data: collaborations } = await request.get<TCircleCICollaboration[]>(- `${CIRCLECI_API_URL}/me/collaborations`,+ `${CIRCLECI_API_URL}/v2/me/collaborations`,{headers: {"Circle-Token": apiToken,@@ -75,71 +77,40 @@ export const listCircleCIProjects = async (appConnection: TCircleCIConnection):});- const orgSlugs = collaborations- .map((org) => org.slug)- .filter((slug): slug is string => Boolean(slug));-- const projectSlugs = new Set<string>();-- for (const orgSlug of orgSlugs) {- let nextPageToken: string | undefined;-- do {- // eslint-disable-next-line no-await-in-loop- const { data } = await request.get<TCircleCIPipelineListResponse>(`${CIRCLECI_API_URL}/pipeline`, {- headers: {- "Circle-Token": apiToken,- "Accept-Encoding": "application/json"- },- params: {- "org-slug": orgSlug,- ...(nextPageToken ? { "page-token": nextPageToken } : {})- }- });-- data.items.forEach((pipeline) => {- if (pipeline.project_slug) {- projectSlugs.add(pipeline.project_slug);- }- });-- nextPageToken = data.next_page_token ?? undefined;- } while (nextPageToken);+ // Fetch all followed projects using the v1.1 API (same as legacy integration)+ const { data: allProjects } = await request.get<TCircleCIProjectV1Response[]>(`${CIRCLECI_API_URL}/v1.1/projects`, {+ headers: {+ "Circle-Token": apiToken,+ "Accept-Encoding": "application/json"+ }+ });++ // Group projects by organization (username field maps to org name)+ const projectsByOrg = new Map<string, TCircleCIProject[]>();+ for (const project of allProjects) {+ const orgName = project.username;+ if (!projectsByOrg.has(orgName)) {+ projectsByOrg.set(orgName, []);+ }++ projectsByOrg.get(orgName)!.push({+ name: project.reponame,+ id: project.vcs_url.split("/").pop()!+ });}- const projects = await Promise.all(- Array.from(projectSlugs).map(async (slug) => {- try {- const { data: project } = await request.get<TCircleCIProjectResponse>(- `${CIRCLECI_API_URL}/project/${encodeURIComponent(slug)}`,- {- headers: {- "Circle-Token": apiToken,- "Accept-Encoding": "application/json"- }- }- );-- return {- id: project.slug || slug,- name: project.name || slug,- slug: project.slug || slug- };- } catch {- return {- id: slug,- name: slug,- slug- };- }- })- );+ const organizations = collaborations+ .filter((org): org is TCircleCICollaboration & { name: string } => Boolean(org.name))+ .map((org) => ({+ name: org.name,+ projects: projectsByOrg.get(org.name) ?? []+ }));- return projects;+ return organizations;} catch (error: unknown) {if (error instanceof AxiosError) {throw new BadRequestError({- message: `Failed to fetch CircleCI projects: ${error.message || "Unknown error"}`+ message: `Failed to fetch CircleCI organizations: ${error.message || "Unknown error"}`});}throw error;diff --git a/backend/src/services/app-connection/circleci/circleci-connection-schemas.ts b/backend/src/services/app-connection/circleci/circleci-connection-schemas.tsindex 11bbb65031..2fbbd8f246 100644--- a/backend/src/services/app-connection/circleci/circleci-connection-schemas.ts+++ b/backend/src/services/app-connection/circleci/circleci-connection-schemas.ts@@ -18,22 +18,20 @@ export const CircleCIConnectionAccessTokenCredentialsSchema = z.object({const BaseCircleCIConnectionSchema = BaseAppConnectionSchema.extend({ app: z.literal(AppConnection.CircleCI) });export const CircleCIConnectionSchema = BaseCircleCIConnectionSchema.extend({- method: z.literal(CircleCIConnectionMethod.PersonalAccessToken),+ method: z.literal(CircleCIConnectionMethod.ApiToken),credentials: CircleCIConnectionAccessTokenCredentialsSchema});export const SanitizedCircleCIConnectionSchema = z.discriminatedUnion("method", [BaseCircleCIConnectionSchema.extend({- method: z.literal(CircleCIConnectionMethod.PersonalAccessToken),+ method: z.literal(CircleCIConnectionMethod.ApiToken),credentials: CircleCIConnectionAccessTokenCredentialsSchema.pick({})}).describe(JSON.stringify({ title: `${APP_CONNECTION_NAME_MAP[AppConnection.CircleCI]} (Personal Access Token)` }))]);export const ValidateCircleCIConnectionCredentialsSchema = z.discriminatedUnion("method", [z.object({- method: z- .literal(CircleCIConnectionMethod.PersonalAccessToken)- .describe(AppConnections.CREATE(AppConnection.CircleCI).method),+ method: z.literal(CircleCIConnectionMethod.ApiToken).describe(AppConnections.CREATE(AppConnection.CircleCI).method),credentials: CircleCIConnectionAccessTokenCredentialsSchema.describe(AppConnections.CREATE(AppConnection.CircleCI).credentials)diff --git a/backend/src/services/app-connection/circleci/circleci-connection-service.ts b/backend/src/services/app-connection/circleci/circleci-connection-service.tsindex 4b34d560c9..96047ff85f 100644--- a/backend/src/services/app-connection/circleci/circleci-connection-service.ts+++ b/backend/src/services/app-connection/circleci/circleci-connection-service.ts@@ -1,7 +1,7 @@import { OrgServiceActor } from "@app/lib/types";import { AppConnection } from "../app-connection-enums";-import { listCircleCIProjects } from "./circleci-connection-fns";+import { listCircleCIOrganizations } from "./circleci-connection-fns";import { TCircleCIConnection } from "./circleci-connection-types";type TGetAppConnectionFunc = (@@ -11,13 +11,13 @@ type TGetAppConnectionFunc = () => Promise<TCircleCIConnection>;export const circleciConnectionService = (getAppConnection: TGetAppConnectionFunc) => {- const listProjects = async (connectionId: string, actor: OrgServiceActor) => {+ const listOrganizations = async (connectionId: string, actor: OrgServiceActor) => {const appConnection = await getAppConnection(AppConnection.CircleCI, connectionId, actor);- const projects = await listCircleCIProjects(appConnection);- return projects;+ const organizations = await listCircleCIOrganizations(appConnection);+ return organizations;};return {- listProjects+ listOrganizations};};diff --git a/backend/src/services/app-connection/circleci/circleci-connection-types.ts b/backend/src/services/app-connection/circleci/circleci-connection-types.tsindex db7c0afc85..3c6797100b 100644--- a/backend/src/services/app-connection/circleci/circleci-connection-types.ts+++ b/backend/src/services/app-connection/circleci/circleci-connection-types.ts@@ -4,8 +4,8 @@ import { DiscriminativePick } from "@app/lib/types";import { AppConnection } from "../app-connection-enums";import {- CreateCircleCIConnectionSchema,CircleCIConnectionSchema,+ CreateCircleCIConnectionSchema,ValidateCircleCIConnectionCredentialsSchema} from "./circleci-connection-schemas";@@ -25,7 +25,11 @@ export type TCircleCIConnectionConfig = DiscriminativePick<};export type TCircleCIProject = {+ name: string;id: string;+};++export type TCircleCIOrganization = {name: string;- slug: string;+ projects: TCircleCIProject[];};diff --git a/backend/src/services/secret-sync/circleci/circleci-sync-fns.ts b/backend/src/services/secret-sync/circleci/circleci-sync-fns.tsindex f6b4ff353c..9199702cf4 100644--- a/backend/src/services/secret-sync/circleci/circleci-sync-fns.ts+++ b/backend/src/services/secret-sync/circleci/circleci-sync-fns.ts@@ -1,35 +1,94 @@+import { AxiosError } from "axios";+import { request } from "@app/lib/config/request";+import { logger } from "@app/lib/logger";import { CIRCLECI_API_URL } from "@app/services/app-connection/circleci";import { SecretSyncError } from "@app/services/secret-sync/secret-sync-errors";import { matchesSchema } from "@app/services/secret-sync/secret-sync-fns";import { SECRET_SYNC_NAME_MAP } from "@app/services/secret-sync/secret-sync-maps";import { TSecretMap } from "@app/services/secret-sync/secret-sync-types";-import { TCircleCIEnvVarListItem, TCircleCIEnvVarListResponse, TCircleCISyncWithCredentials } from "./circleci-sync-types";+import {+ TCircleCIEnvVarListItem,+ TCircleCIEnvVarListResponse,+ TCircleCISyncWithCredentials+} from "./circleci-sync-types";const getHeaders = (apiToken: string) => ({"Circle-Token": apiToken,"Content-Type": "application/json"});-const listEnvVars = async (- secretSync: TCircleCISyncWithCredentials-): Promise<TCircleCIEnvVarListItem[]> => {- const { destinationConfig, connection } = secretSync;- const { projectSlug } = destinationConfig;+const getProjectSlug = async (+ projectId: string,+ projectName: string,+ orgName: string,+ apiToken: string+): Promise<string> => {+ const headers = {+ "Circle-Token": apiToken,+ "Accept-Encoding": "application/json"+ };++ // First attempt: Try to get project details using the project ID+ try {+ const { data: projectDetails } = await request.get<{ slug: string }>(+ `${CIRCLECI_API_URL}/v2/project/${projectId}`,+ { headers }+ );+ return projectDetails.slug;+ } catch (err) {+ if (err instanceof AxiosError) {+ if ((err.response?.data as { message?: string })?.message !== "Not Found") {+ throw new Error("Failed to get project slug from CircleCI during first attempt.");+ }+ }+ }++ // Fallback: Construct slug from org + project name+ try {+ const { data: collaborations } = await request.get<{ slug: string; name: string }[]>(+ `${CIRCLECI_API_URL}/v2/me/collaborations`,+ { headers }+ );++ if (orgName) {+ const org = collaborations.find((o) => o.name === orgName);+ if (org) {+ return `${org.slug}/${projectName}`;+ }+ }++ // Last resort: use first organization+ return `${collaborations[0].slug}/${projectName}`;+ } catch (err) {+ throw new Error("Failed to get project slug from CircleCI during second attempt.");+ }+};++const listEnvVars = async (secretSync: TCircleCISyncWithCredentials): Promise<TCircleCIEnvVarListItem[]> => {+ const { connection, destinationConfig } = secretSync;const { apiToken } = connection.credentials;+ const { projectId, projectName, orgName } = destinationConfig;++ const projectSlug = await getProjectSlug(projectId, projectName, orgName || "", apiToken);++ logger.info(`CircleCI listEnvVars: projectSlug=${projectSlug}`);const envVars: TCircleCIEnvVarListItem[] = [];let nextPageToken: string | undefined;do {- const url = `${CIRCLECI_API_URL}/project/${encodeURIComponent(projectSlug)}/envvar${+ const url = `${CIRCLECI_API_URL}/v2/project/${projectSlug}/envvar${nextPageToken ? `?page-token=${nextPageToken}` : ""}`;// eslint-disable-next-line no-await-in-loopconst response = await request.get<TCircleCIEnvVarListResponse>(url, {- headers: getHeaders(apiToken)+ headers: {+ "Circle-Token": apiToken,+ "Accept-Encoding": "application/json"+ }});envVars.push(...response.data.items);@@ -39,17 +98,8 @@ const listEnvVars = async (return envVars;};-const createOrUpdateEnvVar = async (- secretSync: TCircleCISyncWithCredentials,- name: string,- value: string-) => {- const { destinationConfig, connection } = secretSync;- const { projectSlug } = destinationConfig;- const { apiToken } = connection.credentials;-- // CircleCI uses POST to create env vars - if the variable already exists, it will be updated- const url = `${CIRCLECI_API_URL}/project/${encodeURIComponent(projectSlug)}/envvar`;+const createOrUpdateEnvVar = async (projectId: string, apiToken: string, name: string, value: string) => {+ const url = `${CIRCLECI_API_URL}/v2/project/${projectId}/envvar`;await request.post(url,@@ -60,12 +110,8 @@ const createOrUpdateEnvVar = async ();};-const deleteEnvVar = async (secretSync: TCircleCISyncWithCredentials, name: string) => {- const { destinationConfig, connection } = secretSync;- const { projectSlug } = destinationConfig;- const { apiToken } = connection.credentials;-- const url = `${CIRCLECI_API_URL}/project/${encodeURIComponent(projectSlug)}/envvar/${encodeURIComponent(name)}`;+const deleteEnvVar = async (projectId: string, apiToken: string, name: string) => {+ const url = `${CIRCLECI_API_URL}/v2/project/${projectId}/envvar/${encodeURIComponent(name)}`;await request.delete(url, {headers: getHeaders(apiToken)@@ -74,14 +120,21 @@ const deleteEnvVar = async (secretSync: TCircleCISyncWithCredentials, name: striexport const CircleCISyncFns = {syncSecrets: async (secretSync: TCircleCISyncWithCredentials, secretMap: TSecretMap): Promise<void> => {+ const { destinationConfig, connection } = secretSync;+ const { projectId, projectName, orgName } = destinationConfig;+ const { apiToken } = connection.credentials;++ const projectSlug = await getProjectSlug(projectId, projectName, orgName || "", apiToken);++ logger.info(`CircleCI syncSecrets: projectSlug=${projectSlug}`);+// Get existing environment variablesconst existingEnvVars = await listEnvVars(secretSync);- const existingEnvVarNames = new Set(existingEnvVars.map((envVar) => envVar.name));// Create or update secrets- for (const [key, secretData] of Object.entries(secretMap)) {+ for await (const [key, secretData] of Object.entries(secretMap)) {try {- await createOrUpdateEnvVar(secretSync, key, secretData.value);+ await createOrUpdateEnvVar(projectSlug, apiToken, key, secretData.value);} catch (error) {throw new SecretSyncError({error,@@ -92,17 +145,15 @@ export const CircleCISyncFns = {// Delete secrets that exist in CircleCI but not in the source (if deletion is not disabled)if (!secretSync.syncOptions.disableSecretDeletion) {- for (const existingEnvVar of existingEnvVars) {- // Skip if the secret doesn't match the schema pattern+ for await (const existingEnvVar of existingEnvVars) {if (!matchesSchema(existingEnvVar.name, secretSync.environment?.slug || "", secretSync.syncOptions.keySchema)) {// eslint-disable-next-line no-continuecontinue;}- // Delete if it exists in CircleCI but not in the source secret mapif (!(existingEnvVar.name in secretMap)) {try {- await deleteEnvVar(secretSync, existingEnvVar.name);+ await deleteEnvVar(projectSlug, apiToken, existingEnvVar.name);} catch (error) {throw new SecretSyncError({error,@@ -121,15 +172,22 @@ export const CircleCISyncFns = {},removeSecrets: async (secretSync: TCircleCISyncWithCredentials, secretMap: TSecretMap): Promise<void> => {+ const { destinationConfig, connection } = secretSync;+ const { projectId, projectName, orgName } = destinationConfig;+ const { apiToken } = connection.credentials;++ // Get the full project slug+ const projectSlug = await getProjectSlug(projectId, projectName, orgName || "", apiToken);+// Get existing environment variablesconst existingEnvVars = await listEnvVars(secretSync);const existingEnvVarNames = new Set(existingEnvVars.map((envVar) => envVar.name));// Only remove secrets that exist both in CircleCI and in the provided secret map- for (const key of Object.keys(secretMap)) {+ for await (const key of Object.keys(secretMap)) {if (existingEnvVarNames.has(key)) {try {- await deleteEnvVar(secretSync, key);+ await deleteEnvVar(projectSlug, apiToken, key);} catch (error) {throw new SecretSyncError({error,diff --git a/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts b/backend/src/services/secret-sync/circleci/circleci-sync-schemas.tsindex 0da1b77bd9..fdcc638854 100644--- a/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts+++ b/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts@@ -13,18 +13,13 @@ import { TSyncOptionsConfig } from "@app/services/secret-sync/secret-sync-types"import { SECRET_SYNC_NAME_MAP } from "../secret-sync-maps";const CircleCISyncDestinationConfigSchema = z.object({- projectSlug: z- .string()- .min(1, "Project slug is required")- .describe(SecretSyncs.DESTINATION_CONFIG.CIRCLECI.projectSlug),- projectName: z- .string()- .min(1, "Project name is required")- .describe(SecretSyncs.DESTINATION_CONFIG.CIRCLECI.projectName)- .optional()+ orgName: z.string().trim().min(1, "Organization is required"),+ projectName: z.string().trim().min(1, "Project is required"),+ projectId: z.string().trim().min(1, "Project ID is required")});const CreateCircleCISyncDestinationConfigSchema = CircleCISyncDestinationConfigSchema.extend({+ orgName: z.string().min(1, "Organization name is required"),projectName: z.string().min(1, "Project name is required")diff --git a/backend/src/services/secret-sync/secret-sync-fns.ts b/backend/src/services/secret-sync/secret-sync-fns.tsindex ffefe603ee..a3b5510622 100644--- a/backend/src/services/secret-sync/secret-sync-fns.ts+++ b/backend/src/services/secret-sync/secret-sync-fns.ts@@ -33,9 +33,9 @@ import { AZURE_DEVOPS_SYNC_LIST_OPTION, azureDevOpsSyncFactory } from "./azure-dimport { AZURE_KEY_VAULT_SYNC_LIST_OPTION, azureKeyVaultSyncFactory } from "./azure-key-vault";import { BITBUCKET_SYNC_LIST_OPTION, BitbucketSyncFns } from "./bitbucket";import { CAMUNDA_SYNC_LIST_OPTION, camundaSyncFactory } from "./camunda";-import { CIRCLECI_SYNC_LIST_OPTION, CircleCISyncFns } from "./circleci";import { CHECKLY_SYNC_LIST_OPTION } from "./checkly/checkly-sync-constants";import { ChecklySyncFns } from "./checkly/checkly-sync-fns";+import { CIRCLECI_SYNC_LIST_OPTION, CircleCISyncFns } from "./circleci";import { CLOUDFLARE_PAGES_SYNC_LIST_OPTION } from "./cloudflare-pages/cloudflare-pages-constants";import { CloudflarePagesSyncFns } from "./cloudflare-pages/cloudflare-pages-fns";import { CLOUDFLARE_WORKERS_SYNC_LIST_OPTION, CloudflareWorkersSyncFns } from "./cloudflare-workers";diff --git a/docs/docs.json b/docs/docs.jsonindex 7ecbbd0568..3e6d3fc5a0 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -117,6 +117,7 @@"integrations/app-connections/bitbucket","integrations/app-connections/camunda","integrations/app-connections/checkly",+ "integrations/app-connections/circleci","integrations/app-connections/chef","integrations/app-connections/cloudflare","integrations/app-connections/databricks",@@ -555,6 +556,7 @@"integrations/secret-syncs/bitbucket","integrations/secret-syncs/camunda","integrations/secret-syncs/checkly",+ "integrations/secret-syncs/circleci","integrations/secret-syncs/chef","integrations/secret-syncs/cloudflare-pages","integrations/secret-syncs/cloudflare-workers",@@ -1263,6 +1265,17 @@"api-reference/endpoints/app-connections/checkly/delete"]},+ {+ "group": "CircleCI",+ "pages": [+ "api-reference/endpoints/app-connections/circleci/list",+ "api-reference/endpoints/app-connections/circleci/get-by-id",+ "api-reference/endpoints/app-connections/circleci/get-by-name",+ "api-reference/endpoints/app-connections/circleci/create",+ "api-reference/endpoints/app-connections/circleci/update",+ "api-reference/endpoints/app-connections/circleci/delete"+ ]+ },{"group": "Chef","pages": [@@ -2252,6 +2265,19 @@"api-reference/endpoints/secret-syncs/checkly/remove-secrets"]},+ {+ "group": "CircleCI",+ "pages": [+ "api-reference/endpoints/secret-syncs/circleci/list",+ "api-reference/endpoints/secret-syncs/circleci/get-by-id",+ "api-reference/endpoints/secret-syncs/circleci/get-by-name",+ "api-reference/endpoints/secret-syncs/circleci/create",+ "api-reference/endpoints/secret-syncs/circleci/update",+ "api-reference/endpoints/secret-syncs/circleci/delete",+ "api-reference/endpoints/secret-syncs/circleci/sync-secrets",+ "api-reference/endpoints/secret-syncs/circleci/remove-secrets"+ ]+ },{"group": "Chef","pages": [diff --git a/docs/images/app-connections/circleci/circleci-app-connection-form.png b/docs/images/app-connections/circleci/circleci-app-connection-form.pngnew file mode 100644index 0000000000..f5005ec015Binary files /dev/null and b/docs/images/app-connections/circleci/circleci-app-connection-form.png differdiff --git a/docs/images/app-connections/circleci/circleci-app-connection-generated.png b/docs/images/app-connections/circleci/circleci-app-connection-generated.pngnew file mode 100644index 0000000000..02ecad440cBinary files /dev/null and b/docs/images/app-connections/circleci/circleci-app-connection-generated.png differdiff --git a/docs/images/app-connections/circleci/circleci-app-connection-option.png b/docs/images/app-connections/circleci/circleci-app-connection-option.pngnew file mode 100644index 0000000000..05c06d1c6fBinary files /dev/null and b/docs/images/app-connections/circleci/circleci-app-connection-option.png differdiff --git a/docs/images/app-connections/circleci/circleci-create-new-token.png b/docs/images/app-connections/circleci/circleci-create-new-token.pngnew file mode 100644index 0000000000..7097d49a0eBinary files /dev/null and b/docs/images/app-connections/circleci/circleci-create-new-token.png differdiff --git a/docs/images/app-connections/circleci/circleci-dashboard.png b/docs/images/app-connections/circleci/circleci-dashboard.pngnew file mode 100644index 0000000000..da32d5fb59Binary files /dev/null and b/docs/images/app-connections/circleci/circleci-dashboard.png differdiff --git a/docs/images/app-connections/circleci/circleci-settings.png b/docs/images/app-connections/circleci/circleci-settings.pngnew file mode 100644index 0000000000..cf64cef305Binary files /dev/null and b/docs/images/app-connections/circleci/circleci-settings.png differdiff --git a/docs/images/secret-syncs/circleci/select-option.png b/docs/images/secret-syncs/circleci/select-option.pngnew file mode 100644index 0000000000..f1f908f623Binary files /dev/null and b/docs/images/secret-syncs/circleci/select-option.png differdiff --git a/docs/images/secret-syncs/circleci/sync-created.png b/docs/images/secret-syncs/circleci/sync-created.pngnew file mode 100644index 0000000000..b7fc60d52cBinary files /dev/null and b/docs/images/secret-syncs/circleci/sync-created.png differdiff --git a/docs/images/secret-syncs/circleci/sync-destination.png b/docs/images/secret-syncs/circleci/sync-destination.pngnew file mode 100644index 0000000000..d686223417Binary files /dev/null and b/docs/images/secret-syncs/circleci/sync-destination.png differdiff --git a/docs/images/secret-syncs/circleci/sync-details.png b/docs/images/secret-syncs/circleci/sync-details.pngnew file mode 100644index 0000000000..7510e99adbBinary files /dev/null and b/docs/images/secret-syncs/circleci/sync-details.png differdiff --git a/docs/images/secret-syncs/circleci/sync-options.png b/docs/images/secret-syncs/circleci/sync-options.pngnew file mode 100644index 0000000000..e65aa47b69Binary files /dev/null and b/docs/images/secret-syncs/circleci/sync-options.png differdiff --git a/docs/images/secret-syncs/circleci/sync-review.png b/docs/images/secret-syncs/circleci/sync-review.pngnew file mode 100644index 0000000000..be902df6b1Binary files /dev/null and b/docs/images/secret-syncs/circleci/sync-review.png differdiff --git a/docs/images/secret-syncs/circleci/sync-source.png b/docs/images/secret-syncs/circleci/sync-source.pngnew file mode 100644index 0000000000..071bf05332Binary files /dev/null and b/docs/images/secret-syncs/circleci/sync-source.png differdiff --git a/docs/integrations/app-connections/circleci.mdx b/docs/integrations/app-connections/circleci.mdxnew file mode 100644index 0000000000..9191b06a38--- /dev/null+++ b/docs/integrations/app-connections/circleci.mdx@@ -0,0 +1,104 @@+---+title: "CircleCI Connection"+description: "Learn how to configure a CircleCI Connection for Infisical."+---++Infisical supports the use of [API Tokens](https://app.circleci.com/settings/user/tokens) to connect with CircleCI.+<Note>+ CircleCI requires the account user to have Read/Write or Admin permissions+</Note>++## Create a CircleCI API Token++<Steps>+ <Step title="Click the profile image in the top-right corner and select 'User Settings'">+ + </Step>+ <Step title="In the user settings sidebar, select 'Personal API Tokens'">++ Click the "**Create new token**" button to create a new personal API token.+ + </Step>+ <Step title="Set a name for the token and click 'Add API Token'">+ After creating the token, save the shown token value as it will not be shown again.+ You will need this token to configure your Infisical connection++ + </Step>+</Steps>++## Create a CircleCI Connection in Infisical++<Tabs>+ <Tab title="Infisical UI">+ <Steps>+ <Step title="Navigate to App Connections">+ In your Infisical dashboard, navigate to the **App Connections** page in the desired project.++ + </Step>+ <Step title="Select CircleCI Connection">+ Click **+ Add Connection** and choose **CircleCI Connection** from the list of integrations.++ + </Step>+ <Step title="Fill out the CircleCI Connection form">+ Complete the form by providing:+ - A descriptive name for the connection+ - An optional description+ - The API Token value from the previous step++ + </Step>+ <Step title="Connection created">+ After submitting the form, your **CircleCI Connection** will be successfully created and ready to use with your Infisical project.++ + </Step>+ </Steps>++ </Tab>++ <Tab title="API">+ To create a CircleCI Connection via API, send a request to the [Create CircleCI Connection](/api-reference/endpoints/app-connections/circleci/create) endpoint.++ ### Sample request++ ```bash Request+ curl --request POST \+ --url https://app.infisical.com/api/v1/app-connections/circleci \+ --header 'Content-Type: application/json' \+ --data '{+ "name": "my-circleci-connection",+ "method": "api-token",+ "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",+ "credentials": {+ "apiKey": "[API KEY]"+ }+ }'+ ```++ ### Sample response++ ```bash Response+ {+ "appConnection": {+ "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",+ "name": "my-circleci-connection",+ "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",+ "description": null,+ "version": 1,+ "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",+ "createdAt": "2025-04-23T19:46:34.831Z",+ "updatedAt": "2025-04-23T19:46:34.831Z",+ "isPlatformManagedCredentials": false,+ "credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",+ "app": "circleci",+ "method": "api-key",+ "credentials": {}+ }+ }+ ```++ </Tab>+</Tabs>diff --git a/docs/integrations/secret-syncs/circleci.mdx b/docs/integrations/secret-syncs/circleci.mdxnew file mode 100644index 0000000000..464765580f--- /dev/null+++ b/docs/integrations/secret-syncs/circleci.mdx@@ -0,0 +1,166 @@+---+title: "CircleCI Sync"+description: "Learn how to configure a CircleCI Sync for Infisical."+---++**Prerequisites:**++- Create a [CircleCI Connection](/integrations/app-connections/circleci)++<Tabs>+ <Tab title="Infisical UI">+ <Steps>+ <Step title="Add Sync">+ Navigate to **Project** > **Integrations** and select the **Secret Syncs** tab. Click on the **Add Sync** button.++ + </Step>+ <Step title="Select 'CircleCI'">+ + </Step>+ <Step title="Configure source">+ Configure the **Source** from where secrets should be retrieved, then click **Next**.++ ++ - **Environment**: The project environment to retrieve secrets from.+ - **Secret Path**: The folder path to retrieve secrets from.++ <Tip>+ If you need to sync secrets from multiple folder locations, check out [secret imports](/documentation/platform/secret-reference#secret-imports).+ </Tip>+ </Step>+ <Step title="Configure destination">+ Configure the **Destination** to where secrets should be deployed, then click **Next**.++ ++ - **CircleCI Connection**: The CircleCI Connection to authenticate with.+ - **Organization**: The CircleCI organization to sync secrets to.+ - **Project**: The CircleCI project to sync secrets to.+ </Step>+ <Step title="Configure Sync Options">+ Configure the **Sync Options** to specify how secrets should be synced, then click **Next**.++ ++ - **Initial Sync Behavior**: Determines how Infisical should resolve the initial sync.+ - **Overwrite Destination Secrets**: Removes any secrets at the destination endpoint not present in Infisical.+ <Note>+ CircleCI does not support importing secrets.+ </Note>+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.+ <Note>+ We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.+ </Note>+ - **Auto-Sync Enabled**: If enabled, secrets will automatically be synced from the source location when changes occur. Disable to enforce manual syncing only.+ - **Disable Secret Deletion**: If enabled, Infisical will not remove secrets from the sync destination. Enable this option if you intend to manage some secrets manually outside of Infisical.+ </Step>+ <Step title="Configure details">+ Configure the **Details** of your CircleCI Sync, then click **Next**.++ ++ - **Name**: The name of your sync. Must be slug-friendly.+ - **Description**: An optional description for your sync.+ </Step>+ <Step title="Review configuration">+ Review your CircleCI Sync configuration, then click **Create Sync**.++ + </Step>+ <Step title="Sync created">+ If enabled, your CircleCI Sync will begin syncing your secrets to the destination endpoint.++ + </Step>+ </Steps>+ </Tab>+ <Tab title="API">+ To create a **CircleCI Sync**, make an API request to the [Create CircleCI Sync](/api-reference/endpoints/secret-syncs/circleci/create) API endpoint.++ ### Sample request++ ```bash Request+ curl --request POST \+ --url https://app.infisical.com/api/v1/secret-syncs/circleci \+ --header 'Content-Type: application/json' \+ --data '{+ "name": "my-circleci-sync",+ "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "description": "an example sync",+ "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "environment": "dev",+ "secretPath": "/my-secrets",+ "isEnabled": true,+ "syncOptions": {+ "initialSyncBehavior": "overwrite-destination",+ "autoSyncEnabled": true,+ "disableSecretDeletion": false+ },+ "destinationConfig": {+ "orgName": "my-circleci-org",+ "projectId": "<circleci-project-id>",+ "projectName": "<circleci-project-name>"+ }+ }'+ ```++ ### Sample response++ ```bash Response+ {+ "secretSync": {+ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "name": "my-circleci-sync",+ "description": "an example sync",+ "isEnabled": true,+ "version": 1,+ "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "createdAt": "2023-11-07T05:31:56Z",+ "updatedAt": "2023-11-07T05:31:56Z",+ "syncStatus": "succeeded",+ "lastSyncJobId": "123",+ "lastSyncMessage": null,+ "lastSyncedAt": "2023-11-07T05:31:56Z",+ "importStatus": null,+ "lastImportJobId": null,+ "lastImportMessage": null,+ "lastImportedAt": null,+ "removeStatus": null,+ "lastRemoveJobId": null,+ "lastRemoveMessage": null,+ "lastRemovedAt": null,+ "syncOptions": {+ "initialSyncBehavior": "overwrite-destination",+ "autoSyncEnabled": true,+ "disableSecretDeletion": false+ },+ "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "connection": {+ "app": "circleci",+ "name": "my-circleci-connection",+ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"+ },+ "environment": {+ "slug": "dev",+ "name": "Development",+ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"+ },+ "folder": {+ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "path": "/my-secrets"+ },+ "destination": "circleci",+ "destinationConfig": {+ "orgName": "my-circleci-org",+ "projectName": "<circleci-project-name>",+ "projectId": "<circleci-project-id>"+ }+ }+ }+ ```+ </Tab>++</Tabs>diff --git a/docs/snippets/AppConnectionsBrowser.jsx b/docs/snippets/AppConnectionsBrowser.jsxindex 0314b5ebfd..7aa875ba03 100644--- a/docs/snippets/AppConnectionsBrowser.jsx+++ b/docs/snippets/AppConnectionsBrowser.jsx@@ -227,6 +227,14 @@ export const AppConnectionsBrowser = () => {"Learn how to connect your Cloudflare application to pull secrets from Infisical.",category: "Cloud Providers",},+ {+ name: "CircleCI",+ slug: "circleci",+ path: "/integrations/app-connections/circleci",+ description:+ "Learn how to connect your CircleCI application to pull secrets from Infisical.",+ category: "CI/CD",+ },{name: "Databricks",slug: "databricks",diff --git a/docs/snippets/SecretSyncsBrowser.jsx b/docs/snippets/SecretSyncsBrowser.jsxindex 0f433c4caa..6a36117ac5 100644--- a/docs/snippets/SecretSyncsBrowser.jsx+++ b/docs/snippets/SecretSyncsBrowser.jsx@@ -24,6 +24,7 @@ export const SecretSyncsBrowser = () => {{"name": "DigitalOcean App Platform", "slug": "digital-ocean-app-platform", "path": "/integrations/secret-syncs/digital-ocean-app-platform", "description": "Learn how to sync secrets from Infisical to DigitalOcean App Platform.", "category": "Hosting"},{"name": "Supabase", "slug": "supabase", "path": "/integrations/secret-syncs/supabase", "description": "Learn how to sync secrets from Infisical to Supabase.", "category": "Databases"},{"name": "Checkly", "slug": "checkly", "path": "/integrations/secret-syncs/checkly", "description": "Learn how to sync secrets from Infisical to Checkly.", "category": "Monitoring"},+ {"name": "CircleCI", "slug": "circleci", "path": "/integrations/secret-syncs/circleci", "description": "Learn how to sync secrets from Infisical to CircleCI.", "category": "CI/CD"},{"name": "GitHub", "slug": "github", "path": "/integrations/secret-syncs/github", "description": "Learn how to sync secrets from Infisical to GitHub.", "category": "CI/CD"},{"name": "GitLab", "slug": "gitlab", "path": "/integrations/secret-syncs/gitlab", "description": "Learn how to sync secrets from Infisical to GitLab.", "category": "CI/CD"},{"name": "TeamCity", "slug": "teamcity", "path": "/integrations/secret-syncs/teamcity", "description": "Learn how to sync secrets from Infisical to TeamCity.", "category": "CI/CD"},diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 1d6da021f8..ed44c96cbd 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -153,8 +153,7 @@"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz","integrity": "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/@alloc/quick-lru": {"version": "5.2.0",@@ -199,6 +198,7 @@"integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@babel/code-frame": "^7.27.1","@babel/generator": "^7.28.3",@@ -491,6 +491,7 @@"resolved": "https://registry.npmjs.org/@casl/ability/-/ability-6.7.2.tgz","integrity": "sha512-KjKXlcjKbUz8dKw7PY56F7qlfOFgxTU6tnlJ8YrbDyWkJMIlHa6VRWzCD8RU20zbJUC1hExhOFggZjm6tf1mUw==","license": "MIT",+ "peer": true,"dependencies": {"@ucast/mongo2js": "^1.3.0"},@@ -549,6 +550,7 @@"resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz","integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==","license": "MIT",+ "peer": true,"dependencies": {"@dnd-kit/accessibility": "^3.1.1","@dnd-kit/utilities": "^3.2.2",@@ -1326,6 +1328,7 @@"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.7.1.tgz","integrity": "sha512-8dBIHbfsKlCk2jHQ9PoRBg2Z+4TwyE3vZICSnoDlnsHA6SiMlTwfmW6yX0lHsRmWJugkeb92sA0hZdkXJhuz+g==","license": "MIT",+ "peer": true,"dependencies": {"@fortawesome/fontawesome-common-types": "6.7.1"},@@ -2016,6 +2019,7 @@"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz","integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==","license": "MIT",+ "peer": true,"dependencies": {"@octokit/auth-token": "^5.0.0","@octokit/graphql": "^8.0.0",@@ -4496,6 +4500,7 @@"integrity": "sha512-RnO1SaiCFHn666wNz2QfZEFxvmiNRqhzaMXHXxXXKt+MEP7aajlPxUSMIQpKAaJfverpovEYqjBOXDq6dDcaOQ==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@typescript-eslint/utils": "^8.13.0","eslint-visitor-keys": "^4.2.0",@@ -5121,6 +5126,7 @@"resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.95.1.tgz","integrity": "sha512-P5x4yNhcdkYsCEoYeGZP8Q9Jlxf0WXJa4G/xvbmM905seZc9FqJqvCSRvX3dWTPOXRABhl4g+8DHqfft0c/AvQ==","license": "MIT",+ "peer": true,"dependencies": {"@tanstack/history": "1.95.0","@tanstack/react-store": "^0.7.0",@@ -5332,7 +5338,6 @@"integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@babel/code-frame": "^7.10.4","@babel/runtime": "^7.12.5",@@ -5353,7 +5358,6 @@"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==","dev": true,"license": "Apache-2.0",- "peer": true,"dependencies": {"dequal": "^2.0.3"}@@ -5364,7 +5368,6 @@"integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@adobe/css-tools": "^4.4.0","aria-query": "^5.0.0",@@ -5384,8 +5387,7 @@"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz","integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/@testing-library/user-event": {"version": "14.6.1",@@ -5393,7 +5395,6 @@"integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=12","npm": ">=6"@@ -5414,8 +5415,7 @@"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz","integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/@types/babel__core": {"version": "7.20.5",@@ -5468,7 +5468,6 @@"integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@types/deep-eql": "*","assertion-error": "^2.0.1"@@ -5542,8 +5541,7 @@"resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz","integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/@types/doctrine": {"version": "0.0.9",@@ -5679,6 +5677,7 @@"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.16.tgz","integrity": "sha512-oh8AMIC4Y2ciKufU8hnKgs+ufgbA/dhPTACaZPM86AbwX9QwnFtSoPWEeRUj8fge+v6kFt78BXcDhAU1SrrAsw==","license": "MIT",+ "peer": true,"dependencies": {"@types/prop-types": "*","csstype": "^3.0.2"@@ -5690,6 +5689,7 @@"integrity": "sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==","devOptional": true,"license": "MIT",+ "peer": true,"peerDependencies": {"@types/react": "^18.0.0"}@@ -5737,6 +5737,7 @@"integrity": "sha512-QXwAlHlbcAwNlEEMKQS2RCgJsgXrTJdjXT08xEgbPFa2yYQgVjBymxP5DrfrE7X7iodSzd9qBUHUycdyVJTW1w==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@eslint-community/regexpp": "^4.10.0","@typescript-eslint/scope-manager": "8.34.0",@@ -5777,6 +5778,7 @@"integrity": "sha512-vxXJV1hVFx3IXz/oy2sICsJukaBrtDEQSBiV48/YIV5KWjX1dO+bcIr/kCPrW6weKXvsaGKFNlwH0v2eYdRRbA==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@typescript-eslint/scope-manager": "8.34.0","@typescript-eslint/types": "8.34.0",@@ -6048,7 +6050,6 @@"integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@types/chai": "^5.2.2","@vitest/spy": "3.2.4",@@ -6066,7 +6067,6 @@"integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@vitest/spy": "3.2.4","estree-walker": "^3.0.3",@@ -6094,7 +6094,6 @@"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@types/estree": "^1.0.0"}@@ -6105,7 +6104,6 @@"integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"tinyrainbow": "^2.0.0"},@@ -6119,7 +6117,6 @@"integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"tinyspy": "^4.0.3"},@@ -6133,7 +6130,6 @@"integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@vitest/pretty-format": "3.2.4","loupe": "^3.1.4",@@ -6207,6 +6203,7 @@"integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==","dev": true,"license": "MIT",+ "peer": true,"bin": {"acorn": "bin/acorn"},@@ -6323,7 +6320,6 @@"integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==","dev": true,"license": "Apache-2.0",- "peer": true,"engines": {"node": ">= 0.4"}@@ -6372,7 +6368,6 @@"integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"call-bind": "^1.0.7","define-properties": "^1.2.1",@@ -6453,7 +6448,6 @@"integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"call-bind": "^1.0.7","define-properties": "^1.2.1",@@ -6541,7 +6535,6 @@"integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=12"}@@ -6552,7 +6545,6 @@"integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"tslib": "^2.0.1"},@@ -6565,8 +6557,7 @@"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz","integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/asynckit": {"version": "0.4.0",@@ -6616,7 +6607,6 @@"integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==","dev": true,"license": "Apache-2.0",- "peer": true,"engines": {"node": ">= 0.4"}@@ -6718,7 +6708,6 @@"integrity": "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"open": "^8.0.4"},@@ -6955,6 +6944,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"baseline-browser-mapping": "^2.8.9","caniuse-lite": "^1.0.30001746",@@ -7136,7 +7126,6 @@"integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"assertion-error": "^2.0.1","check-error": "^2.1.1",@@ -7207,7 +7196,6 @@"integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">= 16"}@@ -7593,8 +7581,7 @@"resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz","integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/cssesc": {"version": "3.0.0",@@ -7613,7 +7600,8 @@"version": "3.1.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz","integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/cva": {"name": "class-variance-authority",@@ -7685,6 +7673,7 @@"resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz","integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==","license": "ISC",+ "peer": true,"engines": {"node": ">=12"}@@ -7738,8 +7727,7 @@"resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz","integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==","dev": true,- "license": "BSD-2-Clause",- "peer": true+ "license": "BSD-2-Clause"},"node_modules/data-view-buffer": {"version": "1.0.1",@@ -7849,7 +7837,6 @@"integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=6"}@@ -7884,7 +7871,6 @@"integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=8"}@@ -8006,8 +7992,7 @@"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz","integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/dom-helpers": {"version": "5.2.1",@@ -8217,7 +8202,6 @@"integrity": "sha512-tpxqxncxnpw3c93u8n3VOzACmRFoVmWJqbWXvX/JfKbkhBw1oslgPrUfeSt2psuqyEJFD6N/9lg5i7bsKpoq+Q==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"call-bind": "^1.0.7","define-properties": "^1.2.1",@@ -8301,6 +8285,7 @@"dev": true,"hasInstallScript": true,"license": "MIT",+ "peer": true,"bin": {"esbuild": "bin/esbuild"},@@ -8342,7 +8327,6 @@"integrity": "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"debug": "^4.3.4"},@@ -8379,6 +8363,7 @@"deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@eslint-community/eslint-utils": "^4.2.0","@eslint-community/regexpp": "^4.6.1",@@ -8435,6 +8420,7 @@"integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"eslint-config-airbnb-base": "^15.0.0","object.assign": "^4.1.2",@@ -8457,6 +8443,7 @@"integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"confusing-browser-globals": "^1.0.10","object.assign": "^4.1.2",@@ -8487,6 +8474,7 @@"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==","dev": true,"license": "MIT",+ "peer": true,"bin": {"eslint-config-prettier": "bin/cli.js"},@@ -8586,6 +8574,7 @@"integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@rtsao/scc": "^1.1.0","array-includes": "^3.1.8",@@ -8715,7 +8704,6 @@"integrity": "sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"array-includes": "^3.1.8","array.prototype.findlast": "^1.2.5",@@ -8749,6 +8737,7 @@"integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==","dev": true,"license": "MIT",+ "peer": true,"engines": {"node": ">=10"},@@ -8772,7 +8761,6 @@"integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==","dev": true,"license": "Apache-2.0",- "peer": true,"dependencies": {"esutils": "^2.0.2"},@@ -8786,7 +8774,6 @@"integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"is-core-module": "^2.13.0","path-parse": "^1.0.7",@@ -8805,7 +8792,6 @@"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==","dev": true,"license": "ISC",- "peer": true,"bin": {"semver": "bin/semver.js"}@@ -8967,7 +8953,6 @@"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==","dev": true,"license": "BSD-2-Clause",- "peer": true,"bin": {"esparse": "bin/esparse.js","esvalidate": "bin/esvalidate.js"@@ -9998,6 +9983,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"@babel/runtime": "^7.23.2"},@@ -10091,7 +10077,6 @@"integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=8"}@@ -10368,7 +10353,6 @@"integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==","dev": true,"license": "MIT",- "peer": true,"bin": {"is-docker": "cli.js"},@@ -10690,7 +10674,6 @@"integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"is-docker": "^2.0.0"},@@ -10726,7 +10709,6 @@"resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.5.tgz","integrity": "sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==","license": "MIT",- "peer": true,"funding": {"type": "GitHub Sponsors ❤","url": "https://github.com/sponsors/dmonad"@@ -10738,7 +10720,6 @@"integrity": "sha512-x4WH0BWmrMmg4oHHl+duwubhrvczGlyuGAZu3nvrf0UXOfPu8IhZObFEr7DE/iv01YgVZrsOiRcqw2srkKEDIA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"define-data-property": "^1.1.4","es-object-atoms": "^1.0.0",@@ -10888,7 +10869,6 @@"integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"array-includes": "^3.1.6","array.prototype.flat": "^1.3.1",@@ -10923,8 +10903,7 @@"resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz","integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==","dev": true,- "license": "CC0-1.0",- "peer": true+ "license": "CC0-1.0"},"node_modules/language-tags": {"version": "1.0.9",@@ -10932,7 +10911,6 @@"integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"language-subtag-registry": "^0.3.20"},@@ -10965,7 +10943,6 @@"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.102.tgz","integrity": "sha512-g70kydI0I1sZU0ChO8mBbhw0oUW/8U0GHzygpvEIx8k+jgOpqnTSb/E+70toYVqHxBhrERD21TwD5QcZJQ40ZQ==","license": "MIT",- "peer": true,"dependencies": {"isomorphic.js": "^0.2.4"},@@ -11290,8 +11267,7 @@"resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz","integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/lru-cache": {"version": "5.1.1",@@ -11318,7 +11294,6 @@"integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==","dev": true,"license": "MIT",- "peer": true,"bin": {"lz-string": "bin/bin.js"}@@ -12010,7 +11985,6 @@"integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=4"}@@ -12359,7 +12333,6 @@"integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"define-lazy-prop": "^2.0.0","is-docker": "^2.1.1",@@ -12629,7 +12602,6 @@"integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">= 14.16"}@@ -12781,6 +12753,7 @@"integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==","dev": true,"license": "MIT",+ "peer": true,"bin": {"prettier": "bin/prettier.cjs"},@@ -12897,7 +12870,6 @@"integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"ansi-regex": "^5.0.1","ansi-styles": "^5.0.0",@@ -12913,7 +12885,6 @@"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=10"},@@ -12926,8 +12897,7 @@"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz","integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/prismjs": {"version": "1.30.0",@@ -13128,6 +13098,7 @@"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz","integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==","license": "MIT",+ "peer": true,"dependencies": {"loose-envify": "^1.1.0"},@@ -13155,6 +13126,7 @@"resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz","integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==","license": "MIT",+ "peer": true,"dependencies": {"loose-envify": "^1.1.0","object-assign": "^4.1.1",@@ -13246,6 +13218,7 @@"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz","integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==","license": "MIT",+ "peer": true,"dependencies": {"loose-envify": "^1.1.0","scheduler": "^0.23.2"@@ -13296,6 +13269,7 @@"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.3.tgz","integrity": "sha512-IK18V6GVbab4TAo1/cz3kqajxbDPGofdF0w7VHdCo0Nt8PrPlOZcuuDq9YYIV1BtjcX78x0XsldbQRQnQXWXmw==","license": "MIT",+ "peer": true,"engines": {"node": ">=18.0.0"},@@ -13546,7 +13520,6 @@"integrity": "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"ast-types": "^0.16.1","esprima": "~4.0.0",@@ -13564,7 +13537,6 @@"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==","dev": true,"license": "BSD-3-Clause",- "peer": true,"engines": {"node": ">=0.10.0"}@@ -13581,7 +13553,6 @@"integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"indent-string": "^4.0.0","strip-indent": "^3.0.0"@@ -13596,7 +13567,6 @@"integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"min-indent": "^1.0.0"},@@ -13811,6 +13781,7 @@"integrity": "sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@types/estree": "1.0.8"},@@ -14321,7 +14292,6 @@"integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"call-bind": "^1.0.7","define-properties": "^1.2.1",@@ -14337,7 +14307,6 @@"integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"call-bind": "^1.0.7","define-properties": "^1.2.1",@@ -14365,7 +14334,6 @@"integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"define-properties": "^1.1.3","es-abstract": "^1.17.5"@@ -14586,7 +14554,8 @@"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.14.tgz","integrity": "sha512-b7pCxjGO98LnxVkKjaZSDeNuljC4ueKUddjENJOADtubtdo8llTaJy7HwBMeLNSSo2N5QIAgklslK1+Ir8r6CA==","dev": true,- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/tapable": {"version": "2.2.1",@@ -14690,7 +14659,6 @@"integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=14.0.0"}@@ -14701,7 +14669,6 @@"integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=14.0.0"}@@ -14996,6 +14963,7 @@"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==","devOptional": true,"license": "Apache-2.0",+ "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -15381,6 +15349,7 @@"integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"esbuild": "^0.25.0","fdir": "^6.4.4",@@ -15798,7 +15767,6 @@"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=10.0.0"},@@ -15843,6 +15811,7 @@"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz","integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==","license": "ISC",+ "peer": true,"bin": {"yaml": "bin.mjs"},@@ -15993,6 +15962,7 @@"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.1.tgz","integrity": "sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==","license": "MIT",+ "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/CircleCISyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/CircleCISyncFields.tsxindex 6f6449d1ff..eafab7785a 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/CircleCISyncFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/CircleCISyncFields.tsx@@ -1,9 +1,14 @@+import { useMemo } from "react";import { Controller, useFormContext, useWatch } from "react-hook-form";import { SingleValue } from "react-select";import { SecretSyncConnectionField } from "@app/components/secret-syncs/forms/SecretSyncConnectionField";import { FilterableSelect, FormControl } from "@app/components/v2";-import { TCircleCIProject, useCircleCIConnectionListProjects } from "@app/hooks/api/appConnections/circleci";+import {+ TCircleCIOrganization,+ TCircleCIProject,+ useCircleCIConnectionListOrganizations+} from "@app/hooks/api/appConnections/circleci";import { SecretSync } from "@app/hooks/api/secretSyncs";import { TSecretSyncForm } from "../schemas";@@ -14,44 +19,75 @@ export const CircleCISyncFields = () => {>();const connectionId = useWatch({ name: "connection.id", control });- const { data: projects = [], isPending: isProjectsPending } = useCircleCIConnectionListProjects(- connectionId,- {+ const selectedOrgName = useWatch({ name: "destinationConfig.orgName", control });++ const { data: organizations = [], isPending: isOrganizationsPending } =+ useCircleCIConnectionListOrganizations(connectionId, {enabled: Boolean(connectionId)- }+ });++ const selectedOrganization = useMemo(+ () => organizations.find((org) => org.name === selectedOrgName),+ [organizations, selectedOrgName]);+ const projects = selectedOrganization?.projects ?? [];+return (<><SecretSyncConnectionFieldonChange={() => {- setValue("destinationConfig.projectSlug", "");+ setValue("destinationConfig.orgName", "");+ setValue("destinationConfig.projectId", "");setValue("destinationConfig.projectName", "");}}/><Controller- name="destinationConfig.projectSlug"+ name="destinationConfig.orgName"control={control}render={({ field: { value, onChange }, fieldState: { error } }) => (- <FormControl- isError={Boolean(error)}- errorText={error?.message}- label="Project"- >+ <FormControl isError={Boolean(error)} errorText={error?.message} label="Organization"><FilterableSelect- isLoading={isProjectsPending && Boolean(connectionId)}+ isLoading={isOrganizationsPending && Boolean(connectionId)}isDisabled={!connectionId}- value={projects.find((project) => project.slug === value) ?? null}+ value={organizations.find((org) => org.name === value) ?? null}+ onChange={(option) => {+ const selectedOrg = option as SingleValue<TCircleCIOrganization>;+ onChange(selectedOrg?.name ?? "");+ setValue("destinationConfig.projectId", "");+ setValue("destinationConfig.projectName", "");+ }}+ options={organizations}+ placeholder="Select an organization..."+ getOptionLabel={(option) => option.name}+ getOptionValue={(option) => option.name}+ />+ </FormControl>+ )}+ />++ <Controller+ name="destinationConfig.projectId"+ control={control}+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl isError={Boolean(error)} errorText={error?.message} label="Project">+ <FilterableSelect+ noOptionsMessage={() =>+ "No projects found. Please create a project in your selected organization."+ }+ isLoading={isOrganizationsPending && Boolean(connectionId)}+ isDisabled={!selectedOrgName}+ value={projects.find((project) => project.id === value) ?? null}onChange={(option) => {const selectedProject = option as SingleValue<TCircleCIProject>;- onChange(selectedProject?.slug ?? "");+ onChange(selectedProject?.id ?? "");setValue("destinationConfig.projectName", selectedProject?.name ?? "");}}options={projects}placeholder="Select a project..."- getOptionLabel={(option) => option.name || option.slug}- getOptionValue={(option) => option.slug}+ getOptionLabel={(option) => option.name}+ getOptionValue={(option) => option.id}/></FormControl>)}diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CircleCISyncReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CircleCISyncReviewFields.tsxindex ccf78421e9..6649b5588a 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CircleCISyncReviewFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CircleCISyncReviewFields.tsx@@ -6,8 +6,13 @@ import { SecretSync } from "@app/hooks/api/secretSyncs";export const CircleCISyncReviewFields = () => {const { watch } = useFormContext<TSecretSyncForm & { destination: SecretSync.CircleCI }>();- const projectSlug = watch("destinationConfig.projectSlug");+ const orgName = watch("destinationConfig.orgName");const projectName = watch("destinationConfig.projectName");- return <GenericFieldLabel label="Project">{projectName || projectSlug}</GenericFieldLabel>;+ return (+ <>+ <GenericFieldLabel label="Organization">{orgName}</GenericFieldLabel>+ <GenericFieldLabel label="Project">{projectName}</GenericFieldLabel>+ </>+ );};diff --git a/frontend/src/components/secret-syncs/forms/schemas/circleci-sync-destination-schema.ts b/frontend/src/components/secret-syncs/forms/schemas/circleci-sync-destination-schema.tsindex 355db77f95..091021fa2c 100644--- a/frontend/src/components/secret-syncs/forms/schemas/circleci-sync-destination-schema.ts+++ b/frontend/src/components/secret-syncs/forms/schemas/circleci-sync-destination-schema.ts@@ -7,16 +7,9 @@ export const CircleCISyncDestinationSchema = BaseSecretSyncSchema().merge(z.object({destination: z.literal(SecretSync.CircleCI),destinationConfig: z.object({- projectSlug: z- .string()- .trim()- .min(1, "Project slug is required")- .describe("CircleCI project slug (format: vcs-slug/org-name/repo-name)"),- projectName: z- .string()- .trim()- .min(1, "Project name is required")- .optional()+ orgName: z.string().trim().min(1, "Organization is required"),+ projectName: z.string().trim().min(1, "Project is required"),+ projectId: z.string().trim().min(1, "Project ID is required")})}));diff --git a/frontend/src/helpers/appConnections.ts b/frontend/src/helpers/appConnections.tsindex ba5bfc9566..8d2c9a5e84 100644--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@ -50,10 +50,10 @@ import {import { BitbucketConnectionMethod } from "@app/hooks/api/appConnections/types/bitbucket-connection";import { ChecklyConnectionMethod } from "@app/hooks/api/appConnections/types/checkly-connection";import { ChefConnectionMethod } from "@app/hooks/api/appConnections/types/chef-connection";+import { CircleCIConnectionMethod } from "@app/hooks/api/appConnections/types/circleci-connection";import { DigitalOceanConnectionMethod } from "@app/hooks/api/appConnections/types/digital-ocean";import { DNSMadeEasyConnectionMethod } from "@app/hooks/api/appConnections/types/dns-made-easy-connection";import { HerokuConnectionMethod } from "@app/hooks/api/appConnections/types/heroku-connection";-import { CircleCIConnectionMethod } from "@app/hooks/api/appConnections/types/circleci-connection";import { LaravelForgeConnectionMethod } from "@app/hooks/api/appConnections/types/laravel-forge-connection";import { NetlifyConnectionMethod } from "@app/hooks/api/appConnections/types/netlify-connection";import { NorthflankConnectionMethod } from "@app/hooks/api/appConnections/types/northflank-connection";@@ -182,9 +182,8 @@ export const getAppConnectionMethodDetails = (method: TAppConnection["method"])case NorthflankConnectionMethod.ApiToken:case OktaConnectionMethod.ApiToken:case LaravelForgeConnectionMethod.ApiToken:+ case CircleCIConnectionMethod.ApiToken:return { name: "API Token", icon: faKey };- case CircleCIConnectionMethod.PersonalAccessToken:- return { name: "Personal Access Token", icon: faKey };case PostgresConnectionMethod.UsernameAndPassword:case MsSqlConnectionMethod.UsernameAndPassword:case MySqlConnectionMethod.UsernameAndPassword:diff --git a/frontend/src/hooks/api/appConnections/circleci/queries.tsx b/frontend/src/hooks/api/appConnections/circleci/queries.tsxindex 4d743bdfef..c1a39ad8d9 100644--- a/frontend/src/hooks/api/appConnections/circleci/queries.tsx+++ b/frontend/src/hooks/api/appConnections/circleci/queries.tsx@@ -3,33 +3,34 @@ import { useQuery, UseQueryOptions } from "@tanstack/react-query";import { apiRequest } from "@app/config/request";import { appConnectionKeys } from "../queries";-import { TCircleCIProject, TCircleCIProjectListResponse } from "./types";+import { TCircleCIOrganization, TCircleCIOrganizationListResponse } from "./types";const circleciConnectionKeys = {all: [...appConnectionKeys.all, "circleci"] as const,- listProjects: (connectionId: string) => [...circleciConnectionKeys.all, "projects", connectionId] as const+ listOrganizations: (connectionId: string) =>+ [...circleciConnectionKeys.all, "organizations", connectionId] as const};-export const useCircleCIConnectionListProjects = (+export const useCircleCIConnectionListOrganizations = (connectionId: string,options?: Omit<UseQueryOptions<- TCircleCIProject[],+ TCircleCIOrganization[],unknown,- TCircleCIProject[],- ReturnType<typeof circleciConnectionKeys.listProjects>+ TCircleCIOrganization[],+ ReturnType<typeof circleciConnectionKeys.listOrganizations>>,"queryKey" | "queryFn">) => {return useQuery({- queryKey: circleciConnectionKeys.listProjects(connectionId),+ queryKey: circleciConnectionKeys.listOrganizations(connectionId),queryFn: async () => {- const { data } = await apiRequest.get<TCircleCIProjectListResponse>(+ const { data } = await apiRequest.get<TCircleCIOrganizationListResponse>(`/api/v1/app-connections/circleci/${connectionId}/projects`);- return data.projects;+ return data.organizations;},...options});diff --git a/frontend/src/hooks/api/appConnections/circleci/types.ts b/frontend/src/hooks/api/appConnections/circleci/types.tsindex 21c35d44dd..4f9e6d1ea4 100644--- a/frontend/src/hooks/api/appConnections/circleci/types.ts+++ b/frontend/src/hooks/api/appConnections/circleci/types.ts@@ -1,9 +1,13 @@export type TCircleCIProject = {- id: string;name: string;- slug: string;+ id: string;};-export type TCircleCIProjectListResponse = {+export type TCircleCIOrganization = {+ name: string;projects: TCircleCIProject[];};++export type TCircleCIOrganizationListResponse = {+ organizations: TCircleCIOrganization[];+};diff --git a/frontend/src/hooks/api/appConnections/types/circleci-connection.ts b/frontend/src/hooks/api/appConnections/types/circleci-connection.tsindex 384f085739..5e961af42b 100644--- a/frontend/src/hooks/api/appConnections/types/circleci-connection.ts+++ b/frontend/src/hooks/api/appConnections/types/circleci-connection.ts@@ -2,11 +2,11 @@ import { AppConnection } from "@app/hooks/api/appConnections/enums";import { TRootAppConnection } from "@app/hooks/api/appConnections/types/root-connection";export enum CircleCIConnectionMethod {- PersonalAccessToken = "personal-access-token"+ ApiToken = "api-token"}export type TCircleCIConnection = TRootAppConnection & { app: AppConnection.CircleCI } & {- method: CircleCIConnectionMethod.PersonalAccessToken;+ method: CircleCIConnectionMethod.ApiToken;credentials: {apiToken: string;};diff --git a/frontend/src/hooks/api/secretSyncs/types/circleci-sync.ts b/frontend/src/hooks/api/secretSyncs/types/circleci-sync.tsindex f173f1a12b..5b4d3ae450 100644--- a/frontend/src/hooks/api/secretSyncs/types/circleci-sync.ts+++ b/frontend/src/hooks/api/secretSyncs/types/circleci-sync.ts@@ -5,6 +5,8 @@ import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";export type TCircleCISync = TRootSecretSync & {destination: SecretSync.CircleCI;destinationConfig: {+ orgId?: string;+ orgName?: string;projectSlug: string;projectName?: string;};diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/CircleCIConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/CircleCIConnectionForm.tsxindex 5fb4cd92c9..3f4f280aba 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/CircleCIConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/CircleCIConnectionForm.tsx@@ -30,7 +30,7 @@ const rootSchema = genericAppConnectionFieldsSchema.extend({const formSchema = z.discriminatedUnion("method", [rootSchema.extend({- method: z.literal(CircleCIConnectionMethod.PersonalAccessToken),+ method: z.literal(CircleCIConnectionMethod.ApiToken),credentials: z.object({apiToken: z.string().trim().min(1, "API Token required")})@@ -46,7 +46,7 @@ export const CircleCIConnectionForm = ({ appConnection, onSubmit }: Props) => {resolver: zodResolver(formSchema),defaultValues: appConnection ?? {app: AppConnection.CircleCI,- method: CircleCIConnectionMethod.PersonalAccessToken+ method: CircleCIConnectionMethod.ApiToken}});@@ -99,8 +99,8 @@ export const CircleCIConnectionForm = ({ appConnection, onSubmit }: Props) => {<FormControlerrorText={error?.message}isError={Boolean(error?.message)}- label="Personal API Token"- tooltipText="Your CircleCI Personal API Token. You can generate one from CircleCI User Settings > Personal API Tokens."+ label="API Token"+ tooltipText="Your CircleCI API Token. You can generate one from CircleCI User Settings > Personal API Tokens."><SecretInputcontainerClassName="text-gray-400 group-focus-within:border-primary-400/50! border border-mineshaft-500 bg-mineshaft-900 px-2.5 py-1.5"diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/CircleCISyncDestinationSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/CircleCISyncDestinationSection.tsxindex 77c265e86a..209604d2fd 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/CircleCISyncDestinationSection.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/CircleCISyncDestinationSection.tsx@@ -7,8 +7,13 @@ type Props = {export const CircleCISyncDestinationSection = ({ secretSync }: Props) => {const {- destinationConfig: { projectName, projectSlug }+ destinationConfig: { orgId, orgName, projectName, projectSlug }} = secretSync;- return <GenericFieldLabel label="Project">{projectName || projectSlug}</GenericFieldLabel>;+ return (+ <>+ <GenericFieldLabel label="Organization">{orgName || orgId || "-"}</GenericFieldLabel>+ <GenericFieldLabel label="Project">{projectName || projectSlug}</GenericFieldLabel>+ </>+ );};