@pagopa/io-react-native-wallet 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/lib/commonjs/api/index.js +3 -0
  2. package/lib/commonjs/api/index.js.map +1 -1
  3. package/lib/commonjs/client/generated/wallet-provider.js +42 -4
  4. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  5. package/lib/commonjs/client/index.js +5 -3
  6. package/lib/commonjs/client/index.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/README.md +2 -0
  8. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +2 -2
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +2 -1
  11. package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  13. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  15. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +15 -8
  17. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  18. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +0 -1
  19. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  20. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +2 -2
  21. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  22. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +2 -1
  23. package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  24. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  25. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  26. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  27. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  28. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  29. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +16 -5
  30. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  31. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +4 -2
  32. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  33. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +91 -30
  34. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  35. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +4 -4
  36. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  37. package/lib/commonjs/index.js +3 -1
  38. package/lib/commonjs/index.js.map +1 -1
  39. package/lib/commonjs/sd-jwt/index.js +3 -2
  40. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  41. package/lib/commonjs/sd-jwt/utils.js +2 -1
  42. package/lib/commonjs/sd-jwt/utils.js.map +1 -1
  43. package/lib/commonjs/trust/common/types.js +3 -3
  44. package/lib/commonjs/trust/common/types.js.map +1 -1
  45. package/lib/commonjs/trust/v1.0.0/types.js +6 -8
  46. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  47. package/lib/commonjs/trust/v1.3.3/types.js +1 -3
  48. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  49. package/lib/commonjs/utils/callbacks.js +2 -0
  50. package/lib/commonjs/utils/callbacks.js.map +1 -1
  51. package/lib/commonjs/utils/credentials.js +17 -2
  52. package/lib/commonjs/utils/credentials.js.map +1 -1
  53. package/lib/commonjs/utils/crypto.js +8 -0
  54. package/lib/commonjs/utils/crypto.js.map +1 -1
  55. package/lib/commonjs/utils/dpop.js +1 -1
  56. package/lib/commonjs/utils/dpop.js.map +1 -1
  57. package/lib/commonjs/utils/jwk.js +1 -1
  58. package/lib/commonjs/utils/jwk.js.map +1 -1
  59. package/lib/commonjs/utils/zod.js +1 -1
  60. package/lib/commonjs/utils/zod.js.map +1 -1
  61. package/lib/commonjs/wallet-instance-attestation/README.md +13 -10
  62. package/lib/commonjs/wallet-instance-attestation/api/types.js +9 -4
  63. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  64. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  65. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  66. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  67. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  68. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +4 -5
  69. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  70. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +5 -7
  71. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  72. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  73. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  74. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +26 -0
  75. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  76. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +13 -24
  77. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  78. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +35 -0
  79. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  80. package/lib/commonjs/wallet-unit-attestation/README.md +73 -0
  81. package/lib/commonjs/wallet-unit-attestation/api/index.js +6 -0
  82. package/lib/commonjs/wallet-unit-attestation/api/index.js.map +1 -0
  83. package/lib/commonjs/wallet-unit-attestation/api/types.js +45 -0
  84. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -0
  85. package/lib/commonjs/wallet-unit-attestation/index.js +20 -0
  86. package/lib/commonjs/wallet-unit-attestation/index.js.map +1 -0
  87. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +11 -0
  88. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  89. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +17 -0
  90. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  91. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +118 -0
  92. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  93. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +13 -0
  94. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  95. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +23 -0
  96. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  97. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js +20 -0
  98. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  99. package/lib/module/api/index.js +3 -0
  100. package/lib/module/api/index.js.map +1 -1
  101. package/lib/module/client/generated/wallet-provider.js +33 -1
  102. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  103. package/lib/module/client/index.js +4 -2
  104. package/lib/module/client/index.js.map +1 -1
  105. package/lib/module/credential/issuance/README.md +2 -0
  106. package/lib/module/credential/issuance/api/IssuerConfig.js +2 -2
  107. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  108. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +2 -1
  109. package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
  110. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  111. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  112. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  113. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  114. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +16 -9
  115. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  116. package/lib/module/credential/issuance/v1.3.3/mappers.js +0 -1
  117. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  118. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +1 -1
  119. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  120. package/lib/module/credential/presentation/common/utils/sd-jwt.js +2 -1
  121. package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
  122. package/lib/module/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  123. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  124. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  125. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  126. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  127. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +16 -5
  128. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  129. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +4 -2
  130. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  131. package/lib/module/credentials-catalogue/v1.3.3/types.js +91 -30
  132. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  133. package/lib/module/credentials-catalogue/v1.3.3/utils.js +4 -4
  134. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  135. package/lib/module/index.js +2 -1
  136. package/lib/module/index.js.map +1 -1
  137. package/lib/module/sd-jwt/index.js +3 -2
  138. package/lib/module/sd-jwt/index.js.map +1 -1
  139. package/lib/module/sd-jwt/utils.js +2 -1
  140. package/lib/module/sd-jwt/utils.js.map +1 -1
  141. package/lib/module/trust/common/types.js +3 -3
  142. package/lib/module/trust/common/types.js.map +1 -1
  143. package/lib/module/trust/v1.0.0/types.js +5 -7
  144. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  145. package/lib/module/trust/v1.3.3/types.js +1 -3
  146. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  147. package/lib/module/utils/callbacks.js +3 -0
  148. package/lib/module/utils/callbacks.js.map +1 -1
  149. package/lib/module/utils/credentials.js +15 -1
  150. package/lib/module/utils/credentials.js.map +1 -1
  151. package/lib/module/utils/crypto.js +8 -0
  152. package/lib/module/utils/crypto.js.map +1 -1
  153. package/lib/module/utils/dpop.js +1 -1
  154. package/lib/module/utils/dpop.js.map +1 -1
  155. package/lib/module/utils/jwk.js +1 -1
  156. package/lib/module/utils/jwk.js.map +1 -1
  157. package/lib/module/utils/zod.js +1 -1
  158. package/lib/module/utils/zod.js.map +1 -1
  159. package/lib/module/wallet-instance-attestation/README.md +13 -10
  160. package/lib/module/wallet-instance-attestation/api/types.js +7 -2
  161. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  162. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +3 -3
  163. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  164. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  165. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  166. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +3 -4
  167. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  168. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +5 -7
  169. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  170. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  171. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  172. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +19 -0
  173. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  174. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +10 -21
  175. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  176. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +29 -0
  177. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  178. package/lib/module/wallet-unit-attestation/README.md +73 -0
  179. package/lib/module/wallet-unit-attestation/api/index.js +2 -0
  180. package/lib/module/wallet-unit-attestation/api/index.js.map +1 -0
  181. package/lib/module/wallet-unit-attestation/api/types.js +36 -0
  182. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -0
  183. package/lib/module/wallet-unit-attestation/index.js +3 -0
  184. package/lib/module/wallet-unit-attestation/index.js.map +1 -0
  185. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +4 -0
  186. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  187. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +10 -0
  188. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  189. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +112 -0
  190. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  191. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +6 -0
  192. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  193. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +14 -0
  194. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  195. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js +15 -0
  196. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  197. package/lib/typescript/api/index.d.ts +2 -0
  198. package/lib/typescript/api/index.d.ts.map +1 -1
  199. package/lib/typescript/client/generated/wallet-provider.d.ts +122 -358
  200. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  201. package/lib/typescript/client/index.d.ts.map +1 -1
  202. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +2 -0
  203. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  204. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +21 -357
  205. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  206. package/lib/typescript/credential/issuance/api/types.d.ts +5 -41
  207. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  208. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  209. package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
  210. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +1 -1
  211. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  212. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  213. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +103 -106
  214. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  215. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts +4 -26
  216. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  217. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  218. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  219. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  220. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +594 -2095
  221. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  222. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts +1 -5
  223. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts.map +1 -1
  224. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +9 -154
  225. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  226. package/lib/typescript/credential/presentation/api/types.d.ts +30 -106
  227. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  228. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +29 -244
  229. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  230. package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
  231. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  232. package/lib/typescript/credential/presentation/common/utils.d.ts.map +1 -1
  233. package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts.map +1 -1
  234. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +56 -58
  235. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  236. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +13 -52
  237. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  238. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  239. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  240. package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts.map +1 -1
  241. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +133 -525
  242. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  243. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  244. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +39 -3672
  245. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  246. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +1 -1
  247. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +6 -6
  248. package/lib/typescript/credential/status/v1.0.0/types.d.ts +33 -659
  249. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  250. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +111 -525
  251. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  252. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +48 -20
  253. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  254. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +41 -737
  255. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  256. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +147 -62
  257. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  258. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +180 -941
  259. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  260. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  261. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  262. package/lib/typescript/index.d.ts +4 -3
  263. package/lib/typescript/index.d.ts.map +1 -1
  264. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  265. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  266. package/lib/typescript/sd-jwt/index.d.ts +16 -16
  267. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  268. package/lib/typescript/sd-jwt/types.d.ts +33 -492
  269. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  270. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  271. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +12 -201
  272. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  273. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  274. package/lib/typescript/trust/common/types.d.ts +32 -1198
  275. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  276. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  277. package/lib/typescript/trust/v1.0.0/build-chain.d.ts +1 -53
  278. package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +1 -1
  279. package/lib/typescript/trust/v1.0.0/entities.d.ts +324 -347
  280. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  281. package/lib/typescript/trust/v1.0.0/mappers.d.ts +31 -35
  282. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  283. package/lib/typescript/trust/v1.0.0/types.d.ts +678 -12454
  284. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  285. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +4 -56
  286. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  287. package/lib/typescript/trust/v1.3.3/entities.d.ts +43 -47
  288. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  289. package/lib/typescript/trust/v1.3.3/types.d.ts +655 -14339
  290. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  291. package/lib/typescript/utils/auth.d.ts +3 -25
  292. package/lib/typescript/utils/auth.d.ts.map +1 -1
  293. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  294. package/lib/typescript/utils/config.d.ts +3 -3
  295. package/lib/typescript/utils/config.d.ts.map +1 -1
  296. package/lib/typescript/utils/credentials.d.ts +5 -0
  297. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  298. package/lib/typescript/utils/crypto.d.ts +18 -0
  299. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  300. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  301. package/lib/typescript/utils/dpop.d.ts +5 -12
  302. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  303. package/lib/typescript/utils/errors.d.ts.map +1 -1
  304. package/lib/typescript/utils/jwk.d.ts +15 -175
  305. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  306. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  307. package/lib/typescript/utils/misc.d.ts +2 -2
  308. package/lib/typescript/utils/misc.d.ts.map +1 -1
  309. package/lib/typescript/utils/object.d.ts.map +1 -1
  310. package/lib/typescript/utils/par.d.ts +7 -45
  311. package/lib/typescript/utils/par.d.ts.map +1 -1
  312. package/lib/typescript/utils/parser.d.ts.map +1 -1
  313. package/lib/typescript/utils/pop.d.ts +1 -9
  314. package/lib/typescript/utils/pop.d.ts.map +1 -1
  315. package/lib/typescript/utils/string.d.ts.map +1 -1
  316. package/lib/typescript/utils/zod.d.ts +4 -4
  317. package/lib/typescript/utils/zod.d.ts.map +1 -1
  318. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +9 -9
  319. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  320. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +19 -174
  321. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  322. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +14 -273
  323. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  324. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  325. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +5 -3
  326. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  327. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +39 -629
  328. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  329. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  330. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  331. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +90 -0
  332. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -0
  333. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +29 -891
  334. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  335. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts +15 -0
  336. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -0
  337. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +39 -0
  338. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -0
  339. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +67 -0
  340. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -0
  341. package/lib/typescript/wallet-unit-attestation/index.d.ts +4 -0
  342. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +1 -0
  343. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +3 -0
  344. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +1 -0
  345. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +3 -0
  346. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -0
  347. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +3 -0
  348. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -0
  349. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +107 -0
  350. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -0
  351. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +69 -0
  352. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -0
  353. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +7 -0
  354. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -0
  355. package/package.json +8 -8
  356. package/src/api/index.ts +4 -0
  357. package/src/client/generated/wallet-provider.ts +44 -0
  358. package/src/client/index.ts +5 -1
  359. package/src/credential/issuance/README.md +2 -0
  360. package/src/credential/issuance/api/05-obtain-credential.ts +2 -0
  361. package/src/credential/issuance/api/IssuerConfig.ts +4 -2
  362. package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +2 -1
  363. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -3
  364. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +2 -0
  365. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +25 -11
  366. package/src/credential/issuance/v1.3.3/mappers.ts +10 -9
  367. package/src/credential/presentation/api/RelyingPartyConfig.ts +1 -1
  368. package/src/credential/presentation/common/utils/sd-jwt.ts +4 -1
  369. package/src/credential/presentation/v1.0.0/04-verify-request-object.ts +2 -2
  370. package/src/credential/presentation/v1.3.3/04-verify-request-object.ts +4 -2
  371. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +42 -10
  372. package/src/credentials-catalogue/v1.0.0/mappers.ts +27 -12
  373. package/src/credentials-catalogue/v1.3.3/mappers.ts +10 -4
  374. package/src/credentials-catalogue/v1.3.3/types.ts +102 -29
  375. package/src/credentials-catalogue/v1.3.3/utils.ts +9 -4
  376. package/src/index.ts +11 -2
  377. package/src/sd-jwt/index.ts +8 -3
  378. package/src/sd-jwt/utils.ts +5 -1
  379. package/src/trust/common/types.ts +3 -3
  380. package/src/trust/v1.0.0/types.ts +10 -10
  381. package/src/trust/v1.3.3/types.ts +4 -7
  382. package/src/utils/callbacks.ts +7 -1
  383. package/src/utils/credentials.ts +17 -1
  384. package/src/utils/crypto.ts +18 -0
  385. package/src/utils/dpop.ts +1 -1
  386. package/src/utils/jwk.ts +1 -1
  387. package/src/utils/mappers.ts +2 -2
  388. package/src/utils/zod.ts +5 -1
  389. package/src/wallet-instance-attestation/README.md +13 -10
  390. package/src/wallet-instance-attestation/api/index.ts +20 -13
  391. package/src/wallet-instance-attestation/api/types.ts +16 -4
  392. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -3
  393. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +7 -9
  394. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +7 -5
  395. package/src/wallet-instance-attestation/v1.3.3/index.ts +5 -7
  396. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +107 -3
  397. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +18 -0
  398. package/src/wallet-instance-attestation/v1.3.3/types.ts +16 -30
  399. package/src/wallet-instance-attestation/v1.3.3/utils.ts +35 -0
  400. package/src/wallet-unit-attestation/README.md +73 -0
  401. package/src/wallet-unit-attestation/api/index.ts +51 -0
  402. package/src/wallet-unit-attestation/api/types.ts +49 -0
  403. package/src/wallet-unit-attestation/index.ts +3 -0
  404. package/src/wallet-unit-attestation/v1.0.0/index.ts +5 -0
  405. package/src/wallet-unit-attestation/v1.3.3/index.ts +11 -0
  406. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +147 -0
  407. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +10 -0
  408. package/src/wallet-unit-attestation/v1.3.3/types.ts +21 -0
  409. package/src/wallet-unit-attestation/v1.3.3/utils.ts +14 -0
