@pagopa/io-react-native-wallet 3.2.0 → 3.4.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 (328) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/credential/issuance/README.md +32 -14
  3. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +1 -0
  4. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  5. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +4 -3
  6. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +39 -8
  8. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +46 -38
  10. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +58 -51
  12. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  13. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +21 -5
  14. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  15. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +5 -4
  16. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  17. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +8 -5
  18. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  19. package/lib/commonjs/credential/issuance/v1.0.0/index.js +3 -2
  20. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  21. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +4 -2
  22. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  23. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +0 -2
  24. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  25. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +21 -17
  26. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  27. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +108 -69
  28. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  29. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +20 -19
  30. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  31. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +5 -7
  32. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  33. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +4 -1
  34. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  35. package/lib/commonjs/credential/issuance/v1.3.3/index.js +3 -2
  36. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  37. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +10 -11
  38. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  39. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  40. package/lib/commonjs/credential/presentation/common/utils/http.js +9 -4
  41. package/lib/commonjs/credential/presentation/common/utils/http.js.map +1 -1
  42. package/lib/commonjs/credential/presentation/{v1.3.3/utils.mdoc.js → common/utils/mdoc.js} +2 -2
  43. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -0
  44. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -1
  45. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  46. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -10
  47. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  48. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +2 -2
  49. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  50. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +2 -0
  51. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  52. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +1 -1
  53. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  54. package/lib/commonjs/credential/status/README.md +3 -2
  55. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +27 -5
  56. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  57. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js +17 -6
  58. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  59. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +2 -1
  60. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  61. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +23 -0
  62. package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -0
  63. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +3 -1
  64. package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
  65. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +3 -1
  66. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  67. package/lib/commonjs/mdoc/index.js +3 -24
  68. package/lib/commonjs/mdoc/index.js.map +1 -1
  69. package/lib/commonjs/sd-jwt/__test__/types.test.js +2 -14
  70. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  71. package/lib/commonjs/sd-jwt/__test__/utils.test.js +0 -12
  72. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  73. package/lib/commonjs/sd-jwt/types.js +1 -14
  74. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  75. package/lib/commonjs/utils/callbacks.js +20 -1
  76. package/lib/commonjs/utils/callbacks.js.map +1 -1
  77. package/lib/commonjs/utils/config.js +9 -1
  78. package/lib/commonjs/utils/config.js.map +1 -1
  79. package/lib/commonjs/utils/x509.js +34 -0
  80. package/lib/commonjs/utils/x509.js.map +1 -0
  81. package/lib/commonjs/wallet-instance-attestation/api/types.js +0 -2
  82. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  83. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +1 -14
  84. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -1
  85. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +2 -7
  86. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  87. package/lib/commonjs/wallet-unit-attestation/api/types.js +0 -11
  88. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  89. package/lib/module/credential/issuance/README.md +32 -14
  90. package/lib/module/credential/issuance/api/IssuerConfig.js +1 -0
  91. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  92. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -3
  93. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  94. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +41 -10
  95. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  96. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +47 -34
  97. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  98. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +58 -47
  99. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  100. package/lib/module/credential/issuance/mrtd-pop/index.js +20 -5
  101. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  102. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +3 -2
  103. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  104. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +6 -4
  105. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  106. package/lib/module/credential/issuance/v1.0.0/index.js +5 -4
  107. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  108. package/lib/module/credential/issuance/v1.0.0/mappers.js +4 -2
  109. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  110. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +0 -2
  111. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  112. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +21 -17
  113. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  114. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +108 -70
  115. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  116. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +22 -19
  117. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  118. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +6 -8
  119. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  120. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +4 -1
  121. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  122. package/lib/module/credential/issuance/v1.3.3/index.js +5 -4
  123. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  124. package/lib/module/credential/issuance/v1.3.3/mappers.js +10 -11
  125. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  126. package/lib/module/credential/presentation/api/types.js.map +1 -1
  127. package/lib/module/credential/presentation/common/utils/http.js +9 -4
  128. package/lib/module/credential/presentation/common/utils/http.js.map +1 -1
  129. package/lib/module/credential/presentation/{v1.3.3/utils.mdoc.js → common/utils/mdoc.js} +2 -2
  130. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -0
  131. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -1
  132. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  133. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +11 -10
  134. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  135. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +2 -3
  136. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  137. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +2 -0
  138. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  139. package/lib/module/credential/presentation/v1.3.3/mappers.js +1 -1
  140. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  141. package/lib/module/credential/status/README.md +3 -2
  142. package/lib/module/credential/status/v1.3.3/01-status-list.js +27 -5
  143. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  144. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js +17 -6
  145. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  146. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +1 -1
  147. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  148. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +16 -0
  149. package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -0
  150. package/lib/module/credentials-catalogue/v1.0.0/index.js +3 -1
  151. package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
  152. package/lib/module/credentials-catalogue/v1.3.3/index.js +3 -1
  153. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  154. package/lib/module/mdoc/index.js +3 -24
  155. package/lib/module/mdoc/index.js.map +1 -1
  156. package/lib/module/sd-jwt/__test__/types.test.js +2 -14
  157. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  158. package/lib/module/sd-jwt/__test__/utils.test.js +0 -12
  159. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  160. package/lib/module/sd-jwt/types.js +1 -14
  161. package/lib/module/sd-jwt/types.js.map +1 -1
  162. package/lib/module/utils/callbacks.js +19 -1
  163. package/lib/module/utils/callbacks.js.map +1 -1
  164. package/lib/module/utils/config.js +7 -0
  165. package/lib/module/utils/config.js.map +1 -1
  166. package/lib/module/utils/x509.js +28 -0
  167. package/lib/module/utils/x509.js.map +1 -0
  168. package/lib/module/wallet-instance-attestation/api/types.js +0 -2
  169. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  170. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +1 -14
  171. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -1
  172. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +2 -7
  173. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  174. package/lib/module/wallet-unit-attestation/api/types.js +0 -11
  175. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  176. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +1 -0
  177. package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
  178. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +19 -5
  179. package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
  180. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +4 -0
  181. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  182. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +1 -0
  183. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  184. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  185. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  186. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +12 -1
  187. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  188. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +12 -1
  189. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  190. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts +2 -1
  191. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  192. package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
  193. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +2 -1
  194. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  195. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  196. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +1 -0
  197. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  198. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  199. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  200. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +2 -1
  201. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  202. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  203. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  204. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  205. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  206. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +7 -4
  207. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  208. package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts +1 -1
  209. package/lib/typescript/credential/presentation/api/types.d.ts +3 -7
  210. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  211. package/lib/typescript/credential/presentation/common/utils/http.d.ts +1 -1
  212. package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
  213. package/lib/typescript/credential/presentation/{v1.3.3/utils.mdoc.d.ts → common/utils/mdoc.d.ts} +2 -2
  214. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -0
  215. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  216. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  217. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  218. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +8 -8
  219. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +8 -8
  220. package/lib/typescript/credential/status/api/status-list.d.ts +8 -4
  221. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  222. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  223. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  224. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +6 -0
  225. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  226. package/lib/typescript/credentials-catalogue/api/index.d.ts +14 -2
  227. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  228. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts +9 -0
  229. package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -0
  230. package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
  231. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  232. package/lib/typescript/mdoc/index.d.ts +1 -1
  233. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  234. package/lib/typescript/mdoc/utils.d.ts +0 -24
  235. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  236. package/lib/typescript/sd-jwt/types.d.ts +0 -12
  237. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  238. package/lib/typescript/trust/v1.3.3/types.d.ts +6 -4
  239. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  240. package/lib/typescript/utils/callbacks.d.ts +7 -0
  241. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  242. package/lib/typescript/utils/config.d.ts +4 -0
  243. package/lib/typescript/utils/config.d.ts.map +1 -1
  244. package/lib/typescript/utils/x509.d.ts +10 -0
  245. package/lib/typescript/utils/x509.d.ts.map +1 -0
  246. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +0 -2
  247. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  248. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +0 -2
  249. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  250. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +2 -9
  251. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -1
  252. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +2 -7
  253. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  254. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +0 -11
  255. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  256. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +0 -22
  257. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -1
  258. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +0 -11
  259. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  260. package/package.json +6 -6
  261. package/src/credential/issuance/README.md +32 -14
  262. package/src/credential/issuance/api/02-start-user-authorization.ts +1 -0
  263. package/src/credential/issuance/api/03-complete-user-authorization.ts +26 -5
  264. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +4 -0
  265. package/src/credential/issuance/api/IssuerConfig.ts +1 -0
  266. package/src/credential/issuance/common/02-start-user-authorization.ts +6 -3
  267. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +47 -10
  268. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +69 -45
  269. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +84 -62
  270. package/src/credential/issuance/mrtd-pop/index.ts +13 -5
  271. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +8 -2
  272. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +16 -4
  273. package/src/credential/issuance/v1.0.0/index.ts +6 -4
  274. package/src/credential/issuance/v1.0.0/mappers.ts +9 -1
  275. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +0 -2
  276. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +25 -21
  277. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +138 -94
  278. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +28 -23
  279. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +9 -9
  280. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +2 -1
  281. package/src/credential/issuance/v1.3.3/index.ts +6 -4
  282. package/src/credential/issuance/v1.3.3/mappers.ts +13 -11
  283. package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
  284. package/src/credential/presentation/api/types.ts +3 -7
  285. package/src/credential/presentation/common/utils/http.ts +2 -2
  286. package/src/credential/presentation/{v1.3.3/utils.mdoc.ts → common/utils/mdoc.ts} +2 -2
  287. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +1 -1
  288. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +15 -14
  289. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +3 -3
  290. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +2 -0
  291. package/src/credential/presentation/v1.3.3/mappers.ts +1 -1
  292. package/src/credential/status/README.md +3 -2
  293. package/src/credential/status/api/status-list.ts +10 -7
  294. package/src/credential/status/v1.3.3/01-status-list.ts +21 -7
  295. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +19 -5
  296. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +4 -1
  297. package/src/credentials-catalogue/api/index.ts +15 -0
  298. package/src/credentials-catalogue/common/get-status-l10n-ids.ts +25 -0
  299. package/src/credentials-catalogue/v1.0.0/index.ts +2 -0
  300. package/src/credentials-catalogue/v1.3.3/index.ts +2 -0
  301. package/src/mdoc/index.ts +5 -41
  302. package/src/sd-jwt/__test__/types.test.ts +1 -13
  303. package/src/sd-jwt/__test__/utils.test.ts +0 -12
  304. package/src/sd-jwt/types.ts +0 -13
  305. package/src/utils/callbacks.ts +28 -1
  306. package/src/utils/config.ts +7 -0
  307. package/src/utils/x509.ts +43 -0
  308. package/src/wallet-instance-attestation/api/types.ts +0 -2
  309. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +3 -11
  310. package/src/wallet-instance-attestation/v1.3.3/types.ts +2 -7
  311. package/src/wallet-unit-attestation/api/types.ts +0 -11
  312. package/lib/commonjs/credential/issuance/common/authorization.js +0 -56
  313. package/lib/commonjs/credential/issuance/common/authorization.js.map +0 -1
  314. package/lib/commonjs/credential/presentation/common/utils.js +0 -28
  315. package/lib/commonjs/credential/presentation/common/utils.js.map +0 -1
  316. package/lib/commonjs/credential/presentation/v1.3.3/utils.mdoc.js.map +0 -1
  317. package/lib/module/credential/issuance/common/authorization.js +0 -48
  318. package/lib/module/credential/issuance/common/authorization.js.map +0 -1
  319. package/lib/module/credential/presentation/common/utils.js +0 -21
  320. package/lib/module/credential/presentation/common/utils.js.map +0 -1
  321. package/lib/module/credential/presentation/v1.3.3/utils.mdoc.js.map +0 -1
  322. package/lib/typescript/credential/issuance/common/authorization.d.ts +0 -21
  323. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +0 -1
  324. package/lib/typescript/credential/presentation/common/utils.d.ts +0 -11
  325. package/lib/typescript/credential/presentation/common/utils.d.ts.map +0 -1
  326. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +0 -1
  327. package/src/credential/issuance/common/authorization.ts +0 -89
  328. package/src/credential/presentation/common/utils.ts +0 -30
