@pagopa/io-react-native-wallet 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/lib/commonjs/credential/index.js +1 -5
  2. package/lib/commonjs/credential/index.js.map +1 -1
  3. package/lib/commonjs/credential/issuance/02-get-issuer-config.js +48 -0
  4. package/lib/commonjs/credential/issuance/02-get-issuer-config.js.map +1 -0
  5. package/lib/commonjs/credential/issuance/03-start-user-authorization.js +16 -20
  6. package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/04-complete-user-authorization.js +8 -8
  8. package/lib/commonjs/credential/issuance/04-complete-user-authorization.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/05-authorize-access.js +8 -9
  10. package/lib/commonjs/credential/issuance/05-authorize-access.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/06-obtain-credential.js +18 -21
  12. package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
  13. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +3 -3
  14. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  15. package/lib/commonjs/credential/issuance/README.md +18 -21
  16. package/lib/commonjs/credential/issuance/index.js +3 -3
  17. package/lib/commonjs/credential/issuance/index.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/types.js +1 -1
  19. package/lib/commonjs/credential/issuance/types.js.map +1 -1
  20. package/lib/commonjs/credential/presentation/01-start-flow.js +7 -2
  21. package/lib/commonjs/credential/presentation/01-start-flow.js.map +1 -1
  22. package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js +2 -2
  23. package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
  24. package/lib/commonjs/credential/presentation/03-retrieve-jwks.js +68 -0
  25. package/lib/commonjs/credential/presentation/03-retrieve-jwks.js.map +1 -0
  26. package/lib/commonjs/credential/presentation/{03-get-request-object.js → 04-get-request-object.js} +27 -13
  27. package/lib/commonjs/credential/presentation/04-get-request-object.js.map +1 -0
  28. package/lib/commonjs/credential/presentation/{04-send-authorization-response.js → 05-send-authorization-response.js} +1 -1
  29. package/lib/commonjs/credential/presentation/{04-send-authorization-response.js.map → 05-send-authorization-response.js.map} +1 -1
  30. package/lib/commonjs/credential/presentation/README.md +74 -2
  31. package/lib/commonjs/credential/presentation/index.js +15 -2
  32. package/lib/commonjs/credential/presentation/index.js.map +1 -1
  33. package/lib/commonjs/credential/presentation/types.js +5 -3
  34. package/lib/commonjs/credential/presentation/types.js.map +1 -1
  35. package/lib/commonjs/entity/openid-connect/issuer/index.js +25 -0
  36. package/lib/commonjs/entity/openid-connect/issuer/index.js.map +1 -0
  37. package/lib/commonjs/entity/openid-connect/issuer/types.js +61 -0
  38. package/lib/commonjs/entity/openid-connect/issuer/types.js.map +1 -0
  39. package/lib/commonjs/{trust → entity/trust}/chain.js +1 -1
  40. package/lib/commonjs/entity/trust/chain.js.map +1 -0
  41. package/lib/commonjs/{trust → entity/trust}/index.js +1 -1
  42. package/lib/commonjs/entity/trust/index.js.map +1 -0
  43. package/lib/commonjs/{trust → entity/trust}/types.js +2 -2
  44. package/lib/commonjs/entity/trust/types.js.map +1 -0
  45. package/lib/commonjs/index.js +1 -3
  46. package/lib/commonjs/index.js.map +1 -1
  47. package/lib/commonjs/pid/sd-jwt/types.js +2 -18
  48. package/lib/commonjs/pid/sd-jwt/types.js.map +1 -1
  49. package/lib/commonjs/sd-jwt/__test__/index.test.js +32 -23
  50. package/lib/commonjs/sd-jwt/__test__/index.test.js.map +1 -1
  51. package/lib/commonjs/sd-jwt/__test__/types.test.js +20 -11
  52. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  53. package/lib/commonjs/sd-jwt/types.js +18 -5
  54. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  55. package/lib/commonjs/utils/error-codes.js +1 -13
  56. package/lib/commonjs/utils/error-codes.js.map +1 -1
  57. package/lib/commonjs/utils/errors.js +2 -53
  58. package/lib/commonjs/utils/errors.js.map +1 -1
  59. package/lib/commonjs/utils/jwk.js +5 -1
  60. package/lib/commonjs/utils/jwk.js.map +1 -1
  61. package/lib/commonjs/utils/par.js +6 -12
  62. package/lib/commonjs/utils/par.js.map +1 -1
  63. package/lib/module/credential/index.js +1 -3
  64. package/lib/module/credential/index.js.map +1 -1
  65. package/lib/module/credential/issuance/02-get-issuer-config.js +42 -0
  66. package/lib/module/credential/issuance/02-get-issuer-config.js.map +1 -0
  67. package/lib/module/credential/issuance/03-start-user-authorization.js +16 -20
  68. package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
  69. package/lib/module/credential/issuance/04-complete-user-authorization.js +8 -8
  70. package/lib/module/credential/issuance/04-complete-user-authorization.js.map +1 -1
  71. package/lib/module/credential/issuance/05-authorize-access.js +8 -9
  72. package/lib/module/credential/issuance/05-authorize-access.js.map +1 -1
  73. package/lib/module/credential/issuance/06-obtain-credential.js +18 -21
  74. package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
  75. package/lib/module/credential/issuance/07-verify-and-parse-credential.js +3 -3
  76. package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  77. package/lib/module/credential/issuance/README.md +18 -21
  78. package/lib/module/credential/issuance/index.js +2 -2
  79. package/lib/module/credential/issuance/index.js.map +1 -1
  80. package/lib/module/credential/issuance/types.js +1 -1
  81. package/lib/module/credential/issuance/types.js.map +1 -1
  82. package/lib/module/credential/presentation/01-start-flow.js +7 -2
  83. package/lib/module/credential/presentation/01-start-flow.js.map +1 -1
  84. package/lib/module/credential/presentation/02-evaluate-rp-trust.js +1 -1
  85. package/lib/module/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
  86. package/lib/module/credential/presentation/03-retrieve-jwks.js +61 -0
  87. package/lib/module/credential/presentation/03-retrieve-jwks.js.map +1 -0
  88. package/lib/module/credential/presentation/{03-get-request-object.js → 04-get-request-object.js} +26 -12
  89. package/lib/module/credential/presentation/04-get-request-object.js.map +1 -0
  90. package/lib/module/credential/presentation/{04-send-authorization-response.js → 05-send-authorization-response.js} +1 -1
  91. package/lib/module/credential/presentation/{04-send-authorization-response.js.map → 05-send-authorization-response.js.map} +1 -1
  92. package/lib/module/credential/presentation/README.md +74 -2
  93. package/lib/module/credential/presentation/index.js +4 -3
  94. package/lib/module/credential/presentation/index.js.map +1 -1
  95. package/lib/module/credential/presentation/types.js +5 -3
  96. package/lib/module/credential/presentation/types.js.map +1 -1
  97. package/lib/module/entity/openid-connect/issuer/index.js +20 -0
  98. package/lib/module/entity/openid-connect/issuer/index.js.map +1 -0
  99. package/lib/module/entity/openid-connect/issuer/types.js +47 -0
  100. package/lib/module/entity/openid-connect/issuer/types.js.map +1 -0
  101. package/lib/module/{trust → entity/trust}/chain.js +1 -1
  102. package/lib/module/entity/trust/chain.js.map +1 -0
  103. package/lib/module/{trust → entity/trust}/index.js +1 -1
  104. package/lib/module/entity/trust/index.js.map +1 -0
  105. package/lib/module/{trust → entity/trust}/types.js +2 -2
  106. package/lib/module/entity/trust/types.js.map +1 -0
  107. package/lib/module/index.js +1 -2
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/module/pid/sd-jwt/types.js +1 -16
  110. package/lib/module/pid/sd-jwt/types.js.map +1 -1
  111. package/lib/module/sd-jwt/__test__/index.test.js +32 -23
  112. package/lib/module/sd-jwt/__test__/index.test.js.map +1 -1
  113. package/lib/module/sd-jwt/__test__/types.test.js +20 -11
  114. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  115. package/lib/module/sd-jwt/types.js +16 -4
  116. package/lib/module/sd-jwt/types.js.map +1 -1
  117. package/lib/module/utils/error-codes.js +1 -13
  118. package/lib/module/utils/error-codes.js.map +1 -1
  119. package/lib/module/utils/errors.js +0 -48
  120. package/lib/module/utils/errors.js.map +1 -1
  121. package/lib/module/utils/jwk.js +3 -0
  122. package/lib/module/utils/jwk.js.map +1 -1
  123. package/lib/module/utils/par.js +6 -12
  124. package/lib/module/utils/par.js.map +1 -1
  125. package/lib/typescript/credential/index.d.ts +1 -3
  126. package/lib/typescript/credential/index.d.ts.map +1 -1
  127. package/lib/typescript/credential/issuance/01-start-flow.d.ts +1 -1
  128. package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts +32 -0
  129. package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts.map +1 -0
  130. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +3 -3
  131. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
  132. package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts +8 -8
  133. package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts.map +1 -1
  134. package/lib/typescript/credential/issuance/05-authorize-access.d.ts +3 -3
  135. package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +1 -1
  136. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +3 -3
  137. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
  138. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +3 -3
  139. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
  140. package/lib/typescript/credential/issuance/index.d.ts +3 -3
  141. package/lib/typescript/credential/issuance/index.d.ts.map +1 -1
  142. package/lib/typescript/credential/issuance/types.d.ts +4 -9
  143. package/lib/typescript/credential/issuance/types.d.ts.map +1 -1
  144. package/lib/typescript/credential/presentation/01-start-flow.d.ts.map +1 -1
  145. package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts +1 -1
  146. package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts.map +1 -1
  147. package/lib/typescript/credential/presentation/03-retrieve-jwks.d.ts +41 -0
  148. package/lib/typescript/credential/presentation/03-retrieve-jwks.d.ts.map +1 -0
  149. package/lib/typescript/credential/presentation/{03-get-request-object.d.ts → 04-get-request-object.d.ts} +4 -4
  150. package/lib/typescript/credential/presentation/04-get-request-object.d.ts.map +1 -0
  151. package/lib/typescript/credential/presentation/{04-send-authorization-response.d.ts → 05-send-authorization-response.d.ts} +2 -2
  152. package/lib/typescript/credential/presentation/{04-send-authorization-response.d.ts.map → 05-send-authorization-response.d.ts.map} +1 -1
  153. package/lib/typescript/credential/presentation/index.d.ts +5 -4
  154. package/lib/typescript/credential/presentation/index.d.ts.map +1 -1
  155. package/lib/typescript/credential/presentation/types.d.ts +15 -15
  156. package/lib/typescript/entity/openid-connect/issuer/index.d.ts +12 -0
  157. package/lib/typescript/entity/openid-connect/issuer/index.d.ts.map +1 -0
  158. package/lib/typescript/entity/openid-connect/issuer/types.d.ts +641 -0
  159. package/lib/typescript/entity/openid-connect/issuer/types.d.ts.map +1 -0
  160. package/lib/typescript/entity/trust/chain.d.ts.map +1 -0
  161. package/lib/typescript/{trust → entity/trust}/index.d.ts +97 -97
  162. package/lib/typescript/entity/trust/index.d.ts.map +1 -0
  163. package/lib/typescript/{trust → entity/trust}/types.d.ts +597 -597
  164. package/lib/typescript/{trust → entity/trust}/types.d.ts.map +1 -1
  165. package/lib/typescript/index.d.ts +1 -2
  166. package/lib/typescript/index.d.ts.map +1 -1
  167. package/lib/typescript/pid/sd-jwt/types.d.ts +25 -103
  168. package/lib/typescript/pid/sd-jwt/types.d.ts.map +1 -1
  169. package/lib/typescript/sd-jwt/index.d.ts +60 -20
  170. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  171. package/lib/typescript/sd-jwt/types.d.ts +114 -24
  172. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  173. package/lib/typescript/utils/error-codes.d.ts +0 -12
  174. package/lib/typescript/utils/error-codes.d.ts.map +1 -1
  175. package/lib/typescript/utils/errors.d.ts +6 -37
  176. package/lib/typescript/utils/errors.d.ts.map +1 -1
  177. package/lib/typescript/utils/jwk.d.ts +135 -0
  178. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  179. package/lib/typescript/utils/par.d.ts +1 -8
  180. package/lib/typescript/utils/par.d.ts.map +1 -1
  181. package/lib/typescript/wallet-instance-attestation/types.d.ts +12 -12
  182. package/package.json +1 -1
  183. package/src/credential/index.ts +1 -4
  184. package/src/credential/issuance/01-start-flow.ts +1 -1
  185. package/src/credential/issuance/02-get-issuer-config.ts +67 -0
  186. package/src/credential/issuance/03-start-user-authorization.ts +22 -30
  187. package/src/credential/issuance/04-complete-user-authorization.ts +11 -13
  188. package/src/credential/issuance/05-authorize-access.ts +8 -10
  189. package/src/credential/issuance/06-obtain-credential.ts +30 -31
  190. package/src/credential/issuance/07-verify-and-parse-credential.ts +6 -6
  191. package/src/credential/issuance/README.md +18 -21
  192. package/src/credential/issuance/index.ts +3 -6
  193. package/src/credential/issuance/types.ts +1 -1
  194. package/src/credential/presentation/01-start-flow.ts +8 -2
  195. package/src/credential/presentation/02-evaluate-rp-trust.ts +2 -2
  196. package/src/credential/presentation/03-retrieve-jwks.ts +73 -0
  197. package/src/credential/presentation/{03-get-request-object.ts → 04-get-request-object.ts} +33 -15
  198. package/src/credential/presentation/{04-send-authorization-response.ts → 05-send-authorization-response.ts} +1 -1
  199. package/src/credential/presentation/README.md +74 -2
  200. package/src/credential/presentation/index.ts +10 -2
  201. package/src/credential/presentation/types.ts +3 -3
  202. package/src/entity/openid-connect/issuer/index.ts +27 -0
  203. package/src/entity/openid-connect/issuer/types.ts +68 -0
  204. package/src/{trust → entity/trust}/chain.ts +2 -2
  205. package/src/{trust → entity/trust}/index.ts +1 -1
  206. package/src/{trust → entity/trust}/types.ts +2 -2
  207. package/src/index.ts +0 -2
  208. package/src/pid/sd-jwt/types.ts +1 -18
  209. package/src/sd-jwt/__test__/index.test.ts +47 -37
  210. package/src/sd-jwt/__test__/types.test.ts +26 -16
  211. package/src/sd-jwt/types.ts +16 -2
  212. package/src/utils/error-codes.ts +0 -12
  213. package/src/utils/errors.ts +12 -86
  214. package/src/utils/jwk.ts +5 -0
  215. package/src/utils/par.ts +3 -10
  216. package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +0 -27
  217. package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +0 -1
  218. package/lib/commonjs/credential/presentation/03-get-request-object.js.map +0 -1
  219. package/lib/commonjs/credential/status/01-start-flow.js +0 -2
  220. package/lib/commonjs/credential/status/01-start-flow.js.map +0 -1
  221. package/lib/commonjs/credential/status/02-status-attestation.js +0 -72
  222. package/lib/commonjs/credential/status/02-status-attestation.js.map +0 -1
  223. package/lib/commonjs/credential/status/03-verify-and-parse-status-attestation.js +0 -52
  224. package/lib/commonjs/credential/status/03-verify-and-parse-status-attestation.js.map +0 -1
  225. package/lib/commonjs/credential/status/README.md +0 -67
  226. package/lib/commonjs/credential/status/index.js +0 -27
  227. package/lib/commonjs/credential/status/index.js.map +0 -1
  228. package/lib/commonjs/credential/status/types.js +0 -48
  229. package/lib/commonjs/credential/status/types.js.map +0 -1
  230. package/lib/commonjs/credential/trustmark/README.md +0 -62
  231. package/lib/commonjs/credential/trustmark/get-credential-trustmark.js +0 -81
  232. package/lib/commonjs/credential/trustmark/get-credential-trustmark.js.map +0 -1
  233. package/lib/commonjs/credential/trustmark/index.js +0 -13
  234. package/lib/commonjs/credential/trustmark/index.js.map +0 -1
  235. package/lib/commonjs/trust/chain.js.map +0 -1
  236. package/lib/commonjs/trust/index.js.map +0 -1
  237. package/lib/commonjs/trust/types.js.map +0 -1
  238. package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +0 -20
  239. package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +0 -1
  240. package/lib/module/credential/presentation/03-get-request-object.js.map +0 -1
  241. package/lib/module/credential/status/01-start-flow.js +0 -2
  242. package/lib/module/credential/status/01-start-flow.js.map +0 -1
  243. package/lib/module/credential/status/02-status-attestation.js +0 -64
  244. package/lib/module/credential/status/02-status-attestation.js.map +0 -1
  245. package/lib/module/credential/status/03-verify-and-parse-status-attestation.js +0 -46
  246. package/lib/module/credential/status/03-verify-and-parse-status-attestation.js.map +0 -1
  247. package/lib/module/credential/status/README.md +0 -67
  248. package/lib/module/credential/status/index.js +0 -5
  249. package/lib/module/credential/status/index.js.map +0 -1
  250. package/lib/module/credential/status/types.js +0 -40
  251. package/lib/module/credential/status/types.js.map +0 -1
  252. package/lib/module/credential/trustmark/README.md +0 -62
  253. package/lib/module/credential/trustmark/get-credential-trustmark.js +0 -72
  254. package/lib/module/credential/trustmark/get-credential-trustmark.js.map +0 -1
  255. package/lib/module/credential/trustmark/index.js +0 -3
  256. package/lib/module/credential/trustmark/index.js.map +0 -1
  257. package/lib/module/trust/chain.js.map +0 -1
  258. package/lib/module/trust/index.js.map +0 -1
  259. package/lib/module/trust/types.js.map +0 -1
  260. package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts +0 -19
  261. package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +0 -1
  262. package/lib/typescript/credential/presentation/03-get-request-object.d.ts.map +0 -1
  263. package/lib/typescript/credential/status/01-start-flow.d.ts +0 -10
  264. package/lib/typescript/credential/status/01-start-flow.d.ts.map +0 -1
  265. package/lib/typescript/credential/status/02-status-attestation.d.ts +0 -19
  266. package/lib/typescript/credential/status/02-status-attestation.d.ts.map +0 -1
  267. package/lib/typescript/credential/status/03-verify-and-parse-status-attestation.d.ts +0 -24
  268. package/lib/typescript/credential/status/03-verify-and-parse-status-attestation.d.ts.map +0 -1
  269. package/lib/typescript/credential/status/index.d.ts +0 -7
  270. package/lib/typescript/credential/status/index.d.ts.map +0 -1
  271. package/lib/typescript/credential/status/types.d.ts +0 -305
  272. package/lib/typescript/credential/status/types.d.ts.map +0 -1
  273. package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts +0 -52
  274. package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts.map +0 -1
  275. package/lib/typescript/credential/trustmark/index.d.ts +0 -4
  276. package/lib/typescript/credential/trustmark/index.d.ts.map +0 -1
  277. package/lib/typescript/trust/chain.d.ts.map +0 -1
  278. package/lib/typescript/trust/index.d.ts.map +0 -1
  279. package/src/credential/issuance/02-evaluate-issuer-trust.ts +0 -32
  280. package/src/credential/status/01-start-flow.ts +0 -9
  281. package/src/credential/status/02-status-attestation.ts +0 -102
  282. package/src/credential/status/03-verify-and-parse-status-attestation.ts +0 -60
  283. package/src/credential/status/README.md +0 -67
  284. package/src/credential/status/index.ts +0 -22
  285. package/src/credential/status/types.ts +0 -43
  286. package/src/credential/trustmark/README.md +0 -62
  287. package/src/credential/trustmark/get-credential-trustmark.ts +0 -120
  288. package/src/credential/trustmark/index.ts +0 -8
  289. /package/lib/typescript/{trust → entity/trust}/chain.d.ts +0 -0
