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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1012) hide show
  1. package/lib/commonjs/IoWallet.js +5 -3
  2. package/lib/commonjs/IoWallet.js.map +1 -1
  3. package/lib/commonjs/api/index.js +19 -19
  4. package/lib/commonjs/api/index.js.map +1 -1
  5. package/lib/commonjs/client/generated/wallet-provider.js +23 -4
  6. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  7. package/lib/commonjs/client/index.js +9 -11
  8. package/lib/commonjs/client/index.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
  10. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/api/types.js +3 -3
  13. package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
  15. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  17. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
  19. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/common/errors.js +0 -3
  21. package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  23. package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  24. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  25. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  26. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  27. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  28. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +4 -4
  29. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  30. package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  32. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  33. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
  34. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  35. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
  36. package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  37. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
  38. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  39. package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  40. package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
  41. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  42. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
  43. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  44. package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
  45. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +3 -3
  46. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  47. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +30 -30
  48. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  49. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +37 -37
  50. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  51. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  52. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  53. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +32 -28
  54. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  55. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  56. package/lib/commonjs/credential/issuance/v1.3.3/index.js +8 -8
  57. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  58. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +18 -17
  59. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  60. package/lib/commonjs/credential/offer/common/errors.js +0 -6
  61. package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
  62. package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
  63. package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
  64. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js +4 -4
  65. package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  66. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js +4 -4
  67. package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  68. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js +5 -5
  69. package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  70. package/lib/commonjs/credential/offer/v1.3.3/index.js +1 -1
  71. package/lib/commonjs/credential/offer/v1.3.3/index.js.map +1 -1
  72. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
  73. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  74. package/lib/commonjs/credential/presentation/api/types.js +11 -11
  75. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  76. package/lib/commonjs/credential/presentation/common/errors.js +24 -23
  77. package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
  78. package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
  79. package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
  80. package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
  81. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
  82. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
  83. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  84. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  85. package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  86. package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  87. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  88. package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  89. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  90. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  91. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
  92. package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  93. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
  94. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  95. package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
  96. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  97. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
  98. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  99. package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
  100. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  101. package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
  102. package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  103. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  104. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  105. package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  106. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  107. package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  108. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  109. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  110. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -7
  111. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  112. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +24 -16
  113. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  114. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  115. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  116. package/lib/commonjs/credential/presentation/v1.3.3/index.js +5 -5
  117. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -1
  118. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +11 -11
  119. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  120. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js +2 -2
  121. package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  122. package/lib/commonjs/credential/presentation/v1.3.3/types.js +3 -3
  123. package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
  124. package/lib/commonjs/credential/status/api/types.js +6 -6
  125. package/lib/commonjs/credential/status/api/types.js.map +1 -1
  126. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
  127. package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  128. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  129. package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  130. package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
  131. package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
  132. package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
  133. package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
  134. package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
  135. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +4 -4
  136. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  137. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  138. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js +2 -2
  139. package/lib/commonjs/credential/status/v1.3.3/03-get-status.js.map +1 -1
  140. package/lib/commonjs/credential/status/v1.3.3/index.js +3 -3
  141. package/lib/commonjs/credential/status/v1.3.3/index.js.map +1 -1
  142. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
  143. package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  144. package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
  145. package/lib/commonjs/credential/trustmark/v1.3.3/index.js.map +1 -1
  146. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -55
  147. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  148. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  149. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  150. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  151. package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  152. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
  153. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  154. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
  155. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  156. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +35 -35
  157. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  158. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  159. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  160. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  161. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  162. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +1 -1
  163. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  164. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +26 -20
  165. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  166. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +93 -93
  167. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  168. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +8 -8
  169. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  170. package/lib/commonjs/index.js +15 -15
  171. package/lib/commonjs/index.js.map +1 -1
  172. package/lib/commonjs/mdoc/index.js +13 -5
  173. package/lib/commonjs/mdoc/index.js.map +1 -1
  174. package/lib/commonjs/mdoc/utils.js.map +1 -1
  175. package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
  176. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  177. package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
  178. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  179. package/lib/commonjs/sd-jwt/index.js +9 -9
  180. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  181. package/lib/commonjs/sd-jwt/types.js +18 -18
  182. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  183. package/lib/commonjs/sd-jwt/utils.js +3 -3
  184. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  185. package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
  186. package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
  187. package/lib/commonjs/trust/common/build-chain.js +5 -2
  188. package/lib/commonjs/trust/common/build-chain.js.map +1 -1
  189. package/lib/commonjs/trust/common/errors.js +51 -44
  190. package/lib/commonjs/trust/common/errors.js.map +1 -1
  191. package/lib/commonjs/trust/common/types.js +22 -22
  192. package/lib/commonjs/trust/common/types.js.map +1 -1
  193. package/lib/commonjs/trust/common/utils.js +45 -45
  194. package/lib/commonjs/trust/common/utils.js.map +1 -1
  195. package/lib/commonjs/trust/common/verify-chain.js +96 -96
  196. package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
  197. package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
  198. package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
  199. package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
  200. package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
  201. package/lib/commonjs/trust/v1.0.0/index.js +3 -3
  202. package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
  203. package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
  204. package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
  205. package/lib/commonjs/trust/v1.0.0/types.js +46 -46
  206. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  207. package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
  208. package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
  209. package/lib/commonjs/trust/v1.3.3/entities.js +1 -1
  210. package/lib/commonjs/trust/v1.3.3/entities.js.map +1 -1
  211. package/lib/commonjs/trust/v1.3.3/types.js +2 -2
  212. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  213. package/lib/commonjs/utils/auth.js +2 -2
  214. package/lib/commonjs/utils/auth.js.map +1 -1
  215. package/lib/commonjs/utils/callbacks.js +47 -51
  216. package/lib/commonjs/utils/callbacks.js.map +1 -1
  217. package/lib/commonjs/utils/credentials.js +3 -3
  218. package/lib/commonjs/utils/credentials.js.map +1 -1
  219. package/lib/commonjs/utils/crypto.js +23 -25
  220. package/lib/commonjs/utils/crypto.js.map +1 -1
  221. package/lib/commonjs/utils/decoder.js +2 -2
  222. package/lib/commonjs/utils/decoder.js.map +1 -1
  223. package/lib/commonjs/utils/dpop.js +5 -5
  224. package/lib/commonjs/utils/dpop.js.map +1 -1
  225. package/lib/commonjs/utils/error-codes.js +19 -19
  226. package/lib/commonjs/utils/error-codes.js.map +1 -1
  227. package/lib/commonjs/utils/errors.js +51 -50
  228. package/lib/commonjs/utils/errors.js.map +1 -1
  229. package/lib/commonjs/utils/jwk.js +5 -6
  230. package/lib/commonjs/utils/jwk.js.map +1 -1
  231. package/lib/commonjs/utils/logging.js +15 -14
  232. package/lib/commonjs/utils/logging.js.map +1 -1
  233. package/lib/commonjs/utils/mappers.js +6 -8
  234. package/lib/commonjs/utils/mappers.js.map +1 -1
  235. package/lib/commonjs/utils/misc.js +6 -5
  236. package/lib/commonjs/utils/misc.js.map +1 -1
  237. package/lib/commonjs/utils/par.js +28 -28
  238. package/lib/commonjs/utils/par.js.map +1 -1
  239. package/lib/commonjs/utils/pop.js +5 -5
  240. package/lib/commonjs/utils/pop.js.map +1 -1
  241. package/lib/commonjs/utils/string.js.map +1 -1
  242. package/lib/commonjs/utils/x509.js +2 -2
  243. package/lib/commonjs/utils/x509.js.map +1 -1
  244. package/lib/commonjs/utils/zod.js +1 -1
  245. package/lib/commonjs/utils/zod.js.map +1 -1
  246. package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
  247. package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
  248. package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
  249. package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
  250. package/lib/commonjs/wallet-instance/v1.3.3/index.js +2 -2
  251. package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +1 -1
  252. package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
  253. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  254. package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
  255. package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
  256. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  257. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  258. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  259. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  260. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  261. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  262. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
  263. package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  264. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  265. package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  266. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +2 -2
  267. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  268. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  269. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  270. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  271. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  272. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  273. package/lib/commonjs/wallet-unit-attestation/api/types.js +5 -5
  274. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  275. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +4 -4
  276. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  277. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +32 -29
  278. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  279. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +1 -1
  280. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  281. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  282. package/lib/module/IoWallet.js +6 -4
  283. package/lib/module/IoWallet.js.map +1 -1
  284. package/lib/module/api/index.js +19 -19
  285. package/lib/module/api/index.js.map +1 -1
  286. package/lib/module/client/generated/wallet-provider.js +17 -1
  287. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  288. package/lib/module/client/index.js +10 -12
  289. package/lib/module/client/index.js.map +1 -1
  290. package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
  291. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  292. package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
  293. package/lib/module/credential/issuance/api/types.js +3 -3
  294. package/lib/module/credential/issuance/api/types.js.map +1 -1
  295. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
  296. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  297. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
  298. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
  299. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
  300. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  301. package/lib/module/credential/issuance/common/errors.js +0 -3
  302. package/lib/module/credential/issuance/common/errors.js.map +1 -1
  303. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
  304. package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
  305. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
  306. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  307. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
  308. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  309. package/lib/module/credential/issuance/mrtd-pop/index.js +5 -5
  310. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  311. package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
  312. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
  313. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  314. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
  315. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  316. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
  317. package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
  318. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
  319. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  320. package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
  321. package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
  322. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  323. package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
  324. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  325. package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
  326. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +4 -4
  327. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  328. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +31 -31
  329. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  330. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +28 -28
  331. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  332. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +16 -16
  333. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  334. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +34 -30
  335. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  336. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  337. package/lib/module/credential/issuance/v1.3.3/index.js +9 -9
  338. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  339. package/lib/module/credential/issuance/v1.3.3/mappers.js +18 -17
  340. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  341. package/lib/module/credential/offer/common/errors.js +0 -6
  342. package/lib/module/credential/offer/common/errors.js.map +1 -1
  343. package/lib/module/credential/offer/v1.0.0/index.js +3 -3
  344. package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
  345. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js +5 -5
  346. package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -1
  347. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js +3 -3
  348. package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -1
  349. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js +6 -6
  350. package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +1 -1
  351. package/lib/module/credential/offer/v1.3.3/index.js +1 -1
  352. package/lib/module/credential/offer/v1.3.3/index.js.map +1 -1
  353. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
  354. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  355. package/lib/module/credential/presentation/api/types.js +11 -11
  356. package/lib/module/credential/presentation/api/types.js.map +1 -1
  357. package/lib/module/credential/presentation/common/errors.js +21 -21
  358. package/lib/module/credential/presentation/common/errors.js.map +1 -1
  359. package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
  360. package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
  361. package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
  362. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
  363. package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
  364. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  365. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
  366. package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
  367. package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
  368. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
  369. package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
  370. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
  371. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  372. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
  373. package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
  374. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
  375. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  376. package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
  377. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  378. package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
  379. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  380. package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
  381. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  382. package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
  383. package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
  384. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
  385. package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
  386. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js +2 -2
  387. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +1 -1
  388. package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -1
  389. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js +1 -1
  390. package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -1
  391. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js +3 -3
  392. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -1
  393. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +12 -8
  394. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  395. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +25 -17
  396. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  397. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +31 -26
  398. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  399. package/lib/module/credential/presentation/v1.3.3/index.js +6 -6
  400. package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -1
  401. package/lib/module/credential/presentation/v1.3.3/mappers.js +11 -11
  402. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  403. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js +4 -3
  404. package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -1
  405. package/lib/module/credential/presentation/v1.3.3/types.js +3 -3
  406. package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
  407. package/lib/module/credential/status/api/index.js.map +1 -1
  408. package/lib/module/credential/status/api/types.js +6 -6
  409. package/lib/module/credential/status/api/types.js.map +1 -1
  410. package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
  411. package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
  412. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
  413. package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
  414. package/lib/module/credential/status/v1.0.0/index.js +1 -1
  415. package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
  416. package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
  417. package/lib/module/credential/status/v1.0.0/types.js +17 -17
  418. package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
  419. package/lib/module/credential/status/v1.3.3/01-status-list.js +4 -4
  420. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  421. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  422. package/lib/module/credential/status/v1.3.3/03-get-status.js +3 -2
  423. package/lib/module/credential/status/v1.3.3/03-get-status.js.map +1 -1
  424. package/lib/module/credential/status/v1.3.3/index.js +3 -3
  425. package/lib/module/credential/status/v1.3.3/index.js.map +1 -1
  426. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
  427. package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
  428. package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
  429. package/lib/module/credential/trustmark/v1.3.3/index.js.map +1 -1
  430. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +54 -56
  431. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  432. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
  433. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
  434. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
  435. package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
  436. package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
  437. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  438. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
  439. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  440. package/lib/module/credentials-catalogue/v1.0.0/types.js +35 -35
  441. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  442. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +11 -11
  443. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  444. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +1 -1
  445. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  446. package/lib/module/credentials-catalogue/v1.3.3/index.js +1 -1
  447. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  448. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +27 -21
  449. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  450. package/lib/module/credentials-catalogue/v1.3.3/types.js +93 -93
  451. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  452. package/lib/module/credentials-catalogue/v1.3.3/utils.js +8 -8
  453. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  454. package/lib/module/index.js +10 -10
  455. package/lib/module/index.js.map +1 -1
  456. package/lib/module/mdoc/index.js +13 -5
  457. package/lib/module/mdoc/index.js.map +1 -1
  458. package/lib/module/mdoc/utils.js.map +1 -1
  459. package/lib/module/sd-jwt/__test__/types.test.js +9 -9
  460. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  461. package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
  462. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  463. package/lib/module/sd-jwt/index.js +9 -9
  464. package/lib/module/sd-jwt/index.js.map +1 -1
  465. package/lib/module/sd-jwt/types.js +18 -18
  466. package/lib/module/sd-jwt/types.js.map +1 -1
  467. package/lib/module/sd-jwt/utils.js +3 -3
  468. package/lib/module/sd-jwt/utils.js.map +1 -1
  469. package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
  470. package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
  471. package/lib/module/trust/common/build-chain.js +5 -2
  472. package/lib/module/trust/common/build-chain.js.map +1 -1
  473. package/lib/module/trust/common/errors.js +46 -37
  474. package/lib/module/trust/common/errors.js.map +1 -1
  475. package/lib/module/trust/common/types.js +22 -22
  476. package/lib/module/trust/common/types.js.map +1 -1
  477. package/lib/module/trust/common/utils.js +45 -45
  478. package/lib/module/trust/common/utils.js.map +1 -1
  479. package/lib/module/trust/common/verify-chain.js +96 -96
  480. package/lib/module/trust/common/verify-chain.js.map +1 -1
  481. package/lib/module/trust/v1.0.0/build-chain.js +2 -2
  482. package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
  483. package/lib/module/trust/v1.0.0/entities.js +1 -1
  484. package/lib/module/trust/v1.0.0/entities.js.map +1 -1
  485. package/lib/module/trust/v1.0.0/index.js +3 -3
  486. package/lib/module/trust/v1.0.0/index.js.map +1 -1
  487. package/lib/module/trust/v1.0.0/mappers.js +2 -2
  488. package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
  489. package/lib/module/trust/v1.0.0/types.js +46 -46
  490. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  491. package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
  492. package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
  493. package/lib/module/trust/v1.3.3/entities.js +1 -1
  494. package/lib/module/trust/v1.3.3/entities.js.map +1 -1
  495. package/lib/module/trust/v1.3.3/types.js +2 -2
  496. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  497. package/lib/module/utils/auth.js +2 -2
  498. package/lib/module/utils/auth.js.map +1 -1
  499. package/lib/module/utils/callbacks.js +47 -51
  500. package/lib/module/utils/callbacks.js.map +1 -1
  501. package/lib/module/utils/credentials.js +3 -3
  502. package/lib/module/utils/credentials.js.map +1 -1
  503. package/lib/module/utils/crypto.js +23 -25
  504. package/lib/module/utils/crypto.js.map +1 -1
  505. package/lib/module/utils/decoder.js +3 -3
  506. package/lib/module/utils/decoder.js.map +1 -1
  507. package/lib/module/utils/dpop.js +5 -5
  508. package/lib/module/utils/dpop.js.map +1 -1
  509. package/lib/module/utils/error-codes.js +19 -19
  510. package/lib/module/utils/error-codes.js.map +1 -1
  511. package/lib/module/utils/errors.js +47 -46
  512. package/lib/module/utils/errors.js.map +1 -1
  513. package/lib/module/utils/jwk.js +4 -5
  514. package/lib/module/utils/jwk.js.map +1 -1
  515. package/lib/module/utils/logging.js +15 -14
  516. package/lib/module/utils/logging.js.map +1 -1
  517. package/lib/module/utils/mappers.js +6 -8
  518. package/lib/module/utils/mappers.js.map +1 -1
  519. package/lib/module/utils/misc.js +7 -6
  520. package/lib/module/utils/misc.js.map +1 -1
  521. package/lib/module/utils/par.js +28 -28
  522. package/lib/module/utils/par.js.map +1 -1
  523. package/lib/module/utils/pop.js +5 -5
  524. package/lib/module/utils/pop.js.map +1 -1
  525. package/lib/module/utils/string.js.map +1 -1
  526. package/lib/module/utils/x509.js +2 -2
  527. package/lib/module/utils/x509.js.map +1 -1
  528. package/lib/module/utils/zod.js +1 -1
  529. package/lib/module/utils/zod.js.map +1 -1
  530. package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
  531. package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
  532. package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
  533. package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
  534. package/lib/module/wallet-instance/v1.3.3/index.js +3 -3
  535. package/lib/module/wallet-instance/v1.3.3/index.js.map +1 -1
  536. package/lib/module/wallet-instance-attestation/api/types.js +7 -7
  537. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  538. package/lib/module/wallet-instance-attestation/common/types.js +7 -7
  539. package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
  540. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
  541. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  542. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
  543. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  544. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
  545. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  546. package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
  547. package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
  548. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
  549. package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
  550. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +2 -2
  551. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  552. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +20 -20
  553. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  554. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  555. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +1 -1
  556. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -1
  557. package/lib/module/wallet-unit-attestation/api/types.js +5 -5
  558. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  559. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +4 -4
  560. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -1
  561. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +32 -29
  562. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -1
  563. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +1 -1
  564. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -1
  565. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -1
  566. package/lib/typescript/IoWallet.d.ts +4 -4
  567. package/lib/typescript/IoWallet.d.ts.map +1 -1
  568. package/lib/typescript/api/index.d.ts +14 -14
  569. package/lib/typescript/api/index.d.ts.map +1 -1
  570. package/lib/typescript/client/generated/wallet-provider.d.ts +33 -0
  571. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  572. package/lib/typescript/client/index.d.ts +2 -2
  573. package/lib/typescript/client/index.d.ts.map +1 -1
  574. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
  575. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  576. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
  577. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  578. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
  579. package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
  580. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +5 -5
  581. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  582. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
  583. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  584. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
  585. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  586. package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
  587. package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
  588. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
  589. package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
  590. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
  591. package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
  592. package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
  593. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  594. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
  595. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  596. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
  597. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  598. package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
  599. package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
  600. package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
  601. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
  602. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  603. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
  604. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  605. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  606. package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
  607. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  608. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
  609. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  610. package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
  611. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  612. package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
  613. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  614. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
  615. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  616. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  617. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  618. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  619. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +1 -1
  620. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  621. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  622. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +8 -8
  623. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  624. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  625. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  626. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +538 -59
  627. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  628. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
  629. package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
  630. package/lib/typescript/credential/offer/api/index.d.ts +1 -1
  631. package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
  632. package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
  633. package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
  634. package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
  635. package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +1 -1
  636. package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +1 -1
  637. package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +1 -1
  638. package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +1 -1
  639. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
  640. package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
  641. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
  642. package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
  643. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
  644. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  645. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
  646. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  647. package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
  648. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  649. package/lib/typescript/credential/presentation/api/types.d.ts +72 -72
  650. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  651. package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
  652. package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
  653. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
  654. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  655. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
  656. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  657. package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
  658. package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
  659. package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
  660. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  661. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
  662. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
  663. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  664. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  665. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
  666. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  667. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
  668. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  669. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
  670. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  671. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
  672. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  673. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +1 -1
  674. package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +1 -1
  675. package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +1 -1
  676. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +1 -1
  677. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  678. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  679. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  680. package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -1
  681. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +41 -41
  682. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  683. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  684. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +2 -2
  685. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  686. package/lib/typescript/credential/status/api/index.d.ts +3 -3
  687. package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
  688. package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
  689. package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
  690. package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
  691. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  692. package/lib/typescript/credential/status/api/types.d.ts +12 -12
  693. package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
  694. package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
  695. package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
  696. package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
  697. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
  698. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
  699. package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
  700. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  701. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  702. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  703. package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +1 -1
  704. package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +1 -1
  705. package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
  706. package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
  707. package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
  708. package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
  709. package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +1 -1
  710. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +168 -165
  711. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  712. package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
  713. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  714. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
  715. package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
  716. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  717. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
  718. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  719. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +89 -89
  720. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  721. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
  722. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  723. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +158 -157
  724. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  725. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +186 -186
  726. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  727. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  728. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  729. package/lib/typescript/index.d.ts +12 -12
  730. package/lib/typescript/index.d.ts.map +1 -1
  731. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  732. package/lib/typescript/mdoc/utils.d.ts +2 -2
  733. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  734. package/lib/typescript/sd-jwt/index.d.ts +10 -10
  735. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  736. package/lib/typescript/sd-jwt/types.d.ts +15 -15
  737. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  738. package/lib/typescript/sd-jwt/utils.d.ts +1 -1
  739. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  740. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
  741. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  742. package/lib/typescript/trust/api/index.d.ts +11 -11
  743. package/lib/typescript/trust/api/index.d.ts.map +1 -1
  744. package/lib/typescript/trust/common/build-chain.d.ts +3 -3
  745. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  746. package/lib/typescript/trust/common/errors.d.ts +43 -43
  747. package/lib/typescript/trust/common/errors.d.ts.map +1 -1
  748. package/lib/typescript/trust/common/types.d.ts +37 -37
  749. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  750. package/lib/typescript/trust/common/utils.d.ts +17 -17
  751. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  752. package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
  753. package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
  754. package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
  755. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  756. package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
  757. package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
  758. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  759. package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
  760. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  761. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  762. package/lib/typescript/trust/v1.3.3/entities.d.ts +24 -24
  763. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  764. package/lib/typescript/trust/v1.3.3/types.d.ts +206 -206
  765. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  766. package/lib/typescript/utils/auth.d.ts +1 -1
  767. package/lib/typescript/utils/callbacks.d.ts +1 -1
  768. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  769. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  770. package/lib/typescript/utils/crypto.d.ts +1 -1
  771. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  772. package/lib/typescript/utils/decoder.d.ts +1 -1
  773. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  774. package/lib/typescript/utils/dpop.d.ts +3 -3
  775. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  776. package/lib/typescript/utils/error-codes.d.ts +18 -18
  777. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  778. package/lib/typescript/utils/errors.d.ts +49 -51
  779. package/lib/typescript/utils/errors.d.ts.map +1 -1
  780. package/lib/typescript/utils/integrity.d.ts +9 -9
  781. package/lib/typescript/utils/integrity.d.ts.map +1 -1
  782. package/lib/typescript/utils/jwk.d.ts +3 -3
  783. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  784. package/lib/typescript/utils/logging.d.ts +10 -10
  785. package/lib/typescript/utils/logging.d.ts.map +1 -1
  786. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  787. package/lib/typescript/utils/misc.d.ts +2 -2
  788. package/lib/typescript/utils/misc.d.ts.map +1 -1
  789. package/lib/typescript/utils/par.d.ts +13 -13
  790. package/lib/typescript/utils/par.d.ts.map +1 -1
  791. package/lib/typescript/utils/parser.d.ts +2 -2
  792. package/lib/typescript/utils/parser.d.ts.map +1 -1
  793. package/lib/typescript/utils/pop.d.ts +2 -2
  794. package/lib/typescript/utils/pop.d.ts.map +1 -1
  795. package/lib/typescript/utils/string.d.ts.map +1 -1
  796. package/lib/typescript/utils/x509.d.ts.map +1 -1
  797. package/lib/typescript/utils/zod.d.ts +5 -5
  798. package/lib/typescript/utils/zod.d.ts.map +1 -1
  799. package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
  800. package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
  801. package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
  802. package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
  803. package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +1 -1
  804. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
  805. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  806. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
  807. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  808. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
  809. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  810. package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
  811. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  812. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
  813. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
  814. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  815. package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
  816. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  817. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  818. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +10 -10
  819. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +5 -5
  820. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  821. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -1
  822. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +20 -20
  823. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -1
  824. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +10 -10
  825. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  826. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -1
  827. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -1
  828. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +11 -11
  829. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +7 -7
  830. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  831. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -1
  832. package/package.json +15 -12
  833. package/src/IoWallet.ts +11 -9
  834. package/src/api/index.ts +27 -27
  835. package/src/client/generated/wallet-provider.ts +22 -0
  836. package/src/client/index.ts +14 -13
  837. package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
  838. package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
  839. package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
  840. package/src/credential/issuance/api/04-authorize-access.ts +4 -3
  841. package/src/credential/issuance/api/05-obtain-credential.ts +8 -7
  842. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
  843. package/src/credential/issuance/api/IssuerConfig.ts +20 -19
  844. package/src/credential/issuance/api/index.ts +4 -4
  845. package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
  846. package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
  847. package/src/credential/issuance/api/types.ts +9 -8
  848. package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
  849. package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
  850. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
  851. package/src/credential/issuance/common/errors.ts +0 -4
  852. package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
  853. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
  854. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
  855. package/src/credential/issuance/mrtd-pop/index.ts +7 -6
  856. package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
  857. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
  858. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
  859. package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
  860. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
  861. package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
  862. package/src/credential/issuance/v1.0.0/index.ts +11 -10
  863. package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
  864. package/src/credential/issuance/v1.0.0/types.ts +2 -1
  865. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -6
  866. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +33 -30
  867. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +54 -51
  868. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +20 -18
  869. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +49 -43
  870. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +5 -4
  871. package/src/credential/issuance/v1.3.3/index.ts +11 -10
  872. package/src/credential/issuance/v1.3.3/mappers.ts +28 -25
  873. package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
  874. package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
  875. package/src/credential/offer/api/index.ts +2 -2
  876. package/src/credential/offer/common/errors.ts +0 -8
  877. package/src/credential/offer/v1.0.0/index.ts +5 -4
  878. package/src/credential/offer/v1.3.3/01-resolve-credential-offer.ts +5 -3
  879. package/src/credential/offer/v1.3.3/02-extract-grant-details.ts +6 -4
  880. package/src/credential/offer/v1.3.3/03-validate-credential-offer.ts +6 -4
  881. package/src/credential/offer/v1.3.3/index.ts +2 -1
  882. package/src/credential/presentation/api/01-start-flow.ts +4 -4
  883. package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
  884. package/src/credential/presentation/api/03-get-request-object.ts +1 -1
  885. package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
  886. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  887. package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
  888. package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
  889. package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
  890. package/src/credential/presentation/api/index.ts +4 -4
  891. package/src/credential/presentation/api/types.ts +68 -66
  892. package/src/credential/presentation/common/errors.ts +32 -35
  893. package/src/credential/presentation/common/utils/dcql.ts +34 -30
  894. package/src/credential/presentation/common/utils/http.ts +2 -2
  895. package/src/credential/presentation/common/utils/mdoc.ts +17 -15
  896. package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
  897. package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
  898. package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
  899. package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
  900. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
  901. package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
  902. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
  903. package/src/credential/presentation/v1.0.0/index.ts +6 -5
  904. package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
  905. package/src/credential/presentation/v1.0.0/types.ts +11 -10
  906. package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
  907. package/src/credential/presentation/v1.0.0/utils.ts +4 -3
  908. package/src/credential/presentation/v1.3.3/01-start-flow.ts +5 -3
  909. package/src/credential/presentation/v1.3.3/02-evaluate-rp-trust.ts +3 -2
  910. package/src/credential/presentation/v1.3.3/03-get-request-object.ts +4 -2
  911. package/src/credential/presentation/v1.3.3/04-verify-certificate-chain.ts +9 -7
  912. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +24 -14
  913. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +37 -23
  914. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +40 -32
  915. package/src/credential/presentation/v1.3.3/index.ts +7 -6
  916. package/src/credential/presentation/v1.3.3/mappers.ts +13 -12
  917. package/src/credential/presentation/v1.3.3/sdkErrorMapper.ts +9 -7
  918. package/src/credential/presentation/v1.3.3/types.ts +3 -3
  919. package/src/credential/status/api/index.ts +4 -4
  920. package/src/credential/status/api/status-assertion.ts +7 -6
  921. package/src/credential/status/api/status-list.ts +17 -17
  922. package/src/credential/status/api/types.ts +12 -11
  923. package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
  924. package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
  925. package/src/credential/status/v1.0.0/index.ts +2 -1
  926. package/src/credential/status/v1.0.0/mappers.ts +2 -1
  927. package/src/credential/status/v1.0.0/types.ts +17 -16
  928. package/src/credential/status/v1.3.3/01-status-list.ts +9 -7
  929. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +3 -1
  930. package/src/credential/status/v1.3.3/03-get-status.ts +6 -4
  931. package/src/credential/status/v1.3.3/index.ts +3 -2
  932. package/src/credential/trustmark/api/index.ts +11 -11
  933. package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
  934. package/src/credential/trustmark/v1.0.0/index.ts +2 -1
  935. package/src/credential/trustmark/v1.3.3/index.ts +2 -1
  936. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +48 -47
  937. package/src/credentials-catalogue/api/index.ts +14 -12
  938. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
  939. package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
  940. package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
  941. package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
  942. package/src/credentials-catalogue/v1.0.0/types.ts +32 -31
  943. package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +14 -14
  944. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +4 -3
  945. package/src/credentials-catalogue/v1.3.3/index.ts +2 -1
  946. package/src/credentials-catalogue/v1.3.3/mappers.ts +34 -27
  947. package/src/credentials-catalogue/v1.3.3/types.ts +82 -81
  948. package/src/credentials-catalogue/v1.3.3/utils.ts +14 -12
  949. package/src/index.ts +23 -23
  950. package/src/mdoc/index.ts +26 -11
  951. package/src/mdoc/utils.ts +6 -4
  952. package/src/sd-jwt/__test__/types.test.ts +6 -6
  953. package/src/sd-jwt/__test__/utils.test.ts +2 -2
  954. package/src/sd-jwt/index.ts +10 -8
  955. package/src/sd-jwt/types.ts +14 -13
  956. package/src/sd-jwt/utils.ts +10 -9
  957. package/src/trust/api/TrustAnchorConfig.ts +3 -2
  958. package/src/trust/api/index.ts +19 -16
  959. package/src/trust/common/build-chain.ts +28 -18
  960. package/src/trust/common/errors.ts +58 -50
  961. package/src/trust/common/types.ts +22 -21
  962. package/src/trust/common/utils.ts +65 -64
  963. package/src/trust/common/verify-chain.ts +140 -138
  964. package/src/trust/v1.0.0/build-chain.ts +1 -1
  965. package/src/trust/v1.0.0/entities.ts +18 -16
  966. package/src/trust/v1.0.0/index.ts +5 -4
  967. package/src/trust/v1.0.0/mappers.ts +3 -2
  968. package/src/trust/v1.0.0/types.ts +43 -42
  969. package/src/trust/v1.0.0/verify-chain.ts +3 -2
  970. package/src/trust/v1.3.3/entities.ts +6 -4
  971. package/src/trust/v1.3.3/types.ts +10 -9
  972. package/src/utils/auth.ts +1 -1
  973. package/src/utils/callbacks.ts +38 -38
  974. package/src/utils/credentials.ts +7 -5
  975. package/src/utils/crypto.ts +36 -36
  976. package/src/utils/decoder.ts +7 -5
  977. package/src/utils/dpop.ts +5 -6
  978. package/src/utils/error-codes.ts +20 -20
  979. package/src/utils/errors.ts +89 -87
  980. package/src/utils/integrity.ts +11 -11
  981. package/src/utils/jwk.ts +4 -4
  982. package/src/utils/logging.ts +21 -20
  983. package/src/utils/mappers.ts +14 -11
  984. package/src/utils/misc.ts +15 -12
  985. package/src/utils/par.ts +30 -29
  986. package/src/utils/parser.ts +4 -4
  987. package/src/utils/pop.ts +4 -5
  988. package/src/utils/string.ts +2 -2
  989. package/src/utils/x509.ts +5 -4
  990. package/src/utils/zod.ts +4 -4
  991. package/src/wallet-instance/api/index.ts +24 -24
  992. package/src/wallet-instance/common/wallet-instance.ts +8 -7
  993. package/src/wallet-instance/v1.0.0/index.ts +5 -4
  994. package/src/wallet-instance/v1.3.3/index.ts +5 -4
  995. package/src/wallet-instance-attestation/api/index.ts +18 -17
  996. package/src/wallet-instance-attestation/api/types.ts +12 -11
  997. package/src/wallet-instance-attestation/common/types.ts +7 -6
  998. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
  999. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
  1000. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
  1001. package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
  1002. package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
  1003. package/src/wallet-instance-attestation/v1.3.3/index.ts +4 -3
  1004. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +25 -23
  1005. package/src/wallet-instance-attestation/v1.3.3/types.ts +3 -2
  1006. package/src/wallet-instance-attestation/v1.3.3/utils.ts +3 -2
  1007. package/src/wallet-unit-attestation/api/index.ts +23 -23
  1008. package/src/wallet-unit-attestation/api/types.ts +11 -10
  1009. package/src/wallet-unit-attestation/v1.3.3/index.ts +6 -5
  1010. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +42 -34
  1011. package/src/wallet-unit-attestation/v1.3.3/types.ts +3 -2
  1012. package/src/wallet-unit-attestation/v1.3.3/utils.ts +1 -0
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.mapToRequestObject = exports.mapToIssuerConfig = void 0;
7
- var _misc = require("../../../utils/misc");
8
7
  var _mappers = require("../../../utils/mappers");
