@tempoxyz/id 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1096) hide show
  1. package/README.md +121 -2
  2. package/dist/App.d.ts +121 -0
  3. package/dist/App.d.ts.map +1 -0
  4. package/dist/App.js +132 -0
  5. package/dist/App.js.map +1 -0
  6. package/dist/app/client/.assetsignore +2 -0
  7. package/dist/app/client/_headers +4 -0
  8. package/dist/app/client/assets/Account-BYLpNFf3.css +1 -0
  9. package/dist/app/client/assets/Account-BllJah07.js +1 -0
  10. package/dist/app/client/assets/Amount-E_7snI0-.js +1 -0
  11. package/dist/app/client/assets/Amount-ZdtluGf-.css +1 -0
  12. package/dist/app/client/assets/Approval-CgV5JHlb.css +1 -0
  13. package/dist/app/client/assets/Approval-yKflypU2.js +1 -0
  14. package/dist/app/client/assets/ArrowUp-CRvqfMNU.js +1 -0
  15. package/dist/app/client/assets/Authentication-BAXhOh_4.js +2 -0
  16. package/dist/app/client/assets/BRLA-CZvVDNYr.png +0 -0
  17. package/dist/app/client/assets/BRZ-Cn3jEi9t.svg +1 -0
  18. package/dist/app/client/assets/CHFAU-DCedc4aH.png +0 -0
  19. package/dist/app/client/assets/Callout-B736759d.js +1 -0
  20. package/dist/app/client/assets/Callout-DBfEmP7q.css +1 -0
  21. package/dist/app/client/assets/Check-DVgD8tDG.js +1 -0
  22. package/dist/app/client/assets/ChevronRight-CsXtIZCB.js +1 -0
  23. package/dist/app/client/assets/ChooseAccount-BjxfQjPK.js +1 -0
  24. package/dist/app/client/assets/ChooseAccount-DL3wgJhE.css +1 -0
  25. package/dist/app/client/assets/Client-JrABNovb.js +1 -0
  26. package/dist/app/client/assets/Close-CRvWlhqc.js +1 -0
  27. package/dist/app/client/assets/Cloud-DgJsrqpQ.js +1 -0
  28. package/dist/app/client/assets/CodeInput-79Ctx8ZA.js +1 -0
  29. package/dist/app/client/assets/CodeInput-BqRteSwD.css +1 -0
  30. package/dist/app/client/assets/DLUSD-BnRXm3EI.png +0 -0
  31. package/dist/app/client/assets/Deposit-CclrAoXL.css +1 -0
  32. package/dist/app/client/assets/Deposit-c7uYn2Eb.js +1 -0
  33. package/dist/app/client/assets/DevTools-BYkmtuV5.css +1 -0
  34. package/dist/app/client/assets/DevTools-BgnzDGo2.js +1 -0
  35. package/dist/app/client/assets/DeviceApproval-BBUVv58e.js +1 -0
  36. package/dist/app/client/assets/DeviceApproval-BffFLD8F.css +1 -0
  37. package/dist/app/client/assets/EURAU-sjieTTB9.svg +1 -0
  38. package/dist/app/client/assets/EURC.e-CxYiiwkz.svg +1 -0
  39. package/dist/app/client/assets/Fingerprint-BNCA6qOJ.js +1 -0
  40. package/dist/app/client/assets/GBPA-DI_25xSG.svg +4 -0
  41. package/dist/app/client/assets/GUSD-BDEP2Qb-.svg +1 -0
  42. package/dist/app/client/assets/GeistMono-Variable-BRXCGrxA.woff2 +0 -0
  43. package/dist/app/client/assets/Globe-f0eWzcEI.js +1 -0
  44. package/dist/app/client/assets/Grant-5a-n1gJH.css +1 -0
  45. package/dist/app/client/assets/Grant-Dp7mpcEi.js +1 -0
  46. package/dist/app/client/assets/Hex-C9KeV7_9.css +1 -0
  47. package/dist/app/client/assets/Hex-CSp2U46W.js +10 -0
  48. package/dist/app/client/assets/IconChip-DpZHa1JW.js +1 -0
  49. package/dist/app/client/assets/IconChip-yqaQ2y_d.css +1 -0
  50. package/dist/app/client/assets/InputGroup-BlZvt9In.css +1 -0
  51. package/dist/app/client/assets/InputGroup-CsOeBnpB.js +1 -0
  52. package/dist/app/client/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
  53. package/dist/app/client/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
  54. package/dist/app/client/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
  55. package/dist/app/client/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
  56. package/dist/app/client/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
  57. package/dist/app/client/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
  58. package/dist/app/client/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
  59. package/dist/app/client/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
  60. package/dist/app/client/assets/Loader-Cm9YJNNJ.js +1 -0
  61. package/dist/app/client/assets/MACH-sK0r79kQ.svg +4 -0
  62. package/dist/app/client/assets/OUSD-BFXgVo-Z.svg +5 -0
  63. package/dist/app/client/assets/OUSD.dark-BbbjMvA1.svg +17 -0
  64. package/dist/app/client/assets/OUSD.light-B_zpSz_c.svg +17 -0
  65. package/dist/app/client/assets/PRIME-CiFp2-3e.svg +14 -0
  66. package/dist/app/client/assets/PopoverPopup-DprRXRQe.js +1 -0
  67. package/dist/app/client/assets/Rows-DPGTUdA8.css +1 -0
  68. package/dist/app/client/assets/Rows-Qqo3evtk.js +1 -0
  69. package/dist/app/client/assets/SBC-BTYkbkiD.svg +1 -0
  70. package/dist/app/client/assets/SEKAU-CB5Fc6o8.svg +5 -0
  71. package/dist/app/client/assets/Separator-CZUjVQOL.js +1 -0
  72. package/dist/app/client/assets/SignIn-HdaDzFmq.js +1 -0
  73. package/dist/app/client/assets/SignIn-mlBTwUq4.css +1 -0
  74. package/dist/app/client/assets/Stack-CkkvkOzj.js +1 -0
  75. package/dist/app/client/assets/Stack-D7Yt22Ed.css +1 -0
  76. package/dist/app/client/assets/Tag-BMh6ajrW.css +1 -0
  77. package/dist/app/client/assets/Tag-CLOVANTX.js +1 -0
  78. package/dist/app/client/assets/ToolbarRootContext-Zty_Dh3J.js +1 -0
  79. package/dist/app/client/assets/Tooltip-CLATV6YU.js +1 -0
  80. package/dist/app/client/assets/Tooltip-d3y9ESUJ.css +1 -0
  81. package/dist/app/client/assets/USD1-COVcO_PB.svg +30 -0
  82. package/dist/app/client/assets/USDB-Ckwb6UQw.svg +11 -0
  83. package/dist/app/client/assets/USDC.e-3nMsKAMC.svg +1 -0
  84. package/dist/app/client/assets/USDT0-ia60Dw0e.svg +1 -0
  85. package/dist/app/client/assets/USDY-CB4iet2q.svg +16 -0
  86. package/dist/app/client/assets/USDe-BXHQCd92.svg +1 -0
  87. package/dist/app/client/assets/Upgrade-D0_aO5AP.js +1 -0
  88. package/dist/app/client/assets/WalletUpgrade-BPsPNQsd.js +1 -0
  89. package/dist/app/client/assets/WalletUpgrade-C04kW0Jl.css +1 -0
  90. package/dist/app/client/assets/YLDS-CRh8Zw0g.svg +3 -0
  91. package/dist/app/client/assets/___-I98bns4o.css +1 -0
  92. package/dist/app/client/assets/___.flows-XOlLwMIy.js +5 -0
  93. package/dist/app/client/assets/alphaUSD-CpCFoVuh.svg +1 -0
  94. package/dist/app/client/assets/authorize-C-MlCyaM.js +1 -0
  95. package/dist/app/client/assets/betaUSD-9A8AjgYg.svg +1 -0
  96. package/dist/app/client/assets/cUSD-WsQfa-iC.svg +1 -0
  97. package/dist/app/client/assets/cbBTC-DvUDqrDi.svg +1 -0
  98. package/dist/app/client/assets/choose-account-nXR-SKa2.js +1 -0
  99. package/dist/app/client/assets/deposit-G8tiLPN4.js +1 -0
  100. package/dist/app/client/assets/device-BojBF7hZ.js +1 -0
  101. package/dist/app/client/assets/error-KiOpX7GD.js +1 -0
  102. package/dist/app/client/assets/frxUSD-n9pTpinR.svg +1 -0
  103. package/dist/app/client/assets/getPseudoElementBounds-BsLy4zf_.js +1 -0
  104. package/dist/app/client/assets/goUSD-D9kUvHsF.svg +5 -0
  105. package/dist/app/client/assets/iUSD-CWCJAq9X.svg +1 -0
  106. package/dist/app/client/assets/index-BZH0M7Nf.js +13 -0
  107. package/dist/app/client/assets/index-CIYxHmYA.css +1 -0
  108. package/dist/app/client/assets/login-DUjpk60p.js +1 -0
  109. package/dist/app/client/assets/pathUSD-BvaO6ooS.svg +25 -0
  110. package/dist/app/client/assets/preload-helper-Bs9KvdYl.js +1 -0
  111. package/dist/app/client/assets/rUSD-B-xuFS7T.svg +1 -0
  112. package/dist/app/client/assets/reUSD-CkIUs0Lx.svg +1 -0
  113. package/dist/app/client/assets/removable-DMiA3t_o.js +1 -0
  114. package/dist/app/client/assets/reset-co-CHrff.css +1 -0
  115. package/dist/app/client/assets/rolldown-runtime-WkwZ5CU-.js +1 -0
  116. package/dist/app/client/assets/routes-CK8cthzA.js +1 -0
  117. package/dist/app/client/assets/sUSDe-j9GOnH7I.svg +1 -0
  118. package/dist/app/client/assets/siUSD-C10QUNYS.svg +1 -0
  119. package/dist/app/client/assets/stcUSD-DIntDJeh.svg +1 -0
  120. package/dist/app/client/assets/syrupUSDC-DhYwZqdM.svg +5 -0
  121. package/dist/app/client/assets/thetaUSD-Dgmksf6G.svg +1 -0
  122. package/dist/app/client/assets/useNavigate-CB6S2u4J.js +1 -0
  123. package/dist/app/client/assets/useQuery-BpHfPhTT.js +1 -0
  124. package/dist/app/client/assets/useRegisterFieldControl-DsslqY-V.js +1 -0
  125. package/dist/app/client/assets/wYLDS-CaCKDrO-.svg +10 -0
  126. package/dist/app/client/assets/wsrUSD-B2Ey0bDQ.svg +1 -0
  127. package/dist/app/client/assets/zyzz-DYC-X0_B.css +1 -0
  128. package/dist/app/client/assets/zyzz.config-DX_D_7j3.js +2 -0
  129. package/dist/app/db/auth.d.ts +3412 -0
  130. package/dist/app/db/auth.d.ts.map +1 -0
  131. package/dist/app/db/auth.js +349 -0
  132. package/dist/app/db/auth.js.map +1 -0
  133. package/dist/app/db/schema.d.ts +1091 -0
  134. package/dist/app/db/schema.d.ts.map +1 -0
  135. package/dist/app/db/schema.js +183 -0
  136. package/dist/app/db/schema.js.map +1 -0
  137. package/dist/app/db/table.d.ts +8 -0
  138. package/dist/app/db/table.d.ts.map +1 -0
  139. package/dist/app/db/table.js +28 -0
  140. package/dist/app/db/table.js.map +1 -0
  141. package/dist/app/server/.vite/manifest.json +2093 -0
  142. package/dist/app/server/assets/Account-BYLpNFf3.css +1 -0
  143. package/dist/app/server/assets/Account-G_SUeRU3.js +2 -0
  144. package/dist/app/server/assets/Account-G_SUeRU3.js.map +1 -0
  145. package/dist/app/server/assets/Amount-Cgwdr3Xt.js +2 -0
  146. package/dist/app/server/assets/Amount-Cgwdr3Xt.js.map +1 -0
  147. package/dist/app/server/assets/Amount-ZdtluGf-.css +1 -0
  148. package/dist/app/server/assets/Approval-CgV5JHlb.css +1 -0
  149. package/dist/app/server/assets/Approval-DvkB9tWA.js +2 -0
  150. package/dist/app/server/assets/Approval-DvkB9tWA.js.map +1 -0
  151. package/dist/app/server/assets/ArrowUp-DpK_zNgZ.js +2 -0
  152. package/dist/app/server/assets/ArrowUp-DpK_zNgZ.js.map +1 -0
  153. package/dist/app/server/assets/Authentication-BOkhlNQu.js +2 -0
  154. package/dist/app/server/assets/Authentication-BOkhlNQu.js.map +1 -0
  155. package/dist/app/server/assets/Authentication-C3oNZAVX.js +2 -0
  156. package/dist/app/server/assets/Authentication-C3oNZAVX.js.map +1 -0
  157. package/dist/app/server/assets/BRLA-CZvVDNYr.png +0 -0
  158. package/dist/app/server/assets/BRZ-Cn3jEi9t.svg +1 -0
  159. package/dist/app/server/assets/Bytes-C7CRVS3J.js +4 -0
  160. package/dist/app/server/assets/Bytes-C7CRVS3J.js.map +1 -0
  161. package/dist/app/server/assets/CHFAU-DCedc4aH.png +0 -0
  162. package/dist/app/server/assets/Callout-DBfEmP7q.css +1 -0
  163. package/dist/app/server/assets/Callout-tQoAitWq.js +2 -0
  164. package/dist/app/server/assets/Callout-tQoAitWq.js.map +1 -0
  165. package/dist/app/server/assets/ChainList-C4A_7e-9.js +6 -0
  166. package/dist/app/server/assets/ChainList-C4A_7e-9.js.map +1 -0
  167. package/dist/app/server/assets/ChainName-BMnJyJrd.js +2 -0
  168. package/dist/app/server/assets/ChainName-BMnJyJrd.js.map +1 -0
  169. package/dist/app/server/assets/Check-DU_oR3Ev.js +2 -0
  170. package/dist/app/server/assets/Check-DU_oR3Ev.js.map +1 -0
  171. package/dist/app/server/assets/ChevronRight-DTBnw-W6.js +2 -0
  172. package/dist/app/server/assets/ChevronRight-DTBnw-W6.js.map +1 -0
  173. package/dist/app/server/assets/ChooseAccount-BizJvMrY.js +2 -0
  174. package/dist/app/server/assets/ChooseAccount-BizJvMrY.js.map +1 -0
  175. package/dist/app/server/assets/ChooseAccount-DL3wgJhE.css +1 -0
  176. package/dist/app/server/assets/Client-Dx3KrpJZ.js +2 -0
  177. package/dist/app/server/assets/Client-Dx3KrpJZ.js.map +1 -0
  178. package/dist/app/server/assets/ClientOnly-CKLiu67O.js +2 -0
  179. package/dist/app/server/assets/ClientOnly-CKLiu67O.js.map +1 -0
  180. package/dist/app/server/assets/Close-DUeE37ev.js +2 -0
  181. package/dist/app/server/assets/Close-DUeE37ev.js.map +1 -0
  182. package/dist/app/server/assets/Cloud-CLB3rTTy.js +2 -0
  183. package/dist/app/server/assets/Cloud-CLB3rTTy.js.map +1 -0
  184. package/dist/app/server/assets/CodeInput-BqRteSwD.css +1 -0
  185. package/dist/app/server/assets/CodeInput-FsPzVuLU.js +2 -0
  186. package/dist/app/server/assets/CodeInput-FsPzVuLU.js.map +1 -0
  187. package/dist/app/server/assets/Credential-DFjcrdyI.js +2 -0
  188. package/dist/app/server/assets/Credential-DFjcrdyI.js.map +1 -0
  189. package/dist/app/server/assets/DLUSD-BnRXm3EI.png +0 -0
  190. package/dist/app/server/assets/Deposit-CclrAoXL.css +1 -0
  191. package/dist/app/server/assets/Deposit-ChYGRfW2.js +2 -0
  192. package/dist/app/server/assets/Deposit-ChYGRfW2.js.map +1 -0
  193. package/dist/app/server/assets/DevTools-BYkmtuV5.css +1 -0
  194. package/dist/app/server/assets/DevTools-ZJVXqrIK.js +2 -0
  195. package/dist/app/server/assets/DevTools-ZJVXqrIK.js.map +1 -0
  196. package/dist/app/server/assets/DeviceApproval-BffFLD8F.css +1 -0
  197. package/dist/app/server/assets/DeviceApproval-Bqe3Mi78.js +2 -0
  198. package/dist/app/server/assets/DeviceApproval-Bqe3Mi78.js.map +1 -0
  199. package/dist/app/server/assets/EURAU-sjieTTB9.svg +1 -0
  200. package/dist/app/server/assets/EURC.e-CxYiiwkz.svg +1 -0
  201. package/dist/app/server/assets/ExecutionError-CDszGSF1.js +9 -0
  202. package/dist/app/server/assets/ExecutionError-CDszGSF1.js.map +1 -0
  203. package/dist/app/server/assets/Fingerprint-DhOPOdRr.js +2 -0
  204. package/dist/app/server/assets/Fingerprint-DhOPOdRr.js.map +1 -0
  205. package/dist/app/server/assets/GBPA-DI_25xSG.svg +4 -0
  206. package/dist/app/server/assets/GUSD-BDEP2Qb-.svg +1 -0
  207. package/dist/app/server/assets/GeistMono-Variable-BRXCGrxA.woff2 +0 -0
  208. package/dist/app/server/assets/Globe-2CxqxU-7.js +2 -0
  209. package/dist/app/server/assets/Globe-2CxqxU-7.js.map +1 -0
  210. package/dist/app/server/assets/Grant-5a-n1gJH.css +1 -0
  211. package/dist/app/server/assets/Grant-D_tun0mF.js +2 -0
  212. package/dist/app/server/assets/Grant-D_tun0mF.js.map +1 -0
  213. package/dist/app/server/assets/Hex-C9KeV7_9.css +1 -0
  214. package/dist/app/server/assets/Hex-Z6m_0Y0m.js +11 -0
  215. package/dist/app/server/assets/Hex-Z6m_0Y0m.js.map +1 -0
  216. package/dist/app/server/assets/IconChip-C9ZrmGB5.js +2 -0
  217. package/dist/app/server/assets/IconChip-C9ZrmGB5.js.map +1 -0
  218. package/dist/app/server/assets/IconChip-yqaQ2y_d.css +1 -0
  219. package/dist/app/server/assets/InputGroup-BlZvt9In.css +1 -0
  220. package/dist/app/server/assets/InputGroup-hpjuLuR7.js +2 -0
  221. package/dist/app/server/assets/InputGroup-hpjuLuR7.js.map +1 -0
  222. package/dist/app/server/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
  223. package/dist/app/server/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
  224. package/dist/app/server/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
  225. package/dist/app/server/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
  226. package/dist/app/server/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
  227. package/dist/app/server/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
  228. package/dist/app/server/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
  229. package/dist/app/server/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
  230. package/dist/app/server/assets/Loader-DnKC9P5p.js +2 -0
  231. package/dist/app/server/assets/Loader-DnKC9P5p.js.map +1 -0
  232. package/dist/app/server/assets/MACH-sK0r79kQ.svg +4 -0
  233. package/dist/app/server/assets/Match-CyVdYcSf.js +2 -0
  234. package/dist/app/server/assets/Match-CyVdYcSf.js.map +1 -0
  235. package/dist/app/server/assets/OUSD-BFXgVo-Z.svg +5 -0
  236. package/dist/app/server/assets/OUSD.dark-BbbjMvA1.svg +17 -0
  237. package/dist/app/server/assets/OUSD.light-B_zpSz_c.svg +17 -0
  238. package/dist/app/server/assets/PRIME-CiFp2-3e.svg +14 -0
  239. package/dist/app/server/assets/PopoverPopup-CwqeQelI.js +2 -0
  240. package/dist/app/server/assets/PopoverPopup-CwqeQelI.js.map +1 -0
  241. package/dist/app/server/assets/Rows-CQKQwTI1.js +2 -0
  242. package/dist/app/server/assets/Rows-CQKQwTI1.js.map +1 -0
  243. package/dist/app/server/assets/Rows-DPGTUdA8.css +1 -0
  244. package/dist/app/server/assets/SBC-BTYkbkiD.svg +1 -0
  245. package/dist/app/server/assets/SEKAU-CB5Fc6o8.svg +5 -0
  246. package/dist/app/server/assets/Separator-DrI7KRAs.js +2 -0
  247. package/dist/app/server/assets/Separator-DrI7KRAs.js.map +1 -0
  248. package/dist/app/server/assets/SignIn-DfeeLEmN.js +2 -0
  249. package/dist/app/server/assets/SignIn-DfeeLEmN.js.map +1 -0
  250. package/dist/app/server/assets/SignIn-mlBTwUq4.css +1 -0
  251. package/dist/app/server/assets/Stack-D7Yt22Ed.css +1 -0
  252. package/dist/app/server/assets/Stack-DGktaLZc.js +2 -0
  253. package/dist/app/server/assets/Stack-DGktaLZc.js.map +1 -0
  254. package/dist/app/server/assets/Tag-9vSRBpph.js +2 -0
  255. package/dist/app/server/assets/Tag-9vSRBpph.js.map +1 -0
  256. package/dist/app/server/assets/Tag-BMh6ajrW.css +1 -0
  257. package/dist/app/server/assets/ToolbarRootContext-BH_CFSWd.js +2 -0
  258. package/dist/app/server/assets/ToolbarRootContext-BH_CFSWd.js.map +1 -0
  259. package/dist/app/server/assets/Tooltip-DLX41peb.js +2 -0
  260. package/dist/app/server/assets/Tooltip-DLX41peb.js.map +1 -0
  261. package/dist/app/server/assets/Tooltip-d3y9ESUJ.css +1 -0
  262. package/dist/app/server/assets/USD1-COVcO_PB.svg +30 -0
  263. package/dist/app/server/assets/USDB-Ckwb6UQw.svg +11 -0
  264. package/dist/app/server/assets/USDC.e-3nMsKAMC.svg +1 -0
  265. package/dist/app/server/assets/USDT0-ia60Dw0e.svg +1 -0
  266. package/dist/app/server/assets/USDY-CB4iet2q.svg +16 -0
  267. package/dist/app/server/assets/USDe-BXHQCd92.svg +1 -0
  268. package/dist/app/server/assets/Upgrade-Dbfm2nm0.js +2 -0
  269. package/dist/app/server/assets/Upgrade-Dbfm2nm0.js.map +1 -0
  270. package/dist/app/server/assets/WalletUpgrade-C04kW0Jl.css +1 -0
  271. package/dist/app/server/assets/WalletUpgrade-CWKc5fYt.js +2 -0
  272. package/dist/app/server/assets/WalletUpgrade-CWKc5fYt.js.map +1 -0
  273. package/dist/app/server/assets/YLDS-CRh8Zw0g.svg +3 -0
  274. package/dist/app/server/assets/___-I98bns4o.css +1 -0
  275. package/dist/app/server/assets/___.flows-Cc-awUoC.js +6 -0
  276. package/dist/app/server/assets/___.flows-Cc-awUoC.js.map +1 -0
  277. package/dist/app/server/assets/_tanstack-start-manifest_v-U7TrtUSA.js +1 -0
  278. package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows-B1pPOqsM.css +1 -0
  279. package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-CKALi9oD.js +2 -0
  280. package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-CKALi9oD.js.map +1 -0
  281. package/dist/app/server/assets/_zyzz_shared-BbDIEd_j.css +1 -0
  282. package/dist/app/server/assets/alphaUSD-CpCFoVuh.svg +1 -0
  283. package/dist/app/server/assets/arktype-aI7TBD0R-D1R3Byo5.js +2 -0
  284. package/dist/app/server/assets/arktype-aI7TBD0R-D1R3Byo5.js.map +1 -0
  285. package/dist/app/server/assets/async-local-storage-DlOvwxXd.js +2 -0
  286. package/dist/app/server/assets/async-local-storage-DlOvwxXd.js.map +1 -0
  287. package/dist/app/server/assets/authorize-BXzTo2Pb.js +2 -0
  288. package/dist/app/server/assets/authorize-BXzTo2Pb.js.map +1 -0
  289. package/dist/app/server/assets/authorize-BzoUqOdA.js +2 -0
  290. package/dist/app/server/assets/authorize-BzoUqOdA.js.map +1 -0
  291. package/dist/app/server/assets/authorize-DXYo-K2n-rmQQ42x1.js +56 -0
  292. package/dist/app/server/assets/authorize-DXYo-K2n-rmQQ42x1.js.map +1 -0
  293. package/dist/app/server/assets/authorize-DfjPYJqS.css +1 -0
  294. package/dist/app/server/assets/betaUSD-9A8AjgYg.svg +1 -0
  295. package/dist/app/server/assets/bun-sqlite-dialect-DoOVo4ja-CtyBkVMb.js +2 -0
  296. package/dist/app/server/assets/bun-sqlite-dialect-DoOVo4ja-CtyBkVMb.js.map +1 -0
  297. package/dist/app/server/assets/cUSD-WsQfa-iC.svg +1 -0
  298. package/dist/app/server/assets/call-dzi0xjZd.js +31 -0
  299. package/dist/app/server/assets/call-dzi0xjZd.js.map +1 -0
  300. package/dist/app/server/assets/cbBTC-DvUDqrDi.svg +1 -0
  301. package/dist/app/server/assets/ccip-DjD8z_3B.js +2 -0
  302. package/dist/app/server/assets/ccip-DjD8z_3B.js.map +1 -0
  303. package/dist/app/server/assets/choose-account-_X7xq5am.js +2 -0
  304. package/dist/app/server/assets/choose-account-_X7xq5am.js.map +1 -0
  305. package/dist/app/server/assets/choose-account-lqA5SLx9.css +1 -0
  306. package/dist/app/server/assets/choose-account-zm-5Qs3e.js +2 -0
  307. package/dist/app/server/assets/choose-account-zm-5Qs3e.js.map +1 -0
  308. package/dist/app/server/assets/compiled-query-Ds2NVcFT.js +2 -0
  309. package/dist/app/server/assets/compiled-query-Ds2NVcFT.js.map +1 -0
  310. package/dist/app/server/assets/convert-BIC8n32x.js +2 -0
  311. package/dist/app/server/assets/convert-BIC8n32x.js.map +1 -0
  312. package/dist/app/server/assets/cookie-DxViaO10.js +2 -0
  313. package/dist/app/server/assets/cookie-DxViaO10.js.map +1 -0
  314. package/dist/app/server/assets/core-BBrZXfrB.js +56 -0
  315. package/dist/app/server/assets/core-BBrZXfrB.js.map +1 -0
  316. package/dist/app/server/assets/d1-sqlite-dialect-m0f01-4z-Cv-csE1u.js +2 -0
  317. package/dist/app/server/assets/d1-sqlite-dialect-m0f01-4z-Cv-csE1u.js.map +1 -0
  318. package/dist/app/server/assets/decodeFunctionData-bP6V2ai4.js +2 -0
  319. package/dist/app/server/assets/decodeFunctionData-bP6V2ai4.js.map +1 -0
  320. package/dist/app/server/assets/default-u_dwuiYb-DOrMMcg9.js +2 -0
  321. package/dist/app/server/assets/default-u_dwuiYb-DOrMMcg9.js.map +1 -0
  322. package/dist/app/server/assets/deposit-BBaNI01u.js +2 -0
  323. package/dist/app/server/assets/deposit-BBaNI01u.js.map +1 -0
  324. package/dist/app/server/assets/deposit-LWS6ZTuf.js +2 -0
  325. package/dist/app/server/assets/deposit-LWS6ZTuf.js.map +1 -0
  326. package/dist/app/server/assets/deposit-oFx15XCA.css +1 -0
  327. package/dist/app/server/assets/device-CrXlusjr.js +2 -0
  328. package/dist/app/server/assets/device-CrXlusjr.js.map +1 -0
  329. package/dist/app/server/assets/device-DdFMgYe2.js +2 -0
  330. package/dist/app/server/assets/device-DdFMgYe2.js.map +1 -0
  331. package/dist/app/server/assets/device-tMCpu5zk.css +1 -0
  332. package/dist/app/server/assets/dist-CR6FW-yS.js +1 -0
  333. package/dist/app/server/assets/dist-CoH0hD1s.js +15 -0
  334. package/dist/app/server/assets/dist-CoH0hD1s.js.map +1 -0
  335. package/dist/app/server/assets/dist-DcICI3fd.js +2 -0
  336. package/dist/app/server/assets/dist-DcICI3fd.js.map +1 -0
  337. package/dist/app/server/assets/effect-QlVUlMFu-mXPkuQTb.js +2 -0
  338. package/dist/app/server/assets/effect-QlVUlMFu-mXPkuQTb.js.map +1 -0
  339. package/dist/app/server/assets/empty-plugin-adapters-BaGcmrjC.js +2 -0
  340. package/dist/app/server/assets/empty-plugin-adapters-BaGcmrjC.js.map +1 -0
  341. package/dist/app/server/assets/error-CXy8gqdE.css +1 -0
  342. package/dist/app/server/assets/error-DXDT2AHy.js +2 -0
  343. package/dist/app/server/assets/error-DXDT2AHy.js.map +1 -0
  344. package/dist/app/server/assets/error-bnVzy9tx.js +2 -0
  345. package/dist/app/server/assets/error-bnVzy9tx.js.map +1 -0
  346. package/dist/app/server/assets/esm-C6SW--yt.js +4 -0
  347. package/dist/app/server/assets/esm-C6SW--yt.js.map +1 -0
  348. package/dist/app/server/assets/factory-dvoOlKer.js +5 -0
  349. package/dist/app/server/assets/factory-dvoOlKer.js.map +1 -0
  350. package/dist/app/server/assets/frxUSD-n9pTpinR.svg +1 -0
  351. package/dist/app/server/assets/get-id-field-OwLpfjj2.js +6 -0
  352. package/dist/app/server/assets/get-id-field-OwLpfjj2.js.map +1 -0
  353. package/dist/app/server/assets/getPseudoElementBounds-PkWU72kn.js +2 -0
  354. package/dist/app/server/assets/getPseudoElementBounds-PkWU72kn.js.map +1 -0
  355. package/dist/app/server/assets/goUSD-D9kUvHsF.svg +5 -0
  356. package/dist/app/server/assets/iUSD-CWCJAq9X.svg +1 -0
  357. package/dist/app/server/assets/index-CLddUTqr-CC33CMvS.js +2 -0
  358. package/dist/app/server/assets/index-CLddUTqr-CC33CMvS.js.map +1 -0
  359. package/dist/app/server/assets/index-DZEfthgZ-Ec2MMQ_e.js +2 -0
  360. package/dist/app/server/assets/index-DZEfthgZ-Ec2MMQ_e.js.map +1 -0
  361. package/dist/app/server/assets/kysely-adapter-B8tQwTcu.js +1 -0
  362. package/dist/app/server/assets/lazyRouteComponent-DPOOPZw_.js +2 -0
  363. package/dist/app/server/assets/lazyRouteComponent-DPOOPZw_.js.map +1 -0
  364. package/dist/app/server/assets/load-server-Dr0IlySo.js +3 -0
  365. package/dist/app/server/assets/load-server-Dr0IlySo.js.map +1 -0
  366. package/dist/app/server/assets/login-BLq3tEEr.js +2 -0
  367. package/dist/app/server/assets/login-BLq3tEEr.js.map +1 -0
  368. package/dist/app/server/assets/login-DCIrAbED.js +2 -0
  369. package/dist/app/server/assets/login-DCIrAbED.js.map +1 -0
  370. package/dist/app/server/assets/login-msDnt3yT.css +1 -0
  371. package/dist/app/server/assets/matchContext-ByrIUj4L.js +2 -0
  372. package/dist/app/server/assets/matchContext-ByrIUj4L.js.map +1 -0
  373. package/dist/app/server/assets/node-sqlite-dialect-BowWLXvK.js +2 -0
  374. package/dist/app/server/assets/node-sqlite-dialect-BowWLXvK.js.map +1 -0
  375. package/dist/app/server/assets/pathUSD-BvaO6ooS.svg +25 -0
  376. package/dist/app/server/assets/rUSD-B-xuFS7T.svg +1 -0
  377. package/dist/app/server/assets/reUSD-CkIUs0Lx.svg +1 -0
  378. package/dist/app/server/assets/react-dom-DYzj0HXX.js +2 -0
  379. package/dist/app/server/assets/react-dom-DYzj0HXX.js.map +1 -0
  380. package/dist/app/server/assets/removable-BCLTvPOx.js +2 -0
  381. package/dist/app/server/assets/removable-BCLTvPOx.js.map +1 -0
  382. package/dist/app/server/assets/reset-DZWeTZeQ.js +2 -0
  383. package/dist/app/server/assets/reset-DZWeTZeQ.js.map +1 -0
  384. package/dist/app/server/assets/reset-co-CHrff.css +1 -0
  385. package/dist/app/server/assets/resolveError-CZXXvCJR.js +2 -0
  386. package/dist/app/server/assets/resolveError-CZXXvCJR.js.map +1 -0
  387. package/dist/app/server/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
  388. package/dist/app/server/assets/router-Bqz5X4Qw.js +2 -0
  389. package/dist/app/server/assets/router-Bqz5X4Qw.js.map +1 -0
  390. package/dist/app/server/assets/router-CclzitkY.css +1 -0
  391. package/dist/app/server/assets/routes-BLQdKqcZ.js +2 -0
  392. package/dist/app/server/assets/routes-BLQdKqcZ.js.map +1 -0
  393. package/dist/app/server/assets/routes-BgiIzrOt.css +1 -0
  394. package/dist/app/server/assets/routes-Bv6WzsSR.js +2 -0
  395. package/dist/app/server/assets/routes-Bv6WzsSR.js.map +1 -0
  396. package/dist/app/server/assets/sUSDe-j9GOnH7I.svg +1 -0
  397. package/dist/app/server/assets/schema-check-oLqvHR8y.js +9 -0
  398. package/dist/app/server/assets/schema-check-oLqvHR8y.js.map +1 -0
  399. package/dist/app/server/assets/secp256k1-yg8eeIYU.js +2 -0
  400. package/dist/app/server/assets/secp256k1-yg8eeIYU.js.map +1 -0
  401. package/dist/app/server/assets/server-RRUiOef2.js +76 -0
  402. package/dist/app/server/assets/server-RRUiOef2.js.map +1 -0
  403. package/dist/app/server/assets/siUSD-C10QUNYS.svg +1 -0
  404. package/dist/app/server/assets/sqlite-adapter-C_LAV4e3.js +2 -0
  405. package/dist/app/server/assets/sqlite-adapter-C_LAV4e3.js.map +1 -0
  406. package/dist/app/server/assets/sqlite-introspector-DSCAP82F-Crx7Ny14.js +6 -0
  407. package/dist/app/server/assets/sqlite-introspector-DSCAP82F-Crx7Ny14.js.map +1 -0
  408. package/dist/app/server/assets/standard-json-DY77efq0.js +2 -0
  409. package/dist/app/server/assets/standard-json-DY77efq0.js.map +1 -0
  410. package/dist/app/server/assets/standard-json-ig2t0wRt.js +2 -0
  411. package/dist/app/server/assets/standard-json-ig2t0wRt.js.map +1 -0
  412. package/dist/app/server/assets/standard-json-t-LNckA6.js +2 -0
  413. package/dist/app/server/assets/standard-json-t-LNckA6.js.map +1 -0
  414. package/dist/app/server/assets/standard-openapi-CONmVRl8.js +2 -0
  415. package/dist/app/server/assets/standard-openapi-CONmVRl8.js.map +1 -0
  416. package/dist/app/server/assets/start-C63VetBp.js +2 -0
  417. package/dist/app/server/assets/start-C63VetBp.js.map +1 -0
  418. package/dist/app/server/assets/stcUSD-DIntDJeh.svg +1 -0
  419. package/dist/app/server/assets/sury-CWZTCd75-CDaOS2oM.js +2 -0
  420. package/dist/app/server/assets/sury-CWZTCd75-CDaOS2oM.js.map +1 -0
  421. package/dist/app/server/assets/syrupUSDC-DhYwZqdM.svg +5 -0
  422. package/dist/app/server/assets/thetaUSD-Dgmksf6G.svg +1 -0
  423. package/dist/app/server/assets/typebox-Dei93FPO-D_lCVdAz.js +2 -0
  424. package/dist/app/server/assets/typebox-Dei93FPO-D_lCVdAz.js.map +1 -0
  425. package/dist/app/server/assets/useNavigate-D6d1w7KE.js +2 -0
  426. package/dist/app/server/assets/useNavigate-D6d1w7KE.js.map +1 -0
  427. package/dist/app/server/assets/useQuery-BRpCr5vj.js +2 -0
  428. package/dist/app/server/assets/useQuery-BRpCr5vj.js.map +1 -0
  429. package/dist/app/server/assets/useRegisterFieldControl-cJesrOWK.js +2 -0
  430. package/dist/app/server/assets/useRegisterFieldControl-cJesrOWK.js.map +1 -0
  431. package/dist/app/server/assets/utils-C4ZXZIZW.js +2 -0
  432. package/dist/app/server/assets/utils-C4ZXZIZW.js.map +1 -0
  433. package/dist/app/server/assets/utils-D57zfcg-.js +2 -0
  434. package/dist/app/server/assets/utils-D57zfcg-.js.map +1 -0
  435. package/dist/app/server/assets/valibot--1zFm7rT-CIKoH3MS.js +2 -0
  436. package/dist/app/server/assets/valibot--1zFm7rT-CIKoH3MS.js.map +1 -0
  437. package/dist/app/server/assets/valibot-D_HTw1Gn-BdPyLkXt.js +2 -0
  438. package/dist/app/server/assets/valibot-D_HTw1Gn-BdPyLkXt.js.map +1 -0
  439. package/dist/app/server/assets/wYLDS-CaCKDrO-.svg +10 -0
  440. package/dist/app/server/assets/wsrUSD-B2Ey0bDQ.svg +1 -0
  441. package/dist/app/server/assets/zod-Bwrt9trS-BezI5Gi1.js +2 -0
  442. package/dist/app/server/assets/zod-Bwrt9trS-BezI5Gi1.js.map +1 -0
  443. package/dist/app/server/assets/zod-DSgpEGAE-DZ7M_Q33.js +2 -0
  444. package/dist/app/server/assets/zod-DSgpEGAE-DZ7M_Q33.js.map +1 -0
  445. package/dist/app/server/assets/zyzz-6R2K52xP.css +1 -0
  446. package/dist/app/server/assets/zyzz.config-CJRpjn0E.js +3 -0
  447. package/dist/app/server/assets/zyzz.config-CJRpjn0E.js.map +1 -0
  448. package/dist/app/server/index.js +532 -0
  449. package/dist/app/server/index.js.map +1 -0
  450. package/dist/app/server/wrangler.json +1 -0
  451. package/dist/cli/Admin.d.ts +34 -0
  452. package/dist/cli/Admin.d.ts.map +1 -0
  453. package/dist/cli/Admin.js +61 -0
  454. package/dist/cli/Admin.js.map +1 -0
  455. package/dist/cli/Apps.d.ts +9 -0
  456. package/dist/cli/Apps.d.ts.map +1 -0
  457. package/dist/cli/Apps.js +34 -0
  458. package/dist/cli/Apps.js.map +1 -0
  459. package/dist/cli/Cli.d.ts +13 -0
  460. package/dist/cli/Cli.d.ts.map +1 -0
  461. package/dist/cli/Cli.js +26 -0
  462. package/dist/cli/Cli.js.map +1 -0
  463. package/dist/cli/Project.d.ts +17 -0
  464. package/dist/cli/Project.d.ts.map +1 -0
  465. package/dist/cli/Project.js +90 -0
  466. package/dist/cli/Project.js.map +1 -0
  467. package/dist/cli/Realms.d.ts +24 -0
  468. package/dist/cli/Realms.d.ts.map +1 -0
  469. package/dist/cli/Realms.js +48 -0
  470. package/dist/cli/Realms.js.map +1 -0
  471. package/dist/cli/Session.d.ts +79 -0
  472. package/dist/cli/Session.d.ts.map +1 -0
  473. package/dist/cli/Session.js +229 -0
  474. package/dist/cli/Session.js.map +1 -0
  475. package/dist/cli/User.d.ts +24 -0
  476. package/dist/cli/User.d.ts.map +1 -0
  477. package/dist/cli/User.js +34 -0
  478. package/dist/cli/User.js.map +1 -0
  479. package/dist/cli/V1.d.ts +32 -0
  480. package/dist/cli/V1.d.ts.map +1 -0
  481. package/dist/cli/V1.js +38 -0
  482. package/dist/cli/V1.js.map +1 -0
  483. package/dist/cli/bin.d.ts +3 -0
  484. package/dist/cli/bin.d.ts.map +1 -0
  485. package/dist/cli/bin.js +46 -0
  486. package/dist/cli/bin.js.map +1 -0
  487. package/dist/cli/commands/admin/apps/create.d.ts +23 -0
  488. package/dist/cli/commands/admin/apps/create.d.ts.map +1 -0
  489. package/dist/cli/commands/admin/apps/create.js +84 -0
  490. package/dist/cli/commands/admin/apps/create.js.map +1 -0
  491. package/dist/cli/commands/admin/apps/delete.d.ts +15 -0
  492. package/dist/cli/commands/admin/apps/delete.d.ts.map +1 -0
  493. package/dist/cli/commands/admin/apps/delete.js +41 -0
  494. package/dist/cli/commands/admin/apps/delete.js.map +1 -0
  495. package/dist/cli/commands/admin/apps/index.d.ts +5 -0
  496. package/dist/cli/commands/admin/apps/index.d.ts.map +1 -0
  497. package/dist/cli/commands/admin/apps/index.js +14 -0
  498. package/dist/cli/commands/admin/apps/index.js.map +1 -0
  499. package/dist/cli/commands/admin/apps/list.d.ts +10 -0
  500. package/dist/cli/commands/admin/apps/list.d.ts.map +1 -0
  501. package/dist/cli/commands/admin/apps/list.js +26 -0
  502. package/dist/cli/commands/admin/apps/list.js.map +1 -0
  503. package/dist/cli/commands/admin/apps/rotate-secret.d.ts +17 -0
  504. package/dist/cli/commands/admin/apps/rotate-secret.d.ts.map +1 -0
  505. package/dist/cli/commands/admin/apps/rotate-secret.js +47 -0
  506. package/dist/cli/commands/admin/apps/rotate-secret.js.map +1 -0
  507. package/dist/cli/commands/admin/apps/update.d.ts +20 -0
  508. package/dist/cli/commands/admin/apps/update.d.ts.map +1 -0
  509. package/dist/cli/commands/admin/apps/update.js +71 -0
  510. package/dist/cli/commands/admin/apps/update.js.map +1 -0
  511. package/dist/cli/commands/admin/index.d.ts +5 -0
  512. package/dist/cli/commands/admin/index.d.ts.map +1 -0
  513. package/dist/cli/commands/admin/index.js +13 -0
  514. package/dist/cli/commands/admin/index.js.map +1 -0
  515. package/dist/cli/commands/admin/migrate.d.ts +10 -0
  516. package/dist/cli/commands/admin/migrate.d.ts.map +1 -0
  517. package/dist/cli/commands/admin/migrate.js +20 -0
  518. package/dist/cli/commands/admin/migrate.js.map +1 -0
  519. package/dist/cli/commands/admin/realms/add.d.ts +13 -0
  520. package/dist/cli/commands/admin/realms/add.d.ts.map +1 -0
  521. package/dist/cli/commands/admin/realms/add.js +42 -0
  522. package/dist/cli/commands/admin/realms/add.js.map +1 -0
  523. package/dist/cli/commands/admin/realms/index.d.ts +5 -0
  524. package/dist/cli/commands/admin/realms/index.d.ts.map +1 -0
  525. package/dist/cli/commands/admin/realms/index.js +13 -0
  526. package/dist/cli/commands/admin/realms/index.js.map +1 -0
  527. package/dist/cli/commands/admin/realms/list.d.ts +14 -0
  528. package/dist/cli/commands/admin/realms/list.d.ts.map +1 -0
  529. package/dist/cli/commands/admin/realms/list.js +36 -0
  530. package/dist/cli/commands/admin/realms/list.js.map +1 -0
  531. package/dist/cli/commands/admin/realms/passkeys/index.d.ts +5 -0
  532. package/dist/cli/commands/admin/realms/passkeys/index.d.ts.map +1 -0
  533. package/dist/cli/commands/admin/realms/passkeys/index.js +13 -0
  534. package/dist/cli/commands/admin/realms/passkeys/index.js.map +1 -0
  535. package/dist/cli/commands/admin/realms/passkeys/set.d.ts +17 -0
  536. package/dist/cli/commands/admin/realms/passkeys/set.d.ts.map +1 -0
  537. package/dist/cli/commands/admin/realms/passkeys/set.js +46 -0
  538. package/dist/cli/commands/admin/realms/passkeys/set.js.map +1 -0
  539. package/dist/cli/commands/admin/realms/privy/index.d.ts +5 -0
  540. package/dist/cli/commands/admin/realms/privy/index.d.ts.map +1 -0
  541. package/dist/cli/commands/admin/realms/privy/index.js +13 -0
  542. package/dist/cli/commands/admin/realms/privy/index.js.map +1 -0
  543. package/dist/cli/commands/admin/realms/privy/set.d.ts +19 -0
  544. package/dist/cli/commands/admin/realms/privy/set.d.ts.map +1 -0
  545. package/dist/cli/commands/admin/realms/privy/set.js +66 -0
  546. package/dist/cli/commands/admin/realms/privy/set.js.map +1 -0
  547. package/dist/cli/commands/admin/realms/remove.d.ts +12 -0
  548. package/dist/cli/commands/admin/realms/remove.d.ts.map +1 -0
  549. package/dist/cli/commands/admin/realms/remove.js +35 -0
  550. package/dist/cli/commands/admin/realms/remove.js.map +1 -0
  551. package/dist/cli/commands/admin/realms/secp256k1/disable.d.ts +16 -0
  552. package/dist/cli/commands/admin/realms/secp256k1/disable.d.ts.map +1 -0
  553. package/dist/cli/commands/admin/realms/secp256k1/disable.js +42 -0
  554. package/dist/cli/commands/admin/realms/secp256k1/disable.js.map +1 -0
  555. package/dist/cli/commands/admin/realms/secp256k1/enable.d.ts +16 -0
  556. package/dist/cli/commands/admin/realms/secp256k1/enable.d.ts.map +1 -0
  557. package/dist/cli/commands/admin/realms/secp256k1/enable.js +42 -0
  558. package/dist/cli/commands/admin/realms/secp256k1/enable.js.map +1 -0
  559. package/dist/cli/commands/admin/realms/secp256k1/index.d.ts +9 -0
  560. package/dist/cli/commands/admin/realms/secp256k1/index.d.ts.map +1 -0
  561. package/dist/cli/commands/admin/realms/secp256k1/index.js +17 -0
  562. package/dist/cli/commands/admin/realms/secp256k1/index.js.map +1 -0
  563. package/dist/cli/commands/admin/realms/set.d.ts +17 -0
  564. package/dist/cli/commands/admin/realms/set.d.ts.map +1 -0
  565. package/dist/cli/commands/admin/realms/set.js +46 -0
  566. package/dist/cli/commands/admin/realms/set.js.map +1 -0
  567. package/dist/cli/commands/admin/rotate-key.d.ts +16 -0
  568. package/dist/cli/commands/admin/rotate-key.d.ts.map +1 -0
  569. package/dist/cli/commands/admin/rotate-key.js +46 -0
  570. package/dist/cli/commands/admin/rotate-key.js.map +1 -0
  571. package/dist/cli/commands/init.d.ts +11 -0
  572. package/dist/cli/commands/init.d.ts.map +1 -0
  573. package/dist/cli/commands/init.js +34 -0
  574. package/dist/cli/commands/init.js.map +1 -0
  575. package/dist/cli/commands/login.d.ts +12 -0
  576. package/dist/cli/commands/login.d.ts.map +1 -0
  577. package/dist/cli/commands/login.js +29 -0
  578. package/dist/cli/commands/login.js.map +1 -0
  579. package/dist/cli/commands/logout.d.ts +8 -0
  580. package/dist/cli/commands/logout.d.ts.map +1 -0
  581. package/dist/cli/commands/logout.js +19 -0
  582. package/dist/cli/commands/logout.js.map +1 -0
  583. package/dist/cli/commands/whoami.d.ts +12 -0
  584. package/dist/cli/commands/whoami.d.ts.map +1 -0
  585. package/dist/cli/commands/whoami.js +24 -0
  586. package/dist/cli/commands/whoami.js.map +1 -0
  587. package/dist/client/Actions.d.ts +108 -0
  588. package/dist/client/Actions.d.ts.map +1 -0
  589. package/dist/client/Actions.js +94 -0
  590. package/dist/client/Actions.js.map +1 -0
  591. package/dist/client/Auth.d.ts +143 -0
  592. package/dist/client/Auth.d.ts.map +1 -0
  593. package/dist/client/Auth.js +106 -0
  594. package/dist/client/Auth.js.map +1 -0
  595. package/dist/client/Authorization.d.ts +29 -0
  596. package/dist/client/Authorization.d.ts.map +1 -0
  597. package/dist/client/Authorization.js +12 -0
  598. package/dist/client/Authorization.js.map +1 -0
  599. package/dist/client/Decorator.d.ts +172 -0
  600. package/dist/client/Decorator.d.ts.map +1 -0
  601. package/dist/client/Decorator.js +241 -0
  602. package/dist/client/Decorator.js.map +1 -0
  603. package/dist/client/Key.d.ts +82 -0
  604. package/dist/client/Key.d.ts.map +1 -0
  605. package/dist/client/Key.js +81 -0
  606. package/dist/client/Key.js.map +1 -0
  607. package/dist/client/Pending.d.ts +38 -0
  608. package/dist/client/Pending.d.ts.map +1 -0
  609. package/dist/client/Pending.js +12 -0
  610. package/dist/client/Pending.js.map +1 -0
  611. package/dist/client/Permissions.d.ts +36 -0
  612. package/dist/client/Permissions.d.ts.map +1 -0
  613. package/dist/client/Permissions.js +16 -0
  614. package/dist/client/Permissions.js.map +1 -0
  615. package/dist/client/Storage.d.ts +27 -0
  616. package/dist/client/Storage.d.ts.map +1 -0
  617. package/dist/client/Storage.js +16 -0
  618. package/dist/client/Storage.js.map +1 -0
  619. package/dist/client/TempoAccount.d.ts +52 -0
  620. package/dist/client/TempoAccount.d.ts.map +1 -0
  621. package/dist/client/TempoAccount.js +17 -0
  622. package/dist/client/TempoAccount.js.map +1 -0
  623. package/dist/client/Tokens.d.ts +25 -0
  624. package/dist/client/Tokens.d.ts.map +1 -0
  625. package/dist/client/Tokens.js +12 -0
  626. package/dist/client/Tokens.js.map +1 -0
  627. package/dist/client/User.d.ts +21 -0
  628. package/dist/client/User.d.ts.map +1 -0
  629. package/dist/client/User.js +12 -0
  630. package/dist/client/User.js.map +1 -0
  631. package/dist/client/actions/account.d.ts +75 -0
  632. package/dist/client/actions/account.d.ts.map +1 -0
  633. package/dist/client/actions/account.js +102 -0
  634. package/dist/client/actions/account.js.map +1 -0
  635. package/dist/client/actions/device.d.ts +52 -0
  636. package/dist/client/actions/device.d.ts.map +1 -0
  637. package/dist/client/actions/device.js +103 -0
  638. package/dist/client/actions/device.js.map +1 -0
  639. package/dist/client/actions/email.d.ts +89 -0
  640. package/dist/client/actions/email.d.ts.map +1 -0
  641. package/dist/client/actions/email.js +86 -0
  642. package/dist/client/actions/email.js.map +1 -0
  643. package/dist/client/actions/oauth.d.ts +112 -0
  644. package/dist/client/actions/oauth.d.ts.map +1 -0
  645. package/dist/client/actions/oauth.js +103 -0
  646. package/dist/client/actions/oauth.js.map +1 -0
  647. package/dist/client/actions/passkey.d.ts +140 -0
  648. package/dist/client/actions/passkey.d.ts.map +1 -0
  649. package/dist/client/actions/passkey.js +170 -0
  650. package/dist/client/actions/passkey.js.map +1 -0
  651. package/dist/client/actions/realm.d.ts +25 -0
  652. package/dist/client/actions/realm.d.ts.map +1 -0
  653. package/dist/client/actions/realm.js +16 -0
  654. package/dist/client/actions/realm.js.map +1 -0
  655. package/dist/client/actions/redirect.d.ts +152 -0
  656. package/dist/client/actions/redirect.d.ts.map +1 -0
  657. package/dist/client/actions/redirect.js +311 -0
  658. package/dist/client/actions/redirect.js.map +1 -0
  659. package/dist/client/internal/accessKey.d.ts +21 -0
  660. package/dist/client/internal/accessKey.d.ts.map +1 -0
  661. package/dist/client/internal/accessKey.js +38 -0
  662. package/dist/client/internal/accessKey.js.map +1 -0
  663. package/dist/client/internal/account.d.ts +17 -0
  664. package/dist/client/internal/account.d.ts.map +1 -0
  665. package/dist/client/internal/account.js +3 -0
  666. package/dist/client/internal/account.js.map +1 -0
  667. package/dist/client/internal/api.d.ts +110 -0
  668. package/dist/client/internal/api.d.ts.map +1 -0
  669. package/dist/client/internal/api.js +136 -0
  670. package/dist/client/internal/api.js.map +1 -0
  671. package/dist/client/internal/headless.d.ts +159 -0
  672. package/dist/client/internal/headless.d.ts.map +1 -0
  673. package/dist/client/internal/headless.js +196 -0
  674. package/dist/client/internal/headless.js.map +1 -0
  675. package/dist/client/internal/indexedDb.d.ts +8 -0
  676. package/dist/client/internal/indexedDb.d.ts.map +1 -0
  677. package/dist/client/internal/indexedDb.js +32 -0
  678. package/dist/client/internal/indexedDb.js.map +1 -0
  679. package/dist/client/internal/request.d.ts +56 -0
  680. package/dist/client/internal/request.d.ts.map +1 -0
  681. package/dist/client/internal/request.js +44 -0
  682. package/dist/client/internal/request.js.map +1 -0
  683. package/dist/client/internal/store.d.ts +12 -0
  684. package/dist/client/internal/store.d.ts.map +1 -0
  685. package/dist/client/internal/store.js +15 -0
  686. package/dist/client/internal/store.js.map +1 -0
  687. package/dist/client/internal/verifier.d.ts +25 -0
  688. package/dist/client/internal/verifier.d.ts.map +1 -0
  689. package/dist/client/internal/verifier.js +52 -0
  690. package/dist/client/internal/verifier.js.map +1 -0
  691. package/dist/client.d.ts +18 -0
  692. package/dist/client.d.ts.map +1 -0
  693. package/dist/client.js +18 -0
  694. package/dist/client.js.map +1 -0
  695. package/dist/index.d.ts +6 -0
  696. package/dist/index.d.ts.map +1 -0
  697. package/dist/index.js +6 -0
  698. package/dist/index.js.map +1 -0
  699. package/dist/internal/Apps.d.ts +3169 -0
  700. package/dist/internal/Apps.d.ts.map +1 -0
  701. package/dist/internal/Apps.js +948 -0
  702. package/dist/internal/Apps.js.map +1 -0
  703. package/dist/internal/Auth.d.ts +4287 -0
  704. package/dist/internal/Auth.d.ts.map +1 -0
  705. package/dist/internal/Auth.js +185 -0
  706. package/dist/internal/Auth.js.map +1 -0
  707. package/dist/internal/Authorize.d.ts +526 -0
  708. package/dist/internal/Authorize.d.ts.map +1 -0
  709. package/dist/internal/Authorize.js +330 -0
  710. package/dist/internal/Authorize.js.map +1 -0
  711. package/dist/internal/Cache.d.ts +56 -0
  712. package/dist/internal/Cache.d.ts.map +1 -0
  713. package/dist/internal/Cache.js +65 -0
  714. package/dist/internal/Cache.js.map +1 -0
  715. package/dist/internal/Chain.d.ts +738 -0
  716. package/dist/internal/Chain.d.ts.map +1 -0
  717. package/dist/internal/Chain.js +65 -0
  718. package/dist/internal/Chain.js.map +1 -0
  719. package/dist/internal/ChainList.d.ts +117 -0
  720. package/dist/internal/ChainList.d.ts.map +1 -0
  721. package/dist/internal/ChainList.js +148 -0
  722. package/dist/internal/ChainList.js.map +1 -0
  723. package/dist/internal/ChainName.d.ts +11 -0
  724. package/dist/internal/ChainName.d.ts.map +1 -0
  725. package/dist/internal/ChainName.js +13 -0
  726. package/dist/internal/ChainName.js.map +1 -0
  727. package/dist/internal/CodeEmail.d.ts +38 -0
  728. package/dist/internal/CodeEmail.d.ts.map +1 -0
  729. package/dist/internal/CodeEmail.js +85 -0
  730. package/dist/internal/CodeEmail.js.map +1 -0
  731. package/dist/internal/ConfigurableAccount.d.ts +600 -0
  732. package/dist/internal/ConfigurableAccount.d.ts.map +1 -0
  733. package/dist/internal/ConfigurableAccount.js +795 -0
  734. package/dist/internal/ConfigurableAccount.js.map +1 -0
  735. package/dist/internal/Device.d.ts +246 -0
  736. package/dist/internal/Device.d.ts.map +1 -0
  737. package/dist/internal/Device.js +257 -0
  738. package/dist/internal/Device.js.map +1 -0
  739. package/dist/internal/Env.d.ts +97 -0
  740. package/dist/internal/Env.d.ts.map +1 -0
  741. package/dist/internal/Env.js +2 -0
  742. package/dist/internal/Env.js.map +1 -0
  743. package/dist/internal/ErrorResponse.d.ts +608 -0
  744. package/dist/internal/ErrorResponse.d.ts.map +1 -0
  745. package/dist/internal/ErrorResponse.js +701 -0
  746. package/dist/internal/ErrorResponse.js.map +1 -0
  747. package/dist/internal/Id.d.ts +10 -0
  748. package/dist/internal/Id.d.ts.map +1 -0
  749. package/dist/internal/Id.js +34 -0
  750. package/dist/internal/Id.js.map +1 -0
  751. package/dist/internal/KeyAuthorization.d.ts +1650 -0
  752. package/dist/internal/KeyAuthorization.d.ts.map +1 -0
  753. package/dist/internal/KeyAuthorization.js +1187 -0
  754. package/dist/internal/KeyAuthorization.js.map +1 -0
  755. package/dist/internal/Limits.d.ts +70 -0
  756. package/dist/internal/Limits.d.ts.map +1 -0
  757. package/dist/internal/Limits.js +36 -0
  758. package/dist/internal/Limits.js.map +1 -0
  759. package/dist/internal/Log.d.ts +34 -0
  760. package/dist/internal/Log.d.ts.map +1 -0
  761. package/dist/internal/Log.js +99 -0
  762. package/dist/internal/Log.js.map +1 -0
  763. package/dist/internal/LogLine.d.ts +29 -0
  764. package/dist/internal/LogLine.d.ts.map +1 -0
  765. package/dist/internal/LogLine.js +50 -0
  766. package/dist/internal/LogLine.js.map +1 -0
  767. package/dist/internal/Migrations.d.ts +28 -0
  768. package/dist/internal/Migrations.d.ts.map +1 -0
  769. package/dist/internal/Migrations.js +82 -0
  770. package/dist/internal/Migrations.js.map +1 -0
  771. package/dist/internal/Owner.d.ts +230 -0
  772. package/dist/internal/Owner.d.ts.map +1 -0
  773. package/dist/internal/Owner.js +101 -0
  774. package/dist/internal/Owner.js.map +1 -0
  775. package/dist/internal/Passkey.d.ts +901 -0
  776. package/dist/internal/Passkey.d.ts.map +1 -0
  777. package/dist/internal/Passkey.js +1185 -0
  778. package/dist/internal/Passkey.js.map +1 -0
  779. package/dist/internal/PendingKey.d.ts +49 -0
  780. package/dist/internal/PendingKey.d.ts.map +1 -0
  781. package/dist/internal/PendingKey.js +58 -0
  782. package/dist/internal/PendingKey.js.map +1 -0
  783. package/dist/internal/Privy.d.ts +138 -0
  784. package/dist/internal/Privy.d.ts.map +1 -0
  785. package/dist/internal/Privy.js +285 -0
  786. package/dist/internal/Privy.js.map +1 -0
  787. package/dist/internal/RateLimit.d.ts +218 -0
  788. package/dist/internal/RateLimit.d.ts.map +1 -0
  789. package/dist/internal/RateLimit.js +209 -0
  790. package/dist/internal/RateLimit.js.map +1 -0
  791. package/dist/internal/Realm.d.ts +290 -0
  792. package/dist/internal/Realm.d.ts.map +1 -0
  793. package/dist/internal/Realm.js +502 -0
  794. package/dist/internal/Realm.js.map +1 -0
  795. package/dist/internal/RequestId.d.ts +16 -0
  796. package/dist/internal/RequestId.d.ts.map +1 -0
  797. package/dist/internal/RequestId.js +78 -0
  798. package/dist/internal/RequestId.js.map +1 -0
  799. package/dist/internal/SigningKey.d.ts +126 -0
  800. package/dist/internal/SigningKey.d.ts.map +1 -0
  801. package/dist/internal/SigningKey.js +221 -0
  802. package/dist/internal/SigningKey.js.map +1 -0
  803. package/dist/internal/TempoAccount.d.ts +181 -0
  804. package/dist/internal/TempoAccount.d.ts.map +1 -0
  805. package/dist/internal/TempoAccount.js +369 -0
  806. package/dist/internal/TempoAccount.js.map +1 -0
  807. package/dist/internal/TestInbox.d.ts +42 -0
  808. package/dist/internal/TestInbox.d.ts.map +1 -0
  809. package/dist/internal/TestInbox.js +20 -0
  810. package/dist/internal/TestInbox.js.map +1 -0
  811. package/dist/internal/Timing.d.ts +52 -0
  812. package/dist/internal/Timing.d.ts.map +1 -0
  813. package/dist/internal/Timing.js +116 -0
  814. package/dist/internal/Timing.js.map +1 -0
  815. package/dist/internal/Validation.d.ts +52 -0
  816. package/dist/internal/Validation.d.ts.map +1 -0
  817. package/dist/internal/Validation.js +22 -0
  818. package/dist/internal/Validation.js.map +1 -0
  819. package/dist/internal/Verification.d.ts +24 -0
  820. package/dist/internal/Verification.d.ts.map +1 -0
  821. package/dist/internal/Verification.js +37 -0
  822. package/dist/internal/Verification.js.map +1 -0
  823. package/dist/internal/Wallet.d.ts +66 -0
  824. package/dist/internal/Wallet.d.ts.map +1 -0
  825. package/dist/internal/Wallet.js +59 -0
  826. package/dist/internal/Wallet.js.map +1 -0
  827. package/dist/internal/owners/Passkey.d.ts +9 -0
  828. package/dist/internal/owners/Passkey.d.ts.map +1 -0
  829. package/dist/internal/owners/Passkey.js +58 -0
  830. package/dist/internal/owners/Passkey.js.map +1 -0
  831. package/dist/internal/owners/Privy.d.ts +13 -0
  832. package/dist/internal/owners/Privy.d.ts.map +1 -0
  833. package/dist/internal/owners/Privy.js +59 -0
  834. package/dist/internal/owners/Privy.js.map +1 -0
  835. package/dist/internal/owners/Secp256k1.d.ts +12 -0
  836. package/dist/internal/owners/Secp256k1.d.ts.map +1 -0
  837. package/dist/internal/owners/Secp256k1.js +99 -0
  838. package/dist/internal/owners/Secp256k1.js.map +1 -0
  839. package/dist/worker.d.ts +18 -0
  840. package/dist/worker.d.ts.map +1 -0
  841. package/dist/worker.js +18 -0
  842. package/dist/worker.js.map +1 -0
  843. package/package.json +83 -3
  844. package/src/Api.ts +157 -0
  845. package/src/App.ts +316 -0
  846. package/src/api/account.ts +2266 -0
  847. package/src/api/authenticate.ts +1662 -0
  848. package/src/api/authorize.ts +1086 -0
  849. package/src/api/device.ts +516 -0
  850. package/src/api/health.ts +72 -0
  851. package/src/api/lib/AccountStep.ts +485 -0
  852. package/src/api/lib/Auth.ts +164 -0
  853. package/src/api/lib/Configure.ts +921 -0
  854. package/src/api/lib/Consent.ts +388 -0
  855. package/src/api/lib/Cors.ts +160 -0
  856. package/src/api/lib/Database.ts +10 -0
  857. package/src/api/lib/DeviceRequest.ts +244 -0
  858. package/src/api/lib/FirstAccount.ts +136 -0
  859. package/src/api/lib/Headless.ts +616 -0
  860. package/src/api/lib/IsolateCache.ts +28 -0
  861. package/src/api/lib/KeySigner.ts +690 -0
  862. package/src/api/lib/PasskeyLink.ts +162 -0
  863. package/src/api/lib/Session.ts +64 -0
  864. package/src/api/lib/SignInConsent.ts +393 -0
  865. package/src/api/oauth.ts +1796 -0
  866. package/src/app/components/CodeInput.tsx +153 -0
  867. package/src/app/components/DevTools.tsx +1071 -0
  868. package/src/app/components/Grant.tsx +476 -0
  869. package/src/app/components/icons/BRLA.png +0 -0
  870. package/src/app/components/icons/BRZ.svg +1 -0
  871. package/src/app/components/icons/CHFAU.png +0 -0
  872. package/src/app/components/icons/DLUSD.png +0 -0
  873. package/src/app/components/icons/EURAU.svg +1 -0
  874. package/src/app/components/icons/EURC.e.svg +1 -0
  875. package/src/app/components/icons/GBPA.svg +4 -0
  876. package/src/app/components/icons/GUSD.svg +1 -0
  877. package/src/app/components/icons/MACH.svg +4 -0
  878. package/src/app/components/icons/OUSD.svg +5 -0
  879. package/src/app/components/icons/PRIME.svg +14 -0
  880. package/src/app/components/icons/SBC.svg +1 -0
  881. package/src/app/components/icons/SEKAU.svg +5 -0
  882. package/src/app/components/icons/USD1.svg +30 -0
  883. package/src/app/components/icons/USDB.svg +11 -0
  884. package/src/app/components/icons/USDC.e.svg +1 -0
  885. package/src/app/components/icons/USDT0.svg +1 -0
  886. package/src/app/components/icons/USDY.svg +16 -0
  887. package/src/app/components/icons/USDe.svg +1 -0
  888. package/src/app/components/icons/YLDS.svg +3 -0
  889. package/src/app/components/icons/alphaUSD.svg +1 -0
  890. package/src/app/components/icons/betaUSD.svg +1 -0
  891. package/src/app/components/icons/cUSD.svg +1 -0
  892. package/src/app/components/icons/cbBTC.svg +1 -0
  893. package/src/app/components/icons/frxUSD.svg +1 -0
  894. package/src/app/components/icons/goUSD.svg +5 -0
  895. package/src/app/components/icons/iUSD.svg +1 -0
  896. package/src/app/components/icons/pathUSD.svg +25 -0
  897. package/src/app/components/icons/rUSD.svg +1 -0
  898. package/src/app/components/icons/reUSD.svg +1 -0
  899. package/src/app/components/icons/sUSDe.svg +1 -0
  900. package/src/app/components/icons/siUSD.svg +1 -0
  901. package/src/app/components/icons/stcUSD.svg +1 -0
  902. package/src/app/components/icons/syrupUSDC.svg +5 -0
  903. package/src/app/components/icons/thetaUSD.svg +1 -0
  904. package/src/app/components/icons/wYLDS.svg +10 -0
  905. package/src/app/components/icons/wsrUSD.svg +1 -0
  906. package/src/app/components/logos/OUSD.dark.svg +17 -0
  907. package/src/app/components/logos/OUSD.light.svg +17 -0
  908. package/src/app/coverage.server.ts +73 -0
  909. package/src/app/coverage.ts +69 -0
  910. package/src/app/crons/cleanup.ts +104 -0
  911. package/src/app/db/auth.ts +440 -0
  912. package/src/app/db/migrations/0000_better_auth.sql +53 -0
  913. package/src/app/db/migrations/0001_oauth_provider.sql +162 -0
  914. package/src/app/db/migrations/0002_device_code.sql +17 -0
  915. package/src/app/db/migrations/0003_realms.sql +27 -0
  916. package/src/app/db/migrations/0004_default_realm.sql +2 -0
  917. package/src/app/db/migrations/0005_passkeys.sql +30 -0
  918. package/src/app/db/migrations/0006_first_accounts.sql +9 -0
  919. package/src/app/db/migrations/0007_pending_keys.sql +13 -0
  920. package/src/app/db/migrations/0008_secp256k1_owners.sql +18 -0
  921. package/src/app/db/migrations/0009_device_requests.sql +8 -0
  922. package/src/app/db/migrations/0010_device_keys.sql +4 -0
  923. package/src/app/db/migrations/0011_registered_passkeys.sql +2 -0
  924. package/src/app/db/migrations/0012_passkey_accounts.sql +7 -0
  925. package/src/app/db/migrations/0013_first_party_apps.sql +4 -0
  926. package/src/app/db/migrations/0014_logout_revokes_tokens.sql +17 -0
  927. package/src/app/db/migrations/0015_expiry_indexes.sql +9 -0
  928. package/src/app/db/migrations/0016_configurable_accounts.sql +15 -0
  929. package/src/app/db/migrations/0017_account_config_keys.sql +3 -0
  930. package/src/app/db/migrations/0018_better_auth_1_8.sql +9 -0
  931. package/src/app/db/migrations/0019_drop_provider_account_index.sql +1 -0
  932. package/src/app/db/migrations/meta/0000_snapshot.json +362 -0
  933. package/src/app/db/migrations/meta/0001_snapshot.json +1487 -0
  934. package/src/app/db/migrations/meta/0002_snapshot.json +1603 -0
  935. package/src/app/db/migrations/meta/0003_snapshot.json +1760 -0
  936. package/src/app/db/migrations/meta/0004_snapshot.json +1760 -0
  937. package/src/app/db/migrations/meta/0005_snapshot.json +1911 -0
  938. package/src/app/db/migrations/meta/0006_snapshot.json +1967 -0
  939. package/src/app/db/migrations/meta/0007_snapshot.json +2047 -0
  940. package/src/app/db/migrations/meta/0008_snapshot.json +2157 -0
  941. package/src/app/db/migrations/meta/0009_snapshot.json +2207 -0
  942. package/src/app/db/migrations/meta/0010_snapshot.json +2231 -0
  943. package/src/app/db/migrations/meta/0011_snapshot.json +2231 -0
  944. package/src/app/db/migrations/meta/0012_snapshot.json +2231 -0
  945. package/src/app/db/migrations/meta/0013_snapshot.json +2231 -0
  946. package/src/app/db/migrations/meta/0014_snapshot.json +2231 -0
  947. package/src/app/db/migrations/meta/0015_snapshot.json +2375 -0
  948. package/src/app/db/migrations/meta/0016_snapshot.json +2475 -0
  949. package/src/app/db/migrations/meta/0017_snapshot.json +2481 -0
  950. package/src/app/db/migrations/meta/0018_snapshot.json +2535 -0
  951. package/src/app/db/migrations/meta/0019_snapshot.json +2514 -0
  952. package/src/app/db/migrations/meta/_journal.json +146 -0
  953. package/src/app/db/schema.ts +241 -0
  954. package/src/app/db/table.ts +31 -0
  955. package/src/app/env.ts +57 -0
  956. package/src/app/inbox.ts +190 -0
  957. package/src/app/lib/Client.ts +82 -0
  958. package/src/app/lib/Inbox.ts +11 -0
  959. package/src/app/lib/Loader.ts +21 -0
  960. package/src/app/lib/Upgrade.ts +221 -0
  961. package/src/app/package.json +8 -0
  962. package/src/app/public/_headers +4 -0
  963. package/src/app/routeTree.gen.ts +219 -0
  964. package/src/app/router.tsx +47 -0
  965. package/src/app/routes/[_].flows.tsx +4254 -0
  966. package/src/app/routes/__root.tsx +172 -0
  967. package/src/app/routes/authorize.tsx +379 -0
  968. package/src/app/routes/choose-account.tsx +144 -0
  969. package/src/app/routes/deposit.tsx +107 -0
  970. package/src/app/routes/device.tsx +273 -0
  971. package/src/app/routes/error.tsx +62 -0
  972. package/src/app/routes/index.tsx +511 -0
  973. package/src/app/routes/login.tsx +577 -0
  974. package/src/app/screens/Account.tsx +559 -0
  975. package/src/app/screens/Approval.tsx +444 -0
  976. package/src/app/screens/ChooseAccount.tsx +206 -0
  977. package/src/app/screens/Deposit.tsx +523 -0
  978. package/src/app/screens/DeviceApproval.tsx +500 -0
  979. package/src/app/screens/NotFound.tsx +62 -0
  980. package/src/app/screens/SignIn.tsx +372 -0
  981. package/src/app/screens/WalletUpgrade.tsx +121 -0
  982. package/src/app/screens/chains/base.svg +3 -0
  983. package/src/app/screens/chains/ethereum.svg +11 -0
  984. package/src/app/screens/chains/solana.svg +4 -0
  985. package/src/app/screens/chains/tempo.svg +4 -0
  986. package/src/app/server.ts +342 -0
  987. package/src/app/vite.config.ts +128 -0
  988. package/src/app/void.config.ts +36 -0
  989. package/src/app/wallet.ts +69 -0
  990. package/src/app/zyzz.config.ts +52 -0
  991. package/src/cli/Admin.ts +74 -0
  992. package/src/cli/Apps.ts +27 -0
  993. package/src/cli/Cli.ts +41 -0
  994. package/src/cli/Project.ts +119 -0
  995. package/src/cli/Realms.ts +49 -0
  996. package/src/cli/Session.ts +290 -0
  997. package/src/cli/User.ts +40 -0
  998. package/src/cli/V1.ts +54 -0
  999. package/src/cli/bin.ts +44 -0
  1000. package/src/cli/commands/admin/apps/create.ts +96 -0
  1001. package/src/cli/commands/admin/apps/delete.ts +38 -0
  1002. package/src/cli/commands/admin/apps/index.ts +15 -0
  1003. package/src/cli/commands/admin/apps/list.ts +25 -0
  1004. package/src/cli/commands/admin/apps/rotate-secret.ts +47 -0
  1005. package/src/cli/commands/admin/apps/update.ts +79 -0
  1006. package/src/cli/commands/admin/index.ts +14 -0
  1007. package/src/cli/commands/admin/migrate.ts +19 -0
  1008. package/src/cli/commands/admin/realms/add.ts +40 -0
  1009. package/src/cli/commands/admin/realms/index.ts +14 -0
  1010. package/src/cli/commands/admin/realms/list.ts +38 -0
  1011. package/src/cli/commands/admin/realms/passkeys/index.ts +15 -0
  1012. package/src/cli/commands/admin/realms/passkeys/set.ts +44 -0
  1013. package/src/cli/commands/admin/realms/privy/index.ts +14 -0
  1014. package/src/cli/commands/admin/realms/privy/set.ts +69 -0
  1015. package/src/cli/commands/admin/realms/remove.ts +33 -0
  1016. package/src/cli/commands/admin/realms/secp256k1/disable.ts +40 -0
  1017. package/src/cli/commands/admin/realms/secp256k1/enable.ts +40 -0
  1018. package/src/cli/commands/admin/realms/secp256k1/index.ts +19 -0
  1019. package/src/cli/commands/admin/realms/set.ts +46 -0
  1020. package/src/cli/commands/admin/rotate-key.ts +47 -0
  1021. package/src/cli/commands/init.ts +42 -0
  1022. package/src/cli/commands/login.ts +32 -0
  1023. package/src/cli/commands/logout.ts +19 -0
  1024. package/src/cli/commands/whoami.ts +23 -0
  1025. package/src/client/Actions.ts +180 -0
  1026. package/src/client/Auth.ts +267 -0
  1027. package/src/client/Authorization.ts +34 -0
  1028. package/src/client/Decorator.ts +444 -0
  1029. package/src/client/Key.ts +137 -0
  1030. package/src/client/Pending.ts +45 -0
  1031. package/src/client/Permissions.ts +41 -0
  1032. package/src/client/Storage.ts +29 -0
  1033. package/src/client/TempoAccount.ts +55 -0
  1034. package/src/client/Tokens.ts +27 -0
  1035. package/src/client/User.ts +23 -0
  1036. package/src/client/actions/account.ts +171 -0
  1037. package/src/client/actions/device.ts +166 -0
  1038. package/src/client/actions/email.ts +164 -0
  1039. package/src/client/actions/oauth.ts +179 -0
  1040. package/src/client/actions/passkey.ts +333 -0
  1041. package/src/client/actions/realm.ts +37 -0
  1042. package/src/client/actions/redirect.ts +502 -0
  1043. package/src/client/internal/accessKey.ts +54 -0
  1044. package/src/client/internal/account.ts +18 -0
  1045. package/src/client/internal/api.ts +242 -0
  1046. package/src/client/internal/headless.ts +308 -0
  1047. package/src/client/internal/indexedDb.ts +44 -0
  1048. package/src/client/internal/request.ts +70 -0
  1049. package/src/client/internal/store.ts +20 -0
  1050. package/src/client/internal/verifier.ts +75 -0
  1051. package/src/client.ts +17 -0
  1052. package/src/index.ts +5 -0
  1053. package/src/internal/Apps.ts +1283 -0
  1054. package/src/internal/Auth.ts +273 -0
  1055. package/src/internal/Authorize.ts +433 -0
  1056. package/src/internal/Balance.ts +144 -0
  1057. package/src/internal/BodyLimit.ts +31 -0
  1058. package/src/internal/Cache.ts +119 -0
  1059. package/src/internal/Chain.ts +99 -0
  1060. package/src/internal/ChainList.ts +270 -0
  1061. package/src/internal/ChainName.ts +14 -0
  1062. package/src/internal/ChainStatus.ts +65 -0
  1063. package/src/internal/CodeEmail.ts +138 -0
  1064. package/src/internal/ConfigurableAccount.ts +1315 -0
  1065. package/src/internal/Device.ts +471 -0
  1066. package/src/internal/Env.ts +92 -0
  1067. package/src/internal/ErrorResponse.ts +896 -0
  1068. package/src/internal/Faucet.ts +43 -0
  1069. package/src/internal/Id.ts +41 -0
  1070. package/src/internal/KeyAuthorization.ts +1536 -0
  1071. package/src/internal/Limits.ts +40 -0
  1072. package/src/internal/Log.ts +166 -0
  1073. package/src/internal/LogLine.ts +81 -0
  1074. package/src/internal/Logout.ts +356 -0
  1075. package/src/internal/Migrations.ts +120 -0
  1076. package/src/internal/OpenApi.ts +300 -0
  1077. package/src/internal/Owner.ts +310 -0
  1078. package/src/internal/Passkey.ts +1904 -0
  1079. package/src/internal/PendingKey.ts +104 -0
  1080. package/src/internal/Privy.ts +536 -0
  1081. package/src/internal/RateLimit.ts +346 -0
  1082. package/src/internal/Realm.ts +814 -0
  1083. package/src/internal/RequestId.ts +118 -0
  1084. package/src/internal/SignInGrant.ts +175 -0
  1085. package/src/internal/SigningKey.ts +319 -0
  1086. package/src/internal/TempoAccount.ts +545 -0
  1087. package/src/internal/TestInbox.ts +51 -0
  1088. package/src/internal/Timing.ts +172 -0
  1089. package/src/internal/Validation.ts +52 -0
  1090. package/src/internal/Verification.ts +58 -0
  1091. package/src/internal/Wallet.ts +101 -0
  1092. package/src/internal/owners/Passkey.ts +76 -0
  1093. package/src/internal/owners/Privy.ts +82 -0
  1094. package/src/internal/owners/Secp256k1.ts +139 -0
  1095. package/src/types/app.d.ts +39 -0
  1096. package/src/worker.ts +17 -0