@@ -12,29 +12,18 @@ export declare const LEGACY_SD_JWT = "vc+sd-jwt";
12
12
  export type SdJwt4VCBase = z.infer<typeof SdJwt4VCBase>;
13
13
  export declare const SdJwt4VCBase: z.ZodObject<{
14
14
  header: z.ZodObject<{
15
- typ: z.ZodEnum<["dc+sd-jwt", "vc+sd-jwt"]>;
15
+ typ: z.ZodEnum<{
16
+ "dc+sd-jwt": "dc+sd-jwt";
17
+ "vc+sd-jwt": "vc+sd-jwt";
18
+ }>;
16
19
  alg: z.ZodString;
17
20
  kid: z.ZodString;
18
- trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
- vctm: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
- }, "strip", z.ZodTypeAny, {
22
- alg: string;
23
- kid: string;
24
- typ: "dc+sd-jwt" | "vc+sd-jwt";
25
- x5c?: string[] | undefined;
26
- trust_chain?: string[] | undefined;
27
- vctm?: string[] | undefined;
28
- }, {
29
- alg: string;
30
- kid: string;
31
- typ: "dc+sd-jwt" | "vc+sd-jwt";
32
- x5c?: string[] | undefined;
33
- trust_chain?: string[] | undefined;
34
- vctm?: string[] | undefined;
35
- }>;
21
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ vctm: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ }, z.core.$strip>;
36
25
  payload: z.ZodObject<{
37
- _sd: z.ZodArray<z.ZodString, "many">;
26
+ _sd: z.ZodArray<z.ZodString>;
38
27
  _sd_alg: z.ZodLiteral<"sha-256">;
39
28
  iss: z.ZodString;
40
29
  sub: z.ZodString;
@@ -50,9 +39,12 @@ export declare const SdJwt4VCBase: z.ZodObject<{
50
39
  e: z.ZodOptional<z.ZodString>;
51
40
  ext: z.ZodOptional<z.ZodBoolean>;
52
41
  k: z.ZodOptional<z.ZodString>;
53
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
43
  kid: z.ZodOptional<z.ZodString>;
55
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
44
+ kty: z.ZodEnum<{
45
+ RSA: "RSA";
46
+ EC: "EC";
47
+ }>;
56
48
  n: z.ZodOptional<z.ZodString>;
57
49
  p: z.ZodOptional<z.ZodString>;
58
50
  q: z.ZodOptional<z.ZodString>;
@@ -60,351 +52,26 @@ export declare const SdJwt4VCBase: z.ZodObject<{
60
52
  use: z.ZodOptional<z.ZodString>;
61
53
  x: z.ZodOptional<z.ZodString>;
62
54
  y: z.ZodOptional<z.ZodString>;
63
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
56
  x5t: z.ZodOptional<z.ZodString>;
65
57
  "x5t#S256": z.ZodOptional<z.ZodString>;
66
58
  x5u: z.ZodOptional<z.ZodString>;
67
- }, "strip", z.ZodTypeAny, {
68
- kty: "RSA" | "EC";
69
- alg?: string | undefined;
70
- crv?: string | undefined;
71
- d?: string | undefined;
72
- dp?: string | undefined;
73
- dq?: string | undefined;
74
- e?: string | undefined;
75
- ext?: boolean | undefined;
76
- k?: string | undefined;
77
- key_ops?: string[] | undefined;
78
- kid?: string | undefined;
79
- n?: string | undefined;
80
- p?: string | undefined;
81
- q?: string | undefined;
82
- qi?: string | undefined;
83
- use?: string | undefined;
84
- x?: string | undefined;
85
- y?: string | undefined;
86
- x5c?: string[] | undefined;
87
- x5t?: string | undefined;
88
- "x5t#S256"?: string | undefined;
89
- x5u?: string | undefined;
90
- }, {
91
- kty: "RSA" | "EC";
92
- alg?: string | undefined;
93
- crv?: string | undefined;
94
- d?: string | undefined;
95
- dp?: string | undefined;
96
- dq?: string | undefined;
97
- e?: string | undefined;
98
- ext?: boolean | undefined;
99
- k?: string | undefined;
100
- key_ops?: string[] | undefined;
101
- kid?: string | undefined;
102
- n?: string | undefined;
103
- p?: string | undefined;
104
- q?: string | undefined;
105
- qi?: string | undefined;
106
- use?: string | undefined;
107
- x?: string | undefined;
108
- y?: string | undefined;
109
- x5c?: string[] | undefined;
110
- x5t?: string | undefined;
111
- "x5t#S256"?: string | undefined;
112
- x5u?: string | undefined;
113
- }>;
114
- }, "strip", z.ZodTypeAny, {
115
- jwk: {
116
- kty: "RSA" | "EC";
117
- alg?: string | undefined;
118
- crv?: string | undefined;
119
- d?: string | undefined;
120
- dp?: string | undefined;
121
- dq?: string | undefined;
122
- e?: string | undefined;
123
- ext?: boolean | undefined;
124
- k?: string | undefined;
125
- key_ops?: string[] | undefined;
126
- kid?: string | undefined;
127
- n?: string | undefined;
128
- p?: string | undefined;
129
- q?: string | undefined;
130
- qi?: string | undefined;
131
- use?: string | undefined;
132
- x?: string | undefined;
133
- y?: string | undefined;
134
- x5c?: string[] | undefined;
135
- x5t?: string | undefined;
136
- "x5t#S256"?: string | undefined;
137
- x5u?: string | undefined;
138
- };
139
- }, {
140
- jwk: {
141
- kty: "RSA" | "EC";
142
- alg?: string | undefined;
143
- crv?: string | undefined;
144
- d?: string | undefined;
145
- dp?: string | undefined;
146
- dq?: string | undefined;
147
- e?: string | undefined;
148
- ext?: boolean | undefined;
149
- k?: string | undefined;
150
- key_ops?: string[] | undefined;
151
- kid?: string | undefined;
152
- n?: string | undefined;
153
- p?: string | undefined;
154
- q?: string | undefined;
155
- qi?: string | undefined;
156
- use?: string | undefined;
157
- x?: string | undefined;
158
- y?: string | undefined;
159
- x5c?: string[] | undefined;
160
- x5t?: string | undefined;
161
- "x5t#S256"?: string | undefined;
162
- x5u?: string | undefined;
163
- };
164
- }>;
165
- status: z.ZodUnion<[z.ZodObject<{
59
+ }, z.core.$strip>;
60
+ }, z.core.$strip>;
61
+ status: z.ZodUnion<readonly [z.ZodObject<{
166
62
  status_list: z.ZodObject<{
167
63
  idx: z.ZodString;
168
64
  uri: z.ZodString;
169
- }, "strip", z.ZodTypeAny, {
170
- idx: string;
171
- uri: string;
172
- }, {
173
- idx: string;
174
- uri: string;
175
- }>;
176
- }, "strip", z.ZodTypeAny, {
177
- status_list: {
178
- idx: string;
179
- uri: string;
180
- };
181
- }, {
182
- status_list: {
183
- idx: string;
184
- uri: string;
185
- };
186
- }>, z.ZodObject<{
187
- /** @deprecated Use `status.status_list` */
65
+ }, z.core.$strip>;
66
+ }, z.core.$strip>, z.ZodObject<{
188
67
  status_assertion: z.ZodObject<{
189
68
  credential_hash_alg: z.ZodLiteral<"sha-256">;
190
- }, "strip", z.ZodTypeAny, {
191
- credential_hash_alg: "sha-256";
192
- }, {
193
- credential_hash_alg: "sha-256";
194
- }>;
195
- }, "strip", z.ZodTypeAny, {
196
- status_assertion: {
197
- credential_hash_alg: "sha-256";
198
- };
199
- }, {
200
- status_assertion: {
201
- credential_hash_alg: "sha-256";
202
- };
203
- }>]>;
69
+ }, z.core.$strip>;
70
+ }, z.core.$strip>]>;
204
71
  vct: z.ZodString;
