@pagopa/io-react-native-wallet 3.6.3 → 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 (1003) 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/index.js +9 -11
  6. package/lib/commonjs/client/index.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
  8. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/api/types.js +3 -3
  11. package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
  13. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  15. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
  17. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/common/errors.js +0 -3
  19. package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  21. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  23. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  24. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  25. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  26. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +4 -4
  27. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  28. package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  29. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  30. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
  32. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  33. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
  34. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  35. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
  36. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  37. package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  38. package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
  39. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  40. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
  41. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  42. package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
  43. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  44. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  45. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +30 -30
  46. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  47. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +37 -37
  48. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  49. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  50. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  51. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +32 -28
  52. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  53. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  54. package/lib/commonjs/credential/issuance/v1.3.3/index.js +8 -8
  55. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  56. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +18 -17
  57. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  58. package/lib/commonjs/credential/offer/common/errors.js +0 -6
  59. package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
  60. package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
  61. package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
  62. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js +4 -4
  63. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  64. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js +4 -4
  65. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  66. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js +5 -5
  67. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  68. package/lib/commonjs/credential/offer/v1.3.3/index.js +1 -1
  69. package/lib/commonjs/credential/offer/v1.3.3/index.js.map +1 -1
  70. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
  71. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  72. package/lib/commonjs/credential/presentation/api/types.js +11 -11
  73. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  74. package/lib/commonjs/credential/presentation/common/errors.js +24 -23
  75. package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
  76. package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
  77. package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
  78. package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
  79. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
  80. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
  81. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  82. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  83. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  84. package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  85. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  86. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  87. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  88. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  89. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
  90. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  91. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
  92. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  93. package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
  94. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  95. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
  96. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  97. package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
  98. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  99. package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
  100. package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  101. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  102. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  103. package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  104. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  105. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  106. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  107. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  108. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -7
  109. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  110. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +24 -16
  111. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  112. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  113. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  114. package/lib/commonjs/credential/presentation/v1.3.3/index.js +5 -5
  115. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -1
  116. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +11 -11
  117. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  118. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js +2 -2
  119. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  120. package/lib/commonjs/credential/presentation/v1.3.3/types.js +3 -3
  121. package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
  122. package/lib/commonjs/credential/status/api/types.js +6 -6
  123. package/lib/commonjs/credential/status/api/types.js.map +1 -1
  124. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
  125. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  126. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  127. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  128. package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
  129. package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
  130. package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
  131. package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
  132. package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
  133. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +4 -4
  134. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  135. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  136. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js +2 -2
  137. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js.map +1 -1
  138. package/lib/commonjs/credential/status/v1.3.3/index.js +3 -3
  139. package/lib/commonjs/credential/status/v1.3.3/index.js.map +1 -1
  140. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
  141. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  142. package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
  143. package/lib/commonjs/credential/trustmark/v1.3.3/index.js.map +1 -1
  144. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -54
  145. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  146. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  147. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  148. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  149. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  150. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
  151. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  152. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
  153. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  154. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +35 -35
  155. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  156. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  157. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  158. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  159. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  160. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +1 -1
  161. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  162. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +21 -20
  163. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  164. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +93 -93
  165. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  166. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +8 -8
  167. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  168. package/lib/commonjs/index.js +15 -15
  169. package/lib/commonjs/index.js.map +1 -1
  170. package/lib/commonjs/mdoc/index.js +13 -5
  171. package/lib/commonjs/mdoc/index.js.map +1 -1
  172. package/lib/commonjs/mdoc/utils.js.map +1 -1
  173. package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
  174. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  175. package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
  176. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  177. package/lib/commonjs/sd-jwt/index.js +9 -9
  178. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  179. package/lib/commonjs/sd-jwt/types.js +18 -18
  180. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  181. package/lib/commonjs/sd-jwt/utils.js +3 -3
  182. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  183. package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
  184. package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
  185. package/lib/commonjs/trust/common/build-chain.js +5 -2
  186. package/lib/commonjs/trust/common/build-chain.js.map +1 -1
  187. package/lib/commonjs/trust/common/errors.js +51 -44
  188. package/lib/commonjs/trust/common/errors.js.map +1 -1
  189. package/lib/commonjs/trust/common/types.js +22 -22
  190. package/lib/commonjs/trust/common/types.js.map +1 -1
  191. package/lib/commonjs/trust/common/utils.js +45 -45
  192. package/lib/commonjs/trust/common/utils.js.map +1 -1
  193. package/lib/commonjs/trust/common/verify-chain.js +96 -96
  194. package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
  195. package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
  196. package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
  197. package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
  198. package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
  199. package/lib/commonjs/trust/v1.0.0/index.js +3 -3
  200. package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
  201. package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
  202. package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
  203. package/lib/commonjs/trust/v1.0.0/types.js +46 -46
  204. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  205. package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
  206. package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
  207. package/lib/commonjs/trust/v1.3.3/entities.js +1 -1
  208. package/lib/commonjs/trust/v1.3.3/entities.js.map +1 -1
  209. package/lib/commonjs/trust/v1.3.3/types.js +2 -2
  210. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  211. package/lib/commonjs/utils/auth.js +2 -2
  212. package/lib/commonjs/utils/auth.js.map +1 -1
  213. package/lib/commonjs/utils/callbacks.js +47 -51
  214. package/lib/commonjs/utils/callbacks.js.map +1 -1
  215. package/lib/commonjs/utils/credentials.js +3 -3
  216. package/lib/commonjs/utils/credentials.js.map +1 -1
  217. package/lib/commonjs/utils/crypto.js +23 -25
  218. package/lib/commonjs/utils/crypto.js.map +1 -1
  219. package/lib/commonjs/utils/decoder.js +2 -2
  220. package/lib/commonjs/utils/decoder.js.map +1 -1
  221. package/lib/commonjs/utils/dpop.js +5 -5
  222. package/lib/commonjs/utils/dpop.js.map +1 -1
  223. package/lib/commonjs/utils/error-codes.js +19 -19
  224. package/lib/commonjs/utils/error-codes.js.map +1 -1
  225. package/lib/commonjs/utils/errors.js +51 -50
  226. package/lib/commonjs/utils/errors.js.map +1 -1
  227. package/lib/commonjs/utils/jwk.js +5 -6
  228. package/lib/commonjs/utils/jwk.js.map +1 -1
  229. package/lib/commonjs/utils/logging.js +15 -14
  230. package/lib/commonjs/utils/logging.js.map +1 -1
  231. package/lib/commonjs/utils/mappers.js +6 -8
  232. package/lib/commonjs/utils/mappers.js.map +1 -1
  233. package/lib/commonjs/utils/misc.js +6 -5
  234. package/lib/commonjs/utils/misc.js.map +1 -1
  235. package/lib/commonjs/utils/par.js +28 -28
  236. package/lib/commonjs/utils/par.js.map +1 -1
  237. package/lib/commonjs/utils/pop.js +5 -5
  238. package/lib/commonjs/utils/pop.js.map +1 -1
  239. package/lib/commonjs/utils/string.js.map +1 -1
  240. package/lib/commonjs/utils/x509.js +2 -2
  241. package/lib/commonjs/utils/x509.js.map +1 -1
  242. package/lib/commonjs/utils/zod.js +1 -1
  243. package/lib/commonjs/utils/zod.js.map +1 -1
  244. package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
  245. package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
  246. package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
  247. package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
  248. package/lib/commonjs/wallet-instance/v1.3.3/index.js +2 -2
  249. package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +1 -1
  250. package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
  251. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  252. package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
  253. package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
  254. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  255. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  256. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  257. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  258. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  259. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  260. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
  261. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  262. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  263. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  264. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +2 -2
  265. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  266. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  267. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  268. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  269. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  270. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  271. package/lib/commonjs/wallet-unit-attestation/api/types.js +5 -5
  272. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  273. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +4 -4
  274. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  275. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +30 -27
  276. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  277. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  278. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  279. package/lib/module/IoWallet.js +6 -4
  280. package/lib/module/IoWallet.js.map +1 -1
  281. package/lib/module/api/index.js +19 -19
  282. package/lib/module/api/index.js.map +1 -1
  283. package/lib/module/client/index.js +10 -12
  284. package/lib/module/client/index.js.map +1 -1
  285. package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
  286. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  287. package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  288. package/lib/module/credential/issuance/api/types.js +3 -3
  289. package/lib/module/credential/issuance/api/types.js.map +1 -1
  290. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
  291. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  292. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  293. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  294. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
  295. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  296. package/lib/module/credential/issuance/common/errors.js +0 -3
  297. package/lib/module/credential/issuance/common/errors.js.map +1 -1
  298. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  299. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  300. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  301. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  302. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  303. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  304. package/lib/module/credential/issuance/mrtd-pop/index.js +5 -5
  305. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  306. package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  307. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  308. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  309. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
  310. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  311. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
  312. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  313. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
  314. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  315. package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  316. package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
  317. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  318. package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
  319. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  320. package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
  321. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  322. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  323. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +31 -31
  324. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  325. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +28 -28
  326. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  327. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  328. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  329. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +34 -30
  330. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  331. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  332. package/lib/module/credential/issuance/v1.3.3/index.js +9 -9
  333. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  334. package/lib/module/credential/issuance/v1.3.3/mappers.js +18 -17
  335. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  336. package/lib/module/credential/offer/common/errors.js +0 -6
  337. package/lib/module/credential/offer/common/errors.js.map +1 -1
  338. package/lib/module/credential/offer/v1.0.0/index.js +3 -3
  339. package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
  340. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js +5 -5
  341. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  342. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js +3 -3
  343. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  344. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js +6 -6
  345. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  346. package/lib/module/credential/offer/v1.3.3/index.js +1 -1
  347. package/lib/module/credential/offer/v1.3.3/index.js.map +1 -1
  348. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
  349. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  350. package/lib/module/credential/presentation/api/types.js +11 -11
  351. package/lib/module/credential/presentation/api/types.js.map +1 -1
  352. package/lib/module/credential/presentation/common/errors.js +21 -21
  353. package/lib/module/credential/presentation/common/errors.js.map +1 -1
  354. package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
  355. package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
  356. package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
  357. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
  358. package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
  359. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  360. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  361. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  362. package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  363. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  364. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  365. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  366. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  367. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
  368. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  369. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
  370. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  371. package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
  372. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  373. package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
  374. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  375. package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
  376. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  377. package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
  378. package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
  379. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
  380. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  381. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  382. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  383. package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  384. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  385. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  386. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  387. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  388. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +12 -8
  389. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  390. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +25 -17
  391. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  392. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  393. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  394. package/lib/module/credential/presentation/v1.3.3/index.js +6 -6
  395. package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -1
  396. package/lib/module/credential/presentation/v1.3.3/mappers.js +11 -11
  397. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  398. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js +4 -3
  399. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  400. package/lib/module/credential/presentation/v1.3.3/types.js +3 -3
  401. package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
  402. package/lib/module/credential/status/api/index.js.map +1 -1
  403. package/lib/module/credential/status/api/types.js +6 -6
  404. package/lib/module/credential/status/api/types.js.map +1 -1
  405. package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
  406. package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  407. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  408. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  409. package/lib/module/credential/status/v1.0.0/index.js +1 -1
  410. package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
  411. package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
  412. package/lib/module/credential/status/v1.0.0/types.js +17 -17
  413. package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
  414. package/lib/module/credential/status/v1.3.3/01-status-list.js +4 -4
  415. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  416. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  417. package/lib/module/credential/status/v1.3.3/03-get-status.js +3 -2
  418. package/lib/module/credential/status/v1.3.3/03-get-status.js.map +1 -1
  419. package/lib/module/credential/status/v1.3.3/index.js +3 -3
  420. package/lib/module/credential/status/v1.3.3/index.js.map +1 -1
  421. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
  422. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  423. package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
  424. package/lib/module/credential/trustmark/v1.3.3/index.js.map +1 -1
  425. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -54
  426. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  427. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  428. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  429. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  430. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  431. package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
  432. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  433. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
  434. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  435. package/lib/module/credentials-catalogue/v1.0.0/types.js +35 -35
  436. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  437. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  438. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  439. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  440. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  441. package/lib/module/credentials-catalogue/v1.3.3/index.js +1 -1
  442. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  443. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +22 -21
  444. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  445. package/lib/module/credentials-catalogue/v1.3.3/types.js +93 -93
  446. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  447. package/lib/module/credentials-catalogue/v1.3.3/utils.js +8 -8
  448. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  449. package/lib/module/index.js +10 -10
  450. package/lib/module/index.js.map +1 -1
  451. package/lib/module/mdoc/index.js +13 -5
  452. package/lib/module/mdoc/index.js.map +1 -1
  453. package/lib/module/mdoc/utils.js.map +1 -1
  454. package/lib/module/sd-jwt/__test__/types.test.js +9 -9
  455. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  456. package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
  457. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  458. package/lib/module/sd-jwt/index.js +9 -9
  459. package/lib/module/sd-jwt/index.js.map +1 -1
  460. package/lib/module/sd-jwt/types.js +18 -18
  461. package/lib/module/sd-jwt/types.js.map +1 -1
  462. package/lib/module/sd-jwt/utils.js +3 -3
  463. package/lib/module/sd-jwt/utils.js.map +1 -1
  464. package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
  465. package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
  466. package/lib/module/trust/common/build-chain.js +5 -2
  467. package/lib/module/trust/common/build-chain.js.map +1 -1
  468. package/lib/module/trust/common/errors.js +46 -37
  469. package/lib/module/trust/common/errors.js.map +1 -1
  470. package/lib/module/trust/common/types.js +22 -22
  471. package/lib/module/trust/common/types.js.map +1 -1
  472. package/lib/module/trust/common/utils.js +45 -45
  473. package/lib/module/trust/common/utils.js.map +1 -1
  474. package/lib/module/trust/common/verify-chain.js +96 -96
  475. package/lib/module/trust/common/verify-chain.js.map +1 -1
  476. package/lib/module/trust/v1.0.0/build-chain.js +2 -2
  477. package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
  478. package/lib/module/trust/v1.0.0/entities.js +1 -1
  479. package/lib/module/trust/v1.0.0/entities.js.map +1 -1
  480. package/lib/module/trust/v1.0.0/index.js +3 -3
  481. package/lib/module/trust/v1.0.0/index.js.map +1 -1
  482. package/lib/module/trust/v1.0.0/mappers.js +2 -2
  483. package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
  484. package/lib/module/trust/v1.0.0/types.js +46 -46
  485. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  486. package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
  487. package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
  488. package/lib/module/trust/v1.3.3/entities.js +1 -1
  489. package/lib/module/trust/v1.3.3/entities.js.map +1 -1
  490. package/lib/module/trust/v1.3.3/types.js +2 -2
  491. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  492. package/lib/module/utils/auth.js +2 -2
  493. package/lib/module/utils/auth.js.map +1 -1
  494. package/lib/module/utils/callbacks.js +47 -51
  495. package/lib/module/utils/callbacks.js.map +1 -1
  496. package/lib/module/utils/credentials.js +3 -3
  497. package/lib/module/utils/credentials.js.map +1 -1
  498. package/lib/module/utils/crypto.js +23 -25
  499. package/lib/module/utils/crypto.js.map +1 -1
  500. package/lib/module/utils/decoder.js +3 -3
  501. package/lib/module/utils/decoder.js.map +1 -1
  502. package/lib/module/utils/dpop.js +5 -5
  503. package/lib/module/utils/dpop.js.map +1 -1
  504. package/lib/module/utils/error-codes.js +19 -19
  505. package/lib/module/utils/error-codes.js.map +1 -1
  506. package/lib/module/utils/errors.js +47 -46
  507. package/lib/module/utils/errors.js.map +1 -1
  508. package/lib/module/utils/jwk.js +4 -5
  509. package/lib/module/utils/jwk.js.map +1 -1
  510. package/lib/module/utils/logging.js +15 -14
  511. package/lib/module/utils/logging.js.map +1 -1
  512. package/lib/module/utils/mappers.js +6 -8
  513. package/lib/module/utils/mappers.js.map +1 -1
  514. package/lib/module/utils/misc.js +7 -6
  515. package/lib/module/utils/misc.js.map +1 -1
  516. package/lib/module/utils/par.js +28 -28
  517. package/lib/module/utils/par.js.map +1 -1
  518. package/lib/module/utils/pop.js +5 -5
  519. package/lib/module/utils/pop.js.map +1 -1
  520. package/lib/module/utils/string.js.map +1 -1
  521. package/lib/module/utils/x509.js +2 -2
  522. package/lib/module/utils/x509.js.map +1 -1
  523. package/lib/module/utils/zod.js +1 -1
  524. package/lib/module/utils/zod.js.map +1 -1
  525. package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
  526. package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
  527. package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
  528. package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
  529. package/lib/module/wallet-instance/v1.3.3/index.js +3 -3
  530. package/lib/module/wallet-instance/v1.3.3/index.js.map +1 -1
  531. package/lib/module/wallet-instance-attestation/api/types.js +7 -7
  532. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  533. package/lib/module/wallet-instance-attestation/common/types.js +7 -7
  534. package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
  535. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
  536. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  537. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  538. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  539. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  540. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  541. package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
  542. package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  543. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  544. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  545. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +2 -2
  546. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  547. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  548. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  549. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  550. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  551. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  552. package/lib/module/wallet-unit-attestation/api/types.js +5 -5
  553. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  554. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +4 -4
  555. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  556. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +30 -27
  557. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  558. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  559. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  560. package/lib/typescript/IoWallet.d.ts +4 -4
  561. package/lib/typescript/IoWallet.d.ts.map +1 -1
  562. package/lib/typescript/api/index.d.ts +14 -14
  563. package/lib/typescript/api/index.d.ts.map +1 -1
  564. package/lib/typescript/client/index.d.ts +2 -2
  565. package/lib/typescript/client/index.d.ts.map +1 -1
  566. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
  567. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  568. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
  569. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  570. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
  571. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
  572. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +5 -5
  573. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  574. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
  575. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  576. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
  577. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  578. package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
  579. package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
  580. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
  581. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
  582. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
  583. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
  584. package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
  585. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  586. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
  587. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  588. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
  589. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  590. package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
  591. package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
  592. package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
  593. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
  594. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  595. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
  596. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  597. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  598. package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
  599. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  600. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
  601. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  602. package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
  603. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  604. package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
  605. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  606. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
  607. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  608. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  609. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  610. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  611. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +1 -1
  612. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  613. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  614. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +8 -8
  615. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  616. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  617. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  618. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +45 -45
  619. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  620. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
  621. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
  622. package/lib/typescript/credential/offer/api/index.d.ts +1 -1
  623. package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
  624. package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
  625. package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
  626. package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
  627. package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +1 -1
  628. package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +1 -1
  629. package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +1 -1
  630. package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +1 -1
  631. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
  632. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
  633. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
  634. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
  635. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
  636. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  637. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
  638. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  639. package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
  640. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  641. package/lib/typescript/credential/presentation/api/types.d.ts +72 -72
  642. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  643. package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
  644. package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
  645. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
  646. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  647. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
  648. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  649. package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
  650. package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
  651. package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
  652. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  653. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
  654. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
  655. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  656. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  657. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
  658. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  659. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
  660. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  661. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
  662. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  663. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
  664. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  665. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +1 -1
  666. package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +1 -1
  667. package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +1 -1
  668. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +1 -1
  669. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  670. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  671. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  672. package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -1
  673. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +41 -41
  674. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  675. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  676. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +2 -2
  677. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  678. package/lib/typescript/credential/status/api/index.d.ts +3 -3
  679. package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
  680. package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
  681. package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
  682. package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
  683. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  684. package/lib/typescript/credential/status/api/types.d.ts +12 -12
  685. package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
  686. package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
  687. package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
  688. package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
  689. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
  690. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
  691. package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
  692. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  693. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  694. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  695. package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +1 -1
  696. package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +1 -1
  697. package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
  698. package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
  699. package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
  700. package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
  701. package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +1 -1
  702. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +168 -165
  703. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  704. package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
  705. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  706. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
  707. package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
  708. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  709. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
  710. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  711. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +89 -89
  712. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  713. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
  714. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  715. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +158 -157
  716. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  717. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +186 -186
  718. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  719. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  720. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  721. package/lib/typescript/index.d.ts +12 -12
  722. package/lib/typescript/index.d.ts.map +1 -1
  723. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  724. package/lib/typescript/mdoc/utils.d.ts +2 -2
  725. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  726. package/lib/typescript/sd-jwt/index.d.ts +10 -10
  727. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  728. package/lib/typescript/sd-jwt/types.d.ts +15 -15
  729. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  730. package/lib/typescript/sd-jwt/utils.d.ts +1 -1
  731. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  732. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
  733. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  734. package/lib/typescript/trust/api/index.d.ts +11 -11
  735. package/lib/typescript/trust/api/index.d.ts.map +1 -1
  736. package/lib/typescript/trust/common/build-chain.d.ts +3 -3
  737. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  738. package/lib/typescript/trust/common/errors.d.ts +43 -43
  739. package/lib/typescript/trust/common/errors.d.ts.map +1 -1
  740. package/lib/typescript/trust/common/types.d.ts +37 -37
  741. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  742. package/lib/typescript/trust/common/utils.d.ts +17 -17
  743. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  744. package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
  745. package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
  746. package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
  747. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  748. package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
  749. package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
  750. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  751. package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
  752. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  753. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  754. package/lib/typescript/trust/v1.3.3/entities.d.ts +24 -24
  755. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  756. package/lib/typescript/trust/v1.3.3/types.d.ts +206 -206
  757. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  758. package/lib/typescript/utils/auth.d.ts +1 -1
  759. package/lib/typescript/utils/callbacks.d.ts +1 -1
  760. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  761. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  762. package/lib/typescript/utils/crypto.d.ts +1 -1
  763. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  764. package/lib/typescript/utils/decoder.d.ts +1 -1
  765. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  766. package/lib/typescript/utils/dpop.d.ts +3 -3
  767. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  768. package/lib/typescript/utils/error-codes.d.ts +18 -18
  769. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  770. package/lib/typescript/utils/errors.d.ts +49 -51
  771. package/lib/typescript/utils/errors.d.ts.map +1 -1
  772. package/lib/typescript/utils/integrity.d.ts +9 -9
  773. package/lib/typescript/utils/integrity.d.ts.map +1 -1
  774. package/lib/typescript/utils/jwk.d.ts +3 -3
  775. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  776. package/lib/typescript/utils/logging.d.ts +10 -10
  777. package/lib/typescript/utils/logging.d.ts.map +1 -1
  778. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  779. package/lib/typescript/utils/misc.d.ts +2 -2
  780. package/lib/typescript/utils/misc.d.ts.map +1 -1
  781. package/lib/typescript/utils/par.d.ts +13 -13
  782. package/lib/typescript/utils/par.d.ts.map +1 -1
  783. package/lib/typescript/utils/parser.d.ts +2 -2
  784. package/lib/typescript/utils/parser.d.ts.map +1 -1
  785. package/lib/typescript/utils/pop.d.ts +2 -2
  786. package/lib/typescript/utils/pop.d.ts.map +1 -1
  787. package/lib/typescript/utils/string.d.ts.map +1 -1
  788. package/lib/typescript/utils/x509.d.ts.map +1 -1
  789. package/lib/typescript/utils/zod.d.ts +5 -5
  790. package/lib/typescript/utils/zod.d.ts.map +1 -1
  791. package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
  792. package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
  793. package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
  794. package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
  795. package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +1 -1
  796. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
  797. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  798. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
  799. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  800. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
  801. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  802. package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
  803. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  804. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
  805. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
  806. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  807. package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
  808. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  809. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  810. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +10 -10
  811. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +5 -5
  812. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  813. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -1
  814. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +20 -20
  815. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -1
  816. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +10 -10
  817. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  818. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -1
  819. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -1
  820. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +11 -11
  821. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +6 -6
  822. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  823. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -1
  824. package/package.json +10 -7
  825. package/src/IoWallet.ts +11 -9
  826. package/src/api/index.ts +27 -27
  827. package/src/client/index.ts +14 -13
  828. package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
  829. package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
  830. package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
  831. package/src/credential/issuance/api/04-authorize-access.ts +4 -3
  832. package/src/credential/issuance/api/05-obtain-credential.ts +8 -7
  833. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
  834. package/src/credential/issuance/api/IssuerConfig.ts +20 -19
  835. package/src/credential/issuance/api/index.ts +4 -4
  836. package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
  837. package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
  838. package/src/credential/issuance/api/types.ts +9 -8
  839. package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
  840. package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
  841. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
  842. package/src/credential/issuance/common/errors.ts +0 -4
  843. package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
  844. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
  845. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
  846. package/src/credential/issuance/mrtd-pop/index.ts +7 -6
  847. package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
  848. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
  849. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
  850. package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
  851. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
  852. package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
  853. package/src/credential/issuance/v1.0.0/index.ts +11 -10
  854. package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
  855. package/src/credential/issuance/v1.0.0/types.ts +2 -1
  856. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +6 -4
  857. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +33 -30
  858. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +54 -51
  859. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +20 -18
  860. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +49 -43
  861. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +5 -4
  862. package/src/credential/issuance/v1.3.3/index.ts +11 -10
  863. package/src/credential/issuance/v1.3.3/mappers.ts +25 -22
  864. package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
  865. package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
  866. package/src/credential/offer/api/index.ts +2 -2
  867. package/src/credential/offer/common/errors.ts +0 -8
  868. package/src/credential/offer/v1.0.0/index.ts +5 -4
  869. package/src/credential/offer/v1.3.3/01-resolve-credential-offer.ts +5 -3
  870. package/src/credential/offer/v1.3.3/02-extract-grant-details.ts +6 -4
  871. package/src/credential/offer/v1.3.3/03-validate-credential-offer.ts +6 -4
  872. package/src/credential/offer/v1.3.3/index.ts +2 -1
  873. package/src/credential/presentation/api/01-start-flow.ts +4 -4
  874. package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
  875. package/src/credential/presentation/api/03-get-request-object.ts +1 -1
  876. package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
  877. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  878. package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
  879. package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
  880. package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
  881. package/src/credential/presentation/api/index.ts +4 -4
  882. package/src/credential/presentation/api/types.ts +68 -66
  883. package/src/credential/presentation/common/errors.ts +32 -35
  884. package/src/credential/presentation/common/utils/dcql.ts +34 -30
  885. package/src/credential/presentation/common/utils/http.ts +2 -2
  886. package/src/credential/presentation/common/utils/mdoc.ts +17 -15
  887. package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
  888. package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
  889. package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
  890. package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
  891. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
  892. package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
  893. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
  894. package/src/credential/presentation/v1.0.0/index.ts +6 -5
  895. package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
  896. package/src/credential/presentation/v1.0.0/types.ts +11 -10
  897. package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
  898. package/src/credential/presentation/v1.0.0/utils.ts +4 -3
  899. package/src/credential/presentation/v1.3.3/01-start-flow.ts +5 -3
  900. package/src/credential/presentation/v1.3.3/02-evaluate-rp-trust.ts +3 -2
  901. package/src/credential/presentation/v1.3.3/03-get-request-object.ts +4 -2
  902. package/src/credential/presentation/v1.3.3/04-verify-certificate-chain.ts +9 -7
  903. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +24 -14
  904. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +37 -23
  905. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +40 -32
  906. package/src/credential/presentation/v1.3.3/index.ts +7 -6
  907. package/src/credential/presentation/v1.3.3/mappers.ts +13 -12
  908. package/src/credential/presentation/v1.3.3/sdkErrorMapper.ts +9 -7
  909. package/src/credential/presentation/v1.3.3/types.ts +3 -3
  910. package/src/credential/status/api/index.ts +4 -4
  911. package/src/credential/status/api/status-assertion.ts +7 -6
  912. package/src/credential/status/api/status-list.ts +17 -17
  913. package/src/credential/status/api/types.ts +12 -11
  914. package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
  915. package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
  916. package/src/credential/status/v1.0.0/index.ts +2 -1
  917. package/src/credential/status/v1.0.0/mappers.ts +2 -1
  918. package/src/credential/status/v1.0.0/types.ts +17 -16
  919. package/src/credential/status/v1.3.3/01-status-list.ts +9 -7
  920. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +3 -1
  921. package/src/credential/status/v1.3.3/03-get-status.ts +6 -4
  922. package/src/credential/status/v1.3.3/index.ts +3 -2
  923. package/src/credential/trustmark/api/index.ts +11 -11
  924. package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
  925. package/src/credential/trustmark/v1.0.0/index.ts +2 -1
  926. package/src/credential/trustmark/v1.3.3/index.ts +2 -1
  927. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +48 -46
  928. package/src/credentials-catalogue/api/index.ts +14 -12
  929. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
  930. package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
  931. package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
  932. package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
  933. package/src/credentials-catalogue/v1.0.0/types.ts +32 -31
  934. package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +14 -14
  935. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +4 -3
  936. package/src/credentials-catalogue/v1.3.3/index.ts +2 -1
  937. package/src/credentials-catalogue/v1.3.3/mappers.ts +28 -27
  938. package/src/credentials-catalogue/v1.3.3/types.ts +82 -81
  939. package/src/credentials-catalogue/v1.3.3/utils.ts +14 -12
  940. package/src/index.ts +23 -23
  941. package/src/mdoc/index.ts +26 -11
  942. package/src/mdoc/utils.ts +6 -4
  943. package/src/sd-jwt/__test__/types.test.ts +6 -6
  944. package/src/sd-jwt/__test__/utils.test.ts +2 -2
  945. package/src/sd-jwt/index.ts +10 -8
  946. package/src/sd-jwt/types.ts +14 -13
  947. package/src/sd-jwt/utils.ts +10 -9
  948. package/src/trust/api/TrustAnchorConfig.ts +3 -2
  949. package/src/trust/api/index.ts +19 -16
  950. package/src/trust/common/build-chain.ts +28 -18
  951. package/src/trust/common/errors.ts +58 -50
  952. package/src/trust/common/types.ts +22 -21
  953. package/src/trust/common/utils.ts +65 -64
  954. package/src/trust/common/verify-chain.ts +140 -138
  955. package/src/trust/v1.0.0/build-chain.ts +1 -1
  956. package/src/trust/v1.0.0/entities.ts +18 -16
  957. package/src/trust/v1.0.0/index.ts +5 -4
  958. package/src/trust/v1.0.0/mappers.ts +3 -2
  959. package/src/trust/v1.0.0/types.ts +43 -42
  960. package/src/trust/v1.0.0/verify-chain.ts +3 -2
  961. package/src/trust/v1.3.3/entities.ts +6 -4
  962. package/src/trust/v1.3.3/types.ts +10 -9
  963. package/src/utils/auth.ts +1 -1
  964. package/src/utils/callbacks.ts +38 -38
  965. package/src/utils/credentials.ts +7 -5
  966. package/src/utils/crypto.ts +36 -36
  967. package/src/utils/decoder.ts +7 -5
  968. package/src/utils/dpop.ts +5 -6
  969. package/src/utils/error-codes.ts +20 -20
  970. package/src/utils/errors.ts +89 -87
  971. package/src/utils/integrity.ts +11 -11
  972. package/src/utils/jwk.ts +4 -4
  973. package/src/utils/logging.ts +21 -20
  974. package/src/utils/mappers.ts +14 -11
  975. package/src/utils/misc.ts +15 -12
  976. package/src/utils/par.ts +30 -29
  977. package/src/utils/parser.ts +4 -4
  978. package/src/utils/pop.ts +4 -5
  979. package/src/utils/string.ts +2 -2
  980. package/src/utils/x509.ts +5 -4
  981. package/src/utils/zod.ts +4 -4
  982. package/src/wallet-instance/api/index.ts +24 -24
  983. package/src/wallet-instance/common/wallet-instance.ts +8 -7
  984. package/src/wallet-instance/v1.0.0/index.ts +5 -4
  985. package/src/wallet-instance/v1.3.3/index.ts +5 -4
  986. package/src/wallet-instance-attestation/api/index.ts +18 -17
  987. package/src/wallet-instance-attestation/api/types.ts +12 -11
  988. package/src/wallet-instance-attestation/common/types.ts +7 -6
  989. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
  990. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
  991. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
  992. package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
  993. package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
  994. package/src/wallet-instance-attestation/v1.3.3/index.ts +4 -3
  995. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +25 -23
  996. package/src/wallet-instance-attestation/v1.3.3/types.ts +3 -2
  997. package/src/wallet-instance-attestation/v1.3.3/utils.ts +3 -2
  998. package/src/wallet-unit-attestation/api/index.ts +23 -23
  999. package/src/wallet-unit-attestation/api/types.ts +11 -10
  1000. package/src/wallet-unit-attestation/v1.3.3/index.ts +6 -5
  1001. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +41 -33
  1002. package/src/wallet-unit-attestation/v1.3.3/types.ts +2 -1
  1003. package/src/wallet-unit-attestation/v1.3.3/utils.ts +1 -0
