From b00501b53542600a51147c1919320ed0f185d94f Mon Sep 17 00:00:00 2001 From: Cam Date: Tue, 1 Oct 2024 16:21:58 +0200 Subject: [PATCH 1/6] removing reference to NexeraID. Replaced by Compilot. --- v2/nextjs-web3/README.md | 12 +- v2/nextjs-web3/next.config.js | 2 +- v2/nextjs-web3/package-lock.json | 294 ++++++------- v2/nextjs-web3/package.json | 10 +- .../{nexera-config.ts => compilot-config.ts} | 0 v2/nextjs-web3/src/pages/_app.tsx | 15 +- v2/nextjs-web3/src/pages/api/challenge.ts | 6 +- v2/nextjs-web3/src/pages/index.tsx | 22 +- v2/nextjs-web3/src/styles/globals.css | 2 +- v2/nextjs-web3/yarn.lock | 386 +++++++++--------- v2/no-framework-regular/README.md | 17 +- v2/no-framework-regular/backend/package.json | 3 +- v2/no-framework-regular/backend/server.js | 18 +- v2/no-framework-regular/backend/yarn.lock | 118 +++--- v2/no-framework-regular/frontend/index.html | 18 +- v2/no-framework-web3/README.md | 14 +- v2/no-framework-web3/backend/package.json | 2 +- v2/no-framework-web3/backend/server.js | 6 +- v2/no-framework-web3/backend/yarn.lock | 89 ++-- .../{nexera-config.ts => compilot-config.ts} | 0 v2/no-framework-web3/frontend/index.html | 12 +- v2/no-framework-web3/frontend/package.json | 6 +- v2/no-framework-web3/frontend/public/vite.svg | 1 - v2/no-framework-web3/frontend/yarn.lock | 52 +++ v2/python-js/README.md | 6 +- v2/python-js/frontend/index.html | 16 +- v2/python-js/frontend/package.json | 2 +- v2/python-js/frontend/yarn.lock | 73 ++-- v2/react-regular/README.md | 16 +- v2/react-regular/backend/package.json | 3 +- v2/react-regular/backend/server.js | 8 +- v2/react-regular/frontend/package.json | 4 +- v2/react-regular/frontend/public/logo.png | Bin 3214 -> 3704 bytes v2/react-regular/frontend/src/App.jsx | 8 +- .../{nexera-config.ts => compilot-config.ts} | 2 +- v2/react-regular/frontend/src/main.jsx | 12 +- v2/react-regular/frontend/yarn.lock | 59 +++ 37 files changed, 693 insertions(+), 621 deletions(-) rename v2/nextjs-web3/src/{nexera-config.ts => compilot-config.ts} (100%) rename v2/no-framework-web3/frontend/{nexera-config.ts => compilot-config.ts} (100%) delete mode 100644 v2/no-framework-web3/frontend/public/vite.svg rename v2/react-regular/frontend/src/{nexera-config.ts => compilot-config.ts} (56%) diff --git a/v2/nextjs-web3/README.md b/v2/nextjs-web3/README.md index b940bff4..851713af 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..69ae774d 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..8704cddd 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..5e41388e 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..b215d9da 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..bc64540a 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..2b1d6b8c 100644 --- a/v2/python-js/README.md +++ b/v2/python-js/README.md @@ -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,8 +79,8 @@ 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 : diff --git a/v2/python-js/frontend/index.html b/v2/python-js/frontend/index.html index 16625183..141ca63d 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..04a85c1d 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..04e7ded9 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 2f7bef4b48c5e58dce5819f190d197e3cdeebcea..91fce26bfb256f2400db6ac019f3c19a04cfa3a4 100644 GIT binary patch literal 3704 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 Wk`~3)01^-Y0000
- 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" From 14e61bd2acd7ae9a14722e960d0af4b1a6661550 Mon Sep 17 00:00:00 2001 From: Cam Date: Tue, 1 Oct 2024 17:23:35 +0200 Subject: [PATCH 2/6] Compilot vs ComPilot --- v2/airdrop-platform/app/src/wagmiConfig.ts | 2 +- v2/nextjs-web3/README.md | 12 ++++++------ v2/nextjs-web3/package.json | 2 +- v2/nextjs-web3/src/pages/index.tsx | 14 +++++++------- v2/no-framework-regular/README.md | 14 +++++++------- v2/no-framework-regular/frontend/index.html | 4 ++-- v2/no-framework-web3/README.md | 14 +++++++------- v2/python-js/README.md | 14 +++++++------- v2/python-js/frontend/index.html | 2 +- v2/react-regular/README.md | 14 +++++++------- v2/react-regular/backend/server.js | 2 +- v2/react-regular/frontend/src/App.jsx | 2 +- 12 files changed, 48 insertions(+), 48 deletions(-) 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/nextjs-web3/README.md b/v2/nextjs-web3/README.md index 851713af..df29666f 100644 --- a/v2/nextjs-web3/README.md +++ b/v2/nextjs-web3/README.md @@ -1,13 +1,13 @@ -Compilot widget integration example : for Next.JS and Web3. +ComPilot widget integration example : for Next.JS and Web3. =========================================================== -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. +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 Compilot 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/ -Compilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ -Compilot 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)+ [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/package.json b/v2/nextjs-web3/package.json index 69ae774d..6daf35f1 100644 --- a/v2/nextjs-web3/package.json +++ b/v2/nextjs-web3/package.json @@ -1,5 +1,5 @@ { - "name": "example-compilot-next-rainbowkit-w3", + "name": "example-ComPilot-next-rainbowkit-w3", "private": true, "version": "0.1.0", "scripts": { diff --git a/v2/nextjs-web3/src/pages/index.tsx b/v2/nextjs-web3/src/pages/index.tsx index 8704cddd..8725618c 100644 --- a/v2/nextjs-web3/src/pages/index.tsx +++ b/v2/nextjs-web3/src/pages/index.tsx @@ -9,8 +9,8 @@ const Home: NextPage = () => { return (
- Compilot Next.Js Web3 - + ComPilot Next.Js Web3 +
@@ -24,7 +24,7 @@ const Home: NextPage = () => { Open Widget

- Welcome to Compilot + 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 , compilot-config.ts and challenge.ts to work on Compilot + Check _app.tsx , compilot-config.ts and challenge.ts to work on ComPilot integration

-

Compilot Documentation →

+

ComPilot Documentation →

Learn how to Implement our compliance widget on your App.

-

Compilot Examples →

-

Discover example Compilot projects.

+

ComPilot Examples →

+

Discover example ComPilot projects.

RainbowKit Documentation →

diff --git a/v2/no-framework-regular/README.md b/v2/no-framework-regular/README.md index 5e41388e..62f58678 100644 --- a/v2/no-framework-regular/README.md +++ b/v2/no-framework-regular/README.md @@ -1,14 +1,14 @@ -Compilot widget integration example : for JS in regular mode. +ComPilot widget integration example : for JS in regular mode. =========================================================== -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. +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 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). @@ -48,9 +48,9 @@ npm dev ## For more details, visit : SDKs documentation : https://docs.compilot.ai/developing/sdk/ -Compilot KYC/KYB documentation : https://docs.compilot.ai/usescases/ -Compilot 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/no-framework-regular/frontend/index.html b/v2/no-framework-regular/frontend/index.html index b215d9da..c78d0178 100644 --- a/v2/no-framework-regular/frontend/index.html +++ b/v2/no-framework-regular/frontend/index.html @@ -1,7 +1,7 @@ - Compilot : no frontend, no framework demo + ComPilot : no frontend, no framework demo