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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (539) hide show
  1. package/README.md +2 -2
  2. package/lib/commonjs/api/index.js +13 -14
  3. package/lib/commonjs/api/index.js.map +1 -1
  4. package/lib/commonjs/credential/issuance/README.md +9 -9
  5. package/lib/commonjs/credential/issuance/index.js +2 -2
  6. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +2 -2
  7. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  8. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +2 -2
  10. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +2 -4
  12. package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
  13. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +1 -1
  14. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js.map +1 -1
  15. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +9 -9
  16. package/lib/commonjs/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
  17. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  19. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  21. package/lib/commonjs/credential/offer/README.md +10 -6
  22. package/lib/commonjs/credential/offer/index.js +2 -2
  23. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +2 -2
  24. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js.map +1 -1
  25. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +2 -2
  26. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js.map +1 -1
  27. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +2 -2
  28. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js.map +1 -1
  29. package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  30. package/lib/commonjs/credential/presentation/api/types.js +2 -2
  31. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  32. package/lib/commonjs/credential/presentation/index.js +2 -2
  33. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +9 -3
  34. package/lib/commonjs/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
  35. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
  36. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
  37. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
  38. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
  39. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +9 -11
  40. package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
  41. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js.map +1 -1
  42. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +1 -1
  43. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js.map +1 -1
  44. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  45. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  46. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js.map +1 -1
  47. package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  48. package/lib/commonjs/credential/status/README.md +2 -2
  49. package/lib/commonjs/credential/status/index.js +3 -3
  50. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
  51. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
  52. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +2 -2
  53. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js.map +1 -1
  54. package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  55. package/lib/commonjs/credential/trustmark/index.js +2 -2
  56. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
  57. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
  58. package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  59. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +3 -3
  60. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  61. package/lib/commonjs/credentials-catalogue/index.js +2 -2
  62. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +3 -3
  63. package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
  64. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +1 -1
  65. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js.map +1 -1
  66. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
  67. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  68. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  69. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +5 -5
  70. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  71. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +2 -2
  72. package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  73. package/lib/commonjs/index.js +9 -3
  74. package/lib/commonjs/index.js.map +1 -1
  75. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/README.md +9 -9
  76. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
  77. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/types.js +4 -4
  78. package/lib/commonjs/key-attestation/api/types.js.map +1 -0
  79. package/lib/commonjs/{wallet-unit-attestation → key-attestation}/index.js +4 -4
  80. package/lib/commonjs/key-attestation/index.js.map +1 -0
  81. package/lib/commonjs/key-attestation/v1.0.0/index.js +11 -0
  82. package/lib/commonjs/key-attestation/v1.0.0/index.js.map +1 -0
  83. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/index.js +4 -4
  84. package/lib/commonjs/key-attestation/v1.4.6/index.js.map +1 -0
  85. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +4 -4
  86. package/lib/commonjs/key-attestation/v1.4.6/issuing.js.map +1 -0
  87. package/lib/commonjs/key-attestation/v1.4.6/mappers.js +13 -0
  88. package/lib/commonjs/key-attestation/v1.4.6/mappers.js.map +1 -0
  89. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.js +6 -6
  90. package/lib/commonjs/key-attestation/v1.4.6/types.js.map +1 -0
  91. package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +2 -2
  92. package/lib/commonjs/key-attestation/v1.4.6/utils.js.map +1 -0
  93. package/lib/commonjs/sd-jwt/types.js +2 -2
  94. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  95. package/lib/commonjs/sd-jwt/utils.js +7 -8
  96. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  97. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js +1 -1
  98. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
  99. package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  100. package/lib/commonjs/utils/config.js +2 -10
  101. package/lib/commonjs/utils/config.js.map +1 -1
  102. package/lib/commonjs/wallet-instance/index.js +2 -2
  103. package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  104. package/lib/commonjs/wallet-instance-attestation/index.js +2 -2
  105. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  106. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js.map +1 -1
  107. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  108. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  109. package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  110. package/lib/module/api/index.js +13 -14
  111. package/lib/module/api/index.js.map +1 -1
  112. package/lib/module/credential/issuance/README.md +9 -9
  113. package/lib/module/credential/issuance/index.js +1 -1
  114. package/lib/module/credential/issuance/index.js.map +1 -1
  115. package/lib/module/credential/issuance/mrtd-pop/index.js +3 -3
  116. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  117. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js.map +1 -1
  118. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +3 -3
  119. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js.map +1 -1
  120. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +3 -5
  121. package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
  122. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +2 -2
  123. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js.map +1 -1
  124. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +10 -10
  125. package/lib/module/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
  126. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
  127. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  128. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  129. package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  130. package/lib/module/credential/offer/README.md +10 -6
  131. package/lib/module/credential/offer/index.js +1 -1
  132. package/lib/module/credential/offer/index.js.map +1 -1
  133. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +3 -3
  134. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js.map +1 -1
  135. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +3 -3
  136. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js.map +1 -1
  137. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +3 -3
  138. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js.map +1 -1
  139. package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  140. package/lib/module/credential/presentation/api/types.js +2 -2
  141. package/lib/module/credential/presentation/api/types.js.map +1 -1
  142. package/lib/module/credential/presentation/index.js +1 -1
  143. package/lib/module/credential/presentation/index.js.map +1 -1
  144. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +9 -3
  145. package/lib/module/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
  146. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
  147. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
  148. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
  149. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
  150. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +11 -12
  151. package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
  152. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js.map +1 -1
  153. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +2 -2
  154. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js.map +1 -1
  155. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  156. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  157. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js.map +1 -1
  158. package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  159. package/lib/module/credential/status/README.md +2 -2
  160. package/lib/module/credential/status/index.js +1 -1
  161. package/lib/module/credential/status/index.js.map +1 -1
  162. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
  163. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
  164. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +2 -2
  165. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js.map +1 -1
  166. package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  167. package/lib/module/credential/trustmark/index.js +1 -1
  168. package/lib/module/credential/trustmark/index.js.map +1 -1
  169. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
  170. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
  171. package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  172. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +3 -3
  173. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  174. package/lib/module/credentials-catalogue/index.js +1 -1
  175. package/lib/module/credentials-catalogue/index.js.map +1 -1
  176. package/lib/module/credentials-catalogue/v1.0.0/types.js +3 -3
  177. package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
  178. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +1 -1
  179. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js.map +1 -1
  180. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
  181. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  182. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  183. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +5 -5
  184. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  185. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +2 -2
  186. package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  187. package/lib/module/index.js +3 -3
  188. package/lib/module/index.js.map +1 -1
  189. package/lib/module/{wallet-unit-attestation → key-attestation}/README.md +9 -9
  190. package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
  191. package/lib/module/{wallet-unit-attestation → key-attestation}/api/types.js +2 -2
  192. package/lib/module/key-attestation/api/types.js.map +1 -0
  193. package/lib/module/key-attestation/index.js +3 -0
  194. package/lib/module/key-attestation/index.js.map +1 -0
  195. package/lib/module/key-attestation/v1.0.0/index.js +4 -0
  196. package/lib/module/key-attestation/v1.0.0/index.js.map +1 -0
  197. package/lib/module/key-attestation/v1.4.6/index.js +10 -0
  198. package/lib/module/key-attestation/v1.4.6/index.js.map +1 -0
  199. package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +5 -5
  200. package/lib/module/key-attestation/v1.4.6/issuing.js.map +1 -0
  201. package/lib/module/key-attestation/v1.4.6/mappers.js +6 -0
  202. package/lib/module/key-attestation/v1.4.6/mappers.js.map +1 -0
  203. package/lib/module/key-attestation/v1.4.6/types.js +14 -0
  204. package/lib/module/key-attestation/v1.4.6/types.js.map +1 -0
  205. package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +3 -3
  206. package/lib/module/key-attestation/v1.4.6/utils.js.map +1 -0
  207. package/lib/module/sd-jwt/types.js +2 -2
  208. package/lib/module/sd-jwt/types.js.map +1 -1
  209. package/lib/module/sd-jwt/utils.js +7 -8
  210. package/lib/module/sd-jwt/utils.js.map +1 -1
  211. package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js +1 -1
  212. package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
  213. package/lib/module/trust/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  214. package/lib/module/utils/config.js +0 -7
  215. package/lib/module/utils/config.js.map +1 -1
  216. package/lib/module/wallet-instance/index.js +1 -1
  217. package/lib/module/wallet-instance/index.js.map +1 -1
  218. package/lib/module/wallet-instance/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  219. package/lib/module/wallet-instance-attestation/index.js +1 -1
  220. package/lib/module/wallet-instance-attestation/index.js.map +1 -1
  221. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
  222. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js.map +1 -1
  223. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
  224. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
  225. package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
  226. package/lib/typescript/api/index.d.ts +3 -3
  227. package/lib/typescript/api/index.d.ts.map +1 -1
  228. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +3 -3
  229. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  230. package/lib/typescript/credential/issuance/index.d.ts +1 -1
  231. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.d.ts.map +1 -1
  232. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.d.ts.map +1 -1
  233. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.d.ts.map +1 -1
  234. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.d.ts.map +1 -1
  235. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.d.ts.map +1 -1
  236. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.d.ts.map +1 -1
  237. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  238. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/mappers.d.ts +7 -0
  239. package/lib/typescript/credential/issuance/v1.4.6/mappers.d.ts.map +1 -0
  240. package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  241. package/lib/typescript/credential/offer/index.d.ts +1 -1
  242. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.d.ts +1 -1
  243. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.d.ts.map +1 -1
  244. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.d.ts +1 -1
  245. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.d.ts.map +1 -1
  246. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.d.ts +1 -1
  247. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.d.ts.map +1 -1
  248. package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  249. package/lib/typescript/credential/presentation/api/types.d.ts +3 -3
  250. package/lib/typescript/credential/presentation/index.d.ts +1 -1
  251. package/lib/typescript/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
  252. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.d.ts.map +1 -1
  253. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.d.ts.map +1 -1
  254. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.d.ts.map +1 -1
  255. package/lib/typescript/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
  256. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.d.ts.map +1 -1
  257. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.d.ts.map +1 -1
  258. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  259. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/mappers.d.ts +3 -1
  260. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
  261. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts.map +1 -1
  262. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/types.d.ts +2 -1
  263. package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  264. package/lib/typescript/credential/status/index.d.ts +1 -1
  265. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/01-status-list.d.ts.map +1 -1
  266. package/lib/typescript/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +1 -0
  267. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/03-get-status.d.ts.map +1 -1
  268. package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  269. package/lib/typescript/credential/trustmark/index.d.ts +1 -1
  270. package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts.map +1 -1
  271. package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  272. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +7 -7
  273. package/lib/typescript/credentials-catalogue/index.d.ts +1 -1
  274. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +5 -5
  275. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts.map +1 -1
  276. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.d.ts.map +1 -1
  277. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  278. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
  279. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts +4 -4
  280. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  281. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts +2 -2
  282. package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
  283. package/lib/typescript/index.d.ts +3 -3
  284. package/lib/typescript/index.d.ts.map +1 -1
  285. package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/index.d.ts +10 -10
  286. package/lib/typescript/key-attestation/api/index.d.ts.map +1 -0
  287. package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/types.d.ts +3 -3
  288. package/lib/typescript/key-attestation/api/types.d.ts.map +1 -0
  289. package/lib/typescript/key-attestation/index.d.ts +4 -0
  290. package/lib/typescript/key-attestation/index.d.ts.map +1 -0
  291. package/lib/typescript/key-attestation/v1.0.0/index.d.ts +3 -0
  292. package/lib/typescript/key-attestation/v1.0.0/index.d.ts.map +1 -0
  293. package/lib/typescript/key-attestation/v1.4.6/index.d.ts +3 -0
  294. package/lib/typescript/key-attestation/v1.4.6/index.d.ts.map +1 -0
  295. package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts +3 -0
  296. package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts.map +1 -0
  297. package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/mappers.d.ts +1 -1
  298. package/lib/typescript/key-attestation/v1.4.6/mappers.d.ts.map +1 -0
  299. package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.d.ts +4 -4
  300. package/lib/typescript/key-attestation/v1.4.6/types.d.ts.map +1 -0
  301. package/lib/typescript/key-attestation/v1.4.6/utils.d.ts +7 -0
  302. package/lib/typescript/key-attestation/v1.4.6/utils.d.ts.map +1 -0
  303. package/lib/typescript/sd-jwt/types.d.ts +2 -2
  304. package/lib/typescript/sd-jwt/utils.d.ts +3 -2
  305. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  306. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts +1 -0
  307. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts.map +1 -1
  308. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts +4 -0
  309. package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  310. package/lib/typescript/utils/config.d.ts +0 -4
  311. package/lib/typescript/utils/config.d.ts.map +1 -1
  312. package/lib/typescript/wallet-instance/index.d.ts +1 -1
  313. package/lib/typescript/wallet-instance/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  314. package/lib/typescript/wallet-instance-attestation/index.d.ts +1 -1
  315. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
  316. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.d.ts.map +1 -1
  317. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
  318. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
  319. package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
  320. package/package.json +6 -6
  321. package/src/api/index.ts +14 -15
  322. package/src/credential/issuance/README.md +9 -9
  323. package/src/credential/issuance/api/05-obtain-credential.ts +3 -3
  324. package/src/credential/issuance/index.ts +1 -1
  325. package/src/credential/issuance/mrtd-pop/index.ts +3 -3
  326. package/src/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.ts +3 -3
  327. package/src/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.ts +3 -5
  328. package/src/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.ts +2 -2
  329. package/src/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.ts +10 -12
  330. package/src/credential/offer/README.md +10 -6
  331. package/src/credential/offer/index.ts +1 -1
  332. package/src/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.ts +3 -3
  333. package/src/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.ts +3 -3
  334. package/src/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.ts +3 -3
  335. package/src/credential/presentation/api/types.ts +2 -2
  336. package/src/credential/presentation/index.ts +1 -1
  337. package/src/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.ts +8 -4
  338. package/src/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.ts +1 -1
  339. package/src/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.ts +12 -19
  340. package/src/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.ts +2 -2
  341. package/src/credential/presentation/{v1.3.3 → v1.4.6}/mappers.ts +1 -1
  342. package/src/credential/status/README.md +2 -2
  343. package/src/credential/status/index.ts +1 -1
  344. package/src/credential/status/{v1.3.3 → v1.4.6}/03-get-status.ts +2 -2
  345. package/src/credential/trustmark/index.ts +1 -1
  346. package/src/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.ts +1 -1
  347. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +3 -3
  348. package/src/credentials-catalogue/index.ts +1 -1
  349. package/src/credentials-catalogue/v1.0.0/types.ts +3 -3
  350. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.ts +1 -1
  351. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/types.ts +5 -5
  352. package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.ts +2 -2
  353. package/src/index.ts +4 -2
  354. package/src/{wallet-unit-attestation → key-attestation}/README.md +9 -9
  355. package/src/{wallet-unit-attestation → key-attestation}/api/index.ts +10 -12
  356. package/src/{wallet-unit-attestation → key-attestation}/api/types.ts +3 -5
  357. package/src/key-attestation/index.ts +3 -0
  358. package/src/key-attestation/v1.0.0/index.ts +5 -0
  359. package/src/key-attestation/v1.4.6/index.ts +12 -0
  360. package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.ts +7 -7
  361. package/src/key-attestation/v1.4.6/mappers.ts +10 -0
  362. package/src/key-attestation/v1.4.6/types.ts +20 -0
  363. package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.ts +4 -4
  364. package/src/sd-jwt/types.ts +2 -2
  365. package/src/sd-jwt/utils.ts +7 -3
  366. package/src/trust/{v1.3.3 → v1.4.6}/entities.ts +1 -1
  367. package/src/utils/config.ts +0 -7
  368. package/src/wallet-instance/index.ts +1 -1
  369. package/src/wallet-instance-attestation/index.ts +1 -1
  370. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
  371. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
  372. package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
  373. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
  374. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +0 -1
  375. package/lib/commonjs/wallet-unit-attestation/index.js.map +0 -1
  376. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +0 -11
  377. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
  378. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
  379. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
  380. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +0 -13
  381. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
  382. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
  383. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
  384. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
  385. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
  386. package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
  387. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
  388. package/lib/module/wallet-unit-attestation/api/types.js.map +0 -1
  389. package/lib/module/wallet-unit-attestation/index.js +0 -3
  390. package/lib/module/wallet-unit-attestation/index.js.map +0 -1
  391. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +0 -4
  392. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
  393. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +0 -10
  394. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
  395. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
  396. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +0 -6
  397. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
  398. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +0 -14
  399. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
  400. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
  401. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +0 -1
  402. package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +0 -1
  403. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +0 -1
  404. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +0 -1
  405. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +0 -1
  406. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +0 -1
  407. package/lib/typescript/wallet-unit-attestation/index.d.ts +0 -4
  408. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +0 -1
  409. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +0 -3
  410. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +0 -1
  411. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +0 -3
  412. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +0 -1
  413. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +0 -3
  414. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +0 -1
  415. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +0 -1
  416. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +0 -1
  417. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +0 -7
  418. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +0 -1
  419. package/src/wallet-unit-attestation/index.ts +0 -3
  420. package/src/wallet-unit-attestation/v1.0.0/index.ts +0 -5
  421. package/src/wallet-unit-attestation/v1.3.3/index.ts +0 -12
  422. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +0 -10
  423. package/src/wallet-unit-attestation/v1.3.3/types.ts +0 -22
  424. /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +0 -0
  425. /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
  426. /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/index.js +0 -0
  427. /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  428. /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
  429. /package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js +0 -0
  430. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +0 -0
  431. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +0 -0
  432. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +0 -0
  433. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js +0 -0
  434. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  435. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +0 -0
  436. /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js +0 -0
  437. /package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +0 -0
  438. /package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
  439. /package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/index.js +0 -0
  440. /package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
  441. /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +0 -0
  442. /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +0 -0
  443. /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  444. /package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
  445. /package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js +0 -0
  446. /package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js +0 -0
  447. /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +0 -0
  448. /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +0 -0
  449. /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  450. /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
  451. /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +0 -0
  452. /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +0 -0
  453. /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
  454. /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/index.js +0 -0
  455. /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  456. /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
  457. /package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js +0 -0
  458. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +0 -0
  459. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +0 -0
  460. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +0 -0
  461. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js +0 -0
  462. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  463. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +0 -0
  464. /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js +0 -0
  465. /package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +0 -0
  466. /package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
  467. /package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js +0 -0
  468. /package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
  469. /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +0 -0
  470. /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +0 -0
  471. /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  472. /package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
  473. /package/lib/module/trust/{v1.3.3 → v1.4.6}/types.js +0 -0
  474. /package/lib/module/wallet-instance/{v1.3.3 → v1.4.6}/index.js +0 -0
  475. /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +0 -0
  476. /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +0 -0
  477. /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
  478. /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
  479. /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +0 -0
  480. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.d.ts +0 -0
  481. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.d.ts +0 -0
  482. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.d.ts +0 -0
  483. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.d.ts +0 -0
  484. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.d.ts +0 -0
  485. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.d.ts +0 -0
  486. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  487. /package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts +0 -0
  488. /package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  489. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.d.ts +0 -0
  490. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.d.ts +0 -0
  491. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.d.ts +0 -0
  492. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.d.ts +0 -0
  493. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.d.ts +0 -0
  494. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.d.ts +0 -0
  495. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.d.ts +0 -0
  496. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  497. /package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts +0 -0
  498. /package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/01-status-list.d.ts +0 -0
  499. /package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.d.ts +0 -0
  500. /package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/03-get-status.d.ts +0 -0
  501. /package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  502. /package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts +0 -0
  503. /package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  504. /package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts +0 -0
  505. /package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.d.ts +0 -0
  506. /package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  507. /package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts +0 -0
  508. /package/lib/typescript/wallet-instance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  509. /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
  510. /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.d.ts +0 -0
  511. /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts +0 -0
  512. /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts +0 -0
  513. /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts +0 -0
  514. /package/src/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.ts +0 -0
  515. /package/src/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.ts +0 -0
  516. /package/src/credential/issuance/{v1.3.3 → v1.4.6}/index.ts +0 -0
  517. /package/src/credential/issuance/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
  518. /package/src/credential/issuance/{v1.3.3 → v1.4.6}/types.ts +0 -0
  519. /package/src/credential/offer/{v1.3.3 → v1.4.6}/index.ts +0 -0
  520. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.ts +0 -0
  521. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.ts +0 -0
  522. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.ts +0 -0
  523. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/index.ts +0 -0
  524. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.ts +0 -0
  525. /package/src/credential/presentation/{v1.3.3 → v1.4.6}/types.ts +0 -0
  526. /package/src/credential/status/{v1.3.3 → v1.4.6}/01-status-list.ts +0 -0
  527. /package/src/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.ts +0 -0
  528. /package/src/credential/status/{v1.3.3 → v1.4.6}/index.ts +0 -0
  529. /package/src/credential/trustmark/{v1.3.3 → v1.4.6}/index.ts +0 -0
  530. /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.ts +0 -0
  531. /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/index.ts +0 -0
  532. /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
  533. /package/src/trust/{v1.3.3 → v1.4.6}/types.ts +0 -0
  534. /package/src/wallet-instance/{v1.3.3 → v1.4.6}/index.ts +0 -0
  535. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.ts +0 -0
  536. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.ts +0 -0
  537. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
  538. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.ts +0 -0
  539. /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.ts +0 -0
