@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,4287 @@
1
+ /**
2
+ * Builds the Better Auth options from the caller's database, secret, and origin, and declares the
3
+ * sign-in refusals.
4
+ * @module
5
+ */
6
+ import type { betterAuth, BetterAuthOptions } from 'better-auth';
7
+ import type * as BetterCall from 'better-call';
8
+ import { drizzleAdapter } from 'better-auth/adapters/drizzle';
9
+ import * as Apps from './Apps.js';
10
+ import * as ErrorResponse from './ErrorResponse.js';
11
+ declare const AuthorizationExpiredError_base: {
12
+ new (options: ErrorResponse.define.Options): {
13
+ message: string;
14
+ stack?: string;
15
+ cause?: unknown;
16
+ readonly res?: Response;
17
+ readonly status: import("hono/utils/http-status").ContentfulStatusCode;
18
+ getResponse(): Response;
19
+ readonly name: string;
20
+ readonly response: Omit<{
21
+ error: string;
22
+ error_description: string;
23
+ error_uri: string;
24
+ field?: string | undefined;
25
+ meta?: Readonly<Record<string, string | number>> | undefined;
26
+ reason: string;
27
+ request_id?: string | undefined;
28
+ }, "error" | "reason"> & {
29
+ error: "invalid_request";
30
+ reason: "authorization_expired";
31
+ };
32
+ };
33
+ readonly reason: "authorization_expired";
34
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
35
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
36
+ stackTraceLimit: number;
37
+ };
38
+ /**
39
+ * The signed `oauth_query` that a sign-in or the approval page continues is forged or expired. The
40
+ * code stays unspent.
41
+ */
42
+ export declare class AuthorizationExpiredError extends AuthorizationExpiredError_base {
43
+ readonly name = "Auth.AuthorizationExpiredError";
44
+ constructor();
45
+ }
46
+ declare const InvalidCodeError_base: {
47
+ new (options: ErrorResponse.define.Options): {
48
+ message: string;
49
+ stack?: string;
50
+ cause?: unknown;
51
+ readonly res?: Response;
52
+ readonly status: import("hono/utils/http-status").ContentfulStatusCode;
53
+ getResponse(): Response;
54
+ readonly name: string;
55
+ readonly response: Omit<{
56
+ error: string;
57
+ error_description: string;
58
+ error_uri: string;
59
+ field?: string | undefined;
60
+ meta?: Readonly<Record<string, string | number>> | undefined;
61
+ reason: string;
62
+ request_id?: string | undefined;
63
+ }, "error" | "reason"> & {
64
+ error: "invalid_grant";
65
+ reason: "invalid_code";
66
+ };
67
+ };
68
+ readonly reason: "invalid_code";
69
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
70
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
71
+ stackTraceLimit: number;
72
+ };
73
+ /** The emailed code is wrong or expired. The refusal never reveals whether the account exists. */
74
+ export declare class InvalidCodeError extends InvalidCodeError_base {
75
+ readonly name = "Auth.InvalidCodeError";
76
+ constructor();
77
+ }
78
+ declare const SessionChangedError_base: {
79
+ new (options: ErrorResponse.define.Options): {
80
+ message: string;
81
+ stack?: string;
82
+ cause?: unknown;
83
+ readonly res?: Response;
84
+ readonly status: import("hono/utils/http-status").ContentfulStatusCode;
85
+ getResponse(): Response;
86
+ readonly name: string;
87
+ readonly response: Omit<{
88
+ error: string;
89
+ error_description: string;
90
+ error_uri: string;
91
+ field?: string | undefined;
92
+ meta?: Readonly<Record<string, string | number>> | undefined;
93
+ reason: string;
94
+ request_id?: string | undefined;
95
+ }, "error" | "reason"> & {
96
+ error: "invalid_request";
97
+ reason: "session_changed";
98
+ };
99
+ };
100
+ readonly reason: "session_changed";
101
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
102
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
103
+ stackTraceLimit: number;
104
+ };
105
+ /** The session differs from the one that the approval page showed. No consent is stored. */
106
+ export declare class SessionChangedError extends SessionChangedError_base {
107
+ readonly name = "Auth.SessionChangedError";
108
+ constructor();
109
+ }
110
+ declare const SessionRequiredError_base: {
111
+ new (options: ErrorResponse.define.Options): {
112
+ message: string;
113
+ stack?: string;
114
+ cause?: unknown;
115
+ readonly res?: Response;
116
+ readonly status: import("hono/utils/http-status").ContentfulStatusCode;
117
+ getResponse(): Response;
118
+ readonly name: string;
119
+ readonly response: Omit<{
120
+ error: string;
121
+ error_description: string;
122
+ error_uri: string;
123
+ field?: string | undefined;
124
+ meta?: Readonly<Record<string, string | number>> | undefined;
125
+ reason: string;
126
+ request_id?: string | undefined;
127
+ }, "error" | "reason"> & {
128
+ error: "login_required";
129
+ reason: "session_required";
130
+ };
131
+ };
132
+ readonly reason: "session_required";
133
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
134
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
135
+ stackTraceLimit: number;
136
+ };
137
+ /** The request needs a signed-in session, and has none. */
138
+ export declare class SessionRequiredError extends SessionRequiredError_base {
139
+ readonly name = "Auth.SessionRequiredError";
140
+ constructor();
141
+ }
142
+ declare const SignUpNotPermittedError_base: {
143
+ new (options: ErrorResponse.define.Options): {
144
+ message: string;
145
+ stack?: string;
146
+ cause?: unknown;
147
+ readonly res?: Response;
148
+ readonly status: import("hono/utils/http-status").ContentfulStatusCode;
149
+ getResponse(): Response;
150
+ readonly name: string;
151
+ readonly response: Omit<{
152
+ error: string;
153
+ error_description: string;
154
+ error_uri: string;
155
+ field?: string | undefined;
156
+ meta?: Readonly<Record<string, string | number>> | undefined;
157
+ reason: string;
158
+ request_id?: string | undefined;
159
+ }, "error" | "reason"> & {
160
+ error: "access_denied";
161
+ reason: "sign_up_not_permitted";
162
+ };
163
+ };
164
+ readonly reason: "sign_up_not_permitted";
165
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
166
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
167
+ stackTraceLimit: number;
168
+ };
169
+ /**
170
+ * The verified address has no account, and its domain is not in `signUpDomains`. A sign-in of an
171
+ * existing account at any domain is not refused. The address is verified first, so the refusal
172
+ * reveals nothing to a caller who does not control the address.
173
+ */
174
+ export declare class SignUpNotPermittedError extends SignUpNotPermittedError_base {
175
+ readonly name = "Auth.SignUpNotPermittedError";
176
+ constructor(options: {
177
+ domains: readonly string[];
178
+ });
179
+ }
180
+ /** A validation issue in the device plugin's types, which declarations name through this alias. */
181
+ export type Issue = BetterCall.StandardSchemaV1.Issue;
182
+ /** A Better Auth instance with Tempo ID's options, which each request creates. */
183
+ export type Instance = ReturnType<typeof betterAuth<ReturnType<typeof options>>>;
184
+ /** The session cookie, which every app on the same site shares. */
185
+ export declare const sessionCookie = "tempo-id-session";
186
+ /** Returns the Better Auth options for `options`. */
187
+ export declare function options(options: options.Options): {
188
+ advanced: {
189
+ backgroundTasks: {
190
+ handler: (promise: Promise<unknown>) => void;
191
+ };
192
+ cookies: {
193
+ session_token: {
194
+ name: string;
195
+ };
196
+ };
197
+ database: {
198
+ generateId: (id: {
199
+ model: import("better-auth").ModelNames;
200
+ size?: number | undefined;
201
+ }) => string;
202
+ joins: true;
203
+ };
204
+ ipAddress: {
205
+ ipAddressHeaders: string[];
206
+ };
207
+ };
208
+ basePath: string;
209
+ baseURL: string;
210
+ database: (options: BetterAuthOptions) => import("better-auth").DBAdapter<BetterAuthOptions>;
211
+ databaseHooks: {
212
+ session: {
213
+ create: {
214
+ after: (session: {
215
+ id: string;
216
+ createdAt: Date;
217
+ updatedAt: Date;
218
+ userId: string;
219
+ expiresAt: Date;
220
+ token: string;
221
+ ipAddress?: string | null | undefined;
222
+ userAgent?: string | null | undefined;
223
+ } & Record<string, unknown>) => Promise<void>;
224
+ };
225
+ };
226
+ user: {
227
+ create: {
228
+ after: (user: {
229
+ id: string;
230
+ createdAt: Date;
231
+ updatedAt: Date;
232
+ email: string;
233
+ emailVerified: boolean;
234
+ name: string;
235
+ image?: string | null | undefined;
236
+ } & Record<string, unknown>) => Promise<void>;
237
+ before: (user: {
238
+ id: string;
239
+ createdAt: Date;
240
+ updatedAt: Date;
241
+ email: string;
242
+ emailVerified: boolean;
243
+ name: string;
244
+ image?: string | null | undefined;
245
+ } & Record<string, unknown>) => Promise<void | boolean | {
246
+ data: {
247
+ id?: string | undefined;
248
+ createdAt?: Date | undefined;
249
+ updatedAt?: Date | undefined;
250
+ email?: string | undefined;
251
+ emailVerified?: boolean | undefined;
252
+ name?: string | undefined;
253
+ image?: string | null | undefined;
254
+ } & Record<string, any>;
255
+ }>;
256
+ };
257
+ };
258
+ };
259
+ onAPIError: {
260
+ errorURL: string;
261
+ };
262
+ plugins: [{
263
+ id: "email-otp";
264
+ version: string;
265
+ init(ctx: import("better-auth").AuthContext): {
266
+ options: {
267
+ emailVerification: {
268
+ sendVerificationEmail(data: {
269
+ user: import("better-auth").User;
270
+ url: string;
271
+ token: string;
272
+ }, request: Request | undefined): Promise<void>;
273
+ };
274
+ };
275
+ } | undefined;
276
+ endpoints: {
277
+ sendVerificationOTP: BetterCall.StrictEndpoint<"/email-otp/send-verification-otp", {
278
+ method: "POST";
279
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>[];
280
+ body: import("better-auth").ZodObject<{
281
+ email: import("better-auth").ZodString;
282
+ type: import("better-auth").ZodEnum<{
283
+ "sign-in": "sign-in";
284
+ "change-email": "change-email";
285
+ "email-verification": "email-verification";
286
+ "forget-password": "forget-password";
287
+ }>;
288
+ }, import("zod/v4/core").$strip>;
289
+ metadata: {
290
+ openapi: {
291
+ operationId: string;
292
+ description: string;
293
+ responses: {
294
+ 200: {
295
+ description: string;
296
+ content: {
297
+ "application/json": {
298
+ schema: {
299
+ type: "object";
300
+ properties: {
301
+ success: {
302
+ type: string;
303
+ };
304
+ };
305
+ };
306
+ };
307
+ };
308
+ };
309
+ };
310
+ };
311
+ };
312
+ }, {
313
+ success: boolean;
314
+ }>;
315
+ createVerificationOTP: BetterCall.StrictEndpoint<string, {
316
+ method: "POST";
317
+ body: import("better-auth").ZodObject<{
318
+ email: import("better-auth").ZodString;
319
+ type: import("better-auth").ZodEnum<{
320
+ "sign-in": "sign-in";
321
+ "change-email": "change-email";
322
+ "email-verification": "email-verification";
323
+ "forget-password": "forget-password";
324
+ }>;
325
+ }, import("zod/v4/core").$strip>;
326
+ metadata: {
327
+ openapi: {
328
+ operationId: string;
329
+ description: string;
330
+ responses: {
331
+ 200: {
332
+ description: string;
333
+ content: {
334
+ "application/json": {
335
+ schema: {
336
+ type: "string";
337
+ };
338
+ };
339
+ };
340
+ };
341
+ };
342
+ };
343
+ };
344
+ }, string>;
345
+ getVerificationOTP: BetterCall.StrictEndpoint<string, {
346
+ method: "GET";
347
+ query: import("better-auth").ZodObject<{
348
+ email: import("better-auth").ZodString;
349
+ type: import("better-auth").ZodEnum<{
350
+ "sign-in": "sign-in";
351
+ "change-email": "change-email";
352
+ "email-verification": "email-verification";
353
+ "forget-password": "forget-password";
354
+ }>;
355
+ }, import("zod/v4/core").$strip>;
356
+ metadata: {
357
+ openapi: {
358
+ operationId: string;
359
+ description: string;
360
+ responses: {
361
+ "200": {
362
+ description: string;
363
+ content: {
364
+ "application/json": {
365
+ schema: {
366
+ type: "object";
367
+ properties: {
368
+ otp: {
369
+ type: string;
370
+ nullable: boolean;
371
+ description: string;
372
+ };
373
+ };
374
+ required: string[];
375
+ };
376
+ };
377
+ };
378
+ };
379
+ };
380
+ };
381
+ };
382
+ }, {
383
+ otp: null;
384
+ } | {
385
+ otp: string;
386
+ }>;
387
+ checkVerificationOTP: BetterCall.StrictEndpoint<"/email-otp/check-verification-otp", {
388
+ method: "POST";
389
+ body: import("better-auth").ZodObject<{
390
+ email: import("better-auth").ZodString;
391
+ type: import("better-auth").ZodEnum<{
392
+ "sign-in": "sign-in";
393
+ "change-email": "change-email";
394
+ "email-verification": "email-verification";
395
+ "forget-password": "forget-password";
396
+ }>;
397
+ otp: import("better-auth").ZodString;
398
+ }, import("zod/v4/core").$strip>;
399
+ metadata: {
400
+ openapi: {
401
+ operationId: string;
402
+ description: string;
403
+ responses: {
404
+ 200: {
405
+ description: string;
406
+ content: {
407
+ "application/json": {
408
+ schema: {
409
+ type: "object";
410
+ properties: {
411
+ success: {
412
+ type: string;
413
+ };
414
+ };
415
+ };
416
+ };
417
+ };
418
+ };
419
+ };
420
+ };
421
+ };
422
+ }, {
423
+ success: boolean;
424
+ }>;
425
+ verifyEmailOTP: BetterCall.StrictEndpoint<"/email-otp/verify-email", {
426
+ method: "POST";
427
+ body: import("better-auth").ZodObject<{
428
+ email: import("better-auth").ZodString;
429
+ otp: import("better-auth").ZodString;
430
+ }, import("zod/v4/core").$strip>;
431
+ metadata: {
432
+ openapi: {
433
+ description: string;
434
+ responses: {
435
+ 200: {
436
+ description: string;
437
+ content: {
438
+ "application/json": {
439
+ schema: {
440
+ type: "object";
441
+ properties: {
442
+ status: {
443
+ type: string;
444
+ description: string;
445
+ enum: boolean[];
446
+ };
447
+ token: {
448
+ type: string;
449
+ nullable: boolean;
450
+ description: string;
451
+ };
452
+ user: {
453
+ $ref: string;
454
+ };
455
+ };
456
+ required: string[];
457
+ };
458
+ };
459
+ };
460
+ };
461
+ };
462
+ };
463
+ };
464
+ }, {
465
+ status: boolean;
466
+ token: string;
467
+ user: {
468
+ id: string;
469
+ createdAt: Date;
470
+ updatedAt: Date;
471
+ email: string;
472
+ emailVerified: boolean;
473
+ name: string;
474
+ image?: string | null | undefined;
475
+ } & Record<string, any>;
476
+ } | {
477
+ status: boolean;
478
+ token: null;
479
+ user: {
480
+ id: string;
481
+ createdAt: Date;
482
+ updatedAt: Date;
483
+ email: string;
484
+ emailVerified: boolean;
485
+ name: string;
486
+ image?: string | null | undefined;
487
+ } & Record<string, any>;
488
+ }>;
489
+ signInEmailOTP: BetterCall.StrictEndpoint<"/sign-in/email-otp", {
490
+ method: "POST";
491
+ body: import("better-auth").ZodIntersection<import("better-auth").ZodObject<{
492
+ email: import("better-auth").ZodString;
493
+ otp: import("better-auth").ZodString;
494
+ name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
495
+ image: import("better-auth").ZodOptional<import("better-auth").ZodString>;
496
+ }, import("zod/v4/core").$strip>, import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
497
+ metadata: {
498
+ openapi: {
499
+ operationId: string;
500
+ description: string;
501
+ responses: {
502
+ 200: {
503
+ description: string;
504
+ content: {
505
+ "application/json": {
506
+ schema: {
507
+ type: "object";
508
+ properties: {
509
+ token: {
510
+ type: string;
511
+ description: string;
512
+ };
513
+ user: {
514
+ $ref: string;
515
+ };
516
+ };
517
+ required: string[];
518
+ };
519
+ };
520
+ };
521
+ };
522
+ };
523
+ };
524
+ };
525
+ }, {
526
+ token: string;
527
+ user: {
528
+ id: string;
529
+ createdAt: Date;
530
+ updatedAt: Date;
531
+ email: string;
532
+ emailVerified: boolean;
533
+ name: string;
534
+ image?: string | null | undefined;
535
+ };
536
+ }>;
537
+ requestPasswordResetEmailOTP: BetterCall.StrictEndpoint<"/email-otp/request-password-reset", {
538
+ method: "POST";
539
+ body: import("better-auth").ZodObject<{
540
+ email: import("better-auth").ZodString;
541
+ }, import("zod/v4/core").$strip>;
542
+ metadata: {
543
+ openapi: {
544
+ operationId: string;
545
+ description: string;
546
+ responses: {
547
+ 200: {
548
+ description: string;
549
+ content: {
550
+ "application/json": {
551
+ schema: {
552
+ type: "object";
553
+ properties: {
554
+ success: {
555
+ type: string;
556
+ description: string;
557
+ };
558
+ };
559
+ };
560
+ };
561
+ };
562
+ };
563
+ };
564
+ };
565
+ };
566
+ }, {
567
+ success: boolean;
568
+ }>;
569
+ forgetPasswordEmailOTP: BetterCall.StrictEndpoint<"/forget-password/email-otp", {
570
+ method: "POST";
571
+ body: import("better-auth").ZodObject<{
572
+ email: import("better-auth").ZodString;
573
+ }, import("zod/v4/core").$strip>;
574
+ metadata: {
575
+ openapi: {
576
+ operationId: string;
577
+ description: string;
578
+ responses: {
579
+ 200: {
580
+ description: string;
581
+ content: {
582
+ "application/json": {
583
+ schema: {
584
+ type: "object";
585
+ properties: {
586
+ success: {
587
+ type: string;
588
+ description: string;
589
+ };
590
+ };
591
+ };
592
+ };
593
+ };
594
+ };
595
+ };
596
+ };
597
+ };
598
+ }, {
599
+ success: boolean;
600
+ }>;
601
+ resetPasswordEmailOTP: BetterCall.StrictEndpoint<"/email-otp/reset-password", {
602
+ method: "POST";
603
+ body: import("better-auth").ZodObject<{
604
+ email: import("better-auth").ZodString;
605
+ otp: import("better-auth").ZodString;
606
+ password: import("better-auth").ZodString;
607
+ }, import("zod/v4/core").$strip>;
608
+ metadata: {
609
+ openapi: {
610
+ operationId: string;
611
+ description: string;
612
+ responses: {
613
+ 200: {
614
+ description: string;
615
+ content: {
616
+ "application/json": {
617
+ schema: {
618
+ type: "object";
619
+ properties: {
620
+ success: {
621
+ type: string;
622
+ };
623
+ };
624
+ };
625
+ };
626
+ };
627
+ };
628
+ };
629
+ };
630
+ };
631
+ }, {
632
+ success: boolean;
633
+ }>;
634
+ requestEmailChangeEmailOTP: BetterCall.StrictEndpoint<"/email-otp/request-email-change", {
635
+ method: "POST";
636
+ body: import("better-auth").ZodObject<{
637
+ newEmail: import("better-auth").ZodString;
638
+ otp: import("better-auth").ZodOptional<import("better-auth").ZodString>;
639
+ }, import("zod/v4/core").$strip>;
640
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
641
+ session: {
642
+ session: Record<string, any> & {
643
+ id: string;
644
+ createdAt: Date;
645
+ updatedAt: Date;
646
+ userId: string;
647
+ expiresAt: Date;
648
+ token: string;
649
+ ipAddress?: string | null | undefined;
650
+ userAgent?: string | null | undefined;
651
+ };
652
+ user: Record<string, any> & {
653
+ id: string;
654
+ createdAt: Date;
655
+ updatedAt: Date;
656
+ email: string;
657
+ emailVerified: boolean;
658
+ name: string;
659
+ image?: string | null | undefined;
660
+ };
661
+ };
662
+ }>>[];
663
+ metadata: {
664
+ openapi: {
665
+ operationId: string;
666
+ description: string;
667
+ responses: {
668
+ 200: {
669
+ description: string;
670
+ content: {
671
+ "application/json": {
672
+ schema: {
673
+ type: "object";
674
+ properties: {
675
+ success: {
676
+ type: string;
677
+ };
678
+ };
679
+ };
680
+ };
681
+ };
682
+ };
683
+ };
684
+ };
685
+ };
686
+ }, {
687
+ success: boolean;
688
+ }>;
689
+ changeEmailEmailOTP: BetterCall.StrictEndpoint<"/email-otp/change-email", {
690
+ method: "POST";
691
+ body: import("better-auth").ZodObject<{
692
+ newEmail: import("better-auth").ZodString;
693
+ otp: import("better-auth").ZodString;
694
+ }, import("zod/v4/core").$strip>;
695
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
696
+ session: {
697
+ session: Record<string, any> & {
698
+ id: string;
699
+ createdAt: Date;
700
+ updatedAt: Date;
701
+ userId: string;
702
+ expiresAt: Date;
703
+ token: string;
704
+ ipAddress?: string | null | undefined;
705
+ userAgent?: string | null | undefined;
706
+ };
707
+ user: Record<string, any> & {
708
+ id: string;
709
+ createdAt: Date;
710
+ updatedAt: Date;
711
+ email: string;
712
+ emailVerified: boolean;
713
+ name: string;
714
+ image?: string | null | undefined;
715
+ };
716
+ };
717
+ }>>[];
718
+ metadata: {
719
+ openapi: {
720
+ operationId: string;
721
+ description: string;
722
+ responses: {
723
+ 200: {
724
+ description: string;
725
+ content: {
726
+ "application/json": {
727
+ schema: {
728
+ type: "object";
729
+ properties: {
730
+ success: {
731
+ type: string;
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ };
738
+ };
739
+ };
740
+ };
741
+ }, {
742
+ success: boolean;
743
+ }>;
744
+ };
745
+ hooks: {
746
+ after: {
747
+ matcher(context: import("better-auth").HookEndpointContext): boolean;
748
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>;
749
+ }[];
750
+ };
751
+ rateLimit: ({
752
+ pathMatcher(path: string): path is "/email-otp/send-verification-otp";
753
+ window: number;
754
+ max: number;
755
+ } | {
756
+ pathMatcher(path: string): path is "/email-otp/check-verification-otp";
757
+ window: number;
758
+ max: number;
759
+ } | {
760
+ pathMatcher(path: string): path is "/email-otp/verify-email";
761
+ window: number;
762
+ max: number;
763
+ } | {
764
+ pathMatcher(path: string): path is "/sign-in/email-otp";
765
+ window: number;
766
+ max: number;
767
+ } | {
768
+ pathMatcher(path: string): path is "/email-otp/request-password-reset";
769
+ window: number;
770
+ max: number;
771
+ } | {
772
+ pathMatcher(path: string): path is "/email-otp/reset-password";
773
+ window: number;
774
+ max: number;
775
+ } | {
776
+ pathMatcher(path: string): path is "/forget-password/email-otp";
777
+ window: number;
778
+ max: number;
779
+ } | {
780
+ pathMatcher(path: string): path is "/email-otp/request-email-change";
781
+ window: number;
782
+ max: number;
783
+ } | {
784
+ pathMatcher(path: string): path is "/email-otp/change-email";
785
+ window: number;
786
+ max: number;
787
+ })[];
788
+ options: import("better-auth/plugins/email-otp").EmailOTPOptions;
789
+ $ERROR_CODES: {
790
+ OTP_EXPIRED: import("better-auth").RawError<"OTP_EXPIRED">;
791
+ INVALID_OTP: import("better-auth").RawError<"INVALID_OTP">;
792
+ TOO_MANY_ATTEMPTS: import("better-auth").RawError<"TOO_MANY_ATTEMPTS">;
793
+ };
794
+ }, {
795
+ endpoints: {
796
+ signInPasskey: BetterCall.StrictEndpoint<string, {
797
+ body: import("better-auth").ZodObject<{
798
+ oauth_query: import("better-auth").ZodOptional<import("better-auth").ZodString>;
799
+ user: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
800
+ createdAt: import("better-auth").ZodDate;
801
+ email: import("better-auth").ZodString;
802
+ emailVerified: import("better-auth").ZodBoolean;
803
+ id: import("better-auth").ZodString;
804
+ image: import("better-auth").ZodNullable<import("better-auth").ZodString>;
805
+ name: import("better-auth").ZodString;
806
+ updatedAt: import("better-auth").ZodDate;
807
+ }, import("zod/v4/core").$strip>>;
808
+ userId: import("better-auth").ZodString;
809
+ }, import("zod/v4/core").$strip>;
810
+ method: "POST";
811
+ }, {
812
+ user: {
813
+ email: string;
814
+ id: string;
815
+ };
816
+ }>;
817
+ };
818
+ id: "tempo-id-passkey";
819
+ }, ...({
820
+ id: "jwt";
821
+ version: string;
822
+ options: NoInfer<{
823
+ adapter: {
824
+ getJwks: (ctx: import("better-auth").GenericEndpointContext) => Promise<import("better-auth/plugins").Jwk[]>;
825
+ };
826
+ disableSettingJwtHeader: true;
827
+ jwks: {
828
+ gracePeriod: number;
829
+ jwksPath: string;
830
+ keyPairConfig: {
831
+ alg: 'RS256';
832
+ modulusLength: number;
833
+ };
834
+ };
835
+ jwt: {
836
+ issuer: string;
837
+ };
838
+ }>;
839
+ init(ctx: import("better-auth").AuthContext): {
840
+ context: {
841
+ sessionConfig: {
842
+ cookieCacheSigner: import("better-auth").CookieCacheSigner;
843
+ updateAge: number;
844
+ expiresIn: number;
845
+ freshAge: number;
846
+ cookieRefreshCache: false | {
847
+ enabled: true;
848
+ updateAge: number;
849
+ };
850
+ };
851
+ };
852
+ } | undefined;
853
+ endpoints: {
854
+ getJwks: BetterCall.StrictEndpoint<string, {
855
+ method: "GET";
856
+ metadata: {
857
+ openapi: {
858
+ operationId: string;
859
+ description: string;
860
+ responses: {
861
+ "200": {
862
+ description: string;
863
+ content: {
864
+ "application/json": {
865
+ schema: {
866
+ type: "object";
867
+ properties: {
868
+ keys: {
869
+ type: string;
870
+ description: string;
871
+ items: {
872
+ type: string;
873
+ properties: {
874
+ kid: {
875
+ type: string;
876
+ description: string;
877
+ };
878
+ kty: {
879
+ type: string;
880
+ description: string;
881
+ };
882
+ alg: {
883
+ type: string;
884
+ description: string;
885
+ };
886
+ use: {
887
+ type: string;
888
+ description: string;
889
+ enum: string[];
890
+ nullable: boolean;
891
+ };
892
+ n: {
893
+ type: string;
894
+ description: string;
895
+ nullable: boolean;
896
+ };
897
+ e: {
898
+ type: string;
899
+ description: string;
900
+ nullable: boolean;
901
+ };
902
+ crv: {
903
+ type: string;
904
+ description: string;
905
+ nullable: boolean;
906
+ };
907
+ x: {
908
+ type: string;
909
+ description: string;
910
+ nullable: boolean;
911
+ };
912
+ y: {
913
+ type: string;
914
+ description: string;
915
+ nullable: boolean;
916
+ };
917
+ };
918
+ required: string[];
919
+ };
920
+ };
921
+ };
922
+ required: string[];
923
+ };
924
+ };
925
+ };
926
+ };
927
+ };
928
+ };
929
+ };
930
+ }, import("better-auth").JSONWebKeySet>;
931
+ getToken: BetterCall.StrictEndpoint<"/token", {
932
+ method: "GET";
933
+ requireHeaders: true;
934
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
935
+ session: {
936
+ session: Record<string, any> & {
937
+ id: string;
938
+ createdAt: Date;
939
+ updatedAt: Date;
940
+ userId: string;
941
+ expiresAt: Date;
942
+ token: string;
943
+ ipAddress?: string | null | undefined;
944
+ userAgent?: string | null | undefined;
945
+ };
946
+ user: Record<string, any> & {
947
+ id: string;
948
+ createdAt: Date;
949
+ updatedAt: Date;
950
+ email: string;
951
+ emailVerified: boolean;
952
+ name: string;
953
+ image?: string | null | undefined;
954
+ };
955
+ };
956
+ }>>[];
957
+ metadata: {
958
+ openapi: {
959
+ operationId: string;
960
+ description: string;
961
+ responses: {
962
+ 200: {
963
+ description: string;
964
+ content: {
965
+ "application/json": {
966
+ schema: {
967
+ type: "object";
968
+ properties: {
969
+ token: {
970
+ type: string;
971
+ };
972
+ };
973
+ };
974
+ };
975
+ };
976
+ };
977
+ };
978
+ };
979
+ };
980
+ }, {
981
+ token: string;
982
+ }>;
983
+ signJWT: BetterCall.StrictEndpoint<string, {
984
+ method: "POST";
985
+ metadata: {
986
+ $Infer: {
987
+ body: {
988
+ payload: import("better-auth").JWTPayload;
989
+ overrideOptions?: import("better-auth/plugins").JwtOptions | undefined;
990
+ };
991
+ };
992
+ };
993
+ body: import("better-auth").ZodObject<{
994
+ payload: import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>;
995
+ overrideOptions: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
996
+ }, import("zod/v4/core").$strip>;
997
+ }, {
998
+ token: string;
999
+ }>;
1000
+ verifyJWT: BetterCall.StrictEndpoint<string, {
1001
+ method: "POST";
1002
+ metadata: {
1003
+ $Infer: {
1004
+ body: {
1005
+ token: string;
1006
+ issuer?: string;
1007
+ };
1008
+ response: {
1009
+ payload: {
1010
+ sub: string;
1011
+ aud: string;
1012
+ [key: string]: any;
1013
+ } | null;
1014
+ };
1015
+ };
1016
+ };
1017
+ body: import("better-auth").ZodObject<{
1018
+ token: import("better-auth").ZodString;
1019
+ issuer: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1020
+ }, import("zod/v4/core").$strip>;
1021
+ }, {
1022
+ payload: (import("better-auth").JWTPayload & Required<Pick<import("better-auth").JWTPayload, "sub" | "aud">>) | null;
1023
+ }>;
1024
+ };
1025
+ hooks: {
1026
+ after: {
1027
+ matcher(context: import("better-auth").HookEndpointContext): boolean;
1028
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>;
1029
+ }[];
1030
+ };
1031
+ schema: {
1032
+ jwks: {
1033
+ fields: {
1034
+ publicKey: {
1035
+ type: "string";
1036
+ required: true;
1037
+ };
1038
+ privateKey: {
1039
+ type: "string";
1040
+ required: true;
1041
+ };
1042
+ createdAt: {
1043
+ type: "date";
1044
+ required: true;
1045
+ };
1046
+ expiresAt: {
1047
+ type: "date";
1048
+ required: false;
1049
+ };
1050
+ alg: {
1051
+ type: "string";
1052
+ required: false;
1053
+ };
1054
+ crv: {
1055
+ type: "string";
1056
+ required: false;
1057
+ };
1058
+ };
1059
+ };
1060
+ };
1061
+ } | {
1062
+ id: "oauth-provider";
1063
+ version: string;
1064
+ options: NoInfer<{
1065
+ allowDynamicClientRegistration: false;
1066
+ cachedResources: Set<string>;
1067
+ cachedTrustedClients: Set<string> & {
1068
+ has: () => true;
1069
+ };
1070
+ clientRegistrationDefaultScopes: ("email" | "offline_access" | "openid" | "profile")[];
1071
+ consentPage: string;
1072
+ customIdTokenClaims: (info: {
1073
+ user: {
1074
+ id: string;
1075
+ createdAt: Date;
1076
+ updatedAt: Date;
1077
+ email: string;
1078
+ emailVerified: boolean;
1079
+ name: string;
1080
+ image?: string | null | undefined;
1081
+ } & Record<string, unknown>;
1082
+ scopes: import("@better-auth/oauth-provider").Scope[];
1083
+ metadata?: Record<string, any>;
1084
+ }) => {
1085
+ email: string;
1086
+ email_verified: boolean;
1087
+ } | {
1088
+ email?: never;
1089
+ email_verified?: never;
1090
+ };
1091
+ enforcePerClientResources: false;
1092
+ extensions: {
1093
+ clientDiscovery: ({
1094
+ id: string;
1095
+ fetchClientMetadataResource?: import("@better-auth/oauth-provider").ClientMetadataResourceFetch;
1096
+ discoveryMetadata?: Record<string, unknown>;
1097
+ matches: (clientId: string) => boolean;
1098
+ 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>;
1099
+ } | {
1100
+ id: string;
1101
+ matches: typeof Apps.originId;
1102
+ 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[]>>;
1103
+ })[];
1104
+ }[];
1105
+ loginPage: string;
1106
+ postLogin?: {
1107
+ consentReferenceId: () => undefined;
1108
+ page: string;
1109
+ shouldRedirect: (context: {
1110
+ headers: Headers;
1111
+ session: {
1112
+ id: string;
1113
+ };
1114
+ user: {
1115
+ id: string;
1116
+ };
1117
+ }) => Promise<boolean>;
1118
+ };
1119
+ customTokenResponseFields?: (info: {
1120
+ grantType: string;
1121
+ user?: {
1122
+ id: string;
1123
+ } | null | undefined;
1124
+ verificationValue?: {
1125
+ query: {
1126
+ client_id: string;
1127
+ code_challenge?: string | undefined;
1128
+ key_authorization?: unknown;
1129
+ };
1130
+ };
1131
+ }) => Promise<{
1132
+ account?: never;
1133
+ key_authorization?: never;
1134
+ } | {
1135
+ account: `0x${string}`;
1136
+ key_authorization: import("ox/tempo/KeyAuthorization").Rpc;
1137
+ }>;
1138
+ resources: {
1139
+ accessTokenTtl: number;
1140
+ identifier: string;
1141
+ name: string;
1142
+ }[];
1143
+ scopes: ("email" | "offline_access" | "openid" | "profile")[];
1144
+ storeClientSecret: {
1145
+ hash: typeof Apps.hashSecret;
1146
+ };
1147
+ }>;
1148
+ onRequest: (request: Request, ctx: import("better-auth").AuthContext) => Promise<{
1149
+ response: Response;
1150
+ } | {
1151
+ request: Request;
1152
+ } | void>;
1153
+ init: (ctx: import("better-auth").AuthContext) => Promise<{
1154
+ options: {
1155
+ databaseHooks: {
1156
+ session: {
1157
+ delete: {
1158
+ before(session: {
1159
+ id: string;
1160
+ createdAt: Date;
1161
+ updatedAt: Date;
1162
+ userId: string;
1163
+ expiresAt: Date;
1164
+ token: string;
1165
+ ipAddress?: string | null | undefined;
1166
+ userAgent?: string | null | undefined;
1167
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
1168
+ after(session: {
1169
+ id: string;
1170
+ createdAt: Date;
1171
+ updatedAt: Date;
1172
+ userId: string;
1173
+ expiresAt: Date;
1174
+ token: string;
1175
+ ipAddress?: string | null | undefined;
1176
+ userAgent?: string | null | undefined;
1177
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
1178
+ };
1179
+ };
1180
+ };
1181
+ };
1182
+ }>;
1183
+ hooks: {
1184
+ before: {
1185
+ matcher(ctx: import("better-auth").HookEndpointContext): any;
1186
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>;
1187
+ }[];
1188
+ after: {
1189
+ matcher(ctx: import("better-auth").HookEndpointContext): boolean;
1190
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
1191
+ redirect: true;
1192
+ url: string;
1193
+ } | undefined>>;
1194
+ }[];
1195
+ };
1196
+ endpoints: {
1197
+ getOAuthServerConfig: BetterCall.StrictEndpoint<"/.well-known/oauth-authorization-server", {
1198
+ method: "GET";
1199
+ metadata: {
1200
+ SERVER_ONLY: true;
1201
+ };
1202
+ }, import("@better-auth/oauth-provider").AuthServerMetadata>;
1203
+ getOpenIdConfig: BetterCall.StrictEndpoint<"/.well-known/openid-configuration", {
1204
+ method: "GET";
1205
+ metadata: {
1206
+ SERVER_ONLY: true;
1207
+ };
1208
+ }, {
1209
+ jwks_uri?: string | undefined;
1210
+ userinfo_endpoint: string;
1211
+ acr_values_supported?: string[] | undefined;
1212
+ subject_types_supported: ("public" | "pairwise")[];
1213
+ claims_supported: string[];
1214
+ claims_parameter_supported?: boolean | undefined;
1215
+ end_session_endpoint: string;
1216
+ request_parameter_supported?: boolean | undefined;
1217
+ request_uri_parameter_supported?: boolean | undefined;
1218
+ prompt_values_supported: import("@better-auth/oauth-provider").Prompt[];
1219
+ issuer: string;
1220
+ authorization_endpoint: string;
1221
+ token_endpoint: string;
1222
+ registration_endpoint?: string | undefined;
1223
+ scopes_supported?: string[] | undefined;
1224
+ response_types_supported: "code"[];
1225
+ response_modes_supported: "query"[];
1226
+ grant_types_supported: import("@better-auth/oauth-provider").GrantType[];
1227
+ token_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
1228
+ token_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
1229
+ service_documentation?: string | undefined;
1230
+ ui_locales_supported?: string[] | undefined;
1231
+ op_policy_uri?: string | undefined;
1232
+ op_tos_uri?: string | undefined;
1233
+ revocation_endpoint?: string | undefined;
1234
+ revocation_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
1235
+ revocation_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
1236
+ introspection_endpoint?: string | undefined;
1237
+ introspection_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
1238
+ introspection_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
1239
+ code_challenge_methods_supported: "S256"[];
1240
+ authorization_response_iss_parameter_supported?: boolean | undefined;
1241
+ client_id_metadata_document_supported?: boolean | undefined;
1242
+ backchannel_logout_supported?: boolean | undefined;
1243
+ backchannel_logout_session_supported?: boolean | undefined;
1244
+ dpop_signing_alg_values_supported?: import("better-auth/plugins").JWSAlgorithms[] | undefined;
1245
+ frontchannel_logout_supported?: boolean | undefined;
1246
+ frontchannel_logout_session_supported?: boolean | undefined;
1247
+ id_token_signing_alg_values_supported: import("better-auth/plugins").JWSAlgorithms[] | ["HS256"];
1248
+ }>;
1249
+ oauth2Authorize: BetterCall.StrictEndpoint<"/oauth2/authorize", {
1250
+ method: ("GET" | "POST")[];
1251
+ body: import("better-auth").ZodObject<{}, import("zod/v4/core").$loose>;
1252
+ redirectOnError: import("@better-auth/oauth-provider").OAuthRedirectOnError<import("better-auth").GenericEndpointContext, {
1253
+ redirect: true;
1254
+ url: string;
1255
+ }>;
1256
+ metadata: {
1257
+ allowedMediaTypes: string[];
1258
+ openapi: {
1259
+ description: string;
1260
+ parameters: ({
1261
+ name: string;
1262
+ in: "query";
1263
+ required: false;
1264
+ schema: {
1265
+ type: "string";
1266
+ format?: undefined;
1267
+ minimum?: undefined;
1268
+ items?: undefined;
1269
+ };
1270
+ description: string;
1271
+ } | {
1272
+ name: string;
1273
+ in: "query";
1274
+ required: false;
1275
+ schema: {
1276
+ type: "string";
1277
+ format: string;
1278
+ minimum?: undefined;
1279
+ items?: undefined;
1280
+ };
1281
+ description: string;
1282
+ } | {
1283
+ name: string;
1284
+ in: "query";
1285
+ required: false;
1286
+ schema: {
1287
+ type: "integer";
1288
+ minimum: number;
1289
+ format?: undefined;
1290
+ items?: undefined;
1291
+ };
1292
+ description: string;
1293
+ } | {
1294
+ name: string;
1295
+ in: "query";
1296
+ required: false;
1297
+ schema: {
1298
+ type: "array";
1299
+ items: {
1300
+ type: "string";
1301
+ };
1302
+ format?: undefined;
1303
+ minimum?: undefined;
1304
+ };
1305
+ description: string;
1306
+ })[];
1307
+ responses: {
1308
+ "302": {
1309
+ description: string;
1310
+ headers: {
1311
+ Location: {
1312
+ description: string;
1313
+ schema: {
1314
+ type: string;
1315
+ format: string;
1316
+ };
1317
+ };
1318
+ };
1319
+ };
1320
+ "400": {
1321
+ description: string;
1322
+ content: {
1323
+ "application/json": {
1324
+ schema: {
1325
+ type: "object";
1326
+ properties: {
1327
+ error: {
1328
+ type: string;
1329
+ };
1330
+ error_description: {
1331
+ type: string;
1332
+ };
1333
+ state: {
1334
+ type: string;
1335
+ };
1336
+ };
1337
+ required: string[];
1338
+ };
1339
+ };
1340
+ };
1341
+ };
1342
+ };
1343
+ };
1344
+ };
1345
+ }, {
1346
+ redirect: true;
1347
+ url: string;
1348
+ }>;
1349
+ oauth2Consent: BetterCall.StrictEndpoint<"/oauth2/consent", {
1350
+ method: "POST";
1351
+ body: import("better-auth").ZodObject<{
1352
+ accept: import("better-auth").ZodBoolean;
1353
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1354
+ claims: import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>]>>;
1355
+ reference_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1356
+ oauth_query: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1357
+ }, import("zod/v4/core").$strip>;
1358
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
1359
+ session: {
1360
+ session: Record<string, any> & {
1361
+ id: string;
1362
+ createdAt: Date;
1363
+ updatedAt: Date;
1364
+ userId: string;
1365
+ expiresAt: Date;
1366
+ token: string;
1367
+ ipAddress?: string | null | undefined;
1368
+ userAgent?: string | null | undefined;
1369
+ };
1370
+ user: Record<string, any> & {
1371
+ id: string;
1372
+ createdAt: Date;
1373
+ updatedAt: Date;
1374
+ email: string;
1375
+ emailVerified: boolean;
1376
+ name: string;
1377
+ image?: string | null | undefined;
1378
+ };
1379
+ };
1380
+ }>>[];
1381
+ metadata: {
1382
+ openapi: {
1383
+ description: string;
1384
+ responses: {
1385
+ "200": {
1386
+ description: string;
1387
+ content: {
1388
+ "application/json": {
1389
+ schema: {
1390
+ type: "object";
1391
+ properties: {
1392
+ redirect: {
1393
+ type: string;
1394
+ description: string;
1395
+ enum: boolean[];
1396
+ };
1397
+ url: {
1398
+ type: string;
1399
+ format: string;
1400
+ description: string;
1401
+ };
1402
+ };
1403
+ required: string[];
1404
+ };
1405
+ };
1406
+ };
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ }, {
1412
+ redirect: true;
1413
+ url: string;
1414
+ } | {
1415
+ redirect: boolean;
1416
+ url: string;
1417
+ }>;
1418
+ oauth2Continue: BetterCall.StrictEndpoint<"/oauth2/continue", {
1419
+ method: "POST";
1420
+ body: import("better-auth").ZodObject<{
1421
+ selected: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
1422
+ created: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
1423
+ postLogin: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
1424
+ oauth_query: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1425
+ }, import("zod/v4/core").$strip>;
1426
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
1427
+ session: {
1428
+ session: Record<string, any> & {
1429
+ id: string;
1430
+ createdAt: Date;
1431
+ updatedAt: Date;
1432
+ userId: string;
1433
+ expiresAt: Date;
1434
+ token: string;
1435
+ ipAddress?: string | null | undefined;
1436
+ userAgent?: string | null | undefined;
1437
+ };
1438
+ user: Record<string, any> & {
1439
+ id: string;
1440
+ createdAt: Date;
1441
+ updatedAt: Date;
1442
+ email: string;
1443
+ emailVerified: boolean;
1444
+ name: string;
1445
+ image?: string | null | undefined;
1446
+ };
1447
+ };
1448
+ }>>[];
1449
+ metadata: {
1450
+ openapi: {
1451
+ description: string;
1452
+ responses: {
1453
+ "200": {
1454
+ description: string;
1455
+ content: {
1456
+ "application/json": {
1457
+ schema: {
1458
+ type: "object";
1459
+ properties: {
1460
+ redirect: {
1461
+ type: string;
1462
+ description: string;
1463
+ enum: boolean[];
1464
+ };
1465
+ url: {
1466
+ type: string;
1467
+ format: string;
1468
+ description: string;
1469
+ };
1470
+ };
1471
+ required: string[];
1472
+ };
1473
+ };
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1479
+ }, {
1480
+ redirect: true;
1481
+ url: string;
1482
+ }>;
1483
+ oauth2Token: BetterCall.StrictEndpoint<"/oauth2/token", {
1484
+ method: "POST";
1485
+ formParams: {
1486
+ repeatable: string[];
1487
+ };
1488
+ body: import("better-auth").ZodObject<{
1489
+ grant_type: import("better-auth").ZodString;
1490
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1491
+ client_secret: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1492
+ client_assertion: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1493
+ client_assertion_type: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1494
+ code: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1495
+ code_verifier: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1496
+ redirect_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
1497
+ refresh_token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1498
+ resource: import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>]>>;
1499
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1500
+ }, import("zod/v4/core").$loose>;
1501
+ errorCodesByField: {
1502
+ grant_type: {
1503
+ missing: "invalid_request";
1504
+ invalid: "unsupported_grant_type";
1505
+ };
1506
+ resource: {
1507
+ invalid: "invalid_target";
1508
+ };
1509
+ };
1510
+ metadata: {
1511
+ noStore: boolean;
1512
+ allowedMediaTypes: string[];
1513
+ openapi: {
1514
+ description: string;
1515
+ parameters: {
1516
+ name: string;
1517
+ in: "header";
1518
+ required: false;
1519
+ schema: {
1520
+ type: "string";
1521
+ };
1522
+ description: string;
1523
+ }[];
1524
+ requestBody: {
1525
+ required: boolean;
1526
+ content: {
1527
+ "application/json": {
1528
+ schema: {
1529
+ type: "object";
1530
+ properties: {
1531
+ grant_type: {
1532
+ type: string;
1533
+ description: string;
1534
+ };
1535
+ client_id: {
1536
+ type: string;
1537
+ description: string;
1538
+ };
1539
+ client_secret: {
1540
+ type: string;
1541
+ description: string;
1542
+ };
1543
+ code: {
1544
+ type: string;
1545
+ description: string;
1546
+ };
1547
+ code_verifier: {
1548
+ type: string;
1549
+ description: string;
1550
+ };
1551
+ redirect_uri: {
1552
+ type: string;
1553
+ format: string;
1554
+ description: string;
1555
+ };
1556
+ refresh_token: {
1557
+ type: string;
1558
+ description: string;
1559
+ };
1560
+ resource: {
1561
+ oneOf: ({
1562
+ type: string;
1563
+ description: string;
1564
+ items?: undefined;
1565
+ } | {
1566
+ type: string;
1567
+ items: {
1568
+ type: string;
1569
+ };
1570
+ description: string;
1571
+ })[];
1572
+ description: string;
1573
+ };
1574
+ scope: {
1575
+ type: string;
1576
+ description: string;
1577
+ };
1578
+ };
1579
+ required: string[];
1580
+ };
1581
+ };
1582
+ };
1583
+ };
1584
+ responses: {
1585
+ "200": {
1586
+ description: string;
1587
+ content: {
1588
+ "application/json": {
1589
+ schema: {
1590
+ type: "object";
1591
+ properties: {
1592
+ access_token: {
1593
+ type: string;
1594
+ description: string;
1595
+ };
1596
+ token_type: {
1597
+ type: string;
1598
+ description: string;
1599
+ enum: string[];
1600
+ };
1601
+ expires_in: {
1602
+ type: string;
1603
+ description: string;
1604
+ };
1605
+ refresh_token: {
1606
+ type: string;
1607
+ description: string;
1608
+ };
1609
+ scope: {
1610
+ type: string;
1611
+ description: string;
1612
+ };
1613
+ id_token: {
1614
+ type: string;
1615
+ description: string;
1616
+ };
1617
+ };
1618
+ required: string[];
1619
+ };
1620
+ };
1621
+ };
1622
+ };
1623
+ "400": {
1624
+ description: string;
1625
+ content: {
1626
+ "application/json": {
1627
+ schema: {
1628
+ type: "object";
1629
+ properties: {
1630
+ error: {
1631
+ type: string;
1632
+ };
1633
+ error_description: {
1634
+ type: string;
1635
+ };
1636
+ error_uri: {
1637
+ type: string;
1638
+ };
1639
+ };
1640
+ required: string[];
1641
+ };
1642
+ };
1643
+ };
1644
+ };
1645
+ };
1646
+ };
1647
+ };
1648
+ }, {
1649
+ expires_in: number;
1650
+ access_token: string;
1651
+ expires_at: number;
1652
+ token_type: import("@better-auth/oauth-provider").TokenType;
1653
+ refresh_token: string | undefined;
1654
+ scope: string;
1655
+ id_token: string | undefined;
1656
+ }>;
1657
+ oauth2Introspect: BetterCall.StrictEndpoint<"/oauth2/introspect", {
1658
+ method: "POST";
1659
+ formParams: {};
1660
+ body: import("better-auth").ZodObject<{
1661
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1662
+ client_secret: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1663
+ client_assertion: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1664
+ client_assertion_type: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1665
+ token: import("better-auth").ZodString;
1666
+ token_type_hint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1667
+ }, import("zod/v4/core").$strip>;
1668
+ metadata: {
1669
+ noStore: boolean;
1670
+ allowedMediaTypes: string[];
1671
+ openapi: {
1672
+ description: string;
1673
+ requestBody: {
1674
+ required: boolean;
1675
+ content: {
1676
+ "application/json": {
1677
+ schema: {
1678
+ type: "object";
1679
+ properties: {
1680
+ client_id: {
1681
+ type: string;
1682
+ description: string;
1683
+ };
1684
+ client_secret: {
1685
+ type: string;
1686
+ description: string;
1687
+ };
1688
+ token: {
1689
+ type: string;
1690
+ description: string;
1691
+ };
1692
+ token_type_hint: {
1693
+ type: string;
1694
+ description: string;
1695
+ };
1696
+ };
1697
+ required: string[];
1698
+ };
1699
+ };
1700
+ };
1701
+ };
1702
+ responses: {
1703
+ "200": {
1704
+ description: string;
1705
+ content: {
1706
+ "application/json": {
1707
+ schema: {
1708
+ type: "object";
1709
+ properties: {
1710
+ active: {
1711
+ type: string;
1712
+ description: string;
1713
+ };
1714
+ scope: {
1715
+ type: string;
1716
+ description: string;
1717
+ };
1718
+ client_id: {
1719
+ type: string;
1720
+ description: string;
1721
+ };
1722
+ username: {
1723
+ type: string;
1724
+ description: string;
1725
+ };
1726
+ token_type: {
1727
+ type: string;
1728
+ description: string;
1729
+ };
1730
+ exp: {
1731
+ type: string;
1732
+ description: string;
1733
+ };
1734
+ iat: {
1735
+ type: string;
1736
+ description: string;
1737
+ };
1738
+ nbf: {
1739
+ type: string;
1740
+ description: string;
1741
+ };
1742
+ sub: {
1743
+ type: string;
1744
+ description: string;
1745
+ };
1746
+ aud: {
1747
+ type: string;
1748
+ description: string;
1749
+ };
1750
+ iss: {
1751
+ type: string;
1752
+ description: string;
1753
+ };
1754
+ jti: {
1755
+ type: string;
1756
+ description: string;
1757
+ };
1758
+ };
1759
+ required: string[];
1760
+ };
1761
+ };
1762
+ };
1763
+ };
1764
+ "400": {
1765
+ description: string;
1766
+ content: {
1767
+ "application/json": {
1768
+ schema: {
1769
+ type: "object";
1770
+ properties: {
1771
+ error: {
1772
+ type: string;
1773
+ };
1774
+ error_description: {
1775
+ type: string;
1776
+ };
1777
+ error_uri: {
1778
+ type: string;
1779
+ };
1780
+ };
1781
+ required: string[];
1782
+ };
1783
+ };
1784
+ };
1785
+ };
1786
+ };
1787
+ };
1788
+ };
1789
+ }, import("better-auth").JWTPayload>;
1790
+ oauth2Revoke: BetterCall.StrictEndpoint<"/oauth2/revoke", {
1791
+ method: "POST";
1792
+ formParams: {};
1793
+ body: import("better-auth").ZodObject<{
1794
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1795
+ client_secret: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1796
+ client_assertion: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1797
+ client_assertion_type: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1798
+ token: import("better-auth").ZodString;
1799
+ token_type_hint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1800
+ }, import("zod/v4/core").$strip>;
1801
+ metadata: {
1802
+ allowedMediaTypes: string[];
1803
+ openapi: {
1804
+ description: string;
1805
+ requestBody: {
1806
+ required: boolean;
1807
+ content: {
1808
+ "application/json": {
1809
+ schema: {
1810
+ type: "object";
1811
+ properties: {
1812
+ client_id: {
1813
+ type: string;
1814
+ description: string;
1815
+ };
1816
+ client_secret: {
1817
+ type: string;
1818
+ description: string;
1819
+ };
1820
+ token: {
1821
+ type: string;
1822
+ description: string;
1823
+ };
1824
+ token_type_hint: {
1825
+ type: string;
1826
+ description: string;
1827
+ };
1828
+ };
1829
+ required: string[];
1830
+ };
1831
+ };
1832
+ };
1833
+ };
1834
+ responses: {
1835
+ "200": {
1836
+ description: string;
1837
+ content: {
1838
+ "application/json": {
1839
+ schema: {
1840
+ type: "object";
1841
+ description: string;
1842
+ };
1843
+ };
1844
+ };
1845
+ };
1846
+ "400": {
1847
+ description: string;
1848
+ content: {
1849
+ "application/json": {
1850
+ schema: {
1851
+ type: "object";
1852
+ properties: {
1853
+ error: {
1854
+ type: string;
1855
+ };
1856
+ error_description: {
1857
+ type: string;
1858
+ };
1859
+ error_uri: {
1860
+ type: string;
1861
+ };
1862
+ };
1863
+ required: string[];
1864
+ };
1865
+ };
1866
+ };
1867
+ };
1868
+ };
1869
+ };
1870
+ };
1871
+ }, null>;
1872
+ oauth2UserInfo: BetterCall.StrictEndpoint<"/oauth2/userinfo", {
1873
+ method: ("GET" | "POST")[];
1874
+ body: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
1875
+ access_token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1876
+ }, import("zod/v4/core").$loose>>;
1877
+ metadata: {
1878
+ noStore: boolean;
1879
+ allowedMediaTypes: string[];
1880
+ openapi: {
1881
+ description: string;
1882
+ security: ({
1883
+ bearerAuth: never[];
1884
+ OAuth2?: undefined;
1885
+ } | {
1886
+ OAuth2: string[];
1887
+ bearerAuth?: undefined;
1888
+ })[];
1889
+ parameters: {
1890
+ name: string;
1891
+ in: "header";
1892
+ required: false;
1893
+ schema: {
1894
+ type: "string";
1895
+ };
1896
+ description: string;
1897
+ }[];
1898
+ responses: {
1899
+ "200": {
1900
+ description: string;
1901
+ content: {
1902
+ "application/json": {
1903
+ schema: {
1904
+ type: "object";
1905
+ properties: {
1906
+ sub: {
1907
+ type: string;
1908
+ description: string;
1909
+ };
1910
+ email: {
1911
+ type: string;
1912
+ format: string;
1913
+ nullable: boolean;
1914
+ description: string;
1915
+ };
1916
+ name: {
1917
+ type: string;
1918
+ nullable: boolean;
1919
+ description: string;
1920
+ };
1921
+ picture: {
1922
+ type: string;
1923
+ format: string;
1924
+ nullable: boolean;
1925
+ description: string;
1926
+ };
1927
+ given_name: {
1928
+ type: string;
1929
+ nullable: boolean;
1930
+ description: string;
1931
+ };
1932
+ family_name: {
1933
+ type: string;
1934
+ nullable: boolean;
1935
+ description: string;
1936
+ };
1937
+ email_verified: {
1938
+ type: string;
1939
+ nullable: boolean;
1940
+ description: string;
1941
+ };
1942
+ };
1943
+ required: string[];
1944
+ };
1945
+ };
1946
+ };
1947
+ };
1948
+ "401": {
1949
+ description: string;
1950
+ content: {
1951
+ "application/json": {
1952
+ schema: {
1953
+ type: "object";
1954
+ properties: {
1955
+ error: {
1956
+ type: string;
1957
+ };
1958
+ error_description: {
1959
+ type: string;
1960
+ };
1961
+ };
1962
+ required: string[];
1963
+ };
1964
+ };
1965
+ };
1966
+ };
1967
+ "403": {
1968
+ description: string;
1969
+ content: {
1970
+ "application/json": {
1971
+ schema: {
1972
+ type: "object";
1973
+ properties: {
1974
+ error: {
1975
+ type: string;
1976
+ };
1977
+ error_description: {
1978
+ type: string;
1979
+ };
1980
+ };
1981
+ required: string[];
1982
+ };
1983
+ };
1984
+ };
1985
+ };
1986
+ };
1987
+ };
1988
+ };
1989
+ }, {
1990
+ sub: unknown;
1991
+ }>;
1992
+ oauth2EndSession: BetterCall.StrictEndpoint<"/oauth2/end-session", {
1993
+ method: ("GET" | "POST")[];
1994
+ body: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
1995
+ id_token_hint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1996
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1997
+ post_logout_redirect_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
1998
+ state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1999
+ }, import("zod/v4/core").$strip>>;
2000
+ query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
2001
+ id_token_hint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2002
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2003
+ post_logout_redirect_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2004
+ state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2005
+ }, import("zod/v4/core").$strip>>;
2006
+ metadata: {
2007
+ noStore: boolean;
2008
+ allowedMediaTypes: string[];
2009
+ $Infer: {
2010
+ body: {
2011
+ id_token_hint?: string;
2012
+ client_id?: string;
2013
+ post_logout_redirect_uri?: string;
2014
+ state?: string;
2015
+ } | {
2016
+ query: {
2017
+ id_token_hint?: string;
2018
+ client_id?: string;
2019
+ post_logout_redirect_uri?: string;
2020
+ state?: string;
2021
+ };
2022
+ };
2023
+ query: {
2024
+ id_token_hint?: string;
2025
+ client_id?: string;
2026
+ post_logout_redirect_uri?: string;
2027
+ state?: string;
2028
+ };
2029
+ };
2030
+ openapi: {
2031
+ description: string;
2032
+ responses: {
2033
+ "200": {
2034
+ description: string;
2035
+ content: {
2036
+ "application/json": {
2037
+ schema: {
2038
+ type: "object";
2039
+ properties: {
2040
+ redirect_uri: {
2041
+ type: string;
2042
+ format: string;
2043
+ description: string;
2044
+ };
2045
+ message: {
2046
+ type: string;
2047
+ description: string;
2048
+ };
2049
+ };
2050
+ };
2051
+ };
2052
+ "text/html": {
2053
+ schema: {
2054
+ type: "string";
2055
+ description: string;
2056
+ };
2057
+ };
2058
+ };
2059
+ };
2060
+ };
2061
+ };
2062
+ };
2063
+ }, Response | {
2064
+ redirect: true;
2065
+ url: string;
2066
+ } | null>;
2067
+ oauth2EndSessionConfirmation: BetterCall.StrictEndpoint<"/oauth2/end-session/confirm", {
2068
+ method: "POST";
2069
+ body: import("better-auth").ZodObject<{
2070
+ action: import("better-auth").ZodLiteral<"confirm">;
2071
+ }, import("zod/v4/core").$strip>;
2072
+ metadata: {
2073
+ noStore: boolean;
2074
+ allowedMediaTypes: string[];
2075
+ scope: "http";
2076
+ };
2077
+ }, Response | {
2078
+ redirect: true;
2079
+ url: string;
2080
+ } | null>;
2081
+ registerOAuthClient: BetterCall.StrictEndpoint<"/oauth2/register", {
2082
+ method: "POST";
2083
+ body: import("better-auth").ZodObject<{
2084
+ redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2085
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2086
+ client_name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2087
+ client_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2088
+ logo_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2089
+ contacts: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2090
+ tos_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2091
+ policy_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2092
+ software_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2093
+ software_version: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2094
+ software_statement: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2095
+ post_logout_redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2096
+ backchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2097
+ backchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2098
+ frontchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2099
+ frontchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2100
+ token_endpoint_auth_method: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2101
+ jwks: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
2102
+ keys: import("better-auth").ZodArray<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2103
+ }, import("zod/v4/core").$strip>>;
2104
+ jwks_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2105
+ grant_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2106
+ response_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodEnum<{
2107
+ code: "code";
2108
+ }>>>;
2109
+ application_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2110
+ web: "web";
2111
+ native: "native";
2112
+ }>>;
2113
+ subject_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2114
+ public: "public";
2115
+ pairwise: "pairwise";
2116
+ }>>;
2117
+ dpop_bound_access_tokens: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2118
+ resources: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2119
+ skip_consent: import("better-auth").ZodOptional<import("better-auth").ZodNever>;
2120
+ }, import("zod/v4/core").$strip>;
2121
+ errorCodesByField: {
2122
+ redirect_uris: "invalid_redirect_uri";
2123
+ post_logout_redirect_uris: "invalid_redirect_uri";
2124
+ software_statement: "invalid_software_statement";
2125
+ resources: "invalid_target";
2126
+ };
2127
+ defaultError: "invalid_client_metadata";
2128
+ metadata: {
2129
+ noStore: boolean;
2130
+ openapi: {
2131
+ description: string;
2132
+ responses: {
2133
+ "201": {
2134
+ description: string;
2135
+ content: {
2136
+ "application/json": {
2137
+ schema: {
2138
+ type: "object";
2139
+ properties: {
2140
+ client_id: {
2141
+ type: string;
2142
+ description: string;
2143
+ };
2144
+ client_secret: {
2145
+ type: string;
2146
+ description: string;
2147
+ };
2148
+ client_secret_expires_at: {
2149
+ type: string;
2150
+ description: string;
2151
+ };
2152
+ scope: {
2153
+ type: string;
2154
+ description: string;
2155
+ };
2156
+ user_id: {
2157
+ type: string;
2158
+ description: string;
2159
+ };
2160
+ client_id_issued_at: {
2161
+ type: string;
2162
+ description: string;
2163
+ };
2164
+ client_name: {
2165
+ type: string;
2166
+ description: string;
2167
+ };
2168
+ client_uri: {
2169
+ type: string;
2170
+ description: string;
2171
+ };
2172
+ logo_uri: {
2173
+ type: string;
2174
+ description: string;
2175
+ };
2176
+ contacts: {
2177
+ type: string;
2178
+ items: {
2179
+ type: string;
2180
+ };
2181
+ description: string;
2182
+ };
2183
+ tos_uri: {
2184
+ type: string;
2185
+ description: string;
2186
+ };
2187
+ policy_uri: {
2188
+ type: string;
2189
+ description: string;
2190
+ };
2191
+ software_id: {
2192
+ type: string;
2193
+ description: string;
2194
+ };
2195
+ software_version: {
2196
+ type: string;
2197
+ description: string;
2198
+ };
2199
+ software_statement: {
2200
+ type: string;
2201
+ description: string;
2202
+ };
2203
+ redirect_uris: {
2204
+ type: string;
2205
+ items: {
2206
+ type: string;
2207
+ format: string;
2208
+ };
2209
+ description: string;
2210
+ };
2211
+ post_logout_redirect_uris: {
2212
+ type: string;
2213
+ items: {
2214
+ type: string;
2215
+ format: string;
2216
+ };
2217
+ description: string;
2218
+ };
2219
+ backchannel_logout_uri: {
2220
+ type: string;
2221
+ format: string;
2222
+ description: string;
2223
+ };
2224
+ backchannel_logout_session_required: {
2225
+ type: string;
2226
+ description: string;
2227
+ };
2228
+ frontchannel_logout_uri: {
2229
+ type: string;
2230
+ format: string;
2231
+ description: string;
2232
+ };
2233
+ frontchannel_logout_session_required: {
2234
+ type: string;
2235
+ description: string;
2236
+ };
2237
+ token_endpoint_auth_method: {
2238
+ type: string;
2239
+ description: string;
2240
+ };
2241
+ grant_types: {
2242
+ type: string;
2243
+ items: {
2244
+ type: string;
2245
+ };
2246
+ description: string;
2247
+ };
2248
+ response_types: {
2249
+ type: string;
2250
+ items: {
2251
+ type: string;
2252
+ enum: string[];
2253
+ };
2254
+ description: string;
2255
+ };
2256
+ application_type: {
2257
+ type: string;
2258
+ description: string;
2259
+ enum: string[];
2260
+ };
2261
+ resources: {
2262
+ type: string;
2263
+ items: {
2264
+ type: string;
2265
+ format: string;
2266
+ };
2267
+ description: string;
2268
+ };
2269
+ disabled: {
2270
+ type: string;
2271
+ description: string;
2272
+ };
2273
+ };
2274
+ required: string[];
2275
+ };
2276
+ };
2277
+ };
2278
+ };
2279
+ };
2280
+ };
2281
+ };
2282
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
2283
+ adminCreateOAuthClient: BetterCall.StrictEndpoint<"/admin/oauth2/create-client", {
2284
+ method: "POST";
2285
+ body: import("better-auth").ZodObject<{
2286
+ redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2287
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2288
+ client_name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2289
+ client_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2290
+ logo_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2291
+ contacts: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2292
+ tos_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2293
+ policy_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2294
+ software_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2295
+ software_version: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2296
+ software_statement: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2297
+ post_logout_redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2298
+ backchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2299
+ backchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2300
+ frontchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2301
+ frontchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2302
+ token_endpoint_auth_method: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2303
+ application_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2304
+ web: "web";
2305
+ native: "native";
2306
+ }>>;
2307
+ jwks: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
2308
+ keys: import("better-auth").ZodArray<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2309
+ }, import("zod/v4/core").$strip>>;
2310
+ jwks_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2311
+ grant_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2312
+ client_credentials_scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2313
+ resources: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2314
+ response_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodEnum<{
2315
+ code: "code";
2316
+ }>>>;
2317
+ client_secret_expires_at: import("better-auth").ZodDefault<import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodNumber]>>>;
2318
+ skip_consent: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2319
+ enable_end_session: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2320
+ require_pkce: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2321
+ dpop_bound_access_tokens: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2322
+ subject_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2323
+ public: "public";
2324
+ pairwise: "pairwise";
2325
+ }>>;
2326
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2327
+ }, import("zod/v4/core").$strip>;
2328
+ metadata: {
2329
+ noStore: boolean;
2330
+ SERVER_ONLY: true;
2331
+ openapi: {
2332
+ description: string;
2333
+ responses: {
2334
+ "201": {
2335
+ description: string;
2336
+ content: {
2337
+ "application/json": {
2338
+ schema: {
2339
+ type: "object";
2340
+ properties: {
2341
+ client_id: {
2342
+ type: string;
2343
+ description: string;
2344
+ };
2345
+ client_secret: {
2346
+ type: string;
2347
+ description: string;
2348
+ };
2349
+ client_secret_expires_at: {
2350
+ type: string;
2351
+ description: string;
2352
+ };
2353
+ scope: {
2354
+ type: string;
2355
+ description: string;
2356
+ };
2357
+ client_credentials_scopes: {
2358
+ type: string;
2359
+ items: {
2360
+ type: string;
2361
+ };
2362
+ description: string;
2363
+ };
2364
+ user_id: {
2365
+ type: string;
2366
+ description: string;
2367
+ };
2368
+ client_id_issued_at: {
2369
+ type: string;
2370
+ description: string;
2371
+ };
2372
+ client_name: {
2373
+ type: string;
2374
+ description: string;
2375
+ };
2376
+ client_uri: {
2377
+ type: string;
2378
+ description: string;
2379
+ };
2380
+ logo_uri: {
2381
+ type: string;
2382
+ description: string;
2383
+ };
2384
+ contacts: {
2385
+ type: string;
2386
+ items: {
2387
+ type: string;
2388
+ };
2389
+ description: string;
2390
+ };
2391
+ tos_uri: {
2392
+ type: string;
2393
+ description: string;
2394
+ };
2395
+ policy_uri: {
2396
+ type: string;
2397
+ description: string;
2398
+ };
2399
+ software_id: {
2400
+ type: string;
2401
+ description: string;
2402
+ };
2403
+ software_version: {
2404
+ type: string;
2405
+ description: string;
2406
+ };
2407
+ software_statement: {
2408
+ type: string;
2409
+ description: string;
2410
+ };
2411
+ redirect_uris: {
2412
+ type: string;
2413
+ items: {
2414
+ type: string;
2415
+ format: string;
2416
+ };
2417
+ description: string;
2418
+ };
2419
+ token_endpoint_auth_method: {
2420
+ type: string;
2421
+ description: string;
2422
+ };
2423
+ grant_types: {
2424
+ type: string;
2425
+ items: {
2426
+ type: string;
2427
+ };
2428
+ description: string;
2429
+ };
2430
+ response_types: {
2431
+ type: string;
2432
+ items: {
2433
+ type: string;
2434
+ enum: string[];
2435
+ };
2436
+ description: string;
2437
+ };
2438
+ application_type: {
2439
+ type: string;
2440
+ description: string;
2441
+ enum: string[];
2442
+ };
2443
+ resources: {
2444
+ type: string;
2445
+ items: {
2446
+ type: string;
2447
+ format: string;
2448
+ };
2449
+ description: string;
2450
+ };
2451
+ disabled: {
2452
+ type: string;
2453
+ description: string;
2454
+ };
2455
+ require_pkce: {
2456
+ type: string;
2457
+ description: string;
2458
+ default: boolean;
2459
+ };
2460
+ metadata: {
2461
+ type: string;
2462
+ additionalProperties: boolean;
2463
+ nullable: boolean;
2464
+ description: string;
2465
+ };
2466
+ };
2467
+ required: string[];
2468
+ };
2469
+ };
2470
+ };
2471
+ };
2472
+ };
2473
+ };
2474
+ };
2475
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
2476
+ createOAuthClient: BetterCall.StrictEndpoint<"/oauth2/create-client", {
2477
+ method: "POST";
2478
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2479
+ session: {
2480
+ session: Record<string, any> & {
2481
+ id: string;
2482
+ createdAt: Date;
2483
+ updatedAt: Date;
2484
+ userId: string;
2485
+ expiresAt: Date;
2486
+ token: string;
2487
+ ipAddress?: string | null | undefined;
2488
+ userAgent?: string | null | undefined;
2489
+ };
2490
+ user: Record<string, any> & {
2491
+ id: string;
2492
+ createdAt: Date;
2493
+ updatedAt: Date;
2494
+ email: string;
2495
+ emailVerified: boolean;
2496
+ name: string;
2497
+ image?: string | null | undefined;
2498
+ };
2499
+ };
2500
+ }>>[];
2501
+ body: import("better-auth").ZodObject<{
2502
+ redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2503
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2504
+ client_name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2505
+ client_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2506
+ logo_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2507
+ contacts: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2508
+ tos_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2509
+ policy_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2510
+ software_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2511
+ software_version: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2512
+ software_statement: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2513
+ post_logout_redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2514
+ backchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2515
+ backchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2516
+ frontchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodURL>;
2517
+ frontchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2518
+ token_endpoint_auth_method: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2519
+ application_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2520
+ web: "web";
2521
+ native: "native";
2522
+ }>>;
2523
+ jwks: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
2524
+ keys: import("better-auth").ZodArray<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2525
+ }, import("zod/v4/core").$strip>>;
2526
+ jwks_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2527
+ grant_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2528
+ response_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodEnum<{
2529
+ code: "code";
2530
+ }>>>;
2531
+ dpop_bound_access_tokens: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2532
+ }, import("zod/v4/core").$strip>;
2533
+ metadata: {
2534
+ noStore: boolean;
2535
+ openapi: {
2536
+ description: string;
2537
+ responses: {
2538
+ "201": {
2539
+ description: string;
2540
+ content: {
2541
+ "application/json": {
2542
+ schema: {
2543
+ type: "object";
2544
+ properties: {
2545
+ client_id: {
2546
+ type: string;
2547
+ description: string;
2548
+ };
2549
+ client_secret: {
2550
+ type: string;
2551
+ description: string;
2552
+ };
2553
+ client_secret_expires_at: {
2554
+ type: string;
2555
+ description: string;
2556
+ };
2557
+ scope: {
2558
+ type: string;
2559
+ description: string;
2560
+ };
2561
+ user_id: {
2562
+ type: string;
2563
+ description: string;
2564
+ };
2565
+ client_id_issued_at: {
2566
+ type: string;
2567
+ description: string;
2568
+ };
2569
+ client_name: {
2570
+ type: string;
2571
+ description: string;
2572
+ };
2573
+ client_uri: {
2574
+ type: string;
2575
+ description: string;
2576
+ };
2577
+ logo_uri: {
2578
+ type: string;
2579
+ description: string;
2580
+ };
2581
+ contacts: {
2582
+ type: string;
2583
+ items: {
2584
+ type: string;
2585
+ };
2586
+ description: string;
2587
+ };
2588
+ tos_uri: {
2589
+ type: string;
2590
+ description: string;
2591
+ };
2592
+ policy_uri: {
2593
+ type: string;
2594
+ description: string;
2595
+ };
2596
+ software_id: {
2597
+ type: string;
2598
+ description: string;
2599
+ };
2600
+ software_version: {
2601
+ type: string;
2602
+ description: string;
2603
+ };
2604
+ software_statement: {
2605
+ type: string;
2606
+ description: string;
2607
+ };
2608
+ redirect_uris: {
2609
+ type: string;
2610
+ items: {
2611
+ type: string;
2612
+ format: string;
2613
+ };
2614
+ description: string;
2615
+ };
2616
+ token_endpoint_auth_method: {
2617
+ type: string;
2618
+ description: string;
2619
+ };
2620
+ grant_types: {
2621
+ type: string;
2622
+ items: {
2623
+ type: string;
2624
+ };
2625
+ description: string;
2626
+ };
2627
+ response_types: {
2628
+ type: string;
2629
+ items: {
2630
+ type: string;
2631
+ enum: string[];
2632
+ };
2633
+ description: string;
2634
+ };
2635
+ application_type: {
2636
+ type: string;
2637
+ description: string;
2638
+ enum: string[];
2639
+ };
2640
+ resources: {
2641
+ type: string;
2642
+ items: {
2643
+ type: string;
2644
+ format: string;
2645
+ };
2646
+ description: string;
2647
+ };
2648
+ disabled: {
2649
+ type: string;
2650
+ description: string;
2651
+ };
2652
+ metadata: {
2653
+ type: string;
2654
+ additionalProperties: boolean;
2655
+ nullable: boolean;
2656
+ description: string;
2657
+ };
2658
+ };
2659
+ required: string[];
2660
+ };
2661
+ };
2662
+ };
2663
+ };
2664
+ };
2665
+ };
2666
+ };
2667
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
2668
+ getOAuthClient: BetterCall.StrictEndpoint<"/oauth2/get-client", {
2669
+ method: "GET";
2670
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2671
+ session: {
2672
+ session: Record<string, any> & {
2673
+ id: string;
2674
+ createdAt: Date;
2675
+ updatedAt: Date;
2676
+ userId: string;
2677
+ expiresAt: Date;
2678
+ token: string;
2679
+ ipAddress?: string | null | undefined;
2680
+ userAgent?: string | null | undefined;
2681
+ };
2682
+ user: Record<string, any> & {
2683
+ id: string;
2684
+ createdAt: Date;
2685
+ updatedAt: Date;
2686
+ email: string;
2687
+ emailVerified: boolean;
2688
+ name: string;
2689
+ image?: string | null | undefined;
2690
+ };
2691
+ };
2692
+ }>>[];
2693
+ query: import("better-auth").ZodObject<{
2694
+ client_id: import("better-auth").ZodString;
2695
+ }, import("zod/v4/core").$strip>;
2696
+ metadata: {
2697
+ openapi: {
2698
+ description: string;
2699
+ };
2700
+ };
2701
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2702
+ getOAuthClientPublic: BetterCall.StrictEndpoint<"/oauth2/public-client", {
2703
+ method: "GET";
2704
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2705
+ session: {
2706
+ session: Record<string, any> & {
2707
+ id: string;
2708
+ createdAt: Date;
2709
+ updatedAt: Date;
2710
+ userId: string;
2711
+ expiresAt: Date;
2712
+ token: string;
2713
+ ipAddress?: string | null | undefined;
2714
+ userAgent?: string | null | undefined;
2715
+ };
2716
+ user: Record<string, any> & {
2717
+ id: string;
2718
+ createdAt: Date;
2719
+ updatedAt: Date;
2720
+ email: string;
2721
+ emailVerified: boolean;
2722
+ name: string;
2723
+ image?: string | null | undefined;
2724
+ };
2725
+ };
2726
+ }>>[];
2727
+ query: import("better-auth").ZodObject<{
2728
+ client_id: import("better-auth").ZodString;
2729
+ }, import("zod/v4/core").$strip>;
2730
+ metadata: {
2731
+ openapi: {
2732
+ description: string;
2733
+ };
2734
+ };
2735
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2736
+ getOAuthClientPublicPrelogin: BetterCall.StrictEndpoint<"/oauth2/public-client-prelogin", {
2737
+ method: "POST";
2738
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>[];
2739
+ body: import("better-auth").ZodObject<{
2740
+ client_id: import("better-auth").ZodString;
2741
+ oauth_query: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2742
+ }, import("zod/v4/core").$strip>;
2743
+ metadata: {
2744
+ openapi: {
2745
+ description: string;
2746
+ };
2747
+ };
2748
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2749
+ getOAuthClients: BetterCall.StrictEndpoint<"/oauth2/get-clients", {
2750
+ method: "GET";
2751
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2752
+ session: {
2753
+ session: Record<string, any> & {
2754
+ id: string;
2755
+ createdAt: Date;
2756
+ updatedAt: Date;
2757
+ userId: string;
2758
+ expiresAt: Date;
2759
+ token: string;
2760
+ ipAddress?: string | null | undefined;
2761
+ userAgent?: string | null | undefined;
2762
+ };
2763
+ user: Record<string, any> & {
2764
+ id: string;
2765
+ createdAt: Date;
2766
+ updatedAt: Date;
2767
+ email: string;
2768
+ emailVerified: boolean;
2769
+ name: string;
2770
+ image?: string | null | undefined;
2771
+ };
2772
+ };
2773
+ }>>[];
2774
+ metadata: {
2775
+ openapi: {
2776
+ description: string;
2777
+ };
2778
+ };
2779
+ }, import("@better-auth/oauth-provider").OAuthClient[] | null>;
2780
+ adminUpdateOAuthClient: BetterCall.StrictEndpoint<"/admin/oauth2/update-client", {
2781
+ method: "PATCH";
2782
+ body: import("better-auth").ZodObject<{
2783
+ client_id: import("better-auth").ZodString;
2784
+ update: import("better-auth").ZodObject<{
2785
+ redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2786
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2787
+ client_name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2788
+ client_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2789
+ logo_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2790
+ contacts: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2791
+ tos_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2792
+ policy_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2793
+ software_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2794
+ software_version: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2795
+ software_statement: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2796
+ post_logout_redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2797
+ backchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodURL>>;
2798
+ backchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2799
+ frontchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodURL>>;
2800
+ frontchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2801
+ application_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2802
+ web: "web";
2803
+ native: "native";
2804
+ }>>;
2805
+ grant_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2806
+ client_credentials_scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2807
+ response_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodEnum<{
2808
+ code: "code";
2809
+ }>>>;
2810
+ client_secret_expires_at: import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodNumber]>>;
2811
+ skip_consent: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2812
+ enable_end_session: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2813
+ disabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2814
+ dpop_bound_access_tokens: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2815
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2816
+ }, import("zod/v4/core").$strip>;
2817
+ }, import("zod/v4/core").$strip>;
2818
+ metadata: {
2819
+ SERVER_ONLY: true;
2820
+ openapi: {
2821
+ description: string;
2822
+ };
2823
+ };
2824
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
2825
+ updateOAuthClient: BetterCall.StrictEndpoint<"/oauth2/update-client", {
2826
+ method: "POST";
2827
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2828
+ session: {
2829
+ session: Record<string, any> & {
2830
+ id: string;
2831
+ createdAt: Date;
2832
+ updatedAt: Date;
2833
+ userId: string;
2834
+ expiresAt: Date;
2835
+ token: string;
2836
+ ipAddress?: string | null | undefined;
2837
+ userAgent?: string | null | undefined;
2838
+ };
2839
+ user: Record<string, any> & {
2840
+ id: string;
2841
+ createdAt: Date;
2842
+ updatedAt: Date;
2843
+ email: string;
2844
+ emailVerified: boolean;
2845
+ name: string;
2846
+ image?: string | null | undefined;
2847
+ };
2848
+ };
2849
+ }>>[];
2850
+ body: import("better-auth").ZodObject<{
2851
+ client_id: import("better-auth").ZodString;
2852
+ update: import("better-auth").ZodObject<{
2853
+ redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2854
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2855
+ client_name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2856
+ client_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2857
+ logo_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2858
+ contacts: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2859
+ tos_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2860
+ policy_uri: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2861
+ software_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2862
+ software_version: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2863
+ software_statement: import("better-auth").ZodOptional<import("better-auth").ZodString>;
2864
+ post_logout_redirect_uris: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodURL>>;
2865
+ backchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodURL>>;
2866
+ backchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2867
+ frontchannel_logout_uri: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodURL>>;
2868
+ frontchannel_logout_session_required: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
2869
+ application_type: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
2870
+ web: "web";
2871
+ native: "native";
2872
+ }>>;
2873
+ grant_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
2874
+ response_types: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodEnum<{
2875
+ code: "code";
2876
+ }>>>;
2877
+ }, import("zod/v4/core").$strip>;
2878
+ }, import("zod/v4/core").$strip>;
2879
+ metadata: {
2880
+ openapi: {
2881
+ description: string;
2882
+ };
2883
+ };
2884
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
2885
+ rotateClientSecret: BetterCall.StrictEndpoint<"/oauth2/client/rotate-secret", {
2886
+ method: "POST";
2887
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2888
+ session: {
2889
+ session: Record<string, any> & {
2890
+ id: string;
2891
+ createdAt: Date;
2892
+ updatedAt: Date;
2893
+ userId: string;
2894
+ expiresAt: Date;
2895
+ token: string;
2896
+ ipAddress?: string | null | undefined;
2897
+ userAgent?: string | null | undefined;
2898
+ };
2899
+ user: Record<string, any> & {
2900
+ id: string;
2901
+ createdAt: Date;
2902
+ updatedAt: Date;
2903
+ email: string;
2904
+ emailVerified: boolean;
2905
+ name: string;
2906
+ image?: string | null | undefined;
2907
+ };
2908
+ };
2909
+ }>>[];
2910
+ body: import("better-auth").ZodObject<{
2911
+ client_id: import("better-auth").ZodString;
2912
+ }, import("zod/v4/core").$strip>;
2913
+ metadata: {
2914
+ noStore: boolean;
2915
+ openapi: {
2916
+ description: string;
2917
+ };
2918
+ };
2919
+ }, import("@better-auth/oauth-provider").OAuthClient>;
2920
+ rotateClientKeys: BetterCall.StrictEndpoint<"/oauth2/client/rotate-keys", {
2921
+ method: "POST";
2922
+ body: import("better-auth").ZodObject<{
2923
+ client_assertion: import("better-auth").ZodString;
2924
+ client_assertion_type: import("better-auth").ZodString;
2925
+ jwks: import("better-auth").ZodObject<{
2926
+ keys: import("better-auth").ZodArray<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>;
2927
+ }, import("zod/v4/core").$strip>;
2928
+ }, import("zod/v4/core").$strip>;
2929
+ errorCodesByField: {
2930
+ client_assertion: "invalid_client";
2931
+ client_assertion_type: "invalid_client";
2932
+ jwks: "invalid_client_metadata";
2933
+ };
2934
+ metadata: {
2935
+ noStore: boolean;
2936
+ openapi: {
2937
+ description: string;
2938
+ };
2939
+ };
2940
+ }, {
2941
+ client_id: string;
2942
+ jwks: {
2943
+ keys: Record<string, unknown>[];
2944
+ };
2945
+ }>;
2946
+ deleteOAuthClient: BetterCall.StrictEndpoint<"/oauth2/delete-client", {
2947
+ method: "POST";
2948
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2949
+ session: {
2950
+ session: Record<string, any> & {
2951
+ id: string;
2952
+ createdAt: Date;
2953
+ updatedAt: Date;
2954
+ userId: string;
2955
+ expiresAt: Date;
2956
+ token: string;
2957
+ ipAddress?: string | null | undefined;
2958
+ userAgent?: string | null | undefined;
2959
+ };
2960
+ user: Record<string, any> & {
2961
+ id: string;
2962
+ createdAt: Date;
2963
+ updatedAt: Date;
2964
+ email: string;
2965
+ emailVerified: boolean;
2966
+ name: string;
2967
+ image?: string | null | undefined;
2968
+ };
2969
+ };
2970
+ }>>[];
2971
+ body: import("better-auth").ZodObject<{
2972
+ client_id: import("better-auth").ZodString;
2973
+ }, import("zod/v4/core").$strip>;
2974
+ metadata: {
2975
+ openapi: {
2976
+ description: string;
2977
+ };
2978
+ };
2979
+ }, void>;
2980
+ getOAuthConsent: BetterCall.StrictEndpoint<"/oauth2/get-consent", {
2981
+ method: "GET";
2982
+ query: import("better-auth").ZodObject<{
2983
+ id: import("better-auth").ZodString;
2984
+ }, import("zod/v4/core").$strip>;
2985
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
2986
+ session: {
2987
+ session: Record<string, any> & {
2988
+ id: string;
2989
+ createdAt: Date;
2990
+ updatedAt: Date;
2991
+ userId: string;
2992
+ expiresAt: Date;
2993
+ token: string;
2994
+ ipAddress?: string | null | undefined;
2995
+ userAgent?: string | null | undefined;
2996
+ };
2997
+ user: Record<string, any> & {
2998
+ id: string;
2999
+ createdAt: Date;
3000
+ updatedAt: Date;
3001
+ email: string;
3002
+ emailVerified: boolean;
3003
+ name: string;
3004
+ image?: string | null | undefined;
3005
+ };
3006
+ };
3007
+ }>>[];
3008
+ metadata: {
3009
+ openapi: {
3010
+ description: string;
3011
+ };
3012
+ };
3013
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>>;
3014
+ getOAuthConsents: BetterCall.StrictEndpoint<"/oauth2/get-consents", {
3015
+ method: "GET";
3016
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
3017
+ session: {
3018
+ session: Record<string, any> & {
3019
+ id: string;
3020
+ createdAt: Date;
3021
+ updatedAt: Date;
3022
+ userId: string;
3023
+ expiresAt: Date;
3024
+ token: string;
3025
+ ipAddress?: string | null | undefined;
3026
+ userAgent?: string | null | undefined;
3027
+ };
3028
+ user: Record<string, any> & {
3029
+ id: string;
3030
+ createdAt: Date;
3031
+ updatedAt: Date;
3032
+ email: string;
3033
+ emailVerified: boolean;
3034
+ name: string;
3035
+ image?: string | null | undefined;
3036
+ };
3037
+ };
3038
+ }>>[];
3039
+ metadata: {
3040
+ openapi: {
3041
+ description: string;
3042
+ };
3043
+ };
3044
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>[]>;
3045
+ updateOAuthConsent: BetterCall.StrictEndpoint<"/oauth2/update-consent", {
3046
+ method: "POST";
3047
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
3048
+ session: {
3049
+ session: Record<string, any> & {
3050
+ id: string;
3051
+ createdAt: Date;
3052
+ updatedAt: Date;
3053
+ userId: string;
3054
+ expiresAt: Date;
3055
+ token: string;
3056
+ ipAddress?: string | null | undefined;
3057
+ userAgent?: string | null | undefined;
3058
+ };
3059
+ user: Record<string, any> & {
3060
+ id: string;
3061
+ createdAt: Date;
3062
+ updatedAt: Date;
3063
+ email: string;
3064
+ emailVerified: boolean;
3065
+ name: string;
3066
+ image?: string | null | undefined;
3067
+ };
3068
+ };
3069
+ }>>[];
3070
+ body: import("better-auth").ZodObject<{
3071
+ id: import("better-auth").ZodString;
3072
+ update: import("better-auth").ZodObject<{
3073
+ scopes: import("better-auth").ZodArray<import("better-auth").ZodString>;
3074
+ }, import("zod/v4/core").$strip>;
3075
+ }, import("zod/v4/core").$strip>;
3076
+ metadata: {
3077
+ openapi: {
3078
+ description: string;
3079
+ };
3080
+ };
3081
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]> | null>;
3082
+ deleteOAuthConsent: BetterCall.StrictEndpoint<"/oauth2/delete-consent", {
3083
+ method: "POST";
3084
+ use: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<{
3085
+ session: {
3086
+ session: Record<string, any> & {
3087
+ id: string;
3088
+ createdAt: Date;
3089
+ updatedAt: Date;
3090
+ userId: string;
3091
+ expiresAt: Date;
3092
+ token: string;
3093
+ ipAddress?: string | null | undefined;
3094
+ userAgent?: string | null | undefined;
3095
+ };
3096
+ user: Record<string, any> & {
3097
+ id: string;
3098
+ createdAt: Date;
3099
+ updatedAt: Date;
3100
+ email: string;
3101
+ emailVerified: boolean;
3102
+ name: string;
3103
+ image?: string | null | undefined;
3104
+ };
3105
+ };
3106
+ }>>[];
3107
+ body: import("better-auth").ZodObject<{
3108
+ id: import("better-auth").ZodString;
3109
+ }, import("zod/v4/core").$strip>;
3110
+ metadata: {
3111
+ openapi: {
3112
+ description: string;
3113
+ };
3114
+ };
3115
+ }, void>;
3116
+ adminCreateOAuthResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources", {
3117
+ method: "POST";
3118
+ body: import("better-auth").ZodObject<{
3119
+ identifier: import("better-auth").ZodNonOptional<import("better-auth").ZodOptional<import("better-auth").ZodString>>;
3120
+ name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3121
+ accessTokenTtl: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodNumber>>;
3122
+ refreshTokenTtl: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodNumber>>;
3123
+ signingAlgorithm: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodEnum<{
3124
+ RS256: "RS256";
3125
+ PS256: "PS256";
3126
+ ES256: "ES256";
3127
+ ES512: "ES512";
3128
+ EdDSA: "EdDSA";
3129
+ }>>>;
3130
+ signingKeyId: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodString>>;
3131
+ allowedScopes: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodArray<import("better-auth").ZodString>>>;
3132
+ customClaims: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>>;
3133
+ dpopBoundAccessTokensRequired: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
3134
+ disabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
3135
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>>;
3136
+ }, import("zod/v4/core").$strip>;
3137
+ metadata: {
3138
+ SERVER_ONLY: true;
3139
+ };
3140
+ }, import("@better-auth/oauth-provider").OAuthResource>;
3141
+ adminListOAuthResources: BetterCall.StrictEndpoint<"/admin/oauth2/resources", {
3142
+ method: "GET";
3143
+ metadata: {
3144
+ SERVER_ONLY: true;
3145
+ };
3146
+ }, import("@better-auth/oauth-provider").OAuthResource[]>;
3147
+ adminGetOAuthResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
3148
+ method: "GET";
3149
+ metadata: {
3150
+ SERVER_ONLY: true;
3151
+ };
3152
+ }, import("@better-auth/oauth-provider").OAuthResource>;
3153
+ adminUpdateOAuthResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
3154
+ method: "PATCH";
3155
+ body: import("better-auth").ZodObject<{
3156
+ identifier: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3157
+ name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3158
+ accessTokenTtl: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodNumber>>;
3159
+ refreshTokenTtl: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodNumber>>;
3160
+ signingAlgorithm: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodEnum<{
3161
+ RS256: "RS256";
3162
+ PS256: "PS256";
3163
+ ES256: "ES256";
3164
+ ES512: "ES512";
3165
+ EdDSA: "EdDSA";
3166
+ }>>>;
3167
+ signingKeyId: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodString>>;
3168
+ allowedScopes: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodArray<import("better-auth").ZodString>>>;
3169
+ customClaims: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>>;
3170
+ dpopBoundAccessTokensRequired: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
3171
+ disabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
3172
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodNullable<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodUnknown>>>;
3173
+ }, import("zod/v4/core").$strip>;
3174
+ metadata: {
3175
+ SERVER_ONLY: true;
3176
+ };
3177
+ }, import("@better-auth/oauth-provider").OAuthResource>;
3178
+ adminDeleteOAuthResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
3179
+ method: "DELETE";
3180
+ metadata: {
3181
+ SERVER_ONLY: true;
3182
+ };
3183
+ }, {
3184
+ deleted: boolean;
3185
+ }>;
3186
+ adminLinkClientResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
3187
+ method: "POST";
3188
+ metadata: {
3189
+ SERVER_ONLY: true;
3190
+ };
3191
+ }, {
3192
+ linked: boolean;
3193
+ }>;
3194
+ adminUnlinkClientResource: BetterCall.StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
3195
+ method: "DELETE";
3196
+ metadata: {
3197
+ SERVER_ONLY: true;
3198
+ };
3199
+ }, {
3200
+ unlinked: boolean;
3201
+ }>;
3202
+ };
3203
+ schema: {
3204
+ oauthClient: {
3205
+ modelName: string;
3206
+ fields: {
3207
+ clientId: {
3208
+ type: "string";
3209
+ unique: true;
3210
+ required: true;
3211
+ };
3212
+ clientSecret: {
3213
+ type: "string";
3214
+ required: false;
3215
+ };
3216
+ clientDiscoveryId: {
3217
+ type: "string";
3218
+ required: false;
3219
+ };
3220
+ disabled: {
3221
+ type: "boolean";
3222
+ defaultValue: false;
3223
+ required: false;
3224
+ };
3225
+ skipConsent: {
3226
+ type: "boolean";
3227
+ required: false;
3228
+ };
3229
+ enableEndSession: {
3230
+ type: "boolean";
3231
+ required: false;
3232
+ };
3233
+ subjectType: {
3234
+ type: "string";
3235
+ required: false;
3236
+ };
3237
+ sectorIdentifier: {
3238
+ type: "string";
3239
+ required: false;
3240
+ };
3241
+ scopes: {
3242
+ type: "string[]";
3243
+ required: false;
3244
+ };
3245
+ clientCredentialsScopes: {
3246
+ type: "string[]";
3247
+ required: false;
3248
+ defaultValue: never[];
3249
+ };
3250
+ userId: {
3251
+ type: "string";
3252
+ required: false;
3253
+ references: {
3254
+ model: string;
3255
+ field: string;
3256
+ };
3257
+ index: true;
3258
+ };
3259
+ createdAt: {
3260
+ type: "date";
3261
+ required: false;
3262
+ };
3263
+ updatedAt: {
3264
+ type: "date";
3265
+ required: false;
3266
+ };
3267
+ name: {
3268
+ type: "string";
3269
+ required: false;
3270
+ };
3271
+ uri: {
3272
+ type: "string";
3273
+ required: false;
3274
+ };
3275
+ icon: {
3276
+ type: "string";
3277
+ required: false;
3278
+ };
3279
+ contacts: {
3280
+ type: "string[]";
3281
+ required: false;
3282
+ };
3283
+ tos: {
3284
+ type: "string";
3285
+ required: false;
3286
+ };
3287
+ policy: {
3288
+ type: "string";
3289
+ required: false;
3290
+ };
3291
+ softwareId: {
3292
+ type: "string";
3293
+ required: false;
3294
+ };
3295
+ softwareVersion: {
3296
+ type: "string";
3297
+ required: false;
3298
+ };
3299
+ softwareStatement: {
3300
+ type: "string";
3301
+ required: false;
3302
+ };
3303
+ redirectUris: {
3304
+ type: "string[]";
3305
+ required: true;
3306
+ };
3307
+ postLogoutRedirectUris: {
3308
+ type: "string[]";
3309
+ required: false;
3310
+ };
3311
+ backchannelLogoutUri: {
3312
+ type: "string";
3313
+ required: false;
3314
+ };
3315
+ backchannelLogoutSessionRequired: {
3316
+ type: "boolean";
3317
+ required: false;
3318
+ };
3319
+ frontchannelLogoutUri: {
3320
+ type: "string";
3321
+ required: false;
3322
+ };
3323
+ frontchannelLogoutSessionRequired: {
3324
+ type: "boolean";
3325
+ required: false;
3326
+ };
3327
+ tokenEndpointAuthMethod: {
3328
+ type: "string";
3329
+ required: false;
3330
+ };
3331
+ applicationType: {
3332
+ type: "string";
3333
+ required: false;
3334
+ };
3335
+ jwks: {
3336
+ type: "string";
3337
+ required: false;
3338
+ };
3339
+ jwksUri: {
3340
+ type: "string";
3341
+ required: false;
3342
+ };
3343
+ grantTypes: {
3344
+ type: "string[]";
3345
+ required: false;
3346
+ };
3347
+ responseTypes: {
3348
+ type: "string[]";
3349
+ required: false;
3350
+ };
3351
+ requirePKCE: {
3352
+ type: "boolean";
3353
+ required: false;
3354
+ };
3355
+ dpopBoundAccessTokens: {
3356
+ type: "boolean";
3357
+ required: false;
3358
+ defaultValue: false;
3359
+ };
3360
+ referenceId: {
3361
+ type: "string";
3362
+ required: false;
3363
+ };
3364
+ metadata: {
3365
+ type: "json";
3366
+ required: false;
3367
+ };
3368
+ };
3369
+ };
3370
+ oauthResource: {
3371
+ modelName: string;
3372
+ fields: {
3373
+ identifier: {
3374
+ type: "string";
3375
+ required: true;
3376
+ unique: true;
3377
+ };
3378
+ name: {
3379
+ type: "string";
3380
+ required: true;
3381
+ };
3382
+ accessTokenTtl: {
3383
+ type: "number";
3384
+ required: false;
3385
+ };
3386
+ refreshTokenTtl: {
3387
+ type: "number";
3388
+ required: false;
3389
+ };
3390
+ signingAlgorithm: {
3391
+ type: "string";
3392
+ required: false;
3393
+ };
3394
+ signingKeyId: {
3395
+ type: "string";
3396
+ required: false;
3397
+ };
3398
+ allowedScopes: {
3399
+ type: "string[]";
3400
+ required: false;
3401
+ };
3402
+ customClaims: {
3403
+ type: "json";
3404
+ required: false;
3405
+ };
3406
+ dpopBoundAccessTokensRequired: {
3407
+ type: "boolean";
3408
+ required: false;
3409
+ defaultValue: false;
3410
+ };
3411
+ disabled: {
3412
+ type: "boolean";
3413
+ required: false;
3414
+ defaultValue: false;
3415
+ };
3416
+ createdAt: {
3417
+ type: "date";
3418
+ required: false;
3419
+ };
3420
+ updatedAt: {
3421
+ type: "date";
3422
+ required: false;
3423
+ };
3424
+ policyVersion: {
3425
+ type: "number";
3426
+ required: false;
3427
+ defaultValue: number;
3428
+ };
3429
+ metadata: {
3430
+ type: "json";
3431
+ required: false;
3432
+ };
3433
+ };
3434
+ };
3435
+ oauthClientResource: {
3436
+ modelName: string;
3437
+ fields: {
3438
+ clientId: {
3439
+ type: "string";
3440
+ required: true;
3441
+ references: {
3442
+ model: string;
3443
+ field: string;
3444
+ onDelete: "cascade";
3445
+ };
3446
+ index: true;
3447
+ };
3448
+ resourceId: {
3449
+ type: "string";
3450
+ required: true;
3451
+ references: {
3452
+ model: string;
3453
+ field: string;
3454
+ onDelete: "cascade";
3455
+ };
3456
+ index: true;
3457
+ };
3458
+ metadata: {
3459
+ type: "json";
3460
+ required: false;
3461
+ };
3462
+ createdAt: {
3463
+ type: "date";
3464
+ required: false;
3465
+ };
3466
+ };
3467
+ indexes: {
3468
+ fields: [string, string];
3469
+ unique: true;
3470
+ }[];
3471
+ };
3472
+ oauthRefreshToken: {
3473
+ fields: {
3474
+ token: {
3475
+ type: "string";
3476
+ required: true;
3477
+ unique: true;
3478
+ };
3479
+ clientId: {
3480
+ type: "string";
3481
+ required: true;
3482
+ references: {
3483
+ model: string;
3484
+ field: string;
3485
+ };
3486
+ index: true;
3487
+ };
3488
+ sessionId: {
3489
+ type: "string";
3490
+ required: false;
3491
+ references: {
3492
+ model: string;
3493
+ field: string;
3494
+ onDelete: "set null";
3495
+ };
3496
+ index: true;
3497
+ };
3498
+ userId: {
3499
+ type: "string";
3500
+ required: true;
3501
+ references: {
3502
+ model: string;
3503
+ field: string;
3504
+ };
3505
+ index: true;
3506
+ };
3507
+ referenceId: {
3508
+ type: "string";
3509
+ required: false;
3510
+ };
3511
+ authorizationCodeId: {
3512
+ type: "string";
3513
+ required: false;
3514
+ index: true;
3515
+ };
3516
+ resources: {
3517
+ type: "string[]";
3518
+ required: false;
3519
+ };
3520
+ requestedUserInfoClaims: {
3521
+ type: "string[]";
3522
+ required: false;
3523
+ };
3524
+ expiresAt: {
3525
+ type: "date";
3526
+ };
3527
+ createdAt: {
3528
+ type: "date";
3529
+ };
3530
+ revoked: {
3531
+ type: "date";
3532
+ required: false;
3533
+ };
3534
+ rotatedAt: {
3535
+ type: "date";
3536
+ required: false;
3537
+ };
3538
+ rotationReplayResponse: {
3539
+ type: "string";
3540
+ required: false;
3541
+ };
3542
+ rotationReplayExpiresAt: {
3543
+ type: "date";
3544
+ required: false;
3545
+ };
3546
+ authTime: {
3547
+ type: "date";
3548
+ required: false;
3549
+ };
3550
+ acr: {
3551
+ type: "string";
3552
+ required: false;
3553
+ };
3554
+ amr: {
3555
+ type: "string[]";
3556
+ required: false;
3557
+ };
3558
+ confirmation: {
3559
+ type: "json";
3560
+ required: false;
3561
+ };
3562
+ scopes: {
3563
+ type: "string[]";
3564
+ required: true;
3565
+ };
3566
+ };
3567
+ };
3568
+ oauthAccessToken: {
3569
+ modelName: string;
3570
+ fields: {
3571
+ token: {
3572
+ type: "string";
3573
+ unique: true;
3574
+ };
3575
+ clientId: {
3576
+ type: "string";
3577
+ required: true;
3578
+ references: {
3579
+ model: string;
3580
+ field: string;
3581
+ };
3582
+ index: true;
3583
+ };
3584
+ sessionId: {
3585
+ type: "string";
3586
+ required: false;
3587
+ references: {
3588
+ model: string;
3589
+ field: string;
3590
+ onDelete: "set null";
3591
+ };
3592
+ index: true;
3593
+ };
3594
+ userId: {
3595
+ type: "string";
3596
+ required: false;
3597
+ references: {
3598
+ model: string;
3599
+ field: string;
3600
+ };
3601
+ index: true;
3602
+ };
3603
+ referenceId: {
3604
+ type: "string";
3605
+ required: false;
3606
+ };
3607
+ authorizationCodeId: {
3608
+ type: "string";
3609
+ required: false;
3610
+ index: true;
3611
+ };
3612
+ resources: {
3613
+ type: "string[]";
3614
+ required: false;
3615
+ };
3616
+ requestedUserInfoClaims: {
3617
+ type: "string[]";
3618
+ required: false;
3619
+ };
3620
+ refreshId: {
3621
+ type: "string";
3622
+ required: false;
3623
+ references: {
3624
+ model: string;
3625
+ field: string;
3626
+ };
3627
+ index: true;
3628
+ };
3629
+ expiresAt: {
3630
+ type: "date";
3631
+ };
3632
+ createdAt: {
3633
+ type: "date";
3634
+ };
3635
+ revoked: {
3636
+ type: "date";
3637
+ required: false;
3638
+ };
3639
+ confirmation: {
3640
+ type: "json";
3641
+ required: false;
3642
+ };
3643
+ scopes: {
3644
+ type: "string[]";
3645
+ required: true;
3646
+ };
3647
+ };
3648
+ };
3649
+ oauthConsent: {
3650
+ modelName: string;
3651
+ fields: {
3652
+ clientId: {
3653
+ type: "string";
3654
+ required: true;
3655
+ references: {
3656
+ model: string;
3657
+ field: string;
3658
+ };
3659
+ index: true;
3660
+ };
3661
+ userId: {
3662
+ type: "string";
3663
+ required: false;
3664
+ references: {
3665
+ model: string;
3666
+ field: string;
3667
+ };
3668
+ index: true;
3669
+ };
3670
+ referenceId: {
3671
+ type: "string";
3672
+ required: false;
3673
+ };
3674
+ resources: {
3675
+ type: "string[]";
3676
+ required: false;
3677
+ };
3678
+ requestedUserInfoClaims: {
3679
+ type: "string[]";
3680
+ required: false;
3681
+ };
3682
+ scopes: {
3683
+ type: "string[]";
3684
+ required: true;
3685
+ };
3686
+ createdAt: {
3687
+ type: "date";
3688
+ };
3689
+ updatedAt: {
3690
+ type: "date";
3691
+ };
3692
+ };
3693
+ };
3694
+ oauthClientAssertion: {
3695
+ modelName: string;
3696
+ fields: {
3697
+ expiresAt: {
3698
+ type: "date";
3699
+ required: true;
3700
+ };
3701
+ };
3702
+ };
3703
+ };
3704
+ rateLimit: ({
3705
+ pathMatcher: (path: string) => path is "/oauth2/token";
3706
+ window: number;
3707
+ max: number;
3708
+ } | {
3709
+ pathMatcher: (path: string) => path is "/oauth2/authorize";
3710
+ window: number;
3711
+ max: number;
3712
+ } | {
3713
+ pathMatcher: (path: string) => path is "/oauth2/introspect";
3714
+ window: number;
3715
+ max: number;
3716
+ } | {
3717
+ pathMatcher: (path: string) => path is "/oauth2/revoke";
3718
+ window: number;
3719
+ max: number;
3720
+ } | {
3721
+ pathMatcher: (path: string) => path is "/oauth2/register";
3722
+ window: number;
3723
+ max: number;
3724
+ } | {
3725
+ pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
3726
+ window: number;
3727
+ max: number;
3728
+ } | {
3729
+ pathMatcher: (path: string) => path is "/oauth2/userinfo";
3730
+ window: number;
3731
+ max: number;
3732
+ })[];
3733
+ } | {
3734
+ hooks: {
3735
+ after: {
3736
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>;
3737
+ matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
3738
+ }[];
3739
+ before: {
3740
+ handler: BetterCall.Middleware<BetterCall.MiddlewareOptions, (inputContext: BetterCall.MiddlewareInputContext<BetterCall.MiddlewareOptions>) => Promise<void>>;
3741
+ matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
3742
+ }[];
3743
+ };
3744
+ id: "tempo-id-authorize-session";
3745
+ endpoints?: never;
3746
+ init?: never;
3747
+ } | {
3748
+ hooks?: never;
3749
+ endpoints: {
3750
+ resolveOAuthClient: BetterCall.StrictEndpoint<string, {
3751
+ body: import("better-auth").ZodObject<{
3752
+ client_id: import("better-auth").ZodString;
3753
+ }, import("zod/v4/core").$strip>;
3754
+ method: "POST";
3755
+ }, {
3756
+ resolved: boolean;
3757
+ }>;
3758
+ };
3759
+ id: "tempo-id-client-discovery";
3760
+ init?: never;
3761
+ } | {
3762
+ hooks?: never;
3763
+ endpoints?: never;
3764
+ id: "tempo-id-resource-seed";
3765
+ init: (ctx: import("better-auth").AuthContext) => Promise<void>;
3766
+ })[], {
3767
+ init(ctx: import("better-auth").AuthContext): void;
3768
+ id: "device-authorization";
3769
+ version: string;
3770
+ schema: {
3771
+ deviceCode: {
3772
+ fields: {
3773
+ deviceCode: {
3774
+ type: "string";
3775
+ required: true;
3776
+ };
3777
+ userCode: {
3778
+ type: "string";
3779
+ required: true;
3780
+ };
3781
+ userId: {
3782
+ type: "string";
3783
+ required: false;
3784
+ };
3785
+ expiresAt: {
3786
+ type: "date";
3787
+ required: true;
3788
+ };
3789
+ status: {
3790
+ type: "string";
3791
+ required: true;
3792
+ };
3793
+ lastPolledAt: {
3794
+ type: "date";
3795
+ required: false;
3796
+ };
3797
+ pollingInterval: {
3798
+ type: "number";
3799
+ required: false;
3800
+ };
3801
+ clientId: {
3802
+ type: "string";
3803
+ required: false;
3804
+ };
3805
+ scope: {
3806
+ type: "string";
3807
+ required: false;
3808
+ };
3809
+ };
3810
+ indexes: {
3811
+ fields: [string];
3812
+ unique: true;
3813
+ }[];
3814
+ };
3815
+ };
3816
+ endpoints: {
3817
+ deviceCode: BetterCall.StrictEndpoint<"/device/code", {
3818
+ method: "POST";
3819
+ cloneRequest: true;
3820
+ body: import("better-auth").ZodObject<{
3821
+ client_id: import("better-auth").ZodString;
3822
+ user_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3823
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3824
+ client_secret: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3825
+ client_assertion: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3826
+ client_assertion_type: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3827
+ resource: import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>, import("better-auth").ZodLiteral<"">]>>;
3828
+ }, import("zod/v4/core").$strip> | import("better-auth").ZodObject<{
3829
+ user_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3830
+ scope: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3831
+ client_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3832
+ client_secret: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3833
+ client_assertion: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3834
+ client_assertion_type: import("better-auth").ZodOptional<import("better-auth").ZodString>;
3835
+ resource: import("better-auth").ZodOptional<import("better-auth").ZodUnion<readonly [import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>, import("better-auth").ZodLiteral<"">]>>;
3836
+ }, import("zod/v4/core").$strip>;
3837
+ error: import("better-auth").ZodObject<{
3838
+ error: import("better-auth").ZodEnum<{
3839
+ invalid_request: "invalid_request";
3840
+ invalid_client: "invalid_client";
3841
+ unauthorized_client: "unauthorized_client";
3842
+ invalid_scope: "invalid_scope";
3843
+ server_error: "server_error";
3844
+ invalid_target: "invalid_target";
3845
+ }>;
3846
+ error_description: import("better-auth").ZodString;
3847
+ }, import("zod/v4/core").$strip>;
3848
+ onValidationError: ({ issues, message }: {
3849
+ message: string;
3850
+ issues: readonly BetterCall.StandardSchemaV1.Issue[];
3851
+ }) => never;
3852
+ metadata: {
3853
+ noStore: boolean;
3854
+ allowedMediaTypes: string[];
3855
+ openapi: {
3856
+ description: string;
3857
+ responses: {
3858
+ 200: {
3859
+ description: string;
3860
+ content: {
3861
+ "application/json": {
3862
+ schema: {
3863
+ type: "object";
3864
+ properties: {
3865
+ device_code: {
3866
+ type: string;
3867
+ description: string;
3868
+ };
3869
+ user_code: {
3870
+ type: string;
3871
+ description: string;
3872
+ };
3873
+ verification_uri: {
3874
+ type: string;
3875
+ format: string;
3876
+ description: string;
3877
+ };
3878
+ verification_uri_complete: {
3879
+ type: string;
3880
+ format: string;
3881
+ description: string;
3882
+ };
3883
+ expires_in: {
3884
+ type: string;
3885
+ description: string;
3886
+ };
3887
+ interval: {
3888
+ type: string;
3889
+ description: string;
3890
+ };
3891
+ };
3892
+ };
3893
+ };
3894
+ };
3895
+ };
3896
+ 400: {
3897
+ description: string;
3898
+ content: {
3899
+ "application/json": {
3900
+ schema: {
3901
+ type: "object";
3902
+ properties: {
3903
+ error: {
3904
+ type: string;
3905
+ enum: ["invalid_request", "invalid_client", "unauthorized_client", "invalid_scope", "invalid_target"];
3906
+ };
3907
+ error_description: {
3908
+ type: string;
3909
+ };
3910
+ };
3911
+ };
3912
+ };
3913
+ };
3914
+ };
3915
+ 500: {
3916
+ description: string;
3917
+ content: {
3918
+ "application/json": {
3919
+ schema: {
3920
+ type: "object";
3921
+ properties: {
3922
+ error: {
3923
+ type: string;
3924
+ enum: string[];
3925
+ };
3926
+ error_description: {
3927
+ type: string;
3928
+ };
3929
+ };
3930
+ };
3931
+ };
3932
+ };
3933
+ };
3934
+ };
3935
+ };
3936
+ };
3937
+ }, {
3938
+ device_code: string;
3939
+ user_code: string;
3940
+ verification_uri: string;
3941
+ verification_uri_complete: string;
3942
+ expires_in: number;
3943
+ interval: number;
3944
+ }>;
3945
+ deviceToken: BetterCall.StrictEndpoint<"/device/token", {
3946
+ method: "POST";
3947
+ body: import("better-auth").ZodObject<{
3948
+ grant_type: import("better-auth").ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
3949
+ device_code: import("better-auth").ZodString;
3950
+ client_id: import("better-auth").ZodString;
3951
+ }, import("zod/v4/core").$strip>;
3952
+ error: import("better-auth").ZodObject<{
3953
+ error: import("better-auth").ZodEnum<{
3954
+ invalid_request: "invalid_request";
3955
+ expired_token: "expired_token";
3956
+ access_denied: "access_denied";
3957
+ authorization_pending: "authorization_pending";
3958
+ slow_down: "slow_down";
3959
+ invalid_grant: "invalid_grant";
3960
+ }>;
3961
+ error_description: import("better-auth").ZodString;
3962
+ }, import("zod/v4/core").$strip>;
3963
+ metadata: {
3964
+ noStore: boolean;
3965
+ openapi: {
3966
+ description: string;
3967
+ responses: {
3968
+ 200: {
3969
+ description: string;
3970
+ content: {
3971
+ "application/json": {
3972
+ schema: {
3973
+ type: "object";
3974
+ properties: {
3975
+ session: {
3976
+ $ref: string;
3977
+ };
3978
+ user: {
3979
+ $ref: string;
3980
+ };
3981
+ };
3982
+ };
3983
+ };
3984
+ };
3985
+ };
3986
+ 400: {
3987
+ description: string;
3988
+ content: {
3989
+ "application/json": {
3990
+ schema: {
3991
+ type: "object";
3992
+ properties: {
3993
+ error: {
3994
+ type: string;
3995
+ enum: string[];
3996
+ };
3997
+ error_description: {
3998
+ type: string;
3999
+ };
4000
+ };
4001
+ };
4002
+ };
4003
+ };
4004
+ };
4005
+ };
4006
+ };
4007
+ };
4008
+ }, {
4009
+ access_token: string;
4010
+ token_type: string;
4011
+ expires_in: number;
4012
+ scope: string;
4013
+ }>;
4014
+ deviceVerify: BetterCall.StrictEndpoint<"/device", {
4015
+ method: "GET";
4016
+ query: import("better-auth").ZodObject<{
4017
+ user_code: import("better-auth").ZodString;
4018
+ }, import("zod/v4/core").$strip>;
4019
+ error: import("better-auth").ZodObject<{
4020
+ error: import("better-auth").ZodEnum<{
4021
+ invalid_request: "invalid_request";
4022
+ }>;
4023
+ error_description: import("better-auth").ZodString;
4024
+ }, import("zod/v4/core").$strip>;
4025
+ metadata: {
4026
+ openapi: {
4027
+ description: string;
4028
+ responses: {
4029
+ 200: {
4030
+ description: string;
4031
+ content: {
4032
+ "application/json": {
4033
+ schema: {
4034
+ type: "object";
4035
+ properties: {
4036
+ user_code: {
4037
+ type: string;
4038
+ description: string;
4039
+ };
4040
+ status: {
4041
+ type: string;
4042
+ enum: string[];
4043
+ description: string;
4044
+ };
4045
+ client_id: {
4046
+ type: string;
4047
+ description: string;
4048
+ };
4049
+ scope: {
4050
+ type: string;
4051
+ description: string;
4052
+ };
4053
+ };
4054
+ };
4055
+ };
4056
+ };
4057
+ };
4058
+ };
4059
+ };
4060
+ };
4061
+ }, {
4062
+ client_id?: string | undefined;
4063
+ scope?: string | undefined;
4064
+ user_code: string;
4065
+ status: string;
4066
+ }>;
4067
+ deviceApprove: BetterCall.StrictEndpoint<"/device/approve", {
4068
+ method: "POST";
4069
+ body: import("better-auth").ZodObject<{
4070
+ userCode: import("better-auth").ZodString;
4071
+ }, import("zod/v4/core").$strip>;
4072
+ error: import("better-auth").ZodObject<{
4073
+ error: import("better-auth").ZodEnum<{
4074
+ invalid_request: "invalid_request";
4075
+ expired_token: "expired_token";
4076
+ access_denied: "access_denied";
4077
+ unauthorized: "unauthorized";
4078
+ }>;
4079
+ error_description: import("better-auth").ZodString;
4080
+ }, import("zod/v4/core").$strip>;
4081
+ requireHeaders: true;
4082
+ metadata: {
4083
+ openapi: {
4084
+ description: string;
4085
+ responses: {
4086
+ 200: {
4087
+ description: string;
4088
+ content: {
4089
+ "application/json": {
4090
+ schema: {
4091
+ type: "object";
4092
+ properties: {
4093
+ success: {
4094
+ type: string;
4095
+ };
4096
+ };
4097
+ };
4098
+ };
4099
+ };
4100
+ };
4101
+ };
4102
+ };
4103
+ };
4104
+ }, {
4105
+ success: boolean;
4106
+ }>;
4107
+ deviceDeny: BetterCall.StrictEndpoint<"/device/deny", {
4108
+ method: "POST";
4109
+ body: import("better-auth").ZodObject<{
4110
+ userCode: import("better-auth").ZodString;
4111
+ }, import("zod/v4/core").$strip>;
4112
+ error: import("better-auth").ZodObject<{
4113
+ error: import("better-auth").ZodEnum<{
4114
+ invalid_request: "invalid_request";
4115
+ expired_token: "expired_token";
4116
+ access_denied: "access_denied";
4117
+ unauthorized: "unauthorized";
4118
+ }>;
4119
+ error_description: import("better-auth").ZodString;
4120
+ }, import("zod/v4/core").$strip>;
4121
+ requireHeaders: true;
4122
+ metadata: {
4123
+ openapi: {
4124
+ description: string;
4125
+ responses: {
4126
+ 200: {
4127
+ description: string;
4128
+ content: {
4129
+ "application/json": {
4130
+ schema: {
4131
+ type: "object";
4132
+ properties: {
4133
+ success: {
4134
+ type: string;
4135
+ };
4136
+ };
4137
+ };
4138
+ };
4139
+ };
4140
+ };
4141
+ };
4142
+ };
4143
+ };
4144
+ }, {
4145
+ success: boolean;
4146
+ }>;
4147
+ };
4148
+ rateLimit: {
4149
+ pathMatcher(path: string): path is "/device";
4150
+ window: number;
4151
+ max: number;
4152
+ }[];
4153
+ $ERROR_CODES: {
4154
+ USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
4155
+ FAILED_TO_CREATE_SESSION: import("better-auth").RawError<"FAILED_TO_CREATE_SESSION">;
4156
+ INVALID_DEVICE_CODE: import("better-auth").RawError<"INVALID_DEVICE_CODE">;
4157
+ EXPIRED_DEVICE_CODE: import("better-auth").RawError<"EXPIRED_DEVICE_CODE">;
4158
+ EXPIRED_USER_CODE: import("better-auth").RawError<"EXPIRED_USER_CODE">;
4159
+ AUTHORIZATION_PENDING: import("better-auth").RawError<"AUTHORIZATION_PENDING">;
4160
+ ACCESS_DENIED: import("better-auth").RawError<"ACCESS_DENIED">;
4161
+ INVALID_USER_CODE: import("better-auth").RawError<"INVALID_USER_CODE">;
4162
+ DEVICE_CODE_ALREADY_PROCESSED: import("better-auth").RawError<"DEVICE_CODE_ALREADY_PROCESSED">;
4163
+ DEVICE_CODE_NOT_CLAIMED: import("better-auth").RawError<"DEVICE_CODE_NOT_CLAIMED">;
4164
+ POLLING_TOO_FREQUENTLY: import("better-auth").RawError<"POLLING_TOO_FREQUENTLY">;
4165
+ INVALID_DEVICE_CODE_STATUS: import("better-auth").RawError<"INVALID_DEVICE_CODE_STATUS">;
4166
+ AUTHENTICATION_REQUIRED: import("better-auth").RawError<"AUTHENTICATION_REQUIRED">;
4167
+ };
4168
+ options: {
4169
+ grant: import("better-auth/plugins").DeviceAuthorizationGrant<Readonly<{
4170
+ [k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
4171
+ }>> | undefined;
4172
+ expiresIn: import("better-auth/plugins").TimeString;
4173
+ interval: import("better-auth/plugins").TimeString;
4174
+ deviceCodeLength: number;
4175
+ userCodeLength: number;
4176
+ generateDeviceCode?: (() => string | Promise<string>) | undefined;
4177
+ generateUserCode?: (() => string | Promise<string>) | undefined;
4178
+ validateClient?: ((clientId: string) => boolean | Promise<boolean>) | undefined;
4179
+ onDeviceAuthRequest?: ((clientId: string, scope: string | undefined) => void | Promise<void>) | undefined;
4180
+ verificationUri?: string | undefined;
4181
+ schema?: {
4182
+ deviceCode?: {
4183
+ modelName?: string | undefined;
4184
+ fields?: {
4185
+ deviceCode?: string | undefined;
4186
+ userCode?: string | undefined;
4187
+ userId?: string | undefined;
4188
+ expiresAt?: string | undefined;
4189
+ status?: string | undefined;
4190
+ lastPolledAt?: string | undefined;
4191
+ pollingInterval?: string | undefined;
4192
+ clientId?: string | undefined;
4193
+ scope?: string | undefined;
4194
+ } | undefined;
4195
+ } | undefined;
4196
+ } | undefined;
4197
+ };
4198
+ }, {
4199
+ id: "tempo-id-indexes";
4200
+ schema: {
4201
+ deviceCode: {
4202
+ fields: {};
4203
+ indexes: {
4204
+ fields: [string];
4205
+ }[];
4206
+ };
4207
+ oauthAccessToken: {
4208
+ fields: {};
4209
+ indexes: {
4210
+ fields: [string];
4211
+ }[];
4212
+ };
4213
+ oauthClientAssertion: {
4214
+ fields: {};
4215
+ indexes: {
4216
+ fields: [string];
4217
+ }[];
4218
+ };
4219
+ oauthRefreshToken: {
4220
+ fields: {};
4221
+ indexes: {
4222
+ fields: [string];
4223
+ }[];
4224
+ };
4225
+ session: {
4226
+ fields: {};
4227
+ indexes: {
4228
+ fields: [string];
4229
+ }[];
4230
+ };
4231
+ verification: {
4232
+ fields: {};
4233
+ indexes: {
4234
+ fields: [string];
4235
+ }[];
4236
+ };
4237
+ };
4238
+ }];
4239
+ rateLimit: {
4240
+ enabled: false;
4241
+ };
4242
+ secret: string;
4243
+ verification: {
4244
+ disableCleanup: true;
4245
+ };
4246
+ };
4247
+ export declare namespace options {
4248
+ type Options = {
4249
+ /** Decides whether an authorization needs the account step. */
4250
+ accountStep?: Apps.plugins.Options['accountStep'];
4251
+ /** Tempo ID's origin, such as `https://id.tempo.xyz`. */
4252
+ baseURL: string;
4253
+ /** The isolate's cache of configuration rows. */
4254
+ cache?: Apps.plugins.Options['cache'];
4255
+ /** The Drizzle database of Tempo ID's tables. */
4256
+ db: Parameters<typeof drizzleAdapter>[0];
4257
+ /** Fetches third-party apps' metadata documents. */
4258
+ metadataFetch?: Apps.plugins.Options['metadataFetch'];
4259
+ /** Takes the key authorization that a code's redemption returns. */
4260
+ pendingKey?: Apps.plugins.Options['pendingKey'];
4261
+ /** The secret that signs cookies and encrypts the signing keys. */
4262
+ secret: string;
4263
+ /** Emails a sign-in code to an address. */
4264
+ sendCode: (options: {
4265
+ code: string;
4266
+ email: string;
4267
+ }) => Promise<void>;
4268
+ /** Receives each new session, so the request reads it without a second query. */
4269
+ sessionCreated?: ((session: {
4270
+ id: string;
4271
+ userId: string;
4272
+ }) => void) | undefined;
4273
+ /**
4274
+ * The lowercase domains where a sign-up creates an account, such as `tempo.xyz`. Absent, every
4275
+ * verified address can create one.
4276
+ */
4277
+ signUpDomains?: readonly string[] | undefined;
4278
+ /** Receives each new user, whose ID no other service holds yet. */
4279
+ userCreated?: ((user: {
4280
+ id: string;
4281
+ }) => void) | undefined;
4282
+ /** Keeps work alive after the response, such as `c.executionCtx.waitUntil`. */
4283
+ waitUntil: (promise: Promise<unknown>) => void;
4284
+ };
4285
+ }
4286
+ export {};
4287
+ //# sourceMappingURL=Auth.d.ts.map