@pagopa/io-react-native-wallet 3.0.1 → 3.1.1

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 (505) 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/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  11. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  13. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +15 -8
  15. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +0 -1
  17. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  18. package/lib/commonjs/credential/presentation/api/{06-send-authorization-response.js → 04-verify-certificate-chain.js} +1 -1
  19. package/lib/commonjs/credential/presentation/api/04-verify-certificate-chain.js.map +1 -0
  20. package/lib/commonjs/credential/presentation/api/{04-verify-request-object.js → 05-verify-request-object.js} +1 -1
  21. package/lib/commonjs/credential/presentation/api/05-verify-request-object.js.map +1 -0
  22. package/lib/commonjs/credential/presentation/api/{05-evaluate-dcql-query.js → 06-evaluate-dcql-query.js} +1 -1
  23. package/lib/commonjs/credential/presentation/api/06-evaluate-dcql-query.js.map +1 -0
  24. package/lib/commonjs/credential/presentation/api/07-send-authorization-response.js +6 -0
  25. package/lib/commonjs/credential/presentation/api/07-send-authorization-response.js.map +1 -0
  26. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +2 -2
  27. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  28. package/lib/commonjs/credential/presentation/api/index.js.map +1 -1
  29. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js +12 -0
  30. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +1 -0
  31. package/lib/commonjs/credential/presentation/v1.0.0/{04-verify-request-object.js → 05-verify-request-object.js} +1 -1
  32. package/lib/commonjs/credential/presentation/v1.0.0/{04-verify-request-object.js.map → 05-verify-request-object.js.map} +1 -1
  33. package/lib/commonjs/credential/presentation/v1.0.0/{05-evaluate-dcql-query.js → 06-evaluate-dcql-query.js} +1 -1
  34. package/lib/commonjs/credential/presentation/v1.0.0/{05-evaluate-dcql-query.js.map → 06-evaluate-dcql-query.js.map} +1 -1
  35. package/lib/commonjs/credential/presentation/v1.0.0/{06-send-authorization-response.js → 07-send-authorization-response.js} +1 -1
  36. package/lib/commonjs/credential/presentation/v1.0.0/{06-send-authorization-response.js.map → 07-send-authorization-response.js.map} +1 -1
  37. package/lib/commonjs/credential/presentation/v1.0.0/index.js +5 -3
  38. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  39. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js +33 -0
  40. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -0
  41. package/lib/commonjs/credential/presentation/v1.3.3/{04-verify-request-object.js → 05-verify-request-object.js} +5 -3
  42. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -0
  43. package/lib/commonjs/credential/presentation/v1.3.3/{05-evaluate-dcql-query.js → 06-evaluate-dcql-query.js} +1 -1
  44. package/lib/commonjs/credential/presentation/v1.3.3/{05-evaluate-dcql-query.js.map → 06-evaluate-dcql-query.js.map} +1 -1
  45. package/lib/commonjs/credential/presentation/v1.3.3/{06-send-authorization-response.js → 07-send-authorization-response.js} +1 -1
  46. package/lib/commonjs/credential/presentation/v1.3.3/{06-send-authorization-response.js.map → 07-send-authorization-response.js.map} +1 -1
  47. package/lib/commonjs/credential/presentation/v1.3.3/index.js +5 -3
  48. package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -1
  49. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +53 -13
  50. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  51. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +16 -5
  52. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  53. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +32 -0
  54. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -0
  55. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +3 -1
  56. package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
  57. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +6 -2
  58. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  59. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +91 -30
  60. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  61. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +36 -5
  62. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  63. package/lib/commonjs/index.js +3 -1
  64. package/lib/commonjs/index.js.map +1 -1
  65. package/lib/commonjs/trust/common/types.js +3 -3
  66. package/lib/commonjs/trust/common/types.js.map +1 -1
  67. package/lib/commonjs/trust/v1.0.0/types.js +6 -8
  68. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  69. package/lib/commonjs/trust/v1.3.3/types.js +1 -3
  70. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  71. package/lib/commonjs/utils/callbacks.js +2 -0
  72. package/lib/commonjs/utils/callbacks.js.map +1 -1
  73. package/lib/commonjs/utils/crypto.js +8 -0
  74. package/lib/commonjs/utils/crypto.js.map +1 -1
  75. package/lib/commonjs/utils/dpop.js +1 -1
  76. package/lib/commonjs/utils/dpop.js.map +1 -1
  77. package/lib/commonjs/utils/jwk.js +1 -1
  78. package/lib/commonjs/utils/jwk.js.map +1 -1
  79. package/lib/commonjs/utils/zod.js +1 -1
  80. package/lib/commonjs/utils/zod.js.map +1 -1
  81. package/lib/commonjs/wallet-instance-attestation/README.md +13 -10
  82. package/lib/commonjs/wallet-instance-attestation/api/types.js +9 -4
  83. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  84. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  85. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  86. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  87. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  88. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +4 -5
  89. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  90. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +5 -7
  91. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  92. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  93. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  94. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +26 -0
  95. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  96. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +13 -24
  97. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  98. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +35 -0
  99. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  100. package/lib/commonjs/wallet-unit-attestation/README.md +73 -0
  101. package/lib/commonjs/wallet-unit-attestation/api/index.js +6 -0
  102. package/lib/commonjs/wallet-unit-attestation/api/index.js.map +1 -0
  103. package/lib/commonjs/wallet-unit-attestation/api/types.js +45 -0
  104. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -0
  105. package/lib/commonjs/wallet-unit-attestation/index.js +20 -0
  106. package/lib/commonjs/wallet-unit-attestation/index.js.map +1 -0
  107. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +11 -0
  108. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  109. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +17 -0
  110. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  111. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +118 -0
  112. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  113. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +13 -0
  114. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  115. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +23 -0
  116. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  117. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js +20 -0
  118. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  119. package/lib/module/api/index.js +3 -0
  120. package/lib/module/api/index.js.map +1 -1
  121. package/lib/module/client/generated/wallet-provider.js +33 -1
  122. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  123. package/lib/module/client/index.js +4 -2
  124. package/lib/module/client/index.js.map +1 -1
  125. package/lib/module/credential/issuance/README.md +2 -0
  126. package/lib/module/credential/issuance/api/IssuerConfig.js +2 -2
  127. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  128. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  129. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  130. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  131. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  132. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +16 -9
  133. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  134. package/lib/module/credential/issuance/v1.3.3/mappers.js +0 -1
  135. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  136. package/lib/module/credential/presentation/api/04-verify-certificate-chain.js +2 -0
  137. package/lib/module/credential/presentation/api/04-verify-certificate-chain.js.map +1 -0
  138. package/lib/module/credential/presentation/api/05-verify-request-object.js +2 -0
  139. package/lib/module/credential/presentation/api/05-verify-request-object.js.map +1 -0
  140. package/lib/module/credential/presentation/api/06-evaluate-dcql-query.js +2 -0
  141. package/lib/module/credential/presentation/api/06-evaluate-dcql-query.js.map +1 -0
  142. package/lib/module/credential/presentation/api/07-send-authorization-response.js +2 -0
  143. package/lib/module/credential/presentation/api/07-send-authorization-response.js.map +1 -0
  144. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +1 -1
  145. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  146. package/lib/module/credential/presentation/api/index.js.map +1 -1
  147. package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js +5 -0
  148. package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +1 -0
  149. package/lib/module/credential/presentation/v1.0.0/{04-verify-request-object.js → 05-verify-request-object.js} +1 -1
  150. package/lib/module/credential/presentation/v1.0.0/{04-verify-request-object.js.map → 05-verify-request-object.js.map} +1 -1
  151. package/lib/module/credential/presentation/v1.0.0/{05-evaluate-dcql-query.js → 06-evaluate-dcql-query.js} +1 -1
  152. package/lib/module/credential/presentation/v1.0.0/{05-evaluate-dcql-query.js.map → 06-evaluate-dcql-query.js.map} +1 -1
  153. package/lib/module/credential/presentation/v1.0.0/{06-send-authorization-response.js → 07-send-authorization-response.js} +1 -1
  154. package/lib/module/credential/presentation/v1.0.0/{06-send-authorization-response.js.map → 07-send-authorization-response.js.map} +1 -1
  155. package/lib/module/credential/presentation/v1.0.0/index.js +5 -3
  156. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  157. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js +26 -0
  158. package/lib/module/credential/presentation/v1.3.3/04-verify-certificate-chain.js.map +1 -0
  159. package/lib/module/credential/presentation/v1.3.3/{04-verify-request-object.js → 05-verify-request-object.js} +5 -3
  160. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -0
  161. package/lib/module/credential/presentation/v1.3.3/{05-evaluate-dcql-query.js → 06-evaluate-dcql-query.js} +1 -1
  162. package/lib/module/credential/presentation/v1.3.3/{05-evaluate-dcql-query.js.map → 06-evaluate-dcql-query.js.map} +1 -1
  163. package/lib/module/credential/presentation/v1.3.3/{06-send-authorization-response.js → 07-send-authorization-response.js} +1 -1
  164. package/lib/module/credential/presentation/v1.3.3/{06-send-authorization-response.js.map → 07-send-authorization-response.js.map} +1 -1
  165. package/lib/module/credential/presentation/v1.3.3/index.js +5 -3
  166. package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -1
  167. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +52 -12
  168. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  169. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +16 -5
  170. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  171. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +25 -0
  172. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -0
  173. package/lib/module/credentials-catalogue/v1.3.3/index.js +3 -1
  174. package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
  175. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +6 -2
  176. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  177. package/lib/module/credentials-catalogue/v1.3.3/types.js +91 -30
  178. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  179. package/lib/module/credentials-catalogue/v1.3.3/utils.js +32 -4
  180. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  181. package/lib/module/index.js +2 -1
  182. package/lib/module/index.js.map +1 -1
  183. package/lib/module/trust/common/types.js +3 -3
  184. package/lib/module/trust/common/types.js.map +1 -1
  185. package/lib/module/trust/v1.0.0/types.js +5 -7
  186. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  187. package/lib/module/trust/v1.3.3/types.js +1 -3
  188. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  189. package/lib/module/utils/callbacks.js +3 -0
  190. package/lib/module/utils/callbacks.js.map +1 -1
  191. package/lib/module/utils/crypto.js +8 -0
  192. package/lib/module/utils/crypto.js.map +1 -1
  193. package/lib/module/utils/dpop.js +1 -1
  194. package/lib/module/utils/dpop.js.map +1 -1
  195. package/lib/module/utils/jwk.js +1 -1
  196. package/lib/module/utils/jwk.js.map +1 -1
  197. package/lib/module/utils/zod.js +1 -1
  198. package/lib/module/utils/zod.js.map +1 -1
  199. package/lib/module/wallet-instance-attestation/README.md +13 -10
  200. package/lib/module/wallet-instance-attestation/api/types.js +7 -2
  201. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  202. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +3 -3
  203. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  204. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  205. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  206. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +3 -4
  207. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  208. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +5 -7
  209. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  210. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  211. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  212. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +19 -0
  213. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  214. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +10 -21
  215. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  216. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +29 -0
  217. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  218. package/lib/module/wallet-unit-attestation/README.md +73 -0
  219. package/lib/module/wallet-unit-attestation/api/index.js +2 -0
  220. package/lib/module/wallet-unit-attestation/api/index.js.map +1 -0
  221. package/lib/module/wallet-unit-attestation/api/types.js +36 -0
  222. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -0
  223. package/lib/module/wallet-unit-attestation/index.js +3 -0
  224. package/lib/module/wallet-unit-attestation/index.js.map +1 -0
  225. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +4 -0
  226. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  227. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +10 -0
  228. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  229. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +112 -0
  230. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  231. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +6 -0
  232. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  233. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +14 -0
  234. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  235. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js +15 -0
  236. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  237. package/lib/typescript/api/index.d.ts +2 -0
  238. package/lib/typescript/api/index.d.ts.map +1 -1
  239. package/lib/typescript/client/generated/wallet-provider.d.ts +122 -358
  240. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  241. package/lib/typescript/client/index.d.ts.map +1 -1
  242. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +2 -0
  243. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  244. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +21 -357
  245. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  246. package/lib/typescript/credential/issuance/api/types.d.ts +5 -41
  247. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  248. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  249. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +1 -1
  250. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  251. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  252. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +103 -106
  253. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  254. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts +4 -26
  255. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  256. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  257. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  258. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  259. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +594 -2095
  260. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  261. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts +1 -5
  262. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts.map +1 -1
  263. package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts +17 -0
  264. package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts.map +1 -0
  265. package/lib/typescript/credential/presentation/api/{04-verify-request-object.d.ts → 05-verify-request-object.d.ts} +1 -1
  266. package/lib/typescript/credential/presentation/api/{04-verify-request-object.d.ts.map → 05-verify-request-object.d.ts.map} +1 -1
  267. package/lib/typescript/credential/presentation/api/{05-evaluate-dcql-query.d.ts → 06-evaluate-dcql-query.d.ts} +1 -1
  268. package/lib/typescript/credential/presentation/api/{05-evaluate-dcql-query.d.ts.map → 06-evaluate-dcql-query.d.ts.map} +1 -1
  269. package/lib/typescript/credential/presentation/api/{06-send-authorization-response.d.ts → 07-send-authorization-response.d.ts} +2 -2
  270. package/lib/typescript/credential/presentation/api/{06-send-authorization-response.d.ts.map → 07-send-authorization-response.d.ts.map} +1 -1
  271. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +9 -154
  272. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  273. package/lib/typescript/credential/presentation/api/index.d.ts +5 -4
  274. package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
  275. package/lib/typescript/credential/presentation/api/types.d.ts +30 -106
  276. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  277. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +29 -244
  278. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  279. package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
  280. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  281. package/lib/typescript/credential/presentation/common/utils.d.ts.map +1 -1
  282. package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts +3 -0
  283. package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts.map +1 -0
  284. package/lib/typescript/credential/presentation/v1.0.0/{04-verify-request-object.d.ts → 05-verify-request-object.d.ts} +1 -1
  285. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -0
  286. package/lib/typescript/credential/presentation/v1.0.0/{05-evaluate-dcql-query.d.ts → 06-evaluate-dcql-query.d.ts} +1 -1
  287. package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -0
  288. package/lib/typescript/credential/presentation/v1.0.0/{06-send-authorization-response.d.ts → 07-send-authorization-response.d.ts} +1 -1
  289. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -0
  290. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  291. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +56 -58
  292. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  293. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +13 -52
  294. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  295. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  296. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  297. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts +3 -0
  298. package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +1 -0
  299. package/lib/typescript/credential/presentation/v1.3.3/{04-verify-request-object.d.ts → 05-verify-request-object.d.ts} +1 -1
  300. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -0
  301. package/lib/typescript/credential/presentation/v1.3.3/{05-evaluate-dcql-query.d.ts → 06-evaluate-dcql-query.d.ts} +1 -1
  302. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -0
  303. package/lib/typescript/credential/presentation/v1.3.3/{06-send-authorization-response.d.ts → 07-send-authorization-response.d.ts} +1 -1
  304. package/lib/typescript/credential/presentation/v1.3.3/{06-send-authorization-response.d.ts.map → 07-send-authorization-response.d.ts.map} +1 -1
  305. package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -1
  306. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +133 -525
  307. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  308. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  309. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +39 -3672
  310. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  311. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +1 -1
  312. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +6 -6
  313. package/lib/typescript/credential/status/v1.0.0/types.d.ts +33 -659
  314. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  315. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +135 -525
  316. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  317. package/lib/typescript/credentials-catalogue/api/index.d.ts +22 -2
  318. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  319. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +60 -20
  320. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  321. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +41 -737
  322. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  323. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts +3 -0
  324. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -0
  325. package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
  326. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +159 -62
  327. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  328. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +180 -941
  329. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  330. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +12 -1
  331. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  332. package/lib/typescript/index.d.ts +4 -3
  333. package/lib/typescript/index.d.ts.map +1 -1
  334. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  335. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  336. package/lib/typescript/sd-jwt/index.d.ts +15 -15
  337. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  338. package/lib/typescript/sd-jwt/types.d.ts +33 -492
  339. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  340. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  341. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +12 -201
  342. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  343. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  344. package/lib/typescript/trust/common/types.d.ts +32 -1198
  345. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  346. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  347. package/lib/typescript/trust/v1.0.0/build-chain.d.ts +1 -53
  348. package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +1 -1
  349. package/lib/typescript/trust/v1.0.0/entities.d.ts +324 -347
  350. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  351. package/lib/typescript/trust/v1.0.0/mappers.d.ts +31 -35
  352. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  353. package/lib/typescript/trust/v1.0.0/types.d.ts +678 -12454
  354. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  355. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +4 -56
  356. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  357. package/lib/typescript/trust/v1.3.3/entities.d.ts +43 -47
  358. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  359. package/lib/typescript/trust/v1.3.3/types.d.ts +655 -14339
  360. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  361. package/lib/typescript/utils/auth.d.ts +3 -25
  362. package/lib/typescript/utils/auth.d.ts.map +1 -1
  363. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  364. package/lib/typescript/utils/config.d.ts +3 -3
  365. package/lib/typescript/utils/config.d.ts.map +1 -1
  366. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  367. package/lib/typescript/utils/crypto.d.ts +18 -0
  368. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  369. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  370. package/lib/typescript/utils/dpop.d.ts +5 -12
  371. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  372. package/lib/typescript/utils/errors.d.ts.map +1 -1
  373. package/lib/typescript/utils/jwk.d.ts +15 -175
  374. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  375. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  376. package/lib/typescript/utils/misc.d.ts +2 -2
  377. package/lib/typescript/utils/misc.d.ts.map +1 -1
  378. package/lib/typescript/utils/object.d.ts.map +1 -1
  379. package/lib/typescript/utils/par.d.ts +7 -45
  380. package/lib/typescript/utils/par.d.ts.map +1 -1
  381. package/lib/typescript/utils/parser.d.ts.map +1 -1
  382. package/lib/typescript/utils/pop.d.ts +1 -9
  383. package/lib/typescript/utils/pop.d.ts.map +1 -1
  384. package/lib/typescript/utils/string.d.ts.map +1 -1
  385. package/lib/typescript/utils/zod.d.ts +4 -4
  386. package/lib/typescript/utils/zod.d.ts.map +1 -1
  387. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +9 -9
  388. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  389. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +19 -174
  390. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  391. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +14 -273
  392. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  393. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  394. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +5 -3
  395. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  396. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +39 -629
  397. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  398. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  399. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  400. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +90 -0
  401. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -0
  402. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +29 -891
  403. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  404. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts +15 -0
  405. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -0
  406. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +39 -0
  407. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -0
  408. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +67 -0
  409. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -0
  410. package/lib/typescript/wallet-unit-attestation/index.d.ts +4 -0
  411. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +1 -0
  412. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +3 -0
  413. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +1 -0
  414. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +3 -0
  415. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -0
  416. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +3 -0
  417. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -0
  418. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +107 -0
  419. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -0
  420. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +69 -0
  421. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -0
  422. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +7 -0
  423. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -0
  424. package/package.json +8 -8
  425. package/src/api/index.ts +4 -0
  426. package/src/client/generated/wallet-provider.ts +44 -0
  427. package/src/client/index.ts +5 -1
  428. package/src/credential/issuance/README.md +2 -0
  429. package/src/credential/issuance/api/05-obtain-credential.ts +2 -0
  430. package/src/credential/issuance/api/IssuerConfig.ts +4 -2
  431. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -3
  432. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +2 -0
  433. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +25 -11
  434. package/src/credential/issuance/v1.3.3/mappers.ts +10 -9
  435. package/src/credential/presentation/api/04-verify-certificate-chain.ts +20 -0
  436. package/src/credential/presentation/api/{06-send-authorization-response.ts → 07-send-authorization-response.ts} +1 -1
  437. package/src/credential/presentation/api/RelyingPartyConfig.ts +1 -1
  438. package/src/credential/presentation/api/index.ts +5 -3
  439. package/src/credential/presentation/v1.0.0/04-verify-certificate-chain.ts +10 -0
  440. package/src/credential/presentation/v1.0.0/{04-verify-request-object.ts → 05-verify-request-object.ts} +2 -2
  441. package/src/credential/presentation/v1.0.0/{05-evaluate-dcql-query.ts → 06-evaluate-dcql-query.ts} +1 -1
  442. package/src/credential/presentation/v1.0.0/index.ts +5 -3
  443. package/src/credential/presentation/v1.3.3/04-verify-certificate-chain.ts +49 -0
  444. package/src/credential/presentation/v1.3.3/{04-verify-request-object.ts → 05-verify-request-object.ts} +4 -2
  445. package/src/credential/presentation/v1.3.3/{05-evaluate-dcql-query.ts → 06-evaluate-dcql-query.ts} +1 -1
  446. package/src/credential/presentation/v1.3.3/index.ts +5 -3
  447. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +58 -10
  448. package/src/credentials-catalogue/api/index.ts +36 -2
  449. package/src/credentials-catalogue/v1.0.0/mappers.ts +27 -12
  450. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +32 -0
  451. package/src/credentials-catalogue/v1.3.3/index.ts +2 -0
  452. package/src/credentials-catalogue/v1.3.3/mappers.ts +12 -4
  453. package/src/credentials-catalogue/v1.3.3/types.ts +102 -29
  454. package/src/credentials-catalogue/v1.3.3/utils.ts +42 -4
  455. package/src/index.ts +11 -2
  456. package/src/trust/common/types.ts +3 -3
  457. package/src/trust/v1.0.0/types.ts +10 -10
  458. package/src/trust/v1.3.3/types.ts +4 -7
  459. package/src/utils/callbacks.ts +7 -1
  460. package/src/utils/crypto.ts +18 -0
  461. package/src/utils/dpop.ts +1 -1
  462. package/src/utils/jwk.ts +1 -1
  463. package/src/utils/mappers.ts +2 -2
  464. package/src/utils/zod.ts +5 -1
  465. package/src/wallet-instance-attestation/README.md +13 -10
  466. package/src/wallet-instance-attestation/api/index.ts +20 -13
  467. package/src/wallet-instance-attestation/api/types.ts +16 -4
  468. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -3
  469. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +7 -9
  470. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +7 -5
  471. package/src/wallet-instance-attestation/v1.3.3/index.ts +5 -7
  472. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +107 -3
  473. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +18 -0
  474. package/src/wallet-instance-attestation/v1.3.3/types.ts +16 -30
  475. package/src/wallet-instance-attestation/v1.3.3/utils.ts +35 -0
  476. package/src/wallet-unit-attestation/README.md +73 -0
  477. package/src/wallet-unit-attestation/api/index.ts +51 -0
  478. package/src/wallet-unit-attestation/api/types.ts +49 -0
  479. package/src/wallet-unit-attestation/index.ts +3 -0
  480. package/src/wallet-unit-attestation/v1.0.0/index.ts +5 -0
  481. package/src/wallet-unit-attestation/v1.3.3/index.ts +11 -0
  482. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +147 -0
  483. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +10 -0
  484. package/src/wallet-unit-attestation/v1.3.3/types.ts +21 -0
  485. package/src/wallet-unit-attestation/v1.3.3/utils.ts +14 -0
  486. package/lib/commonjs/credential/presentation/api/04-verify-request-object.js.map +0 -1
  487. package/lib/commonjs/credential/presentation/api/05-evaluate-dcql-query.js.map +0 -1
  488. package/lib/commonjs/credential/presentation/api/06-send-authorization-response.js.map +0 -1
  489. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js.map +0 -1
  490. package/lib/module/credential/presentation/api/04-verify-request-object.js +0 -2
  491. package/lib/module/credential/presentation/api/04-verify-request-object.js.map +0 -1
  492. package/lib/module/credential/presentation/api/05-evaluate-dcql-query.js +0 -2
  493. package/lib/module/credential/presentation/api/05-evaluate-dcql-query.js.map +0 -1
  494. package/lib/module/credential/presentation/api/06-send-authorization-response.js +0 -2
  495. package/lib/module/credential/presentation/api/06-send-authorization-response.js.map +0 -1
  496. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js.map +0 -1
  497. package/lib/typescript/credential/presentation/v1.0.0/04-verify-request-object.d.ts.map +0 -1
  498. package/lib/typescript/credential/presentation/v1.0.0/05-evaluate-dcql-query.d.ts.map +0 -1
  499. package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts.map +0 -1
  500. package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts.map +0 -1
  501. package/lib/typescript/credential/presentation/v1.3.3/05-evaluate-dcql-query.d.ts.map +0 -1
  502. /package/src/credential/presentation/api/{04-verify-request-object.ts → 05-verify-request-object.ts} +0 -0
  503. /package/src/credential/presentation/api/{05-evaluate-dcql-query.ts → 06-evaluate-dcql-query.ts} +0 -0
  504. /package/src/credential/presentation/v1.0.0/{06-send-authorization-response.ts → 07-send-authorization-response.ts} +0 -0
  505. /package/src/credential/presentation/v1.3.3/{06-send-authorization-response.ts → 07-send-authorization-response.ts} +0 -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.1",
3
+ "version": "3.1.1",
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
  /**
@@ -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
  };
@@ -20,6 +20,7 @@ import {
20
20
  IoWalletError,
21
21
  sdkUnexpectedStatusCodeToIssuerError,
22
22
  } from "../../../utils/errors";
23
+ import { sdkConfigV1_3 } from "../../../utils/config";
23
24
  import type { IssuanceApi } from "../api";
24
25
  import { mapToRequestObject } from "./mappers";
25
26
  import type { RemotePresentation } from "../../presentation";
@@ -101,6 +102,7 @@ export const getRequestedCredentialToBePresented: IssuanceApi["getRequestedCrede
101
102
  }).catch(sdkUnexpectedStatusCodeToIssuerError);
102
103
 
103
104
  const parsedAuthRequest = await parseAuthorizeRequest({
105
+ config: sdkConfigV1_3,
104
106
  requestObjectJwt: authRequest.requestObjectJwt,
105
107
  callbacks: partialCallbacks,
106
108
  });