@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
@@ -1,6 +1,6 @@
1
1
  import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
2
2
  import { ValidationFailed } from "./errors";
3
- import { LogLevel, Logger } from "./logging";
3
+ import { Logger, LogLevel } from "./logging";
4
4
 
5
5
  /*
6
6
  * Decode a form_post.jwt and return the final JWT.
@@ -40,8 +40,8 @@ export const getJwtFromFormPost = async formData => {
40
40
  const jwt = responseJwt.replace(lineExpressionRegex, "");
41
41
  const decodedJwt = decodeJwt(jwt);
42
42
  return {
43
- jwt,
44
- decodedJwt
43
+ decodedJwt,
44
+ jwt
45
45
  };
46
46
  }
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"names":["decode","decodeJwt","ValidationFailed","LogLevel","Logger","getJwtFromFormPost","formData","formPostRegex","lineExpressionRegex","match","exec","responseJwt","jwt","replace","decodedJwt","log","ERROR","message"],"sourceRoot":"../../../src","sources":["utils/decoder.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AAEjE,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,QAAQ,EAAEC,MAAM,QAAQ,WAAW;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAG,MAChCC,QAAgB,IAC0C;EAC1D,MAAMC,aAAa,GAAG,iDAAiD;EACvE,MAAMC,mBAAmB,GAAG,sBAAsB;EAElD,MAAMC,KAAK,GAAGF,aAAa,CAACG,IAAI,CAACJ,QAAQ,CAAC;EAC1C,IAAIG,KAAK,IAAIA,KAAK,CAAC,CAAC,CAAC,EAAE;IACrB,MAAME,WAAW,GAAGF,KAAK,CAAC,CAAC,CAAC;IAE5B,IAAIE,WAAW,EAAE;MACf,MAAMC,GAAG,GAAGD,WAAW,CAACE,OAAO,CAACL,mBAAmB,EAAE,EAAE,CAAC;MACxD,MAAMM,UAAU,GAAGb,SAAS,CAACW,GAAG,CAAC;MACjC,OAAO;QAAEA,GAAG;QAAEE;MAAW,CAAC;IAC5B;EACF;EAEAV,MAAM,CAACW,GAAG,CACRZ,QAAQ,CAACa,KAAK,EACb,uDAAsDV,QAAS,EAClE,CAAC;EACD,MAAM,IAAIJ,gBAAgB,CAAC;IACzBe,OAAO,EAAG,uDAAsDX,QAAS;EAC3E,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"names":["decode","decodeJwt","ValidationFailed","Logger","LogLevel","getJwtFromFormPost","formData","formPostRegex","lineExpressionRegex","match","exec","responseJwt","jwt","replace","decodedJwt","log","ERROR","message"],"sourceRoot":"../../../src","sources":["utils/decoder.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AAIjE,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,MAAM,EAAEC,QAAQ,QAAQ,WAAW;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAG,MAChCC,QAAgB,IAC0C;EAC1D,MAAMC,aAAa,GAAG,iDAAiD;EACvE,MAAMC,mBAAmB,GAAG,sBAAsB;EAElD,MAAMC,KAAK,GAAGF,aAAa,CAACG,IAAI,CAACJ,QAAQ,CAAC;EAC1C,IAAIG,KAAK,IAAIA,KAAK,CAAC,CAAC,CAAC,EAAE;IACrB,MAAME,WAAW,GAAGF,KAAK,CAAC,CAAC,CAAC;IAE5B,IAAIE,WAAW,EAAE;MACf,MAAMC,GAAG,GAAGD,WAAW,CAACE,OAAO,CAACL,mBAAmB,EAAE,EAAE,CAAC;MACxD,MAAMM,UAAU,GAAGb,SAAS,CAACW,GAAG,CAAC;MACjC,OAAO;QAAEE,UAAU;QAAEF;MAAI,CAAC;IAC5B;EACF;EAEAT,MAAM,CAACY,GAAG,CACRX,QAAQ,CAACY,KAAK,EACb,uDAAsDV,QAAS,EAClE,CAAC;EACD,MAAM,IAAIJ,gBAAgB,CAAC;IACzBe,OAAO,EAAG,uDAAsDX,QAAS;EAC3E,CAAC,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import * as z from "zod";
2
1
  import { SignJWT } from "@pagopa/io-react-native-jwt";
2
+ import * as z from "zod";
3
3
 
4
4
  /**
5
5
  * Create a signed DPoP token
@@ -12,14 +12,14 @@ import { SignJWT } from "@pagopa/io-react-native-jwt";
12
12
  export const createDPopToken = async (payload, crypto) => {
13
13
  const jwk = await crypto.getPublicKey();
14
14
  return new SignJWT(crypto).setPayload(payload).setProtectedHeader({
15
- typ: "dpop+jwt",
16
- jwk
15
+ jwk,
16
+ typ: "dpop+jwt"
17
17
  }).setIssuedAt().setExpirationTime("1h").sign();
18
18
  };
19
19
  export const DPoPPayload = z.object({
20
- jti: z.string(),
20
+ ath: z.string().optional(),
21
21
  htm: z.enum(["POST", "GET"]),
22
22
  htu: z.string(),
23
- ath: z.string().optional()
23
+ jti: z.string()
24
24
  });
25
25
  //# sourceMappingURL=dpop.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["z","SignJWT","createDPopToken","payload","crypto","jwk","getPublicKey","setPayload","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","DPoPPayload","object","jti","string","htm","enum","htu","ath","optional"],"sourceRoot":"../../../src","sources":["utils/dpop.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,OAAO,QAA4B,6BAA6B;;AAEzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG,MAAAA,CAC7BC,OAAoB,EACpBC,MAAqB,KACD;EACpB,MAAMC,GAAG,GAAG,MAAMD,MAAM,CAACE,YAAY,CAAC,CAAC;EACvC,OAAO,IAAIL,OAAO,CAACG,MAAM,CAAC,CACvBG,UAAU,CAACJ,OAAO,CAAC,CACnBK,kBAAkB,CAAC;IAClBC,GAAG,EAAE,UAAU;IACfJ;EACF,CAAC,CAAC,CACDK,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,IAAI,CAAC,CACvBC,IAAI,CAAC,CAAC;AACX,CAAC;AAGD,OAAO,MAAMC,WAAW,GAAGb,CAAC,CAACc,MAAM,CAAC;EAClCC,GAAG,EAAEf,CAAC,CAACgB,MAAM,CAAC,CAAC;EACfC,GAAG,EAAEjB,CAAC,CAACkB,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;EAC5BC,GAAG,EAAEnB,CAAC,CAACgB,MAAM,CAAC,CAAC;EACfI,GAAG,EAAEpB,CAAC,CAACgB,MAAM,CAAC,CAAC,CAACK,QAAQ,CAAC;AAC3B,CAAC,CAAC"}
1
+ {"version":3,"names":["SignJWT","z","createDPopToken","payload","crypto","jwk","getPublicKey","setPayload","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","DPoPPayload","object","ath","string","optional","htm","enum","htu","jti"],"sourceRoot":"../../../src","sources":["utils/dpop.ts"],"mappings":"AAAA,SAA6BA,OAAO,QAAQ,6BAA6B;AACzE,OAAO,KAAKC,CAAC,MAAM,KAAK;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG,MAAAA,CAC7BC,OAAoB,EACpBC,MAAqB,KACD;EACpB,MAAMC,GAAG,GAAG,MAAMD,MAAM,CAACE,YAAY,CAAC,CAAC;EACvC,OAAO,IAAIN,OAAO,CAACI,MAAM,CAAC,CACvBG,UAAU,CAACJ,OAAO,CAAC,CACnBK,kBAAkB,CAAC;IAClBH,GAAG;IACHI,GAAG,EAAE;EACP,CAAC,CAAC,CACDC,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,IAAI,CAAC,CACvBC,IAAI,CAAC,CAAC;AACX,CAAC;AAGD,OAAO,MAAMC,WAAW,GAAGZ,CAAC,CAACa,MAAM,CAAC;EAClCC,GAAG,EAAEd,CAAC,CAACe,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC1BC,GAAG,EAAEjB,CAAC,CAACkB,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;EAC5BC,GAAG,EAAEnB,CAAC,CAACe,MAAM,CAAC,CAAC;EACfK,GAAG,EAAEpB,CAAC,CAACe,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -1,5 +1,8 @@
1
1
  export const IssuerResponseErrorCodes = {
2
- IssuerGenericError: "ERR_ISSUER_GENERIC_ERROR",
2
+ /**
3
+ * Error code thrown when a credential status is invalid, either during issuance or when requesting a status attestation.
4
+ */
5
+ CredentialInvalidStatus: "ERR_CREDENTIAL_INVALID_STATUS",
3
6
  /**
4
7
  * Error code thrown when a credential cannot be issued immediately because it follows the async flow.
5
8
  */