@@ -1 +1 @@
1
- {"version":3,"file":"02-verify-and-parse-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,gBAAgB,CAcpE,CAAC"}
1
+ {"version":3,"file":"02-verify-and-parse-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAgBxD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,gBAAgB,CAcpE,CAAC"}
@@ -11,6 +11,11 @@ export type LocalizationInfo = z.infer<typeof LocalizationInfo>;
11
11
  * Each locale maps l10n_id keys to their translated string values.
12
12
  */
13
13
  export type CatalogueTranslations = Record<string, Record<string, string>>;
14
+ export declare const AllowedState: z.ZodObject<{
15
+ title_l10n_id: z.ZodString;
16
+ description_l10n_id: z.ZodString;
17
+ }, z.core.$catchall<z.ZodString>>;
18
+ export type AllowedState = z.infer<typeof AllowedState>;
14
19
  declare const AuthenticSource: z.ZodObject<{
15
20
  id: z.ZodString;
16
21
  organization_name: z.ZodOptional<z.ZodString>;
@@ -123,6 +128,7 @@ export declare const DigitalCredential: z.ZodObject<{
123
128
  "schema_uri#integrity": z.ZodOptional<z.ZodString>;
124
129
  }, z.core.$strip>>>;
125
130
  }, z.core.$strip>;
