@pagopa/io-react-native-wallet 3.1.2 → 3.3.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 (360) hide show
  1. package/lib/commonjs/credential/issuance/README.md +44 -17
  2. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +4 -3
  3. package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  4. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +37 -8
  5. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  6. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +46 -38
  7. package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  8. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +58 -51
  9. package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/mrtd-pop/index.js +21 -5
  11. package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +3 -3
  13. package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +5 -2
  15. package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +5 -1
  17. package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/v1.0.0/index.js +2 -1
  19. package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
  20. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +1 -1
  21. package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
  22. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +0 -2
  23. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  24. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +20 -16
  25. package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  26. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +1 -1
  27. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  28. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +20 -19
  29. package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  30. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +150 -57
  31. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  32. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +4 -1
  33. package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  34. package/lib/commonjs/credential/issuance/v1.3.3/index.js +2 -1
  35. package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
  36. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +1 -1
  37. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  38. package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
  39. package/lib/commonjs/credential/presentation/{v1.3.3/utils.mdoc.js → common/utils/mdoc.js} +2 -2
  40. package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -0
  41. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +18 -12
  42. package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  43. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -0
  44. package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  45. package/lib/commonjs/credential/presentation/v1.0.0/index.js +0 -2
  46. package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
  47. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +23 -13
  48. package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
  49. package/lib/commonjs/credential/presentation/v1.0.0/types.js +25 -17
  50. package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
  51. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +29 -6
  52. package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  53. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +2 -2
  54. package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  55. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +9 -6
  56. package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  57. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +25 -13
  58. package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
  59. package/lib/commonjs/credential/presentation/v1.3.3/types.js +6 -3
  60. package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
  61. package/lib/commonjs/credential/status/README.md +3 -2
  62. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +27 -5
  63. package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -1
  64. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js +17 -6
  65. package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  66. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +26 -1
  67. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  68. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +4 -0
  69. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  70. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +5 -3
  71. package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  72. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +9 -1
  73. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  74. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +49 -1
  75. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  76. package/lib/commonjs/mdoc/index.js +3 -24
  77. package/lib/commonjs/mdoc/index.js.map +1 -1
  78. package/lib/commonjs/sd-jwt/__test__/types.test.js +2 -14
  79. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  80. package/lib/commonjs/sd-jwt/__test__/utils.test.js +0 -12
  81. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
  82. package/lib/commonjs/sd-jwt/types.js +1 -14
  83. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  84. package/lib/commonjs/utils/callbacks.js +45 -7
  85. package/lib/commonjs/utils/callbacks.js.map +1 -1
  86. package/lib/commonjs/utils/crypto.js +58 -5
  87. package/lib/commonjs/utils/crypto.js.map +1 -1
  88. package/lib/commonjs/utils/x509.js +34 -0
  89. package/lib/commonjs/utils/x509.js.map +1 -0
  90. package/lib/commonjs/wallet-instance-attestation/api/types.js +0 -2
  91. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  92. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +1 -14
  93. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -1
  94. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +2 -7
  95. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  96. package/lib/commonjs/wallet-unit-attestation/api/types.js +0 -11
  97. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -1
  98. package/lib/module/credential/issuance/README.md +44 -17
  99. package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -3
  100. package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
  101. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +39 -10
  102. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  103. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +47 -34
  104. package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
  105. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +58 -47
  106. package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
  107. package/lib/module/credential/issuance/mrtd-pop/index.js +20 -5
  108. package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
  109. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +1 -1
  110. package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
  111. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +6 -3
  112. package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
  113. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +4 -1
  114. package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
  115. package/lib/module/credential/issuance/v1.0.0/index.js +4 -3
  116. package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
  117. package/lib/module/credential/issuance/v1.0.0/mappers.js +1 -1
  118. package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
  119. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +0 -2
  120. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  121. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +20 -16
  122. package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
  123. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +1 -1
  124. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  125. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +22 -19
  126. package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -1
  127. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +147 -55
  128. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  129. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +4 -1
  130. package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -1
  131. package/lib/module/credential/issuance/v1.3.3/index.js +4 -3
  132. package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
  133. package/lib/module/credential/issuance/v1.3.3/mappers.js +1 -1
  134. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  135. package/lib/module/credential/presentation/api/types.js.map +1 -1
  136. package/lib/module/credential/presentation/{v1.3.3/utils.mdoc.js → common/utils/mdoc.js} +2 -2
  137. package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -0
  138. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +13 -7
  139. package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
  140. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +4 -1
  141. package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
  142. package/lib/module/credential/presentation/v1.0.0/index.js +0 -2
  143. package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
  144. package/lib/module/credential/presentation/v1.0.0/mappers.js +23 -13
  145. package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
  146. package/lib/module/credential/presentation/v1.0.0/types.js +23 -15
  147. package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
  148. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +28 -6
  149. package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
  150. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js +2 -3
  151. package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +1 -1
  152. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +9 -6
  153. package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
  154. package/lib/module/credential/presentation/v1.3.3/mappers.js +25 -13
  155. package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
  156. package/lib/module/credential/presentation/v1.3.3/types.js +5 -2
  157. package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
  158. package/lib/module/credential/status/README.md +3 -2
  159. package/lib/module/credential/status/v1.3.3/01-status-list.js +27 -5
  160. package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -1
  161. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js +17 -6
  162. package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -1
  163. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +24 -0
  164. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  165. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +5 -1
  166. package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
  167. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +5 -3
  168. package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
  169. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +9 -1
  170. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  171. package/lib/module/credentials-catalogue/v1.3.3/types.js +47 -0
  172. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  173. package/lib/module/mdoc/index.js +3 -24
  174. package/lib/module/mdoc/index.js.map +1 -1
  175. package/lib/module/sd-jwt/__test__/types.test.js +2 -14
  176. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  177. package/lib/module/sd-jwt/__test__/utils.test.js +0 -12
  178. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
  179. package/lib/module/sd-jwt/types.js +1 -14
  180. package/lib/module/sd-jwt/types.js.map +1 -1
  181. package/lib/module/utils/callbacks.js +45 -8
  182. package/lib/module/utils/callbacks.js.map +1 -1
  183. package/lib/module/utils/crypto.js +57 -6
  184. package/lib/module/utils/crypto.js.map +1 -1
  185. package/lib/module/utils/x509.js +28 -0
  186. package/lib/module/utils/x509.js.map +1 -0
  187. package/lib/module/wallet-instance-attestation/api/types.js +0 -2
  188. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  189. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +1 -14
  190. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -1
  191. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +2 -7
  192. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  193. package/lib/module/wallet-unit-attestation/api/types.js +0 -11
  194. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -1
  195. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +20 -0
  196. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  197. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +4 -0
  198. package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
  199. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  200. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  201. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +12 -1
  202. package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
  203. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +12 -1
  204. package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
  205. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts +2 -1
  206. package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
  207. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  208. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts +1 -0
  209. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  210. package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
  211. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  212. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  213. package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -1
  214. package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -1
  215. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +23 -2
  216. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  217. package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -1
  218. package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
  219. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  220. package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts +9 -2
  221. package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts.map +1 -1
  222. package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts +2 -2
  223. package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts.map +1 -1
  224. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +2 -2
  225. package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
  226. package/lib/typescript/credential/presentation/api/types.d.ts +18 -0
  227. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  228. package/lib/typescript/credential/presentation/{v1.3.3/utils.mdoc.d.ts → common/utils/mdoc.d.ts} +2 -2
  229. package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -0
  230. package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
  231. package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
  232. package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
  233. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +21 -13
  234. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  235. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +23 -15
  236. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  237. package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
  238. package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +1 -1
  239. package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
  240. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +89 -79
  241. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  242. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +87 -79
  243. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  244. package/lib/typescript/credential/status/api/status-list.d.ts +8 -4
  245. package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
  246. package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -1
  247. package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -1
  248. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +73 -0
  249. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  250. package/lib/typescript/credentials-catalogue/api/index.d.ts +6 -5
  251. package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
  252. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +25 -0
  253. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  254. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.d.ts.map +1 -1
  255. package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
  256. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +51 -0
  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 +33 -0
  259. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  260. package/lib/typescript/mdoc/index.d.ts +1 -1
  261. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  262. package/lib/typescript/mdoc/utils.d.ts +0 -24
  263. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  264. package/lib/typescript/sd-jwt/types.d.ts +0 -12
  265. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  266. package/lib/typescript/utils/callbacks.d.ts +7 -0
  267. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  268. package/lib/typescript/utils/crypto.d.ts +32 -15
  269. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  270. package/lib/typescript/utils/x509.d.ts +10 -0
  271. package/lib/typescript/utils/x509.d.ts.map +1 -0
  272. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +0 -2
  273. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  274. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +0 -2
  275. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  276. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +2 -9
  277. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -1
  278. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +2 -7
  279. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  280. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +0 -11
  281. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -1
  282. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +0 -22
  283. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -1
  284. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +0 -11
  285. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -1
  286. package/package.json +6 -6
  287. package/src/credential/issuance/README.md +44 -17
  288. package/src/credential/issuance/api/05-obtain-credential.ts +24 -0
  289. package/src/credential/issuance/api/06-verify-and-parse-credential.ts +4 -0
  290. package/src/credential/issuance/common/02-start-user-authorization.ts +6 -3
  291. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +42 -9
  292. package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +69 -45
  293. package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +84 -62
  294. package/src/credential/issuance/mrtd-pop/index.ts +13 -5
  295. package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +1 -1
  296. package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +8 -3
  297. package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +6 -0
  298. package/src/credential/issuance/v1.0.0/index.ts +7 -3
  299. package/src/credential/issuance/v1.0.0/mappers.ts +4 -1
  300. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +0 -2
  301. package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +24 -20
  302. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +1 -1
  303. package/src/credential/issuance/v1.3.3/04-authorize-access.ts +28 -23
  304. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +182 -87
  305. package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +2 -1
  306. package/src/credential/issuance/v1.3.3/index.ts +7 -3
  307. package/src/credential/issuance/v1.3.3/mappers.ts +4 -1
  308. package/src/credential/presentation/api/04-verify-certificate-chain.ts +9 -2
  309. package/src/credential/presentation/api/05-verify-request-object.ts +2 -2
  310. package/src/credential/presentation/api/07-send-authorization-response.ts +2 -2
  311. package/src/credential/presentation/api/types.ts +16 -0
  312. package/src/credential/presentation/{v1.3.3/utils.mdoc.ts → common/utils/mdoc.ts} +2 -2
  313. package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +21 -10
  314. package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +7 -0
  315. package/src/credential/presentation/v1.0.0/index.ts +0 -2
  316. package/src/credential/presentation/v1.0.0/mappers.ts +17 -17
  317. package/src/credential/presentation/v1.0.0/types.ts +23 -15
  318. package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +63 -10
  319. package/src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts +3 -3
  320. package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +13 -4
  321. package/src/credential/presentation/v1.3.3/mappers.ts +19 -17
  322. package/src/credential/presentation/v1.3.3/types.ts +9 -3
  323. package/src/credential/status/README.md +3 -2
  324. package/src/credential/status/api/status-list.ts +10 -7
  325. package/src/credential/status/v1.3.3/01-status-list.ts +21 -7
  326. package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +19 -5
  327. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +32 -0
  328. package/src/credentials-catalogue/api/index.ts +6 -3
  329. package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +6 -0
  330. package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +6 -3
  331. package/src/credentials-catalogue/v1.3.3/mappers.ts +17 -1
  332. package/src/credentials-catalogue/v1.3.3/types.ts +51 -0
  333. package/src/mdoc/index.ts +5 -41
  334. package/src/sd-jwt/__test__/types.test.ts +1 -13
  335. package/src/sd-jwt/__test__/utils.test.ts +0 -12
  336. package/src/sd-jwt/types.ts +0 -13
  337. package/src/utils/callbacks.ts +57 -9
  338. package/src/utils/crypto.ts +86 -15
  339. package/src/utils/x509.ts +43 -0
  340. package/src/wallet-instance-attestation/api/types.ts +0 -2
  341. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +3 -11
  342. package/src/wallet-instance-attestation/v1.3.3/types.ts +2 -7
  343. package/src/wallet-unit-attestation/api/types.ts +0 -11
  344. package/lib/commonjs/credential/issuance/common/authorization.js +0 -56
  345. package/lib/commonjs/credential/issuance/common/authorization.js.map +0 -1
  346. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js +0 -12
  347. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +0 -1
  348. package/lib/commonjs/credential/presentation/v1.3.3/utils.mdoc.js.map +0 -1
  349. package/lib/module/credential/issuance/common/authorization.js +0 -48
  350. package/lib/module/credential/issuance/common/authorization.js.map +0 -1
  351. package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js +0 -5
  352. package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +0 -1
  353. package/lib/module/credential/presentation/v1.3.3/utils.mdoc.js.map +0 -1
  354. package/lib/typescript/credential/issuance/common/authorization.d.ts +0 -21
  355. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +0 -1
  356. package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts +0 -3
  357. package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts.map +0 -1
  358. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +0 -1
  359. package/src/credential/issuance/common/authorization.ts +0 -89
  360. package/src/credential/presentation/v1.0.0/04-verify-certificate-chain.ts +0 -10