@@ -6,25 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.obtainCredentialsBatch = exports.obtainCredential = exports.createNonceProof = void 0;
7
7
  var _ioReactNativeJwt = require("@pagopa/io-react-native-jwt");
8
8
  var _uuid = require("uuid");
9
- var _misc = require("../../../utils/misc");
10
- var _errors = require("../../../utils/errors");
11
9
  var _dpop = require("../../../utils/dpop");
10
+ var _errors = require("../../../utils/errors");
12
11
  var _logging = require("../../../utils/logging");
12
+ var _misc = require("../../../utils/misc");
13
13
  var _types = require("./types");
14
14
  const createNonceProof = async (nonce, issuer, audience, ctx) => {
15
15
  const jwk = await ctx.getPublicKey();
16
16
  return new _ioReactNativeJwt.SignJWT(ctx).setPayload({
17
17
  nonce
18
18
  }).setProtectedHeader({
19
- typ: "openid4vci-proof+jwt",
20
- jwk
19
+ jwk,
20
+ typ: "openid4vci-proof+jwt"
21
21
  }).setAudience(audience).setIssuer(issuer).setIssuedAt().setExpirationTime("5min").sign();
22
22
  };
23
23
  exports.createNonceProof = createNonceProof;
24
24
  const obtainCredential = async (issuerConf, accessToken, clientId, credentialDefinition, context) => {
25
+ var _credentialRes$data$c;
25
26
  const {
26
- credentialCryptoContext,
27
27
  appFetch = fetch,
28
+ credentialCryptoContext,
28
29
  dPopCryptoContext
29
30
  } = context;
30
31
  const {
@@ -39,10 +40,10 @@ const obtainCredential = async (issuerConf, accessToken, clientId, credentialDef
39
40
  const {
40
41
  c_nonce
41
42
  } = await appFetch(nonceUrl, {
42
- method: "POST",
43
43
  headers: {
44
44
  "Content-Type": "application/json"
45
- }
45
+ },
46
+ method: "POST"
46
47
  }).then((0, _misc.hasStatusOrThrow)(200)).then(res => res.json()).then(body => _types.NonceResponse.parse(body));
47
48
 
48
49
  /**
@@ -83,20 +84,20 @@ const obtainCredential = async (issuerConf, accessToken, clientId, credentialDef
83
84
  };
84
85
  _logging.Logger.log(_logging.LogLevel.DEBUG, `Credential request body: ${JSON.stringify(credentialRequestFormBody)}`);
85
86
  const tokenRequestSignedDPop = await (0, _dpop.createDPopToken)({
87
+ ath: await (0, _ioReactNativeJwt.sha256ToBase64)(accessToken.access_token),
86
88
  htm: "POST",
87
89
  htu: credentialUrl,
88
- jti: `${(0, _uuid.v4)()}`,
89
- ath: await (0, _ioReactNativeJwt.sha256ToBase64)(accessToken.access_token)
90
+ jti: `${(0, _uuid.v4)()}`
90
91
  }, dPopCryptoContext);
91
92
  _logging.Logger.log(_logging.LogLevel.DEBUG, `Token request DPoP: ${tokenRequestSignedDPop}`);
92
93
  const credentialRes = await appFetch(credentialUrl, {
93
- method: "POST",
94
+ body: JSON.stringify(credentialRequestFormBody),
94
95
  headers: {
96
+ Authorization: `${accessToken.token_type} ${accessToken.access_token}`,
95
97
  "Content-Type": "application/json",
96
- DPoP: tokenRequestSignedDPop,
97
- Authorization: `${accessToken.token_type} ${accessToken.access_token}`
98
+ DPoP: tokenRequestSignedDPop
98
99
  },
99
- body: JSON.stringify(credentialRequestFormBody)
100
+ method: "POST"
100
101
  }).then((0, _misc.hasStatusOrThrow)(200)).then(res => res.json()).then(body => _types.CredentialResponse.safeParse(body)).catch(handleObtainCredentialError);
101
102
  if (!credentialRes.success) {
102
103
  _logging.Logger.log(_logging.LogLevel.ERROR, `Credential Response validation failed: ${credentialRes.error.message}`);
@@ -109,11 +110,19 @@ const obtainCredential = async (issuerConf, accessToken, clientId, credentialDef
109
110
 
110
111
  // Extract the format corresponding to the credential_configuration_id used
111
112
  const issuerCredentialConfig = issuerConf.credential_configurations_supported[credential_configuration_id];
113
+ const credential = (_credentialRes$data$c = credentialRes.data.credentials[0]) === null || _credentialRes$data$c === void 0 ? void 0 : _credentialRes$data$c.credential;
114
+ if (!credential) {
115
+ throw new _errors.IoWalletError(`No credential found in the response for credential_configuration_id ${credential_configuration_id}`);
116
+ }
117
+ const format = issuerCredentialConfig === null || issuerCredentialConfig === void 0 ? void 0 : issuerCredentialConfig.format;
118
+ if (!format) {
119
+ throw new _errors.IoWalletError(`No format found for credential_configuration_id ${credential_configuration_id} in the issuer configuration`);
120
+ }
112
121
 
113
122
  // TODO: [SIW-2264] Handle multiple credentials
114
123
  return {
115
- credential: credentialRes.data.credentials.at(0).credential,
116
- format: issuerCredentialConfig.format
124
+ credential,
125
+ format
117
126
  };
118
127
  };
119
128
 
@@ -1 +1 @@
1
- {"version":3,"names":["_ioReactNativeJwt","require","_uuid","_misc","_errors","_dpop","_logging","_types","createNonceProof","nonce","issuer","audience","ctx","jwk","getPublicKey","SignJWT","setPayload","setProtectedHeader","typ","setAudience","setIssuer","setIssuedAt","setExpirationTime","sign","exports","obtainCredential","issuerConf","accessToken","clientId","credentialDefinition","context","credentialCryptoContext","appFetch","fetch","dPopCryptoContext","credential_configuration_id","credential_identifier","credentialUrl","credential_endpoint","issuerUrl","credential_issuer","nonceUrl","nonce_endpoint","c_nonce","method","headers","then","hasStatusOrThrow","res","json","body","NonceResponse","parse","signedNonceProof","Logger","log","LogLevel","DEBUG","containsCredentialDefinition","authorization_details","some","c","credential_identifiers","includes","ERROR","ValidationFailed","message","credentialRequestFormBody","proof","jwt","proof_type","JSON","stringify","tokenRequestSignedDPop","createDPopToken","htm","htu","jti","uuidv4","ath","sha256ToBase64","access_token","credentialRes","DPoP","Authorization","token_type","CredentialResponse","safeParse","catch","handleObtainCredentialError","success","error","reason","data","issuerCredentialConfig","credential_configurations_supported","credential","credentials","at","format","e","UnexpectedStatusCodeError","ResponseErrorBuilder","IssuerResponseError","handle","code","IssuerResponseErrorCodes","CredentialIssuingNotSynchronous","CredentialInvalidStatus","CredentialRequestFailed","buildFrom","obtainCredentialsBatch","UnimplementedFeatureError"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/05-obtain-credential.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAQA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAEO,MAAMO,gBAAgB,GAAG,MAAAA,CAC9BC,KAAa,EACbC,MAAc,EACdC,QAAgB,EAChBC,GAAkB,KACE;EACpB,MAAMC,GAAG,GAAG,MAAMD,GAAG,CAACE,YAAY,CAAC,CAAC;EACpC,OAAO,IAAIC,yBAAO,CAACH,GAAG,CAAC,CACpBI,UAAU,CAAC;IACVP;EACF,CAAC,CAAC,CACDQ,kBAAkB,CAAC;IAClBC,GAAG,EAAE,sBAAsB;IAC3BL;EACF,CAAC,CAAC,CACDM,WAAW,CAACR,QAAQ,CAAC,CACrBS,SAAS,CAACV,MAAM,CAAC,CACjBW,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,MAAM,CAAC,CACzBC,IAAI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K,EAAG,8CAA6CoC,CAAE,EAAC,CAAC;EAE7E,IAAI,EAAEA,CAAC,YAAYC,iCAAyB,CAAC,EAAE;IAC7C,MAAMD,CAAC;EACT;EAEA,MAAM,IAAIE,4BAAoB,CAACC,2BAAmB,CAAC,CAChDC,MAAM,CAAC,GAAG,EAAE;IACX;IACA;IACAC,IAAI,EAAEC,gCAAwB,CAACC,+BAA+B;IAC9DzC,OAAO,EACL;EACJ,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACE,uBAAuB;IACtD1C,OAAO,EAAE;EACX,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACE,uBAAuB;IACtD1C,OAAO,EAAE;EACX,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACG,uBAAuB;IACtD3C,OAAO,EAAE;EACX,CAAC,CAAC,CACD4C,SAAS,CAACV,CAAC,CAAC;AACjB,CAAC;AAEM,MAAMW,sBAA6D,GACxEA,CAAA,KAAM;EACJ,MAAM,IAAIC,iCAAyB,CAAC,wBAAwB,EAAE,OAAO,CAAC;AACxE,CAAC;AAACxF,OAAA,CAAAuF,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"names":["_ioReactNativeJwt","require","_uuid","_dpop","_errors","_logging","_misc","_types","createNonceProof","nonce","issuer","audience","ctx","jwk","getPublicKey","SignJWT","setPayload","setProtectedHeader","typ","setAudience","setIssuer","setIssuedAt","setExpirationTime","sign","exports","obtainCredential","issuerConf","accessToken","clientId","credentialDefinition","context","_credentialRes$data$c","appFetch","fetch","credentialCryptoContext","dPopCryptoContext","credential_configuration_id","credential_identifier","credentialUrl","credential_endpoint","issuerUrl","credential_issuer","nonceUrl","nonce_endpoint","c_nonce","headers","method","then","hasStatusOrThrow","res","json","body","NonceResponse","parse","signedNonceProof","Logger","log","LogLevel","DEBUG","containsCredentialDefinition","authorization_details","some","c","credential_identifiers","includes","ERROR","ValidationFailed","message","credentialRequestFormBody","proof","jwt","proof_type","JSON","stringify","tokenRequestSignedDPop","createDPopToken","ath","sha256ToBase64","access_token","htm","htu","jti","uuidv4","credentialRes","Authorization","token_type","DPoP","CredentialResponse","safeParse","catch","handleObtainCredentialError","success","error","reason","data","issuerCredentialConfig","credential_configurations_supported","credential","credentials","IoWalletError","format","e","UnexpectedStatusCodeError","ResponseErrorBuilder","IssuerResponseError","handle","code","IssuerResponseErrorCodes","CredentialIssuingNotSynchronous","CredentialInvalidStatus","CredentialRequestFailed","buildFrom","obtainCredentialsBatch","UnimplementedFeatureError"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/05-obtain-credential.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAIA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AASA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAEO,MAAMO,gBAAgB,GAAG,MAAAA,CAC9BC,KAAa,EACbC,MAAc,EACdC,QAAgB,EAChBC,GAAkB,KACE;EACpB,MAAMC,GAAG,GAAG,MAAMD,GAAG,CAACE,YAAY,CAAC,CAAC;EACpC,OAAO,IAAIC,yBAAO,CAACH,GAAG,CAAC,CACpBI,UAAU,CAAC;IACVP;EACF,CAAC,CAAC,CACDQ,kBAAkB,CAAC;IAClBJ,GAAG;IACHK,GAAG,EAAE;EACP,CAAC,CAAC,CACDC,WAAW,CAACR,QAAQ,CAAC,CACrBS,SAAS,CAACV,MAAM,CAAC,CACjBW,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,MAAM,CAAC,CACzBC,IAAI,CAAC,CAAC;AACX,CAAC;AAACC,OAAA,CAAAhB,gBAAA,GAAAA,gBAAA;AAEK,M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kD/D,2BAA4B,8BACjF,CAAC;EACH;;EAEA;EACA,OAAO;IACL6D,UAAU;IACVG;EACF,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AALA5E,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAMA,MAAMiE,2BAA2B,GAAIW,CAAU,IAAK;EAClD9C,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACQ,KAAK,EAAG,8CAA6CoC,CAAE,EAAC,CAAC;EAE7E,IAAI,EAAEA,CAAC,YAAYC,iCAAyB,CAAC,EAAE;IAC7C,MAAMD,CAAC;EACT;EAEA,MAAM,IAAIE,4BAAoB,CAACC,2BAAmB,CAAC,CAChDC,MAAM,CAAC,GAAG,EAAE;IACX;IACA;IACAC,IAAI,EAAEC,gCAAwB,CAACC,+BAA+B;IAC9DzC,OAAO,EACL;EACJ,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACE,uBAAuB;IACtD1C,OAAO,EAAE;EACX,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACE,uBAAuB;IACtD1C,OAAO,EAAE;EACX,CAAC,CAAC,CACDsC,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEC,gCAAwB,CAACG,uBAAuB;IACtD3C,OAAO,EAAE;EACX,CAAC,CAAC,CACD4C,SAAS,CAACV,CAAC,CAAC;AACjB,CAAC;AAEM,MAAMW,sBAA6D,GACxEA,CAAA,KAAM;EACJ,MAAM,IAAIC,iCAAyB,CAAC,wBAAwB,EAAE,OAAO,CAAC;AACxE,CAAC;AAACzF,OAAA,CAAAwF,sBAAA,GAAAA,sBAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["_errors","require","_logging","_verifyAndParseCredential","_verifyAndParseCredential2","verifyAndParseCredential","issuerConf","credential","credentialConfigurationId","context","x509CertRoot","_issuerConf$credentia","format","credential_configurations_supported","Logger","log","LogLevel","DEBUG","verifyAndParseCredentialSdJwt","verifyAndParseCredentialMDoc","message","ERROR","IoWalletError","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/06-verify-and-parse-credential.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAGO,MAAMI,wBAAiE,GAC5E,MAAAA,CACEC,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OAAO,EACPC,YAAY,KACT;EAAA,IAAAC,qBAAA;EACH,MAAMC,MAAM,IAAAD,qBAAA,GACVL,UAAU,CAACO,mCAAmC,CAACL,yBAAyB,CAAC,cAAAG,qBAAA,uBAAzEA,qBAAA,CACIC,MAAM;EAEZ,QAAQA,MAAM;IACZ,KAAK,WAAW;MAAE;QAChBE,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACC,KAAK,EAAE,wCAAwC,CAAC;QACpE,OAAO,IAAAC,wDAA6B,EAClCZ,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OACF,CAAC;MACH;IACA,KAAK,UAAU;MAAE;QACfK,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACC,KAAK,EAAE,uCAAuC,CAAC;QACnE,OAAO,IAAAE,sDAA4B,EACjCb,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OAAO,EACPC,YACF,CAAC;MACH;IAEA;MAAS;QACP,MAAMU,OAAO,GAAI,kCAAiCR,MAAO,EAAC;QAC1DE,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACK,KAAK,EAAED,OAAO,CAAC;QACnC,MAAM,IAAIE,qBAAa,CAACF,OAAO,CAAC;MAClC;EACF;AACF,CAAC;AAACG,OAAA,CAAAlB,wBAAA,GAAAA,wBAAA"}
1
+ {"version":3,"names":["_errors","require","_logging","_verifyAndParseCredential","_verifyAndParseCredential2","verifyAndParseCredential","issuerConf","credential","credentialConfigurationId","context","x509CertRoot","_issuerConf$credentia","format","credential_configurations_supported","Logger","log","LogLevel","DEBUG","verifyAndParseCredentialSdJwt","verifyAndParseCredentialMDoc","message","ERROR","IoWalletError","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/06-verify-and-parse-credential.ts"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAEO,MAAMI,wBAAiE,GAC5E,MAAAA,CACEC,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OAAO,EACPC,YAAY,KACT;EAAA,IAAAC,qBAAA;EACH,MAAMC,MAAM,IAAAD,qBAAA,GACVL,UAAU,CAACO,mCAAmC,CAACL,yBAAyB,CAAC,cAAAG,qBAAA,uBAAzEA,qBAAA,CACIC,MAAM;EAEZ,QAAQA,MAAM;IACZ,KAAK,WAAW;MAAE;QAChBE,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACC,KAAK,EAAE,wCAAwC,CAAC;QACpE,OAAO,IAAAC,wDAA6B,EAClCZ,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OACF,CAAC;MACH;IACA,KAAK,UAAU;MAAE;QACfK,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACC,KAAK,EAAE,uCAAuC,CAAC;QACnE,OAAO,IAAAE,sDAA4B,EACjCb,UAAU,EACVC,UAAU,EACVC,yBAAyB,EACzBC,OAAO,EACPC,YACF,CAAC;MACH;IAEA;MAAS;QACP,MAAMU,OAAO,GAAI,kCAAiCR,MAAO,EAAC;QAC1DE,eAAM,CAACC,GAAG,CAACC,iBAAQ,CAACK,KAAK,EAAED,OAAO,CAAC;QACnC,MAAM,IAAIE,qBAAa,CAACF,OAAO,CAAC;MAClC;EACF;AACF,CAAC;AAACG,OAAA,CAAAlB,wBAAA,GAAAA,wBAAA"}
@@ -4,27 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Issuance = void 0;
7
+ var _mrtdPop = require("../mrtd-pop");
7
8
  var _evaluateIssuerTrust = require("./01-evaluate-issuer-trust");
8
9
  var _startUserAuthorization = require("./02-start-user-authorization");
9
10
  var _completeUserAuthorization = require("./03-complete-user-authorization");
10
11
  var _authorizeAccess = require("./04-authorize-access");
11
12
  var _obtainCredential = require("./05-obtain-credential");
12
13
  var _verifyAndParseCredential = require("./06-verify-and-parse-credential");
13
- var _mrtdPop = require("../mrtd-pop");
14
14
  const Issuance = {
15
- evaluateIssuerTrust: _evaluateIssuerTrust.evaluateIssuerTrust,
16
- startUserAuthorization: _startUserAuthorization.startUserAuthorization,
15
+ authorizeAccess: _authorizeAccess.authorizeAccess,
17
16
  buildAuthorizationUrl: _completeUserAuthorization.buildAuthorizationUrl,
18
- completePidUserAuthorizationWithQueryMode: _completeUserAuthorization.completePidUserAuthorizationWithQueryMode,
19
17
  completeEaaUserAuthorizationWithQueryMode: _completeUserAuthorization.completeEaaUserAuthorizationWithQueryMode,
18
+ completePidUserAuthorizationWithQueryMode: _completeUserAuthorization.completePidUserAuthorizationWithQueryMode,
19
+ completeUserAuthorizationWithFormPostJwtMode: _completeUserAuthorization.completeUserAuthorizationWithFormPostJwtMode,
20
20
  continueUserAuthorizationWithMRTDPoPChallenge: _completeUserAuthorization.continueUserAuthorizationWithMRTDPoPChallenge,
21
+ evaluateIssuerTrust: _evaluateIssuerTrust.evaluateIssuerTrust,
21
22
  getRequestedCredentialToBePresented: _completeUserAuthorization.getRequestedCredentialToBePresented,
22
- completeUserAuthorizationWithFormPostJwtMode: _completeUserAuthorization.completeUserAuthorizationWithFormPostJwtMode,
23
- authorizeAccess: _authorizeAccess.authorizeAccess,
23
+ MRTDPoP: _mrtdPop.MRTDPoPv1_0,
24
24
  obtainCredential: _obtainCredential.obtainCredential,
25
25
  obtainCredentialsBatch: _obtainCredential.obtainCredentialsBatch,
26
- verifyAndParseCredential: _verifyAndParseCredential.verifyAndParseCredential,
27
- MRTDPoP: _mrtdPop.MRTDPoPv1_0
26
+ startUserAuthorization: _startUserAuthorization.startUserAuthorization,
27
+ verifyAndParseCredential: _verifyAndParseCredential.verifyAndParseCredential
28
28
  };
29
29
  exports.Issuance = Issuance;
30
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_evaluateIssuerTrust","require","_startUserAuthorization","_completeUserAuthorization","_authorizeAccess","_obtainCredential","_verifyAndParseCredential","_mrtdPop","Issuance","evaluateIssuerTrust","startUserAuthorization","buildAuthorizationUrl","completePidUserAuthorizationWithQueryMode","completeEaaUserAuthorizationWithQueryMode","continueUserAuthorizationWithMRTDPoPChallenge","getRequestedCredentialToBePresented","completeUserAuthorizationWithFormPostJwtMode","authorizeAccess","obtainCredential","obtainCredentialsBatch","verifyAndParseCredential","MRTDPoP","MRTDPoPv1_0","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/index.ts"],"mappings":";;;;;;AACA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,yBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEO,MAAMO,QAAqB,GAAG;EACnCC,mBAAmB,EAAnBA,wCAAmB;EACnBC,sBAAsB,EAAtBA,8CAAsB;EACtBC,qBAAqB,EAArBA,gDAAqB;EACrBC,yCAAyC,EAAzCA,oEAAyC;EACzCC,yCAAyC,EAAzCA,oEAAyC;EACzCC,6CAA6C,EAA7CA,wEAA6C;EAC7CC,mCAAmC,EAAnCA,8DAAmC;EACnCC,4CAA4C,EAA5CA,uEAA4C;EAC5CC,eAAe,EAAfA,gCAAe;EACfC,gBAAgB,EAAhBA,kCAAgB;EAChBC,sBAAsB,EAAtBA,wCAAsB;EACtBC,wBAAwB,EAAxBA,kDAAwB;EACxBC,OAAO,EAAEC;AACX,CAAC;AAACC,OAAA,CAAAf,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_mrtdPop","require","_evaluateIssuerTrust","_startUserAuthorization","_completeUserAuthorization","_authorizeAccess","_obtainCredential","_verifyAndParseCredential","Issuance","authorizeAccess","buildAuthorizationUrl","completeEaaUserAuthorizationWithQueryMode","completePidUserAuthorizationWithQueryMode","completeUserAuthorizationWithFormPostJwtMode","continueUserAuthorizationWithMRTDPoPChallenge","evaluateIssuerTrust","getRequestedCredentialToBePresented","MRTDPoP","MRTDPoPv1_0","obtainCredential","obtainCredentialsBatch","startUserAuthorization","verifyAndParseCredential","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/index.ts"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAQA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAIA,IAAAM,yBAAA,GAAAN,OAAA;AAEO,MAAMO,QAAqB,GAAG;EACnCC,eAAe,EAAfA,gCAAe;EACfC,qBAAqB,EAArBA,gDAAqB;EACrBC,yCAAyC,EAAzCA,oEAAyC;EACzCC,yCAAyC,EAAzCA,oEAAyC;EACzCC,4CAA4C,EAA5CA,uEAA4C;EAC5CC,6CAA6C,EAA7CA,wEAA6C;EAC7CC,mBAAmB,EAAnBA,wCAAmB;EACnBC,mCAAmC,EAAnCA,8DAAmC;EACnCC,OAAO,EAAEC,oBAAW;EACpBC,gBAAgB,EAAhBA,kCAAgB;EAChBC,sBAAsB,EAAtBA,wCAAsB;EACtBC,sBAAsB,EAAtBA,8CAAsB;EACtBC,wBAAwB,EAAxBA;AACF,CAAC;AAACC,OAAA,CAAAf,QAAA,GAAAA,QAAA"}
@@ -7,23 +7,23 @@ exports.mapToIssuerConfig = void 0;
7
7
  var _mappers = require("../../../utils/mappers");
8
8
  const mapToIssuerConfig = (0, _mappers.createMapper)(x => {
9
9
  const {
10
+ federation_entity,
10
11
  oauth_authorization_server,
11
12
  openid_credential_issuer,
12
- openid_credential_verifier,
13
- federation_entity
13
+ openid_credential_verifier
14
14
  } = x.payload.metadata;
15
15
  return {
16
16
  authorization_endpoint: oauth_authorization_server.authorization_endpoint,
17
+ credential_configurations_supported: openid_credential_issuer.credential_configurations_supported,
17
18
  credential_endpoint: openid_credential_issuer.credential_endpoint,
18
19
  credential_issuer: openid_credential_issuer.credential_issuer,
19
- credential_configurations_supported: openid_credential_issuer.credential_configurations_supported,
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,
21
+ federation_entity,
20
22
  keys: [...openid_credential_issuer.jwks.keys, ...oauth_authorization_server.jwks.keys],
23
+ nonce_endpoint: openid_credential_issuer.nonce_endpoint,
21
24
  pushed_authorization_request_endpoint: oauth_authorization_server.pushed_authorization_request_endpoint,
22
- token_endpoint: oauth_authorization_server.token_endpoint,
23
25
  status_assertion_endpoint: openid_credential_issuer.status_attestation_endpoint,
24
- nonce_endpoint: openid_credential_issuer.nonce_endpoint,
25
- federation_entity,
26
- 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
26
+ token_endpoint: oauth_authorization_server.token_endpoint
27
27
  };
28
28
  });
29
29
  exports.mapToIssuerConfig = mapToIssuerConfig;
@@ -1 +1 @@
1
- {"version":3,"names":["_mappers","require","mapToIssuerConfig","createMapper","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","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/mappers.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAGO,MAAMC,iBAAiB,GAAG,IAAAC,qBAAY,EAG1CC,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;AAACC,OAAA,CAAAvB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_mappers","require","mapToIssuerConfig","createMapper","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","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/mappers.ts"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,GAAG,IAAAC,qBAAY,EAG1CC,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;AAACC,OAAA,CAAAvB,iBAAA,GAAAA,iBAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CredentialResponse","object","credentials","array","credential","string","notification_id","optional","exports","ResponseUriResultShape","redirect_uri","NonceResponse","c_nonce"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAkE,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAElE;;AAKO,MAAMW,kBAAkB,GAAG1B,CAAC,CAAC2B,MAAM,CAAC;EACzCC,WAAW,EAAE5B,CAAC,CAAC6B,KAAK,CAClB7B,CAAC,CAAC2B,MAAM,CAAC;IACPG,UAAU,EAAE9B,CAAC,CAAC+B,MAAM,CAAC;EACvB,CAAC,CACH,CAAC;EACDC,eAAe,EAAEhC,CAAC,CAAC+B,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;AACvC,CAAC,CAAC;;AAEF;AACA;AACA;AAFAC,OAAA,CAAAR,kBAAA,GAAAA,kBAAA;AAGO,MAAMS,sBAAsB,GAAGnC,CAAC,CAAC2B,MAAM,CAAC;EAC7CS,YAAY,EAAEpC,CAAC,CAAC+B,MAAM,CAAC;AACzB,CAAC,CAAC;AAACG,OAAA,CAAAC,sBAAA,GAAAA,sBAAA;AAGI,MAAME,aAAa,GAAGrC,CAAC,CAAC2B,MAAM,CAAC;EACpCW,OAAO,EAAEtC,CAAC,CAAC+B,MAAM,CAAC;AACpB,CAAC,CAAC;AAACG,OAAA,CAAAG,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CredentialResponse","object","credentials","array","credential","string","notification_id","optional","exports","ResponseUriResultShape","redirect_uri","NonceResponse","c_nonce"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/types.ts"],"mappings":";;;;;;;;;;;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B,MAAM,CAAC;EACzCC,WAAW,EAAE5B,CAAC,CAAC6B,KAAK,CAClB7B,CAAC,CAAC2B,MAAM,CAAC;IACPG,UAAU,EAAE9B,CAAC,CAAC+B,MAAM,CAAC;EACvB,CAAC,CACH,CAAC;EACDC,eAAe,EAAEhC,CAAC,CAAC+B,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;AACvC,CAAC,CAAC;;AAEF;AACA;AACA;AAFAC,OAAA,CAAAR,kBAAA,GAAAA,kBAAA;AAGO,MAAMS,sBAAsB,GAAGnC,CAAC,CAAC2B,MAAM,CAAC;EAC7CS,YAAY,EAAEpC,CAAC,CAAC+B,MAAM,CAAC;AACzB,CAAC,CAAC;AAACG,OAAA,CAAAC,sBAAA,GAAAA,sBAAA;AAGI,MAAME,aAAa,GAAGrC,CAAC,CAAC2B,MAAM,CAAC;EACpCW,OAAO,EAAEtC,CAAC,CAAC+B,MAAM,CAAC;AACpB,CAAC,CAAC;AAACG,OAAA,CAAAG,aAAA,GAAAA,aAAA"}
@@ -10,12 +10,12 @@ var _mappers = require("./mappers");
10
10
  const evaluateIssuerTrust = async function (issuerUrl) {
11
11
  let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12
12
  const issuerMetadata = await (0, _ioWalletOid4vci.fetchMetadata)({
13
- config: _config.sdkConfigV1_4,
14
- credentialIssuerUrl: issuerUrl,
15
13
  authorizationServer: context.authorizationServer,
16
14
  callbacks: {
17
15
  fetch: context.appFetch
18
- }
16
+ },
17
+ config: _config.sdkConfigV1_4,
18
+ credentialIssuerUrl: issuerUrl
19
19
  });
20
20
  return {
21
21
  issuerConf: (0, _mappers.mapToIssuerConfig)(issuerMetadata)
@@ -1 +1 @@
1
- {"version":3,"names":["_ioWalletOid4vci","require","_config","_mappers","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerMetadata","fetchMetadata","config","sdkConfigV1_4","credentialIssuerUrl","authorizationServer","callbacks","fetch","appFetch","issuerConf","mapToIssuerConfig","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AAEO,MAAMG,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,MAAM,IAAAC,8BAAa,EAAC;IAC1CC,MAAM,EAAEC,qBAAa;IACrBC,mBAAmB,EAAET,SAAS;IAC9BU,mBAAmB,EAAET,OAAO,CAACS,mBAAmB;IAChDC,SAAS,EAAE;MACTC,KAAK,EAAEX,OAAO,CAACY;IACjB;EACF,CAAC,CAA0B;EAE3B,OAAO;IAAEC,UAAU,EAAE,IAAAC,0BAAiB,EAACV,cAAc;EAAE,CAAC;AAC1D,CAAC;AAACW,OAAA,CAAAjB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["_ioWalletOid4vci","require","_config","_mappers","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerMetadata","fetchMetadata","authorizationServer","callbacks","fetch","appFetch","config","sdkConfigV1_4","credentialIssuerUrl","issuerConf","mapToIssuerConfig","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEO,MAAMG,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,MAAM,IAAAC,8BAAa,EAAC;IAC1CC,mBAAmB,EAAEN,OAAO,CAACM,mBAAmB;IAChDC,SAAS,EAAE;MACTC,KAAK,EAAER,OAAO,CAACS;IACjB,CAAC;IACDC,MAAM,EAAEC,qBAAa;IACrBC,mBAAmB,EAAEb;EACvB,CAAC,CAA0B;EAE3B,OAAO;IAAEc,UAAU,EAAE,IAAAC,0BAAiB,EAACV,cAAc;EAAE,CAAC;AAC1D,CAAC;AAACW,OAAA,CAAAjB,mBAAA,GAAAA,mBAAA"}
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.startUserAuthorization = void 0;
7
7
  var _ioWalletOauth = require("@pagopa/io-wallet-oauth2");
8
8
  var _uuid = require("uuid");
9
- var _logging = require("../../../utils/logging");
10
9
  var _callbacks = require("../../../utils/callbacks");
11
- var _errors = require("../../../utils/errors");
12
10
  var _config = require("../../../utils/config");
11
+ var _errors = require("../../../utils/errors");
12
+ var _logging = require("../../../utils/logging");
13
13
  var _startUserAuthorization = require("../common/02-start-user-authorization");
14
14
  const startUserAuthorization = async (issuerConf, credentialIds, proof, ctx) => {
15
15
  const {
16
- wiaCryptoContext,
17
- walletInstanceAttestation,
18
- redirectUri,
19
16
  appFetch = fetch,
17
+ issuerState,
18
+ redirectUri,
20
19
  scope,
21
- issuerState
20
+ walletInstanceAttestation,
21
+ wiaCryptoContext
22
22
  } = ctx;
23
23
  const clientId = await wiaCryptoContext.getPublicKey().then(_ => _.kid);
24
24
  if (!clientId) {
@@ -34,52 +34,52 @@ const startUserAuthorization = async (issuerConf, credentialIds, proof, ctx) =>
34
34
  * See https://italia.github.io/eid-wallet-it-docs/versione-corrente/en/credential-issuance-endpoint.html#pushed-authorization-request-endpoint
35
35
  */
36
36
  credentialDefinition.push({
37
- type: "it_l2+document_proof",
38
- idphinting: proof.idpHinting,
39
37
  challenge_method: "mrtd+ias",
40
- challenge_redirect_uri: redirectUri
38
+ challenge_redirect_uri: redirectUri,
39
+ idphinting: proof.idpHinting,
40
+ type: "it_l2+document_proof"
41
41
  });
42
42
  }
43
43
  const wiaSigner = {
44
- method: "jwk",
45
44
  alg: "ES256",
45
+ method: "jwk",
46
46
  publicJwk: await wiaCryptoContext.getPublicKey()
47
47
  };
48
48
  const signJwt = (0, _callbacks.createSignJwtFromCryptoContext)(wiaCryptoContext);
49
49
  const parRequest = await (0, _ioWalletOauth.createPushedAuthorizationRequest)({
50
- config: _config.sdkConfigV1_3,
50
+ audience: issuerConf.credential_issuer,
51
+ authorization_details: credentialDefinition,
52
+ authorizationServerMetadata: {
53
+ require_signed_request_object: true
54
+ },
51
55
  callbacks: {
52
56
  ..._callbacks.partialCallbacks,
53
57
  signJwt
54
58
  },
55
- authorizationServerMetadata: {
56
- require_signed_request_object: true
57
- },
58
- jti: (0, _uuid.v4)(),
59
59
  clientId,
60
- audience: issuerConf.credential_issuer,
61
- authorization_details: credentialDefinition,
62
60
  codeChallengeMethodsSupported: ["S256"],
61
+ config: _config.sdkConfigV1_3,
62
+ dpop: {
63
+ signer: wiaSigner
64
+ },
65
+ issuerState,
66
+ jti: (0, _uuid.v4)(),
63
67
  redirectUri,
64
68
  // When the issuance is started from a Credential Offer, the `scope` and
65
69
  // `issuer_state` carried by the authorization_code grant are forwarded to
66
70
  // the PAR. They are `undefined` (and thus omitted) for the regular flow.
67
- scope,
68
- issuerState,
69
- dpop: {
70
- signer: wiaSigner
71
- }
71
+ scope
72
72
  });
73
73
  const clientAttestationPoP = await (0, _ioWalletOauth.createClientAttestationPopJwt)({
74
- config: _config.sdkConfigV1_3,
74
+ authorizationServer: issuerConf.credential_issuer,
75
75
  callbacks: {
76
76
  generateRandom: _callbacks.partialCallbacks.generateRandom,
77
77
  signJwt
78
78
  },
79
79
  clientAttestation: walletInstanceAttestation,
80
- authorizationServer: issuerConf.credential_issuer,
81
- signer: wiaSigner,
82
- jti: (0, _uuid.v4)()
80
+ config: _config.sdkConfigV1_3,
81
+ jti: (0, _uuid.v4)(),
82
+ signer: wiaSigner
83
83
  });
84
84
  const {
85
85
  request_uri
@@ -87,16 +87,16 @@ const startUserAuthorization = async (issuerConf, credentialIds, proof, ctx) =>
87
87
  callbacks: {
88
88
  fetch: appFetch
89
89
  },
90
- pushedAuthorizationRequestEndpoint: issuerConf.pushed_authorization_request_endpoint,
91
- pushedAuthorizationRequest: parRequest,
92
90
  clientAttestationDPoP: clientAttestationPoP,
91
+ pushedAuthorizationRequest: parRequest,
92
+ pushedAuthorizationRequestEndpoint: issuerConf.pushed_authorization_request_endpoint,
93
93
  walletAttestation: walletInstanceAttestation
94
94
  });