131
+ export type DigitalCredential = z.infer<typeof DigitalCredential>;
126
132
  declare const TaxonomyPurpose: z.ZodObject<{
127
133
  id: z.ZodString;
128
134
  name_l10n_id: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAqC3E,QAAA,MAAM,eAAe;;;;;;;;;;;iBAWnB,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,KAAK;;;;iBAIhB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAC;AAEH,QAAA,MAAM,eAAe;;;iBAGnB,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OA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B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy } from "./DigitalCredentialsCatalogue";
1
+ import { type CatalogueTranslations, type DigitalCredential, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy } from "./DigitalCredentialsCatalogue";
2
2
  type FetchContext = {
3
3
  appFetch?: GlobalFetch["fetch"];
4
4
  };
@@ -34,6 +34,18 @@ export interface CredentialsCatalogueApi {
34
34
  * @returns Record keyed by locale, each containing merged translation key→value pairs
35
35
  */
36
36
  fetchTranslations?(localizations: FetchTranslationsLocalizations, locales: string[], ctx?: FetchContext): Promise<CatalogueTranslations>;
37
+ /**
38
+ * Given a statusBit (e.g. "0x00", "0x0B") and a DigitalCredential from the
39
+ * catalogue, returns the matching l10n IDs or undefined if not found.
40
+ * The comparison is case-insensitive to handle uppercase statusBit values
41
+ * returned by verifyAndParseStatusList against lowercase keys in the catalogue.
42
+ *
43
+ * @since 1.0.0
44
+ */
45
+ getStatusL10nIds(statusBit: string, credentialConfig: DigitalCredential): {
46
+ titleL10nId: string;
47
+ descriptionL10nId: string;
48
+ } | undefined;
37
49
  }
