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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1003) hide show
  1. package/lib/commonjs/IoWallet.js +5 -3
  2. package/lib/commonjs/IoWallet.js.map +1 -1
  3. package/lib/commonjs/api/index.js +19 -19
  4. package/lib/commonjs/api/index.js.map +1 -1
  5. package/lib/commonjs/client/index.js +9 -11
  6. package/lib/commonjs/client/index.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
  8. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/api/types.js +3 -3
  11. package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
  13. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  15. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
  17. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/common/errors.js +0 -3
  19. package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  21. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  23. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  24. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  25. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  26. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +4 -4
  27. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  28. package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  29. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  30. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
  32. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  33. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
  34. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  35. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
  36. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  37. package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  38. package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
  39. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  40. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
  41. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  42. package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
  43. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  44. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  45. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +30 -30
  46. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  47. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +37 -37
  48. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  49. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  50. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  51. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +32 -28
  52. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  53. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  54. package/lib/commonjs/credential/issuance/v1.3.3/index.js +8 -8
  55. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  56. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +18 -17
  57. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  58. package/lib/commonjs/credential/offer/common/errors.js +0 -6
  59. package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
  60. package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
  61. package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
  62. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js +4 -4
  63. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  64. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js +4 -4
  65. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  66. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js +5 -5
  67. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  68. package/lib/commonjs/credential/offer/v1.3.3/index.js +1 -1
  69. package/lib/commonjs/credential/offer/v1.3.3/index.js.map +1 -1
  70. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
  71. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  72. package/lib/commonjs/credential/presentation/api/types.js +11 -11
  73. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  74. package/lib/commonjs/credential/presentation/common/errors.js +24 -23
  75. package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
  76. package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
  77. package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
  78. package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
  79. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
  80. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
  81. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  82. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  83. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  84. package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  85. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  86. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  87. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  88. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  89. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
  90. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  91. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
  92. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  93. package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
  94. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  95. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
  96. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  97. package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
  98. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  99. package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
  100. package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  101. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  102. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  103. package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  104. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  105. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  106. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  107. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  108. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -7
  109. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  110. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +24 -16
  111. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  112. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  113. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  114. package/lib/commonjs/credential/presentation/v1.3.3/index.js +5 -5
  115. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -1
  116. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +11 -11
  117. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  118. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js +2 -2
  119. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  120. package/lib/commonjs/credential/presentation/v1.3.3/types.js +3 -3
  121. package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
  122. package/lib/commonjs/credential/status/api/types.js +6 -6
  123. package/lib/commonjs/credential/status/api/types.js.map +1 -1
  124. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
  125. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  126. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  127. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  128. package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
  129. package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
  130. package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
  131. package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
  132. package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
  133. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +4 -4
  134. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  135. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  136. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js +2 -2
  137. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js.map +1 -1
  138. package/lib/commonjs/credential/status/v1.3.3/index.js +3 -3
  139. package/lib/commonjs/credential/status/v1.3.3/index.js.map +1 -1
  140. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
  141. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  142. package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
  143. package/lib/commonjs/credential/trustmark/v1.3.3/index.js.map +1 -1
  144. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -54
  145. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  146. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  147. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  148. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  149. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  150. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
  151. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  152. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
  153. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  154. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +35 -35
  155. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  156. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  157. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  158. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  159. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  160. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +1 -1
  161. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  162. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +21 -20
  163. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  164. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +93 -93
  165. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  166. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +8 -8
  167. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  168. package/lib/commonjs/index.js +15 -15
  169. package/lib/commonjs/index.js.map +1 -1
  170. package/lib/commonjs/mdoc/index.js +13 -5
  171. package/lib/commonjs/mdoc/index.js.map +1 -1
  172. package/lib/commonjs/mdoc/utils.js.map +1 -1
  173. package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
  174. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  175. package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
  176. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  177. package/lib/commonjs/sd-jwt/index.js +9 -9
  178. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  179. package/lib/commonjs/sd-jwt/types.js +18 -18
  180. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  181. package/lib/commonjs/sd-jwt/utils.js +3 -3
  182. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  183. package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
  184. package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
  185. package/lib/commonjs/trust/common/build-chain.js +5 -2
  186. package/lib/commonjs/trust/common/build-chain.js.map +1 -1
  187. package/lib/commonjs/trust/common/errors.js +51 -44
  188. package/lib/commonjs/trust/common/errors.js.map +1 -1
  189. package/lib/commonjs/trust/common/types.js +22 -22
  190. package/lib/commonjs/trust/common/types.js.map +1 -1
  191. package/lib/commonjs/trust/common/utils.js +45 -45
  192. package/lib/commonjs/trust/common/utils.js.map +1 -1
  193. package/lib/commonjs/trust/common/verify-chain.js +96 -96
  194. package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
  195. package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
  196. package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
  197. package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
  198. package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
  199. package/lib/commonjs/trust/v1.0.0/index.js +3 -3
  200. package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
  201. package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
  202. package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
  203. package/lib/commonjs/trust/v1.0.0/types.js +46 -46
  204. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  205. package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
  206. package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
  207. package/lib/commonjs/trust/v1.3.3/entities.js +1 -1
  208. package/lib/commonjs/trust/v1.3.3/entities.js.map +1 -1
  209. package/lib/commonjs/trust/v1.3.3/types.js +2 -2
  210. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  211. package/lib/commonjs/utils/auth.js +2 -2
  212. package/lib/commonjs/utils/auth.js.map +1 -1
  213. package/lib/commonjs/utils/callbacks.js +47 -51
  214. package/lib/commonjs/utils/callbacks.js.map +1 -1
  215. package/lib/commonjs/utils/credentials.js +3 -3
  216. package/lib/commonjs/utils/credentials.js.map +1 -1
  217. package/lib/commonjs/utils/crypto.js +23 -25
  218. package/lib/commonjs/utils/crypto.js.map +1 -1
  219. package/lib/commonjs/utils/decoder.js +2 -2
  220. package/lib/commonjs/utils/decoder.js.map +1 -1
  221. package/lib/commonjs/utils/dpop.js +5 -5
  222. package/lib/commonjs/utils/dpop.js.map +1 -1
  223. package/lib/commonjs/utils/error-codes.js +19 -19
  224. package/lib/commonjs/utils/error-codes.js.map +1 -1
  225. package/lib/commonjs/utils/errors.js +51 -50
  226. package/lib/commonjs/utils/errors.js.map +1 -1
  227. package/lib/commonjs/utils/jwk.js +5 -6
  228. package/lib/commonjs/utils/jwk.js.map +1 -1
  229. package/lib/commonjs/utils/logging.js +15 -14
  230. package/lib/commonjs/utils/logging.js.map +1 -1
  231. package/lib/commonjs/utils/mappers.js +6 -8
  232. package/lib/commonjs/utils/mappers.js.map +1 -1
  233. package/lib/commonjs/utils/misc.js +6 -5
  234. package/lib/commonjs/utils/misc.js.map +1 -1
  235. package/lib/commonjs/utils/par.js +28 -28
  236. package/lib/commonjs/utils/par.js.map +1 -1
  237. package/lib/commonjs/utils/pop.js +5 -5
  238. package/lib/commonjs/utils/pop.js.map +1 -1
  239. package/lib/commonjs/utils/string.js.map +1 -1
  240. package/lib/commonjs/utils/x509.js +2 -2
  241. package/lib/commonjs/utils/x509.js.map +1 -1
  242. package/lib/commonjs/utils/zod.js +1 -1
  243. package/lib/commonjs/utils/zod.js.map +1 -1
  244. package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
  245. package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
  246. package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
  247. package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
  248. package/lib/commonjs/wallet-instance/v1.3.3/index.js +2 -2
  249. package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +1 -1
  250. package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
  251. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  252. package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
  253. package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
  254. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  255. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  256. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  257. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  258. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  259. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  260. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
  261. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  262. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  263. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  264. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +2 -2
  265. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  266. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  267. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  268. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  269. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  270. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  271. package/lib/commonjs/wallet-unit-attestation/api/types.js +5 -5
  272. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  273. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +4 -4
  274. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  275. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +30 -27
  276. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  277. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  278. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  279. package/lib/module/IoWallet.js +6 -4
  280. package/lib/module/IoWallet.js.map +1 -1
  281. package/lib/module/api/index.js +19 -19
  282. package/lib/module/api/index.js.map +1 -1
  283. package/lib/module/client/index.js +10 -12
  284. package/lib/module/client/index.js.map +1 -1
  285. package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
  286. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  287. package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  288. package/lib/module/credential/issuance/api/types.js +3 -3
  289. package/lib/module/credential/issuance/api/types.js.map +1 -1
  290. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
  291. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  292. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  293. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  294. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
  295. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  296. package/lib/module/credential/issuance/common/errors.js +0 -3
  297. package/lib/module/credential/issuance/common/errors.js.map +1 -1
  298. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  299. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  300. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  301. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  302. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  303. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  304. package/lib/module/credential/issuance/mrtd-pop/index.js +5 -5
  305. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  306. package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  307. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  308. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  309. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
  310. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  311. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
  312. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  313. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
  314. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  315. package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  316. package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
  317. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  318. package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
  319. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  320. package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
  321. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  322. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  323. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +31 -31
  324. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  325. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +28 -28
  326. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  327. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  328. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  329. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +34 -30
  330. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  331. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  332. package/lib/module/credential/issuance/v1.3.3/index.js +9 -9
  333. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  334. package/lib/module/credential/issuance/v1.3.3/mappers.js +18 -17
  335. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  336. package/lib/module/credential/offer/common/errors.js +0 -6
  337. package/lib/module/credential/offer/common/errors.js.map +1 -1
  338. package/lib/module/credential/offer/v1.0.0/index.js +3 -3
  339. package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
  340. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js +5 -5
  341. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  342. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js +3 -3
  343. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  344. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js +6 -6
  345. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  346. package/lib/module/credential/offer/v1.3.3/index.js +1 -1
  347. package/lib/module/credential/offer/v1.3.3/index.js.map +1 -1
  348. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
  349. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  350. package/lib/module/credential/presentation/api/types.js +11 -11
  351. package/lib/module/credential/presentation/api/types.js.map +1 -1
  352. package/lib/module/credential/presentation/common/errors.js +21 -21
  353. package/lib/module/credential/presentation/common/errors.js.map +1 -1
  354. package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
  355. package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
  356. package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
  357. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
  358. package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
  359. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  360. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  361. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  362. package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  363. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  364. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  365. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  366. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  367. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
  368. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  369. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
  370. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  371. package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
  372. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  373. package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
  374. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  375. package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
  376. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  377. package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
  378. package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
  379. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
  380. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  381. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  382. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  383. package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  384. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  385. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  386. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  387. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  388. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +12 -8
  389. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  390. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +25 -17
  391. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  392. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  393. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  394. package/lib/module/credential/presentation/v1.3.3/index.js +6 -6
  395. package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -1
  396. package/lib/module/credential/presentation/v1.3.3/mappers.js +11 -11
  397. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  398. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js +4 -3
  399. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  400. package/lib/module/credential/presentation/v1.3.3/types.js +3 -3
  401. package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
  402. package/lib/module/credential/status/api/index.js.map +1 -1
  403. package/lib/module/credential/status/api/types.js +6 -6
  404. package/lib/module/credential/status/api/types.js.map +1 -1
  405. package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
  406. package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  407. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  408. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  409. package/lib/module/credential/status/v1.0.0/index.js +1 -1
  410. package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
  411. package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
  412. package/lib/module/credential/status/v1.0.0/types.js +17 -17
  413. package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
  414. package/lib/module/credential/status/v1.3.3/01-status-list.js +4 -4
  415. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  416. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  417. package/lib/module/credential/status/v1.3.3/03-get-status.js +3 -2
  418. package/lib/module/credential/status/v1.3.3/03-get-status.js.map +1 -1
  419. package/lib/module/credential/status/v1.3.3/index.js +3 -3
  420. package/lib/module/credential/status/v1.3.3/index.js.map +1 -1
  421. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
  422. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  423. package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
  424. package/lib/module/credential/trustmark/v1.3.3/index.js.map +1 -1
  425. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -54
  426. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  427. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  428. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  429. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  430. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  431. package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
  432. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  433. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
  434. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  435. package/lib/module/credentials-catalogue/v1.0.0/types.js +35 -35
  436. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  437. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  438. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  439. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  440. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  441. package/lib/module/credentials-catalogue/v1.3.3/index.js +1 -1
  442. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  443. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +22 -21
  444. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  445. package/lib/module/credentials-catalogue/v1.3.3/types.js +93 -93
  446. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  447. package/lib/module/credentials-catalogue/v1.3.3/utils.js +8 -8
  448. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  449. package/lib/module/index.js +10 -10
  450. package/lib/module/index.js.map +1 -1
  451. package/lib/module/mdoc/index.js +13 -5
  452. package/lib/module/mdoc/index.js.map +1 -1
  453. package/lib/module/mdoc/utils.js.map +1 -1
  454. package/lib/module/sd-jwt/__test__/types.test.js +9 -9
  455. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  456. package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
  457. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  458. package/lib/module/sd-jwt/index.js +9 -9
  459. package/lib/module/sd-jwt/index.js.map +1 -1
  460. package/lib/module/sd-jwt/types.js +18 -18
  461. package/lib/module/sd-jwt/types.js.map +1 -1
  462. package/lib/module/sd-jwt/utils.js +3 -3
  463. package/lib/module/sd-jwt/utils.js.map +1 -1
  464. package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
  465. package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
  466. package/lib/module/trust/common/build-chain.js +5 -2
  467. package/lib/module/trust/common/build-chain.js.map +1 -1
  468. package/lib/module/trust/common/errors.js +46 -37
  469. package/lib/module/trust/common/errors.js.map +1 -1
  470. package/lib/module/trust/common/types.js +22 -22
  471. package/lib/module/trust/common/types.js.map +1 -1
  472. package/lib/module/trust/common/utils.js +45 -45
  473. package/lib/module/trust/common/utils.js.map +1 -1
  474. package/lib/module/trust/common/verify-chain.js +96 -96
  475. package/lib/module/trust/common/verify-chain.js.map +1 -1
  476. package/lib/module/trust/v1.0.0/build-chain.js +2 -2
  477. package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
  478. package/lib/module/trust/v1.0.0/entities.js +1 -1
  479. package/lib/module/trust/v1.0.0/entities.js.map +1 -1
  480. package/lib/module/trust/v1.0.0/index.js +3 -3
  481. package/lib/module/trust/v1.0.0/index.js.map +1 -1
  482. package/lib/module/trust/v1.0.0/mappers.js +2 -2
  483. package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
  484. package/lib/module/trust/v1.0.0/types.js +46 -46
  485. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  486. package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
  487. package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
  488. package/lib/module/trust/v1.3.3/entities.js +1 -1
  489. package/lib/module/trust/v1.3.3/entities.js.map +1 -1
  490. package/lib/module/trust/v1.3.3/types.js +2 -2
  491. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  492. package/lib/module/utils/auth.js +2 -2
  493. package/lib/module/utils/auth.js.map +1 -1
  494. package/lib/module/utils/callbacks.js +47 -51
  495. package/lib/module/utils/callbacks.js.map +1 -1
  496. package/lib/module/utils/credentials.js +3 -3
  497. package/lib/module/utils/credentials.js.map +1 -1
  498. package/lib/module/utils/crypto.js +23 -25
  499. package/lib/module/utils/crypto.js.map +1 -1
  500. package/lib/module/utils/decoder.js +3 -3
  501. package/lib/module/utils/decoder.js.map +1 -1
  502. package/lib/module/utils/dpop.js +5 -5
  503. package/lib/module/utils/dpop.js.map +1 -1
  504. package/lib/module/utils/error-codes.js +19 -19
  505. package/lib/module/utils/error-codes.js.map +1 -1
  506. package/lib/module/utils/errors.js +47 -46
  507. package/lib/module/utils/errors.js.map +1 -1
  508. package/lib/module/utils/jwk.js +4 -5
  509. package/lib/module/utils/jwk.js.map +1 -1
  510. package/lib/module/utils/logging.js +15 -14
  511. package/lib/module/utils/logging.js.map +1 -1
  512. package/lib/module/utils/mappers.js +6 -8
  513. package/lib/module/utils/mappers.js.map +1 -1
  514. package/lib/module/utils/misc.js +7 -6
  515. package/lib/module/utils/misc.js.map +1 -1
  516. package/lib/module/utils/par.js +28 -28
  517. package/lib/module/utils/par.js.map +1 -1
  518. package/lib/module/utils/pop.js +5 -5
  519. package/lib/module/utils/pop.js.map +1 -1
  520. package/lib/module/utils/string.js.map +1 -1
  521. package/lib/module/utils/x509.js +2 -2
  522. package/lib/module/utils/x509.js.map +1 -1
  523. package/lib/module/utils/zod.js +1 -1
  524. package/lib/module/utils/zod.js.map +1 -1
  525. package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
  526. package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
  527. package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
  528. package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
  529. package/lib/module/wallet-instance/v1.3.3/index.js +3 -3
  530. package/lib/module/wallet-instance/v1.3.3/index.js.map +1 -1
  531. package/lib/module/wallet-instance-attestation/api/types.js +7 -7
  532. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  533. package/lib/module/wallet-instance-attestation/common/types.js +7 -7
  534. package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
  535. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
  536. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  537. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  538. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  539. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  540. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  541. package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
  542. package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  543. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  544. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  545. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +2 -2
  546. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  547. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  548. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  549. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  550. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  551. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  552. package/lib/module/wallet-unit-attestation/api/types.js +5 -5
  553. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  554. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +4 -4
  555. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  556. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +30 -27
  557. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  558. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  559. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  560. package/lib/typescript/IoWallet.d.ts +4 -4
  561. package/lib/typescript/IoWallet.d.ts.map +1 -1
  562. package/lib/typescript/api/index.d.ts +14 -14
  563. package/lib/typescript/api/index.d.ts.map +1 -1
  564. package/lib/typescript/client/index.d.ts +2 -2
  565. package/lib/typescript/client/index.d.ts.map +1 -1
  566. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
  567. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  568. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
  569. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  570. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
  571. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
  572. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +5 -5
  573. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  574. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
  575. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  576. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
  577. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  578. package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
  579. package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
  580. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
  581. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
  582. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
  583. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
  584. package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
  585. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  586. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
  587. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  588. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
  589. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  590. package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
  591. package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
  592. package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
  593. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
  594. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  595. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
  596. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  597. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  598. package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
  599. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  600. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
  601. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  602. package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
  603. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  604. package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
  605. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  606. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
  607. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  608. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  609. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  610. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  611. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +1 -1
  612. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  613. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  614. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +8 -8
  615. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  616. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  617. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  618. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +45 -45
  619. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  620. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
  621. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
  622. package/lib/typescript/credential/offer/api/index.d.ts +1 -1
  623. package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
  624. package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
  625. package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
  626. package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
  627. package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +1 -1
  628. package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +1 -1
  629. package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +1 -1
  630. package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +1 -1
  631. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
  632. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
  633. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
  634. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
  635. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
  636. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  637. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
  638. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  639. package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
  640. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  641. package/lib/typescript/credential/presentation/api/types.d.ts +72 -72
  642. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  643. package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
  644. package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
  645. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
  646. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  647. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
  648. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  649. package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
  650. package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
  651. package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
  652. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  653. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
  654. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
  655. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  656. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  657. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
  658. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  659. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
  660. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  661. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
  662. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  663. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
  664. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  665. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +1 -1
  666. package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +1 -1
  667. package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +1 -1
  668. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +1 -1
  669. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  670. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  671. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  672. package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -1
  673. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +41 -41
  674. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  675. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  676. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +2 -2
  677. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  678. package/lib/typescript/credential/status/api/index.d.ts +3 -3
  679. package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
  680. package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
  681. package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
  682. package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
  683. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  684. package/lib/typescript/credential/status/api/types.d.ts +12 -12
  685. package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
  686. package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
  687. package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
  688. package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
  689. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
  690. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
  691. package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
  692. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  693. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  694. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  695. package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +1 -1
  696. package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +1 -1
  697. package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
  698. package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
  699. package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
  700. package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
  701. package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +1 -1
  702. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +168 -165
  703. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  704. package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
  705. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  706. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
  707. package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
  708. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  709. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
  710. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  711. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +89 -89
  712. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  713. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
  714. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  715. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +158 -157
  716. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  717. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +186 -186
  718. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  719. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  720. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  721. package/lib/typescript/index.d.ts +12 -12
  722. package/lib/typescript/index.d.ts.map +1 -1
  723. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  724. package/lib/typescript/mdoc/utils.d.ts +2 -2
  725. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  726. package/lib/typescript/sd-jwt/index.d.ts +10 -10
  727. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  728. package/lib/typescript/sd-jwt/types.d.ts +15 -15
  729. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  730. package/lib/typescript/sd-jwt/utils.d.ts +1 -1
  731. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  732. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
  733. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  734. package/lib/typescript/trust/api/index.d.ts +11 -11
  735. package/lib/typescript/trust/api/index.d.ts.map +1 -1
  736. package/lib/typescript/trust/common/build-chain.d.ts +3 -3
  737. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  738. package/lib/typescript/trust/common/errors.d.ts +43 -43
  739. package/lib/typescript/trust/common/errors.d.ts.map +1 -1
  740. package/lib/typescript/trust/common/types.d.ts +37 -37
  741. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  742. package/lib/typescript/trust/common/utils.d.ts +17 -17
  743. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  744. package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
  745. package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
  746. package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
  747. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  748. package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
  749. package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
  750. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  751. package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
  752. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  753. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  754. package/lib/typescript/trust/v1.3.3/entities.d.ts +24 -24
  755. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  756. package/lib/typescript/trust/v1.3.3/types.d.ts +206 -206
  757. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  758. package/lib/typescript/utils/auth.d.ts +1 -1
  759. package/lib/typescript/utils/callbacks.d.ts +1 -1
  760. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  761. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  762. package/lib/typescript/utils/crypto.d.ts +1 -1
  763. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  764. package/lib/typescript/utils/decoder.d.ts +1 -1
  765. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  766. package/lib/typescript/utils/dpop.d.ts +3 -3
  767. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  768. package/lib/typescript/utils/error-codes.d.ts +18 -18
  769. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  770. package/lib/typescript/utils/errors.d.ts +49 -51
  771. package/lib/typescript/utils/errors.d.ts.map +1 -1
  772. package/lib/typescript/utils/integrity.d.ts +9 -9
  773. package/lib/typescript/utils/integrity.d.ts.map +1 -1
  774. package/lib/typescript/utils/jwk.d.ts +3 -3
  775. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  776. package/lib/typescript/utils/logging.d.ts +10 -10
  777. package/lib/typescript/utils/logging.d.ts.map +1 -1
  778. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  779. package/lib/typescript/utils/misc.d.ts +2 -2
  780. package/lib/typescript/utils/misc.d.ts.map +1 -1
  781. package/lib/typescript/utils/par.d.ts +13 -13
  782. package/lib/typescript/utils/par.d.ts.map +1 -1
  783. package/lib/typescript/utils/parser.d.ts +2 -2
  784. package/lib/typescript/utils/parser.d.ts.map +1 -1
  785. package/lib/typescript/utils/pop.d.ts +2 -2
  786. package/lib/typescript/utils/pop.d.ts.map +1 -1
  787. package/lib/typescript/utils/string.d.ts.map +1 -1
  788. package/lib/typescript/utils/x509.d.ts.map +1 -1
  789. package/lib/typescript/utils/zod.d.ts +5 -5
  790. package/lib/typescript/utils/zod.d.ts.map +1 -1
  791. package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
  792. package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
  793. package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
  794. package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
  795. package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +1 -1
  796. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
  797. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  798. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
  799. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  800. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
  801. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  802. package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
  803. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  804. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
  805. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
  806. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  807. package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
  808. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  809. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  810. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +10 -10
  811. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +5 -5
  812. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  813. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -1
  814. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +20 -20
  815. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -1
  816. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +10 -10
  817. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  818. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -1
  819. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -1
  820. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +11 -11
  821. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +6 -6
  822. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  823. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -1
  824. package/package.json +10 -7
  825. package/src/IoWallet.ts +11 -9
  826. package/src/api/index.ts +27 -27
  827. package/src/client/index.ts +14 -13
  828. package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
  829. package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
  830. package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
  831. package/src/credential/issuance/api/04-authorize-access.ts +4 -3
  832. package/src/credential/issuance/api/05-obtain-credential.ts +8 -7
  833. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
  834. package/src/credential/issuance/api/IssuerConfig.ts +20 -19
  835. package/src/credential/issuance/api/index.ts +4 -4
  836. package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
  837. package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
  838. package/src/credential/issuance/api/types.ts +9 -8
  839. package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
  840. package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
  841. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
  842. package/src/credential/issuance/common/errors.ts +0 -4
  843. package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
  844. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
  845. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
  846. package/src/credential/issuance/mrtd-pop/index.ts +7 -6
  847. package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
  848. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
  849. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
  850. package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
  851. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
  852. package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
  853. package/src/credential/issuance/v1.0.0/index.ts +11 -10
  854. package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
  855. package/src/credential/issuance/v1.0.0/types.ts +2 -1
  856. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +6 -4
  857. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +33 -30
  858. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +54 -51
  859. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +20 -18
  860. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +49 -43
  861. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +5 -4
  862. package/src/credential/issuance/v1.3.3/index.ts +11 -10
  863. package/src/credential/issuance/v1.3.3/mappers.ts +25 -22
  864. package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
  865. package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
  866. package/src/credential/offer/api/index.ts +2 -2
  867. package/src/credential/offer/common/errors.ts +0 -8
  868. package/src/credential/offer/v1.0.0/index.ts +5 -4
  869. package/src/credential/offer/v1.3.3/01-resolve-credential-offer.ts +5 -3
  870. package/src/credential/offer/v1.3.3/02-extract-grant-details.ts +6 -4
  871. package/src/credential/offer/v1.3.3/03-validate-credential-offer.ts +6 -4
  872. package/src/credential/offer/v1.3.3/index.ts +2 -1
  873. package/src/credential/presentation/api/01-start-flow.ts +4 -4
  874. package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
  875. package/src/credential/presentation/api/03-get-request-object.ts +1 -1
  876. package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
  877. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  878. package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
  879. package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
  880. package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
  881. package/src/credential/presentation/api/index.ts +4 -4
  882. package/src/credential/presentation/api/types.ts +68 -66
  883. package/src/credential/presentation/common/errors.ts +32 -35
  884. package/src/credential/presentation/common/utils/dcql.ts +34 -30
  885. package/src/credential/presentation/common/utils/http.ts +2 -2
  886. package/src/credential/presentation/common/utils/mdoc.ts +17 -15
  887. package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
  888. package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
  889. package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
  890. package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
  891. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
  892. package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
  893. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
  894. package/src/credential/presentation/v1.0.0/index.ts +6 -5
  895. package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
  896. package/src/credential/presentation/v1.0.0/types.ts +11 -10
  897. package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
  898. package/src/credential/presentation/v1.0.0/utils.ts +4 -3
  899. package/src/credential/presentation/v1.3.3/01-start-flow.ts +5 -3
  900. package/src/credential/presentation/v1.3.3/02-evaluate-rp-trust.ts +3 -2
  901. package/src/credential/presentation/v1.3.3/03-get-request-object.ts +4 -2
  902. package/src/credential/presentation/v1.3.3/04-verify-certificate-chain.ts +9 -7
  903. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +24 -14
  904. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +37 -23
  905. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +40 -32
  906. package/src/credential/presentation/v1.3.3/index.ts +7 -6
  907. package/src/credential/presentation/v1.3.3/mappers.ts +13 -12
  908. package/src/credential/presentation/v1.3.3/sdkErrorMapper.ts +9 -7
  909. package/src/credential/presentation/v1.3.3/types.ts +3 -3
  910. package/src/credential/status/api/index.ts +4 -4
  911. package/src/credential/status/api/status-assertion.ts +7 -6
  912. package/src/credential/status/api/status-list.ts +17 -17
  913. package/src/credential/status/api/types.ts +12 -11
  914. package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
  915. package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
  916. package/src/credential/status/v1.0.0/index.ts +2 -1
  917. package/src/credential/status/v1.0.0/mappers.ts +2 -1
  918. package/src/credential/status/v1.0.0/types.ts +17 -16
  919. package/src/credential/status/v1.3.3/01-status-list.ts +9 -7
  920. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +3 -1
  921. package/src/credential/status/v1.3.3/03-get-status.ts +6 -4
  922. package/src/credential/status/v1.3.3/index.ts +3 -2
  923. package/src/credential/trustmark/api/index.ts +11 -11
  924. package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
  925. package/src/credential/trustmark/v1.0.0/index.ts +2 -1
  926. package/src/credential/trustmark/v1.3.3/index.ts +2 -1
  927. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +48 -46
  928. package/src/credentials-catalogue/api/index.ts +14 -12
  929. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
  930. package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
  931. package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
  932. package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
  933. package/src/credentials-catalogue/v1.0.0/types.ts +32 -31
  934. package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +14 -14
  935. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +4 -3
  936. package/src/credentials-catalogue/v1.3.3/index.ts +2 -1
  937. package/src/credentials-catalogue/v1.3.3/mappers.ts +28 -27
  938. package/src/credentials-catalogue/v1.3.3/types.ts +82 -81
  939. package/src/credentials-catalogue/v1.3.3/utils.ts +14 -12
  940. package/src/index.ts +23 -23
  941. package/src/mdoc/index.ts +26 -11
  942. package/src/mdoc/utils.ts +6 -4
  943. package/src/sd-jwt/__test__/types.test.ts +6 -6
  944. package/src/sd-jwt/__test__/utils.test.ts +2 -2
  945. package/src/sd-jwt/index.ts +10 -8
  946. package/src/sd-jwt/types.ts +14 -13
  947. package/src/sd-jwt/utils.ts +10 -9
  948. package/src/trust/api/TrustAnchorConfig.ts +3 -2
  949. package/src/trust/api/index.ts +19 -16
  950. package/src/trust/common/build-chain.ts +28 -18
  951. package/src/trust/common/errors.ts +58 -50
  952. package/src/trust/common/types.ts +22 -21
  953. package/src/trust/common/utils.ts +65 -64
  954. package/src/trust/common/verify-chain.ts +140 -138
  955. package/src/trust/v1.0.0/build-chain.ts +1 -1
  956. package/src/trust/v1.0.0/entities.ts +18 -16
  957. package/src/trust/v1.0.0/index.ts +5 -4
  958. package/src/trust/v1.0.0/mappers.ts +3 -2
  959. package/src/trust/v1.0.0/types.ts +43 -42
  960. package/src/trust/v1.0.0/verify-chain.ts +3 -2
  961. package/src/trust/v1.3.3/entities.ts +6 -4
  962. package/src/trust/v1.3.3/types.ts +10 -9
  963. package/src/utils/auth.ts +1 -1
  964. package/src/utils/callbacks.ts +38 -38
  965. package/src/utils/credentials.ts +7 -5
  966. package/src/utils/crypto.ts +36 -36
  967. package/src/utils/decoder.ts +7 -5
  968. package/src/utils/dpop.ts +5 -6
  969. package/src/utils/error-codes.ts +20 -20
  970. package/src/utils/errors.ts +89 -87
  971. package/src/utils/integrity.ts +11 -11
  972. package/src/utils/jwk.ts +4 -4
  973. package/src/utils/logging.ts +21 -20
  974. package/src/utils/mappers.ts +14 -11
  975. package/src/utils/misc.ts +15 -12
  976. package/src/utils/par.ts +30 -29
  977. package/src/utils/parser.ts +4 -4
  978. package/src/utils/pop.ts +4 -5
  979. package/src/utils/string.ts +2 -2
  980. package/src/utils/x509.ts +5 -4
  981. package/src/utils/zod.ts +4 -4
  982. package/src/wallet-instance/api/index.ts +24 -24
  983. package/src/wallet-instance/common/wallet-instance.ts +8 -7
  984. package/src/wallet-instance/v1.0.0/index.ts +5 -4
  985. package/src/wallet-instance/v1.3.3/index.ts +5 -4
  986. package/src/wallet-instance-attestation/api/index.ts +18 -17
  987. package/src/wallet-instance-attestation/api/types.ts +12 -11
  988. package/src/wallet-instance-attestation/common/types.ts +7 -6
  989. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
  990. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
  991. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
  992. package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
  993. package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
  994. package/src/wallet-instance-attestation/v1.3.3/index.ts +4 -3
  995. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +25 -23
  996. package/src/wallet-instance-attestation/v1.3.3/types.ts +3 -2
  997. package/src/wallet-instance-attestation/v1.3.3/utils.ts +3 -2
  998. package/src/wallet-unit-attestation/api/index.ts +23 -23
  999. package/src/wallet-unit-attestation/api/types.ts +11 -10
  1000. package/src/wallet-unit-attestation/v1.3.3/index.ts +6 -5
  1001. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +41 -33
  1002. package/src/wallet-unit-attestation/v1.3.3/types.ts +2 -1
  1003. package/src/wallet-unit-attestation/v1.3.3/utils.ts +1 -0