95
95
  return {
96
- issuerRequestUri: request_uri,
97
96
  clientId,
98
97
  codeVerifier: parRequest.pkceCodeVerifier,
99
- credentialDefinition
98
+ credentialDefinition,
99
+ issuerRequestUri: request_uri
100
100
  };
101
101
  };
102
102
  exports.startUserAuthorization = startUserAuthorization;
@@ -1 +1 @@
1
- {"version":3,"names":["_ioWalletOauth","require","_uuid","_logging","_callbacks","_errors","_config","_startUserAuthorization","startUserAuthorization","issuerConf","credentialIds","proof","ctx","wiaCryptoContext","walletInstanceAttestation","redirectUri","appFetch","fetch","scope","issuerState","clientId","getPublicKey","then","_","kid","Logger","log","LogLevel","ERROR","IoWalletError","credentialDefinition","map","c","selectCredentialDefinition","proofType","push","type","idphinting","idpHinting","challenge_method","challenge_redirect_uri","wiaSigner","method","alg","publicJwk","signJwt","createSignJwtFromCryptoContext","parRequest","createPushedAuthorizationRequest","config","sdkConfigV1_3","callbacks","partialCallbacks","authorizationServerMetadata","require_signed_request_object","jti","uuidv4","audience","credential_issuer","authorization_details","codeChallengeMethodsSupported","dpop","signer","clientAttestationPoP","createClientAttestationPopJwt","generateRandom","clientAttestation","authorizationServer","request_uri","fetchPushedAuthorizationResponse","pushedAuthorizationRequestEndpoint","pushed_authorization_request_endpoint","pushedAuthorizationRequest","clientAttestationDPoP","walletAttestation","issuerRequestUri","codeVerifier","pkceCodeVerifier","exports"],"sourceRoot":"../../../../../src","sources":["cred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CAAC;EAEF,OAAO;IACL6D,gBAAgB,EAAEP,WAAW;IAC7BhD,QAAQ;IACRwD,YAAY,EAAE7B,UAAU,CAAC8B,gBAAgB;IACzC/C;EACF,CAAC;AACH,CAAC;AAACgD,OAAA,CAAAtE,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"names":["_ioWalletOauth","require","_uuid","_callbacks","_config","_errors","_logging","_startUserAuthorization","startUserAuthorization","issuerConf","credentialIds","proof","ctx","appFetch","fetch","issuerState","redirectUri","scope","walletInstanceAttestation","wiaCryptoContext","clientId","getPublicKey","then","_","kid","Logger","log","LogLevel","ERROR","IoWalletError","credentialDefinition","map","c","selectCredentialDefinition","proofType","push","challenge_method","challenge_redirect_uri","idphinting","idpHinting","type","wiaSigner","alg","method","publicJwk","signJwt","createSignJwtFromCryptoContext","parRequest","createPushedAuthorizationRequest","audience","credential_issuer","authorization_details","authorizationServerMetadata","require_signed_request_object","callbacks","partialCallbacks","codeChallengeMethodsSupported","config","sdkConfigV1_3","dpop","signer","jti","uuidv4","clientAttestationPoP","createClientAttestationPopJwt","authorizationServer","generateRandom","clientAttestation","request_uri","fetchPushedAuthorizationResponse","clientAttestationDPoP","pushedAuthorizationRequest","pushedAuthorizationRequestEndpoint","pushed_authorization_request_endpoint","walletAttestation","codeVerifier","pkceCodeVerifier","issuerRequestUri","exports"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/02-start-user-authorization.ts"],"mappings":";;;;;;AAEA,IAAAA,cAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAIA,IAAAE,UAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AAEO,MAAMO,sBAA6D,GACxE,MAAAA,CAAOC,UAAU,EAAEC,aAAa,EAAEC,KAAK,EAAEC,GAAG,KAAK;EAC/C,M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V;IACF,CAAC;IACDzB,QAAQ;IACRoC,6BAA6B,EAAE,CAAC,MAAM,CAAC;IACvCC,MAAM,EAAEC,qBAAa;IACrBC,IAAI,EAAE;MACJC,MAAM,EAAEnB;IACV,CAAC;IACD1B,WAAW;IACX8C,GAAG,EAAE,IAAAC,QAAM,EAAC,CAAC;IACb9C,WAAW;IACX;IACA;IACA;IACAC;EACF,CAAC,CAAC;EAEF,MAAM8C,oBAAoB,GAAG,MAAM,IAAAC,4CAA6B,EAAC;IAC/DC,mBAAmB,EAAExD,UAAU,CAACyC,iBAAiB;IACjDI,SAAS,EAAE;MACTY,cAAc,EAAEX,2BAAgB,CAACW,cAAc;MAC/CrB;IACF,CAAC;IACDsB,iBAAiB,EAAEjD,yBAAyB;IAC5CuC,MAAM,EAAEC,qBAAa;IACrBG,GAAG,EAAE,IAAAC,QAAM,EAAC,CAAC;IACbF,MAAM,EAAEnB;EACV,CAAC,CAAC;EAEF,MAAM;IAAE2B;EAAY,CAAC,GAAG,MAAM,IAAAC,+CAAgC,EAAC;IAC7Df,SAAS,EAAE;MACTxC,KAAK,EAAED;IACT,CAAC;IACDyD,qBAAqB,EAAEP,oBAAoB;IAC3CQ,0BAA0B,EAAExB,UAAU;IACtCyB,kCAAkC,EAChC/D,UAAU,CAACgE,qCAAqC;IAClDC,iBAAiB,EAAExD;EACrB,CAAC,CAAC;EAEF,OAAO;IACLE,QAAQ;IACRuD,YAAY,EAAE5B,UAAU,CAAC6B,gBAAgB;IACzC9C,oBAAoB;IACpB+C,gBAAgB,EAAET;EACpB,CAAC;AACH,CAAC;AAACU,OAAA,CAAAtE,sBAAA,GAAAA,sBAAA"}
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.parseAuthorizationResponse = exports.getRequestedCredentialToBePresented = exports.continueUserAuthorizationWithMRTDPoPChallenge = exports.completeUserAuthorizationWithFormPostJwtMode = exports.completePidUserAuthorizationWithQueryMode = exports.completeEaaUserAuthorizationWithQueryMode = exports.buildAuthorizationUrl = void 0;
7
- var _auth = require("../../../utils/auth");
8
- var _parseUrl = _interopRequireDefault(require("parse-url"));
9
- var _ioWalletOid4vp = require("@pagopa/io-wallet-oid4vp");
10
- var _ioWalletOid4vci = require("@pagopa/io-wallet-oid4vci");
11
7
  var _ioWalletOauth = require("@pagopa/io-wallet-oauth2");