38
- export { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy, };
50
+ export { type CatalogueTranslations, type DigitalCredential, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy, };
39
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAEvC,KAAK,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,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,2BAA2B,CAAC,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,CAChB,aAAa,EAAE,8BAA8B,EAC7C,OAAO,EAAE,MAAM,EAAE,EACjB,GAAG,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,gBAAgB,CACd,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,iBAAiB,GAClC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACnE;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,GACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type CredentialsCatalogueApi } from "../api";
2
+ /**
3
+ * Given a statusBit (e.g. "0x00", "0x0B") and a DigitalCredential from the
4
+ * catalogue, returns the matching l10n IDs or undefined if not found.
5
+ * The comparison is case-insensitive to handle uppercase statusBit values
6
+ * returned by verifyAndParseStatusList against lowercase keys in the catalogue.
7
+ */
8
+ export declare const getStatusL10nIds: CredentialsCatalogueApi["getStatusL10nIds"];
9
+ //# sourceMappingURL=get-status-l10n-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-status-l10n-ids.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/common/get-status-l10n-ids.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,uBAAuB,CAAC,kBAAkB,CAexE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAGtD,eAAO,MAAM,oBAAoB,EAAE,uBAElC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAItD,eAAO,MAAM,oBAAoB,EAAE,uBAGlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAItD,eAAO,MAAM,oBAAoB,EAAE,uBAGlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAKtD,eAAO,MAAM,oBAAoB,EAAE,uBAIlC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { CBOR } from "@pagopa/io-react-native-iso18013";
2
- import type { Presentation } from "src/credential/presentation";
2
+ import type { Presentation } from "../credential/presentation";
3
3
  export * from "./utils";
