@aotter/mantle 0.2.0-alpha.6 → 0.2.0-alpha.7

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