@pagopa/io-react-native-wallet 3.6.3 → 3.7.0

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 (1281) hide show
  1. package/README.md +2 -2
  2. package/lib/commonjs/IoWallet.js +5 -3
  3. package/lib/commonjs/IoWallet.js.map +1 -1
  4. package/lib/commonjs/api/index.js +23 -24
  5. package/lib/commonjs/api/index.js.map +1 -1
  6. package/lib/commonjs/client/index.js +9 -11
  7. package/lib/commonjs/client/index.js.map +1 -1
  8. package/lib/commonjs/credential/issuance/README.md +9 -9
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
  10. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/api/types.js +3 -3
  13. package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
  15. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  17. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
  19. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/common/errors.js +0 -3
  21. package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/index.js +2 -2
  23. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  24. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  25. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  26. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  27. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  28. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  29. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +6 -6
  30. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  32. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  33. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  34. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
  35. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  36. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
  37. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  38. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
  39. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  40. package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  41. package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
  42. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  43. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
  44. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  45. package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
  46. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +3 -3
  47. package/lib/commonjs/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -0
  48. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +30 -30
  49. package/lib/commonjs/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -0
  50. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +37 -39
  51. package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
  52. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +16 -16
  53. package/lib/commonjs/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -0
  54. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +36 -32
  55. package/lib/commonjs/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
  56. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
  57. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/index.js +8 -8
  58. package/lib/commonjs/credential/issuance/v1.4.6/index.js.map +1 -0
  59. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +18 -17
  60. package/lib/commonjs/credential/issuance/v1.4.6/mappers.js.map +1 -0
  61. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  62. package/lib/commonjs/credential/offer/README.md +10 -6
  63. package/lib/commonjs/credential/offer/common/errors.js +0 -6
  64. package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
  65. package/lib/commonjs/credential/offer/index.js +2 -2
  66. package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
  67. package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
  68. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +5 -5
  69. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js.map +1 -1
  70. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +6 -6
  71. package/lib/commonjs/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -0
  72. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +7 -7
  73. package/lib/commonjs/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -0
  74. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js +1 -1
  75. package/lib/commonjs/credential/offer/v1.4.6/index.js.map +1 -0
  76. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
  77. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  78. package/lib/commonjs/credential/presentation/api/types.js +13 -13
  79. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  80. package/lib/commonjs/credential/presentation/common/errors.js +24 -23
  81. package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
  82. package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
  83. package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
  84. package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
  85. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
  86. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
  87. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  88. package/lib/commonjs/credential/presentation/index.js +2 -2
  89. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  90. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  91. package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  92. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  93. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  94. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  95. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  96. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
  97. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  98. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
  99. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  100. package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
  101. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  102. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
  103. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  104. package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
  105. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  106. package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
  107. package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  108. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +11 -5
  109. package/lib/commonjs/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
  110. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
  111. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
  112. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +1 -1
  113. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
  114. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +3 -3
  115. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
  116. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +14 -12
  117. package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
  118. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +24 -16
  119. package/lib/commonjs/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -0
  120. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +31 -26
  121. package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -0
  122. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js +5 -5
  123. package/lib/commonjs/credential/presentation/v1.4.6/index.js.map +1 -0
  124. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +11 -11
  125. package/lib/commonjs/credential/presentation/v1.4.6/mappers.js.map +1 -0
  126. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +2 -2
  127. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js.map +1 -1
  128. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js +3 -3
  129. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  130. package/lib/commonjs/credential/status/README.md +2 -2
  131. package/lib/commonjs/credential/status/api/types.js +6 -6
  132. package/lib/commonjs/credential/status/api/types.js.map +1 -1
  133. package/lib/commonjs/credential/status/index.js +3 -3
  134. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
  135. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  136. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  137. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  138. package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
  139. package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
  140. package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
  141. package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
  142. package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
  143. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +4 -4
  144. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
  145. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
  146. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +4 -4
  147. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js.map +1 -1
  148. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/index.js +3 -3
  149. package/lib/commonjs/credential/status/v1.4.6/index.js.map +1 -0
  150. package/lib/commonjs/credential/trustmark/index.js +2 -2
  151. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
  152. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  153. package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
  154. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
  155. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
  156. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  157. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +55 -55
  158. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  159. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  160. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  161. package/lib/commonjs/credentials-catalogue/index.js +2 -2
  162. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  163. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  164. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
  165. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  166. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
  167. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  168. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +36 -36
  169. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  170. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +12 -12
  171. package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -0
  172. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +1 -1
  173. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
  174. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +1 -1
  175. package/lib/commonjs/credentials-catalogue/v1.4.6/index.js.map +1 -0
  176. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +21 -20
  177. package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js.map +1 -0
  178. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +98 -98
  179. package/lib/commonjs/credentials-catalogue/v1.4.6/types.js.map +1 -0
  180. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +10 -10
  181. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  182. package/lib/commonjs/index.js +23 -17
  183. package/lib/commonjs/index.js.map +1 -1
  184. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/README.md +9 -9
  185. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
  186. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/types.js +9 -9
  187. package/lib/commonjs/key-attestation/api/types.js.map +1 -0
  188. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/index.js +4 -4
  189. package/lib/commonjs/key-attestation/index.js.map +1 -0
  190. package/lib/commonjs/key-attestation/v1.0.0/index.js +11 -0
  191. package/lib/commonjs/key-attestation/v1.0.0/index.js.map +1 -0
  192. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/index.js +7 -7
  193. package/lib/commonjs/key-attestation/v1.4.6/index.js.map +1 -0
  194. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +34 -31
  195. package/lib/commonjs/key-attestation/v1.4.6/issuing.js.map +1 -0
  196. package/lib/commonjs/key-attestation/v1.4.6/mappers.js +13 -0
  197. package/lib/commonjs/key-attestation/v1.4.6/mappers.js.map +1 -0
  198. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.js +6 -6
  199. package/lib/commonjs/key-attestation/v1.4.6/types.js.map +1 -0
  200. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +2 -2
  201. package/lib/commonjs/key-attestation/v1.4.6/utils.js.map +1 -0
  202. package/lib/commonjs/mdoc/index.js +13 -5
  203. package/lib/commonjs/mdoc/index.js.map +1 -1
  204. package/lib/commonjs/mdoc/utils.js.map +1 -1
  205. package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
  206. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  207. package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
  208. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  209. package/lib/commonjs/sd-jwt/index.js +9 -9
  210. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  211. package/lib/commonjs/sd-jwt/types.js +19 -19
  212. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  213. package/lib/commonjs/sd-jwt/utils.js +10 -11
  214. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  215. package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
  216. package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
  217. package/lib/commonjs/trust/common/build-chain.js +5 -2
  218. package/lib/commonjs/trust/common/build-chain.js.map +1 -1
  219. package/lib/commonjs/trust/common/errors.js +51 -44
  220. package/lib/commonjs/trust/common/errors.js.map +1 -1
  221. package/lib/commonjs/trust/common/types.js +22 -22
  222. package/lib/commonjs/trust/common/types.js.map +1 -1
  223. package/lib/commonjs/trust/common/utils.js +45 -45
  224. package/lib/commonjs/trust/common/utils.js.map +1 -1
  225. package/lib/commonjs/trust/common/verify-chain.js +96 -96
  226. package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
  227. package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
  228. package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
  229. package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
  230. package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
  231. package/lib/commonjs/trust/v1.0.0/index.js +3 -3
  232. package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
  233. package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
  234. package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
  235. package/lib/commonjs/trust/v1.0.0/types.js +46 -46
  236. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  237. package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
  238. package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
  239. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js +2 -2
  240. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
  241. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js +2 -2
  242. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  243. package/lib/commonjs/utils/auth.js +2 -2
  244. package/lib/commonjs/utils/auth.js.map +1 -1
  245. package/lib/commonjs/utils/callbacks.js +47 -51
  246. package/lib/commonjs/utils/callbacks.js.map +1 -1
  247. package/lib/commonjs/utils/config.js +2 -10
  248. package/lib/commonjs/utils/config.js.map +1 -1
  249. package/lib/commonjs/utils/credentials.js +3 -3
  250. package/lib/commonjs/utils/credentials.js.map +1 -1
  251. package/lib/commonjs/utils/crypto.js +23 -25
  252. package/lib/commonjs/utils/crypto.js.map +1 -1
  253. package/lib/commonjs/utils/decoder.js +2 -2
  254. package/lib/commonjs/utils/decoder.js.map +1 -1
  255. package/lib/commonjs/utils/dpop.js +5 -5
  256. package/lib/commonjs/utils/dpop.js.map +1 -1
  257. package/lib/commonjs/utils/error-codes.js +19 -19
  258. package/lib/commonjs/utils/error-codes.js.map +1 -1
  259. package/lib/commonjs/utils/errors.js +51 -50
  260. package/lib/commonjs/utils/errors.js.map +1 -1
  261. package/lib/commonjs/utils/jwk.js +5 -6
  262. package/lib/commonjs/utils/jwk.js.map +1 -1
  263. package/lib/commonjs/utils/logging.js +15 -14
  264. package/lib/commonjs/utils/logging.js.map +1 -1
  265. package/lib/commonjs/utils/mappers.js +6 -8
  266. package/lib/commonjs/utils/mappers.js.map +1 -1
  267. package/lib/commonjs/utils/misc.js +6 -5
  268. package/lib/commonjs/utils/misc.js.map +1 -1
  269. package/lib/commonjs/utils/par.js +28 -28
  270. package/lib/commonjs/utils/par.js.map +1 -1
  271. package/lib/commonjs/utils/pop.js +5 -5
  272. package/lib/commonjs/utils/pop.js.map +1 -1
  273. package/lib/commonjs/utils/string.js.map +1 -1
  274. package/lib/commonjs/utils/x509.js +2 -2
  275. package/lib/commonjs/utils/x509.js.map +1 -1
  276. package/lib/commonjs/utils/zod.js +1 -1
  277. package/lib/commonjs/utils/zod.js.map +1 -1
  278. package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
  279. package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
  280. package/lib/commonjs/wallet-instance/index.js +2 -2
  281. package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
  282. package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
  283. package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js +2 -2
  284. package/lib/commonjs/wallet-instance/v1.4.6/index.js.map +1 -0
  285. package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
  286. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  287. package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
  288. package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
  289. package/lib/commonjs/wallet-instance-attestation/index.js +2 -2
  290. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  291. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  292. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  293. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  294. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  295. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  296. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
  297. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  298. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  299. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  300. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +2 -2
  301. package/lib/commonjs/wallet-instance-attestation/v1.4.6/index.js.map +1 -0
  302. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +20 -20
  303. package/lib/commonjs/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -0
  304. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  305. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  306. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +1 -1
  307. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  308. package/lib/module/IoWallet.js +6 -4
  309. package/lib/module/IoWallet.js.map +1 -1
  310. package/lib/module/api/index.js +23 -24
  311. package/lib/module/api/index.js.map +1 -1
  312. package/lib/module/client/index.js +10 -12
  313. package/lib/module/client/index.js.map +1 -1
  314. package/lib/module/credential/issuance/README.md +9 -9
  315. package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
  316. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  317. package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  318. package/lib/module/credential/issuance/api/types.js +3 -3
  319. package/lib/module/credential/issuance/api/types.js.map +1 -1
  320. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
  321. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  322. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  323. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  324. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
  325. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  326. package/lib/module/credential/issuance/common/errors.js +0 -3
  327. package/lib/module/credential/issuance/common/errors.js.map +1 -1
  328. package/lib/module/credential/issuance/index.js +1 -1
  329. package/lib/module/credential/issuance/index.js.map +1 -1
  330. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  331. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  332. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  333. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  334. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  335. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  336. package/lib/module/credential/issuance/mrtd-pop/index.js +8 -8
  337. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  338. package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  339. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  340. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  341. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
  342. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  343. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
  344. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  345. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
  346. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  347. package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  348. package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
  349. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  350. package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
  351. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  352. package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
  353. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +3 -3
  354. package/lib/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -0
  355. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +31 -31
  356. package/lib/module/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -0
  357. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +29 -31
  358. package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
  359. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +16 -16
  360. package/lib/module/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -0
  361. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +38 -34
  362. package/lib/module/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
  363. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
  364. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/index.js +9 -9
  365. package/lib/module/credential/issuance/v1.4.6/index.js.map +1 -0
  366. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +18 -17
  367. package/lib/module/credential/issuance/v1.4.6/mappers.js.map +1 -0
  368. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  369. package/lib/module/credential/offer/README.md +10 -6
  370. package/lib/module/credential/offer/common/errors.js +0 -6
  371. package/lib/module/credential/offer/common/errors.js.map +1 -1
  372. package/lib/module/credential/offer/index.js +1 -1
  373. package/lib/module/credential/offer/index.js.map +1 -1
  374. package/lib/module/credential/offer/v1.0.0/index.js +3 -3
  375. package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
  376. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +6 -6
  377. package/lib/module/credential/offer/v1.4.6/01-resolve-credential-offer.js.map +1 -0
  378. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +5 -5
  379. package/lib/module/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -0
  380. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +8 -8
  381. package/lib/module/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -0
  382. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js +1 -1
  383. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  384. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
  385. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  386. package/lib/module/credential/presentation/api/types.js +13 -13
  387. package/lib/module/credential/presentation/api/types.js.map +1 -1
  388. package/lib/module/credential/presentation/common/errors.js +21 -21
  389. package/lib/module/credential/presentation/common/errors.js.map +1 -1
  390. package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
  391. package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
  392. package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
  393. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
  394. package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
  395. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  396. package/lib/module/credential/presentation/index.js +1 -1
  397. package/lib/module/credential/presentation/index.js.map +1 -1
  398. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  399. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  400. package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  401. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  402. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  403. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  404. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  405. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
  406. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  407. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
  408. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  409. package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
  410. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  411. package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
  412. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  413. package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
  414. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  415. package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
  416. package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
  417. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
  418. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  419. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +11 -5
  420. package/lib/module/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
  421. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
  422. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
  423. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +1 -1
  424. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
  425. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +3 -3
  426. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
  427. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +16 -13
  428. package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
  429. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +25 -17
  430. package/lib/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -0
  431. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +31 -26
  432. package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -0
  433. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js +6 -6
  434. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  435. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +11 -11
  436. package/lib/module/credential/presentation/v1.4.6/mappers.js.map +1 -0
  437. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +4 -3
  438. package/lib/module/credential/presentation/v1.4.6/sdkErrorMapper.js.map +1 -0
  439. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js +3 -3
  440. package/lib/module/credential/presentation/v1.4.6/types.js.map +1 -0
  441. package/lib/module/credential/status/README.md +2 -2
  442. package/lib/module/credential/status/api/index.js.map +1 -1
  443. package/lib/module/credential/status/api/types.js +6 -6
  444. package/lib/module/credential/status/api/types.js.map +1 -1
  445. package/lib/module/credential/status/index.js +1 -1
  446. package/lib/module/credential/status/index.js.map +1 -1
  447. package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
  448. package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  449. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  450. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  451. package/lib/module/credential/status/v1.0.0/index.js +1 -1
  452. package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
  453. package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
  454. package/lib/module/credential/status/v1.0.0/types.js +17 -17
  455. package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
  456. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +4 -4
  457. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
  458. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
  459. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +5 -4
  460. package/lib/module/credential/status/v1.4.6/03-get-status.js.map +1 -0
  461. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js +3 -3
  462. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  463. package/lib/module/credential/trustmark/index.js +1 -1
  464. package/lib/module/credential/trustmark/index.js.map +1 -1
  465. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
  466. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  467. package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
  468. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
  469. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
  470. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  471. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +55 -55
  472. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  473. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  474. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  475. package/lib/module/credentials-catalogue/index.js +1 -1
  476. package/lib/module/credentials-catalogue/index.js.map +1 -1
  477. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  478. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  479. package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
  480. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  481. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
  482. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  483. package/lib/module/credentials-catalogue/v1.0.0/types.js +36 -36
  484. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  485. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +12 -12
  486. package/lib/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -0
  487. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +1 -1
  488. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
  489. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +1 -1
  490. package/lib/module/credentials-catalogue/v1.4.6/index.js.map +1 -0
  491. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +22 -21
  492. package/lib/module/credentials-catalogue/v1.4.6/mappers.js.map +1 -0
  493. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +98 -98
  494. package/lib/module/credentials-catalogue/v1.4.6/types.js.map +1 -0
  495. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +10 -10
  496. package/lib/module/credentials-catalogue/v1.4.6/utils.js.map +1 -0
  497. package/lib/module/index.js +10 -10
  498. package/lib/module/index.js.map +1 -1
  499. package/{src/wallet-unit-attestation → lib/module/key-attestation}/README.md +9 -9
  500. package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
  501. package/lib/module/{wallet-unit-attestation → key-attestation}/api/types.js +7 -7
  502. package/lib/module/key-attestation/api/types.js.map +1 -0
  503. package/lib/module/key-attestation/index.js +3 -0
  504. package/lib/module/key-attestation/index.js.map +1 -0
  505. package/lib/module/key-attestation/v1.0.0/index.js +4 -0
  506. package/lib/module/key-attestation/v1.0.0/index.js.map +1 -0
  507. package/lib/module/key-attestation/v1.4.6/index.js +10 -0
  508. package/lib/module/key-attestation/v1.4.6/index.js.map +1 -0
  509. package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +35 -32
  510. package/lib/module/key-attestation/v1.4.6/issuing.js.map +1 -0
  511. package/lib/module/key-attestation/v1.4.6/mappers.js +6 -0
  512. package/lib/module/key-attestation/v1.4.6/mappers.js.map +1 -0
  513. package/lib/module/key-attestation/v1.4.6/types.js +14 -0
  514. package/lib/module/key-attestation/v1.4.6/types.js.map +1 -0
  515. package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +3 -3
  516. package/lib/module/key-attestation/v1.4.6/utils.js.map +1 -0
  517. package/lib/module/mdoc/index.js +13 -5
  518. package/lib/module/mdoc/index.js.map +1 -1
  519. package/lib/module/mdoc/utils.js.map +1 -1
  520. package/lib/module/sd-jwt/__test__/types.test.js +9 -9
  521. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  522. package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
  523. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  524. package/lib/module/sd-jwt/index.js +9 -9
  525. package/lib/module/sd-jwt/index.js.map +1 -1
  526. package/lib/module/sd-jwt/types.js +19 -19
  527. package/lib/module/sd-jwt/types.js.map +1 -1
  528. package/lib/module/sd-jwt/utils.js +10 -11
  529. package/lib/module/sd-jwt/utils.js.map +1 -1
  530. package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
  531. package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
  532. package/lib/module/trust/common/build-chain.js +5 -2
  533. package/lib/module/trust/common/build-chain.js.map +1 -1
  534. package/lib/module/trust/common/errors.js +46 -37
  535. package/lib/module/trust/common/errors.js.map +1 -1
  536. package/lib/module/trust/common/types.js +22 -22
  537. package/lib/module/trust/common/types.js.map +1 -1
  538. package/lib/module/trust/common/utils.js +45 -45
  539. package/lib/module/trust/common/utils.js.map +1 -1
  540. package/lib/module/trust/common/verify-chain.js +96 -96
  541. package/lib/module/trust/common/verify-chain.js.map +1 -1
  542. package/lib/module/trust/v1.0.0/build-chain.js +2 -2
  543. package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
  544. package/lib/module/trust/v1.0.0/entities.js +1 -1
  545. package/lib/module/trust/v1.0.0/entities.js.map +1 -1
  546. package/lib/module/trust/v1.0.0/index.js +3 -3
  547. package/lib/module/trust/v1.0.0/index.js.map +1 -1
  548. package/lib/module/trust/v1.0.0/mappers.js +2 -2
  549. package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
  550. package/lib/module/trust/v1.0.0/types.js +46 -46
  551. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  552. package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
  553. package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
  554. package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js +2 -2
  555. package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
  556. package/lib/module/trust/{v1.3.3 → v1.4.6}/types.js +2 -2
  557. package/lib/module/trust/v1.4.6/types.js.map +1 -0
  558. package/lib/module/utils/auth.js +2 -2
  559. package/lib/module/utils/auth.js.map +1 -1
  560. package/lib/module/utils/callbacks.js +47 -51
  561. package/lib/module/utils/callbacks.js.map +1 -1
  562. package/lib/module/utils/config.js +0 -7
  563. package/lib/module/utils/config.js.map +1 -1
  564. package/lib/module/utils/credentials.js +3 -3
  565. package/lib/module/utils/credentials.js.map +1 -1
  566. package/lib/module/utils/crypto.js +23 -25
  567. package/lib/module/utils/crypto.js.map +1 -1
  568. package/lib/module/utils/decoder.js +3 -3
  569. package/lib/module/utils/decoder.js.map +1 -1
  570. package/lib/module/utils/dpop.js +5 -5
  571. package/lib/module/utils/dpop.js.map +1 -1
  572. package/lib/module/utils/error-codes.js +19 -19
  573. package/lib/module/utils/error-codes.js.map +1 -1
  574. package/lib/module/utils/errors.js +47 -46
  575. package/lib/module/utils/errors.js.map +1 -1
  576. package/lib/module/utils/jwk.js +4 -5
  577. package/lib/module/utils/jwk.js.map +1 -1
  578. package/lib/module/utils/logging.js +15 -14
  579. package/lib/module/utils/logging.js.map +1 -1
  580. package/lib/module/utils/mappers.js +6 -8
  581. package/lib/module/utils/mappers.js.map +1 -1
  582. package/lib/module/utils/misc.js +7 -6
  583. package/lib/module/utils/misc.js.map +1 -1
  584. package/lib/module/utils/par.js +28 -28
  585. package/lib/module/utils/par.js.map +1 -1
  586. package/lib/module/utils/pop.js +5 -5
  587. package/lib/module/utils/pop.js.map +1 -1
  588. package/lib/module/utils/string.js.map +1 -1
  589. package/lib/module/utils/x509.js +2 -2
  590. package/lib/module/utils/x509.js.map +1 -1
  591. package/lib/module/utils/zod.js +1 -1
  592. package/lib/module/utils/zod.js.map +1 -1
  593. package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
  594. package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
  595. package/lib/module/wallet-instance/index.js +1 -1
  596. package/lib/module/wallet-instance/index.js.map +1 -1
  597. package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
  598. package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
  599. package/lib/module/wallet-instance/v1.4.6/index.js +8 -0
  600. package/lib/module/wallet-instance/v1.4.6/index.js.map +1 -0
  601. package/lib/module/wallet-instance-attestation/api/types.js +7 -7
  602. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  603. package/lib/module/wallet-instance-attestation/common/types.js +7 -7
  604. package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
  605. package/lib/module/wallet-instance-attestation/index.js +1 -1
  606. package/lib/module/wallet-instance-attestation/index.js.map +1 -1
  607. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
  608. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  609. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  610. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  611. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  612. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  613. package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
  614. package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  615. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  616. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  617. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +2 -2
  618. package/lib/module/wallet-instance-attestation/v1.4.6/index.js.map +1 -0
  619. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +20 -20
  620. package/lib/module/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -0
  621. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  622. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  623. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +1 -1
  624. package/lib/module/wallet-instance-attestation/v1.4.6/utils.js.map +1 -0
  625. package/lib/typescript/IoWallet.d.ts +4 -4
  626. package/lib/typescript/IoWallet.d.ts.map +1 -1
  627. package/lib/typescript/api/index.d.ts +14 -14
  628. package/lib/typescript/api/index.d.ts.map +1 -1
  629. package/lib/typescript/client/index.d.ts +2 -2
  630. package/lib/typescript/client/index.d.ts.map +1 -1
  631. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
  632. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  633. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
  634. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  635. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
  636. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
  637. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +8 -8
  638. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  639. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
  640. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  641. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
  642. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  643. package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
  644. package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
  645. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
  646. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
  647. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
  648. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
  649. package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
  650. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  651. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
  652. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  653. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
  654. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  655. package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
  656. package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
  657. package/lib/typescript/credential/issuance/index.d.ts +1 -1
  658. package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
  659. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
  660. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  661. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
  662. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  663. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  664. package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
  665. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  666. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
  667. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  668. package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
  669. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  670. package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
  671. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  672. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
  673. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  674. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  675. package/lib/typescript/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts.map +1 -0
  676. package/lib/typescript/credential/issuance/v1.4.6/02-start-user-authorization.d.ts.map +1 -0
  677. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.d.ts +1 -1
  678. package/lib/typescript/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts.map +1 -0
  679. package/lib/typescript/credential/issuance/v1.4.6/04-authorize-access.d.ts.map +1 -0
  680. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.d.ts +8 -8
  681. package/lib/typescript/credential/issuance/v1.4.6/05-obtain-credential.d.ts.map +1 -0
  682. package/lib/typescript/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts.map +1 -0
  683. package/lib/typescript/credential/issuance/v1.4.6/index.d.ts.map +1 -0
  684. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/mappers.d.ts +52 -45
  685. package/lib/typescript/credential/issuance/v1.4.6/mappers.d.ts.map +1 -0
  686. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  687. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
  688. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
  689. package/lib/typescript/credential/offer/api/index.d.ts +1 -1
  690. package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
  691. package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
  692. package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
  693. package/lib/typescript/credential/offer/index.d.ts +1 -1
  694. package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
  695. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.d.ts +1 -1
  696. package/lib/typescript/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts.map +1 -0
  697. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.d.ts +1 -1
  698. package/lib/typescript/credential/offer/v1.4.6/02-extract-grant-details.d.ts.map +1 -0
  699. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.d.ts +1 -1
  700. package/lib/typescript/credential/offer/v1.4.6/03-validate-credential-offer.d.ts.map +1 -0
  701. package/lib/typescript/credential/offer/v1.4.6/index.d.ts.map +1 -0
  702. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
  703. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
  704. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
  705. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
  706. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
  707. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  708. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
  709. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  710. package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
  711. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  712. package/lib/typescript/credential/presentation/api/types.d.ts +75 -75
  713. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  714. package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
  715. package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
  716. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
  717. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  718. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
  719. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  720. package/lib/typescript/credential/presentation/index.d.ts +1 -1
  721. package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
  722. package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
  723. package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
  724. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  725. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
  726. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
  727. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  728. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  729. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
  730. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  731. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
  732. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  733. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
  734. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  735. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
  736. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  737. package/lib/typescript/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
  738. package/lib/typescript/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts.map +1 -0
  739. package/lib/typescript/credential/presentation/v1.4.6/03-get-request-object.d.ts.map +1 -0
  740. package/lib/typescript/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts.map +1 -0
  741. package/lib/typescript/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
  742. package/lib/typescript/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts.map +1 -0
  743. package/lib/typescript/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -0
  744. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  745. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/mappers.d.ts +44 -42
  746. package/lib/typescript/credential/presentation/v1.4.6/mappers.d.ts.map +1 -0
  747. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts.map +1 -1
  748. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/types.d.ts +4 -3
  749. package/lib/typescript/credential/presentation/v1.4.6/types.d.ts.map +1 -0
  750. package/lib/typescript/credential/status/api/index.d.ts +3 -3
  751. package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
  752. package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
  753. package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
  754. package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
  755. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  756. package/lib/typescript/credential/status/api/types.d.ts +12 -12
  757. package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
  758. package/lib/typescript/credential/status/index.d.ts +1 -1
  759. package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
  760. package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
  761. package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
  762. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
  763. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
  764. package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
  765. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  766. package/lib/typescript/credential/status/v1.4.6/01-status-list.d.ts.map +1 -0
  767. package/lib/typescript/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +1 -0
  768. package/lib/typescript/credential/status/v1.4.6/03-get-status.d.ts.map +1 -0
  769. package/lib/typescript/credential/status/v1.4.6/index.d.ts.map +1 -0
  770. package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
  771. package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
  772. package/lib/typescript/credential/trustmark/index.d.ts +1 -1
  773. package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
  774. package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
  775. package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts.map +1 -1
  776. package/lib/typescript/credential/trustmark/v1.4.6/index.d.ts.map +1 -0
  777. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +171 -168
  778. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  779. package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
  780. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  781. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
  782. package/lib/typescript/credentials-catalogue/index.d.ts +1 -1
  783. package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
  784. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  785. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
  786. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  787. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +91 -91
  788. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  789. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts.map +1 -1
  790. package/lib/typescript/credentials-catalogue/v1.4.6/fetch-translations.d.ts.map +1 -0
  791. package/lib/typescript/credentials-catalogue/v1.4.6/index.d.ts.map +1 -0
  792. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts +158 -157
  793. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
  794. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts +190 -190
  795. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  796. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts +3 -3
  797. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
  798. package/lib/typescript/index.d.ts +12 -12
  799. package/lib/typescript/index.d.ts.map +1 -1
  800. package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/index.d.ts +24 -24
  801. package/lib/typescript/key-attestation/api/index.d.ts.map +1 -0
  802. package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/types.d.ts +13 -13
  803. package/lib/typescript/key-attestation/api/types.d.ts.map +1 -0
  804. package/lib/typescript/key-attestation/index.d.ts +4 -0
  805. package/lib/typescript/key-attestation/index.d.ts.map +1 -0
  806. package/lib/typescript/key-attestation/v1.0.0/index.d.ts +3 -0
  807. package/lib/typescript/key-attestation/v1.0.0/index.d.ts.map +1 -0
  808. package/lib/typescript/key-attestation/v1.4.6/index.d.ts +3 -0
  809. package/lib/typescript/key-attestation/v1.4.6/index.d.ts.map +1 -0
  810. package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts +3 -0
  811. package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts.map +1 -0
  812. package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/mappers.d.ts +12 -12
  813. package/lib/typescript/key-attestation/v1.4.6/mappers.d.ts.map +1 -0
  814. package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.d.ts +10 -10
  815. package/lib/typescript/key-attestation/v1.4.6/types.d.ts.map +1 -0
  816. package/lib/typescript/key-attestation/v1.4.6/utils.d.ts +7 -0
  817. package/lib/typescript/key-attestation/v1.4.6/utils.d.ts.map +1 -0
  818. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  819. package/lib/typescript/mdoc/utils.d.ts +2 -2
  820. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  821. package/lib/typescript/sd-jwt/index.d.ts +10 -10
  822. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  823. package/lib/typescript/sd-jwt/types.d.ts +17 -17
  824. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  825. package/lib/typescript/sd-jwt/utils.d.ts +4 -3
  826. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  827. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
  828. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  829. package/lib/typescript/trust/api/index.d.ts +11 -11
  830. package/lib/typescript/trust/api/index.d.ts.map +1 -1
  831. package/lib/typescript/trust/common/build-chain.d.ts +3 -3
  832. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  833. package/lib/typescript/trust/common/errors.d.ts +43 -43
  834. package/lib/typescript/trust/common/errors.d.ts.map +1 -1
  835. package/lib/typescript/trust/common/types.d.ts +37 -37
  836. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  837. package/lib/typescript/trust/common/utils.d.ts +17 -17
  838. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  839. package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
  840. package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
  841. package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
  842. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  843. package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
  844. package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
  845. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  846. package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
  847. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  848. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  849. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts +25 -24
  850. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts.map +1 -1
  851. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts +210 -206
  852. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  853. package/lib/typescript/utils/auth.d.ts +1 -1
  854. package/lib/typescript/utils/callbacks.d.ts +1 -1
  855. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  856. package/lib/typescript/utils/config.d.ts +0 -4
  857. package/lib/typescript/utils/config.d.ts.map +1 -1
  858. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  859. package/lib/typescript/utils/crypto.d.ts +1 -1
  860. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  861. package/lib/typescript/utils/decoder.d.ts +1 -1
  862. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  863. package/lib/typescript/utils/dpop.d.ts +3 -3
  864. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  865. package/lib/typescript/utils/error-codes.d.ts +18 -18
  866. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  867. package/lib/typescript/utils/errors.d.ts +49 -51
  868. package/lib/typescript/utils/errors.d.ts.map +1 -1
  869. package/lib/typescript/utils/integrity.d.ts +9 -9
  870. package/lib/typescript/utils/integrity.d.ts.map +1 -1
  871. package/lib/typescript/utils/jwk.d.ts +3 -3
  872. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  873. package/lib/typescript/utils/logging.d.ts +10 -10
  874. package/lib/typescript/utils/logging.d.ts.map +1 -1
  875. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  876. package/lib/typescript/utils/misc.d.ts +2 -2
  877. package/lib/typescript/utils/misc.d.ts.map +1 -1
  878. package/lib/typescript/utils/par.d.ts +13 -13
  879. package/lib/typescript/utils/par.d.ts.map +1 -1
  880. package/lib/typescript/utils/parser.d.ts +2 -2
  881. package/lib/typescript/utils/parser.d.ts.map +1 -1
  882. package/lib/typescript/utils/pop.d.ts +2 -2
  883. package/lib/typescript/utils/pop.d.ts.map +1 -1
  884. package/lib/typescript/utils/string.d.ts.map +1 -1
  885. package/lib/typescript/utils/x509.d.ts.map +1 -1
  886. package/lib/typescript/utils/zod.d.ts +5 -5
  887. package/lib/typescript/utils/zod.d.ts.map +1 -1
  888. package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
  889. package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
  890. package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
  891. package/lib/typescript/wallet-instance/index.d.ts +1 -1
  892. package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
  893. package/lib/typescript/wallet-instance/v1.4.6/index.d.ts.map +1 -0
  894. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
  895. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  896. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
  897. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  898. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
  899. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  900. package/lib/typescript/wallet-instance-attestation/index.d.ts +1 -1
  901. package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
  902. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  903. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
  904. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
  905. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  906. package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
  907. package/lib/typescript/wallet-instance-attestation/v1.4.6/index.d.ts.map +1 -0
  908. package/lib/typescript/wallet-instance-attestation/v1.4.6/issuing.d.ts.map +1 -0
  909. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts +10 -10
  910. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
  911. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts +5 -5
  912. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  913. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
  914. package/package.json +15 -12
  915. package/src/IoWallet.ts +11 -9
  916. package/src/api/index.ts +31 -32
  917. package/src/client/index.ts +14 -13
  918. package/src/credential/issuance/README.md +9 -9
  919. package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
  920. package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
  921. package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
  922. package/src/credential/issuance/api/04-authorize-access.ts +4 -3
  923. package/src/credential/issuance/api/05-obtain-credential.ts +11 -10
  924. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
  925. package/src/credential/issuance/api/IssuerConfig.ts +20 -19
  926. package/src/credential/issuance/api/index.ts +4 -4
  927. package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
  928. package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
  929. package/src/credential/issuance/api/types.ts +9 -8
  930. package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
  931. package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
  932. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
  933. package/src/credential/issuance/common/errors.ts +0 -4
  934. package/src/credential/issuance/index.ts +1 -1
  935. package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
  936. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
  937. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
  938. package/src/credential/issuance/mrtd-pop/index.ts +8 -7
  939. package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
  940. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
  941. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
  942. package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
  943. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
  944. package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
  945. package/src/credential/issuance/v1.0.0/index.ts +11 -10
  946. package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
  947. package/src/credential/issuance/v1.0.0/types.ts +2 -1
  948. package/src/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.ts +6 -4
  949. package/src/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.ts +33 -30
  950. package/src/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.ts +55 -54
  951. package/src/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.ts +20 -18
  952. package/src/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.ts +57 -53
  953. package/src/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.ts +5 -4
  954. package/src/credential/issuance/{v1.3.3 → v1.4.6}/index.ts +11 -10
  955. package/src/credential/issuance/{v1.3.3 → v1.4.6}/mappers.ts +25 -22
  956. package/src/credential/offer/README.md +10 -6
  957. package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
  958. package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
  959. package/src/credential/offer/api/index.ts +2 -2
  960. package/src/credential/offer/common/errors.ts +0 -8
  961. package/src/credential/offer/index.ts +1 -1
  962. package/src/credential/offer/v1.0.0/index.ts +5 -4
  963. package/src/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.ts +8 -6
  964. package/src/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.ts +9 -7
  965. package/src/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.ts +9 -7
  966. package/src/credential/offer/{v1.3.3 → v1.4.6}/index.ts +2 -1
  967. package/src/credential/presentation/api/01-start-flow.ts +4 -4
  968. package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
  969. package/src/credential/presentation/api/03-get-request-object.ts +1 -1
  970. package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
  971. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  972. package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
  973. package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
  974. package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
  975. package/src/credential/presentation/api/index.ts +4 -4
  976. package/src/credential/presentation/api/types.ts +70 -68
  977. package/src/credential/presentation/common/errors.ts +32 -35
  978. package/src/credential/presentation/common/utils/dcql.ts +34 -30
  979. package/src/credential/presentation/common/utils/http.ts +2 -2
  980. package/src/credential/presentation/common/utils/mdoc.ts +17 -15
  981. package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
  982. package/src/credential/presentation/index.ts +1 -1
  983. package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
  984. package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
  985. package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
  986. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
  987. package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
  988. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
  989. package/src/credential/presentation/v1.0.0/index.ts +6 -5
  990. package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
  991. package/src/credential/presentation/v1.0.0/types.ts +11 -10
  992. package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
  993. package/src/credential/presentation/v1.0.0/utils.ts +4 -3
  994. package/src/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.ts +13 -7
  995. package/src/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.ts +3 -2
  996. package/src/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.ts +4 -2
  997. package/src/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.ts +9 -7
  998. package/src/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.ts +25 -22
  999. package/src/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.ts +37 -23
  1000. package/src/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.ts +40 -32
  1001. package/src/credential/presentation/{v1.3.3 → v1.4.6}/index.ts +7 -6
  1002. package/src/credential/presentation/{v1.3.3 → v1.4.6}/mappers.ts +13 -12
  1003. package/src/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.ts +9 -7
  1004. package/src/credential/status/README.md +2 -2
  1005. package/src/credential/status/api/index.ts +4 -4
  1006. package/src/credential/status/api/status-assertion.ts +7 -6
  1007. package/src/credential/status/api/status-list.ts +17 -17
  1008. package/src/credential/status/api/types.ts +12 -11
  1009. package/src/credential/status/index.ts +1 -1
  1010. package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
  1011. package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
  1012. package/src/credential/status/v1.0.0/index.ts +2 -1
  1013. package/src/credential/status/v1.0.0/mappers.ts +2 -1
  1014. package/src/credential/status/v1.0.0/types.ts +17 -16
  1015. package/src/credential/status/{v1.3.3 → v1.4.6}/01-status-list.ts +9 -7
  1016. package/src/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.ts +3 -1
  1017. package/src/credential/status/{v1.3.3 → v1.4.6}/03-get-status.ts +8 -6
  1018. package/src/credential/status/{v1.3.3 → v1.4.6}/index.ts +3 -2
  1019. package/src/credential/trustmark/api/index.ts +11 -11
  1020. package/src/credential/trustmark/index.ts +1 -1
  1021. package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
  1022. package/src/credential/trustmark/v1.0.0/index.ts +2 -1
  1023. package/src/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.ts +1 -1
  1024. package/src/credential/trustmark/{v1.3.3 → v1.4.6}/index.ts +2 -1
  1025. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +49 -47
  1026. package/src/credentials-catalogue/api/index.ts +14 -12
  1027. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
  1028. package/src/credentials-catalogue/index.ts +1 -1
  1029. package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
  1030. package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
  1031. package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
  1032. package/src/credentials-catalogue/v1.0.0/types.ts +33 -32
  1033. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.ts +15 -15
  1034. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.ts +4 -3
  1035. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/index.ts +2 -1
  1036. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.ts +28 -27
  1037. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/types.ts +87 -86
  1038. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.ts +16 -14
  1039. package/src/index.ts +26 -24
  1040. package/{lib/module/wallet-unit-attestation → src/key-attestation}/README.md +9 -9
  1041. package/src/{wallet-unit-attestation → key-attestation}/api/index.ts +26 -28
  1042. package/src/{wallet-unit-attestation → key-attestation}/api/types.ts +14 -15
  1043. package/src/key-attestation/index.ts +3 -0
  1044. package/src/key-attestation/v1.0.0/index.ts +5 -0
  1045. package/src/key-attestation/v1.4.6/index.ts +12 -0
  1046. package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.ts +44 -36
  1047. package/src/key-attestation/v1.4.6/mappers.ts +10 -0
  1048. package/src/key-attestation/v1.4.6/types.ts +20 -0
  1049. package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.ts +5 -4
  1050. package/src/mdoc/index.ts +26 -11
  1051. package/src/mdoc/utils.ts +6 -4
  1052. package/src/sd-jwt/__test__/types.test.ts +6 -6
  1053. package/src/sd-jwt/__test__/utils.test.ts +2 -2
  1054. package/src/sd-jwt/index.ts +10 -8
  1055. package/src/sd-jwt/types.ts +16 -15
  1056. package/src/sd-jwt/utils.ts +17 -12
  1057. package/src/trust/api/TrustAnchorConfig.ts +3 -2
  1058. package/src/trust/api/index.ts +19 -16
  1059. package/src/trust/common/build-chain.ts +28 -18
  1060. package/src/trust/common/errors.ts +58 -50
  1061. package/src/trust/common/types.ts +22 -21
  1062. package/src/trust/common/utils.ts +65 -64
  1063. package/src/trust/common/verify-chain.ts +140 -138
  1064. package/src/trust/v1.0.0/build-chain.ts +1 -1
  1065. package/src/trust/v1.0.0/entities.ts +18 -16
  1066. package/src/trust/v1.0.0/index.ts +5 -4
  1067. package/src/trust/v1.0.0/mappers.ts +3 -2
  1068. package/src/trust/v1.0.0/types.ts +43 -42
  1069. package/src/trust/v1.0.0/verify-chain.ts +3 -2
  1070. package/src/trust/{v1.3.3 → v1.4.6}/entities.ts +7 -5
  1071. package/src/trust/{v1.3.3 → v1.4.6}/types.ts +10 -9
  1072. package/src/utils/auth.ts +1 -1
  1073. package/src/utils/callbacks.ts +38 -38
  1074. package/src/utils/config.ts +0 -7
  1075. package/src/utils/credentials.ts +7 -5
  1076. package/src/utils/crypto.ts +36 -36
  1077. package/src/utils/decoder.ts +7 -5
  1078. package/src/utils/dpop.ts +5 -6
  1079. package/src/utils/error-codes.ts +20 -20
  1080. package/src/utils/errors.ts +89 -87
  1081. package/src/utils/integrity.ts +11 -11
  1082. package/src/utils/jwk.ts +4 -4
  1083. package/src/utils/logging.ts +21 -20
  1084. package/src/utils/mappers.ts +14 -11
  1085. package/src/utils/misc.ts +15 -12
  1086. package/src/utils/par.ts +30 -29
  1087. package/src/utils/parser.ts +4 -4
  1088. package/src/utils/pop.ts +4 -5
  1089. package/src/utils/string.ts +2 -2
  1090. package/src/utils/x509.ts +5 -4
  1091. package/src/utils/zod.ts +4 -4
  1092. package/src/wallet-instance/api/index.ts +24 -24
  1093. package/src/wallet-instance/common/wallet-instance.ts +8 -7
  1094. package/src/wallet-instance/index.ts +1 -1
  1095. package/src/wallet-instance/v1.0.0/index.ts +5 -4
  1096. package/src/wallet-instance/{v1.3.3 → v1.4.6}/index.ts +5 -4
  1097. package/src/wallet-instance-attestation/api/index.ts +18 -17
  1098. package/src/wallet-instance-attestation/api/types.ts +12 -11
  1099. package/src/wallet-instance-attestation/common/types.ts +7 -6
  1100. package/src/wallet-instance-attestation/index.ts +1 -1
  1101. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
  1102. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
  1103. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
  1104. package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
  1105. package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
  1106. package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.ts +4 -3
  1107. package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.ts +25 -23
  1108. package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.ts +3 -2
  1109. package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.ts +3 -2
  1110. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +0 -1
  1111. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +0 -1
  1112. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
  1113. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +0 -1
  1114. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
  1115. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +0 -1
  1116. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +0 -1
  1117. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +0 -1
  1118. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +0 -1
  1119. package/lib/commonjs/credential/offer/v1.3.3/index.js.map +0 -1
  1120. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
  1121. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
  1122. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +0 -1
  1123. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +0 -1
  1124. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +0 -1
  1125. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +0 -1
  1126. package/lib/commonjs/credential/status/v1.3.3/index.js.map +0 -1
  1127. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +0 -1
  1128. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +0 -1
  1129. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +0 -1
  1130. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +0 -1
  1131. package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +0 -1
  1132. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +0 -1
  1133. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +0 -1
  1134. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +0 -1
  1135. package/lib/commonjs/wallet-unit-attestation/index.js.map +0 -1
  1136. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +0 -11
  1137. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
  1138. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
  1139. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
  1140. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +0 -13
  1141. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
  1142. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
  1143. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
  1144. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +0 -1
  1145. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +0 -1
  1146. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
  1147. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +0 -1
  1148. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
  1149. package/lib/module/credential/issuance/v1.3.3/index.js.map +0 -1
  1150. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +0 -1
  1151. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +0 -1
  1152. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +0 -1
  1153. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +0 -1
  1154. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
  1155. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
  1156. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +0 -1
  1157. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +0 -1
  1158. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +0 -1
  1159. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +0 -1
  1160. package/lib/module/credential/presentation/v1.3.3/types.js.map +0 -1
  1161. package/lib/module/credential/status/v1.3.3/03-get-status.js.map +0 -1
  1162. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +0 -1
  1163. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +0 -1
  1164. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +0 -1
  1165. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +0 -1
  1166. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +0 -1
  1167. package/lib/module/trust/v1.3.3/types.js.map +0 -1
  1168. package/lib/module/wallet-instance/v1.3.3/index.js +0 -8
  1169. package/lib/module/wallet-instance/v1.3.3/index.js.map +0 -1
  1170. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +0 -1
  1171. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +0 -1
  1172. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +0 -1
  1173. package/lib/module/wallet-unit-attestation/api/types.js.map +0 -1
  1174. package/lib/module/wallet-unit-attestation/index.js +0 -3
  1175. package/lib/module/wallet-unit-attestation/index.js.map +0 -1
  1176. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +0 -4
  1177. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
  1178. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +0 -10
  1179. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
  1180. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
  1181. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +0 -6
  1182. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
  1183. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +0 -14
  1184. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
  1185. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
  1186. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +0 -1
  1187. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +0 -1
  1188. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +0 -1
  1189. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +0 -1
  1190. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +0 -1
  1191. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +0 -1
  1192. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +0 -1
  1193. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +0 -1
  1194. package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +0 -1
  1195. package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +0 -1
  1196. package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +0 -1
  1197. package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +0 -1
  1198. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +0 -1
  1199. package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +0 -1
  1200. package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +0 -1
  1201. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +0 -1
  1202. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +0 -1
  1203. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +0 -1
  1204. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +0 -1
  1205. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +0 -1
  1206. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +0 -1
  1207. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +0 -1
  1208. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +0 -1
  1209. package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +0 -1
  1210. package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +0 -1
  1211. package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +0 -1
  1212. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +0 -1
  1213. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +0 -1
  1214. package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +0 -1
  1215. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +0 -1
  1216. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +0 -1
  1217. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +0 -1
  1218. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +0 -1
  1219. package/lib/typescript/wallet-unit-attestation/index.d.ts +0 -4
  1220. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +0 -1
  1221. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +0 -3
  1222. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +0 -1
  1223. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +0 -3
  1224. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +0 -1
  1225. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +0 -3
  1226. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +0 -1
  1227. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +0 -1
  1228. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +0 -1
  1229. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +0 -7
  1230. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +0 -1
  1231. package/src/wallet-unit-attestation/index.ts +0 -3
  1232. package/src/wallet-unit-attestation/v1.0.0/index.ts +0 -5
  1233. package/src/wallet-unit-attestation/v1.3.3/index.ts +0 -11
  1234. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +0 -10
  1235. package/src/wallet-unit-attestation/v1.3.3/types.ts +0 -21
  1236. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
  1237. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
  1238. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
  1239. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
  1240. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
  1241. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  1242. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
  1243. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
  1244. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
  1245. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
  1246. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
  1247. package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
  1248. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  1249. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
  1250. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.d.ts +0 -0
  1251. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.d.ts +0 -0
  1252. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.d.ts +0 -0
  1253. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.d.ts +0 -0
  1254. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1255. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts +0 -0
  1256. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1257. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.d.ts +0 -0
  1258. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.d.ts +0 -0
  1259. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.d.ts +0 -0
  1260. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.d.ts +0 -0
  1261. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.d.ts +0 -0
  1262. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.d.ts +0 -0
  1263. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.d.ts +0 -0
  1264. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1265. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts +0 -0
  1266. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/01-status-list.d.ts +0 -0
  1267. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.d.ts +0 -0
  1268. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/03-get-status.d.ts +0 -0
  1269. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1270. package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts +0 -0
  1271. package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1272. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts +0 -0
  1273. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.d.ts +0 -0
  1274. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1275. package/lib/typescript/wallet-instance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1276. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  1277. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.d.ts +0 -0
  1278. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts +0 -0
  1279. package/src/credential/issuance/{v1.3.3 → v1.4.6}/types.ts +0 -0
  1280. package/src/credential/presentation/{v1.3.3 → v1.4.6}/types.ts +3 -3
  1281. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