12
- var _errors = require("../common/errors");
13
- var _logging = require("../../../utils/logging");
14
- var _v = require("../../presentation/v1.3.3");
8
+ var _ioWalletOid4vci = require("@pagopa/io-wallet-oid4vci");
9
+ var _ioWalletOid4vp = require("@pagopa/io-wallet-oid4vp");
10
+ var _parseUrl = _interopRequireDefault(require("parse-url"));
11
+ var _auth = require("../../../utils/auth");
15
12
  var _callbacks = require("../../../utils/callbacks");
16
13
  var _config = require("../../../utils/config");
17
- var _errors2 = require("../../../utils/errors");
18
- var _mappers = require("./mappers");
14
+ var _errors = require("../../../utils/errors");
15
+ var _logging = require("../../../utils/logging");
19
16
  var _misc = require("../../../utils/misc");
17
+ var _v = require("../../presentation/v1.3.3");
18
+ var _errors2 = require("../common/errors");
19
+ var _mappers = require("./mappers");
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
  const continueUserAuthorizationWithMRTDPoPChallenge = async authRedirectUrl => {
22
22
  _logging.Logger.log(_logging.LogLevel.DEBUG, "The requested credential is a PID and requires MRTD PoP, starting MRTD PoP validation from auth redirect");
@@ -30,7 +30,7 @@ const continueUserAuthorizationWithMRTDPoPChallenge = async authRedirectUrl => {
30
30
  } catch (err) {
31
31
  const errorMessage = err instanceof Error ? err.message : "MRTD challenge parsing failed";
32
32
  _logging.Logger.log(_logging.LogLevel.ERROR, `Error while parsing the authorization response: ${errorMessage}`);
33
- throw new _errors.AuthorizationError(errorMessage);
33
+ throw new _errors2.AuthorizationError(errorMessage);
34
34
  }
35
35
  };
