@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
@@ -1 +1 @@
1
- {"version":3,"file":"02-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/02-start-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,sBAAsB,CACpB,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,MAAM,EAAE,EACvB,KAAK,EACD;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GACrB;QAAE,SAAS,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EACjD,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;QAChC,yBAAyB,EAAE,MAAM,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GACA,OAAO,CAAC;QACT,gBAAgB,EAAE,MAAM,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;QAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC;CACJ"}
1
+ {"version":3,"file":"02-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/02-start-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,sBAAsB,CACpB,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,MAAM,EAAE,EACvB,KAAK,EACD;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,UAAU,CAAA;KAAE,GAC7C;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,EACzB,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,yBAAyB,EAAE,MAAM,CAAC;QAClC,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;QAC5C,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC;CACJ"}
@@ -1,38 +1,26 @@
1
1
  import type { CryptoContext } from "@pagopa/io-react-native-jwt";
2
- import type { AuthorizationChallengeResult, AuthorizationResult } from "../../../utils/auth";
3
2
  import type { RequestObject } from "../../../credential/presentation/api";
4
3
  import type { EvaluateDcqlQueryApi } from "../../../credential/presentation/api/06-evaluate-dcql-query";
4
+ import type { AuthorizationChallengeResult, AuthorizationResult } from "../../../utils/auth";
5
5
  import type { Out } from "../../../utils/misc";
6
6
  import type { IssuerConfig } from "./IssuerConfig";
7
- export type EvaluatedDcqlQuery = Out<EvaluateDcqlQueryApi["evaluateDcqlQuery"]>;
8
7
  export interface CompleteUserAuthorizationApi {
9
8
  /**
10
- * WARNING: This function must be called after {@link startUserAuthorization}. The next step is evaluating the returned request object's DCQL query with {@link EvaluateDcqlQueryApi.evaluateDcqlQuery}.
9
+ * WARNING: This function must be called after {@link startUserAuthorization}.
11
10
  *
12
- * The interface of the phase to complete User authorization via presentation of existing credentials when the response mode is "form_post.jwt".
13
- * It is used as a first step to complete the user authorization by obtaining the requested credential to be presented from the authorization server.
14
- * The information is obtained by performing a GET request to the authorization endpoint with request_uri and client_id parameters.
11
+ * The generated authUrl must be used to open a browser or webview capable of catching the redirectSchema to perform a get request to the authorization endpoint.
12
+ * Builds the authorization URL to which the end user should be redirected to continue the authentication flow.
15
13
  * @since 1.0.0
16
14
  *
17
15
  * @param issuerRequestUri the URI of the issuer where the request is sent
18
16
  * @param clientId Identifies the current client across all the requests of the issuing flow returned by {@link startUserAuthorization}
19
17
  * @param issuerConf The issuer configuration returned by {@link evaluateIssuerTrust}
20
- * @param appFetch (optional) fetch api implementation. Default: built-in fetch
21
- * @returns the request object which contains the credential to be presented in order to obtain the requested credential
22
- * @throws {ValidationFailed} if an error while validating the response
23
- */
24
- getRequestedCredentialToBePresented(issuerRequestUri: string, clientId: string, issuerConf: IssuerConfig, appFetch?: GlobalFetch["fetch"]): Promise<RequestObject>;
25
- /**
26
- * WARNING: This function must be called after obtaining the authorization redirect URL from the webviews (SPID and CIE L3) or browser for CIEID.
27
- *
28
- * Complete User authorization via strong identification when the response mode is "query" and the request credential is a PersonIdentificationData.
29
- * This function parses the authorization redirect URL to extract the authorization response.
30
- * @since 1.0.0
31
- *
32
- * @param authRedirectUrl The URL to which the end user should be redirected to start the authentication flow
33
- * @returns the authorization response which contains code, state and iss
18
+ * @param idpHint Unique identifier of the IDP selected by the user (optional)
19
+ * @returns An object containing the authorization URL
34
20
  */
35
- completePidUserAuthorizationWithQueryMode(authRedirectUrl: string): Promise<AuthorizationResult>;
21
+ buildAuthorizationUrl(issuerRequestUri: string, clientId: string, issuerConf: IssuerConfig, idpHint?: string): Promise<{
22
+ authUrl: string;
23
+ }>;
36
24
  /**
37
25
  * Complete user authorization when the response mode is "query" and the requested credential is an Electronic Attestation of Attributes (EAA).
38
26
  * This type of credentials requires a PID to be presented to complete the authorization process and then obtain an access token.
@@ -50,6 +38,17 @@ export interface CompleteUserAuthorizationApi {
50
38
  /** Function to fetch the final redirect uri; it allows full control on how redirects are handled. If not provided, `appFetch` is used. */
51
39
  fetchFinalRedirectUri?: (url: string) => Promise<string | undefined>;
52
40
  }): Promise<AuthorizationResult>;