4
4
  export declare const verify: (token: string, x509CertRoot: string) => Promise<{
5
5
  issuerSigned: CBOR.IssuerSigned;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mdoc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAc1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CA6B7C,CAAC;AAkDF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,2CAA2C,YAAY,KACtD,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;CAClB,CAwBA,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mdoc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAM1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG/D,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CA6B7C,CAAC;AAqBF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,2CAA2C,YAAY,KACtD,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;CAClB,CAwBA,CAAC"}
@@ -17,18 +17,6 @@ export declare const getParsedCredentialClaimKey: (namespace: string, key: strin
17
17
  export declare const getVerificationFromParsedCredential: (parsedCredential: Out<IssuanceApi["verifyAndParseCredential"]>["parsedCredential"]) => {
18
18
  trust_framework: string;
19
19
  assurance_level: string;
20
- evidence: {
21
- type: "vouch";
22
- time: string | number;
23
- attestation: {
24
- type: "digital_attestation";
25
- reference_number: string;
26
- date_of_issuance: string;
27
- voucher: {
28
- organization: string;
29
- };
30
- };
31
- }[];
32
20
  } | undefined;
33
21
  /**
34
22
  * Extract and validate the `verification` claim from an MDOC credential.
@@ -41,17 +29,5 @@ export declare const getVerificationFromParsedCredential: (parsedCredential: Out
41
29
  export declare const getVerification: (token: string) => Promise<{
42
30
  trust_framework: string;
43
31
  assurance_level: string;
44
- evidence: {
45
- type: "vouch";
46
- time: string | number;
47
- attestation: {
48
- type: "digital_attestation";
49
- reference_number: string;
50
- date_of_issuance: string;
51
- voucher: {
52
- organization: string;
53
- };
54
- };
55
- }[];
56
32
  } | undefined>;
57
33
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/mdoc/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGzC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,WAAW,MAAM,EAAE,KAAK,MAAM,WACnD,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,GAC9C,kBAAkB,GAAG,CACnB,WAAW,CAAC,0BAA0B,CAAC,CACxC,CAAC,kBAAkB,CAAC;;;;;;;;;;;;;;;aAQtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAU,OAAO,MAAM;;;;;;;;;;;;;;;cAQlD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/mdoc/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGzC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,WAAW,MAAM,EAAE,KAAK,MAAM,WACnD,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,GAC9C,kBAAkB,GAAG,CACnB,WAAW,CAAC,0BAA0B,CAAC,CACxC,CAAC,kBAAkB,CAAC;;;aAQtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAU,OAAO,MAAM;;;cAQlD,CAAC"}
@@ -80,18 +80,6 @@ export type Verification = z.infer<typeof Verification>;
80
80
  export declare const Verification: z.ZodObject<{
81
81
  trust_framework: z.ZodString;
82
82
  assurance_level: z.ZodString;
83
- evidence: z.ZodArray<z.ZodObject<{
84
- type: z.ZodLiteral<"vouch">;
85
- time: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
86
- attestation: z.ZodObject<{
87
- type: z.ZodLiteral<"digital_attestation">;
88
- reference_number: z.ZodString;
89
- date_of_issuance: z.ZodString;
90
- voucher: z.ZodObject<{
91
- organization: z.ZodString;
92
- }, z.core.$strip>;
93
- }, z.core.$strip>;
94
- }, z.core.$strip>>;
95
83
  }, z.core.$strip>;
96
84
  /**
97
85
  * Metadata for a digital credential. This information is retrieved from the URL defined in the `vct` claim.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,aAAa,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AAWzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BvB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;iBAgBvB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;iBAavB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,aAAa,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AAWzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BvB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;iBAavB,CAAC"}
@@ -97,9 +97,11 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
97
97
  batch_size: z.ZodNumber;
98
98
  }, z.core.$strip>>;
99
99
  credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
100
+ credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
100
101
  format: z.ZodLiteral<"dc+sd-jwt">;
101
102
  vct: z.ZodString;
102
103
  }, z.core.$strip>, z.ZodObject<{
104
+ credential_signing_alg_values_supported: z.ZodArray<z.ZodNumber>;
103
105
  doctype: z.ZodString;
104
106
  format: z.ZodLiteral<"mso_mdoc">;
105
107
  }, z.core.$strip>], "format">, z.ZodObject<{
@@ -143,7 +145,6 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
143
145
  }, z.core.$strip>>;
144
146
  }, z.core.$strip>>>;
145
147
  }, z.core.$strip>;
146
- credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
147
148
  cryptographic_binding_methods_supported: z.ZodArray<z.ZodString>;
148
149
  proof_types_supported: z.ZodObject<{
149
150
  jwt: z.ZodObject<{
@@ -207,7 +208,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
207
208
  nonce_endpoint: z.ZodOptional<z.ZodURL>;
208
209
  notification_endpoint: z.ZodOptional<z.ZodURL>;
209
210
  status_list_aggregation_endpoint: z.ZodOptional<z.ZodURL>;
210
- trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">]>>;
211
+ trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">, z.ZodLiteral<"it_spid">]>>;
211
212
  }, z.core.$loose>;
212
213
  oauth_authorization_server: z.ZodObject<{
213
214
  acr_values_supported: z.ZodArray<z.ZodString>;
@@ -661,9 +662,11 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
661
662
  batch_size: z.ZodNumber;
662
663
  }, z.core.$strip>>;
663
664
  credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
665
+ credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
664
666
  format: z.ZodLiteral<"dc+sd-jwt">;
665
667
  vct: z.ZodString;
666
668
  }, z.core.$strip>, z.ZodObject<{
669
+ credential_signing_alg_values_supported: z.ZodArray<z.ZodNumber>;
667
670
  doctype: z.ZodString;
668
671
  format: z.ZodLiteral<"mso_mdoc">;
669
672
  }, z.core.$strip>], "format">, z.ZodObject<{
@@ -707,7 +710,6 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
707
710
  }, z.core.$strip>>;
708
711
  }, z.core.$strip>>>;
709
712
  }, z.core.$strip>;
710
- credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
711
713
  cryptographic_binding_methods_supported: z.ZodArray<z.ZodString>;
712
714
  proof_types_supported: z.ZodObject<{
713
715
  jwt: z.ZodObject<{
@@ -771,7 +773,7 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
771
773
  nonce_endpoint: z.ZodOptional<z.ZodURL>;
772
774
  notification_endpoint: z.ZodOptional<z.ZodURL>;
773
775
  status_list_aggregation_endpoint: z.ZodOptional<z.ZodURL>;
774
- trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">]>>;
776
+ trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">, z.ZodLiteral<"it_spid">]>>;
775
777
  }, z.core.$loose>;
776
778
  oauth_authorization_server: z.ZodObject<{
777
779
  acr_values_supported: z.ZodArray<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/trust/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMwC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type CryptoContext } from "@pagopa/io-react-native-jwt";
1
2
  import { type CallbackContext } from "@pagopa/io-wallet-oauth2";
2
3
  import type { JWK } from "./jwk";
3
4
  type PartialCallbackContext = Omit<CallbackContext, "signJwt" | "clientAuthentication">;
@@ -17,5 +18,11 @@ export declare const partialCallbacks: PartialCallbackContext;
17
18
  * @returns Function that implements `verifyJwt` callback
18
19
  */
19
20
  export declare const createVerifyJwtFromJwks: (jwks: JWK[]) => CallbackContext["verifyJwt"];
21
+ /**
22
+ * Create a signJwt implementation that signs a JWT using the provided CryptoContext.
23
+ * @param cryptoContext The CryptoContext to use for signing the JWT
24
+ * @returns Function that implements `signJwt` callback
25
+ */
26
+ export declare const createSignJwtFromCryptoContext: (cryptoContext: CryptoContext) => CallbackContext["signJwt"];
20
27
  export {};
21
28
  //# sourceMappingURL=callbacks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../../src/utils/callbacks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAKhF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,KAAK,sBAAsB,GAAG,IAAI,CAChC,eAAe,EACf,SAAS,GAAG,sBAAsB,CACnC,CAAC;AA+BF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,sBAoC9B,CAAC;AAIF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,GAAG,EAAE,KACV,eAAe,CAAC,WAAW,CAU7B,CAAC"}
1
+ {"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../../src/utils/callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAKhF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,KAAK,sBAAsB,GAAG,IAAI,CAChC,eAAe,EACf,SAAS,GAAG,sBAAsB,CACnC,CAAC;AA+BF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,sBAoC9B,CAAC;AAIF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,GAAG,EAAE,KACV,eAAe,CAAC,WAAW,CAU7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GACzC,eAAe,aAAa,KAC3B,eAAe,CAAC,SAAS,CAa3B,CAAC"}
@@ -7,4 +7,8 @@ export declare const sdkConfigV1_0: IoWalletSdkConfig<ItWalletSpecsVersion.V1_0>
7
7
  * IO Wallet SDK configuration object for v1.3 specs.
8
8
  */
9
9
  export declare const sdkConfigV1_3: IoWalletSdkConfig<ItWalletSpecsVersion.V1_3>;
10
+ /**
11
+ * IO Wallet SDK configuration object for v1.4 specs.
12
+ */
13
+ export declare const sdkConfigV1_4: IoWalletSdkConfig<ItWalletSpecsVersion.V1_4>;
10
14
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type X509CertificateOptions } from "@pagopa/io-react-native-crypto";
2
+ /**
3
+ * This function checks whether the x509 certificate chain is valid against a specified Certificate Authority (CA)
4
+ *
5
+ * @param x5chain The mdoc's x509 certificate chain
6
+ * @param x509CertRoot The Trust Anchor CA
7
+ * @param options Options for certificate validation
8
+ */
9
+ export declare const verifyX509Chain: (x5chain: string[], x509CertRoot: string, options?: X509CertificateOptions) => Promise<void>;
10
+ //# sourceMappingURL=x509.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x509.d.ts","sourceRoot":"","sources":["../../../src/utils/x509.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAC;AAGxC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EAAE,EACjB,cAAc,MAAM,EACpB,UAAS,sBAIR,kBAqBF,CAAC"}
@@ -38,8 +38,6 @@ export declare const DecodedWalletInstanceAttestation: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  }, z.core.$strip>;
40
40
  sub: z.ZodString;