@@ -10,14 +10,14 @@ export type PresentationParams = z.infer<typeof PresentationParams>;
10
10
  export const PresentationParams = z.object({
11
11
  client_id: z.string().nonempty(),
12
12
  request: z.string().optional(),
13
- request_uri: z.string().url().optional(),
13
+ request_uri: z.url().optional(),
14
14
  request_uri_method: z.enum(["get", "post"]).optional(),
15
15
  state: z.string().optional(),
16
16
  });
17
17
 
18
18
  export type WalletMetadata = z.infer<typeof WalletMetadata>;
19
19
  export const WalletMetadata = z.object({
20
- authorization_endpoint: z.string().url(),
20
+ authorization_endpoint: z.url(),
21
21
  client_id_prefixes_supported: z.array(z.string()).optional(),
22
22
  client_id_schemes_supported: z.array(z.string()).optional(),
23
23
  request_object_signing_alg_values_supported: z.array(z.string()).optional(),
@@ -2,4 +2,4 @@ import * as Errors from "./common/errors";
2
2
  export { Errors };
3
3
  export type * from "./api";
4
4
  export { RemotePresentation as V1_0_0 } from "./v1.0.0";
5
- export { RemotePresentation as V1_3_3 } from "./v1.3.3";
5
+ export { RemotePresentation as V1_4_6 } from "./v1.4.6";
@@ -8,16 +8,20 @@ import { InvalidQRCodeError } from "../common/errors";
8
8
  export const startFlowFromQR: RemotePresentationApi["startFlowFromQR"] = (
9
9
  params,
10
10
  ) => {
11
- const parsed = PresentationParams.safeParse(params);
11
+ const nonNullParams = Object.fromEntries(
12
+ Object.entries(params).filter(([_, value]) => value !== null),
13
+ );
14
+ const parsed = PresentationParams.safeParse({
15
+ ...nonNullParams,
16
+ request_uri_method: nonNullParams.request_uri_method ?? "get",
17
+ });
12
18
 
13
19
  if (!parsed.success) {
14
20
  throw new InvalidQRCodeError(parsed.error.message);
15
21
  }
16
22
 
17
23
  try {
18
- const validatedParams = validateAuthorizationRequestParams(parsed.data);
19
-
20
- return validatedParams;
24
+ return validateAuthorizationRequestParams(parsed.data);
21
25
  } catch (e) {
22
26
  throw new InvalidQRCodeError(e instanceof Error ? e.message : String(e));
23
27
  }
@@ -1,6 +1,6 @@
1
1
  import type { RemotePresentationApi } from "../api";
2
2
 
3
- import { getRelyingPartyEntityConfiguration } from "../../../trust/v1.3.3/entities";
3
+ import { getRelyingPartyEntityConfiguration } from "../../../trust/v1.4.6/entities";
4
4
  import { mapToRelyingPartyConfig } from "./mappers";
5
5
 
6
6
  export const evaluateRelyingPartyTrust: RemotePresentationApi["evaluateRelyingPartyTrust"] =
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ClientIdPrefix,
3
+ createX509HashClientId,
3
4
  extractClientIdPrefix,
4
5
  parseAuthorizeRequest as sdkParseAuthorizeRequest,
5
6
  } from "@pagopa/io-wallet-oid4vp";
6
- import QuickCrypto from "react-native-quick-crypto";
7
7
 
8
8
  import type { RelyingPartyConfig, RemotePresentationApi } from "../api";
9
9
  import type { RawRequestObject } from "./types";
10
10
 
11
11
  import { partialCallbacks } from "../../../utils/callbacks";
12
- import { sdkConfigV1_3 } from "../../../utils/config";
12
+ import { sdkConfigV1_4 } from "../../../utils/config";
13
13
  import { IoWalletError } from "../../../utils/errors";
14
14
  import { InvalidRequestObjectError } from "../common/errors";
15
15
  import { mapToRequestObject } from "./mappers";
@@ -21,7 +21,7 @@ export const verifyRequestObject: RemotePresentationApi["verifyRequestObject"] =
21
21
  callbacks: {
22
22
  verifyJwt: partialCallbacks.verifyJwt,
23
23
  },
24
- config: sdkConfigV1_3,
24
+ config: sdkConfigV1_4,
25
25
  requestObjectJwt: requestObjectEncodedJwt,
26
26
  }).catch(mapSdkRequestObjectError);