41
+ /**
42
+ * WARNING: This function must be called after obtaining the authorization redirect URL from the webviews (SPID and CIE L3) or browser for CIEID.
43
+ *
44
+ * Complete User authorization via strong identification when the response mode is "query" and the request credential is a PersonIdentificationData.
45
+ * This function parses the authorization redirect URL to extract the authorization response.
46
+ * @since 1.0.0
47
+ *
48
+ * @param authRedirectUrl The URL to which the end user should be redirected to start the authentication flow
49
+ * @returns the authorization response which contains code, state and iss
50
+ */
51
+ completePidUserAuthorizationWithQueryMode(authRedirectUrl: string): Promise<AuthorizationResult>;
53
52
  /**
54
53
  * WARNING: This function must be called after {@link getRequestedCredentialToBePresented} and after evaluating the request object's DCQL query with {@link EvaluateDcqlQueryApi.evaluateDcqlQuery}. The next function to be called is {@link authorizeAccess}.
55
54
  *
@@ -65,8 +64,8 @@ export interface CompleteUserAuthorizationApi {
65
64
  * @throws {ValidationFailed} if an error while validating the response
66
65
  */
67
66
  completeUserAuthorizationWithFormPostJwtMode(requestObject: RequestObject, issuerConf: IssuerConfig, evaluatedDcqlQuery: EvaluatedDcqlQuery, context: {
68
- wiaCryptoContext: CryptoContext;
69
67
  appFetch?: GlobalFetch["fetch"];
68
+ wiaCryptoContext: CryptoContext;
70
69
  }): Promise<AuthorizationResult>;
71
70
  /**
72
71
  * WARNING: this function must be called after obtaining the authorization redirect URL from the webviews (SPID and CIE L3) or browser for CIEID, and the PID
@@ -78,20 +77,21 @@ export interface CompleteUserAuthorizationApi {
78
77
  */
79
78
  continueUserAuthorizationWithMRTDPoPChallenge(authRedirectUrl: string): Promise<AuthorizationChallengeResult>;
80
79
  /**
81
- * WARNING: This function must be called after {@link startUserAuthorization}.
80
+ * WARNING: This function must be called after {@link startUserAuthorization}. The next step is evaluating the returned request object's DCQL query with {@link EvaluateDcqlQueryApi.evaluateDcqlQuery}.
82
81
  *
83
- * The generated authUrl must be used to open a browser or webview capable of catching the redirectSchema to perform a get request to the authorization endpoint.
84
- * Builds the authorization URL to which the end user should be redirected to continue the authentication flow.
82
+ * The interface of the phase to complete User authorization via presentation of existing credentials when the response mode is "form_post.jwt".
83
+ * It is used as a first step to complete the user authorization by obtaining the requested credential to be presented from the authorization server.
84
+ * The information is obtained by performing a GET request to the authorization endpoint with request_uri and client_id parameters.
85
85
  * @since 1.0.0
86
86
  *
87
87
  * @param issuerRequestUri the URI of the issuer where the request is sent
88
88
  * @param clientId Identifies the current client across all the requests of the issuing flow returned by {@link startUserAuthorization}
89
89
  * @param issuerConf The issuer configuration returned by {@link evaluateIssuerTrust}
90
- * @param idpHint Unique identifier of the IDP selected by the user (optional)
91
- * @returns An object containing the authorization URL
90
+ * @param appFetch (optional) fetch api implementation. Default: built-in fetch
91
+ * @returns the request object which contains the credential to be presented in order to obtain the requested credential
92
+ * @throws {ValidationFailed} if an error while validating the response
92
93
  */
93
- buildAuthorizationUrl(issuerRequestUri: string, clientId: string, issuerConf: IssuerConfig, idpHint?: string): Promise<{
94
- authUrl: string;
95
- }>;
94
+ getRequestedCredentialToBePresented(issuerRequestUri: string, clientId: string, issuerConf: IssuerConfig, appFetch?: GlobalFetch["fetch"]): Promise<RequestObject>;
96
95
  }
96
+ export type EvaluatedDcqlQuery = Out<EvaluateDcqlQueryApi["evaluateDcqlQuery"]>;
97
97
  //# sourceMappingURL=03-complete-user-authorization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"03-complete-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/03-complete-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EACV,4BAA4B,EAC5B,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAEhF,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;;;OAcG;IACH,mCAAmC,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,YAAY,EACxB,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,GAC9B,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;;;OASG;IACH,yCAAyC,CACvC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,yCAAyC,CACvC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QACR,yDAAyD;QACzD,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,0IAA0I;QAC1I,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;KACtE,GACA,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;;;;;OAaG;IACH,4CAA4C,CAC1C,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;QAChC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;OAOG;IACH,6CAA6C,CAC3C,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAEzC;;;;;;;;;;;;OAYG;IACH,qBAAqB,CACnB,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC"}
