@pagopa/io-wallet-oid4vp 2.0.0-launchpad → 2.0.1-apt

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.mjs CHANGED
@@ -183,6 +183,10 @@ var zOpenid4vpAuthorizationRequestHeaderV1_3 = zOpenid4vpAuthorizationRequestHea
183
183
 
184
184
  // src/authorization-request/create-authorization-request.ts
185
185
  var dispatchCreateAuthorizationRequest = createVersionDispatcher({
186
+ [ItWalletSpecsVersion.APTITUDE]: async (o) => createAuthorizationRequestWithHeader(
187
+ o,
188
+ zOpenid4vpAuthorizationRequestHeaderV1_3
189
+ ),
186
190
  [ItWalletSpecsVersion.V1_0]: async (o) => createAuthorizationRequestWithHeader(
187
191
  o,
188
192
  zOpenid4vpAuthorizationRequestHeaderV1_0
@@ -530,6 +534,7 @@ function getPublicKeyForVerification(options) {
530
534
  async function parseAuthorizeRequest(options) {
531
535
  try {
532
536
  const headerSchema = dispatchByVersion(options.config.itWalletSpecsVersion, {
537
+ [ItWalletSpecsVersion2.APTITUDE]: () => zOpenid4vpAuthorizationRequestHeaderV1_3,
533
538
  [ItWalletSpecsVersion2.V1_0]: () => zOpenid4vpAuthorizationRequestHeaderV1_0,
534
539
  [ItWalletSpecsVersion2.V1_3]: () => zOpenid4vpAuthorizationRequestHeaderV1_3,
535
540
  [ItWalletSpecsVersion2.V1_4]: () => zOpenid4vpAuthorizationRequestHeaderV1_3
@@ -739,6 +744,9 @@ async function createAuthorizationResponse2(options) {
739
744
 
740
745
  // src/authorization-response/create-authorization-response.ts
741
746
  var dispatchCreateAuthorizationResponse = createVersionDispatcher2({
747
+ [ItWalletSpecsVersion3.APTITUDE]: (o) => createAuthorizationResponse2(
748
+ o
749
+ ),
742
750
  [ItWalletSpecsVersion3.V1_0]: (o) => (
743
751
  // V1_0 shares the v1.3 response logic — JWKS / enc resolution is identical.
744
752
  createAuthorizationResponse(