@@ -1,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,GAAG,QAAQ,iBAAiB;AACrC,SAASC,uBAAuB,QAAQ,iBAAiB;AAEzD,MAAMC,oBAAoB,GAAGJ,CAAC,CAACK,MAAM,CAAC;EACpCC,gBAAgB,EAAEN,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACvCC,SAAS,EAAET,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChCE,WAAW,EAAEV,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAClCG,IAAI,EAAEX,CAAC,CAACK,MAAM,CAAC;IACbO,IAAI,EAAEZ,CAAC,CAACa,KAAK,CAACZ,gBAAgB;EAChC,CAAC,CAAC;EACFa,QAAQ,EAAEd,CAAC,CAACa,KAAK,CAACb,CAAC,CAACO,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACxCO,YAAY,EAAEf,CAAC,CAACa,KAAK,CAACb,CAAC,CAACO,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC5CQ,iCAAiC,EAAEhB,CAAC,CAAC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AA0B,EAAEtE;IAC9B,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAIA,OAAO,MAAMwE,iCAAiC,GAAGzE,uBAAuB,CAAC6C,GAAG,CAC1EhD,CAAC,CAACK,MAAM,CAAC;EACP4C,OAAO,EAAEjD,CAAC,CAACK,MAAM,CAAC;IAChB6C,QAAQ,EAAElD,CAAC,CAACK,MAAM,CAAC;MACjBwE,eAAe,EAAE7E,CAAC,CACfK,MAAM,CAAC;QACN0D,cAAc,EAAE/D,CAAC,CAACO,MAAM,CAAC,CAAC;QAC1BuE,oBAAoB,EAAE9E,CAAC,CAACa,KAAK,CAACb,CAAC,CAACO,MAAM,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;QACpD2D,qBAAqB,EAAEnE,CAAC,CAACa,KAAK,CAACb,CAAC,CAACO,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,CA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ACLkD,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,6 +1,6 @@
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.
@@ -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.3.3/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"}
@@ -1,7 +1,7 @@
1
+ import { itWalletAuthorizationServerMetadataV1_3, itWalletCredentialIssuerMetadataV1_3, itWalletCredentialVerifierMetadataV1_3, itWalletSolutionEntityMetadataV1_3 } from "@pagopa/io-wallet-oid-federation";
1
2
  import * as z from "zod";
