@pagopa/io-react-native-wallet 3.6.2 → 3.6.4

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.
Files changed (1012) hide show
  1. package/lib/commonjs/IoWallet.js +5 -3
  2. package/lib/commonjs/IoWallet.js.map +1 -1
  3. package/lib/commonjs/api/index.js +19 -19
  4. package/lib/commonjs/api/index.js.map +1 -1
  5. package/lib/commonjs/client/generated/wallet-provider.js +23 -4
  6. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  7. package/lib/commonjs/client/index.js +9 -11
  8. package/lib/commonjs/client/index.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
  10. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/api/types.js +3 -3
  13. package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
  15. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  17. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
  19. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/common/errors.js +0 -3
  21. package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  23. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  24. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  25. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  26. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  27. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  28. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +4 -4
  29. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  30. package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  32. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  33. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
  34. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  35. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
  36. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  37. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
  38. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  39. package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  40. package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
  41. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  42. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
  43. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  44. package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
  45. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  46. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  47. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +30 -30
  48. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  49. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +37 -37
  50. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  51. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  52. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  53. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +32 -28
  54. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  55. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  56. package/lib/commonjs/credential/issuance/v1.3.3/index.js +8 -8
  57. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  58. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +18 -17
  59. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  60. package/lib/commonjs/credential/offer/common/errors.js +0 -6
  61. package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
  62. package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
  63. package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
  64. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js +4 -4
  65. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  66. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js +4 -4
  67. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  68. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js +5 -5
  69. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  70. package/lib/commonjs/credential/offer/v1.3.3/index.js +1 -1
  71. package/lib/commonjs/credential/offer/v1.3.3/index.js.map +1 -1
  72. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
  73. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  74. package/lib/commonjs/credential/presentation/api/types.js +11 -11
  75. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  76. package/lib/commonjs/credential/presentation/common/errors.js +24 -23
  77. package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
  78. package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
  79. package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
  80. package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
  81. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
  82. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
  83. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  84. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  85. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  86. package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  87. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  88. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  89. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  90. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  91. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
  92. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  93. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
  94. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  95. package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
  96. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  97. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
  98. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  99. package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
  100. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  101. package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
  102. package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  103. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  104. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  105. package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  106. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  107. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  108. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  109. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  110. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -7
  111. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  112. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +24 -16
  113. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  114. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  115. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  116. package/lib/commonjs/credential/presentation/v1.3.3/index.js +5 -5
  117. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -1
  118. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +11 -11
  119. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  120. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js +2 -2
  121. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  122. package/lib/commonjs/credential/presentation/v1.3.3/types.js +3 -3
  123. package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
  124. package/lib/commonjs/credential/status/api/types.js +6 -6
  125. package/lib/commonjs/credential/status/api/types.js.map +1 -1
  126. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
  127. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  128. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  129. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  130. package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
  131. package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
  132. package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
  133. package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
  134. package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
  135. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +4 -4
  136. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  137. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  138. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js +2 -2
  139. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js.map +1 -1
  140. package/lib/commonjs/credential/status/v1.3.3/index.js +3 -3
  141. package/lib/commonjs/credential/status/v1.3.3/index.js.map +1 -1
  142. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
  143. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  144. package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
  145. package/lib/commonjs/credential/trustmark/v1.3.3/index.js.map +1 -1
  146. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -55
  147. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  148. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  149. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  150. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  151. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  152. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
  153. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  154. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
  155. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  156. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +35 -35
  157. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  158. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  159. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  160. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  161. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  162. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +1 -1
  163. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  164. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +26 -20
  165. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  166. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +93 -93
  167. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  168. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +8 -8
  169. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  170. package/lib/commonjs/index.js +15 -15
  171. package/lib/commonjs/index.js.map +1 -1
  172. package/lib/commonjs/mdoc/index.js +13 -5
  173. package/lib/commonjs/mdoc/index.js.map +1 -1
  174. package/lib/commonjs/mdoc/utils.js.map +1 -1
  175. package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
  176. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  177. package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
  178. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  179. package/lib/commonjs/sd-jwt/index.js +9 -9
  180. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  181. package/lib/commonjs/sd-jwt/types.js +18 -18
  182. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  183. package/lib/commonjs/sd-jwt/utils.js +3 -3
  184. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  185. package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
  186. package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
  187. package/lib/commonjs/trust/common/build-chain.js +5 -2
  188. package/lib/commonjs/trust/common/build-chain.js.map +1 -1
  189. package/lib/commonjs/trust/common/errors.js +51 -44
  190. package/lib/commonjs/trust/common/errors.js.map +1 -1
  191. package/lib/commonjs/trust/common/types.js +22 -22
  192. package/lib/commonjs/trust/common/types.js.map +1 -1
  193. package/lib/commonjs/trust/common/utils.js +45 -45
  194. package/lib/commonjs/trust/common/utils.js.map +1 -1
  195. package/lib/commonjs/trust/common/verify-chain.js +96 -96
  196. package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
  197. package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
  198. package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
  199. package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
  200. package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
  201. package/lib/commonjs/trust/v1.0.0/index.js +3 -3
  202. package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
  203. package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
  204. package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
  205. package/lib/commonjs/trust/v1.0.0/types.js +46 -46
  206. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  207. package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
  208. package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
  209. package/lib/commonjs/trust/v1.3.3/entities.js +1 -1
  210. package/lib/commonjs/trust/v1.3.3/entities.js.map +1 -1
  211. package/lib/commonjs/trust/v1.3.3/types.js +2 -2
  212. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  213. package/lib/commonjs/utils/auth.js +2 -2
  214. package/lib/commonjs/utils/auth.js.map +1 -1
  215. package/lib/commonjs/utils/callbacks.js +47 -51
  216. package/lib/commonjs/utils/callbacks.js.map +1 -1
  217. package/lib/commonjs/utils/credentials.js +3 -3
  218. package/lib/commonjs/utils/credentials.js.map +1 -1
  219. package/lib/commonjs/utils/crypto.js +23 -25
  220. package/lib/commonjs/utils/crypto.js.map +1 -1
  221. package/lib/commonjs/utils/decoder.js +2 -2
  222. package/lib/commonjs/utils/decoder.js.map +1 -1
  223. package/lib/commonjs/utils/dpop.js +5 -5
  224. package/lib/commonjs/utils/dpop.js.map +1 -1
  225. package/lib/commonjs/utils/error-codes.js +19 -19
  226. package/lib/commonjs/utils/error-codes.js.map +1 -1
  227. package/lib/commonjs/utils/errors.js +51 -50
  228. package/lib/commonjs/utils/errors.js.map +1 -1
  229. package/lib/commonjs/utils/jwk.js +5 -6
  230. package/lib/commonjs/utils/jwk.js.map +1 -1
  231. package/lib/commonjs/utils/logging.js +15 -14
  232. package/lib/commonjs/utils/logging.js.map +1 -1
  233. package/lib/commonjs/utils/mappers.js +6 -8
  234. package/lib/commonjs/utils/mappers.js.map +1 -1
  235. package/lib/commonjs/utils/misc.js +6 -5
  236. package/lib/commonjs/utils/misc.js.map +1 -1
  237. package/lib/commonjs/utils/par.js +28 -28
  238. package/lib/commonjs/utils/par.js.map +1 -1
  239. package/lib/commonjs/utils/pop.js +5 -5
  240. package/lib/commonjs/utils/pop.js.map +1 -1
  241. package/lib/commonjs/utils/string.js.map +1 -1
  242. package/lib/commonjs/utils/x509.js +2 -2
  243. package/lib/commonjs/utils/x509.js.map +1 -1
  244. package/lib/commonjs/utils/zod.js +1 -1
  245. package/lib/commonjs/utils/zod.js.map +1 -1
  246. package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
  247. package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
  248. package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
  249. package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
  250. package/lib/commonjs/wallet-instance/v1.3.3/index.js +2 -2
  251. package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +1 -1
  252. package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
  253. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  254. package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
  255. package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
  256. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  257. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  258. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  259. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  260. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  261. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  262. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
  263. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  264. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  265. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  266. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +2 -2
  267. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  268. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  269. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  270. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  271. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  272. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  273. package/lib/commonjs/wallet-unit-attestation/api/types.js +5 -5
  274. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  275. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +4 -4
  276. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  277. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +32 -29
  278. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  279. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +1 -1
  280. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  281. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  282. package/lib/module/IoWallet.js +6 -4
  283. package/lib/module/IoWallet.js.map +1 -1
  284. package/lib/module/api/index.js +19 -19
  285. package/lib/module/api/index.js.map +1 -1
  286. package/lib/module/client/generated/wallet-provider.js +17 -1
  287. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  288. package/lib/module/client/index.js +10 -12
  289. package/lib/module/client/index.js.map +1 -1
  290. package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
  291. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  292. package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  293. package/lib/module/credential/issuance/api/types.js +3 -3
  294. package/lib/module/credential/issuance/api/types.js.map +1 -1
  295. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
  296. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  297. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  298. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  299. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
  300. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  301. package/lib/module/credential/issuance/common/errors.js +0 -3
  302. package/lib/module/credential/issuance/common/errors.js.map +1 -1
  303. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  304. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  305. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  306. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  307. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  308. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  309. package/lib/module/credential/issuance/mrtd-pop/index.js +5 -5
  310. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  311. package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  312. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  313. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  314. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
  315. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  316. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
  317. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  318. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
  319. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  320. package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  321. package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
  322. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  323. package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
  324. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  325. package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
  326. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +4 -4
  327. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  328. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +31 -31
  329. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  330. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +28 -28
  331. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  332. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  333. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  334. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +34 -30
  335. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  336. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  337. package/lib/module/credential/issuance/v1.3.3/index.js +9 -9
  338. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  339. package/lib/module/credential/issuance/v1.3.3/mappers.js +18 -17
  340. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  341. package/lib/module/credential/offer/common/errors.js +0 -6
  342. package/lib/module/credential/offer/common/errors.js.map +1 -1
  343. package/lib/module/credential/offer/v1.0.0/index.js +3 -3
  344. package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
  345. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js +5 -5
  346. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  347. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js +3 -3
  348. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  349. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js +6 -6
  350. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  351. package/lib/module/credential/offer/v1.3.3/index.js +1 -1
  352. package/lib/module/credential/offer/v1.3.3/index.js.map +1 -1
  353. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
  354. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  355. package/lib/module/credential/presentation/api/types.js +11 -11
  356. package/lib/module/credential/presentation/api/types.js.map +1 -1
  357. package/lib/module/credential/presentation/common/errors.js +21 -21
  358. package/lib/module/credential/presentation/common/errors.js.map +1 -1
  359. package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
  360. package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
  361. package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
  362. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
  363. package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
  364. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  365. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  366. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  367. package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  368. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  369. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  370. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  371. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  372. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
  373. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  374. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
  375. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  376. package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
  377. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  378. package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
  379. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  380. package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
  381. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  382. package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
  383. package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
  384. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
  385. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  386. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  387. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  388. package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  389. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  390. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  391. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  392. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  393. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +12 -8
  394. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  395. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +25 -17
  396. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  397. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  398. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  399. package/lib/module/credential/presentation/v1.3.3/index.js +6 -6
  400. package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -1
  401. package/lib/module/credential/presentation/v1.3.3/mappers.js +11 -11
  402. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  403. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js +4 -3
  404. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  405. package/lib/module/credential/presentation/v1.3.3/types.js +3 -3
  406. package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
  407. package/lib/module/credential/status/api/index.js.map +1 -1
  408. package/lib/module/credential/status/api/types.js +6 -6
  409. package/lib/module/credential/status/api/types.js.map +1 -1
  410. package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
  411. package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  412. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  413. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  414. package/lib/module/credential/status/v1.0.0/index.js +1 -1
  415. package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
  416. package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
  417. package/lib/module/credential/status/v1.0.0/types.js +17 -17
  418. package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
  419. package/lib/module/credential/status/v1.3.3/01-status-list.js +4 -4
  420. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  421. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  422. package/lib/module/credential/status/v1.3.3/03-get-status.js +3 -2
  423. package/lib/module/credential/status/v1.3.3/03-get-status.js.map +1 -1
  424. package/lib/module/credential/status/v1.3.3/index.js +3 -3
  425. package/lib/module/credential/status/v1.3.3/index.js.map +1 -1
  426. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
  427. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  428. package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
  429. package/lib/module/credential/trustmark/v1.3.3/index.js.map +1 -1
  430. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -56
  431. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  432. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  433. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  434. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  435. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  436. package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
  437. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  438. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
  439. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  440. package/lib/module/credentials-catalogue/v1.0.0/types.js +35 -35
  441. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  442. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  443. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  444. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  445. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  446. package/lib/module/credentials-catalogue/v1.3.3/index.js +1 -1
  447. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  448. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +27 -21
  449. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  450. package/lib/module/credentials-catalogue/v1.3.3/types.js +93 -93
  451. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  452. package/lib/module/credentials-catalogue/v1.3.3/utils.js +8 -8
  453. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  454. package/lib/module/index.js +10 -10
  455. package/lib/module/index.js.map +1 -1
  456. package/lib/module/mdoc/index.js +13 -5
  457. package/lib/module/mdoc/index.js.map +1 -1
  458. package/lib/module/mdoc/utils.js.map +1 -1
  459. package/lib/module/sd-jwt/__test__/types.test.js +9 -9
  460. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  461. package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
  462. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  463. package/lib/module/sd-jwt/index.js +9 -9
  464. package/lib/module/sd-jwt/index.js.map +1 -1
  465. package/lib/module/sd-jwt/types.js +18 -18
  466. package/lib/module/sd-jwt/types.js.map +1 -1
  467. package/lib/module/sd-jwt/utils.js +3 -3
  468. package/lib/module/sd-jwt/utils.js.map +1 -1
  469. package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
  470. package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
  471. package/lib/module/trust/common/build-chain.js +5 -2
  472. package/lib/module/trust/common/build-chain.js.map +1 -1
  473. package/lib/module/trust/common/errors.js +46 -37
  474. package/lib/module/trust/common/errors.js.map +1 -1
  475. package/lib/module/trust/common/types.js +22 -22
  476. package/lib/module/trust/common/types.js.map +1 -1
  477. package/lib/module/trust/common/utils.js +45 -45
  478. package/lib/module/trust/common/utils.js.map +1 -1
  479. package/lib/module/trust/common/verify-chain.js +96 -96
  480. package/lib/module/trust/common/verify-chain.js.map +1 -1
  481. package/lib/module/trust/v1.0.0/build-chain.js +2 -2
  482. package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
  483. package/lib/module/trust/v1.0.0/entities.js +1 -1
  484. package/lib/module/trust/v1.0.0/entities.js.map +1 -1
  485. package/lib/module/trust/v1.0.0/index.js +3 -3
  486. package/lib/module/trust/v1.0.0/index.js.map +1 -1
  487. package/lib/module/trust/v1.0.0/mappers.js +2 -2
  488. package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
  489. package/lib/module/trust/v1.0.0/types.js +46 -46
  490. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  491. package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
  492. package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
  493. package/lib/module/trust/v1.3.3/entities.js +1 -1
  494. package/lib/module/trust/v1.3.3/entities.js.map +1 -1
  495. package/lib/module/trust/v1.3.3/types.js +2 -2
  496. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  497. package/lib/module/utils/auth.js +2 -2
  498. package/lib/module/utils/auth.js.map +1 -1
  499. package/lib/module/utils/callbacks.js +47 -51
  500. package/lib/module/utils/callbacks.js.map +1 -1
  501. package/lib/module/utils/credentials.js +3 -3
  502. package/lib/module/utils/credentials.js.map +1 -1
  503. package/lib/module/utils/crypto.js +23 -25
  504. package/lib/module/utils/crypto.js.map +1 -1
  505. package/lib/module/utils/decoder.js +3 -3
  506. package/lib/module/utils/decoder.js.map +1 -1
  507. package/lib/module/utils/dpop.js +5 -5
  508. package/lib/module/utils/dpop.js.map +1 -1
  509. package/lib/module/utils/error-codes.js +19 -19
  510. package/lib/module/utils/error-codes.js.map +1 -1
  511. package/lib/module/utils/errors.js +47 -46
  512. package/lib/module/utils/errors.js.map +1 -1
  513. package/lib/module/utils/jwk.js +4 -5
  514. package/lib/module/utils/jwk.js.map +1 -1
  515. package/lib/module/utils/logging.js +15 -14
  516. package/lib/module/utils/logging.js.map +1 -1
  517. package/lib/module/utils/mappers.js +6 -8
  518. package/lib/module/utils/mappers.js.map +1 -1
  519. package/lib/module/utils/misc.js +7 -6
  520. package/lib/module/utils/misc.js.map +1 -1
  521. package/lib/module/utils/par.js +28 -28
  522. package/lib/module/utils/par.js.map +1 -1
  523. package/lib/module/utils/pop.js +5 -5
  524. package/lib/module/utils/pop.js.map +1 -1
  525. package/lib/module/utils/string.js.map +1 -1
  526. package/lib/module/utils/x509.js +2 -2
  527. package/lib/module/utils/x509.js.map +1 -1
  528. package/lib/module/utils/zod.js +1 -1
  529. package/lib/module/utils/zod.js.map +1 -1
  530. package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
  531. package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
  532. package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
  533. package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
  534. package/lib/module/wallet-instance/v1.3.3/index.js +3 -3
  535. package/lib/module/wallet-instance/v1.3.3/index.js.map +1 -1
  536. package/lib/module/wallet-instance-attestation/api/types.js +7 -7
  537. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  538. package/lib/module/wallet-instance-attestation/common/types.js +7 -7
  539. package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
  540. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
  541. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  542. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  543. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  544. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  545. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  546. package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
  547. package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  548. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  549. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  550. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +2 -2
  551. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  552. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  553. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  554. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  555. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  556. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  557. package/lib/module/wallet-unit-attestation/api/types.js +5 -5
  558. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  559. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +4 -4
  560. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  561. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +32 -29
  562. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  563. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +1 -1
  564. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  565. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  566. package/lib/typescript/IoWallet.d.ts +4 -4
  567. package/lib/typescript/IoWallet.d.ts.map +1 -1
  568. package/lib/typescript/api/index.d.ts +14 -14
  569. package/lib/typescript/api/index.d.ts.map +1 -1
  570. package/lib/typescript/client/generated/wallet-provider.d.ts +33 -0
  571. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  572. package/lib/typescript/client/index.d.ts +2 -2
  573. package/lib/typescript/client/index.d.ts.map +1 -1
  574. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
  575. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  576. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
  577. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  578. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
  579. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
  580. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +5 -5
  581. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  582. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
  583. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  584. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
  585. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  586. package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
  587. package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
  588. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
  589. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
  590. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
  591. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
  592. package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
  593. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  594. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
  595. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  596. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
  597. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  598. package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
  599. package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
  600. package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
  601. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
  602. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  603. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
  604. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  605. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  606. package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
  607. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  608. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
  609. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  610. package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
  611. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  612. package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
  613. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  614. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
  615. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  616. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  617. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  618. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  619. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +1 -1
  620. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  621. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  622. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +8 -8
  623. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  624. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  625. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  626. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +538 -59
  627. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  628. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
  629. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
  630. package/lib/typescript/credential/offer/api/index.d.ts +1 -1
  631. package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
  632. package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
  633. package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
  634. package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
  635. package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +1 -1
  636. package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +1 -1
  637. package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +1 -1
  638. package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +1 -1
  639. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
  640. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
  641. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
  642. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
  643. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
  644. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  645. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
  646. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  647. package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
  648. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  649. package/lib/typescript/credential/presentation/api/types.d.ts +72 -72
  650. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  651. package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
  652. package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
  653. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
  654. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  655. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
  656. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  657. package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
  658. package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
  659. package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
  660. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  661. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
  662. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
  663. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  664. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  665. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
  666. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  667. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
  668. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  669. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
  670. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  671. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
  672. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  673. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +1 -1
  674. package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +1 -1
  675. package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +1 -1
  676. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +1 -1
  677. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  678. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  679. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  680. package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -1
  681. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +41 -41
  682. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  683. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  684. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +2 -2
  685. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  686. package/lib/typescript/credential/status/api/index.d.ts +3 -3
  687. package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
  688. package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
  689. package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
  690. package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
  691. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  692. package/lib/typescript/credential/status/api/types.d.ts +12 -12
  693. package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
  694. package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
  695. package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
  696. package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
  697. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
  698. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
  699. package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
  700. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  701. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  702. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  703. package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +1 -1
  704. package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +1 -1
  705. package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
  706. package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
  707. package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
  708. package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
  709. package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +1 -1
  710. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +168 -165
  711. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  712. package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
  713. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  714. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
  715. package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
  716. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  717. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
  718. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  719. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +89 -89
  720. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  721. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
  722. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  723. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +158 -157
  724. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  725. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +186 -186
  726. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  727. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  728. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  729. package/lib/typescript/index.d.ts +12 -12
  730. package/lib/typescript/index.d.ts.map +1 -1
  731. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  732. package/lib/typescript/mdoc/utils.d.ts +2 -2
  733. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  734. package/lib/typescript/sd-jwt/index.d.ts +10 -10
  735. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  736. package/lib/typescript/sd-jwt/types.d.ts +15 -15
  737. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  738. package/lib/typescript/sd-jwt/utils.d.ts +1 -1
  739. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  740. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
  741. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  742. package/lib/typescript/trust/api/index.d.ts +11 -11
  743. package/lib/typescript/trust/api/index.d.ts.map +1 -1
  744. package/lib/typescript/trust/common/build-chain.d.ts +3 -3
  745. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  746. package/lib/typescript/trust/common/errors.d.ts +43 -43
  747. package/lib/typescript/trust/common/errors.d.ts.map +1 -1
  748. package/lib/typescript/trust/common/types.d.ts +37 -37
  749. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  750. package/lib/typescript/trust/common/utils.d.ts +17 -17
  751. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  752. package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
  753. package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
  754. package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
  755. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  756. package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
  757. package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
  758. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  759. package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
  760. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  761. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  762. package/lib/typescript/trust/v1.3.3/entities.d.ts +24 -24
  763. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  764. package/lib/typescript/trust/v1.3.3/types.d.ts +206 -206
  765. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  766. package/lib/typescript/utils/auth.d.ts +1 -1
  767. package/lib/typescript/utils/callbacks.d.ts +1 -1
  768. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  769. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  770. package/lib/typescript/utils/crypto.d.ts +1 -1
  771. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  772. package/lib/typescript/utils/decoder.d.ts +1 -1
  773. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  774. package/lib/typescript/utils/dpop.d.ts +3 -3
  775. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  776. package/lib/typescript/utils/error-codes.d.ts +18 -18
  777. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  778. package/lib/typescript/utils/errors.d.ts +49 -51
  779. package/lib/typescript/utils/errors.d.ts.map +1 -1
  780. package/lib/typescript/utils/integrity.d.ts +9 -9
  781. package/lib/typescript/utils/integrity.d.ts.map +1 -1
  782. package/lib/typescript/utils/jwk.d.ts +3 -3
  783. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  784. package/lib/typescript/utils/logging.d.ts +10 -10
  785. package/lib/typescript/utils/logging.d.ts.map +1 -1
  786. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  787. package/lib/typescript/utils/misc.d.ts +2 -2
  788. package/lib/typescript/utils/misc.d.ts.map +1 -1
  789. package/lib/typescript/utils/par.d.ts +13 -13
  790. package/lib/typescript/utils/par.d.ts.map +1 -1
  791. package/lib/typescript/utils/parser.d.ts +2 -2
  792. package/lib/typescript/utils/parser.d.ts.map +1 -1
  793. package/lib/typescript/utils/pop.d.ts +2 -2
  794. package/lib/typescript/utils/pop.d.ts.map +1 -1
  795. package/lib/typescript/utils/string.d.ts.map +1 -1
  796. package/lib/typescript/utils/x509.d.ts.map +1 -1
  797. package/lib/typescript/utils/zod.d.ts +5 -5
  798. package/lib/typescript/utils/zod.d.ts.map +1 -1
  799. package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
  800. package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
  801. package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
  802. package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
  803. package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +1 -1
  804. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
  805. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  806. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
  807. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  808. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
  809. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  810. package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
  811. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  812. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
  813. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
  814. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  815. package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
  816. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  817. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  818. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +10 -10
  819. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +5 -5
  820. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  821. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -1
  822. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +20 -20
  823. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -1
  824. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +10 -10
  825. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  826. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -1
  827. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -1
  828. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +11 -11
  829. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +7 -7
  830. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  831. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -1
  832. package/package.json +15 -12
  833. package/src/IoWallet.ts +11 -9
  834. package/src/api/index.ts +27 -27
  835. package/src/client/generated/wallet-provider.ts +22 -0
  836. package/src/client/index.ts +14 -13
  837. package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
  838. package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
  839. package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
  840. package/src/credential/issuance/api/04-authorize-access.ts +4 -3
  841. package/src/credential/issuance/api/05-obtain-credential.ts +8 -7
  842. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
  843. package/src/credential/issuance/api/IssuerConfig.ts +20 -19
  844. package/src/credential/issuance/api/index.ts +4 -4
  845. package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
  846. package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
  847. package/src/credential/issuance/api/types.ts +9 -8
  848. package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
  849. package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
  850. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
  851. package/src/credential/issuance/common/errors.ts +0 -4
  852. package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
  853. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
  854. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
  855. package/src/credential/issuance/mrtd-pop/index.ts +7 -6
  856. package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
  857. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
  858. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
  859. package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
  860. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
  861. package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
  862. package/src/credential/issuance/v1.0.0/index.ts +11 -10
  863. package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
  864. package/src/credential/issuance/v1.0.0/types.ts +2 -1
  865. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -6
  866. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +33 -30
  867. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +54 -51
  868. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +20 -18
  869. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +49 -43
  870. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +5 -4
  871. package/src/credential/issuance/v1.3.3/index.ts +11 -10
  872. package/src/credential/issuance/v1.3.3/mappers.ts +28 -25
  873. package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
  874. package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
  875. package/src/credential/offer/api/index.ts +2 -2
  876. package/src/credential/offer/common/errors.ts +0 -8
  877. package/src/credential/offer/v1.0.0/index.ts +5 -4
  878. package/src/credential/offer/v1.3.3/01-resolve-credential-offer.ts +5 -3
  879. package/src/credential/offer/v1.3.3/02-extract-grant-details.ts +6 -4
  880. package/src/credential/offer/v1.3.3/03-validate-credential-offer.ts +6 -4
  881. package/src/credential/offer/v1.3.3/index.ts +2 -1
  882. package/src/credential/presentation/api/01-start-flow.ts +4 -4
  883. package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
  884. package/src/credential/presentation/api/03-get-request-object.ts +1 -1
  885. package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
  886. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  887. package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
  888. package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
  889. package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
  890. package/src/credential/presentation/api/index.ts +4 -4
  891. package/src/credential/presentation/api/types.ts +68 -66
  892. package/src/credential/presentation/common/errors.ts +32 -35
  893. package/src/credential/presentation/common/utils/dcql.ts +34 -30
  894. package/src/credential/presentation/common/utils/http.ts +2 -2
  895. package/src/credential/presentation/common/utils/mdoc.ts +17 -15
  896. package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
  897. package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
  898. package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
  899. package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
  900. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
  901. package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
  902. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
  903. package/src/credential/presentation/v1.0.0/index.ts +6 -5
  904. package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
  905. package/src/credential/presentation/v1.0.0/types.ts +11 -10
  906. package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
  907. package/src/credential/presentation/v1.0.0/utils.ts +4 -3
  908. package/src/credential/presentation/v1.3.3/01-start-flow.ts +5 -3
  909. package/src/credential/presentation/v1.3.3/02-evaluate-rp-trust.ts +3 -2
  910. package/src/credential/presentation/v1.3.3/03-get-request-object.ts +4 -2
  911. package/src/credential/presentation/v1.3.3/04-verify-certificate-chain.ts +9 -7
  912. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +24 -14
  913. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +37 -23
  914. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +40 -32
  915. package/src/credential/presentation/v1.3.3/index.ts +7 -6
  916. package/src/credential/presentation/v1.3.3/mappers.ts +13 -12
  917. package/src/credential/presentation/v1.3.3/sdkErrorMapper.ts +9 -7
  918. package/src/credential/presentation/v1.3.3/types.ts +3 -3
  919. package/src/credential/status/api/index.ts +4 -4
  920. package/src/credential/status/api/status-assertion.ts +7 -6
  921. package/src/credential/status/api/status-list.ts +17 -17
  922. package/src/credential/status/api/types.ts +12 -11
  923. package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
  924. package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
  925. package/src/credential/status/v1.0.0/index.ts +2 -1
  926. package/src/credential/status/v1.0.0/mappers.ts +2 -1
  927. package/src/credential/status/v1.0.0/types.ts +17 -16
  928. package/src/credential/status/v1.3.3/01-status-list.ts +9 -7
  929. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +3 -1
  930. package/src/credential/status/v1.3.3/03-get-status.ts +6 -4
  931. package/src/credential/status/v1.3.3/index.ts +3 -2
  932. package/src/credential/trustmark/api/index.ts +11 -11
  933. package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
  934. package/src/credential/trustmark/v1.0.0/index.ts +2 -1
  935. package/src/credential/trustmark/v1.3.3/index.ts +2 -1
  936. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +48 -47
  937. package/src/credentials-catalogue/api/index.ts +14 -12
  938. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
  939. package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
  940. package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
  941. package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
  942. package/src/credentials-catalogue/v1.0.0/types.ts +32 -31
  943. package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +14 -14
  944. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +4 -3
  945. package/src/credentials-catalogue/v1.3.3/index.ts +2 -1
  946. package/src/credentials-catalogue/v1.3.3/mappers.ts +34 -27
  947. package/src/credentials-catalogue/v1.3.3/types.ts +82 -81
  948. package/src/credentials-catalogue/v1.3.3/utils.ts +14 -12
  949. package/src/index.ts +23 -23
  950. package/src/mdoc/index.ts +26 -11
  951. package/src/mdoc/utils.ts +6 -4
  952. package/src/sd-jwt/__test__/types.test.ts +6 -6
  953. package/src/sd-jwt/__test__/utils.test.ts +2 -2
  954. package/src/sd-jwt/index.ts +10 -8
  955. package/src/sd-jwt/types.ts +14 -13
  956. package/src/sd-jwt/utils.ts +10 -9
  957. package/src/trust/api/TrustAnchorConfig.ts +3 -2
  958. package/src/trust/api/index.ts +19 -16
  959. package/src/trust/common/build-chain.ts +28 -18
  960. package/src/trust/common/errors.ts +58 -50
  961. package/src/trust/common/types.ts +22 -21
  962. package/src/trust/common/utils.ts +65 -64
  963. package/src/trust/common/verify-chain.ts +140 -138
  964. package/src/trust/v1.0.0/build-chain.ts +1 -1
  965. package/src/trust/v1.0.0/entities.ts +18 -16
  966. package/src/trust/v1.0.0/index.ts +5 -4
  967. package/src/trust/v1.0.0/mappers.ts +3 -2
  968. package/src/trust/v1.0.0/types.ts +43 -42
  969. package/src/trust/v1.0.0/verify-chain.ts +3 -2
  970. package/src/trust/v1.3.3/entities.ts +6 -4
  971. package/src/trust/v1.3.3/types.ts +10 -9
  972. package/src/utils/auth.ts +1 -1
  973. package/src/utils/callbacks.ts +38 -38
  974. package/src/utils/credentials.ts +7 -5
  975. package/src/utils/crypto.ts +36 -36
  976. package/src/utils/decoder.ts +7 -5
  977. package/src/utils/dpop.ts +5 -6
  978. package/src/utils/error-codes.ts +20 -20
  979. package/src/utils/errors.ts +89 -87
  980. package/src/utils/integrity.ts +11 -11
  981. package/src/utils/jwk.ts +4 -4
  982. package/src/utils/logging.ts +21 -20
  983. package/src/utils/mappers.ts +14 -11
  984. package/src/utils/misc.ts +15 -12
  985. package/src/utils/par.ts +30 -29
  986. package/src/utils/parser.ts +4 -4
  987. package/src/utils/pop.ts +4 -5
  988. package/src/utils/string.ts +2 -2
  989. package/src/utils/x509.ts +5 -4
  990. package/src/utils/zod.ts +4 -4
  991. package/src/wallet-instance/api/index.ts +24 -24
  992. package/src/wallet-instance/common/wallet-instance.ts +8 -7
  993. package/src/wallet-instance/v1.0.0/index.ts +5 -4
  994. package/src/wallet-instance/v1.3.3/index.ts +5 -4
  995. package/src/wallet-instance-attestation/api/index.ts +18 -17
  996. package/src/wallet-instance-attestation/api/types.ts +12 -11
  997. package/src/wallet-instance-attestation/common/types.ts +7 -6
  998. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
  999. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
  1000. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
  1001. package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
  1002. package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
  1003. package/src/wallet-instance-attestation/v1.3.3/index.ts +4 -3
  1004. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +25 -23
  1005. package/src/wallet-instance-attestation/v1.3.3/types.ts +3 -2
  1006. package/src/wallet-instance-attestation/v1.3.3/utils.ts +3 -2
  1007. package/src/wallet-unit-attestation/api/index.ts +23 -23
  1008. package/src/wallet-unit-attestation/api/types.ts +11 -10
  1009. package/src/wallet-unit-attestation/v1.3.3/index.ts +6 -5
  1010. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +42 -34
  1011. package/src/wallet-unit-attestation/v1.3.3/types.ts +3 -2
  1012. package/src/wallet-unit-attestation/v1.3.3/utils.ts +1 -0
