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