36
36
  exports.continueUserAuthorizationWithMRTDPoPChallenge = continueUserAuthorizationWithMRTDPoPChallenge;
@@ -66,13 +66,13 @@ const getRequestedCredentialToBePresented = async function (issuerRequestUri, cl
66
66
  _logging.Logger.log(_logging.LogLevel.DEBUG, `Requesting the request object to ${authzRequestEndpoint}?${params.toString()}`);
67
67
  const requestObjectJwt = await appFetch(`${authzRequestEndpoint}?${params.toString()}`, {
68
68
  method: "GET"
69
- }).then((0, _misc.hasStatusOrThrow)(200, _errors2.IssuerResponseError)).then(res => res.text());
69
+ }).then((0, _misc.hasStatusOrThrow)(200, _errors.IssuerResponseError)).then(res => res.text());
70
70
  const parsedAuthRequest = await (0, _ioWalletOid4vp.parseAuthorizeRequest)({
71
- config: _config.sdkConfigV1_3,
72
- requestObjectJwt,
73
71
  callbacks: {
74
72
  verifyJwt: (0, _callbacks.createVerifyJwtFromJwks)(issuerConf.keys)
75
- }
73
+ },
74
+ config: _config.sdkConfigV1_3,
75
+ requestObjectJwt
76
76
  });