1
+ {"version":3,"file":"03-complete-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/03-complete-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,KAAK,EACV,4BAA4B,EAC5B,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;OAYG;IACH,qBAAqB,CACnB,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,yCAAyC,CACvC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QACR,yDAAyD;QACzD,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,0IAA0I;QAC1I,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;KACtE,GACA,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;OASG;IACH,yCAAyC,CACvC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;;;;;OAaG;IACH,4CAA4C,CAC1C,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,YAAY,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;OAOG;IACH,6CAA6C,CAC3C,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAEzC;;;;;;;;;;;;;;OAcG;IACH,mCAAmC,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,YAAY,EACxB,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,GAC9B,OAAO,CAAC,aAAa,CAAC,CAAC;CAC3B;AAED,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,CAAC"}
@@ -22,10 +22,10 @@ export interface AuthorizeAccessApi {
22
22
  * @throws {IssuerResponseError} with a specific code for more context
23
23
  */
24
24
  authorizeAccess(issuerConf: IssuerConfig, code: string, redirectUri: string, codeVerifier: string, context: {
25
+ appFetch?: GlobalFetch["fetch"];
26
+ dPopCryptoContext: CryptoContext;
25
27
  walletInstanceAttestation: string;
26
28
  wiaCryptoContext: CryptoContext;
27
- dPopCryptoContext: CryptoContext;
28
- appFetch?: GlobalFetch["fetch"];
29
29
  }): Promise<{
30
30
  accessToken: TokenResponse;
31
31
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"04-authorize-access.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/04-authorize-access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,CACb,UAAU,EAAE,YAAY,EACxB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE;QACP,yBAAyB,EAAE,MAAM,CAAC;QAClC,gBAAgB,EAAE,aAAa,CAAC;QAChC,iBAAiB,EAAE,aAAa,CAAC;QACjC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC;QAAE,WAAW,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;CAC5C"}
1
+ {"version":3,"file":"04-authorize-access.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/04-authorize-access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,CACb,UAAU,EAAE,YAAY,EACxB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,iBAAiB,EAAE,aAAa,CAAC;QACjC,yBAAyB,EAAE,MAAM,CAAC;QAClC,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC;QAAE,WAAW,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;CAC5C"}
@@ -1,7 +1,7 @@
1
1
  import type { CryptoContext } from "@pagopa/io-react-native-jwt";
2
2
  import type { Out } from "../../../utils/misc";
3
- import type { IssuerConfig } from "./IssuerConfig";
4
3
  import type { AuthorizeAccessApi } from "./04-authorize-access";
4
+ import type { IssuerConfig } from "./IssuerConfig";
5
5
  import type { CredentialFormat } from "./types";
6
6
  export interface ObtainCredentialApi {
7
7
  /**
@@ -26,10 +26,10 @@ export interface ObtainCredentialApi {
26
26
  credential_configuration_id: string;
27
27
  credential_identifier?: string;
28
28
  }, context: {
29
- dPopCryptoContext: CryptoContext;
29
+ appFetch?: GlobalFetch["fetch"];
30
30
  credentialCryptoContext: CryptoContext;
31
+ dPopCryptoContext: CryptoContext;
31
32
  walletUnitAttestation?: string;
32
- appFetch?: GlobalFetch["fetch"];
33
33
  }): Promise<{
34
34
  credential: string;
35
35
  format: CredentialFormat;
@@ -46,10 +46,10 @@ export interface ObtainCredentialApi {
46
46
  credential_configuration_id: string;
47
47
  credential_identifier: string;
48
48
  }, context: {
49
- dPopCryptoContext: CryptoContext;
49
+ appFetch?: GlobalFetch["fetch"];
50
50
  credentialCryptoContexts: CryptoContext[];
51
+ dPopCryptoContext: CryptoContext;
51
52
  walletUnitAttestation?: string;
52
- appFetch?: GlobalFetch["fetch"];
53
53
  }): Promise<{
54
54
  credential: string;
55
55
  format: CredentialFormat;
@@ -1 +1 @@
1
- {"version":3,"file":"05-obtain-credential.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/05-obtain-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,gBAAgB,CACd,UAAU,EAAE,YAAY,EACxB,WAAW,EAAE,GAAG,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,EACtE,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE;QACpB,2BAA2B,EAAE,MAAM,CAAC;QACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,EACD,OAAO,EAAE;QACP,iBAAiB,EAAE,aAAa,CAAC;QACjC,uBAAuB,EAAE,aAAa,CAAC;QACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,gBAAgB,CAAC;KAC1B,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,sBAAsB,CACpB,UAAU,EAAE,YAAY,EACxB,WAAW,EAAE,GAAG,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,EACtE,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE;QACpB,2BAA2B,EAAE,MAAM,CAAC;QACpC,qBAAqB,EAAE,MAAM,CAAC;KAC/B,EACD,OAAO,EAAE;QACP,iBAAiB,EAAE,aAAa,CAAC;QACjC,wBAAwB,EAAE,aAAa,EAAE,CAAC;QAC1C,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC,CAAC;CAChE"}
1
+ {"version":3,"file":"05-obtain-credential.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/05-obtain-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,gBAAgB,CACd,UAAU,EAAE,YAAY,EACxB,WAAW,EAAE,GAAG,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,EACtE,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE;QACpB,2BAA2B,EAAE,MAAM,CAAC;QACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,EACD,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,uBAAuB,EAAE,aAAa,CAAC;QACvC,iBAAiB,EAAE,aAAa,CAAC;QACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,GACA,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,gBAAgB,CAAC;KAC1B,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,sBAAsB,CACpB,UAAU,EAAE,YAAY,EACxB,WAAW,EAAE,GAAG,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,EACtE,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE;QACpB,2BAA2B,EAAE,MAAM,CAAC;QACpC,qBAAqB,EAAE,MAAM,CAAC;KAC/B,EACD,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,wBAAwB,EAAE,aAAa,EAAE,CAAC;QAC1C,iBAAiB,EAAE,aAAa,CAAC;QACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,GACA,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC,CAAC;CAChE"}
@@ -32,9 +32,9 @@ export interface VerifyAndParseCredentialApi {
32
32
  */
33
33
  validateCertificateChain?: boolean;
34
34
  }, x509CertRoot?: string): Promise<{
35
- parsedCredential: ParsedCredential;
36
35
  expiration: Date;
37
36
  issuedAt: Date | undefined;
37
+ parsedCredential: ParsedCredential;
38
38
  }>;
