@pagopa/io-react-native-wallet 3.0.1 → 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 (382) hide show
  1. package/lib/commonjs/api/index.js +3 -0
  2. package/lib/commonjs/api/index.js.map +1 -1
  3. package/lib/commonjs/client/generated/wallet-provider.js +42 -4
  4. package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
  5. package/lib/commonjs/client/index.js +5 -3
  6. package/lib/commonjs/client/index.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/README.md +2 -0
  8. package/lib/commonjs/credential/issuance/api/IssuerConfig.js +2 -2
  9. package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
  10. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  11. package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  12. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  13. package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  14. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +15 -8
  15. package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  16. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +0 -1
  17. package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
  18. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +2 -2
  19. package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  20. package/lib/commonjs/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  21. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  22. package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  23. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  24. package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  25. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +16 -5
  26. package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  27. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +4 -2
  28. package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  29. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +91 -30
  30. package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
  31. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +4 -4
  32. package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  33. package/lib/commonjs/index.js +3 -1
  34. package/lib/commonjs/index.js.map +1 -1
  35. package/lib/commonjs/trust/common/types.js +3 -3
  36. package/lib/commonjs/trust/common/types.js.map +1 -1
  37. package/lib/commonjs/trust/v1.0.0/types.js +6 -8
  38. package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
  39. package/lib/commonjs/trust/v1.3.3/types.js +1 -3
  40. package/lib/commonjs/trust/v1.3.3/types.js.map +1 -1
  41. package/lib/commonjs/utils/callbacks.js +2 -0
  42. package/lib/commonjs/utils/callbacks.js.map +1 -1
  43. package/lib/commonjs/utils/crypto.js +8 -0
  44. package/lib/commonjs/utils/crypto.js.map +1 -1
  45. package/lib/commonjs/utils/dpop.js +1 -1
  46. package/lib/commonjs/utils/dpop.js.map +1 -1
  47. package/lib/commonjs/utils/jwk.js +1 -1
  48. package/lib/commonjs/utils/jwk.js.map +1 -1
  49. package/lib/commonjs/utils/zod.js +1 -1
  50. package/lib/commonjs/utils/zod.js.map +1 -1
  51. package/lib/commonjs/wallet-instance-attestation/README.md +13 -10
  52. package/lib/commonjs/wallet-instance-attestation/api/types.js +9 -4
  53. package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
  54. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
  55. package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  56. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  57. package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  58. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +4 -5
  59. package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  60. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +5 -7
  61. package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  62. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  63. package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  64. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js +26 -0
  65. package/lib/commonjs/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  66. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +13 -24
  67. package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  68. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js +35 -0
  69. package/lib/commonjs/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  70. package/lib/commonjs/wallet-unit-attestation/README.md +73 -0
  71. package/lib/commonjs/wallet-unit-attestation/api/index.js +6 -0
  72. package/lib/commonjs/wallet-unit-attestation/api/index.js.map +1 -0
  73. package/lib/commonjs/wallet-unit-attestation/api/types.js +45 -0
  74. package/lib/commonjs/wallet-unit-attestation/api/types.js.map +1 -0
  75. package/lib/commonjs/wallet-unit-attestation/index.js +20 -0
  76. package/lib/commonjs/wallet-unit-attestation/index.js.map +1 -0
  77. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +11 -0
  78. package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  79. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js +17 -0
  80. package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  81. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js +118 -0
  82. package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  83. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +13 -0
  84. package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  85. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js +23 -0
  86. package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  87. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js +20 -0
  88. package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  89. package/lib/module/api/index.js +3 -0
  90. package/lib/module/api/index.js.map +1 -1
  91. package/lib/module/client/generated/wallet-provider.js +33 -1
  92. package/lib/module/client/generated/wallet-provider.js.map +1 -1
  93. package/lib/module/client/index.js +4 -2
  94. package/lib/module/client/index.js.map +1 -1
  95. package/lib/module/credential/issuance/README.md +2 -0
  96. package/lib/module/credential/issuance/api/IssuerConfig.js +2 -2
  97. package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
  98. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +2 -0
  99. package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -1
  100. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +2 -0
  101. package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
  102. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +16 -9
  103. package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
  104. package/lib/module/credential/issuance/v1.3.3/mappers.js +0 -1
  105. package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
  106. package/lib/module/credential/presentation/api/RelyingPartyConfig.js +1 -1
  107. package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
  108. package/lib/module/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -1
  109. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js +4 -2
  110. package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -1
  111. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +37 -11
  112. package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
  113. package/lib/module/credentials-catalogue/v1.0.0/mappers.js +16 -5
  114. package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
  115. package/lib/module/credentials-catalogue/v1.3.3/mappers.js +4 -2
  116. package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
  117. package/lib/module/credentials-catalogue/v1.3.3/types.js +91 -30
  118. package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
  119. package/lib/module/credentials-catalogue/v1.3.3/utils.js +4 -4
  120. package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -1
  121. package/lib/module/index.js +2 -1
  122. package/lib/module/index.js.map +1 -1
  123. package/lib/module/trust/common/types.js +3 -3
  124. package/lib/module/trust/common/types.js.map +1 -1
  125. package/lib/module/trust/v1.0.0/types.js +5 -7
  126. package/lib/module/trust/v1.0.0/types.js.map +1 -1
  127. package/lib/module/trust/v1.3.3/types.js +1 -3
  128. package/lib/module/trust/v1.3.3/types.js.map +1 -1
  129. package/lib/module/utils/callbacks.js +3 -0
  130. package/lib/module/utils/callbacks.js.map +1 -1
  131. package/lib/module/utils/crypto.js +8 -0
  132. package/lib/module/utils/crypto.js.map +1 -1
  133. package/lib/module/utils/dpop.js +1 -1
  134. package/lib/module/utils/dpop.js.map +1 -1
  135. package/lib/module/utils/jwk.js +1 -1
  136. package/lib/module/utils/jwk.js.map +1 -1
  137. package/lib/module/utils/zod.js +1 -1
  138. package/lib/module/utils/zod.js.map +1 -1
  139. package/lib/module/wallet-instance-attestation/README.md +13 -10
  140. package/lib/module/wallet-instance-attestation/api/types.js +7 -2
  141. package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
  142. package/lib/module/wallet-instance-attestation/v1.0.0/index.js +3 -3
  143. package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
  144. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +4 -5
  145. package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
  146. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +3 -4
  147. package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
  148. package/lib/module/wallet-instance-attestation/v1.3.3/index.js +5 -7
  149. package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -1
  150. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +73 -3
  151. package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -1
  152. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js +19 -0
  153. package/lib/module/wallet-instance-attestation/v1.3.3/mappers.js.map +1 -0
  154. package/lib/module/wallet-instance-attestation/v1.3.3/types.js +10 -21
  155. package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -1
  156. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js +29 -0
  157. package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +1 -0
  158. package/lib/module/wallet-unit-attestation/README.md +73 -0
  159. package/lib/module/wallet-unit-attestation/api/index.js +2 -0
  160. package/lib/module/wallet-unit-attestation/api/index.js.map +1 -0
  161. package/lib/module/wallet-unit-attestation/api/types.js +36 -0
  162. package/lib/module/wallet-unit-attestation/api/types.js.map +1 -0
  163. package/lib/module/wallet-unit-attestation/index.js +3 -0
  164. package/lib/module/wallet-unit-attestation/index.js.map +1 -0
  165. package/lib/module/wallet-unit-attestation/v1.0.0/index.js +4 -0
  166. package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +1 -0
  167. package/lib/module/wallet-unit-attestation/v1.3.3/index.js +10 -0
  168. package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +1 -0
  169. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js +112 -0
  170. package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +1 -0
  171. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +6 -0
  172. package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +1 -0
  173. package/lib/module/wallet-unit-attestation/v1.3.3/types.js +14 -0
  174. package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +1 -0
  175. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js +15 -0
  176. package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +1 -0
  177. package/lib/typescript/api/index.d.ts +2 -0
  178. package/lib/typescript/api/index.d.ts.map +1 -1
  179. package/lib/typescript/client/generated/wallet-provider.d.ts +122 -358
  180. package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
  181. package/lib/typescript/client/index.d.ts.map +1 -1
  182. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +2 -0
  183. package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
  184. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +21 -357
  185. package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
  186. package/lib/typescript/credential/issuance/api/types.d.ts +5 -41
  187. package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
  188. package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
  189. package/lib/typescript/credential/issuance/common/authorization.d.ts.map +1 -1
  190. package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
  191. package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
  192. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +103 -106
  193. package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
  194. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts +4 -26
  195. package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
  196. package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -1
  197. package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
  198. package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
  199. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +594 -2095
  200. package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
  201. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts +1 -5
  202. package/lib/typescript/credential/issuance/v1.3.3/types.d.ts.map +1 -1
  203. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +9 -154
  204. package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
  205. package/lib/typescript/credential/presentation/api/types.d.ts +30 -106
  206. package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
  207. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +29 -244
  208. package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
  209. package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
  210. package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
  211. package/lib/typescript/credential/presentation/common/utils.d.ts.map +1 -1
  212. package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts.map +1 -1
  213. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +56 -58
  214. package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
  215. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +13 -52
  216. package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
  217. package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
  218. package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
  219. package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts.map +1 -1
  220. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +133 -525
  221. package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
  222. package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -1
  223. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +39 -3672
  224. package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
  225. package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +1 -1
  226. package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +6 -6
  227. package/lib/typescript/credential/status/v1.0.0/types.d.ts +33 -659
  228. package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
  229. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +111 -525
  230. package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
  231. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +48 -20
  232. package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
  233. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +41 -737
  234. package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
  235. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +147 -62
  236. package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
  237. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +180 -941
  238. package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
  239. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +1 -1
  240. package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -1
  241. package/lib/typescript/index.d.ts +4 -3
  242. package/lib/typescript/index.d.ts.map +1 -1
  243. package/lib/typescript/mdoc/index.d.ts.map +1 -1
  244. package/lib/typescript/mdoc/utils.d.ts.map +1 -1
  245. package/lib/typescript/sd-jwt/index.d.ts +15 -15
  246. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  247. package/lib/typescript/sd-jwt/types.d.ts +33 -492
  248. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  249. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
  250. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +12 -201
  251. package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
  252. package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
  253. package/lib/typescript/trust/common/types.d.ts +32 -1198
  254. package/lib/typescript/trust/common/types.d.ts.map +1 -1
  255. package/lib/typescript/trust/common/utils.d.ts.map +1 -1
  256. package/lib/typescript/trust/v1.0.0/build-chain.d.ts +1 -53
  257. package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +1 -1
  258. package/lib/typescript/trust/v1.0.0/entities.d.ts +324 -347
  259. package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
  260. package/lib/typescript/trust/v1.0.0/mappers.d.ts +31 -35
  261. package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
  262. package/lib/typescript/trust/v1.0.0/types.d.ts +678 -12454
  263. package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
  264. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +4 -56
  265. package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
  266. package/lib/typescript/trust/v1.3.3/entities.d.ts +43 -47
  267. package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -1
  268. package/lib/typescript/trust/v1.3.3/types.d.ts +655 -14339
  269. package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
  270. package/lib/typescript/utils/auth.d.ts +3 -25
  271. package/lib/typescript/utils/auth.d.ts.map +1 -1
  272. package/lib/typescript/utils/callbacks.d.ts.map +1 -1
  273. package/lib/typescript/utils/config.d.ts +3 -3
  274. package/lib/typescript/utils/config.d.ts.map +1 -1
  275. package/lib/typescript/utils/credentials.d.ts.map +1 -1
  276. package/lib/typescript/utils/crypto.d.ts +18 -0
  277. package/lib/typescript/utils/crypto.d.ts.map +1 -1
  278. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  279. package/lib/typescript/utils/dpop.d.ts +5 -12
  280. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  281. package/lib/typescript/utils/errors.d.ts.map +1 -1
  282. package/lib/typescript/utils/jwk.d.ts +15 -175
  283. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  284. package/lib/typescript/utils/mappers.d.ts.map +1 -1
  285. package/lib/typescript/utils/misc.d.ts +2 -2
  286. package/lib/typescript/utils/misc.d.ts.map +1 -1
  287. package/lib/typescript/utils/object.d.ts.map +1 -1
  288. package/lib/typescript/utils/par.d.ts +7 -45
  289. package/lib/typescript/utils/par.d.ts.map +1 -1
  290. package/lib/typescript/utils/parser.d.ts.map +1 -1
  291. package/lib/typescript/utils/pop.d.ts +1 -9
  292. package/lib/typescript/utils/pop.d.ts.map +1 -1
  293. package/lib/typescript/utils/string.d.ts.map +1 -1
  294. package/lib/typescript/utils/zod.d.ts +4 -4
  295. package/lib/typescript/utils/zod.d.ts.map +1 -1
  296. package/lib/typescript/wallet-instance-attestation/api/index.d.ts +9 -9
  297. package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
  298. package/lib/typescript/wallet-instance-attestation/api/types.d.ts +19 -174
  299. package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
  300. package/lib/typescript/wallet-instance-attestation/common/types.d.ts +14 -273
  301. package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
  302. package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
  303. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +5 -3
  304. package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -1
  305. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +39 -629
  306. package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
  307. package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -1
  308. package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -1
  309. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts +90 -0
  310. package/lib/typescript/wallet-instance-attestation/v1.3.3/mappers.d.ts.map +1 -0
  311. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +29 -891
  312. package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -1
  313. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts +15 -0
  314. package/lib/typescript/wallet-instance-attestation/v1.3.3/utils.d.ts.map +1 -0
  315. package/lib/typescript/wallet-unit-attestation/api/index.d.ts +39 -0
  316. package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +1 -0
  317. package/lib/typescript/wallet-unit-attestation/api/types.d.ts +67 -0
  318. package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +1 -0
  319. package/lib/typescript/wallet-unit-attestation/index.d.ts +4 -0
  320. package/lib/typescript/wallet-unit-attestation/index.d.ts.map +1 -0
  321. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +3 -0
  322. package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +1 -0
  323. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +3 -0
  324. package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +1 -0
  325. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +3 -0
  326. package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +1 -0
  327. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts +107 -0
  328. package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +1 -0
  329. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts +69 -0
  330. package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +1 -0
  331. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +7 -0
  332. package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +1 -0
  333. package/package.json +8 -8
  334. package/src/api/index.ts +4 -0
  335. package/src/client/generated/wallet-provider.ts +44 -0
  336. package/src/client/index.ts +5 -1
  337. package/src/credential/issuance/README.md +2 -0
  338. package/src/credential/issuance/api/05-obtain-credential.ts +2 -0
  339. package/src/credential/issuance/api/IssuerConfig.ts +4 -2
  340. package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +8 -3
  341. package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +2 -0
  342. package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +25 -11
  343. package/src/credential/issuance/v1.3.3/mappers.ts +10 -9
  344. package/src/credential/presentation/api/RelyingPartyConfig.ts +1 -1
  345. package/src/credential/presentation/v1.0.0/04-verify-request-object.ts +2 -2
  346. package/src/credential/presentation/v1.3.3/04-verify-request-object.ts +4 -2
  347. package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +42 -10
  348. package/src/credentials-catalogue/v1.0.0/mappers.ts +27 -12
  349. package/src/credentials-catalogue/v1.3.3/mappers.ts +10 -4
  350. package/src/credentials-catalogue/v1.3.3/types.ts +102 -29
  351. package/src/credentials-catalogue/v1.3.3/utils.ts +9 -4
  352. package/src/index.ts +11 -2
  353. package/src/trust/common/types.ts +3 -3
  354. package/src/trust/v1.0.0/types.ts +10 -10
  355. package/src/trust/v1.3.3/types.ts +4 -7
  356. package/src/utils/callbacks.ts +7 -1
  357. package/src/utils/crypto.ts +18 -0
  358. package/src/utils/dpop.ts +1 -1
  359. package/src/utils/jwk.ts +1 -1
  360. package/src/utils/mappers.ts +2 -2
  361. package/src/utils/zod.ts +5 -1
  362. package/src/wallet-instance-attestation/README.md +13 -10
  363. package/src/wallet-instance-attestation/api/index.ts +20 -13
  364. package/src/wallet-instance-attestation/api/types.ts +16 -4
  365. package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -3
  366. package/src/wallet-instance-attestation/v1.0.0/issuing.ts +7 -9
  367. package/src/wallet-instance-attestation/v1.0.0/mappers.ts +7 -5
  368. package/src/wallet-instance-attestation/v1.3.3/index.ts +5 -7
  369. package/src/wallet-instance-attestation/v1.3.3/issuing.ts +107 -3
  370. package/src/wallet-instance-attestation/v1.3.3/mappers.ts +18 -0
  371. package/src/wallet-instance-attestation/v1.3.3/types.ts +16 -30
  372. package/src/wallet-instance-attestation/v1.3.3/utils.ts +35 -0
  373. package/src/wallet-unit-attestation/README.md +73 -0
  374. package/src/wallet-unit-attestation/api/index.ts +51 -0
  375. package/src/wallet-unit-attestation/api/types.ts +49 -0
  376. package/src/wallet-unit-attestation/index.ts +3 -0
  377. package/src/wallet-unit-attestation/v1.0.0/index.ts +5 -0
  378. package/src/wallet-unit-attestation/v1.3.3/index.ts +11 -0
  379. package/src/wallet-unit-attestation/v1.3.3/issuing.ts +147 -0
  380. package/src/wallet-unit-attestation/v1.3.3/mappers.ts +10 -0
  381. package/src/wallet-unit-attestation/v1.3.3/types.ts +21 -0
  382. package/src/wallet-unit-attestation/v1.3.3/utils.ts +14 -0
