From 130721b2a493429d4d3d3075bbf47e8dc178ddfb Mon Sep 17 00:00:00 2001 From: Niels Klomp Date: Tue, 16 Jul 2024 18:39:41 +0200 Subject: [PATCH] chore: update deps --- .../contact-manager-rest-api/package.json | 4 +- packages/data-store/package.json | 2 +- packages/ebsi-support/package.json | 10 +- .../ebsi-support/src/functions/Attestation.ts | 5 +- .../functions/AttestationHeadlessCallbacks.ts | 10 +- packages/oid4vci-holder/package.json | 4 +- .../src/agent/OID4VCIHolderService.ts | 5 +- packages/oid4vci-issuer-rest-api/package.json | 8 +- packages/oid4vci-issuer-store/package.json | 2 +- packages/oid4vci-issuer/package.json | 2 +- packages/oid4vci-issuer/src/functions.ts | 4 +- packages/presentation-exchange/package.json | 2 +- packages/public-key-hosting/package.json | 10 +- packages/sd-jwt/package.json | 10 +- packages/siopv2-oid4vp-op-auth/package.json | 4 +- .../src/services/IdentifierService.ts | 4 +- packages/siopv2-oid4vp-rp-auth/package.json | 2 +- .../siopv2-oid4vp-rp-rest-api/package.json | 2 +- .../uni-resolver-registrar-api/package.json | 10 +- packages/vc-handler-ld-local/package.json | 12 +- .../package.json | 2 +- .../package.json | 6 +- packages/vc-status-list/package.json | 2 +- packages/w3c-vc-api/package.json | 8 +- packages/web3-provider-headless/package.json | 4 +- pnpm-lock.yaml | 270 +++++++++--------- 26 files changed, 206 insertions(+), 198 deletions(-) diff --git a/packages/contact-manager-rest-api/package.json b/packages/contact-manager-rest-api/package.json index 14ef2bc4e..0c06c9460 100644 --- a/packages/contact-manager-rest-api/package.json +++ b/packages/contact-manager-rest-api/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@sphereon/ssi-express-support": "workspace:*", - "@sphereon/ssi-sdk-ext.key-manager": "0.22.1-next.6", - "@sphereon/ssi-sdk-ext.key-utils": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.key-manager": "0.22.1-next.7", + "@sphereon/ssi-sdk-ext.key-utils": "0.22.1-next.7", "@sphereon/ssi-sdk.contact-manager": "workspace:*", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.data-store": "workspace:*", diff --git a/packages/data-store/package.json b/packages/data-store/package.json index 877088eac..633a39dfc 100644 --- a/packages/data-store/package.json +++ b/packages/data-store/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@sphereon/pex": "^3.3.3", - "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.7", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-types": "workspace:*", "@veramo/core": "4.2.0", diff --git a/packages/ebsi-support/package.json b/packages/ebsi-support/package.json index af0137f61..a34c74d2d 100644 --- a/packages/ebsi-support/package.json +++ b/packages/ebsi-support/package.json @@ -18,9 +18,9 @@ "@sphereon/did-auth-siop": "0.6.4", "@sphereon/pex": "^3.3.3", "@sphereon/pex-models": "^2.2.4", - "@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.22.1-next.6", - "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.6", - "@sphereon/ssi-sdk-ext.key-utils": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.22.1-next.7", + "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.7", + "@sphereon/ssi-sdk-ext.key-utils": "0.22.1-next.7", "@sphereon/ssi-sdk.contact-manager": "workspace:*", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.oid4vci-holder": "workspace:*", @@ -44,8 +44,8 @@ "@sphereon/oid4vci-client": "0.14.0", "@sphereon/oid4vci-common": "0.14.0", "@sphereon/ssi-express-support": "workspace:*", - "@sphereon/ssi-sdk-ext.key-manager": "0.22.1-next.6", - "@sphereon/ssi-sdk-ext.kms-local": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.key-manager": "0.22.1-next.7", + "@sphereon/ssi-sdk-ext.kms-local": "0.22.1-next.7", "@sphereon/ssi-sdk.agent-config": "workspace:*", "@sphereon/ssi-sdk.data-store": "workspace:*", "@sphereon/ssi-sdk.public-key-hosting": "workspace:*", diff --git a/packages/ebsi-support/src/functions/Attestation.ts b/packages/ebsi-support/src/functions/Attestation.ts index 6f542c6ca..f7133c43a 100644 --- a/packages/ebsi-support/src/functions/Attestation.ts +++ b/packages/ebsi-support/src/functions/Attestation.ts @@ -80,7 +80,10 @@ export const ebsiCreateAttestationAuthRequestURL = async ( } // This only works if the DID is actually registered, otherwise use our internal KMS; // that is why the offline argument is passed in when type is Verifiable Auth to Onboard, as no DID is present at that point yet - const authKey = await getAuthenticationKey(identifier, context, credentialType === 'VerifiableAuthorisationToOnboard', true) + const authKey = await getAuthenticationKey( + { identifier, offlineWhenNoDIDRegistered: credentialType === 'VerifiableAuthorisationToOnboard', noVerificationMethodFallback: true }, + context, + ) const kid = authKey.meta?.jwkThumbprint ?? calculateJwkThumbprintForKey({ key: authKey }) const clientId = clientIdArg ?? identifier.did diff --git a/packages/ebsi-support/src/functions/AttestationHeadlessCallbacks.ts b/packages/ebsi-support/src/functions/AttestationHeadlessCallbacks.ts index 93ff72fc2..94cf5e355 100644 --- a/packages/ebsi-support/src/functions/AttestationHeadlessCallbacks.ts +++ b/packages/ebsi-support/src/functions/AttestationHeadlessCallbacks.ts @@ -1,4 +1,4 @@ -import {decodeUriAsJson} from "@sphereon/did-auth-siop"; +import { decodeUriAsJson } from '@sphereon/did-auth-siop' import { getIssuerName } from '@sphereon/oid4vci-common' import { ConnectionType, @@ -204,11 +204,11 @@ export const authorizationCodeUrlCallback = ( } const openidUri = response.headers.get('location') if (!openidUri || !openidUri.startsWith('openid://')) { - let error: string | undefined = undefined + let error: string | undefined = undefined if (openidUri) { if (openidUri.includes('error')) { error = 'Authorization server error: ' - const decoded = decodeUriAsJson(openidUri) + const decoded = decodeUriAsJson(openidUri) if ('error' in decoded && decoded.error) { error += decoded.error + ', ' } @@ -217,7 +217,9 @@ export const authorizationCodeUrlCallback = ( } } } - throw Error(error ?? `Expected a openid:// URI to be returned from EBSI in headless mode. Returned: ${openidUri}, ${JSON.stringify(await response.text())}`, + throw Error( + error ?? + `Expected a openid:// URI to be returned from EBSI in headless mode. Returned: ${openidUri}, ${JSON.stringify(await response.text())}`, ) } diff --git a/packages/oid4vci-holder/package.json b/packages/oid4vci-holder/package.json index b1ac16fcf..352e32fdb 100644 --- a/packages/oid4vci-holder/package.json +++ b/packages/oid4vci-holder/package.json @@ -16,7 +16,7 @@ "dependencies": { "@sphereon/oid4vci-client": "0.14.0", "@sphereon/oid4vci-common": "0.14.0", - "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.did-utils": "0.22.1-next.7", "@sphereon/ssi-sdk.contact-manager": "workspace:*", "@sphereon/ssi-sdk.core": "workspace:*", "@sphereon/ssi-sdk.data-store": "workspace:*", @@ -32,7 +32,7 @@ "xstate": "^4.38.3" }, "devDependencies": { - "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.22.1-next.6", + "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.22.1-next.7", "@types/i18n-js": "^3.8.4", "@types/lodash.memoize": "^4.1.7", "@types/uuid": "^9.0.8", diff --git a/packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts b/packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts index 1e984bac8..eaf8a1f54 100644 --- a/packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts +++ b/packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts @@ -275,7 +275,10 @@ export const getIdentifierOpts = async (args: GetIdentifierArgs): Promise => { @@ -13,7 +13,7 @@ export const getIdentifierWithKey = async (args: GetIdentifierArgs): Promise