27
27
 
@@ -30,7 +30,7 @@ export const verifyRequestObject: RemotePresentationApi["verifyRequestObject"] =
30
30
  const { clientId, prefix } = extractClientIdPrefix(fullClientId);
31
31
 
32
32
  if (prefix === ClientIdPrefix.X509_HASH) {
33
- validateX509HashClient(rawRequestObject.header.x5c, clientId);
33
+ await validateX509HashClient(fullClientId, rawRequestObject.header.x5c);
34
34
  }
35
35
 
36
36
  if (
@@ -73,23 +73,16 @@ const validateOpenIDFederationClient = (
73
73
  }
74
74
  };
75
75
 
76
- const validateX509HashClient = (
77
- certificateChain: string[],
78
- x509Hash: string,
76
+ const validateX509HashClient = async (
77
+ fullClientId: string,
78
+ certificateChain: string[] = [],
79
79
  ) => {
80
- const cert = certificateChain[0];
81
-
82
- if (!cert) {
83
- throw new InvalidRequestObjectError(
84
- "Certificate chain is empty, cannot validate x509_hash",
85
- );
86
- }
87
-
88
- const calculatedHash = QuickCrypto.createHash("sha-256")
89
- .update(cert, "base64")
90
- .digest("base64url");
80
+ const calculatedHash = await createX509HashClientId({
81
+ certificateChain,
82
+ hash: partialCallbacks.hash,
83
+ });
91
84
 
92
- if (x509Hash !== calculatedHash) {
85
+ if (fullClientId !== calculatedHash) {
93
86
  throw new InvalidRequestObjectError(
94
87
  "x509_hash does not match the hash of the x5c leaf certificate",
95
88
  );
@@ -8,7 +8,7 @@ import type { RemotePresentationApi } from "../api";
8
8
  import { prepareVpTokenMdoc } from "../../../mdoc";
9
9
  import { prepareVpToken } from "../../../sd-jwt";
10
10
  import { partialCallbacks } from "../../../utils/callbacks";
11
- import { sdkConfigV1_3 } from "../../../utils/config";
11
+ import { sdkConfigV1_4 } from "../../../utils/config";
12
12
  import { createCryptoContextFor } from "../../../utils/crypto";
13
13
  import {
14
14
  IoWalletError,
@@ -139,7 +139,7 @@ export const sendAuthorizationResponse: RemotePresentationApi["sendAuthorization
139
139
  encryptJwe: partialCallbacks.encryptJwe,
140
140
  generateRandom: partialCallbacks.generateRandom,
141
141
  },
142
- config: sdkConfigV1_3,
142
+ config: sdkConfigV1_4,
143
143
  requestObject,
144
144
  rpJwks,
145
145
  vp_token,
@@ -1,7 +1,7 @@
1
1
  import type { RelyingPartyConfig } from "../api/RelyingPartyConfig";
2
2
  import type { RequestObject } from "../api/types";
3
3
 
4
- import { RelyingPartyEntityConfiguration } from "../../../trust/v1.3.3/types";
4
+ import { RelyingPartyEntityConfiguration } from "../../../trust/v1.4.6/types";
5
5
  import { createMapper } from "../../../utils/mappers";
6
6
  import { RawRequestObject } from "./types";
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  This flow is used to obtain the credential status from its credential issuer. The following methods are currently supported:
4
4
  - Status Assertion (v1.0.0)
5
- - Token Status List (v1.3.3)
5
+ - Token Status List (v1.4.6)
6
6
 
7
7
  Each step in the flow is imported from the related file which is named with a sequential number.
8
8
 
@@ -100,7 +100,7 @@ return {
100
100
  ```ts
101
101
  import { IoWallet } from "@pagopa/io-react-native-wallet";
102
102
 
103
- const wallet = new IoWallet({ version: "1.3.3" });
103
+ const wallet = new IoWallet({ version: "1.4.6" });
104
104
 
105
105
  const credentialIssuerUrl = "https://issuer.example.com";
106
106
 
@@ -1,3 +1,3 @@
1
1
  export * from "./api";
2
2
  export { CredentialStatus as V1_0_0 } from "./v1.0.0";
3
- export { CredentialStatus as V1_3_3 } from "./v1.3.3";
3
+ export { CredentialStatus as V1_4_6 } from "./v1.4.6";
@@ -6,14 +6,14 @@ import { IoWalletError } from "../../../utils/errors";
6
6
 
7
7
  /**
8
8
  * Mapping of status bits to their corresponding meaning as defined in the specification.
9
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/credential-revocation.html#token-status-lists
9
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/credential-revocation.html#token-status-lists
10
10
  */
11
11
  const CredentialStatusMap = {
12
12
  0x00: "VALID",
13
13
  0x01: "INVALID",
14
14
  0x02: "SUSPENDED",
15
15
  0x03: "UPDATE",
16
- 0x0b: "ATTRIBUTE_UPDATE",
16
+ 0x0f: "ATTRIBUTE_UPDATE",
17
17
  } as const;
18
18
 
19
19
  type CredentialStatusBit = keyof typeof CredentialStatusMap;
@@ -1,3 +1,3 @@
1
1
  export type * from "./api";
2
2
  export { Trustmark as V1_0_0 } from "./v1.0.0";
3
- export { Trustmark as V1_3_3 } from "./v1.3.3";
3
+ export { Trustmark as V1_4_6 } from "./v1.4.6";
@@ -3,5 +3,5 @@ import { type TrustmarkApi as Api } from "../api";
3
3
 
4
4
  export const getCredentialTrustmark: Api["getCredentialTrustmark"] =
5
5
  async () => {
6
- throw new UnimplementedFeatureError("getCredentialTrustmark", "1.3.3");
6
+ throw new UnimplementedFeatureError("getCredentialTrustmark", "1.4.6");
7
7
  };
@@ -73,9 +73,9 @@ export const CredentialFormat = z.object({
73
73
  configuration_id: z.string(),
74
74
  docType: z.string().optional(),
75
75
  format: z.enum(["dc+sd-jwt", "mso_mdoc"]),
76
- schema_uri: z.string().url().optional(),
76
+ schema_uri: z.url().optional(),
77
77
  "schema_uri#integrity": z.string().optional(),
78
- vct: z.string().url().optional(),
78
+ vct: z.url().optional(),
79
79
  });
80
80
  export type CredentialFormat = z.infer<typeof CredentialFormat>;
81
81
 
@@ -161,7 +161,7 @@ export const DigitalCredentialsCatalogue = z.object({
161
161
  iat: UnixTime,
162
162
  localization: LocalizationInfo.optional(),
163
163
  taxonomy: Taxonomy.optional(),
164
- taxonomy_uri: z.string().url(),
164
+ taxonomy_uri: z.url(),
165
165
  });
166
166
  export type DigitalCredentialsCatalogue = z.infer<
167
167
  typeof DigitalCredentialsCatalogue
@@ -1,3 +1,3 @@
1
1
  export type * from "./api";
2
2
  export { CredentialsCatalogue as V1_0_0 } from "./v1.0.0";
3
- export { CredentialsCatalogue as V1_3_3 } from "./v1.3.3";
3
+ export { CredentialsCatalogue as V1_4_6 } from "./v1.4.6";
@@ -39,9 +39,9 @@ const CredentialFormat = z.object({
39
39
  configuration_id: z.string(),
40
40
  docType: z.string().optional(),
41
41
  format: z.enum(["dc+sd-jwt", "mso_mdoc"]),
42
- schema_uri: z.string().url().optional(),
42
+ schema_uri: z.url().optional(),
43
43
  "schema_uri#integrity": z.string().optional(),
44
- vct: z.string().url().optional(),
44
+ vct: z.url().optional(),
45
45
  });
46
46
 
47
47
  const Claim = z.object({
@@ -90,7 +90,7 @@ export const DigitalCredentialsCatalogueJwt = z.object({
90
90
  credentials: z.array(DigitalCredential),
91
91
  exp: UnixTime,
92
92
  iat: UnixTime,
93
- taxonomy_uri: z.string().url(),
93
+ taxonomy_uri: z.url(),
94
94
  }),
95
95
  });
96
96
  export type DigitalCredentialsCatalogueJwt = z.infer<
@@ -1,4 +1,4 @@
1
- import { getTrustAnchorEntityConfiguration } from "../../trust/v1.0.0/entities"; // TODO: use trust from v1.3.3
1
+ import { getTrustAnchorEntityConfiguration } from "../../trust/v1.0.0/entities"; // TODO: use trust from v1.4.6
2
2
  import { type CredentialsCatalogueApi as Api } from "../api";
3
3
  import { mapToCredentialsCatalogue } from "./mappers";
4
4
  import {
@@ -148,7 +148,7 @@ const JwtHeader = z.object({
148
148
 
149
149
  /**
150
150
  * Schema registry, available at a dedicated endpoint.
151
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html#schema-registry
151
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#schema-registry
152
152
  */
153
153
  export const SchemaRegistry = z.object({
154
154
  last_modified: z.string().optional(),
@@ -160,7 +160,7 @@ export type SchemaRegistry = z.infer<typeof SchemaRegistry>;
160
160
 
161
161
  /**
162
162
  * Authentic Source registry, available at a dedicated endpoint.
163
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html#authentic-source-registry
163
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#authentic-source-registry
164
164
  */
165
165
  export const AuthenticSourceRegistry = z.object({
166
166
  authentic_sources: z.array(AuthenticSource),
@@ -180,7 +180,7 @@ export type AuthenticSourceRegistry = z.infer<typeof AuthenticSourceRegistry>;
180
180
 
181
181
  /**
182
182
  * The Digital Credentials Catalogue published by the Trust Anchor.
183
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html#digital-credentials-catalog
183
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#digital-credentials-catalog
184
184
  */
185
185
  export const DigitalCredentialsCatalogueJwt = z.object({
186
186
  header: JwtHeader,
@@ -209,7 +209,7 @@ export type DigitalCredentialsCatalogueJwt = z.infer<
209
209
  /**
210
210
  * Registry discovery info, used to discover all the Registry Infrastructure endpoints.
211
211
  * This is the entrypoint to build the full catalogue.
212
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html#registry-discovery-endpoint
212
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#registry-discovery-endpoint
213
213
  */
214
214
  const RegistryDiscoveryEndpoints = z.object({
215
215
  authentic_sources: z.string(),
@@ -263,7 +263,7 @@ const TaxonomyDomain = z.object({
263
263
  /**
264
264
  * Taxonomy registry, available at a dedicated endpoint.
265
265
  * Provides a hierarchical classification of domains, classes, and purposes.
266
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html#taxonomy
266
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#taxonomy
267
267
  */
268
268
  export const TaxonomyRegistry = z.object({
269
269
  description_l10n_id: z.string(),
@@ -14,7 +14,7 @@ type FetchRegistryParams<T> = {
14
14
  /**
15
15
  * Utility to fetch an entity from the Registry Infrastructure.
16
16
  * The function supports `application/json` and signed JOSE/JWT responses.
17
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html
17
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html
18
18
  *
19
19
  * @param url The url to fetch from
20
20
  * @param params.schema The Zod schema to validate the response
@@ -73,7 +73,7 @@ export const fetchRegistry = async <T>(
73
73
  /**
74
74
  * Fetch a locale bundle file from the Registry Infrastructure.
75
75
  * Bundle files are flat JSON objects mapping l10n_id keys to translated strings.
76
- * @see https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/registry.html
76
+ * @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html
77
77
  *
78
78
  * @param baseUri The base URI from a registry's localization object
79
79
  * @param locale The locale code (e.g. "it", "en")
package/src/index.ts CHANGED
@@ -10,11 +10,13 @@ import * as RemotePresentation from "./credential/presentation";
10
10
  import * as CredentialStatus from "./credential/status";
11
11
  import * as Trustmark from "./credential/trustmark";
12
12
  import * as CredentialsCatalogue from "./credentials-catalogue";
13
+ import * as KeyAttestation from "./key-attestation";
13
14
  import * as Mdoc from "./mdoc";
14
15
  import * as SdJwt from "./sd-jwt";
15
16
  import * as Trust from "./trust";
16
17
  import {
17
18
  createCryptoContextFor,
19
+ getJwkFromCertificateChain,
18
20
  type KeyAttestationCryptoContext,
19
21
  } from "./utils/crypto";
20
22
  import * as Errors from "./utils/errors";
@@ -23,7 +25,6 @@ import * as Logging from "./utils/logging";
23
25
  import { AuthorizationDetail, AuthorizationDetails } from "./utils/par";
24
26
  import * as WalletInstance from "./wallet-instance";
25
27
  import * as WalletInstanceAttestation from "./wallet-instance-attestation";
26
- import * as WalletUnitAttestation from "./wallet-unit-attestation";
27
28
 
28
29
  export {
29
30
  AuthorizationDetail,
@@ -35,6 +36,8 @@ export {
35
36
  CredentialStatus,
36
37
  Errors,
37
38
  fixBase64EncodingOnKey,
39
+ getJwkFromCertificateChain,
40
+ KeyAttestation,
38
41
  Logging,
39
42
  Mdoc,
40
43
  RemotePresentation,
@@ -43,7 +46,6 @@ export {
43
46
  Trustmark,
44
47
  WalletInstance,
45
48
  WalletInstanceAttestation,
46
- WalletUnitAttestation,
47
49
  };
48
50
 
49
51
  export type {
@@ -1,15 +1,15 @@
1
- # Wallet Unit Attestation
1
+ # Key Attestation
2
2
 
3
- This flow is used to obtain a [**Wallet Unit Attestation**](https://italia.github.io/eid-wallet-it-docs/releases/1.3.3/en/wallet-solution-requirements.html#wallet-unit-attestation-requirements). The WUA is bound to one or more cryptographic keys, that must be provided by the consumer application:
4
- - `keyAttestationCryptoContext` one or more objects that extend the `CryptoContext` with a function to generate a WSCD-stored key with an optional key attestation (Android only); these are the keys that will be attested in the WUA.
3
+ This flow is used to obtain a [**Key Attestation**](https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/wallet-solution-requirements.html#key-attestation-requirements) (KA). The Key Attestation is bound to one or more cryptographic keys, that must be provided by the consumer application:
4
+ - `keyAttestationCryptoContext` one or more objects that extend the `CryptoContext` with a function to generate a WSCD-stored key with an optional [Android key attestation](https://developer.android.com/privacy-and-security/security-key-attestation); these are the keys that will be attested in the KA.
5
5
  - `integrityContext` object that is used to verify the integrity of the device where the app is running. The key tag must be the same used when creating the Wallet Instance.
6
6
 
7
7
  #### Note
8
- Before invoking `WalletUnitAttestation`'s functions, it is necessary to check whether the feature is supported by the current IoWallet instance.
8
+ Before invoking `KeyAttestation`'s functions, it is necessary to check whether the feature is supported by the current IoWallet instance.
9
9
  ```ts
10
- const wallet = new IoWallet({ version: "1.3.3" });
10
+ const wallet = new IoWallet({ version: "1.4.6" });
11
11
 
12
- if (wallet.WalletUnitAttestation.isSupported) {
12
+ if (wallet.KeyAttestation.isSupported) {
13
13
  // Get the WUA
14
14
  }
15
15
  ```
@@ -46,11 +46,11 @@ const keysToAttest: KeyAttestationCryptoContext[] = [
46
46
  ];
47
47
 
48
48
  /**
49
- * Obtain a new Wallet Unit Attestation.
49
+ * Obtain a new Key Attestation.
50
50
  * WARNING: The integrity context must be the same used when creating the Wallet Instance with the same keytag.
51
51
  */
52
- const wallet = new IoWallet({ version: "1.3.3" });
53
- const issuedAttestation = await wallet.WalletUnitAttestation.getAttestation(
52
+ const wallet = new IoWallet({ version: "1.4.6" });
53
+ const issuedAttestation = await wallet.KeyAttestation.getAttestation(
54
54
  {
55
55
  walletProviderBaseUrl: WALLET_PROVIDER_BASE_URL,
56
56
  walletSolutionId: "exampleId",
@@ -1,38 +1,36 @@
1
1
  import type { KeyAttestationCryptoContext } from "../../utils/crypto";
2
2
  import type { IntegrityContext } from "../../utils/integrity";
3
3
  import type {
4
- DecodedWalletUnitAttestation,
4
+ DecodedKeyAttestation,
5
5
  WalletAttestation,
6
6
  WalletAttestationRequestParams,
7
7
  } from "./types";
8
8
 
9
- export type WalletUnitAttestationApi =
10
- | UnsupportedApi
11
- | WalletUnitAttestationSupportedApi;
9
+ export type KeyAttestationApi = KeyAttestationSupportedApi | UnsupportedApi;
12
10
 
13
- export interface WalletUnitAttestationSupportedApi {
11
+ export interface KeyAttestationSupportedApi {
14
12
  /**
15
- * Decode a given JWT to get the parsed Wallet Unit Attestation object they define.
13
+ * Decode a given JWT to get the parsed Key Attestation object they define.
16
14
  * It ensures provided data is in a valid shape.
17
15
  *
18
16
  * It DOES NOT verify token signature.
19
17
  *
20
- * @param token The encoded token that represents a valid jwt for Wallet Unit Attestation
21
- * @returns The validated Wallet Unit Attestation object
18
+ * @param token The encoded token that represents a valid jwt for Key Attestation
19
+ * @returns The validated Key Attestation object
22
20
  * @throws A decoding error if the token doesn't resolve in a valid JWT
23
- * @throws A validation error if the provided data doesn't result in a valid Wallet Unit Attestation
21
+ * @throws A validation error if the provided data doesn't result in a valid Key Attestation
24
22
  */
25
- decode(token: string): DecodedWalletUnitAttestation;
23
+ decode(token: string): DecodedKeyAttestation;
26
24
 
27
25
  /**
28
- * Request a Wallet Unit Attestation (WUA) to the Wallet provider with one or more keys to attest.
26
+ * Request a Key Attestation (KA) to the Wallet provider with one or more keys to attest.
29
27
  * Each key must be provided as a {@link KeyAttestationCryptoContext}.
30
28
  *
31
29
  * @param requestParams Wallet Provider data for the Wallet Attestation request
32
30
  * @param ctx.keysToAttest The list of KeyAttestationCryptoContext's of the keys to attest
33
31
  * @param ctx.integrityContext The hardware key pair associated with the Wallet Instance
34
32
  * @param ctx.appFetch (optional) Http client
35
- * @returns The generated Wallet Unit Attestation with the attested keys
33
+ * @returns The generated Key Attestation with the attested keys
36
34
  */
37
35
  getAttestation(
38
36
  requestParams: WalletAttestationRequestParams,
@@ -11,13 +11,11 @@ const Status = z.object({
11
11
  });
12
12
 
13
13
  /**
14
- * Common Wallet Unit Attestation shape. This object is
14
+ * Common Key Attestation shape. This object is
15
15
  * an abstraction over the version-specific JWTs.
16
16
  */
17
- export type DecodedWalletUnitAttestation = z.infer<
18
- typeof DecodedWalletUnitAttestation
19
- >;
20
- export const DecodedWalletUnitAttestation = z.object({
17
+ export type DecodedKeyAttestation = z.infer<typeof DecodedKeyAttestation>;
18
+ export const DecodedKeyAttestation = z.object({
21
19
  attested_keys: z.array(JWK),
22
20
  exp: UnixTime,
23
21
  iat: UnixTime,
@@ -0,0 +1,3 @@
1
+ export type * from "./api";
2
+ export { KeyAttestation as V1_0_0 } from "./v1.0.0";
3
+ export { KeyAttestation as V1_4_6 } from "./v1.4.6";
@@ -0,0 +1,5 @@
1
+ import type { KeyAttestationApi } from "../api";
2
+
3
+ export const KeyAttestation: KeyAttestationApi = {
4
+ isSupported: false,
5
+ };
@@ -0,0 +1,12 @@
1
+ import type { KeyAttestationApi } from "../api";
2
+
3
+ import { withMapper } from "../../utils/mappers";
4
+ import { getAttestation } from "./issuing";
5
+ import { mapToDecodedKeyAttestation } from "./mappers";
6
+ import { decode } from "./utils";
7
+
8
+ export const KeyAttestation: KeyAttestationApi = {
9
+ decode: withMapper(mapToDecodedKeyAttestation, decode),
10
+ getAttestation,
11
+ isSupported: true,
12
+ };
@@ -2,13 +2,13 @@ import { SignJWT, thumbprint } from "@pagopa/io-react-native-jwt";
2
2
  import { Platform } from "react-native";
3
3
 
4
4
  import type { KeyAttestationCryptoContext } from "../../utils/crypto";
5
- import type { WalletUnitAttestationSupportedApi } from "../api";
5
+ import type { KeyAttestationSupportedApi } from "../api";
6
6
 
7
7
  import { getWalletProviderClient } from "../../client";
8
8
  import { IoWalletError } from "../../utils/errors";
9
9
  import { fixBase64EncodingOnKey, JWK } from "../../utils/jwk";
10
10
  import { Logger, LogLevel } from "../../utils/logging";
11
- import { WalletUnitAttestationResponse } from "./types";
11
+ import { KeyAttestationResponse } from "./types";
12
12
 
13
13
  /**
14
14
  * Create a Key Attestation Request in JWT format for the provided key.
@@ -25,13 +25,13 @@ const createKeyAttestationRequest = async (
25
25
 
26
26
  if (!success) {
27
27
  throw new IoWalletError(
28
- "generateKeyWithAttestation failed to generate a cryptographic key for the Wallet Unit Attestation request",
28
+ "generateKeyWithAttestation failed to generate a cryptographic key for the Key Attestation request",
29
29
  );
30
30
  }
31
31
 
32
32
  if (Platform.OS === "android" && !attestation) {
33
33
  throw new IoWalletError(
34
- "Missing key attestation: on Android the generated key must have a key attestation to request a Wallet Unit Attestation",
34
+ "Missing Android key attestation: the generated key pair must be hardware-backed",
35
35
  );
36
36
  }
37
37
 
@@ -58,7 +58,7 @@ const createKeyAttestationRequest = async (
58
58
  return { cryptoContext, keyAttestationRequestJwt: requestJwt, publicKey };
59
59
  };
60
60
 
61
- export const getAttestation: WalletUnitAttestationSupportedApi["getAttestation"] =
61
+ export const getAttestation: KeyAttestationSupportedApi["getAttestation"] =
62
62
  async (
63
63
  { walletProviderBaseUrl, walletSolutionId, walletSolutionVersion },
64
64
  { appFetch = fetch, integrityContext, keysToAttest: keysToAttestContexts },
@@ -141,11 +141,11 @@ export const getAttestation: WalletUnitAttestationSupportedApi["getAttestation"]
141
141
  "Content-Type": "text/plain",
142
142
  },
143
143
  })
144
- .then(WalletUnitAttestationResponse.parse);
144
+ .then(KeyAttestationResponse.parse);
145
145
 
146
146
  Logger.log(
147
147
  LogLevel.DEBUG,
148
- `Obtained Wallet Unit Attestation: ${response.key_attestation}`,
148
+ `Obtained Key Attestation: ${response.key_attestation}`,
149
149
  );
150
150
 
151
151
  return {
@@ -0,0 +1,10 @@
1
+ import { createMapper } from "../../utils/mappers";
2
+ import { DecodedKeyAttestation } from "../api/types";
3
+ import { KeyAttestationJwt } from "./types";
4
+
5
+ export const mapToDecodedKeyAttestation = createMapper<
6
+ KeyAttestationJwt,
7
+ DecodedKeyAttestation
8
+ >((x) => x.payload, {
9
+ outputSchema: DecodedKeyAttestation,
10
+ });
@@ -0,0 +1,20 @@
1
+ import * as z from "zod";
2
+
3
+ import { Jwt } from "../../wallet-instance-attestation/common/types";
4
+ import { DecodedKeyAttestation } from "../api/types";
5
+
6
+ export type KeyAttestationJwt = z.infer<typeof KeyAttestationJwt>;
7
+ export const KeyAttestationJwt = z.object({
8
+ header: z.intersection(
9
+ Jwt.shape.header,
10
+ z.object({
11
+ typ: z.literal("key-attestation+jwt"),
12
+ }),
13
+ ),
14
+ payload: DecodedKeyAttestation, // The payload type matches the public API
15
+ });
16
+
17
+ export type KeyAttestationResponse = z.infer<typeof KeyAttestationResponse>;
18
+ export const KeyAttestationResponse = z.object({
19
+ key_attestation: z.string(),
20
+ });
@@ -1,14 +1,14 @@
1
1
  import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
2
2
 
3
- import { WalletUnitAttestationJwt } from "./types";
3
+ import { KeyAttestationJwt } from "./types";
4
4
 
5
5
  /**
6
- * Decode a given JWT to get the parsed Wallet Unit Attestation object they define.
6
+ * Decode a given JWT to get the parsed Key Attestation object they define.
7
7
  * It ensures the provided data is in a valid shape, but it DOES NOT verify the signature.
8
8
  */
9
- export function decode(token: string): WalletUnitAttestationJwt {
9
+ export function decode(token: string): KeyAttestationJwt {
10
10
  const decodedJwt = decodeJwt(token);
11
- return WalletUnitAttestationJwt.parse({
11
+ return KeyAttestationJwt.parse({
12
12
  header: decodedJwt.protectedHeader,
13
13
  payload: decodedJwt.payload,
14
14
  });
@@ -77,8 +77,8 @@ export const TypeMetadata = z.object({
77
77
  data_source: z.object({
78
78
  authentic_source: z.object({
79
79
  contacts: z.array(z.string()),
80
- homepage_uri: z.string().url(),
81
- logo_uri: z.string().url(),
80
+ homepage_uri: z.url(),
81
+ logo_uri: z.url(),
82
82
  organization_code: z.string(),
83
83
  organization_name: z.string(),
84
84
  }),