@sphereon/ssi-sdk.ebsi-support 0.34.1-feature.SSISDK.82.linkedVP.328 → 0.34.1-feature.SSISDK.82.linkedVP.341

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/dist/index.cjs CHANGED
@@ -2393,10 +2393,14 @@ var ebsiCreateAttestationAuthRequestURL = /* @__PURE__ */ __name(async ({ client
2393
2393
  throw Error(`Could not find '${credentialType}' with format(s) '${formats.join(",")}' in list of supported types for issuer: ${credentialIssuer}`);
2394
2394
  }
2395
2395
  const authorizationDetails = supportedConfigurations.map((supported) => {
2396
+ const credential_configuration_id = supported.id;
2397
+ if (!credential_configuration_id) {
2398
+ throw Error(`Credential configuration id missing for credential type: ${credentialType}`);
2399
+ }
2396
2400
  return {
2397
2401
  type: "openid_credential",
2398
- format: supported.format,
2399
- types: (0, import_oid4vci_common2.getTypesFromCredentialSupported)(supported)
2402
+ credential_configuration_id,
2403
+ credential_identifiers: (0, import_oid4vci_common2.getTypesFromCredentialSupported)(supported)
2400
2404
  };
2401
2405
  });
2402
2406
  const signCallbacks = requestObjectOpts.signCallbacks ?? {
@@ -2449,7 +2453,7 @@ var ebsiCreateAttestationAuthRequestURL = /* @__PURE__ */ __name(async ({ client
2449
2453
  ]
2450
2454
  };
2451
2455
  }, "ebsiCreateAttestationAuthRequestURL");
2452
- var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, authReqResult }, context) => {
2456
+ var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, authReqResult, walletType }, context) => {
2453
2457
  const identifier = authReqResult.identifier;
2454
2458
  const vciStateCallbacks = /* @__PURE__ */ new Map();
2455
2459
  const vpStateCallbacks = /* @__PURE__ */ new Map();
@@ -2469,7 +2473,8 @@ var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, au
2469
2473
  import_ssi_sdk_ext.SupportedDidMethodEnum.DID_EBSI,
2470
2474
  import_ssi_sdk_ext.SupportedDidMethodEnum.DID_KEY
2471
2475
  ],
2472
- stateNavigationListener: (0, import_ssi_sdk3.OID4VCICallbackStateListener)(vciStateCallbacks)
2476
+ stateNavigationListener: (0, import_ssi_sdk3.OID4VCICallbackStateListener)(vciStateCallbacks),
2477
+ walletType: walletType ?? "NATURAL_PERSON"
2473
2478
  });
2474
2479
  const vpLinkHandler = new import_ssi_sdk4.Siopv2OID4VPLinkHandler({
2475
2480
  protocols: [