@aotter/mantle 0.1.5-alpha.1 → 0.2.0-alpha.1

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