@@ -8,47 +11,44 @@ export const IssuerResponseErrorCodes = {
8
11
  * Error code thrown when an error occurs while requesting a credential.
9
12
  */
10
13
  CredentialRequestFailed: "ERR_CREDENTIAL_REQUEST_FAILED",
14
+ IssuerGenericError: "ERR_ISSUER_GENERIC_ERROR",
11
15
  /**
12
- * Error code thrown when a credential status is invalid, either during issuance or when requesting a status attestation.
16
+ * Error code thrown when an error occurs while initializing the MRTD challenge.
13
17
  */
14
- CredentialInvalidStatus: "ERR_CREDENTIAL_INVALID_STATUS",
18
+ MrtdChallengeInitRequestFailed: "ERR_MRTD_CHALLENGE_INIT_REQUEST_FAILED",
15
19
  /**
16
20
  * Error code thrown when an error occurs while obtaining a status attestation for a credential.
17
21
  */
18
- StatusAttestationRequestFailed: "ERR_STATUS_ATTESTATION_REQUEST_FAILED",
19
- /**
20
- * Error code thrown when an error occurs while initializing the MRTD challenge.
21
- */
22
- MrtdChallengeInitRequestFailed: "ERR_MRTD_CHALLENGE_INIT_REQUEST_FAILED"
22
+ StatusAttestationRequestFailed: "ERR_STATUS_ATTESTATION_REQUEST_FAILED"
23
23
  };
24
24
  export const WalletProviderResponseErrorCodes = {
25
- WalletProviderGenericError: "ERR_IO_WALLET_PROVIDER_GENERIC_ERROR",
26
- /**
27
- * An error code thrown when an error occurs during the wallet instance creation process.
28
- */
29
- WalletInstanceCreationFailed: "ERR_IO_WALLET_INSTANCE_CREATION_FAILED",
30
25
  /**
31
26
  * An error code thrown when validation fail
32
27
  */
33
28
  WalletInstanceAttestationIssuingFailed: "ERR_IO_WALLET_INSTANCE_ATTESTATION_ISSUING_FAILED",
29
+ /**
30
+ * An error code thrown when an error occurs during the wallet instance creation process.
31
+ */
32
+ WalletInstanceCreationFailed: "ERR_IO_WALLET_INSTANCE_CREATION_FAILED",
34
33
  /**
35
34
  * An error code thrown when the requester does not pass the integrity checks when interacting with the Wallet Provider.
36
35
  */
37
36
  WalletInstanceIntegrityFailed: "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED",
38
37
  /**
39
- * An error code thrown when obtaining a wallet instance attestation but the wallet instance is revoked.
38
+ * An error code thrown when obtaining a wallet instance attestation but the wallet instance is not found.
40
39
  */
41
- WalletInstanceRevoked: "ERR_IO_WALLET_INSTANCE_REVOKED",
40
+ WalletInstanceNotFound: "ERR_IO_WALLET_INSTANCE_NOT_FOUND",
42
41
  /**
43
- * An error code thrown when obtaining a wallet instance attestation but the wallet instance is not found.
42
+ * An error code thrown when obtaining a wallet instance attestation but the wallet instance is revoked.
44
43
  */
45
- WalletInstanceNotFound: "ERR_IO_WALLET_INSTANCE_NOT_FOUND"
44
+ WalletInstanceRevoked: "ERR_IO_WALLET_INSTANCE_REVOKED",
45
+ WalletProviderGenericError: "ERR_IO_WALLET_PROVIDER_GENERIC_ERROR"
46
46
  };
