@pagopa/io-react-native-wallet 3.0.0 → 3.1.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 (409) hide show
  1. package/lib/commonjs/api/index.js +3 -0
  2. package/lib/commonjs/api/index.js.map +1 -1
  3. package/lib/commonjs/client/generated/wallet-provider.js +42 -4
  4. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  5. package/lib/commonjs/client/index.js +5 -3
  6. package/lib/commonjs/client/index.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/README.md +2 -0
  8. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +2 -2
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +2 -1
  11. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  13. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  15. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +15 -8
  17. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +0 -1
  19. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  20. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +2 -2
  21. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  22. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +2 -1
  23. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  24. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  25. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  26. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  27. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  28. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  29. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +16 -5
  30. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  31. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +4 -2
  32. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  33. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +91 -30
  34. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  35. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +4 -4
  36. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  37. package/lib/commonjs/index.js +3 -1
  38. package/lib/commonjs/index.js.map +1 -1
  39. package/lib/commonjs/sd-jwt/index.js +3 -2
  40. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  41. package/lib/commonjs/sd-jwt/utils.js +2 -1
  42. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  43. package/lib/commonjs/trust/common/types.js +3 -3
  44. package/lib/commonjs/trust/common/types.js.map +1 -1
  45. package/lib/commonjs/trust/v1.0.0/types.js +6 -8
  46. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  47. package/lib/commonjs/trust/v1.3.3/types.js +1 -3
  48. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  49. package/lib/commonjs/utils/callbacks.js +2 -0
  50. package/lib/commonjs/utils/callbacks.js.map +1 -1
  51. package/lib/commonjs/utils/credentials.js +17 -2
  52. package/lib/commonjs/utils/credentials.js.map +1 -1
  53. package/lib/commonjs/utils/crypto.js +8 -0
  54. package/lib/commonjs/utils/crypto.js.map +1 -1
  55. package/lib/commonjs/utils/dpop.js +1 -1
  56. package/lib/commonjs/utils/dpop.js.map +1 -1
  57. package/lib/commonjs/utils/jwk.js +1 -1
  58. package/lib/commonjs/utils/jwk.js.map +1 -1
  59. package/lib/commonjs/utils/zod.js +1 -1
  60. package/lib/commonjs/utils/zod.js.map +1 -1
  61. package/lib/commonjs/wallet-instance-attestation/README.md +13 -10
  62. package/lib/commonjs/wallet-instance-attestation/api/types.js +9 -4
  63. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  64. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  65. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  66. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  67. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  68. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +4 -5
  69. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  70. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +5 -7
  71. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  72. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  73. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  74. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +26 -0
  75. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  76. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +13 -24
  77. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  78. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +35 -0
  79. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  80. package/lib/commonjs/wallet-unit-attestation/README.md +73 -0
  81. package/lib/commonjs/wallet-unit-attestation/api/index.js +6 -0
  82. package/lib/commonjs/wallet-unit-attestation/api/index.js.map +1 -0
  83. package/lib/commonjs/wallet-unit-attestation/api/types.js +45 -0
  84. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -0
  85. package/lib/commonjs/wallet-unit-attestation/index.js +20 -0
  86. package/lib/commonjs/wallet-unit-attestation/index.js.map +1 -0
  87. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +11 -0
  88. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  89. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +17 -0
  90. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  91. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +118 -0
  92. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  93. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +13 -0
  94. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  95. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +23 -0
  96. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  97. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js +20 -0
  98. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  99. package/lib/module/api/index.js +3 -0
  100. package/lib/module/api/index.js.map +1 -1
  101. package/lib/module/client/generated/wallet-provider.js +33 -1
  102. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  103. package/lib/module/client/index.js +4 -2
  104. package/lib/module/client/index.js.map +1 -1
  105. package/lib/module/credential/issuance/README.md +2 -0
  106. package/lib/module/credential/issuance/api/IssuerConfig.js +2 -2
  107. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  108. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +2 -1
  109. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  110. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  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/03-complete-user-authorization.js +2 -0
  113. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  114. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +16 -9
  115. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  116. package/lib/module/credential/issuance/v1.3.3/mappers.js +0 -1
  117. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  118. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +1 -1
  119. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  120. package/lib/module/credential/presentation/common/utils/sd-jwt.js +2 -1
  121. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  122. package/lib/module/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  123. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  124. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  125. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  126. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  127. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +16 -5
  128. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  129. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +4 -2
  130. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  131. package/lib/module/credentials-catalogue/v1.3.3/types.js +91 -30
  132. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  133. package/lib/module/credentials-catalogue/v1.3.3/utils.js +4 -4
  134. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  135. package/lib/module/index.js +2 -1
  136. package/lib/module/index.js.map +1 -1
  137. package/lib/module/sd-jwt/index.js +3 -2
  138. package/lib/module/sd-jwt/index.js.map +1 -1
  139. package/lib/module/sd-jwt/utils.js +2 -1
  140. package/lib/module/sd-jwt/utils.js.map +1 -1
  141. package/lib/module/trust/common/types.js +3 -3
  142. package/lib/module/trust/common/types.js.map +1 -1
  143. package/lib/module/trust/v1.0.0/types.js +5 -7
  144. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  145. package/lib/module/trust/v1.3.3/types.js +1 -3
  146. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  147. package/lib/module/utils/callbacks.js +3 -0
  148. package/lib/module/utils/callbacks.js.map +1 -1
  149. package/lib/module/utils/credentials.js +15 -1
  150. package/lib/module/utils/credentials.js.map +1 -1
  151. package/lib/module/utils/crypto.js +8 -0
  152. package/lib/module/utils/crypto.js.map +1 -1
  153. package/lib/module/utils/dpop.js +1 -1
  154. package/lib/module/utils/dpop.js.map +1 -1
  155. package/lib/module/utils/jwk.js +1 -1
  156. package/lib/module/utils/jwk.js.map +1 -1
  157. package/lib/module/utils/zod.js +1 -1
  158. package/lib/module/utils/zod.js.map +1 -1
  159. package/lib/module/wallet-instance-attestation/README.md +13 -10
  160. package/lib/module/wallet-instance-attestation/api/types.js +7 -2
  161. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  162. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +3 -3
  163. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  164. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  165. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  166. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +3 -4
  167. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  168. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +5 -7
  169. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  170. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  171. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  172. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +19 -0
  173. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  174. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +10 -21
  175. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  176. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +29 -0
  177. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  178. package/lib/module/wallet-unit-attestation/README.md +73 -0
  179. package/lib/module/wallet-unit-attestation/api/index.js +2 -0
  180. package/lib/module/wallet-unit-attestation/api/index.js.map +1 -0
  181. package/lib/module/wallet-unit-attestation/api/types.js +36 -0
  182. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -0
  183. package/lib/module/wallet-unit-attestation/index.js +3 -0
  184. package/lib/module/wallet-unit-attestation/index.js.map +1 -0
  185. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +4 -0
  186. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  187. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +10 -0
  188. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  189. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +112 -0
  190. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  191. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +6 -0
  192. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  193. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +14 -0
  194. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  195. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js +15 -0
  196. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  197. package/lib/typescript/api/index.d.ts +2 -0
  198. package/lib/typescript/api/index.d.ts.map +1 -1
  199. package/lib/typescript/client/generated/wallet-provider.d.ts +122 -358
  200. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  201. package/lib/typescript/client/index.d.ts.map +1 -1
  202. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +2 -0
  203. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  204. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +21 -357
  205. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  206. package/lib/typescript/credential/issuance/api/types.d.ts +5 -41
  207. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  208. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  209. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  210. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +1 -1
  211. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  212. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  213. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +103 -106
  214. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  215. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts +4 -26
  216. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  217. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  218. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  219. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  220. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +594 -2095
  221. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  222. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts +1 -5
  223. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts.map +1 -1
  224. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +9 -154
  225. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  226. package/lib/typescript/credential/presentation/api/types.d.ts +30 -106
  227. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  228. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +29 -244
  229. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  230. package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
  231. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  232. package/lib/typescript/credential/presentation/common/utils.d.ts.map +1 -1
  233. package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts.map +1 -1
  234. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +56 -58
  235. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  236. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +13 -52
  237. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  238. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  239. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  240. package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts.map +1 -1
  241. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +133 -525
  242. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  243. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  244. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +39 -3672
  245. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  246. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +1 -1
  247. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +6 -6
  248. package/lib/typescript/credential/status/v1.0.0/types.d.ts +33 -659
  249. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  250. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +111 -525
  251. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  252. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +48 -20
  253. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  254. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +41 -737
  255. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  256. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +147 -62
  257. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  258. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +180 -941
  259. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  260. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  261. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  262. package/lib/typescript/index.d.ts +4 -3
  263. package/lib/typescript/index.d.ts.map +1 -1
  264. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  265. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  266. package/lib/typescript/sd-jwt/index.d.ts +16 -16
  267. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  268. package/lib/typescript/sd-jwt/types.d.ts +33 -492
  269. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  270. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  271. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +12 -201
  272. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  273. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  274. package/lib/typescript/trust/common/types.d.ts +32 -1198
  275. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  276. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  277. package/lib/typescript/trust/v1.0.0/build-chain.d.ts +1 -53
  278. package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +1 -1
  279. package/lib/typescript/trust/v1.0.0/entities.d.ts +324 -347
  280. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  281. package/lib/typescript/trust/v1.0.0/mappers.d.ts +31 -35
  282. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  283. package/lib/typescript/trust/v1.0.0/types.d.ts +678 -12454
  284. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  285. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +4 -56
  286. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  287. package/lib/typescript/trust/v1.3.3/entities.d.ts +43 -47
  288. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  289. package/lib/typescript/trust/v1.3.3/types.d.ts +655 -14339
  290. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  291. package/lib/typescript/utils/auth.d.ts +3 -25
  292. package/lib/typescript/utils/auth.d.ts.map +1 -1
  293. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  294. package/lib/typescript/utils/config.d.ts +3 -3
  295. package/lib/typescript/utils/config.d.ts.map +1 -1
  296. package/lib/typescript/utils/credentials.d.ts +5 -0
  297. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  298. package/lib/typescript/utils/crypto.d.ts +18 -0
  299. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  300. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  301. package/lib/typescript/utils/dpop.d.ts +5 -12
  302. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  303. package/lib/typescript/utils/errors.d.ts.map +1 -1
  304. package/lib/typescript/utils/jwk.d.ts +15 -175
  305. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  306. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  307. package/lib/typescript/utils/misc.d.ts +2 -2
  308. package/lib/typescript/utils/misc.d.ts.map +1 -1
  309. package/lib/typescript/utils/object.d.ts.map +1 -1
  310. package/lib/typescript/utils/par.d.ts +7 -45
  311. package/lib/typescript/utils/par.d.ts.map +1 -1
  312. package/lib/typescript/utils/parser.d.ts.map +1 -1
  313. package/lib/typescript/utils/pop.d.ts +1 -9
  314. package/lib/typescript/utils/pop.d.ts.map +1 -1
  315. package/lib/typescript/utils/string.d.ts.map +1 -1
  316. package/lib/typescript/utils/zod.d.ts +4 -4
  317. package/lib/typescript/utils/zod.d.ts.map +1 -1
  318. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +9 -9
  319. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  320. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +19 -174
  321. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  322. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +14 -273
  323. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  324. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  325. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +5 -3
  326. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  327. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +39 -629
  328. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  329. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  330. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  331. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +90 -0
  332. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -0
  333. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +29 -891
  334. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  335. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts +15 -0
  336. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -0
  337. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +39 -0
  338. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -0
  339. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +67 -0
  340. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -0
  341. package/lib/typescript/wallet-unit-attestation/index.d.ts +4 -0
  342. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +1 -0
  343. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +3 -0
  344. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +1 -0
  345. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +3 -0
  346. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -0
  347. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +3 -0
  348. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -0
  349. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +107 -0
  350. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -0
  351. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +69 -0
  352. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -0
  353. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +7 -0
  354. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -0
  355. package/package.json +8 -8
  356. package/src/api/index.ts +4 -0
  357. package/src/client/generated/wallet-provider.ts +44 -0
  358. package/src/client/index.ts +5 -1
  359. package/src/credential/issuance/README.md +2 -0
  360. package/src/credential/issuance/api/05-obtain-credential.ts +2 -0
  361. package/src/credential/issuance/api/IssuerConfig.ts +4 -2
  362. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +2 -1
  363. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -3
  364. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +2 -0
  365. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +25 -11
  366. package/src/credential/issuance/v1.3.3/mappers.ts +10 -9
  367. package/src/credential/presentation/api/RelyingPartyConfig.ts +1 -1
  368. package/src/credential/presentation/common/utils/sd-jwt.ts +4 -1
  369. package/src/credential/presentation/v1.0.0/04-verify-request-object.ts +2 -2
  370. package/src/credential/presentation/v1.3.3/04-verify-request-object.ts +4 -2
  371. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +42 -10
  372. package/src/credentials-catalogue/v1.0.0/mappers.ts +27 -12
  373. package/src/credentials-catalogue/v1.3.3/mappers.ts +10 -4
  374. package/src/credentials-catalogue/v1.3.3/types.ts +102 -29
  375. package/src/credentials-catalogue/v1.3.3/utils.ts +9 -4
  376. package/src/index.ts +11 -2
  377. package/src/sd-jwt/index.ts +8 -3
  378. package/src/sd-jwt/utils.ts +5 -1
  379. package/src/trust/common/types.ts +3 -3
  380. package/src/trust/v1.0.0/types.ts +10 -10
  381. package/src/trust/v1.3.3/types.ts +4 -7
  382. package/src/utils/callbacks.ts +7 -1
  383. package/src/utils/credentials.ts +17 -1
  384. package/src/utils/crypto.ts +18 -0
  385. package/src/utils/dpop.ts +1 -1
  386. package/src/utils/jwk.ts +1 -1
  387. package/src/utils/mappers.ts +2 -2
  388. package/src/utils/zod.ts +5 -1
  389. package/src/wallet-instance-attestation/README.md +13 -10
  390. package/src/wallet-instance-attestation/api/index.ts +20 -13
  391. package/src/wallet-instance-attestation/api/types.ts +16 -4
  392. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -3
  393. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +7 -9
  394. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +7 -5
  395. package/src/wallet-instance-attestation/v1.3.3/index.ts +5 -7
  396. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +107 -3
  397. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +18 -0
  398. package/src/wallet-instance-attestation/v1.3.3/types.ts +16 -30
  399. package/src/wallet-instance-attestation/v1.3.3/utils.ts +35 -0
  400. package/src/wallet-unit-attestation/README.md +73 -0
  401. package/src/wallet-unit-attestation/api/index.ts +51 -0
  402. package/src/wallet-unit-attestation/api/types.ts +49 -0
  403. package/src/wallet-unit-attestation/index.ts +3 -0
  404. package/src/wallet-unit-attestation/v1.0.0/index.ts +5 -0
  405. package/src/wallet-unit-attestation/v1.3.3/index.ts +11 -0
  406. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +147 -0
  407. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +10 -0
  408. package/src/wallet-unit-attestation/v1.3.3/types.ts +21 -0
  409. package/src/wallet-unit-attestation/v1.3.3/utils.ts +14 -0
