Skip to content

Commit

Permalink
chore: Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jan 27, 2025
1 parent 04399c5 commit 8e00f34
Show file tree
Hide file tree
Showing 81 changed files with 2,283 additions and 834 deletions.
4 changes: 2 additions & 2 deletions packages/contact-manager-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"dependencies": {
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/credential-store/src/types/ICredentialStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
UpdateCredentialStateArgs,
} from '@sphereon/ssi-sdk.data-store'
import {
Hasher,
HasherSync,
ICredential,
IPresentation,
IVerifiableCredential,
Expand Down Expand Up @@ -121,7 +121,7 @@ export type AddDigitalCredential = Omit<

export type AddCredentialArgs = {
credential: AddDigitalCredential
opts?: { maxTimeSkewInMS?: number; hasher?: Hasher }
opts?: { maxTimeSkewInMS?: number; hasher?: HasherSync }
}

export interface UniqueDigitalCredential {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IAgentContext, ICredentialVerifier, IPluginMethodMap } from '@veramo/core'
import { Hasher, WrappedVerifiableCredential, WrappedVerifiablePresentation } from '@sphereon/ssi-types'
import { HasherSync, WrappedVerifiableCredential, WrappedVerifiablePresentation } from '@sphereon/ssi-types'
import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc'
import { OriginalVerifiableCredential } from '@sphereon/ssi-types/dist'

Expand All @@ -19,7 +19,7 @@ export enum SchemaValidation {

export type VerifyCredentialArgs = {
credential: OriginalVerifiableCredential
hasher?: Hasher
hasher?: HasherSync
fetchRemoteContexts: boolean
policies?: VerificationPolicies
}
Expand All @@ -34,14 +34,14 @@ export type VerificationPolicies = {
export type ValidateSchemaArgs = {
credential: OriginalVerifiableCredential
validationPolicy?: SchemaValidation
hasher?: Hasher
hasher?: HasherSync
}

export type VerifyMdocCredentialArgs = { credential: string }

export type VerifySDJWTCredentialArgs = {
credential: string
hasher?: Hasher
hasher?: HasherSync
}

export type VerifyW3CCredentialArgs = {}
Expand Down
4 changes: 2 additions & 2 deletions packages/data-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@sphereon/pex": "5.0.0-unstable.28",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.14",
"@sphereon/ssi-sdk.agent-config": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CredentialCorrelationType, CredentialRole, CredentialStateType, DigitalCredential, RegulationType } from './digitalCredential'
import { Hasher } from '@sphereon/ssi-types'
import { HasherSync } from '@sphereon/ssi-types'
import { FindOptionsOrder } from 'typeorm'
import { DigitalCredentialEntity } from '../../entities/digitalCredential/DigitalCredentialEntity'

Expand Down Expand Up @@ -34,7 +34,7 @@ export type AddCredentialArgs = {
state?: CredentialStateType
verifiedAt?: Date
revokedAt?: Date
opts?: { maxTimeSkewInMS?: number; hasher?: Hasher }
opts?: { maxTimeSkewInMS?: number; hasher?: HasherSync }
}

export type UpdateCredentialStateArgs = GetCredentialArgs & { verifiedState: CredentialStateType; verifiedAt?: Date; revokedAt?: Date }
Expand Down
22 changes: 11 additions & 11 deletions packages/ebsi-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
},
"dependencies": {
"@ethersproject/random": "^5.7.0",
"@sphereon/did-auth-siop": "0.16.1-feature.MWALL.715.259",
"@sphereon/did-auth-siop-adapter": "0.16.1-feature.MWALL.715.259",
"@sphereon/did-auth-siop": "0.16.1-feature.MWALL.715.349",
"@sphereon/did-auth-siop-adapter": "0.16.1-feature.MWALL.715.349",
"@sphereon/pex": "5.0.0-unstable.28",
"@sphereon/pex-models": "^2.3.2",
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.jwt-service": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.jwt-service": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.oid4vci-holder": "workspace:*",
Expand All @@ -44,11 +44,11 @@
"xstate": "^4.38.3"
},
"devDependencies": {
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.259",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.259",
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.349",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.349",
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.14",
"@sphereon/ssi-sdk.agent-config": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
"@sphereon/ssi-sdk.public-key-hosting": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ebsi-support/src/functions/Attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const ebsiCreateAttestationAuthRequestURL = async (
} as AuthorizationDetails
})

