diff --git a/v2/airdrop-platform/app/src/wagmiConfig.ts b/v2/airdrop-platform/app/src/wagmiConfig.ts index 044a036a..a4c5ccaf 100644 --- a/v2/airdrop-platform/app/src/wagmiConfig.ts +++ b/v2/airdrop-platform/app/src/wagmiConfig.ts @@ -2,7 +2,7 @@ import { getDefaultConfig } from "@rainbow-me/rainbowkit"; import { polygonAmoy, sepolia } from "viem/chains"; export const wagmiConfig = getDefaultConfig({ - appName: "Compilot Example apps", + appName: "ComPilot Example apps", projectId: "5d874ef9e44150c54831f6ba7e6d6228", chains: [polygonAmoy, sepolia], }); diff --git a/v2/demo-apps/.env.example b/v2/demo-apps/.env.example index 9598f8a1..0bc6c0dd 100644 --- a/v2/demo-apps/.env.example +++ b/v2/demo-apps/.env.example @@ -43,5 +43,9 @@ COMPILOT_WEBHOOK_SECRET_KYC COMPILOT_API_KEY_KYC COMPILOT_WORKFLOW_ID_KYC +COMPILOT_API_KEY_LANDING_KYB +COMPILOT_WORKFLOW_ID_LANDING_KYB +NEXT_PUBLIC_LANDING_KYB_COMPANY + NEXT_PUBLIC_AMOY_HTTP_PROVIDER_URL= NEXT_PUBLIC_SEPOLIA_HTTP_PROVIDER_URL= diff --git a/v2/demo-apps/package-lock.json b/v2/demo-apps/package-lock.json index efde2099..459999dd 100644 --- a/v2/demo-apps/package-lock.json +++ b/v2/demo-apps/package-lock.json @@ -9,12 +9,12 @@ "version": "0.1.0", "dependencies": { "@airgap/beacon-types": "^4.2.1", - "@compilot/js-sdk": "2.3.1-dev", - "@compilot/react-sdk": "2.3.1-dev", - "@compilot/web-sdk-wallet-wagmi": "2.3.1-dev", + "@compilot/js-sdk": "2.35.3", + "@compilot/react-sdk": "2.35.3", + "@compilot/web-sdk-wallet-wagmi": "2.35.2", "@emurgo/cardano-serialization-lib-browser": "^11.5.0", "@keplr-wallet/types": "^0.12.107", - "@nexeraid/identity-schemas": "2.3.1-dev", + "@nexeraid/identity-schemas": "2.37.0", "@nexeraid/sig-gating-contracts-sdk": "^3.0.0", "@nexeraid/tezos-sig-gating-contracts-sdk": "^1.0.10", "@polkadot/api": "^10.13.1", @@ -2435,31 +2435,31 @@ } }, "node_modules/@compilot/js-sdk": { - "version": "2.3.1-dev", - "resolved": "https://registry.npmjs.org/@compilot/js-sdk/-/js-sdk-2.3.1-dev.tgz", - "integrity": "sha512-zGvxjy0FLly5jW2tDntbIfYiSVkJEQhycw52jRt/+dm1P8kmGUstFCI5fQHkMHmjzDFOMix53Wj60+BfPql/iQ==", + "version": "2.35.3", + "resolved": "https://registry.npmjs.org/@compilot/js-sdk/-/js-sdk-2.35.3.tgz", + "integrity": "sha512-NbsYJI5N9AIpZMC7g6sxDpBu6ucwF8Ul5B06f/95QjmwupAdP4OhCw3gOHAsKIRb3m9VJWKs6HozpH116FFtag==", "license": "ISC", "dependencies": { - "@nexeraid/api-client": "2.3.0-dev", - "@nexeraid/identity-api-client": "2.3.0-dev", - "@nexeraid/identity-schemas": "2.3.1-dev", - "@nexeraid/logger": "2.3.0-dev", - "pino": "^9.4.0", + "@nexeraid/api-client": "2.35.1", + "@nexeraid/identity-api-client": "2.35.1", + "@nexeraid/identity-schemas": "2.37.0", + "@nexeraid/logger": "2.35.1", + "pino": "^9.5.0", "svix": "1.21.0", "zod": "^3.23.8" } }, "node_modules/@compilot/react-sdk": { - "version": "2.3.1-dev", - "resolved": "https://registry.npmjs.org/@compilot/react-sdk/-/react-sdk-2.3.1-dev.tgz", - "integrity": "sha512-aKmBzfwtl9aRyfYOzGkIdUgTU3WTmHKrvkzDZbV4MEMvqkZkHz72j5tXLLoUlSYxnZbSzQcdGb+QjHP9FYMI/g==", + "version": "2.35.3", + "resolved": "https://registry.npmjs.org/@compilot/react-sdk/-/react-sdk-2.35.3.tgz", + "integrity": "sha512-qbBr1H6eOkMvsYWKsJ+TCX1hsP/OxELjJ1Z2lX8OhdOH48eVZ+cxwiLoFx5tfu5fALhtzfDdK/EJ9+Yne1bV0w==", "license": "ISC", "dependencies": { - "@compilot/web-sdk": "2.3.1-dev", - "@nexeraid/identity-api-client": "2.3.0-dev", - "@nexeraid/identity-schemas": "2.3.1-dev", - "@nexeraid/logger": "2.3.0-dev", - "pino": "^9.4.0", + "@compilot/web-sdk": "2.35.3", + "@nexeraid/identity-api-client": "2.35.1", + "@nexeraid/identity-schemas": "2.37.0", + "@nexeraid/logger": "2.35.1", + "pino": "^9.5.0", "zod": "^3.23.8" }, "peerDependencies": { @@ -2467,29 +2467,29 @@ } }, "node_modules/@compilot/web-sdk": { - "version": "2.3.1-dev", - "resolved": "https://registry.npmjs.org/@compilot/web-sdk/-/web-sdk-2.3.1-dev.tgz", - "integrity": "sha512-45C12pjxpAtfcp9yl2pF6Pyxlvv74Ekl91uwO79Afp4zcsmZh7kXRm4TZqzbjjQXzVWJWo4TvaPm3aLZTfKJSw==", + "version": "2.35.3", + "resolved": "https://registry.npmjs.org/@compilot/web-sdk/-/web-sdk-2.35.3.tgz", + "integrity": "sha512-ryTfm8NAm0rXtJ6Dq2+C272J+G75XYXNbVTSPUl4zSmH2KVZeoDqaI9XLix9qnjA3nkHWqOajOAwCUjNN4V1XA==", "license": "ISC", "dependencies": { - "@nexeraid/identity-api-client": "2.3.0-dev", - "@nexeraid/identity-schemas": "2.3.1-dev", - "@nexeraid/logger": "2.3.0-dev", + "@nexeraid/identity-api-client": "2.35.1", + "@nexeraid/identity-schemas": "2.37.0", + "@nexeraid/logger": "2.35.1", "eventemitter3": "^5.0.1", "jwt-decode": "^3.1.2", - "pino": "^9.4.0", + "pino": "^9.5.0", "remeda": "^1.61.0", "zod": "^3.23.8" } }, "node_modules/@compilot/web-sdk-wallet-wagmi": { - "version": "2.3.1-dev", - "resolved": "https://registry.npmjs.org/@compilot/web-sdk-wallet-wagmi/-/web-sdk-wallet-wagmi-2.3.1-dev.tgz", - "integrity": "sha512-FzwEthjSHGIROjViwtW2W8hJm5hsf0cANLdyYrc8vgPJ/8/C2nqaLU1macEMQnzPvUPh6JKYdnHaYJagDpiiVQ==", + "version": "2.35.2", + "resolved": "https://registry.npmjs.org/@compilot/web-sdk-wallet-wagmi/-/web-sdk-wallet-wagmi-2.35.2.tgz", + "integrity": "sha512-Af0Q5YYSkDclNdPWc5wzFewTBgmvnR6nCLuNVFbBMpHp/PlG7cOsP+ThOJyGZ02AKhOVA3HiwJg+5HJ2tkwW9w==", "license": "ISC", "peerDependencies": { - "@compilot/web-sdk": "^2.3.1-dev", - "@nexeraid/identity-schemas": "^2.3.1-dev", + "@compilot/web-sdk": "^2.35.3", + "@nexeraid/identity-schemas": "^2.37.0", "wagmi": ">= 2.10.0 && < 3.0.0" } }, @@ -4550,24 +4550,24 @@ } }, "node_modules/@nexeraid/api-client": { - "version": "2.3.0-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-2.3.0-dev.tgz", - "integrity": "sha512-sxF6cmMmwtMBhMmkaXDZbMNixSo1yn0XOsgw8dvRX0I6JCAdN2HUu6hDD4OKOmijHIvWSfc7wCMgznVtZxD9XA==", + "version": "2.35.1", + "resolved": "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-2.35.1.tgz", + "integrity": "sha512-GMu24FWZPfwDnIVPCxf1lBscArgfBa4KC08DW1+qDHCL4STdQLpvbB2BEUhCcJwb8qL3Sl9Jh8WAtyjOcRP1/A==", "license": "ISC", "dependencies": { - "@nexeraid/identity-schemas": "2.3.1-dev", + "@nexeraid/identity-schemas": "2.37.0", "@trpc/server": "^10.45.2", "zod": "^3.23.8", "zod-validation-error": "^3.4.0" } }, "node_modules/@nexeraid/identity-api-client": { - "version": "2.3.0-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-2.3.0-dev.tgz", - "integrity": "sha512-Ju0iwP3g4tWv2jRFMTq5+q9+NCGk4pqjRSsDxhRZUgXJHb8+RoOlPdhT7gkPGUAirTxHq5NG32W1FAfEE4ktxQ==", + "version": "2.35.1", + "resolved": "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-2.35.1.tgz", + "integrity": "sha512-2E82cWzvLAr28Sk8837CWhrOVTBPsyVuBb9+TkzueMss9UVs5BLg3t35UlQF/TuWLLdr1QNo9kJVsNNmTazMEA==", "license": "ISC", "dependencies": { - "@nexeraid/identity-schemas": "2.3.1-dev", + "@nexeraid/identity-schemas": "2.37.0", "zod": "3.22.4", "zod-validation-error": "^3.4.0" } @@ -4582,14 +4582,14 @@ } }, "node_modules/@nexeraid/identity-schemas": { - "version": "2.3.1-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-2.3.1-dev.tgz", - "integrity": "sha512-PKm4Zr9ZaFY1qbveOtpeM320M7NT2YkKXJyqRFCb6EO6Rl6W0OMEYdqvwLAiH3m/B44aQsEJh8rLu1ziBY3CsA==", + "version": "2.37.0", + "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-2.37.0.tgz", + "integrity": "sha512-J9svQUQZh/g82dRSQhCELplEnlztIALBR611YRKRQfyzwTuptUnpdDt8roQIiUS36TTTBo2DfNDKr1g+imCJJw==", "license": "ISC", "dependencies": { "nanoid": "3.3.4", "zod": "^3.23.8", - "zod-to-json-schema": "^3.23.3" + "zod-to-json-schema": "^3.23.5" } }, "node_modules/@nexeraid/identity-schemas/node_modules/nanoid": { @@ -4605,13 +4605,13 @@ } }, "node_modules/@nexeraid/logger": { - "version": "2.3.0-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/logger/-/logger-2.3.0-dev.tgz", - "integrity": "sha512-LPVHX/7iv23NxEzFhEYIszG+I9ue3nIUqJSMhEtpM/Gk29NPyyYRyDjWEA5TrVzxIdm79N8+khArQHVI4LdxWg==", + "version": "2.35.1", + "resolved": "https://registry.npmjs.org/@nexeraid/logger/-/logger-2.35.1.tgz", + "integrity": "sha512-MgSDSxHNr1JALFmgFi0dKtV8Kby0+SuU/dScgLAqN/3M44tiIhQslnn+c6HWuV7fDmsCXLSdsMdKWslgfeyAyQ==", "license": "ISC", "dependencies": { - "browserify": "^17.0.0", - "pino": "^9.4.0", + "browserify": "^17.0.1", + "pino": "^9.5.0", "pino-std-serializers": "^7.0.0", "zod": "^3.23.8" } @@ -12785,9 +12785,9 @@ } }, "node_modules/browserify": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-17.0.0.tgz", - "integrity": "sha512-SaHqzhku9v/j6XsQMRxPyBrSP3gnwmE27gLJYZgMT2GeK3J0+0toN+MnuNYDfHwVGQfLiMZ7KSNSIXHemy905w==", + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-17.0.1.tgz", + "integrity": "sha512-pxhT00W3ylMhCHwG5yfqtZjNnFuX5h2IJdaBfSo4ChaaBsIp9VLrEMQ1bHV+Xr1uLPXuNDDM1GlJkjli0qkRsw==", "license": "MIT", "dependencies": { "assert": "^1.4.0", @@ -12806,7 +12806,7 @@ "duplexer2": "~0.1.2", "events": "^3.0.0", "glob": "^7.1.0", - "has": "^1.0.0", + "hasown": "^2.0.0", "htmlescape": "^1.1.0", "https-browserify": "^1.0.0", "inherits": "~2.0.1", @@ -16753,15 +16753,6 @@ "unenv": "^1.9.0" } }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", @@ -22868,6 +22859,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -23290,14 +23282,15 @@ } }, "node_modules/pino": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-9.4.0.tgz", - "integrity": "sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.5.0.tgz", + "integrity": "sha512-xSEmD4pLnV54t0NOUN16yCl7RIB1c5UUOse5HSyEXtBp+FgFQyPeDutc+Q2ZO7/22vImV7VfEjH/1zV2QuqvYw==", + "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", + "pino-abstract-transport": "^2.0.0", "pino-std-serializers": "^7.0.0", "process-warning": "^4.0.0", "quick-format-unescaped": "^4.0.3", @@ -23311,33 +23304,19 @@ } }, "node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz", + "integrity": "sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==", + "license": "MIT", "dependencies": { - "readable-stream": "^4.0.0", "split2": "^4.0.0" } }, - "node_modules/pino-abstract-transport/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "node_modules/pino-std-serializers": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", - "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" + "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==", + "license": "MIT" }, "node_modules/pirates": { "version": "4.0.6", @@ -23848,7 +23827,8 @@ "node_modules/process-warning": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz", - "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==" + "integrity": "sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==", + "license": "MIT" }, "node_modules/promise": { "version": "8.3.0", @@ -24026,9 +24006,9 @@ } }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz", + "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -24674,6 +24654,7 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "license": "MIT", "engines": { "node": ">= 12.13.0" } @@ -25796,9 +25777,10 @@ } }, "node_modules/sonic-boom": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.0.1.tgz", - "integrity": "sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.0.tgz", + "integrity": "sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==", + "license": "MIT", "dependencies": { "atomic-sleep": "^1.0.0" } @@ -26698,6 +26680,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", + "license": "MIT", "dependencies": { "real-require": "^0.2.0" } @@ -28195,9 +28178,9 @@ } }, "node_modules/zod-to-json-schema": { - "version": "3.23.3", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz", - "integrity": "sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog==", + "version": "3.23.5", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.23.5.tgz", + "integrity": "sha512-5wlSS0bXfF/BrL4jPAbz9da5hDlDptdEppYfe+x4eIJ7jioqKG9uUxOwPzqof09u/XeVdrgFu29lZi+8XNDJtA==", "license": "ISC", "peerDependencies": { "zod": "^3.23.3" diff --git a/v2/demo-apps/package.json b/v2/demo-apps/package.json index 4e09a04d..01e6df5b 100644 --- a/v2/demo-apps/package.json +++ b/v2/demo-apps/package.json @@ -16,10 +16,10 @@ "@airgap/beacon-types": "^4.2.1", "@emurgo/cardano-serialization-lib-browser": "^11.5.0", "@keplr-wallet/types": "^0.12.107", - "@nexeraid/identity-schemas": "2.3.1-dev", - "@compilot/js-sdk": "2.3.1-dev", - "@compilot/react-sdk": "2.3.1-dev", - "@compilot/web-sdk-wallet-wagmi": "2.3.1-dev", + "@nexeraid/identity-schemas": "2.37.0", + "@compilot/js-sdk": "2.35.3", + "@compilot/react-sdk": "2.35.3", + "@compilot/web-sdk-wallet-wagmi": "2.35.2", "@nexeraid/sig-gating-contracts-sdk": "^3.0.0", "@nexeraid/tezos-sig-gating-contracts-sdk": "^1.0.10", "@polkadot/api": "^10.13.1", @@ -79,4 +79,4 @@ "engines": { "node": ">=20.17.0" } -} +} \ No newline at end of file diff --git a/v2/demo-apps/src/features/landing-kyb/Layout/Layout.tsx b/v2/demo-apps/src/features/landing-kyb/Layout/Layout.tsx new file mode 100644 index 00000000..12b22617 --- /dev/null +++ b/v2/demo-apps/src/features/landing-kyb/Layout/Layout.tsx @@ -0,0 +1,18 @@ +import type { ReactNode } from 'react'; + +interface LayoutProps { + children: ReactNode; + header?: ReactNode; +} + +export const Layout = ({ children, header }: LayoutProps) => { + return ( +
+ {header &&
{header}
+ } +
+ {children} +
+
+ ); +}; diff --git a/v2/demo-apps/src/features/landing-kyb/identity/compilotConfig.ts b/v2/demo-apps/src/features/landing-kyb/identity/compilotConfig.ts new file mode 100644 index 00000000..5ad9f00f --- /dev/null +++ b/v2/demo-apps/src/features/landing-kyb/identity/compilotConfig.ts @@ -0,0 +1,21 @@ +//This config file is used to generate a challenge by using the API created in the backend. + +export const generateChallengeKYB = async (params: any) => { + try { + const res = await fetch("/api/landing-kyb/challenge", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify(params), + }); + + if (!res.ok) { + throw new Error('Failed to generate challenge'); + } + + return await res.json(); + } catch (error) { + throw error; + } +}; diff --git a/v2/demo-apps/src/pages/api/landing-kyb/challenge.ts b/v2/demo-apps/src/pages/api/landing-kyb/challenge.ts new file mode 100644 index 00000000..953c3df9 --- /dev/null +++ b/v2/demo-apps/src/pages/api/landing-kyb/challenge.ts @@ -0,0 +1,37 @@ +import { EvmChainId } from "@nexeraid/identity-schemas"; +import { createSdk } from "@compilot/js-sdk"; +import type { NextApiRequest, NextApiResponse } from "next"; + + +export default async function handler( + req: NextApiRequest, + res: NextApiResponse +) { + try { + const { address } = req.body; + + if (!process.env.COMPILOT_API_KEY_LANDING_KYB) { + throw new Error('COMPILOT_API_KEY_LANDING_KYB is not defined'); + } + + const apiClient = createSdk({ + apiKey: process.env.COMPILOT_API_KEY_LANDING_KYB, + }); + + if (!process.env.COMPILOT_WORKFLOW_ID_LANDING_KYB) { + throw new Error('COMPILOT_WORKFLOW_ID_LANDING_KYB is not defined'); + } + + const challenge = await apiClient.createWeb3Challenge({ + workflowId: process.env.COMPILOT_WORKFLOW_ID_LANDING_KYB, + address, + blockchainId: EvmChainId.parse('1'), + namespace: 'eip155', + origin: process.env.COMPILOT_ORIGIN_LANDING_KYB ?? '', + }); + + return res.status(200).json(challenge); + } catch (error) { + return res.status(500).json({ error: 'Failed to create challenge' }); + } +} \ No newline at end of file diff --git a/v2/demo-apps/src/pages/landing-kyb.tsx b/v2/demo-apps/src/pages/landing-kyb.tsx new file mode 100644 index 00000000..fab65b61 --- /dev/null +++ b/v2/demo-apps/src/pages/landing-kyb.tsx @@ -0,0 +1,173 @@ +import { WagmiProvider } from 'wagmi'; +import { Layout } from "@/features/landing-kyb/Layout/Layout"; +import { wagmiConfig } from "@/features/root/web3/wagmiConfig"; +import { + generatePrivateKey, + privateKeyToAccount, + signMessage, +} from "viem/accounts"; +import { generateChallengeKYB } from "@/features/landing-kyb/identity/compilotConfig"; +import { ComPilotProvider, useOpenWidget, useDisconnect, createWeb3AuthAdapter, createConfig } from "@compilot/react-sdk"; +import type { Web3Wallet } from "@compilot/react-sdk"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; + +const privateKey = generatePrivateKey(); +const account = privateKeyToAccount(privateKey); + +const getWallet = async () => ({ + userAddress: account.address, + privateKey +}); + +const customSignMessage = async (message: string) => { + const signature = await signMessage({ message, privateKey }); + return { + signature, + publicKey: account.address + }; +}; + +const preProcess = (message: string) => message; + +const customWalletConfig: Web3Wallet = { + namespace: "eip155" as const, + + getAddress: async () => { + const { userAddress } = await getWallet(); + return userAddress; + }, + + sign: async ({ message }) => { + const signedMessage = preProcess(message); + const { signature, publicKey } = await customSignMessage(signedMessage); + + return { + message, + signature, + signerPublicKey: publicKey, + signedMessage + }; + }, + + isConnected: async () => { + const wallet = await getWallet(); + return Boolean(wallet); + } +}; + +const authAdapter = createWeb3AuthAdapter({ + wallet: customWalletConfig, + generateChallenge: generateChallengeKYB +}); + +export const compilotConfig = createConfig({ authAdapter }); + +const queryClient = new QueryClient(); + +const Home = () => { + return ( + + + + + + + + ); +}; + +const HomeContent = () => { + const openWidget = useOpenWidget(); + const { disconnect } = useDisconnect(); + const companyName = process.env.NEXT_PUBLIC_LANDING_KYB_COMPANY ?? ''; + + const handleClick = async () => { + try { + await disconnect(); + await new Promise(resolve => setTimeout(resolve, 100)); + await openWidget.openWidget(); + } catch (error) { + await disconnect(); + } + }; + + return ( + +
+
+
+ {/* Left Column - Title and Button */} +
+

