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

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