@@ -0,0 +1,3169 @@
1
+ import type { ClientMetadataResourceFetch } from '@better-auth/oauth-provider';
2
+ import { z } from 'zod';
3
+ import type * as Cache from './Cache.js';
4
+ import type * as PendingKey from './PendingKey.js';
5
+ import type * as Realm from './Realm.js';
6
+ /** Another app already has the client ID. */
7
+ export declare class ExistsError extends Error {
8
+ readonly name = "Apps.ExistsError";
9
+ constructor(options: {
10
+ clientId: string;
11
+ });
12
+ }
13
+ /** A name, a redirect URI, or another value of an app is not valid. */
14
+ export declare class InvalidError extends Error {
15
+ readonly name = "Apps.InvalidError";
16
+ }
17
+ /** No OAuth app has the client ID. */
18
+ export declare class NotFoundError extends Error {
19
+ readonly name = "Apps.NotFoundError";
20
+ constructor(options: {
21
+ clientId: string;
22
+ });
23
+ }
24
+ /** The app redeems codes with PKCE alone, so it has no client secret to rotate. */
25
+ export declare class PublicError extends Error {
26
+ readonly name = "Apps.PublicError";
27
+ constructor(options: {
28
+ clientId: string;
29
+ });
30
+ }
31
+ /** An OAuth app, as `tempo-id admin apps` returns it. */
32
+ export type App = {
33
+ /** Sent as `client_id`. */
34
+ clientId: string;
35
+ /** When the app was created. */
36
+ createdAt: Date | null;
37
+ /** Whether the app signs in through the device grant, as a CLI does. */
38
+ device: boolean;
39
+ /** Whether `tempo-id admin apps` registered the app, which then skips consent for keyless requests. */
40
+ firstParty: boolean;
41
+ /** The logo as a `data:` URL. Only an app with an origin client ID has one. */
42
+ logo: string | null;
43
+ /** The display name on the approval page. */
44
+ name: string | null;
45
+ /** The URIs that `GET /oauth2/end-session` may return to. */
46
+ postLogoutRedirectUris: readonly string[];
47
+ /** The URIs that the app returns to. */
48
+ redirectUris: readonly string[];
49
+ /** Whether the app holds a client secret for its backend. */
50
+ secret: boolean;
51
+ /** Whether the app holds the `tempo-id:sign` scope. */
52
+ sign: boolean;
53
+ /** `web` for a browser app or a backend, and `native` for a mobile app. */
54
+ type: 'native' | 'web';
55
+ };
56
+ /** The grant type of the device grant (RFC 8628 §3.4). */
57
+ export declare const deviceGrant = "urn:ietf:params:oauth:grant-type:device_code";
58
+ /** Lets an app bind its own challenge, and request unknown key calls headlessly. */
59
+ export declare const signScope = "tempo-id:sign";
60
+ /** Returns whether `clientSecret` matches the enabled app, which selects a rate limit's app. */
61
+ export declare function authenticate(db: Realm.Database, options: authenticate.Options): Promise<boolean>;
62
+ export declare namespace authenticate {
63
+ type Options = {
64
+ /** The client ID that the request names. */
65
+ clientId: string;
66
+ /** The client secret that the request sends. */
67
+ clientSecret: string;
68
+ };
69
+ }
70
+ /**
71
+ * Registers an app, and returns it with its client secret, which appears only here. Throws
72
+ * `InvalidError` for an invalid value, and `ExistsError` for a client ID in use.
73
+ */
74
+ export declare function create(db: Realm.Database, options: create.Options): Promise<{
75
+ app: App;
76
+ clientSecret?: string;
77
+ }>;
78
+ export declare namespace create {
79
+ type Options = {
80
+ /** Another deployment's client ID to keep. Defaults to 32 random letters. */
81
+ clientId?: string | undefined;
82
+ /** Another deployment's client secret to keep. Implies `secret`. */
83
+ clientSecret?: string | undefined;
84
+ /** Whether the app signs in through the device grant. Defaults to `false`. */
85
+ device?: boolean | undefined;
86
+ /** The display name on the approval page. */
87
+ name: string;
88
+ /** The URIs that `GET /oauth2/end-session` may return to. Defaults to none. */
89
+ postLogoutRedirectUris?: readonly string[] | undefined;
90
+ /** The URIs that the app returns to, in every environment. A device app may have none. */
91
+ redirectUris?: readonly string[] | undefined;
92
+ /** Whether the app receives a new client secret. Defaults to `false`. */
93
+ secret?: boolean | undefined;
94
+ /** Whether the app holds the `tempo-id:sign` scope. Defaults to `false`. */
95
+ sign?: boolean | undefined;
96
+ /** The application type. Defaults to `web`. */
97
+ type?: App['type'] | undefined;
98
+ };
99
+ }
100
+ /**
101
+ * Returns the fetch of third-party apps' metadata documents, through `fetcher`. It refuses
102
+ * redirects, since a document must sit at its client ID's URL.
103
+ */
104
+ export declare function fetchMetadata(fetcher?: fetchMetadata.Fetcher): ClientMetadataResourceFetch;
105
+ export declare namespace fetchMetadata {
106
+ /** The global scope or a service binding. */
107
+ type Fetcher = {
108
+ /** Fetches the request. */
109
+ fetch: (request: Request) => Promise<Response>;
110
+ };
111
+ }
112
+ /** Returns the enabled first-party apps with a redirect URI at `origin`. */
113
+ export declare function firstPartyOrigin(db: Realm.Database, options: firstPartyOrigin.Options): Promise<readonly App[]>;
114
+ export declare namespace firstPartyOrigin {
115
+ type Options = {
116
+ /** The request's `Origin`. */
117
+ origin: string;
118
+ };
119
+ }
120
+ /**
121
+ * Returns the app with `clientId`. Throws `NotFoundError` if it is unknown, or disabled with
122
+ * `enabled`.
123
+ */
124
+ export declare function get(db: Realm.Database, options: get.Options): Promise<App>;
125
+ export declare namespace get {
126
+ type Options = {
127
+ /** The app's client ID. */
128
+ clientId: string;
129
+ /** Whether a disabled app counts as no app. Defaults to `false`. */
130
+ enabled?: boolean | undefined;
131
+ };
132
+ }
133
+ /** Returns the SHA-256 hash of a client secret as unpadded base64url, as the row holds it. */
134
+ export declare function hashSecret(secret: string): Promise<string>;
135
+ /** Returns every registered app, oldest first, without third-party apps. */
136
+ export declare function list(db: Realm.Database): Promise<readonly App[]>;
137
+ /** Returns the Better Auth plugins that serve OAuth apps: the JWT plugin and the OAuth provider. */
138
+ export declare function plugins(options: plugins.Options): ({
139
+ id: "jwt";
140
+ version: string;
141
+ options: NoInfer<{
142
+ adapter: {
143
+ getJwks: (ctx: import("better-auth").GenericEndpointContext) => Promise<import("better-auth/plugins/jwt").Jwk[]>;
144
+ };
145
+ disableSettingJwtHeader: true;
146
+ jwks: {
147
+ gracePeriod: number;
148
+ jwksPath: string;
149
+ keyPairConfig: {
150
+ alg: 'RS256';
151
+ modulusLength: number;
152
+ };
153
+ };
154
+ jwt: {
155
+ issuer: string;
156
+ };
157
+ }>;
158
+ init(ctx: import("better-auth").AuthContext): {
159
+ context: {
160
+ sessionConfig: {
161
+ cookieCacheSigner: import("better-auth").CookieCacheSigner;
162
+ updateAge: number;
163
+ expiresIn: number;
164
+ freshAge: number;
165
+ cookieRefreshCache: false | {
166
+ enabled: true;
167
+ updateAge: number;
168
+ };
169
+ };
170
+ };
171
+ } | undefined;
172
+ endpoints: {
173
+ getJwks: import("better-auth").StrictEndpoint<string, {
174
+ method: "GET";
175
+ metadata: {
176
+ openapi: {
177
+ operationId: string;
178
+ description: string;
179
+ responses: {
180
+ "200": {
181
+ description: string;
182
+ content: {
183
+ "application/json": {
184
+ schema: {
185
+ type: "object";
186
+ properties: {
187
+ keys: {
188
+ type: string;
189
+ description: string;
190
+ items: {
191
+ type: string;
192
+ properties: {
193
+ kid: {
194
+ type: string;
195
+ description: string;
196
+ };
197
+ kty: {
198
+ type: string;
199
+ description: string;
200
+ };
201
+ alg: {
202
+ type: string;
203
+ description: string;
204
+ };
205
+ use: {
206
+ type: string;
207
+ description: string;
208
+ enum: string[];
209
+ nullable: boolean;
210
+ };
211
+ n: {
212
+ type: string;
213
+ description: string;
214
+ nullable: boolean;
215
+ };
216
+ e: {
217
+ type: string;
218
+ description: string;
219
+ nullable: boolean;
220
+ };
221
+ crv: {
222
+ type: string;
223
+ description: string;
224
+ nullable: boolean;
225
+ };
226
+ x: {
227
+ type: string;
228
+ description: string;
229
+ nullable: boolean;
230
+ };
231
+ y: {
232
+ type: string;
233
+ description: string;
234
+ nullable: boolean;
235
+ };
236
+ };
237
+ required: string[];
238
+ };
239
+ };
240
+ };
241
+ required: string[];
242
+ };
243
+ };
244
+ };
245
+ };
246
+ };
247
+ };
248
+ };
249
+ }, import("better-auth").JSONWebKeySet>;
250
+ getToken: import("better-auth").StrictEndpoint<"/token", {
251
+ method: "GET";
252
+ requireHeaders: true;
253
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
254
+ session: {
255
+ session: Record<string, any> & {
256
+ id: string;
257
+ createdAt: Date;
258
+ updatedAt: Date;
259
+ userId: string;
260
+ expiresAt: Date;
261
+ token: string;
262
+ ipAddress?: string | null | undefined;
263
+ userAgent?: string | null | undefined;
264
+ };
265
+ user: Record<string, any> & {
266
+ id: string;
267
+ createdAt: Date;
268
+ updatedAt: Date;
269
+ email: string;
270
+ emailVerified: boolean;
271
+ name: string;
272
+ image?: string | null | undefined;
273
+ };
274
+ };
275
+ }>>[];
276
+ metadata: {
277
+ openapi: {
278
+ operationId: string;
279
+ description: string;
280
+ responses: {
281
+ 200: {
282
+ description: string;
283
+ content: {
284
+ "application/json": {
285
+ schema: {
286
+ type: "object";
287
+ properties: {
288
+ token: {
289
+ type: string;
290
+ };
291
+ };
292
+ };
293
+ };
294
+ };
295
+ };
296
+ };
297
+ };
298
+ };
299
+ }, {
300
+ token: string;
301
+ }>;
302
+ signJWT: import("better-auth").StrictEndpoint<string, {
303
+ method: "POST";
304
+ metadata: {
305
+ $Infer: {
306
+ body: {
307
+ payload: import("better-auth").JWTPayload;
308
+ overrideOptions?: import("better-auth/plugins/jwt").JwtOptions | undefined;
309
+ };
310
+ };
311
+ };
312
+ body: z.ZodObject<{
313
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
314
+ overrideOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
315
+ }, z.core.$strip>;
316
+ }, {
317
+ token: string;
318
+ }>;
319
+ verifyJWT: import("better-auth").StrictEndpoint<string, {
320
+ method: "POST";
321
+ metadata: {
322
+ $Infer: {
323
+ body: {
324
+ token: string;
325
+ issuer?: string;
326
+ };
327
+ response: {
328
+ payload: {
329
+ sub: string;
330
+ aud: string;
331
+ [key: string]: any;
332
+ } | null;
333
+ };
334
+ };
335
+ };
336
+ body: z.ZodObject<{
337
+ token: z.ZodString;
338
+ issuer: z.ZodOptional<z.ZodString>;
339
+ }, z.core.$strip>;
340
+ }, {
341
+ payload: (import("better-auth").JWTPayload & Required<Pick<import("better-auth").JWTPayload, "sub" | "aud">>) | null;
342
+ }>;
343
+ };
344
+ hooks: {
345
+ after: {
346
+ matcher(context: import("better-auth").HookEndpointContext): boolean;
347
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
348
+ }[];
349
+ };
350
+ schema: {
351
+ jwks: {
352
+ fields: {
353
+ publicKey: {
354
+ type: "string";
355
+ required: true;
356
+ };
357
+ privateKey: {
358
+ type: "string";
359
+ required: true;
360
+ };
361
+ createdAt: {
362
+ type: "date";
363
+ required: true;
364
+ };
365
+ expiresAt: {
366
+ type: "date";
367
+ required: false;
368
+ };
369
+ alg: {
370
+ type: "string";
371
+ required: false;
372
+ };
373
+ crv: {
374
+ type: "string";
375
+ required: false;
376
+ };
377
+ };
378
+ };
379
+ };
380
+ } | {
381
+ id: "oauth-provider";
382
+ version: string;
383
+ options: NoInfer<{
384
+ allowDynamicClientRegistration: false;
385
+ cachedResources: Set<string>;
386
+ cachedTrustedClients: Set<string> & {
387
+ has: () => true;
388
+ };
389
+ clientRegistrationDefaultScopes: ("email" | "offline_access" | "openid" | "profile")[];
390
+ consentPage: string;
391
+ customIdTokenClaims: (info: {
392
+ user: {
393
+ id: string;
394
+ createdAt: Date;
395
+ updatedAt: Date;
396
+ email: string;
397
+ emailVerified: boolean;
398
+ name: string;
399
+ image?: string | null | undefined;
400
+ } & Record<string, unknown>;
401
+ scopes: import("@better-auth/oauth-provider").Scope[];
402
+ metadata?: Record<string, any>;
403
+ }) => {
404
+ email: string;
405
+ email_verified: boolean;
406
+ } | {
407
+ email?: never;
408
+ email_verified?: never;
409
+ };
410
+ enforcePerClientResources: false;
411
+ extensions: {
412
+ clientDiscovery: ({
413
+ id: string;
414
+ fetchClientMetadataResource?: ClientMetadataResourceFetch;
415
+ discoveryMetadata?: Record<string, unknown>;
416
+ matches: (clientId: string) => boolean;
417
+ resolve: (ctx: import("better-auth").GenericEndpointContext, clientId: string, existing: import("@better-auth/oauth-provider").SchemaClient<import("@better-auth/oauth-provider").Scope[]> | null) => Promise<import("@better-auth/oauth-provider").SchemaClient<import("@better-auth/oauth-provider").Scope[]> | null>;
418
+ } | {
419
+ id: string;
420
+ matches: typeof originId;
421
+ resolve: (ctx: import("better-auth").GenericEndpointContext, clientId: string, existing: import("@better-auth/oauth-provider").SchemaClient<import("@better-auth/oauth-provider").Scope[]> | null) => Promise<import("@better-auth/oauth-provider").SchemaClient<import("@better-auth/oauth-provider").Scope[]>>;
422
+ })[];
423
+ }[];
424
+ loginPage: string;
425
+ postLogin?: {
426
+ consentReferenceId: () => undefined;
427
+ page: string;
428
+ shouldRedirect: (context: {
429
+ headers: Headers;
430
+ session: {
431
+ id: string;
432
+ };
433
+ user: {
434
+ id: string;
435
+ };
436
+ }) => Promise<boolean>;
437
+ };
438
+ customTokenResponseFields?: (info: {
439
+ grantType: string;
440
+ user?: {
441
+ id: string;
442
+ } | null | undefined;
443
+ verificationValue?: {
444
+ query: {
445
+ client_id: string;
446
+ code_challenge?: string | undefined;
447
+ key_authorization?: unknown;
448
+ };
449
+ };
450
+ }) => Promise<{
451
+ account?: never;
452
+ key_authorization?: never;
453
+ } | {
454
+ account: `0x${string}`;
455
+ key_authorization: import("ox/tempo/KeyAuthorization").Rpc;
456
+ }>;
457
+ resources: {
458
+ accessTokenTtl: number;
459
+ identifier: string;
460
+ name: string;
461
+ }[];
462
+ scopes: ("email" | "offline_access" | "openid" | "profile")[];
463
+ storeClientSecret: {
464
+ hash: typeof hashSecret;
465
+ };
466
+ }>;
467
+ onRequest: (request: Request, ctx: import("better-auth").AuthContext) => Promise<{
468
+ response: Response;
469
+ } | {
470
+ request: Request;
471
+ } | void>;
472
+ init: (ctx: import("better-auth").AuthContext) => Promise<{
473
+ options: {
474
+ databaseHooks: {
475
+ session: {
476
+ delete: {
477
+ before(session: {
478
+ id: string;
479
+ createdAt: Date;
480
+ updatedAt: Date;
481
+ userId: string;
482
+ expiresAt: Date;
483
+ token: string;
484
+ ipAddress?: string | null | undefined;
485
+ userAgent?: string | null | undefined;
486
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
487
+ after(session: {
488
+ id: string;
489
+ createdAt: Date;
490
+ updatedAt: Date;
491
+ userId: string;
492
+ expiresAt: Date;
493
+ token: string;
494
+ ipAddress?: string | null | undefined;
495
+ userAgent?: string | null | undefined;
496
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
497
+ };
498
+ };
499
+ };
500
+ };
501
+ }>;
502
+ hooks: {
503
+ before: {
504
+ matcher(ctx: import("better-auth").HookEndpointContext): any;
505
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
506
+ }[];
507
+ after: {
508
+ matcher(ctx: import("better-auth").HookEndpointContext): boolean;
509
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
510
+ redirect: true;
511
+ url: string;
512
+ } | undefined>>;
513
+ }[];
514
+ };
515
+ endpoints: {
516
+ getOAuthServerConfig: import("better-auth").StrictEndpoint<"/.well-known/oauth-authorization-server", {
517
+ method: "GET";
518
+ metadata: {
519
+ SERVER_ONLY: true;
520
+ };
521
+ }, import("@better-auth/oauth-provider").AuthServerMetadata>;
522
+ getOpenIdConfig: import("better-auth").StrictEndpoint<"/.well-known/openid-configuration", {
523
+ method: "GET";
524
+ metadata: {
525
+ SERVER_ONLY: true;
526
+ };
527
+ }, {
528
+ jwks_uri?: string | undefined;
529
+ userinfo_endpoint: string;
530
+ acr_values_supported?: string[] | undefined;
531
+ subject_types_supported: ("public" | "pairwise")[];
532
+ claims_supported: string[];
533
+ claims_parameter_supported?: boolean | undefined;
534
+ end_session_endpoint: string;
535
+ request_parameter_supported?: boolean | undefined;
536
+ request_uri_parameter_supported?: boolean | undefined;
537
+ prompt_values_supported: import("@better-auth/oauth-provider").Prompt[];
538
+ issuer: string;
539
+ authorization_endpoint: string;
540
+ token_endpoint: string;
541
+ registration_endpoint?: string | undefined;
542
+ scopes_supported?: string[] | undefined;
543
+ response_types_supported: "code"[];
544
+ response_modes_supported: "query"[];
545
+ grant_types_supported: import("@better-auth/oauth-provider").GrantType[];
546
+ token_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
547
+ token_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
548
+ service_documentation?: string | undefined;
549
+ ui_locales_supported?: string[] | undefined;
550
+ op_policy_uri?: string | undefined;
551
+ op_tos_uri?: string | undefined;
552
+ revocation_endpoint?: string | undefined;
553
+ revocation_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
554
+ revocation_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
555
+ introspection_endpoint?: string | undefined;
556
+ introspection_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
557
+ introspection_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
558
+ code_challenge_methods_supported: "S256"[];
559
+ authorization_response_iss_parameter_supported?: boolean | undefined;
560
+ client_id_metadata_document_supported?: boolean | undefined;
561
+ backchannel_logout_supported?: boolean | undefined;
562
+ backchannel_logout_session_supported?: boolean | undefined;
563
+ dpop_signing_alg_values_supported?: import("better-auth/plugins/jwt").JWSAlgorithms[] | undefined;
564
+ frontchannel_logout_supported?: boolean | undefined;
565
+ frontchannel_logout_session_supported?: boolean | undefined;
566
+ id_token_signing_alg_values_supported: import("better-auth/plugins/jwt").JWSAlgorithms[] | ["HS256"];
567
+ }>;
568
+ oauth2Authorize: import("better-auth").StrictEndpoint<"/oauth2/authorize", {
569
+ method: ("GET" | "POST")[];
570
+ body: z.ZodObject<{}, z.core.$loose>;
571
+ redirectOnError: import("@better-auth/oauth-provider").OAuthRedirectOnError<import("better-auth").GenericEndpointContext, {
572
+ redirect: true;
573
+ url: string;
574
+ }>;
575
+ metadata: {
576
+ allowedMediaTypes: string[];
577
+ openapi: {
578
+ description: string;
579
+ parameters: ({
580
+ name: string;
581
+ in: "query";
582
+ required: false;
583
+ schema: {
584
+ type: "string";
585
+ format?: undefined;
586
+ minimum?: undefined;
587
+ items?: undefined;
588
+ };
589
+ description: string;
590
+ } | {
591
+ name: string;
592
+ in: "query";
593
+ required: false;
594
+ schema: {
595
+ type: "string";
596
+ format: string;
597
+ minimum?: undefined;
598
+ items?: undefined;
599
+ };
600
+ description: string;
601
+ } | {
602
+ name: string;
603
+ in: "query";
604
+ required: false;
605
+ schema: {
606
+ type: "integer";
607
+ minimum: number;
608
+ format?: undefined;
609
+ items?: undefined;
610
+ };
611
+ description: string;
612
+ } | {
613
+ name: string;
614
+ in: "query";
615
+ required: false;
616
+ schema: {
617
+ type: "array";
618
+ items: {
619
+ type: "string";
620
+ };
621
+ format?: undefined;
622
+ minimum?: undefined;
623
+ };
624
+ description: string;
625
+ })[];
626
+ responses: {
627
+ "302": {
628
+ description: string;
629
+ headers: {
630
+ Location: {
631
+ description: string;
632
+ schema: {
633
+ type: string;
634
+ format: string;
635
+ };
636
+ };
637
+ };
638
+ };
639
+ "400": {
640
+ description: string;
641
+ content: {
642
+ "application/json": {
643
+ schema: {
644
+ type: "object";
645
+ properties: {
646
+ error: {
647
+ type: string;
648
+ };
649
+ error_description: {
650
+ type: string;
651
+ };
652
+ state: {
653
+ type: string;
654
+ };
655
+ };
656
+ required: string[];
657
+ };
658
+ };
659
+ };
660
+ };
661
+ };
662
+ };
663
+ };
664
+ }, {
665
+ redirect: true;
666
+ url: string;
667
+ }>;
668
+ oauth2Consent: import("better-auth").StrictEndpoint<"/oauth2/consent", {
669
+ method: "POST";
670
+ body: z.ZodObject<{
671
+ accept: z.ZodBoolean;
672
+ scope: z.ZodOptional<z.ZodString>;
673
+ claims: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
674
+ reference_id: z.ZodOptional<z.ZodString>;
675
+ oauth_query: z.ZodOptional<z.ZodString>;
676
+ }, z.core.$strip>;
677
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
678
+ session: {
679
+ session: Record<string, any> & {
680
+ id: string;
681
+ createdAt: Date;
682
+ updatedAt: Date;
683
+ userId: string;
684
+ expiresAt: Date;
685
+ token: string;
686
+ ipAddress?: string | null | undefined;
687
+ userAgent?: string | null | undefined;
688
+ };
689
+ user: Record<string, any> & {
690
+ id: string;
691
+ createdAt: Date;
692
+ updatedAt: Date;
693
+ email: string;
694
+ emailVerified: boolean;
695
+ name: string;
696
+ image?: string | null | undefined;
697
+ };
698
+ };
699
+ }>>[];
700
+ metadata: {
701
+ openapi: {
702
+ description: string;
703
+ responses: {
704
+ "200": {
705
+ description: string;
706
+ content: {
707
+ "application/json": {
708
+ schema: {
709
+ type: "object";
710
+ properties: {
711
+ redirect: {
712
+ type: string;
713
+ description: string;
714
+ enum: boolean[];
715
+ };
716
+ url: {
717
+ type: string;
718
+ format: string;
719
+ description: string;
720
+ };
721
+ };
722
+ required: string[];
723
+ };
724
+ };
725
+ };
726
+ };
727
+ };
728
+ };
729
+ };
730
+ }, {
731
+ redirect: true;
732
+ url: string;
733
+ } | {
734
+ redirect: boolean;
735
+ url: string;
736
+ }>;
737
+ oauth2Continue: import("better-auth").StrictEndpoint<"/oauth2/continue", {
738
+ method: "POST";
739
+ body: z.ZodObject<{
740
+ selected: z.ZodOptional<z.ZodBoolean>;
741
+ created: z.ZodOptional<z.ZodBoolean>;
742
+ postLogin: z.ZodOptional<z.ZodBoolean>;
743
+ oauth_query: z.ZodOptional<z.ZodString>;
744
+ }, z.core.$strip>;
745
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
746
+ session: {
747
+ session: Record<string, any> & {
748
+ id: string;
749
+ createdAt: Date;
750
+ updatedAt: Date;
751
+ userId: string;
752
+ expiresAt: Date;
753
+ token: string;
754
+ ipAddress?: string | null | undefined;
755
+ userAgent?: string | null | undefined;
756
+ };
757
+ user: Record<string, any> & {
758
+ id: string;
759
+ createdAt: Date;
760
+ updatedAt: Date;
761
+ email: string;
762
+ emailVerified: boolean;
763
+ name: string;
764
+ image?: string | null | undefined;
765
+ };
766
+ };
767
+ }>>[];
768
+ metadata: {
769
+ openapi: {
770
+ description: string;
771
+ responses: {
772
+ "200": {
773
+ description: string;
774
+ content: {
775
+ "application/json": {
776
+ schema: {
777
+ type: "object";
778
+ properties: {
779
+ redirect: {
780
+ type: string;
781
+ description: string;
782
+ enum: boolean[];
783
+ };
784
+ url: {
785
+ type: string;
786
+ format: string;
787
+ description: string;
788
+ };
789
+ };
790
+ required: string[];
791
+ };
792
+ };
793
+ };
794
+ };
795
+ };
796
+ };
797
+ };
798
+ }, {
799
+ redirect: true;
800
+ url: string;
801
+ }>;
802
+ oauth2Token: import("better-auth").StrictEndpoint<"/oauth2/token", {
803
+ method: "POST";
804
+ formParams: {
805
+ repeatable: string[];
806
+ };
807
+ body: z.ZodObject<{
808
+ grant_type: z.ZodString;
809
+ client_id: z.ZodOptional<z.ZodString>;
810
+ client_secret: z.ZodOptional<z.ZodString>;
811
+ client_assertion: z.ZodOptional<z.ZodString>;
812
+ client_assertion_type: z.ZodOptional<z.ZodString>;
813
+ code: z.ZodOptional<z.ZodString>;
814
+ code_verifier: z.ZodOptional<z.ZodString>;
815
+ redirect_uri: z.ZodOptional<z.ZodURL>;
816
+ refresh_token: z.ZodOptional<z.ZodString>;
817
+ resource: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
818
+ scope: z.ZodOptional<z.ZodString>;
819
+ }, z.core.$loose>;
820
+ errorCodesByField: {
821
+ grant_type: {
822
+ missing: "invalid_request";
823
+ invalid: "unsupported_grant_type";
824
+ };
825
+ resource: {
826
+ invalid: "invalid_target";
827
+ };
828
+ };
829
+ metadata: {
830
+ noStore: boolean;
831
+ allowedMediaTypes: string[];
832
+ openapi: {
833
+ description: string;
834
+ parameters: {
835
+ name: string;
836
+ in: "header";
837
+ required: false;
838
+ schema: {
839
+ type: "string";
840
+ };
841
+ description: string;
842
+ }[];
843
+ requestBody: {
844
+ required: boolean;
845
+ content: {
846
+ "application/json": {
847
+ schema: {
848
+ type: "object";
849
+ properties: {
850
+ grant_type: {
851
+ type: string;
852
+ description: string;
853
+ };
854
+ client_id: {
855
+ type: string;
856
+ description: string;
857
+ };
858
+ client_secret: {
859
+ type: string;
860
+ description: string;
861
+ };
862
+ code: {
863
+ type: string;
864
+ description: string;
865
+ };
866
+ code_verifier: {
867
+ type: string;
868
+ description: string;
869
+ };
870
+ redirect_uri: {
871
+ type: string;
872
+ format: string;
873
+ description: string;
874
+ };
875
+ refresh_token: {
876
+ type: string;
877
+ description: string;
878
+ };
879
+ resource: {
880
+ oneOf: ({
881
+ type: string;
882
+ description: string;
883
+ items?: undefined;
884
+ } | {
885
+ type: string;
886
+ items: {
887
+ type: string;
888
+ };
889
+ description: string;
890
+ })[];
891
+ description: string;
892
+ };
893
+ scope: {
894
+ type: string;
895
+ description: string;
896
+ };
897
+ };
898
+ required: string[];
899
+ };
900
+ };
901
+ };
902
+ };
903
+ responses: {
904
+ "200": {
905
+ description: string;
906
+ content: {
907
+ "application/json": {
908
+ schema: {
909
+ type: "object";
910
+ properties: {
911
+ access_token: {
912
+ type: string;
913
+ description: string;
914
+ };
915
+ token_type: {
916
+ type: string;
917
+ description: string;
918
+ enum: string[];
919
+ };
920
+ expires_in: {
921
+ type: string;
922
+ description: string;
923
+ };
924
+ refresh_token: {
925
+ type: string;
926
+ description: string;
927
+ };
928
+ scope: {
929
+ type: string;
930
+ description: string;
931
+ };
932
+ id_token: {
933
+ type: string;
934
+ description: string;
935
+ };
936
+ };
937
+ required: string[];
938
+ };
939
+ };
940
+ };
941
+ };
942
+ "400": {
943
+ description: string;
944
+ content: {
945
+ "application/json": {
946
+ schema: {
947
+ type: "object";
948
+ properties: {
949
+ error: {
950
+ type: string;
951
+ };
952
+ error_description: {
953
+ type: string;
954
+ };
955
+ error_uri: {
956
+ type: string;
957
+ };
958
+ };
959
+ required: string[];
960
+ };
961
+ };
962
+ };
963
+ };
964
+ };
965
+ };
966
+ };
967
+ }, {
968
+ expires_in: number;
969
+ access_token: string;
970
+ expires_at: number;
971
+ token_type: import("@better-auth/oauth-provider").TokenType;
972
+ refresh_token: string | undefined;
973
+ scope: string;
974
+ id_token: string | undefined;
975
+ }>;
976
+ oauth2Introspect: import("better-auth").StrictEndpoint<"/oauth2/introspect", {
977
+ method: "POST";
978
+ formParams: {};
979
+ body: z.ZodObject<{
980
+ client_id: z.ZodOptional<z.ZodString>;
981
+ client_secret: z.ZodOptional<z.ZodString>;
982
+ client_assertion: z.ZodOptional<z.ZodString>;
983
+ client_assertion_type: z.ZodOptional<z.ZodString>;
984
+ token: z.ZodString;
985
+ token_type_hint: z.ZodOptional<z.ZodString>;
986
+ }, z.core.$strip>;
987
+ metadata: {
988
+ noStore: boolean;
989
+ allowedMediaTypes: string[];
990
+ openapi: {
991
+ description: string;
992
+ requestBody: {
993
+ required: boolean;
994
+ content: {
995
+ "application/json": {
996
+ schema: {
997
+ type: "object";
998
+ properties: {
999
+ client_id: {
1000
+ type: string;
1001
+ description: string;
1002
+ };
1003
+ client_secret: {
1004
+ type: string;
1005
+ description: string;
1006
+ };
1007
+ token: {
1008
+ type: string;
1009
+ description: string;
1010
+ };
1011
+ token_type_hint: {
1012
+ type: string;
1013
+ description: string;
1014
+ };
1015
+ };
1016
+ required: string[];
1017
+ };
1018
+ };
1019
+ };
1020
+ };
1021
+ responses: {
1022
+ "200": {
1023
+ description: string;
1024
+ content: {
1025
+ "application/json": {
1026
+ schema: {
1027
+ type: "object";
1028
+ properties: {
1029
+ active: {
1030
+ type: string;
1031
+ description: string;
1032
+ };
1033
+ scope: {
1034
+ type: string;
1035
+ description: string;
1036
+ };
1037
+ client_id: {
1038
+ type: string;
1039
+ description: string;
1040
+ };
1041
+ username: {
1042
+ type: string;
1043
+ description: string;
1044
+ };
1045
+ token_type: {
1046
+ type: string;
1047
+ description: string;
1048
+ };
1049
+ exp: {
1050
+ type: string;
1051
+ description: string;
1052
+ };
1053
+ iat: {
1054
+ type: string;
1055
+ description: string;
1056
+ };
1057
+ nbf: {
1058
+ type: string;
1059
+ description: string;
1060
+ };
1061
+ sub: {
1062
+ type: string;
1063
+ description: string;
1064
+ };
1065
+ aud: {
1066
+ type: string;
1067
+ description: string;
1068
+ };
1069
+ iss: {
1070
+ type: string;
1071
+ description: string;
1072
+ };
1073
+ jti: {
1074
+ type: string;
1075
+ description: string;
1076
+ };
1077
+ };
1078
+ required: string[];
1079
+ };
1080
+ };
1081
+ };
1082
+ };
1083
+ "400": {
1084
+ description: string;
1085
+ content: {
1086
+ "application/json": {
1087
+ schema: {
1088
+ type: "object";
1089
+ properties: {
1090
+ error: {
1091
+ type: string;
1092
+ };
1093
+ error_description: {
1094
+ type: string;
1095
+ };
1096
+ error_uri: {
1097
+ type: string;
1098
+ };
1099
+ };
1100
+ required: string[];
1101
+ };
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ }, import("better-auth").JWTPayload>;
1109
+ oauth2Revoke: import("better-auth").StrictEndpoint<"/oauth2/revoke", {
1110
+ method: "POST";
1111
+ formParams: {};
1112
+ body: z.ZodObject<{
1113
+ client_id: z.ZodOptional<z.ZodString>;
1114
+ client_secret: z.ZodOptional<z.ZodString>;
1115
+ client_assertion: z.ZodOptional<z.ZodString>;
1116
+ client_assertion_type: z.ZodOptional<z.ZodString>;
1117
+ token: z.ZodString;
1118
+ token_type_hint: z.ZodOptional<z.ZodString>;
1119
+ }, z.core.$strip>;
1120
+ metadata: {
1121
+ allowedMediaTypes: string[];
1122
+ openapi: {
1123
+ description: string;
1124
+ requestBody: {
1125
+ required: boolean;
1126
+ content: {
1127
+ "application/json": {
1128
+ schema: {
1129
+ type: "object";
1130
+ properties: {
1131
+ client_id: {
1132
+ type: string;
1133
+ description: string;
1134
+ };
1135
+ client_secret: {
1136
+ type: string;
1137
+ description: string;
1138
+ };
1139
+ token: {
1140
+ type: string;
1141
+ description: string;
1142
+ };
1143
+ token_type_hint: {
1144
+ type: string;
1145
+ description: string;
1146
+ };
1147
+ };
1148
+ required: string[];
1149
+ };
1150
+ };
1151
+ };
1152
+ };
1153
+ responses: {
1154
+ "200": {
1155
+ description: string;
1156
+ content: {
1157
+ "application/json": {
1158
+ schema: {
1159
+ type: "object";
1160
+ description: string;
1161
+ };
1162
+ };
1163
+ };
1164
+ };
1165
+ "400": {
1166
+ description: string;
1167
+ content: {
1168
+ "application/json": {
1169
+ schema: {
1170
+ type: "object";
1171
+ properties: {
1172
+ error: {
1173
+ type: string;
1174
+ };
1175
+ error_description: {
1176
+ type: string;
1177
+ };
1178
+ error_uri: {
1179
+ type: string;
1180
+ };
1181
+ };
1182
+ required: string[];
1183
+ };
1184
+ };
1185
+ };
1186
+ };
1187
+ };
1188
+ };
1189
+ };
1190
+ }, null>;
1191
+ oauth2UserInfo: import("better-auth").StrictEndpoint<"/oauth2/userinfo", {
1192
+ method: ("GET" | "POST")[];
1193
+ body: z.ZodOptional<z.ZodObject<{
1194
+ access_token: z.ZodOptional<z.ZodString>;
1195
+ }, z.core.$loose>>;
1196
+ metadata: {
1197
+ noStore: boolean;
1198
+ allowedMediaTypes: string[];
1199
+ openapi: {
1200
+ description: string;
1201
+ security: ({
1202
+ bearerAuth: never[];
1203
+ OAuth2?: undefined;
1204
+ } | {
1205
+ OAuth2: string[];
1206
+ bearerAuth?: undefined;
1207
+ })[];
1208
+ parameters: {
1209
+ name: string;
1210
+ in: "header";
1211
+ required: false;
1212
+ schema: {
1213
+ type: "string";
1214
+ };
1215
+ description: string;
1216
+ }[];
1217
+ responses: {
1218
+ "200": {
1219
+ description: string;
1220
+ content: {
1221
+ "application/json": {
1222
+ schema: {
1223
+ type: "object";
1224
+ properties: {
1225
+ sub: {
1226
+ type: string;
1227
+ description: string;
1228
+ };
1229
+ email: {
1230
+ type: string;
1231
+ format: string;
1232
+ nullable: boolean;
1233
+ description: string;
1234
+ };
1235
+ name: {
1236
+ type: string;
1237
+ nullable: boolean;
1238
+ description: string;
1239
+ };
1240
+ picture: {
1241
+ type: string;
1242
+ format: string;
1243
+ nullable: boolean;
1244
+ description: string;
1245
+ };
1246
+ given_name: {
1247
+ type: string;
1248
+ nullable: boolean;
1249
+ description: string;
1250
+ };
1251
+ family_name: {
1252
+ type: string;
1253
+ nullable: boolean;
1254
+ description: string;
1255
+ };
1256
+ email_verified: {
1257
+ type: string;
1258
+ nullable: boolean;
1259
+ description: string;
1260
+ };
1261
+ };
1262
+ required: string[];
1263
+ };
1264
+ };
1265
+ };
1266
+ };
1267
+ "401": {
1268
+ description: string;
1269
+ content: {
1270
+ "application/json": {
1271
+ schema: {
1272
+ type: "object";
1273
+ properties: {
1274
+ error: {
1275
+ type: string;
1276
+ };
1277
+ error_description: {
1278
+ type: string;
1279
+ };
1280
+ };
1281
+ required: string[];
1282
+ };
1283
+ };
1284
+ };
1285
+ };
1286
+ "403": {
1287
+ description: string;
1288
+ content: {
1289
+ "application/json": {
1290
+ schema: {
1291
+ type: "object";
1292
+ properties: {
1293
+ error: {
1294
+ type: string;
1295
+ };
1296
+ error_description: {
1297
+ type: string;
1298
+ };
1299
+ };
1300
+ required: string[];
1301
+ };
1302
+ };
1303
+ };
1304
+ };
1305
+ };
1306
+ };
1307
+ };
1308
+ }, {
1309
+ sub: unknown;
1310
+ }>;
1311
+ oauth2EndSession: import("better-auth").StrictEndpoint<"/oauth2/end-session", {
1312
+ method: ("GET" | "POST")[];
1313
+ body: z.ZodOptional<z.ZodObject<{
1314
+ id_token_hint: z.ZodOptional<z.ZodString>;
1315
+ client_id: z.ZodOptional<z.ZodString>;
1316
+ post_logout_redirect_uri: z.ZodOptional<z.ZodURL>;
1317
+ state: z.ZodOptional<z.ZodString>;
1318
+ }, z.core.$strip>>;
1319
+ query: z.ZodOptional<z.ZodObject<{
1320
+ id_token_hint: z.ZodOptional<z.ZodString>;
1321
+ client_id: z.ZodOptional<z.ZodString>;
1322
+ post_logout_redirect_uri: z.ZodOptional<z.ZodURL>;
1323
+ state: z.ZodOptional<z.ZodString>;
1324
+ }, z.core.$strip>>;
1325
+ metadata: {
1326
+ noStore: boolean;
1327
+ allowedMediaTypes: string[];
1328
+ $Infer: {
1329
+ body: {
1330
+ id_token_hint?: string;
1331
+ client_id?: string;
1332
+ post_logout_redirect_uri?: string;
1333
+ state?: string;
1334
+ } | {
1335
+ query: {
1336
+ id_token_hint?: string;
1337
+ client_id?: string;
1338
+ post_logout_redirect_uri?: string;
1339
+ state?: string;
1340
+ };
1341
+ };
1342
+ query: {
1343
+ id_token_hint?: string;
1344
+ client_id?: string;
1345
+ post_logout_redirect_uri?: string;
1346
+ state?: string;
1347
+ };
1348
+ };
1349
+ openapi: {
1350
+ description: string;
1351
+ responses: {
1352
+ "200": {
1353
+ description: string;
1354
+ content: {
1355
+ "application/json": {
1356
+ schema: {
1357
+ type: "object";
1358
+ properties: {
1359
+ redirect_uri: {
1360
+ type: string;
1361
+ format: string;
1362
+ description: string;
1363
+ };
1364
+ message: {
1365
+ type: string;
1366
+ description: string;
1367
+ };
1368
+ };
1369
+ };
1370
+ };
1371
+ "text/html": {
1372
+ schema: {
1373
+ type: "string";
1374
+ description: string;
1375
+ };
1376
+ };
1377
+ };
1378
+ };
1379
+ };
1380
+ };
1381
+ };
1382
+ }, Response | {
1383
+ redirect: true;
1384
+ url: string;
1385
+ } | null>;
1386
+ oauth2EndSessionConfirmation: import("better-auth").StrictEndpoint<"/oauth2/end-session/confirm", {
1387
+ method: "POST";
1388
+ body: z.ZodObject<{
1389
+ action: z.ZodLiteral<"confirm">;
1390
+ }, z.core.$strip>;
1391
+ metadata: {
1392
+ noStore: boolean;
1393
+ allowedMediaTypes: string[];
1394
+ scope: "http";
1395
+ };
1396
+ }, Response | {
1397
+ redirect: true;
1398
+ url: string;
1399
+ } | null>;
1400
+ registerOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/register", {
1401
+ method: "POST";
1402
+ body: z.ZodObject<{
1403
+ redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1404
+ scope: z.ZodOptional<z.ZodString>;
1405
+ client_name: z.ZodOptional<z.ZodString>;
1406
+ client_uri: z.ZodOptional<z.ZodString>;
1407
+ logo_uri: z.ZodOptional<z.ZodString>;
1408
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1409
+ tos_uri: z.ZodOptional<z.ZodString>;
1410
+ policy_uri: z.ZodOptional<z.ZodString>;
1411
+ software_id: z.ZodOptional<z.ZodString>;
1412
+ software_version: z.ZodOptional<z.ZodString>;
1413
+ software_statement: z.ZodOptional<z.ZodString>;
1414
+ post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1415
+ backchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1416
+ backchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1417
+ frontchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1418
+ frontchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1419
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
1420
+ jwks: z.ZodOptional<z.ZodObject<{
1421
+ keys: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1422
+ }, z.core.$strip>>;
1423
+ jwks_uri: z.ZodOptional<z.ZodString>;
1424
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
1425
+ response_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1426
+ code: "code";
1427
+ }>>>;
1428
+ application_type: z.ZodOptional<z.ZodEnum<{
1429
+ web: "web";
1430
+ native: "native";
1431
+ }>>;
1432
+ subject_type: z.ZodOptional<z.ZodEnum<{
1433
+ public: "public";
1434
+ pairwise: "pairwise";
1435
+ }>>;
1436
+ dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
1437
+ resources: z.ZodOptional<z.ZodArray<z.ZodString>>;
1438
+ skip_consent: z.ZodOptional<z.ZodNever>;
1439
+ }, z.core.$strip>;
1440
+ errorCodesByField: {
1441
+ redirect_uris: "invalid_redirect_uri";
1442
+ post_logout_redirect_uris: "invalid_redirect_uri";
1443
+ software_statement: "invalid_software_statement";
1444
+ resources: "invalid_target";
1445
+ };
1446
+ defaultError: "invalid_client_metadata";
1447
+ metadata: {
1448
+ noStore: boolean;
1449
+ openapi: {
1450
+ description: string;
1451
+ responses: {
1452
+ "201": {
1453
+ description: string;
1454
+ content: {
1455
+ "application/json": {
1456
+ schema: {
1457
+ type: "object";
1458
+ properties: {
1459
+ client_id: {
1460
+ type: string;
1461
+ description: string;
1462
+ };
1463
+ client_secret: {
1464
+ type: string;
1465
+ description: string;
1466
+ };
1467
+ client_secret_expires_at: {
1468
+ type: string;
1469
+ description: string;
1470
+ };
1471
+ scope: {
1472
+ type: string;
1473
+ description: string;
1474
+ };
1475
+ user_id: {
1476
+ type: string;
1477
+ description: string;
1478
+ };
1479
+ client_id_issued_at: {
1480
+ type: string;
1481
+ description: string;
1482
+ };
1483
+ client_name: {
1484
+ type: string;
1485
+ description: string;
1486
+ };
1487
+ client_uri: {
1488
+ type: string;
1489
+ description: string;
1490
+ };
1491
+ logo_uri: {
1492
+ type: string;
1493
+ description: string;
1494
+ };
1495
+ contacts: {
1496
+ type: string;
1497
+ items: {
1498
+ type: string;
1499
+ };
1500
+ description: string;
1501
+ };
1502
+ tos_uri: {
1503
+ type: string;
1504
+ description: string;
1505
+ };
1506
+ policy_uri: {
1507
+ type: string;
1508
+ description: string;
1509
+ };
1510
+ software_id: {
1511
+ type: string;
1512
+ description: string;
1513
+ };
1514
+ software_version: {
1515
+ type: string;
1516
+ description: string;
1517
+ };
1518
+ software_statement: {
1519
+ type: string;
1520
+ description: string;
1521
+ };
1522
+ redirect_uris: {
1523
+ type: string;
1524
+ items: {
1525
+ type: string;
1526
+ format: string;
1527
+ };
1528
+ description: string;
1529
+ };
1530
+ post_logout_redirect_uris: {
1531
+ type: string;
1532
+ items: {
1533
+ type: string;
1534
+ format: string;
1535
+ };
1536
+ description: string;
1537
+ };
1538
+ backchannel_logout_uri: {
1539
+ type: string;
1540
+ format: string;
1541
+ description: string;
1542
+ };
1543
+ backchannel_logout_session_required: {
1544
+ type: string;
1545
+ description: string;
1546
+ };
1547
+ frontchannel_logout_uri: {
1548
+ type: string;
1549
+ format: string;
1550
+ description: string;
1551
+ };
1552
+ frontchannel_logout_session_required: {
1553
+ type: string;
1554
+ description: string;
1555
+ };
1556
+ token_endpoint_auth_method: {
1557
+ type: string;
1558
+ description: string;
1559
+ };
1560
+ grant_types: {
1561
+ type: string;
1562
+ items: {
1563
+ type: string;
1564
+ };
1565
+ description: string;
1566
+ };
1567
+ response_types: {
1568
+ type: string;
1569
+ items: {
1570
+ type: string;
1571
+ enum: string[];
1572
+ };
1573
+ description: string;
1574
+ };
1575
+ application_type: {
1576
+ type: string;
1577
+ description: string;
1578
+ enum: string[];
1579
+ };
1580
+ resources: {
1581
+ type: string;
1582
+ items: {
1583
+ type: string;
1584
+ format: string;
1585
+ };
1586
+ description: string;
1587
+ };
1588
+ disabled: {
1589
+ type: string;
1590
+ description: string;
1591
+ };
1592
+ };
1593
+ required: string[];
1594
+ };
1595
+ };
1596
+ };
1597
+ };
1598
+ };
1599
+ };
1600
+ };
1601
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
1602
+ adminCreateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/create-client", {
1603
+ method: "POST";
1604
+ body: z.ZodObject<{
1605
+ redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1606
+ scope: z.ZodOptional<z.ZodString>;
1607
+ client_name: z.ZodOptional<z.ZodString>;
1608
+ client_uri: z.ZodOptional<z.ZodString>;
1609
+ logo_uri: z.ZodOptional<z.ZodString>;
1610
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1611
+ tos_uri: z.ZodOptional<z.ZodString>;
1612
+ policy_uri: z.ZodOptional<z.ZodString>;
1613
+ software_id: z.ZodOptional<z.ZodString>;
1614
+ software_version: z.ZodOptional<z.ZodString>;
1615
+ software_statement: z.ZodOptional<z.ZodString>;
1616
+ post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1617
+ backchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1618
+ backchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1619
+ frontchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1620
+ frontchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1621
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
1622
+ application_type: z.ZodOptional<z.ZodEnum<{
1623
+ web: "web";
1624
+ native: "native";
1625
+ }>>;
1626
+ jwks: z.ZodOptional<z.ZodObject<{
1627
+ keys: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1628
+ }, z.core.$strip>>;
1629
+ jwks_uri: z.ZodOptional<z.ZodString>;
1630
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
1631
+ client_credentials_scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1632
+ resources: z.ZodOptional<z.ZodArray<z.ZodString>>;
1633
+ response_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1634
+ code: "code";
1635
+ }>>>;
1636
+ client_secret_expires_at: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
1637
+ skip_consent: z.ZodOptional<z.ZodBoolean>;
1638
+ enable_end_session: z.ZodOptional<z.ZodBoolean>;
1639
+ require_pkce: z.ZodOptional<z.ZodBoolean>;
1640
+ dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
1641
+ subject_type: z.ZodOptional<z.ZodEnum<{
1642
+ public: "public";
1643
+ pairwise: "pairwise";
1644
+ }>>;
1645
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1646
+ }, z.core.$strip>;
1647
+ metadata: {
1648
+ noStore: boolean;
1649
+ SERVER_ONLY: true;
1650
+ openapi: {
1651
+ description: string;
1652
+ responses: {
1653
+ "201": {
1654
+ description: string;
1655
+ content: {
1656
+ "application/json": {
1657
+ schema: {
1658
+ type: "object";
1659
+ properties: {
1660
+ client_id: {
1661
+ type: string;
1662
+ description: string;
1663
+ };
1664
+ client_secret: {
1665
+ type: string;
1666
+ description: string;
1667
+ };
1668
+ client_secret_expires_at: {
1669
+ type: string;
1670
+ description: string;
1671
+ };
1672
+ scope: {
1673
+ type: string;
1674
+ description: string;
1675
+ };
1676
+ client_credentials_scopes: {
1677
+ type: string;
1678
+ items: {
1679
+ type: string;
1680
+ };
1681
+ description: string;
1682
+ };
1683
+ user_id: {
1684
+ type: string;
1685
+ description: string;
1686
+ };
1687
+ client_id_issued_at: {
1688
+ type: string;
1689
+ description: string;
1690
+ };
1691
+ client_name: {
1692
+ type: string;
1693
+ description: string;
1694
+ };
1695
+ client_uri: {
1696
+ type: string;
1697
+ description: string;
1698
+ };
1699
+ logo_uri: {
1700
+ type: string;
1701
+ description: string;
1702
+ };
1703
+ contacts: {
1704
+ type: string;
1705
+ items: {
1706
+ type: string;
1707
+ };
1708
+ description: string;
1709
+ };
1710
+ tos_uri: {
1711
+ type: string;
1712
+ description: string;
1713
+ };
1714
+ policy_uri: {
1715
+ type: string;
1716
+ description: string;
1717
+ };
1718
+ software_id: {
1719
+ type: string;
1720
+ description: string;
1721
+ };
1722
+ software_version: {
1723
+ type: string;
1724
+ description: string;
1725
+ };
1726
+ software_statement: {
1727
+ type: string;
1728
+ description: string;
1729
+ };
1730
+ redirect_uris: {
1731
+ type: string;
1732
+ items: {
1733
+ type: string;
1734
+ format: string;
1735
+ };
1736
+ description: string;
1737
+ };
1738
+ token_endpoint_auth_method: {
1739
+ type: string;
1740
+ description: string;
1741
+ };
1742
+ grant_types: {
1743
+ type: string;
1744
+ items: {
1745
+ type: string;
1746
+ };
1747
+ description: string;
1748
+ };
1749
+ response_types: {
1750
+ type: string;
1751
+ items: {
1752
+ type: string;
1753
+ enum: string[];
1754
+ };
1755
+ description: string;
1756
+ };
1757
+ application_type: {
1758
+ type: string;
1759
+ description: string;
1760
+ enum: string[];
1761
+ };
1762
+ resources: {
1763
+ type: string;
1764
+ items: {
1765
+ type: string;
1766
+ format: string;
1767
+ };
1768
+ description: string;
1769
+ };
1770
+ disabled: {
1771
+ type: string;
1772
+ description: string;
1773
+ };
1774
+ require_pkce: {
1775
+ type: string;
1776
+ description: string;
1777
+ default: boolean;
1778
+ };
1779
+ metadata: {
1780
+ type: string;
1781
+ additionalProperties: boolean;
1782
+ nullable: boolean;
1783
+ description: string;
1784
+ };
1785
+ };
1786
+ required: string[];
1787
+ };
1788
+ };
1789
+ };
1790
+ };
1791
+ };
1792
+ };
1793
+ };
1794
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
1795
+ createOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/create-client", {
1796
+ method: "POST";
1797
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1798
+ session: {
1799
+ session: Record<string, any> & {
1800
+ id: string;
1801
+ createdAt: Date;
1802
+ updatedAt: Date;
1803
+ userId: string;
1804
+ expiresAt: Date;
1805
+ token: string;
1806
+ ipAddress?: string | null | undefined;
1807
+ userAgent?: string | null | undefined;
1808
+ };
1809
+ user: Record<string, any> & {
1810
+ id: string;
1811
+ createdAt: Date;
1812
+ updatedAt: Date;
1813
+ email: string;
1814
+ emailVerified: boolean;
1815
+ name: string;
1816
+ image?: string | null | undefined;
1817
+ };
1818
+ };
1819
+ }>>[];
1820
+ body: z.ZodObject<{
1821
+ redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1822
+ scope: z.ZodOptional<z.ZodString>;
1823
+ client_name: z.ZodOptional<z.ZodString>;
1824
+ client_uri: z.ZodOptional<z.ZodString>;
1825
+ logo_uri: z.ZodOptional<z.ZodString>;
1826
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1827
+ tos_uri: z.ZodOptional<z.ZodString>;
1828
+ policy_uri: z.ZodOptional<z.ZodString>;
1829
+ software_id: z.ZodOptional<z.ZodString>;
1830
+ software_version: z.ZodOptional<z.ZodString>;
1831
+ software_statement: z.ZodOptional<z.ZodString>;
1832
+ post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1833
+ backchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1834
+ backchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1835
+ frontchannel_logout_uri: z.ZodOptional<z.ZodURL>;
1836
+ frontchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
1837
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
1838
+ application_type: z.ZodOptional<z.ZodEnum<{
1839
+ web: "web";
1840
+ native: "native";
1841
+ }>>;
1842
+ jwks: z.ZodOptional<z.ZodObject<{
1843
+ keys: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1844
+ }, z.core.$strip>>;
1845
+ jwks_uri: z.ZodOptional<z.ZodString>;
1846
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
1847
+ response_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1848
+ code: "code";
1849
+ }>>>;
1850
+ dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
1851
+ }, z.core.$strip>;
1852
+ metadata: {
1853
+ noStore: boolean;
1854
+ openapi: {
1855
+ description: string;
1856
+ responses: {
1857
+ "201": {
1858
+ description: string;
1859
+ content: {
1860
+ "application/json": {
1861
+ schema: {
1862
+ type: "object";
1863
+ properties: {
1864
+ client_id: {
1865
+ type: string;
1866
+ description: string;
1867
+ };
1868
+ client_secret: {
1869
+ type: string;
1870
+ description: string;
1871
+ };
1872
+ client_secret_expires_at: {
1873
+ type: string;
1874
+ description: string;
1875
+ };
1876
+ scope: {
1877
+ type: string;
1878
+ description: string;
1879
+ };
1880
+ user_id: {
1881
+ type: string;
1882
+ description: string;
1883
+ };
1884
+ client_id_issued_at: {
1885
+ type: string;
1886
+ description: string;
1887
+ };
1888
+ client_name: {
1889
+ type: string;
1890
+ description: string;
1891
+ };
1892
+ client_uri: {
1893
+ type: string;
1894
+ description: string;
1895
+ };
1896
+ logo_uri: {
1897
+ type: string;
1898
+ description: string;
1899
+ };
1900
+ contacts: {
1901
+ type: string;
1902
+ items: {
1903
+ type: string;
1904
+ };
1905
+ description: string;
1906
+ };
1907
+ tos_uri: {
1908
+ type: string;
1909
+ description: string;
1910
+ };
1911
+ policy_uri: {
1912
+ type: string;
1913
+ description: string;
1914
+ };
1915
+ software_id: {
1916
+ type: string;
1917
+ description: string;
1918
+ };
1919
+ software_version: {
1920
+ type: string;
1921
+ description: string;
1922
+ };
1923
+ software_statement: {
1924
+ type: string;
1925
+ description: string;
1926
+ };
1927
+ redirect_uris: {
1928
+ type: string;
1929
+ items: {
1930
+ type: string;
1931
+ format: string;
1932
+ };
1933
+ description: string;
1934
+ };
1935
+ token_endpoint_auth_method: {
1936
+ type: string;
1937
+ description: string;
1938
+ };
1939
+ grant_types: {
1940
+ type: string;
1941
+ items: {
1942
+ type: string;
1943
+ };
1944
+ description: string;
1945
+ };
1946
+ response_types: {
1947
+ type: string;
1948
+ items: {
1949
+ type: string;
1950
+ enum: string[];
1951
+ };
1952
+ description: string;
1953
+ };
1954
+ application_type: {
1955
+ type: string;
1956
+ description: string;
1957
+ enum: string[];
1958
+ };
1959
+ resources: {
1960
+ type: string;
1961
+ items: {
1962
+ type: string;
1963
+ format: string;
1964
+ };
1965
+ description: string;
1966
+ };
1967
+ disabled: {
1968
+ type: string;
1969
+ description: string;
1970
+ };
1971
+ metadata: {
1972
+ type: string;
1973
+ additionalProperties: boolean;
1974
+ nullable: boolean;
1975
+ description: string;
1976
+ };
1977
+ };
1978
+ required: string[];
1979
+ };
1980
+ };
1981
+ };
1982
+ };
1983
+ };
1984
+ };
1985
+ };
1986
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
1987
+ getOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/get-client", {
1988
+ method: "GET";
1989
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1990
+ session: {
1991
+ session: Record<string, any> & {
1992
+ id: string;
1993
+ createdAt: Date;
1994
+ updatedAt: Date;
1995
+ userId: string;
1996
+ expiresAt: Date;
1997
+ token: string;
1998
+ ipAddress?: string | null | undefined;
1999
+ userAgent?: string | null | undefined;
2000
+ };
2001
+ user: Record<string, any> & {
2002
+ id: string;
2003
+ createdAt: Date;
2004
+ updatedAt: Date;
2005
+ email: string;
2006
+ emailVerified: boolean;
2007
+ name: string;
2008
+ image?: string | null | undefined;
2009
+ };
2010
+ };
2011
+ }>>[];
2012
+ query: z.ZodObject<{
2013
+ client_id: z.ZodString;
2014
+ }, z.core.$strip>;
2015
+ metadata: {
2016
+ openapi: {
2017
+ description: string;
2018
+ };
2019
+ };
2020
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2021
+ getOAuthClientPublic: import("better-auth").StrictEndpoint<"/oauth2/public-client", {
2022
+ method: "GET";
2023
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2024
+ session: {
2025
+ session: Record<string, any> & {
2026
+ id: string;
2027
+ createdAt: Date;
2028
+ updatedAt: Date;
2029
+ userId: string;
2030
+ expiresAt: Date;
2031
+ token: string;
2032
+ ipAddress?: string | null | undefined;
2033
+ userAgent?: string | null | undefined;
2034
+ };
2035
+ user: Record<string, any> & {
2036
+ id: string;
2037
+ createdAt: Date;
2038
+ updatedAt: Date;
2039
+ email: string;
2040
+ emailVerified: boolean;
2041
+ name: string;
2042
+ image?: string | null | undefined;
2043
+ };
2044
+ };
2045
+ }>>[];
2046
+ query: z.ZodObject<{
2047
+ client_id: z.ZodString;
2048
+ }, z.core.$strip>;
2049
+ metadata: {
2050
+ openapi: {
2051
+ description: string;
2052
+ };
2053
+ };
2054
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2055
+ getOAuthClientPublicPrelogin: import("better-auth").StrictEndpoint<"/oauth2/public-client-prelogin", {
2056
+ method: "POST";
2057
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>[];
2058
+ body: z.ZodObject<{
2059
+ client_id: z.ZodString;
2060
+ oauth_query: z.ZodOptional<z.ZodString>;
2061
+ }, z.core.$strip>;
2062
+ metadata: {
2063
+ openapi: {
2064
+ description: string;
2065
+ };
2066
+ };
2067
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2068
+ getOAuthClients: import("better-auth").StrictEndpoint<"/oauth2/get-clients", {
2069
+ method: "GET";
2070
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2071
+ session: {
2072
+ session: Record<string, any> & {
2073
+ id: string;
2074
+ createdAt: Date;
2075
+ updatedAt: Date;
2076
+ userId: string;
2077
+ expiresAt: Date;
2078
+ token: string;
2079
+ ipAddress?: string | null | undefined;
2080
+ userAgent?: string | null | undefined;
2081
+ };
2082
+ user: Record<string, any> & {
2083
+ id: string;
2084
+ createdAt: Date;
2085
+ updatedAt: Date;
2086
+ email: string;
2087
+ emailVerified: boolean;
2088
+ name: string;
2089
+ image?: string | null | undefined;
2090
+ };
2091
+ };
2092
+ }>>[];
2093
+ metadata: {
2094
+ openapi: {
2095
+ description: string;
2096
+ };
2097
+ };
2098
+ }, import("@better-auth/oauth-provider").OAuthClient[] | null>;
2099
+ adminUpdateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/update-client", {
2100
+ method: "PATCH";
2101
+ body: z.ZodObject<{
2102
+ client_id: z.ZodString;
2103
+ update: z.ZodObject<{
2104
+ redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
2105
+ scope: z.ZodOptional<z.ZodString>;
2106
+ client_name: z.ZodOptional<z.ZodString>;
2107
+ client_uri: z.ZodOptional<z.ZodString>;
2108
+ logo_uri: z.ZodOptional<z.ZodString>;
2109
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2110
+ tos_uri: z.ZodOptional<z.ZodString>;
2111
+ policy_uri: z.ZodOptional<z.ZodString>;
2112
+ software_id: z.ZodOptional<z.ZodString>;
2113
+ software_version: z.ZodOptional<z.ZodString>;
2114
+ software_statement: z.ZodOptional<z.ZodString>;
2115
+ post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
2116
+ backchannel_logout_uri: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
2117
+ backchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
2118
+ frontchannel_logout_uri: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
2119
+ frontchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
2120
+ application_type: z.ZodOptional<z.ZodEnum<{
2121
+ web: "web";
2122
+ native: "native";
2123
+ }>>;
2124
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2125
+ client_credentials_scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2126
+ response_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2127
+ code: "code";
2128
+ }>>>;
2129
+ client_secret_expires_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2130
+ skip_consent: z.ZodOptional<z.ZodBoolean>;
2131
+ enable_end_session: z.ZodOptional<z.ZodBoolean>;
2132
+ disabled: z.ZodOptional<z.ZodBoolean>;
2133
+ dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
2134
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2135
+ }, z.core.$strip>;
2136
+ }, z.core.$strip>;
2137
+ metadata: {
2138
+ SERVER_ONLY: true;
2139
+ openapi: {
2140
+ description: string;
2141
+ };
2142
+ };
2143
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
2144
+ updateOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/update-client", {
2145
+ method: "POST";
2146
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2147
+ session: {
2148
+ session: Record<string, any> & {
2149
+ id: string;
2150
+ createdAt: Date;
2151
+ updatedAt: Date;
2152
+ userId: string;
2153
+ expiresAt: Date;
2154
+ token: string;
2155
+ ipAddress?: string | null | undefined;
2156
+ userAgent?: string | null | undefined;
2157
+ };
2158
+ user: Record<string, any> & {
2159
+ id: string;
2160
+ createdAt: Date;
2161
+ updatedAt: Date;
2162
+ email: string;
2163
+ emailVerified: boolean;
2164
+ name: string;
2165
+ image?: string | null | undefined;
2166
+ };
2167
+ };
2168
+ }>>[];
2169
+ body: z.ZodObject<{
2170
+ client_id: z.ZodString;
2171
+ update: z.ZodObject<{
2172
+ redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
2173
+ scope: z.ZodOptional<z.ZodString>;
2174
+ client_name: z.ZodOptional<z.ZodString>;
2175
+ client_uri: z.ZodOptional<z.ZodString>;
2176
+ logo_uri: z.ZodOptional<z.ZodString>;
2177
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2178
+ tos_uri: z.ZodOptional<z.ZodString>;
2179
+ policy_uri: z.ZodOptional<z.ZodString>;
2180
+ software_id: z.ZodOptional<z.ZodString>;
2181
+ software_version: z.ZodOptional<z.ZodString>;
2182
+ software_statement: z.ZodOptional<z.ZodString>;
2183
+ post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
2184
+ backchannel_logout_uri: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
2185
+ backchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
2186
+ frontchannel_logout_uri: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
2187
+ frontchannel_logout_session_required: z.ZodOptional<z.ZodBoolean>;
2188
+ application_type: z.ZodOptional<z.ZodEnum<{
2189
+ web: "web";
2190
+ native: "native";
2191
+ }>>;
2192
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2193
+ response_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2194
+ code: "code";
2195
+ }>>>;
2196
+ }, z.core.$strip>;
2197
+ }, z.core.$strip>;
2198
+ metadata: {
2199
+ openapi: {
2200
+ description: string;
2201
+ };
2202
+ };
2203
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
2204
+ rotateClientSecret: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-secret", {
2205
+ method: "POST";
2206
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2207
+ session: {
2208
+ session: Record<string, any> & {
2209
+ id: string;
2210
+ createdAt: Date;
2211
+ updatedAt: Date;
2212
+ userId: string;
2213
+ expiresAt: Date;
2214
+ token: string;
2215
+ ipAddress?: string | null | undefined;
2216
+ userAgent?: string | null | undefined;
2217
+ };
2218
+ user: Record<string, any> & {
2219
+ id: string;
2220
+ createdAt: Date;
2221
+ updatedAt: Date;
2222
+ email: string;
2223
+ emailVerified: boolean;
2224
+ name: string;
2225
+ image?: string | null | undefined;
2226
+ };
2227
+ };
2228
+ }>>[];
2229
+ body: z.ZodObject<{
2230
+ client_id: z.ZodString;
2231
+ }, z.core.$strip>;
2232
+ metadata: {
2233
+ noStore: boolean;
2234
+ openapi: {
2235
+ description: string;
2236
+ };
2237
+ };
2238
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2239
+ rotateClientKeys: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-keys", {
2240
+ method: "POST";
2241
+ body: z.ZodObject<{
2242
+ client_assertion: z.ZodString;
2243
+ client_assertion_type: z.ZodString;
2244
+ jwks: z.ZodObject<{
2245
+ keys: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2246
+ }, z.core.$strip>;
2247
+ }, z.core.$strip>;
2248
+ errorCodesByField: {
2249
+ client_assertion: "invalid_client";
2250
+ client_assertion_type: "invalid_client";
2251
+ jwks: "invalid_client_metadata";
2252
+ };
2253
+ metadata: {
2254
+ noStore: boolean;
2255
+ openapi: {
2256
+ description: string;
2257
+ };
2258
+ };
2259
+ }, {
2260
+ client_id: string;
2261
+ jwks: {
2262
+ keys: Record<string, unknown>[];
2263
+ };
2264
+ }>;
2265
+ deleteOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/delete-client", {
2266
+ method: "POST";
2267
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2268
+ session: {
2269
+ session: Record<string, any> & {
2270
+ id: string;
2271
+ createdAt: Date;
2272
+ updatedAt: Date;
2273
+ userId: string;
2274
+ expiresAt: Date;
2275
+ token: string;
2276
+ ipAddress?: string | null | undefined;
2277
+ userAgent?: string | null | undefined;
2278
+ };
2279
+ user: Record<string, any> & {
2280
+ id: string;
2281
+ createdAt: Date;
2282
+ updatedAt: Date;
2283
+ email: string;
2284
+ emailVerified: boolean;
2285
+ name: string;
2286
+ image?: string | null | undefined;
2287
+ };
2288
+ };
2289
+ }>>[];
2290
+ body: z.ZodObject<{
2291
+ client_id: z.ZodString;
2292
+ }, z.core.$strip>;
2293
+ metadata: {
2294
+ openapi: {
2295
+ description: string;
2296
+ };
2297
+ };
2298
+ }, void>;
2299
+ getOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/get-consent", {
2300
+ method: "GET";
2301
+ query: z.ZodObject<{
2302
+ id: z.ZodString;
2303
+ }, z.core.$strip>;
2304
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2305
+ session: {
2306
+ session: Record<string, any> & {
2307
+ id: string;
2308
+ createdAt: Date;
2309
+ updatedAt: Date;
2310
+ userId: string;
2311
+ expiresAt: Date;
2312
+ token: string;
2313
+ ipAddress?: string | null | undefined;
2314
+ userAgent?: string | null | undefined;
2315
+ };
2316
+ user: Record<string, any> & {
2317
+ id: string;
2318
+ createdAt: Date;
2319
+ updatedAt: Date;
2320
+ email: string;
2321
+ emailVerified: boolean;
2322
+ name: string;
2323
+ image?: string | null | undefined;
2324
+ };
2325
+ };
2326
+ }>>[];
2327
+ metadata: {
2328
+ openapi: {
2329
+ description: string;
2330
+ };
2331
+ };
2332
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>>;
2333
+ getOAuthConsents: import("better-auth").StrictEndpoint<"/oauth2/get-consents", {
2334
+ method: "GET";
2335
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2336
+ session: {
2337
+ session: Record<string, any> & {
2338
+ id: string;
2339
+ createdAt: Date;
2340
+ updatedAt: Date;
2341
+ userId: string;
2342
+ expiresAt: Date;
2343
+ token: string;
2344
+ ipAddress?: string | null | undefined;
2345
+ userAgent?: string | null | undefined;
2346
+ };
2347
+ user: Record<string, any> & {
2348
+ id: string;
2349
+ createdAt: Date;
2350
+ updatedAt: Date;
2351
+ email: string;
2352
+ emailVerified: boolean;
2353
+ name: string;
2354
+ image?: string | null | undefined;
2355
+ };
2356
+ };
2357
+ }>>[];
2358
+ metadata: {
2359
+ openapi: {
2360
+ description: string;
2361
+ };
2362
+ };
2363
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>[]>;
2364
+ updateOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/update-consent", {
2365
+ method: "POST";
2366
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2367
+ session: {
2368
+ session: Record<string, any> & {
2369
+ id: string;
2370
+ createdAt: Date;
2371
+ updatedAt: Date;
2372
+ userId: string;
2373
+ expiresAt: Date;
2374
+ token: string;
2375
+ ipAddress?: string | null | undefined;
2376
+ userAgent?: string | null | undefined;
2377
+ };
2378
+ user: Record<string, any> & {
2379
+ id: string;
2380
+ createdAt: Date;
2381
+ updatedAt: Date;
2382
+ email: string;
2383
+ emailVerified: boolean;
2384
+ name: string;
2385
+ image?: string | null | undefined;
2386
+ };
2387
+ };
2388
+ }>>[];
2389
+ body: z.ZodObject<{
2390
+ id: z.ZodString;
2391
+ update: z.ZodObject<{
2392
+ scopes: z.ZodArray<z.ZodString>;
2393
+ }, z.core.$strip>;
2394
+ }, z.core.$strip>;
2395
+ metadata: {
2396
+ openapi: {
2397
+ description: string;
2398
+ };
2399
+ };
2400
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]> | null>;
2401
+ deleteOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/delete-consent", {
2402
+ method: "POST";
2403
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2404
+ session: {
2405
+ session: Record<string, any> & {
2406
+ id: string;
2407
+ createdAt: Date;
2408
+ updatedAt: Date;
2409
+ userId: string;
2410
+ expiresAt: Date;
2411
+ token: string;
2412
+ ipAddress?: string | null | undefined;
2413
+ userAgent?: string | null | undefined;
2414
+ };
2415
+ user: Record<string, any> & {
2416
+ id: string;
2417
+ createdAt: Date;
2418
+ updatedAt: Date;
2419
+ email: string;
2420
+ emailVerified: boolean;
2421
+ name: string;
2422
+ image?: string | null | undefined;
2423
+ };
2424
+ };
2425
+ }>>[];
2426
+ body: z.ZodObject<{
2427
+ id: z.ZodString;
2428
+ }, z.core.$strip>;
2429
+ metadata: {
2430
+ openapi: {
2431
+ description: string;
2432
+ };
2433
+ };
2434
+ }, void>;
2435
+ adminCreateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
2436
+ method: "POST";
2437
+ body: z.ZodObject<{
2438
+ identifier: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
2439
+ name: z.ZodOptional<z.ZodString>;
2440
+ accessTokenTtl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2441
+ refreshTokenTtl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2442
+ signingAlgorithm: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2443
+ RS256: "RS256";
2444
+ PS256: "PS256";
2445
+ ES256: "ES256";
2446
+ ES512: "ES512";
2447
+ EdDSA: "EdDSA";
2448
+ }>>>;
2449
+ signingKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2450
+ allowedScopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2451
+ customClaims: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2452
+ dpopBoundAccessTokensRequired: z.ZodOptional<z.ZodBoolean>;
2453
+ disabled: z.ZodOptional<z.ZodBoolean>;
2454
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2455
+ }, z.core.$strip>;
2456
+ metadata: {
2457
+ SERVER_ONLY: true;
2458
+ };
2459
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2460
+ adminListOAuthResources: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
2461
+ method: "GET";
2462
+ metadata: {
2463
+ SERVER_ONLY: true;
2464
+ };
2465
+ }, import("@better-auth/oauth-provider").OAuthResource[]>;
2466
+ adminGetOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2467
+ method: "GET";
2468
+ metadata: {
2469
+ SERVER_ONLY: true;
2470
+ };
2471
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2472
+ adminUpdateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2473
+ method: "PATCH";
2474
+ body: z.ZodObject<{
2475
+ identifier: z.ZodOptional<z.ZodString>;
2476
+ name: z.ZodOptional<z.ZodString>;
2477
+ accessTokenTtl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2478
+ refreshTokenTtl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2479
+ signingAlgorithm: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2480
+ RS256: "RS256";
2481
+ PS256: "PS256";
2482
+ ES256: "ES256";
2483
+ ES512: "ES512";
2484
+ EdDSA: "EdDSA";
2485
+ }>>>;
2486
+ signingKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ allowedScopes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2488
+ customClaims: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2489
+ dpopBoundAccessTokensRequired: z.ZodOptional<z.ZodBoolean>;
2490
+ disabled: z.ZodOptional<z.ZodBoolean>;
2491
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2492
+ }, z.core.$strip>;
2493
+ metadata: {
2494
+ SERVER_ONLY: true;
2495
+ };
2496
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2497
+ adminDeleteOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2498
+ method: "DELETE";
2499
+ metadata: {
2500
+ SERVER_ONLY: true;
2501
+ };
2502
+ }, {
2503
+ deleted: boolean;
2504
+ }>;
2505
+ adminLinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
2506
+ method: "POST";
2507
+ metadata: {
2508
+ SERVER_ONLY: true;
2509
+ };
2510
+ }, {
2511
+ linked: boolean;
2512
+ }>;
2513
+ adminUnlinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
2514
+ method: "DELETE";
2515
+ metadata: {
2516
+ SERVER_ONLY: true;
2517
+ };
2518
+ }, {
2519
+ unlinked: boolean;
2520
+ }>;
2521
+ };
2522
+ schema: {
2523
+ oauthClient: {
2524
+ modelName: string;
2525
+ fields: {
2526
+ clientId: {
2527
+ type: "string";
2528
+ unique: true;
2529
+ required: true;
2530
+ };
2531
+ clientSecret: {
2532
+ type: "string";
2533
+ required: false;
2534
+ };
2535
+ clientDiscoveryId: {
2536
+ type: "string";
2537
+ required: false;
2538
+ };
2539
+ disabled: {
2540
+ type: "boolean";
2541
+ defaultValue: false;
2542
+ required: false;
2543
+ };
2544
+ skipConsent: {
2545
+ type: "boolean";
2546
+ required: false;
2547
+ };
2548
+ enableEndSession: {
2549
+ type: "boolean";
2550
+ required: false;
2551
+ };
2552
+ subjectType: {
2553
+ type: "string";
2554
+ required: false;
2555
+ };
2556
+ sectorIdentifier: {
2557
+ type: "string";
2558
+ required: false;
2559
+ };
2560
+ scopes: {
2561
+ type: "string[]";
2562
+ required: false;
2563
+ };
2564
+ clientCredentialsScopes: {
2565
+ type: "string[]";
2566
+ required: false;
2567
+ defaultValue: never[];
2568
+ };
2569
+ userId: {
2570
+ type: "string";
2571
+ required: false;
2572
+ references: {
2573
+ model: string;
2574
+ field: string;
2575
+ };
2576
+ index: true;
2577
+ };
2578
+ createdAt: {
2579
+ type: "date";
2580
+ required: false;
2581
+ };
2582
+ updatedAt: {
2583
+ type: "date";
2584
+ required: false;
2585
+ };
2586
+ name: {
2587
+ type: "string";
2588
+ required: false;
2589
+ };
2590
+ uri: {
2591
+ type: "string";
2592
+ required: false;
2593
+ };
2594
+ icon: {
2595
+ type: "string";
2596
+ required: false;
2597
+ };
2598
+ contacts: {
2599
+ type: "string[]";
2600
+ required: false;
2601
+ };
2602
+ tos: {
2603
+ type: "string";
2604
+ required: false;
2605
+ };
2606
+ policy: {
2607
+ type: "string";
2608
+ required: false;
2609
+ };
2610
+ softwareId: {
2611
+ type: "string";
2612
+ required: false;
2613
+ };
2614
+ softwareVersion: {
2615
+ type: "string";
2616
+ required: false;
2617
+ };
2618
+ softwareStatement: {
2619
+ type: "string";
2620
+ required: false;
2621
+ };
2622
+ redirectUris: {
2623
+ type: "string[]";
2624
+ required: true;
2625
+ };
2626
+ postLogoutRedirectUris: {
2627
+ type: "string[]";
2628
+ required: false;
2629
+ };
2630
+ backchannelLogoutUri: {
2631
+ type: "string";
2632
+ required: false;
2633
+ };
2634
+ backchannelLogoutSessionRequired: {
2635
+ type: "boolean";
2636
+ required: false;
2637
+ };
2638
+ frontchannelLogoutUri: {
2639
+ type: "string";
2640
+ required: false;
2641
+ };
2642
+ frontchannelLogoutSessionRequired: {
2643
+ type: "boolean";
2644
+ required: false;
2645
+ };
2646
+ tokenEndpointAuthMethod: {
2647
+ type: "string";
2648
+ required: false;
2649
+ };
2650
+ applicationType: {
2651
+ type: "string";
2652
+ required: false;
2653
+ };
2654
+ jwks: {
2655
+ type: "string";
2656
+ required: false;
2657
+ };
2658
+ jwksUri: {
2659
+ type: "string";
2660
+ required: false;
2661
+ };
2662
+ grantTypes: {
2663
+ type: "string[]";
2664
+ required: false;
2665
+ };
2666
+ responseTypes: {
2667
+ type: "string[]";
2668
+ required: false;
2669
+ };
2670
+ requirePKCE: {
2671
+ type: "boolean";
2672
+ required: false;
2673
+ };
2674
+ dpopBoundAccessTokens: {
2675
+ type: "boolean";
2676
+ required: false;
2677
+ defaultValue: false;
2678
+ };
2679
+ referenceId: {
2680
+ type: "string";
2681
+ required: false;
2682
+ };
2683
+ metadata: {
2684
+ type: "json";
2685
+ required: false;
2686
+ };
2687
+ };
2688
+ };
2689
+ oauthResource: {
2690
+ modelName: string;
2691
+ fields: {
2692
+ identifier: {
2693
+ type: "string";
2694
+ required: true;
2695
+ unique: true;
2696
+ };
2697
+ name: {
2698
+ type: "string";
2699
+ required: true;
2700
+ };
2701
+ accessTokenTtl: {
2702
+ type: "number";
2703
+ required: false;
2704
+ };
2705
+ refreshTokenTtl: {
2706
+ type: "number";
2707
+ required: false;
2708
+ };
2709
+ signingAlgorithm: {
2710
+ type: "string";
2711
+ required: false;
2712
+ };
2713
+ signingKeyId: {
2714
+ type: "string";
2715
+ required: false;
2716
+ };
2717
+ allowedScopes: {
2718
+ type: "string[]";
2719
+ required: false;
2720
+ };
2721
+ customClaims: {
2722
+ type: "json";
2723
+ required: false;
2724
+ };
2725
+ dpopBoundAccessTokensRequired: {
2726
+ type: "boolean";
2727
+ required: false;
2728
+ defaultValue: false;
2729
+ };
2730
+ disabled: {
2731
+ type: "boolean";
2732
+ required: false;
2733
+ defaultValue: false;
2734
+ };
2735
+ createdAt: {
2736
+ type: "date";
2737
+ required: false;
2738
+ };
2739
+ updatedAt: {
2740
+ type: "date";
2741
+ required: false;
2742
+ };
2743
+ policyVersion: {
2744
+ type: "number";
2745
+ required: false;
2746
+ defaultValue: number;
2747
+ };
2748
+ metadata: {
2749
+ type: "json";
2750
+ required: false;
2751
+ };
2752
+ };
2753
+ };
2754
+ oauthClientResource: {
2755
+ modelName: string;
2756
+ fields: {
2757
+ clientId: {
2758
+ type: "string";
2759
+ required: true;
2760
+ references: {
2761
+ model: string;
2762
+ field: string;
2763
+ onDelete: "cascade";
2764
+ };
2765
+ index: true;
2766
+ };
2767
+ resourceId: {
2768
+ type: "string";
2769
+ required: true;
2770
+ references: {
2771
+ model: string;
2772
+ field: string;
2773
+ onDelete: "cascade";
2774
+ };
2775
+ index: true;
2776
+ };
2777
+ metadata: {
2778
+ type: "json";
2779
+ required: false;
2780
+ };
2781
+ createdAt: {
2782
+ type: "date";
2783
+ required: false;
2784
+ };
2785
+ };
2786
+ indexes: {
2787
+ fields: [string, string];
2788
+ unique: true;
2789
+ }[];
2790
+ };
2791
+ oauthRefreshToken: {
2792
+ fields: {
2793
+ token: {
2794
+ type: "string";
2795
+ required: true;
2796
+ unique: true;
2797
+ };
2798
+ clientId: {
2799
+ type: "string";
2800
+ required: true;
2801
+ references: {
2802
+ model: string;
2803
+ field: string;
2804
+ };
2805
+ index: true;
2806
+ };
2807
+ sessionId: {
2808
+ type: "string";
2809
+ required: false;
2810
+ references: {
2811
+ model: string;
2812
+ field: string;
2813
+ onDelete: "set null";
2814
+ };
2815
+ index: true;
2816
+ };
2817
+ userId: {
2818
+ type: "string";
2819
+ required: true;
2820
+ references: {
2821
+ model: string;
2822
+ field: string;
2823
+ };
2824
+ index: true;
2825
+ };
2826
+ referenceId: {
2827
+ type: "string";
2828
+ required: false;
2829
+ };
2830
+ authorizationCodeId: {
2831
+ type: "string";
2832
+ required: false;
2833
+ index: true;
2834
+ };
2835
+ resources: {
2836
+ type: "string[]";
2837
+ required: false;
2838
+ };
2839
+ requestedUserInfoClaims: {
2840
+ type: "string[]";
2841
+ required: false;
2842
+ };
2843
+ expiresAt: {
2844
+ type: "date";
2845
+ };
2846
+ createdAt: {
2847
+ type: "date";
2848
+ };
2849
+ revoked: {
2850
+ type: "date";
2851
+ required: false;
2852
+ };
2853
+ rotatedAt: {
2854
+ type: "date";
2855
+ required: false;
2856
+ };
2857
+ rotationReplayResponse: {
2858
+ type: "string";
2859
+ required: false;
2860
+ };
2861
+ rotationReplayExpiresAt: {
2862
+ type: "date";
2863
+ required: false;
2864
+ };
2865
+ authTime: {
2866
+ type: "date";
2867
+ required: false;
2868
+ };
2869
+ acr: {
2870
+ type: "string";
2871
+ required: false;
2872
+ };
2873
+ amr: {
2874
+ type: "string[]";
2875
+ required: false;
2876
+ };
2877
+ confirmation: {
2878
+ type: "json";
2879
+ required: false;
2880
+ };
2881
+ scopes: {
2882
+ type: "string[]";
2883
+ required: true;
2884
+ };
2885
+ };
2886
+ };
2887
+ oauthAccessToken: {
2888
+ modelName: string;
2889
+ fields: {
2890
+ token: {
2891
+ type: "string";
2892
+ unique: true;
2893
+ };
2894
+ clientId: {
2895
+ type: "string";
2896
+ required: true;
2897
+ references: {
2898
+ model: string;
2899
+ field: string;
2900
+ };
2901
+ index: true;
2902
+ };
2903
+ sessionId: {
2904
+ type: "string";
2905
+ required: false;
2906
+ references: {
2907
+ model: string;
2908
+ field: string;
2909
+ onDelete: "set null";
2910
+ };
2911
+ index: true;
2912
+ };
2913
+ userId: {
2914
+ type: "string";
2915
+ required: false;
2916
+ references: {
2917
+ model: string;
2918
+ field: string;
2919
+ };
2920
+ index: true;
2921
+ };
2922
+ referenceId: {
2923
+ type: "string";
2924
+ required: false;
2925
+ };
2926
+ authorizationCodeId: {
2927
+ type: "string";
2928
+ required: false;
2929
+ index: true;
2930
+ };
2931
+ resources: {
2932
+ type: "string[]";
2933
+ required: false;
2934
+ };
2935
+ requestedUserInfoClaims: {
2936
+ type: "string[]";
2937
+ required: false;
2938
+ };
2939
+ refreshId: {
2940
+ type: "string";
2941
+ required: false;
2942
+ references: {
2943
+ model: string;
2944
+ field: string;
2945
+ };
2946
+ index: true;
2947
+ };
2948
+ expiresAt: {
2949
+ type: "date";
2950
+ };
2951
+ createdAt: {
2952
+ type: "date";
2953
+ };
2954
+ revoked: {
2955
+ type: "date";
2956
+ required: false;
2957
+ };
2958
+ confirmation: {
2959
+ type: "json";
2960
+ required: false;
2961
+ };
2962
+ scopes: {
2963
+ type: "string[]";
2964
+ required: true;
2965
+ };
2966
+ };
2967
+ };
2968
+ oauthConsent: {
2969
+ modelName: string;
2970
+ fields: {
2971
+ clientId: {
2972
+ type: "string";
2973
+ required: true;
2974
+ references: {
2975
+ model: string;
2976
+ field: string;
2977
+ };
2978
+ index: true;
2979
+ };
2980
+ userId: {
2981
+ type: "string";
2982
+ required: false;
2983
+ references: {
2984
+ model: string;
2985
+ field: string;
2986
+ };
2987
+ index: true;
2988
+ };
2989
+ referenceId: {
2990
+ type: "string";
2991
+ required: false;
2992
+ };
2993
+ resources: {
2994
+ type: "string[]";
2995
+ required: false;
2996
+ };
2997
+ requestedUserInfoClaims: {
2998
+ type: "string[]";
2999
+ required: false;
3000
+ };
3001
+ scopes: {
3002
+ type: "string[]";
3003
+ required: true;
3004
+ };
3005
+ createdAt: {
3006
+ type: "date";
3007
+ };
3008
+ updatedAt: {
3009
+ type: "date";
3010
+ };
3011
+ };
3012
+ };
3013
+ oauthClientAssertion: {
3014
+ modelName: string;
3015
+ fields: {
3016
+ expiresAt: {
3017
+ type: "date";
3018
+ required: true;
3019
+ };
3020
+ };
3021
+ };
3022
+ };
3023
+ rateLimit: ({
3024
+ pathMatcher: (path: string) => path is "/oauth2/token";
3025
+ window: number;
3026
+ max: number;
3027
+ } | {
3028
+ pathMatcher: (path: string) => path is "/oauth2/authorize";
3029
+ window: number;
3030
+ max: number;
3031
+ } | {
3032
+ pathMatcher: (path: string) => path is "/oauth2/introspect";
3033
+ window: number;
3034
+ max: number;
3035
+ } | {
3036
+ pathMatcher: (path: string) => path is "/oauth2/revoke";
3037
+ window: number;
3038
+ max: number;
3039
+ } | {
3040
+ pathMatcher: (path: string) => path is "/oauth2/register";
3041
+ window: number;
3042
+ max: number;
3043
+ } | {
3044
+ pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
3045
+ window: number;
3046
+ max: number;
3047
+ } | {
3048
+ pathMatcher: (path: string) => path is "/oauth2/userinfo";
3049
+ window: number;
3050
+ max: number;
3051
+ })[];
3052
+ } | {
3053
+ hooks: {
3054
+ after: {
3055
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
3056
+ matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
3057
+ }[];
3058
+ before: {
3059
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
3060
+ matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
3061
+ }[];
3062
+ };
3063
+ id: "tempo-id-authorize-session";
3064
+ endpoints?: never;
3065
+ init?: never;
3066
+ } | {
3067
+ hooks?: never;
3068
+ endpoints: {
3069
+ resolveOAuthClient: import("better-auth").StrictEndpoint<string, {
3070
+ body: z.ZodObject<{
3071
+ client_id: z.ZodString;
3072
+ }, z.core.$strip>;
3073
+ method: "POST";
3074
+ }, {
3075
+ resolved: boolean;
3076
+ }>;
3077
+ };
3078
+ id: "tempo-id-client-discovery";
3079
+ init?: never;
3080
+ } | {
3081
+ hooks?: never;
3082
+ endpoints?: never;
3083
+ id: "tempo-id-resource-seed";
3084
+ init: (ctx: import("better-auth").AuthContext) => Promise<void>;
3085
+ })[];
3086
+ export declare namespace plugins {
3087
+ type Options = {
3088
+ /** Returns whether the app's authorization needs `/choose-account`. Absent, none does. */
3089
+ accountStep?: ((options: {
3090
+ clientId: string;
3091
+ headers: Headers;
3092
+ query: URLSearchParams;
3093
+ sessionId: string;
3094
+ userId: string;
3095
+ }) => Promise<boolean>) | undefined;
3096
+ /** Tempo ID's origin, which is `iss` and the one resource. */
3097
+ baseURL: string;
3098
+ /** The isolate's cache for the signing keys. Absent, nothing is cached. */
3099
+ cache?: Cache.Cache | undefined;
3100
+ /** Fetches third-party apps' metadata documents. Defaults to `fetchMetadata()`. */
3101
+ metadataFetch?: ClientMetadataResourceFetch | undefined;
3102
+ /** Takes a code's held key authorization, as `PendingKey.take` does. Absent, codes carry none. */
3103
+ pendingKey?: ((options: {
3104
+ clientId: string;
3105
+ codeChallenge: string;
3106
+ userId: string;
3107
+ }) => Promise<PendingKey.PendingKey | undefined>) | undefined;
3108
+ };
3109
+ }
3110
+ /**
3111
+ * Removes the registered app with `clientId`, with its consents, tokens, and realms. Throws
3112
+ * `NotFoundError` when no registered app has it.
3113
+ */
3114
+ export declare function remove(db: Realm.Database, options: remove.Options): Promise<App>;
3115
+ export declare namespace remove {
3116
+ type Options = {
3117
+ /** The app's client ID. */
3118
+ clientId: string;
3119
+ };
3120
+ }
3121
+ /**
3122
+ * Replaces the client secret of the app with `clientId`, and returns the app with the new secret.
3123
+ * The earlier secret stops working at once. Throws `NotFoundError` for an unknown app,
3124
+ * `PublicError` for an app without a secret, and `InvalidError` for an invalid or unchanged secret.
3125
+ */
3126
+ export declare function rotateSecret(db: Realm.Database, options: rotateSecret.Options): Promise<{
3127
+ app: App;
3128
+ clientSecret: string;
3129
+ }>;
3130
+ export declare namespace rotateSecret {
3131
+ type Options = {
3132
+ /** The app's client ID. */
3133
+ clientId: string;
3134
+ /** Another deployment's client secret to keep. Defaults to a new secret. */
3135
+ clientSecret?: string | undefined;
3136
+ };
3137
+ }
3138
+ /** Returns whether `clientId` is a canonical `https` origin, such as `https://app.example`. */
3139
+ export declare function originId(clientId: string): boolean;
3140
+ /** Returns whether `clientId` names a third-party app: an `https` URL or origin. */
3141
+ export declare function thirdParty(clientId: string): boolean;
3142
+ /** Returns the third-party client IDs in `clientIds` without a row within `discoveryFreshness`. */
3143
+ export declare function stale(db: Realm.Database, options: stale.Options): Promise<readonly string[]>;
3144
+ export declare namespace stale {
3145
+ type Options = {
3146
+ /** The client IDs in the request's parameters or Basic credentials. */
3147
+ clientIds: readonly string[];
3148
+ };
3149
+ }
3150
+ /**
3151
+ * Updates the registered app with `clientId`, and returns it. A value left out stays. Throws
3152
+ * `NotFoundError` when no registered app has it, and `InvalidError` for an invalid value.
3153
+ */
3154
+ export declare function update(db: Realm.Database, options: update.Options): Promise<App>;
3155
+ export declare namespace update {
3156
+ type Options = {
3157
+ /** The app's client ID. */
3158
+ clientId: string;
3159
+ /** The display name. */
3160
+ name?: string | undefined;
3161
+ /** Replaces the URIs that `GET /oauth2/end-session` may return to. An empty list clears them. */
3162
+ postLogoutRedirectUris?: readonly string[] | undefined;
3163
+ /** Replaces the URIs that the app returns to. */
3164
+ redirectUris?: readonly string[] | undefined;
3165
+ /** Whether the app holds the `tempo-id:sign` scope. */
3166
+ sign?: boolean | undefined;
3167
+ };
3168
+ }
3169
+ //# sourceMappingURL=Apps.d.ts.map