77
77
  return (0, _mappers.mapToRequestObject)(parsedAuthRequest);
78
78
  };
@@ -85,16 +85,16 @@ const completeUserAuthorizationWithFormPostJwtMode = async (requestObject, issue
85
85
  } = _ref;
86
86
  _logging.Logger.log(_logging.LogLevel.DEBUG, "The requested credential is not a PID, completing the user authorization with form_post.jwt mode");
87
87
  const authzResponse = await processPidPresentationAndCreateAuthzResponse({
88
- requestObject,
88
+ evaluatedDcqlQuery,
89
89
  issuerConfig,
90
- evaluatedDcqlQuery
90
+ requestObject
91
91
  });
92
92
  _logging.Logger.log(_logging.LogLevel.DEBUG, `Authz response: ${authzResponse}`);
93
93
  const issuerSigKey = issuerConfig.keys.find(key => key.use === "sig");
94
94
  if (!issuerSigKey) {
95
95
  const errorMessage = "No signature key found in Issuer Metadata JWKS";
96
96
  _logging.Logger.log(_logging.LogLevel.ERROR, errorMessage);
97
- throw new _errors2.IoWalletError(errorMessage);
97
+ throw new _errors.IoWalletError(errorMessage);
98
98
  }
99
99
  return (0, _ioWalletOid4vci.sendAuthorizationResponseAndExtractCode)({
100
100
  authorizationResponseJarm: authzResponse.jarm.responseJwe,
@@ -103,13 +103,13 @@ const completeUserAuthorizationWithFormPostJwtMode = async (requestObject, issue
103
103
  fetch: appFetch
104
104
  },
105
105
  iss: requestObject.iss,
106
- state: requestObject.state ?? "",
107
106
  presentationResponseUri: requestObject.response_uri,
108
107
  signer: {
109
108
  alg: "ES256",
110
109
  method: "jwk",
111
110
  publicJwk: issuerSigKey
112
- }
111
+ },
112
+ state: requestObject.state ?? ""
113
113
  });