8
+ var _misc = require("../../../utils/misc");
9
9
  var _IssuerConfig = require("../api/IssuerConfig");
10
10
  const mapCredentialConfigurationsSupported = oidIssuer => Object.entries(oidIssuer.credential_configurations_supported).reduce((acc, _ref) => {
11
11
  var _config$credential_me;
@@ -15,25 +15,26 @@ const mapCredentialConfigurationsSupported = oidIssuer => Object.entries(oidIssu
15
15
  format: config.format,
16
16
  vct: config.vct
17
17
  } : {
18
- format: config.format,
19
- doctype: config.doctype
18
+ doctype: config.doctype,
19
+ format: config.format
20
20
  }),
21
- scope: config.scope,
22
- display: config.credential_metadata.display,
23
21
  claims: ((_config$credential_me = config.credential_metadata.claims) === null || _config$credential_me === void 0 ? void 0 : _config$credential_me.map(claim => ({
24
- path: claim.path,
25
- display: claim.display
26
- }))) ?? []
22
+ display: claim.display,
23
+ path: claim.path
24
+ }))) ?? [],
25
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- value validated as defined above
26
+ display: config.credential_metadata.display,
27
+ scope: config.scope
27
28
  };
28
29
  return acc;
29
30
  }, {});
30
31
  const mapToIssuerConfig = (0, _mappers.createMapper)(x => {
31
32
  var _x$authorization_serv, _openid_credential_is;
32
33
  const {
34
+ federation_entity,
33
35
  oauth_authorization_server,
34
36
  openid_credential_issuer,
35
- openid_credential_verifier,
36
- federation_entity
37
+ openid_credential_verifier
37
38
  } = x.metadata;
38
39
 
39
40
  // The Issuer's own `oauth_authorization_server` always describes the Issuer
@@ -46,17 +47,17 @@ const mapToIssuerConfig = (0, _mappers.createMapper)(x => {
46
47
  (0, _misc.assert)(openid_credential_issuer, "openid_credential_issuer is required in Issuer metadata");
47
48
  return {
48
49
  authorization_endpoint: oauthAuthorizationServer.authorization_endpoint,
49
- credential_endpoint: openid_credential_issuer.credential_endpoint,
50
- credential_issuer: openid_credential_issuer.credential_issuer,
51
50
  authorization_servers: openid_credential_issuer.authorization_servers,
52
51
  credential_configurations_supported: mapCredentialConfigurationsSupported(openid_credential_issuer),
52
+ credential_endpoint: openid_credential_issuer.credential_endpoint,
53
+ credential_issuance_batch_size: (_openid_credential_is = openid_credential_issuer.batch_credential_issuance) === null || _openid_credential_is === void 0 ? void 0 : _openid_credential_is.batch_size,
54
+ credential_issuer: openid_credential_issuer.credential_issuer,
55
+ encrypted_response_enc_values_supported: openid_credential_verifier === null || openid_credential_verifier === void 0 ? void 0 : openid_credential_verifier.encrypted_response_enc_values_supported,
56
+ federation_entity: federation_entity ?? {},
53
57
  keys: [...openid_credential_issuer.jwks.keys, ...oauthAuthorizationServer.jwks.keys],
54
- pushed_authorization_request_endpoint: oauthAuthorizationServer.pushed_authorization_request_endpoint,
55
- token_endpoint: oauthAuthorizationServer.token_endpoint,
56
58
  nonce_endpoint: openid_credential_issuer.nonce_endpoint ?? "",
57
- federation_entity: federation_entity ?? {},
58
- credential_issuance_batch_size: (_openid_credential_is = openid_credential_issuer.batch_credential_issuance) === null || _openid_credential_is === void 0 ? void 0 : _openid_credential_is.batch_size,
59
- encrypted_response_enc_values_supported: openid_credential_verifier === null || openid_credential_verifier === void 0 ? void 0 : openid_credential_verifier.encrypted_response_enc_values_supported
59
+ pushed_authorization_request_endpoint: oauthAuthorizationServer.pushed_authorization_request_endpoint,
60
+ token_endpoint: oauthAuthorizationServer.token_endpoint
60
61
  };
61
62
  }, {
62
63
  outputSchema: _IssuerConfig.IssuerConfig
@@ -1 +1 @@
1
- {"version":3,"names":["_misc","require","_mappers","_IssuerConfig","mapCredentialConfigurationsSupported","oidIssuer","Object","entries","credential_configurations_supported","reduce","acc","_ref","_config$credential_me","key","config","format","vct","doctype","scope","display","credential_metadata","claims","map","claim","path","mapToIssuerConfig","createMapper","x","_x$authorization_serv","_openid_credential_is","oauth_authorization_server","openid_credential_issuer","openid_credential_verifier","federation_entity","metadata","oauthAuthorizationServer","authorization_server_federation_claims","assert","authorization_endpoint","credential_endpoint","credential_issuer","authorization_servers","keys","jwks","pushed_authorization_request_endpoint","token_endpoint","nonce_endpoint","credential_issuance_batch_size","batch_credential_issuance","batch_size","encrypted_response_enc_values_supported","outputSchema","IssuerConfig","exports","mapToRequestObject","_ref2","header","payload","iss","trust_chain","x5c"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/mappers.ts"],"mappings":";;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGA,IAAAE,aAAA,GAAAF,OAAA;AAOA,MAAMG,oCAAoC,GACxCC,SAA8C,IAE9CC,MAAM,CAACC,OAAO,CAACF,SAAS,CAACG,mCAAmC,CAAC,CAACC,MAAM,CAClE,CAACC,GAAG,EAAAC,IAAA,KAAoB;EAAA,IAAAC,qBAAA;EAAA,IAAlB,CAACC,GAAG,EAAEC,MAAM,CAAC,GAAAH,IAAA;EACjBD,GAAG,CAACG,GAAG,CAAC,GAAG;IACT,IAAIC,MAAM,CAACC,MAAM,KAAK,WAAW,GAC7B;MAAEA,MAAM,EAAED,MAAM,CAACC,MAAM;MAAEC,GAAG,EAAEF,MAAM,CAACE;IAAI,CAAC,GAC1C;MAAED,MAAM,EAAED,MAAM,CAACC,MAAM;MAAEE,OAAO,EAAEH,MAAM,CAACG;IAAQ,CAAC,CAAC;IACvDC,KAAK,EAAEJ,MAAM,CAACI,KAAK;IACnBC,OAAO,EAAEL,MAAM,CAACM,mBAAmB,CAACD,OAAQ;IAC5CE,MAAM,EACJ,EAAAT,qBAAA,GAAAE,MAAM,CAACM,mBAAmB,CAACC,MAAM,cAAAT,qBAAA,uBAAjCA,qBAAA,CAAmCU,GAAG,CAAEC,KAAK,KAAM;MACjDC,IAAI,EAAED,KAAK,CAACC,IAAI;MAChBL,OAAO,EAAEI,KAAK,CAACJ;IACjB,CAAC,CAAC,CAAC,KAAI;EACX,CAAC;EACD,OAAOT,GAAG;AACZ,CAAC,EACD,CAAC,CACH,CAAC;AAEI,MAAMe,iBAAiB,GAAG,IAAAC,qBAAY,EAI1CC,CAAC,IAAK;EAAA,IAAAC,qBAAA,EAAAC,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AC,CAAC;AACjC,CAAC;AAACC,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA;AAEK,MAAM6B,kBAAkB,GAAG,IAAA5B,qBAAY,EAG5C6B,KAAA;EAAA,IAAC;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAAF,KAAA;EAAA,OAAM;IAC1B,GAAGE,OAAO;IACVC,GAAG,EAAED,OAAO,CAACC,GAAG,IAAI,EAAE;IACtBC,WAAW,EAAEH,MAAM,CAACG,WAAW;IAC/BC,GAAG,EAAEJ,MAAM,CAACI;EACd,CAAC;AAAA,CAAC,CAAC;AAACP,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_mappers","require","_misc","_IssuerConfig","mapCredentialConfigurationsSupported","oidIssuer","Object","entries","credential_configurations_supported","reduce","acc","_ref","_config$credential_me","key","config","format","vct","doctype","claims","credential_metadata","map","claim","display","path","scope","mapToIssuerConfig","createMapper","x","_x$authorization_serv","_openid_credential_is","federation_entity","oauth_authorization_server","openid_credential_issuer","openid_credential_verifier","metadata","oauthAuthorizationServer","authorization_server_federation_claims","assert","authorization_endpoint","authorization_servers","credential_endpoint","credential_issuance_batch_size","batch_credential_issuance","batch_size","credential_issuer","encrypted_response_enc_values_supported","keys","jwks","nonce_endpoint","pushed_authorization_request_endpoint","token_endpoint","outputSchema","IssuerConfig","exports","mapToRequestObject","_ref2","header","payload","iss","trust_chain","x5c"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.3.3/mappers.ts"],"mappings":";;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAOA,MAAMG,oCAAoC,GACxCC,SAA8C,IAE9CC,MAAM,CAACC,OAAO,CAACF,SAAS,CAACG,mCAAmC,CAAC,CAACC,MAAM,CAClE,CAACC,GAAG,EAAAC,IAAA,KAAoB;EAAA,IAAAC,qBAAA;EAAA,IAAlB,CAACC,GAAG,E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exports.InvalidCredentialOfferError = void 0;
7
7
  var _errors = require("../../../utils/errors");
8
8
  class InvalidCredentialOfferError extends _errors.IoWalletError {
9
9
  code = "ERR_INVALID_CREDENTIAL_OFFER";
10
- constructor(message) {
11
- super(message);
12
- }
13
10
  }
14
11
  exports.InvalidCredentialOfferError = InvalidCredentialOfferError;
15
12
  class InvalidQRCodeError extends _errors.IoWalletError {
16
13
  code = "ERR_INVALID_QR_CODE";
17
- constructor(message) {
18
- super(message);
19
- }
20
14
  }
21
15
  exports.InvalidQRCodeError = InvalidQRCodeError;
22
16
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_errors","require","InvalidCredentialOfferError","IoWalletError","code","constructor","message","exports","InvalidQRCodeError"],"sourceRoot":"../../../../../src","sources":["credential/offer/common/errors.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,2BAA2B,SAASC,qBAAa,CAAC;EAC7DC,IAAI,GAAG,8BAA8B;EAErCC,WAAWA,CAACC,OAAgB,EAAE;IAC5B,KAAK,CAACA,OAAO,CAAC;EAChB;AACF;AAACC,OAAA,CAAAL,2BAAA,GAAAA,2BAAA;AAEM,MAAMM,kBAAkB,SAASL,qBAAa,CAAC;EACpDC,IAAI,GAAG,qBAAqB;EAE5BC,WAAWA,CAACC,OAAgB,EAAE;IAC5B,KAAK,CAACA,OAAO,CAAC;EAChB;AACF;AAACC,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_errors","require","InvalidCredentialOfferError","IoWalletError","code","exports","InvalidQRCodeError"],"sourceRoot":"../../../../../src","sources":["credential/offer/common/errors.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,2BAA2B,SAASC,qBAAa,CAAC;EAC7DC,IAAI,GAAG,8BAA8B;AACvC;AAACC,OAAA,CAAAH,2BAAA,GAAAA,2BAAA;AAEM,MAAMI,kBAAkB,SAASH,qBAAa,CAAC;EACpDC,IAAI,GAAG,qBAAqB;AAC9B;AAACC,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Offer = void 0;
7
7
  var _errors = require("../../../utils/errors");
8
8
  const Offer = {
9
- async resolveCredentialOffer() {
10
- throw new _errors.UnimplementedFeatureError("resolveCredentialOffer", "1.0.0");
11
- },
12
9
  extractGrantDetails() {
13
10
  throw new _errors.UnimplementedFeatureError("extractGrantDetails", "1.0.0");
14
11
  },
12
+ async resolveCredentialOffer() {
13
+ throw new _errors.UnimplementedFeatureError("resolveCredentialOffer", "1.0.0");
14
+ },
15
15
  validateCredentialOffer() {
16
16
  throw new _errors.UnimplementedFeatureError("validateCredentialOffer", "1.0.0");
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_errors","require","Offer","resolveCredentialOffer","UnimplementedFeatureError","extractGrantDetails","validateCredentialOffer","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.0.0/index.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGO,MAAMC,KAAe,GAAG;EAC7B,MAAMC,sBAAsBA,CAAA,EAAG;IAC7B,MAAM,IAAIC,iCAAyB,CAAC,wBAAwB,EAAE,OAAO,CAAC;EACxE,CAAC;EACDC,mBAAmBA,CAAA,EAAG;IACpB,MAAM,IAAID,iCAAyB,CAAC,qBAAqB,EAAE,OAAO,CAAC;EACrE,CAAC;EACDE,uBAAuBA,CAAA,EAAG;IACxB,MAAM,IAAIF,iCAAyB,CAAC,yBAAyB,EAAE,OAAO,CAAC;EACzE;AACF,CAAC;AAACG,OAAA,CAAAL,KAAA,GAAAA,KAAA"}
1
+ {"version":3,"names":["_errors","require","Offer","extractGrantDetails","UnimplementedFeatureError","resolveCredentialOffer","validateCredentialOffer","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.0.0/index.ts"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,KAAe,GAAG;EAC7BC,mBAAmBA,CAAA,EAAG;IACpB,MAAM,IAAIC,iCAAyB,CAAC,qBAAqB,EAAE,OAAO,CAAC;EACrE,CAAC;EACD,MAAMC,sBAAsBA,CAAA,EAAG;IAC7B,MAAM,IAAID,iCAAyB,CAAC,wBAAwB,EAAE,OAAO,CAAC;EACxE,CAAC;EACDE,uBAAuBA,CAAA,EAAG;IACxB,MAAM,IAAIF,iCAAyB,CAAC,yBAAyB,EAAE,OAAO,CAAC;EACzE;AACF,CAAC;AAACG,OAAA,CAAAL,KAAA,GAAAA,KAAA"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.resolveCredentialOffer = void 0;
7
7
  var _ioWalletOid4vci = require("@pagopa/io-wallet-oid4vci");
8
- var _errors = require("../common/errors");
9
8
  var _config = require("../../../utils/config");
9
+ var _errors = require("../common/errors");
10
10
  /**
11
11
  * v1.3.3 implementation — first step of the User Request Flow
12
12
  * (IT-Wallet spec, Section 12.1.2).
@@ -31,11 +31,11 @@ const resolveCredentialOffer = async function (credentialOffer) {
31
31
 
32
32
  // Parse the URI and fetch the offer when transmitted by reference
33
33
  const resolved = await (0, _ioWalletOid4vci.resolveCredentialOffer)({
34
- config: _config.sdkConfigV1_3,
35
- credentialOffer,
36
34
  callbacks: {
37
35
  fetch: fetchFn
38
- }
36
+ },
37
+ config: _config.sdkConfigV1_3,
38
+ credentialOffer
39
39
  }).catch(e => {
40
40
  if (e instanceof _ioWalletOid4vci.CredentialOfferError) {
41
41
  throw new _errors.InvalidQRCodeError(e.message);
@@ -1 +1 @@
1
- {"version":3,"names":["_ioWalletOid4vci","require","_errors","_config","resolveCredentialOffer","credentialOffer","callbacks","arguments","length","undefined","fetch","fetchFn","resolved","sdkResolveCredentialOffer","config","sdkConfigV1_3","catch","e","CredentialOfferError","InvalidQRCodeError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/01-resolve-credential-offer.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,sBAA0D,GACrE,eAAAA,CAAOC,eAAe,EAAqB;EAAA,IAAnBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACpC,MAAM;IAAEG,KAAK,EAAEC,OAAO,GAAGD;EAAM,CAAC,GAAGJ,SAAS;;EAE5C;EACA,MAAMM,QAAQ,GAAG,MAAM,IAAAC,uCAAyB,EAAC;IAC/CC,MAAM,EAAEC,qBAAa;IACrBV,eAAe;IACfC,SAAS,EAAE;MAAEI,KAAK,EAAEC;IAAQ;EAC9B,CAAC,CAAC,CAACK,KAAK,CAAEC,CAAU,IAAK;IACvB,IAAIA,CAAC,YAAYC,qCAAoB,EAAE;MACrC,MAAM,IAAIC,0BAAkB,CAACF,CAAC,CAACG,OAAO,CAAC;IACzC;IACA,MAAMH,CAAC;EACT,CAAC,CAAC;EAEF,OAAOL,QAAQ;AACjB,CAAC;AAACS,OAAA,CAAAjB,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"names":["_ioWalletOid4vci","require","_config","_errors","resolveCredentialOffer","credentialOffer","callbacks","arguments","length","undefined","fetch","fetchFn","resolved","sdkResolveCredentialOffer","config","sdkConfigV1_3","catch","e","CredentialOfferError","InvalidQRCodeError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/01-resolve-credential-offer.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,sBAA0D,GACrE,eAAAA,CAAOC,eAAe,EAAqB;EAAA,IAAnBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACpC,MAAM;IAAEG,KAAK,EAAEC,OAAO,GAAGD;EAAM,CAAC,GAAGJ,SAAS;;EAE5C;EACA,MAAMM,QAAQ,GAAG,MAAM,IAAAC,uCAAyB,EAAC;IAC/CP,SAAS,EAAE;MAAEI,KAAK,EAAEC;IAAQ,CAAC;IAC7BG,MAAM,EAAEC,qBAAa;IACrBV;EACF,CAAC,CAAC,CAACW,KAAK,CAAEC,CAAU,IAAK;IACvB,IAAIA,CAAC,YAAYC,qCAAoB,EAAE;MACrC,MAAM,IAAIC,0BAAkB,CAACF,CAAC,CAACG,OAAO,CAAC;IACzC;IACA,MAAMH,CAAC;EACT,CAAC,CAAC;EAEF,OAAOL,QAAQ;AACjB,CAAC;AAACS,OAAA,CAAAjB,sBAAA,GAAAA,sBAAA"}
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.extractGrantDetails = void 0;
7
7
  var _ioWalletOid4vci = require("@pagopa/io-wallet-oid4vci");
8
- var _errors = require("../common/errors");
9
- var _errors2 = require("../../../utils/errors");
10
8
  var _config = require("../../../utils/config");
9
+ var _errors = require("../../../utils/errors");
10
+ var _errors2 = require("../common/errors");
11
11
  /**
12
12
  * v1.3.3 implementation — second and final step of the User Request Flow
13
13
  * (IT-Wallet spec, Section 12.1.2).
@@ -21,9 +21,9 @@ var _config = require("../../../utils/config");
21
21
  * Delegates directly to the SDK's {@link sdkExtractGrantDetails} — no local
22
22
  * mapping is needed because the SDK already returns `ExtractGrantDetailsResult`.
23
23
  */
24
- const extractGrantDetails = offer => (0, _errors2.withMappedErrors)(() => (0, _ioWalletOid4vci.extractGrantDetails)({
24
+ const extractGrantDetails = offer => (0, _errors.withMappedErrors)(() => (0, _ioWalletOid4vci.extractGrantDetails)({
25
25
  config: _config.sdkConfigV1_3,
26
26
  credentialOffer: offer
27
- }), _ioWalletOid4vci.CredentialOfferError, e => new _errors.InvalidCredentialOfferError(e.message));
27
+ }), _ioWalletOid4vci.CredentialOfferError, e => new _errors2.InvalidCredentialOfferError(e.message));
28
28
  exports.extractGrantDetails = extractGrantDetails;
29
29
  //# sourceMappingURL=02-extract-grant-details.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ioWalletOid4vci","require","_errors","_errors2","_config","extractGrantDetails","offer","withMappedErrors","sdkExtractGrantDetails","config","sdkConfigV1_3","credentialOffer","CredentialOfferError","e","InvalidCredentialOfferError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/02-extract-grant-details.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,mBAAoD,GAAIC,KAAK,IACxE,IAAAC,yBAAgB,EACd,MACE,IAAAC,oCAAsB,EAAC;EACrBC,MAAM,EAAEC,qBAAa;EACrBC,eAAe,EAAEL;AACnB,CAAC,CAAC,EACJM,qCAAoB,EACnBC,CAAC,IAAK,IAAIC,mCAA2B,CAACD,CAAC,CAACE,OAAO,CAClD,CAAC;AAACC,OAAA,CAAAX,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["_ioWalletOid4vci","require","_config","_errors","_errors2","extractGrantDetails","offer","withMappedErrors","sdkExtractGrantDetails","config","sdkConfigV1_3","credentialOffer","CredentialOfferError","e","InvalidCredentialOfferError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/02-extract-grant-details.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,mBAAoD,GAAIC,KAAK,IACxE,IAAAC,wBAAgB,EACd,MACE,IAAAC,oCAAsB,EAAC;EACrBC,MAAM,EAAEC,qBAAa;EACrBC,eAAe,EAAEL;AACnB,CAAC,CAAC,EACJM,qCAAoB,EACnBC,CAAC,IAAK,IAAIC,oCAA2B,CAACD,CAAC,CAACE,OAAO,CAClD,CAAC;AAACC,OAAA,CAAAX,mBAAA,GAAAA,mBAAA"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.validateCredentialOffer = void 0;
7
7
  var _ioWalletOid4vci = require("@pagopa/io-wallet-oid4vci");
8
- var _errors = require("../common/errors");
9
8
  var _config = require("../../../utils/config");
9
+ var _errors = require("../common/errors");
10
10
  /**
11
11
  * v1.3.3 implementation — validates a resolved Credential Offer against the
12
12
  * Credential Issuer metadata (IT-Wallet spec, Section 12.1.2).
@@ -21,13 +21,13 @@ var _config = require("../../../utils/config");
21
21
  */
22
22
  const validateCredentialOffer = async _ref => {
23
23
  let {
24
- offer,
25
- credentialIssuerMetadata
24
+ credentialIssuerMetadata,
25
+ offer
26
26
  } = _ref;
27
27
  await (0, _ioWalletOid4vci.validateCredentialOffer)({
28
28
  config: _config.sdkConfigV1_3,
29
- credentialOffer: offer,
30
- credentialIssuerMetadata
29
+ credentialIssuerMetadata,
30
+ credentialOffer: offer
31
31
  }).catch(e => {
32
32
  if (e instanceof _ioWalletOid4vci.CredentialOfferError) {
33
33
  throw new _errors.InvalidCredentialOfferError(e.message);
@@ -1 +1 @@
1
- {"version":3,"names":["_ioWalletOid4vci","require","_errors","_config","validateCredentialOffer","_ref","offer","credentialIssuerMetadata","sdkValidateCredentialOffer","config","sdkConfigV1_3","credentialOffer","catch","e","CredentialOfferError","InvalidCredentialOfferError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/03-validate-credential-offer.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,uBAA4D,GACvE,MAAAC,IAAA,IAA+C;EAAA,IAAxC;IAAEC,KAAK;IAAEC;EAAyB,CAAC,GAAAF,IAAA;EACxC,MAAM,IAAAG,wCAA0B,EAAC;IAC/BC,MAAM,EAAEC,qBAAa;IACrBC,eAAe,EAAEL,KAAK;IACtBC;EACF,CAAC,CAAC,CAACK,KAAK,CAAEC,CAAU,IAAK;IACvB,IAAIA,CAAC,YAAYC,qCAAoB,EAAE;MACrC,MAAM,IAAIC,mCAA2B,CAACF,CAAC,CAACG,OAAO,CAAC;IAClD;IACA,MAAMH,CAAC;EACT,CAAC,CAAC;AACJ,CAAC;AAACI,OAAA,CAAAb,uBAAA,GAAAA,uBAAA"}
1
+ {"version":3,"names":["_ioWalletOid4vci","require","_config","_errors","validateCredentialOffer","_ref","credentialIssuerMetadata","offer","sdkValidateCredentialOffer","config","sdkConfigV1_3","credentialOffer","catch","e","CredentialOfferError","InvalidCredentialOfferError","message","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/03-validate-credential-offer.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,uBAA4D,GACvE,MAAAC,IAAA,IAA+C;EAAA,IAAxC;IAAEC,wBAAwB;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACxC,MAAM,IAAAG,wCAA0B,EAAC;IAC/BC,MAAM,EAAEC,qBAAa;IACrBJ,wBAAwB;IACxBK,eAAe,EAAEJ;EACnB,CAAC,CAAC,CAACK,KAAK,CAAEC,CAAU,IAAK;IACvB,IAAIA,CAAC,YAAYC,qCAAoB,EAAE;MACrC,MAAM,IAAIC,mCAA2B,CAACF,CAAC,CAACG,OAAO,CAAC;IAClD;IACA,MAAMH,CAAC;EACT,CAAC,CAAC;AACJ,CAAC;AAACI,OAAA,CAAAb,uBAAA,GAAAA,uBAAA"}
@@ -8,8 +8,8 @@ var _resolveCredentialOffer = require("./01-resolve-credential-offer");
8
8
  var _extractGrantDetails = require("./02-extract-grant-details");
9
9
  var _validateCredentialOffer = require("./03-validate-credential-offer");
10
10
  const Offer = {
11
- resolveCredentialOffer: _resolveCredentialOffer.resolveCredentialOffer,
12
11
  extractGrantDetails: _extractGrantDetails.extractGrantDetails,
12
+ resolveCredentialOffer: _resolveCredentialOffer.resolveCredentialOffer,
13
13
  validateCredentialOffer: _validateCredentialOffer.validateCredentialOffer
14
14
  };
15
15
  exports.Offer = Offer;
@@ -1 +1 @@
1
- {"version":3,"names":["_resolveCredentialOffer","require","_extractGrantDetails","_validateCredentialOffer","Offer","resolveCredentialOffer","extractGrantDetails","validateCredentialOffer","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/index.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEO,MAAMG,KAAe,GAAG;EAC7BC,sBAAsB,EAAtBA,8CAAsB;EACtBC,mBAAmB,EAAnBA,wCAAmB;EACnBC,uBAAuB,EAAvBA;AACF,CAAC;AAACC,OAAA,CAAAJ,KAAA,GAAAA,KAAA"}
1
+ {"version":3,"names":["_resolveCredentialOffer","require","_extractGrantDetails","_validateCredentialOffer","Offer","extractGrantDetails","resolveCredentialOffer","validateCredentialOffer","exports"],"sourceRoot":"../../../../../src","sources":["credential/offer/v1.3.3/index.ts"],"mappings":";;;;;;AAEA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEO,MAAMG,KAAe,GAAG;EAC7BC,mBAAmB,EAAnBA,wCAAmB;EACnBC,sBAAsB,EAAtBA,8CAAsB;EACtBC,uBAAuB,EAAvBA;AACF,CAAC;AAACC,OAAA,CAAAJ,KAAA,GAAAA,KAAA"}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.RelyingPartyConfig = void 0;
7
- var z = _interopRequireWildcard(require("zod"));
8
7
  var _ioWalletOidFederation = require("@pagopa/io-wallet-oid-federation");
8
+ var z = _interopRequireWildcard(require("zod"));
9
9
  var _types = require("../../../trust/common/types");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -14,18 +14,18 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
14
14
  */
15
15
 
16
16
  const RelyingPartyConfig = z.object({
17
- subject: z.string().optional(),
18
- jwks: z.object({
19
- keys: z.array(_ioWalletOidFederation.jsonWebKeySchema)
20
- }),
21
- // UI (from federation_entity)
22
- federation_entity: _types.FederationEntityMetadata,
23
17
  /** @deprecated JARM legacy (v1.0 only) */
24
18
  authorization_encrypted_response_alg: z.string().optional(),
25
19
  /** @deprecated JARM legacy (v1.0 only) */
26
20
  authorization_encrypted_response_enc: z.string().optional(),
27
21
  /** @since 1.3.3 */
28
- encrypted_response_enc_values_supported: z.array(z.string()).min(1).optional()
22
+ encrypted_response_enc_values_supported: z.array(z.string()).min(1).optional(),
23
+ // UI (from federation_entity)
24
+ federation_entity: _types.FederationEntityMetadata,
25
+ jwks: z.object({
26
+ keys: z.array(_ioWalletOidFederation.jsonWebKeySchema)
27
+ }),
28
+ subject: z.string().optional()
29
29
  });
30
30
  exports.RelyingPartyConfig = RelyingPartyConfig;
31
31
  //# sourceMappingURL=RelyingPartyConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["z","_interopRequireWildcard","require","_ioWalletOidFederation","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RelyingPartyConfig","object","subject","string","optional","jwks","keys","array","jsonWebKeySchema","federation_entity","FederationEntityMetadata","authorization_encrypted_response_alg","authorization_encrypted_response_enc","encrypted_response_enc_values_supported","min","exports"],"sourceRoot":"../../../../../src","sources":["credential/presentation/api/RelyingPartyConfig.ts"],"mappings":";;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAuE,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAA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M,CAAC;IACbK,IAAI,EAAEjC,CAAC,CAACkC,KAAK,CAACC,uCAAgB;EAChC,CAAC,CAAC;EACF;EACAC,iBAAiB,EAAEC,+BAAwB;EAC3C;EACAC,oCAAoC,EAAEtC,CAAC,CAAC8B,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC3D;EACAQ,oCAAoC,EAAEvC,CAAC,CAAC8B,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC3D;EACAS,uCAAuC,EAAExC,CAAC,CACvCkC,KAAK,CAAClC,CAAC,CAAC8B,MAAM,CAAC,CAAC,CAAC,CACjBW,GAAG,CAAC,CAAC,CAAC,CACNV,QAAQ,CAAC;AACd,CAAC,CAAC;AAACW,OAAA,CAAAf,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_ioWalletOidFederation","require","z","_interopRequireWildcard","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RelyingPartyConfig","object","authorization_encrypted_response_alg","string","optional","authorization_encrypted_response_enc","encrypted_response_enc_values_supported","array","min","federation_entity","FederationEntityMetadata","jwks","keys","jsonWebKeySchema","subject","exports"],"sourceRoot":"../../../../../src","sources":["credential/presentation/api/RelyingPartyConfig.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,CAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAAuE,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,W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AAC,CAAC,CACNJ,QAAQ,CAAC,CAAC;EACb;EACAK,iBAAiB,EAAEC,+BAAwB;EAC3CC,IAAI,EAAEpC,CAAC,CAAC0B,MAAM,CAAC;IACbW,IAAI,EAAErC,CAAC,CAACgC,KAAK,CAACM,uCAAgB;EAChC,CAAC,CAAC;EACFC,OAAO,EAAEvC,CAAC,CAAC4B,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC;AAC/B,CAAC,CAAC;AAACW,OAAA,CAAAf,kBAAA,GAAAA,kBAAA"}
@@ -17,11 +17,11 @@ const PresentationParams = z.object({
17
17
  exports.PresentationParams = PresentationParams;
18
18
  const WalletMetadata = z.object({
19
19
  authorization_endpoint: z.string().url(),
20
- client_id_schemes_supported: z.array(z.string()).optional(),
21
20
  client_id_prefixes_supported: z.array(z.string()).optional(),
22
- response_types_supported: z.array(z.string()).optional(),
23
- response_modes_supported: z.array(z.string()).optional(),
21
+ client_id_schemes_supported: z.array(z.string()).optional(),
24
22
  request_object_signing_alg_values_supported: z.array(z.string()).optional(),
23
+ response_modes_supported: z.array(z.string()).optional(),
24
+ response_types_supported: z.array(z.string()).optional(),
25
25
  vp_formats_supported: z.record(z.string(), z.object({
26
26
  "sd-jwt_alg_values": z.array(z.string()).optional() // alg_values_supported?
27
27
  }))
@@ -46,29 +46,29 @@ exports.RequestObjectWalletCapabilities = RequestObjectWalletCapabilities;
46
46
  const ErrorResponse = z.enum(["invalid_request_object", "invalid_request_uri", "vp_formats_not_supported", "invalid_request", "access_denied", "invalid_client"]);
47
47
 
48
48
  /**
49
- * A object that associate the information needed to multiple remote presentation
50
- * Used with DCQL queries
49
+ * A pair that associate a key tag with a credential, used in DCQL queries
51
50
  */
52
51
 
53
52
  /**
54
- * Common Request Object type, decoupled from specific IT-Wallet versions
53
+ * A pair that associate a tokenized Verified Credential with the claims presented or requested to present.
55
54
  */
56
55
 
57
56
  /**
58
- * A object that associate the information needed to multiple remote presentation
57
+ * An object that defines claims to disclose. Nested claims must use a nested structure.
58
+ * @example { name: true, address: { country: true } }
59
59
  */
60
60
 
61
61
  /**
62
- * A pair that associate a key tag with a credential, used in DCQL queries
62
+ * A object that associate the information needed to multiple remote presentation
63
63
  */
64
64
 
65
65
  /**
66
- * An object that defines claims to disclose. Nested claims must use a nested structure.
67
- * @example { name: true, address: { country: true } }
66
+ * A object that associate the information needed to multiple remote presentation
67
+ * Used with DCQL queries
68
68
  */
69
69
 
70
70
  /**
71
- * A pair that associate a tokenized Verified Credential with the claims presented or requested to present.
71
+ * Common Request Object type, decoupled from specific IT-Wallet versions
72
72
  */
73
73
  exports.ErrorResponse = ErrorResponse;
74
74
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["z","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","PresentationParams","object","client_id","string","nonempty","request","optional","request_uri","url","request_uri_method","enum","state","exports","WalletMetadata","authorization_endpoint","client_id_schemes_supported","array","client_id_prefixes_supported","response_types_supported","response_modes_supported","request_object_signing_alg_values_supported","vp_formats_supported","record","RequestObjectWalletCapabilities","wallet_metadata","wallet_nonce","ErrorResponse"],"sourceRoot":"../../../../../src","sources":["credential/presentation/api/types.ts"],"mappings":";;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAyB,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBA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X,cAAc;EAC/BY,YAAY,EAAElD,CAAC,CAAC4B,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC;AACpC,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AAJAM,OAAA,CAAAW,+BAAA,GAAAA,+BAAA;AAMO,MAAMG,aAAa,GAAGnD,CAAC,CAACmC,IAAI,CAAC,CAClC,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,CACjB,CAAC;;AAMF;AACA;AACA;AACA;;AAeA;AACA;AACA;;AAeA;AACA;AACA;;AAWA;AACA;AACA;;AAKA;AACA;AACA;AACA;;AAKA;AACA;AACA;AAFAE,OAAA,CAAAc,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["z","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","PresentationParams","object","client_id","string","nonempty","request","optional","request_uri","url","request_uri_method","enum","state","exports","WalletMetadata","authorization_endpoint","client_id_prefixes_supported","array","client_id_schemes_supported","request_object_signing_alg_values_supported","response_modes_supported","response_types_supported","vp_formats_supported","record","RequestObjectWalletCapabilities","wallet_metadata","wallet_nonce","ErrorResponse"],"sourceRoot":"../../../../../src","sources":["credential/presentation/api/types.ts"],"mappings":";;;;;;AAIA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAyB,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,C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C,CAAC0B,MAAM,CAAC;EACtDuB,eAAe,EAAEX,cAAc;EAC/BY,YAAY,EAAElD,CAAC,CAAC4B,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC;AACpC,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AAJAM,OAAA,CAAAW,+BAAA,GAAAA,+BAAA;AAMO,MAAMG,aAAa,GAAGnD,CAAC,CAACmC,IAAI,CAAC,CAClC,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,CACjB,CAAC;;AAMF;AACA;AACA;;AAgBA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAKA;AACA;AACA;;AAWA;AACA;AACA;AACA;;AAOA;AACA;AACA;AAFAE,OAAA,CAAAc,aAAA,GAAAA,aAAA"}
@@ -18,18 +18,18 @@ var _dcql = require("dcql");
18
18
  *
19
19
  */
20
20
  class AuthRequestDecodeError extends _errors.IoWalletError {
21
- code = "ERR_IO_WALLET_AUTHENTICATION_REQUEST_DECODE_FAILED";
22
-
23
21
  /** The Claim for which the validation failed. */
24
22
 
23
+ code = "ERR_IO_WALLET_AUTHENTICATION_REQUEST_DECODE_FAILED";
24
+
25
25
  /** Reason code for the validation failure. */
26
26
 
27
27
  constructor(message) {
28
28
  let claim = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "unspecified";
29
29
  let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
30
30
  super((0, _errors.serializeAttrs)({
31
- message,
32
31
  claim,
32
+ message,
33
33
  reason
34
34
  }));
35
35
  this.claim = claim;
@@ -38,19 +38,18 @@ class AuthRequestDecodeError extends _errors.IoWalletError {
38
38
  }
39
39
 
40
40
  /**
41
- * When selecting a public key from an entity configuration, and no one meets the requirements for the scenario
42
- *
41
+ * Error thrown when one or more credentials cannot be found in the wallet
42
+ * and the presentation request cannot be satisfied.
43
43
  */
44
44
  exports.AuthRequestDecodeError = AuthRequestDecodeError;
45
- class NoSuitableKeysFoundInEntityConfiguration extends _errors.IoWalletError {
46
- code = "ERR_NO_SUITABLE_KEYS_NOT_FOUND";
47
-
45
+ class CredentialsNotFoundError extends _errors.IoWalletError {
46
+ code = "ERR_CREDENTIALS_NOT_FOUND";
48
47
  /**
49
- * @param scenario describe the scenario in which the error arise
48
+ * @param details The details of the credentials that could not be found.
50
49
  */
51
- constructor(scenario) {
52
- const message = `Entity configuration do not provide any suitable keys (${scenario}).`;
53
- super(message);
50
+ constructor(details) {
51
+ super("One or more credentials cannot be found in the wallet");
52
+ this.details = details;
54
53
  }
55
54
  }
56
55
 
@@ -58,7 +57,7 @@ class NoSuitableKeysFoundInEntityConfiguration extends _errors.IoWalletError {
58
57
  * When a QR code is not valid.
59
58
  *
60
59
  */
61
- exports.NoSuitableKeysFoundInEntityConfiguration = NoSuitableKeysFoundInEntityConfiguration;
60
+ exports.CredentialsNotFoundError = CredentialsNotFoundError;
62
61
  class InvalidQRCodeError extends _errors.IoWalletError {
63
62
  code = "ERR_INVALID_QR_CODE";
64
63
 
@@ -102,20 +101,22 @@ class MissingDataError extends _errors.IoWalletError {
102
101
  super(message);
103
102
  }
104
103
  }
105
- exports.MissingDataError = MissingDataError;
104
+
106
105
  /**
107
- * Error thrown when one or more credentials cannot be found in the wallet
108
- * and the presentation request cannot be satisfied.
106
+ * When selecting a public key from an entity configuration, and no one meets the requirements for the scenario
107
+ *
109
108
  */
110
- class CredentialsNotFoundError extends _errors.IoWalletError {
111
- code = "ERR_CREDENTIALS_NOT_FOUND";
109
+ exports.MissingDataError = MissingDataError;
110
+ class NoSuitableKeysFoundInEntityConfiguration extends _errors.IoWalletError {
111
+ code = "ERR_NO_SUITABLE_KEYS_NOT_FOUND";
112
+
112
113
  /**
113
- * @param details The details of the credentials that could not be found.
114
+ * @param scenario describe the scenario in which the error arise
114
115
  */
115
- constructor(details) {
116
- super("One or more credentials cannot be found in the wallet");
117
- this.details = details;
116
+ constructor(scenario) {
117
+ const message = `Entity configuration do not provide any suitable keys (${scenario}).`;
118
+ super(message);
118
119
  }
119
120
  }
120
- exports.CredentialsNotFoundError = CredentialsNotFoundError;
121
+ exports.NoSuitableKeysFoundInEntityConfiguration = NoSuitableKeysFoundInEntityConfiguration;
121
122
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_errors","require","_dcql","AuthRequestDecodeError","IoWalletError","code","constructor","message","claim","arguments","length","undefined","reason","serializeAttrs","exports","NoSuitableKeysFoundInEntityConfiguration","scenario","InvalidQRCodeError","InvalidRequestObjectError","MissingDataError","missingAttributes","CredentialsNotFoundError","details"],"sourceRoot":"../../../../../src","sources":["credential/presentation/common/errors.ts"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAME,sBAAsB,SAASC,qBAAa,CAAC;EACxDC,IAAI,GAAG,oDAAoD;;EAE3D;;EAGA;;EAGAC,WAAWA,CACTC,OAAe,EAGf;IAAA,IAFAC,KAAa,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IAAA,IAC7BG,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IAE9B,KAAK,CAAC,IAAAI,sBAAc,EAAC;MAAEN,OAAO;MAAEC,KAAK;MAAEI;IAAO,CAAC,CAAC,CAAC;IACjD,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACI,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA;AAHAE,OAAA,CAAAX,sBAAA,GAAAA,sBAAA;AAIO,MAAMY,wCAAwC,SAASX,qBAAa,CAAC;EAC1EC,IAAI,GAAG,gCAAgC;;EAEvC;AACF;AACA;EACEC,WAAWA,CAACU,QAAgB,EAAE;IAC5B,MAAMT,OAAO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AA,GAAAA,wBAAA"}
1
+ {"version":3,"names":["_errors","require","_dcql","AuthRequestDecodeError","IoWalletError","code","constructor","message","claim","arguments","length","undefined","reason","serializeAttrs","exports","CredentialsNotFoundError","details","InvalidQRCodeError","InvalidRequestObjectError","MissingDataError","missingAttributes","NoSuitableKeysFoundInEntityConfiguration","scenario"],"sourceRoot":"../../../../../src","sources":["credential/presentation/common/errors.ts"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAWA;AACA;AACA;AACA;AACO,MAAME,sBAAsB,SAASC,qBAAa,CAAC;EACxD;;EAGAC,IAAI,GAAG,oDAAoD;;EAE3D;;EAGAC,WAAWA,CAACC,OAAe,EAAiD;IAAA,IAA/CC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACxE,KAAK,CAAC,IAAAI,sBAAc,EAAC;MAAEL,KAAK;MAAED,OAAO;MAAEK;IAAO,CAAC,CAAC,CAAC;IACjD,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACI,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA;AAHAE,OAAA,CAAAX,sBAAA,GAAAA,sBAAA;AAIO,MAAMY,wBAAwB,SAASX,qBAAa,CAAC;EAC1DC,IAAI,GAAG,2BAA2B;EAGlC;AACF;AACA;EACEC,WAAWA,CAACU,OAAyB,EAAE;IACrC,KAAK,CAAC,uDAAuD,CAAC;IAC9D,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;;AAEA;AACA;AACA;AACA;AAHAF,OAAA,CAAAC,wBAAA,GAAAA,wBAAA;AAIO,MAAME,kBAAkB,SAASb,qBAAa,CAAC;EACpDC,IAAI,GAAG,qBAAqB;;EAE5B;;EAGAC,WAAWA,CAACM,MAAc,EAAE;IAC1B,KAAK,CAAC,iBAAiB,CAAC;IACxB,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AAFAE,OAAA,CAAAG,kBAAA,GAAAA,kBAAA;AAGO,MAAMC,yBAAyB,SAASd,qBAAa,CAAC;EAC3DC,IAAI,GAAG,4BAA4B;;EAEnC;;EAGAC,WAAWA,CAACC,OAAe,EAA0B;IAAA,IAAxBK,MAAM,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACjD,KAAK,CAACF,OAAO,CAAC;IACd,IAAI,CAACK,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA;AAHAE,OAAA,CAAAI,yBAAA,GAAAA,yBAAA;AAIO,MAAMC,gBAAgB,SAASf,qBAAa,CAAC;EAClDC,IAAI,GAAG,kBAAkB;;EAEzB;AACF;AACA;EACEC,WAAWA,CAACc,iBAAyB,EAAE;IACrC,MAAMb,OAAO,GAAI,kCAAiCa,iBAAkB,GAAE;IACtE,KAAK,CAACb,OAAO,CAAC;EAChB;AACF;;AAEA;AACA;AACA;AACA;AAHAO,OAAA,CAAAK,gBAAA,GAAAA,gBAAA;AAIO,MAAME,wCAAwC,SAASjB,qBAAa,CAAC;EAC1EC,IAAI,GAAG,gCAAgC;;EAEvC;AACF;AACA;EACEC,WAAWA,CAACgB,QAAgB,EAAE;IAC5B,MAAMf,OAAO,GAAI,0DAAyDe,QAAS,IAAG;IACtF,KAAK,CAACf,OAAO,CAAC;EAChB;AACF;AAACO,OAAA,CAAAO,wCAAA,GAAAA,wCAAA"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.pathToPresentationFrame = exports.getValidDcqlClaims = exports.getPresentationFrameFromDcqlMatch = exports.getDcqlQueryMatches = exports.getClaimsFromDcqlMatch = exports.extractFailedCredentialsDetails = void 0;
7
- var _object = require("../../../../utils/object");
8
- var _errors = require("../../../../utils/errors");
9
7
  var _types = require("../../../../sd-jwt/types");
8
+ var _errors = require("../../../../utils/errors");
9
+ var _object = require("../../../../utils/object");
10
10
  /**
11
11
  * Extract only successful matches from the DCQL query result.
12
12
  */
@@ -27,40 +27,38 @@ const getDcqlQueryFailedMatches = result => Object.entries(result.credential_mat
27
27
  /**
28
28
  * Extract details related to failed credentials
29
29
  */
30
- const extractFailedCredentialsDetails = queryResult => {
31
- return getDcqlQueryFailedMatches(queryResult).map(_ref3 => {
32
- var _match$failed_credent;
33
- let [id, match] = _ref3;
34
- const credential = queryResult.credentials.find(c => c.id === id);
35
- const issues = (_match$failed_credent = match.failed_credentials) === null || _match$failed_credent === void 0 ? void 0 : _match$failed_credent.flatMap(c => {
36
- if ("issues" in c.meta) {
37
- return Object.values(c.meta.issues).flat();
38
- }
39
- if (c.claims.failed_claim_sets) {
40
- return c.claims.failed_claim_sets.flatMap(cs => Object.values(cs.issues).flat());
41
- }
42
- return [];
43
- });
44
- if ((credential === null || credential === void 0 ? void 0 : credential.format) === "mso_mdoc") {
45
- var _credential$meta;
46
- return {
47
- id,
48
- issues,
49
- format: credential.format,
50
- doctypeValue: (_credential$meta = credential.meta) === null || _credential$meta === void 0 ? void 0 : _credential$meta.doctype_value
51
- };
30
+ const extractFailedCredentialsDetails = queryResult => getDcqlQueryFailedMatches(queryResult).map(_ref3 => {
31
+ var _match$failed_credent;
32
+ let [id, match] = _ref3;
33
+ const credential = queryResult.credentials.find(c => c.id === id);
34
+ const issues = (_match$failed_credent = match.failed_credentials) === null || _match$failed_credent === void 0 ? void 0 : _match$failed_credent.flatMap(c => {
35
+ if ("issues" in c.meta) {
36
+ return Object.values(c.meta.issues).flat();
52
37
  }
53
- if ((credential === null || credential === void 0 ? void 0 : credential.format) === "dc+sd-jwt" || (credential === null || credential === void 0 ? void 0 : credential.format) === _types.LEGACY_SD_JWT) {
54
- return {
55
- id,
56
- issues,
57
- format: credential.format,
58
- vctValues: credential.meta && "vct_values" in credential.meta ? credential.meta.vct_values : []
59
- };
38
+ if (c.claims.failed_claim_sets) {
39
+ return c.claims.failed_claim_sets.flatMap(cs => Object.values(cs.issues).flat());
60
40
  }
61
- throw new _errors.IoWalletError(`Unsupported format: ${credential === null || credential === void 0 ? void 0 : credential.format}`);
41
+ return [];
62
42
  });
63
- };
43
+ if ((credential === null || credential === void 0 ? void 0 : credential.format) === "mso_mdoc") {
44
+ var _credential$meta;
45
+ return {
46
+ doctypeValue: (_credential$meta = credential.meta) === null || _credential$meta === void 0 ? void 0 : _credential$meta.doctype_value,
47
+ format: credential.format,
48
+ id,
49
+ issues
50
+ };
51
+ }
52
+ if ((credential === null || credential === void 0 ? void 0 : credential.format) === "dc+sd-jwt" || (credential === null || credential === void 0 ? void 0 : credential.format) === _types.LEGACY_SD_JWT) {
53
+ return {
54
+ format: credential.format,
55
+ id,
56
+ issues,
57
+ vctValues: credential.meta && "vct_values" in credential.meta ? credential.meta.vct_values : []
58
+ };
59
+ }
60
+ throw new _errors.IoWalletError(`Unsupported format: ${credential === null || credential === void 0 ? void 0 : credential.format}`);
61
+ });
64
62
 
65
63
  /**
66
64
  * Extract a compact list of claims from the `dcql` result.
@@ -130,7 +128,12 @@ const getPresentationFrameFromDcqlMatch = (match, originalQuery) => {
130
128
 
131
129
  // Build a presentation frame from each claim's path
132
130
  return getValidDcqlClaims(match).reduce((acc, c) => {
133
- const pf = pathToPresentationFrame(typedQueryClaims[c.claim_index].path, c.output);
131
+ var _typedQueryClaims$c$c;
132
+ const path = (_typedQueryClaims$c$c = typedQueryClaims[c.claim_index]) === null || _typedQueryClaims$c$c === void 0 ? void 0 : _typedQueryClaims$c$c.path;
133
+ if (!path) {
134
+ throw new Error(`Claim at index ${c.claim_index} does not have a path in the original query.`);
135
+ }
136
+ const pf = pathToPresentationFrame(path, c.output);
134
137
  // Merge objects with the same key to not lose objects that are already in the accumulator
135
138
  for (const [key, value] of Object.entries(pf)) {
136
139
  acc[key] = (0, _object.isObject)(value) ? Object.assign(value, acc[key]) : value;
@@ -156,7 +159,7 @@ const getValidDcqlClaims = match => {
156
159
  // We select claims in the order they are defined in the set
157
160
  if (validClaimSet) {
158
161
  var _validClaimSet$valid_;
159
- return ((_validClaimSet$valid_ = validClaimSet.valid_claim_indexes) === null || _validClaimSet$valid_ === void 0 ? void 0 : _validClaimSet$valid_.map(i => validClaims.find(c => c.claim_index === i))) ?? [];
162
+ return ((_validClaimSet$valid_ = validClaimSet.valid_claim_indexes) === null || _validClaimSet$valid_ === void 0 ? void 0 : _validClaimSet$valid_.map(i => validClaims.find(c => c.claim_index === i)).filter(c => c != null)) ?? [];
160
163
  }
161
164
  return validClaims;
162
165
  };