41
- wallet_provider_name: z.ZodOptional<z.ZodString>;
42
- wallet_solution_id: z.ZodOptional<z.ZodString>;
43
41
  wallet_link: z.ZodOptional<z.ZodString>;
44
42
  wallet_name: z.ZodOptional<z.ZodString>;
45
43
  aal: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc3C,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY3C,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC"}
@@ -78,8 +78,6 @@ export declare const mapToDecodedWalletInstanceAttestation: (input: {
78
78
  };
79
79
  };
80
80
  sub: string;
81
- wallet_provider_name?: string | undefined;
82
- wallet_solution_id?: string | undefined;
83
81
  wallet_link?: string | undefined;
84
82
  wallet_name?: string | undefined;
85
83
  aal?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.0.0/mappers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAMtB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhD,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;yBAQnC,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.0.0/mappers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAMtB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhD,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;yBAQnC,CAAC"}
@@ -42,13 +42,8 @@ export declare const mapToDecodedWalletInstanceAttestation: (input: {
42
42
  };
43
43
  } & {
44
44
  sub: string;
45
- eudi_wallet_info: {
46
- general_info: {
47
- wallet_provider_name: string;
48
- wallet_solution_id: string;
49
- wallet_solution_version: string;
50
- };
51
- };
45
+ wallet_link?: string | undefined;
46
+ wallet_name?: string | undefined;
52
47
  };
53
48
  }) => {
54
49
  iss: string;
@@ -81,8 +76,6 @@ export declare const mapToDecodedWalletInstanceAttestation: (input: {
81
76
  };
82
77
  };
83
78
  sub: string;
84
- wallet_provider_name?: string | undefined;
85
- wallet_solution_id?: string | undefined;
86
79
  wallet_link?: string | undefined;
87
80
  wallet_name?: string | undefined;
88
81
  aal?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAajD,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhD,CAAC"}
@@ -47,13 +47,8 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
47
47
  }, z.core.$strip>;
48
48
  }, z.core.$strip>, z.ZodObject<{
49
49
  sub: z.ZodString;
50
- eudi_wallet_info: z.ZodObject<{
51
- general_info: z.ZodObject<{
52
- wallet_provider_name: z.ZodString;
53
- wallet_solution_id: z.ZodString;
54
- wallet_solution_version: z.ZodString;
55
- }, z.core.$strip>;
56
- }, z.core.$strip>;
50
+ wallet_link: z.ZodOptional<z.ZodString>;
51
+ wallet_name: z.ZodOptional<z.ZodString>;
57
52
  }, z.core.$strip>>;
58
53
  }, z.core.$strip>;
59
54
  export type WalletInstanceAttestationResponse = z.infer<typeof WalletInstanceAttestationResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBvC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAevC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC"}
@@ -40,17 +40,6 @@ export declare const DecodedWalletUnitAttestation: z.ZodObject<{
40
40
  uri: z.ZodString;
41
41
  }, z.core.$strip>;