114
114
  };
115
115
  exports.completeUserAuthorizationWithFormPostJwtMode = completeUserAuthorizationWithFormPostJwtMode;
@@ -120,25 +120,25 @@ const completeEaaUserAuthorizationWithQueryMode = async function (requestObject,
120
120
  } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
121
121
  _logging.Logger.log(_logging.LogLevel.DEBUG, "The requested credential is not a PID, completing the user authorization with query mode");
122
122
  const authzResponse = await processPidPresentationAndCreateAuthzResponse({
123
- requestObject,
123
+ evaluatedDcqlQuery,
124
124
  issuerConfig,
125
- evaluatedDcqlQuery
125
+ requestObject
126
126
  });
127
127
  _logging.Logger.log(_logging.LogLevel.DEBUG, `Authz response: ${JSON.stringify(authzResponse)}`);
128
128
  const {
129
129
  redirect_uri
130
130
  } = await (0, _ioWalletOid4vp.fetchAuthorizationResponse)({
131
131
  authorizationResponseJarm: authzResponse.jarm.responseJwe,
132
- presentationResponseUri: requestObject.response_uri,
133
132
  callbacks: {
134
133
  ..._callbacks.partialCallbacks,
135
134
  fetch: appFetch
136
- }
135
+ },
136
+ presentationResponseUri: requestObject.response_uri
137
137
  });