47
47
  export const RelyingPartyResponseErrorCodes = {
48
- RelyingPartyGenericError: "ERR_RP_GENERIC_ERROR",
49
48
  /**
50
49
  * An error code thrown then the Relying Party rejects the Wallet's Authorization Response.
51
50
  */
52
- InvalidAuthorizationResponse: "ERR_RP_INVALID_AUTHORIZATION_RESPONSE"
51
+ InvalidAuthorizationResponse: "ERR_RP_INVALID_AUTHORIZATION_RESPONSE",
52
+ RelyingPartyGenericError: "ERR_RP_GENERIC_ERROR"
53
53
  };
54
54
  //# sourceMappingURL=error-codes.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["IssuerResponseErrorCodes","IssuerGenericError","CredentialIssuingNotSynchronous","CredentialRequestFailed","CredentialInvalidStatus","StatusAttestationRequestFailed","MrtdChallengeInitRequestFailed","WalletProviderResponseErrorCodes","WalletProviderGenericError","WalletInstanceCreationFailed","WalletInstanceAttestationIssuingFailed","WalletInstanceIntegrityFailed","WalletInstanceRevoked","WalletInstanceNotFound","RelyingPartyResponseErrorCodes","RelyingPartyGenericError","InvalidAuthorizationResponse"],"sourceRoot":"../../../src","sources":["utils/error-codes.ts"],"mappings":"AAAA,OAAO,MAAMA,wBAAwB,GAAG;EACtCC,kBAAkB,EAAE,0BAA0B;EAC9C;AACF;AACA;EACEC,+BAA+B,EAAE,wCAAwC;EACzE;AACF;AACA;EACEC,uBAAuB,EAAE,+BAA+B;EACxD;AACF;AACA;EACEC,uBAAuB,EAAE,+BAA+B;EACxD;AACF;AACA;EACEC,8BAA8B,EAAE,uCAAuC;EACvE;AACF;AACA;EACEC,8BAA8B,EAAE;AAClC,CAAU;AAEV,OAAO,MAAMC,gCAAgC,GAAG;EAC9CC,0BAA0B,EAAE,sCAAsC;EAClE;AACF;AACA;EACEC,4BAA4B,EAAE,wCAAwC;EACtE;AACF;AACA;EACEC,sCAAsC,EACpC,mDAAmD;EACrD;AACF;AACA;EACEC,6BAA6B,EAAE,yCAAyC;EACxE;AACF;AACA;EACEC,qBAAqB,EAAE,gCAAgC;EACvD;AACF;AACA;EACEC,sBAAsB,EAAE;AAC1B,CAAU;AAEV,OAAO,MAAMC,8BAA8B,GAAG;EAC5CC,wBAAwB,EAAE,sBAAsB;EAChD;AACF;AACA;EACEC,4BAA4B,EAAE;AAChC,CAAU"}
1
+ {"version":3,"names":["IssuerResponseErrorCodes","CredentialInvalidStatus","CredentialIssuingNotSynchronous","CredentialRequestFailed","IssuerGenericError","MrtdChallengeInitRequestFailed","StatusAttestationRequestFailed","WalletProviderResponseErrorCodes","WalletInstanceAttestationIssuingFailed","WalletInstanceCreationFailed","WalletInstanceIntegrityFailed","WalletInstanceNotFound","WalletInstanceRevoked","WalletProviderGenericError","RelyingPartyResponseErrorCodes","InvalidAuthorizationResponse","RelyingPartyGenericError"],"sourceRoot":"../../../src","sources":["utils/error-codes.ts"],"mappings":"AAAA,OAAO,MAAMA,wBAAwB,GAAG;EACtC;AACF;AACA;EACEC,uBAAuB,EAAE,+BAA+B;EACxD;AACF;AACA;EACEC,+BAA+B,EAAE,wCAAwC;EACzE;AACF;AACA;EACEC,uBAAuB,EAAE,+BAA+B;EACxDC,kBAAkB,EAAE,0BAA0B;EAC9C;AACF;AACA;EACEC,8BAA8B,EAAE,wCAAwC;EACxE;AACF;AACA;EACEC,8BAA8B,EAAE;AAClC,CAAU;AAEV,OAAO,MAAMC,gCAAgC,GAAG;EAC9C;AACF;AACA;EACEC,sCAAsC,EACpC,mDAAmD;EACrD;AACF;AACA;EACEC,4BAA4B,EAAE,wCAAwC;EACtE;AACF;AACA;EACEC,6BAA6B,EAAE,yCAAyC;EACxE;AACF;AACA;EACEC,sBAAsB,EAAE,kCAAkC;EAC1D;AACF;AACA;EACEC,qBAAqB,EAAE,gCAAgC;EACvDC,0BAA0B,EAAE;AAC9B,CAAU;AAEV,OAAO,MAAMC,8BAA8B,GAAG;EAC5C;AACF;AACA;EACEC,4BAA4B,EAAE,uCAAuC;EACrEC,wBAAwB,EAAE;AAC5B,CAAU"}
@@ -1,6 +1,6 @@
1
1
  import { UnexpectedStatusCodeError as SdkUnexpectedStatusCodeError } from "@pagopa/io-wallet-utils";
2
2
  import { IssuerResponseErrorCodes, RelyingPartyResponseErrorCodes, WalletProviderResponseErrorCodes } from "./error-codes";
3
- export { IssuerResponseErrorCodes, WalletProviderResponseErrorCodes, RelyingPartyResponseErrorCodes };
3
+ export { IssuerResponseErrorCodes, RelyingPartyResponseErrorCodes, WalletProviderResponseErrorCodes };
4
4
 
5
5
  // An error reason that supports both a string and a generic JSON object
6
6
 
@@ -50,7 +50,6 @@ export const withMappedErrors = (fn, sourceError, mapError) => {
50
50
  throw e;
51
51
  }
52
52
  };
53
-
54
53
  /**
55
54
  * A generic Error that all other io-wallet specific Error subclasses extend.
56
55
  *
@@ -71,44 +70,17 @@ export class IoWalletError extends Error {
71
70
  }
72
71
  }
73
72
 
74
- /**
75
- * An error subclass thrown when validation fail
76
- *
77
- */
78
- export class ValidationFailed extends IoWalletError {
79
- code = "ERR_IO_WALLET_VALIDATION_FAILED";
80
-
81
- /** The Claim for which the validation failed. */
82
-
83
- /** Reason code for the validation failure. */
84
-
85
- constructor(_ref3) {
86
- let {
87
- message,
88
- claim = "unspecified",
89
- reason = "unspecified"
90
- } = _ref3;
91
- super(serializeAttrs({
92
- message,
93
- claim,
94
- reason
95
- }));
96
- this.claim = claim;
97
- this.reason = reason;
98
- }
99
- }
100
-
101
73
  /**
102
74
  * An error subclass thrown when an HTTP request has a status code different from the one expected.
103
75
  */