39
39
  }
40
40
  //# sourceMappingURL=06-verify-and-parse-credential.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"06-verify-and-parse-credential.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/06-verify-and-parse-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,CACtB,UAAU,EAAE,YAAY,EACxB,UAAU,EAAE,MAAM,EAClB,yBAAyB,EAAE,MAAM,EACjC,OAAO,EAAE;QACP,uBAAuB,EAAE,aAAa,CAAC;QACvC;;WAEG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC;;WAEG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;QACrC;;WAEG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACpC,EACD,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC;QACT,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,UAAU,EAAE,IAAI,CAAC;QACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;KAC5B,CAAC,CAAC;CACJ"}
1
+ {"version":3,"file":"06-verify-and-parse-credential.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/06-verify-and-parse-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,CACtB,UAAU,EAAE,YAAY,EACxB,UAAU,EAAE,MAAM,EAClB,yBAAyB,EAAE,MAAM,EACjC,OAAO,EAAE;QACP,uBAAuB,EAAE,aAAa,CAAC;QACvC;;WAEG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC;;WAEG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;QACrC;;WAEG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACpC,EACD,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC;QACT,UAAU,EAAE,IAAI,CAAC;QACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;QAC3B,gBAAgB,EAAE,gBAAgB,CAAC;KACpC,CAAC,CAAC;CACJ"}
@@ -4,14 +4,55 @@ import { z } from "zod";
4
4
  */
5
5
  export type IssuerConfig = z.infer<typeof IssuerConfig>;
6
6
  export declare const IssuerConfig: z.ZodObject<{
7
- credential_issuer: z.ZodString;
8
- authorization_servers: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
9
- pushed_authorization_request_endpoint: z.ZodString;
10
7
  authorization_endpoint: z.ZodString;
11
- token_endpoint: z.ZodString;
12
- nonce_endpoint: z.ZodString;
13
- status_assertion_endpoint: z.ZodOptional<z.ZodString>;
8
+ authorization_servers: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
9
+ credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ format: z.ZodLiteral<"dc+sd-jwt">;
11
+ vct: z.ZodString;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ doctype: z.ZodString;
14
+ format: z.ZodLiteral<"mso_mdoc">;
15
+ }, z.core.$strip>], "format">, z.ZodObject<{
16
+ authentic_source: z.ZodOptional<z.ZodString>;
17
+ claims: z.ZodArray<z.ZodObject<{
18
+ display: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ locale: z.ZodString;
20
+ name: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
23
+ }, z.core.$strip>>;
24
+ display: z.ZodArray<z.ZodObject<{
25
+ locale: z.ZodString;
26
+ name: z.ZodString;
27
+ }, z.core.$strip>>;
28
+ issuance_errors_supported: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
29
+ display: z.ZodArray<z.ZodObject<{
30
+ description: z.ZodString;
31
+ locale: z.ZodString;
32
+ title: z.ZodString;
33
+ }, z.core.$strip>>;
34
+ }, z.core.$strip>>>;
35
+ scope: z.ZodString;
36
+ }, z.core.$strip>>>;
14
37
  credential_endpoint: z.ZodString;
