@sphereon/ssi-sdk.oid4vci-holder 0.34.1-fix.103 → 0.34.1-fix.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.oid4vci-holder",
3
- "version": "0.34.1-fix.103+693d8f0b",
3
+ "version": "0.34.1-fix.109+6c2f56cb",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -26,27 +26,27 @@
26
26
  "build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json"
27
27
  },
28
28
  "dependencies": {
29
- "@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.86",
29
+ "@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.104",
30
30
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
31
- "@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.86",
32
- "@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.86",
33
- "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-fix.103+693d8f0b",
34
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-fix.103+693d8f0b",
35
- "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-fix.103+693d8f0b",
36
- "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-fix.103+693d8f0b",
37
- "@sphereon/ssi-sdk.contact-manager": "0.34.1-fix.103+693d8f0b",
38
- "@sphereon/ssi-sdk.core": "0.34.1-fix.103+693d8f0b",
39
- "@sphereon/ssi-sdk.credential-store": "0.34.1-fix.103+693d8f0b",
40
- "@sphereon/ssi-sdk.credential-validation": "0.34.1-fix.103+693d8f0b",
41
- "@sphereon/ssi-sdk.data-store": "0.34.1-fix.103+693d8f0b",
42
- "@sphereon/ssi-sdk.issuance-branding": "0.34.1-fix.103+693d8f0b",
43
- "@sphereon/ssi-sdk.mdl-mdoc": "0.34.1-fix.103+693d8f0b",
44
- "@sphereon/ssi-sdk.oidf-client": "0.34.1-fix.103+693d8f0b",
45
- "@sphereon/ssi-sdk.sd-jwt": "0.34.1-fix.103+693d8f0b",
46
- "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-fix.103+693d8f0b",
47
- "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-fix.103+693d8f0b",
48
- "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-fix.103+693d8f0b",
49
- "@sphereon/ssi-types": "0.34.1-fix.103+693d8f0b",
31
+ "@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.104",
32
+ "@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.104",
33
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-fix.109+6c2f56cb",
34
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-fix.109+6c2f56cb",
35
+ "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-fix.109+6c2f56cb",
36
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-fix.109+6c2f56cb",
37
+ "@sphereon/ssi-sdk.contact-manager": "0.34.1-fix.109+6c2f56cb",
38
+ "@sphereon/ssi-sdk.core": "0.34.1-fix.109+6c2f56cb",
39
+ "@sphereon/ssi-sdk.credential-store": "0.34.1-fix.109+6c2f56cb",
40
+ "@sphereon/ssi-sdk.credential-validation": "0.34.1-fix.109+6c2f56cb",
41
+ "@sphereon/ssi-sdk.data-store": "0.34.1-fix.109+6c2f56cb",
42
+ "@sphereon/ssi-sdk.issuance-branding": "0.34.1-fix.109+6c2f56cb",
43
+ "@sphereon/ssi-sdk.mdl-mdoc": "0.34.1-fix.109+6c2f56cb",
44
+ "@sphereon/ssi-sdk.oidf-client": "0.34.1-fix.109+6c2f56cb",
45
+ "@sphereon/ssi-sdk.sd-jwt": "0.34.1-fix.109+6c2f56cb",
46
+ "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-fix.109+6c2f56cb",
47
+ "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-fix.109+6c2f56cb",
48
+ "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-fix.109+6c2f56cb",
49
+ "@sphereon/ssi-types": "0.34.1-fix.109+6c2f56cb",
50
50
  "@veramo/core": "4.2.0",
51
51
  "@veramo/data-store": "4.2.0",
52
52
  "@veramo/utils": "4.2.0",
@@ -59,8 +59,8 @@
59
59
  "xstate": "^4.38.3"
60
60
  },
61
61
  "devDependencies": {
62
- "@sphereon/oid4vc-common": "0.19.1-feature.DIIPv4.86",
63
- "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-fix.103+693d8f0b",
62
+ "@sphereon/oid4vc-common": "0.19.1-feature.DIIPv4.104",
63
+ "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-fix.109+6c2f56cb",
64
64
  "@sphereon/ssi-sdk.siopv2-oid4vp-common": "workspace:*",
65
65
  "@types/i18n-js": "^3.8.9",
66
66
  "@types/lodash.memoize": "^4.1.9",
@@ -90,5 +90,5 @@
90
90
  "OID4VCI",
91
91
  "State Machine"
92
92
  ],
93
- "gitHead": "693d8f0b0c6566650a31647fda630a0715f960c7"
93
+ "gitHead": "6c2f56cb480f0f505d9957f739353b6480baf8e4"
94
94
  }
@@ -4,13 +4,14 @@ import {
4
4
  AuthorizationRequestOpts,
5
5
  AuthorizationServerClientOpts,
6
6
  AuthorizationServerOpts,
7
+ CredentialConfigurationSupported,
7
8
  CredentialConfigurationSupportedJwtVcJsonLdAndLdpVcV1_0_15,
8
9
  CredentialDefinitionJwtVcJsonLdAndLdpVcV1_0_15,
9
10
  CredentialOfferRequestWithBaseUrl,
10
11
  DefaultURISchemes,
11
12
  EndpointMetadataResult,
12
13
  getTypesFromAuthorizationDetails,
13
- getTypesFromCredentialOffer,
14
+ getTypesFromCredentialSupported,
14
15
  getTypesFromObject,
15
16
  Jwt,
16
17
  NotificationRequest,
@@ -443,7 +444,13 @@ export class OID4VCIHolder implements IAgentPlugin {
443
444
  }
444
445
 
445
446
  if (offer) {
446
- types = getTypesFromCredentialOffer(offer.original_credential_offer)
447
+ const credentialsSupported: CredentialConfigurationSupported[] = offer.original_credential_offer.credential_configuration_ids.flatMap(
448
+ (configId) => {
449
+ const config = oid4vciClient.endpointMetadata.credentialIssuerMetadata?.credential_configurations_supported[configId]
450
+ return config ? [config as CredentialConfigurationSupported] : []
451
+ },
452
+ )
453
+ types = credentialsSupported.map((credentialSupported) => getTypesFromCredentialSupported(credentialSupported))
447
454
  } else {
448
455
  types = asArray(authorizationRequestOpts.authorizationDetails)
449
456
  .map((authReqOpts) => getTypesFromAuthorizationDetails(authReqOpts) ?? [])
@@ -1,8 +1,8 @@
1
1
  import { RPRegistrationMetadataPayload } from '@sphereon/did-auth-siop'
2
2
  import { OpenID4VCIClientState } from '@sphereon/oid4vci-client'
3
- import { DidAuthConfig, Party } from '@sphereon/ssi-sdk.data-store'
4
- import { UniqueDigitalCredential } from '@sphereon/ssi-sdk.credential-store'
5
3
  import { AuthorizationChallengeCodeResponse } from '@sphereon/oid4vci-common'
4
+ import { UniqueDigitalCredential } from '@sphereon/ssi-sdk.credential-store'
5
+ import { DidAuthConfig, Party } from '@sphereon/ssi-sdk.data-store'
6
6
  import { IIdentifier } from '@veramo/core'
7
7
  import { DcqlQuery } from 'dcql'
8
8
  import { BaseActionObject, Interpreter, ResolveTypegenMeta, ServiceMap, State, StateMachine, StatesConfig, TypegenDisabled } from 'xstate'