@sphereon/ssi-sdk.oid4vci-holder 0.34.1-feature.SSISDK.50.118 → 0.34.1-feature.SSISDK.50.137

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-feature.SSISDK.50.118+0e5ed160",
3
+ "version": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
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.100",
29
+ "@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.106",
30
30
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
31
- "@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.100",
32
- "@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.100",
33
- "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.50.118+0e5ed160",
34
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.50.118+0e5ed160",
35
- "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.50.118+0e5ed160",
36
- "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.50.118+0e5ed160",
37
- "@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.50.118+0e5ed160",
38
- "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.50.118+0e5ed160",
39
- "@sphereon/ssi-sdk.credential-store": "0.34.1-feature.SSISDK.50.118+0e5ed160",
40
- "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.50.118+0e5ed160",
41
- "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.50.118+0e5ed160",
42
- "@sphereon/ssi-sdk.issuance-branding": "0.34.1-feature.SSISDK.50.118+0e5ed160",
43
- "@sphereon/ssi-sdk.mdl-mdoc": "0.34.1-feature.SSISDK.50.118+0e5ed160",
44
- "@sphereon/ssi-sdk.oidf-client": "0.34.1-feature.SSISDK.50.118+0e5ed160",
45
- "@sphereon/ssi-sdk.sd-jwt": "0.34.1-feature.SSISDK.50.118+0e5ed160",
46
- "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.50.118+0e5ed160",
47
- "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-feature.SSISDK.50.118+0e5ed160",
48
- "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-feature.SSISDK.50.118+0e5ed160",
49
- "@sphereon/ssi-types": "0.34.1-feature.SSISDK.50.118+0e5ed160",
31
+ "@sphereon/oid4vci-client": "0.19.1-feature.DIIPv4.106",
32
+ "@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.106",
33
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
34
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
35
+ "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
36
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
37
+ "@sphereon/ssi-sdk.contact-manager": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
38
+ "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
39
+ "@sphereon/ssi-sdk.credential-store": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
40
+ "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
41
+ "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
42
+ "@sphereon/ssi-sdk.issuance-branding": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
43
+ "@sphereon/ssi-sdk.mdl-mdoc": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
44
+ "@sphereon/ssi-sdk.oidf-client": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
45
+ "@sphereon/ssi-sdk.sd-jwt": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
46
+ "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
47
+ "@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
48
+ "@sphereon/ssi-sdk.xstate-machine-persistence": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
49
+ "@sphereon/ssi-types": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
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.100",
63
- "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-feature.SSISDK.50.118+0e5ed160",
62
+ "@sphereon/oid4vc-common": "0.19.1-feature.DIIPv4.106",
63
+ "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.34.1-feature.SSISDK.50.137+f6b87b2d",
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": "0e5ed160af0b79fdff7fda0fc3e082fc08a12389"
93
+ "gitHead": "f6b87b2d09b52e6441f42b31984106387c555ec0"
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) ?? [])