@@ -1,18 +1,103 @@
1
- import { decode, getTrustAnchorX509Certificate, verify } from "./utils";
2
- import { FederationError, MissingFederationFetchEndpointError, MissingX509CertsError, TrustChainEmptyError, TrustChainRenewalError, TrustChainTokenMissingError, X509ValidationError } from "./errors";
3
1
  import { verifyCertificateChain } from "@pagopa/io-react-native-crypto";
2
+ import { FederationError, MissingFederationFetchEndpointError, MissingX509CertsError, TrustChainEmptyError, TrustChainRenewalError, TrustChainTokenMissingError, X509ValidationError } from "./errors";
3
+ import { decode, getTrustAnchorX509Certificate, verify } from "./utils";
4
4
  import { getSignedEntityConfiguration, getSignedEntityStatement } from "./utils";
5
+ /**
6
+ * Factory function to create `verifyTrustChain`.
7
+ * @param config Version specific Entity shapes
8
+ * @returns `verifyTrustChain` function compliant with the public API
9
+ */
10
+ export function createVerifyTrustChain(config) {
11
+ return async function verifyTrustChain(trustAnchorEntity, chain) {
12
+ let x509Options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
13
+ connectTimeout: 10000,
14
+ readTimeout: 10000,
15
+ requireCrl: true
16
+ };
17
+ let {
18
+ appFetch = fetch,
19
+ renewOnFail = true
20
+ } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
21
+ const validateTrustChain = createValidateTrustChain(config);
22
+ const renewTrustChain = createRenewTrustChain(config);
23
+ try {
24
+ return await validateTrustChain(trustAnchorEntity, chain, x509Options);
25
+ } catch (error) {
26
+ if (renewOnFail) {
27
+ const renewedChain = await renewTrustChain(chain, appFetch);
28
+ return validateTrustChain(trustAnchorEntity, renewedChain, x509Options);
29
+ } else {
30
+ throw error;
31
+ }
32
+ }
33
+ };
34
+ }
35
+
36
+ /**
37
+ * Factory function to create `renewTrustChain`.
38
+ * @param config Version specific Entity shapes
39
+ * @returns `renewTrustChain` function
40
+ */
41
+ function createRenewTrustChain(_ref) {
42
+ let {
43
+ EntityConfigurationShape,
44
+ EntityStatementShape
45
+ } = _ref;
46
+ /**
47
+ * Given a trust chain, obtain a new trust chain by fetching each element's fresh version
48
+ *
49
+ * @param chain The original chain
50
+ * @param appFetch (optional) fetch api implementation
51
+ * @returns A list of signed token that represent the trust chain, in the same order of the provided chain
52
+ * @throws {FederationError} If the chain is not valid
53
+ */
54
+ return async function renewTrustChain(chain) {
55
+ let appFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : fetch;
56
+ return Promise.all(chain.map(async (token, index) => {
57
+ const decoded = decode(token);
58
+ const entityStatementResult = EntityStatementShape.safeParse(decoded);
59
+ const entityConfigurationResult = EntityConfigurationShape.safeParse(decoded);
60
+ if (entityConfigurationResult.success) {
61
+ return getSignedEntityConfiguration(entityConfigurationResult.data.payload.iss, {
62
+ appFetch
63
+ });
64
+ }
65
+ if (entityStatementResult.success) {
66
+ const entityStatement = entityStatementResult.data;
67
+ const parentBaseUrl = entityStatement.payload.iss;
68
+ const parentECJwt = await getSignedEntityConfiguration(parentBaseUrl, {
69
+ appFetch
70
+ });
71
+ const parentEC = EntityConfigurationShape.parse(decode(parentECJwt));
72
+ const federationFetchEndpoint = parentEC.payload.metadata.federation_entity.federation_fetch_endpoint;
73
+ if (!federationFetchEndpoint) {
74
+ throw new MissingFederationFetchEndpointError(`Parent EC at ${parentBaseUrl} is missing federation_fetch_endpoint, cannot renew ES for ${entityStatement.payload.sub}.`, {
75
+ entityBaseUrl: entityStatement.payload.sub,
76
+ missingInEntityUrl: parentBaseUrl
77
+ });
78
+ }
79
+ return getSignedEntityStatement(federationFetchEndpoint, entityStatement.payload.sub, {
80
+ appFetch
81
+ });
82
+ }
83
+ throw new TrustChainRenewalError(`Failed to renew trust chain. Reason: element #${index} failed to parse.`, {
84
+ originalChain: chain
85
+ });
86
+ }));
87
+ };
88
+ }
89
+
5
90
  /**
6
91
  * Factory function to create `validateTrustChain`.
7
92
  * @param config Version specific Entity shapes
8
93
  * @returns `validateTrustChain` function compliant with the public API
9
94
  */