@@ -1,72 +0,0 @@
1
- import { SignJWT, thumbprint, decode as decodeJwt } from "@pagopa/io-react-native-jwt";
2
- import * as WalletInstanceAttestation from "../../wallet-instance-attestation";
3
- import { IoWalletError } from "../../utils/errors";
4
- import { obfuscateString } from "../../utils/string";
5
- /**
6
- * Generates a trustmark signed JWT, which is used to verify the authenticity of a credential.
7
- * The public key used to sign the trustmark must the same used for the Wallet Instance Attestation.
8
- *
9
- * @param walletInstanceAttestation the Wallet Instance's attestation
10
- * @param wiaCryptoContext The Wallet Instance's crypto context associated with the walletInstanceAttestation parameter
11
- * @param credentialType The type of credential for which the trustmark is generated
12
- * @param docNumber (Optional) Document number contained in the credential, if applicable
13
- * @param expirationTime (Optional) Expiration time for the trustmark, default is 2 minutes.
14
- * If a number is provided, it is interpreted as a timestamp in seconds.
15
- * If a string is provided, it is interpreted as a time span and added to the current timestamp.
16
- * @throws {IoWalletError} If the WIA is expired
17
- * @throws {IoWalletError} If the public key associated to the WIA is not the same for the CryptoContext
18
- * @throws {JWSSignatureVerificationFailed} If the WIA signature is not valid
19
- * @returns A promise containing the signed JWT and its expiration time in seconds
20
- */
21
- export const getCredentialTrustmark = async _ref => {
22
- let {
23
- walletInstanceAttestation,
24
- wiaCryptoContext,
25
- credentialType,
26
- docNumber,
27
- expirationTime = "2m"
28
- } = _ref;
29
- /**
30
- * Check that the public key used to sign the trustmark is the one used for the WIA
31
- */
32
- const holderBindingKey = await wiaCryptoContext.getPublicKey();
33
- const decodedWia = WalletInstanceAttestation.decode(walletInstanceAttestation);
34
-
35
- /**
36
- * Check that the WIA is not expired
37
- */
38
- if (decodedWia.payload.exp * 1000 < Date.now()) {
39
- throw new IoWalletError("Wallet Instance Attestation expired");
40
- }
41
-
42
- /**
43
- * Verify holder binding by comparing thumbprints of the WIA and the CryptoContext key
44
- */
45
- const wiaThumbprint = await thumbprint(decodedWia.payload.cnf.jwk);
46
- const cryptoContextThumbprint = await thumbprint(holderBindingKey);
47
- if (wiaThumbprint !== cryptoContextThumbprint) {
48
- throw new IoWalletError(`Failed to verify holder binding for status attestation, expected thumbprint: ${cryptoContextThumbprint}, got: ${wiaThumbprint}`);
49
- }
50
-
51
- /**
52
- * Generate Trustmark signed JWT
53
- */
54
- const signedTrustmarkJwt = await new SignJWT(wiaCryptoContext).setProtectedHeader({
55
- alg: "ES256"
56
- }).setPayload({
57
- iss: walletInstanceAttestation,
58
- /**
59
- * If present, the document number is obfuscated before adding it to the payload
60
- */
61
- ...(docNumber ? {
62
- sub: obfuscateString(docNumber)
63
- } : {}),
64
- subtyp: credentialType
65
- }).setIssuedAt().setExpirationTime(expirationTime).sign();
66
- const decodedTrustmark = decodeJwt(signedTrustmarkJwt);
67
- return {
68
- jwt: signedTrustmarkJwt,
69
- expirationTime: decodedTrustmark.payload.exp ?? 0
70
- };
71
- };
72
- //# sourceMappingURL=get-credential-trustmark.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SignJWT","thumbprint","decode","decodeJwt","WalletInstanceAttestation","IoWalletError","obfuscateString","getCredentialTrustmark","_ref","walletInstanceAttestation","wiaCryptoContext","credentialType","docNumber","expirationTime","holderBindingKey","getPublicKey","decodedWia","payload","exp","Date","now","wiaThumbprint","cnf","jwk","cryptoContextThumbprint","signedTrustmarkJwt","setProtectedHeader","alg","setPayload","iss","sub","subtyp","setIssuedAt","setExpirationTime","sign","decodedTrustmark","jwt"],"sourceRoot":"../../../../src","sources":["credential/trustmark/get-credential-trustmark.ts"],"mappings":"AAAA,SACEA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A;IACM,IAAIG,SAAS,GAAG;MAAEkB,GAAG,EAAExB,eAAe,CAACM,SAAS;IAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzDmB,MAAM,EAAEpB;EACV,CAAC,CAAC,CACDqB,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAACpB,cAAc,CAAC,CACjCqB,IAAI,CAAC,CAAC;EAET,MAAMC,gBAAgB,GAAGhC,SAAS,CAACsB,kBAAkB,CAAC;EAEtD,OAAO;IACLW,GAAG,EAAEX,kBAAkB;IACvBZ,cAAc,EAAEsB,gBAAgB,CAAClB,OAAO,CAACC,GAAG,IAAI;EAClD,CAAC;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { getCredentialTrustmark } from "./get-credential-trustmark";
2
- export { getCredentialTrustmark };
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getCredentialTrustmark"],"sourceRoot":"../../../../src","sources":["credential/trustmark/index.ts"],"mappings":"AAAA,SAEEA,sBAAsB,QACjB,4BAA4B;AAEnC,SAASA,sBAAsB"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["decode","decodeJwt","verify","verifyJwt","EntityConfiguration","EntityStatement","TrustAnchorEntityConfiguration","IoWalletError","z","getSignedEntityConfiguration","getSignedEntityStatement","token","kid","jwks","jwk","find","k","Error","protectedHeader","header","payload","FirstElementShape","MiddleElementShape","LastElementShape","union","validateTrustChain","trustAnchorEntity","chain","length","selectTokenShape","elementIndex","selectKid","currentIndex","shape","parse","selectKeys","keys","nextIndex","nextToken","Promise","all","map","i","args","renewTrustChain","appFetch","arguments","undefined","fetch","e","safeParse","_ref","es","ec","success","data","iss","sub","reject"],"sourceRoot":"../../../src","sources":["trust/chain.ts"],"mappings":"AAAA,SACEA,MAAM,IAAIC,SAAS,EACnBC,MAAM,IAAIC,SAAS,QACd,6BAA6B;AACpC,SACEC,mBAAmB,EACnBC,eAAe,EACfC,8BAA8B,QACzB,SAAS;AAEhB,SAASC,aAAa,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AI,CAAC,CAClC,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAC7BjB,KAAe,EAEf;EAAA,IADAkB,QAA8B,GAAAC,SAAA,CAAAlB,MAAA,QAAAkB,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGE,KAAK;EAEtC,OAAOT,OAAO,CAACC,GAAG,CAChBb;EACE;EAAA,CACCc,GAAG,CAACzC,MAAM,CAAC,CACXyC,GAAG,CACDQ,CAAC,IACA,CACE5C,eAAe,CAAC6C,SAAS,CAACD,CAAC,CAAC,EAC5B7C,mBAAmB,CAAC8C,SAAS,CAACD,CAAC,CAAC,CAEtC;EACA;EAAA,CACCR,GAAG,CAAC,CAAAU,IAAA,EAAWT,CAAC;IAAA,IAAX,CAACU,EAAE,EAAEC,EAAE,CAAC,GAAAF,IAAA;IAAA,OACZE,EAAE,CAACC,OAAO,GACN7C,4BAA4B,CAAC4C,EAAE,CAACE,IAAI,CAACnC,OAAO,CAACoC,GAAG,EAAE;MAAEX;IAAS,CAAC,CAAC,GAC/DO,EAAE,CAACE,OAAO,GACV5C,wBAAwB,CAAC0C,EAAE,CAACG,IAAI,CAACnC,OAAO,CAACoC,GAAG,EAAEJ,EAAE,CAACG,IAAI,CAACnC,OAAO,CAACqC,GAAG,EAAE;MACjEZ;IACF,CAAC,CAAC;IACF;IACAN,OAAO,CAACmB,MAAM,CACZ,IAAInD,aAAa,CACd,iDAAgDmC,CAAE,uBACrD,CACF,CAAC;EAAA,CACP,CACJ,CAAC;AACH"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["decode","decodeJwt","WalletProviderEntityConfiguration","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","RelyingPartyEntityConfiguration","EntityConfiguration","EntityStatement","validateTrustChain","renewTrustChain","hasStatusOrThrow","verifyTrustChain","trustAnchorEntity","chain","appFetch","fetch","renewOnFail","arguments","length","undefined","error","renewedChain","getSignedEntityConfiguration","entityBaseUrl","wellKnownUrl","method","then","res","text","fetchAndParseEntityConfiguration","schema","responseText","responseJwt","parse","header","protectedHeader","payload","getWalletProviderEntityConfiguration","options","getCredentialIssuerEntityConfiguration","getTrustAnchorEntityConfiguration","getRelyingPartyEntityConfiguration","getEntityConfiguration","getEntityStatement","accreditationBodyBaseUrl","subordinatedEntityBaseUrl","getSignedEntityStatement","url","URLSearchParams","sub"],"sourceRoot":"../../../src","sources":["trust/index.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AACjE,SACEC,iCAAiC,EACjCC,8BAA8B,EAC9BC,mCAAmC,EACnCC,+BAA+B,EAC/BC,mBAAmB,EACnBC,eAAe,QACV,SAAS;AAChB,SAASC,kBAAkB,EAAEC,eAAe,QAAQ,SAAS;AAC7D,SAASC,gBAAgB,QAAQ,eAAe;AAWhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,gBAAgBA,CACpCC,iBAAiD,EACjDC,KAAe,EAKiC;EAAA,IAJhD;IACEC,QAAQ,GAAGC,KAAK;IAChBC,WAAW,GAAG;EAC4C,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAElE,IAAI;IACF,OAAOT,kBAAkB,CAACI,iBAAiB,EAAEC,KAAK,CAAC;EACrD,CAAC,CAAC,OAAOO,KAAK,EAAE;IACd,IAAIJ,WAAW,EAAE;MACf,MAAMK,YAAY,GAAG,MAAMZ,eAAe,CAACI,KAAK,EAAEC,QAAQ,CAAC;MAC3D,OAAON,kBAAkB,CAACI,iBAAiB,EAAES,YAAY,CAAC;IAC5D,CAAC,MAAM;MACL,MAAMD,KAAK;IACb;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeE,4BAA4BA,CAChDC,aAAqB,EAMJ;EAAA,IALjB;IACET,QAAQ,GAAGC;EAGb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AQ,CAACiC,GAAG,EAAE;IACzBtB,MAAM,EAAE;EACV,CAAC,CAAC,CACCC,IAAI,CAAChB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAC3BgB,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,IAAI,CAAC,CAAC,CAAC;AAC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["UnixTime","JWK","z","TrustMark","object","id","string","trust_mark","RelyingPartyMetadata","application_type","optional","client_id","client_name","jwks","keys","array","contacts","CredentialDisplayMetadata","name","locale","logo","url","alt_text","background_color","text_color","CredentialIssuerDisplayMetadata","ClaimsMetadata","record","value_type","display","IssuanceErrorSupported","title","description","SupportedCredentialMetadata","format","union","literal","scope","claims","cryptographic_binding_methods_supported","credential_signing_alg_values_supported","authentic_source","issuance_errors_supported","EntityStatement","header","typ","alg","kid","payload","iss","sub","trust_marks","iat","number","exp","EntityConfigurationHeader","FederationEntityMetadata","federation_fetch_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_status_endpoint","federation_trust_mark_list_endpoint","organization_name","homepage_uri","policy_uri","logo_uri","passthrough","BaseEntityConfiguration","authority_hints","metadata","federation_entity","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","openid_credential_issuer","credential_issuer","credential_endpoint","revocation_endpoint","status_attestation_endpoint","credential_configurations_supported","oauth_authorization_server","authorization_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","token_endpoint","introspection_endpoint","client_registration_types_supported","code_challenge_methods_supported","authorization_details_types_supported","acr_values_supported","grant_types_supported","issuer","scopes_supported","request_parameter_supported","boolean","request_uri_parameter_supported","response_types_supported","response_modes_supported","subject_types_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","request_object_signing_alg_values_supported","wallet_relying_party","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","aal_values_supported","EntityConfiguration"],"sourceRoot":"../../../src","sources":["trust/types.ts"],"mappings":"AAAA,SA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,EAAE;AACf,CACF,CAAC"}
@@ -1,19 +0,0 @@
1
- import { CredentialIssuerEntityConfiguration } from "../../trust/types";
2
- import type { StartFlow } from "./01-start-flow";
3
- import type { Out } from "../../utils/misc";
4
- export type EvaluateIssuerTrust = (issuerUrl: Out<StartFlow>["issuerUrl"], context?: {
5
- appFetch?: GlobalFetch["fetch"];
6
- }) => Promise<{
7
- issuerConf: CredentialIssuerEntityConfiguration["payload"]["metadata"];
8
- }>;
9
- /**
10
- * WARNING: This function must be called after {@link startFlow}. The next function to be called is {@link startUserAuthorization}.
11
- * The Issuer trust evaluation phase.
12
- * Fetch the Issuer's configuration and verify trust.
13
- *
14
- * @param issuerUrl The base url of the Issuer returned by {@link startFlow}
15
- * @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
16
- * @returns The Issuer's configuration
17
- */
18
- export declare const evaluateIssuerTrust: EvaluateIssuerTrust;
19
- //# sourceMappingURL=02-evaluate-issuer-trust.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"02-evaluate-issuer-trust.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/02-evaluate-issuer-trust.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG,CAChC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,EACtC,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACE,OAAO,CAAC;IACX,UAAU,EAAE,mCAAmC,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAQjC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"03-get-request-object.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/03-get-request-object.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAoB,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,CAC7B,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,EACxC,MAAM,EAAE,GAAG,CAAC,yBAAyB,CAAC,CAAC,QAAQ,CAAC,EAChD,OAAO,EAAE;IACP,gBAAgB,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC,yBAAyB,EAAE,MAAM,CAAC;CACnC,KACE,OAAO,CAAC;IAAE,aAAa,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAgD9B,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * WARNING: This is the first function to be called in the status attestation flow. The next function to be called is {@link statusAttestation}.
3
- * The beginning of the status attestation flow.
4
- *
5
- * @returns The url of the credential issuer to be used in the next function.
6
- */
7
- export type StartFlow = () => {
8
- issuerUrl: string;
9
- };
10
- //# sourceMappingURL=01-start-flow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"01-start-flow.d.ts","sourceRoot":"","sources":["../../../../src/credential/status/01-start-flow.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,19 +0,0 @@
1
- import { type Out } from "../../utils/misc";
2
- import type { EvaluateIssuerTrust, ObtainCredential } from "../issuance";
3
- import { type CryptoContext } from "@pagopa/io-react-native-jwt";
4
- import { StatusAttestationResponse } from "./types";
5
- export type StatusAttestation = (issuerConf: Out<EvaluateIssuerTrust>["issuerConf"], credential: Out<ObtainCredential>["credential"], credentialCryptoContext: CryptoContext, appFetch?: GlobalFetch["fetch"]) => Promise<{
6
- statusAttestation: StatusAttestationResponse["status_attestation"];
7
- }>;
8
- /**
9
- * WARNING: This function must be called after {@link startFlow}.
10
- * Verify the status of the credential attestation.
11
- * @param issuerConf - The issuer's configuration
12
- * @param credential - The credential to be verified
13
- * @param credentialCryptoContext - The credential's crypto context
14
- * @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
15
- * @throws {IssuerResponseError} with a specific code for more context
16
- * @returns The credential status attestation
17
- */
18
- export declare const statusAttestation: StatusAttestation;
19
- //# sourceMappingURL=02-status-attestation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"02-status-attestation.d.ts","sourceRoot":"","sources":["../../../../src/credential/status/02-status-attestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,GAAG,EACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAQpD,MAAM,MAAM,iBAAiB,GAAG,CAC9B,UAAU,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC,YAAY,CAAC,EAClD,UAAU,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,EAC/C,uBAAuB,EAAE,aAAa,EACtC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,KAC5B,OAAO,CAAC;IACX,iBAAiB,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBA2C/B,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { Out } from "../../utils/misc";
2
- import { type CryptoContext } from "@pagopa/io-react-native-jwt";
3
- import type { EvaluateIssuerTrust, StatusAttestation } from "../status";
4
- import { ParsedStatusAttestation } from "./types";
5
- export type VerifyAndParseStatusAttestation = (issuerConf: Out<EvaluateIssuerTrust>["issuerConf"], statusAttestation: Out<StatusAttestation>, context: {
6
- credentialCryptoContext: CryptoContext;
7
- }) => Promise<{
8
- parsedStatusAttestation: ParsedStatusAttestation;
9
- }>;
10
- /**
11
- * Given a status attestation, verifies that:
12
- * - It's in the supported format;
13
- * - The attestation is correctly signed;
14
- * - It's bound to the given key.
15
- * @param issuerConf The Issuer configuration returned by {@link evaluateIssuerTrust}
16
- * @param statusAttestation The encoded status attestation returned by {@link statusAttestation}
17
- * @param context.credentialCryptoContext The crypto context used to obtain the credential in {@link obtainCredential}
18
- * @returns A parsed status attestation
19
- * @throws {IoWalletError} If the credential signature is not verified with the Issuer key set
20
- * @throws {IoWalletError} If the credential is not bound to the provided user key
21
- * @throws {IoWalletError} If the credential data fail to parse
22
- */
23
- export declare const verifyAndParseStatusAttestation: VerifyAndParseStatusAttestation;
24
- //# sourceMappingURL=03-verify-and-parse-status-attestation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"03-verify-and-parse-status-attestation.d.ts","sourceRoot":"","sources":["../../../../src/credential/status/03-verify-and-parse-status-attestation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD,MAAM,MAAM,+BAA+B,GAAG,CAC5C,UAAU,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC,YAAY,CAAC,EAClD,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE;IACP,uBAAuB,EAAE,aAAa,CAAC;CACxC,KACE,OAAO,CAAC;IAAE,uBAAuB,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,EAAE,+BA+B3C,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type StartFlow } from "./01-start-flow";
2
- import { statusAttestation, type StatusAttestation } from "./02-status-attestation";
3
- import { evaluateIssuerTrust, type EvaluateIssuerTrust } from "../issuance";
4
- import { verifyAndParseStatusAttestation, type VerifyAndParseStatusAttestation } from "./03-verify-and-parse-status-attestation";
5
- export { evaluateIssuerTrust, statusAttestation, verifyAndParseStatusAttestation, };
6
- export type { StartFlow, EvaluateIssuerTrust, StatusAttestation, VerifyAndParseStatusAttestation, };
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credential/status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EACL,+BAA+B,EAC/B,KAAK,+BAA+B,EACrC,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,+BAA+B,GAChC,CAAC;AACF,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,+BAA+B,GAChC,CAAC"}
@@ -1,305 +0,0 @@
1
- import * as z from "zod";
2
- /**
3
- * Shape from parsing a status attestation response in case of 201.
4
- */
5
- export declare const StatusAttestationResponse: z.ZodObject<{
6
- status_attestation: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- status_attestation: string;
9
- }, {
10
- status_attestation: string;
11
- }>;
12
- /**
13
- * Type from parsing a status attestation response in case of 201.
14
- * Inferred from {@link StatusAttestationResponse}.
15
- */
16
- export type StatusAttestationResponse = z.infer<typeof StatusAttestationResponse>;
17
- /**
18
- * Type for a parsed status attestation.
19
- */
20
- export type ParsedStatusAttestation = z.infer<typeof ParsedStatusAttestation>;
21
- /**
22
- * Shape for parsing a status attestation in a JWT.
23
- */
24
- export declare const ParsedStatusAttestation: z.ZodObject<{
25
- header: z.ZodObject<{
26
- typ: z.ZodLiteral<"status-attestation+jwt">;
27
- alg: z.ZodString;
28
- kid: z.ZodOptional<z.ZodString>;
29
- }, "strip", z.ZodTypeAny, {
30
- alg: string;
31
- typ: "status-attestation+jwt";
32
- kid?: string | undefined;
33
- }, {
34
- alg: string;
35
- typ: "status-attestation+jwt";
36
- kid?: string | undefined;
37
- }>;
38
- payload: z.ZodObject<{
39
- credential_hash_alg: z.ZodString;
40
- credential_hash: z.ZodString;
41
- cnf: z.ZodObject<{
42
- jwk: z.ZodObject<{
43
- alg: z.ZodOptional<z.ZodString>;
44
- crv: z.ZodOptional<z.ZodString>;
45
- d: z.ZodOptional<z.ZodString>;
46
- dp: z.ZodOptional<z.ZodString>;
47
- dq: z.ZodOptional<z.ZodString>;
48
- e: z.ZodOptional<z.ZodString>;
49
- ext: z.ZodOptional<z.ZodBoolean>;
50
- k: z.ZodOptional<z.ZodString>;
51
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
- kid: z.ZodOptional<z.ZodString>;
53
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
54
- n: z.ZodOptional<z.ZodString>;
55
- p: z.ZodOptional<z.ZodString>;
56
- q: z.ZodOptional<z.ZodString>;
57
- qi: z.ZodOptional<z.ZodString>;
58
- use: z.ZodOptional<z.ZodString>;
59
- x: z.ZodOptional<z.ZodString>;
60
- y: z.ZodOptional<z.ZodString>;
61
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
- x5t: z.ZodOptional<z.ZodString>;
63
- "x5t#S256": z.ZodOptional<z.ZodString>;
64
- x5u: z.ZodOptional<z.ZodString>;
65
- }, "strip", z.ZodTypeAny, {
66
- kty: "RSA" | "EC";
67
- alg?: string | undefined;
68
- crv?: string | undefined;
69
- d?: string | undefined;
70
- dp?: string | undefined;
71
- dq?: string | undefined;
72
- e?: string | undefined;
73
- ext?: boolean | undefined;
74
- k?: string | undefined;
75
- key_ops?: string[] | undefined;
76
- kid?: string | undefined;
77
- n?: string | undefined;
78
- p?: string | undefined;
79
- q?: string | undefined;
80
- qi?: string | undefined;
81
- use?: string | undefined;
82
- x?: string | undefined;
83
- y?: string | undefined;
84
- x5c?: string[] | undefined;
85
- x5t?: string | undefined;
86
- "x5t#S256"?: string | undefined;
87
- x5u?: string | undefined;
88
- }, {
89
- kty: "RSA" | "EC";
90
- alg?: string | undefined;
91
- crv?: string | undefined;
92
- d?: string | undefined;
93
- dp?: string | undefined;
94
- dq?: string | undefined;
95
- e?: string | undefined;
96
- ext?: boolean | undefined;
97
- k?: string | undefined;
98
- key_ops?: string[] | undefined;
99
- kid?: string | undefined;
100
- n?: string | undefined;
101
- p?: string | undefined;
102
- q?: string | undefined;
103
- qi?: string | undefined;
104
- use?: string | undefined;
105
- x?: string | undefined;
106
- y?: string | undefined;
107
- x5c?: string[] | undefined;
108
- x5t?: string | undefined;
109
- "x5t#S256"?: string | undefined;
110
- x5u?: string | undefined;
111
- }>;
112
- }, "strip", z.ZodTypeAny, {
113
- jwk: {
114
- kty: "RSA" | "EC";
115
- alg?: string | undefined;
116
- crv?: string | undefined;
117
- d?: string | undefined;
118
- dp?: string | undefined;
119
- dq?: string | undefined;
120
- e?: string | undefined;
121
- ext?: boolean | undefined;
122
- k?: string | undefined;
123
- key_ops?: string[] | undefined;
124
- kid?: string | undefined;
125
- n?: string | undefined;
126
- p?: string | undefined;
127
- q?: string | undefined;
128
- qi?: string | undefined;
129
- use?: string | undefined;
130
- x?: string | undefined;
131
- y?: string | undefined;
132
- x5c?: string[] | undefined;
133
- x5t?: string | undefined;
134
- "x5t#S256"?: string | undefined;
135
- x5u?: string | undefined;
136
- };
137
- }, {
138
- jwk: {
139
- kty: "RSA" | "EC";
140
- alg?: string | undefined;
141
- crv?: string | undefined;
142
- d?: string | undefined;
143
- dp?: string | undefined;
144
- dq?: string | undefined;
145
- e?: string | undefined;
146
- ext?: boolean | undefined;
147
- k?: string | undefined;
148
- key_ops?: string[] | undefined;
149
- kid?: string | undefined;
150
- n?: string | undefined;
151
- p?: string | undefined;
152
- q?: string | undefined;
153
- qi?: string | undefined;
154
- use?: string | undefined;
155
- x?: string | undefined;
156
- y?: string | undefined;
157
- x5c?: string[] | undefined;
158
- x5t?: string | undefined;
159
- "x5t#S256"?: string | undefined;
160
- x5u?: string | undefined;
161
- };
162
- }>;
163
- exp: z.ZodNumber;
164
- iat: z.ZodNumber;
165
- }, "strip", z.ZodTypeAny, {
166
- iat: number;
167
- exp: number;
168
- credential_hash_alg: string;
169
- cnf: {
170
- jwk: {
171
- kty: "RSA" | "EC";
172
- alg?: string | undefined;
173
- crv?: string | undefined;
174
- d?: string | undefined;
175
- dp?: string | undefined;
176
- dq?: string | undefined;
177
- e?: string | undefined;
178
- ext?: boolean | undefined;
179
- k?: string | undefined;
180
- key_ops?: string[] | undefined;
181
- kid?: string | undefined;
182
- n?: string | undefined;
183
- p?: string | undefined;
184
- q?: string | undefined;
185
- qi?: string | undefined;
186
- use?: string | undefined;
187
- x?: string | undefined;
188
- y?: string | undefined;
189
- x5c?: string[] | undefined;
190
- x5t?: string | undefined;
191
- "x5t#S256"?: string | undefined;
192
- x5u?: string | undefined;
193
- };
194
- };
195
- credential_hash: string;
196
- }, {
197
- iat: number;
198
- exp: number;
199
- credential_hash_alg: string;
200
- cnf: {
201
- jwk: {
202
- kty: "RSA" | "EC";
203
- alg?: string | undefined;
204
- crv?: string | undefined;
205
- d?: string | undefined;
206
- dp?: string | undefined;
207
- dq?: string | undefined;
208
- e?: string | undefined;
209
- ext?: boolean | undefined;
210
- k?: string | undefined;
211
- key_ops?: string[] | undefined;
212
- kid?: string | undefined;
213
- n?: string | undefined;
214
- p?: string | undefined;
215
- q?: string | undefined;
216
- qi?: string | undefined;
217
- use?: string | undefined;
218
- x?: string | undefined;
219
- y?: string | undefined;
220
- x5c?: string[] | undefined;
221
- x5t?: string | undefined;
222
- "x5t#S256"?: string | undefined;
223
- x5u?: string | undefined;
224
- };
225
- };
226
- credential_hash: string;
227
- }>;
228
- }, "strip", z.ZodTypeAny, {
229
- header: {
230
- alg: string;
231
- typ: "status-attestation+jwt";
232
- kid?: string | undefined;
233
- };
234
- payload: {
235
- iat: number;
236
- exp: number;
237
- credential_hash_alg: string;
238
- cnf: {
239
- jwk: {
240
- kty: "RSA" | "EC";
241
- alg?: string | undefined;
242
- crv?: string | undefined;
243
- d?: string | undefined;
244
- dp?: string | undefined;
245
- dq?: string | undefined;
246
- e?: string | undefined;
247
- ext?: boolean | undefined;
248
- k?: string | undefined;
249
- key_ops?: string[] | undefined;
250
- kid?: string | undefined;
251
- n?: string | undefined;
252
- p?: string | undefined;
253
- q?: string | undefined;
254
- qi?: string | undefined;
255
- use?: string | undefined;
256
- x?: string | undefined;
257
- y?: string | undefined;
258
- x5c?: string[] | undefined;
259
- x5t?: string | undefined;
260
- "x5t#S256"?: string | undefined;
261
- x5u?: string | undefined;
262
- };
263
- };
264
- credential_hash: string;
265
- };
266
- }, {
267
- header: {
268
- alg: string;
269
- typ: "status-attestation+jwt";
270
- kid?: string | undefined;
271
- };
272
- payload: {
273
- iat: number;
274
- exp: number;
275
- credential_hash_alg: string;
276
- cnf: {
277
- jwk: {
278
- kty: "RSA" | "EC";
279
- alg?: string | undefined;
280
- crv?: string | undefined;
281
- d?: string | undefined;
282
- dp?: string | undefined;
283
- dq?: string | undefined;
284
- e?: string | undefined;
285
- ext?: boolean | undefined;
286
- k?: string | undefined;
287
- key_ops?: string[] | undefined;
288
- kid?: string | undefined;
289
- n?: string | undefined;
290
- p?: string | undefined;
291
- q?: string | undefined;
292
- qi?: string | undefined;
293
- use?: string | undefined;
294
- x?: string | undefined;
295
- y?: string | undefined;
296
- x5c?: string[] | undefined;
297
- x5t?: string | undefined;
298
- "x5t#S256"?: string | undefined;
299
- x5u?: string | undefined;
300
- };
301
- };
302
- credential_hash: string;
303
- };
304
- }>;
305
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/credential/status/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAC"}
@@ -1,52 +0,0 @@
1
- import { type CryptoContext } from "@pagopa/io-react-native-jwt";
2
- export type GetCredentialTrustmarkJwt = (params: {
3
- /**
4
- * The Wallet Instance's attestation
5
- */
6
- walletInstanceAttestation: string;
7
- /**
8
- * The Wallet Instance's crypto context associated with the walletInstanceAttestation parameter
9
- */
10
- wiaCryptoContext: CryptoContext;
11
- /**
12
- * The type of credential for which the trustmark is generated
13
- */
14
- credentialType: string;
15
- /**
16
- * (Optional) Document number contained in the credential, if applicable
17
- */
18
- docNumber?: string;
19
- /**
20
- * (Optional) Expiration time for the trustmark, default is 2 minutes.
21
- * If a number is provided, it is interpreted as a timestamp in seconds.
22
- * If a string is provided, it is interpreted as a time span and added to the current timestamp.
23
- */
24
- expirationTime?: number | string;
25
- }) => Promise<{
26
- /**
27
- * The signed JWT
28
- */
29
- jwt: string;
30
- /**
31
- * The expiration time of the JWT in seconds
32
- */
33
- expirationTime: number;
34
- }>;
35
- /**
36
- * Generates a trustmark signed JWT, which is used to verify the authenticity of a credential.
37
- * The public key used to sign the trustmark must the same used for the Wallet Instance Attestation.
38
- *
39
- * @param walletInstanceAttestation the Wallet Instance's attestation
40
- * @param wiaCryptoContext The Wallet Instance's crypto context associated with the walletInstanceAttestation parameter
41
- * @param credentialType The type of credential for which the trustmark is generated
42
- * @param docNumber (Optional) Document number contained in the credential, if applicable
43
- * @param expirationTime (Optional) Expiration time for the trustmark, default is 2 minutes.
44
- * If a number is provided, it is interpreted as a timestamp in seconds.
45
- * If a string is provided, it is interpreted as a time span and added to the current timestamp.
46
- * @throws {IoWalletError} If the WIA is expired
47
- * @throws {IoWalletError} If the public key associated to the WIA is not the same for the CryptoContext
48
- * @throws {JWSSignatureVerificationFailed} If the WIA signature is not valid
49
- * @returns A promise containing the signed JWT and its expiration time in seconds
50
- */
51
- export declare const getCredentialTrustmark: GetCredentialTrustmarkJwt;
52
- //# sourceMappingURL=get-credential-trustmark.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-credential-trustmark.d.ts","sourceRoot":"","sources":["../../../../src/credential/trustmark/get-credential-trustmark.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,EAAE;IAC/C;;OAEG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,gBAAgB,EAAE,aAAa,CAAC;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,KAAK,OAAO,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,yBA2DpC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { type GetCredentialTrustmarkJwt, getCredentialTrustmark } from "./get-credential-trustmark";
2
- export { getCredentialTrustmark };
3
- export type { GetCredentialTrustmarkJwt };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credential/trustmark/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAC9B,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/trust/chain.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAIjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAGxF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAiCF;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,iBAAiB,EAAE,8BAA8B,EACjD,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,WAAW,EAAE,CAAC,CA+CxB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,GAAE,WAAW,CAAC,OAAO,CAAS,qBA6BvC"}