2
3
  import { JWK } from "../../utils/jwk";
3
4
  import { BaseEntityConfiguration } from "../common/types";
4
- import { itWalletCredentialIssuerMetadataV1_3, itWalletAuthorizationServerMetadataV1_3, itWalletSolutionEntityMetadataV1_3, itWalletCredentialVerifierMetadataV1_3 } from "@pagopa/io-wallet-oid-federation";
5
5
 
6
6
  // Entity configuration for a Credential Issuer
7
7
 
@@ -11,8 +11,8 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(z
11
11
  keys: z.array(JWK)
12
12
  }),
13
13
  metadata: z.object({
14
- openid_credential_issuer: itWalletCredentialIssuerMetadataV1_3,
15
14
  oauth_authorization_server: itWalletAuthorizationServerMetadataV1_3,
15
+ openid_credential_issuer: itWalletCredentialIssuerMetadataV1_3,
16
16
  openid_credential_verifier: itWalletCredentialVerifierMetadataV1_3.optional()
17
17
  })
18
18
  })
@@ -1 +1 @@
1
- {"version":3,"names":["z","JWK","BaseEntityConfiguration","itWalletCredentialIssuerMetadataV1_3","itWalletAuthorizationServerMetadataV1_3","itWalletSolutionEntityMetadataV1_3","itWalletCredentialVerifierMetadataV1_3","CredentialIssuerEntityConfiguration","and","object","payload","jwks","keys","array","metadata","openid_credential_issuer","oauth_authorization_server","openid_credential_verifier","optional","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_solution","EntityConfiguration","union","describe"],"sourceRoot":"../../../../src","sources":["trust/v1.3.3/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AACxB,SAASC,GAAG,QAAQ,iBAAiB;AACrC,SAASC,uBAAuB,QAAQ,iBAAiB;AACzD,SACEC,oCAAoC,EACpCC,uCAAuC,EACvCC,kCAAkC,EAClCC,sCAAsC,QACjC,kCAAkC;;AAEzC;;AAIA,OAAO,MAAMC,mCAAmC,GAAGL,uBAAuB,CAACM,GAAG,CAC5ER,CAAC,CAACS,MAAM,CAAC;EACPC,OAAO,EAAEV,CAAC,CAACS,MAAM,CAAC;IAChBE,IAAI,EAAEX,CAAC,CAACS,MAAM,CAAC;MAAEG,IAAI,EAAEZ,CAAC,CAACa,KAAK,CAACZ,GAAG;IAAE,CAAC,CAAC;IACtCa,QAAQ,EAAEd,CAAC,CAACS,MAAM,CAAC;MACjBM,wBAAwB,EAAEZ,oCAAoC;MAC9Da,0BAA0B,EAAEZ,uCAAuC;MACnEa,0BAA0B,EACxBX,sCAAsC,CAACY,QAAQ,CAAC;IACpD,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAIA,OAAO,MAAMC,+BAA+B,GAAGjB,uBAAuB,CAACM,GAAG,CACxER,CAAC,CAACS,MAAM,CAAC;EACPC,OAAO,EAAEV,CAAC,CAACS,MAAM,CAAC;IAChBK,QAAQ,EAAEd,CAAC,CAACS,MAAM,CAAC;MACjBQ,0BAA0B,EAAEX;IAC9B,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAIA,OAAO,MAAMc,iCAAiC,GAAGlB,uBAAuB,CAACM,GAAG,CAC1ER,CAAC,CAACS,MAAM,CAAC;EACPC,OAAO,EAAEV,CAAC,CAACS,MAAM,CAAC;IAChBK,QAAQ,EAAEd,CAAC,CAACS,MAAM,CAAC;MACjBY,eAAe,EAAEhB;IACnB,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAEA,OAAO,MAAMiB,mBAAmB,GAAGtB,CAAC,CACjCuB,KAAK,CAAC,CACLH,iCAAiC,EACjCb,mCAAmC,EACnCY,+BAA+B,CAChC,CAAC,CACDK,QAAQ,CAAC,2DAA2D,CAAC"}
1
+ {"version":3,"names":["itWalletAuthorizationServerMetadataV1_3","itWalletCredentialIssuerMetadataV1_3","itWalletCredentialVerifierMetadataV1_3","itWalletSolutionEntityMetadataV1_3","z","JWK","BaseEntityConfiguration","CredentialIssuerEntityConfiguration","and","object","payload","jwks","keys","array","metadata","oauth_authorization_server","openid_credential_issuer","openid_credential_verifier","optional","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_solution","EntityConfiguration","union","describe"],"sourceRoot":"../../../../src","sources":["trust/v1.3.3/types.ts"],"mappings":"AAAA,SACEA,uCAAuC,EACvCC,oCAAoC,EACpCC,sCAAsC,EACtCC,kCAAkC,QAC7B,kCAAkC;AACzC,OAAO,KAAKC,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,iBAAiB;AACrC,SAASC,uBAAuB,QAAQ,iBAAiB;;AAEzD;;AAIA,OAAO,MAAMC,mCAAmC,GAAGD,uBAAuB,CAACE,GAAG,CAC5EJ,CAAC,CAACK,MAAM,CAAC;EACPC,OAAO,EAAEN,CAAC,CAACK,MAAM,CAAC;IAChBE,IAAI,EAAEP,CAAC,CAACK,MAAM,CAAC;MAAEG,IAAI,EAAER,CAAC,CAACS,KAAK,CAACR,GAAG;IAAE,CAAC,CAAC;IACtCS,QAAQ,EAAEV,CAAC,CAACK,MAAM,CAAC;MACjBM,0BAA0B,EAAEf,uCAAuC;MACnEgB,wBAAwB,EAAEf,oCAAoC;MAC9DgB,0BAA0B,EACxBf,sCAAsC,CAACgB,QAAQ,CAAC;IACpD,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAIA,OAAO,MAAMC,+BAA+B,GAAGb,uBAAuB,CAACE,GAAG,CACxEJ,CAAC,CAACK,MAAM,CAAC;EACPC,OAAO,EAAEN,CAAC,CAACK,MAAM,CAAC;IAChBK,QAAQ,EAAEV,CAAC,CAACK,MAAM,CAAC;MACjBQ,0BAA0B,EAAEf;IAC9B,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAIA,OAAO,MAAMkB,iCAAiC,GAAGd,uBAAuB,CAACE,GAAG,CAC1EJ,CAAC,CAACK,MAAM,CAAC;EACPC,OAAO,EAAEN,CAAC,CAACK,MAAM,CAAC;IAChBK,QAAQ,EAAEV,CAAC,CAACK,MAAM,CAAC;MACjBY,eAAe,EAAElB;IACnB,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAEA,OAAO,MAAMmB,mBAAmB,GAAGlB,CAAC,CACjCmB,KAAK,CAAC,CACLH,iCAAiC,EACjCb,mCAAmC,EACnCY,+BAA+B,CAChC,CAAC,CACDK,QAAQ,CAAC,2DAA2D,CAAC"}
@@ -11,8 +11,8 @@ import * as z from "zod";
11
11
  */
12
12
  export const AuthorizationResultShape = z.object({
13
13
  code: z.string(),
14
- state: z.string(),
15
- iss: z.string().optional()
14
+ iss: z.string().optional(),
15
+ state: z.string()
16
16
  });
17
17
 
18
18
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["z","AuthorizationResultShape","object","code","string","state","iss","optional","AuthorizationErrorShape","error","error_description","error_uri","AuthorizationChallengeResultShape","challenge_info"],"sourceRoot":"../../../src","sources":["utils/auth.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;;AAExB;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGD,CAAC,CAACE,MAAM,CAAC;EAC/CC,IAAI,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EAChBC,KAAK,EAAEL,CAAC,CAACI,MAAM,CAAC,CAAC;EACjBE,GAAG,EAAEN,CAAC,CAACI,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC;AAC3B,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGR,CAAC,CAACE,MAAM,CAAC;EAC9CO,KAAK,EAAET,CAAC,CAACI,MAAM,CAAC,CAAC;EAAE;EACnBM,iBAAiB,EAAEV,CAAC,CAACI,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC,CAAC;EACxCI,SAAS,EAAEX,CAAC,CAACI,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC,CAAC;EAChCF,KAAK,EAAEL,CAAC,CAACI,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC;AAC7B,CAAC,CAAC;;AAEF;AACA;AACA;;AAGA;AACA;AACA;;AAEA,OAAO,MAAMK,iCAAiC,GAAGZ,CAAC,CAACE,MAAM,CAAC;EACxDW,cAAc,EAAEb,CAAC,CAACI,MAAM,CAAC;AAC3B,CAAC,CAAC"}
1
+ {"version":3,"names":["z","AuthorizationResultShape","object","code","string","iss","optional","state","AuthorizationErrorShape","error","error_description","error_uri","AuthorizationChallengeResultShape","challenge_info"],"sourceRoot":"../../../src","sources":["utils/auth.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;;AAExB;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGD,CAAC,CAACE,MAAM,CAAC;EAC/CC,IAAI,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EAChBC,GAAG,EAAEL,CAAC,CAACI,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC,CAAC;EAC1BC,KAAK,EAAEP,CAAC,CAACI,MAAM,CAAC;AAClB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,uBAAuB,GAAGR,CAAC,CAACE,MAAM,CAAC;EAC9CO,KAAK,EAAET,CAAC,CAACI,MAAM,CAAC,CAAC;EAAE;EACnBM,iBAAiB,EAAEV,CAAC,CAACI,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC,CAAC;EACxCK,SAAS,EAAEX,CAAC,CAACI,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC,CAAC;EAChCC,KAAK,EAAEP,CAAC,CAACI,MAAM,CAAC,CAAC,CAACE,QAAQ,CAAC;AAC7B,CAAC,CAAC;;AAEF;AACA;AACA;;AAGA;AACA;AACA;;AAEA,OAAO,MAAMM,iCAAiC,GAAGZ,CAAC,CAACE,MAAM,CAAC;EACxDW,cAAc,EAAEb,CAAC,CAACI,MAAM,CAAC;AAC3B,CAAC,CAAC"}
@@ -2,9 +2,9 @@ import { EncryptJwe, getJwkFromHeader, SignJWT } from "@pagopa/io-react-native-j
2
2
  import { verify } from "@pagopa/io-react-native-jwt";
3
3
  import { digest } from "@sd-jwt/crypto-nodejs";
4
4
  import { X509 } from "jsrsasign";
5
+ import { getJwkFromCertificateChain, getJwkFromTrustChain } from "./crypto";
5
6
  import { IoWalletError } from "./errors";
6
7
  import { assert, generateRandomBytes } from "./misc";
7
- import { getJwkFromCertificateChain, getJwkFromTrustChain } from "./crypto";
8
8
 
9
9
  // Fix incompatibility between ArrayBuffer types
10
10
 
@@ -15,8 +15,6 @@ import { getJwkFromCertificateChain, getJwkFromTrustChain } from "./crypto";
15
15
  */
16
16
  const getJwkFromSigner = async signer => {
17
17
  switch (signer.method) {
18
- case "x5c":
19
- return getJwkFromCertificateChain(signer.x5c);
20
18
  case "federation":
21
19
  {
22
20
  assert(signer.trustChain && signer.trustChain.length > 0, "Trust chain is required for federation signer");
@@ -24,6 +22,8 @@ const getJwkFromSigner = async signer => {
24
22
  }
25
23
  case "jwk":
26
24
  return signer.publicJwk;
25
+ case "x5c":
26
+ return getJwkFromCertificateChain(signer.x5c);
27
27
  default:
28
28
  throw new IoWalletError(`Unsupported signer method: ${signer.method}`);
29
29
  }
@@ -35,42 +35,27 @@ const getJwkFromSigner = async signer => {
35
35
  * as they require parameters that depends on the use case.
36
36
  */
37
37
  export const partialCallbacks = {
38
- generateRandom: generateRandomBytes,
39
- hash: digest,
38
+ decryptJwe: () => {
39
+ throw new IoWalletError("decryptJwe is not implemented");
40
+ },
40
41
  encryptJwe: async (_ref, data) => {
41
42
  let {
42
- publicJwk,
43
43
  alg,
44
44
  enc,
45
- kid
45
+ kid,
46
+ publicJwk
46
47
  } = _ref;
47
48
  return {
49
+ encryptionJwk: publicJwk,
48
50
  // @ts-expect-error `alg` and `enc` are strings, but EncryptJwe expects specific string literals
49
51
  jwe: await new EncryptJwe(data, {
50
52
  alg,
51
53
  enc,
52
54
  kid
53
- }).encrypt(publicJwk),
54
- encryptionJwk: publicJwk
55
+ }).encrypt(publicJwk)
55
56
  };
56
57
  },
57
- verifyJwt: async (jwtSigner, jwt) => {
58
- try {
59
- const signerJwk = await getJwkFromSigner(jwtSigner);
60
- await verify(jwt.compact, signerJwk);
61
- return {
62
- verified: true,
63
- signerJwk
64
- };
65
- } catch {
66
- return {
67
- verified: false
68
- };
69
- }
70
- },
71
- decryptJwe: () => {
72
- throw new IoWalletError("decryptJwe is not implemented");
73
- },
58
+ generateRandom: generateRandomBytes,
74
59
  getX509CertificateMetadata: certificate => {
75
60
  const x509 = new X509();
76
61
  x509.readCertPEM(certificate);
@@ -86,6 +71,21 @@ export const partialCallbacks = {
86
71
  sanDnsNames,
87
72
  sanUriNames
88
73
  };
74
+ },
75
+ hash: digest,
76
+ verifyJwt: async (jwtSigner, jwt) => {
77
+ try {
78
+ const signerJwk = await getJwkFromSigner(jwtSigner);
79
+ await verify(jwt.compact, signerJwk);
80
+ return {
81
+ signerJwk,
82
+ verified: true
83
+ };
84
+ } catch {
85
+ return {
86
+ verified: false
87
+ };
88
+ }
89
89
  }
90
90
  };
91
91
  /**
@@ -97,21 +97,19 @@ export const partialCallbacks = {
97
97
  * @param jwks The list of available keys
98
98
  * @returns Function that implements `verifyJwt` callback
99
99
  */
100
- export const createVerifyJwtFromJwks = jwks => {
101
- return async function verifyJwt(_, jwt) {
102
- try {
103
- const signerJwk = getJwkFromHeader(jwt.header, jwks);
104
- await verify(jwt.compact, signerJwk);
105
- return {
106
- verified: true,
107
- signerJwk
108
- };
109
- } catch {
110
- return {
111
- verified: false
112
- };
113
- }
114
- };
100
+ export const createVerifyJwtFromJwks = jwks => async function verifyJwt(_, jwt) {
101
+ try {
102
+ const signerJwk = getJwkFromHeader(jwt.header, jwks);
103
+ await verify(jwt.compact, signerJwk);
104
+ return {
105
+ signerJwk,
106
+ verified: true
107
+ };
108
+ } catch {
109
+ return {
110
+ verified: false
111
+ };
112
+ }
115
113
  };
116
114
 
117
115
  /**
@@ -119,16 +117,14 @@ export const createVerifyJwtFromJwks = jwks => {
119
117
  * @param cryptoContext The CryptoContext to use for signing the JWT
120
118
  * @returns Function that implements `signJwt` callback
121
119
  */
122
- export const createSignJwtFromCryptoContext = cryptoContext => {
123
- return async function signJwt(jwtSigner, _ref2) {
124
- let {
125
- header,
126
- payload
127
- } = _ref2;
128
- return {
129
- jwt: await new SignJWT(cryptoContext).setProtectedHeader(header).setPayload(payload).sign(),
130
- signerJwk: jwtSigner.method === "jwk" ? jwtSigner.publicJwk : await cryptoContext.getPublicKey()
131
- };
120
+ export const createSignJwtFromCryptoContext = cryptoContext => async function signJwt(jwtSigner, _ref2) {
121
+ let {
122
+ header,
123
+ payload
124
+ } = _ref2;
125
+ return {
126
+ jwt: await new SignJWT(cryptoContext).setProtectedHeader(header).setPayload(payload).sign(),
127
+ signerJwk: jwtSigner.method === "jwk" ? jwtSigner.publicJwk : await cryptoContext.getPublicKey()
132
128
  };
133
129
  };
134
130
  //# sourceMappingURL=callbacks.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["EncryptJwe","getJwkFromHeader","SignJWT","verify","digest","X509","IoWalletError","assert","generateRandomBytes","getJwkFromCertificateChain","getJwkFromTrustChain","getJwkFromSigner","signer","method","x5c","trustChain","length","kid","publicJwk","partialCallbacks","generateRandom","hash","encryptJwe","_ref","data","alg","enc","jwe","encrypt","encryptionJwk","verifyJwt","jwtSigner","jwt","signerJwk","compact","verified","decryptJwe","getX509CertificateMetadata","certificate","x509","readCertPEM","sanExt","getExtSubjectAltName","sanDnsNames","sanUriNames","item","array","push","dns","uri","createVerifyJwtFromJwks","jwks","_","header","createSignJwtFromCryptoContext","cryptoContext","signJwt","_ref2","payload","setProtectedHeader","setPayload","sign","getPublicKey"],"sourceRoot":"../../../src","sources":["utils/callbacks.ts"],"mappings":"AAAA,SACEA,UAAU,EACVC,gBAAgB,EAChBC,OAAO,QAEF,6BAA6B;AACpC,SAASC,MAAM,QAAQ,6BAA6B;AAEpD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,IAAI,QAAQ,WAAW;AAChC,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,MAAM,EAAEC,mBAAmB,QAAQ,QAAQ;AAEpD,SAASC,0BAA0B,EAAEC,oBAAoB,QAAQ,UAAU;;AAO3E;;AAMA;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAG,MAAOC,MAAiB,IAAmB;EAClE,QAAQA,MAAM,CAACC,MAAM;IACnB,KAAK,KAAK;MACR,OAAOJ,0BAA0B,CAACG,MAAM,CAACE,GAAG,CAAC;IAC/C,KAAK,YAAY;MAAE;QACjBP,MAAM,CACJK,MAAM,CAACG,UAAU,IAAIH,MAAM,CAACG,UAAU,CAACC,MAAM,GAAG,CAAC,EACjD,+CACF,CAAC;QACD,OAAON,oBAAoB,CAACE,MAAM,CAACG,UAAU,EAAEH,MAAM,CAACK,GAAG,CAAC;MAC5D;IACA,KAAK,KAAK;MACR,OAAOL,MAAM,CAACM,SAAS;IACzB;MACE,MAAM,IAAIZ,aAAa,CAAE,8BAA6BM,MAAM,CAACC,MAAO,EAAC,CAAC;EAC1E;AACF,CAA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version":3,"names":["EncryptJwe","getJwkFromHeader","SignJWT","verify","digest","X509","getJwkFromCertificateChain","getJwkFromTrustChain","IoWalletError","assert","generateRandomBytes","getJwkFromSigner","signer","method","trustChain","length","kid","publicJwk","x5c","partialCallbacks","decryptJwe","encryptJwe","_ref","data","alg","enc","encryptionJwk","jwe","encrypt","generateRandom","getX509CertificateMetadata","certificate","x509","readCertPEM","sanExt","getExtSubjectAltName","sanDnsNames","sanUriNames","item","array","push","dns","uri","hash","verifyJwt","jwtSigner","jwt","signerJwk","compact","verified","createVerifyJwtFromJwks","jwks","_","header","createSignJwtFromCryptoContext","cryptoContext","signJwt","_ref2","payload","setProtectedHeader","setPayload","sign","getPublicKey"],"sourceRoot":"../../../src","sources":["utils/callbacks.ts"],"mappings":"AAAA,SAEEA,UAAU,EACVC,gBAAgB,EAChBC,OAAO,QACF,6BAA6B;AACpC,SAASC,MAAM,QAAQ,6BAA6B;AAEpD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,IAAI,QAAQ,WAAW;AAIhC,SAASC,0BAA0B,EAAEC,oBAAoB,QAAQ,UAAU;AAC3E,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,MAAM,EAAEC,mBAAmB,QAAQ,QAAQ;;AAEpD;;AAWA;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAG,MAAOC,MAAiB,IAAmB;EAClE,QAAQA,MAAM,CAACC,MAAM;IACnB,KAAK,YAAY;MAAE;QACjBJ,MAAM,CACJG,MAAM,CAACE,UAAU,IAAIF,MAAM,CAACE,UAAU,CAACC,MAAM,GAAG,CAAC,EACjD,+CACF,CAAC;QACD,OAAOR,oBAAoB,CAACK,MAAM,CAACE,UAAU,EAAEF,MAAM,CAACI,GAAG,CAAC;MAC5D;IACA,KAAK,KAAK;MACR,OAAOJ,MAAM,CAACK,SAAS;IACzB,KAAK,KAAK;MACR,OAAOX,0BAA0B,CAACM,MAAM,CAACM,GAAG,CAAC;IAC/C;MACE,MAAM,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AC;AACH,CAAC"}
@@ -1,8 +1,8 @@
1
- import { decodeSdJwtSync } from "@sd-jwt/decode";
2
- import { digest } from "@sd-jwt/crypto-nodejs";
3
1
  import { thumbprint } from "@pagopa/io-react-native-jwt";
4
- import { IoWalletError } from "./errors";
2
+ import { digest } from "@sd-jwt/crypto-nodejs";
3
+ import { decodeSdJwtSync } from "@sd-jwt/decode";
5
4
  import { LEGACY_SD_JWT } from "../sd-jwt/types";
5
+ import { IoWalletError } from "./errors";
6
6
  const SD_JWT = ["dc+sd-jwt", LEGACY_SD_JWT];
7
7
 
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["decodeSdJwtSync","digest","thumbprint","IoWalletError","LEGACY_SD_JWT","SD_JWT","extractJwkFromCredential","credential","format","includes","decoded","fixLegacyCredentialSdJwt","cnf","jwt","payload","jwk","kid","token","endsWith","_token$split$at","hasKeyBindingJwt","split","at","length"],"sourceRoot":"../../../src","sources":["utils/credentials.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,gBAAgB;AAChD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,UAAU,QAAQ,6BAA6B;AAGxD,SAASC,aAAa,QAAQ,UAAU;AACxC,SACEC,aAAa,QAGR,iBAAiB;AAExB,MAAMC,MAAM,GAAG,CAAC,WAAW,EAAED,aAAa,CAAC;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,wBAAwB,GAAG,MAAAA,CACtCC,UAAkB,EAClBC,MAAqD,KACpC;EACjB,IAAIH,MAAM,CAACI,QAAQ,CAACD,MAAM,CAAC,EAAE;IAC3B;IACA,MAAME,OAAO,GAAGV,eAAe,CAC7BW,wBAAwB,CAACJ,UAAU,CAAC,EACpCN,MACF,CAAC;IACD,MAAM;MAAEW;IAAI,CAAC,GAAGF,OAAO,CAACG,GAAG,CAACC,OAAkC;IAC9D,IAAIF,GAAG,CAACG,GAAG,EAAE;MACX,OAAO;QAAE,GAAGH,GAAG,CAACG,GAAG;QAAEC,GAAG,EAAE,MAAMd,UAAU,CAACU,GAAG,CAACG,GAAG;MAAE,CAAC;IACvD;EACF;EACA,MAAM,IAAIZ,aAAa,CAAE,qBAAoBK,MAAO,gBAAe,CAAC;AACtE,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMG,wBAAwB,GAAIM,KAAa,IAAK;EACzD,IAAI,CAACA,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;IAAA,IAAAC,eAAA;IACxB,MAAMC,gBAAgB,GAAG,EAAAD,eAAA,GAAAF,KAAK,CAACI,KAAK,CAAC,GAAG,CAAC,CAACC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAAH,eAAA,uBAAvBA,eAAA,CAAyBE,KAAK,CAAC,GAAG,CAAC,CAACE,MAAM,MAAK,CAAC;IACzE;IACA,OAAOH,gBAAgB,GAAGH,KAAK,GAAI,GAAEA,KAAM,GAAE;EAC/C;EACA,OAAOA,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["thumbprint","digest","decodeSdJwtSync","LEGACY_SD_JWT","IoWalletError","SD_JWT","extractJwkFromCredential","credential","format","includes","decoded","fixLegacyCredentialSdJwt","cnf","jwt","payload","jwk","kid","token","endsWith","_token$split$at","hasKeyBindingJwt","split","at","length"],"sourceRoot":"../../../src","sources":["utils/credentials.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,eAAe,QAAQ,gBAAgB;AAKhD,SACEC,aAAa,QAGR,iBAAiB;AACxB,SAASC,aAAa,QAAQ,UAAU;AAExC,MAAMC,MAAM,GAAG,CAAC,WAAW,EAAEF,aAAa,CAAC;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,wBAAwB,GAAG,MAAAA,CACtCC,UAAkB,EAClBC,MAAqD,KACpC;EACjB,IAAIH,MAAM,CAACI,QAAQ,CAACD,MAAM,CAAC,EAAE;IAC3B;IACA,MAAME,OAAO,GAAGR,eAAe,CAC7BS,wBAAwB,CAACJ,UAAU,CAAC,EACpCN,MACF,CAAC;IACD,MAAM;MAAEW;IAAI,CAAC,GAAGF,OAAO,CAACG,GAAG,CAACC,OAAkC;IAC9D,IAAIF,GAAG,CAACG,GAAG,EAAE;MACX,OAAO;QAAE,GAAGH,GAAG,CAACG,GAAG;QAAEC,GAAG,EAAE,MAAMhB,UAAU,CAACY,GAAG,CAACG,GAAG;MAAE,CAAC;IACvD;EACF;EACA,MAAM,IAAIX,aAAa,CAAE,qBAAoBI,MAAO,gBAAe,CAAC;AACtE,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMG,wBAAwB,GAAIM,KAAa,IAAK;EACzD,IAAI,CAACA,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;IAAA,IAAAC,eAAA;IACxB,MAAMC,gBAAgB,GAAG,EAAAD,eAAA,GAAAF,KAAK,CAACI,KAAK,CAAC,GAAG,CAAC,CAACC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAAH,eAAA,uBAAvBA,eAAA,CAAyBE,KAAK,CAAC,GAAG,CAAC,CAACE,MAAM,MAAK,CAAC;IACzE;IACA,OAAOH,gBAAgB,GAAGH,KAAK,GAAI,GAAEA,KAAM,GAAE;EAC/C;EACA,OAAOA,KAAK;AACd,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { deleteKey, generate, getPublicKeyFixed, sign } from "@pagopa/io-react-native-crypto";
2
- import { v4 as uuidv4 } from "uuid";
3
2
  import { decode, thumbprint } from "@pagopa/io-react-native-jwt";
4
- import { JWK, JWKS } from "./jwk";
5
3
  import { KEYUTIL, KJUR, RSAKey, X509 } from "jsrsasign";
4
+ import { v4 as uuidv4 } from "uuid";
6
5
  import { IoWalletError } from "./errors";
6
+ import { JWK, JWKS } from "./jwk";
7
7
 
8
8
  /**
9
9
  * Extension of the {@link CryptoContext} that adds key generation with optional key attestation.
@@ -20,29 +20,27 @@ import { IoWalletError } from "./errors";
20
20
  *
21
21
  * @returns the crypto context
22
22
  */
23
- export const createCryptoContextFor = keytag => {
24
- return {
25
- async getPublicKey() {
26
- return getPublicKeyFixed(keytag).then(async jwk => ({
27
- ...jwk,
28
- // Keys in the TEE are not stored with their KID, which is supposed to be assigned when they are included in JWK sets.
29
- // (that is, KID is not a propoerty of the key itself, but it's property used to identify a key in a set).
30
- // We assume the convention we use the thumbprint of the public key as KID, thus for easy development we decided to evaluate KID here
31
- // However the values is an arbitrary string that might be anything
32
- kid: await thumbprint(jwk)
33
- }));
34
- },
35
- /**
36
- * Get a signature for a provided value.
37
- * If the key pair doesn't exist yet, an error is raised.
38
- * @param value
39
- * @returns The signature for the value
40
- */
41
- async getSignature(value) {
42
- return sign(value, keytag);
43
- }
44
- };
45
- };
23
+ export const createCryptoContextFor = keytag => ({
24
+ async getPublicKey() {
25
+ return getPublicKeyFixed(keytag).then(async jwk => ({
26
+ ...jwk,
27
+ // Keys in the TEE are not stored with their KID, which is supposed to be assigned when they are included in JWK sets.
28
+ // (that is, KID is not a propoerty of the key itself, but it's property used to identify a key in a set).
29
+ // We assume the convention we use the thumbprint of the public key as KID, thus for easy development we decided to evaluate KID here
30
+ // However the values is an arbitrary string that might be anything
31
+ kid: await thumbprint(jwk)
32
+ }));
33
+ },
34
+ /**
35
+ * Get a signature for a provided value.
36
+ * If the key pair doesn't exist yet, an error is raised.
37
+ * @param value
38
+ * @returns The signature for the value
39
+ */
40
+ async getSignature(value) {
41
+ return sign(value, keytag);
42
+ }
43
+ });
46
44
 
47
45
  /**
48
46
  * Executes the input function injecting an ephemeral crypto context.
@@ -1 +1 @@
1
- {"version":3,"names":["deleteKey","generate","getPublicKeyFixed","sign","v4","uuidv4","decode","thumbprint","JWK","JWKS","KEYUTIL","KJUR","RSAKey","X509","IoWalletError","createCryptoContextFor","keytag","getPublicKey","then","jwk","kid","getSignature","value","withEphemeralKey","fn","ephemeralContext","finally","convertBase64DerToPem","certificate","getSigninJwkFromCert","pemCert","x509","readCertPEM","publicKey","crypto","ECDSA","parse","getJWKFromKey","use","getJwkFromCertificateChain","certChain","leafCert","getJwkFromTrustChain","trustChain","signerKid","entityConfigurationJwt","keys","decodedEntityConfigJwt","baseEntityConfig","payload","jwks","push","metadata","Object","values","federationJwk","find","key"],"sourceRoot":"../../../src","sources":["utils/crypto.ts"],"mappings":"AAAA,SACEA,SAAS,EACTC,QAAQ,EACRC,iBAAiB,EACjBC,IAAI,QACC,gCAAgC;AACvC,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AACnC,SACEC,MAAM,EACNC,UAAU,QAEL,6BAA6B;AAEpC,SAASC,GAAG,EAAEC,IAAI,QAAQ,OAAO;AACjC,SAASC,OAAO,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,QAAQ,WAAW;AACvD,SAASC,aAAa,QAAQ,UAAU;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAIC,MAAc,IAAoB;EACvE,OAAO;IACL,MAAMC,YAAYA,CAAA,EAAG;MACnB,OAAOf,iBAAiB,CAACc,MAAM,CAAC,CAACE,IAAI,CAAC,MAAOC,GAAG,KAAM;QACpD,GAAGA,GAAG;QACN;QACA;QACA;QACA;QACAC,GAAG,EAAE,MAAMb,UAAU,CAACY,GAAG;MAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IACD;AACJ;AACA;AACA;AACA;AACA;IACI,MAAME,YAAYA,CAACC,KAAa,EAAE;MAChC,OAAOnB,IAAI,CAACmB,KAAK,EAAEN,MAAM,CAAC;IAC5B;EACF,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMO,gBAAgB,GAAG,MAC9BC,EAAmD,IACpC;EACf;EACA,MAAMR,MAAM,GAAI,aAAYX,MAAM,CAAC,CAAE,EAAC;EACtC,MAAMJ,QAAQ,CAACe,MAAM,CAAC;EACtB,MA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sB,CAAC,GAAGF,UAAU;EAC3C,IAAI,CAACE,sBAAsB,EAAE;IAC3B,MAAM,IAAI/B,aAAa,CAAC,kDAAkD,CAAC;EAC7E;EAEA,MAAMgC,IAAW,GAAG,EAAE;EACtB,MAAMC,sBAAsB,GAAGzC,MAAM,CAACuC,sBAAsB,CAAC;EAC7D,MAAMG,gBAAgB,GACpBD,sBAAsB,CAACE,OAA6C;;EAEtE;EACA,IAAID,gBAAgB,CAACE,IAAI,EAAE;IACzBJ,IAAI,CAACK,IAAI,CAAC,GAAG1C,IAAI,CAAC2B,KAAK,CAACY,gBAAgB,CAACE,IAAI,CAAC,CAACJ,IAAI,CAAC;EACtD;;EAEA;EACA,IAAIE,gBAAgB,CAACI,QAAQ,EAAE;IAC7B,KAAK,MAAMA,QAAQ,IAAIC,MAAM,CAACC,MAAM,CAClCN,gBAAgB,CAACI,QACnB,CAAC,EAAE;MACD,IAAIA,QAAQ,CAACF,IAAI,EAAE;QACjBJ,IAAI,CAACK,IAAI,CAAC,GAAG1C,IAAI,CAAC2B,KAAK,CAACgB,QAAQ,CAACF,IAAI,CAAC,CAACJ,IAAI,CAAC;MAC9C;IACF;EACF;EAEA,MAAMS,aAAa,GAAGT,IAAI,CAACU,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACrC,GAAG,KAAKwB,SAAS,CAAC;EAC/D,IAAI,CAACW,aAAa,EAChB,MAAM,IAAIzC,aAAa,CACrB,uDACF,CAAC;EACH,OAAOyC,aAAa;AACtB,CAAC"}
1
+ {"version":3,"names":["deleteKey","generate","getPublicKeyFixed","sign","decode","thumbprint","KEYUTIL","KJUR","RSAKey","X509","v4","uuidv4","IoWalletError","JWK","JWKS","createCryptoContextFor","keytag","getPublicKey","then","jwk","kid","getSignature","value","withEphemeralKey","fn","ephemeralContext","finally","convertBase64DerToPem","certificate","getSigninJwkFromCert","pemCert","x509","readCertPEM","publicKey","crypto","ECDSA","parse","getJWKFromKey","use","getJwkFromCertificateChain","certChain","leafCert","getJwkFromTrustChain","trustChain","signerKid","entityConfigurationJwt","keys","decodedEntityConfigJwt","baseEntityConfig","payload","jwks","push","metadata","Object","values","federationJwk","find","key"],"sourceRoot":"../../../src","sources":["utils/crypto.ts"],"mappings":"AAAA,SACEA,SAAS,EACTC,QAAQ,EACRC,iBAAiB,EACjBC,IAAI,QACC,gCAAgC;AACvC,SAEEC,MAAM,EACNC,UAAU,QACL,6BAA6B;AACpC,SAASC,OAAO,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,QAAQ,WAAW;AACvD,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AAInC,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,GAAG,EAAEC,IAAI,QAAQ,OAAO;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAIC,MAAc,KAAqB;EACxE,MAAMC,YAAYA,CAAA,EAAG;IACnB,OAAOf,iBAAiB,CAACc,MAAM,CAAC,CAACE,IAAI,CAAC,MAAOC,GAAG,KAAM;MACpD,GAAGA,GAAG;MACN;MACA;MACA;MACA;MACAC,GAAG,EAAE,MAAMf,UAAU,CAACc,GAAG;IAC3B,CAAC,CAAC,CAAC;EACL,CAAC;EACD;AACF;AACA;AACA;AACA;AACA;EACE,MAAME,YAAYA,CAACC,KAAa,EAAE;IAChC,OAAOnB,IAAI,CAACmB,KAAK,EAAEN,MAAM,CAAC;EAC5B;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMO,gBAAgB,GAAG,MAC9BC,EAAmD,IACpC;EACf;EACA,MAAMR,MAAM,GAAI,aAAYL,MAAM,CAAC,CAAE,EAAC;EACtC,MAAMV,QAAQ,CAACe,MAAM,CAAC;EACtB,MAAMS,gBAAgB,GAAGV,sBAAsB,CAACC,MAAM,CAAC;EACvD,OAAOQ,EAAE,CAACC,gBAAgB,CAAC,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