10
- function createValidateTrustChain(_ref) {
95
+ function createValidateTrustChain(_ref2) {
11
96
  let {
12
97
  FirstElementShape,
13
- MiddleElementShape,
14
- LastElementShape
15
- } = _ref;
98
+ LastElementShape,
99
+ MiddleElementShape
100
+ } = _ref2;
16
101
  /**
17
102
  * Validates a provided trust chain against a known trust anchor, including X.509 certificate checks.
18
103
  *
@@ -74,8 +159,8 @@ function createValidateTrustChain(_ref) {
74
159
  const jwkUsedForVerification = signerJwks.find(k => k.kid === kidFromTokenHeader);
75
160
  if (!jwkUsedForVerification) {
76
161
  throw new FederationError(`JWK with kid '${kidFromTokenHeader}' was not found in signer's JWKS for token at index ${i}, though JWT verification passed.`, {
77
- tokenIndex: i,
78
- kid: kidFromTokenHeader
162
+ kid: kidFromTokenHeader,
163
+ tokenIndex: i
79
164
  });
80
165
  }
81
166
  if (!jwkUsedForVerification.x5c || jwkUsedForVerification.x5c.length === 0) {
@@ -89,10 +174,10 @@ function createValidateTrustChain(_ref) {
89
174
  const x509ValidationResult = await verifyCertificateChain(certChainBase64, x509TrustAnchorCertBase64, x509Options);
90
175
  if (!x509ValidationResult.isValid) {
91
176
  throw new X509ValidationError(`X.509 certificate chain validation failed for token at index ${i} (kid: ${kidFromTokenHeader}). Status: ${x509ValidationResult.validationStatus}. Error: ${x509ValidationResult.errorMessage}`, {
92
- tokenIndex: i,
93
177
  kid: kidFromTokenHeader,
94
- x509ValidationStatus: x509ValidationResult.validationStatus,
95
- x509ErrorMessage: x509ValidationResult.errorMessage
178
+ tokenIndex: i,
179
+ x509ErrorMessage: x509ValidationResult.errorMessage,
180
+ x509ValidationStatus: x509ValidationResult.validationStatus
96
181
  });
97
182
  }
98
183
  return parsedToken;
@@ -100,89 +185,4 @@ function createValidateTrustChain(_ref) {
100
185
  return Promise.all(validationPromises);
101
186
  };
102
187
  }
103
-
104
- /**
105
- * Factory function to create `renewTrustChain`.
106
- * @param config Version specific Entity shapes
107
- * @returns `renewTrustChain` function
108
- */
109
- function createRenewTrustChain(_ref2) {
110
- let {
111
- EntityStatementShape,
112
- EntityConfigurationShape
113
- } = _ref2;
114
- /**
115
- * Given a trust chain, obtain a new trust chain by fetching each element's fresh version
116
- *
117
- * @param chain The original chain
118
- * @param appFetch (optional) fetch api implementation
119
- * @returns A list of signed token that represent the trust chain, in the same order of the provided chain
120
- * @throws {FederationError} If the chain is not valid
121
- */
122
- return async function renewTrustChain(chain) {
123
- let appFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : fetch;
124
- return Promise.all(chain.map(async (token, index) => {
125
- const decoded = decode(token);
126
- const entityStatementResult = EntityStatementShape.safeParse(decoded);
127
- const entityConfigurationResult = EntityConfigurationShape.safeParse(decoded);
128
- if (entityConfigurationResult.success) {
129
- return getSignedEntityConfiguration(entityConfigurationResult.data.payload.iss, {
130
- appFetch
131
- });
132
- }
133
- if (entityStatementResult.success) {
134
- const entityStatement = entityStatementResult.data;
135
- const parentBaseUrl = entityStatement.payload.iss;
136
- const parentECJwt = await getSignedEntityConfiguration(parentBaseUrl, {
137
- appFetch
138
- });
139
- const parentEC = EntityConfigurationShape.parse(decode(parentECJwt));
140
- const federationFetchEndpoint = parentEC.payload.metadata.federation_entity.federation_fetch_endpoint;
141
- if (!federationFetchEndpoint) {
142
- throw new MissingFederationFetchEndpointError(`Parent EC at ${parentBaseUrl} is missing federation_fetch_endpoint, cannot renew ES for ${entityStatement.payload.sub}.`, {
143
- entityBaseUrl: entityStatement.payload.sub,
144
- missingInEntityUrl: parentBaseUrl
145
- });
146
- }
147
- return getSignedEntityStatement(federationFetchEndpoint, entityStatement.payload.sub, {
148
- appFetch
149
- });
150
- }
151
- throw new TrustChainRenewalError(`Failed to renew trust chain. Reason: element #${index} failed to parse.`, {
152
- originalChain: chain
153
- });
154
- }));
155
- };
156
- }
157
-
158
- /**
159
- * Factory function to create `verifyTrustChain`.
160
- * @param config Version specific Entity shapes
161
- * @returns `verifyTrustChain` function compliant with the public API
162
- */
163
- export function createVerifyTrustChain(config) {
164
- return async function verifyTrustChain(trustAnchorEntity, chain) {
165
- let x509Options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
166
- connectTimeout: 10000,
167
- readTimeout: 10000,
168
- requireCrl: true
169
- };
170
- let {
171
- appFetch = fetch,
172
- renewOnFail = true
173
- } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
174
- const validateTrustChain = createValidateTrustChain(config);
175
- const renewTrustChain = createRenewTrustChain(config);
176
- try {
177
- return await validateTrustChain(trustAnchorEntity, chain, x509Options);
178
- } catch (error) {
179
- if (renewOnFail) {
180
- const renewedChain = await renewTrustChain(chain, appFetch);
181
- return validateTrustChain(trustAnchorEntity, renewedChain, x509Options);
182
- } else {
183
- throw error;
184
- }
185
- }
186
- };
187
- }
188
188
  //# sourceMappingURL=verify-chain.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["decode","getTrustAnchorX509Certificate","verify","FederationError","MissingFederationFetchEndpointError","MissingX509CertsError","TrustChainEmptyError","TrustChainRenewalError","TrustChainTokenMissingError","X509ValidationError","verifyCertificateChain","getSignedEntityConfiguration","getSignedEntityStatement","createValidateTrustChain","_ref","FirstElementShape","MiddleElementShape","LastElementShape","validateTrustChain","trustAnchorEntity","chain","x509Options","length","selectTokenShape","elementIndex","selectKid","currentIndex","token","index","shape","parse","header","kid","selectKeys","keys","nextIndex","nextToken","payload","jwks","x509TrustAnchorCertBase64","validationPromises","map","tokenString","i","kidFromTokenHeader","signerJwks","parsedToken","jwkUsedForVerification","find","k","tokenIndex","x5c","certChainBase64","at","slice","x509ValidationResult","isValid","validationStatus","errorMessage","x509ValidationStatus","x509ErrorMessage","Promise","all","createRenewTrustChain","_ref2","EntityStatementShape","EntityConfigurationShape","renewTrustChain","appFetch","arguments","undefined","fetch","decoded","entityStatementResult","safeParse","entityConfigurationResult","success","data","iss","entityStatement","parentBaseUrl","parentECJwt","parentEC","federationFetchEndpoint","metadata","federation_entity","federation_fetch_endpoint","sub","entityBaseUrl","missingInEntityUrl","originalChain","createVerifyTrustChain","config","verifyTrustChain","connectTimeout","readTimeout","requireCrl","renewOnFail","error","renewedChain"],"sourceRoot":"../../../../src","sources":["trust/common/verify-chain.ts"],"mappings":"AAGA,SACEA,MAAM,EACNC,6BAA6B,EAC7BC,MAAM,QAED,SAAS;AAChB,SACEC,eAAe,EACfC,mCAAmC,EACnCC,qBAAqB,EACrBC,oBAAoB,EACpBC,sBAAsB,EACtBC,2BAA2B,EAC3BC,mBAAmB,QACd,UAAU;AACjB,SAEEC,sBAAsB,QAEjB,gCAAgC;AACvC,SACEC,4BAA4B,EAC5BC,wBAAwB,QACnB,SAAS;AAsBhB;AACA;AACA;AACA;AACA;AACA,SAASC,wBAAwBA,CAAAC,IAAA,EAIf;EAAA,IAJgB;IAChCC,iBAAiB;IACjBC,kBAAkB;IAClBC;EACa,CAAC,GAAAH,IAAA;EACd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAO,eAAeI,kBAAkBA,CACtCC,iBAAoC,EACpCC,KAAe,EACfC,WAAmC,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MAAE5B,QAAQ,GAAGG,KAAK;MAAE0B,WAAW,GAAG;IAAK,CAAC,GAAA5B,SAAA,CAAA/C,MAAA,QAAA+C,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAE7C,MAAMnD,kBAAkB,GAAGL,wBAAwB,CAAC+E,MAAM,CAAC;IAC3D,MAAMzB,eAAe,GAAGJ,qBAAqB,CAAC6B,MAAM,CAAC;IAErD,IAAI;MACF,OAAO,MAAM1E,kBAAkB,CAACC,iBAAiB,EAAEC,KAAK,EAAEC,WAAW,CAAC;IACxE,CAAC,CAAC,OAAO6E,KAAK,EAAE;MACd,IAAID,WAAW,EAAE;QACf,MAAME,YAAY,GAAG,MAAMhC,eAAe,CAAC/C,KAAK,EAAEgD,QAAQ,CAAC;QAC3D,OAAOlD,kBAAkB,CAACC,iBAAiB,EAAEgF,YAAY,EAAE9E,WAAW,CAAC;MACzE,CAAC,MAAM;QACL,MAAM6E,KAAK;MACb;IACF;EACF,CAAC;AACH"}