+ {companyName} Business Verification +

+ + +
+ + {/* Right Column - Documentation Requirements */} +
+

Required Documentation for KYB

+ +
+

+ Please make sure to provide documentation for: +

+
    +
  • Company Registration
  • +
  • Official Address
  • +
  • Ownership Structure
  • +
+
+ +
+
+

+ 1. Company Registration (Any one): We want to check that the company is properly registered and its address. +

+
    +
  • Certificate of incorporation
  • +
  • State company registry excerpt
  • +
+
+ +
+

+ 2. Ownership Proof (Any one): We are going to check the company structure, so make sure that UBO's names appear on the documents you provide. +

+
    +
  • Articles of incorporation
  • +
  • Memorandum of association
  • +
  • UBO (Ultimate Beneficial Ownership) registry excerpt
  • +
  • Certificate of incumbency
  • +
+
+ +
+

Important Notes:

+
    +
  • All ownership documents must be less than 12 months old
  • +
  • We do not accept invoices, receipts, or document screenshots
  • +
  • All individuals, UBOs with more than 25% ownership, and directors are expected to complete KYC, which includes uploading their ID and a liveliness check (selfie).
  • +
+
+
+
+
+
+
+
+ ); +}; + +export default Home; \ No newline at end of file diff --git a/v2/nextjs-web3/README.md b/v2/nextjs-web3/README.md index b940bff4..df29666f 100644 --- a/v2/nextjs-web3/README.md +++ b/v2/nextjs-web3/README.md @@ -1,13 +1,13 @@ -NexeraID widget integration example : for Next.JS and Web3. +ComPilot widget integration example : for Next.JS and Web3. =========================================================== -This example demonstrates how to integrate the NexeraID Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, the widget initialization requires a wallet signature. For this example, we’ve used RainbowKit for wallet management. However, note that RainbowKit is not a project dependency and the NexeraID widget is compatible with any wallet adapter of your choice. +This example demonstrates how to integrate the ComPilot Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, the widget initialization requires a wallet signature. For this example, we’ve used RainbowKit for wallet management. However, note that RainbowKit is not a project dependency and the ComPilot widget is compatible with any wallet adapter of your choice. ## pre-requisite : To run this example dApp, you need: - • Access to the NexeraID dashboard with an API key. + • Access to the ComPilot dashboard with an API key. • A workflow set up in your workspace. @@ -42,9 +42,9 @@ npm dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -NexeraID KYC/KYB documentation : https://docs.compilot.ai/usescases/ -NexeraID technical documentation : https://docs.compilot.ai/developing +ComPilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ +ComPilot technical documentation : https://docs.compilot.ai/developing ## Credits : -This is a [NexeraID] (https://nexera.id)+ [RainbowKit](https://rainbowkit.com) + [wagmi](https://wagmi.sh) + [Next.js](https://nextjs.org/) project bootstrapped using [`create-rainbowkit`](/packages/create-rainbowkit). \ No newline at end of file +This is a [ComPilot] (https://compilot.ai)+ [RainbowKit](https://rainbowkit.com) + [wagmi](https://wagmi.sh) + [Next.js](https://nextjs.org/) project bootstrapped using [`create-rainbowkit`](/packages/create-rainbowkit). \ No newline at end of file diff --git a/v2/nextjs-web3/next.config.js b/v2/nextjs-web3/next.config.js index 591917e4..24f58942 100644 --- a/v2/nextjs-web3/next.config.js +++ b/v2/nextjs-web3/next.config.js @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, - transpilePackages: ["@nexeraid/react-sdk-wallet-wagmi"], + transpilePackages: ["@compilot/web-sdk-wallet-wagmi"], }; module.exports = nextConfig; diff --git a/v2/nextjs-web3/package-lock.json b/v2/nextjs-web3/package-lock.json index 2cf299fa..98670d3c 100644 --- a/v2/nextjs-web3/package-lock.json +++ b/v2/nextjs-web3/package-lock.json @@ -8,9 +8,7 @@ "name": "example-next-rainbowkit-w3", "version": "0.1.0", "dependencies": { - "@nexeraid/js-sdk": "^2.0.19-dev", - "@nexeraid/react-sdk": "^2.0.26-dev", - "@nexeraid/react-sdk-wallet-wagmi": "^2.0.4-dev", + "@compilot/js-sdk": "^2.1.12", "@rainbow-me/rainbowkit": "^2.1.5", "@tanstack/react-query": "^5.51.11", "next": "^14.2.3", @@ -2296,6 +2294,21 @@ "sha.js": "^2.4.11" } }, + "node_modules/@compilot/js-sdk": { + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@compilot/js-sdk/-/js-sdk-2.1.12.tgz", + "integrity": "sha512-MBBVIzxP/trf0/FwpHznDl7omrC9iGdNuVC+5dG6Fq0n2O3t6SNVFupOxlXmh3kG/aaGNm1GvZuHKyqbsNbonw==", + "license": "ISC", + "dependencies": { + "@nexeraid/api-client": "2.1.9", + "@nexeraid/identity-api-client": "2.1.9", + "@nexeraid/identity-schemas": "2.1.12", + "@nexeraid/logger": "2.1.7", + "pino": "^9.4.0", + "svix": "1.21.0", + "zod": "^3.23.8" + } + }, "node_modules/@emotion/hash": { "version": "0.9.2", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz", @@ -3040,57 +3053,26 @@ } }, "node_modules/@nexeraid/api-client": { - "version": "1.10.2-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-1.10.2-dev.tgz", - "integrity": "sha512-ohzAF+ctWPrWG3STMRMOdtdRyPCBGosZ+ugKVL81e9+kg60pubVbJiRGBNxyPSEYBqss3PYxYowP+2Le9hnR0Q==", + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-2.1.9.tgz", + "integrity": "sha512-3qVOZYXGIjFiPDdlaEdcnWXnuz25B5cUWjgXijKJXoIRYalRYP7dPO290fvs02FPjsDJdEVtjChNxy9L6Pl36g==", "license": "ISC", "dependencies": { - "@nexeraid/identity-schemas": "1.12.6-dev", + "@nexeraid/identity-schemas": "2.1.12", "@trpc/server": "^10.45.2", "zod": "^3.23.8", - "zod-validation-error": "^3.3.1" - } - }, - "node_modules/@nexeraid/api-client/node_modules/@nexeraid/identity-schemas": { - "version": "1.12.6-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz", - "integrity": "sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA==", - "license": "ISC", - "dependencies": { - "nanoid": "3.3.4", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.23.2" + "zod-validation-error": "^3.4.0" } }, "node_modules/@nexeraid/identity-api-client": { - "version": "1.3.215-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-1.3.215-dev.tgz", - "integrity": "sha512-YrO/GAZGRB5ScbQsqd1R+GqKYPEUe+vpk/SxXVwN9QHAVuZDDiF3F9E603bPqdQDNu73ebcDqHiq0OmU2ar6OQ==", + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz", + "integrity": "sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ==", "license": "ISC", "dependencies": { - "@nexeraid/identity-schemas": "1.12.6-dev", + "@nexeraid/identity-schemas": "2.1.12", "zod": "3.22.4", - "zod-validation-error": "^3.3.1" - } - }, - "node_modules/@nexeraid/identity-api-client/node_modules/@nexeraid/identity-schemas": { - "version": "1.12.6-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz", - "integrity": "sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA==", - "license": "ISC", - "dependencies": { - "nanoid": "3.3.4", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.23.2" - } - }, - "node_modules/@nexeraid/identity-api-client/node_modules/@nexeraid/identity-schemas/node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" + "zod-validation-error": "^3.4.0" } }, "node_modules/@nexeraid/identity-api-client/node_modules/zod": { @@ -3103,111 +3085,25 @@ } }, "node_modules/@nexeraid/identity-schemas": { - "version": "1.12.20-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-1.12.20-dev.tgz", - "integrity": "sha512-GjEaO4Jzio8EQ9ONnVTx/++l5NmKv9lKhd8ev3JBUtbixIs1FdA9UFFs04UYQsGeAwPkbCvQbPEQiS/+nKNuJg==", + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz", + "integrity": "sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ==", "license": "ISC", "dependencies": { "nanoid": "3.3.4", "zod": "^3.23.8", - "zod-to-json-schema": "^3.23.2" - } - }, - "node_modules/@nexeraid/js-sdk": { - "version": "2.0.19-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/js-sdk/-/js-sdk-2.0.19-dev.tgz", - "integrity": "sha512-kLBW+Wgzpj0Ogu+0wlRsVskJtEIpRrXxFwRgMCmOI7e3xhkTUnPOSh1oGYLMYNm3lX6cYYX2ArIvRlvSYCNhUw==", - "license": "ISC", - "dependencies": { - "@nexeraid/api-client": "1.10.2-dev", - "@nexeraid/identity-api-client": "1.3.215-dev", - "@nexeraid/identity-schemas": "1.12.20-dev", - "@nexeraid/logger": "0.1.2-dev", - "pino": "^9.2.0", - "zod": "^3.23.8" + "zod-to-json-schema": "^3.23.3" } }, "node_modules/@nexeraid/logger": { - "version": "0.1.2-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/logger/-/logger-0.1.2-dev.tgz", - "integrity": "sha512-GVDN+3s3K/xwWJ5K7RFOA/nB6nAq9Z8SjLdf1wJxE84lqWuezFSvn3SraJIaDhIZsulFdretKxjfKOQiCdAajw==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@nexeraid/logger/-/logger-2.1.7.tgz", + "integrity": "sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw==", "license": "ISC", "dependencies": { "browserify": "^17.0.0", - "pino": "^9.3.2", - "pino-std-serializers": "^7.0.0", - "zod": "^3.23.8" - } - }, - "node_modules/@nexeraid/react-sdk": { - "version": "2.0.26-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/react-sdk/-/react-sdk-2.0.26-dev.tgz", - "integrity": "sha512-FPvfTfkNwEKyxaWwQZnAsUqlWVzUN5k6i/AlRSpGIB1+socJxlJAnuMNmIhZi9xIMTk9Rnn5yL6a4RPodIByQg==", - "license": "ISC", - "dependencies": { - "@nexeraid/identity-api-client": "1.3.215-dev", - "@nexeraid/identity-schemas": "1.12.22-dev", - "@nexeraid/logger": "0.1.2-dev", - "@nexeraid/web-sdk": "2.0.23-dev", "pino": "^9.4.0", - "zod": "^3.23.8" - }, - "peerDependencies": { - "react": ">=17.0.0 <20.0.0" - } - }, - "node_modules/@nexeraid/react-sdk-wallet-wagmi": { - "version": "2.0.4-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/react-sdk-wallet-wagmi/-/react-sdk-wallet-wagmi-2.0.4-dev.tgz", - "integrity": "sha512-QMm52tDzOJfzQC7q8A/7VuGV1jOeUukFQbkrviouJbk0WkLkI1mTVRqWdcCoY7rpaQ4m+gE8CS2mK60SLuihhw==", - "license": "ISC", - "peerDependencies": { - "@nexeraid/identity-schemas": "^1.12.20-dev", - "@nexeraid/web-sdk": "^2.0.19-dev", - "wagmi": ">= 2.10.0 && < 3.0.0" - } - }, - "node_modules/@nexeraid/react-sdk/node_modules/@nexeraid/identity-schemas": { - "version": "1.12.22-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-1.12.22-dev.tgz", - "integrity": "sha512-f3gxbhCVTdjVss7nln+VuTQPNRWnK7H+vfsVVyqTtBwmlfLbp01/cjELx1OgELx2ftOkmOdLfRmDT0obJw3Tng==", - "license": "ISC", - "dependencies": { - "nanoid": "3.3.4", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.23.2" - } - }, - "node_modules/@nexeraid/react-sdk/node_modules/@nexeraid/web-sdk": { - "version": "2.0.23-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/web-sdk/-/web-sdk-2.0.23-dev.tgz", - "integrity": "sha512-lvuWhIJYripArWfAXliY2gMjamuWmfv2CPw5iEPXHXYKDNkgH1xqf/aX8/SGqh1rFZLWAYpFRvwV4tv6vvb0Pw==", - "license": "ISC", - "dependencies": { - "@nexeraid/identity-api-client": "1.3.215-dev", - "@nexeraid/identity-schemas": "1.12.22-dev", - "@nexeraid/logger": "0.1.2-dev", - "eventemitter3": "^5.0.1", - "jwt-decode": "^3.1.2", - "pino": "^9.4.0", - "remeda": "^1.61.0", - "zod": "^3.23.8" - } - }, - "node_modules/@nexeraid/web-sdk": { - "version": "2.0.19-dev", - "resolved": "https://registry.npmjs.org/@nexeraid/web-sdk/-/web-sdk-2.0.19-dev.tgz", - "integrity": "sha512-bh0368bbR9QdVrk205zf5xCAKt471iVg8xO7Fiq4VIkqd4JKIhTTuSyh+1UYnyidzyKi/6Q0ZgYcU6rm0sp08w==", - "license": "ISC", - "peer": true, - "dependencies": { - "@nexeraid/identity-api-client": "1.3.215-dev", - "@nexeraid/identity-schemas": "1.12.20-dev", - "@nexeraid/logger": "0.1.2-dev", - "eventemitter3": "^5.0.1", - "jwt-decode": "^3.1.2", - "pino": "^9.2.0", - "remeda": "^1.61.0", + "pino-std-serializers": "^7.0.0", "zod": "^3.23.8" } }, @@ -5329,6 +5225,12 @@ "integrity": "sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==", "license": "MIT" }, + "node_modules/@stablelib/base64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz", + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==", + "license": "MIT" + }, "node_modules/@stablelib/binary": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", @@ -6818,13 +6720,17 @@ } }, "node_modules/browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz", + "integrity": "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==", "license": "MIT", "dependencies": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" + "bn.js": "^5.2.1", + "randombytes": "^2.1.0", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" } }, "node_modules/browserify-rsa/node_modules/bn.js": { @@ -6833,6 +6739,26 @@ "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", "license": "MIT" }, + "node_modules/browserify-rsa/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/browserify-sign": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.3.tgz", @@ -8265,6 +8191,12 @@ "node": ">= 0.4" } }, + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -8582,6 +8514,12 @@ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", "license": "MIT" }, + "node_modules/fast-sha256": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz", + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==", + "license": "Unlicense" + }, "node_modules/fast-xml-parser": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz", @@ -10021,12 +9959,6 @@ "node": "*" } }, - "node_modules/jwt-decode": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", - "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", - "license": "MIT" - }, "node_modules/keccak": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", @@ -12262,6 +12194,12 @@ "node": ">=0.4.x" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "license": "MIT" + }, "node_modules/queue": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", @@ -12813,12 +12751,6 @@ "jsesc": "bin/jsesc" } }, - "node_modules/remeda": { - "version": "1.61.0", - "resolved": "https://registry.npmjs.org/remeda/-/remeda-1.61.0.tgz", - "integrity": "sha512-caKfSz9rDeSKBQQnlJnVW3mbVdFgxgGWQKq1XlFokqjf+hQD5gxutLGTTY2A/x24UxVyJe9gH5fAkFI63ULw4A==", - "license": "MIT" - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -12834,6 +12766,12 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "license": "ISC" }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -13849,6 +13787,29 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/svix": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/svix/-/svix-1.21.0.tgz", + "integrity": "sha512-aKZVf1Jc962frT/Hpz064mtpDgu80dBK1B/+qVY5PKYdYIzOpvdiWn3pqQNjCTN8T4vwg9oc4xl1xTd1ka3agQ==", + "license": "MIT", + "dependencies": { + "@stablelib/base64": "^1.0.0", + "es6-promise": "^4.2.4", + "fast-sha256": "^1.3.0", + "svix-fetch": "^3.0.0", + "url-parse": "^1.4.3" + } + }, + "node_modules/svix-fetch": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/svix-fetch/-/svix-fetch-3.0.0.tgz", + "integrity": "sha512-rcADxEFhSqHbraZIsjyZNh4TF6V+koloX1OzZ+AQuObX9mZ2LIMhm1buZeuc5BIZPftZpJCMBsSiBaeszo9tRw==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" + } + }, "node_modules/syntax-error": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", @@ -14373,6 +14334,16 @@ "node": ">= 0.4" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/use-callback-ref": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.2.tgz", @@ -14656,8 +14627,7 @@ "version": "3.6.20", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/whatwg-url": { "version": "5.0.0", @@ -14870,16 +14840,18 @@ } }, "node_modules/zod-to-json-schema": { - "version": "3.23.2", + "version": "3.23.3", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz", + "integrity": "sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog==", "license": "ISC", "peerDependencies": { "zod": "^3.23.3" } }, "node_modules/zod-validation-error": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.3.1.tgz", - "integrity": "sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.4.0.tgz", + "integrity": "sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ==", "license": "MIT", "engines": { "node": ">=18.0.0" diff --git a/v2/nextjs-web3/package.json b/v2/nextjs-web3/package.json index 7abc1044..6daf35f1 100644 --- a/v2/nextjs-web3/package.json +++ b/v2/nextjs-web3/package.json @@ -1,5 +1,5 @@ { - "name": "example-next-rainbowkit-w3", + "name": "example-ComPilot-next-rainbowkit-w3", "private": true, "version": "0.1.0", "scripts": { @@ -8,9 +8,9 @@ "start": "next start" }, "dependencies": { - "@nexeraid/js-sdk": "^2.0.28-dev", - "@nexeraid/react-sdk": "^2.0.34-dev", - "@nexeraid/react-sdk-wallet-wagmi": "^2.0.4-dev", + "@compilot/js-sdk": "^2.1.12", + "@compilot/react-sdk": "^2.1.12", + "@compilot/web-sdk-wallet-wagmi": "^2.1.10", "@rainbow-me/rainbowkit": "^2.1.5", "@tanstack/react-query": "^5.51.11", "next": "^14.2.3", @@ -25,4 +25,4 @@ "typescript": "5.4.2" }, "packageManager": "yarn@1.22.22+sha512" -} +} \ No newline at end of file diff --git a/v2/nextjs-web3/src/nexera-config.ts b/v2/nextjs-web3/src/compilot-config.ts similarity index 100% rename from v2/nextjs-web3/src/nexera-config.ts rename to v2/nextjs-web3/src/compilot-config.ts diff --git a/v2/nextjs-web3/src/pages/_app.tsx b/v2/nextjs-web3/src/pages/_app.tsx index fcf38af9..8cc76e3a 100644 --- a/v2/nextjs-web3/src/pages/_app.tsx +++ b/v2/nextjs-web3/src/pages/_app.tsx @@ -4,13 +4,10 @@ import type { AppProps } from "next/app"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { WagmiProvider } from "wagmi"; import { RainbowKitProvider } from "@rainbow-me/rainbowkit"; -import { NexeraIdProvider } from "@nexeraid/react-sdk"; import { config } from "../wagmi"; -import { createWagmiWalletAdapter } from "@nexeraid/react-sdk-wallet-wagmi"; -import { createWeb3AuthAdapter, createConfig } from "@nexeraid/react-sdk"; -import { generateChallenge } from "../nexera-config"; -import { createWagmiWalletAdapter } from "@nexeraid/react-sdk-wallet-wagmi"; -import { NexeraIdProvider, createWeb3AuthAdapter, createConfig } from "@nexeraid/react-sdk"; +import { createWagmiWalletAdapter } from "@compilot/web-sdk-wallet-wagmi"; +import { ComPilotProvider, createWeb3AuthAdapter, createConfig } from "@compilot/react-sdk"; +import { generateChallenge } from "../compilot-config"; const walletAdapter = createWagmiWalletAdapter(config); @@ -18,7 +15,7 @@ const authAdapter = createWeb3AuthAdapter({ generateChallenge, wallet: walletAdapter, }); -const nexeraConfig = createConfig({ authAdapter }); +const compilotConfig = createConfig({ authAdapter }); const client = new QueryClient(); @@ -27,9 +24,9 @@ function MyApp({ Component, pageProps }: AppProps) { - + - + diff --git a/v2/nextjs-web3/src/pages/api/challenge.ts b/v2/nextjs-web3/src/pages/api/challenge.ts index c1105a4b..80b8a354 100644 --- a/v2/nextjs-web3/src/pages/api/challenge.ts +++ b/v2/nextjs-web3/src/pages/api/challenge.ts @@ -1,9 +1,9 @@ import type { NextApiRequest, NextApiResponse } from "next"; -import { createNexeraSdk } from "@nexeraid/js-sdk"; +import { createSdk } from "@compilot/js-sdk"; -const apiClient = createNexeraSdk({ +const apiClient = createSdk({ webhookSecret: process.env.WEBHOOK_SECRET!, - apiKey: process.env.API_KEY!, + apiKey: process.env.COMPILOT_API_KEY_NEXTJS_WEB3!, }); export default async function handler( diff --git a/v2/nextjs-web3/src/pages/index.tsx b/v2/nextjs-web3/src/pages/index.tsx index 9e413107..8725618c 100644 --- a/v2/nextjs-web3/src/pages/index.tsx +++ b/v2/nextjs-web3/src/pages/index.tsx @@ -2,29 +2,29 @@ import { ConnectButton } from "@rainbow-me/rainbowkit"; import type { NextPage } from "next"; import Head from "next/head"; import styles from "../styles/Home.module.css"; -import { useOpenWidget } from "@nexeraid/react-sdk"; +import { useOpenWidget } from "@compilot/react-sdk"; const Home: NextPage = () => { const openWidget = useOpenWidget(); return (
- NexeraID Next.Js Web3 - + ComPilot Next.Js Web3 +