@@ -1,5 +1,6 @@
1
1
  import * as z from "zod";
2
2
  import type { CryptoContext } from "@pagopa/io-react-native-jwt";
3
+ import type { jsonWebKeySet } from "@pagopa/io-wallet-oid-federation";
3
4
  import type { SupportedSdJwtLegacyFormat } from "../../../sd-jwt/types";
4
5
  export type PresentationParams = z.infer<typeof PresentationParams>;
5
6
  export declare const PresentationParams: z.ZodObject<{
@@ -69,6 +70,19 @@ export type RemotePresentationDetails = {
69
70
  credentialId: string;
70
71
  vpToken: string;
71
72
  };
73
+ type ClientMetadata = {
74
+ jwks: jsonWebKeySet;
75
+ encrypted_response_enc_values_supported: string[];
76
+ client_id: string;
77
+ client_name: string;
78
+ logo_uri: string;
79
+ application_type: "web";
80
+ request_uris: string[];
81
+ response_uris: string[];
82
+ vp_formats_supported: Record<string, {
83
+ "sd-jwt_alg_values"?: string[];
84
+ }>;
85
+ };
72
86
  /**
73
87
  * Common Request Object type, decoupled from specific IT-Wallet versions
74
88
  */
@@ -81,6 +95,9 @@ export type RequestObject = {
81
95
  dcql_query: Record<string, unknown>;
82
96
  response_type: "vp_token";
83
97
  response_mode: "direct_post.jwt";
98
+ x5c?: string[];
99
+ trust_chain?: string[];
100
+ client_metadata?: ClientMetadata;
84
101
  };
85
102
  /**
86
103
  * A object that associate the information needed to multiple remote presentation
@@ -128,4 +145,5 @@ export type EvaluatedDisclosure = {
128
145
  name: string;
129
146
  value: unknown;
130
147
  };
148
+ export {};
131
149
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,cAAc;;;;;;;;;;iBAazB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAG1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;EAOxB,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,iBAAiB,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,MAAM,CAAyD;CACjF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAe,MAAM,CAAkB,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,iBAAiB,CAAC;CACtD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,iBAAiB;IAC6B,aAAa;CACzE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,cAAc;;;;;;;;;;iBAazB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAG1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;EAOxB,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,uCAAuC,EAAE,MAAM,EAAE,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,KAAK,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,iBAAiB,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,MAAM,CAAyD;CACjF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAe,MAAM,CAAkB,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,iBAAiB,CAAC;CACtD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,iBAAiB;IAC6B,aAAa;CACzE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DcqlMdocCredential, DcqlQueryResult } from "dcql";
2
- import type { Credential4Dcql, EvaluatedDisclosure, PresentationFrame } from "../api";
2
+ import type { Credential4Dcql, EvaluatedDisclosure, PresentationFrame } from "../../api";
3
3
  type CustomDcqlMdocCredential = DcqlMdocCredential & {
4
4
  original_credential: Credential4Dcql;
5
5
  };
@@ -25,4 +25,4 @@ export declare const getClaimsFromDcqlMatch: (match: DcqlQueryResult.CredentialM
25
25
  */
26
26
  export declare const getPresentationFrameFromClaims: (requestedClaims: EvaluatedDisclosure[], docType: string) => PresentationFrame;
27
27
  export {};
28
- //# sourceMappingURL=utils.mdoc.d.ts.map
28
+ //# sourceMappingURL=mdoc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdoc.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/common/utils/mdoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAGnB,KAAK,wBAAwB,GAAG,kBAAkB,GAAG;IACnD,mBAAmB,EAAE,eAAe,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,iBAAiB,eAAe,EAAE,KACjC,OAAO,CAAC,wBAAwB,EAAE,CAkCpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,eAAe,CAAC,eAAe,KACrC,mBAAmB,EASnB,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,iBAAiB,mBAAmB,EAAE,EACtC,SAAS,MAAM,KACd,iBAWD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/05-verify-request-object.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAMxE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CAsC1E,CAAC"}
1
+ {"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/05-verify-request-object.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAOxE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CAgD1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/07-send-authorization-response.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAQ9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EAAyB,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAKhF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,WAAW,GAAG,EAAE,KAAG,GAW3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,aAAa,EAC5B,QAAQ,kBAAkB,EAC1B,SAAS,8BAA8B,KACtC,OAAO,CAAC,MAAM,CAkChB,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CAwBxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CA+BtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
1
+ {"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/07-send-authorization-response.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAS9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EAAyB,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAKhF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,WAAW,GAAG,EAAE,KAAG,GAW3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,aAAa,EAC5B,QAAQ,kBAAkB,EAC1B,SAAS,8BAA8B,KACtC,OAAO,CAAC,MAAM,CAkChB,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CAwBxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CAqCtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAapD,eAAO,MAAM,kBAAkB,EAAE,qBAUhC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAYpD,eAAO,MAAM,kBAAkB,EAAE,qBAShC,CAAC"}
@@ -124,18 +124,26 @@ export declare const mapToRelyingPartyConfig: (input: {
124
124
  encrypted_response_enc_values_supported?: string[] | undefined;
125
125
  };
126
126
  export declare const mapToRequestObject: (input: {
127
- iss: string;
128
- iat: number;
129
- exp: number;
130
- state: string;
131
- nonce: string;
132
- response_uri: string;
133
- response_type: "vp_token";
134
- response_mode: "direct_post.jwt";
135
- client_id: string;
136
- dcql_query: Record<string, any>;
137
- request_uri_method?: string | undefined;
138
- scope?: string | undefined;
139
- wallet_nonce?: string | undefined;
127
+ header: {
128
+ alg: string;
129
+ kid: string;
130
+ typ: "oauth-authz-req+jwt";
131
+ trust_chain?: string[] | undefined;
132
+ };
133
+ payload: {
134
+ iss: string;
135
+ iat: number;
136
+ exp: number;
137
+ state: string;
138
+ nonce: string;
139
+ response_uri: string;
140
+ response_type: "vp_token";
141
+ response_mode: "direct_post.jwt";
142
+ client_id: string;
143
+ dcql_query: Record<string, any>;
144
+ request_uri_method?: string | undefined;
145
+ scope?: string | undefined;
146
+ wallet_nonce?: string | undefined;
147
+ };
140
148
  }) => RequestObject;
141
149
  //# sourceMappingURL=mappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;mBAY5B,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;mBAY9B,CAAC"}
@@ -1,19 +1,27 @@
1
1
  import * as z from "zod";
2
- export type RequestObjectPayload = z.infer<typeof RequestObjectPayload>;
3
- export declare const RequestObjectPayload: z.ZodObject<{
4
- iss: z.ZodString;
5
- iat: z.ZodNumber;
6
- exp: z.ZodNumber;
7
- state: z.ZodString;
8
- nonce: z.ZodString;
9
- response_uri: z.ZodString;
10
- request_uri_method: z.ZodOptional<z.ZodString>;
11
- response_type: z.ZodLiteral<"vp_token">;
12
- response_mode: z.ZodLiteral<"direct_post.jwt">;
13
- client_id: z.ZodString;
14
- dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
15
- scope: z.ZodOptional<z.ZodString>;
16
- wallet_nonce: z.ZodOptional<z.ZodString>;
2
+ export type RawRequestObject = z.infer<typeof RawRequestObject>;
3
+ export declare const RawRequestObject: z.ZodObject<{
4
+ header: z.ZodObject<{
5
+ alg: z.ZodString;
6
+ kid: z.ZodString;
7
+ typ: z.ZodLiteral<"oauth-authz-req+jwt">;
8
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ }, z.core.$strip>;
10
+ payload: z.ZodObject<{
11
+ iss: z.ZodString;
12
+ iat: z.ZodNumber;
13
+ exp: z.ZodNumber;
14
+ state: z.ZodString;
15
+ nonce: z.ZodString;
16
+ response_uri: z.ZodString;
17
+ request_uri_method: z.ZodOptional<z.ZodString>;
18
+ response_type: z.ZodLiteral<"vp_token">;
19
+ response_mode: z.ZodLiteral<"direct_post.jwt">;
20
+ client_id: z.ZodString;
21
+ dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
22
+ scope: z.ZodOptional<z.ZodString>;
23
+ wallet_nonce: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
17
25
  }, z.core.$strip>;
18
26
  /**
19
27
  * Authorization Response payload sent to the Relying Party.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAc/B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;mBAKzC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAsB3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;mBAKzC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/05-verify-request-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAQpD,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CAwB1E,CAAC"}
1
+ {"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/05-verify-request-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAexE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CA4B1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"06-evaluate-dcql-query.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAmB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AASrE,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,CAAC,mBAAmB,CAwGtE,CAAC"}
1
+ {"version":3,"file":"06-evaluate-dcql-query.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/06-evaluate-dcql-query.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAmB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAQrE,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,CAAC,mBAAmB,CAwGtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/07-send-authorization-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAiBpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CA2DxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CAyCtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
1
+ {"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/07-send-authorization-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAiBpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CA2DxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CAkDtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
@@ -132,96 +132,106 @@ export declare const mapToRelyingPartyConfig: (input: {
132
132
  encrypted_response_enc_values_supported?: string[] | undefined;
133
133
  };
134
134
  export declare const mapToRequestObject: (input: {
135
- [x: string]: unknown;
136
- client_id: string;
137
- dcql_query: Record<string, any>;
138
- nonce: string;
139
- response_mode: "direct_post.jwt";
140
- response_type: "vp_token";
141
- response_uri: string;
142
- state: string;
143
- client_metadata?: {
135
+ header: {
136
+ [x: string]: unknown;
137
+ alg: string;
138
+ kid: string;
139
+ typ: "oauth-authz-req+jwt";
140
+ x5c: string[];
141
+ trust_chain?: [string, ...string[]] | undefined;
142
+ };
143
+ payload: {
144
144
  [x: string]: unknown;
145
- application_type: "web";
146
145
  client_id: string;
147
- client_name: string;
148
- encrypted_response_enc_values_supported: string[];
149
- jwks: {
150
- keys: {
146
+ dcql_query: Record<string, any>;
147
+ nonce: string;
148
+ response_mode: "direct_post.jwt";
149
+ response_type: "vp_token";
150
+ response_uri: string;
151
+ state: string;
152
+ client_metadata?: {
153
+ [x: string]: unknown;
154
+ application_type: "web";
155
+ client_id: string;
156
+ client_name: string;
157
+ encrypted_response_enc_values_supported: string[];
158
+ jwks: {
159
+ keys: {
160
+ [x: string]: unknown;
161
+ kid: string;
162
+ kty: string;
163
+ alg?: string | undefined;
164
+ key_ops?: string[] | undefined;
165
+ use?: string | undefined;
166
+ x5c?: string[] | undefined;
167
+ x5t?: string | undefined;
168
+ "x5t#S256"?: string | undefined;
169
+ x5u?: string | undefined;
170
+ }[];
171
+ };
172
+ logo_uri: string;
173
+ request_uris: string[];
174
+ response_uris: string[];
175
+ vp_formats_supported: Record<string, {
176
+ alg?: string[] | undefined;
177
+ deviceauth_alg_values?: number[] | undefined;
178
+ issuerauth_alg_values?: number[] | undefined;
179
+ "kb-jwt_alg_values"?: string[] | undefined;
180
+ "sd-jwt_alg_values"?: string[] | undefined;
181
+ }>;
182
+ erasure_endpoint?: string | undefined;
183
+ } | undefined;
184
+ request_uri?: string | undefined;
185
+ request_uri_method?: string | undefined;
186
+ scope?: string | undefined;
187
+ transaction_data?: string[] | undefined;
188
+ transaction_data_hashes_alg?: string[] | undefined;
189
+ wallet_nonce?: string | undefined;
190
+ } & {
191
+ iss: string;
192
+ aud?: string | undefined;
193
+ cnf?: {
194
+ [x: string]: unknown;
195
+ jkt?: string | undefined;
196
+ jwk?: {
151
197
  [x: string]: unknown;
152
- kid: string;
153
198
  kty: string;
154
199
  alg?: string | undefined;
200
+ crv?: string | undefined;
201
+ d?: string | undefined;
202
+ dp?: string | undefined;
203
+ dq?: string | undefined;
204
+ e?: string | undefined;
205
+ ext?: boolean | undefined;
206
+ k?: string | undefined;
155
207
  key_ops?: string[] | undefined;
208
+ kid?: string | undefined;
209
+ n?: string | undefined;
210
+ oth?: {
211
+ [x: string]: unknown;
212
+ d?: string | undefined;
213
+ r?: string | undefined;
214
+ t?: string | undefined;
215
+ }[] | undefined;
216
+ p?: string | undefined;
217
+ q?: string | undefined;
218
+ qi?: string | undefined;
156
219
  use?: string | undefined;
220
+ x?: string | undefined;
157
221
  x5c?: string[] | undefined;
158
222
  x5t?: string | undefined;
159
223
  "x5t#S256"?: string | undefined;
160
224
  x5u?: string | undefined;
161
- }[];
162
- };
163
- logo_uri: string;
164
- request_uris: string[];
165
- response_uris: string[];
166
- vp_formats_supported: Record<string, {
167
- alg?: string[] | undefined;
168
- deviceauth_alg_values?: number[] | undefined;
169
- issuerauth_alg_values?: number[] | undefined;
170
- "kb-jwt_alg_values"?: string[] | undefined;
171
- "sd-jwt_alg_values"?: string[] | undefined;
172
- }>;
173
- erasure_endpoint?: string | undefined;
174
- } | undefined;
175
- request_uri?: string | undefined;
176
- request_uri_method?: string | undefined;
177
- scope?: string | undefined;
178
- transaction_data?: string[] | undefined;
179
- transaction_data_hashes_alg?: string[] | undefined;
180
- wallet_nonce?: string | undefined;
181
- } & {
182
- iss: string;
183
- aud?: string | undefined;
184
- cnf?: {
185
- [x: string]: unknown;
186
- jkt?: string | undefined;
187
- jwk?: {
188
- [x: string]: unknown;
189
- kty: string;
190
- alg?: string | undefined;
191
- crv?: string | undefined;
192
- d?: string | undefined;
193
- dp?: string | undefined;
194
- dq?: string | undefined;
195
- e?: string | undefined;
196
- ext?: boolean | undefined;
197
- k?: string | undefined;
198
- key_ops?: string[] | undefined;
199
- kid?: string | undefined;
200
- n?: string | undefined;
201
- oth?: {
202
- [x: string]: unknown;
203
- d?: string | undefined;
204
- r?: string | undefined;
205
- t?: string | undefined;
206
- }[] | undefined;
207
- p?: string | undefined;
208
- q?: string | undefined;
209
- qi?: string | undefined;
210
- use?: string | undefined;
211
- x?: string | undefined;
212
- x5c?: string[] | undefined;
213
- x5t?: string | undefined;
214
- "x5t#S256"?: string | undefined;
215
- x5u?: string | undefined;
216
- y?: string | undefined;
225
+ y?: string | undefined;
226
+ } | undefined;
217
227
  } | undefined;
218
- } | undefined;
219
- exp?: number | undefined;
220
- iat?: number | undefined;
221
- jti?: string | undefined;
222
- nbf?: number | undefined;
223
- nonce?: string | undefined;
224
- status?: Record<string, any> | undefined;
225
- trust_chain?: [string, ...string[]] | undefined;
228
+ exp?: number | undefined;
229
+ iat?: number | undefined;
230
+ jti?: string | undefined;
231
+ nbf?: number | undefined;
232
+ nonce?: string | undefined;
233
+ status?: Record<string, any> | undefined;
234
+ trust_chain?: [string, ...string[]] | undefined;
235
+ };
226
236
  }) => RequestObject;
227
237
  //# sourceMappingURL=mappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAY5B,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAc9B,CAAC"}
@@ -1,93 +1,101 @@
1
1
  import * as z from "zod";
2
- import { zOpenid4vpAuthorizationRequestPayload as sdkRequestObjectPayload } from "@pagopa/io-wallet-oid4vp";
3
- export type RequestObjectPayload = z.infer<typeof sdkRequestObjectPayload>;
4
- export declare const RequestObjectPayload: z.ZodIntersection<z.ZodObject<{
5
- client_id: z.ZodString;
6
- client_metadata: z.ZodOptional<z.ZodObject<{
7
- application_type: z.ZodLiteral<"web">;
8
- client_id: z.ZodURL;
9
- client_name: z.ZodString;
10
- encrypted_response_enc_values_supported: z.ZodArray<z.ZodString>;
11
- erasure_endpoint: z.ZodOptional<z.ZodURL>;
12
- jwks: z.ZodObject<{
13
- keys: z.ZodArray<z.ZodObject<{
2
+ export type RawRequestObject = z.infer<typeof RawRequestObject>;
3
+ export declare const RawRequestObject: z.ZodObject<{
4
+ header: z.ZodObject<{
5
+ alg: z.ZodString;
6
+ kid: z.ZodString;
7
+ typ: z.ZodLiteral<"oauth-authz-req+jwt">;
8
+ trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
9
+ x5c: z.ZodArray<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ payload: z.ZodIntersection<z.ZodObject<{
12
+ client_id: z.ZodString;
13
+ client_metadata: z.ZodOptional<z.ZodObject<{
14
+ application_type: z.ZodLiteral<"web">;
15
+ client_id: z.ZodURL;
16
+ client_name: z.ZodString;
17
+ encrypted_response_enc_values_supported: z.ZodArray<z.ZodString>;
18
+ erasure_endpoint: z.ZodOptional<z.ZodURL>;
19
+ jwks: z.ZodObject<{
20
+ keys: z.ZodArray<z.ZodObject<{
21
+ alg: z.ZodOptional<z.ZodString>;
22
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ kid: z.ZodString;
24
+ kty: z.ZodString;
25
+ use: z.ZodOptional<z.ZodString>;
26
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ x5t: z.ZodOptional<z.ZodString>;
28
+ "x5t#S256": z.ZodOptional<z.ZodString>;
29
+ x5u: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$strip>;
32
+ logo_uri: z.ZodURL;
33
+ request_uris: z.ZodArray<z.ZodURL>;
34
+ response_uris: z.ZodArray<z.ZodURL>;
35
+ vp_formats_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
36
+ alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ deviceauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
38
+ issuerauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
39
+ "kb-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ "sd-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$loose>>;
43
+ dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
44
+ nonce: z.ZodString;
45
+ request_uri: z.ZodOptional<z.ZodURL>;
46
+ request_uri_method: z.ZodOptional<z.ZodString>;
47
+ response_mode: z.ZodLiteral<"direct_post.jwt">;
48
+ response_type: z.ZodLiteral<"vp_token">;
49
+ response_uri: z.ZodURL;
50
+ scope: z.ZodOptional<z.ZodString>;
51
+ state: z.ZodString;
52
+ transaction_data: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ transaction_data_hashes_alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ wallet_nonce: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$loose>, z.ZodObject<{
56
+ iss: z.ZodString;
57
+ aud: z.ZodOptional<z.ZodString>;
58
+ cnf: z.ZodOptional<z.ZodObject<{
59
+ jkt: z.ZodOptional<z.ZodString>;
60
+ jwk: z.ZodOptional<z.ZodObject<{
14
61
  alg: z.ZodOptional<z.ZodString>;
62
+ crv: z.ZodOptional<z.ZodString>;
63
+ d: z.ZodOptional<z.ZodString>;
64
+ dp: z.ZodOptional<z.ZodString>;
65
+ dq: z.ZodOptional<z.ZodString>;
66
+ e: z.ZodOptional<z.ZodString>;
67
+ ext: z.ZodOptional<z.ZodBoolean>;
68
+ k: z.ZodOptional<z.ZodString>;
15
69
  key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
- kid: z.ZodString;
70
+ kid: z.ZodOptional<z.ZodString>;
17
71
  kty: z.ZodString;
72
+ n: z.ZodOptional<z.ZodString>;
73
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ d: z.ZodOptional<z.ZodString>;
75
+ r: z.ZodOptional<z.ZodString>;
76
+ t: z.ZodOptional<z.ZodString>;
77
+ }, z.core.$loose>>>;
78
+ p: z.ZodOptional<z.ZodString>;
79
+ q: z.ZodOptional<z.ZodString>;
80
+ qi: z.ZodOptional<z.ZodString>;
18
81
  use: z.ZodOptional<z.ZodString>;
82
+ x: z.ZodOptional<z.ZodString>;
19
83
  x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
84
  x5t: z.ZodOptional<z.ZodString>;
21
85
  "x5t#S256": z.ZodOptional<z.ZodString>;
22
86
  x5u: z.ZodOptional<z.ZodString>;
87
+ y: z.ZodOptional<z.ZodString>;
23
88
  }, z.core.$loose>>;
24
- }, z.core.$strip>;
25
- logo_uri: z.ZodURL;
26
- request_uris: z.ZodArray<z.ZodURL>;
27
- response_uris: z.ZodArray<z.ZodURL>;
28
- vp_formats_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
29
- alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
- deviceauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
31
- issuerauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
32
- "kb-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
33
- "sd-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- }, z.core.$strip>>;
35
- }, z.core.$loose>>;
36
- dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
37
- nonce: z.ZodString;
38
- request_uri: z.ZodOptional<z.ZodURL>;
39
- request_uri_method: z.ZodOptional<z.ZodString>;
40
- response_mode: z.ZodLiteral<"direct_post.jwt">;
41
- response_type: z.ZodLiteral<"vp_token">;
42
- response_uri: z.ZodURL;
43
- scope: z.ZodOptional<z.ZodString>;
44
- state: z.ZodString;
45
- transaction_data: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
- transaction_data_hashes_alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
- wallet_nonce: z.ZodOptional<z.ZodString>;
48
- }, z.core.$loose>, z.ZodObject<{
49
- iss: z.ZodString;
50
- aud: z.ZodOptional<z.ZodString>;
51
- cnf: z.ZodOptional<z.ZodObject<{
52
- jkt: z.ZodOptional<z.ZodString>;
53
- jwk: z.ZodOptional<z.ZodObject<{
54
- alg: z.ZodOptional<z.ZodString>;
55
- crv: z.ZodOptional<z.ZodString>;
56
- d: z.ZodOptional<z.ZodString>;
57
- dp: z.ZodOptional<z.ZodString>;
58
- dq: z.ZodOptional<z.ZodString>;
59
- e: z.ZodOptional<z.ZodString>;
60
- ext: z.ZodOptional<z.ZodBoolean>;
61
- k: z.ZodOptional<z.ZodString>;
62
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
- kid: z.ZodOptional<z.ZodString>;
64
- kty: z.ZodString;
65
- n: z.ZodOptional<z.ZodString>;
66
- oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
- d: z.ZodOptional<z.ZodString>;
68
- r: z.ZodOptional<z.ZodString>;
69
- t: z.ZodOptional<z.ZodString>;
70
- }, z.core.$loose>>>;
71
- p: z.ZodOptional<z.ZodString>;
72
- q: z.ZodOptional<z.ZodString>;
73
- qi: z.ZodOptional<z.ZodString>;
74
- use: z.ZodOptional<z.ZodString>;
75
- x: z.ZodOptional<z.ZodString>;
76
- x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
- x5t: z.ZodOptional<z.ZodString>;
78
- "x5t#S256": z.ZodOptional<z.ZodString>;
79
- x5u: z.ZodOptional<z.ZodString>;
80
- y: z.ZodOptional<z.ZodString>;
81
89
  }, z.core.$loose>>;
82
- }, z.core.$loose>>;
83
- exp: z.ZodOptional<z.ZodNumber>;
84
- iat: z.ZodOptional<z.ZodNumber>;
85
- jti: z.ZodOptional<z.ZodString>;
86
- nbf: z.ZodOptional<z.ZodNumber>;
87
- nonce: z.ZodOptional<z.ZodString>;
88
- status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
89
- trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
90
- }, z.core.$strip>>;
90
+ exp: z.ZodOptional<z.ZodNumber>;
91
+ iat: z.ZodOptional<z.ZodNumber>;
92
+ jti: z.ZodOptional<z.ZodString>;
93
+ nbf: z.ZodOptional<z.ZodNumber>;
94
+ nonce: z.ZodOptional<z.ZodString>;
95
+ status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
96
+ trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>;
91
99
  export type AuthorizationResponse = z.infer<typeof AuthorizationResponse>;
92
100
  export declare const AuthorizationResponse: z.ZodObject<{
93
101
  status: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,qCAAqC,IAAI,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAE5G,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA0B,CAAC;AAE5D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { Out } from "../../../utils/misc";
2
- import type { CredentialFormat, IssuerConfig } from "../../../credential/issuance/api";
2
+ import type { CredentialFormat } from "../../../credential/issuance/api";
3
+ import type { JWK } from "../../../utils/jwk";
3
4
  export interface StatusListApi {
4
5
  isSupported: true;
5
6
  /**
@@ -17,6 +18,7 @@ export interface StatusListApi {
17
18
  * @since 1.3.3
18
19
  * @param credential The credential to get the status list for
19
20
  * @param format The credential format
21
+ * @param context.appFetch Optional fetch function to use for the network request
20
22
  * @returns The raw status list, the index of the credential and other metadata
21
23
  */
22
24
  get(credential: string, format: CredentialFormat, context?: {
@@ -30,11 +32,13 @@ export interface StatusListApi {
30
32
  /**
31
33
  * Verifies the signature of a status list and extract the status at the specified index.
32
34
  * @since 1.3.3
33
- * @param issuerConf The Credential Issuer common configuration
35
+ * @param keys The JSON Web Key Set to verify the status list signature
34
36
  * @param statusListParams The raw status list, the index to read and other metadata
37
+ * @return The status of the credential and the raw status bit in hexadecimal format (e.g. "0x01")
35
38
  */
36
- verifyAndParse(issuerConf: IssuerConfig, statusListParams: Out<StatusListApi["get"]>): Promise<{
37
- status: number;
39
+ verifyAndParse(keys: JWK[], statusListParams: Out<StatusListApi["get"]>): Promise<{
40
+ statusBit: string;
41
+ status: string;
38
42
  }>;
39
43
  }
40
44
  //# sourceMappingURL=status-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/api/status-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,IAAI,CAAC;IAElB;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IAEH;;;;;OAKG;IACH,cAAc,CACZ,UAAU,EAAE,YAAY,EACxB,gBAAgB,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC1C,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/api/status-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,IAAI,CAAC;IAElB;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KACjC,GACA,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IAEH;;;;;;OAMG;IACH,cAAc,CACZ,IAAI,EAAE,GAAG,EAAE,EACX,gBAAgB,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC1C,OAAO,CAAC;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"01-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/01-status-list.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAyBxD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,KAAK,CAgB9C,CAAC"}
1
+ {"version":3,"file":"01-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/01-status-list.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAyBxD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,KAAK,CA6B9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"02-verify-and-parse-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,gBAAgB,CAcpE,CAAC"}
1
+ {"version":3,"file":"02-verify-and-parse-status-list.d.ts","sourceRoot":"","sources":["../../../../../src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAgBxD,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,gBAAgB,CAcpE,CAAC"}