1
+ {"version":3,"names":["verifyCertificateChain","FederationError","MissingFederationFetchEndpointError","MissingX509CertsError","TrustChainEmptyError","TrustChainRenewalError","TrustChainTokenMissingError","X509ValidationError","decode","getTrustAnchorX509Certificate","verify","getSignedEntityConfiguration","getSignedEntityStatement","createVerifyTrustChain","config","verifyTrustChain","trustAnchorEntity","chain","x509Options","arguments","length","undefined","connectTimeout","readTimeout","requireCrl","appFetch","fetch","renewOnFail","validateTrustChain","createValidateTrustChain","renewTrustChain","createRenewTrustChain","error","renewedChain","_ref","EntityConfigurationShape","EntityStatementShape","Promise","all","map","token","index","decoded","entityStatementResult","safeParse","entityConfigurationResult","success","data","payload","iss","entityStatement","parentBaseUrl","parentECJwt","parentEC","parse","federationFetchEndpoint","metadata","federation_entity","federation_fetch_endpoint","sub","entityBaseUrl","missingInEntityUrl","originalChain","_ref2","FirstElementShape","LastElementShape","MiddleElementShape","selectTokenShape","elementIndex","selectKid","currentIndex","shape","header","kid","selectKeys","keys","nextIndex","nextToken","jwks","x509TrustAnchorCertBase64","validationPromises","tokenString","i","kidFromTokenHeader","signerJwks","parsedToken","jwkUsedForVerification","find","k","tokenIndex","x5c","certChainBase64","at","slice","x509ValidationResult","isValid","validationStatus","errorMessage","x509ErrorMessage","x509ValidationStatus"],"sourceRoot":"../../../../src","sources":["trust/common/verify-chain.ts"],"mappings":"AAAA,SAEEA,sBAAsB,QAEjB,gCAAgC;AAOvC,SACEC,eAAe,EACfC,mCAAmC,EACnCC,qBAAqB,EACrBC,oBAAoB,EACpBC,sBAAsB,EACtBC,2BAA2B,EAC3BC,mBAAmB,QACd,UAAU;AAEjB,SACEC,MAAM,EACNC,6BAA6B,EAE7BC,MAAM,QACD,SAAS;AAChB,SACEC,4BAA4B,EAC5BC,wBAAwB,QACnB,SAAS;AAoBhB;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CACpCC,MAAqB,EACS;EAC9B,OAAO,eAAeC,gBAAgBA,CACpCC,iBAAiB,EACjBC,KAAK,EAOL;IAAA,IANAC,WAAW,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG;MACZG,cAAc,EAAE,KAAK;MACrBC,WAAW,EAAE,KAAK;MAClBC,UAAU,EAAE;IACd,CAAC;IAAA,IACD;MAAEC,QAAQ,GAAGC,KAAK;MAAEC,WAAW,GAAG;IAAK,CAAC,GAAAR,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IAE7C,MAAMS,kBAAkB,GAAGC,wBAAwB,CAACf,MAAM,CAAC;IAC3D,MAAMgB,eAAe,GAAGC,qBAAqB,CAACjB,MAAM,CAAC;IAErD,IAAI;MACF,OAAO,MAAMc,kBAAkB,CAACZ,iBAAiB,EAAEC,KAAK,EAAEC,WAAW,CAAC;IACxE,CAAC,CAAC,OAAOc,KAAK,EAAE;MACd,IAAIL,WAAW,EAAE;QACf,MA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AACE;QAC7C,CACF,CAAC;MACH;MACA,OAAOX,WAAW;IACpB,CAAC,CAAC;IAEF,OAAOhD,OAAO,CAACC,GAAG,CAAC0C,kBAAkB,CAAC;EACxC,CAAC;AACH"}
@@ -2,7 +2,7 @@ import { createBuildTrustChain } from "../common/build-chain";
2
2
  import { EntityStatement } from "../common/types";
