@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.d.cts CHANGED
@@ -7,7 +7,7 @@ import { PresentationDefinitionV2, Format } from '@sphereon/pex-models';
7
7
  import { ManagedIdentifierDidResult, IIdentifierResolution, ManagedIdentifierDidOpts } from '@sphereon/ssi-sdk-ext.identifier-resolution';
8
8
  import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
9
9
  import { Party, IBasicCredentialLocaleBranding } from '@sphereon/ssi-sdk.data-store-types';
10
- import { PrepareStartArgs, IssuanceOpts, IOID4VCIHolder, ErrorDetails, MappedCredentialToAccept } from '@sphereon/ssi-sdk.oid4vci-holder';
10
+ import { PrepareStartArgs, IssuanceOpts, IOID4VCIHolder, WalletType, ErrorDetails, MappedCredentialToAccept } from '@sphereon/ssi-sdk.oid4vci-holder';
11
11
  import { IPresentationExchange } from '@sphereon/ssi-sdk.presentation-exchange';
12
12
  import { IDidAuthSiopOpAuthenticator } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth';
13
13
  import { _ExtendedIKey } from '@veramo/utils';
@@ -637,6 +637,7 @@ type CreateAttestationAuthRequestURLArgs = {
637
637
  type GetAttestationArgs = {
638
638
  clientId: string;
639
639
  authReqResult: AttestationAuthRequestUrlResult;
640
+ walletType?: WalletType;
640
641
  opts?: {
641
642
  timeout: number;
642
643
  };
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { PresentationDefinitionV2, Format } from '@sphereon/pex-models';
7
7
  import { ManagedIdentifierDidResult, IIdentifierResolution, ManagedIdentifierDidOpts } from '@sphereon/ssi-sdk-ext.identifier-resolution';
8
8
  import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
9
9
  import { Party, IBasicCredentialLocaleBranding } from '@sphereon/ssi-sdk.data-store-types';
10
- import { PrepareStartArgs, IssuanceOpts, IOID4VCIHolder, ErrorDetails, MappedCredentialToAccept } from '@sphereon/ssi-sdk.oid4vci-holder';
10
+ import { PrepareStartArgs, IssuanceOpts, IOID4VCIHolder, WalletType, ErrorDetails, MappedCredentialToAccept } from '@sphereon/ssi-sdk.oid4vci-holder';
11
11
  import { IPresentationExchange } from '@sphereon/ssi-sdk.presentation-exchange';
12
12
  import { IDidAuthSiopOpAuthenticator } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth';
13
13
  import { _ExtendedIKey } from '@veramo/utils';
@@ -637,6 +637,7 @@ type CreateAttestationAuthRequestURLArgs = {
637
637
  type GetAttestationArgs = {
638
638
  clientId: string;
639
639
  authReqResult: AttestationAuthRequestUrlResult;
640
+ walletType?: WalletType;
640
641
  opts?: {
641
642
  timeout: number;
642
643
  };
package/dist/index.js CHANGED
@@ -2334,10 +2334,14 @@ var ebsiCreateAttestationAuthRequestURL = /* @__PURE__ */ __name(async ({ client
2334
2334
  throw Error(`Could not find '${credentialType}' with format(s) '${formats.join(",")}' in list of supported types for issuer: ${credentialIssuer}`);
2335
2335
  }
2336
2336
  const authorizationDetails = supportedConfigurations.map((supported) => {
2337
+ const credential_configuration_id = supported.id;
2338
+ if (!credential_configuration_id) {
2339
+ throw Error(`Credential configuration id missing for credential type: ${credentialType}`);
2340
+ }
2337
2341
  return {
2338
2342
  type: "openid_credential",
2339
- format: supported.format,
2340
- types: getTypesFromCredentialSupported(supported)
2343
+ credential_configuration_id,
2344
+ credential_identifiers: getTypesFromCredentialSupported(supported)
2341
2345
  };
2342
2346
  });
2343
2347
  const signCallbacks = requestObjectOpts.signCallbacks ?? {
@@ -2390,7 +2394,7 @@ var ebsiCreateAttestationAuthRequestURL = /* @__PURE__ */ __name(async ({ client
2390
2394
  ]
2391
2395
  };
2392
2396
  }, "ebsiCreateAttestationAuthRequestURL");
2393
- var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, authReqResult }, context) => {
2397
+ var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, authReqResult, walletType }, context) => {
2394
2398
  const identifier = authReqResult.identifier;
2395
2399
  const vciStateCallbacks = /* @__PURE__ */ new Map();
2396
2400
  const vpStateCallbacks = /* @__PURE__ */ new Map();
@@ -2410,7 +2414,8 @@ var ebsiGetAttestationInterpreter = /* @__PURE__ */ __name(async ({ clientId, au
2410
2414
  SupportedDidMethodEnum.DID_EBSI,
2411
2415
  SupportedDidMethodEnum.DID_KEY
2412
2416
  ],
2413
- stateNavigationListener: OID4VCICallbackStateListener(vciStateCallbacks)
2417
+ stateNavigationListener: OID4VCICallbackStateListener(vciStateCallbacks),
2418
+ walletType: walletType ?? "NATURAL_PERSON"
2414
2419
  });
2415
2420
  const vpLinkHandler = new Siopv2OID4VPLinkHandler({
2416
2421
  protocols: [