@@ -1,23 +1,23 @@
1
+ import { MRTDPoPv1_0 } from "../mrtd-pop";
1
2
  import { evaluateIssuerTrust } from "./01-evaluate-issuer-trust";
2
3
  import { startUserAuthorization } from "./02-start-user-authorization";
3
- import { continueUserAuthorizationWithMRTDPoPChallenge, completePidUserAuthorizationWithQueryMode, completeEaaUserAuthorizationWithQueryMode, completeUserAuthorizationWithFormPostJwtMode, buildAuthorizationUrl, getRequestedCredentialToBePresented } from "./03-complete-user-authorization";
4
+ import { buildAuthorizationUrl, completeEaaUserAuthorizationWithQueryMode, completePidUserAuthorizationWithQueryMode, completeUserAuthorizationWithFormPostJwtMode, continueUserAuthorizationWithMRTDPoPChallenge, getRequestedCredentialToBePresented } from "./03-complete-user-authorization";
4
5
  import { authorizeAccess } from "./04-authorize-access";
5
6
  import { obtainCredential, obtainCredentialsBatch } from "./05-obtain-credential";
6
7
  import { verifyAndParseCredential } from "./06-verify-and-parse-credential";
7
- import { MRTDPoPv1_0 } from "../mrtd-pop";
8
8
  export const Issuance = {
9
- evaluateIssuerTrust,
10
- startUserAuthorization,
9
+ authorizeAccess,
11
10
  buildAuthorizationUrl,
12
- completePidUserAuthorizationWithQueryMode,
13
11
  completeEaaUserAuthorizationWithQueryMode,
12
+ completePidUserAuthorizationWithQueryMode,
13
+ completeUserAuthorizationWithFormPostJwtMode,
14
14
  continueUserAuthorizationWithMRTDPoPChallenge,
15
+ evaluateIssuerTrust,
15
16
  getRequestedCredentialToBePresented,
16
- completeUserAuthorizationWithFormPostJwtMode,
17
- authorizeAccess,
17
+ MRTDPoP: MRTDPoPv1_0,
18
18
  obtainCredential,
19
19
  obtainCredentialsBatch,
20
- verifyAndParseCredential,
21
- MRTDPoP: MRTDPoPv1_0
20
+ startUserAuthorization,
21
+ verifyAndParseCredential
22
22
  };