3
3
  import { EntityConfiguration } from "./types";
4
4
  export const buildTrustChain = createBuildTrustChain({
5
- EntityStatementShape: EntityStatement,
6
- EntityConfigurationShape: EntityConfiguration
5
+ EntityConfigurationShape: EntityConfiguration,
6
+ EntityStatementShape: EntityStatement
7
7
  });
8
8
  //# sourceMappingURL=build-chain.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createBuildTrustChain","EntityStatement","EntityConfiguration","buildTrustChain","EntityStatementShape","EntityConfigurationShape"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/build-chain.ts"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ,uBAAuB;AAC7D,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,mBAAmB,QAAQ,SAAS;AAE7C,OAAO,MAAMC,eAAe,GAAGH,qBAAqB,CAAC;EACnDI,oBAAoB,EAAEH,eAAe;EACrCI,wBAAwB,EAAEH;AAC5B,CAAC,CAAC"}
1
+ {"version":3,"names":["createBuildTrustChain","EntityStatement","EntityConfiguration","buildTrustChain","EntityConfigurationShape","EntityStatementShape"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/build-chain.ts"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ,uBAAuB;AAC7D,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,mBAAmB,QAAQ,SAAS;AAE7C,OAAO,MAAMC,eAAe,GAAGH,qBAAqB,CAAC;EACnDI,wBAAwB,EAAEF,mBAAmB;EAC7CG,oBAAoB,EAAEJ;AACxB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
2
- import { WalletProviderEntityConfiguration, CredentialIssuerEntityConfiguration, EntityConfiguration, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration } from "./types";
3
2
  import { getSignedEntityConfiguration } from "../common/utils";
3
+ import { CredentialIssuerEntityConfiguration, EntityConfiguration, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration, WalletProviderEntityConfiguration } from "./types";
4
4
 
5
5
  /**
6
6
  * Fetch and parse the entity configuration document for a given federation entity.
@@ -1 +1 @@
1
- {"version":3,"names":["decode","decodeJwt","WalletProviderEntityConfiguration","CredentialIssuerEntityConfiguration","EntityConfiguration","RelyingPartyEntityConfiguration","TrustAnchorEntityConfiguration","getSignedEntityConfiguration","fetchAndParseEntityConfiguration","entityBaseUrl","schema","appFetch","fetch","arguments","length","undefined","responseText","responseJwt","parse","header","protectedHeader","payload","getWalletProviderEntityConfiguration","options","getCredentialIssuerEntityConfiguration","getTrustAnchorEntityConfiguration","getRelyingPartyEntityConfiguration","getEntityConfiguration"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/entities.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AACjE,SACEC,iCAAiC,EACjCC,mCAAmC,EACnCC,mBAAmB,EACnBC,+BAA+B,EAC/BC,8BAA8B,QACzB,SAAS;AAEhB,SACEC,4BAA4B,QAEvB,iBAAiB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeC,gCAAgCA,CAC7CC,aAAqB,EACrBC,MAAoB,EAER;EAAA,IADZ;IAAEC,QAAQ,GAAGC;EAAoB,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEvC,MAAMG,YAAY,GAAG,MAAMT,4BAA4B,CAACE,aAAa,EAAE;IACrEE;EACF,CAAC,CAAC;EAEF,MAAMM,WAAW,GAAGhB,SAAS,CAACe,YAAY,CAAC;EAC3C,OAAON,MAAM,CAACQ,KAAK,CAAC;IAClBC,MAAM,EAAEF,WAAW,CAACG,eAAe;IACnCC,OAAO,EAAEJ,WAAW,CAACI;EACvB,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMC,oCAAoC,GAAGA,CAClDb,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbP,iCAAiC,EACjCqB,OACF,CAAC;AAEH,OAAO,MAAMC,sCAAsC,GAAGA,CACpDf,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbN,mCAAmC,EACnCoB,OACF,CAAC;AAEH,OAAO,MAAME,iCAAiC,GAAGA,CAC/ChB,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbH,8BAA8B,EAC9BiB,OACF,CAAC;AAEH,OAAO,MAAMG,kCAAkC,GAAGA,CAChDjB,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbJ,+BAA+B,EAC/BkB,OACF,CAAC;AAEH,OAAO,MAAMI,sBAAsB,GAAGA,CACpClB,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAACC,aAAa,EAAEL,mBAAmB,EAAEmB,OAAO,CAAC"}
1
+ {"version":3,"names":["decode","decodeJwt","getSignedEntityConfiguration","CredentialIssuerEntityConfiguration","EntityConfiguration","RelyingPartyEntityConfiguration","TrustAnchorEntityConfiguration","WalletProviderEntityConfiguration","fetchAndParseEntityConfiguration","entityBaseUrl","schema","appFetch","fetch","arguments","length","undefined","responseText","responseJwt","parse","header","protectedHeader","payload","getWalletProviderEntityConfiguration","options","getCredentialIssuerEntityConfiguration","getTrustAnchorEntityConfiguration","getRelyingPartyEntityConfiguration","getEntityConfiguration"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/entities.ts"],"mappings":"AAEA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AAEjE,SAEEC,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,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAACC,aAAa,EAAEL,mBAAmB,EAAEmB,OAAO,CAAC"}
@@ -1,11 +1,11 @@
1
- import { getTrustAnchorEntityConfiguration } from "./entities";
2
1
  import { withMapperAsync } from "../../utils/mappers";
3
- import { mapToTrustAnchorConfig } from "./mappers";
4
2
  import { buildTrustChain } from "./build-chain";
3
+ import { getTrustAnchorEntityConfiguration } from "./entities";
4
+ import { mapToTrustAnchorConfig } from "./mappers";
5
5
  import { verifyTrustChain } from "./verify-chain";
6
6
  export const Trust = {
7
- getTrustAnchorEntityConfiguration: withMapperAsync(mapToTrustAnchorConfig, getTrustAnchorEntityConfiguration),
8
7
  buildTrustChain,
8
+ getTrustAnchorEntityConfiguration: withMapperAsync(mapToTrustAnchorConfig, getTrustAnchorEntityConfiguration),
9
9
  verifyTrustChain
10
10
  };
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getTrustAnchorEntityConfiguration","withMapperAsync","mapToTrustAnchorConfig","buildTrustChain","verifyTrustChain","Trust"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/index.ts"],"mappings":"AACA,SAASA,iCAAiC,QAAQ,YAAY;AAC9D,SAASC,eAAe,QAAQ,qBAAqB;AACrD,SAASC,sBAAsB,QAAQ,WAAW;AAClD,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,gBAAgB,QAAQ,gBAAgB;AAEjD,OAAO,MAAMC,KAAe,GAAG;EAC7BL,iCAAiC,EAAEC,eAAe,CAChDC,sBAAsB,EACtBF,iCACF,CAAC;EACDG,eAAe;EACfC;AACF,CAAC"}
1
+ {"version":3,"names":["withMapperAsync","buildTrustChain","getTrustAnchorEntityConfiguration","mapToTrustAnchorConfig","verifyTrustChain","Trust"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/index.ts"],"mappings":"AAEA,SAASA,eAAe,QAAQ,qBAAqB;AACrD,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,iCAAiC,QAAQ,YAAY;AAC9D,SAASC,sBAAsB,QAAQ,WAAW;AAClD,SAASC,gBAAgB,QAAQ,gBAAgB;AAEjD,OAAO,MAAMC,KAAe,GAAG;EAC7BJ,eAAe;EACfC,iCAAiC,EAAEF,eAAe,CAChDG,sBAAsB,EACtBD,iCACF,CAAC;EACDE;AACF,CAAC"}
@@ -4,11 +4,11 @@ export const mapToTrustAnchorConfig = createMapper(x => {
4
4
  federation_entity
5
5
  } = x.payload.metadata;
6
6
  return {
7
+ federation_entity,
7
8
  jwt: {
8
9
  header: x.header
9
10
  },
10
- keys: x.payload.jwks.keys,
11
- federation_entity
11
+ keys: x.payload.jwks.keys
12
12
  };
13
13
  });
14
14
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createMapper","mapToTrustAnchorConfig","x","federation_entity","payload","metadata","jwt","header","keys","jwks"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/mappers.ts"],"mappings":"AAAA,SAASA,YAAY,QAAQ,qBAAqB;AAIlD,OAAO,MAAMC,sBAAsB,GAAGD,YAAY,CAG/CE,CAAC,IAAK;EACP,MAAM;IAAEC;EAAkB,CAAC,GAAGD,CAAC,CAACE,OAAO,CAACC,QAAQ;EAChD,OAAO;IACLC,GAAG,EAAE;MAAEC,MAAM,EAAEL,CAAC,CAACK;IAAO,CAAC;IACzBC,IAAI,EAAEN,CAAC,CAACE,OAAO,CAACK,IAAI,CAACD,IAAI;IACzBL;EACF,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"names":["createMapper","mapToTrustAnchorConfig","x","federation_entity","payload","metadata","jwt","header","keys","jwks"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/mappers.ts"],"mappings":"AAEA,SAASA,YAAY,QAAQ,qBAAqB;AAGlD,OAAO,MAAMC,sBAAsB,GAAGD,YAAY,CAG/CE,CAAC,IAAK;EACP,MAAM;IAAEC;EAAkB,CAAC,GAAGD,CAAC,CAACE,OAAO,CAACC,QAAQ;EAChD,OAAO;IACLF,iBAAiB;IACjBG,GAAG,EAAE;MAAEC,MAAM,EAAEL,CAAC,CAACK;IAAO,CAAC;IACzBC,IAAI,EAAEN,CAAC,CAACE,OAAO,CAACK,IAAI,CAACD;EACvB,CAAC;AACH,CAAC,CAAC"}
@@ -1,44 +1,44 @@
1
- import * as z from "zod";
2
1
  import { jsonWebKeySchema } from "@pagopa/io-wallet-oid-federation";
2
+ import * as z from "zod";
3
3
  import { JWK } from "../../utils/jwk";
4
4
  import { BaseEntityConfiguration } from "../common/types";
5
5
  const RelyingPartyMetadata = z.object({
6
6
  application_type: z.string().optional(),
7
+ authorization_encrypted_response_alg: z.string().optional(),
8
+ authorization_encrypted_response_enc: z.string().optional(),
9
+ authorization_signed_response_alg: z.string().optional(),
7
10
  client_id: z.string().optional(),
8
11
  client_name: z.string().optional(),
12
+ contacts: z.array(z.string()).optional(),
9
13
  jwks: z.object({
10
14
  keys: z.array(jsonWebKeySchema)
11
15
  }),
12
- contacts: z.array(z.string()).optional(),
13
- request_uris: z.array(z.string()).optional(),
14
- authorization_signed_response_alg: z.string().optional(),
15
- authorization_encrypted_response_alg: z.string().optional(),
16
- authorization_encrypted_response_enc: z.string().optional()
16
+ request_uris: z.array(z.string()).optional()
17
17
  });
18
18
 
19
19
  // Display metadata for a credential, used by the issuer to
20
20
  // instruct the Wallet Solution on how to render the credential correctly
21
21
  const CredentialDisplayMetadata = z.object({
22
- name: z.string(),
23
- locale: z.string()
22
+ locale: z.string(),
23
+ name: z.string()
24
24
  });
25
25
 
26
26
  // Metadata for displaying issuer information
27
27
 
28
28
  const CredentialIssuerDisplayMetadata = z.object({
29
- name: z.string(),
30
- locale: z.string()
29
+ locale: z.string(),
30
+ name: z.string()
31
31
  });
32
32
  const ClaimsMetadata = z.object({
33
- path: z.array(z.union([z.string(), z.number(), z.null()])),
34
- // https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-15.html#name-claims-path-pointer
35
- display: z.array(CredentialDisplayMetadata)
33
+ display: z.array(CredentialDisplayMetadata),
34
+ path: z.array(z.union([z.string(), z.number(), z.null()])) // https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-15.html#name-claims-path-pointer
36
35
  });
36
+
37
37
  const IssuanceErrorSupported = z.object({
38
38
  display: z.array(z.object({
39
- title: z.string(),
40
39
  description: z.string(),
41
- locale: z.string()
40
+ locale: z.string(),
41
+ title: z.string()
42
42
  }))
43
43
  });
44
44
 
@@ -48,16 +48,16 @@ const SupportedCredentialMetadata = z.intersection(z.discriminatedUnion("format"
48
48
  format: z.literal("dc+sd-jwt"),
49
49
  vct: z.string()
50
50
  }), z.object({
51
- format: z.literal("mso_mdoc"),
52
- doctype: z.string()
51
+ doctype: z.string(),
52
+ format: z.literal("mso_mdoc")
53
53
  })]), z.object({
54
- scope: z.string(),
55
- display: z.array(CredentialDisplayMetadata),
54
+ authentic_source: z.string().optional(),
56
55
  claims: z.array(ClaimsMetadata),
57
- cryptographic_binding_methods_supported: z.array(z.string()),
58
56
  credential_signing_alg_values_supported: z.array(z.string()),
59
- authentic_source: z.string().optional(),
60
- issuance_errors_supported: z.record(z.string(), IssuanceErrorSupported).optional()
57
+ cryptographic_binding_methods_supported: z.array(z.string()),
58
+ display: z.array(CredentialDisplayMetadata),
59
+ issuance_errors_supported: z.record(z.string(), IssuanceErrorSupported).optional(),
60
+ scope: z.string()
61
61
  }));
62
62
 
63
63
  // Entity configuration for a Trust Anchor (it has no specific metadata section)
@@ -72,37 +72,37 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(z
72
72
  keys: z.array(JWK)
73
73
  }),
74
74
  metadata: z.object({
75
- openid_credential_issuer: z.object({
76
- credential_issuer: z.string(),
77
- credential_endpoint: z.string(),
78
- revocation_endpoint: z.string().optional(),
79
- nonce_endpoint: z.string(),
80
- status_attestation_endpoint: z.string(),
81
- display: z.array(CredentialIssuerDisplayMetadata),
82
- credential_configurations_supported: z.record(z.string(), SupportedCredentialMetadata),
83
- jwks: z.object({
84
- keys: z.array(JWK)
85
- }),
86
- trust_frameworks_supported: z.array(z.string()),
87
- evidence_supported: z.array(z.string())
88
- }),
89
75
  oauth_authorization_server: z.object({
76
+ acr_values_supported: z.array(z.string()),
90
77
  authorization_endpoint: z.string(),
91
- pushed_authorization_request_endpoint: z.string(),
92
- token_endpoint: z.string(),
93
78
  client_registration_types_supported: z.array(z.string()),
94
79
  code_challenge_methods_supported: z.array(z.string()),
95
- acr_values_supported: z.array(z.string()),
96
80
  grant_types_supported: z.array(z.string()),
97
81
  issuer: z.string(),
98
82
  jwks: z.object({
99
83
  keys: z.array(JWK)
100
84
  }),
101
- scopes_supported: z.array(z.string()),
85
+ pushed_authorization_request_endpoint: z.string(),
86
+ request_object_signing_alg_values_supported: z.array(z.string()),
102
87
  response_modes_supported: z.array(z.string()),
88
+ scopes_supported: z.array(z.string()),
89
+ token_endpoint: z.string(),
103
90
  token_endpoint_auth_methods_supported: z.array(z.string()),
104
- token_endpoint_auth_signing_alg_values_supported: z.array(z.string()),
105
- request_object_signing_alg_values_supported: z.array(z.string())
91
+ token_endpoint_auth_signing_alg_values_supported: z.array(z.string())
92
+ }),
93
+ openid_credential_issuer: z.object({
94
+ credential_configurations_supported: z.record(z.string(), SupportedCredentialMetadata),
95
+ credential_endpoint: z.string(),
96
+ credential_issuer: z.string(),
97
+ display: z.array(CredentialIssuerDisplayMetadata),
98
+ evidence_supported: z.array(z.string()),
99
+ jwks: z.object({
100
+ keys: z.array(JWK)
101
+ }),
102
+ nonce_endpoint: z.string(),
103
+ revocation_endpoint: z.string().optional(),
104
+ status_attestation_endpoint: z.string(),
105
+ trust_frameworks_supported: z.array(z.string())
106
106
  }),
107
107
  /**
108
108
  * Credential Issuers act as Relying Party when they require the presentation of other credentials.
@@ -129,14 +129,14 @@ export const WalletProviderEntityConfiguration = BaseEntityConfiguration.and(z.o
129
129
  payload: z.object({
130
130
  metadata: z.object({
131
131
  wallet_provider: z.object({
132
- token_endpoint: z.string(),
133
132
  aal_values_supported: z.array(z.string()).optional(),
134
133
  grant_types_supported: z.array(z.string()),
135
- token_endpoint_auth_methods_supported: z.array(z.string()),
136
- token_endpoint_auth_signing_alg_values_supported: z.array(z.string()),
137
134
  jwks: z.object({
138
135
  keys: z.array(JWK)
139
- })
136
+ }),
137
+ token_endpoint: z.string(),
138
+ token_endpoint_auth_methods_supported: z.array(z.string()),
139
+ token_endpoint_auth_signing_alg_values_supported: z.array(z.string())
140
140
  }).loose()
141
141
  })
142
142
  })
@@ -1 +1 @@
1
- {"version":3,"names":["z","jsonWebKeySchema","JWK","BaseEntityConfiguration","RelyingPartyMetadata","object","application_type","string","optional","client_id","client_name","jwks","keys","array","contacts","request_uris","authorization_signed_response_alg","authorization_encrypted_response_alg","authorization_encrypted_response_enc","CredentialDisplayMetadata","name","locale","CredentialIssuerDisplayMetadata","ClaimsMetadata","path","union","number","null","display","IssuanceErrorSupported","title","description","SupportedCredentialMetadata","intersection","discriminatedUnion","format","literal","vct","doctype","scope","claims","cryptographic_binding_methods_supported","credential_signing_alg_values_supported","authentic_source","issuance_errors_supported","record","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","payload","metadata","openid_credential_issuer","credential_issuer","credential_endpoint","revocation_endpoint","nonce_endpoint","status_attestation_endpoint","credential_configurations_supported","trust_frameworks_supported","evidence_supported","oauth_authorization_server","authorization_endpoint","pushed_authorization_request_endpoint","token_endpoint","client_registration_types_supported","code_challenge_methods_supported","acr_values_supported","grant_types_supported","issuer","scopes_supported","response_modes_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","request_object_signing_alg_values_supported","openid_credential_verifier","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","aal_values_supported","loose","EntityConfiguration","describe"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AACxB,SAASC,gBAAgB,QAAQ,kCAAkC;AACnE,SAASC,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MAAM,CAAC,CAAC,CAAC;QAC1CgE,qCAAqC,EAAEvE,CAAC,CAACa,KAAK,CAACb,CAAC,CAACO,MAAM,CAAC,CAAC,CAAC;QAC1DiE,gDAAgD,EAAExE,CAAC,CAACa,KAAK,CACvDb,CAAC,CAACO,MAAM,CAAC,CACX,CAAC;QACDI,IAAI,EAAEX,CAAC,CAACK,MAAM,CAAC;UAAEO,IAAI,EAAEZ,CAAC,CAACa,KAAK,CAACX,GAAG;QAAE,CAAC;MACvC,CAAC,CAAC,CACD6E,KAAK,CAAC;IACX,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAEA,OAAO,MAAMC,mBAAmB,GAAGhF,CAAC,CACjCyB,KAAK,CAAC,CACLmD,iCAAiC,EACjC7B,mCAAmC,EACnCD,8BAA8B,EAC9B6B,+BAA+B,CAChC,CAAC,CACDM,QAAQ,CAAC,2DAA2D,CAAC"}
1
+ {"version":3,"names":["jsonWebKeySchema","z","JWK","BaseEntityConfiguration","RelyingPartyMetadata","object","application_type","string","optional","authorization_encrypted_response_alg","authorization_encrypted_response_enc","authorization_signed_response_alg","client_id","client_name","contacts","array","jwks","keys","request_uris","CredentialDisplayMetadata","locale","name","CredentialIssuerDisplayMetadata","ClaimsMetadata","display","path","union","number","null","IssuanceErrorSupported","description","title","SupportedCredentialMetadata","intersection","discriminatedUnion","format","literal","vct","doctype","authentic_source","claims","credential_signing_alg_values_supported","cryptographic_binding_methods_supported","issuance_errors_supported","record","scope","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","payload","metadata","oauth_authorization_server","acr_values_supported","authorization_endpoint","client_registration_types_supported","code_challenge_methods_supported","grant_types_supported","issuer","pushed_authorization_request_endpoint","request_object_signing_alg_values_supported","response_modes_supported","scopes_supported","token_endpoint","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","openid_credential_issuer","credential_configurations_supported","credential_endpoint","credential_issuer","evidence_supported","nonce_endpoint","revocation_endpoint","status_attestation_endpoint","trust_frameworks_supported","openid_credential_verifier","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","aal_values_supported","loose","EntityConfiguration","describe"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/types.ts"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,kCAAkC;AACnE,OAAO,KAAKC,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,iBAAiB;AACrC,SAASC,uBAAuB,QAAQ,iBAAiB;AAEzD,MAAMC,oBAAoB,GAAGH,CAAC,CAACI,MAAM,CAAC;EACpCC,gBAAgB,EAAEL,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACvCC,oCAAoC,EAAER,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC3DE,oCAAoC,EAAET,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC3DG,iCAAiC,EAAEV,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACxDI,SAAS,EAAEX,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChCK,WAAW,EAAEZ,CAAC,CAACM,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAClCM,QAAQ,EAAEb,CAAC,CAACc,KAAK,CAACd,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACxCQ,IAAI,EAAEf,CAAC,CAACI,MAAM,CAAC;IACbY,IAAI,EAAEhB,CAAC,CAACc,KAAK,CAACf,gBAAgB;EAChC,CAAC,CAAC;EACFkB,YAAY,EAAEjB,CAAC,CAACc,KAAK,CAACd,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC;AAC7C,CAAC,CAAC;;AAEF;AACA;AAEA,MAAMW,yBAAyB,GAAGlB,CAAC,CAACI,MAAM,CAAC;EACz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,CAAC,CACfI,MAAM,CAAC;QACNyE,oBAAoB,EAAE7E,CAAC,CAACc,KAAK,CAACd,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;QACpDgD,qBAAqB,EAAEvD,CAAC,CAACc,KAAK,CAACd,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC;QAC1CS,IAAI,EAAEf,CAAC,CAACI,MAAM,CAAC;UAAEY,IAAI,EAAEhB,CAAC,CAACc,KAAK,CAACb,GAAG;QAAE,CAAC,CAAC;QACtC4D,cAAc,EAAE7D,CAAC,CAACM,MAAM,CAAC,CAAC;QAC1BwD,qCAAqC,EAAE9D,CAAC,CAACc,KAAK,CAACd,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC;QAC1DyD,gDAAgD,EAAE/D,CAAC,CAACc,KAAK,CACvDd,CAAC,CAACM,MAAM,CAAC,CACX;MACF,CAAC,CAAC,CACDwE,KAAK,CAAC;IACX,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAEA,OAAO,MAAMC,mBAAmB,GAAG/E,CAAC,CACjCyB,KAAK,CAAC,CACLkD,iCAAiC,EACjC7B,mCAAmC,EACnCD,8BAA8B,EAC9B6B,+BAA+B,CAChC,CAAC,CACDM,QAAQ,CAAC,2DAA2D,CAAC"}
@@ -3,10 +3,10 @@ import { EntityStatement } from "../common/types";
3
3
  import { createVerifyTrustChain } from "../common/verify-chain";
4
4
  import { EntityConfiguration, TrustAnchorEntityConfiguration } from "./types";
5
5
  export const verifyTrustChain = createVerifyTrustChain({
6
- EntityStatementShape: EntityStatement,
7
6
  EntityConfigurationShape: EntityConfiguration,
7
+ EntityStatementShape: EntityStatement,
8
8
  FirstElementShape: EntityConfiguration,
9
- MiddleElementShape: EntityStatement,
10
- LastElementShape: z.union([EntityStatement, TrustAnchorEntityConfiguration])
9
+ LastElementShape: z.union([EntityStatement, TrustAnchorEntityConfiguration]),
10
+ MiddleElementShape: EntityStatement
11
11
  });
12
12
  //# sourceMappingURL=verify-chain.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["z","EntityStatement","createVerifyTrustChain","EntityConfiguration","TrustAnchorEntityConfiguration","verifyTrustChain","EntityStatementShape","EntityConfigurationShape","FirstElementShape","MiddleElementShape","LastElementShape","union"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/verify-chain.ts"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,sBAAsB,QAAQ,wBAAwB;AAC/D,SAASC,mBAAmB,EAAEC,8BAA8B,QAAQ,SAAS;AAE7E,OAAO,MAAMC,gBAAgB,GAAGH,sBAAsB,CAAC;EACrDI,oBAAoB,EAAEL,eAAe;EACrCM,wBAAwB,EAAEJ,mBAAmB;EAC7CK,iBAAiB,EAAEL,mBAAmB;EACtCM,kBAAkB,EAAER,eAAe;EACnCS,gBAAgB,EAAEV,CAAC,CAACW,KAAK,CAAC,CAACV,eAAe,EAAEG,8BAA8B,CAAC;AAC7E,CAAC,CAAC"}
1
+ {"version":3,"names":["z","EntityStatement","createVerifyTrustChain","EntityConfiguration","TrustAnchorEntityConfiguration","verifyTrustChain","EntityConfigurationShape","EntityStatementShape","FirstElementShape","LastElementShape","union","MiddleElementShape"],"sourceRoot":"../../../../src","sources":["trust/v1.0.0/verify-chain.ts"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAEvB,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,sBAAsB,QAAQ,wBAAwB;AAC/D,SAASC,mBAAmB,EAAEC,8BAA8B,QAAQ,SAAS;AAE7E,OAAO,MAAMC,gBAAgB,GAAGH,sBAAsB,CAAC;EACrDI,wBAAwB,EAAEH,mBAAmB;EAC7CI,oBAAoB,EAAEN,eAAe;EACrCO,iBAAiB,EAAEL,mBAAmB;EACtCM,gBAAgB,EAAET,CAAC,CAACU,KAAK,CAAC,CAACT,eAAe,EAAEG,8BAA8B,CAAC,CAAC;EAC5EO,kBAAkB,EAAEV;AACtB,CAAC,CAAC"}
@@ -1,11 +1,11 @@
1
+ import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
1
2
  import { getSignedEntityConfiguration } from "../common/utils";
2
3
  import { RelyingPartyEntityConfiguration } from "./types";
3
- import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
4
4
 
5
5
  /**
6
6
  * Fetch and parse the entity configuration document for a given federation entity.
7
7
  * This is an inner method to serve public interfaces.
8
- * @version 1.3.3
8
+ * @version 1.4.6
9
9
  *
10
10
  * To add another entity configuration type (example: Foo entity type):
11
11
  * - create its zod schema and type by inherit from the base type (example: FooEntityConfiguration = BaseEntityConfiguration.and(...))
@@ -1 +1 @@
1
- {"version":3,"names":["getSignedEntityConfiguration","RelyingPartyEntityConfiguration","decode","decodeJwt","fetchAndParseEntityConfiguration","entityBaseUrl","schema","appFetch","fetch","arguments","length","undefined","responseText","responseJwt","parse","header","protectedHeader","payload","getRelyingPartyEntityConfiguration","options"],"sourceRoot":"../../../../src","sources":["trust/v1.3.3/entities.ts"],"mappings":"AACA,SAEEA,4BAA4B,QACvB,iBAAiB;AACxB,SAA8BC,+BAA+B,QAAQ,SAAS;AAC9E,SAASC,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeC,gCAAgCA,CAC7CC,aAAqB,EACrBC,MAAoB,EAER;EAAA,IADZ;IAAEC,QAAQ,GAAGC;EAAoB,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEvC,MAAMG,YAAY,GAAG,MAAMZ,4BAA4B,CAACK,aAAa,EAAE;IACrEE;EACF,CAAC,CAAC;EAEF,MAAMM,WAAW,GAAGV,SAAS,CAACS,YAAY,CAAC;EAC3C,OAAON,MAAM,CAACQ,KAAK,CAAC;IAClBC,MAAM,EAAEF,WAAW,CAACG,eAAe;IACnCC,OAAO,EAAEJ,WAAW,CAACI;EACvB,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMC,kCAAkC,GAAGA,CAChDb,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbJ,+BAA+B,EAC/BkB,OACF,CAAC"}
1
+ {"version":3,"names":["decode","decodeJwt","getSignedEntityConfiguration","RelyingPartyEntityConfiguration","fetchAndParseEntityConfiguration","entityBaseUrl","schema","appFetch","fetch","arguments","length","undefined","responseText","responseJwt","parse","header","protectedHeader","payload","getRelyingPartyEntityConfiguration","options"],"sourceRoot":"../../../../src","sources":["trust/v1.4.6/entities.ts"],"mappings":"AAEA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AAEjE,SAEEC,4BAA4B,QACvB,iBAAiB;AACxB,SAA8BC,+BAA+B,QAAQ,SAAS;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeC,gCAAgCA,CAC7CC,aAAqB,EACrBC,MAAoB,EAER;EAAA,IADZ;IAAEC,QAAQ,GAAGC;EAAoB,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEvC,MAAMG,YAAY,GAAG,MAAMV,4BAA4B,CAACG,aAAa,EAAE;IACrEE;EACF,CAAC,CAAC;EAEF,MAAMM,WAAW,GAAGZ,SAAS,CAACW,YAAY,CAAC;EAC3C,OAAON,MAAM,CAACQ,KAAK,CAAC;IAClBC,MAAM,EAAEF,WAAW,CAACG,eAAe;IACnCC,OAAO,EAAEJ,WAAW,CAACI;EACvB,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMC,kCAAkC,GAAGA,CAChDb,aAAqB,EACrBc,OAAsB,KAEtBf,gCAAgC,CAC9BC,aAAa,EACbF,+BAA+B,EAC/BgB,OACF,CAAC"}