42
42
  }, z.core.$strip>;
43
- eudi_wallet_info: z.ZodObject<{
44
- general_info: z.ZodObject<{
45
- wallet_provider_name: z.ZodString;
46
- wallet_solution_id: z.ZodString;
47
- wallet_solution_version: z.ZodString;
48
- }, z.core.$strip>;
49
- key_storage_info: z.ZodObject<{
50
- keys_exportable: z.ZodBoolean;
51
- storage_type: z.ZodString;
52
- }, z.core.$strip>;
53
- }, z.core.$strip>;
54
43
  iss: z.ZodString;
55
44
  iat: z.ZodNumber;
56
45
  exp: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBvC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQvC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC"}
@@ -41,17 +41,6 @@ export declare const mapToDecodedWalletUnitAttestation: (input: {
41
41
  uri: string;
42
42
  };
43
43
  };
44
- eudi_wallet_info: {
45
- general_info: {
46
- wallet_provider_name: string;
47
- wallet_solution_id: string;
48
- wallet_solution_version: string;
49
- };
50
- key_storage_info: {
51
- keys_exportable: boolean;
52
- storage_type: string;
53
- };
54
- };
55
44
  iss: string;
56
45
  iat: number;
57
46
  exp: number;
@@ -89,17 +78,6 @@ export declare const mapToDecodedWalletUnitAttestation: (input: {
89
78
  uri: string;
90
79
  };
91
80
  };
92
- eudi_wallet_info: {
93
- general_info: {
94
- wallet_provider_name: string;
95
- wallet_solution_id: string;
96
- wallet_solution_version: string;
97
- };
98
- key_storage_info: {
99
- keys_exportable: boolean;
100
- storage_type: string;
101
- };
102
- };
103
81
  iss: string;
104
82
  iat: number;
105
83
  exp: number;
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK5C,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK5C,CAAC"}
@@ -46,17 +46,6 @@ export declare const WalletUnitAttestationJwt: z.ZodObject<{
46
46
  uri: z.ZodString;
47
47
  }, z.core.$strip>;
48
48
  }, z.core.$strip>;
49
- eudi_wallet_info: z.ZodObject<{
50
- general_info: z.ZodObject<{
51
- wallet_provider_name: z.ZodString;
52
- wallet_solution_id: z.ZodString;
53
- wallet_solution_version: z.ZodString;
54
- }, z.core.$strip>;
55
- key_storage_info: z.ZodObject<{
56
- keys_exportable: z.ZodBoolean;
57
- storage_type: z.ZodString;
58
- }, z.core.$strip>;
59
- }, z.core.$strip>;
60
49
  iss: z.ZodString;
61
50
  iat: z.ZodNumber;
62
51
  exp: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQnC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAC;AACF,eAAO,MAAM,6BAA6B;;iBAExC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQnC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAC;AACF,eAAO,MAAM,6BAA6B;;iBAExC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-wallet",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Provide data structures, helpers and API for IO Wallet",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -140,11 +140,11 @@
140
140
  ]
141
141
  },