205
72
  "vct#integrity": z.ZodOptional<z.ZodString>;
206
- }, "strip", z.ZodTypeAny, {
207
- status: {
208
- status_list: {
209
- idx: string;
210
- uri: string;
211
- };
212
- } | {
213
- status_assertion: {
214
- credential_hash_alg: "sha-256";
215
- };
216
- };
217
- iss: string;
218
- sub: string;
219
- exp: number;
220
- vct: string;
221
- _sd: string[];
222
- _sd_alg: "sha-256";
223
- cnf: {
224
- jwk: {
225
- kty: "RSA" | "EC";
226
- alg?: string | undefined;
227
- crv?: string | undefined;
228
- d?: string | undefined;
229
- dp?: string | undefined;
230
- dq?: string | undefined;
231
- e?: string | undefined;
232
- ext?: boolean | undefined;
233
- k?: string | undefined;
234
- key_ops?: string[] | undefined;
235
- kid?: string | undefined;
236
- n?: string | undefined;
237
- p?: string | undefined;
238
- q?: string | undefined;
239
- qi?: string | undefined;
240
- use?: string | undefined;
241
- x?: string | undefined;
242
- y?: string | undefined;
243
- x5c?: string[] | undefined;
244
- x5t?: string | undefined;
245
- "x5t#S256"?: string | undefined;
246
- x5u?: string | undefined;
247
- };
248
- };
249
- iat?: number | undefined;
250
- "vct#integrity"?: string | undefined;
251
- }, {
252
- status: {
253
- status_list: {
254
- idx: string;
255
- uri: string;
256
- };
257
- } | {
258
- status_assertion: {
259
- credential_hash_alg: "sha-256";
260
- };
261
- };
262
- iss: string;
263
- sub: string;
264
- exp: number;
265
- vct: string;
266
- _sd: string[];
267
- _sd_alg: "sha-256";
268
- cnf: {
269
- jwk: {
270
- kty: "RSA" | "EC";
271
- alg?: string | undefined;
272
- crv?: string | undefined;
273
- d?: string | undefined;
274
- dp?: string | undefined;
275
- dq?: string | undefined;
276
- e?: string | undefined;
277
- ext?: boolean | undefined;
278
- k?: string | undefined;
279
- key_ops?: string[] | undefined;
280
- kid?: string | undefined;
281
- n?: string | undefined;
282
- p?: string | undefined;
283
- q?: string | undefined;
284
- qi?: string | undefined;
285
- use?: string | undefined;
286
- x?: string | undefined;
287
- y?: string | undefined;
288
- x5c?: string[] | undefined;
289
- x5t?: string | undefined;
290
- "x5t#S256"?: string | undefined;
291
- x5u?: string | undefined;
292
- };
293
- };
294
- iat?: number | undefined;
295
- "vct#integrity"?: string | undefined;
296
- }>;
297
- }, "strip", z.ZodTypeAny, {
298
- header: {
299
- alg: string;
300
- kid: string;
301
- typ: "dc+sd-jwt" | "vc+sd-jwt";
302
- x5c?: string[] | undefined;
303
- trust_chain?: string[] | undefined;
304
- vctm?: string[] | undefined;
305
- };
306
- payload: {
307
- status: {
308
- status_list: {
309
- idx: string;
310
- uri: string;
311
- };
312
- } | {
313
- status_assertion: {
314
- credential_hash_alg: "sha-256";
315
- };
316
- };
317
- iss: string;
318
- sub: string;
319
- exp: number;
320
- vct: string;
321
- _sd: string[];
322
- _sd_alg: "sha-256";
323
- cnf: {
324
- jwk: {
325
- kty: "RSA" | "EC";
326
- alg?: string | undefined;
327
- crv?: string | undefined;
328
- d?: string | undefined;
329
- dp?: string | undefined;
330
- dq?: string | undefined;
331
- e?: string | undefined;
332
- ext?: boolean | undefined;
333
- k?: string | undefined;
334
- key_ops?: string[] | undefined;
335
- kid?: string | undefined;
336
- n?: string | undefined;
337
- p?: string | undefined;
338
- q?: string | undefined;
339
- qi?: string | undefined;
340
- use?: string | undefined;
341
- x?: string | undefined;
342
- y?: string | undefined;
343
- x5c?: string[] | undefined;
344
- x5t?: string | undefined;
345
- "x5t#S256"?: string | undefined;
346
- x5u?: string | undefined;
347
- };
348
- };
349
- iat?: number | undefined;
350
- "vct#integrity"?: string | undefined;
351
- };
352
- }, {
353
- header: {
354
- alg: string;
355
- kid: string;
356
- typ: "dc+sd-jwt" | "vc+sd-jwt";
357
- x5c?: string[] | undefined;
358
- trust_chain?: string[] | undefined;
359
- vctm?: string[] | undefined;
360
- };
361
- payload: {
362
- status: {
363
- status_list: {
364
- idx: string;
365
- uri: string;
366
- };
367
- } | {
368
- status_assertion: {
369
- credential_hash_alg: "sha-256";
370
- };
371
- };
372
- iss: string;
373
- sub: string;
374
- exp: number;
375
- vct: string;
376
- _sd: string[];
377
- _sd_alg: "sha-256";
378
- cnf: {
379
- jwk: {
380
- kty: "RSA" | "EC";
381
- alg?: string | undefined;
382
- crv?: string | undefined;
383
- d?: string | undefined;
384
- dp?: string | undefined;
385
- dq?: string | undefined;
386
- e?: string | undefined;
387
- ext?: boolean | undefined;
388
- k?: string | undefined;
389
- key_ops?: string[] | undefined;
390
- kid?: string | undefined;
391
- n?: string | undefined;
392
- p?: string | undefined;
393
- q?: string | undefined;
394
- qi?: string | undefined;
395
- use?: string | undefined;
396
- x?: string | undefined;
397
- y?: string | undefined;
398
- x5c?: string[] | undefined;
399
- x5t?: string | undefined;
400
- "x5t#S256"?: string | undefined;
401
- x5u?: string | undefined;
402
- };
403
- };
404
- iat?: number | undefined;
405
- "vct#integrity"?: string | undefined;
406
- };
407
- }>;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>;
408
75
  /**
409
76
  * Object containing User authentication and User data verification information.
410
77
  * Useful to extract the assurance level to determine L2/L3 authentication.
@@ -415,87 +82,17 @@ export declare const Verification: z.ZodObject<{
415
82
  assurance_level: z.ZodString;
416
83
  evidence: z.ZodArray<z.ZodObject<{
417
84
  type: z.ZodLiteral<"vouch">;
418
- time: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
85
+ time: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
419
86
  attestation: z.ZodObject<{
420
87
  type: z.ZodLiteral<"digital_attestation">;
421
88
  reference_number: z.ZodString;
422
89
  date_of_issuance: z.ZodString;
423
90
  voucher: z.ZodObject<{
424
91
  organization: z.ZodString;
425
- }, "strip", z.ZodTypeAny, {
426
- organization: string;
427
- }, {
428
- organization: string;
429
- }>;
430
- }, "strip", z.ZodTypeAny, {
431
- type: "digital_attestation";
432
- reference_number: string;
433
- date_of_issuance: string;
434
- voucher: {
435
- organization: string;
436
- };
437
- }, {
438
- type: "digital_attestation";
439
- reference_number: string;
440
- date_of_issuance: string;
441
- voucher: {
442
- organization: string;
443
- };
444
- }>;
445
- }, "strip", z.ZodTypeAny, {
446
- type: "vouch";
447
- time: string | number;
448
- attestation: {
449
- type: "digital_attestation";
450
- reference_number: string;
451
- date_of_issuance: string;
452
- voucher: {
453
- organization: string;
454
- };
455
- };
456
- }, {
457
- type: "vouch";
458
- time: string | number;
459
- attestation: {
460
- type: "digital_attestation";
461
- reference_number: string;
462
- date_of_issuance: string;
463
- voucher: {
464
- organization: string;
465
- };
466
- };
467
- }>, "many">;
468
- }, "strip", z.ZodTypeAny, {
469
- trust_framework: string;
470
- assurance_level: string;
471
- evidence: {
472
- type: "vouch";
473
- time: string | number;
474
- attestation: {
475
- type: "digital_attestation";
476
- reference_number: string;
477
- date_of_issuance: string;
478
- voucher: {
479
- organization: string;
480
- };
481
- };
482
- }[];
483
- }, {
484
- trust_framework: string;
485
- assurance_level: string;
486
- evidence: {
487
- type: "vouch";
488
- time: string | number;
489
- attestation: {
490
- type: "digital_attestation";
491
- reference_number: string;
492
- date_of_issuance: string;
493
- voucher: {
494
- organization: string;
495
- };
496
- };
497
- }[];
498
- }>;
92
+ }, z.core.$strip>;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>;
499
96
  /**
500
97
  * Metadata for a digital credential. This information is retrieved from the URL defined in the `vct` claim.
501
98
  *
@@ -510,66 +107,10 @@ export declare const TypeMetadata: z.ZodObject<{
510
107
  authentic_source: z.ZodObject<{
511
108
  organization_name: z.ZodString;
512
109
  organization_code: z.ZodString;
513
- contacts: z.ZodArray<z.ZodString, "many">;
110
+ contacts: z.ZodArray<z.ZodString>;
514
111
  homepage_uri: z.ZodString;
515
112
  logo_uri: z.ZodString;
516
- }, "strip", z.ZodTypeAny, {
517
- organization_name: string;
518
- homepage_uri: string;
519
- logo_uri: string;
520
- contacts: string[];
521
- organization_code: string;
522
- }, {
523
- organization_name: string;
524
- homepage_uri: string;
525
- logo_uri: string;
526
- contacts: string[];
527
- organization_code: string;
528
- }>;
529
- }, "strip", z.ZodTypeAny, {
530
- authentic_source: {
531
- organization_name: string;
532
- homepage_uri: string;
533
- logo_uri: string;
534
- contacts: string[];
535
- organization_code: string;
536
- };
537
- trust_framework: string;
538
- }, {
539
- authentic_source: {
540
- organization_name: string;
541
- homepage_uri: string;
542
- logo_uri: string;
543
- contacts: string[];
544
- organization_code: string;
545
- };
546
- trust_framework: string;
547
- }>;
548
- }, "strip", z.ZodTypeAny, {
549
- name: string;
550
- description: string;
551
- data_source: {
552
- authentic_source: {
553
- organization_name: string;
554
- homepage_uri: string;
555
- logo_uri: string;
556
- contacts: string[];
557
- organization_code: string;
558
- };
559
- trust_framework: string;
560
- };
561
- }, {
562
- name: string;
563
- description: string;
564
- data_source: {
565
- authentic_source: {
566
- organization_name: string;
567
- homepage_uri: string;
568
- logo_uri: string;
569
- contacts: string[];
570
- organization_code: string;
571
- };
572
- trust_framework: string;
573
- };
574
- }>;
113
+ }, z.core.$strip>;
114
+ }, z.core.$strip>;
115
+ }, z.core.$strip>;
575
116
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,aAAa,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AAWzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBjB,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjD,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAavB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,aAAa,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AAWzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BvB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;iBAgBvB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;iBAavB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOrD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QACvB,MAAM,gBACG,MAAM,YACX;IACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACA,QAAQ,YAAY,CA8BtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,oBACT,MAAM,KACtB,YAAY,GAAG,SAYjB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQrD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,MAAM,EACX,cAAc,MAAM,EACpB,UAAS;IACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC5B,KACL,OAAO,CAAC,YAAY,CA8BtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,iBAAiB,MAAM,KACtB,YAAY,GAAG,SAejB,CAAC"}