diff --git a/package-lock.json b/package-lock.json index a772002c5..e7c1e32ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1945,11 +1945,90 @@ "dev": true, "license": "MIT" }, + "node_modules/@cbor-extract/cbor-extract-darwin-arm64": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-arm64/-/cbor-extract-darwin-arm64-2.2.2.tgz", + "integrity": "sha512-ZKZ/F8US7JR92J4DMct6cLW/Y66o2K576+zjlEN/MevH70bFIsB10wkZEQPLzl2oNh2SMGy55xpJ9JoBRl5DOA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@cbor-extract/cbor-extract-darwin-x64": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-x64/-/cbor-extract-darwin-x64-2.2.2.tgz", + "integrity": "sha512-32b1mgc+P61Js+KW9VZv/c+xRw5EfmOcPx990JbCBSkYJFY0l25VinvyyWfl+3KjibQmAcYwmyzKF9J4DyKP/Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@cbor-extract/cbor-extract-linux-arm": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm/-/cbor-extract-linux-arm-2.2.2.tgz", + "integrity": "sha512-tNg0za41TpQfkhWjptD+0gSD2fggMiDCSacuIeELyb2xZhr7PrhPe5h66Jc67B/5dmpIhI2QOUtv4SBsricyYQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@cbor-extract/cbor-extract-linux-arm64": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm64/-/cbor-extract-linux-arm64-2.2.2.tgz", + "integrity": "sha512-wfqgzqCAy/Vn8i6WVIh7qZd0DdBFaWBjPdB6ma+Wihcjv0gHqD/mw3ouVv7kbbUNrab6dKEx/w3xQZEdeXIlzg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@cbor-extract/cbor-extract-linux-x64": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-x64/-/cbor-extract-linux-x64-2.2.2.tgz", + "integrity": "sha512-rpiLnVEsqtPJ+mXTdx1rfz4RtUGYIUg2rUAZgd1KjiC1SehYUSkJN7Yh+aVfSjvCGtVP0/bfkQkXpPXKbmSUaA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@cbor-extract/cbor-extract-win32-x64": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-win32-x64/-/cbor-extract-win32-x64-2.2.2.tgz", + "integrity": "sha512-dI+9P7cfWxkTQ+oE+7Aa6onEn92PHgfWXZivjNheCRmTBDBf2fx6RyTi0cmgpYLnD1KLZK9ZYrMxaPZ4oiXhGA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@credo-ts/core": { - "version": "0.6.3", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@credo-ts/core/-/core-0.7.0.tgz", + "integrity": "sha512-J30MqquFaV2NzB1nxl5Nk43nueAsvSt4l+SHQI5fLQ+OwuY42iDmuJZvDmBXO7anoYBCp4ABsF78a1I7AEuL5Q==", "license": "Apache-2.0", "dependencies": { - "@animo-id/mdoc": "^0.5.2", "@animo-id/pex": "^6.1.1", "@astronautlabs/jsonpath": "^1.1.2", "@digitalcredentials/jsonld": "^9.0.0", @@ -1958,11 +2037,13 @@ "@multiformats/base-x": "^4.0.1", "@noble/curves": "^2.0.1", "@noble/hashes": "^2.0.1", + "@owf/mdoc": "^0.6.0", "@peculiar/asn1-ecc": "^2.6.0", "@peculiar/asn1-rsa": "^2.6.0", "@peculiar/asn1-schema": "^2.6.0", - "@peculiar/asn1-x509": "^2.6.0", + "@peculiar/asn1-x509": "^2.6.1", "@peculiar/x509": "^1.14.3", + "@scure/base": "^2.0.0", "@sd-jwt/core": "^0.19.0", "@sd-jwt/decode": "^0.19.0", "@sd-jwt/jwt-status-list": "^0.19.0", @@ -1974,7 +2055,7 @@ "@sphereon/ssi-types": "0.33.0", "@stablelib/ed25519": "^2.0.2", "@types/ws": "^8.18.1", - "buffer": "^6.0.3", + "@verifiables/request-converter": "^0.2.0", "class-transformer": "0.5.1", "class-validator": "^0.14.3", "dcql": "^3.0.0", @@ -1993,33 +2074,13 @@ "zod": "^4.3.6" } }, - "node_modules/@credo-ts/core/node_modules/buffer": { - "version": "6.0.3", - "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", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, "node_modules/@credo-ts/openid4vc": { - "version": "0.6.3", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@credo-ts/openid4vc/-/openid4vc-0.7.0.tgz", + "integrity": "sha512-ITKDU1lpQWC0ZWSNCgJnJ3i861QrPTo3gNfXKdXvtznQ8F8dDnKxnU0BOC0pBHH6AaRKoWnjbYT3gkipXbRA/A==", "license": "Apache-2.0", "dependencies": { - "@credo-ts/core": "0.6.3", + "@credo-ts/core": "0.7.0", "@openid4vc/oauth2": "^0.4.6", "@openid4vc/openid4vci": "^0.4.6", "@openid4vc/openid4vp": "^0.4.6", @@ -2343,7 +2404,9 @@ } }, "node_modules/@eudiplo/sdk-core": { - "version": "4.1.0", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eudiplo/sdk-core/-/sdk-core-4.4.0.tgz", + "integrity": "sha512-/OWlwgy1Z9ebJimhzYuvF7QVkSq+GgcA1gj0hjz4+L3gDD28hzdqz9XUbgt7o9k0y5d8ddhznxYBUqhkA/9P7A==", "dev": true, "license": "Apache-2.0", "engines": { @@ -3781,6 +3844,17 @@ "ieee754": "^1.2.1" } }, + "node_modules/@owf/mdoc": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@owf/mdoc/-/mdoc-0.6.0.tgz", + "integrity": "sha512-vJL62hzjcSweBjDD9eRUH1RIMSzZUtHKjVFMMo50oHPLO9ZVZbQABFe9IFoa5AgXkwfv27HjnFv/eRbkOrlsUA==", + "license": "Apache-2.0", + "dependencies": { + "cbor-x": "^1.6.4", + "zod": "^4.3.6", + "zod-validation-error": "^5.0.0" + } + }, "node_modules/@peculiar/asn1-cms": { "version": "2.6.1", "license": "MIT", @@ -3992,6 +4066,15 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/@scure/base": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-2.2.0.tgz", + "integrity": "sha512-b8XEupJibegiXV+tDUseI8oLQc8ei3d/4Jkb2RpbHh3MfE054ov3uIz2dhFkB3FI8iwYkEh0gGCApkrYggkPNg==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@sd-jwt/core": { "version": "0.19.0", "license": "Apache-2.0", @@ -5346,6 +5429,23 @@ "win32" ] }, + "node_modules/@verifiables/request-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@verifiables/request-converter/-/request-converter-0.2.0.tgz", + "integrity": "sha512-afhFYBSYf0zqLkHu1xlLJ8DUAV/ved5yD9MKnPPaG9tH68winV10eBBH4/2eoi2qK6hvAtWPjoZ+1pRF6jLUJw==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "dcql": ">=2.0.0" + }, + "peerDependenciesMeta": { + "dcql": { + "optional": true + } + } + }, "node_modules/@vue/compiler-core": { "version": "3.5.28", "dev": true, @@ -6466,6 +6566,37 @@ "version": "1.0.8", "license": "Apache-2.0" }, + "node_modules/cbor-extract": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/cbor-extract/-/cbor-extract-2.2.2.tgz", + "integrity": "sha512-hlSxxI9XO2yQfe9g6msd3g4xCfDqK5T5P0fRMLuaLHhxn4ViPrm+a+MUfhrvH2W962RGxcBwEGzLQyjbDG1gng==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.1.1" + }, + "bin": { + "download-cbor-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@cbor-extract/cbor-extract-darwin-arm64": "2.2.2", + "@cbor-extract/cbor-extract-darwin-x64": "2.2.2", + "@cbor-extract/cbor-extract-linux-arm": "2.2.2", + "@cbor-extract/cbor-extract-linux-arm64": "2.2.2", + "@cbor-extract/cbor-extract-linux-x64": "2.2.2", + "@cbor-extract/cbor-extract-win32-x64": "2.2.2" + } + }, + "node_modules/cbor-x": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/cbor-x/-/cbor-x-1.6.4.tgz", + "integrity": "sha512-UGKHjp6RHC6QuZ2yy5LCKm7MojM4716DwoSaqwQpaH4DvZvbBTGcoDNTiG9Y2lByXZYFEs9WRkS5tLl96IrF1Q==", + "license": "MIT", + "optionalDependencies": { + "cbor-extract": "^2.2.2" + } + }, "node_modules/chalk": { "version": "4.1.2", "dev": true, @@ -7004,6 +7135,16 @@ "node": ">=18" } }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", @@ -10665,6 +10806,21 @@ "node": "^20.17.0 || >=22.9.0" } }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.1.1.tgz", + "integrity": "sha512-+P72GAjVAbTxjjwUmwjVrqrdZROD4nf8KgpBoDxqXXTiYZZt/ud60dE5yvCSr9lRO8e8yv6kgJIC0K0PfZFVQw==", + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, "node_modules/node-gyp/node_modules/abbrev": { "version": "4.0.0", "dev": true, @@ -14241,8 +14397,8 @@ "name": "@nmshd/consumption", "license": "AGPL-3.0-or-later", "dependencies": { - "@credo-ts/core": "^0.6.1", - "@credo-ts/openid4vc": "^0.6.1", + "@credo-ts/core": "^0.7.0", + "@credo-ts/openid4vc": "^0.7.0", "@js-soft/docdb-querytranslator": "^1.1.7", "@js-soft/ts-serval": "2.0.17", "@js-soft/ts-utils": "2.3.6", @@ -14324,7 +14480,7 @@ "ts-simple-nameof": "^1.3.3" }, "devDependencies": { - "@eudiplo/sdk-core": "^4.1.0", + "@eudiplo/sdk-core": "^4.4.0", "@js-soft/docdb-access-loki": "1.4.1", "@js-soft/docdb-access-mongo": "1.4.1", "@js-soft/node-logger": "1.2.4", diff --git a/packages/consumption/package.json b/packages/consumption/package.json index cb77835f9..9bcaaa825 100644 --- a/packages/consumption/package.json +++ b/packages/consumption/package.json @@ -76,8 +76,8 @@ ] }, "dependencies": { - "@credo-ts/core": "^0.6.1", - "@credo-ts/openid4vc": "^0.6.1", + "@credo-ts/core": "^0.7.0", + "@credo-ts/openid4vc": "^0.7.0", "@js-soft/docdb-querytranslator": "^1.1.7", "@js-soft/ts-serval": "2.0.17", "@js-soft/ts-utils": "2.3.6", diff --git a/packages/consumption/src/modules/openid4vc/local/BaseAgent.ts b/packages/consumption/src/modules/openid4vc/local/BaseAgent.ts index 044144d79..24f1fe6b0 100644 --- a/packages/consumption/src/modules/openid4vc/local/BaseAgent.ts +++ b/packages/consumption/src/modules/openid4vc/local/BaseAgent.ts @@ -38,7 +38,7 @@ export class BaseAgent { ) { const config = { allowInsecureHttpUrls: true, - logger: new ConsoleLogger(LogLevel.off) + logger: new ConsoleLogger(LogLevel.Off) } satisfies InitConfig; this.config = config; diff --git a/packages/consumption/src/modules/openid4vc/local/EnmeshedHolderKeyManagementService.ts b/packages/consumption/src/modules/openid4vc/local/EnmeshedHolderKeyManagementService.ts index 7869ac9b0..6564b57a1 100644 --- a/packages/consumption/src/modules/openid4vc/local/EnmeshedHolderKeyManagementService.ts +++ b/packages/consumption/src/modules/openid4vc/local/EnmeshedHolderKeyManagementService.ts @@ -204,7 +204,7 @@ export class EnmeshedHolderKeyManagementService implements Kms.KeyManagementServ const signature = SodiumWrapper.sodium.crypto_sign_detached(options.data, fullPrivateKeyBytes); return { - signature: signature as Uint8Array + signature: signature }; } diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 1b0077dc8..aee86d62d 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -100,7 +100,7 @@ "ts-simple-nameof": "^1.3.3" }, "devDependencies": { - "@eudiplo/sdk-core": "^4.1.0", + "@eudiplo/sdk-core": "^4.4.0", "@js-soft/docdb-access-loki": "1.4.1", "@js-soft/docdb-access-mongo": "1.4.1", "@js-soft/node-logger": "1.2.4",