@sphereon/ssi-sdk.oid4vci-holder 0.36.1-feature.SSISDK.82.and.SSISDK.70.37 → 0.36.1-next.39

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.js CHANGED
@@ -498,7 +498,7 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
498
498
  cond: OID4VCIMachineGuards.isFirstPartyApplication
499
499
  },
500
500
  {
501
- target: OID4VCIMachineStates.prepareAuthorizationRequest,
501
+ target: OID4VCIMachineStates.initiateAuthorizationRequest,
502
502
  cond: OID4VCIMachineGuards.requireAuthorizationGuard
503
503
  },
504
504
  {
@@ -603,6 +603,10 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
603
603
  target: OID4VCIMachineStates.prepareAuthorizationRequest,
604
604
  cond: OID4VCIMachineGuards.requireAuthorizationGuard
605
605
  },
606
+ {
607
+ target: OID4VCIMachineStates.initiateAuthorizationRequest,
608
+ cond: OID4VCIMachineGuards.requireAuthorizationGuard
609
+ },
606
610
  {
607
611
  target: OID4VCIMachineStates.verifyPin,
608
612
  cond: OID4VCIMachineGuards.requirePinGuard
@@ -682,6 +686,10 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
682
686
  target: OID4VCIMachineStates.verifyPin,
683
687
  cond: OID4VCIMachineGuards.requirePinGuard
684
688
  },
689
+ {
690
+ target: OID4VCIMachineStates.prepareAuthorizationRequest,
691
+ cond: OID4VCIMachineGuards.requireAuthorizationGuard
692
+ },
685
693
  {
686
694
  target: OID4VCIMachineStates.getCredentials
687
695
  }
@@ -2386,7 +2394,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
2386
2394
  if (!clientId) {
2387
2395
  return Promise.reject(Error(`Missing client id in contact's connectionConfig`));
2388
2396
  }
2389
- const client = await OpenID4VCIClientV1_0_15.fromState({
2397
+ const client = await OpenID4VCIClient2.fromState({
2390
2398
  state: openID4VCIClientState
2391
2399
  });
2392
2400
  const authorizationCodeURL = await client.createAuthorizationRequestUrl({
@@ -2582,9 +2590,6 @@ var OID4VCIHolder = class _OID4VCIHolder {
2582
2590
  format: issuanceOpt.format,
2583
2591
  // TODO: We need to update the machine and add notifications support for actual deferred credentials instead of just waiting/retrying
2584
2592
  deferredCredentialAwait: true,
2585
- ...issuanceOpt.id && typeof issuanceOpt.id === "string" ? {
2586
- credentialConfigurationId: issuanceOpt.id
2587
- } : void 0,
2588
2593
  ...!jwk && {
2589
2594
  kid
2590
2595
  },