@@ -3,12 +3,8 @@ import * as z from "zod";
3
3
  * Shape from parsing a status assertion response in case of 201.
4
4
  */
5
5
  export declare const StatusAssertionResponse: z.ZodObject<{
6
- status_assertion_responses: z.ZodArray<z.ZodString, "many">;
7
- }, "strip", z.ZodTypeAny, {
8
- status_assertion_responses: string[];
9
- }, {
10
- status_assertion_responses: string[];
11
- }>;
6
+ status_assertion_responses: z.ZodArray<z.ZodString>;
7
+ }, z.core.$strip>;
12
8
  /**
13
9
  * Type from parsing a status assertion response in case of 201.
14
10
  * Inferred from {@link StatusAssertionResponse}.
@@ -23,28 +19,14 @@ export declare const ParsedStatusAssertionJwt: z.ZodObject<{
23
19
  typ: z.ZodLiteral<"status-assertion+jwt">;
24
20
  alg: z.ZodString;
25
21
  kid: z.ZodOptional<z.ZodString>;
26
- }, "strip", z.ZodTypeAny, {
27
- alg: string;
28
- typ: "status-assertion+jwt";
29
- kid?: string | undefined;
30
- }, {
31
- alg: string;
32
- typ: "status-assertion+jwt";
33
- kid?: string | undefined;
34
- }>;
22
+ }, z.core.$strip>;
35
23
  payload: z.ZodObject<{
36
24
  iss: z.ZodString;
37
25
  credential_status_type: z.ZodString;
38
26
  credential_status_detail: z.ZodOptional<z.ZodObject<{
39
27
  state: z.ZodString;
40
28
  description: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- description: string;
43
- state: string;
44
- }, {
45
- description: string;
46
- state: string;
47
- }>>;
29
+ }, z.core.$strip>>;
48
30
  credential_hash_alg: z.ZodString;
49
31
  credential_hash: z.ZodString;
50
32
  cnf: z.ZodObject<{
@@ -57,9 +39,12 @@ export declare const ParsedStatusAssertionJwt: z.ZodObject<{
57
39
  e: z.ZodOptional<z.ZodString>;
58
40
  ext: z.ZodOptional<z.ZodBoolean>;
59
41
  k: z.ZodOptional<z.ZodString>;
60
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
43
  kid: z.ZodOptional<z.ZodString>;
62
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
44
+ kty: z.ZodEnum<{
45
+ RSA: "RSA";
46
+ EC: "EC";
47
+ }>;
63
48
  n: z.ZodOptional<z.ZodString>;
64
49
  p: z.ZodOptional<z.ZodString>;
65
50
  q: z.ZodOptional<z.ZodString>;
@@ -67,274 +52,16 @@ export declare const ParsedStatusAssertionJwt: z.ZodObject<{
67
52
  use: z.ZodOptional<z.ZodString>;
68
53
  x: z.ZodOptional<z.ZodString>;
69
54
  y: z.ZodOptional<z.ZodString>;
70
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
56
  x5t: z.ZodOptional<z.ZodString>;
72
57
  "x5t#S256": z.ZodOptional<z.ZodString>;
73
58
  x5u: z.ZodOptional<z.ZodString>;
74
- }, "strip", z.ZodTypeAny, {
75
- kty: "RSA" | "EC";
76
- alg?: string | undefined;
77
- crv?: string | undefined;
78
- d?: string | undefined;
79
- dp?: string | undefined;
80
- dq?: string | undefined;
81
- e?: string | undefined;
82
- ext?: boolean | undefined;
83
- k?: string | undefined;
84
- key_ops?: string[] | undefined;
85
- kid?: string | undefined;
86
- n?: string | undefined;
87
- p?: string | undefined;
88
- q?: string | undefined;
89
- qi?: string | undefined;
90
- use?: string | undefined;
91
- x?: string | undefined;
92
- y?: string | undefined;
93
- x5c?: string[] | undefined;
94
- x5t?: string | undefined;
95
- "x5t#S256"?: string | undefined;
96
- x5u?: string | undefined;
97
- }, {
98
- kty: "RSA" | "EC";
99
- alg?: string | undefined;
100
- crv?: string | undefined;
101
- d?: string | undefined;
102
- dp?: string | undefined;
103
- dq?: string | undefined;
104
- e?: string | undefined;
105
- ext?: boolean | undefined;
106
- k?: string | undefined;
107
- key_ops?: string[] | undefined;
108
- kid?: string | undefined;
109
- n?: string | undefined;
110
- p?: string | undefined;
111
- q?: string | undefined;
112
- qi?: string | undefined;
113
- use?: string | undefined;
114
- x?: string | undefined;
115
- y?: string | undefined;
116
- x5c?: string[] | undefined;
117
- x5t?: string | undefined;
118
- "x5t#S256"?: string | undefined;
119
- x5u?: string | undefined;
120
- }>;
121
- }, "strip", z.ZodTypeAny, {
122
- jwk: {
123
- kty: "RSA" | "EC";
124
- alg?: string | undefined;
125
- crv?: string | undefined;
126
- d?: string | undefined;
127
- dp?: string | undefined;
128
- dq?: string | undefined;
129
- e?: string | undefined;
130
- ext?: boolean | undefined;
131
- k?: string | undefined;
132
- key_ops?: string[] | undefined;
133
- kid?: string | undefined;
134
- n?: string | undefined;
135
- p?: string | undefined;
136
- q?: string | undefined;
137
- qi?: string | undefined;
138
- use?: string | undefined;
139
- x?: string | undefined;
140
- y?: string | undefined;
141
- x5c?: string[] | undefined;
142
- x5t?: string | undefined;
143
- "x5t#S256"?: string | undefined;
144
- x5u?: string | undefined;
145
- };
146
- }, {
147
- jwk: {
148
- kty: "RSA" | "EC";
149
- alg?: string | undefined;
150
- crv?: string | undefined;
151
- d?: string | undefined;
152
- dp?: string | undefined;
153
- dq?: string | undefined;
154
- e?: string | undefined;
155
- ext?: boolean | undefined;
156
- k?: string | undefined;
157
- key_ops?: string[] | undefined;
158
- kid?: string | undefined;
159
- n?: string | undefined;
160
- p?: string | undefined;
161
- q?: string | undefined;
162
- qi?: string | undefined;
163
- use?: string | undefined;
164
- x?: string | undefined;
165
- y?: string | undefined;
166
- x5c?: string[] | undefined;
167
- x5t?: string | undefined;
168
- "x5t#S256"?: string | undefined;
169
- x5u?: string | undefined;
170
- };
171
- }>;
59
+ }, z.core.$strip>;
60
+ }, z.core.$strip>;
172
61
  exp: z.ZodNumber;
173
62
  iat: z.ZodNumber;
174
- }, "strip", z.ZodTypeAny, {
175
- iss: string;
176
- iat: number;
177
- exp: number;
178
- credential_hash_alg: string;
179
- cnf: {
180
- jwk: {
181
- kty: "RSA" | "EC";
182
- alg?: string | undefined;
183
- crv?: string | undefined;
184
- d?: string | undefined;
185
- dp?: string | undefined;
186
- dq?: string | undefined;
187
- e?: string | undefined;
188
- ext?: boolean | undefined;
189
- k?: string | undefined;
190
- key_ops?: string[] | undefined;
191
- kid?: string | undefined;
192
- n?: string | undefined;
193
- p?: string | undefined;
194
- q?: string | undefined;
195
- qi?: string | undefined;
196
- use?: string | undefined;
197
- x?: string | undefined;
198
- y?: string | undefined;
199
- x5c?: string[] | undefined;
200
- x5t?: string | undefined;
201
- "x5t#S256"?: string | undefined;
202
- x5u?: string | undefined;
203
- };
204
- };
205
- credential_status_type: string;
206
- credential_hash: string;
207
- credential_status_detail?: {
208
- description: string;
209
- state: string;
210
- } | undefined;
211
- }, {
212
- iss: string;
213
- iat: number;
214
- exp: number;
215
- credential_hash_alg: string;
216
- cnf: {
217
- jwk: {
218
- kty: "RSA" | "EC";
219
- alg?: string | undefined;
220
- crv?: string | undefined;
221
- d?: string | undefined;
222
- dp?: string | undefined;
223
- dq?: string | undefined;
224
- e?: string | undefined;
225
- ext?: boolean | undefined;
226
- k?: string | undefined;
227
- key_ops?: string[] | undefined;
228
- kid?: string | undefined;
229
- n?: string | undefined;
230
- p?: string | undefined;
231
- q?: string | undefined;
232
- qi?: string | undefined;
233
- use?: string | undefined;
234
- x?: string | undefined;
235
- y?: string | undefined;
236
- x5c?: string[] | undefined;
237
- x5t?: string | undefined;
238
- "x5t#S256"?: string | undefined;
239
- x5u?: string | undefined;
240
- };
241
- };
242
- credential_status_type: string;
243
- credential_hash: string;
244
- credential_status_detail?: {
245
- description: string;
246
- state: string;
247
- } | undefined;
248
- }>;
249
- }, "strip", z.ZodTypeAny, {
250
- header: {
251
- alg: string;
252
- typ: "status-assertion+jwt";
253
- kid?: string | undefined;
254
- };
255
- payload: {
256
- iss: string;
257
- iat: number;
258
- exp: number;
259
- credential_hash_alg: string;
260
- cnf: {
261
- jwk: {
262
- kty: "RSA" | "EC";
263
- alg?: string | undefined;
264
- crv?: string | undefined;
265
- d?: string | undefined;
266
- dp?: string | undefined;
267
- dq?: string | undefined;
268
- e?: string | undefined;
269
- ext?: boolean | undefined;
270
- k?: string | undefined;
271
- key_ops?: string[] | undefined;
272
- kid?: string | undefined;
273
- n?: string | undefined;
274
- p?: string | undefined;
275
- q?: string | undefined;
276
- qi?: string | undefined;
277
- use?: string | undefined;
278
- x?: string | undefined;
279
- y?: string | undefined;
280
- x5c?: string[] | undefined;
281
- x5t?: string | undefined;
282
- "x5t#S256"?: string | undefined;
283
- x5u?: string | undefined;
284
- };
285
- };
286
- credential_status_type: string;
287
- credential_hash: string;
288
- credential_status_detail?: {
289
- description: string;
290
- state: string;
291
- } | undefined;
292
- };
293
- }, {
294
- header: {
295
- alg: string;
296
- typ: "status-assertion+jwt";
297
- kid?: string | undefined;
298
- };
299
- payload: {
300
- iss: string;
301
- iat: number;
302
- exp: number;
303
- credential_hash_alg: string;
304
- cnf: {
305
- jwk: {
306
- kty: "RSA" | "EC";
307
- alg?: string | undefined;
308
- crv?: string | undefined;
309
- d?: string | undefined;
310
- dp?: string | undefined;
311
- dq?: string | undefined;
312
- e?: string | undefined;
313
- ext?: boolean | undefined;
314
- k?: string | undefined;
315
- key_ops?: string[] | undefined;
316
- kid?: string | undefined;
317
- n?: string | undefined;
318
- p?: string | undefined;
319
- q?: string | undefined;
320
- qi?: string | undefined;
321
- use?: string | undefined;
322
- x?: string | undefined;
323
- y?: string | undefined;
324
- x5c?: string[] | undefined;
325
- x5t?: string | undefined;
326
- "x5t#S256"?: string | undefined;
327
- x5u?: string | undefined;
328
- };
329
- };
330
- credential_status_type: string;
331
- credential_hash: string;
332
- credential_status_detail?: {
333
- description: string;
334
- state: string;
335
- } | undefined;
336
- };
337
- }>;
63
+ }, z.core.$strip>;
64
+ }, z.core.$strip>;
338
65
  export type ParsedStatusAssertionErrorJwt = z.infer<typeof ParsedStatusAssertionErrorJwt>;
339
66
  /**
340
67
  * The JWT that contains the errors occurred for the status assertion request.
@@ -345,87 +72,31 @@ export declare const ParsedStatusAssertionErrorJwt: z.ZodObject<{
345
72
  typ: z.ZodLiteral<"status-assertion-error+jwt">;
346
73
  alg: z.ZodString;
347
74
  kid: z.ZodOptional<z.ZodString>;
348
- }, "strip", z.ZodTypeAny, {
349
- alg: string;
350
- typ: "status-assertion-error+jwt";
351
- kid?: string | undefined;
352
- }, {
353
- alg: string;
354
- typ: "status-assertion-error+jwt";
355
- kid?: string | undefined;
356
- }>;
75
+ }, z.core.$strip>;
357
76
  payload: z.ZodObject<{
358
77
  credential_hash_alg: z.ZodString;
359
78
  credential_hash: z.ZodString;
360
79
  error: z.ZodString;
361
80
  error_description: z.ZodString;
362
- }, "strip", z.ZodTypeAny, {
363
- error: string;
364
- error_description: string;
365
- credential_hash_alg: string;
366
- credential_hash: string;
367
- }, {
368
- error: string;
369
- error_description: string;
370
- credential_hash_alg: string;
371
- credential_hash: string;
372
- }>;
373
- }, "strip", z.ZodTypeAny, {
374
- header: {
375
- alg: string;
376
- typ: "status-assertion-error+jwt";
377
- kid?: string | undefined;
378
- };
379
- payload: {
380
- error: string;
381
- error_description: string;
382
- credential_hash_alg: string;
383
- credential_hash: string;
384
- };
385
- }, {
386
- header: {
387
- alg: string;
388
- typ: "status-assertion-error+jwt";
389
- kid?: string | undefined;
390
- };
391
- payload: {
392
- error: string;
393
- error_description: string;
394
- credential_hash_alg: string;
395
- credential_hash: string;
396
- };
397
- }>;
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>;
398
83
  /**
399
84
  * The status assertion response that might include either a successful assertion or an error
400
85
  */