@@ -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;AAWzB,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC9E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBlC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBnC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBvC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { WalletInstanceAttestationJwt } from "./types";
2
+ /**
3
+ * Decode a given JWT to get the parsed Wallet Instance Attestation object they define.
4
+ * It ensures provided data is in a valid shape.
5
+ *
6
+ * It DOES NOT verify token signature nor check disclosures are correctly referenced by the JWT.
7
+ * Use {@link verify} instead
8
+ */
9
+ export declare function decode(token: string): WalletInstanceAttestationJwt;
10
+ /**
11
+ * Verify a given JWT to get the parsed Wallet Instance Attestation object they define.
12
+ * Same as {@link decode} plus token signature verification
13
+ */
14
+ export declare function verify(token: string): Promise<WalletInstanceAttestationJwt>;
15
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/wallet-instance-attestation/v1.3.3/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAMvD;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,4BAA4B,CAMlE;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,4BAA4B,CAAC,CAOvC"}
@@ -0,0 +1,39 @@
1
+ import type { IntegrityContext } from "../../utils/integrity";
2
+ import type { KeyAttestationCryptoContext } from "../../utils/crypto";
3
+ import type { DecodedWalletUnitAttestation, WalletAttestation, WalletAttestationRequestParams } from "./types";
4
+ interface UnsupportedApi {
5
+ isSupported: false;
6
+ }
7
+ export type WalletUnitAttestationApi = WalletUnitAttestationSupportedApi | UnsupportedApi;
8
+ export interface WalletUnitAttestationSupportedApi {
9
+ isSupported: true;
10
+ /**
11
+ * Request a Wallet Unit Attestation (WUA) to the Wallet provider with one or more keys to attest.
12
+ * Each key must be provided as a {@link KeyAttestationCryptoContext}.
13
+ *
14
+ * @param requestParams Wallet Provider data for the Wallet Attestation request
15
+ * @param ctx.keysToAttest The list of KeyAttestationCryptoContext's of the keys to attest
16
+ * @param ctx.integrityContext The hardware key pair associated with the Wallet Instance
17
+ * @param ctx.appFetch (optional) Http client
18
+ * @returns The generated Wallet Unit Attestation with the attested keys
19
+ */
20
+ getAttestation(requestParams: WalletAttestationRequestParams, ctx: {
21
+ keysToAttest: KeyAttestationCryptoContext[];
22
+ integrityContext: IntegrityContext;
23
+ appFetch?: GlobalFetch["fetch"];
24
+ }): Promise<WalletAttestation>;
25
+ /**
26
+ * Decode a given JWT to get the parsed Wallet Unit Attestation object they define.
27
+ * It ensures provided data is in a valid shape.
28
+ *
29
+ * It DOES NOT verify token signature.
30
+ *
31
+ * @param token The encoded token that represents a valid jwt for Wallet Unit Attestation
32
+ * @returns The validated Wallet Unit Attestation object
33
+ * @throws A decoding error if the token doesn't resolve in a valid JWT
34
+ * @throws A validation error if the provided data doesn't result in a valid Wallet Unit Attestation
35
+ */
36
+ decode(token: string): DecodedWalletUnitAttestation;
37
+ }
38
+ export {};
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EACV,4BAA4B,EAC5B,iBAAiB,EACjB,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAEjB,UAAU,cAAc;IACtB,WAAW,EAAE,KAAK,CAAC;CACpB;AAED,MAAM,MAAM,wBAAwB,GAChC,iCAAiC,GACjC,cAAc,CAAC;AAEnB,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,IAAI,CAAC;IAElB;;;;;;;;;OASG;IACH,cAAc,CACZ,aAAa,EAAE,8BAA8B,EAC7C,GAAG,EAAE;QACH,YAAY,EAAE,2BAA2B,EAAE,CAAC;QAC5C,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,4BAA4B,CAAC;CACrD"}
@@ -0,0 +1,67 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Common Wallet Unit Attestation shape. This object is
4
+ * an abstraction over the version-specific JWTs.
5
+ */
6
+ export type DecodedWalletUnitAttestation = z.infer<typeof DecodedWalletUnitAttestation>;
7
+ export declare const DecodedWalletUnitAttestation: z.ZodObject<{
8
+ attested_keys: z.ZodArray<z.ZodObject<{
9
+ alg: z.ZodOptional<z.ZodString>;
10
+ crv: z.ZodOptional<z.ZodString>;
11
+ d: z.ZodOptional<z.ZodString>;
12
+ dp: z.ZodOptional<z.ZodString>;
13
+ dq: z.ZodOptional<z.ZodString>;
14
+ e: z.ZodOptional<z.ZodString>;
15
+ ext: z.ZodOptional<z.ZodBoolean>;
16
+ k: z.ZodOptional<z.ZodString>;
17
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ kid: z.ZodOptional<z.ZodString>;
19
+ kty: z.ZodEnum<{
20
+ RSA: "RSA";
21
+ EC: "EC";
22
+ }>;
23
+ n: z.ZodOptional<z.ZodString>;
24
+ p: z.ZodOptional<z.ZodString>;
25
+ q: z.ZodOptional<z.ZodString>;
26
+ qi: z.ZodOptional<z.ZodString>;
27
+ use: z.ZodOptional<z.ZodString>;
28
+ x: z.ZodOptional<z.ZodString>;
29
+ y: z.ZodOptional<z.ZodString>;
30
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ x5t: z.ZodOptional<z.ZodString>;
32
+ "x5t#S256": z.ZodOptional<z.ZodString>;
33
+ x5u: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ user_authentication: z.ZodArray<z.ZodString>;
36
+ key_storage: z.ZodArray<z.ZodString>;
37
+ status: z.ZodObject<{
38
+ status_list: z.ZodObject<{
39
+ idx: z.ZodNumber;
40
+ uri: z.ZodString;
41
+ }, z.core.$strip>;
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
+ iss: z.ZodString;
55
+ iat: z.ZodNumber;
56
+ exp: z.ZodNumber;
57
+ }, z.core.$strip>;
58
+ export type WalletAttestation = {
59
+ format: string;
60
+ attestation: string;
61
+ };
62
+ export type WalletAttestationRequestParams = {
63
+ walletProviderBaseUrl: string;
64
+ walletSolutionId: string;
65
+ walletSolutionVersion: string;
66
+ };
67
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ export type * from "./api";
2
+ export { WalletUnitAttestation as V1_0_0 } from "./v1.0.0";
3
+ export { WalletUnitAttestation as V1_3_3 } from "./v1.3.3";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet-unit-attestation/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,OAAO,CAAC;AAC3B,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { WalletUnitAttestationApi } from "../api";
2
+ export declare const WalletUnitAttestation: WalletUnitAttestationApi;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,eAAO,MAAM,qBAAqB,EAAE,wBAEnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { WalletUnitAttestationApi } from "../api";
2
+ export declare const WalletUnitAttestation: WalletUnitAttestationApi;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAKvD,eAAO,MAAM,qBAAqB,EAAE,wBAInC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { WalletUnitAttestationSupportedApi } from "../api";
2
+ export declare const getAttestation: WalletUnitAttestationSupportedApi["getAttestation"];
3
+ //# sourceMappingURL=issuing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuing.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/issuing.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,QAAQ,CAAC;AAmDhE,eAAO,MAAM,cAAc,EAAE,iCAAiC,CAAC,gBAAgB,CAwF5E,CAAC"}
@@ -0,0 +1,107 @@
1
+ export declare const mapToDecodedWalletUnitAttestation: (input: {
2
+ header: {
3
+ alg: string;
4
+ kid: string;
5
+ typ: string;
6
+ x5c?: string[] | undefined;
7
+ trust_chain?: string[] | undefined;
8
+ } & {
9
+ typ: "key-attestation+jwt";
10
+ };
11
+ payload: {
12
+ attested_keys: {
13
+ kty: "RSA" | "EC";
14
+ alg?: string | undefined;
15
+ crv?: string | undefined;
16
+ d?: string | undefined;
17
+ dp?: string | undefined;
18
+ dq?: string | undefined;
19
+ e?: string | undefined;
20
+ ext?: boolean | undefined;
21
+ k?: string | undefined;
22
+ key_ops?: string[] | undefined;
23
+ kid?: string | undefined;
24
+ n?: string | undefined;
25
+ p?: string | undefined;
26
+ q?: string | undefined;
27
+ qi?: string | undefined;
28
+ use?: string | undefined;
29
+ x?: string | undefined;
30
+ y?: string | undefined;
31
+ x5c?: string[] | undefined;
32
+ x5t?: string | undefined;
33
+ "x5t#S256"?: string | undefined;
34
+ x5u?: string | undefined;
35
+ }[];
36
+ user_authentication: string[];
37
+ key_storage: string[];
38
+ status: {
39
+ status_list: {
40
+ idx: number;
41
+ uri: string;
42
+ };
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
+ iss: string;
56
+ iat: number;
57
+ exp: number;
58
+ };
59
+ }) => {
60
+ attested_keys: {
61
+ kty: "RSA" | "EC";
62
+ alg?: string | undefined;
63
+ crv?: string | undefined;
64
+ d?: string | undefined;
65
+ dp?: string | undefined;
66
+ dq?: string | undefined;
67
+ e?: string | undefined;
68
+ ext?: boolean | undefined;
69
+ k?: string | undefined;
70
+ key_ops?: string[] | undefined;
71
+ kid?: string | undefined;
72
+ n?: string | undefined;
73
+ p?: string | undefined;
74
+ q?: string | undefined;
75
+ qi?: string | undefined;
76
+ use?: string | undefined;
77
+ x?: string | undefined;
78
+ y?: string | undefined;
79
+ x5c?: string[] | undefined;
80
+ x5t?: string | undefined;
81
+ "x5t#S256"?: string | undefined;
82
+ x5u?: string | undefined;
83
+ }[];
84
+ user_authentication: string[];
85
+ key_storage: string[];
86
+ status: {
87
+ status_list: {
88
+ idx: number;
89
+ uri: string;
90
+ };
91
+ };
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
+ iss: string;
104
+ iat: number;
105
+ exp: number;
106
+ };
107
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,69 @@
1
+ import * as z from "zod";
2
+ export type WalletUnitAttestationJwt = z.infer<typeof WalletUnitAttestationJwt>;
3
+ export declare const WalletUnitAttestationJwt: z.ZodObject<{
4
+ header: z.ZodIntersection<z.ZodObject<{
5
+ alg: z.ZodString;
6
+ kid: z.ZodString;
7
+ typ: z.ZodString;
8
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ typ: z.ZodLiteral<"key-attestation+jwt">;
12
+ }, z.core.$strip>>;
13
+ payload: z.ZodObject<{
14
+ attested_keys: z.ZodArray<z.ZodObject<{
15
+ alg: z.ZodOptional<z.ZodString>;
16
+ crv: z.ZodOptional<z.ZodString>;
17
+ d: z.ZodOptional<z.ZodString>;
18
+ dp: z.ZodOptional<z.ZodString>;
19
+ dq: z.ZodOptional<z.ZodString>;
20
+ e: z.ZodOptional<z.ZodString>;
21
+ ext: z.ZodOptional<z.ZodBoolean>;
22
+ k: z.ZodOptional<z.ZodString>;
23
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ kid: z.ZodOptional<z.ZodString>;
25
+ kty: z.ZodEnum<{
26
+ RSA: "RSA";
27
+ EC: "EC";
28
+ }>;
29
+ n: z.ZodOptional<z.ZodString>;
30
+ p: z.ZodOptional<z.ZodString>;
31
+ q: z.ZodOptional<z.ZodString>;
32
+ qi: z.ZodOptional<z.ZodString>;
33
+ use: z.ZodOptional<z.ZodString>;
34
+ x: z.ZodOptional<z.ZodString>;
35
+ y: z.ZodOptional<z.ZodString>;
36
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ x5t: z.ZodOptional<z.ZodString>;
38
+ "x5t#S256": z.ZodOptional<z.ZodString>;
39
+ x5u: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ user_authentication: z.ZodArray<z.ZodString>;
42
+ key_storage: z.ZodArray<z.ZodString>;
43
+ status: z.ZodObject<{
44
+ status_list: z.ZodObject<{
45
+ idx: z.ZodNumber;
46
+ uri: z.ZodString;
47
+ }, z.core.$strip>;
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
+ iss: z.ZodString;
61
+ iat: z.ZodNumber;
62
+ exp: z.ZodNumber;
63
+ }, z.core.$strip>;
64
+ }, z.core.$strip>;
65
+ export type WalletUnitAttestationResponse = z.infer<typeof WalletUnitAttestationResponse>;
66
+ export declare const WalletUnitAttestationResponse: z.ZodObject<{
67
+ wallet_unit_attestation: z.ZodString;
68
+ }, z.core.$strip>;
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,7 @@
1
+ import { WalletUnitAttestationJwt } from "./types";
2
+ /**
3
+ * Decode a given JWT to get the parsed Wallet Unit Attestation object they define.
4
+ * It ensures the provided data is in a valid shape, but it DOES NOT verify the signature.
5
+ */
6
+ export declare function decode(token: string): WalletUnitAttestationJwt;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/wallet-unit-attestation/v1.3.3/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,wBAAwB,CAM9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-wallet",
3
- "version": "3.0.0",
3
+ "version": "3.1.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",
@@ -68,7 +68,7 @@
68
68
  "del-cli": "^5.0.0",
69
69
  "eslint": "^8.4.1",
70
70
  "eslint-plugin-prettier": "^5.2.3",
71
- "jest": "^28.1.1",
71
+ "jest": "^29.6.3",
72
72
  "pod-install": "^0.1.0",
73
73
  "prettier": "^3.5.3",
74
74
  "react": "19.0.0",
@@ -77,7 +77,7 @@
77
77
  "react-native-quick-crypto": "^0.7.17",
78
78
  "release-it": "^19.0.6",
79
79
  "typed-openapi": "^0.4.1",
80
- "typescript": "5.0.4"
80
+ "typescript": "^5.8.3"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@pagopa/io-react-native-crypto": "*",
@@ -140,10 +140,10 @@
140
140
  ]
141
141
  },
142
142
  "dependencies": {
143
- "@pagopa/io-wallet-oauth2": "^1.0.0",
144
- "@pagopa/io-wallet-oid4vci": "^1.0.0",
145
- "@pagopa/io-wallet-oid4vp": "^1.0.0",
146
- "@pagopa/io-wallet-utils": "^1.0.0",
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-utils": "1.2.1",
147
147
  "@sd-jwt/core": "^0.19.0",
148
148
  "@sd-jwt/crypto-nodejs": "^0.19.0",
149
149
  "@sd-jwt/jwt-status-list": "^0.19.0",
@@ -155,6 +155,6 @@
155
155
  "parse-url": "^10.0.3",
156
156
  "react-native-url-polyfill": "^2.0.0",
157
157
  "uuid": "^11.0.3",
158
- "zod": "^3.25.76"
158
+ "zod": "^4.3.6"
159
159
  }
160
160
  }
package/src/api/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as WalletInstance from "../wallet-instance";
2
2
  import * as WIA from "../wallet-instance-attestation";
3
+ import * as WUA from "../wallet-unit-attestation";
3
4
  import * as Trust from "../trust";
4
5
  import * as CredentialIssuance from "../credential/issuance";
5
6
  import * as CredentialStatus from "../credential/status";
@@ -16,6 +17,7 @@ export type ItwVersion = "1.0.0" | "1.3.3";
16
17
  export interface IoWalletApi {
17
18
  WalletInstance: WalletInstance.WalletInstanceApi;
18
19
  WalletInstanceAttestation: WIA.WalletInstanceAttestationApi;
20
+ WalletUnitAttestation: WUA.WalletUnitAttestationApi;
19
21
  Trust: Trust.TrustApi;
20
22
  CredentialIssuance: CredentialIssuance.IssuanceApi;
21
23
  CredentialStatus: CredentialStatus.CredentialStatusApi;
@@ -32,6 +34,7 @@ export const ioWalletApiByVersion: Record<ItwVersion, IoWalletApi> = {
32
34
  "1.0.0": {
33
35
  WalletInstance: WalletInstance.V1_0_0,
34
36
  WalletInstanceAttestation: WIA.V1_0_0,
37
+ WalletUnitAttestation: WUA.V1_0_0,
35
38
  Trust: Trust.V1_0_0,
36
39
  CredentialIssuance: CredentialIssuance.V1_0_0,
37
40
  CredentialStatus: CredentialStatus.V1_0_0,
@@ -44,6 +47,7 @@ export const ioWalletApiByVersion: Record<ItwVersion, IoWalletApi> = {
44
47
  "1.3.3": {
45
48
  WalletInstance: WalletInstance.V1_3_3,
46
49
  WalletInstanceAttestation: WIA.V1_3_3,
50
+ WalletUnitAttestation: WUA.V1_3_3,
47
51
  Trust: Trust.V1_0_0,
48
52
  CredentialIssuance: CredentialIssuance.V1_3_3,
49
53
  CredentialStatus: CredentialStatus.V1_3_3,
@@ -35,6 +35,16 @@ export const WalletAttestationsView = z.object({
35
35
  ),
36
36
  });
37
37
 
38
+ export type WalletInstanceAttestation = z.infer<typeof WalletInstanceAttestation>;
39
+ export const WalletInstanceAttestation = z.object({
40
+ wallet_instance_attestation: z.string(),
41
+ });
42
+
43
+ export type WalletUnitAttestation = z.infer<typeof WalletUnitAttestation>;
44
+ export const WalletUnitAttestation = z.object({
45
+ wallet_unit_attestation: z.string(),
46
+ });
47
+
38
48
  export type CreateWalletInstanceBody = z.infer<typeof CreateWalletInstanceBody>;
39
49
  export const CreateWalletInstanceBody = z.object({
40
50
  challenge: z.string(),
@@ -48,6 +58,12 @@ export const CreateWalletAttestationBody = z.object({
48
58
  assertion: z.string(),
49
59
  });
50
60
 
61
+ export type CreateWalletInstanceAttestationBody = z.infer<typeof CreateWalletInstanceAttestationBody>;
62
+ export const CreateWalletInstanceAttestationBody = z.string();
63
+
64
+ export type CreateWalletUnitAttestationBody = z.infer<typeof CreateWalletUnitAttestationBody>;
65
+ export const CreateWalletUnitAttestationBody = z.string();
66
+
51
67
  export type ProblemJson = z.infer<typeof ProblemJson>;
52
68
  export const ProblemJson = z.object({
53
69
  type: z.string().optional(),
@@ -143,6 +159,32 @@ export const get_IsFiscalCodeWhitelisted = {
143
159
  response: WhitelistedFiscalCodeData,
144
160
  };
145
161
 
162
+ export type post_CreateWalletInstanceAttestation = typeof post_CreateWalletInstanceAttestation;
163
+ export const post_CreateWalletInstanceAttestation = {
164
+ method: z.literal("POST"),
165
+ path: z.literal("/wallet-instance-attestations"),
166
+ parameters: z.object({
167
+ header: z.object({
168
+ "Content-Type": z.string().optional(),
169
+ }),
170
+ body: CreateWalletInstanceAttestationBody,
171
+ }),
172
+ response: WalletInstanceAttestation,
173
+ };
174
+
175
+ export type post_CreateWalletUnitAttestation = typeof post_CreateWalletUnitAttestation;
176
+ export const post_CreateWalletUnitAttestation = {
177
+ method: z.literal("POST"),
178
+ path: z.literal("/wallet-unit-attestations"),
179
+ parameters: z.object({
180
+ header: z.object({
181
+ "Content-Type": z.string().optional(),
182
+ }),
183
+ body: CreateWalletUnitAttestationBody,
184
+ }),
185
+ response: WalletUnitAttestation,
186
+ };
187
+
146
188
  // <EndpointByMethod>
147
189
  export const EndpointByMethod = {
148
190
  get: {
@@ -155,6 +197,8 @@ export const EndpointByMethod = {
155
197
  post: {
156
198
  "/wallet-instances": post_CreateWalletInstance,
157
199
  "/wallet-attestations": post_CreateWalletAttestation,
200
+ "/wallet-instance-attestations": post_CreateWalletInstanceAttestation,
201
+ "/wallet-unit-attestations": post_CreateWalletUnitAttestation,
158
202
  },
159
203
  put: {
160
204
  "/wallet-instances/{id}/status": put_SetWalletInstanceStatus,
@@ -41,9 +41,10 @@ export const getWalletProviderClient = (context: {
41
41
  (method, url, params) =>
42
42
  appFetch(interpolateUrl(url, params), {
43
43
  method,
44
- body: params ? JSON.stringify(params.body) : undefined,
44
+ body: params?.body ? processBody(params.body) : undefined,
45
45
  headers: {
46
46
  "Content-Type": "application/json",
47
+ ...params?.header,
47
48
  },
48
49
  })
49
50
  .then(validateResponse)
@@ -52,6 +53,9 @@ export const getWalletProviderClient = (context: {
52
53
  );
53
54
  };
54
55
 
56
+ const processBody = (body: unknown): string =>
57
+ typeof body === "string" ? body : JSON.stringify(body);
58
+
55
59
  /**
56
60
  * Function to interpolate the url when the request includes path params.
57
61
  * The client generator expects the literal name of the param in the url
@@ -204,6 +204,7 @@ const { credential, format } = await wallet.CredentialIssuance.obtainCredential(
204
204
  {
205
205
  credentialCryptoContext,
206
206
  dPopCryptoContext,
207
+ walletUnitAttestation, // Required in issuance v1.3
207
208
  appFetch,
208
209
  }
209
210
  );
@@ -359,6 +360,7 @@ const { credential, format } = await wallet.CredentialIssuance.obtainCredential(
359
360
  {
360
361
  credentialCryptoContext,
361
362
  dPopCryptoContext,
363
+ walletUnitAttestation, // Required in issuance v1.3
362
364
  appFetch,
363
365
  }
364
366
  );
@@ -19,6 +19,7 @@ export interface ObtainCredentialApi {
19
19
  * @param credentialDefinition The credential definition of the credential to be obtained returned by {@link authorizeAccess}
20
20
  * @param context.credentialCryptoContext The crypto context used to obtain the credential
21
21
  * @param context.dPopCryptoContext The DPoP crypto context
22
+ * @param context.walletUnitAttestation (optional) The Wallet Unit Attestation JWT bound to the provided credentialCryptoContext
22
23
  * @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
23
24
  * @returns The credential response containing the credential
24
25
  */
@@ -33,6 +34,7 @@ export interface ObtainCredentialApi {
33
34
  context: {
34
35
  dPopCryptoContext: CryptoContext;
35
36
  credentialCryptoContext: CryptoContext;
37
+ walletUnitAttestation?: string;
36
38
  appFetch?: GlobalFetch["fetch"];
37
39
  }
38
40
  ): Promise<{
@@ -38,7 +38,9 @@ const CredentialConfig = z.intersection(
38
38
  /**
39
39
  * @deprecated Kept for backward compatibility with v0.7.1
40
40
  */
41
- issuance_errors_supported: z.record(IssuanceErrorSupported).optional(),
41
+ issuance_errors_supported: z
42
+ .record(z.string(), IssuanceErrorSupported)
43
+ .optional(),
42
44
  })
43
45
  );
44
46
 
@@ -55,7 +57,7 @@ export const IssuerConfig = z.object({
55
57
  status_assertion_endpoint: z.string().optional(),
56
58
  credential_endpoint: z.string(),
57
59
  keys: z.array(JWK),
58
- credential_configurations_supported: z.record(CredentialConfig),
60
+ credential_configurations_supported: z.record(z.string(), CredentialConfig),
59
61
  federation_entity: FederationEntityMetadata,
60
62
  credential_issuance_batch_size: z.number().optional(),
61
63
  /**
@@ -10,6 +10,7 @@ import { IoWalletError } from "../../../utils/errors";
10
10
  import { LogLevel, Logger } from "../../../utils/logging";
11
11
  import { isSameThumbprint, type JWK } from "../../../utils/jwk";
12
12
  import type { SdJwt4VCBase } from "../../../sd-jwt/types";
13
+ import { fixLegacyCredentialSdJwt } from "../../../utils/credentials";
13
14
  import type { IssuanceApi, IssuerConfig, ParsedCredential } from "../api";
14
15
 
15
16
  type CredentialConf =
@@ -190,7 +191,7 @@ async function verifyCredentialSdJwt(
190
191
  throw new IoWalletError(message);
191
192
  }
192
193
 
193
- return await sdJwtInstance.decode(rawCredential);
194
+ return await sdJwtInstance.decode(fixLegacyCredentialSdJwt(rawCredential));
194
195
  }
195
196
 
196
197
  export const verifyAndParseCredentialSdJwt: IssuanceApi["verifyAndParseCredential"] =
@@ -1,5 +1,9 @@
1
- import { fetchMetadata } from "@pagopa/io-wallet-oid4vci";
1
+ import {
2
+ fetchMetadata,
3
+ type MetadataResponseV1_3,
4
+ } from "@pagopa/io-wallet-oid4vci";
2
5
  import { partialCallbacks } from "../../../utils/callbacks";
6
+ import { sdkConfigV1_3 } from "../../../utils/config";
3
7
  import type { IssuanceApi } from "../api";
4
8
  import { mapToIssuerConfig } from "./mappers";
5
9
 
@@ -7,13 +11,14 @@ export const evaluateIssuerTrust: IssuanceApi["evaluateIssuerTrust"] = async (
7
11
  issuerUrl,
8
12
  context = {}
9
13
  ) => {
10
- const issuerMetadata = await fetchMetadata({
14
+ const issuerMetadata = (await fetchMetadata({
15
+ config: sdkConfigV1_3,
11
16
  credentialIssuerUrl: issuerUrl,
12
17
  callbacks: {
13
18
  ...partialCallbacks,
14
19
  fetch: context.appFetch,
15
20
  },
16
- });
21
+ })) as MetadataResponseV1_3;
17
22
 
18
23
  return { issuerConf: mapToIssuerConfig(issuerMetadata) };
19
24
  };