@pagopa/io-react-native-wallet 1.7.1 → 2.0.0-next.1

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