401
86
  export type ParsedStatusAssertionResponse = z.infer<typeof ParsedStatusAssertionResponse>;
402
- export declare const ParsedStatusAssertionResponse: z.ZodUnion<[z.ZodObject<{
87
+ export declare const ParsedStatusAssertionResponse: z.ZodUnion<readonly [z.ZodObject<{
403
88
  header: z.ZodObject<{
404
89
  typ: z.ZodLiteral<"status-assertion+jwt">;
405
90
  alg: z.ZodString;
406
91
  kid: z.ZodOptional<z.ZodString>;
407
- }, "strip", z.ZodTypeAny, {
408
- alg: string;
409
- typ: "status-assertion+jwt";
410
- kid?: string | undefined;
411
- }, {
412
- alg: string;
413
- typ: "status-assertion+jwt";
414
- kid?: string | undefined;
415
- }>;
92
+ }, z.core.$strip>;
416
93
  payload: z.ZodObject<{
417
94
  iss: z.ZodString;
418
95
  credential_status_type: z.ZodString;
419
96
  credential_status_detail: z.ZodOptional<z.ZodObject<{
420
97
  state: z.ZodString;
421
98
  description: z.ZodString;
422
- }, "strip", z.ZodTypeAny, {
423
- description: string;
424
- state: string;
425
- }, {
426
- description: string;
427
- state: string;
428
- }>>;
99
+ }, z.core.$strip>>;
429
100
  credential_hash_alg: z.ZodString;
430
101
  credential_hash: z.ZodString;
431
102
  cnf: z.ZodObject<{
@@ -438,9 +109,12 @@ export declare const ParsedStatusAssertionResponse: z.ZodUnion<[z.ZodObject<{
438
109
  e: z.ZodOptional<z.ZodString>;
439
110
  ext: z.ZodOptional<z.ZodBoolean>;
440
111
  k: z.ZodOptional<z.ZodString>;
441
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
113
  kid: z.ZodOptional<z.ZodString>;
443
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
114
+ kty: z.ZodEnum<{
115
+ RSA: "RSA";
116
+ EC: "EC";
117
+ }>;
444
118
  n: z.ZodOptional<z.ZodString>;
445
119
  p: z.ZodOptional<z.ZodString>;
446
120
  q: z.ZodOptional<z.ZodString>;
@@ -448,328 +122,28 @@ export declare const ParsedStatusAssertionResponse: z.ZodUnion<[z.ZodObject<{
448
122
  use: z.ZodOptional<z.ZodString>;
449
123
  x: z.ZodOptional<z.ZodString>;
450
124
  y: z.ZodOptional<z.ZodString>;
451
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
126
  x5t: z.ZodOptional<z.ZodString>;
453
127
  "x5t#S256": z.ZodOptional<z.ZodString>;
454
128
  x5u: z.ZodOptional<z.ZodString>;
455
- }, "strip", z.ZodTypeAny, {
456
- kty: "RSA" | "EC";
457
- alg?: string | undefined;
458
- crv?: string | undefined;
459
- d?: string | undefined;
460
- dp?: string | undefined;
461
- dq?: string | undefined;
462
- e?: string | undefined;
463
- ext?: boolean | undefined;
464
- k?: string | undefined;
465
- key_ops?: string[] | undefined;
466
- kid?: string | undefined;
467
- n?: string | undefined;
468
- p?: string | undefined;
469
- q?: string | undefined;
470
- qi?: string | undefined;
471
- use?: string | undefined;
472
- x?: string | undefined;
473
- y?: string | undefined;
474
- x5c?: string[] | undefined;
475
- x5t?: string | undefined;
476
- "x5t#S256"?: string | undefined;
477
- x5u?: string | undefined;
478
- }, {
479
- kty: "RSA" | "EC";
480
- alg?: string | undefined;
481
- crv?: string | undefined;
482
- d?: string | undefined;
483
- dp?: string | undefined;
484
- dq?: string | undefined;
485
- e?: string | undefined;
486
- ext?: boolean | undefined;
487
- k?: string | undefined;
488
- key_ops?: string[] | undefined;
489
- kid?: string | undefined;
490
- n?: string | undefined;
491
- p?: string | undefined;
492
- q?: string | undefined;
493
- qi?: string | undefined;
494
- use?: string | undefined;
495
- x?: string | undefined;
496
- y?: string | undefined;
497
- x5c?: string[] | undefined;
498
- x5t?: string | undefined;
499
- "x5t#S256"?: string | undefined;
500
- x5u?: string | undefined;
501
- }>;
502
- }, "strip", z.ZodTypeAny, {
503
- jwk: {
504
- kty: "RSA" | "EC";
505
- alg?: string | undefined;
506
- crv?: string | undefined;
507
- d?: string | undefined;
508
- dp?: string | undefined;
509
- dq?: string | undefined;
510
- e?: string | undefined;
511
- ext?: boolean | undefined;
512
- k?: string | undefined;
513
- key_ops?: string[] | undefined;
514
- kid?: string | undefined;
515
- n?: string | undefined;
516
- p?: string | undefined;
517
- q?: string | undefined;
518
- qi?: string | undefined;
519
- use?: string | undefined;
520
- x?: string | undefined;
521
- y?: string | undefined;
522
- x5c?: string[] | undefined;
523
- x5t?: string | undefined;
524
- "x5t#S256"?: string | undefined;
525
- x5u?: string | undefined;
526
- };
527
- }, {
528
- jwk: {
529
- kty: "RSA" | "EC";
530
- alg?: string | undefined;
531
- crv?: string | undefined;
532
- d?: string | undefined;
533
- dp?: string | undefined;
534
- dq?: string | undefined;
535
- e?: string | undefined;
536
- ext?: boolean | undefined;
537
- k?: string | undefined;
538
- key_ops?: string[] | undefined;
539
- kid?: string | undefined;
540
- n?: string | undefined;
541
- p?: string | undefined;
542
- q?: string | undefined;
543
- qi?: string | undefined;
544
- use?: string | undefined;
545
- x?: string | undefined;
546
- y?: string | undefined;
547
- x5c?: string[] | undefined;
548
- x5t?: string | undefined;
549
- "x5t#S256"?: string | undefined;
550
- x5u?: string | undefined;
551
- };
552
- }>;
129
+ }, z.core.$strip>;
130
+ }, z.core.$strip>;
553
131
  exp: z.ZodNumber;
554
132
  iat: z.ZodNumber;
555
- }, "strip", z.ZodTypeAny, {
556
- iss: string;
557
- iat: number;
558
- exp: number;
559
- credential_hash_alg: string;
560
- cnf: {
561
- jwk: {
562
- kty: "RSA" | "EC";
563
- alg?: string | undefined;
564
- crv?: string | undefined;
565
- d?: string | undefined;
566
- dp?: string | undefined;
567
- dq?: string | undefined;
568
- e?: string | undefined;
569
- ext?: boolean | undefined;
570
- k?: string | undefined;
571
- key_ops?: string[] | undefined;
572
- kid?: string | undefined;
573
- n?: string | undefined;
574
- p?: string | undefined;
575
- q?: string | undefined;
576
- qi?: string | undefined;
577
- use?: string | undefined;
578
- x?: string | undefined;
579
- y?: string | undefined;
580
- x5c?: string[] | undefined;
581
- x5t?: string | undefined;
582
- "x5t#S256"?: string | undefined;
583
- x5u?: string | undefined;
584
- };
585
- };
586
- credential_status_type: string;
587
- credential_hash: string;
588
- credential_status_detail?: {
589
- description: string;
590
- state: string;
591
- } | undefined;
592
- }, {
593
- iss: string;
594
- iat: number;
595
- exp: number;
596
- credential_hash_alg: string;
597
- cnf: {
598
- jwk: {
599
- kty: "RSA" | "EC";
600
- alg?: string | undefined;
601
- crv?: string | undefined;
602
- d?: string | undefined;
603
- dp?: string | undefined;
604
- dq?: string | undefined;
605
- e?: string | undefined;
606
- ext?: boolean | undefined;
607
- k?: string | undefined;
608
- key_ops?: string[] | undefined;
609
- kid?: string | undefined;
610
- n?: string | undefined;
611
- p?: string | undefined;
612
- q?: string | undefined;
613
- qi?: string | undefined;
614
- use?: string | undefined;
615
- x?: string | undefined;
616
- y?: string | undefined;
617
- x5c?: string[] | undefined;
618
- x5t?: string | undefined;
619
- "x5t#S256"?: string | undefined;
620
- x5u?: string | undefined;
621
- };
622
- };
623
- credential_status_type: string;
624
- credential_hash: string;
625
- credential_status_detail?: {
626
- description: string;
627
- state: string;
628
- } | undefined;
629
- }>;
630
- }, "strip", z.ZodTypeAny, {
631
- header: {
632
- alg: string;
633
- typ: "status-assertion+jwt";
634
- kid?: string | undefined;
635
- };
636
- payload: {
637
- iss: string;
638
- iat: number;
639
- exp: number;
640
- credential_hash_alg: string;
641
- cnf: {
642
- jwk: {
643
- kty: "RSA" | "EC";
644
- alg?: string | undefined;
645
- crv?: string | undefined;
646
- d?: string | undefined;
647
- dp?: string | undefined;
648
- dq?: string | undefined;
649
- e?: string | undefined;
650
- ext?: boolean | undefined;
651
- k?: string | undefined;
652
- key_ops?: string[] | undefined;
653
- kid?: string | undefined;
654
- n?: string | undefined;
655
- p?: string | undefined;
656
- q?: string | undefined;
657
- qi?: string | undefined;
658
- use?: string | undefined;
659
- x?: string | undefined;
660
- y?: string | undefined;
661
- x5c?: string[] | undefined;
662
- x5t?: string | undefined;
663
- "x5t#S256"?: string | undefined;
664
- x5u?: string | undefined;
665
- };
666
- };
667
- credential_status_type: string;
668
- credential_hash: string;
669
- credential_status_detail?: {
670
- description: string;
671
- state: string;
672
- } | undefined;
673
- };
674
- }, {
675
- header: {
676
- alg: string;
677
- typ: "status-assertion+jwt";
678
- kid?: string | undefined;
679
- };
680
- payload: {
681
- iss: string;
682
- iat: number;
683
- exp: number;
684
- credential_hash_alg: string;
685
- cnf: {
686
- jwk: {
687
- kty: "RSA" | "EC";
688
- alg?: string | undefined;
689
- crv?: string | undefined;
690
- d?: string | undefined;
691
- dp?: string | undefined;
692
- dq?: string | undefined;
693
- e?: string | undefined;
694
- ext?: boolean | undefined;
695
- k?: string | undefined;
696
- key_ops?: string[] | undefined;
697
- kid?: string | undefined;
698
- n?: string | undefined;
699
- p?: string | undefined;
700
- q?: string | undefined;
701
- qi?: string | undefined;
702
- use?: string | undefined;
703
- x?: string | undefined;
704
- y?: string | undefined;
705
- x5c?: string[] | undefined;
706
- x5t?: string | undefined;
707
- "x5t#S256"?: string | undefined;
708
- x5u?: string | undefined;
709
- };
710
- };
711
- credential_status_type: string;
712
- credential_hash: string;
713
- credential_status_detail?: {
714
- description: string;
715
- state: string;
716
- } | undefined;
717
- };
718
- }>, z.ZodObject<{
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>, z.ZodObject<{
719
135
  header: z.ZodObject<{
720
136
  typ: z.ZodLiteral<"status-assertion-error+jwt">;
721
137
  alg: z.ZodString;
722
138
  kid: z.ZodOptional<z.ZodString>;
723
- }, "strip", z.ZodTypeAny, {
724
- alg: string;
725
- typ: "status-assertion-error+jwt";
726
- kid?: string | undefined;
727
- }, {
728
- alg: string;
729
- typ: "status-assertion-error+jwt";
730
- kid?: string | undefined;
731
- }>;
139
+ }, z.core.$strip>;
732
140
  payload: z.ZodObject<{
733
141
  credential_hash_alg: z.ZodString;
734
142
  credential_hash: z.ZodString;
735
143
  error: z.ZodString;
736
144
  error_description: z.ZodString;
737
- }, "strip", z.ZodTypeAny, {
738
- error: string;
739
- error_description: string;
740
- credential_hash_alg: string;
741
- credential_hash: string;
742
- }, {
743
- error: string;
744
- error_description: string;
745
- credential_hash_alg: string;
746
- credential_hash: string;
747
- }>;
748
- }, "strip", z.ZodTypeAny, {
749
- header: {
750
- alg: string;
751
- typ: "status-assertion-error+jwt";
752
- kid?: string | undefined;
753
- };
754
- payload: {
755
- error: string;
756
- error_description: string;
757
- credential_hash_alg: string;
758
- credential_hash: string;
759
- };
760
- }, {
761
- header: {
762
- alg: string;
763
- typ: "status-assertion-error+jwt";
764
- kid?: string | undefined;
765
- };
766
- payload: {
767
- error: string;
768
- error_description: string;
769
- credential_hash_alg: string;
770
- credential_hash: string;
771
- };
772
- }>]>;
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>]>;
773
147
  export declare enum StatusType {
774
148
  VALID = "0x00",
775
149
  INVALID = "0x01",