23
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["evaluateIssuerTrust","startUserAuthorization","continueUserAuthorizationWithMRTDPoPChallenge","completePidUserAuthorizationWithQueryMode","completeEaaUserAuthorizationWithQueryMode","completeUserAuthorizationWithFormPostJwtMode","buildAuthorizationUrl","getRequestedCredentialToBePresented","authorizeAccess","obtainCredential","obtainCredentialsBatch","verifyAndParseCredential","MRTDPoPv1_0","Issuance","MRTDPoP"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/index.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC,sBAAsB,QAAQ,+BAA+B;AACtE,SACEC,6CAA6C,EAC7CC,yCAAyC,EACzCC,yCAAyC,EACzCC,4CAA4C,EAC5CC,qBAAqB,EACrBC,mCAAmC,QAC9B,kCAAkC;AACzC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SACEC,gBAAgB,EAChBC,sBAAsB,QACjB,wBAAwB;AAC/B,SAASC,wBAAwB,QAAQ,kCAAkC;AAC3E,SAASC,WAAW,QAAQ,aAAa;AAEzC,OAAO,MAAMC,QAAqB,GAAG;EACnCb,mBAAmB;EACnBC,sBAAsB;EACtBK,qBAAqB;EACrBH,yCAAyC;EACzCC,yCAAyC;EACzCF,6CAA6C;EAC7CK,mCAAmC;EACnCF,4CAA4C;EAC5CG,eAAe;EACfC,gBAAgB;EAChBC,sBAAsB;EACtBC,wBAAwB;EACxBG,OAAO,EAAEF;AACX,CAAC"}
1
+ {"version":3,"names":["MRTDPoPv1_0","evaluateIssuerTrust","startUserAuthorization","buildAuthorizationUrl","completeEaaUserAuthorizationWithQueryMode","completePidUserAuthorizationWithQueryMode","completeUserAuthorizationWithFormPostJwtMode","continueUserAuthorizationWithMRTDPoPChallenge","getRequestedCredentialToBePresented","authorizeAccess","obtainCredential","obtainCredentialsBatch","verifyAndParseCredential","Issuance","MRTDPoP"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/index.ts"],"mappings":"AAEA,SAASA,WAAW,QAAQ,aAAa;AACzC,SAASC,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC,sBAAsB,QAAQ,+BAA+B;AACtE,SACEC,qBAAqB,EACrBC,yCAAyC,EACzCC,yCAAyC,EACzCC,4CAA4C,EAC5CC,6CAA6C,EAC7CC,mCAAmC,QAC9B,kCAAkC;AACzC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SACEC,gBAAgB,EAChBC,sBAAsB,QACjB,wBAAwB;AAC/B,SAASC,wBAAwB,QAAQ,kCAAkC;AAE3E,OAAO,MAAMC,QAAqB,GAAG;EACnCJ,eAAe;EACfN,qBAAqB;EACrBC,yCAAyC;EACzCC,yCAAyC;EACzCC,4CAA4C;EAC5CC,6CAA6C;EAC7CN,mBAAmB;EACnBO,mCAAmC;EACnCM,OAAO,EAAEd,WAAW;EACpBU,gBAAgB;EAChBC,sBAAsB;EACtBT,sBAAsB;EACtBU;AACF,CAAC"}
@@ -1,23 +1,23 @@
1
1
  import { createMapper } from "../../../utils/mappers";
2
2
  export const mapToIssuerConfig = createMapper(x => {
3
3
  const {
4
+ federation_entity,
4
5
  oauth_authorization_server,
5
6
  openid_credential_issuer,
6
- openid_credential_verifier,
7
- federation_entity
7
+ openid_credential_verifier
8
8
  } = x.payload.metadata;
9
9
  return {
10
10
  authorization_endpoint: oauth_authorization_server.authorization_endpoint,
11
+ credential_configurations_supported: openid_credential_issuer.credential_configurations_supported,
11
12
  credential_endpoint: openid_credential_issuer.credential_endpoint,
12
13
  credential_issuer: openid_credential_issuer.credential_issuer,
13
- credential_configurations_supported: openid_credential_issuer.credential_configurations_supported,
14
+ encrypted_response_enc_values_supported: openid_credential_verifier !== null && openid_credential_verifier !== void 0 && openid_credential_verifier.authorization_encrypted_response_enc ? [openid_credential_verifier.authorization_encrypted_response_enc] : undefined,
15
+ federation_entity,
14
16
  keys: [...openid_credential_issuer.jwks.keys, ...oauth_authorization_server.jwks.keys],
17
+ nonce_endpoint: openid_credential_issuer.nonce_endpoint,
15
18
  pushed_authorization_request_endpoint: oauth_authorization_server.pushed_authorization_request_endpoint,
16
- token_endpoint: oauth_authorization_server.token_endpoint,
17
19
  status_assertion_endpoint: openid_credential_issuer.status_attestation_endpoint,
18
- nonce_endpoint: openid_credential_issuer.nonce_endpoint,
19
- federation_entity,
20
- encrypted_response_enc_values_supported: openid_credential_verifier !== null && openid_credential_verifier !== void 0 && openid_credential_verifier.authorization_encrypted_response_enc ? [openid_credential_verifier.authorization_encrypted_response_enc] : undefined
20
+ token_endpoint: oauth_authorization_server.token_endpoint
21
21
  };
22
22
  });
23
23
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createMapper","mapToIssuerConfig","x","oauth_authorization_server","openid_credential_issuer","openid_credential_verifier","federation_entity","payload","metadata","authorization_endpoint","credential_endpoint","credential_issuer","credential_configurations_supported","keys","jwks","pushed_authorization_request_endpoint","token_endpoint","status_assertion_endpoint","status_attestation_endpoint","nonce_endpoint","encrypted_response_enc_values_supported","authorization_encrypted_response_enc","undefined"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/mappers.ts"],"mappings":"AACA,SAASA,YAAY,QAAQ,wBAAwB;AAGrD,OAAO,MAAMC,iBAAiB,GAAGD,YAAY,CAG1CE,CAAC,IAAK;EACP,MAAM;IACJC,0BAA0B;IAC1BC,wBAAwB;IACxBC,0BAA0B;IAC1BC;EACF,CAAC,GAAGJ,CAAC,CAACK,OAAO,CAACC,QAAQ;EACtB,OAAO;IACLC,sBAAsB,EAAEN,0BAA0B,CAACM,sBAAsB;IACzEC,mBAAmB,EAAEN,wBAAwB,CAACM,mBAAmB;IACjEC,iBAAiB,EAAEP,wBAAwB,CAACO,iBAAiB;IAC7DC,mCAAmC,EACjCR,wBAAwB,CAACQ,mCAAmC;IAC9DC,IAAI,EAAE,CACJ,GAAGT,wBAAwB,CAACU,IAAI,CAACD,IAAI,EACrC,GAAGV,0BAA0B,CAACW,IAAI,CAACD,IAAI,CACxC;IACDE,qCAAqC,EACnCZ,0BAA0B,CAACY,qCAAqC;IAClEC,cAAc,EAAEb,0BAA0B,CAACa,cAAc;IACzDC,yBAAyB,EACvBb,wBAAwB,CAACc,2BAA2B;IACtDC,cAAc,EAAEf,wBAAwB,CAACe,cAAc;IACvDb,iBAAiB;IACjBc,uCAAuC,EACrCf,0BAA0B,aAA1BA,0BAA0B,eAA1BA,0BAA0B,CAAEgB,oCAAoC,GAC5D,CAAChB,0BAA0B,CAACgB,oCAAoC,CAAC,GACjEC;EACR,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"names":["createMapper","mapToIssuerConfig","x","federation_entity","oauth_authorization_server","openid_credential_issuer","openid_credential_verifier","payload","metadata","authorization_endpoint","credential_configurations_supported","credential_endpoint","credential_issuer","encrypted_response_enc_values_supported","authorization_encrypted_response_enc","undefined","keys","jwks","nonce_endpoint","pushed_authorization_request_endpoint","status_assertion_endpoint","status_attestation_endpoint","token_endpoint"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/mappers.ts"],"mappings":"AAGA,SAASA,YAAY,QAAQ,wBAAwB;AAErD,OAAO,MAAMC,iBAAiB,GAAGD,YAAY,CAG1CE,CAAC,IAAK;EACP,MAAM;IACJC,iBAAiB;IACjBC,0BAA0B;IAC1BC,wBAAwB;IACxBC;EACF,CAAC,GAAGJ,CAAC,CAACK,OAAO,CAACC,QAAQ;EACtB,OAAO;IACLC,sBAAsB,EAAEL,0BAA0B,CAACK,sBAAsB;IACzEC,mCAAmC,EACjCL,wBAAwB,CAACK,mCAAmC;IAC9DC,mBAAmB,EAAEN,wBAAwB,CAACM,mBAAmB;IACjEC,iBAAiB,EAAEP,wBAAwB,CAACO,iBAAiB;IAC7DC,uCAAuC,EACrCP,0BAA0B,aAA1BA,0BAA0B,eAA1BA,0BAA0B,CAAEQ,oCAAoC,GAC5D,CAACR,0BAA0B,CAACQ,oCAAoC,CAAC,GACjEC,SAAS;IACfZ,iBAAiB;IACjBa,IAAI,EAAE,CACJ,GAAGX,wBAAwB,CAACY,IAAI,CAACD,IAAI,EACrC,GAAGZ,0BAA0B,CAACa,IAAI,CAACD,IAAI,CACxC;IACDE,cAAc,EAAEb,wBAAwB,CAACa,cAAc;IACvDC,qCAAqC,EACnCf,0BAA0B,CAACe,qCAAqC;IAClEC,yBAAyB,EACvBf,wBAAwB,CAACgB,2BAA2B;IACtDC,cAAc,EAAElB,0BAA0B,CAACkB;EAC7C,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["z","AuthorizationDetail","TokenResponse","CredentialResponse","object","credentials","array","credential","string","notification_id","optional","ResponseUriResultShape","redirect_uri","NonceResponse","c_nonce"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AACxB,SAASC,mBAAmB,EAAEC,aAAa,QAAQ,cAAc;;AAEjE;AACA,SAASD,mBAAmB,EAAEC,aAAa;AAI3C,OAAO,MAAMC,kBAAkB,GAAGH,CAAC,CAACI,MAAM,CAAC;EACzCC,WAAW,EAAEL,CAAC,CAACM,KAAK,CAClBN,CAAC,CAACI,MAAM,CAAC;IACPG,UAAU,EAAEP,CAAC,CAACQ,MAAM,CAAC;EACvB,CAAC,CACH,CAAC;EACDC,eAAe,EAAET,CAAC,CAACQ,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;AACvC,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGX,CAAC,CAACI,MAAM,CAAC;EAC7CQ,YAAY,EAAEZ,CAAC,CAACQ,MAAM,CAAC;AACzB,CAAC,CAAC;AAGF,OAAO,MAAMK,aAAa,GAAGb,CAAC,CAACI,MAAM,CAAC;EACpCU,OAAO,EAAEd,CAAC,CAACQ,MAAM,CAAC;AACpB,CAAC,CAAC"}
1
+ {"version":3,"names":["z","AuthorizationDetail","TokenResponse","CredentialResponse","object","credentials","array","credential","string","notification_id","optional","ResponseUriResultShape","redirect_uri","NonceResponse","c_nonce"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,mBAAmB,EAAEC,aAAa,QAAQ,cAAc;;AAEjE;AACA,SAASD,mBAAmB,EAAEC,aAAa;AAI3C,OAAO,MAAMC,kBAAkB,GAAGH,CAAC,CAACI,MAAM,CAAC;EACzCC,WAAW,EAAEL,CAAC,CAACM,KAAK,CAClBN,CAAC,CAACI,MAAM,CAAC;IACPG,UAAU,EAAEP,CAAC,CAACQ,MAAM,CAAC;EACvB,CAAC,CACH,CAAC;EACDC,eAAe,EAAET,CAAC,CAACQ,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;AACvC,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGX,CAAC,CAACI,MAAM,CAAC;EAC7CQ,YAAY,EAAEZ,CAAC,CAACQ,MAAM,CAAC;AACzB,CAAC,CAAC;AAGF,OAAO,MAAMK,aAAa,GAAGb,CAAC,CAACI,MAAM,CAAC;EACpCU,OAAO,EAAEd,CAAC,CAACQ,MAAM,CAAC;AACpB,CAAC,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import { fetchMetadata } from "@pagopa/io-wallet-oid4vci";
2
- import { sdkConfigV1_3 } from "../../../utils/config";
2
+ import { sdkConfigV1_4 } from "../../../utils/config";
3
3
  import { mapToIssuerConfig } from "./mappers";
4
4
  export const evaluateIssuerTrust = async function (issuerUrl) {
5
5
  let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6
6
  const issuerMetadata = await fetchMetadata({
7
- config: sdkConfigV1_3,
8
- credentialIssuerUrl: issuerUrl,
9
7
  authorizationServer: context.authorizationServer,
10
8
  callbacks: {
11
9
  fetch: context.appFetch
12
- }
10
+ },
11
+ config: sdkConfigV1_4,
12
+ credentialIssuerUrl: issuerUrl
13
13
  });
14
14
  return {
15
15
  issuerConf: mapToIssuerConfig(issuerMetadata)
@@ -1 +1 @@
1
- {"version":3,"names":["fetchMetadata","sdkConfigV1_3","mapToIssuerConfig","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerMetadata","config","credentialIssuerUrl","authorizationServer","callbacks","fetch","appFetch","issuerConf"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts"],"mappings":"AAAA,SACEA,aAAa,QAER,2BAA2B;AAClC,SAASC,aAAa,QAAQ,uBAAuB;AAErD,SAASC,iBAAiB,QAAQ,WAAW;AAE7C,OAAO,MAAMC,mBAAuD,GAAG,eAAAA,CACrEC,SAAS,EAEN;EAAA,IADHC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEZ,MAAMG,cAAc,GAAI,MAAMT,aAAa,CAAC;IAC1CU,MAAM,EAAET,aAAa;IACrBU,mBAAmB,EAAEP,SAAS;IAC9BQ,mBAAmB,EAAEP,OAAO,CAACO,mBAAmB;IAChDC,SAAS,EAAE;MACTC,KAAK,EAAET,OAAO,CAACU;IACjB;EACF,CAAC,CAA0B;EAE3B,OAAO;IAAEC,UAAU,EAAEd,iBAAiB,CAACO,cAAc;EAAE,CAAC;AAC1D,CAAC"}
1
+ {"version":3,"names":["fetchMetadata","sdkConfigV1_4","mapToIssuerConfig","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerMetadata","authorizationServer","callbacks","fetch","appFetch","config","credentialIssuerUrl","issuerConf"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts"],"mappings":"AAAA,SACEA,aAAa,QAER,2BAA2B;AAIlC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,iBAAiB,QAAQ,WAAW;AAE7C,OAAO,MAAMC,mBAAuD,GAAG,eAAAA,CACrEC,SAAS,EAEN;EAAA,IADHC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEZ,MAAMG,cAAc,GAAI,MAAMT,aAAa,CAAC;IAC1CU,mBAAmB,EAAEL,OAAO,CAACK,mBAAmB;IAChDC,SAAS,EAAE;MACTC,KAAK,EAAEP,OAAO,CAACQ;IACjB,CAAC;IACDC,MAAM,EAAEb,aAAa;IACrBc,mBAAmB,EAAEX;EACvB,CAAC,CAA0B;EAE3B,OAAO;IAAEY,UAAU,EAAEd,iBAAiB,CAACO,cAAc;EAAE,CAAC;AAC1D,CAAC"}
@@ -1,18 +1,18 @@
1
- import { createPushedAuthorizationRequest, fetchPushedAuthorizationResponse, createClientAttestationPopJwt } from "@pagopa/io-wallet-oauth2";
1
+ import { createClientAttestationPopJwt, createPushedAuthorizationRequest, fetchPushedAuthorizationResponse } from "@pagopa/io-wallet-oauth2";
2
2
  import { v4 as uuidv4 } from "uuid";
3
- import { LogLevel, Logger } from "../../../utils/logging";
4
3
  import { createSignJwtFromCryptoContext, partialCallbacks } from "../../../utils/callbacks";
5
- import { IoWalletError } from "../../../utils/errors";
6
4
  import { sdkConfigV1_3 } from "../../../utils/config";
5
+ import { IoWalletError } from "../../../utils/errors";
6
+ import { Logger, LogLevel } from "../../../utils/logging";
7
7
  import { selectCredentialDefinition } from "../common/02-start-user-authorization";
8
8
  export const startUserAuthorization = async (issuerConf, credentialIds, proof, ctx) => {
9
9
  const {
10
- wiaCryptoContext,
11
- walletInstanceAttestation,
12
- redirectUri,
13
10
  appFetch = fetch,
11
+ issuerState,
12
+ redirectUri,
14
13
  scope,
15
- issuerState
14
+ walletInstanceAttestation,
15
+ wiaCryptoContext
16
16
  } = ctx;
17
17
  const clientId = await wiaCryptoContext.getPublicKey().then(_ => _.kid);
18
18
  if (!clientId) {
@@ -28,52 +28,52 @@ export const startUserAuthorization = async (issuerConf, credentialIds, proof, c
28
28
  * See https://italia.github.io/eid-wallet-it-docs/versione-corrente/en/credential-issuance-endpoint.html#pushed-authorization-request-endpoint
29
29
  */
30
30
  credentialDefinition.push({
31
- type: "it_l2+document_proof",
32
- idphinting: proof.idpHinting,
33
31
  challenge_method: "mrtd+ias",
34
- challenge_redirect_uri: redirectUri
32
+ challenge_redirect_uri: redirectUri,
33
+ idphinting: proof.idpHinting,
34
+ type: "it_l2+document_proof"
35
35
  });
36
36
  }
37
37
  const wiaSigner = {
38
- method: "jwk",
39
38
  alg: "ES256",
39
+ method: "jwk",
40
40
  publicJwk: await wiaCryptoContext.getPublicKey()
41
41
  };
42
42
  const signJwt = createSignJwtFromCryptoContext(wiaCryptoContext);
43
43
  const parRequest = await createPushedAuthorizationRequest({
44
- config: sdkConfigV1_3,
44
+ audience: issuerConf.credential_issuer,
45
+ authorization_details: credentialDefinition,
46
+ authorizationServerMetadata: {
47
+ require_signed_request_object: true
48
+ },
45
49
  callbacks: {
46
50
  ...partialCallbacks,
47
51
  signJwt
48
52
  },
49
- authorizationServerMetadata: {
50
- require_signed_request_object: true
51
- },
52
- jti: uuidv4(),
53
53
  clientId,
54
- audience: issuerConf.credential_issuer,
55
- authorization_details: credentialDefinition,
56
54
  codeChallengeMethodsSupported: ["S256"],
55
+ config: sdkConfigV1_3,
56
+ dpop: {
57
+ signer: wiaSigner
58
+ },
59
+ issuerState,
60
+ jti: uuidv4(),
57
61
  redirectUri,
58
62
  // When the issuance is started from a Credential Offer, the `scope` and
59
63
  // `issuer_state` carried by the authorization_code grant are forwarded to
60
64
  // the PAR. They are `undefined` (and thus omitted) for the regular flow.
61
- scope,
62
- issuerState,
63
- dpop: {
64
- signer: wiaSigner
65
- }
65
+ scope
66
66
  });
67
67
  const clientAttestationPoP = await createClientAttestationPopJwt({
68
- config: sdkConfigV1_3,
68
+ authorizationServer: issuerConf.credential_issuer,
69
69
  callbacks: {
70
70
  generateRandom: partialCallbacks.generateRandom,
71
71
  signJwt
72
72
  },
73
73
  clientAttestation: walletInstanceAttestation,
74
- authorizationServer: issuerConf.credential_issuer,
75
- signer: wiaSigner,
76
- jti: uuidv4()
74
+ config: sdkConfigV1_3,
75
+ jti: uuidv4(),
76
+ signer: wiaSigner
77
77
  });
78
78
  const {
79
79
  request_uri
@@ -81,16 +81,16 @@ export const startUserAuthorization = async (issuerConf, credentialIds, proof, c
81
81
  callbacks: {
82
82
  fetch: appFetch
83
83
  },
84
- pushedAuthorizationRequestEndpoint: issuerConf.pushed_authorization_request_endpoint,
85
- pushedAuthorizationRequest: parRequest,
86
84
  clientAttestationDPoP: clientAttestationPoP,
85
+ pushedAuthorizationRequest: parRequest,
86
+ pushedAuthorizationRequestEndpoint: issuerConf.pushed_authorization_request_endpoint,
87
87
  walletAttestation: walletInstanceAttestation
88
88
  });
89
89
  return {
90
- issuerRequestUri: request_uri,
91
90
  clientId,
92
91
  codeVerifier: parRequest.pkceCodeVerifier,
93
- credentialDefinition
92
+ credentialDefinition,
93
+ issuerRequestUri: request_uri
94
94
  };
95
95
  };
96
96
  //# sourceMappingURL=02-start-user-authorization.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createPushedAuthorizationRequest","fetchPushedAuthorizationResponse","createClientAttestationPopJwt","v4","uuidv4","LogLevel","Logger","createSignJwtFromCryptoContext","partialCallbacks","IoWalletError","sdkConfigV1_3","selectCredentialDefinition","startUserAuthorization","issuerConf","credentialIds","proof","ctx","wiaCryptoContext","walletInstanceAttestation","redirectUri","appFetch","fetch","scope","issuerState","clientId","getPublicKey","then","_","kid","log","ERROR","credentialDefinition","map","c","proofType","push","type","idphinting","idpHinting","challenge_method","challenge_redirect_uri","wiaSigner","method","alg","publicJwk","signJwt","parRequest","config","callbacks","authorizationServerMetadata","require_signed_request_object","jti","audience","credential_issuer","authorization_details","codeChallengeMethodsSupported","dpop","signer","clientAttestationPoP","generateRandom","clientAttestation","authorizationServer","request_uri","pushedAuthorizationRequestEndpoint","pushed_authorization_request_endpoint","pushedAuthorizationRequest","clientAttestationDPoP","walletAttestation","issuerRequestUri","codeVerifier","pkceCodeVerifier"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/02-start-user-authorization.ts"],"mappings":"AAAA,SACEA,gCAAgC,EAChCC,gCAAgC,EAChCC,6BAA6B,QACxB,0BAA0B;AAEjC,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AACnC,SAASC,QAAQ,EAAEC,MAAM,QAAQ,wB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
1
+ {"version":3,"names":["createClientAttestationPopJwt","createPushedAuthorizationRequest","fetchPushedAuthorizationResponse","v4","uuidv4","createSignJwtFromCryptoContext","partialCallbacks","sdkConfigV1_3","IoWalletError","Logger","LogLevel","selectCredentialDefinition","startUserAuthorization","issuerConf","credentialIds","proof","ctx","appFetch","fetch","issuerState","redirectUri","scope","walletInstanceAttestation","wiaCryptoContext","clientId","getPublicKey","then","_","kid","log","ERROR","credentialDefinition","map","c","proofType","push","challenge_method","challenge_redirect_uri","idphinting","idpHinting","type","wiaSigner","alg","method","publicJwk","signJwt","parRequest","audience","credential_issuer","authorization_details","authorizationServerMetadata","require_signed_request_object","callbacks","codeChallengeMethodsSupported","config","dpop","signer","jti","clientAttestationPoP","authorizationServer","generateRandom","clientAttestation","request_uri","clientAttestationDPoP","pushedAuthorizationRequest","pushedAuthorizationRequestEndpoint","pushed_authorization_request_endpoint","walletAttestation","codeVerifier","pkceCodeVerifier","issuerRequestUri"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/02-start-user-authorization.ts"],"mappings":"AAEA,SACEA,6BAA6B,EAC7BC,gCAAgC,EAChCC,gCAAgC,QAC3B,0BAA0B;AACjC,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AAInC,SACEC,8BAA8B,EAC9BC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,MAAM,EAAEC,QAAQ,QAAQ,wBAAwB;AACzD,SAASC,0BAA0B,QAAQ,uCAAuC;AAElF,OAAO,MAAMC,sBAA6D,GACxE,MAAAA,CAAOC,UAAU,EAAEC,aAAa,EAAEC,KAAK,EAAEC,GAAG,KAAK;EAC/C,MAAM;IACJC,QAAQ,GAAGC,KAAK;IAChBC,WAAW;IACXC,WAAW;IACXC,KAAK;IACLC,yBAAyB;IACzBC;EACF,CAAC,GAAGP,GAAG;EAEP,MAAMQ,QAAQ,GAAG,MAAM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;IACXsC,GAAG,EAAErD,MAAM,CAAC,CAAC;IACbgB,WAAW;IACX;IACA;IACA;IACAC;EACF,CAAC,CAAC;EAEF,MAAMqC,oBAAoB,GAAG,MAAM1D,6BAA6B,CAAC;IAC/D2D,mBAAmB,EAAE9C,UAAU,CAACmC,iBAAiB;IACjDI,SAAS,EAAE;MACTQ,cAAc,EAAEtD,gBAAgB,CAACsD,cAAc;MAC/Cf;IACF,CAAC;IACDgB,iBAAiB,EAAEvC,yBAAyB;IAC5CgC,MAAM,EAAE/C,aAAa;IACrBkD,GAAG,EAAErD,MAAM,CAAC,CAAC;IACboD,MAAM,EAAEf;EACV,CAAC,CAAC;EAEF,MAAM;IAAEqB;EAAY,CAAC,GAAG,MAAM5D,gCAAgC,CAAC;IAC7DkD,SAAS,EAAE;MACTlC,KAAK,EAAED;IACT,CAAC;IACD8C,qBAAqB,EAAEL,oBAAoB;IAC3CM,0BAA0B,EAAElB,UAAU;IACtCmB,kCAAkC,EAChCpD,UAAU,CAACqD,qCAAqC;IAClDC,iBAAiB,EAAE7C;EACrB,CAAC,CAAC;EAEF,OAAO;IACLE,QAAQ;IACR4C,YAAY,EAAEtB,UAAU,CAACuB,gBAAgB;IACzCtC,oBAAoB;IACpBuC,gBAAgB,EAAER;EACpB,CAAC;AACH,CAAC"}
@@ -1,16 +1,16 @@
1
- import { AuthorizationErrorShape, AuthorizationResultShape } from "../../../utils/auth";
2
- import parseUrl from "parse-url";
3
- import { createAuthorizationResponse, parseAuthorizeRequest, fetchAuthorizationResponse } from "@pagopa/io-wallet-oid4vp";
4
- import { sendAuthorizationResponseAndExtractCode } from "@pagopa/io-wallet-oid4vci";
5
1
  import { parseMrtdChallenge } from "@pagopa/io-wallet-oauth2";
6
- import { AuthorizationError, AuthorizationIdpError } from "../common/errors";
7
- import { LogLevel, Logger } from "../../../utils/logging";
8
- import { RemotePresentation as RemotePresentationFlow } from "../../presentation/v1.3.3";
2
+ import { sendAuthorizationResponseAndExtractCode } from "@pagopa/io-wallet-oid4vci";
3
+ import { createAuthorizationResponse, fetchAuthorizationResponse, parseAuthorizeRequest } from "@pagopa/io-wallet-oid4vp";
4
+ import parseUrl from "parse-url";
5
+ import { AuthorizationErrorShape, AuthorizationResultShape } from "../../../utils/auth";
9
6
  import { createVerifyJwtFromJwks, partialCallbacks } from "../../../utils/callbacks";
10
7
  import { sdkConfigV1_3, sdkConfigV1_4 } from "../../../utils/config";
11
8
  import { IoWalletError, IssuerResponseError } from "../../../utils/errors";
12
- import { mapToRequestObject } from "./mappers";
9
+ import { Logger, LogLevel } from "../../../utils/logging";
13
10
  import { hasStatusOrThrow } from "../../../utils/misc";
11
+ import { RemotePresentation as RemotePresentationFlow } from "../../presentation/v1.3.3";
12
+ import { AuthorizationError, AuthorizationIdpError } from "../common/errors";
13
+ import { mapToRequestObject } from "./mappers";
14
14
  export const continueUserAuthorizationWithMRTDPoPChallenge = async authRedirectUrl => {
15
15
  Logger.log(LogLevel.DEBUG, "The requested credential is a PID and requires MRTD PoP, starting MRTD PoP validation from auth redirect");
16
16
  try {
@@ -58,11 +58,11 @@ export const getRequestedCredentialToBePresented = async function (issuerRequest
58
58
  method: "GET"
59
59
  }).then(hasStatusOrThrow(200, IssuerResponseError)).then(res => res.text());
60
60
  const parsedAuthRequest = await parseAuthorizeRequest({
61
- config: sdkConfigV1_3,
62
- requestObjectJwt,
63
61
  callbacks: {
64
62
  verifyJwt: createVerifyJwtFromJwks(issuerConf.keys)
65
- }
63
+ },
64
+ config: sdkConfigV1_3,
65
+ requestObjectJwt
66
66
  });
67
67
  return mapToRequestObject(parsedAuthRequest);
68
68
  };
@@ -74,9 +74,9 @@ export const completeUserAuthorizationWithFormPostJwtMode = async (requestObject
74
74
  } = _ref;
75
75
  Logger.log(LogLevel.DEBUG, "The requested credential is not a PID, completing the user authorization with form_post.jwt mode");
76
76
  const authzResponse = await processPidPresentationAndCreateAuthzResponse({
77
- requestObject,
77
+ evaluatedDcqlQuery,
78
78
  issuerConfig,
79
- evaluatedDcqlQuery
79
+ requestObject
80
80
  });
81
81
  Logger.log(LogLevel.DEBUG, `Authz response: ${authzResponse}`);
82
82
  const issuerSigKey = issuerConfig.keys.find(key => key.use === "sig");
@@ -92,13 +92,13 @@ export const completeUserAuthorizationWithFormPostJwtMode = async (requestObject
92
92
  fetch: appFetch
93
93
  },
94
94
  iss: requestObject.iss,
95
- state: requestObject.state ?? "",
96
95
  presentationResponseUri: requestObject.response_uri,
97
96
  signer: {
98
97
  alg: "ES256",
99
98
  method: "jwk",
100
99
  publicJwk: issuerSigKey
101
- }
100
+ },
101
+ state: requestObject.state ?? ""
102
102
  });
103
103
  };
104
104
  export const completeEaaUserAuthorizationWithQueryMode = async function (requestObject, issuerConfig, evaluatedDcqlQuery, clientRedirectUri) {
@@ -108,20 +108,20 @@ export const completeEaaUserAuthorizationWithQueryMode = async function (request
108
108
  } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
109
109
  Logger.log(LogLevel.DEBUG, "The requested credential is not a PID, completing the user authorization with query mode");
110
110
  const authzResponse = await processPidPresentationAndCreateAuthzResponse({
111
- requestObject,
111
+ evaluatedDcqlQuery,
112
112
  issuerConfig,
113
- evaluatedDcqlQuery
113
+ requestObject
114
114
  });
115
115
  Logger.log(LogLevel.DEBUG, `Authz response: ${JSON.stringify(authzResponse)}`);
116
116
  const {
117
117
  redirect_uri
118
118
  } = await fetchAuthorizationResponse({
119
119
  authorizationResponseJarm: authzResponse.jarm.responseJwe,
120
- presentationResponseUri: requestObject.response_uri,
121
120
  callbacks: {
122
121
  ...partialCallbacks,
123
122
  fetch: appFetch
124
- }
123
+ },
124
+ presentationResponseUri: requestObject.response_uri
125
125
  });
126
126
  if (!redirect_uri) {
127
127
  const errorMessage = "The authorization server did not return a redirect_uri to continue the authorization flow";
@@ -179,9 +179,9 @@ export const parseAuthorizationResponse = authRes => {
179
179
  */
180
180
  const processPidPresentationAndCreateAuthzResponse = async _ref2 => {
181
181
  let {
182
- requestObject,
182
+ evaluatedDcqlQuery,
183
183
  issuerConfig,
184
- evaluatedDcqlQuery
184
+ requestObject
185
185
  } = _ref2;
186
186
  const remotePresentation = await RemotePresentationFlow.prepareRemotePresentations(evaluatedDcqlQuery, {
187
187
  clientId: requestObject.client_id,
@@ -199,21 +199,21 @@ const processPidPresentationAndCreateAuthzResponse = async _ref2 => {
199
199
  };
200
200
  }, {});
201
201
  return createAuthorizationResponse({
202
+ callbacks: {
203
+ encryptJwe: partialCallbacks.encryptJwe,
204
+ generateRandom: partialCallbacks.generateRandom
205
+ },
202
206
  // The SDK 1.4 config is used here in order to resolve the encryption data from the Request Object
203
207
  // client_metadata, otherwise OpenID Federation clients always ignore client_metadata as per 1.3.3 specs.
204
208
  config: sdkConfigV1_4,
205
209
  requestObject,
206
210
  rpJwks: {
211
+ encrypted_response_enc_values_supported: issuerConfig.encrypted_response_enc_values_supported,
207
212
  jwks: {
208
213
  keys: issuerConfig.keys
209
- },
210
- encrypted_response_enc_values_supported: issuerConfig.encrypted_response_enc_values_supported
214
+ }
211
215
  },
212
- vp_token,
213
- callbacks: {
214
- encryptJwe: partialCallbacks.encryptJwe,
215
- generateRandom: partialCallbacks.generateRandom
216
- }
216
+ vp_token
217
217
  });
218
218
  };
219
219
  //# sourceMappingURL=03-complete-user-authorization.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["AuthorizationErrorShape","AuthorizationResultShape","parseUrl","createAuthorizationResponse","parseAuthorizeRequest","fetchAuthorizationResponse","sendAuthorizationResponseAndExtractCode","parseMrtdChallenge","AuthorizationError","AuthorizationIdpError","LogLevel","Logger","RemotePresentation","RemotePresentationFlow","createVerifyJwtFromJwks","partialCallbacks","sdkConfigV1_3","sdkConfigV1_4","IoWalletError","IssuerResponseError","mapToRequestObject","hasStatusOrThrow","continueUserAuthorizationWithMRTDPoPChallenge","authRedirectUrl","log","DEBUG","parsedChallenge","redirectUrl","challenge_info","challengeJwt","err","errorMessage","Error","message","ERROR","buildAuthorizationUrl","issuerRequestUri","clientId","issuerConf","idpHint","authzRequestEndpoint","authorization_endpoint","params","URLSearchParams","client_id","request_uri","append","authUrl","completePidUserAuthorizationWithQueryMode","query","parseAuthorizationResponse","getRequestedCredentialToBePresented","appFetch","arguments","length","undefined","fetch","toString","requestObjectJwt","method","then","res","text","parsedAuthRequest","config","callbacks","verifyJwt","keys","completeUserAuthorizationWithFormPostJwtMode","requestObject","issuerConfig","evaluatedDcqlQuery","_ref","authzResponse","processPidPresentationAndCreateAuthzResponse","issuerSigKey","find","key","use","authorizationResponseJarm","jarm","responseJwe","iss","state","presentationResponseUri","response_uri","signer","alg","publicJwk","completeEaaUserAuthorizationWithQueryMode","clientRedirectUri","fetchFinalRedirectUri","JSON","stringify","redirect_uri","finalRedirectUri","response","catch","ok","url","startsWith","authRes","authResParsed","safeParse","success","authErr","error","data","error_description","_ref2","remotePresentation","prepareRemotePresentations","nonce","responseUri","vp_token","presentations","reduce","acc","_ref3","credentialId","vpToken","rpJwks","jwks","encrypted_response_enc_values_supported","encryptJwe","generateRandom"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/03-complete-user-authorization.ts"],"mappings":"AAAA,SACEA,uBAAuB,EACvBC,wBAAwB,QAEnB,qBAAqB;AAC5B,OAAOC,QAAQ,MAAM,WAAW;AAChC,SACEC,2BAA2B,EAC3BC,qBAAqB,EACrBC,0BAA0B,QAErB,0BAA0B;AACjC,SAASC,uCAAuC,QAAQ,2BAA2B;AAEnF,SAASC,kBAAkB,QAAQ,0BAA0B;AAC7D,SAASC,kBAAkB,EAAEC,qBAAqB,QAAQ,kBAAkB;AAC5E,SAASC,QAAQ,EAAEC,MAAM,QAAQ,wBAAwB;AACzD,SAASC,kBAAkB,IAAIC,sBAAsB,QAAQ,2BAA2B;AACxF,SACEC,uBAAuB,EACvBC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,aAAa,EAAEC,aAAa,QAAQ,uBAAuB;AACpE,SAASC,aAAa,EAAEC,mBAAmB,QAAQ,uBAAuB;AAE1E,S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,IAAI;AAC3B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMjC,4CAA4C,GAAG,MAAAmC,KAAA,IAQH;EAAA,IARU;IAC1DxC,aAAa;IACbC,YAAY;IACZC;EAKF,CAAC,GAAAsC,KAAA;EACC,MAAMC,kBAAkB,GACtB,MAAMjG,sBAAsB,CAACkG,0BAA0B,CACrDxC,kBAAkB,EAClB;IACElC,QAAQ,EAAEgC,aAAa,CAACzB,SAAS;IACjCoE,KAAK,EAAE3C,aAAa,CAAC2C,KAAK;IAC1BC,WAAW,EAAE5C,aAAa,CAACgB;EAC7B,CACF,CAAC;EAEH,MAAM6B,QAAQ,GAAGJ,kBAAkB,CAACK,aAAa,CAACC,MAAM,CACtD,CAACC,GAAG,EAAAC,KAAA;IAAA,IAAE;MAAEC,YAAY;MAAEC;IAAQ,CAAC,GAAAF,KAAA;IAAA,OAAM;MAAE,GAAGD,GAAG;MAAE,CAACE,YAAY,GAAG,CAACC,OAAO;IAAE,CAAC;EAAA,CAAC,EAC3E,CAAC,CACH,CAAC;EAED,OAAOrH,2BAA2B,CAAC;IACjC;IACA;IACA6D,MAAM,EAAE/C,aAAa;IACrBoD,aAAa;IACboD,MAAM,EAAE;MACNC,IAAI,EAAE;QAAEvD,IAAI,EAAEG,YAAY,CAACH;MAAK,CAAkB;MAClDwD,uCAAuC,EACrCrD,YAAY,CAACqD;IACjB,CAAC;IACDT,QAAQ;IACRjD,SAAS,EAAE;MACT2D,UAAU,EAAE7G,gBAAgB,CAAC6G,UAAU;MACvCC,cAAc,EAAE9G,gBAAgB,CAAC8G;IACnC;EACF,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"names":["parseMrtdChallenge","sendAuthorizationResponseAndExtractCode","createAuthorizationResponse","fetchAuthorizationResponse","parseAuthorizeRequest","parseUrl","AuthorizationErrorShape","AuthorizationResultShape","createVerifyJwtFromJwks","partialCallbacks","sdkConfigV1_3","sdkConfigV1_4","IoWalletError","IssuerResponseError","Logger","LogLevel","hasStatusOrThrow","RemotePresentation","RemotePresentationFlow","AuthorizationError","AuthorizationIdpError","mapToRequestObject","continueUserAuthorizationWithMRTDPoPChallenge","authRedirectUrl","log","DEBUG","parsedChallenge","redirectUrl","challenge_info","challengeJwt","err","errorMessage","Error","message","ERROR","buildAuthorizationUrl","issuerRequestUri","clientId","issuerConf","idpHint","authzRequestEndpoint","authorization_endpoint","params","URLSearchParams","client_id","request_uri","append","authUrl","completePidUserAuthorizationWithQueryMode","query","parseAuthorizationResponse","getRequestedCredentialToBePresented","appFetch","arguments","length","undefined","fetch","toString","requestObjectJwt","method","then","res","text","parsedAuthRequest","callbacks","verifyJwt","keys","config","completeUserAuthorizationWithFormPostJwtMode","requestObject","issuerConfig","evaluatedDcqlQuery","_ref","authzResponse","processPidPresentationAndCreateAuthzResponse","issuerSigKey","find","key","use","authorizationResponseJarm","jarm","responseJwe","iss","presentationResponseUri","response_uri","signer","alg","publicJwk","state","completeEaaUserAuthorizationWithQueryMode","clientRedirectUri","fetchFinalRedirectUri","JSON","stringify","redirect_uri","finalRedirectUri","response","catch","ok","url","startsWith","authRes","authResParsed","safeParse","success","authErr","error","data","error_description","_ref2","remotePresentation","prepareRemotePresentations","nonce","responseUri","vp_token","presentations","reduce","acc","_ref3","credentialId","vpToken","encryptJwe","generateRandom","rpJwks","encrypted_response_enc_values_supported","jwks"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/03-complete-user-authorization.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,0BAA0B;AAC7D,SAASC,uCAAuC,QAAQ,2BAA2B;AACnF,SACEC,2BAA2B,EAE3BC,0BAA0B,EAC1BC,qBAAqB,QAChB,0BAA0B;AACjC,OAAOC,QAAQ,MAAM,WAAW;AAKhC,SACEC,uBAAuB,EAEvBC,wBAAwB,QACnB,qBAAqB;AAC5B,SACEC,uBAAuB,EACvBC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,aAAa,EAAEC,aAAa,QAAQ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,CAAC;AACJ,CAAC"}
@@ -1,60 +1,60 @@
1
1
  import { createClientAttestationPopJwt, createTokenDPoP, fetchTokenResponse } from "@pagopa/io-wallet-oauth2";
2
2
  import { v4 as uuidv4 } from "uuid";
3
3
  import { createSignJwtFromCryptoContext, partialCallbacks } from "../../../utils/callbacks";
4
- import { IoWalletError } from "../../../utils/errors";
5
4
  import { sdkConfigV1_3 } from "../../../utils/config";
5
+ import { IoWalletError } from "../../../utils/errors";
6
6
  export const authorizeAccess = async (issuerConf, code, redirectUri, codeVerifier, context) => {
7
7
  const {
8
8
  appFetch = fetch,
9
+ dPopCryptoContext,
9
10
  walletInstanceAttestation,
10
- wiaCryptoContext,
11
- dPopCryptoContext
11
+ wiaCryptoContext
12
12
  } = context;
13
13
  const tokenDPoP = await createTokenDPoP({
14
14
  callbacks: {
15
15
  ...partialCallbacks,
16
16
  signJwt: createSignJwtFromCryptoContext(dPopCryptoContext)
17
17
  },
18
+ jti: uuidv4(),
18
19
  signer: {
19
- method: "jwk",
20
20
  alg: "ES256",
21
+ method: "jwk",
21
22
  publicJwk: await dPopCryptoContext.getPublicKey()
22
23
  },
23
- jti: uuidv4(),
24
24
  tokenRequest: {
25
25
  method: "POST",
26
26
  url: issuerConf.token_endpoint
27
27
  }
28
28
  });
29
29
  const clientAttestationDPoP = await createClientAttestationPopJwt({
30
- config: sdkConfigV1_3,
30
+ authorizationServer: issuerConf.credential_issuer,
31
31
  callbacks: {
32
32
  generateRandom: partialCallbacks.generateRandom,
33
33
  signJwt: createSignJwtFromCryptoContext(wiaCryptoContext)
34
34
  },
35
35
  clientAttestation: walletInstanceAttestation,
36
- authorizationServer: issuerConf.credential_issuer,
36
+ config: sdkConfigV1_3,
37
37
  signer: {
38
- method: "jwk",
39
38
  alg: "ES256",
39
+ method: "jwk",
40
40
  publicJwk: await wiaCryptoContext.getPublicKey()
41
41
  }
42
42
  });
43
43
  const tokenResponse = await fetchTokenResponse({
44
44
  accessTokenEndpoint: issuerConf.token_endpoint,
45
+ accessTokenRequest: {
46
+ code,
47
+ code_verifier: codeVerifier,
48
+ grant_type: "authorization_code",
49
+ redirect_uri: redirectUri
50
+ },
45
51
  callbacks: {
46
52
  ...partialCallbacks,
47
53
  fetch: appFetch
48
54
  },
49
- walletAttestation: walletInstanceAttestation,
50
- dPoP: tokenDPoP.jwt,
51
55
  clientAttestationDPoP,
52
- accessTokenRequest: {
53
- code,
54
- grant_type: "authorization_code",
55
- code_verifier: codeVerifier,
56
- redirect_uri: redirectUri
57
- }
56
+ dPoP: tokenDPoP.jwt,
57
+ walletAttestation: walletInstanceAttestation
58
58
  });
59
59
 
60
60
  // `authorization_details` might be undefined if the PAR used `scope`.
@@ -1 +1 @@
1
- {"version":3,"names":["createClientAttestationPopJwt","createTokenDPoP","fetchTokenResponse","v4","uuidv4","createSignJwtFromCryptoContext","partialCallbacks","IoWalletError","sdkConfigV1_3","authorizeAccess","issuerConf","code","redirectUri","codeVerifier","context","appFetch","fetch","walletInstanceAttestation","wiaCryptoContext","dPopCryptoContext","tokenDPoP","callbacks","signJwt","signer","method","alg","publicJwk","getPublicKey","jti","tokenRequest","url","token_endpoint","clientAttestationDPoP","config","generateRandom","clientAttestation","authorizationServer","credential_issuer","tokenResponse","accessTokenEndpoint","walletAttestation","dPoP","jwt","accessTokenRequest","grant_type","code_verifier","redirect_uri","authorization_details","accessToken"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/04-authorize-access.ts"],"mappings":"AAAA,SACEA,6BAA6B,EAC7BC,eAAe,EACfC,kBAAkB,QACb,0BAA0B;AACjC,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AACnC,SACEC,8BAA8B,EAC9BC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,aAAa,QAAQ,uBAAuB;AAGrD,OAAO,MAAMC,eAA+C,GAAG,MAAAA,CAC7DC,UAAU,EACVC,IAAI,EACJC,WAAW,EACXC,YAAY,EACZC,OAA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IAAI;MACJiC,UAAU,EAAE,oBAAoB;MAChCC,aAAa,EAAEhC,YAAY;MAC3BiC,YAAY,EAAElC;IAChB;EACF,CAAC,CAAC;;EAEF;EACA;EACA,IAAI,CAAC0B,aAAa,CAACS,qBAAqB,EAAE;IACxC,MAAM,IAAIxC,aAAa,CACrB,6DACF,CAAC;EACH;EAEA,OAAO;IACLyC,WAAW,EAAEV;EACf,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["createClientAttestationPopJwt","createTokenDPoP","fetchTokenResponse","v4","uuidv4","createSignJwtFromCryptoContext","partialCallbacks","sdkConfigV1_3","IoWalletError","authorizeAccess","issuerConf","code","redirectUri","codeVerifier","context","appFetch","fetch","dPopCryptoContext","walletInstanceAttestation","wiaCryptoContext","tokenDPoP","callbacks","signJwt","jti","signer","alg","method","publicJwk","getPublicKey","tokenRequest","url","token_endpoint","clientAttestationDPoP","authorizationServer","credential_issuer","generateRandom","clientAttestation","config","tokenResponse","accessTokenEndpoint","accessTokenRequest","code_verifier","grant_type","redirect_uri","dPoP","jwt","walletAttestation","authorization_details","accessToken"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/04-authorize-access.ts"],"mappings":"AAAA,SACEA,6BAA6B,EAC7BC,eAAe,EACfC,kBAAkB,QACb,0BAA0B;AACjC,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AAInC,SACEC,8BAA8B,EAC9BC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,aAAa,QAAQ,uBAAuB;AAErD,OAAO,MAAMC,eAA+C,GAAG,MAAAA,CAC7DC,UAAU,EACVC,IAAI,EACJC,WAAW,EACXC,YAAY,EACZC,OAAO,KACJ;EACH,MAAM;IACJC,QAAQ,GAAGC,KAAK;IAChBC,iBAAiB;IACjBC,yBAAyB;IACzBC;EACF,CAAC,GAAGL,OAAO;EAEX,MAAMM,SAAS,GAAG,MAAMnB,eAAe,CAAC;IACtCoB,SAAS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