138
138
  if (!redirect_uri) {
139
139
  const errorMessage = "The authorization server did not return a redirect_uri to continue the authorization flow";
140
140
  _logging.Logger.log(_logging.LogLevel.ERROR, errorMessage);
141
- throw new _errors.AuthorizationError(errorMessage);
141
+ throw new _errors2.AuthorizationError(errorMessage);
142
142
  }
143
143
  let finalRedirectUri;
144
144
  if (fetchFinalRedirectUri) {
@@ -148,14 +148,14 @@ const completeEaaUserAuthorizationWithQueryMode = async function (requestObject,
148
148
  if (!response || !response.ok) {
149
149
  const errorMessage = `An error occurred while completing the authorization flow. Ensure ${clientRedirectUri} is a valid HTTP url for redirect`;
150
150
  _logging.Logger.log(_logging.LogLevel.ERROR, errorMessage);
151
- throw new _errors.AuthorizationError(errorMessage);
151
+ throw new _errors2.AuthorizationError(errorMessage);
152
152
  }
153
153
  finalRedirectUri = response.url;
154
154
  }
155
155
  if (!finalRedirectUri || !finalRedirectUri.startsWith(clientRedirectUri)) {
156
156
  const errorMessage = `The authorization server did not redirect to the provided client redirect URI. Expected: ${clientRedirectUri}, got: ${finalRedirectUri}`;
157
157
  _logging.Logger.log(_logging.LogLevel.ERROR, errorMessage);
158
- throw new _errors.AuthorizationError(errorMessage);
158
+ throw new _errors2.AuthorizationError(errorMessage);
159
159
  }
160
160
  return parseAuthorizationResponse((0, _parseUrl.default)(finalRedirectUri).query);
161
161
  };
@@ -174,11 +174,11 @@ const parseAuthorizationResponse = authRes => {
174
174
  const authErr = _auth.AuthorizationErrorShape.safeParse(authRes);
175
175
  if (!authErr.success) {
176
176
  _logging.Logger.log(_logging.LogLevel.ERROR, `Error while parsing the authorization response: ${authResParsed.error.message}`);
177
- throw new _errors.AuthorizationError(authResParsed.error.message); // an error occured while parsing the result and the error
177
+ throw new _errors2.AuthorizationError(authResParsed.error.message); // an error occured while parsing the result and the error
178
178
  }
179
179
 
180
180
  _logging.Logger.log(_logging.LogLevel.ERROR, `Error while authorizating with the idp: ${JSON.stringify(authErr)}`);
181
- throw new _errors.AuthorizationIdpError(authErr.data.error, authErr.data.error_description);
181
+ throw new _errors2.AuthorizationIdpError(authErr.data.error, authErr.data.error_description);
182
182
  }
183
183
  return authResParsed.data;
184
184
  };
@@ -193,9 +193,9 @@ const parseAuthorizationResponse = authRes => {
193
193
  exports.parseAuthorizationResponse = parseAuthorizationResponse;
194
194
  const processPidPresentationAndCreateAuthzResponse = async _ref2 => {
195
195
  let {
196
- requestObject,
196
+ evaluatedDcqlQuery,
197
197
  issuerConfig,
198
- evaluatedDcqlQuery
198
+ requestObject
199
199
  } = _ref2;
200
200
  const remotePresentation = await _v.RemotePresentation.prepareRemotePresentations(evaluatedDcqlQuery, {
201
201
  clientId: requestObject.client_id,
@@ -213,21 +213,21 @@ const processPidPresentationAndCreateAuthzResponse = async _ref2 => {
213
213
  };
214
214
  }, {});
215
215
  return (0, _ioWalletOid4vp.createAuthorizationResponse)({
216
+ callbacks: {
217
+ encryptJwe: _callbacks.partialCallbacks.encryptJwe,
218
+ generateRandom: _callbacks.partialCallbacks.generateRandom
219
+ },
216
220
  // The SDK 1.4 config is used here in order to resolve the encryption data from the Request Object
217
221
  // client_metadata, otherwise OpenID Federation clients always ignore client_metadata as per 1.3.3 specs.
218
222
  config: _config.sdkConfigV1_4,
219
223
  requestObject,
220
224
  rpJwks: {
225
+ encrypted_response_enc_values_supported: issuerConfig.encrypted_response_enc_values_supported,
221
226
  jwks: {
222
227
  keys: issuerConfig.keys
223
- },
224
- encrypted_response_enc_values_supported: issuerConfig.encrypted_response_enc_values_supported
228
+ }
225
229
  },
226
- vp_token,
227
- callbacks: {
228
- encryptJwe: _callbacks.partialCallbacks.encryptJwe,
229
- generateRandom: _callbacks.partialCallbacks.generateRandom
230
- }
230
+ vp_token
231
231
  });
232
232
  };
233
233
  //# sourceMappingURL=03-complete-user-authorization.js.map