38
+ credential_issuance_batch_size: z.ZodOptional<z.ZodNumber>;
39
+ credential_issuer: z.ZodString;
40
+ encrypted_response_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ federation_entity: z.ZodObject<{
42
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodString>;
44
+ federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
45
+ federation_historical_keys_endpoint: z.ZodOptional<z.ZodString>;
46
+ federation_list_endpoint: z.ZodOptional<z.ZodString>;
47
+ federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
48
+ federation_trust_mark_endpoint: z.ZodOptional<z.ZodString>;
49
+ federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
50
+ federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
51
+ homepage_uri: z.ZodOptional<z.ZodString>;
52
+ logo_uri: z.ZodOptional<z.ZodString>;
53
+ organization_name: z.ZodOptional<z.ZodString>;
54
+ policy_uri: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$loose>;
15
56
  keys: z.ZodArray<z.ZodObject<{
16
57
  alg: z.ZodOptional<z.ZodString>;
17
58
  crv: z.ZodOptional<z.ZodString>;
@@ -33,57 +74,16 @@ export declare const IssuerConfig: z.ZodObject<{
33
74
  qi: z.ZodOptional<z.ZodString>;
34
75
  use: z.ZodOptional<z.ZodString>;
35
76
  x: z.ZodOptional<z.ZodString>;
36
- y: z.ZodOptional<z.ZodString>;
37
77
  x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
78
  x5t: z.ZodOptional<z.ZodString>;
39
79
  "x5t#S256": z.ZodOptional<z.ZodString>;
40
80
  x5u: z.ZodOptional<z.ZodString>;
81
+ y: z.ZodOptional<z.ZodString>;
41
82
  }, z.core.$strip>>;
42
- credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
43
- format: z.ZodLiteral<"dc+sd-jwt">;
44
- vct: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- format: z.ZodLiteral<"mso_mdoc">;
47
- doctype: z.ZodString;
48
- }, z.core.$strip>], "format">, z.ZodObject<{
49
- scope: z.ZodString;
50
- display: z.ZodArray<z.ZodObject<{
51
- name: z.ZodString;
52
- locale: z.ZodString;
53
- }, z.core.$strip>>;
54
- claims: z.ZodArray<z.ZodObject<{
55
- path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
56
- display: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
- name: z.ZodString;
58
- locale: z.ZodString;
59
- }, z.core.$strip>>>;
60
- }, z.core.$strip>>;
61
- authentic_source: z.ZodOptional<z.ZodString>;
62
- issuance_errors_supported: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
63
- display: z.ZodArray<z.ZodObject<{
64
- title: z.ZodString;
65
- description: z.ZodString;
66
- locale: z.ZodString;
67
- }, z.core.$strip>>;
68
- }, z.core.$strip>>>;
69
- }, z.core.$strip>>>;
70
- federation_entity: z.ZodObject<{
71
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
72
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
73
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
74
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
75
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
76
- federation_trust_mark_endpoint: z.ZodOptional<z.ZodString>;
77
- federation_historical_keys_endpoint: z.ZodOptional<z.ZodString>;
78
- endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodString>;
79
- organization_name: z.ZodOptional<z.ZodString>;
80
- homepage_uri: z.ZodOptional<z.ZodString>;
81
- policy_uri: z.ZodOptional<z.ZodString>;
82
- logo_uri: z.ZodOptional<z.ZodString>;
83
- contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
- }, z.core.$loose>;
85
- credential_issuance_batch_size: z.ZodOptional<z.ZodNumber>;
86
- encrypted_response_enc_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
+ nonce_endpoint: z.ZodString;
84
+ pushed_authorization_request_endpoint: z.ZodString;
87
85
  response_modes_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ status_assertion_endpoint: z.ZodOptional<z.ZodString>;
87
+ token_endpoint: z.ZodString;
88
88
  }, z.core.$strip>;
89
89
  //# sourceMappingURL=IssuerConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IssuerConfig.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/IssuerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8CxB;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
