@tempoxyz/id 0.0.0-pr-187.sha-eed04d3

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