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

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