1
+ {"version":3,"file":"IssuerConfig.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/IssuerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+CxB;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
@@ -5,11 +5,11 @@ import { type AuthorizeAccessApi } from "./04-authorize-access";
5
5
  import { type ObtainCredentialApi } from "./05-obtain-credential";
6
6
  import { type VerifyAndParseCredentialApi } from "./06-verify-and-parse-credential";
7
7
  import { type MRTDPoPApi } from "./mrtd-pop";
8
- export interface IssuanceApi extends EvaluateIssuerTrustApi, StartUserAuthorizationApi, CompleteUserAuthorizationApi, AuthorizeAccessApi, ObtainCredentialApi, VerifyAndParseCredentialApi {
8
+ export interface IssuanceApi extends AuthorizeAccessApi, CompleteUserAuthorizationApi, EvaluateIssuerTrustApi, ObtainCredentialApi, StartUserAuthorizationApi, VerifyAndParseCredentialApi {
9
9
  MRTDPoP: MRTDPoPApi;
10
10
  }
11
- export type { IssuerConfig } from "./IssuerConfig";
12
11
  export type { EvaluatedDcqlQuery } from "./03-complete-user-authorization";
12
+ export type { IssuerConfig } from "./IssuerConfig";
13
13
  export type * as MRTDPoP from "./mrtd-pop";
14
14
  export type * from "./types";
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,WACf,SAAQ,sBAAsB,EAC5B,yBAAyB,EACzB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B;IAC7B,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,YAAY,KAAK,OAAO,MAAM,YAAY,CAAC;AAC3C,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,WACf,SAAQ,kBAAkB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B;IAC7B,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,KAAK,OAAO,MAAM,YAAY,CAAC;AAC3C,mBAAmB,SAAS,CAAC"}
@@ -3,24 +3,16 @@ import type { IssuerConfig } from "../IssuerConfig";
3
3
  import type { IasPayload, MrtdPayload, MrtdPoPChallenge, MrtdPopVerificationResult, MrtdProofChallengeInfo } from "./types";
4
4
  export interface MRTDPoPApi {
5
5
  /**
6
- * Verifies and parses the payload of a MRTD Proof Challenge Info JWT obtained after the primary authentication.
7
- *
8
- * This function performs the following steps:
9
- * 1. Validates the JWT signature using the issuer's JWKS.
10
- * 2. Decodes the JWT and parses its structure according to the {@link MrtdProofChallengeInfo} schema.
11
- * 3. Verifies that the `aud` claim matches the client's public key ID.
12
- * 4. Checks that the JWT is not expired and was not issued in the future.
13
- *
14
- * @param issuerConf - The issuer configuration containing the JWKS for signature verification.
15
- * @param challengeInfoJwt - The JWT string representing the MRTD Proof Challenge Info.
16
- * @param context - The context containing the WIA crypto context used to retrieve the client public key.
17
- * @returns The parsed payload of the MRTD Proof Challenge Info JWT.
18
- * @throws {Error} If the JWT signature is invalid, the structure is malformed, the `aud` claim does not match,
19
- * or the JWT is expired/not yet valid.
6
+ * WARNING: This function must be called after {@link validateChallenge}. The generated authUrl must be used to open a browser or webview capable of catching the redirectSchema to perform a get request to the authorization endpoint.
7
+ * Builds the callback URL to which the end user should be redirected to continue the authentication flow after the MRTD challenge validation.
8
+ * @param redirectUri - The redirect URI provided by the issuer after the challenge validation to continue the authentication flow.
9
+ * @param valPopNonce - The MRTD validation PoP nonce obtained from the challenge validation response.
10
+ * @param authSession - The MRTD authentication session identifier used for session binding.
11
+ * @returns An object containing the callback URL
20
12
  */
21
- verifyAndParseChallengeInfo(issuerConf: IssuerConfig, challengeInfoJwt: string, context: {
22
- wiaCryptoContext: CryptoContext;
23
- }): Promise<MrtdProofChallengeInfo>;
13
+ buildChallengeCallbackUrl(redirectUri: string, valPopNonce: string, authSession: string): Promise<{
14
+ callbackUrl: string;
15
+ }>;
24
16
  /**
25
17
  * Initializes the MRTD challenge with the data received from the issuer after the primary authentication.
26
18
  * This function must be called after {@link verifyAndParseChallengeInfo}.
@@ -34,9 +26,9 @@ export interface MRTDPoPApi {
34
26
  * @returns The payload of the MRTD PoP Challenge JWT.
35
27
  */
36
28
  initChallenge(issuerConf: IssuerConfig, initUrl: string, mrtd_auth_session: string, mrtd_pop_jwt_nonce: string, context: {
37
- wiaCryptoContext: CryptoContext;
38
- walletInstanceAttestation: string;
39
29
  appFetch?: GlobalFetch["fetch"];
30
+ walletInstanceAttestation: string;
31
+ wiaCryptoContext: CryptoContext;
40
32
  }): Promise<MrtdPoPChallenge>;
41
33
  /**
42
34
  * Validates the MRTD signed challenge by sending the MRTD and IAS payloads to the issuer.
@@ -54,21 +46,29 @@ export interface MRTDPoPApi {
54
46
  * @returns The MRTD PoP Verification Result containing the validation nonce and redirect URI to complete the flow.
55
47
  */
56
48
  validateChallenge(issuerConf: IssuerConfig, verifyUrl: string, mrtd_auth_session: string, mrtd_pop_nonce: string, mrtd: MrtdPayload, ias: IasPayload, context: {
57
- wiaCryptoContext: CryptoContext;
58
- walletInstanceAttestation: string;
59
49
  appFetch?: GlobalFetch["fetch"];
50
+ walletInstanceAttestation: string;
51
+ wiaCryptoContext: CryptoContext;
60
52
  }): Promise<MrtdPopVerificationResult>;
61
53
  /**
62
- * WARNING: This function must be called after {@link validateChallenge}. The generated authUrl must be used to open a browser or webview capable of catching the redirectSchema to perform a get request to the authorization endpoint.
63
- * Builds the callback URL to which the end user should be redirected to continue the authentication flow after the MRTD challenge validation.
64
- * @param redirectUri - The redirect URI provided by the issuer after the challenge validation to continue the authentication flow.
65
- * @param valPopNonce - The MRTD validation PoP nonce obtained from the challenge validation response.
66
- * @param authSession - The MRTD authentication session identifier used for session binding.
67
- * @returns An object containing the callback URL
54
+ * Verifies and parses the payload of a MRTD Proof Challenge Info JWT obtained after the primary authentication.
55
+ *
56
+ * This function performs the following steps:
57
+ * 1. Validates the JWT signature using the issuer's JWKS.
58
+ * 2. Decodes the JWT and parses its structure according to the {@link MrtdProofChallengeInfo} schema.
59
+ * 3. Verifies that the `aud` claim matches the client's public key ID.
60
+ * 4. Checks that the JWT is not expired and was not issued in the future.
61
+ *
62
+ * @param issuerConf - The issuer configuration containing the JWKS for signature verification.
63
+ * @param challengeInfoJwt - The JWT string representing the MRTD Proof Challenge Info.
64
+ * @param context - The context containing the WIA crypto context used to retrieve the client public key.
65
+ * @returns The parsed payload of the MRTD Proof Challenge Info JWT.
66
+ * @throws {Error} If the JWT signature is invalid, the structure is malformed, the `aud` claim does not match,
67
+ * or the JWT is expired/not yet valid.
68
68
  */
69
- buildChallengeCallbackUrl(redirectUri: string, valPopNonce: string, authSession: string): Promise<{
70
- callbackUrl: string;
71
- }>;
69
+ verifyAndParseChallengeInfo(issuerConf: IssuerConfig, challengeInfoJwt: string, context: {
70
+ wiaCryptoContext: CryptoContext;
71
+ }): Promise<MrtdProofChallengeInfo>;
72
72
  }
73
73
  export * from "./types";
74
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/issuance/api/mrtd-pop/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,CACzB,UAAU,EAAE,YAAY,EACxB,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAEnC;;;;;;;;;;;OAWG;IACH,aAAa,CACX,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;QAChC,yBAAyB,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CACf,UAAU,EAAE,YAAY,EACxB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;QAChC,yBAAyB,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEtC;;;;;;;OAOG;IACH,yBAAyB,CACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrC;AAED,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/issuance/api/mrtd-pop/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,yBAAyB,CACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEpC;;;;;;;;;;;OAWG;IACH,aAAa,CACX,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,yBAAyB,EAAE,MAAM,CAAC;QAClC,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CACf,UAAU,EAAE,YAAY,EACxB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,yBAAyB,EAAE,MAAM,CAAC;QAClC,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEtC;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,CACzB,UAAU,EAAE,YAAY,EACxB,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE;QACP,gBAAgB,EAAE,aAAa,CAAC;KACjC,GACA,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC;AAED,cAAc,SAAS,CAAC"}
@@ -1,34 +1,34 @@
1
- export type MrtdPayload = {
1
+ export interface IasPayload {
2
+ challenge_signed: string;
3
+ ias_pk: string;
4
+ sod_ias: string;
5
+ }
6
+ export interface MrtdPayload {
2
7
  dg1: string;
3
8
  dg11: string;
4
9
  sod_mrtd: string;
5
- };
6
- export type IasPayload = {
7
- ias_pk: string;
8
- sod_ias: string;
9
- challenge_signed: string;
10
- };
11
- export type MrtdProofChallengeInfo = {
12
- iss: string;
13
- aud: string;
14
- iat: number;
15
- exp: number;
16
- status: "require_interaction";
17
- type: "mrtd+ias";
18
- mrtd_auth_session: string;
19
- state: string;
20
- mrtd_pop_jwt_nonce: string;
21
- htu: string;
22
- htm: "POST";
23
- };
24
- export type MrtdPoPChallenge = {
10
+ }
11
+ export interface MrtdPoPChallenge {
25
12
  challenge: string;
26
13
  mrtd_pop_nonce: string;
27
- pop_verify_endpoint: string;
28
14
  mrz?: string;
29
- };
30
- export type MrtdPopVerificationResult = {
15
+ pop_verify_endpoint: string;
16
+ }
17
+ export interface MrtdPopVerificationResult {
31
18
  mrtd_val_pop_nonce: string;
32
19
  redirect_uri: string;
33
- };
20
+ }
21
+ export interface MrtdProofChallengeInfo {
22
+ aud: string;
23
+ exp: number;
24
+ htm: "POST";
25
+ htu: string;
26
+ iat: number;
27
+ iss: string;
28
+ mrtd_auth_session: string;
29
+ mrtd_pop_jwt_nonce: string;
30
+ state: string;
31
+ status: "require_interaction";
32
+ type: "mrtd+ias";
33
+ }
34
34
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/issuance/api/mrtd-pop/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/issuance/api/mrtd-pop/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,yBAAyB;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -1,28 +1,25 @@
1
1
  import * as z from "zod";
2
- export type CredentialFormat = "dc+sd-jwt" | "mso_mdoc";
3
- export type ParsedCredential = {
4
- /** Attribute key */
5
- [claim: string]: {
6
- name: /* if i18n is provided */ Record<string, string> | /* if no i18n is provided */ string | undefined;
7
- value: unknown;
8
- };
9
- };
10
2
  export type AuthorizationDetail = z.infer<typeof AuthorizationDetail>;
3
+ export type CredentialFormat = "dc+sd-jwt" | "mso_mdoc";
4
+ export type ParsedCredential = Record<string, {
5
+ name: /* if i18n is provided */ Record<string, string> | /* if no i18n is provided */ string | undefined;
6
+ value: unknown;
7
+ }>;
11
8
  export declare const AuthorizationDetail: z.ZodObject<{
12
- type: z.ZodLiteral<"openid_credential">;
13
9
  credential_configuration_id: z.ZodString;
14
10
  credential_identifiers: z.ZodArray<z.ZodString>;
11
+ type: z.ZodLiteral<"openid_credential">;
15
12
  }, z.core.$strip>;
16
13
  export type TokenResponse = z.infer<typeof TokenResponse>;
17
14
  export declare const TokenResponse: z.ZodObject<{
18
15
  access_token: z.ZodString;
19
- refresh_token: z.ZodOptional<z.ZodString>;
20
16
  authorization_details: z.ZodArray<z.ZodObject<{
21
- type: z.ZodLiteral<"openid_credential">;
22
17
  credential_configuration_id: z.ZodString;
23
18
  credential_identifiers: z.ZodArray<z.ZodString>;
19
+ type: z.ZodLiteral<"openid_credential">;
24
20
  }, z.core.$strip>>;
25
21
  expires_in: z.ZodOptional<z.ZodNumber>;
22
+ refresh_token: z.ZodOptional<z.ZodString>;
26
23
  token_type: z.ZodString;
27
24
  }, z.core.$strip>;
28
25
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oBAAoB;IACpB,CAAC,KAAK,EAAE,MAAM,GAAG;QACf,IAAI,EACA,yBAAyB,CAAC,MAAM,CAC9B,MAAM,EACN,MAAM,CACP,GACD,4BAA4B,CAAC,MAAM,GACnC,SAAS,CAAC;QACd,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;iBAMxB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IACE,IAAI,EACA,yBAAyB,CAAC,MAAM,CAC9B,MAAM,EACN,MAAM,CACP,GACD,4BAA4B,CAAC,MAAM,GACnC,SAAS,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB,CACF,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;;;;iBAMxB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { AuthorizationDetail } from "../../../utils/par";
2
1
  import type { IssuerConfig } from "../api";
3
- type ResponseMode = "query" | "form_post.jwt";
2
+ import { AuthorizationDetail } from "../../../utils/par";
3
+ type ResponseMode = "form_post.jwt" | "query";
4
4
  /**
5
5
  * Ensures that the credential type requested is supported by the issuer and contained in the
6
6
  * issuer configuration.
@@ -1 +1 @@
1
- {"version":3,"file":"02-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/common/02-start-user-authorization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,KAAK,YAAY,GAAG,OAAO,GAAG,eAAe,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,YAAY,YAAY,EACxB,cAAc,MAAM,KACnB,mBAmBF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,YAAY,EACxB,eAAe,MAAM,EAAE,KACtB,YAwCF,CAAC"}
1
+ {"version":3,"file":"02-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/common/02-start-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,KAAK,YAAY,GAAG,eAAe,GAAG,OAAO,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,YAAY,YAAY,EACxB,cAAc,MAAM,KACnB,mBAmBF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,YAAY,EACxB,eAAe,MAAM,EAAE,KACtB,YA6CF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"06-verify-and-parse-credential.mdoc.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,QAAQ,CAAC;AAsL1E,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,0BAA0B,CA2C9E,CAAC"}
1
+ {"version":3,"file":"06-verify-and-parse-credential.mdoc.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,QAAQ,CAAC;AA6L1E,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,0BAA0B,CA8C9E,CAAC"}