const signCallbacks: ProofOfPossessionCallbacks<never> = requestObjectOpts.signCallbacks ?? {
const signCallbacks: ProofOfPossessionCallbacks = requestObjectOpts.signCallbacks ?? {
signCallback: signCallback(idOpts, context),
}
const authorizationRequestOpts = {
Expand Down
16 changes: 8 additions & 8 deletions packages/mdl-mdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"build:clean": "tsc --build --clean && tsc --build"
},
"dependencies": {
"@sphereon/did-auth-siop-adapter": "0.16.1-feature.MWALL.715.259",
"@sphereon/did-auth-siop-adapter": "0.16.1-feature.MWALL.715.349",
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@sphereon/pex": "5.0.0-unstable.28",
"@sphereon/pex-models": "^2.3.2",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.x509-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.x509-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
"@veramo/core": "4.2.0",
Expand All @@ -35,11 +35,11 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.259",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.259",
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.349",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.349",
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.kms-local": "0.27.1-next.14",
"@sphereon/ssi-sdk.agent-config": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
"@sphereon/ssi-sdk.public-key-hosting": "workspace:*",
Expand Down
18 changes: 10 additions & 8 deletions packages/oid4vci-holder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
},
"dependencies": {
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.259",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.259",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.jwt-service": "0.27.1-next.6",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.6",
"@sphereon/oid4vci-client": "0.16.1-feature.MWALL.715.349",
"@sphereon/oid4vci-common": "0.16.1-feature.MWALL.715.349",
"@sphereon/did-auth-siop": "0.16.1-feature.MWALL.715.349",
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.jwt-service": "0.27.1-next.14",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.1-next.14",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.credential-store": "workspace:*",
Expand All @@ -31,6 +32,7 @@
"@sphereon/ssi-sdk.oidf-client": "workspace:*",
"@sphereon/ssi-sdk.sd-jwt": "workspace:*",
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "workspace:*",
"@sphereon/ssi-sdk.siopv2-oid4vp-common": "workspace:*",
"@sphereon/ssi-sdk.xstate-machine-persistence": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
"@veramo/core": "4.2.0",
Expand All @@ -44,8 +46,8 @@
"xstate": "^4.38.3"
},
"devDependencies": {
"@sphereon/oid4vc-common": "0.16.1-feature.MWALL.715.259",
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.27.1-next.6",
"@sphereon/oid4vc-common": "0.16.1-feature.MWALL.715.349",
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.27.1-next.14",
"@types/i18n-js": "^3.8.9",
"@types/lodash.memoize": "^4.1.9",
"@types/uuid": "^9.0.8",
Expand Down
22 changes: 13 additions & 9 deletions packages/oid4vci-holder/src/agent/OID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
} from '@sphereon/ssi-sdk.data-store'
import {
CredentialMapper,
Hasher,
HasherSync,
IVerifiableCredential,
JoseSignatureAlgorithm,
JoseSignatureAlgorithmString,
Expand Down Expand Up @@ -109,7 +109,7 @@ import {
StoreIssuerBrandingArgs,
VerificationResult,
VerifyEBSICredentialIssuerArgs,
VerifyEBSICredentialIssuerResult
VerifyEBSICredentialIssuerResult,
} from '../types/IOID4VCIHolder'
import {
getBasicIssuerLocaleBranding,
Expand All @@ -119,8 +119,8 @@ import {
getIssuanceOpts,
mapCredentialToAccept,
selectCredentialLocaleBranding,
startFirstPartApplicationMachine,
verifyCredentialToAccept,
startFirstPartApplicationMachine
} from '../services/OID4VCIHolderService'
import 'cross-fetch/polyfill'

Expand Down Expand Up @@ -204,7 +204,7 @@ export async function verifyEBSICredentialIssuer(args: VerifyEBSICredentialIssue
}

export class OID4VCIHolder implements IAgentPlugin {
private readonly hasher?: Hasher
private readonly hasher?: HasherSync
readonly eventTypes: Array<OID4VCIHolderEvent> = [
OID4VCIHolderEvent.CONTACT_IDENTITY_CREATED,
OID4VCIHolderEvent.CREDENTIAL_STORED,
Expand Down Expand Up @@ -321,15 +321,19 @@ export class OID4VCIHolder implements IAgentPlugin {
},
context,
),
[OID4VCIMachineServices.startFirstPartApplicationFlow]: (args: StartFirstPartApplicationMachine) => startFirstPartApplicationMachine({ ...args, stateNavigationListener: opts.firstPartyStateNavigationListener }, context),
[OID4VCIMachineServices.createCredentialsToSelectFrom]: (args: CreateCredentialsToSelectFromArgs) => this.oid4vciHolderCreateCredentialsToSelectFrom(args, context),
[OID4VCIMachineServices.startFirstPartApplicationFlow]: (args: StartFirstPartApplicationMachine) =>
startFirstPartApplicationMachine({ ...args, stateNavigationListener: opts.firstPartyStateNavigationListener }, context),
[OID4VCIMachineServices.createCredentialsToSelectFrom]: (args: CreateCredentialsToSelectFromArgs) =>
this.oid4vciHolderCreateCredentialsToSelectFrom(args, context),
[OID4VCIMachineServices.getContact]: (args: GetContactArgs) => this.oid4vciHolderGetContact(args, context),
[OID4VCIMachineServices.getCredentials]: (args: GetCredentialsArgs) => this.oid4vciHolderGetCredentials({ accessTokenOpts: args.accessTokenOpts ?? opts.accessTokenOpts, ...args }, context),
[OID4VCIMachineServices.getCredentials]: (args: GetCredentialsArgs) =>
this.oid4vciHolderGetCredentials({ accessTokenOpts: args.accessTokenOpts ?? opts.accessTokenOpts, ...args }, context),
[OID4VCIMachineServices.addContactIdentity]: (args: AddContactIdentityArgs) => this.oid4vciHolderAddContactIdentity(args, context),
[OID4VCIMachineServices.getIssuerBranding]: (args: GetIssuerBrandingArgs) => this.oid4vciHolderGetIssuerBranding(args, context),
[OID4VCIMachineServices.storeIssuerBranding]: (args: StoreIssuerBrandingArgs) => this.oid4vciHolderStoreIssuerBranding(args, context),
[OID4VCIMachineServices.assertValidCredentials]: (args: AssertValidCredentialsArgs) => this.oid4vciHolderAssertValidCredentials(args, context),
[OID4VCIMachineServices.storeCredentialBranding]: (args: StoreCredentialBrandingArgs) => this.oid4vciHolderStoreCredentialBranding(args, context),
[OID4VCIMachineServices.storeCredentialBranding]: (args: StoreCredentialBrandingArgs) =>
this.oid4vciHolderStoreCredentialBranding(args, context),
[OID4VCIMachineServices.storeCredentials]: (args: StoreCredentialsArgs) => this.oid4vciHolderStoreCredentials(args, context),
[OID4VCIMachineServices.sendNotification]: (args: SendNotificationArgs) => this.oid4vciHolderSendNotification(args, context),
[OID4VCIMachineServices.getFederationTrust]: (args: GetFederationTrustArgs) => this.getFederationTrust(args, context),
Expand Down Expand Up @@ -634,7 +638,7 @@ export class OID4VCIHolder implements IAgentPlugin {
// The VCI lib either expects a jwk or a kid
const jwk = isManagedIdentifierJwkResult(identifier) ? identifier.jwk : undefined

const callbacks: ProofOfPossessionCallbacks<never> = {
const callbacks: ProofOfPossessionCallbacks = {
signCallback: signCallback(identifier, context),
}

Expand Down
14 changes: 6 additions & 8 deletions packages/oid4vci-holder/src/link-handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import { AuthorizationRequestOpts, AuthorizationServerClientOpts, AuthzFlowType,
import { DefaultLinkPriorities, LinkHandlerAdapter } from '@sphereon/ssi-sdk.core'
import { IMachineStatePersistence, interpreterStartOrResume, SerializableState } from '@sphereon/ssi-sdk.xstate-machine-persistence'
import { IAgentContext } from '@veramo/core'
import {
GetMachineArgs,
IOID4VCIHolder,
OID4VCIMachineEvents,
OID4VCIMachineStateNavigationListener
} from '../types/IOID4VCIHolder'
import { GetMachineArgs, IOID4VCIHolder, OID4VCIMachineEvents, OID4VCIMachineStateNavigationListener } from '../types/IOID4VCIHolder'
import { FirstPartyMachineStateNavigationListener } from '../types/FirstPartyMachine'

/**
Expand All @@ -24,7 +19,10 @@ export class OID4VCIHolderLinkHandler extends LinkHandlerAdapter {
private readonly trustAnchors?: Array<string>

constructor(
args: Pick<GetMachineArgs, 'stateNavigationListener' | 'authorizationRequestOpts' | 'clientOpts' | 'trustAnchors' | 'firstPartyStateNavigationListener'> & {
args: Pick<
GetMachineArgs,
'stateNavigationListener' | 'authorizationRequestOpts' | 'clientOpts' | 'trustAnchors' | 'firstPartyStateNavigationListener'
> & {
priority?: number | DefaultLinkPriorities
protocols?: Array<string | RegExp>
noStateMachinePersistence?: boolean
Expand Down Expand Up @@ -69,7 +67,7 @@ export class OID4VCIHolderLinkHandler extends LinkHandlerAdapter {
authorizationRequestOpts: { ...this.authorizationRequestOpts, ...opts?.authorizationRequestOpts },
...((clientOpts.clientId || clientOpts.clientAssertionType) && { clientOpts: clientOpts as AuthorizationServerClientOpts }),
stateNavigationListener: this.stateNavigationListener,
firstPartyStateNavigationListener: this.firstPartyStateNavigationListener
firstPartyStateNavigationListener: this.firstPartyStateNavigationListener,
})

const interpreter = oid4vciMachine.interpreter
Expand Down
Loading

0 comments on commit 8e00f34

Please sign in to comment.