- Welcome to NexeraID + Welcome to ComPilot
NextJS Web3 example.

@@ -32,21 +32,21 @@ const Home: NextPage = () => { This example uses RainbowKit and Wagmi. Get started by editing{" "} pages/index.tsx
- Check _app.tsx , nexera-config.ts and challenge.ts to work on NexeraID + Check _app.tsx , compilot-config.ts and challenge.ts to work on ComPilot integration

-

NexeraID Documentation →

+

ComPilot Documentation →

Learn how to Implement our compliance widget on your App.

-

NexeraID Examples →

-

Discover example NexeraID projects.

+

ComPilot Examples →

+

Discover example ComPilot projects.

RainbowKit Documentation →

diff --git a/v2/nextjs-web3/src/styles/globals.css b/v2/nextjs-web3/src/styles/globals.css index d8f4da9d..5f9b3667 100644 --- a/v2/nextjs-web3/src/styles/globals.css +++ b/v2/nextjs-web3/src/styles/globals.css @@ -15,7 +15,7 @@ a { } -#nexera-button { +#compilot-button { margin-top: 10px; background-color: #0f76fc; border: none; diff --git a/v2/nextjs-web3/yarn.lock b/v2/nextjs-web3/yarn.lock index a0e1d7d2..62040762 100644 --- a/v2/nextjs-web3/yarn.lock +++ b/v2/nextjs-web3/yarn.lock @@ -26,6 +26,50 @@ preact "^10.16.0" sha.js "^2.4.11" +"@compilot/js-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/js-sdk/-/js-sdk-2.1.12.tgz#3a507a3cec440222a51ef0733fc0c294a1030ac7" + integrity sha512-MBBVIzxP/trf0/FwpHznDl7omrC9iGdNuVC+5dG6Fq0n2O3t6SNVFupOxlXmh3kG/aaGNm1GvZuHKyqbsNbonw== + dependencies: + "@nexeraid/api-client" "2.1.9" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + pino "^9.4.0" + svix "1.21.0" + zod "^3.23.8" + +"@compilot/react-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/react-sdk/-/react-sdk-2.1.12.tgz#8c5674e0769cc06925acd2628c6c08a85998cbc7" + integrity sha512-wuiDbopG9jtTjSbBxLKOEq8AHr4S8e9VuDkSAuPG7UiucUfXiTGhb6oGPK8nqinwz0oz2qnLu+Hgfzs7ccKCDg== + dependencies: + "@compilot/web-sdk" "2.1.12" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + pino "^9.4.0" + zod "^3.23.8" + +"@compilot/web-sdk-wallet-wagmi@^2.1.10": + version "2.1.10" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk-wallet-wagmi/-/web-sdk-wallet-wagmi-2.1.10.tgz#1b7d7a330344571dcffd0e0fe123e50ee5f6b7b8" + integrity sha512-Tm4OI1fuq535E+/vRP+zUm1ks2GNvVPFRc42VzrtCu1wCrLsj8y2UfLEhRiqj1eEjbGSn23ksEIYAChbXwdi0Q== + +"@compilot/web-sdk@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk/-/web-sdk-2.1.12.tgz#06d352ddbbfbae79ad99e84ee77b112ed8a34122" + integrity sha512-tL0S5CELbfc/hIDv7PvPDzcW9sX81PkxQ+hHXWtfBnsiDrKQ4gbgnfhN8pRc1RkeagKZWukOsgist+lN8SUeqw== + dependencies: + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + eventemitter3 "^5.0.1" + jwt-decode "^3.1.2" + pino "^9.4.0" + remeda "^1.61.0" + zod "^3.23.8" + "@emotion/hash@^0.9.0": version "0.9.2" resolved "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz" @@ -181,10 +225,10 @@ dependencies: qr-code-styling "^1.6.0-rc.1" -"@metamask/sdk@0.28.2": - version "0.28.2" - resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.28.2.tgz#99995a2cefd4bc6c4459869ee15c3b91ad02c488" - integrity sha512-pylk1uJAZYyO3HcNW/TNfII3+T+Yx6qrFYaC/HmuSIuRJeXsdZuExSbNQ236iQocIy3L7JjI+GQKbv3TbN+HQQ== +"@metamask/sdk@0.28.4": + version "0.28.4" + resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.28.4.tgz#bb5f3849629403ec97c23e1a968c6b893ecf001c" + integrity sha512-RjWBKPNesjeua2SXIDF9IvYALOSsOQyqHv5DPPK0Voskytk7y+2n/33ocbC1BH5hTLI4hDPH+BuCpXJRWs3/Yg== dependencies: "@metamask/onboarding" "^1.0.1" "@metamask/providers" "16.1.0" @@ -325,146 +369,93 @@ "@motionone/dom" "^10.16.4" tslib "^2.3.1" -"@nexeraid/api-client@1.10.2-dev": - version "1.10.2-dev" - resolved "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-1.10.2-dev.tgz" - integrity sha512-ohzAF+ctWPrWG3STMRMOdtdRyPCBGosZ+ugKVL81e9+kg60pubVbJiRGBNxyPSEYBqss3PYxYowP+2Le9hnR0Q== +"@nexeraid/api-client@2.1.9": + version "2.1.9" + resolved "https://registry.npmjs.org/@nexeraid/api-client/-/api-client-2.1.9.tgz" + integrity sha512-3qVOZYXGIjFiPDdlaEdcnWXnuz25B5cUWjgXijKJXoIRYalRYP7dPO290fvs02FPjsDJdEVtjChNxy9L6Pl36g== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" + "@nexeraid/identity-schemas" "2.1.12" "@trpc/server" "^10.45.2" zod "^3.23.8" - zod-validation-error "^3.3.1" + zod-validation-error "^3.4.0" -"@nexeraid/identity-api-client@1.3.215-dev": - version "1.3.215-dev" - resolved "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-1.3.215-dev.tgz" - integrity sha512-YrO/GAZGRB5ScbQsqd1R+GqKYPEUe+vpk/SxXVwN9QHAVuZDDiF3F9E603bPqdQDNu73ebcDqHiq0OmU2ar6OQ== +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.npmjs.org/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" + "@nexeraid/identity-schemas" "2.1.12" zod "3.22.4" - zod-validation-error "^3.3.1" + zod-validation-error "^3.4.0" -"@nexeraid/identity-schemas@1.12.27-dev": - version "1.12.27-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" - integrity sha512-68GBSzy6JHWL/y4y5T3a73MY3M9rU+eYH3K3zFQF54afZboDiGIhk2EkcQqGzfCzqL7e54a9bQ6HfT/HGUPTPQ== +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== dependencies: nanoid "3.3.4" zod "^3.23.8" zod-to-json-schema "^3.23.3" -"@nexeraid/identity-schemas@1.12.6-dev": - version "1.12.6-dev" - resolved "https://registry.npmjs.org/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz" - integrity sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA== - dependencies: - nanoid "3.3.4" - zod "^3.23.8" - zod-to-json-schema "^3.23.2" - -"@nexeraid/js-sdk@^2.0.28-dev": - version "2.0.28-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/js-sdk/-/js-sdk-2.0.28-dev.tgz#446b36b852fe4ecaa199ece43dc73a45739d0af9" - integrity sha512-Uqe1pTHErRNoYpEGyP6nIfD51bvXBKUyro2S0fIf2Mo905jupFBW8D4HsnhHuwRKDyVz+ysv/0d7OniMuuaiQA== - dependencies: - "@nexeraid/api-client" "1.10.2-dev" - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - pino "^9.4.0" - svix "1.21.0" - zod "^3.23.8" - -"@nexeraid/logger@0.1.2-dev": - version "0.1.2-dev" - resolved "https://registry.npmjs.org/@nexeraid/logger/-/logger-0.1.2-dev.tgz" - integrity sha512-GVDN+3s3K/xwWJ5K7RFOA/nB6nAq9Z8SjLdf1wJxE84lqWuezFSvn3SraJIaDhIZsulFdretKxjfKOQiCdAajw== +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.npmjs.org/@nexeraid/logger/-/logger-2.1.7.tgz" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== dependencies: browserify "^17.0.0" - pino "^9.3.2" - pino-std-serializers "^7.0.0" - zod "^3.23.8" - -"@nexeraid/react-sdk-wallet-wagmi@^2.0.4-dev": - version "2.0.4-dev" - resolved "https://registry.npmjs.org/@nexeraid/react-sdk-wallet-wagmi/-/react-sdk-wallet-wagmi-2.0.4-dev.tgz" - integrity sha512-QMm52tDzOJfzQC7q8A/7VuGV1jOeUukFQbkrviouJbk0WkLkI1mTVRqWdcCoY7rpaQ4m+gE8CS2mK60SLuihhw== - -"@nexeraid/react-sdk@^2.0.34-dev": - version "2.0.34-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/react-sdk/-/react-sdk-2.0.34-dev.tgz#44b26f4b52141f2e13de9d5368ebc4ee0e57ec76" - integrity sha512-zC4f55yGjAJKuvpe3xMc/cg+/odE0f5iJWhZ/yYFOt6ahzXZRS3HZHh3M1lb+1y9tKIMUFJNG5togLNmNgL1xw== - dependencies: - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - "@nexeraid/web-sdk" "2.0.29-dev" pino "^9.4.0" + pino-std-serializers "^7.0.0" zod "^3.23.8" -"@nexeraid/web-sdk@2.0.29-dev": - version "2.0.29-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/web-sdk/-/web-sdk-2.0.29-dev.tgz#2a3034bc343869ac7306429b1709ee3200c88487" - integrity sha512-JnK4Ob/iGVxWFKVwoC3X6E1kd6aqM7TlvrRfy07mqTliKi3USI2vop8dYqbplDR3uLMPLbU8GrUUj8a/X5AJ3Q== - dependencies: - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - eventemitter3 "^5.0.1" - jwt-decode "^3.1.2" - pino "^9.4.0" - remeda "^1.61.0" - zod "^3.23.8" - -"@next/env@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/env/-/env-14.2.9.tgz#f7fed48efa51b069cfc611082ad0101756df4c6a" - integrity sha512-hnDAoDPMii31V0ivibI8p6b023jOF1XblWTVjsDUoZKwnZlaBtJFZKDwFqi22R8r9i6W08dThUWU7Bsh2Rg8Ww== - -"@next/swc-darwin-arm64@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.9.tgz#6d6880b580a0cb8d71be929d5399f0904d867e0a" - integrity sha512-/kfQifl3uLYi3DlwFlzCkgxe6fprJNLzzTUFknq3M5wGYicDIbdGlxUl6oHpVLJpBB/CBY3Y//gO6alz/K4NWA== - -"@next/swc-darwin-x64@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.9.tgz#56af7531ed75638923cd8cba9a43b724bcfd7fea" - integrity sha512-tK/RyhCmOCiXQ9IVdFrBbZOf4/1+0RSuJkebXU2uMEsusS51TjIJO4l8ZmEijH9gZa0pJClvmApRHi7JuBqsRw== - -"@next/swc-linux-arm64-gnu@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.9.tgz#d3e9a1fdf8eabd510c1139446178bfea2737c1e5" - integrity sha512-tS5eqwsp2nO7mzywRUuFYmefNZsUKM/mTG3exK2jIHv9TEVklE1SByB1KMhFkqlit1PxS9YK1tV8BOV90Wpbrw== - -"@next/swc-linux-arm64-musl@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.9.tgz#82e570b25b471e9aabba70c8f62ccb7dd33e45fa" - integrity sha512-8svpeTFNAMTUMKQbEzE8qRAwl9o7mNBv7LR1bmSkQvo1oy4WrNyZbhWsldOiKrc4mZ5dfQkGYsI9T75mIFMfeA== - -"@next/swc-linux-x64-gnu@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.9.tgz#277884aecc9ef7cddc9079d2dc137ecaa537ce0c" - integrity sha512-0HNulLWpKTB7H5BhHCkEhcRAnWUHeAYCftrrGw3QC18+ZywTdAoPv/zEqKy/0adqt+ks4JDdlgSQ1lNKOKjo0A== - -"@next/swc-linux-x64-musl@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.9.tgz#6fd60f804c95b9cd8abf178424b76b63806c9b53" - integrity sha512-hhVFViPHLAVUJRNtwwm609p9ozWajOmRvzOZzzKXgiVGwx/CALxlMUeh+M+e0Zj6orENhWLZeilOPHpptuENsA== - -"@next/swc-win32-arm64-msvc@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.9.tgz#f7d99c80d118e29a5910f8925ff11eb29fd775b3" - integrity sha512-p/v6XlOdrk06xfN9z4evLNBqftVQUWiyduQczCwSj7hNh8fWTbzdVxsEiNOcajMXJbQiaX/ZzZdFgKVmmJnnGQ== - -"@next/swc-win32-ia32-msvc@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.9.tgz#e233fd707d827786a676df4b858345e8812cbae3" - integrity sha512-IcW9dynWDjMK/0M05E3zopbRen7v0/yEaMZbHFOSS1J/w+8YG3jKywOGZWNp/eCUVtUUXs0PW+7Lpz8uLu+KQA== - -"@next/swc-win32-x64-msvc@14.2.9": - version "14.2.9" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.9.tgz#c71cc74a6247ddcb4ec1b0e73f52e084c71efe9b" - integrity sha512-gcbpoXyWZdVOBgNa5BRzynrL5UR1nb2ZT38yKgnphYU9UHjeecnylMHntrQiMg/QtONDcJPFC/PmsS47xIRYoA== +"@next/env@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/env/-/env-14.2.13.tgz#ba341ba9eb70db428fc1c754f49c3c516f7bab47" + integrity sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw== + +"@next/swc-darwin-arm64@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.13.tgz#76f08d78360c4d27d444df7f35a56f59a48f4808" + integrity sha512-IkAmQEa2Htq+wHACBxOsslt+jMoV3msvxCn0WFSfJSkv/scy+i/EukBKNad36grRxywaXUYJc9mxEGkeIs8Bzg== + +"@next/swc-darwin-x64@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.13.tgz#1d4821d54bb01dacc6a6c32408f8468a4f4af269" + integrity sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog== + +"@next/swc-linux-arm64-gnu@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.13.tgz#79d9af8d3408df9990c8911889eca1ca6a308f19" + integrity sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg== + +"@next/swc-linux-arm64-musl@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.13.tgz#b13180645865b120591db2f1e831743ebc02ab36" + integrity sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg== + +"@next/swc-linux-x64-gnu@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.13.tgz#8cb8480dfeee512648e4e08c2095aac0461b876f" + integrity sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA== + +"@next/swc-linux-x64-musl@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.13.tgz#df5ca922fa1e1ee81b15a06a2d3d3ace0efd2bd7" + integrity sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg== + +"@next/swc-win32-arm64-msvc@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.13.tgz#8a7db6e71f526212587975f743b28e4d1cb829d1" + integrity sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ== + +"@next/swc-win32-ia32-msvc@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.13.tgz#6aa664f36f2d70c5ae6ffcbbc56784d33f24522d" + integrity sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw== + +"@next/swc-win32-x64-msvc@14.2.13": + version "14.2.13" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.13.tgz#5a920eea82a58affa6146192586716cec6c87fed" + integrity sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw== "@noble/curves@1.4.0": version "1.4.0" @@ -590,9 +581,9 @@ "@parcel/watcher-win32-x64" "2.4.1" "@rainbow-me/rainbowkit@^2.1.5": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@rainbow-me/rainbowkit/-/rainbowkit-2.1.6.tgz#e9a296bda244e85199962e4c95524978206d188e" - integrity sha512-DCt6VYuPPxcPY6veuSOa784mHHHN0uSdDBTivdUBssmjTwHMmOrEs6kuKSYTPRu8EAwA1AvIc+ulSVnS022nbg== + version "2.1.7" + resolved "https://registry.yarnpkg.com/@rainbow-me/rainbowkit/-/rainbowkit-2.1.7.tgz#f84250d8f6dfbdd8539544cfb298c8cb0ea83357" + integrity sha512-xaviD0sE+/Nk1/2UK/C79QNnhIDLd5jn4ODNjb9ErEVJIDtuLwDLkgZ8BWkpfxLBTOn00fuxKkfIijxwQrfKMg== dependencies: "@vanilla-extract/css" "1.15.5" "@vanilla-extract/dynamic" "2.1.2" @@ -665,7 +656,7 @@ "@stablelib/base64@^1.0.0": version "1.0.1" - resolved "https://registry.yarnpkg.com/@stablelib/base64/-/base64-1.0.1.tgz#bdfc1c6d3a62d7a3b7bbc65b6cce1bb4561641be" + resolved "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz" integrity sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ== "@stablelib/binary@^1.0.1": @@ -810,17 +801,17 @@ "@swc/counter" "^0.1.3" tslib "^2.4.0" -"@tanstack/query-core@5.55.4": - version "5.55.4" - resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.55.4.tgz#21ef6c6505bf108570f1c18f5f3b90efc8b1c2d6" - integrity sha512-uoRqNnRfzOH4OMIoxj8E2+Us89UIGXfau981qYJWsNMkFS1GXR4UIyzUTVGq4N7SDLHgFPpo6IOazqUV5gkMZA== +"@tanstack/query-core@5.56.2": + version "5.56.2" + resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.56.2.tgz#2def2fb0290cd2836bbb08afb0c175595bb8109b" + integrity sha512-gor0RI3/R5rVV3gXfddh1MM+hgl0Z4G7tj6Xxpq6p2I03NGPaJ8dITY9Gz05zYYb/EJq9vPas/T4wn9EaDPd4Q== "@tanstack/react-query@^5.51.11": - version "5.55.4" - resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.55.4.tgz#4c8f54a05704e9f9a9ffc77a6dfa79b5a33f9905" - integrity sha512-e3uX5XkLD9oTV66/VsVpkYz3Ds/ps/Yk+V5d89xthAbtNIKKBEm4FdNb9yISFzGEGezUzVO68qmfmiSrtScvsg== + version "5.56.2" + resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.56.2.tgz#3a0241b9d010910905382f5e99160997b8795f91" + integrity sha512-SR0GzHVo6yzhN72pnRhkEFRAHMsUo5ZPzAxfTMvUxFIDVS6W9LYUp6nXW3fcHVdg0ZJl8opSH85jqahvm6DSVg== dependencies: - "@tanstack/query-core" "5.55.4" + "@tanstack/query-core" "5.56.2" "@trpc/server@^10.45.2": version "10.45.2" @@ -916,23 +907,23 @@ resolved "https://registry.yarnpkg.com/@vanilla-extract/sprinkles/-/sprinkles-1.6.3.tgz#733968d653cc2395538b5c29f04dcdb0a2ca15c5" integrity sha512-oCHlQeYOBIJIA2yWy2GnY5wE2A7hGHDyJplJo4lb+KEIBcJWRnDJDg8ywDwQS5VfWJrBBO3drzYZPFpWQjAMiQ== -"@wagmi/connectors@5.1.10": - version "5.1.10" - resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.1.10.tgz#316dcdbb3924c546c177b0fc287e0f591225c63f" - integrity sha512-ybgKV09PIhgUgQ4atXTs2KOy4Hevd6f972SXfx6HTgsnFXlzxzN6o0aWjhavZOYjvx5tjuL3+8Mgqo0R7uP5Cg== +"@wagmi/connectors@5.1.14": + version "5.1.14" + resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.1.14.tgz#392f187298ea0a68c5443ffe93d714187c01c83b" + integrity sha512-3faf6gXFI1nX/kud5e2s+8fMjnuWp14XwqHVNCOfl7nVXQlEFAvjQxI1GrGyHckfHm7e6oXdm2eJwJGgPWi0QQ== dependencies: "@coinbase/wallet-sdk" "4.0.4" - "@metamask/sdk" "0.28.2" + "@metamask/sdk" "0.28.4" "@safe-global/safe-apps-provider" "0.18.3" "@safe-global/safe-apps-sdk" "9.1.0" "@walletconnect/ethereum-provider" "2.16.1" "@walletconnect/modal" "2.6.2" cbw-sdk "npm:@coinbase/wallet-sdk@3.9.3" -"@wagmi/core@2.13.5": - version "2.13.5" - resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.13.5.tgz#20764d88d36c31c4557511309eef7d23fa60c98e" - integrity sha512-lvX/hApJTSA/H2kOklokjIYiUpnT8CpBH80GeOiKxU0CGK1wNHTu20GRTCy0GF1t7jkNwPSG3m0SmnXmgYMmHw== +"@wagmi/core@2.13.8": + version "2.13.8" + resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.13.8.tgz#55ac623c3e92150e6de3b5405bc603d922707f7b" + integrity sha512-bX84cpLq3WWQgGthJlSgcWPAOdLzrP/W0jnbz5XowkCUn6j/T77WyxN5pBb+HmLoJf3ei9tkX9zWhMpczTc3cA== dependencies: eventemitter3 "5.0.1" mipd "0.0.7" @@ -1320,7 +1311,7 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -bn.js@^5.0.0, bn.js@^5.2.1: +bn.js@^5.2.1: version "5.2.1" resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== @@ -1401,12 +1392,13 @@ browserify-des@^1.0.0: safe-buffer "^5.1.2" browserify-rsa@^4.0.0, browserify-rsa@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz" - integrity sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog== + version "4.1.1" + resolved "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz" + integrity sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ== dependencies: - bn.js "^5.0.0" - randombytes "^2.0.1" + bn.js "^5.2.1" + randombytes "^2.1.0" + safe-buffer "^5.2.1" browserify-sign@^4.0.0: version "4.2.3" @@ -1552,9 +1544,9 @@ camelcase@^5.0.0: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30001579: - version "1.0.30001660" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" - integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== + version "1.0.30001664" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001664.tgz#d588d75c9682d3301956b05a3749652a80677df4" + integrity sha512-AmE7k4dXiNKQipgn7a2xg558IRqPN3jMQY/rOsbxDhrd0tyChwbITBfiwtnqz8bi2M5mIWbxAYBvk7W7QBUS2g== "cbw-sdk@npm:@coinbase/wallet-sdk@3.9.3": version "3.9.3" @@ -2040,7 +2032,7 @@ es-errors@^1.3.0: es6-promise@^4.2.4: version "4.2.8" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" + resolved "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz" integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== escalade@^3.1.1: @@ -2168,7 +2160,7 @@ fast-safe-stringify@^2.0.6, fast-safe-stringify@^2.0.7: fast-sha256@^1.3.0: version "1.3.0" - resolved "https://registry.yarnpkg.com/fast-sha256/-/fast-sha256-1.3.0.tgz#7916ba2054eeb255982608cccd0f6660c79b7ae6" + resolved "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz" integrity sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ== fill-range@^7.1.1: @@ -2625,7 +2617,7 @@ jsonparse@^1.2.0: jwt-decode@^3.1.2: version "3.1.2" - resolved "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz" + resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59" integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A== keccak@^3.0.3: @@ -2891,11 +2883,11 @@ napi-wasm@^1.1.0: integrity sha512-h/4nMGsHjZDCYmQVNODIrYACVJ+I9KItbG+0si6W/jSjdA9JbWDoU4LLeMXVcEQGHjttI2tuXqDrbGF7qkUHHg== next@^14.2.3: - version "14.2.9" - resolved "https://registry.yarnpkg.com/next/-/next-14.2.9.tgz#51d0e067cd9eb8a51fd5c0efd5d8f28181849729" - integrity sha512-3CzBNo6BuJnRjcQvRw+irnU1WiuJNZEp+dkzkt91y4jeIDN/Emg95F+takSYiLpJ/HkxClVQRyqiTwYce5IVqw== + version "14.2.13" + resolved "https://registry.yarnpkg.com/next/-/next-14.2.13.tgz#32da2ee0afbe729e2d4a467c3570def90e1c974d" + integrity sha512-BseY9YNw8QJSwLYD7hlZzl6QVDoSFHL/URN5K64kVEVpCsSOWeyjbIGK+dZUaRViHTaMQX8aqmnn0PHBbGZezg== dependencies: - "@next/env" "14.2.9" + "@next/env" "14.2.13" "@swc/helpers" "0.5.5" busboy "1.6.0" caniuse-lite "^1.0.30001579" @@ -2903,15 +2895,15 @@ next@^14.2.3: postcss "8.4.31" styled-jsx "5.1.1" optionalDependencies: - "@next/swc-darwin-arm64" "14.2.9" - "@next/swc-darwin-x64" "14.2.9" - "@next/swc-linux-arm64-gnu" "14.2.9" - "@next/swc-linux-arm64-musl" "14.2.9" - "@next/swc-linux-x64-gnu" "14.2.9" - "@next/swc-linux-x64-musl" "14.2.9" - "@next/swc-win32-arm64-msvc" "14.2.9" - "@next/swc-win32-ia32-msvc" "14.2.9" - "@next/swc-win32-x64-msvc" "14.2.9" + "@next/swc-darwin-arm64" "14.2.13" + "@next/swc-darwin-x64" "14.2.13" + "@next/swc-linux-arm64-gnu" "14.2.13" + "@next/swc-linux-arm64-musl" "14.2.13" + "@next/swc-linux-x64-gnu" "14.2.13" + "@next/swc-linux-x64-musl" "14.2.13" + "@next/swc-win32-arm64-msvc" "14.2.13" + "@next/swc-win32-ia32-msvc" "14.2.13" + "@next/swc-win32-x64-msvc" "14.2.13" node-addon-api@^2.0.0: version "2.0.2" @@ -2935,7 +2927,7 @@ node-fetch-native@^1.6.3, node-fetch-native@^1.6.4: node-fetch@^2.6.1, node-fetch@^2.6.12: version "2.7.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== dependencies: whatwg-url "^5.0.0" @@ -3200,7 +3192,7 @@ pino@7.11.0: sonic-boom "^2.2.1" thread-stream "^0.15.1" -pino@^9.3.2, pino@^9.4.0: +pino@^9.4.0: version "9.4.0" resolved "https://registry.npmjs.org/pino/-/pino-9.4.0.tgz" integrity sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w== @@ -3365,7 +3357,7 @@ querystring-es3@~0.2.0: querystringify@^2.1.1: version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + resolved "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz" integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== quick-format-unescaped@^4.0.3: @@ -3378,7 +3370,7 @@ radix3@^1.1.2: resolved "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz" integrity sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA== -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5, randombytes@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== @@ -3508,7 +3500,7 @@ regenerator-runtime@^0.14.0: remeda@^1.61.0: version "1.61.0" - resolved "https://registry.npmjs.org/remeda/-/remeda-1.61.0.tgz" + resolved "https://registry.yarnpkg.com/remeda/-/remeda-1.61.0.tgz#dccd31ab75d0f02865f3ef89e4f0ce0076096464" integrity sha512-caKfSz9rDeSKBQQnlJnVW3mbVdFgxgGWQKq1XlFokqjf+hQD5gxutLGTTY2A/x24UxVyJe9gH5fAkFI63ULw4A== require-directory@^2.1.1: @@ -3523,7 +3515,7 @@ require-main-filename@^2.0.0: requires-port@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== resolve@^1.1.4, resolve@^1.17.0, resolve@^1.4.0: @@ -3830,7 +3822,7 @@ supports-preserve-symlinks-flag@^1.0.0: svix-fetch@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/svix-fetch/-/svix-fetch-3.0.0.tgz#c13e20b69ceb3ad43b52dd3933ec30bf278c571d" + resolved "https://registry.npmjs.org/svix-fetch/-/svix-fetch-3.0.0.tgz" integrity sha512-rcADxEFhSqHbraZIsjyZNh4TF6V+koloX1OzZ+AQuObX9mZ2LIMhm1buZeuc5BIZPftZpJCMBsSiBaeszo9tRw== dependencies: node-fetch "^2.6.1" @@ -3838,7 +3830,7 @@ svix-fetch@^3.0.0: svix@1.21.0: version "1.21.0" - resolved "https://registry.yarnpkg.com/svix/-/svix-1.21.0.tgz#19e2883bf670b804b2371ce13ad3a81a55eb40e8" + resolved "https://registry.npmjs.org/svix/-/svix-1.21.0.tgz" integrity sha512-aKZVf1Jc962frT/Hpz064mtpDgu80dBK1B/+qVY5PKYdYIzOpvdiWn3pqQNjCTN8T4vwg9oc4xl1xTd1ka3agQ== dependencies: "@stablelib/base64" "^1.0.0" @@ -4023,7 +4015,7 @@ uqr@^0.1.2: url-parse@^1.4.3: version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + resolved "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz" integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== dependencies: querystringify "^2.1.1" @@ -4120,9 +4112,9 @@ viem@2.17.0: ws "8.17.1" viem@^2.1.1: - version "2.21.5" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.5.tgz#07db65f047f2c24732ccf92bb96933ea8e8048b9" - integrity sha512-MFuoeGA8hRJJ0CknSuKYZjVaxSy5hyzu9MCArOANz3Iq5RITBJNIhM+m6TNvO9I2AxCSF3+PZObjbrLVg7cX2w== + version "2.21.16" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.16.tgz#cf32200bbd1696bd6e86de7e1c12fcdfd77b63c1" + integrity sha512-SvhaPzTj3a+zR/5OmtJ0acjA6oGDrgPg4vtO8KboXtvbjksXEkz+oFaNjZDgxpkqbps2SLi8oPCjdpRm6WgDmw== dependencies: "@adraffy/ens-normalize" "1.10.0" "@noble/curves" "1.4.0" @@ -4140,12 +4132,12 @@ vm-browserify@^1.0.0: integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== wagmi@^2.12.0: - version "2.12.10" - resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.12.10.tgz#e212db1f86bf5522063494244e19676877dc6ccd" - integrity sha512-aSG0fW+Kft62syxAWkmSaMku5CZRW6Q2lsu64bLvLLVyZgZMt8+qQRdYk8WcFFdBzivkuDMRMREMxw7dwdImkw== + version "2.12.16" + resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.12.16.tgz#4ce84b67957ba24c6d440603c747a3e97114e23f" + integrity sha512-FBw8sEuo1uJkmGyl/DDxy9LSR/3t76CKFF8SxLi6nuPIaDr1hH5KOsBbpa0a8or7cY/tSLAhpTA/YBpDfDwL0Q== dependencies: - "@wagmi/connectors" "5.1.10" - "@wagmi/core" "2.13.5" + "@wagmi/connectors" "5.1.14" + "@wagmi/core" "2.13.8" use-sync-external-store "1.2.0" webauthn-p256@0.0.5: @@ -4173,7 +4165,7 @@ webidl-conversions@^3.0.0: whatwg-fetch@^3.4.1: version "3.6.20" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz#580ce6d791facec91d37c72890995a0b48d31c70" + resolved "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz" integrity sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg== whatwg-url@^5.0.0: @@ -4303,15 +4295,15 @@ yargs@^17.5.1: y18n "^5.0.5" yargs-parser "^21.1.1" -zod-to-json-schema@^3.23.2, zod-to-json-schema@^3.23.3: +zod-to-json-schema@^3.23.3: version "3.23.3" - resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz#56cf4e0bd5c4096ab46e63159e20998ec7b19c39" + resolved "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz" integrity sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog== -zod-validation-error@^3.3.1: - version "3.3.1" - resolved "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.3.1.tgz" - integrity sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA== +zod-validation-error@^3.4.0: + version "3.4.0" + resolved "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.4.0.tgz" + integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== zod@3.22.4: version "3.22.4" diff --git a/v2/no-framework-regular/README.md b/v2/no-framework-regular/README.md index 337ff0dd..62f58678 100644 --- a/v2/no-framework-regular/README.md +++ b/v2/no-framework-regular/README.md @@ -1,15 +1,14 @@ - -NexeraID widget integration example : for JS in regular mode. +ComPilot widget integration example : for JS in regular mode. =========================================================== -This example demonstrates how to integrate the NexeraID Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, we uses no framework and a customer ID as an environment variable to illustrate the integration. +This example demonstrates how to integrate the ComPilot Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, we uses no framework and a customer ID as an environment variable to illustrate the integration. ## pre-requisite : To run this example dApp, you need: - • Access to the NexeraID dashboard with an API key. + • Access to the ComPilot dashboard with an API key. • A workflow set up in your workspace. - • User authentication before opening a NexeraID session, with a unique ID for this user (such as an email address or another ID). + • User authentication before opening a ComPilot session, with a unique ID for this user (such as an email address or another ID). @@ -19,7 +18,7 @@ To run this example dApp, you need: ~~~~ -cd nexeraid-examples/v2/no-framework-regular/frontend +cd compilot-examples/v2/no-framework-regular/frontend npm install cd ../backend npm install @@ -49,9 +48,9 @@ npm dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -NexeraID KYC/KYB documentation : https://docs.compilot.ai/usescases/ -NexeraID technical documentation : https://docs.compilot.ai/developing +ComPilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ +ComPilot technical documentation : https://docs.compilot.ai/developing ## Credits : -This is a [NexeraID] (https://nexera.id) project \ No newline at end of file +This is a [ComPilot] (https://compilot.ai) project \ No newline at end of file diff --git a/v2/no-framework-regular/backend/package.json b/v2/no-framework-regular/backend/package.json index 7d95233d..0a6e1321 100644 --- a/v2/no-framework-regular/backend/package.json +++ b/v2/no-framework-regular/backend/package.json @@ -1,6 +1,7 @@ { "dependencies": { - "@nexeraid/js-sdk": "2.0.28-dev", + "@compilot/js-sdk": "^2.1.12", + "@compilot/web-sdk": "^2.1.12", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2" diff --git a/v2/no-framework-regular/backend/server.js b/v2/no-framework-regular/backend/server.js index 0413ad5c..b8fefc90 100644 --- a/v2/no-framework-regular/backend/server.js +++ b/v2/no-framework-regular/backend/server.js @@ -1,11 +1,11 @@ -const { createNexeraSdk } = require("@nexeraid/js-sdk"); +const { createSdk } = require("@compilot/js-sdk"); require("dotenv").config(); -const { API_KEY, WEBHOOK_SECRET, REGULAR_WORKFLOW_ID, CUSTOMER_ID, CUSTOMER_EMAIL, CUSTOMER_PHONE, CUSTOMER_WALLET_ADDRESS, CUSTOMER_WALLET_NAMESPACE } = process.env; +const { WEBHOOK_SECRET, REGULAR_WORKFLOW_ID, API_KEY, CUSTOMER_ID, CUSTOMER_EMAIL, CUSTOMER_PHONE, CUSTOMER_WALLET_ADDRESS, CUSTOMER_WALLET_NAMESPACE } = process.env; -const apiClient = createNexeraSdk({ - webhookSecret: process.env.WEBHOOK_SECRET, - apiKey: process.env.API_KEY, +const apiClient = createSdk({ + webhookSecret: WEBHOOK_SECRET, + apiKey: API_KEY, }); const express = require("express"); @@ -47,13 +47,13 @@ if (CUSTOMER_WALLET_ADDRESS || CUSTOMER_WALLET_NAMESPACE) { // API routes -//Regular route. process.env.CUSTOMER_ID must be replaced. you need to authenticate the user before opening a nexera user session. -app.post("/api/create-nexera-session", async (req, res) => { +//Regular route. CUSTOMER_ID must be replaced. You need to authenticate the user before opening a compilot user session. +app.post("/api/create-session", async (req, res) => { try { // Create the session const sessionRes = await apiClient.createSession({ - workflowId: process.env.REGULAR_WORKFLOW_ID, - externalCustomerId: process.env.CUSTOMER_ID, + workflowId: REGULAR_WORKFLOW_ID, + externalCustomerId: CUSTOMER_ID, }); // Attach customer information diff --git a/v2/no-framework-regular/backend/yarn.lock b/v2/no-framework-regular/backend/yarn.lock index a08cb8e6..9f2c2c1e 100644 --- a/v2/no-framework-regular/backend/yarn.lock +++ b/v2/no-framework-regular/backend/yarn.lock @@ -2,63 +2,68 @@ # yarn lockfile v1 -"@nexeraid/api-client@1.10.2-dev": - version "1.10.2-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/api-client/-/api-client-1.10.2-dev.tgz#cb3d053976662e7460f594beead2d1e6c664a39f" - integrity sha512-ohzAF+ctWPrWG3STMRMOdtdRyPCBGosZ+ugKVL81e9+kg60pubVbJiRGBNxyPSEYBqss3PYxYowP+2Le9hnR0Q== - dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" - "@trpc/server" "^10.45.2" +"@compilot/js-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/js-sdk/-/js-sdk-2.1.12.tgz#3a507a3cec440222a51ef0733fc0c294a1030ac7" + integrity sha512-MBBVIzxP/trf0/FwpHznDl7omrC9iGdNuVC+5dG6Fq0n2O3t6SNVFupOxlXmh3kG/aaGNm1GvZuHKyqbsNbonw== + dependencies: + "@nexeraid/api-client" "2.1.9" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + pino "^9.4.0" + svix "1.21.0" zod "^3.23.8" - zod-validation-error "^3.3.1" -"@nexeraid/identity-api-client@1.3.215-dev": - version "1.3.215-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-1.3.215-dev.tgz#1cf8d883367a3d6425f2a72242e785a0c0ff3adc" - integrity sha512-YrO/GAZGRB5ScbQsqd1R+GqKYPEUe+vpk/SxXVwN9QHAVuZDDiF3F9E603bPqdQDNu73ebcDqHiq0OmU2ar6OQ== +"@compilot/web-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk/-/web-sdk-2.1.12.tgz#06d352ddbbfbae79ad99e84ee77b112ed8a34122" + integrity sha512-tL0S5CELbfc/hIDv7PvPDzcW9sX81PkxQ+hHXWtfBnsiDrKQ4gbgnfhN8pRc1RkeagKZWukOsgist+lN8SUeqw== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" - zod "3.22.4" - zod-validation-error "^3.3.1" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + eventemitter3 "^5.0.1" + jwt-decode "^3.1.2" + pino "^9.4.0" + remeda "^1.61.0" + zod "^3.23.8" -"@nexeraid/identity-schemas@1.12.27-dev": - version "1.12.27-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" - integrity sha512-68GBSzy6JHWL/y4y5T3a73MY3M9rU+eYH3K3zFQF54afZboDiGIhk2EkcQqGzfCzqL7e54a9bQ6HfT/HGUPTPQ== +"@nexeraid/api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/api-client/-/api-client-2.1.9.tgz#31ebb2454b60c33c2a8fbfa7c9c3a6b9ef213f63" + integrity sha512-3qVOZYXGIjFiPDdlaEdcnWXnuz25B5cUWjgXijKJXoIRYalRYP7dPO290fvs02FPjsDJdEVtjChNxy9L6Pl36g== dependencies: - nanoid "3.3.4" + "@nexeraid/identity-schemas" "2.1.12" + "@trpc/server" "^10.45.2" zod "^3.23.8" - zod-to-json-schema "^3.23.3" + zod-validation-error "^3.4.0" -"@nexeraid/identity-schemas@1.12.6-dev": - version "1.12.6-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz#bec51d1d00241891806d28168f72f7683725297d" - integrity sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA== +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz#a78014be16523a31fa4590ebdeeefb76cdc7ab65" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== dependencies: - nanoid "3.3.4" - zod "^3.23.8" - zod-to-json-schema "^3.23.2" + "@nexeraid/identity-schemas" "2.1.12" + zod "3.22.4" + zod-validation-error "^3.4.0" -"@nexeraid/js-sdk@2.0.28-dev": - version "2.0.28-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/js-sdk/-/js-sdk-2.0.28-dev.tgz#446b36b852fe4ecaa199ece43dc73a45739d0af9" - integrity sha512-Uqe1pTHErRNoYpEGyP6nIfD51bvXBKUyro2S0fIf2Mo905jupFBW8D4HsnhHuwRKDyVz+ysv/0d7OniMuuaiQA== +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz#460e927c200041e827a0cd2975c59e342ba38c32" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== dependencies: - "@nexeraid/api-client" "1.10.2-dev" - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - pino "^9.4.0" - svix "1.21.0" + nanoid "3.3.4" zod "^3.23.8" + zod-to-json-schema "^3.23.3" -"@nexeraid/logger@0.1.2-dev": - version "0.1.2-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-0.1.2-dev.tgz#77f86318dc888f09376087eb1a9480c4c13569e3" - integrity sha512-GVDN+3s3K/xwWJ5K7RFOA/nB6nAq9Z8SjLdf1wJxE84lqWuezFSvn3SraJIaDhIZsulFdretKxjfKOQiCdAajw== +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-2.1.7.tgz#01c3cafa9abc73632a1e028baa17ab71edbcc39c" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== dependencies: browserify "^17.0.0" - pino "^9.3.2" + pino "^9.4.0" pino-std-serializers "^7.0.0" zod "^3.23.8" @@ -675,6 +680,11 @@ event-target-shim@^5.0.0: resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + events@^3.0.0, events@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" @@ -1013,6 +1023,11 @@ jsonparse@^1.2.0: resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== +jwt-decode@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59" + integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A== + labeled-stream-splicer@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz#42a41a16abcd46fd046306cf4f2c3576fffb1c21" @@ -1277,7 +1292,7 @@ pino-std-serializers@^7.0.0: resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz#7c625038b13718dbbd84ab446bd673dc52259e3b" integrity sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA== -pino@^9.3.2, pino@^9.4.0: +pino@^9.4.0: version "9.4.0" resolved "https://registry.yarnpkg.com/pino/-/pino-9.4.0.tgz#e4600ff199efc744856a5b3b71c53e38998eae5a" integrity sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w== @@ -1443,6 +1458,11 @@ real-require@^0.2.0: resolved "https://registry.yarnpkg.com/real-require/-/real-require-0.2.0.tgz#209632dea1810be2ae063a6ac084fee7e33fba78" integrity sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg== +remeda@^1.61.0: + version "1.61.0" + resolved "https://registry.yarnpkg.com/remeda/-/remeda-1.61.0.tgz#dccd31ab75d0f02865f3ef89e4f0ce0076096464" + integrity sha512-caKfSz9rDeSKBQQnlJnVW3mbVdFgxgGWQKq1XlFokqjf+hQD5gxutLGTTY2A/x24UxVyJe9gH5fAkFI63ULw4A== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" @@ -1862,15 +1882,15 @@ xtend@^4.0.0, xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -zod-to-json-schema@^3.23.2, zod-to-json-schema@^3.23.3: +zod-to-json-schema@^3.23.3: version "3.23.3" resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz#56cf4e0bd5c4096ab46e63159e20998ec7b19c39" integrity sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog== -zod-validation-error@^3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.3.1.tgz#86adc781129d1a7fed3c3e567e8dbe7c4a15eaa4" - integrity sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA== +zod-validation-error@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.4.0.tgz#3a8a1f55c65579822d7faa190b51336c61bee2a6" + integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== zod@3.22.4: version "3.22.4" diff --git a/v2/no-framework-regular/frontend/index.html b/v2/no-framework-regular/frontend/index.html index f577808d..c78d0178 100644 --- a/v2/no-framework-regular/frontend/index.html +++ b/v2/no-framework-regular/frontend/index.html @@ -1,16 +1,16 @@ - Nexera: no frontend, no framework demo + ComPilot : no frontend, no framework demo diff --git a/v2/no-framework-web3/README.md b/v2/no-framework-web3/README.md index 5d0a37e1..05dce872 100644 --- a/v2/no-framework-web3/README.md +++ b/v2/no-framework-web3/README.md @@ -1,13 +1,13 @@ -NexeraID widget integration example : for Javascript in Web3 mode. +ComPilot widget integration example : for Javascript in Web3 mode. =========================================================== -This example demonstrates how to integrate the NexeraID Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, the widget initialization requires a wallet signature. For this example, we’ve used Wallect connect for wallet management. However, note that Wallet connect is not a project dependency and the NexeraID widget is compatible with any wallet adapter of your choice. +This example demonstrates how to integrate the ComPilot Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, the widget initialization requires a wallet signature. For this example, we’ve used Wallect connect for wallet management. However, note that Wallet connect is not a project dependency and the ComPilot widget is compatible with any wallet adapter of your choice. ## pre-requisite : To run this example App, you need: - • Access to the NexeraID dashboard with an API key. + • Access to the ComPilot dashboard with an API key. • A workflow set up in your workspace. @@ -17,7 +17,7 @@ To run this example App, you need: ~~~~ -cd nexeraid-examples/v2/no-framework-web3/frontend +cd compilot-examples/v2/no-framework-web3/frontend npm install cd ../backend npm install @@ -47,9 +47,9 @@ npm dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -NexeraID KYC/KYB documentation : https://docs.compilot.ai/usescases/ -NexeraID technical documentation : https://docs.compilot.ai/developing +ComPilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ +ComPilot technical documentation : https://docs.compilot.ai/developing ## Credits : -This is a [NexeraID] (https://nexera.id) + [Wallet Connect] (https://walletconnect.com/) project \ No newline at end of file +This is a [ComPilot] (https://compilot.ai) + [Wallet Connect] (https://walletconnect.com/) project \ No newline at end of file diff --git a/v2/no-framework-web3/backend/package.json b/v2/no-framework-web3/backend/package.json index 7d95233d..6c94c1d3 100644 --- a/v2/no-framework-web3/backend/package.json +++ b/v2/no-framework-web3/backend/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@nexeraid/js-sdk": "2.0.28-dev", + "@compilot/js-sdk": "^2.1.12", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2" diff --git a/v2/no-framework-web3/backend/server.js b/v2/no-framework-web3/backend/server.js index 183cca3a..e161a7a5 100644 --- a/v2/no-framework-web3/backend/server.js +++ b/v2/no-framework-web3/backend/server.js @@ -1,7 +1,7 @@ -const { createNexeraSdk } = require("@nexeraid/js-sdk"); +const { createSdk } = require("@compilot/js-sdk"); require("dotenv").config(); -const apiClient = createNexeraSdk({ +const apiClient = createSdk({ webhookSecret: process.env.WEBHOOK_SECRET, apiKey: process.env.API_KEY, }); @@ -10,7 +10,7 @@ const express = require("express"); const cors = require("cors"); const app = express(); -const PORT = 5001; +const PORT = 5002; // Middleware app.use(cors()); // Allows frontend to access the API diff --git a/v2/no-framework-web3/backend/yarn.lock b/v2/no-framework-web3/backend/yarn.lock index a08cb8e6..b7cd1daa 100644 --- a/v2/no-framework-web3/backend/yarn.lock +++ b/v2/no-framework-web3/backend/yarn.lock @@ -2,63 +2,54 @@ # yarn lockfile v1 -"@nexeraid/api-client@1.10.2-dev": - version "1.10.2-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/api-client/-/api-client-1.10.2-dev.tgz#cb3d053976662e7460f594beead2d1e6c664a39f" - integrity sha512-ohzAF+ctWPrWG3STMRMOdtdRyPCBGosZ+ugKVL81e9+kg60pubVbJiRGBNxyPSEYBqss3PYxYowP+2Le9hnR0Q== +"@compilot/js-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/js-sdk/-/js-sdk-2.1.12.tgz#3a507a3cec440222a51ef0733fc0c294a1030ac7" + integrity sha512-MBBVIzxP/trf0/FwpHznDl7omrC9iGdNuVC+5dG6Fq0n2O3t6SNVFupOxlXmh3kG/aaGNm1GvZuHKyqbsNbonw== + dependencies: + "@nexeraid/api-client" "2.1.9" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + pino "^9.4.0" + svix "1.21.0" + zod "^3.23.8" + +"@nexeraid/api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/api-client/-/api-client-2.1.9.tgz#31ebb2454b60c33c2a8fbfa7c9c3a6b9ef213f63" + integrity sha512-3qVOZYXGIjFiPDdlaEdcnWXnuz25B5cUWjgXijKJXoIRYalRYP7dPO290fvs02FPjsDJdEVtjChNxy9L6Pl36g== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" + "@nexeraid/identity-schemas" "2.1.12" "@trpc/server" "^10.45.2" zod "^3.23.8" - zod-validation-error "^3.3.1" + zod-validation-error "^3.4.0" -"@nexeraid/identity-api-client@1.3.215-dev": - version "1.3.215-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-1.3.215-dev.tgz#1cf8d883367a3d6425f2a72242e785a0c0ff3adc" - integrity sha512-YrO/GAZGRB5ScbQsqd1R+GqKYPEUe+vpk/SxXVwN9QHAVuZDDiF3F9E603bPqdQDNu73ebcDqHiq0OmU2ar6OQ== +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz#a78014be16523a31fa4590ebdeeefb76cdc7ab65" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" + "@nexeraid/identity-schemas" "2.1.12" zod "3.22.4" - zod-validation-error "^3.3.1" + zod-validation-error "^3.4.0" -"@nexeraid/identity-schemas@1.12.27-dev": - version "1.12.27-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" - integrity sha512-68GBSzy6JHWL/y4y5T3a73MY3M9rU+eYH3K3zFQF54afZboDiGIhk2EkcQqGzfCzqL7e54a9bQ6HfT/HGUPTPQ== +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz#460e927c200041e827a0cd2975c59e342ba38c32" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== dependencies: nanoid "3.3.4" zod "^3.23.8" zod-to-json-schema "^3.23.3" -"@nexeraid/identity-schemas@1.12.6-dev": - version "1.12.6-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz#bec51d1d00241891806d28168f72f7683725297d" - integrity sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA== - dependencies: - nanoid "3.3.4" - zod "^3.23.8" - zod-to-json-schema "^3.23.2" - -"@nexeraid/js-sdk@2.0.28-dev": - version "2.0.28-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/js-sdk/-/js-sdk-2.0.28-dev.tgz#446b36b852fe4ecaa199ece43dc73a45739d0af9" - integrity sha512-Uqe1pTHErRNoYpEGyP6nIfD51bvXBKUyro2S0fIf2Mo905jupFBW8D4HsnhHuwRKDyVz+ysv/0d7OniMuuaiQA== - dependencies: - "@nexeraid/api-client" "1.10.2-dev" - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - pino "^9.4.0" - svix "1.21.0" - zod "^3.23.8" - -"@nexeraid/logger@0.1.2-dev": - version "0.1.2-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-0.1.2-dev.tgz#77f86318dc888f09376087eb1a9480c4c13569e3" - integrity sha512-GVDN+3s3K/xwWJ5K7RFOA/nB6nAq9Z8SjLdf1wJxE84lqWuezFSvn3SraJIaDhIZsulFdretKxjfKOQiCdAajw== +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-2.1.7.tgz#01c3cafa9abc73632a1e028baa17ab71edbcc39c" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== dependencies: browserify "^17.0.0" - pino "^9.3.2" + pino "^9.4.0" pino-std-serializers "^7.0.0" zod "^3.23.8" @@ -1277,7 +1268,7 @@ pino-std-serializers@^7.0.0: resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz#7c625038b13718dbbd84ab446bd673dc52259e3b" integrity sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA== -pino@^9.3.2, pino@^9.4.0: +pino@^9.4.0: version "9.4.0" resolved "https://registry.yarnpkg.com/pino/-/pino-9.4.0.tgz#e4600ff199efc744856a5b3b71c53e38998eae5a" integrity sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w== @@ -1862,15 +1853,15 @@ xtend@^4.0.0, xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -zod-to-json-schema@^3.23.2, zod-to-json-schema@^3.23.3: +zod-to-json-schema@^3.23.3: version "3.23.3" resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz#56cf4e0bd5c4096ab46e63159e20998ec7b19c39" integrity sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog== -zod-validation-error@^3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.3.1.tgz#86adc781129d1a7fed3c3e567e8dbe7c4a15eaa4" - integrity sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA== +zod-validation-error@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.4.0.tgz#3a8a1f55c65579822d7faa190b51336c61bee2a6" + integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== zod@3.22.4: version "3.22.4" diff --git a/v2/no-framework-web3/frontend/nexera-config.ts b/v2/no-framework-web3/frontend/compilot-config.ts similarity index 100% rename from v2/no-framework-web3/frontend/nexera-config.ts rename to v2/no-framework-web3/frontend/compilot-config.ts diff --git a/v2/no-framework-web3/frontend/index.html b/v2/no-framework-web3/frontend/index.html index 4b4f0f45..8e431b99 100644 --- a/v2/no-framework-web3/frontend/index.html +++ b/v2/no-framework-web3/frontend/index.html @@ -7,17 +7,17 @@ diff --git a/v2/no-framework-web3/frontend/package.json b/v2/no-framework-web3/frontend/package.json index 182943d9..f02150af 100644 --- a/v2/no-framework-web3/frontend/package.json +++ b/v2/no-framework-web3/frontend/package.json @@ -12,8 +12,8 @@ "vite": "^5.4.1" }, "dependencies": { - "@nexeraid/react-sdk-wallet-wagmi": "^2.0.2", - "@nexeraid/web-sdk": "2.0.29-dev", + "@compilot/web-sdk": "^2.1.12", + "@compilot/web-sdk-wallet-wagmi": "^2.1.10", "@wagmi/connectors": "^5.1.9", "@wagmi/core": "^2.13.4", "@web3modal/wagmi": "^5.1.7", @@ -21,4 +21,4 @@ "wagmi": "^2.12.9" }, "packageManager": "yarn@1.22.22" -} +} \ No newline at end of file diff --git a/v2/no-framework-web3/frontend/public/vite.svg b/v2/no-framework-web3/frontend/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/v2/no-framework-web3/frontend/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/v2/no-framework-web3/frontend/yarn.lock b/v2/no-framework-web3/frontend/yarn.lock index 134f1039..4294a3ae 100644 --- a/v2/no-framework-web3/frontend/yarn.lock +++ b/v2/no-framework-web3/frontend/yarn.lock @@ -26,6 +26,25 @@ preact "^10.16.0" sha.js "^2.4.11" +"@compilot/web-sdk-wallet-wagmi@^2.1.10": + version "2.1.10" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk-wallet-wagmi/-/web-sdk-wallet-wagmi-2.1.10.tgz#1b7d7a330344571dcffd0e0fe123e50ee5f6b7b8" + integrity sha512-Tm4OI1fuq535E+/vRP+zUm1ks2GNvVPFRc42VzrtCu1wCrLsj8y2UfLEhRiqj1eEjbGSn23ksEIYAChbXwdi0Q== + +"@compilot/web-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk/-/web-sdk-2.1.12.tgz#06d352ddbbfbae79ad99e84ee77b112ed8a34122" + integrity sha512-tL0S5CELbfc/hIDv7PvPDzcW9sX81PkxQ+hHXWtfBnsiDrKQ4gbgnfhN8pRc1RkeagKZWukOsgist+lN8SUeqw== + dependencies: + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + eventemitter3 "^5.0.1" + jwt-decode "^3.1.2" + pino "^9.4.0" + remeda "^1.61.0" + zod "^3.23.8" + "@esbuild/aix-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" @@ -451,6 +470,15 @@ zod "3.22.4" zod-validation-error "^3.3.1" +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz#a78014be16523a31fa4590ebdeeefb76cdc7ab65" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== + dependencies: + "@nexeraid/identity-schemas" "2.1.12" + zod "3.22.4" + zod-validation-error "^3.4.0" + "@nexeraid/identity-schemas@1.12.27-dev": version "1.12.27-dev" resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" @@ -469,6 +497,15 @@ zod "^3.23.8" zod-to-json-schema "^3.23.2" +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz#460e927c200041e827a0cd2975c59e342ba38c32" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== + dependencies: + nanoid "3.3.4" + zod "^3.23.8" + zod-to-json-schema "^3.23.3" + "@nexeraid/logger@0.1.2-dev": version "0.1.2-dev" resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-0.1.2-dev.tgz#77f86318dc888f09376087eb1a9480c4c13569e3" @@ -479,6 +516,16 @@ pino-std-serializers "^7.0.0" zod "^3.23.8" +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-2.1.7.tgz#01c3cafa9abc73632a1e028baa17ab71edbcc39c" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== + dependencies: + browserify "^17.0.0" + pino "^9.4.0" + pino-std-serializers "^7.0.0" + zod "^3.23.8" + "@nexeraid/react-sdk-wallet-wagmi@^2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@nexeraid/react-sdk-wallet-wagmi/-/react-sdk-wallet-wagmi-2.0.2.tgz#f088d407f3f6600511963e4288241cd37bd85009" @@ -4433,6 +4480,11 @@ zod-validation-error@^3.3.1: resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.3.1.tgz#86adc781129d1a7fed3c3e567e8dbe7c4a15eaa4" integrity sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA== +zod-validation-error@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.4.0.tgz#3a8a1f55c65579822d7faa190b51336c61bee2a6" + integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== + zod@3.22.4: version "3.22.4" resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" diff --git a/v2/python-js/README.md b/v2/python-js/README.md index bc99d068..e03d6819 100644 --- a/v2/python-js/README.md +++ b/v2/python-js/README.md @@ -1,7 +1,7 @@ -Compilot widget integration example : Python Backend and javascript frontend in regular mode. +ComPilot widget integration example : Python Backend and javascript frontend in regular mode. =========================================================== -This example demonstrates how to build a Python backend API and a JavaScript frontend for the Compilot Widget in regular mode, which can be applied to KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, no SDK is used. Instead, we used the OpenAPI generator (https://github.com/openapi-generators/openapi-python-client) to generate the identity-api-client codegen folder. +This example demonstrates how to build a Python backend API and a JavaScript frontend for the ComPilot Widget in regular mode, which can be applied to KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, no SDK is used. Instead, we used the OpenAPI generator (https://github.com/openapi-generators/openapi-python-client) to generate the identity-api-client codegen folder. The regular mode backend example requires a customer ID as an environment variable to illustrate the integration. However, in a real-world scenario, a unique customer ID should be passed as a parameter when initiating KYC/KYB verification. @@ -9,9 +9,9 @@ The regular mode backend example requires a customer ID as an environment variab ## pre-requisite : To run this example dApp, you need: - • Access to the Compilot dashboard with an API key. + • Access to the ComPilot dashboard with an API key. • A workflow set up in your workspace. - • User authentication before opening a Compilot session, with a unique ID for this user (such as an email address or another ID). + • User authentication before opening a ComPilot session, with a unique ID for this user (such as an email address or another ID). . Python 3.x . pip . virtualenv (recommended) @@ -50,7 +50,7 @@ To run this example dApp, you need: 6. install depencies ~~~~ - npm i @nexeraid/web-sdk + npm i @compilot/web-sdk ~~~~ @@ -79,9 +79,9 @@ npm run dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -NexeraID KYC/KYB documentation : https://docs.compilot.ai/usescases/ -NexeraID technical documentation : https://docs.compilot.ai/developing +ComPilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ +ComPilot technical documentation : https://docs.compilot.ai/developing ## Credits : -This is a [Compilot] (https://compilot.ai) project \ No newline at end of file +This is a [ComPilot] (https://compilot.ai) project \ No newline at end of file diff --git a/v2/python-js/frontend/index.html b/v2/python-js/frontend/index.html index 16625183..ce4c8885 100644 --- a/v2/python-js/frontend/index.html +++ b/v2/python-js/frontend/index.html @@ -1,16 +1,16 @@ - Nexera: no frontend, no framework demo + ComPilot : Python - JS diff --git a/v2/python-js/frontend/package.json b/v2/python-js/frontend/package.json index d62fda45..c32ae0f8 100644 --- a/v2/python-js/frontend/package.json +++ b/v2/python-js/frontend/package.json @@ -12,6 +12,6 @@ "vite": "^5.4.1" }, "dependencies": { - "@nexeraid/web-sdk": "2.0.29-dev" + "@compilot/web-sdk": "^2.1.12" } } diff --git a/v2/python-js/frontend/yarn.lock b/v2/python-js/frontend/yarn.lock index 5f80e543..b02c9ed8 100644 --- a/v2/python-js/frontend/yarn.lock +++ b/v2/python-js/frontend/yarn.lock @@ -2,6 +2,20 @@ # yarn lockfile v1 +"@compilot/web-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk/-/web-sdk-2.1.12.tgz#06d352ddbbfbae79ad99e84ee77b112ed8a34122" + integrity sha512-tL0S5CELbfc/hIDv7PvPDzcW9sX81PkxQ+hHXWtfBnsiDrKQ4gbgnfhN8pRc1RkeagKZWukOsgist+lN8SUeqw== + dependencies: + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + eventemitter3 "^5.0.1" + jwt-decode "^3.1.2" + pino "^9.4.0" + remeda "^1.61.0" + zod "^3.23.8" + "@esbuild/aix-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" @@ -117,55 +131,32 @@ resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz#acad351d582d157bb145535db2a6ff53dd514b5c" integrity sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw== -"@nexeraid/identity-api-client@1.3.215-dev": - version "1.3.215-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-1.3.215-dev.tgz#1cf8d883367a3d6425f2a72242e785a0c0ff3adc" - integrity sha512-YrO/GAZGRB5ScbQsqd1R+GqKYPEUe+vpk/SxXVwN9QHAVuZDDiF3F9E603bPqdQDNu73ebcDqHiq0OmU2ar6OQ== +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz#a78014be16523a31fa4590ebdeeefb76cdc7ab65" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== dependencies: - "@nexeraid/identity-schemas" "1.12.6-dev" + "@nexeraid/identity-schemas" "2.1.12" zod "3.22.4" - zod-validation-error "^3.3.1" + zod-validation-error "^3.4.0" -"@nexeraid/identity-schemas@1.12.27-dev": - version "1.12.27-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" - integrity sha512-68GBSzy6JHWL/y4y5T3a73MY3M9rU+eYH3K3zFQF54afZboDiGIhk2EkcQqGzfCzqL7e54a9bQ6HfT/HGUPTPQ== +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz#460e927c200041e827a0cd2975c59e342ba38c32" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== dependencies: nanoid "3.3.4" zod "^3.23.8" zod-to-json-schema "^3.23.3" -"@nexeraid/identity-schemas@1.12.6-dev": - version "1.12.6-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.6-dev.tgz#bec51d1d00241891806d28168f72f7683725297d" - integrity sha512-uQlffSWKJkxrJUlUpbcWsq3e+8V4z36MPAqHgZrWFXf99AltSpXZjGVq0uOr1w4namwKmmsY8UPPMWgcOFO5UA== - dependencies: - nanoid "3.3.4" - zod "^3.23.8" - zod-to-json-schema "^3.23.2" - -"@nexeraid/logger@0.1.2-dev": - version "0.1.2-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-0.1.2-dev.tgz#77f86318dc888f09376087eb1a9480c4c13569e3" - integrity sha512-GVDN+3s3K/xwWJ5K7RFOA/nB6nAq9Z8SjLdf1wJxE84lqWuezFSvn3SraJIaDhIZsulFdretKxjfKOQiCdAajw== +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-2.1.7.tgz#01c3cafa9abc73632a1e028baa17ab71edbcc39c" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== dependencies: browserify "^17.0.0" - pino "^9.3.2" - pino-std-serializers "^7.0.0" - zod "^3.23.8" - -"@nexeraid/web-sdk@2.0.29-dev": - version "2.0.29-dev" - resolved "https://registry.yarnpkg.com/@nexeraid/web-sdk/-/web-sdk-2.0.29-dev.tgz#2a3034bc343869ac7306429b1709ee3200c88487" - integrity sha512-JnK4Ob/iGVxWFKVwoC3X6E1kd6aqM7TlvrRfy07mqTliKi3USI2vop8dYqbplDR3uLMPLbU8GrUUj8a/X5AJ3Q== - dependencies: - "@nexeraid/identity-api-client" "1.3.215-dev" - "@nexeraid/identity-schemas" "1.12.27-dev" - "@nexeraid/logger" "0.1.2-dev" - eventemitter3 "^5.0.1" - jwt-decode "^3.1.2" pino "^9.4.0" - remeda "^1.61.0" + pino-std-serializers "^7.0.0" zod "^3.23.8" "@rollup/rollup-android-arm-eabi@4.22.4": @@ -1230,7 +1221,7 @@ pino-std-serializers@^7.0.0: resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz#7c625038b13718dbbd84ab446bd673dc52259e3b" integrity sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA== -pino@^9.3.2, pino@^9.4.0: +pino@^9.4.0: version "9.4.0" resolved "https://registry.yarnpkg.com/pino/-/pino-9.4.0.tgz#e4600ff199efc744856a5b3b71c53e38998eae5a" integrity sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w== @@ -1689,12 +1680,12 @@ xtend@^4.0.0, xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -zod-to-json-schema@^3.23.2, zod-to-json-schema@^3.23.3: +zod-to-json-schema@^3.23.3: version "3.23.3" resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.23.3.tgz#56cf4e0bd5c4096ab46e63159e20998ec7b19c39" integrity sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog== -zod-validation-error@^3.3.1: +zod-validation-error@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.4.0.tgz#3a8a1f55c65579822d7faa190b51336c61bee2a6" integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== diff --git a/v2/react-regular/README.md b/v2/react-regular/README.md index 2a955842..b6717ea7 100644 --- a/v2/react-regular/README.md +++ b/v2/react-regular/README.md @@ -1,15 +1,15 @@ -NexeraID widget integration example : for React in regular mode. +ComPilot widget integration example : for React in regular mode. =========================================================== -This example demonstrates how to integrate the NexeraID Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, we uses react and a customer ID. +This example demonstrates how to integrate the ComPilot Widget for KYC (Know Your Customer) and KYB (Know Your Business) processes. In this implementation, we uses react and a customer ID. ## pre-requisite : To run this example dApp, you need: - • Access to the NexeraID dashboard with an API key. + • Access to the ComPilot dashboard with an API key. • A workflow set up in your workspace. - • To authenticate a user before opening a NexeraID session and be able to provide a unique ID for this user (such as an email address or any other ID). + • To authenticate a user before opening a ComPilot session and be able to provide a unique ID for this user (such as an email address or any other ID). ## running the sample : @@ -18,7 +18,7 @@ To run this example dApp, you need: ~~~~ -cd nexeraid-examples/v2/react-regular/frontend +cd compilot-examples/v2/react-regular/frontend npm install cd ../backend npm install @@ -48,9 +48,9 @@ npm dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -NexeraID KYC/KYB documentation : https://docs.compilot.ai/usescases/ -NexeraID technical documentation : https://docs.compilot.ai/developing +ComPilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ +ComPilot technical documentation : https://docs.compilot.ai/developing ## Credits : -This is a [NexeraID] (https://Nexera.id)+ [React](https://react.dev/) project \ No newline at end of file +This is a [ComPilot] (https://compilot.ai)+ [React](https://react.dev/) project \ No newline at end of file diff --git a/v2/react-regular/backend/package.json b/v2/react-regular/backend/package.json index 7d95233d..cfb88225 100644 --- a/v2/react-regular/backend/package.json +++ b/v2/react-regular/backend/package.json @@ -1,9 +1,8 @@ { "dependencies": { - "@nexeraid/js-sdk": "2.0.28-dev", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2" }, "packageManager": "yarn@1.22.22" -} +} \ No newline at end of file diff --git a/v2/react-regular/backend/server.js b/v2/react-regular/backend/server.js index e0447e2b..5b017e7f 100644 --- a/v2/react-regular/backend/server.js +++ b/v2/react-regular/backend/server.js @@ -1,8 +1,8 @@ -const { createNexeraSdk } = require("@nexeraid/js-sdk"); +const { createSdk } = require("@compilot/js-sdk"); const { API_KEY, WEBHOOK_SECRET, REGULAR_WORKFLOW_ID, CUSTOMER_ID, CUSTOMER_EMAIL, CUSTOMER_PHONE, CUSTOMER_WALLET_ADDRESS, CUSTOMER_WALLET_NAMESPACE } = process.env; require("dotenv").config(); -const apiClient = createNexeraSdk({ +const apiClient = createSdk({ webhookSecret: WEBHOOK_SECRET, apiKey: API_KEY, }); @@ -48,8 +48,8 @@ if (CUSTOMER_WALLET_ADDRESS || CUSTOMER_WALLET_NAMESPACE) { // API routes -//Regular route. CUSTOMER_ID must be replaced. you need to authenticate the user before opening a nexera user session. -app.post("/api/create-nexera-session", async (req, res) => { +//Regular route. CUSTOMER_ID must be replaced. you need to authenticate the user before opening a ComPilot user session. +app.post("/api/create-session", async (req, res) => { try { // Create the session const sessionRes = await apiClient.createSession({ diff --git a/v2/react-regular/frontend/package.json b/v2/react-regular/frontend/package.json index 328bd062..8400488b 100644 --- a/v2/react-regular/frontend/package.json +++ b/v2/react-regular/frontend/package.json @@ -10,7 +10,7 @@ "preview": "vite preview" }, "dependencies": { - "@nexeraid/react-sdk": "2.0.34-dev", + "@compilot/react-sdk": "^2.1.12", "next": "^14.2.8", "react": "^18.3.1", "react-dom": "^18.3.1" @@ -28,4 +28,4 @@ "vite": "^5.4.1" }, "packageManager": "yarn@1.22.22" -} +} \ No newline at end of file diff --git a/v2/react-regular/frontend/public/logo.png b/v2/react-regular/frontend/public/logo.png index 2f7bef4b..91fce26b 100644 Binary files a/v2/react-regular/frontend/public/logo.png and b/v2/react-regular/frontend/public/logo.png differ diff --git a/v2/react-regular/frontend/src/App.jsx b/v2/react-regular/frontend/src/App.jsx index 2a359df2..d71ae4be 100644 --- a/v2/react-regular/frontend/src/App.jsx +++ b/v2/react-regular/frontend/src/App.jsx @@ -1,20 +1,20 @@ import logo from "../public/logo.png"; import "./App.css"; -import { useOpenWidget } from "@nexeraid/react-sdk"; +import { useOpenWidget } from "@compilot/react-sdk"; function App() { const openWidget = useOpenWidget(); return ( <>
- nexeraID logo + ComPilot logo

Example of a react app in regular mode

diff --git a/v2/react-regular/frontend/src/nexera-config.ts b/v2/react-regular/frontend/src/compilot-config.ts similarity index 56% rename from v2/react-regular/frontend/src/nexera-config.ts rename to v2/react-regular/frontend/src/compilot-config.ts index 9c2a05bd..56517d6d 100644 --- a/v2/react-regular/frontend/src/nexera-config.ts +++ b/v2/react-regular/frontend/src/compilot-config.ts @@ -1,6 +1,6 @@ export const createSession = () => { // make sure your backend is running on port 5002 - return fetch("http://localhost:5002/api/create-nexera-session", { method: "POST" }).then( + return fetch("http://localhost:5002/api/create-session", { method: "POST" }).then( (res) => res.json() ); }; diff --git a/v2/react-regular/frontend/src/main.jsx b/v2/react-regular/frontend/src/main.jsx index b48fdf7f..98842436 100644 --- a/v2/react-regular/frontend/src/main.jsx +++ b/v2/react-regular/frontend/src/main.jsx @@ -2,16 +2,16 @@ import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import App from "./App.jsx"; import "./index.css"; -import { NexeraIdProvider } from "@nexeraid/react-sdk"; -import { createAuthAdapter, createConfig } from "@nexeraid/react-sdk"; -import { createSession } from "./nexera-config.ts"; +import { ComPilotProvider } from "@compilot/react-sdk"; +import { createAuthAdapter, createConfig } from "@compilot/react-sdk"; +import { createSession } from "./compilot-config.ts"; const authAdapter = createAuthAdapter({ createSession }); -const nexeraConfig = createConfig({ authAdapter }); +const compilotConfig = createConfig({ authAdapter }); createRoot(document.getElementById("root")).render( - + - + ); diff --git a/v2/react-regular/frontend/yarn.lock b/v2/react-regular/frontend/yarn.lock index f87bd56e..76541061 100644 --- a/v2/react-regular/frontend/yarn.lock +++ b/v2/react-regular/frontend/yarn.lock @@ -181,6 +181,32 @@ "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" +"@compilot/react-sdk@^2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/react-sdk/-/react-sdk-2.1.12.tgz#8c5674e0769cc06925acd2628c6c08a85998cbc7" + integrity sha512-wuiDbopG9jtTjSbBxLKOEq8AHr4S8e9VuDkSAuPG7UiucUfXiTGhb6oGPK8nqinwz0oz2qnLu+Hgfzs7ccKCDg== + dependencies: + "@compilot/web-sdk" "2.1.12" + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + pino "^9.4.0" + zod "^3.23.8" + +"@compilot/web-sdk@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@compilot/web-sdk/-/web-sdk-2.1.12.tgz#06d352ddbbfbae79ad99e84ee77b112ed8a34122" + integrity sha512-tL0S5CELbfc/hIDv7PvPDzcW9sX81PkxQ+hHXWtfBnsiDrKQ4gbgnfhN8pRc1RkeagKZWukOsgist+lN8SUeqw== + dependencies: + "@nexeraid/identity-api-client" "2.1.9" + "@nexeraid/identity-schemas" "2.1.12" + "@nexeraid/logger" "2.1.7" + eventemitter3 "^5.0.1" + jwt-decode "^3.1.2" + pino "^9.4.0" + remeda "^1.61.0" + zod "^3.23.8" + "@esbuild/aix-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f" @@ -400,6 +426,15 @@ zod "3.22.4" zod-validation-error "^3.3.1" +"@nexeraid/identity-api-client@2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-api-client/-/identity-api-client-2.1.9.tgz#a78014be16523a31fa4590ebdeeefb76cdc7ab65" + integrity sha512-yBhNOoF0PxQHogSjld0d+R06aCjdS+hPJXOgQ6YEZhaC2vcLBPOi9OguA9qMx/aZIgAzkzZ7FS9goKp17kNgZQ== + dependencies: + "@nexeraid/identity-schemas" "2.1.12" + zod "3.22.4" + zod-validation-error "^3.4.0" + "@nexeraid/identity-schemas@1.12.27-dev": version "1.12.27-dev" resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-1.12.27-dev.tgz#f9a3bdb9dc0f8e92935f8c3cab6601efa88743bd" @@ -418,6 +453,15 @@ zod "^3.23.8" zod-to-json-schema "^3.23.2" +"@nexeraid/identity-schemas@2.1.12": + version "2.1.12" + resolved "https://registry.yarnpkg.com/@nexeraid/identity-schemas/-/identity-schemas-2.1.12.tgz#460e927c200041e827a0cd2975c59e342ba38c32" + integrity sha512-ekKnf/MD7fCA1vcMn17c3i08C9M2hvY9bBCvF0ypiy/6Na24whPfY/StH6XbXc5KBAqBtFGsTkAu3bcIgN+snQ== + dependencies: + nanoid "3.3.4" + zod "^3.23.8" + zod-to-json-schema "^3.23.3" + "@nexeraid/logger@0.1.2-dev": version "0.1.2-dev" resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-0.1.2-dev.tgz#77f86318dc888f09376087eb1a9480c4c13569e3" @@ -428,6 +472,16 @@ pino-std-serializers "^7.0.0" zod "^3.23.8" +"@nexeraid/logger@2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@nexeraid/logger/-/logger-2.1.7.tgz#01c3cafa9abc73632a1e028baa17ab71edbcc39c" + integrity sha512-iodHc1frasNLzuWqtqmImLt3BeljisG7s4TEnIiRU8aR3WuINH6dyTm7rrXPvPef42L5PVJ9R4ebyixlv3Qtuw== + dependencies: + browserify "^17.0.0" + pino "^9.4.0" + pino-std-serializers "^7.0.0" + zod "^3.23.8" + "@nexeraid/react-sdk@2.0.34-dev": version "2.0.34-dev" resolved "https://registry.yarnpkg.com/@nexeraid/react-sdk/-/react-sdk-2.0.34-dev.tgz#44b26f4b52141f2e13de9d5368ebc4ee0e57ec76" @@ -3568,6 +3622,11 @@ zod-validation-error@^3.3.1: resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.3.1.tgz#86adc781129d1a7fed3c3e567e8dbe7c4a15eaa4" integrity sha512-uFzCZz7FQis256dqw4AhPQgD6f3pzNca/Zh62RNELavlumQB3nDIUFbF5JQfFLcMbO1s02Q7Xg/gpcOBlEnYZA== +zod-validation-error@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.4.0.tgz#3a8a1f55c65579822d7faa190b51336c61bee2a6" + integrity sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ== + zod@3.22.4: version "3.22.4" resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff"