@atproto/oauth-provider 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) hide show
  1. package/.postcssrc.yml +3 -0
  2. package/CHANGELOG.md +19 -0
  3. package/LICENSE.txt +7 -0
  4. package/dist/access-token/access-token-type.d.ts +6 -0
  5. package/dist/access-token/access-token-type.d.ts.map +1 -0
  6. package/dist/access-token/access-token-type.js +10 -0
  7. package/dist/access-token/access-token-type.js.map +1 -0
  8. package/dist/account/account-manager.d.ts +14 -0
  9. package/dist/account/account-manager.d.ts.map +1 -0
  10. package/dist/account/account-manager.js +39 -0
  11. package/dist/account/account-manager.js.map +1 -0
  12. package/dist/account/account-store.d.ts +39 -0
  13. package/dist/account/account-store.d.ts.map +1 -0
  14. package/dist/account/account-store.js +19 -0
  15. package/dist/account/account-store.js.map +1 -0
  16. package/dist/account/account.d.ts +8 -0
  17. package/dist/account/account.d.ts.map +1 -0
  18. package/dist/account/account.js +3 -0
  19. package/dist/account/account.js.map +1 -0
  20. package/dist/assets/app/bundle-manifest.json +22 -0
  21. package/dist/assets/app/main.css +3 -0
  22. package/dist/assets/app/main.js +20 -0
  23. package/dist/assets/app/main.js.map +1 -0
  24. package/dist/assets/asset.d.ts +9 -0
  25. package/dist/assets/asset.d.ts.map +1 -0
  26. package/dist/assets/asset.js +3 -0
  27. package/dist/assets/asset.js.map +1 -0
  28. package/dist/assets/assets-middleware.d.ts +2 -0
  29. package/dist/assets/assets-middleware.d.ts.map +1 -0
  30. package/dist/assets/assets-middleware.js +30 -0
  31. package/dist/assets/assets-middleware.js.map +1 -0
  32. package/dist/assets/index.d.ts +4 -0
  33. package/dist/assets/index.d.ts.map +1 -0
  34. package/dist/assets/index.js +65 -0
  35. package/dist/assets/index.js.map +1 -0
  36. package/dist/client/client-auth.d.ts +13 -0
  37. package/dist/client/client-auth.d.ts.map +1 -0
  38. package/dist/client/client-auth.js +35 -0
  39. package/dist/client/client-auth.js.map +1 -0
  40. package/dist/client/client-data.d.ts +8 -0
  41. package/dist/client/client-data.d.ts.map +1 -0
  42. package/dist/client/client-data.js +3 -0
  43. package/dist/client/client-data.js.map +1 -0
  44. package/dist/client/client-id.d.ts +4 -0
  45. package/dist/client/client-id.d.ts.map +1 -0
  46. package/dist/client/client-id.js +6 -0
  47. package/dist/client/client-id.js.map +1 -0
  48. package/dist/client/client-info.d.ts +13 -0
  49. package/dist/client/client-info.d.ts.map +1 -0
  50. package/dist/client/client-info.js +3 -0
  51. package/dist/client/client-info.js.map +1 -0
  52. package/dist/client/client-manager.d.ts +38 -0
  53. package/dist/client/client-manager.d.ts.map +1 -0
  54. package/dist/client/client-manager.js +534 -0
  55. package/dist/client/client-manager.js.map +1 -0
  56. package/dist/client/client-store.d.ts +13 -0
  57. package/dist/client/client-store.d.ts.map +1 -0
  58. package/dist/client/client-store.js +39 -0
  59. package/dist/client/client-store.js.map +1 -0
  60. package/dist/client/client-utils.d.ts +6 -0
  61. package/dist/client/client-utils.d.ts.map +1 -0
  62. package/dist/client/client-utils.js +40 -0
  63. package/dist/client/client-utils.js.map +1 -0
  64. package/dist/client/client.d.ts +41 -0
  65. package/dist/client/client.d.ts.map +1 -0
  66. package/dist/client/client.js +163 -0
  67. package/dist/client/client.js.map +1 -0
  68. package/dist/constants.d.ts +42 -0
  69. package/dist/constants.d.ts.map +1 -0
  70. package/dist/constants.js +53 -0
  71. package/dist/constants.js.map +1 -0
  72. package/dist/device/device-data.d.ts +20 -0
  73. package/dist/device/device-data.d.ts.map +1 -0
  74. package/dist/device/device-data.js +11 -0
  75. package/dist/device/device-data.js.map +1 -0
  76. package/dist/device/device-details.d.ts +17 -0
  77. package/dist/device/device-details.d.ts.map +1 -0
  78. package/dist/device/device-details.js +34 -0
  79. package/dist/device/device-details.js.map +1 -0
  80. package/dist/device/device-id.d.ts +6 -0
  81. package/dist/device/device-id.d.ts.map +1 -0
  82. package/dist/device/device-id.js +18 -0
  83. package/dist/device/device-id.js.map +1 -0
  84. package/dist/device/device-manager.d.ts +88 -0
  85. package/dist/device/device-manager.d.ts.map +1 -0
  86. package/dist/device/device-manager.js +206 -0
  87. package/dist/device/device-manager.js.map +1 -0
  88. package/dist/device/device-store.d.ts +15 -0
  89. package/dist/device/device-store.d.ts.map +1 -0
  90. package/dist/device/device-store.js +36 -0
  91. package/dist/device/device-store.js.map +1 -0
  92. package/dist/device/session-id.d.ts +6 -0
  93. package/dist/device/session-id.d.ts.map +1 -0
  94. package/dist/device/session-id.js +18 -0
  95. package/dist/device/session-id.js.map +1 -0
  96. package/dist/dpop/dpop-manager.d.ts +33 -0
  97. package/dist/dpop/dpop-manager.d.ts.map +1 -0
  98. package/dist/dpop/dpop-manager.js +115 -0
  99. package/dist/dpop/dpop-manager.js.map +1 -0
  100. package/dist/dpop/dpop-nonce.d.ts +13 -0
  101. package/dist/dpop/dpop-nonce.d.ts.map +1 -0
  102. package/dist/dpop/dpop-nonce.js +94 -0
  103. package/dist/dpop/dpop-nonce.js.map +1 -0
  104. package/dist/errors/access-denied-error.d.ts +8 -0
  105. package/dist/errors/access-denied-error.d.ts.map +1 -0
  106. package/dist/errors/access-denied-error.js +21 -0
  107. package/dist/errors/access-denied-error.js.map +1 -0
  108. package/dist/errors/account-selection-required-error.d.ts +6 -0
  109. package/dist/errors/account-selection-required-error.d.ts.map +1 -0
  110. package/dist/errors/account-selection-required-error.js +11 -0
  111. package/dist/errors/account-selection-required-error.js.map +1 -0
  112. package/dist/errors/consent-required-error.d.ts +6 -0
  113. package/dist/errors/consent-required-error.d.ts.map +1 -0
  114. package/dist/errors/consent-required-error.js +11 -0
  115. package/dist/errors/consent-required-error.js.map +1 -0
  116. package/dist/errors/invalid-authorization-details-error.d.ts +20 -0
  117. package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -0
  118. package/dist/errors/invalid-authorization-details-error.js +26 -0
  119. package/dist/errors/invalid-authorization-details-error.js.map +1 -0
  120. package/dist/errors/invalid-client-error.d.ts +18 -0
  121. package/dist/errors/invalid-client-error.d.ts.map +1 -0
  122. package/dist/errors/invalid-client-error.js +24 -0
  123. package/dist/errors/invalid-client-error.js.map +1 -0
  124. package/dist/errors/invalid-client-id-error.d.ts +13 -0
  125. package/dist/errors/invalid-client-id-error.d.ts.map +1 -0
  126. package/dist/errors/invalid-client-id-error.js +25 -0
  127. package/dist/errors/invalid-client-id-error.js.map +1 -0
  128. package/dist/errors/invalid-client-metadata-error.d.ts +13 -0
  129. package/dist/errors/invalid-client-metadata-error.d.ts.map +1 -0
  130. package/dist/errors/invalid-client-metadata-error.js +23 -0
  131. package/dist/errors/invalid-client-metadata-error.js.map +1 -0
  132. package/dist/errors/invalid-dpop-key-binding-error.d.ts +12 -0
  133. package/dist/errors/invalid-dpop-key-binding-error.d.ts.map +1 -0
  134. package/dist/errors/invalid-dpop-key-binding-error.js +20 -0
  135. package/dist/errors/invalid-dpop-key-binding-error.js.map +1 -0
  136. package/dist/errors/invalid-dpop-proof-error.d.ts +5 -0
  137. package/dist/errors/invalid-dpop-proof-error.d.ts.map +1 -0
  138. package/dist/errors/invalid-dpop-proof-error.js +12 -0
  139. package/dist/errors/invalid-dpop-proof-error.js.map +1 -0
  140. package/dist/errors/invalid-grant-error.d.ts +14 -0
  141. package/dist/errors/invalid-grant-error.d.ts.map +1 -0
  142. package/dist/errors/invalid-grant-error.js +20 -0
  143. package/dist/errors/invalid-grant-error.js.map +1 -0
  144. package/dist/errors/invalid-parameters-error.d.ts +6 -0
  145. package/dist/errors/invalid-parameters-error.d.ts.map +1 -0
  146. package/dist/errors/invalid-parameters-error.js +11 -0
  147. package/dist/errors/invalid-parameters-error.js.map +1 -0
  148. package/dist/errors/invalid-redirect-uri-error.d.ts +11 -0
  149. package/dist/errors/invalid-redirect-uri-error.d.ts.map +1 -0
  150. package/dist/errors/invalid-redirect-uri-error.js +21 -0
  151. package/dist/errors/invalid-redirect-uri-error.js.map +1 -0
  152. package/dist/errors/invalid-request-error.d.ts +28 -0
  153. package/dist/errors/invalid-request-error.d.ts.map +1 -0
  154. package/dist/errors/invalid-request-error.js +34 -0
  155. package/dist/errors/invalid-request-error.js.map +1 -0
  156. package/dist/errors/invalid-token-error.d.ts +16 -0
  157. package/dist/errors/invalid-token-error.d.ts.map +1 -0
  158. package/dist/errors/invalid-token-error.js +45 -0
  159. package/dist/errors/invalid-token-error.js.map +1 -0
  160. package/dist/errors/login-required-error.d.ts +6 -0
  161. package/dist/errors/login-required-error.d.ts.map +1 -0
  162. package/dist/errors/login-required-error.js +11 -0
  163. package/dist/errors/login-required-error.js.map +1 -0
  164. package/dist/errors/oauth-error.d.ts +13 -0
  165. package/dist/errors/oauth-error.d.ts.map +1 -0
  166. package/dist/errors/oauth-error.js +29 -0
  167. package/dist/errors/oauth-error.js.map +1 -0
  168. package/dist/errors/unauthorized-client-error.d.ts +18 -0
  169. package/dist/errors/unauthorized-client-error.d.ts.map +1 -0
  170. package/dist/errors/unauthorized-client-error.js +24 -0
  171. package/dist/errors/unauthorized-client-error.js.map +1 -0
  172. package/dist/errors/use-dpop-nonce-error.d.ts +18 -0
  173. package/dist/errors/use-dpop-nonce-error.d.ts.map +1 -0
  174. package/dist/errors/use-dpop-nonce-error.js +27 -0
  175. package/dist/errors/use-dpop-nonce-error.js.map +1 -0
  176. package/dist/errors/www-authenticate-error.d.ts +9 -0
  177. package/dist/errors/www-authenticate-error.d.ts.map +1 -0
  178. package/dist/errors/www-authenticate-error.js +46 -0
  179. package/dist/errors/www-authenticate-error.js.map +1 -0
  180. package/dist/index.d.ts +14 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/index.js +31 -0
  183. package/dist/index.js.map +1 -0
  184. package/dist/lib/html/build-document.d.ts +32 -0
  185. package/dist/lib/html/build-document.d.ts.map +1 -0
  186. package/dist/lib/html/build-document.js +61 -0
  187. package/dist/lib/html/build-document.js.map +1 -0
  188. package/dist/lib/html/escapers.d.ts +9 -0
  189. package/dist/lib/html/escapers.d.ts.map +1 -0
  190. package/dist/lib/html/escapers.js +66 -0
  191. package/dist/lib/html/escapers.js.map +1 -0
  192. package/dist/lib/html/html.d.ts +13 -0
  193. package/dist/lib/html/html.d.ts.map +1 -0
  194. package/dist/lib/html/html.js +53 -0
  195. package/dist/lib/html/html.js.map +1 -0
  196. package/dist/lib/html/index.d.ts +4 -0
  197. package/dist/lib/html/index.d.ts.map +1 -0
  198. package/dist/lib/html/index.js +21 -0
  199. package/dist/lib/html/index.js.map +1 -0
  200. package/dist/lib/html/tags.d.ts +34 -0
  201. package/dist/lib/html/tags.d.ts.map +1 -0
  202. package/dist/lib/html/tags.js +47 -0
  203. package/dist/lib/html/tags.js.map +1 -0
  204. package/dist/lib/html/util.d.ts +4 -0
  205. package/dist/lib/html/util.d.ts.map +1 -0
  206. package/dist/lib/html/util.js +20 -0
  207. package/dist/lib/html/util.js.map +1 -0
  208. package/dist/lib/http/accept.d.ts +29 -0
  209. package/dist/lib/http/accept.d.ts.map +1 -0
  210. package/dist/lib/http/accept.js +67 -0
  211. package/dist/lib/http/accept.js.map +1 -0
  212. package/dist/lib/http/context.d.ts +5 -0
  213. package/dist/lib/http/context.d.ts.map +1 -0
  214. package/dist/lib/http/context.js +10 -0
  215. package/dist/lib/http/context.js.map +1 -0
  216. package/dist/lib/http/index.d.ts +10 -0
  217. package/dist/lib/http/index.d.ts.map +1 -0
  218. package/dist/lib/http/index.js +26 -0
  219. package/dist/lib/http/index.js.map +1 -0
  220. package/dist/lib/http/method.d.ts +6 -0
  221. package/dist/lib/http/method.d.ts.map +1 -0
  222. package/dist/lib/http/method.js +19 -0
  223. package/dist/lib/http/method.js.map +1 -0
  224. package/dist/lib/http/middleware.d.ts +18 -0
  225. package/dist/lib/http/middleware.d.ts.map +1 -0
  226. package/dist/lib/http/middleware.js +118 -0
  227. package/dist/lib/http/middleware.js.map +1 -0
  228. package/dist/lib/http/parser.d.ts +33 -0
  229. package/dist/lib/http/parser.d.ts.map +1 -0
  230. package/dist/lib/http/parser.js +48 -0
  231. package/dist/lib/http/parser.js.map +1 -0
  232. package/dist/lib/http/path.d.ts +9 -0
  233. package/dist/lib/http/path.d.ts.map +1 -0
  234. package/dist/lib/http/path.js +54 -0
  235. package/dist/lib/http/path.js.map +1 -0
  236. package/dist/lib/http/request.d.ts +33 -0
  237. package/dist/lib/http/request.d.ts.map +1 -0
  238. package/dist/lib/http/request.js +86 -0
  239. package/dist/lib/http/request.js.map +1 -0
  240. package/dist/lib/http/response.d.ts +13 -0
  241. package/dist/lib/http/response.d.ts.map +1 -0
  242. package/dist/lib/http/response.js +98 -0
  243. package/dist/lib/http/response.js.map +1 -0
  244. package/dist/lib/http/route.d.ts +25 -0
  245. package/dist/lib/http/route.d.ts.map +1 -0
  246. package/dist/lib/http/route.js +39 -0
  247. package/dist/lib/http/route.js.map +1 -0
  248. package/dist/lib/http/router.d.ts +32 -0
  249. package/dist/lib/http/router.d.ts.map +1 -0
  250. package/dist/lib/http/router.js +74 -0
  251. package/dist/lib/http/router.js.map +1 -0
  252. package/dist/lib/http/stream.d.ts +13 -0
  253. package/dist/lib/http/stream.d.ts.map +1 -0
  254. package/dist/lib/http/stream.js +46 -0
  255. package/dist/lib/http/stream.js.map +1 -0
  256. package/dist/lib/http/types.d.ts +7 -0
  257. package/dist/lib/http/types.d.ts.map +1 -0
  258. package/dist/lib/http/types.js +3 -0
  259. package/dist/lib/http/types.js.map +1 -0
  260. package/dist/lib/http/url.d.ts +8 -0
  261. package/dist/lib/http/url.d.ts.map +1 -0
  262. package/dist/lib/http/url.js +22 -0
  263. package/dist/lib/http/url.js.map +1 -0
  264. package/dist/lib/redis.d.ts +5 -0
  265. package/dist/lib/redis.d.ts.map +1 -0
  266. package/dist/lib/redis.js +22 -0
  267. package/dist/lib/redis.js.map +1 -0
  268. package/dist/lib/util/authorization-header.d.ts +4 -0
  269. package/dist/lib/util/authorization-header.d.ts.map +1 -0
  270. package/dist/lib/util/authorization-header.js +23 -0
  271. package/dist/lib/util/authorization-header.js.map +1 -0
  272. package/dist/lib/util/cast.d.ts +2 -0
  273. package/dist/lib/util/cast.d.ts.map +1 -0
  274. package/dist/lib/util/cast.js +10 -0
  275. package/dist/lib/util/cast.js.map +1 -0
  276. package/dist/lib/util/crypto.d.ts +3 -0
  277. package/dist/lib/util/crypto.d.ts.map +1 -0
  278. package/dist/lib/util/crypto.js +29 -0
  279. package/dist/lib/util/crypto.js.map +1 -0
  280. package/dist/lib/util/date.d.ts +3 -0
  281. package/dist/lib/util/date.d.ts.map +1 -0
  282. package/dist/lib/util/date.js +12 -0
  283. package/dist/lib/util/date.js.map +1 -0
  284. package/dist/lib/util/hostname.d.ts +6 -0
  285. package/dist/lib/util/hostname.d.ts.map +1 -0
  286. package/dist/lib/util/hostname.js +24 -0
  287. package/dist/lib/util/hostname.js.map +1 -0
  288. package/dist/lib/util/redirect-uri.d.ts +7 -0
  289. package/dist/lib/util/redirect-uri.d.ts.map +1 -0
  290. package/dist/lib/util/redirect-uri.js +44 -0
  291. package/dist/lib/util/redirect-uri.js.map +1 -0
  292. package/dist/lib/util/time.d.ts +6 -0
  293. package/dist/lib/util/time.d.ts.map +1 -0
  294. package/dist/lib/util/time.js +28 -0
  295. package/dist/lib/util/time.js.map +1 -0
  296. package/dist/lib/util/type.d.ts +6 -0
  297. package/dist/lib/util/type.d.ts.map +1 -0
  298. package/dist/lib/util/type.js +3 -0
  299. package/dist/lib/util/type.js.map +1 -0
  300. package/dist/lib/util/well-known.d.ts +3 -0
  301. package/dist/lib/util/well-known.d.ts.map +1 -0
  302. package/dist/lib/util/well-known.js +11 -0
  303. package/dist/lib/util/well-known.js.map +1 -0
  304. package/dist/metadata/build-metadata.d.ts +14 -0
  305. package/dist/metadata/build-metadata.d.ts.map +1 -0
  306. package/dist/metadata/build-metadata.js +132 -0
  307. package/dist/metadata/build-metadata.js.map +1 -0
  308. package/dist/oauth-client.d.ts +4 -0
  309. package/dist/oauth-client.d.ts.map +1 -0
  310. package/dist/oauth-client.js +19 -0
  311. package/dist/oauth-client.js.map +1 -0
  312. package/dist/oauth-dpop.d.ts +3 -0
  313. package/dist/oauth-dpop.d.ts.map +1 -0
  314. package/dist/oauth-dpop.js +19 -0
  315. package/dist/oauth-dpop.js.map +1 -0
  316. package/dist/oauth-errors.d.ts +20 -0
  317. package/dist/oauth-errors.d.ts.map +1 -0
  318. package/dist/oauth-errors.js +43 -0
  319. package/dist/oauth-errors.js.map +1 -0
  320. package/dist/oauth-hooks.d.ts +42 -0
  321. package/dist/oauth-hooks.d.ts.map +1 -0
  322. package/dist/oauth-hooks.js +3 -0
  323. package/dist/oauth-hooks.js.map +1 -0
  324. package/dist/oauth-provider.d.ts +179 -0
  325. package/dist/oauth-provider.d.ts.map +1 -0
  326. package/dist/oauth-provider.js +748 -0
  327. package/dist/oauth-provider.js.map +1 -0
  328. package/dist/oauth-store.d.ts +11 -0
  329. package/dist/oauth-store.d.ts.map +1 -0
  330. package/dist/oauth-store.js +27 -0
  331. package/dist/oauth-store.js.map +1 -0
  332. package/dist/oauth-verifier.d.ts +66 -0
  333. package/dist/oauth-verifier.d.ts.map +1 -0
  334. package/dist/oauth-verifier.js +94 -0
  335. package/dist/oauth-verifier.js.map +1 -0
  336. package/dist/oidc/claims.d.ts +16 -0
  337. package/dist/oidc/claims.d.ts.map +1 -0
  338. package/dist/oidc/claims.js +29 -0
  339. package/dist/oidc/claims.js.map +1 -0
  340. package/dist/oidc/sub.d.ts +4 -0
  341. package/dist/oidc/sub.d.ts.map +1 -0
  342. package/dist/oidc/sub.js +6 -0
  343. package/dist/oidc/sub.js.map +1 -0
  344. package/dist/oidc/userinfo.d.ts +7 -0
  345. package/dist/oidc/userinfo.d.ts.map +1 -0
  346. package/dist/oidc/userinfo.js +3 -0
  347. package/dist/oidc/userinfo.js.map +1 -0
  348. package/dist/output/build-error-payload.d.ts +6 -0
  349. package/dist/output/build-error-payload.d.ts.map +1 -0
  350. package/dist/output/build-error-payload.js +108 -0
  351. package/dist/output/build-error-payload.js.map +1 -0
  352. package/dist/output/customization.d.ts +37 -0
  353. package/dist/output/customization.d.ts.map +1 -0
  354. package/dist/output/customization.js +62 -0
  355. package/dist/output/customization.js.map +1 -0
  356. package/dist/output/send-authorize-page.d.ts +43 -0
  357. package/dist/output/send-authorize-page.d.ts.map +1 -0
  358. package/dist/output/send-authorize-page.js +49 -0
  359. package/dist/output/send-authorize-page.js.map +1 -0
  360. package/dist/output/send-authorize-redirect.d.ts +25 -0
  361. package/dist/output/send-authorize-redirect.d.ts.map +1 -0
  362. package/dist/output/send-authorize-redirect.js +72 -0
  363. package/dist/output/send-authorize-redirect.js.map +1 -0
  364. package/dist/output/send-error-page.d.ts +5 -0
  365. package/dist/output/send-error-page.d.ts.map +1 -0
  366. package/dist/output/send-error-page.js +31 -0
  367. package/dist/output/send-error-page.js.map +1 -0
  368. package/dist/output/send-web-page.d.ts +8 -0
  369. package/dist/output/send-web-page.d.ts.map +1 -0
  370. package/dist/output/send-web-page.js +48 -0
  371. package/dist/output/send-web-page.js.map +1 -0
  372. package/dist/parameters/claims-requested.d.ts +3 -0
  373. package/dist/parameters/claims-requested.d.ts.map +1 -0
  374. package/dist/parameters/claims-requested.js +77 -0
  375. package/dist/parameters/claims-requested.js.map +1 -0
  376. package/dist/parameters/oidc-payload.d.ts +31 -0
  377. package/dist/parameters/oidc-payload.d.ts.map +1 -0
  378. package/dist/parameters/oidc-payload.js +25 -0
  379. package/dist/parameters/oidc-payload.js.map +1 -0
  380. package/dist/replay/replay-manager.d.ts +10 -0
  381. package/dist/replay/replay-manager.d.ts.map +1 -0
  382. package/dist/replay/replay-manager.js +23 -0
  383. package/dist/replay/replay-manager.js.map +1 -0
  384. package/dist/replay/replay-store-memory.d.ts +11 -0
  385. package/dist/replay/replay-store-memory.d.ts.map +1 -0
  386. package/dist/replay/replay-store-memory.js +30 -0
  387. package/dist/replay/replay-store-memory.js.map +1 -0
  388. package/dist/replay/replay-store-redis.d.ts +16 -0
  389. package/dist/replay/replay-store-redis.d.ts.map +1 -0
  390. package/dist/replay/replay-store-redis.js +20 -0
  391. package/dist/replay/replay-store-redis.js.map +1 -0
  392. package/dist/replay/replay-store.d.ts +16 -0
  393. package/dist/replay/replay-store.d.ts.map +1 -0
  394. package/dist/replay/replay-store.js +22 -0
  395. package/dist/replay/replay-store.js.map +1 -0
  396. package/dist/request/code.d.ts +7 -0
  397. package/dist/request/code.d.ts.map +1 -0
  398. package/dist/request/code.js +20 -0
  399. package/dist/request/code.js.map +1 -0
  400. package/dist/request/request-data.d.ts +21 -0
  401. package/dist/request/request-data.d.ts.map +1 -0
  402. package/dist/request/request-data.js +6 -0
  403. package/dist/request/request-data.js.map +1 -0
  404. package/dist/request/request-id.d.ts +6 -0
  405. package/dist/request/request-id.d.ts.map +1 -0
  406. package/dist/request/request-id.js +18 -0
  407. package/dist/request/request-id.js.map +1 -0
  408. package/dist/request/request-info.d.ts +12 -0
  409. package/dist/request/request-info.d.ts.map +1 -0
  410. package/dist/request/request-info.js +3 -0
  411. package/dist/request/request-info.js.map +1 -0
  412. package/dist/request/request-manager.d.ts +40 -0
  413. package/dist/request/request-manager.d.ts.map +1 -0
  414. package/dist/request/request-manager.js +310 -0
  415. package/dist/request/request-manager.js.map +1 -0
  416. package/dist/request/request-store-memory.d.ts +16 -0
  417. package/dist/request/request-store-memory.d.ts.map +1 -0
  418. package/dist/request/request-store-memory.js +31 -0
  419. package/dist/request/request-store-memory.js.map +1 -0
  420. package/dist/request/request-store-redis.d.ts +24 -0
  421. package/dist/request/request-store-redis.d.ts.map +1 -0
  422. package/dist/request/request-store-redis.js +58 -0
  423. package/dist/request/request-store-redis.js.map +1 -0
  424. package/dist/request/request-store.d.ts +27 -0
  425. package/dist/request/request-store.d.ts.map +1 -0
  426. package/dist/request/request-store.js +37 -0
  427. package/dist/request/request-store.js.map +1 -0
  428. package/dist/request/request-uri.d.ts +8 -0
  429. package/dist/request/request-uri.d.ts.map +1 -0
  430. package/dist/request/request-uri.js +24 -0
  431. package/dist/request/request-uri.js.map +1 -0
  432. package/dist/request/types.d.ts +328 -0
  433. package/dist/request/types.d.ts.map +1 -0
  434. package/dist/request/types.js +27 -0
  435. package/dist/request/types.js.map +1 -0
  436. package/dist/signer/signed-token-payload.d.ts +1694 -0
  437. package/dist/signer/signed-token-payload.d.ts.map +1 -0
  438. package/dist/signer/signed-token-payload.js +32 -0
  439. package/dist/signer/signed-token-payload.js.map +1 -0
  440. package/dist/signer/signer.d.ts +193 -0
  441. package/dist/signer/signer.d.ts.map +1 -0
  442. package/dist/signer/signer.js +101 -0
  443. package/dist/signer/signer.js.map +1 -0
  444. package/dist/token/refresh-token.d.ts +7 -0
  445. package/dist/token/refresh-token.d.ts.map +1 -0
  446. package/dist/token/refresh-token.js +20 -0
  447. package/dist/token/refresh-token.js.map +1 -0
  448. package/dist/token/token-claims.d.ts +1687 -0
  449. package/dist/token/token-claims.d.ts.map +1 -0
  450. package/dist/token/token-claims.js +30 -0
  451. package/dist/token/token-claims.js.map +1 -0
  452. package/dist/token/token-data.d.ts +20 -0
  453. package/dist/token/token-data.d.ts.map +1 -0
  454. package/dist/token/token-data.js +3 -0
  455. package/dist/token/token-data.js.map +1 -0
  456. package/dist/token/token-id.d.ts +7 -0
  457. package/dist/token/token-id.d.ts.map +1 -0
  458. package/dist/token/token-id.js +20 -0
  459. package/dist/token/token-id.js.map +1 -0
  460. package/dist/token/token-manager.d.ts +48 -0
  461. package/dist/token/token-manager.d.ts.map +1 -0
  462. package/dist/token/token-manager.js +421 -0
  463. package/dist/token/token-manager.js.map +1 -0
  464. package/dist/token/token-store.d.ts +35 -0
  465. package/dist/token/token-store.d.ts.map +1 -0
  466. package/dist/token/token-store.js +38 -0
  467. package/dist/token/token-store.js.map +1 -0
  468. package/dist/token/types.d.ts +250 -0
  469. package/dist/token/types.d.ts.map +1 -0
  470. package/dist/token/types.js +36 -0
  471. package/dist/token/types.js.map +1 -0
  472. package/dist/token/verify-token-claims.d.ts +17 -0
  473. package/dist/token/verify-token-claims.d.ts.map +1 -0
  474. package/dist/token/verify-token-claims.js +39 -0
  475. package/dist/token/verify-token-claims.js.map +1 -0
  476. package/package.json +83 -0
  477. package/rollup.config.js +55 -0
  478. package/src/access-token/access-token-type.ts +5 -0
  479. package/src/account/account-manager.ts +55 -0
  480. package/src/account/account-store.ts +74 -0
  481. package/src/account/account.ts +10 -0
  482. package/src/assets/app/app.tsx +28 -0
  483. package/src/assets/app/backend-data.ts +65 -0
  484. package/src/assets/app/components/accept-form.tsx +112 -0
  485. package/src/assets/app/components/account-identifier.tsx +18 -0
  486. package/src/assets/app/components/account-picker.tsx +108 -0
  487. package/src/assets/app/components/client-identifier.tsx +32 -0
  488. package/src/assets/app/components/client-name.tsx +30 -0
  489. package/src/assets/app/components/error-card.tsx +41 -0
  490. package/src/assets/app/components/help-card.tsx +42 -0
  491. package/src/assets/app/components/layout-title-page.tsx +43 -0
  492. package/src/assets/app/components/layout-welcome.tsx +58 -0
  493. package/src/assets/app/components/sign-in-form.tsx +290 -0
  494. package/src/assets/app/components/sign-up-account-form.tsx +210 -0
  495. package/src/assets/app/components/sign-up-disclaimer.tsx +44 -0
  496. package/src/assets/app/components/url-viewer.tsx +70 -0
  497. package/src/assets/app/cookies.ts +11 -0
  498. package/src/assets/app/hooks/use-api.ts +104 -0
  499. package/src/assets/app/hooks/use-bound-dispatch.ts +5 -0
  500. package/src/assets/app/hooks/use-csrf-token.ts +5 -0
  501. package/src/assets/app/lib/api.ts +64 -0
  502. package/src/assets/app/lib/clsx.ts +4 -0
  503. package/src/assets/app/lib/util.ts +10 -0
  504. package/src/assets/app/main.css +11 -0
  505. package/src/assets/app/main.tsx +28 -0
  506. package/src/assets/app/views/accept-view.tsx +51 -0
  507. package/src/assets/app/views/authorize-view.tsx +101 -0
  508. package/src/assets/app/views/error-view.tsx +27 -0
  509. package/src/assets/app/views/sign-in-view.tsx +121 -0
  510. package/src/assets/app/views/sign-up-view.tsx +93 -0
  511. package/src/assets/app/views/welcome-view.tsx +61 -0
  512. package/src/assets/asset.ts +8 -0
  513. package/src/assets/assets-middleware.ts +32 -0
  514. package/src/assets/index.ts +74 -0
  515. package/src/client/client-auth.ts +45 -0
  516. package/src/client/client-data.ts +9 -0
  517. package/src/client/client-id.ts +4 -0
  518. package/src/client/client-info.ts +13 -0
  519. package/src/client/client-manager.ts +818 -0
  520. package/src/client/client-store.ts +38 -0
  521. package/src/client/client-utils.ts +43 -0
  522. package/src/client/client.ts +231 -0
  523. package/src/constants.ts +69 -0
  524. package/src/device/device-data.ts +11 -0
  525. package/src/device/device-details.ts +43 -0
  526. package/src/device/device-id.ts +23 -0
  527. package/src/device/device-manager.ts +287 -0
  528. package/src/device/device-store.ts +35 -0
  529. package/src/device/session-id.ts +22 -0
  530. package/src/dpop/dpop-manager.ts +147 -0
  531. package/src/dpop/dpop-nonce.ts +104 -0
  532. package/src/errors/access-denied-error.ts +26 -0
  533. package/src/errors/account-selection-required-error.ts +12 -0
  534. package/src/errors/consent-required-error.ts +12 -0
  535. package/src/errors/invalid-authorization-details-error.ts +22 -0
  536. package/src/errors/invalid-client-error.ts +20 -0
  537. package/src/errors/invalid-client-id-error.ts +20 -0
  538. package/src/errors/invalid-client-metadata-error.ts +19 -0
  539. package/src/errors/invalid-dpop-key-binding-error.ts +21 -0
  540. package/src/errors/invalid-dpop-proof-error.ts +13 -0
  541. package/src/errors/invalid-grant-error.ts +16 -0
  542. package/src/errors/invalid-parameters-error.ts +12 -0
  543. package/src/errors/invalid-redirect-uri-error.ts +17 -0
  544. package/src/errors/invalid-request-error.ts +30 -0
  545. package/src/errors/invalid-token-error.ts +59 -0
  546. package/src/errors/login-required-error.ts +12 -0
  547. package/src/errors/oauth-error.ts +28 -0
  548. package/src/errors/unauthorized-client-error.ts +20 -0
  549. package/src/errors/use-dpop-nonce-error.ts +32 -0
  550. package/src/errors/www-authenticate-error.ts +65 -0
  551. package/src/index.ts +15 -0
  552. package/src/lib/html/README.md +9 -0
  553. package/src/lib/html/build-document.ts +98 -0
  554. package/src/lib/html/escapers.ts +66 -0
  555. package/src/lib/html/html.ts +61 -0
  556. package/src/lib/html/index.ts +5 -0
  557. package/src/lib/html/tags.ts +58 -0
  558. package/src/lib/html/util.ts +21 -0
  559. package/src/lib/http/README.md +11 -0
  560. package/src/lib/http/accept.ts +91 -0
  561. package/src/lib/http/context.ts +11 -0
  562. package/src/lib/http/index.ts +9 -0
  563. package/src/lib/http/method.ts +18 -0
  564. package/src/lib/http/middleware.ts +183 -0
  565. package/src/lib/http/parser.ts +64 -0
  566. package/src/lib/http/path.ts +82 -0
  567. package/src/lib/http/request.ts +141 -0
  568. package/src/lib/http/response.ts +133 -0
  569. package/src/lib/http/route.ts +56 -0
  570. package/src/lib/http/router.ts +118 -0
  571. package/src/lib/http/stream.ts +78 -0
  572. package/src/lib/http/types.ts +22 -0
  573. package/src/lib/http/url.ts +23 -0
  574. package/src/lib/redis.ts +23 -0
  575. package/src/lib/util/authorization-header.ts +26 -0
  576. package/src/lib/util/cast.ts +4 -0
  577. package/src/lib/util/crypto.ts +27 -0
  578. package/src/lib/util/date.ts +7 -0
  579. package/src/lib/util/hostname.ts +19 -0
  580. package/src/lib/util/redirect-uri.ts +46 -0
  581. package/src/lib/util/time.ts +33 -0
  582. package/src/lib/util/type.ts +4 -0
  583. package/src/lib/util/well-known.ts +8 -0
  584. package/src/metadata/build-metadata.ts +165 -0
  585. package/src/oauth-client.ts +3 -0
  586. package/src/oauth-dpop.ts +2 -0
  587. package/src/oauth-errors.ts +21 -0
  588. package/src/oauth-hooks.ts +66 -0
  589. package/src/oauth-provider.ts +1409 -0
  590. package/src/oauth-store.ts +11 -0
  591. package/src/oauth-verifier.ts +219 -0
  592. package/src/oidc/claims.ts +35 -0
  593. package/src/oidc/sub.ts +4 -0
  594. package/src/oidc/userinfo.ts +11 -0
  595. package/src/output/build-error-payload.ts +143 -0
  596. package/src/output/customization.ts +96 -0
  597. package/src/output/send-authorize-page.ts +111 -0
  598. package/src/output/send-authorize-redirect.ts +130 -0
  599. package/src/output/send-error-page.ts +41 -0
  600. package/src/output/send-web-page.ts +66 -0
  601. package/src/parameters/claims-requested.ts +106 -0
  602. package/src/parameters/oidc-payload.ts +28 -0
  603. package/src/replay/replay-manager.ts +38 -0
  604. package/src/replay/replay-store-memory.ts +36 -0
  605. package/src/replay/replay-store-redis.ts +31 -0
  606. package/src/replay/replay-store.ts +44 -0
  607. package/src/request/code.ts +24 -0
  608. package/src/request/request-data.ts +26 -0
  609. package/src/request/request-id.ts +23 -0
  610. package/src/request/request-info.ts +12 -0
  611. package/src/request/request-manager.ts +479 -0
  612. package/src/request/request-store-memory.ts +39 -0
  613. package/src/request/request-store-redis.ts +71 -0
  614. package/src/request/request-store.ts +54 -0
  615. package/src/request/request-uri.ts +29 -0
  616. package/src/request/types.ts +48 -0
  617. package/src/signer/signed-token-payload.ts +35 -0
  618. package/src/signer/signer.ts +165 -0
  619. package/src/token/refresh-token.ts +31 -0
  620. package/src/token/token-claims.ts +31 -0
  621. package/src/token/token-data.ts +33 -0
  622. package/src/token/token-id.ts +26 -0
  623. package/src/token/token-manager.ts +591 -0
  624. package/src/token/token-store.ts +78 -0
  625. package/src/token/types.ts +86 -0
  626. package/src/token/verify-token-claims.ts +65 -0
  627. package/tailwind.config.js +13 -0
  628. package/tsconfig.backend.json +9 -0
  629. package/tsconfig.frontend.json +11 -0
  630. package/tsconfig.json +8 -0
  631. package/tsconfig.tools.json +8 -0
@@ -0,0 +1,1687 @@
1
+ import z from 'zod';
2
+ import { Simplify } from '../lib/util/type.js';
3
+ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
4
+ iat: z.ZodNumber;
5
+ exp: z.ZodNumber;
6
+ aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ iat: number;
9
+ exp: number;
10
+ aud: string | [string, ...string[]];
11
+ }, {
12
+ iat: number;
13
+ exp: number;
14
+ aud: string | [string, ...string[]];
15
+ }>, z.ZodObject<z.objectUtil.extendShape<{
16
+ nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
17
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18
+ htm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19
+ htu: z.ZodOptional<z.ZodOptional<z.ZodString>>;
20
+ ath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21
+ email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
22
+ email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
23
+ phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24
+ phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
25
+ address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
26
+ formatted: z.ZodOptional<z.ZodString>;
27
+ street_address: z.ZodOptional<z.ZodString>;
28
+ locality: z.ZodOptional<z.ZodString>;
29
+ region: z.ZodOptional<z.ZodString>;
30
+ postal_code: z.ZodOptional<z.ZodString>;
31
+ country: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ formatted?: string | undefined;
34
+ street_address?: string | undefined;
35
+ locality?: string | undefined;
36
+ region?: string | undefined;
37
+ postal_code?: string | undefined;
38
+ country?: string | undefined;
39
+ }, {
40
+ formatted?: string | undefined;
41
+ street_address?: string | undefined;
42
+ locality?: string | undefined;
43
+ region?: string | undefined;
44
+ postal_code?: string | undefined;
45
+ country?: string | undefined;
46
+ }>>>;
47
+ profile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
48
+ family_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
49
+ given_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
50
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
51
+ nickname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
52
+ preferred_username: z.ZodOptional<z.ZodOptional<z.ZodString>>;
53
+ gender: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
+ picture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
55
+ website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
56
+ birthdate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
57
+ zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
58
+ locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
59
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
60
+ sub: z.ZodOptional<z.ZodOptional<z.ZodString>>;
61
+ nbf: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
62
+ acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
63
+ azp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
64
+ amr: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
65
+ cnf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
66
+ kid: z.ZodOptional<z.ZodString>;
67
+ jwk: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
68
+ kty: z.ZodString;
69
+ alg: z.ZodOptional<z.ZodString>;
70
+ kid: z.ZodOptional<z.ZodString>;
71
+ ext: z.ZodOptional<z.ZodBoolean>;
72
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
73
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
74
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
+ x5t: z.ZodOptional<z.ZodString>;
76
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
77
+ x5u: z.ZodOptional<z.ZodString>;
78
+ }, {
79
+ kty: z.ZodEffects<z.ZodString, string, string>;
80
+ }>, "strip", z.ZodTypeAny, {
81
+ kty: string;
82
+ alg?: string | undefined;
83
+ kid?: string | undefined;
84
+ ext?: boolean | undefined;
85
+ use?: "sig" | "enc" | undefined;
86
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
87
+ x5c?: string[] | undefined;
88
+ x5t?: string | undefined;
89
+ 'x5t#S256'?: string | undefined;
90
+ x5u?: string | undefined;
91
+ }, {
92
+ kty: string;
93
+ alg?: string | undefined;
94
+ kid?: string | undefined;
95
+ ext?: boolean | undefined;
96
+ use?: "sig" | "enc" | undefined;
97
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
98
+ x5c?: string[] | undefined;
99
+ x5t?: string | undefined;
100
+ 'x5t#S256'?: string | undefined;
101
+ x5u?: string | undefined;
102
+ }>, z.ZodObject<z.objectUtil.extendShape<{
103
+ kty: z.ZodString;
104
+ alg: z.ZodOptional<z.ZodString>;
105
+ kid: z.ZodOptional<z.ZodString>;
106
+ ext: z.ZodOptional<z.ZodBoolean>;
107
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
108
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
109
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ x5t: z.ZodOptional<z.ZodString>;
111
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
112
+ x5u: z.ZodOptional<z.ZodString>;
113
+ }, {
114
+ kty: z.ZodLiteral<"RSA">;
115
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
116
+ n: z.ZodString;
117
+ e: z.ZodString;
118
+ d: z.ZodOptional<z.ZodString>;
119
+ p: z.ZodOptional<z.ZodString>;
120
+ q: z.ZodOptional<z.ZodString>;
121
+ dp: z.ZodOptional<z.ZodString>;
122
+ dq: z.ZodOptional<z.ZodString>;
123
+ qi: z.ZodOptional<z.ZodString>;
124
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
+ r: z.ZodOptional<z.ZodString>;
126
+ d: z.ZodOptional<z.ZodString>;
127
+ t: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ d?: string | undefined;
130
+ r?: string | undefined;
131
+ t?: string | undefined;
132
+ }, {
133
+ d?: string | undefined;
134
+ r?: string | undefined;
135
+ t?: string | undefined;
136
+ }>, "atleastone">>;
137
+ }>, "strip", z.ZodTypeAny, {
138
+ kty: "RSA";
139
+ n: string;
140
+ e: string;
141
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
142
+ kid?: string | undefined;
143
+ ext?: boolean | undefined;
144
+ use?: "sig" | "enc" | undefined;
145
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
146
+ x5c?: string[] | undefined;
147
+ x5t?: string | undefined;
148
+ 'x5t#S256'?: string | undefined;
149
+ x5u?: string | undefined;
150
+ d?: string | undefined;
151
+ p?: string | undefined;
152
+ q?: string | undefined;
153
+ dp?: string | undefined;
154
+ dq?: string | undefined;
155
+ qi?: string | undefined;
156
+ oth?: [{
157
+ d?: string | undefined;
158
+ r?: string | undefined;
159
+ t?: string | undefined;
160
+ }, ...{
161
+ d?: string | undefined;
162
+ r?: string | undefined;
163
+ t?: string | undefined;
164
+ }[]] | undefined;
165
+ }, {
166
+ kty: "RSA";
167
+ n: string;
168
+ e: string;
169
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
170
+ kid?: string | undefined;
171
+ ext?: boolean | undefined;
172
+ use?: "sig" | "enc" | undefined;
173
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
174
+ x5c?: string[] | undefined;
175
+ x5t?: string | undefined;
176
+ 'x5t#S256'?: string | undefined;
177
+ x5u?: string | undefined;
178
+ d?: string | undefined;
179
+ p?: string | undefined;
180
+ q?: string | undefined;
181
+ dp?: string | undefined;
182
+ dq?: string | undefined;
183
+ qi?: string | undefined;
184
+ oth?: [{
185
+ d?: string | undefined;
186
+ r?: string | undefined;
187
+ t?: string | undefined;
188
+ }, ...{
189
+ d?: string | undefined;
190
+ r?: string | undefined;
191
+ t?: string | undefined;
192
+ }[]] | undefined;
193
+ }>, z.ZodObject<z.objectUtil.extendShape<{
194
+ kty: z.ZodString;
195
+ alg: z.ZodOptional<z.ZodString>;
196
+ kid: z.ZodOptional<z.ZodString>;
197
+ ext: z.ZodOptional<z.ZodBoolean>;
198
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
199
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
200
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ x5t: z.ZodOptional<z.ZodString>;
202
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
203
+ x5u: z.ZodOptional<z.ZodString>;
204
+ }, {
205
+ kty: z.ZodLiteral<"EC">;
206
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
207
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
208
+ x: z.ZodString;
209
+ y: z.ZodString;
210
+ d: z.ZodOptional<z.ZodString>;
211
+ }>, "strip", z.ZodTypeAny, {
212
+ kty: "EC";
213
+ crv: "P-256" | "P-384" | "P-521";
214
+ x: string;
215
+ y: string;
216
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
217
+ kid?: string | undefined;
218
+ ext?: boolean | undefined;
219
+ use?: "sig" | "enc" | undefined;
220
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
221
+ x5c?: string[] | undefined;
222
+ x5t?: string | undefined;
223
+ 'x5t#S256'?: string | undefined;
224
+ x5u?: string | undefined;
225
+ d?: string | undefined;
226
+ }, {
227
+ kty: "EC";
228
+ crv: "P-256" | "P-384" | "P-521";
229
+ x: string;
230
+ y: string;
231
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
232
+ kid?: string | undefined;
233
+ ext?: boolean | undefined;
234
+ use?: "sig" | "enc" | undefined;
235
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
236
+ x5c?: string[] | undefined;
237
+ x5t?: string | undefined;
238
+ 'x5t#S256'?: string | undefined;
239
+ x5u?: string | undefined;
240
+ d?: string | undefined;
241
+ }>, z.ZodObject<z.objectUtil.extendShape<{
242
+ kty: z.ZodString;
243
+ alg: z.ZodOptional<z.ZodString>;
244
+ kid: z.ZodOptional<z.ZodString>;
245
+ ext: z.ZodOptional<z.ZodBoolean>;
246
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
247
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
248
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
+ x5t: z.ZodOptional<z.ZodString>;
250
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
251
+ x5u: z.ZodOptional<z.ZodString>;
252
+ }, {
253
+ kty: z.ZodLiteral<"EC">;
254
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
255
+ crv: z.ZodEnum<["secp256k1"]>;
256
+ x: z.ZodString;
257
+ y: z.ZodString;
258
+ d: z.ZodOptional<z.ZodString>;
259
+ }>, "strip", z.ZodTypeAny, {
260
+ kty: "EC";
261
+ crv: "secp256k1";
262
+ x: string;
263
+ y: string;
264
+ alg?: "ES256K" | undefined;
265
+ kid?: string | undefined;
266
+ ext?: boolean | undefined;
267
+ use?: "sig" | "enc" | undefined;
268
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
269
+ x5c?: string[] | undefined;
270
+ x5t?: string | undefined;
271
+ 'x5t#S256'?: string | undefined;
272
+ x5u?: string | undefined;
273
+ d?: string | undefined;
274
+ }, {
275
+ kty: "EC";
276
+ crv: "secp256k1";
277
+ x: string;
278
+ y: string;
279
+ alg?: "ES256K" | undefined;
280
+ kid?: string | undefined;
281
+ ext?: boolean | undefined;
282
+ use?: "sig" | "enc" | undefined;
283
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
284
+ x5c?: string[] | undefined;
285
+ x5t?: string | undefined;
286
+ 'x5t#S256'?: string | undefined;
287
+ x5u?: string | undefined;
288
+ d?: string | undefined;
289
+ }>, z.ZodObject<z.objectUtil.extendShape<{
290
+ kty: z.ZodString;
291
+ alg: z.ZodOptional<z.ZodString>;
292
+ kid: z.ZodOptional<z.ZodString>;
293
+ ext: z.ZodOptional<z.ZodBoolean>;
294
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
295
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
296
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
+ x5t: z.ZodOptional<z.ZodString>;
298
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
299
+ x5u: z.ZodOptional<z.ZodString>;
300
+ }, {
301
+ kty: z.ZodLiteral<"OKP">;
302
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
303
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
304
+ x: z.ZodString;
305
+ d: z.ZodOptional<z.ZodString>;
306
+ }>, "strip", z.ZodTypeAny, {
307
+ kty: "OKP";
308
+ crv: "Ed25519" | "Ed448";
309
+ x: string;
310
+ alg?: "EdDSA" | undefined;
311
+ kid?: string | undefined;
312
+ ext?: boolean | undefined;
313
+ use?: "sig" | "enc" | undefined;
314
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
315
+ x5c?: string[] | undefined;
316
+ x5t?: string | undefined;
317
+ 'x5t#S256'?: string | undefined;
318
+ x5u?: string | undefined;
319
+ d?: string | undefined;
320
+ }, {
321
+ kty: "OKP";
322
+ crv: "Ed25519" | "Ed448";
323
+ x: string;
324
+ alg?: "EdDSA" | undefined;
325
+ kid?: string | undefined;
326
+ ext?: boolean | undefined;
327
+ use?: "sig" | "enc" | undefined;
328
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
329
+ x5c?: string[] | undefined;
330
+ x5t?: string | undefined;
331
+ 'x5t#S256'?: string | undefined;
332
+ x5u?: string | undefined;
333
+ d?: string | undefined;
334
+ }>, z.ZodObject<z.objectUtil.extendShape<{
335
+ kty: z.ZodString;
336
+ alg: z.ZodOptional<z.ZodString>;
337
+ kid: z.ZodOptional<z.ZodString>;
338
+ ext: z.ZodOptional<z.ZodBoolean>;
339
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
340
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
341
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ x5t: z.ZodOptional<z.ZodString>;
343
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
344
+ x5u: z.ZodOptional<z.ZodString>;
345
+ }, {
346
+ kty: z.ZodLiteral<"oct">;
347
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
348
+ k: z.ZodString;
349
+ }>, "strip", z.ZodTypeAny, {
350
+ kty: "oct";
351
+ k: string;
352
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
353
+ kid?: string | undefined;
354
+ ext?: boolean | undefined;
355
+ use?: "sig" | "enc" | undefined;
356
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
357
+ x5c?: string[] | undefined;
358
+ x5t?: string | undefined;
359
+ 'x5t#S256'?: string | undefined;
360
+ x5u?: string | undefined;
361
+ }, {
362
+ kty: "oct";
363
+ k: string;
364
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
365
+ kid?: string | undefined;
366
+ ext?: boolean | undefined;
367
+ use?: "sig" | "enc" | undefined;
368
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
369
+ x5c?: string[] | undefined;
370
+ x5t?: string | undefined;
371
+ 'x5t#S256'?: string | undefined;
372
+ x5u?: string | undefined;
373
+ }>]>, {
374
+ kty: "RSA";
375
+ n: string;
376
+ e: string;
377
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
378
+ kid?: string | undefined;
379
+ ext?: boolean | undefined;
380
+ use?: "sig" | "enc" | undefined;
381
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
382
+ x5c?: string[] | undefined;
383
+ x5t?: string | undefined;
384
+ 'x5t#S256'?: string | undefined;
385
+ x5u?: string | undefined;
386
+ d?: string | undefined;
387
+ p?: string | undefined;
388
+ q?: string | undefined;
389
+ dp?: string | undefined;
390
+ dq?: string | undefined;
391
+ qi?: string | undefined;
392
+ oth?: [{
393
+ d?: string | undefined;
394
+ r?: string | undefined;
395
+ t?: string | undefined;
396
+ }, ...{
397
+ d?: string | undefined;
398
+ r?: string | undefined;
399
+ t?: string | undefined;
400
+ }[]] | undefined;
401
+ } | {
402
+ kty: "EC";
403
+ crv: "P-256" | "P-384" | "P-521";
404
+ x: string;
405
+ y: string;
406
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
407
+ kid?: string | undefined;
408
+ ext?: boolean | undefined;
409
+ use?: "sig" | "enc" | undefined;
410
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
411
+ x5c?: string[] | undefined;
412
+ x5t?: string | undefined;
413
+ 'x5t#S256'?: string | undefined;
414
+ x5u?: string | undefined;
415
+ d?: string | undefined;
416
+ } | {
417
+ kty: "EC";
418
+ crv: "secp256k1";
419
+ x: string;
420
+ y: string;
421
+ alg?: "ES256K" | undefined;
422
+ kid?: string | undefined;
423
+ ext?: boolean | undefined;
424
+ use?: "sig" | "enc" | undefined;
425
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
426
+ x5c?: string[] | undefined;
427
+ x5t?: string | undefined;
428
+ 'x5t#S256'?: string | undefined;
429
+ x5u?: string | undefined;
430
+ d?: string | undefined;
431
+ } | {
432
+ kty: "OKP";
433
+ crv: "Ed25519" | "Ed448";
434
+ x: string;
435
+ alg?: "EdDSA" | undefined;
436
+ kid?: string | undefined;
437
+ ext?: boolean | undefined;
438
+ use?: "sig" | "enc" | undefined;
439
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
440
+ x5c?: string[] | undefined;
441
+ x5t?: string | undefined;
442
+ 'x5t#S256'?: string | undefined;
443
+ x5u?: string | undefined;
444
+ d?: string | undefined;
445
+ } | {
446
+ kty: "oct";
447
+ k: string;
448
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
449
+ kid?: string | undefined;
450
+ ext?: boolean | undefined;
451
+ use?: "sig" | "enc" | undefined;
452
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
453
+ x5c?: string[] | undefined;
454
+ x5t?: string | undefined;
455
+ 'x5t#S256'?: string | undefined;
456
+ x5u?: string | undefined;
457
+ } | {
458
+ kty: string;
459
+ alg?: string | undefined;
460
+ kid?: string | undefined;
461
+ ext?: boolean | undefined;
462
+ use?: "sig" | "enc" | undefined;
463
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
464
+ x5c?: string[] | undefined;
465
+ x5t?: string | undefined;
466
+ 'x5t#S256'?: string | undefined;
467
+ x5u?: string | undefined;
468
+ }, {
469
+ kty: "RSA";
470
+ n: string;
471
+ e: string;
472
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
473
+ kid?: string | undefined;
474
+ ext?: boolean | undefined;
475
+ use?: "sig" | "enc" | undefined;
476
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
477
+ x5c?: string[] | undefined;
478
+ x5t?: string | undefined;
479
+ 'x5t#S256'?: string | undefined;
480
+ x5u?: string | undefined;
481
+ d?: string | undefined;
482
+ p?: string | undefined;
483
+ q?: string | undefined;
484
+ dp?: string | undefined;
485
+ dq?: string | undefined;
486
+ qi?: string | undefined;
487
+ oth?: [{
488
+ d?: string | undefined;
489
+ r?: string | undefined;
490
+ t?: string | undefined;
491
+ }, ...{
492
+ d?: string | undefined;
493
+ r?: string | undefined;
494
+ t?: string | undefined;
495
+ }[]] | undefined;
496
+ } | {
497
+ kty: "EC";
498
+ crv: "P-256" | "P-384" | "P-521";
499
+ x: string;
500
+ y: string;
501
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
502
+ kid?: string | undefined;
503
+ ext?: boolean | undefined;
504
+ use?: "sig" | "enc" | undefined;
505
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
506
+ x5c?: string[] | undefined;
507
+ x5t?: string | undefined;
508
+ 'x5t#S256'?: string | undefined;
509
+ x5u?: string | undefined;
510
+ d?: string | undefined;
511
+ } | {
512
+ kty: "EC";
513
+ crv: "secp256k1";
514
+ x: string;
515
+ y: string;
516
+ alg?: "ES256K" | undefined;
517
+ kid?: string | undefined;
518
+ ext?: boolean | undefined;
519
+ use?: "sig" | "enc" | undefined;
520
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
521
+ x5c?: string[] | undefined;
522
+ x5t?: string | undefined;
523
+ 'x5t#S256'?: string | undefined;
524
+ x5u?: string | undefined;
525
+ d?: string | undefined;
526
+ } | {
527
+ kty: "OKP";
528
+ crv: "Ed25519" | "Ed448";
529
+ x: string;
530
+ alg?: "EdDSA" | undefined;
531
+ kid?: string | undefined;
532
+ ext?: boolean | undefined;
533
+ use?: "sig" | "enc" | undefined;
534
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
535
+ x5c?: string[] | undefined;
536
+ x5t?: string | undefined;
537
+ 'x5t#S256'?: string | undefined;
538
+ x5u?: string | undefined;
539
+ d?: string | undefined;
540
+ } | {
541
+ kty: "oct";
542
+ k: string;
543
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
544
+ kid?: string | undefined;
545
+ ext?: boolean | undefined;
546
+ use?: "sig" | "enc" | undefined;
547
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
548
+ x5c?: string[] | undefined;
549
+ x5t?: string | undefined;
550
+ 'x5t#S256'?: string | undefined;
551
+ x5u?: string | undefined;
552
+ } | {
553
+ kty: string;
554
+ alg?: string | undefined;
555
+ kid?: string | undefined;
556
+ ext?: boolean | undefined;
557
+ use?: "sig" | "enc" | undefined;
558
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
559
+ x5c?: string[] | undefined;
560
+ x5t?: string | undefined;
561
+ 'x5t#S256'?: string | undefined;
562
+ x5u?: string | undefined;
563
+ }>, {
564
+ kty: "RSA";
565
+ n: string;
566
+ e: string;
567
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
568
+ kid?: string | undefined;
569
+ ext?: boolean | undefined;
570
+ use?: "sig" | "enc" | undefined;
571
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
572
+ x5c?: string[] | undefined;
573
+ x5t?: string | undefined;
574
+ 'x5t#S256'?: string | undefined;
575
+ x5u?: string | undefined;
576
+ d?: string | undefined;
577
+ p?: string | undefined;
578
+ q?: string | undefined;
579
+ dp?: string | undefined;
580
+ dq?: string | undefined;
581
+ qi?: string | undefined;
582
+ oth?: [{
583
+ d?: string | undefined;
584
+ r?: string | undefined;
585
+ t?: string | undefined;
586
+ }, ...{
587
+ d?: string | undefined;
588
+ r?: string | undefined;
589
+ t?: string | undefined;
590
+ }[]] | undefined;
591
+ } | {
592
+ kty: "EC";
593
+ crv: "P-256" | "P-384" | "P-521";
594
+ x: string;
595
+ y: string;
596
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
597
+ kid?: string | undefined;
598
+ ext?: boolean | undefined;
599
+ use?: "sig" | "enc" | undefined;
600
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
601
+ x5c?: string[] | undefined;
602
+ x5t?: string | undefined;
603
+ 'x5t#S256'?: string | undefined;
604
+ x5u?: string | undefined;
605
+ d?: string | undefined;
606
+ } | {
607
+ kty: "EC";
608
+ crv: "secp256k1";
609
+ x: string;
610
+ y: string;
611
+ alg?: "ES256K" | undefined;
612
+ kid?: string | undefined;
613
+ ext?: boolean | undefined;
614
+ use?: "sig" | "enc" | undefined;
615
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
616
+ x5c?: string[] | undefined;
617
+ x5t?: string | undefined;
618
+ 'x5t#S256'?: string | undefined;
619
+ x5u?: string | undefined;
620
+ d?: string | undefined;
621
+ } | {
622
+ kty: "OKP";
623
+ crv: "Ed25519" | "Ed448";
624
+ x: string;
625
+ alg?: "EdDSA" | undefined;
626
+ kid?: string | undefined;
627
+ ext?: boolean | undefined;
628
+ use?: "sig" | "enc" | undefined;
629
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
630
+ x5c?: string[] | undefined;
631
+ x5t?: string | undefined;
632
+ 'x5t#S256'?: string | undefined;
633
+ x5u?: string | undefined;
634
+ d?: string | undefined;
635
+ } | {
636
+ kty: "oct";
637
+ k: string;
638
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
639
+ kid?: string | undefined;
640
+ ext?: boolean | undefined;
641
+ use?: "sig" | "enc" | undefined;
642
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
643
+ x5c?: string[] | undefined;
644
+ x5t?: string | undefined;
645
+ 'x5t#S256'?: string | undefined;
646
+ x5u?: string | undefined;
647
+ } | {
648
+ kty: string;
649
+ alg?: string | undefined;
650
+ kid?: string | undefined;
651
+ ext?: boolean | undefined;
652
+ use?: "sig" | "enc" | undefined;
653
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
654
+ x5c?: string[] | undefined;
655
+ x5t?: string | undefined;
656
+ 'x5t#S256'?: string | undefined;
657
+ x5u?: string | undefined;
658
+ }, {
659
+ kty: "RSA";
660
+ n: string;
661
+ e: string;
662
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
663
+ kid?: string | undefined;
664
+ ext?: boolean | undefined;
665
+ use?: "sig" | "enc" | undefined;
666
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
667
+ x5c?: string[] | undefined;
668
+ x5t?: string | undefined;
669
+ 'x5t#S256'?: string | undefined;
670
+ x5u?: string | undefined;
671
+ d?: string | undefined;
672
+ p?: string | undefined;
673
+ q?: string | undefined;
674
+ dp?: string | undefined;
675
+ dq?: string | undefined;
676
+ qi?: string | undefined;
677
+ oth?: [{
678
+ d?: string | undefined;
679
+ r?: string | undefined;
680
+ t?: string | undefined;
681
+ }, ...{
682
+ d?: string | undefined;
683
+ r?: string | undefined;
684
+ t?: string | undefined;
685
+ }[]] | undefined;
686
+ } | {
687
+ kty: "EC";
688
+ crv: "P-256" | "P-384" | "P-521";
689
+ x: string;
690
+ y: string;
691
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
692
+ kid?: string | undefined;
693
+ ext?: boolean | undefined;
694
+ use?: "sig" | "enc" | undefined;
695
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
696
+ x5c?: string[] | undefined;
697
+ x5t?: string | undefined;
698
+ 'x5t#S256'?: string | undefined;
699
+ x5u?: string | undefined;
700
+ d?: string | undefined;
701
+ } | {
702
+ kty: "EC";
703
+ crv: "secp256k1";
704
+ x: string;
705
+ y: string;
706
+ alg?: "ES256K" | undefined;
707
+ kid?: string | undefined;
708
+ ext?: boolean | undefined;
709
+ use?: "sig" | "enc" | undefined;
710
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
711
+ x5c?: string[] | undefined;
712
+ x5t?: string | undefined;
713
+ 'x5t#S256'?: string | undefined;
714
+ x5u?: string | undefined;
715
+ d?: string | undefined;
716
+ } | {
717
+ kty: "OKP";
718
+ crv: "Ed25519" | "Ed448";
719
+ x: string;
720
+ alg?: "EdDSA" | undefined;
721
+ kid?: string | undefined;
722
+ ext?: boolean | undefined;
723
+ use?: "sig" | "enc" | undefined;
724
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
725
+ x5c?: string[] | undefined;
726
+ x5t?: string | undefined;
727
+ 'x5t#S256'?: string | undefined;
728
+ x5u?: string | undefined;
729
+ d?: string | undefined;
730
+ } | {
731
+ kty: "oct";
732
+ k: string;
733
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
734
+ kid?: string | undefined;
735
+ ext?: boolean | undefined;
736
+ use?: "sig" | "enc" | undefined;
737
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
738
+ x5c?: string[] | undefined;
739
+ x5t?: string | undefined;
740
+ 'x5t#S256'?: string | undefined;
741
+ x5u?: string | undefined;
742
+ } | {
743
+ kty: string;
744
+ alg?: string | undefined;
745
+ kid?: string | undefined;
746
+ ext?: boolean | undefined;
747
+ use?: "sig" | "enc" | undefined;
748
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
749
+ x5c?: string[] | undefined;
750
+ x5t?: string | undefined;
751
+ 'x5t#S256'?: string | undefined;
752
+ x5u?: string | undefined;
753
+ }>, {
754
+ kty: "RSA";
755
+ n: string;
756
+ e: string;
757
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
758
+ kid?: string | undefined;
759
+ ext?: boolean | undefined;
760
+ use?: "sig" | "enc" | undefined;
761
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
762
+ x5c?: string[] | undefined;
763
+ x5t?: string | undefined;
764
+ 'x5t#S256'?: string | undefined;
765
+ x5u?: string | undefined;
766
+ d?: string | undefined;
767
+ p?: string | undefined;
768
+ q?: string | undefined;
769
+ dp?: string | undefined;
770
+ dq?: string | undefined;
771
+ qi?: string | undefined;
772
+ oth?: [{
773
+ d?: string | undefined;
774
+ r?: string | undefined;
775
+ t?: string | undefined;
776
+ }, ...{
777
+ d?: string | undefined;
778
+ r?: string | undefined;
779
+ t?: string | undefined;
780
+ }[]] | undefined;
781
+ } | {
782
+ kty: "EC";
783
+ crv: "P-256" | "P-384" | "P-521";
784
+ x: string;
785
+ y: string;
786
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
787
+ kid?: string | undefined;
788
+ ext?: boolean | undefined;
789
+ use?: "sig" | "enc" | undefined;
790
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
791
+ x5c?: string[] | undefined;
792
+ x5t?: string | undefined;
793
+ 'x5t#S256'?: string | undefined;
794
+ x5u?: string | undefined;
795
+ d?: string | undefined;
796
+ } | {
797
+ kty: "EC";
798
+ crv: "secp256k1";
799
+ x: string;
800
+ y: string;
801
+ alg?: "ES256K" | undefined;
802
+ kid?: string | undefined;
803
+ ext?: boolean | undefined;
804
+ use?: "sig" | "enc" | undefined;
805
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
806
+ x5c?: string[] | undefined;
807
+ x5t?: string | undefined;
808
+ 'x5t#S256'?: string | undefined;
809
+ x5u?: string | undefined;
810
+ d?: string | undefined;
811
+ } | {
812
+ kty: "OKP";
813
+ crv: "Ed25519" | "Ed448";
814
+ x: string;
815
+ alg?: "EdDSA" | undefined;
816
+ kid?: string | undefined;
817
+ ext?: boolean | undefined;
818
+ use?: "sig" | "enc" | undefined;
819
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
820
+ x5c?: string[] | undefined;
821
+ x5t?: string | undefined;
822
+ 'x5t#S256'?: string | undefined;
823
+ x5u?: string | undefined;
824
+ d?: string | undefined;
825
+ } | {
826
+ kty: "oct";
827
+ k: string;
828
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
829
+ kid?: string | undefined;
830
+ ext?: boolean | undefined;
831
+ use?: "sig" | "enc" | undefined;
832
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
833
+ x5c?: string[] | undefined;
834
+ x5t?: string | undefined;
835
+ 'x5t#S256'?: string | undefined;
836
+ x5u?: string | undefined;
837
+ } | {
838
+ kty: string;
839
+ alg?: string | undefined;
840
+ kid?: string | undefined;
841
+ ext?: boolean | undefined;
842
+ use?: "sig" | "enc" | undefined;
843
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
844
+ x5c?: string[] | undefined;
845
+ x5t?: string | undefined;
846
+ 'x5t#S256'?: string | undefined;
847
+ x5u?: string | undefined;
848
+ }, {
849
+ kty: "RSA";
850
+ n: string;
851
+ e: string;
852
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
853
+ kid?: string | undefined;
854
+ ext?: boolean | undefined;
855
+ use?: "sig" | "enc" | undefined;
856
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
857
+ x5c?: string[] | undefined;
858
+ x5t?: string | undefined;
859
+ 'x5t#S256'?: string | undefined;
860
+ x5u?: string | undefined;
861
+ d?: string | undefined;
862
+ p?: string | undefined;
863
+ q?: string | undefined;
864
+ dp?: string | undefined;
865
+ dq?: string | undefined;
866
+ qi?: string | undefined;
867
+ oth?: [{
868
+ d?: string | undefined;
869
+ r?: string | undefined;
870
+ t?: string | undefined;
871
+ }, ...{
872
+ d?: string | undefined;
873
+ r?: string | undefined;
874
+ t?: string | undefined;
875
+ }[]] | undefined;
876
+ } | {
877
+ kty: "EC";
878
+ crv: "P-256" | "P-384" | "P-521";
879
+ x: string;
880
+ y: string;
881
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
882
+ kid?: string | undefined;
883
+ ext?: boolean | undefined;
884
+ use?: "sig" | "enc" | undefined;
885
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
886
+ x5c?: string[] | undefined;
887
+ x5t?: string | undefined;
888
+ 'x5t#S256'?: string | undefined;
889
+ x5u?: string | undefined;
890
+ d?: string | undefined;
891
+ } | {
892
+ kty: "EC";
893
+ crv: "secp256k1";
894
+ x: string;
895
+ y: string;
896
+ alg?: "ES256K" | undefined;
897
+ kid?: string | undefined;
898
+ ext?: boolean | undefined;
899
+ use?: "sig" | "enc" | undefined;
900
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
901
+ x5c?: string[] | undefined;
902
+ x5t?: string | undefined;
903
+ 'x5t#S256'?: string | undefined;
904
+ x5u?: string | undefined;
905
+ d?: string | undefined;
906
+ } | {
907
+ kty: "OKP";
908
+ crv: "Ed25519" | "Ed448";
909
+ x: string;
910
+ alg?: "EdDSA" | undefined;
911
+ kid?: string | undefined;
912
+ ext?: boolean | undefined;
913
+ use?: "sig" | "enc" | undefined;
914
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
915
+ x5c?: string[] | undefined;
916
+ x5t?: string | undefined;
917
+ 'x5t#S256'?: string | undefined;
918
+ x5u?: string | undefined;
919
+ d?: string | undefined;
920
+ } | {
921
+ kty: "oct";
922
+ k: string;
923
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
924
+ kid?: string | undefined;
925
+ ext?: boolean | undefined;
926
+ use?: "sig" | "enc" | undefined;
927
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
928
+ x5c?: string[] | undefined;
929
+ x5t?: string | undefined;
930
+ 'x5t#S256'?: string | undefined;
931
+ x5u?: string | undefined;
932
+ } | {
933
+ kty: string;
934
+ alg?: string | undefined;
935
+ kid?: string | undefined;
936
+ ext?: boolean | undefined;
937
+ use?: "sig" | "enc" | undefined;
938
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
939
+ x5c?: string[] | undefined;
940
+ x5t?: string | undefined;
941
+ 'x5t#S256'?: string | undefined;
942
+ x5u?: string | undefined;
943
+ }>, {
944
+ kty: "RSA";
945
+ n: string;
946
+ e: string;
947
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
948
+ kid?: string | undefined;
949
+ ext?: boolean | undefined;
950
+ use?: "sig" | "enc" | undefined;
951
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
952
+ x5c?: string[] | undefined;
953
+ x5t?: string | undefined;
954
+ 'x5t#S256'?: string | undefined;
955
+ x5u?: string | undefined;
956
+ d?: string | undefined;
957
+ p?: string | undefined;
958
+ q?: string | undefined;
959
+ dp?: string | undefined;
960
+ dq?: string | undefined;
961
+ qi?: string | undefined;
962
+ oth?: [{
963
+ d?: string | undefined;
964
+ r?: string | undefined;
965
+ t?: string | undefined;
966
+ }, ...{
967
+ d?: string | undefined;
968
+ r?: string | undefined;
969
+ t?: string | undefined;
970
+ }[]] | undefined;
971
+ } | {
972
+ kty: "EC";
973
+ crv: "P-256" | "P-384" | "P-521";
974
+ x: string;
975
+ y: string;
976
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
977
+ kid?: string | undefined;
978
+ ext?: boolean | undefined;
979
+ use?: "sig" | "enc" | undefined;
980
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
981
+ x5c?: string[] | undefined;
982
+ x5t?: string | undefined;
983
+ 'x5t#S256'?: string | undefined;
984
+ x5u?: string | undefined;
985
+ d?: string | undefined;
986
+ } | {
987
+ kty: "EC";
988
+ crv: "secp256k1";
989
+ x: string;
990
+ y: string;
991
+ alg?: "ES256K" | undefined;
992
+ kid?: string | undefined;
993
+ ext?: boolean | undefined;
994
+ use?: "sig" | "enc" | undefined;
995
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
996
+ x5c?: string[] | undefined;
997
+ x5t?: string | undefined;
998
+ 'x5t#S256'?: string | undefined;
999
+ x5u?: string | undefined;
1000
+ d?: string | undefined;
1001
+ } | {
1002
+ kty: "OKP";
1003
+ crv: "Ed25519" | "Ed448";
1004
+ x: string;
1005
+ alg?: "EdDSA" | undefined;
1006
+ kid?: string | undefined;
1007
+ ext?: boolean | undefined;
1008
+ use?: "sig" | "enc" | undefined;
1009
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1010
+ x5c?: string[] | undefined;
1011
+ x5t?: string | undefined;
1012
+ 'x5t#S256'?: string | undefined;
1013
+ x5u?: string | undefined;
1014
+ d?: string | undefined;
1015
+ } | {
1016
+ kty: "oct";
1017
+ k: string;
1018
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1019
+ kid?: string | undefined;
1020
+ ext?: boolean | undefined;
1021
+ use?: "sig" | "enc" | undefined;
1022
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1023
+ x5c?: string[] | undefined;
1024
+ x5t?: string | undefined;
1025
+ 'x5t#S256'?: string | undefined;
1026
+ x5u?: string | undefined;
1027
+ } | {
1028
+ kty: string;
1029
+ alg?: string | undefined;
1030
+ kid?: string | undefined;
1031
+ ext?: boolean | undefined;
1032
+ use?: "sig" | "enc" | undefined;
1033
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1034
+ x5c?: string[] | undefined;
1035
+ x5t?: string | undefined;
1036
+ 'x5t#S256'?: string | undefined;
1037
+ x5u?: string | undefined;
1038
+ }, {
1039
+ kty: "RSA";
1040
+ n: string;
1041
+ e: string;
1042
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1043
+ kid?: string | undefined;
1044
+ ext?: boolean | undefined;
1045
+ use?: "sig" | "enc" | undefined;
1046
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1047
+ x5c?: string[] | undefined;
1048
+ x5t?: string | undefined;
1049
+ 'x5t#S256'?: string | undefined;
1050
+ x5u?: string | undefined;
1051
+ d?: string | undefined;
1052
+ p?: string | undefined;
1053
+ q?: string | undefined;
1054
+ dp?: string | undefined;
1055
+ dq?: string | undefined;
1056
+ qi?: string | undefined;
1057
+ oth?: [{
1058
+ d?: string | undefined;
1059
+ r?: string | undefined;
1060
+ t?: string | undefined;
1061
+ }, ...{
1062
+ d?: string | undefined;
1063
+ r?: string | undefined;
1064
+ t?: string | undefined;
1065
+ }[]] | undefined;
1066
+ } | {
1067
+ kty: "EC";
1068
+ crv: "P-256" | "P-384" | "P-521";
1069
+ x: string;
1070
+ y: string;
1071
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1072
+ kid?: string | undefined;
1073
+ ext?: boolean | undefined;
1074
+ use?: "sig" | "enc" | undefined;
1075
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1076
+ x5c?: string[] | undefined;
1077
+ x5t?: string | undefined;
1078
+ 'x5t#S256'?: string | undefined;
1079
+ x5u?: string | undefined;
1080
+ d?: string | undefined;
1081
+ } | {
1082
+ kty: "EC";
1083
+ crv: "secp256k1";
1084
+ x: string;
1085
+ y: string;
1086
+ alg?: "ES256K" | undefined;
1087
+ kid?: string | undefined;
1088
+ ext?: boolean | undefined;
1089
+ use?: "sig" | "enc" | undefined;
1090
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1091
+ x5c?: string[] | undefined;
1092
+ x5t?: string | undefined;
1093
+ 'x5t#S256'?: string | undefined;
1094
+ x5u?: string | undefined;
1095
+ d?: string | undefined;
1096
+ } | {
1097
+ kty: "OKP";
1098
+ crv: "Ed25519" | "Ed448";
1099
+ x: string;
1100
+ alg?: "EdDSA" | undefined;
1101
+ kid?: string | undefined;
1102
+ ext?: boolean | undefined;
1103
+ use?: "sig" | "enc" | undefined;
1104
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1105
+ x5c?: string[] | undefined;
1106
+ x5t?: string | undefined;
1107
+ 'x5t#S256'?: string | undefined;
1108
+ x5u?: string | undefined;
1109
+ d?: string | undefined;
1110
+ } | {
1111
+ kty: "oct";
1112
+ k: string;
1113
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1114
+ kid?: string | undefined;
1115
+ ext?: boolean | undefined;
1116
+ use?: "sig" | "enc" | undefined;
1117
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1118
+ x5c?: string[] | undefined;
1119
+ x5t?: string | undefined;
1120
+ 'x5t#S256'?: string | undefined;
1121
+ x5u?: string | undefined;
1122
+ } | {
1123
+ kty: string;
1124
+ alg?: string | undefined;
1125
+ kid?: string | undefined;
1126
+ ext?: boolean | undefined;
1127
+ use?: "sig" | "enc" | undefined;
1128
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1129
+ x5c?: string[] | undefined;
1130
+ x5t?: string | undefined;
1131
+ 'x5t#S256'?: string | undefined;
1132
+ x5u?: string | undefined;
1133
+ }>>;
1134
+ jwe: z.ZodOptional<z.ZodString>;
1135
+ jku: z.ZodOptional<z.ZodString>;
1136
+ jkt: z.ZodOptional<z.ZodString>;
1137
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1138
+ osc: z.ZodOptional<z.ZodString>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ kid?: string | undefined;
1141
+ 'x5t#S256'?: string | undefined;
1142
+ jku?: string | undefined;
1143
+ jwk?: {
1144
+ kty: "RSA";
1145
+ n: string;
1146
+ e: string;
1147
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1148
+ kid?: string | undefined;
1149
+ ext?: boolean | undefined;
1150
+ use?: "sig" | "enc" | undefined;
1151
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1152
+ x5c?: string[] | undefined;
1153
+ x5t?: string | undefined;
1154
+ 'x5t#S256'?: string | undefined;
1155
+ x5u?: string | undefined;
1156
+ d?: string | undefined;
1157
+ p?: string | undefined;
1158
+ q?: string | undefined;
1159
+ dp?: string | undefined;
1160
+ dq?: string | undefined;
1161
+ qi?: string | undefined;
1162
+ oth?: [{
1163
+ d?: string | undefined;
1164
+ r?: string | undefined;
1165
+ t?: string | undefined;
1166
+ }, ...{
1167
+ d?: string | undefined;
1168
+ r?: string | undefined;
1169
+ t?: string | undefined;
1170
+ }[]] | undefined;
1171
+ } | {
1172
+ kty: "EC";
1173
+ crv: "P-256" | "P-384" | "P-521";
1174
+ x: string;
1175
+ y: string;
1176
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1177
+ kid?: string | undefined;
1178
+ ext?: boolean | undefined;
1179
+ use?: "sig" | "enc" | undefined;
1180
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1181
+ x5c?: string[] | undefined;
1182
+ x5t?: string | undefined;
1183
+ 'x5t#S256'?: string | undefined;
1184
+ x5u?: string | undefined;
1185
+ d?: string | undefined;
1186
+ } | {
1187
+ kty: "EC";
1188
+ crv: "secp256k1";
1189
+ x: string;
1190
+ y: string;
1191
+ alg?: "ES256K" | undefined;
1192
+ kid?: string | undefined;
1193
+ ext?: boolean | undefined;
1194
+ use?: "sig" | "enc" | undefined;
1195
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1196
+ x5c?: string[] | undefined;
1197
+ x5t?: string | undefined;
1198
+ 'x5t#S256'?: string | undefined;
1199
+ x5u?: string | undefined;
1200
+ d?: string | undefined;
1201
+ } | {
1202
+ kty: "OKP";
1203
+ crv: "Ed25519" | "Ed448";
1204
+ x: string;
1205
+ alg?: "EdDSA" | undefined;
1206
+ kid?: string | undefined;
1207
+ ext?: boolean | undefined;
1208
+ use?: "sig" | "enc" | undefined;
1209
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1210
+ x5c?: string[] | undefined;
1211
+ x5t?: string | undefined;
1212
+ 'x5t#S256'?: string | undefined;
1213
+ x5u?: string | undefined;
1214
+ d?: string | undefined;
1215
+ } | {
1216
+ kty: "oct";
1217
+ k: string;
1218
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1219
+ kid?: string | undefined;
1220
+ ext?: boolean | undefined;
1221
+ use?: "sig" | "enc" | undefined;
1222
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1223
+ x5c?: string[] | undefined;
1224
+ x5t?: string | undefined;
1225
+ 'x5t#S256'?: string | undefined;
1226
+ x5u?: string | undefined;
1227
+ } | {
1228
+ kty: string;
1229
+ alg?: string | undefined;
1230
+ kid?: string | undefined;
1231
+ ext?: boolean | undefined;
1232
+ use?: "sig" | "enc" | undefined;
1233
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1234
+ x5c?: string[] | undefined;
1235
+ x5t?: string | undefined;
1236
+ 'x5t#S256'?: string | undefined;
1237
+ x5u?: string | undefined;
1238
+ } | undefined;
1239
+ jwe?: string | undefined;
1240
+ jkt?: string | undefined;
1241
+ osc?: string | undefined;
1242
+ }, {
1243
+ kid?: string | undefined;
1244
+ 'x5t#S256'?: string | undefined;
1245
+ jku?: string | undefined;
1246
+ jwk?: {
1247
+ kty: "RSA";
1248
+ n: string;
1249
+ e: string;
1250
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1251
+ kid?: string | undefined;
1252
+ ext?: boolean | undefined;
1253
+ use?: "sig" | "enc" | undefined;
1254
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1255
+ x5c?: string[] | undefined;
1256
+ x5t?: string | undefined;
1257
+ 'x5t#S256'?: string | undefined;
1258
+ x5u?: string | undefined;
1259
+ d?: string | undefined;
1260
+ p?: string | undefined;
1261
+ q?: string | undefined;
1262
+ dp?: string | undefined;
1263
+ dq?: string | undefined;
1264
+ qi?: string | undefined;
1265
+ oth?: [{
1266
+ d?: string | undefined;
1267
+ r?: string | undefined;
1268
+ t?: string | undefined;
1269
+ }, ...{
1270
+ d?: string | undefined;
1271
+ r?: string | undefined;
1272
+ t?: string | undefined;
1273
+ }[]] | undefined;
1274
+ } | {
1275
+ kty: "EC";
1276
+ crv: "P-256" | "P-384" | "P-521";
1277
+ x: string;
1278
+ y: string;
1279
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1280
+ kid?: string | undefined;
1281
+ ext?: boolean | undefined;
1282
+ use?: "sig" | "enc" | undefined;
1283
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1284
+ x5c?: string[] | undefined;
1285
+ x5t?: string | undefined;
1286
+ 'x5t#S256'?: string | undefined;
1287
+ x5u?: string | undefined;
1288
+ d?: string | undefined;
1289
+ } | {
1290
+ kty: "EC";
1291
+ crv: "secp256k1";
1292
+ x: string;
1293
+ y: string;
1294
+ alg?: "ES256K" | undefined;
1295
+ kid?: string | undefined;
1296
+ ext?: boolean | undefined;
1297
+ use?: "sig" | "enc" | undefined;
1298
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1299
+ x5c?: string[] | undefined;
1300
+ x5t?: string | undefined;
1301
+ 'x5t#S256'?: string | undefined;
1302
+ x5u?: string | undefined;
1303
+ d?: string | undefined;
1304
+ } | {
1305
+ kty: "OKP";
1306
+ crv: "Ed25519" | "Ed448";
1307
+ x: string;
1308
+ alg?: "EdDSA" | undefined;
1309
+ kid?: string | undefined;
1310
+ ext?: boolean | undefined;
1311
+ use?: "sig" | "enc" | undefined;
1312
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1313
+ x5c?: string[] | undefined;
1314
+ x5t?: string | undefined;
1315
+ 'x5t#S256'?: string | undefined;
1316
+ x5u?: string | undefined;
1317
+ d?: string | undefined;
1318
+ } | {
1319
+ kty: "oct";
1320
+ k: string;
1321
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1322
+ kid?: string | undefined;
1323
+ ext?: boolean | undefined;
1324
+ use?: "sig" | "enc" | undefined;
1325
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1326
+ x5c?: string[] | undefined;
1327
+ x5t?: string | undefined;
1328
+ 'x5t#S256'?: string | undefined;
1329
+ x5u?: string | undefined;
1330
+ } | {
1331
+ kty: string;
1332
+ alg?: string | undefined;
1333
+ kid?: string | undefined;
1334
+ ext?: boolean | undefined;
1335
+ use?: "sig" | "enc" | undefined;
1336
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1337
+ x5c?: string[] | undefined;
1338
+ x5t?: string | undefined;
1339
+ 'x5t#S256'?: string | undefined;
1340
+ x5u?: string | undefined;
1341
+ } | undefined;
1342
+ jwe?: string | undefined;
1343
+ jkt?: string | undefined;
1344
+ osc?: string | undefined;
1345
+ }>>>;
1346
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1347
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1348
+ at_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1349
+ c_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1350
+ s_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1351
+ auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1352
+ authorization_details: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1353
+ type: z.ZodString;
1354
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1355
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1356
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
+ identifier: z.ZodOptional<z.ZodString>;
1358
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1359
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1360
+ type: z.ZodString;
1361
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1362
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1363
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1364
+ identifier: z.ZodOptional<z.ZodString>;
1365
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1367
+ type: z.ZodString;
1368
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1369
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1370
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1371
+ identifier: z.ZodOptional<z.ZodString>;
1372
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1373
+ }, z.ZodTypeAny, "passthrough">>, "many">>>;
1374
+ }, {
1375
+ sub: z.ZodString;
1376
+ client_id: z.ZodString;
1377
+ }>, "strip", z.ZodTypeAny, {
1378
+ sub: string;
1379
+ client_id: string;
1380
+ nonce?: string | undefined;
1381
+ name?: string | undefined;
1382
+ htm?: string | undefined;
1383
+ htu?: string | undefined;
1384
+ ath?: string | undefined;
1385
+ email?: string | undefined;
1386
+ email_verified?: boolean | undefined;
1387
+ phone_number?: string | undefined;
1388
+ phone_number_verified?: boolean | undefined;
1389
+ address?: {
1390
+ formatted?: string | undefined;
1391
+ street_address?: string | undefined;
1392
+ locality?: string | undefined;
1393
+ region?: string | undefined;
1394
+ postal_code?: string | undefined;
1395
+ country?: string | undefined;
1396
+ } | undefined;
1397
+ profile?: string | undefined;
1398
+ family_name?: string | undefined;
1399
+ given_name?: string | undefined;
1400
+ middle_name?: string | undefined;
1401
+ nickname?: string | undefined;
1402
+ preferred_username?: string | undefined;
1403
+ gender?: string | undefined;
1404
+ picture?: string | undefined;
1405
+ website?: string | undefined;
1406
+ birthdate?: string | undefined;
1407
+ zoneinfo?: string | undefined;
1408
+ locale?: string | undefined;
1409
+ updated_at?: number | undefined;
1410
+ nbf?: number | undefined;
1411
+ acr?: string | undefined;
1412
+ azp?: string | undefined;
1413
+ amr?: string[] | undefined;
1414
+ cnf?: {
1415
+ kid?: string | undefined;
1416
+ 'x5t#S256'?: string | undefined;
1417
+ jku?: string | undefined;
1418
+ jwk?: {
1419
+ kty: "RSA";
1420
+ n: string;
1421
+ e: string;
1422
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1423
+ kid?: string | undefined;
1424
+ ext?: boolean | undefined;
1425
+ use?: "sig" | "enc" | undefined;
1426
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1427
+ x5c?: string[] | undefined;
1428
+ x5t?: string | undefined;
1429
+ 'x5t#S256'?: string | undefined;
1430
+ x5u?: string | undefined;
1431
+ d?: string | undefined;
1432
+ p?: string | undefined;
1433
+ q?: string | undefined;
1434
+ dp?: string | undefined;
1435
+ dq?: string | undefined;
1436
+ qi?: string | undefined;
1437
+ oth?: [{
1438
+ d?: string | undefined;
1439
+ r?: string | undefined;
1440
+ t?: string | undefined;
1441
+ }, ...{
1442
+ d?: string | undefined;
1443
+ r?: string | undefined;
1444
+ t?: string | undefined;
1445
+ }[]] | undefined;
1446
+ } | {
1447
+ kty: "EC";
1448
+ crv: "P-256" | "P-384" | "P-521";
1449
+ x: string;
1450
+ y: string;
1451
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1452
+ kid?: string | undefined;
1453
+ ext?: boolean | undefined;
1454
+ use?: "sig" | "enc" | undefined;
1455
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1456
+ x5c?: string[] | undefined;
1457
+ x5t?: string | undefined;
1458
+ 'x5t#S256'?: string | undefined;
1459
+ x5u?: string | undefined;
1460
+ d?: string | undefined;
1461
+ } | {
1462
+ kty: "EC";
1463
+ crv: "secp256k1";
1464
+ x: string;
1465
+ y: string;
1466
+ alg?: "ES256K" | undefined;
1467
+ kid?: string | undefined;
1468
+ ext?: boolean | undefined;
1469
+ use?: "sig" | "enc" | undefined;
1470
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1471
+ x5c?: string[] | undefined;
1472
+ x5t?: string | undefined;
1473
+ 'x5t#S256'?: string | undefined;
1474
+ x5u?: string | undefined;
1475
+ d?: string | undefined;
1476
+ } | {
1477
+ kty: "OKP";
1478
+ crv: "Ed25519" | "Ed448";
1479
+ x: string;
1480
+ alg?: "EdDSA" | undefined;
1481
+ kid?: string | undefined;
1482
+ ext?: boolean | undefined;
1483
+ use?: "sig" | "enc" | undefined;
1484
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1485
+ x5c?: string[] | undefined;
1486
+ x5t?: string | undefined;
1487
+ 'x5t#S256'?: string | undefined;
1488
+ x5u?: string | undefined;
1489
+ d?: string | undefined;
1490
+ } | {
1491
+ kty: "oct";
1492
+ k: string;
1493
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1494
+ kid?: string | undefined;
1495
+ ext?: boolean | undefined;
1496
+ use?: "sig" | "enc" | undefined;
1497
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1498
+ x5c?: string[] | undefined;
1499
+ x5t?: string | undefined;
1500
+ 'x5t#S256'?: string | undefined;
1501
+ x5u?: string | undefined;
1502
+ } | {
1503
+ kty: string;
1504
+ alg?: string | undefined;
1505
+ kid?: string | undefined;
1506
+ ext?: boolean | undefined;
1507
+ use?: "sig" | "enc" | undefined;
1508
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1509
+ x5c?: string[] | undefined;
1510
+ x5t?: string | undefined;
1511
+ 'x5t#S256'?: string | undefined;
1512
+ x5u?: string | undefined;
1513
+ } | undefined;
1514
+ jwe?: string | undefined;
1515
+ jkt?: string | undefined;
1516
+ osc?: string | undefined;
1517
+ } | undefined;
1518
+ scope?: string | undefined;
1519
+ at_hash?: string | undefined;
1520
+ c_hash?: string | undefined;
1521
+ s_hash?: string | undefined;
1522
+ auth_time?: number | undefined;
1523
+ authorization_details?: z.objectOutputType<{
1524
+ type: z.ZodString;
1525
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1526
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1527
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1528
+ identifier: z.ZodOptional<z.ZodString>;
1529
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1530
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1531
+ }, {
1532
+ sub: string;
1533
+ client_id: string;
1534
+ nonce?: string | undefined;
1535
+ name?: string | undefined;
1536
+ htm?: string | undefined;
1537
+ htu?: string | undefined;
1538
+ ath?: string | undefined;
1539
+ email?: string | undefined;
1540
+ email_verified?: boolean | undefined;
1541
+ phone_number?: string | undefined;
1542
+ phone_number_verified?: boolean | undefined;
1543
+ address?: {
1544
+ formatted?: string | undefined;
1545
+ street_address?: string | undefined;
1546
+ locality?: string | undefined;
1547
+ region?: string | undefined;
1548
+ postal_code?: string | undefined;
1549
+ country?: string | undefined;
1550
+ } | undefined;
1551
+ profile?: string | undefined;
1552
+ family_name?: string | undefined;
1553
+ given_name?: string | undefined;
1554
+ middle_name?: string | undefined;
1555
+ nickname?: string | undefined;
1556
+ preferred_username?: string | undefined;
1557
+ gender?: string | undefined;
1558
+ picture?: string | undefined;
1559
+ website?: string | undefined;
1560
+ birthdate?: string | undefined;
1561
+ zoneinfo?: string | undefined;
1562
+ locale?: string | undefined;
1563
+ updated_at?: number | undefined;
1564
+ nbf?: number | undefined;
1565
+ acr?: string | undefined;
1566
+ azp?: string | undefined;
1567
+ amr?: string[] | undefined;
1568
+ cnf?: {
1569
+ kid?: string | undefined;
1570
+ 'x5t#S256'?: string | undefined;
1571
+ jku?: string | undefined;
1572
+ jwk?: {
1573
+ kty: "RSA";
1574
+ n: string;
1575
+ e: string;
1576
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1577
+ kid?: string | undefined;
1578
+ ext?: boolean | undefined;
1579
+ use?: "sig" | "enc" | undefined;
1580
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1581
+ x5c?: string[] | undefined;
1582
+ x5t?: string | undefined;
1583
+ 'x5t#S256'?: string | undefined;
1584
+ x5u?: string | undefined;
1585
+ d?: string | undefined;
1586
+ p?: string | undefined;
1587
+ q?: string | undefined;
1588
+ dp?: string | undefined;
1589
+ dq?: string | undefined;
1590
+ qi?: string | undefined;
1591
+ oth?: [{
1592
+ d?: string | undefined;
1593
+ r?: string | undefined;
1594
+ t?: string | undefined;
1595
+ }, ...{
1596
+ d?: string | undefined;
1597
+ r?: string | undefined;
1598
+ t?: string | undefined;
1599
+ }[]] | undefined;
1600
+ } | {
1601
+ kty: "EC";
1602
+ crv: "P-256" | "P-384" | "P-521";
1603
+ x: string;
1604
+ y: string;
1605
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1606
+ kid?: string | undefined;
1607
+ ext?: boolean | undefined;
1608
+ use?: "sig" | "enc" | undefined;
1609
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1610
+ x5c?: string[] | undefined;
1611
+ x5t?: string | undefined;
1612
+ 'x5t#S256'?: string | undefined;
1613
+ x5u?: string | undefined;
1614
+ d?: string | undefined;
1615
+ } | {
1616
+ kty: "EC";
1617
+ crv: "secp256k1";
1618
+ x: string;
1619
+ y: string;
1620
+ alg?: "ES256K" | undefined;
1621
+ kid?: string | undefined;
1622
+ ext?: boolean | undefined;
1623
+ use?: "sig" | "enc" | undefined;
1624
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1625
+ x5c?: string[] | undefined;
1626
+ x5t?: string | undefined;
1627
+ 'x5t#S256'?: string | undefined;
1628
+ x5u?: string | undefined;
1629
+ d?: string | undefined;
1630
+ } | {
1631
+ kty: "OKP";
1632
+ crv: "Ed25519" | "Ed448";
1633
+ x: string;
1634
+ alg?: "EdDSA" | undefined;
1635
+ kid?: string | undefined;
1636
+ ext?: boolean | undefined;
1637
+ use?: "sig" | "enc" | undefined;
1638
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1639
+ x5c?: string[] | undefined;
1640
+ x5t?: string | undefined;
1641
+ 'x5t#S256'?: string | undefined;
1642
+ x5u?: string | undefined;
1643
+ d?: string | undefined;
1644
+ } | {
1645
+ kty: "oct";
1646
+ k: string;
1647
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1648
+ kid?: string | undefined;
1649
+ ext?: boolean | undefined;
1650
+ use?: "sig" | "enc" | undefined;
1651
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1652
+ x5c?: string[] | undefined;
1653
+ x5t?: string | undefined;
1654
+ 'x5t#S256'?: string | undefined;
1655
+ x5u?: string | undefined;
1656
+ } | {
1657
+ kty: string;
1658
+ alg?: string | undefined;
1659
+ kid?: string | undefined;
1660
+ ext?: boolean | undefined;
1661
+ use?: "sig" | "enc" | undefined;
1662
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1663
+ x5c?: string[] | undefined;
1664
+ x5t?: string | undefined;
1665
+ 'x5t#S256'?: string | undefined;
1666
+ x5u?: string | undefined;
1667
+ } | undefined;
1668
+ jwe?: string | undefined;
1669
+ jkt?: string | undefined;
1670
+ osc?: string | undefined;
1671
+ } | undefined;
1672
+ scope?: string | undefined;
1673
+ at_hash?: string | undefined;
1674
+ c_hash?: string | undefined;
1675
+ s_hash?: string | undefined;
1676
+ auth_time?: number | undefined;
1677
+ authorization_details?: z.objectInputType<{
1678
+ type: z.ZodString;
1679
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1680
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1681
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1682
+ identifier: z.ZodOptional<z.ZodString>;
1683
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1684
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1685
+ }>>;
1686
+ export type TokenClaims = Simplify<z.infer<typeof tokenClaimsSchema>>;
1687
+ //# sourceMappingURL=token-claims.d.ts.map