104
76
  export class UnexpectedStatusCodeError extends IoWalletError {
105
77
  code = "ERR_UNEXPECTED_STATUS_CODE";
106
- constructor(_ref4) {
78
+ constructor(_ref3) {
107
79
  let {
108
80
  message,
109
81
  reason,
110
82
  statusCode
111
- } = _ref4;
83
+ } = _ref3;
112
84
  super(serializeAttrs({
113
85
  message,
114
86
  reason,
@@ -131,27 +103,55 @@ export class IssuerResponseError extends UnexpectedStatusCodeError {
131
103
  }
132
104
 
133
105
  /**
134
- * An error subclass thrown when a Wallet Provider HTTP request fails.
106
+ * An error subclass thrown when a Relying Party HTTP request fails.
135
107
  * The specific error can be found in the `code` property.
136
108
  */
137
- export class WalletProviderResponseError extends UnexpectedStatusCodeError {
109
+ export class RelyingPartyResponseError extends UnexpectedStatusCodeError {
138
110
  constructor(params) {
139
111
  super(params);
140
- this.reason = params.reason;
141
- this.code = params.code ?? WalletProviderResponseErrorCodes.WalletProviderGenericError;
112
+ this.code = params.code ?? RelyingPartyResponseErrorCodes.RelyingPartyGenericError;
142
113
  }
143
114
  }
144
115
 
145
116
  /**
146
- * An error subclass thrown when a Relying Party HTTP request fails.
117
+ * An error subclass thrown when validation fail
118
+ *
119
+ */
120
+ export class ValidationFailed extends IoWalletError {
121
+ /** The Claim for which the validation failed. */
122
+
123
+ code = "ERR_IO_WALLET_VALIDATION_FAILED";
124
+
125
+ /** Reason code for the validation failure. */
126
+
127
+ constructor(_ref4) {
128
+ let {
129
+ claim = "unspecified",
130
+ message,
131
+ reason = "unspecified"
132
+ } = _ref4;
133
+ super(serializeAttrs({
134
+ claim,
135
+ message,
136
+ reason
137
+ }));
138
+ this.claim = claim;
139
+ this.reason = reason;
140
+ }
141
+ }
142
+
143
+ /**
144
+ * An error subclass thrown when a Wallet Provider HTTP request fails.
147
145
  * The specific error can be found in the `code` property.
148
146
  */
149
- export class RelyingPartyResponseError extends UnexpectedStatusCodeError {
147
+ export class WalletProviderResponseError extends UnexpectedStatusCodeError {
150
148
  constructor(params) {
151
149
  super(params);
152
- this.code = params.code ?? RelyingPartyResponseErrorCodes.RelyingPartyGenericError;
150
+ this.reason = params.reason;
151
+ this.code = params.code ?? WalletProviderResponseErrorCodes.WalletProviderGenericError;
153
152
  }
154
153
  }
154
+
155
155
  /**
156
156
  * Function to extract the error message from the Entity Configuration's supported error codes.
157
157
  * @param errorCode The error code to map to a meaningful message
@@ -162,8 +162,8 @@ export class RelyingPartyResponseError extends UnexpectedStatusCodeError {
162
162
  */
163
163
  export function extractErrorMessageFromIssuerConf(errorCode, _ref5) {
164
164
  let {
165
- issuerConf,
166
- credentialType
165
+ credentialType,
166
+ issuerConf
167
167
  } = _ref5;
168
168
  const credentialConfiguration = issuerConf.credential_configurations_supported[credentialType];
169
169
  if (!credentialConfiguration) {
@@ -172,10 +172,11 @@ export function extractErrorMessageFromIssuerConf(errorCode, _ref5) {
172
172
  const {
173
173
  issuance_errors_supported
174
174
  } = credentialConfiguration;
175
- if (!(issuance_errors_supported !== null && issuance_errors_supported !== void 0 && issuance_errors_supported[errorCode])) {
175
+ const errorConfig = issuance_errors_supported === null || issuance_errors_supported === void 0 ? void 0 : issuance_errors_supported[errorCode];
176
+ if (!errorConfig) {
176
177
  return undefined;
177
178
  }
178
- const localesList = issuance_errors_supported[errorCode].display;
179
+ const localesList = errorConfig.display;
179
180
  return localesList.reduce((acc, _ref6) => {
180
181
  let {
181
182
  locale,
@@ -220,10 +221,6 @@ export class ResponseErrorBuilder {
220
221
  constructor(ErrorClass) {
221
222
  this.ErrorClass = ErrorClass;
222
223
  }
223
- handle(status, params) {
224
- this.errorCases[status] = params;
225
- return this;
226
- }
227
224
  buildFrom(originalError) {
228
225
  const params = this.errorCases[originalError.statusCode] ?? this.errorCases["*"];
229
226
  if (params) {
@@ -234,6 +231,10 @@ export class ResponseErrorBuilder {
234
231
  }
235
232
  return originalError;
236
233
  }
234
+ handle(status, params) {
235
+ this.errorCases[status] = params;
236
+ return this;
237
+ }
237
238
  }
238
239
 
239
240
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["UnexpectedStatusCodeError","SdkUnexpectedStatusCodeError","IssuerResponseErrorCodes","RelyingPartyResponseErrorCodes","WalletProviderResponseErrorCodes","serializeAttrs","attrs","Object","entries","filter","_ref","v","undefined","map","_ref2","k","Array","isArray","join","JSON","stringify","_","withMappedErrors","fn","sourceError","mapError","e","IoWalletError","Error","code","constructor","message","name","ValidationFailed","_ref3","claim","reason","_ref4","statusCode","IssuerResponseError","params","IssuerGenericError","WalletProviderResponseError","WalletProviderGenericError","RelyingPartyResponseError","RelyingPartyGenericError","extractErrorMessageFromIssuerConf","errorCode","_ref5","issuerConf","credentialType","credentialConfiguration","credential_configurations_supported","issuance_errors_supported","localesList","display","reduce","acc","_ref6","locale","rest","makeErrorTypeGuard","ErrorClass","error","isIssuerResponseError","isWalletProviderResponseError","isRelyingPartyResponseError","ResponseErrorBuilder","errorCases","handle","status","buildFrom","originalError","UnimplementedFeatureError","feature","version","sdkUnexpectedStatusCodeToIssuerError","err"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":"AAAA,SAASA,yBAAyB,IAAIC,4BAA4B,QAAQ,yBAAyB;AAGnG,SAEEC,wBAAwB,EAExBC,8BAA8B,EAE9BC,gCAAgC,QAC3B,eAAe;AAEtB,SACEF,wBAAwB,EACxBE,gCAAgC,EAChCD,8BAA8B;;AAGhC;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,cAAc,GACzBC,KAA8E,IAE9EC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CAClBG,MAAM,CAACC,IAAA;EAAA,IAAC,GAAGC,CAAC,CAAC,G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AAmB,CAAC;MAC5BV,IAAI,EAAE3B,wBAAwB,CAACuC,kBAAkB;MACjDV,OAAO,EAAE8C,GAAG,CAAC9C,OAAO;MACpBK,MAAM,EAAEyC,GAAG,CAACzC,MAAM;MAClBE,UAAU,EAAEuC,GAAG,CAACvC;IAClB,CAAC,CAAC;EACJ;EACA,MAAMuC,GAAG;AACX,CAAC"}
1
+ {"version":3,"names":["UnexpectedStatusCodeError","SdkUnexpectedStatusCodeError","IssuerResponseErrorCodes","RelyingPartyResponseErrorCodes","WalletProviderResponseErrorCodes","serializeAttrs","attrs","Object","entries","filter","_ref","v","undefined","map","_ref2","k","Array","isArray","join","JSON","stringify","_","withMappedErrors","fn","sourceError","mapError","e","IoWalletError","Error","code","constructor","message","name","_ref3","reason","statusCode","IssuerResponseError","params","IssuerGenericError","RelyingPartyResponseError","RelyingPartyGenericError","ValidationFailed","_ref4","claim","WalletProviderResponseError","WalletProviderGenericError","extractErrorMessageFromIssuerConf","errorCode","_ref5","credentialType","issuerConf","credentialConfiguration","credential_configurations_supported","issuance_errors_supported","errorConfig","localesList","display","reduce","acc","_ref6","locale","rest","makeErrorTypeGuard","ErrorClass","error","isIssuerResponseError","isWalletProviderResponseError","isRelyingPartyResponseError","ResponseErrorBuilder","errorCases","buildFrom","originalError","handle","status","UnimplementedFeatureError","feature","version","sdkUnexpectedStatusCodeToIssuerError","err"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":"AAAA,SAASA,yBAAyB,IAAIC,4BAA4B,QAAQ,yBAAyB;AAKnG,SAEEC,wBAAwB,EAExBC,8BAA8B,EAE9BC,gCAAgC,QAC3B,eAAe;AAEtB,SACEF,wBAAwB,EACxBC,8BAA8B,EAC9BC,gCAAgC;;AAGlC;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GACzBC,KAAyE,IAEzEC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CAClBG,MAAM,CAACC,IA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A,GAAG,YAAY7E,4BAA4B,EAAE;IAC/C,MAAM,IAAImC,mBAAmB,CAAC;MAC5BP,IAAI,EAAE3B,wBAAwB,CAACoC,kBAAkB;MACjDP,OAAO,EAAE+C,GAAG,CAAC/C,OAAO;MACpBG,MAAM,EAAE4C,GAAG,CAAC5C,MAAM;MAClBC,UAAU,EAAE2C,GAAG,CAAC3C;IAClB,CAAC,CAAC;EACJ;EACA,MAAM2C,GAAG;AACX,CAAC"}
@@ -26,7 +26,6 @@ export const JWK = z.object({
26
26
  /** JWK "use" (Public Key Use) Parameter. */
27
27
  use: z.string().optional(),
28
28
  x: z.string().optional(),
29
- y: z.string().optional(),
30
29
  /** JWK "x5c" (X.509 Certificate Chain) Parameter. */
31
30
  x5c: z.array(z.string()).optional(),
32
31
  /** JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter. */
@@ -34,9 +33,9 @@ export const JWK = z.object({
34
33
  /** "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter. */
35
34
  "x5t#S256": z.string().optional(),
36
35
  /** JWK "x5u" (X.509 URL) Parameter. */
37
- x5u: z.string().optional()
36
+ x5u: z.string().optional(),
37
+ y: z.string().optional()
38
38
  });
39
-
40
39
  /**
41
40
  * Ensure key values are encoded using base64url and not just base64, as defined in https://datatracker.ietf.org/doc/html/rfc7517
42
41
  *
@@ -47,10 +46,10 @@ export const JWK = z.object({
47
46
  */
48
47
  export function fixBase64EncodingOnKey(key) {
49
48
  const {
50
- x,
51
- y,
52
49
  e,
53
50
  n,
51
+ x,
52
+ y,
54
53
  ...pk
55
54
  } = key;
56
55
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["removePadding","thumbprint","z","JWK","object","alg","string","optional","crv","d","dp","dq","e","ext","boolean","k","key_ops","array","kid","kty","enum","n","p","q","qi","use","x","y","x5c","x5t","x5u","fixBase64EncodingOnKey","key","pk","JWKS","keys","isSameThumbprint","jwkA","jwkB","thumbprintJwkA","thumbprintJwkB","Promise","all"],"source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AAEA,CAAC,EAAEZ,aAAa,CAACY,CAAC;IAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,IAAIS,CAAC,GAAG;MAAEA,CAAC,EAAErB,aAAa,CAACqB,CAAC;IAAE,CAAC,GAAG,CAAC,CAAC;EACtC,CAAC;AACH;AAGA,OAAO,MAAMa,IAAI,GAAGhC,CAAC,CAACE,MAAM,CAAC;EAC3B+B,IAAI,EAAEjC,CAAC,CAACe,KAAK,CAACd,GAAG;AACnB,CAAC,CAAC;AAIF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMiC,gBAAgB,GAAG,MAAAA,CAAOC,IAAS,EAAEC,IAAS,KAAK;EAC9D,MAAM,CAACC,cAAc,EAAEC,cAAc,CAAC,GAAG,MAAMC,OAAO,CAACC,GAAG,CAAC,CACzDzC,UAAU,CAACoC,IAAI,CAAC,EAChBpC,UAAU,CAACqC,IAAI,CAAC,CACjB,CAAC;EACF,OAAOC,cAAc,KAAKC,cAAc;AAC1C,CAAC"}
1
+ {"version":3,"names":["removePadding","thumbprint","z","JWK","object","alg","string","optional","crv","d","dp","dq","e","ext","boolean","k","key_ops","array","kid","kty","enum","n","p","q","qi","use","x","x5c","x5t","x5u","y","fixBase64EncodingOnKey","key","pk","JWKS","keys","isSameThumbprint","jwkA","jwkB","thumbprintJwkA","thumbprintJwkB","Promise","all"],"sourceRoot":"../../../src","sources":["utils/jwk.ts"],"mappings":"AAAA,SAAiBA,aAAa,EAAEC,UAAU,QAAQ,6BAA6B;AAC/E,SAASC,CAAC,QAAQ,KAAK;AAGvB,OAAO,MAAMC,GAAG,GAAGD,CAAC,CAACE,MAAM,CAAC;EAC1B;EACAC,GAAG,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC1BC,GAAG,EAAEN,CAAC,CAACI,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC1BE,CAAC,EAAEP,CAAC,CAACI,MAAM,CAAC,CA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A,CAAOC,IAAS,EAAEC,IAAS,KAAK;EAC9D,MAAM,CAACC,cAAc,EAAEC,cAAc,CAAC,GAAG,MAAMC,OAAO,CAACC,GAAG,CAAC,CACzDzC,UAAU,CAACoC,IAAI,CAAC,EAChBpC,UAAU,CAACqC,IAAI,CAAC,CACjB,CAAC;EACF,OAAOC,cAAc,KAAKC,cAAc;AAC1C,CAAC"}
@@ -1,7 +1,3 @@
1
- /**
2
- * Logger interface which can be provided to the Logger class as a custom implementation.
3
- */
4
-
5
1
  /**
6
2
  * Supported debug levels.
7
3
  */
@@ -13,6 +9,10 @@ export let LogLevel = /*#__PURE__*/function (LogLevel) {
13
9
  return LogLevel;
14
10
  }({});
15
11
 
12
+ /**
13
+ * Logger interface which can be provided to the Logger class as a custom implementation.
14
+ */
15
+
16
16
  /**
17
17
  * Logger singleton class which provides a simple logging interface with an init function to set the logging context and
18
18
  * a static log function to log messages based on the debug level.
@@ -23,8 +23,9 @@ export let LogLevel = /*#__PURE__*/function (LogLevel) {
23
23
  */
24
24
  export class Logger {
25
25
  static instance = null;
26
- // Private constructor to prevent direct instantiation
27
- constructor() {}
26
+ constructor() {
27
+ /* Private constructor to prevent direct instantiation */
28
+ }
28
29
 
29
30
  // Public static method to get the Logger instance
30
31
  static getInstance() {
@@ -34,11 +35,6 @@ export class Logger {
34
35
  return Logger.instance;
35
36
  }
36
37
 
37
- // Method to initialize the logging context
38
- initLogging(loggingCtx) {
39
- Logger.loggingContext = loggingCtx;
40
- }
41
-
42
38
  // Method to log based on the level which wraps the null check for the logging context
43
39
  static log(level, msg) {
44
40
  if (Logger.loggingContext) {
@@ -46,17 +42,22 @@ export class Logger {
46
42
  case LogLevel.DEBUG:
47
43
  Logger.loggingContext.logDebug(msg);
48
44
  break;
45
+ case LogLevel.ERROR:
46
+ Logger.loggingContext.logError(msg);
47
+ break;
49
48
  case LogLevel.INFO:
50
49
  Logger.loggingContext.logInfo(msg);
51
50
  break;
52
51
  case LogLevel.WARN:
53
52
  Logger.loggingContext.logWarn(msg);
54
53
  break;
55
- case LogLevel.ERROR:
56
- Logger.loggingContext.logError(msg);
57
- break;
58
54
  }
59
55
  }
60
56
  }
57
+
58
+ // Method to initialize the logging context
59
+ initLogging(loggingCtx) {
60
+ Logger.loggingContext = loggingCtx;
61
+ }
61
62
  }
62
63
  //# sourceMappingURL=logging.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LogLevel","Logger","instance","constructor","getInstance","initLogging","loggingCtx","loggingContext","log","level","msg","DEBUG","logDebug","INFO","logInfo","WARN","logWarn","ERROR","logError"],"sourceRoot":"../../../src","sources":["utils/logging.ts"],"mappings":"AAAA;AACA;AACA;;AAQA;AACA;AACA;AACA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;;AAOpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,CAAC;EAClB,OAAeC,QAAQ,GAAkB,IAAI;EAG7C;EACQC,WAAWA,CAAA,EAAG,CAAC;;EAEvB;EACA,OAAcC,WAAWA,CAAA,EAAW;IAClC,IAAIH,MAAM,CAACC,QAAQ,KAAK,IAAI,EAAE;MAC5BD,MAAM,CAACC,QAAQ,GAAG,IAAID,MAAM,CAAC,CAAC;IAChC;IACA,OAAOA,MAAM,CAACC,QAAQ;EACxB;;EAEA;EACOG,WAAWA,CAACC,UAA0B,EAAQ;IACnDL,MAAM,CAACM,cAAc,GAAGD,UAAU;EACpC;;EAEA;EACA,OAAcE,GAAGA,CAACC,KAAe,EAAEC,GAAW,EAAQ;IACpD,IAAIT,MAAM,CAACM,cAAc,EAAE;MACzB,QAAQE,KAAK;QACX,KAAKT,QAAQ,CAACW,KAAK;UACjBV,MAAM,CAACM,cAAc,CAACK,QAAQ,CAACF,GAAG,CAAC;UACnC;QACF,KAAKV,QAAQ,CAACa,IAAI;UAChBZ,MAAM,CAACM,cAAc,CAACO,OAAO,CAACJ,GAAG,CAAC;UAClC;QACF,KAAKV,QAAQ,CAACe,IAAI;UAChBd,MAAM,CAACM,cAAc,CAACS,OAAO,CAACN,GAAG,CAAC;UAClC;QACF,KAAKV,QAAQ,CAACiB,KAAK;UACjBhB,MAAM,CAACM,cAAc,CAACW,QAAQ,CAACR,GAAG,CAAC;UACnC;MACJ;IACF;EACF;AACF"}
1
+ {"version":3,"names":["LogLevel","Logger","instance","constructor","getInstance","log","level","msg","loggingContext","DEBUG","logDebug","ERROR","logError","INFO","logInfo","WARN","logWarn","initLogging","loggingCtx"],"sourceRoot":"../../../src","sources":["utils/logging.ts"],"mappings":"AAAA;AACA;AACA;AACA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;;AAOpB;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,CAAC;EAClB,OAAeC,QAAQ,GAAkB,IAAI;EAGrCC,WAAWA,CAAA,EAAG;IACpB;EAAA;;EAGF;EACA,OAAcC,WAAWA,CAAA,EAAW;IAClC,IAAIH,MAAM,CAACC,QAAQ,KAAK,IAAI,EAAE;MAC5BD,MAAM,CAACC,QAAQ,GAAG,IAAID,MAAM,CAAC,CAAC;IAChC;IACA,OAAOA,MAAM,CAACC,QAAQ;EACxB;;EAEA;EACA,OAAcG,GAAGA,CAACC,KAAe,EAAEC,GAAW,EAAQ;IACpD,IAAIN,MAAM,CAACO,cAAc,EAAE;MACzB,QAAQF,KAAK;QACX,KAAKN,QAAQ,CAACS,KAAK;UACjBR,MAAM,CAACO,cAAc,CAACE,QAAQ,CAACH,GAAG,CAAC;UACnC;QACF,KAAKP,QAAQ,CAACW,KAAK;UACjBV,MAAM,CAACO,cAAc,CAACI,QAAQ,CAACL,GAAG,CAAC;UACnC;QACF,KAAKP,QAAQ,CAACa,IAAI;UAChBZ,MAAM,CAACO,cAAc,CAACM,OAAO,CAACP,GAAG,CAAC;UAClC;QACF,KAAKP,QAAQ,CAACe,IAAI;UAChBd,MAAM,CAACO,cAAc,CAACQ,OAAO,CAACT,GAAG,CAAC;UAClC;MACJ;IACF;EACF;;EAEA;EACOU,WAAWA,CAACC,UAA0B,EAAQ;IACnDjB,MAAM,CAACO,cAAc,GAAGU,UAAU;EACpC;AACF"}
@@ -41,10 +41,9 @@ export function createMapper(mapper, config) {
41
41
  * @fn The function to wrap
42
42
  * @return The original function with the mapper applied to its return value
43
43
  */
44
- export const withMapper = (mapper, fn) => {
45
- return function wrappedFunction() {
46
- return mapper(fn(...arguments));
47
- };
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ export const withMapper = (mapper, fn) => function wrappedFunction() {
46
+ return mapper(fn(...arguments));
48
47
  };
49
48
 
50
49
  /**
@@ -54,9 +53,8 @@ export const withMapper = (mapper, fn) => {
54
53
  * @fn The function to wrap
55
54
  * @return The original function with the mapper applied to its return value
56
55
  */
57
- export const withMapperAsync = (mapper, fn) => {
58
- return async function wrappedAsyncFunction() {
59
- return mapper(await fn(...arguments));
60
- };
56
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
+ export const withMapperAsync = (mapper, fn) => async function wrappedAsyncFunction() {
58
+ return mapper(await fn(...arguments));
61
59
  };
62
60
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createMapper","mapper","config","inputSchema","outputSchema","input","transform","pipe","parse","withMapper","fn","wrappedFunction","arguments","withMapperAsync","wrappedAsyncFunction"],"sourceRoot":"../../../src","sources":["utils/mappers.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,OAAO,SAASA,YAAYA,CAC1BC,MAAuB,EACvBC,MAGC,EACD;EACA,IAAI,CAACA,MAAM,EAAE;IACX,OAAOD,MAAM;EACf;EAEA,MAAM;IAAEE,WAAW;IAAEC;EAAa,CAAC,GAAGF,MAAM;EAE5C,IAAIC,WAAW,EAAE;IACf,OAAQE,KAAc,IACpBF,WAAW,CAACG,SAAS,CAACL,MAAM,CAAC,CAACM,IAAI,CAACH,YAAY,CAAC,CAACI,KAAK,CAACH,KAAK,CAAC;EACjE;EAEA,OAAQA,KAAQ,IAAKD,YAAY,CAACI,KAAK,CAACP,MAAM,CAACI,KAAK,CAAC,CAAC;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGA,CACxBR,MAAuB,EACvBS,EAAqB,KAClB;EACH,OAAO,SAASC,eAAeA,CAAA,EAAa;IAC1C,OAAOV,MAAM,CAACS,EAAE,CAAC,GAAAE,SAAO,CAAC,CAAC;EAC5B,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAC7BZ,MAAuB,EACvBS,EAA8B,KAC3B;EACH,OAAO,eAAeI,oBAAoBA,CAAA,EAAa;IACrD,OAAOb,MAAM,CAAC,MAAMS,EAAE,CAAC,GAAAE,SAAO,CAAC,CAAC;EAClC,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["createMapper","mapper","config","inputSchema","outputSchema","input","transform","pipe","parse","withMapper","fn","wrappedFunction","arguments","withMapperAsync","wrappedAsyncFunction"],"sourceRoot":"../../../src","sources":["utils/mappers.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,OAAO,SAASA,YAAYA,CAC1BC,MAAuB,EACvBC,MAKC,EACD;EACA,IAAI,CAACA,MAAM,EAAE;IACX,OAAOD,MAAM;EACf;EAEA,MAAM;IAAEE,WAAW;IAAEC;EAAa,CAAC,GAAGF,MAAM;EAE5C,IAAIC,WAAW,EAAE;IACf,OAAQE,KAAc,IACpBF,WAAW,CAACG,SAAS,CAACL,MAAM,CAAC,CAACM,IAAI,CAACH,YAAY,CAAC,CAACI,KAAK,CAACH,KAAK,CAAC;EACjE;EAEA,OAAQA,KAAQ,IAAKD,YAAY,CAACI,KAAK,CAACP,MAAM,CAACI,KAAK,CAAC,CAAC;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGA,CACxBR,MAAuB,EACvBS,EAAqB,KAErB,SAASC,eAAeA,CAAA,EAAa;EACnC,OAAOV,MAAM,CAACS,EAAE,CAAC,GAAAE,SAAO,CAAC,CAAC;AAC5B,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAC7BZ,MAAuB,EACvBS,EAA8B,KAE9B,eAAeI,oBAAoBA,CAAA,EAAa;EAC9C,OAAOb,MAAM,CAAC,MAAMS,EAAE,CAAC,GAAAE,SAAO,CAAC,CAAC;AAClC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { IoWalletError, UnexpectedStatusCodeError } from "./errors";
2
1
  import { sha256 } from "js-sha256";
3
- import { LogLevel, Logger } from "./logging";
2
+ import { IoWalletError, UnexpectedStatusCodeError } from "./errors";
3
+ import { Logger, LogLevel } from "./logging";
4
4
 
5
5
  /**
6
6
  * Check if a response is in the expected status, otherwise throw an error
@@ -15,11 +15,11 @@ export const hasStatusOrThrow = (status, customError) => async res => {
15
15
  Logger.log(LogLevel.ERROR, `Http request failed. Expected ${status}, got ${res.status}, url: ${res.url}`);
16
16
  throw new ErrorClass({
17
17
  message: `Http request failed. Expected ${status}, got ${res.status}, url: ${res.url}`,
18
- statusCode: res.status,
19
- reason: await parseRawHttpResponse(res) // Pass the response body as reason so the original error can surface
18
+ reason: await parseRawHttpResponse(res),
19
+ // Pass the response body as reason so the original error can surface
20
+ statusCode: res.status
20
21
  });
21
22
  }
22
-
23
23
  return res;
24
24
  };
25
25
 
@@ -33,6 +33,7 @@ export const parseRawHttpResponse = response => {
33
33
 
34
34
  // extract a type from an async function output
35
35
  // helpful to bind the input of a function to the output of another
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
36
37
  /**
37
38
  * TODO [SIW-1310]: replace this function with a cryptographically secure one.
38
39
  * @param size - The size of the string to generate
@@ -65,7 +66,7 @@ export const getCredentialHashWithouDiscloures = async credential => {
65
66
  export const safeJsonParse = (text, withDefault) => {
66
67
  try {
67
68
  return JSON.parse(text);
68
- } catch (_) {
69
+ } catch {
69
70
  return withDefault ?? null;
70
71
  }
71
72
  };
@@ -1 +1 @@
1
- {"version":3,"names":["IoWalletError","UnexpectedStatusCodeError","sha256","LogLevel","Logger","hasStatusOrThrow","status","customError","res","ErrorClass","log","ERROR","url","message","statusCode","reason","parseRawHttpResponse","response","_response$headers$get","headers","get","includes","json","text","generateRandomAlphaNumericString","size","Array","from","Math","floor","random","toString","join","generateRandomBytes","Uint8Array","length","getCredentialHashWithouDiscloures","credential","tildeIndex","indexOf","slice","safeJsonParse","withDefault","JSON","parse","_","assert","condition","msg","arguments","undefined"],"sourceRoot":"../../../src","sources":["utils/misc.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,yBAAyB,QAAQ,UAAU;AACnE,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,QAAQ,EAAEC,MAAM,QAAQ,WAAW;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAC3BA,CAACC,MAAc,EAAEC,WAA8C,KAC/D,MAAOC,GAAa,IAAwB;EAC1C,IAAIA,GAAG,CAACF,MAAM,KAAKA,MAAM,EAAE;IACzB,MAAMG,UAAU,GAAGF,WAAW,IAAIN,yBAAyB;IAC3DG,MAAM,CAACM,GAAG,CACRP,QAAQ,CAACQ,KA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AAMM,iCAAiC,GAAG,MAC/CC,UAAkB,IACE;EACpB,MAAMC,UAAU,GAAGD,UAAU,CAACE,OAAO,CAAC,GAAG,CAAC;EAC1C,IAAID,UAAU,KAAK,CAAC,CAAC,EAAE;IACrB,MAAM,IAAItC,aAAa,CAAC,2BAA2B,CAAC;EACtD;EACA,OAAOE,MAAM,CAACmC,UAAU,CAACG,KAAK,CAAC,CAAC,EAAEF,UAAU,CAAC,CAAC;AAChD,CAAC;AAED,OAAO,MAAMG,aAAa,GAAGA,CAAIlB,IAAY,EAAEmB,WAAe,KAAe;EAC3E,IAAI;IACF,OAAOC,IAAI,CAACC,KAAK,CAACrB,IAAI,CAAC;EACzB,CAAC,CAAC,OAAOsB,CAAC,EAAE;IACV,OAAOH,WAAW,IAAI,IAAI;EAC5B;AACF,CAAC;AAED,OAAO,SAASI,MAAMA,CACpBC,SAAkB,EAEC;EAAA,IADnBC,GAAW,GAAAC,SAAA,CAAAd,MAAA,QAAAc,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,kBAAkB;EAEhC,IAAI,CAACF,SAAS,EAAE;IACd,MAAM,IAAI/C,aAAa,CAACgD,GAAG,CAAC;EAC9B;AACF"}
1
+ {"version":3,"names":["sha256","IoWalletError","UnexpectedStatusCodeError","Logger","LogLevel","hasStatusOrThrow","status","customError","res","ErrorClass","log","ERROR","url","message","reason","parseRawHttpResponse","statusCode","response","_response$headers$get","headers","get","includes","json","text","generateRandomAlphaNumericString","size","Array","from","Math","floor","random","toString","join","generateRandomBytes","Uint8Array","length","getCredentialHashWithouDiscloures","credential","tildeIndex","indexOf","slice","safeJsonParse","withDefault","JSON","parse","assert","condition","msg","arguments","undefined"],"sourceRoot":"../../../src","sources":["utils/misc.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,aAAa,EAAEC,yBAAyB,QAAQ,UAAU;AACnE,SAASC,MAAM,EAAEC,QAAQ,QAAQ,WAAW;;AAE5C;AACA;AACA;AACA;AAC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