142
142
  "dependencies": {
143
- "@pagopa/io-wallet-oauth2": "1.2.1",
144
- "@pagopa/io-wallet-oid4vci": "1.2.1",
145
- "@pagopa/io-wallet-oid4vp": "1.2.1",
146
- "@pagopa/io-wallet-oid-federation": "1.2.1",
147
- "@pagopa/io-wallet-utils": "1.2.1",
143
+ "@pagopa/io-wallet-oauth2": "1.4.2",
144
+ "@pagopa/io-wallet-oid-federation": "1.4.2",
145
+ "@pagopa/io-wallet-oid4vci": "1.4.2",
146
+ "@pagopa/io-wallet-oid4vp": "1.4.2",
147
+ "@pagopa/io-wallet-utils": "1.4.2",
148
148
  "@sd-jwt/core": "^0.19.0",
149
149
  "@sd-jwt/crypto-nodejs": "^0.19.0",
150
150
  "@sd-jwt/jwt-status-list": "^0.19.0",
@@ -19,8 +19,8 @@ graph TD;
19
19
  2[evaluateIssuerTrust]
20
20
  3[startUserAuthorization]
21
21
  C4[getRequestedCredentialToBePresented]
22
- C4.1[completeUserAuthorizationWithFormPostJwtMode]
23
- E4[completeUserAuthorizationWithQueryMode]
22
+ C4.1[completeEaaUserAuthorizationWithQueryMode]
23
+ E4[completePidUserAuthorizationWithQueryMode]
24
24
  5[authorizeAccess]
25
25
  6[WalletUnitAttestation.getAttestation]
26
26
  7[obtainCredential]
@@ -86,11 +86,15 @@ MRTD Verification is a sub-flow of the Issuance flow and is used when the reques
86
86
  1. **Primary Authentication**: LoA3 electronic identification (SPID or CIEid L2).
87
87
  2. **MRTD Proof of Possession (PoP)**: Electronic document reading and cryptographic verification.
88
88
 
89
- This process is initiated by the Authorization Server responding to the primary authentication step with a redirect that includes a challenge in the query string, which is handled by the `continueUserAuthorizationWithMRTDPoPChallenge` function. Once the MRTD PoP is completed, the user must continue the PID issuance flow with the `completeUserAuthorizationWithQueryMode` function.
89
+ This process is initiated by the Authorization Server responding to the primary authentication step with a redirect that includes a challenge in the query string, which is handled by the `continueUserAuthorizationWithMRTDPoPChallenge` function. Once the MRTD PoP is completed, the user must continue the PID issuance flow with the `completePidUserAuthorizationWithQueryMode` function.
90
90
 
91
91
  Complete documentation for the MRTD PoP flow can be found here: [mrtd-pop](./mrtd-pop/README.md)
92
92
 
93
- ## Authentication through credentials (Form Post JWT Mode)
93
+ ## Authentication through credentials (Query Mode) - v1.3
94
+
95
+ When the credential is different than an eID, the flow requires the user to present other credentials in order to obtain the requested one. Starting from IT-Wallet specifications v1.3, the EAA issuance flow uses the query mode to complete the user authorization. This is done through the `getRequestedCredentialToBePresented` followed by the `completeEaaUserAuthorizationWithQueryMode`.
96
+
97
+ ## Authentication through credentials (Form Post JWT Mode) - v1.0
94
98
 
95
99
  When the credential is different than an eID, the flow requires the user to present other credentials in order to obtain the requested one. This is done through the `getRequestedCredentialToBePresented` followed by the `completeUserAuthorizationWithFormPostJwtMode`.
96
100
 
@@ -163,7 +167,7 @@ const credentialCryptoContext = createCryptoContextFor(credentialKeyTag);
163
167
  const { issuerConf } = await wallet.CredentialIssuance.evaluateIssuerTrust(WALLET_EAA_PROVIDER_BASE_URL);
164
168
 
165
169
  // Start user authorization
166
- const { issuerRequestUri, clientId, codeVerifier } =
170
+ const { issuerRequestUri, clientId, codeVerifier, responseMode } =
167
171
  await wallet.CredentialIssuance.startUserAuthorization(
168
172
  issuerConf,
169
173
  ["someCredentialId"],
@@ -184,13 +188,27 @@ const requestObject =
184
188
  appFetch
185
189
  );
186
190
 
187
- // Complete the user authorization via form_post.jwt mode
188
- const { code } =
189
- await wallet.CredentialIssuance.completeUserAuthorizationWithFormPostJwtMode(
190
- requestObject,
191
- pid.credential,
192
- { wiaCryptoContext, pidCryptoContext: createCryptoContextFor(pid.keyTag) }
193
- );
191
+ let code: string;
192
+ if (responseMode === "form_post.jwt") {
193
+ // Complete the user authorization via form_post.jwt mode
194
+ ({ code } =
195
+ await wallet.CredentialIssuance.completeUserAuthorizationWithFormPostJwtMode(
196
+ requestObject,
197
+ issuerConf,
198
+ [pid.keyTag, pid.credential],
199
+ { wiaCryptoContext, appFetch }
200
+ ));
201
+ } else {
202
+ // Complete the user authorization via query mode
203
+ ({ code } =
204
+ await wallet.CredentialIssuance.completeEaaUserAuthorizationWithQueryMode(
205
+ requestObject,
206
+ issuerConf,
207
+ [pid.keyTag, pid.credential],
208
+ REDIRECT_URI,
209
+ { appFetch }
210
+ ));
211
+ }
194
212
 
195
213
  // Generate the DPoP context which will be used for the whole issuance flow
196
214
  await regenerateCryptoKey(DPOP_KEYTAG); // Let's assume this function regenerates this ephemeral key for the DPoP
@@ -330,7 +348,7 @@ const { issuerConf } = await wallet.CredentialIssuance.evaluateIssuerTrust(
330
348
  const { issuerRequestUri, clientId, codeVerifier, credentialDefinition } =
331
349
  await wallet.CredentialIssuance.startUserAuthorization(
332
350
  issuerConf,
333
- ["dc_sd_jwt_PersonIdentificationData"], // Request authorization for one or more credentials
351
+ ["dc_sd_jwt_pid"], // Request authorization for one or more credentials
334
352
  { proofType: "none" },
335
353
  {
336
354
  walletInstanceAttestation,
@@ -342,7 +360,7 @@ const { issuerRequestUri, clientId, codeVerifier, credentialDefinition } =
342
360
 
343
361
  // Complete the authorization process with query mode with the authorizationContext which opens the browser
344
362
  const { code } =
345
- await wallet.CredentialIssuance.completeUserAuthorizationWithQueryMode(
363
+ await wallet.CredentialIssuance.completePidUserAuthorizationWithQueryMode(
346
364
  issuerRequestUri
347
365
  );
348
366
 
@@ -46,5 +46,6 @@ export interface StartUserAuthorizationApi {
46
46
  clientId: string;
47
47
  codeVerifier: string;
48
48
  credentialDefinition: AuthorizationDetail[];
49
+ responseMode?: string;
49
50
  }>;
50
51
  }