From d3c6ea91a6319ab8ba7b1bfd65b9c553063624e8 Mon Sep 17 00:00:00 2001 From: DaevMithran <61043607+DaevMithran@users.noreply.github.com> Date: Tue, 11 Jul 2023 17:34:52 +0530 Subject: [PATCH] fix: Add policies to Verification API [DEV-2951] (#294) * feat: Update verification api * bump deps * feat: Update domain to verifierDid * Fix typos * Update package-lock.json --------- Co-authored-by: Ankur Banerjee --- package-lock.json | 675 +++++++++++++++-------------- package.json | 15 +- src/controllers/credentials.ts | 29 +- src/services/credentials.ts | 13 +- src/services/identity/IIdentity.ts | 10 +- src/services/identity/agent.ts | 61 ++- src/services/identity/local.ts | 14 +- src/services/identity/postgres.ts | 14 +- src/static/swagger.json | 86 ++++ src/types/types.ts | 28 +- 10 files changed, 550 insertions(+), 395 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08321a35..6f365b89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@cheqd/credential-service", - "version": "2.4.0-develop.7", + "version": "2.4.0-develop.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cheqd/credential-service", - "version": "2.4.0-develop.7", + "version": "2.4.0-develop.8", "license": "Apache-2.0", "dependencies": { - "@cheqd/did-provider-cheqd": "^3.4.1", + "@cheqd/did-provider-cheqd": "^3.6.0", "@cosmjs/amino": "^0.31.0", "@cosmjs/encoding": "^0.30.1", "@logto/express": "^2.0.2", @@ -21,13 +21,14 @@ "@veramo/did-resolver": "^5.2.0", "@veramo/key-manager": "^5.1.2", "@veramo/kms-local": "^5.1.2", - "@verida/account-node": "^2.3.5", - "@verida/client-ts": "^2.3.5", + "@verida/account-node": "^2.3.6", + "@verida/client-ts": "^2.3.6", "@verida/types": "^2.3.1", - "@verida/vda-did-resolver": "^2.3.5", + "@verida/vda-did-resolver": "^2.3.6", "cookie-parser": "^1.4.6", "copyfiles": "^2.4.1", "cors": "^2.8.5", + "did-jwt": "^7.2.4", "did-resolver": "^4.1.0", "dotenv": "^16.3.1", "express": "^4.18.2", @@ -58,12 +59,12 @@ "@types/express-session": "^1.17.7", "@types/helmet": "^4.0.0", "@types/json-stringify-safe": "^5.0.0", - "@types/node": "^20.4.0", + "@types/node": "^20.4.1", "@types/secp256k1": "^4.0.3", "@types/swagger-ui-express": "^4.1.3", "@types/uuid": "^9.0.2", - "@typescript-eslint/eslint-plugin": "^5.61.0", - "@typescript-eslint/parser": "^5.61.0", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", "buffer": "6.0.3", "conventional-changelog-conventionalcommits": "^6.1.0", "eslint": "^8.44.0", @@ -2364,9 +2365,9 @@ } }, "node_modules/@babel/register/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "optional": true, "peer": true, "bin": { @@ -2488,18 +2489,18 @@ } }, "node_modules/@cheqd/did-provider-cheqd": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/@cheqd/did-provider-cheqd/-/did-provider-cheqd-3.4.1.tgz", - "integrity": "sha512-+NBFOoLbOCt+5iQx4W6pxtuA4FHuWK0sJvmzbU8sf5Le45lQ155SBqnm4R7uOmSk4KOG7f8T2l5uI8lL/cmwgw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@cheqd/did-provider-cheqd/-/did-provider-cheqd-3.6.0.tgz", + "integrity": "sha512-Q224xRj/4Umfc3M/RPIwoM7iyKZI19oxob74RXp/nqexxDAX4OF2Nz/r3XSuN3vX3AIj94d2NwITQdhwqtoyJA==", "dependencies": { "@cheqd/sdk": "^3.5.6", - "@cheqd/ts-proto": "^3.2.0", + "@cheqd/ts-proto": "^3.2.1", "@cosmjs/amino": "^0.31.0", "@cosmjs/crypto": "^0.31.0", "@cosmjs/proto-signing": "^0.31.0", "@cosmjs/utils": "^0.31.0", "@digitalbazaar/vc-status-list": "^7.0.0", - "@lit-protocol/lit-node-client": "^2.2.33", + "@lit-protocol/lit-node-client": "^2.2.40", "@veramo/core": "^5.2.0", "@veramo/did-manager": "^5.1.2", "@veramo/did-provider-key": "^5.2.0", @@ -4069,9 +4070,9 @@ } }, "node_modules/@expo/cli": { - "version": "0.10.9", - "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-0.10.9.tgz", - "integrity": "sha512-aK/2ZPC01rD7H4zDiM+GQHorjrOhgo0I+6AGht7RUL3M022TnarlLVc6KJDhVCMeXLaPuerJrsEJm5Hvgl1mNw==", + "version": "0.10.10", + "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-0.10.10.tgz", + "integrity": "sha512-YN5ziGfb+CBY51ezZHSRTnZ6FpJT8t8RG4OIKPFyvuO7PWctC52CEXgJ6CJDzgxAaiD/ubogciVAYqjvNa6Lnw==", "optional": true, "peer": true, "dependencies": { @@ -4321,6 +4322,22 @@ "node": ">=8" } }, + "node_modules/@expo/cli/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@expo/cli/node_modules/tempy": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.7.1.tgz", @@ -4530,6 +4547,22 @@ "node": ">=8" } }, + "node_modules/@expo/config/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@expo/dev-server": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/@expo/dev-server/-/dev-server-0.5.4.tgz", @@ -5038,9 +5071,9 @@ } }, "node_modules/@expo/spawn-async/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "optional": true, "peer": true, "bin": { @@ -5824,15 +5857,15 @@ "integrity": "sha512-kXOeFbfCm4fFf2A3WwVEeQj55tMZa8c8/f9AKHMobQMkzNUfUj+antR3fRPaZJawsa1aZiP/Da3ndpZrwEe4rQ==" }, "node_modules/@lit-protocol/access-control-conditions": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-2.2.39.tgz", - "integrity": "sha512-v/1vMtXfty8OzUjvzf+tb7DwI4iRfZyE4Zutj1vXTKb/trQ2FRZAjxlg8gocWIsOet/oopQ+cTeMKKE65gdchg==", - "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-2.2.41.tgz", + "integrity": "sha512-clnf/7r9FKFQJyjh1jqHfsAkqutKuzjL09sSKHNWG5/sWXhuqRj5U+IQ6xKthIUbyf3xPRbXCAre9WxY4t1x2w==", + "dependencies": { + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", @@ -5840,16 +5873,16 @@ } }, "node_modules/@lit-protocol/auth-browser": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-2.2.39.tgz", - "integrity": "sha512-TIF/d3iZ9ZxbN12Qiud7cZ3xpYpeSJJBY1yxtHfSKBaKbXM8kQRk7amPDM8xLyfDf3Fa8QOqAn7iZ6idjF7RgQ==", - "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/misc-browser": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-2.2.41.tgz", + "integrity": "sha512-/0DiWiVx3et+wNs26f0C0Bxmxz2Xtu34QkwCjRB54P+cJR2BFXYBobJgPoe8rJBVTOsZl7lD+kDaeV4lAXbLcQ==", + "dependencies": { + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/misc-browser": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "@walletconnect/ethereum-provider": "2.7.0", "@web3modal/standalone": "2.2.1", "ethers": "^5.7.1", @@ -6082,9 +6115,9 @@ } }, "node_modules/@lit-protocol/auth-helpers": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-2.2.39.tgz", - "integrity": "sha512-a8wSm1FF8B3ikO7LtCKccg+iU6fEz8Q125ch4tXfxx2+ifb+jfkQPzSQB61iVwtDOMvkoNBptPYKf2A0IeZFkg==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-2.2.41.tgz", + "integrity": "sha512-DwEd9jAJRZ1hHF401NLd7HnLjCw2GDtXUNMZGBalzSvLHKrPUPaG64WzYDrPPSkasH7WpoGxiiuP0HRNvMv8/Q==", "dependencies": { "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", @@ -6092,41 +6125,42 @@ } }, "node_modules/@lit-protocol/bls-sdk": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/bls-sdk/-/bls-sdk-2.2.39.tgz", - "integrity": "sha512-yNuF77hgnZdMnFwPHDimONbWv5d9PVFsCmanWTo2QHKijK3B0Rhb7KGUnQY9Mi8Qx9KM/DEe8pjgrIvx6P0CqA==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/bls-sdk/-/bls-sdk-2.2.41.tgz", + "integrity": "sha512-X3myX6RLZdKXU9uHEqYbQwlHY5bVD7pdKKBXm7ShglFAqURo2ovW80EX9ELqkaCivGNC9Vkpa8Ua/w0dJvJNxw==", "dependencies": { "pako": "^2.1.0", "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/constants": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-2.2.39.tgz", - "integrity": "sha512-Ff3PQjhE4wc+J2FWsIRYw3QnOQDVWojCwIQ8LK26WuWOTil1bCXuz8uBjpcxvikAoogaQ9BYNmqdw8+cBWS5ew==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-2.2.41.tgz", + "integrity": "sha512-4roOsxZ6ocJiEbKTZPSpEi7RJW0JbnfmY96bA39jMdKVnxNUOqOrXgXMIPK2zlW6ba2MOkFIwHStcKwCv8om0g==", "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/types": "2.2.39", + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/types": "2.2.41", + "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/core": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-2.2.39.tgz", - "integrity": "sha512-HnwhYMFWySBcgHpLAoTTt+veNKxBIvIwTP6+X8c7WrE6jtNK28GqwqnSvhxMMMBNyqn9HS5ZvIRpFEOk2x86DQ==", - "dependencies": { - "@lit-protocol/access-control-conditions": "2.2.39", - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/bls-sdk": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/crypto": "2.2.39", - "@lit-protocol/ecdsa-sdk": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/nacl": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-2.2.41.tgz", + "integrity": "sha512-SbxLheLftKJRCngNjy3dqfoVtoZxXrR+xDSJcFlNJq9ssgZVjKdrTf9LPvN8NizcwQ6cxP6rwR+AMAiilxtrLg==", + "dependencies": { + "@lit-protocol/access-control-conditions": "2.2.41", + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/bls-sdk": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/crypto": "2.2.41", + "@lit-protocol/ecdsa-sdk": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/nacl": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", @@ -6134,18 +6168,18 @@ } }, "node_modules/@lit-protocol/crypto": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-2.2.39.tgz", - "integrity": "sha512-g7YDT9ZjmAG/Sy/yju3tJ4JKK0uXZ2FqLV+CV827C8sKowTW3e+X54OzfC2OcX6MYNF12bfkJ2ZyMEW/QhYIkg==", - "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/bls-sdk": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/ecdsa-sdk": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/nacl": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-2.2.41.tgz", + "integrity": "sha512-4JQ2TSwZ1r0DPu7lLZ9pajmd9DehsRAl8UIBTre7PWeWURBtY698V8ZXagpRRnsC4tlMNbAQu13sNevDBfpknA==", + "dependencies": { + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/bls-sdk": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/ecdsa-sdk": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/nacl": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", @@ -6153,27 +6187,27 @@ } }, "node_modules/@lit-protocol/ecdsa-sdk": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/ecdsa-sdk/-/ecdsa-sdk-2.2.39.tgz", - "integrity": "sha512-S2SC2RPzvlwFCbZzXhDX2HqqIkMCZBUWikTEW9KvIs2O7mSkI1gTAzNFr5m/PLiMAYe/t7PP2ibkj0K8wv7tzg==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/ecdsa-sdk/-/ecdsa-sdk-2.2.41.tgz", + "integrity": "sha512-0uqdsSCGZlRqcVS5qyl/aby1WeBzTgoaqCJ0Dopb3I4DsEkkGGaMBFlazdnu94yowZDcgoPeQznu/oPXauVFbw==", "dependencies": { "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/encryption": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-2.2.39.tgz", - "integrity": "sha512-GZU6UfVAZQgdR3INKSW710f3JnecU3UH8nuPy2HcuxCCjjq0OMhm3ewYRnF9FmTeu6aBKLTfBGAiOa24EZUFeg==", - "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/bls-sdk": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/crypto": "2.2.39", - "@lit-protocol/ecdsa-sdk": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/nacl": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-2.2.41.tgz", + "integrity": "sha512-ZL/uNKJ57c4H/HrZapq7jsBU57WVp7BemAWpM1vpAWmb9plL07jQIMkPQYLeOUEbIDTwLUfvkZkELtSBGHuLWQ==", + "dependencies": { + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/bls-sdk": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/crypto": "2.2.41", + "@lit-protocol/ecdsa-sdk": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/nacl": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "ethers": "^5.7.1", "ipfs-http-client": "56.0.0", "jszip": "^3.10.1", @@ -6183,28 +6217,28 @@ } }, "node_modules/@lit-protocol/lit-node-client": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-2.2.39.tgz", - "integrity": "sha512-LQMY/qI25KulpJxvzDDtnFDredcC1oTIcwEvWGxs2E8mustER1zRpax94KkXdnB085/F4asHK4eWdDlTkKOI+A==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-2.2.41.tgz", + "integrity": "sha512-Fyw3s3tpaqreep2M8X5CUuIac2WNbdZOxm8EdWvqLgt5OiODsJBPBfFAfW8l4kzmpGDHHxq5n99gVhtpDpDWiA==", "dependencies": { "@cosmjs/proto-signing": "^0.30.1", "@cosmjs/stargate": "^0.30.1", - "@lit-protocol/access-control-conditions": "2.2.39", - "@lit-protocol/auth-browser": "2.2.39", - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/bls-sdk": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/core": "2.2.39", - "@lit-protocol/crypto": "2.2.39", - "@lit-protocol/ecdsa-sdk": "2.2.39", - "@lit-protocol/encryption": "2.2.39", - "@lit-protocol/lit-node-client-nodejs": "2.2.39", - "@lit-protocol/lit-third-party-libs": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/misc-browser": "2.2.39", - "@lit-protocol/nacl": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "@lit-protocol/access-control-conditions": "2.2.41", + "@lit-protocol/auth-browser": "2.2.41", + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/bls-sdk": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/core": "2.2.41", + "@lit-protocol/crypto": "2.2.41", + "@lit-protocol/ecdsa-sdk": "2.2.41", + "@lit-protocol/encryption": "2.2.41", + "@lit-protocol/lit-node-client-nodejs": "2.2.41", + "@lit-protocol/lit-third-party-libs": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/misc-browser": "2.2.41", + "@lit-protocol/nacl": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "@walletconnect/ethereum-provider": "2.7.0", "@web3modal/standalone": "^2.2.1", "blockstore-core": "^3.0.0", @@ -6223,26 +6257,26 @@ } }, "node_modules/@lit-protocol/lit-node-client-nodejs": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-2.2.39.tgz", - "integrity": "sha512-iSeOoaaLwxIY/esn4Kzw63RAsrkbWFygTRwBEPfBNqj2HeMg4wxj1dhzbVM6s8/imapxXTbewASHZmyxZBzFUQ==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-2.2.41.tgz", + "integrity": "sha512-teH2Q07qYuKerMInFLtkfOlIzy9roptBHElJPmVI8XFe1kFxkgIEO4X+sgZBKIfOYDVdM9f5UAFJSGBAN0gj2A==", "dependencies": { "@cosmjs/proto-signing": "^0.30.1", "@cosmjs/stargate": "^0.30.1", - "@lit-protocol/access-control-conditions": "2.2.39", - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/bls-sdk": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/core": "2.2.39", - "@lit-protocol/crypto": "2.2.39", - "@lit-protocol/ecdsa-sdk": "2.2.39", - "@lit-protocol/encryption": "2.2.39", - "@lit-protocol/lit-third-party-libs": "2.2.39", - "@lit-protocol/misc": "2.2.39", - "@lit-protocol/misc-browser": "2.2.39", - "@lit-protocol/nacl": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "@lit-protocol/access-control-conditions": "2.2.41", + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/bls-sdk": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/core": "2.2.41", + "@lit-protocol/crypto": "2.2.41", + "@lit-protocol/ecdsa-sdk": "2.2.41", + "@lit-protocol/encryption": "2.2.41", + "@lit-protocol/lit-third-party-libs": "2.2.41", + "@lit-protocol/misc": "2.2.41", + "@lit-protocol/misc-browser": "2.2.41", + "@lit-protocol/nacl": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", "blockstore-core": "^3.0.0", "ethers": "^5.7.1", "ipfs-http-client": "56.0.0", @@ -6422,9 +6456,9 @@ } }, "node_modules/@lit-protocol/lit-third-party-libs": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-third-party-libs/-/lit-third-party-libs-2.2.39.tgz", - "integrity": "sha512-+30rwU2NbnxMg3PXwRUMENn3wIhL6ocS5rcz7BzQns/cSxpxsHk1WaAFOjF0dczi+LMztv8yFAGsLvok7AmVtg==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-third-party-libs/-/lit-third-party-libs-2.2.41.tgz", + "integrity": "sha512-OijwozVCxDtpAQF/5eZTKT2GPYWAja4BH96rOSiXv1cSm4PCo9Sspo5jcTA8BHBsIS3HiUbC7KmIrz6pLdaGAw==", "dependencies": { "@cosmjs/proto-signing": "^0.30.1", "@cosmjs/stargate": "^0.30.1", @@ -6517,13 +6551,13 @@ } }, "node_modules/@lit-protocol/misc": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-2.2.39.tgz", - "integrity": "sha512-hdaqgtgat+HhSmKGZHCZP1iKS6EE0x3n1B+d1uuFqILVqaz2Gg9W6s1OufChFGULXvF1umx4S5Be4TP+iu7nRw==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-2.2.41.tgz", + "integrity": "sha512-iOQkRBkgV7IofKuNtzjoStLZtUuljffcboD5LDZ5rp0a4aHwNggnQxabVqEZwR76hqPsPXA4HEwPS6cIzIiWDg==", "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/types": "2.2.39", + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/types": "2.2.41", "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", @@ -6531,42 +6565,44 @@ } }, "node_modules/@lit-protocol/misc-browser": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-2.2.39.tgz", - "integrity": "sha512-h40aeFb9d47eTwYhgRfpoQzERTjXHptU9JmKxqE5kKrW177hopsF5trZTyYgZPO+/u+IkT14w8NQ80UCWCn8sA==", - "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", - "@lit-protocol/constants": "2.2.39", - "@lit-protocol/types": "2.2.39", - "@lit-protocol/uint8arrays": "2.2.39", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-2.2.41.tgz", + "integrity": "sha512-0KrhKRwsR8Neq2rAGrArTlGE325iWd9JqiL7aWm2wVEdATrAFK7rSbNKm/Nw90SWMxVEju+sl+zcQ3WbeY7PlQ==", + "dependencies": { + "@lit-protocol/auth-helpers": "2.2.41", + "@lit-protocol/constants": "2.2.41", + "@lit-protocol/types": "2.2.41", + "@lit-protocol/uint8arrays": "2.2.41", + "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/nacl": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-2.2.39.tgz", - "integrity": "sha512-+PE8pIhdst0C4v4u+FTnNeb5+0DK4MLgP+nwMjm7iO96hdgQ+9slFi8LdushMb3QH9/E3bMo9iTIvgGFrzKSPw==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-2.2.41.tgz", + "integrity": "sha512-5tHj07iz6z6jV2wX4aXNbDps9EO0OuNJXiQXeoP+zyNbuylRi8COkD1JvZ/8BT7224D0M7Jg+pululZKie8g4g==", "dependencies": { "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/types": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-2.2.39.tgz", - "integrity": "sha512-JXGzpBk5mlA3CUkAkbuvWaQ3aTDc+l4v9pi0DU/RkWEcJD8CaLHM5oSv6t9ZlIZl3c2ibEN+sMr98LwbrxHExA==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-2.2.41.tgz", + "integrity": "sha512-2pz7klTgnllNXRC4pji7FCG+qmYNvH2ohDLpJgLJPKR7Dwad12CjTJxjCjNoIiH1DNh5dcKRMTEIrIHb4yrjpg==", "dependencies": { - "@lit-protocol/auth-helpers": "2.2.39", + "@lit-protocol/auth-helpers": "2.2.41", + "ethers": "^5.7.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/uint8arrays": { - "version": "2.2.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-2.2.39.tgz", - "integrity": "sha512-x8SGt9nLQanilKymYmyGkt300DgZgsvGoit4aXG7kHJonUONmYy7jqd53+c3Zbz3BbtJbIm4xJeipQ7nGpFbSA==", + "version": "2.2.41", + "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-2.2.41.tgz", + "integrity": "sha512-RJA0xXh9ASgMAnduHpt7XtYet8N/ki/V5+kQNM6JJMGN9+GIdIKpiCKLP8PWgeR3Z8ZEkloq801B9nA61p+ecg==", "dependencies": { "tslib": "^2.3.0" } @@ -7426,9 +7462,9 @@ } }, "node_modules/@react-native-community/cli-doctor/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "optional": true, "peer": true, "bin": { @@ -7867,9 +7903,9 @@ } }, "node_modules/@react-native-community/cli-tools/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "optional": true, "peer": true, "bin": { @@ -7978,9 +8014,9 @@ } }, "node_modules/@react-native-community/cli/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "optional": true, "peer": true, "bin": { @@ -9199,9 +9235,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.40.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", - "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-gsF+c/0XOguWgaOgvFs+xnnRqt9GwgTvIks36WpE6ueeI4KCEHHd8K/CKHqhOqrJKsYH8m27kRzQEvWXAwXUTw==", "dev": true, "peer": true, "dependencies": { @@ -9348,9 +9384,9 @@ "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" }, "node_modules/@types/node": { - "version": "20.4.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.0.tgz", - "integrity": "sha512-jfT7iTf/4kOQ9S7CHV9BIyRaQqHu67mOjsIQBC3BKZvzvUB6zLxEwJ6sBE3ozcvP8kF6Uk5PXN0Q+c0dfhGX0g==" + "version": "20.4.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.1.tgz", + "integrity": "sha512-JIzsAvJeA/5iY6Y/OxZbv1lUcc8dNSE77lb2gnBH+/PJ3lFR1Ccvgwl5JWnHAkNHcRsT0TbpVOsiMKZ1F/yyJg==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -9472,15 +9508,15 @@ "devOptional": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.61.0.tgz", - "integrity": "sha512-A5l/eUAug103qtkwccSCxn8ZRwT+7RXWkFECdA4Cvl1dOlDUgTpAOfSEElZn2uSUxhdDpnCdetrf0jvU4qrL+g==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.61.0", - "@typescript-eslint/type-utils": "5.61.0", - "@typescript-eslint/utils": "5.61.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.0", @@ -9506,14 +9542,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.61.0.tgz", - "integrity": "sha512-yGr4Sgyh8uO6fSi9hw3jAFXNBHbCtKKFMdX2IkT3ZqpKmtAq3lHS4ixB/COFuAIJpwl9/AqF7j72ZDWYKmIfvg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.61.0", - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/typescript-estree": "5.61.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "debug": "^4.3.4" }, "engines": { @@ -9533,13 +9569,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.61.0.tgz", - "integrity": "sha512-W8VoMjoSg7f7nqAROEmTt6LoBpn81AegP7uKhhW5KzYlehs8VV0ZW0fIDVbcZRcaP3aPSW+JZFua+ysQN+m/Nw==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/visitor-keys": "5.61.0" + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -9550,13 +9586,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.61.0.tgz", - "integrity": "sha512-kk8u//r+oVK2Aj3ph/26XdH0pbAkC2RiSjUYhKD+PExemG4XSjpGFeyZ/QM8lBOa7O8aGOU+/yEbMJgQv/DnCg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.61.0", - "@typescript-eslint/utils": "5.61.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -9577,9 +9613,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.61.0.tgz", - "integrity": "sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -9590,13 +9626,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.61.0.tgz", - "integrity": "sha512-Fud90PxONnnLZ36oR5ClJBLTLfU4pIWBmnvGwTbEa2cXIqj70AEDEmOmpkFComjBZ/037ueKrOdHuYmSFVD7Rw==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/visitor-keys": "5.61.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -9646,17 +9682,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.61.0.tgz", - "integrity": "sha512-mV6O+6VgQmVE6+xzlA91xifndPW9ElFW8vbSF0xCT/czPXVhwDewKila1jOyRwa9AE19zKnrr7Cg5S3pJVrTWQ==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.61.0", - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/typescript-estree": "5.61.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "eslint-scope": "^5.1.1", "semver": "^7.3.7" }, @@ -9672,12 +9708,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.61.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.61.0.tgz", - "integrity": "sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg==", + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.61.0", + "@typescript-eslint/types": "5.62.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -10131,12 +10167,12 @@ } }, "node_modules/@verida/account": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/account/-/account-2.3.5.tgz", - "integrity": "sha512-HsBoHfUdy7oD5VWncD6VrgKAVmDAe5YVNJd+LRROJTQjXXTPFocF4VfDlbq08e95bjyG4j1FSlmLP8H+9iUKLQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/account/-/account-2.3.6.tgz", + "integrity": "sha512-olERxgfLoHktFT+GsyLDzqkL0qAYPBNg8TrLRQ8gldi2tgKerR9asgXtdaSPXyGzEJ4Lv+sSGzQUhYp61uHvAQ==", "dependencies": { "@verida/keyring": "^2.3.1", - "@verida/storage-link": "^2.3.5", + "@verida/storage-link": "^2.3.6", "@verida/types": "^2.3.1", "did-jwt": "^6.11.0", "did-resolver": "^4.0.1", @@ -10148,12 +10184,12 @@ } }, "node_modules/@verida/account-node": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/account-node/-/account-node-2.3.5.tgz", - "integrity": "sha512-Hpi+6xFKfeXKcECIE8zYNHQ3i697ySCVKZtO+6qWcTtDVpwLenPWuAF2aTciHfGCGo8KcpUp/85dl+11OZUDhA==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/account-node/-/account-node-2.3.6.tgz", + "integrity": "sha512-bJM418kqr/mV8Km6ZW9xDVVq333yvh+5K8NdazB/G+LZj2cblQnehr6T+Fwoof3p5NZMNJguHSCd52yzBS8t5g==", "dependencies": { - "@verida/account": "^2.3.5", - "@verida/did-client": "^2.3.5", + "@verida/account": "^2.3.6", + "@verida/did-client": "^2.3.6", "@verida/did-document": "^2.3.1", "@verida/encryption-utils": "^2.2.1", "@verida/keyring": "^2.3.1", @@ -10230,16 +10266,16 @@ } }, "node_modules/@verida/client-ts": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/client-ts/-/client-ts-2.3.5.tgz", - "integrity": "sha512-ThcbWXLhThXhgzYBT+jn06yWiDnalcLOj1wVoiN5GvHbRSV6nMvfJuVi5kVBK//k/+t/wQ0lEquNOnS0lrQMdQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/client-ts/-/client-ts-2.3.6.tgz", + "integrity": "sha512-A8QrBBu/QUa3kDZdS4s29G0x6gXMz9WoC5LUX+y1Phd05pt3yCDIuYE8iMpl2UltLQFK4spezprwxfWP9c7jkQ==", "dependencies": { - "@verida/account": "^2.3.5", - "@verida/did-client": "^2.3.5", + "@verida/account": "^2.3.6", + "@verida/did-client": "^2.3.6", "@verida/did-document": "^2.3.1", "@verida/encryption-utils": "^2.2.1", "@verida/keyring": "^2.3.1", - "@verida/storage-link": "^2.3.5", + "@verida/storage-link": "^2.3.6", "@verida/types": "^2.3.1", "@verida/vda-name-client": "^2.3.4", "ajv": "^8.6.3", @@ -10304,14 +10340,14 @@ } }, "node_modules/@verida/did-client": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/did-client/-/did-client-2.3.5.tgz", - "integrity": "sha512-7P28fvFsKbNkmmKhHrlP20TSI6tb+1c5Ox1qOtrGfknqwWQJ5cjS01wa9EaHI17O21ZSoUeCmssGlljAJVfTNg==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/did-client/-/did-client-2.3.6.tgz", + "integrity": "sha512-SkWayshca6xLgmyXh7C/XN77orx7nMOOySH2fEjz2meysv9cpIIw6V4nhyp08clrr/UgEYDLuuPj82xyt+pWXw==", "dependencies": { "@verida/did-document": "^2.3.1", "@verida/types": "^2.3.1", "@verida/vda-common": "^2.3.4", - "@verida/vda-did-resolver": "^2.3.5", + "@verida/vda-did-resolver": "^2.3.6", "@verida/web3": "^2.3.4", "axios": "^0.23.0", "deepcopy": "^2.1.0", @@ -10408,11 +10444,11 @@ } }, "node_modules/@verida/storage-link": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/storage-link/-/storage-link-2.3.5.tgz", - "integrity": "sha512-GmAyboA11UJiziUx5Y4WkIXLP7rCe8cJQioekUrg/240ml8wNVd5cvHsDErNsZIIzB9loVzkAIlAvFYvMnoUIg==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/storage-link/-/storage-link-2.3.6.tgz", + "integrity": "sha512-I/4Pqi7FVa6sErXsCvXqbNI0aa38pKGnnPDxEG2oMFUCRbFvU79zcg2+jjJVqn7dFN1CEkOkKmxZkVkDzJgoDg==", "dependencies": { - "@verida/did-client": "^2.3.5", + "@verida/did-client": "^2.3.6", "@verida/did-document": "^2.3.1", "@verida/encryption-utils": "^2.2.1", "@verida/keyring": "^2.3.1", @@ -11213,9 +11249,9 @@ } }, "node_modules/@verida/vda-did-resolver": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@verida/vda-did-resolver/-/vda-did-resolver-2.3.5.tgz", - "integrity": "sha512-QSytshBHY/OjqLLCLzgCykVrUXK2R8jc1CYe9sramcmcJzfnN7i4HhxIj9D+WQNDaF9bHultX/VW+jClDelXqw==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/@verida/vda-did-resolver/-/vda-did-resolver-2.3.6.tgz", + "integrity": "sha512-3xfxS8P9tVZlZBoHiWTn8GG3j+UYrDcBoQHVkGjUHjC8Y5UXdSoP94pg0WN4bzpd4sQPbNlKiJL2vrUEvtgCBA==", "dependencies": { "@ethersproject/providers": "^5.7.2", "@verida/did-document": "^2.3.1", @@ -13338,9 +13374,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001513", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001513.tgz", - "integrity": "sha512-pnjGJo7SOOjAGytZZ203Em95MRM8Cr6jhCXNF/FAXTpCTRTECnqQWLpiTRqrFtdYcth8hf4WECUpkezuYsMVww==", + "version": "1.0.30001515", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz", + "integrity": "sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==", "devOptional": true, "funding": [ { @@ -13894,9 +13930,9 @@ } }, "node_modules/conventional-changelog-writer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-6.0.0.tgz", - "integrity": "sha512-8PyWTnn7zBIt9l4hj4UusFs1TyG+9Ulu1zlOAc72L7Sdv9Hsc8E86ot7htY3HXCVhXHB/NO0pVGvZpwsyJvFfw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-6.0.1.tgz", + "integrity": "sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==", "dev": true, "dependencies": { "conventional-commits-filter": "^3.0.0", @@ -13904,7 +13940,7 @@ "handlebars": "^4.7.7", "json-stringify-safe": "^5.0.1", "meow": "^8.1.2", - "semver": "^6.3.0", + "semver": "^7.0.0", "split": "^1.0.1" }, "bin": { @@ -13914,15 +13950,6 @@ "node": ">=14" } }, - "node_modules/conventional-changelog-writer/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/conventional-commits-filter": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-3.0.0.tgz", @@ -14563,9 +14590,9 @@ } }, "node_modules/default-gateway/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "optional": true, "peer": true, "bin": { @@ -15010,9 +15037,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.453", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.453.tgz", - "integrity": "sha512-BU8UtQz6CB3T7RIGhId4BjmjJVXQDujb0+amGL8jpcluFJr6lwspBOvkUbnttfpZCm4zFMHmjrX1QrdPWBBMjQ==", + "version": "1.4.455", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.455.tgz", + "integrity": "sha512-8tgdX0Odl24LtmLwxotpJCVjIndN559AvaOtd67u+2mo+IDsgsTF580NB+uuDCqsHw8yFg53l5+imFV9Fw3cbA==", "devOptional": true }, "node_modules/elliptic": { @@ -15771,14 +15798,14 @@ } }, "node_modules/expo": { - "version": "49.0.0", - "resolved": "https://registry.npmjs.org/expo/-/expo-49.0.0.tgz", - "integrity": "sha512-6Z0niKnAx0/amM0MDA8ekYwjDnhgRA0gCYwMnN9v0z0zH1ObBxWio8MzRgFyki3dCxktS8Z6WzuYLfnIkTY22w==", + "version": "49.0.2", + "resolved": "https://registry.npmjs.org/expo/-/expo-49.0.2.tgz", + "integrity": "sha512-fpUz1vegrd1lPzS+A+HbkOF5Lt+tIq6vKiSmw6sW89JMBx5rpKTnTnVVvDuMOG1pnXxZlmQtYTrw0C6H9zcTNw==", "optional": true, "peer": true, "dependencies": { "@babel/runtime": "^7.20.0", - "@expo/cli": "0.10.9", + "@expo/cli": "0.10.10", "@expo/config": "8.1.2", "@expo/config-plugins": "7.2.5", "@expo/vector-icons": "^13.0.0", @@ -15790,7 +15817,7 @@ "expo-font": "~11.4.0", "expo-keep-awake": "~12.3.0", "expo-modules-autolinking": "1.5.0", - "expo-modules-core": "1.5.4", + "expo-modules-core": "1.5.6", "fbemitter": "^3.0.0", "invariant": "^2.2.4", "md5-file": "^3.2.3", @@ -15932,9 +15959,9 @@ } }, "node_modules/expo-modules-core": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-1.5.4.tgz", - "integrity": "sha512-/oID+SnVYUakb1De3FoT/gBPosPjY+docyHc+M8ZoPsA3LOdlCOkrQG9yw2lWEP2wDNVN6SAa/wcyNeLSIbdAw==", + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-1.5.6.tgz", + "integrity": "sha512-3OsWO8p0BSX7qgkYPnl+B/fz5rCJt1rU3nsa1fi1p3Oy44bvvdb2FVejTBIb87I41i0Rcj7vn2uG1KWuK1TA1Q==", "optional": true, "peer": true, "dependencies": { @@ -16540,9 +16567,9 @@ } }, "node_modules/find-cache-dir/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "optional": true, "peer": true, "bin": { @@ -17352,9 +17379,9 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.0.tgz", - "integrity": "sha512-0euwPCRyAPSgGdzD1IVN9nJYHtBhJwb6XPfbpQcYbPCwrBidX6GzxmchnaF4sfF/jPb74Ojx5g4yTg3sixlyPw==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, "dependencies": { "agent-base": "^7.0.2", @@ -18364,9 +18391,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -20856,9 +20883,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } @@ -21015,9 +21042,9 @@ } }, "node_modules/marked-terminal/node_modules/type-fest": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.12.0.tgz", - "integrity": "sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.0.tgz", + "integrity": "sha512-Gur3yQGM9qiLNs0KPP7LPgeRbio2QTt4xXouobMCarR0/wyW3F+F/+OWwshg3NG0Adon7uQfSZBpB46NfhoF1A==", "dev": true, "engines": { "node": ">=14.16" @@ -21274,9 +21301,9 @@ } }, "node_modules/meow/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -22999,9 +23026,9 @@ } }, "node_modules/npm-package-arg/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "devOptional": true, "bin": { "semver": "bin/semver" @@ -26600,9 +26627,9 @@ } }, "node_modules/password-prompt/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "optional": true, "peer": true, "bin": { @@ -28101,9 +28128,9 @@ } }, "node_modules/react-devtools-core": { - "version": "4.27.8", - "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.27.8.tgz", - "integrity": "sha512-KwoH8/wN/+m5wTItLnsgVraGNmFrcTWR3k1VimP1HjtMMw4CNF+F5vg4S/0tzTEKIdpCi2R7mPNTC+/dswZMgw==", + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.28.0.tgz", + "integrity": "sha512-E3C3X1skWBdBzwpOUbmXG8SgH6BtsluSMe+s6rRcujNKG1DGi8uIfhdhszkgDpAsMoE55hwqRUzeXCmETDBpTg==", "optional": true, "peer": true, "dependencies": { @@ -28399,9 +28426,9 @@ } }, "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.12.0.tgz", - "integrity": "sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.0.tgz", + "integrity": "sha512-Gur3yQGM9qiLNs0KPP7LPgeRbio2QTt4xXouobMCarR0/wyW3F+F/+OWwshg3NG0Adon7uQfSZBpB46NfhoF1A==", "dev": true, "engines": { "node": ">=14.16" @@ -28508,9 +28535,9 @@ } }, "node_modules/read-pkg/node_modules/type-fest": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.12.0.tgz", - "integrity": "sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.0.tgz", + "integrity": "sha512-Gur3yQGM9qiLNs0KPP7LPgeRbio2QTt4xXouobMCarR0/wyW3F+F/+OWwshg3NG0Adon7uQfSZBpB46NfhoF1A==", "dev": true, "engines": { "node": ">=14.16" @@ -29426,9 +29453,9 @@ } }, "node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -30544,7 +30571,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "devOptional": true, + "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -30563,13 +30591,13 @@ } }, "node_modules/tempy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-3.0.0.tgz", - "integrity": "sha512-B2I9X7+o2wOaW4r/CWMkpOO9mdiTRCxXNgob6iGvPmfPWgH/KyUD6Uy5crtWBxIBe3YrNZKR2lSzv1JJKWD4vA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-3.1.0.tgz", + "integrity": "sha512-7jDLIdD2Zp0bDe5r3D2qtkd1QOCacylBuL7oa4udvN6v2pqr4+LcCr67C8DR1zkpaZ8XosF5m1yQSabKAW6f2g==", "dev": true, "dependencies": { "is-stream": "^3.0.0", - "temp-dir": "^2.0.0", + "temp-dir": "^3.0.0", "type-fest": "^2.12.2", "unique-string": "^3.0.0" }, @@ -30592,6 +30620,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tempy/node_modules/temp-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-3.0.0.tgz", + "integrity": "sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==", + "dev": true, + "engines": { + "node": ">=14.16" + } + }, "node_modules/tempy/node_modules/type-fest": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", @@ -30622,9 +30659,9 @@ } }, "node_modules/terser": { - "version": "5.18.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz", - "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==", + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.0.tgz", + "integrity": "sha512-JpcpGOQLOXm2jsomozdMDpd5f8ZHh1rR48OFgWUH3QsyZcfPgv2qDCYbcDEAYNd4OZRj2bWYKpwdll/udZCk/Q==", "devOptional": true, "peer": true, "dependencies": { @@ -31790,9 +31827,9 @@ } }, "node_modules/web-vitals": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-3.3.2.tgz", - "integrity": "sha512-qRkpmSeKfEWAzNhtX541xA8gCJ+pqCqBmUlDVkVDSCSYUvfvNqF+k9g8I+uyreRcDBdfiJrd0/aLbTy5ydo49Q==" + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-3.4.0.tgz", + "integrity": "sha512-n9fZ5/bG1oeDkyxLWyep0eahrNcPDF6bFqoyispt7xkW0xhDzpUBTgyDKqWDi1twT0MgH4HvvqzpUyh0ZxZV4A==" }, "node_modules/webcrypto-core": { "version": "1.7.7", @@ -31911,9 +31948,9 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", + "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", "dependencies": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", diff --git a/package.json b/package.json index 8d2e790d..8553c8bc 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "README.md" ], "dependencies": { - "@cheqd/did-provider-cheqd": "^3.4.1", + "@cheqd/did-provider-cheqd": "^3.6.0", "@cosmjs/amino": "^0.31.0", "@cosmjs/encoding": "^0.30.1", "@logto/express": "^2.0.2", @@ -55,13 +55,14 @@ "@veramo/did-resolver": "^5.2.0", "@veramo/key-manager": "^5.1.2", "@veramo/kms-local": "^5.1.2", - "@verida/account-node": "^2.3.5", - "@verida/client-ts": "^2.3.5", + "@verida/account-node": "^2.3.6", + "@verida/client-ts": "^2.3.6", "@verida/types": "^2.3.1", - "@verida/vda-did-resolver": "^2.3.5", + "@verida/vda-did-resolver": "^2.3.6", "cookie-parser": "^1.4.6", "copyfiles": "^2.4.1", "cors": "^2.8.5", + "did-jwt": "^7.2.4", "did-resolver": "^4.1.0", "dotenv": "^16.3.1", "express": "^4.18.2", @@ -92,12 +93,12 @@ "@types/express-session": "^1.17.7", "@types/helmet": "^4.0.0", "@types/json-stringify-safe": "^5.0.0", - "@types/node": "^20.4.0", + "@types/node": "^20.4.1", "@types/secp256k1": "^4.0.3", "@types/swagger-ui-express": "^4.1.3", "@types/uuid": "^9.0.2", - "@typescript-eslint/eslint-plugin": "^5.61.0", - "@typescript-eslint/parser": "^5.61.0", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", "buffer": "6.0.3", "conventional-changelog-conventionalcommits": "^6.1.0", "eslint": "^8.44.0", diff --git a/src/controllers/credentials.ts b/src/controllers/credentials.ts index a636e9e8..ec8ff992 100644 --- a/src/controllers/credentials.ts +++ b/src/controllers/credentials.ts @@ -29,6 +29,8 @@ export class CredentialController { return false }) .withMessage('Entry must be a jwt string or an credential'), + check('policies').optional().isObject().withMessage('Verification policies should be an object'), + query('verifyStatus').optional().isBoolean().withMessage('verifyStatus should be a boolean value'), query('publish').optional().isBoolean().withMessage('publish should be a boolean value') ] @@ -41,6 +43,9 @@ export class CredentialController { return false }) .withMessage('Entry must be a jwt string or a presentation'), + check('verifierDid').optional().isString().withMessage('Invalid verifier DID'), + check('policies').optional().isObject().withMessage('Verification policies should be an object'), + query('verifyStatus').optional().isBoolean().withMessage('verifyStatus should be a boolean value') ] public async issue(request: Request, response: Response) { @@ -76,8 +81,18 @@ export class CredentialController { if (!result.isEmpty()) { return response.status(400).json({ error: result.array()[0].msg }) } + + const { credential, policies } = request.body + const verifyStatus = request.query.verifyStatus === 'true' ? true : false try { - const result = await Credentials.instance.verify_credentials(request.body.credential, request.body.statusOptions, response.locals.customerId) + const result = await Identity.instance.verifyCredential( + credential, + { + verifyStatus, + policies + }, + response.locals.customerId + ) if (result.error) { return response.status(400).json({ verified: result.verified, @@ -144,8 +159,18 @@ export class CredentialController { return response.status(400).json({ error: result.array()[0].msg }) } + const { presentation, verifierDid, policies } = request.body + const verifyStatus = request.query.verifyStatus === 'true' ? true : false try { - const result = await Identity.instance.verifyPresentation(request.body.presentation, request.body.statusOptions, response.locals.customerId) + const result = await Identity.instance.verifyPresentation( + presentation, + { + verifyStatus, + policies, + domain: verifierDid + }, + response.locals.customerId + ) if (result.error) { return response.status(400).json({ verified: result.verified, diff --git a/src/services/credentials.ts b/src/services/credentials.ts index d8ddadd6..53dcdbd9 100644 --- a/src/services/credentials.ts +++ b/src/services/credentials.ts @@ -4,7 +4,7 @@ import { VC_CONTEXT, VC_TYPE } from '../types/constants.js' -import { CredentialRequest, VerifyCredentialStatusOptions, VerifyPresentationStatusOptions } from '../types/types.js' +import { CredentialRequest, VerificationOptions } from '../types/types.js' import { Identity } from './identity/index.js' import { VeridaService } from '../services/connectors/verida.js' import { v4 } from 'uuid' @@ -50,15 +50,4 @@ export class Credentials { } return verifiable_credential } - - async verify_credentials(credential: W3CVerifiableCredential | string, statusOptions: VerifyCredentialStatusOptions | null, agentId: string): Promise { - const result = await Identity.instance.verifyCredential(credential, statusOptions, agentId) - delete(result.payload) - return result - } - - async verify_presentation(presentation: W3CVerifiablePresentation, statusOptions: VerifyPresentationStatusOptions | null, agentId: string): Promise { - const result = await Identity.instance.verifyPresentation(presentation, statusOptions, agentId) - return result - } } diff --git a/src/services/identity/IIdentity.ts b/src/services/identity/IIdentity.ts index d57394a5..c96b53d1 100644 --- a/src/services/identity/IIdentity.ts +++ b/src/services/identity/IIdentity.ts @@ -11,8 +11,8 @@ import type { } from '@veramo/core' import type { AbstractPrivateKeyStore } from '@veramo/key-manager' import type { ResourcePayload } from '@cheqd/did-provider-cheqd' -import type { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateEncryptedStatusList2021Result, CreateStatusList2021Result, RevocationResult, SuspensionResult, UnsuspensionResult } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' -import type { BroadCastStatusListOptions, CreateStatusListOptions, CredentialRequest, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerifyCredentialStatusOptions, VerifyPresentationStatusOptions } from '../../types/types' +import type { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateStatusList2021Result, RevocationResult, SuspensionResult, UnsuspensionResult } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' +import type { BroadCastStatusListOptions, CreateStatusListOptions, CredentialRequest, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerificationOptions } from '../../types/types' export interface IIdentity { agent?: TAgent @@ -30,9 +30,9 @@ export interface IIdentity { importDid(did: string, privateKeyHex: string, publicKeyHex: string, agentId?: string): Promise createResource(network: string, payload: ResourcePayload, agentId?: string): Promise createCredential(credential: CredentialPayload, format: CredentialRequest['format'], statusOptions: StatusOptions | null, agentId?: string): Promise - verifyCredential(credential: VerifiableCredential | string, statusOptions: VerifyCredentialStatusOptions | null, agentId?: string): Promise - verifyPresentation(presentation: VerifiablePresentation | string, statusOptions: VerifyPresentationStatusOptions, agentId?: string): Promise - createStatusList2021(did: string, resourceOptions: ResourcePayload, statusOptions: CreateStatusListOptions, agentId: string): Promise + verifyCredential(credential: VerifiableCredential | string, verificationOptions: VerificationOptions, agentId?: string): Promise + verifyPresentation(presentation: VerifiablePresentation | string, verificationOptions: VerificationOptions, agentId?: string): Promise + createStatusList2021(did: string, resourceOptions: ResourcePayload, statusOptions: CreateStatusListOptions, agentId: string): Promise updateStatusList2021(did: string, statusOptions: UpdateStatusListOptions, publish?: boolean, agentId?: string): Promise broadcastStatusList2021(did: string, resourceOptions: ResourcePayload, statusOptions: BroadCastStatusListOptions, agentId?: string): Promise revokeCredentials(credential: VerifiableCredential | VerifiableCredential[], publish: boolean, agentId?: string): Promise diff --git a/src/services/identity/agent.ts b/src/services/identity/agent.ts index 962d805a..259b2a8b 100644 --- a/src/services/identity/agent.ts +++ b/src/services/identity/agent.ts @@ -14,7 +14,7 @@ import { MinimalImportableKey, TAgent, VerifiableCredential, - VerifiablePresentation, + VerifiablePresentation } from '@veramo/core' import { KeyManager } from '@veramo/key-manager' import { DIDStore, KeyStore } from '@veramo/data-store' @@ -34,6 +34,7 @@ import type { ICheqdRevokeBulkCredentialsWithStatusList2021Args, ICheqdUpdateIdentifierArgs, ICheqdVerifyCredentialWithStatusList2021Args, + ICheqdVerifyPresentationWithStatusList2021Args, } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' import { BroadCastStatusListOptions, @@ -46,10 +47,10 @@ import { SuspensionStatusOptions, UpdateStatusListOptions, VeramoAgent, - VerifyCredentialStatusOptions, - VerifyPresentationStatusOptions + VerificationOptions } from '../../types/types.js' import { VC_PROOF_FORMAT, VC_REMOVE_ORIGINAL_FIELDS } from '../../types/constants.js' +import { decodeJWT } from 'did-jwt' const resolverUrl = "https://resolver.cheqd.net/1.0/identifiers/" @@ -236,16 +237,26 @@ export class Veramo { } } - async verifyCredential(agent: VeramoAgent, credential: string | VerifiableCredential, statusOptions: VerifyCredentialStatusOptions | null): Promise { - if(typeof credential !== 'string' && credential.credentialStatus) { - return await agent.cheqdVerifyCredential({ + async verifyCredential(agent: VeramoAgent, credential: string | VerifiableCredential, verificationOptions: VerificationOptions = {}): Promise { + const decodedCredential = typeof credential === 'string' ? decodeJWT(credential) as unknown as VerifiableCredential : credential + let result: IVerifyResult + if(verificationOptions.verifyStatus) { + result = await agent.cheqdVerifyCredential({ credential: credential as VerifiableCredential, fetchList: true, - ...statusOptions + verificationArgs: { + ...verificationOptions, + fetchRemoteContexts: verificationOptions.fetchRemoteContexts || decodedCredential.proof.jws + } } as ICheqdVerifyCredentialWithStatusList2021Args) + } else { + result = await agent.verifyCredential({ + credential, + ...verificationOptions, + fetchRemoteContexts: verificationOptions.fetchRemoteContexts || decodedCredential.proof.jws + }) } - const result = await agent.verifyCredential({ credential, fetchRemoteContexts: true }) if (result.didResolutionResult) { delete(result.didResolutionResult) } @@ -257,19 +268,28 @@ export class Veramo { if (result.verifiableCredential) { delete(result.verifiableCredential) } + + if (result.payload) { + delete(result.payload) + } + return result } - async verifyPresentation(agent: VeramoAgent, presentation: VerifiablePresentation | string, statusOptions: VerifyPresentationStatusOptions | null): Promise { - // TODO: expose domain in did-provider-cheqd - // if(typeof presentation !== 'string') { - // return await agent.cheqdVerifyPresentation({ - // presentation: presentation as VerifiablePresentation, - // fetchList: true, - // ...statusOptions - // } as ICheqdVerifyPresentationWithStatusList2021Args) - // } - const result = await agent.verifyPresentation({ presentation, fetchRemoteContexts: true, policies: {audience: false} }) + async verifyPresentation(agent: VeramoAgent, presentation: VerifiablePresentation | string, verificationOptions: VerificationOptions = {}): Promise { + let result: IVerifyResult + if(verificationOptions.verifyStatus) { + result = await agent.cheqdVerifyPresentation({ + presentation: presentation as VerifiablePresentation, + fetchList: true, + verificationArgs: { + ...verificationOptions + }, + } as ICheqdVerifyPresentationWithStatusList2021Args) + } else { + result = await agent.verifyPresentation({ presentation, ...verificationOptions, fetchRemoteContexts: verificationOptions.fetchRemoteContexts || false }) + } + if (result.didResolutionResult) { delete(result.didResolutionResult) } @@ -281,6 +301,11 @@ export class Veramo { if (result.verifiablePresentation) { delete(result.verifiablePresentation) } + + if (result.payload) { + delete(result.payload) + } + return result } diff --git a/src/services/identity/local.ts b/src/services/identity/local.ts index 87eb5564..f21c4dbe 100644 --- a/src/services/identity/local.ts +++ b/src/services/identity/local.ts @@ -9,10 +9,10 @@ import { import { AbstractPrivateKeyStore, MemoryPrivateKeyStore } from '@veramo/key-manager' import { KeyManagementSystem } from '@veramo/kms-local' import { CheqdDIDProvider, ResourcePayload } from '@cheqd/did-provider-cheqd' -import { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateEncryptedStatusList2021Result, CreateStatusList2021Result, ICheqdBroadcastEncryptedStatusList2021Args } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' +import { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateStatusList2021Result } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' import { CheqdNetwork } from '@cheqd/sdk' -import { BroadCastStatusListOptions, CreateStatusListOptions, CredentialRequest, DefaultRPCUrl, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerifyCredentialStatusOptions, VerifyPresentationStatusOptions } from '../../types/types.js' +import { BroadCastStatusListOptions, CreateStatusListOptions, CredentialRequest, DefaultRPCUrl, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerificationOptions } from '../../types/types.js' import { Connection } from '../../database/connection/connection.js' import { IIdentity } from './IIdentity.js' import { Veramo } from './agent.js' @@ -146,15 +146,15 @@ export class LocalIdentity implements IIdentity { } } - async verifyCredential(credential: VerifiableCredential | string, statusOptions: VerifyCredentialStatusOptions | null): Promise { - return await Veramo.instance.verifyCredential(this.initAgent(), credential, statusOptions) + async verifyCredential(credential: VerifiableCredential | string, verificationOptions: VerificationOptions): Promise { + return await Veramo.instance.verifyCredential(this.initAgent(), credential, verificationOptions) } - async verifyPresentation(presentation: VerifiablePresentation | string, statusOptions: VerifyPresentationStatusOptions | null): Promise { - return await Veramo.instance.verifyPresentation(this.initAgent(), presentation, statusOptions) + async verifyPresentation(presentation: VerifiablePresentation | string, verificationOptions: VerificationOptions): Promise { + return await Veramo.instance.verifyPresentation(this.initAgent(), presentation, verificationOptions) } - async createStatusList2021(did: string, resourceOptions: ResourcePayload, statusListOptions: CreateStatusListOptions): Promise { + async createStatusList2021(did: string, resourceOptions: ResourcePayload, statusListOptions: CreateStatusListOptions): Promise { return await Veramo.instance.createStatusList2021(this.initAgent(), did, resourceOptions, statusListOptions) } diff --git a/src/services/identity/postgres.ts b/src/services/identity/postgres.ts index bf02d63c..8b3c9ac8 100644 --- a/src/services/identity/postgres.ts +++ b/src/services/identity/postgres.ts @@ -16,7 +16,7 @@ import { KeyManagementSystem, SecretBox } from '@veramo/kms-local' import { PrivateKeyStore } from '@veramo/data-store' import { CheqdDIDProvider, ResourcePayload } from '@cheqd/did-provider-cheqd' import { CheqdNetwork } from '@cheqd/sdk' -import { BroadCastStatusListOptions, cheqdDidRegex, CreateStatusListOptions, CredentialRequest, DefaultRPCUrl, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerifyCredentialStatusOptions, VerifyPresentationStatusOptions } from '../../types/types.js' +import { BroadCastStatusListOptions, cheqdDidRegex, CreateStatusListOptions, CredentialRequest, DefaultRPCUrl, StatusOptions, UpdateStatusListOptions, VeramoAgent, VerificationOptions } from '../../types/types.js' import { Connection } from '../../database/connection/connection.js' import { CustomerEntity } from '../../database/entities/customer.entity.js' import { IIdentity } from './IIdentity.js' @@ -24,7 +24,7 @@ import { CustomerService } from '../customer.js' import { Veramo } from './agent.js' import * as dotenv from 'dotenv' -import { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateEncryptedStatusList2021Result, CreateStatusList2021Result } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd.js' +import { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, CreateStatusList2021Result } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd.js' dotenv.config() const { @@ -214,17 +214,17 @@ export class PostgresIdentity implements IIdentity { } } - async verifyCredential(credential: string | VerifiableCredential, statusOptions: VerifyCredentialStatusOptions | null, agentId: string): Promise { + async verifyCredential(credential: string | VerifiableCredential, verificationOptions: VerificationOptions, agentId: string): Promise { const agent = await this.createAgent(agentId) - return await Veramo.instance.verifyCredential(agent, credential, statusOptions) + return await Veramo.instance.verifyCredential(agent, credential, verificationOptions) } - async verifyPresentation(presentation: VerifiablePresentation | string, statusOptions: VerifyPresentationStatusOptions | null, agentId: string): Promise { + async verifyPresentation(presentation: VerifiablePresentation | string, verificationOptions: VerificationOptions, agentId: string): Promise { const agent = await this.createAgent(agentId) - return await Veramo.instance.verifyPresentation(agent, presentation, statusOptions) + return await Veramo.instance.verifyPresentation(agent, presentation, verificationOptions) } - async createStatusList2021(did: string, resourceOptions: ResourcePayload, statusOptions: CreateStatusListOptions, agentId: string): Promise { + async createStatusList2021(did: string, resourceOptions: ResourcePayload, statusOptions: CreateStatusListOptions, agentId: string): Promise { const agent = await this.createAgent(agentId) return await Veramo.instance.createStatusList2021(agent, did, resourceOptions, statusOptions) } diff --git a/src/static/swagger.json b/src/static/swagger.json index 9cffaa3b..fe331960 100644 --- a/src/static/swagger.json +++ b/src/static/swagger.json @@ -522,6 +522,25 @@ "summary": "Verify a credential", "description": "

This endpoint verifies the credential. As input it takes the entire credential itself or just the JWT string

", "operationId": "verify", + "parameters": [ + { + "in": "query", + "name": "verifyStatus", + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "fetchRemoteContexts", + "description": "When dealing with JSON-LD you also MUST provide the proper contexts. * Set this to `true` ONLY if you want the `@context` URLs to be fetched in case they are a custom context.", + "schema": { + "type": "boolean", + "default": false + } + } + ], "requestBody": { "content": { "application/x-www-form-urlencoded": { @@ -826,6 +845,25 @@ "summary": "Verify a credential presentation", "description": "

This endpoint verifies the credential presentation. As input it takes the entire presentation itself

", "operationId": "presentation", + "parameters": [ + { + "in": "query", + "name": "verifyStatus", + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "fetchRemoteContexts", + "description": "When dealing with JSON-LD you also MUST provide the proper contexts. * Set this to `true` ONLY if you want the `@context` URLs to be fetched in case they are a custom context.", + "schema": { + "type": "boolean", + "default": false + } + } + ], "requestBody": { "content": { "application/x-www-form-urlencoded": { @@ -2050,6 +2088,28 @@ "type": "string" } ] + }, + "policies": { + "description": "Custom verification policies to execute when verifying credential", + "type": "object", + "properties": { + "now": { + "description": "policy to verify over the now (current time) during the verification check (UNIX time in seconds)", + "type": "number" + }, + "issuanceDate": { + "description": "policy to skip the issuanceDate (nbf) timestamp check when set to `false`", + "type": "boolean" + }, + "expirationDate": { + "description": "policy to skip the expirationDate (exp) timestamp check when set to `false`", + "type": "boolean" + }, + "audience": { + "description": "policy to skip the audience check when set to `false`", + "type": "boolean" + } + } } } }, @@ -2234,6 +2294,32 @@ "type": "object" } ] + }, + "verifierDid": { + "description": "Provide an optional verifier DID (also known as 'domain' parameter), if the verifier DID in the presentation is not managed in the wallet", + "type": "string" + }, + "policies": { + "description": "Custom verification policies to execute when verifying presentation", + "type": "object", + "properties": { + "now": { + "description": "policy to verify over the now (current time) during the verification check (UNIX time in seconds)", + "type": "number" + }, + "issuanceDate": { + "description": "policy to skip the issuanceDate (nbf) timestamp check when set to `false`", + "type": "boolean" + }, + "expirationDate": { + "description": "policy to skip the expirationDate (exp) timestamp check when set to `false`", + "type": "boolean" + }, + "audience": { + "description": "policy to skip the audience check when set to `false`", + "type": "boolean" + } + } } } }, diff --git a/src/types/types.ts b/src/types/types.ts index 53b6403e..f3a1fb0b 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -6,9 +6,10 @@ import { ICredentialIssuer, ICredentialVerifier, W3CVerifiableCredential, - TAgent + TAgent, + VerificationPolicies } from '@veramo/core' -import { AccessControlConditionBalanceArgs, AccessControlConditionMemoNonceArgs, ICheqd, ICheqdStatusList2021Options } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' +import { ICheqd, ICheqdStatusList2021Options } from '@cheqd/did-provider-cheqd/build/types/agent/ICheqd' import { ICredentialIssuerLD } from '@veramo/credential-ld' import { AbstractIdentifierProvider } from '@veramo/did-manager' import { AbstractKeyManagementSystem } from '@veramo/key-manager' @@ -138,22 +139,6 @@ export type StatusOptions = { export type RevocationStatusOptions = StatusOptions & { statusPurpose: 'revocation' } export type SuspensionStatusOptions = StatusOptions & { statusPurpose: 'suspension' } -export type VerifyCredentialStatusOptions = { - fetchList?: boolean - encryptedSymmetricKey?: string - options?: ICheqdStatusList2021Options - decryptionOptions: { - unifiedAccessControlConditions: CosmosAccessControlCondition[] - } - bootstrapOptions: {} -} - -export type VerifyPresentationStatusOptions = Omit & { - decryptionOptions: { - accessControlConditions: (AccessControlConditionMemoNonceArgs | AccessControlConditionBalanceArgs)[] - } -} - export interface ResourceMetadata { collectionId: string resourceId: string @@ -174,4 +159,11 @@ export interface UpdateStatusListOptions { statusListName: string statusListVersion?: string statusAction: 'revoke' | 'suspend' | 'reinstate' +} + +export interface VerificationOptions { + fetchRemoteContexts?: boolean + policies?: VerificationPolicies + domain?: string + verifyStatus?: boolean } \ No newline at end of file