@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.cjs CHANGED
@@ -578,7 +578,7 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
578
578
  cond: OID4VCIMachineGuards.isFirstPartyApplication
579
579
  },
580
580
  {
581
- target: OID4VCIMachineStates.prepareAuthorizationRequest,
581
+ target: OID4VCIMachineStates.initiateAuthorizationRequest,
582
582
  cond: OID4VCIMachineGuards.requireAuthorizationGuard
583
583
  },
584
584
  {
@@ -683,6 +683,10 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
683
683
  target: OID4VCIMachineStates.prepareAuthorizationRequest,
684
684
  cond: OID4VCIMachineGuards.requireAuthorizationGuard
685
685
  },
686
+ {
687
+ target: OID4VCIMachineStates.initiateAuthorizationRequest,
688
+ cond: OID4VCIMachineGuards.requireAuthorizationGuard
689
+ },
686
690
  {
687
691
  target: OID4VCIMachineStates.verifyPin,
688
692
  cond: OID4VCIMachineGuards.requirePinGuard
@@ -762,6 +766,10 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
762
766
  target: OID4VCIMachineStates.verifyPin,
763
767
  cond: OID4VCIMachineGuards.requirePinGuard
764
768
  },
769
+ {
770
+ target: OID4VCIMachineStates.prepareAuthorizationRequest,
771
+ cond: OID4VCIMachineGuards.requireAuthorizationGuard
772
+ },
765
773
  {
766
774
  target: OID4VCIMachineStates.getCredentials
767
775
  }
@@ -2466,7 +2474,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
2466
2474
  if (!clientId) {
2467
2475
  return Promise.reject(Error(`Missing client id in contact's connectionConfig`));
2468
2476
  }
2469
- const client = await import_oid4vci_client3.OpenID4VCIClientV1_0_15.fromState({
2477
+ const client = await import_oid4vci_client3.OpenID4VCIClient.fromState({
2470
2478
  state: openID4VCIClientState
2471
2479
  });
2472
2480
  const authorizationCodeURL = await client.createAuthorizationRequestUrl({
@@ -2662,9 +2670,6 @@ var OID4VCIHolder = class _OID4VCIHolder {
2662
2670
  format: issuanceOpt.format,
2663
2671
  // TODO: We need to update the machine and add notifications support for actual deferred credentials instead of just waiting/retrying
2664
2672
  deferredCredentialAwait: true,
2665
- ...issuanceOpt.id && typeof issuanceOpt.id === "string" ? {
2666
- credentialConfigurationId: issuanceOpt.id
2667
- } : void 0,
2668
2673
  ...!jwk && {
2669
2674
  kid
2670
2675
  },