@entro314labs/entro-auth 0.0.0-stage → 1.8.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +31 -2
  3. package/dist/_virtual/_rolldown/runtime.mjs +26 -0
  4. package/dist/adapters/drizzle-adapter/index.d.mts +1 -0
  5. package/dist/adapters/drizzle-adapter/index.mjs +2 -0
  6. package/dist/adapters/index.d.mts +19 -0
  7. package/dist/adapters/index.mjs +8 -0
  8. package/dist/adapters/kysely-adapter/index.d.mts +1 -0
  9. package/dist/adapters/kysely-adapter/index.mjs +2 -0
  10. package/dist/adapters/memory-adapter/index.d.mts +1 -0
  11. package/dist/adapters/memory-adapter/index.mjs +2 -0
  12. package/dist/api/dispatch.d.mts +31 -0
  13. package/dist/api/dispatch.mjs +318 -0
  14. package/dist/api/index.d.mts +4117 -0
  15. package/dist/api/index.mjs +227 -0
  16. package/dist/api/middlewares/authorization.d.mts +70 -0
  17. package/dist/api/middlewares/authorization.mjs +78 -0
  18. package/dist/api/middlewares/index.d.mts +3 -0
  19. package/dist/api/middlewares/origin-check.d.mts +12 -0
  20. package/dist/api/middlewares/origin-check.mjs +154 -0
  21. package/dist/api/rate-limiter/index.mjs +322 -0
  22. package/dist/api/routes/account.d.mts +407 -0
  23. package/dist/api/routes/account.mjs +642 -0
  24. package/dist/api/routes/callback.d.mts +27 -0
  25. package/dist/api/routes/callback.mjs +184 -0
  26. package/dist/api/routes/email-verification.d.mts +153 -0
  27. package/dist/api/routes/email-verification.mjs +315 -0
  28. package/dist/api/routes/error.d.mts +22 -0
  29. package/dist/api/routes/error.mjs +386 -0
  30. package/dist/api/routes/id-token-nonce.d.mts +83 -0
  31. package/dist/api/routes/id-token-nonce.mjs +79 -0
  32. package/dist/api/routes/index.d.mts +14 -0
  33. package/dist/api/routes/ok.d.mts +30 -0
  34. package/dist/api/routes/ok.mjs +26 -0
  35. package/dist/api/routes/password.d.mts +177 -0
  36. package/dist/api/routes/password.mjs +198 -0
  37. package/dist/api/routes/session.d.mts +446 -0
  38. package/dist/api/routes/session.mjs +488 -0
  39. package/dist/api/routes/sign-in.d.mts +182 -0
  40. package/dist/api/routes/sign-in.mjs +374 -0
  41. package/dist/api/routes/sign-out.d.mts +46 -0
  42. package/dist/api/routes/sign-out.mjs +101 -0
  43. package/dist/api/routes/sign-up.d.mts +155 -0
  44. package/dist/api/routes/sign-up.mjs +279 -0
  45. package/dist/api/routes/update-session.d.mts +70 -0
  46. package/dist/api/routes/update-session.mjs +56 -0
  47. package/dist/api/routes/update-user.d.mts +424 -0
  48. package/dist/api/routes/update-user.mjs +524 -0
  49. package/dist/api/state/oauth.d.mts +48 -0
  50. package/dist/api/state/oauth.mjs +38 -0
  51. package/dist/api/state/should-session-refresh.d.mts +10 -0
  52. package/dist/api/state/should-session-refresh.mjs +12 -0
  53. package/dist/api/to-auth-endpoints.mjs +59 -0
  54. package/dist/auth/base.mjs +60 -0
  55. package/dist/auth/full.d.mts +25 -0
  56. package/dist/auth/full.mjs +28 -0
  57. package/dist/auth/minimal.d.mts +8 -0
  58. package/dist/auth/minimal.mjs +10 -0
  59. package/dist/auth/trusted-origins.mjs +130 -0
  60. package/dist/client/broadcast-channel.d.mts +16 -0
  61. package/dist/client/broadcast-channel.mjs +44 -0
  62. package/dist/client/config.d.mts +84 -0
  63. package/dist/client/config.mjs +111 -0
  64. package/dist/client/equality.d.mts +15 -0
  65. package/dist/client/equality.mjs +41 -0
  66. package/dist/client/fetch-plugins.mjs +16 -0
  67. package/dist/client/focus-manager.d.mts +7 -0
  68. package/dist/client/focus-manager.mjs +30 -0
  69. package/dist/client/index.d.mts +35 -0
  70. package/dist/client/index.mjs +21 -0
  71. package/dist/client/lynx/index.d.mts +40 -0
  72. package/dist/client/lynx/index.mjs +22 -0
  73. package/dist/client/lynx/lynx-store.d.mts +43 -0
  74. package/dist/client/lynx/lynx-store.mjs +43 -0
  75. package/dist/client/online-manager.d.mts +8 -0
  76. package/dist/client/online-manager.mjs +33 -0
  77. package/dist/client/parser.d.mts +12 -0
  78. package/dist/client/parser.mjs +59 -0
  79. package/dist/client/path-to-object.d.mts +110 -0
  80. package/dist/client/plugins/index.d.mts +44 -0
  81. package/dist/client/plugins/index.mjs +30 -0
  82. package/dist/client/plugins/infer-plugin.d.mts +12 -0
  83. package/dist/client/plugins/infer-plugin.mjs +10 -0
  84. package/dist/client/proxy.mjs +70 -0
  85. package/dist/client/query-atom.mjs +12 -0
  86. package/dist/client/query.d.mts +19 -0
  87. package/dist/client/query.mjs +133 -0
  88. package/dist/client/react/index.d.mts +41 -0
  89. package/dist/client/react/index.mjs +22 -0
  90. package/dist/client/react/react-store.d.mts +43 -0
  91. package/dist/client/react/react-store.mjs +44 -0
  92. package/dist/client/session-atom.d.mts +9 -0
  93. package/dist/client/session-atom.mjs +179 -0
  94. package/dist/client/session-refresh.d.mts +16 -0
  95. package/dist/client/session-refresh.mjs +131 -0
  96. package/dist/client/solid/index.d.mts +41 -0
  97. package/dist/client/solid/index.mjs +22 -0
  98. package/dist/client/solid/solid-store.mjs +20 -0
  99. package/dist/client/svelte/index.d.mts +41 -0
  100. package/dist/client/svelte/index.mjs +18 -0
  101. package/dist/client/types.d.mts +49 -0
  102. package/dist/client/vanilla.d.mts +39 -0
  103. package/dist/client/vanilla.mjs +18 -0
  104. package/dist/client/vue/index.d.mts +64 -0
  105. package/dist/client/vue/index.mjs +60 -0
  106. package/dist/client/vue/vue-store.mjs +22 -0
  107. package/dist/context/create-context.mjs +229 -0
  108. package/dist/context/helpers.mjs +159 -0
  109. package/dist/context/init-minimal.mjs +15 -0
  110. package/dist/context/init.mjs +16 -0
  111. package/dist/context/secret-utils.mjs +52 -0
  112. package/dist/context/store-capabilities.mjs +11 -0
  113. package/dist/cookies/cache.mjs +33 -0
  114. package/dist/cookies/cookie-utils.d.mts +70 -0
  115. package/dist/cookies/cookie-utils.mjs +200 -0
  116. package/dist/cookies/index.d.mts +121 -0
  117. package/dist/cookies/index.mjs +356 -0
  118. package/dist/cookies/jwt.mjs +44 -0
  119. package/dist/cookies/session-store.d.mts +31 -0
  120. package/dist/cookies/session-store.mjs +183 -0
  121. package/dist/crypto/buffer.d.mts +4 -0
  122. package/dist/crypto/buffer.mjs +15 -0
  123. package/dist/crypto/index.d.mts +24 -0
  124. package/dist/crypto/index.mjs +70 -0
  125. package/dist/crypto/jwt.d.mts +5 -0
  126. package/dist/crypto/jwt.mjs +141 -0
  127. package/dist/crypto/password.d.mts +7 -0
  128. package/dist/crypto/password.mjs +13 -0
  129. package/dist/crypto/purpose.d.mts +12 -0
  130. package/dist/crypto/purpose.mjs +27 -0
  131. package/dist/crypto/random.d.mts +1 -0
  132. package/dist/crypto/random.mjs +4 -0
  133. package/dist/db/adapter-base.d.mts +3 -0
  134. package/dist/db/adapter-base.mjs +24 -0
  135. package/dist/db/adapter-kysely.d.mts +3 -0
  136. package/dist/db/adapter-kysely.mjs +16 -0
  137. package/dist/db/field-converter.d.mts +3 -0
  138. package/dist/db/field-converter.mjs +18 -0
  139. package/dist/db/field.d.mts +38 -0
  140. package/dist/db/get-migration.d.mts +50 -0
  141. package/dist/db/get-migration.mjs +685 -0
  142. package/dist/db/get-schema.d.mts +9 -0
  143. package/dist/db/get-schema.mjs +54 -0
  144. package/dist/db/index.d.mts +10 -0
  145. package/dist/db/index.mjs +34 -0
  146. package/dist/db/internal-adapter.d.mts +10 -0
  147. package/dist/db/internal-adapter.mjs +1083 -0
  148. package/dist/db/revoke-unproven-account-access.d.mts +18 -0
  149. package/dist/db/revoke-unproven-account-access.mjs +57 -0
  150. package/dist/db/schema.d.mts +59 -0
  151. package/dist/db/schema.mjs +172 -0
  152. package/dist/db/to-zod.d.mts +31 -0
  153. package/dist/db/to-zod.mjs +32 -0
  154. package/dist/db/verification-token-storage.mjs +24 -0
  155. package/dist/db/with-hooks.d.mts +33 -0
  156. package/dist/db/with-hooks.mjs +248 -0
  157. package/dist/index.d.mts +30 -0
  158. package/dist/index.mjs +16 -0
  159. package/dist/integrations/cookie-plugin-guard.mjs +17 -0
  160. package/dist/integrations/next-js.d.mts +23 -0
  161. package/dist/integrations/next-js.mjs +104 -0
  162. package/dist/integrations/node.d.mts +7 -0
  163. package/dist/integrations/node.mjs +14 -0
  164. package/dist/integrations/solid-start.d.mts +19 -0
  165. package/dist/integrations/solid-start.mjs +14 -0
  166. package/dist/integrations/svelte-kit.d.mts +28 -0
  167. package/dist/integrations/svelte-kit.mjs +56 -0
  168. package/dist/integrations/tanstack-start-solid.d.mts +27 -0
  169. package/dist/integrations/tanstack-start-solid.mjs +56 -0
  170. package/dist/integrations/tanstack-start.d.mts +27 -0
  171. package/dist/integrations/tanstack-start.mjs +56 -0
  172. package/dist/oauth2/account-fields.mjs +51 -0
  173. package/dist/oauth2/account-key.mjs +42 -0
  174. package/dist/oauth2/callback.mjs +67 -0
  175. package/dist/oauth2/dpop-client.d.mts +1 -0
  176. package/dist/oauth2/dpop-client.mjs +2 -0
  177. package/dist/oauth2/errors.mjs +48 -0
  178. package/dist/oauth2/index.d.mts +5 -0
  179. package/dist/oauth2/index.mjs +5 -0
  180. package/dist/oauth2/link-account.d.mts +126 -0
  181. package/dist/oauth2/link-account.mjs +429 -0
  182. package/dist/oauth2/state.d.mts +49 -0
  183. package/dist/oauth2/state.mjs +66 -0
  184. package/dist/oauth2/utils.d.mts +21 -0
  185. package/dist/oauth2/utils.mjs +44 -0
  186. package/dist/package.mjs +3 -0
  187. package/dist/plugins/access/access.d.mts +13 -0
  188. package/dist/plugins/access/access.mjs +77 -0
  189. package/dist/plugins/access/index.d.mts +3 -0
  190. package/dist/plugins/access/index.mjs +1 -0
  191. package/dist/plugins/access/types.d.mts +20 -0
  192. package/dist/plugins/additional-fields/client.d.mts +96 -0
  193. package/dist/plugins/additional-fields/client.mjs +10 -0
  194. package/dist/plugins/admin/access/index.d.mts +2 -0
  195. package/dist/plugins/admin/access/index.mjs +1 -0
  196. package/dist/plugins/admin/access/statement.d.mts +49 -0
  197. package/dist/plugins/admin/access/statement.mjs +53 -0
  198. package/dist/plugins/admin/admin.d.mts +908 -0
  199. package/dist/plugins/admin/admin.mjs +90 -0
  200. package/dist/plugins/admin/client.d.mts +84 -0
  201. package/dist/plugins/admin/client.mjs +38 -0
  202. package/dist/plugins/admin/error-codes.d.mts +30 -0
  203. package/dist/plugins/admin/error-codes.mjs +33 -0
  204. package/dist/plugins/admin/has-permission.mjs +11 -0
  205. package/dist/plugins/admin/index.d.mts +3 -0
  206. package/dist/plugins/admin/index.mjs +1 -0
  207. package/dist/plugins/admin/routes.mjs +940 -0
  208. package/dist/plugins/admin/schema.d.mts +37 -0
  209. package/dist/plugins/admin/schema.mjs +32 -0
  210. package/dist/plugins/admin/types.d.mts +89 -0
  211. package/dist/plugins/anonymous/client.d.mts +28 -0
  212. package/dist/plugins/anonymous/client.mjs +20 -0
  213. package/dist/plugins/anonymous/error-codes.d.mts +10 -0
  214. package/dist/plugins/anonymous/error-codes.mjs +13 -0
  215. package/dist/plugins/anonymous/index.d.mts +170 -0
  216. package/dist/plugins/anonymous/index.mjs +220 -0
  217. package/dist/plugins/anonymous/schema.d.mts +12 -0
  218. package/dist/plugins/anonymous/schema.mjs +8 -0
  219. package/dist/plugins/anonymous/types.d.mts +62 -0
  220. package/dist/plugins/bearer/index.d.mts +39 -0
  221. package/dist/plugins/bearer/index.mjs +73 -0
  222. package/dist/plugins/captcha/constants.d.mts +7 -0
  223. package/dist/plugins/captcha/constants.mjs +27 -0
  224. package/dist/plugins/captcha/error-codes.mjs +12 -0
  225. package/dist/plugins/captcha/index.d.mts +22 -0
  226. package/dist/plugins/captcha/index.mjs +84 -0
  227. package/dist/plugins/captcha/types.d.mts +90 -0
  228. package/dist/plugins/captcha/utils.mjs +18 -0
  229. package/dist/plugins/captcha/verify-handlers/captchafox.mjs +26 -0
  230. package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.mjs +46 -0
  231. package/dist/plugins/captcha/verify-handlers/google-recaptcha.mjs +31 -0
  232. package/dist/plugins/captcha/verify-handlers/h-captcha.mjs +26 -0
  233. package/dist/plugins/captcha/verify-handlers/vercel-botid.mjs +26 -0
  234. package/dist/plugins/custom-session/client.d.mts +13 -0
  235. package/dist/plugins/custom-session/client.mjs +6 -0
  236. package/dist/plugins/custom-session/index.d.mts +65 -0
  237. package/dist/plugins/custom-session/index.mjs +57 -0
  238. package/dist/plugins/device-authorization/client.d.mts +13 -0
  239. package/dist/plugins/device-authorization/client.mjs +17 -0
  240. package/dist/plugins/device-authorization/error-codes.mjs +18 -0
  241. package/dist/plugins/device-authorization/index.d.mts +550 -0
  242. package/dist/plugins/device-authorization/index.mjs +79 -0
  243. package/dist/plugins/device-authorization/routes.d.mts +96 -0
  244. package/dist/plugins/device-authorization/routes.mjs +734 -0
  245. package/dist/plugins/device-authorization/schema.d.mts +15 -0
  246. package/dist/plugins/device-authorization/schema.mjs +62 -0
  247. package/dist/plugins/email-otp/client.d.mts +17 -0
  248. package/dist/plugins/email-otp/client.mjs +16 -0
  249. package/dist/plugins/email-otp/error-codes.d.mts +5 -0
  250. package/dist/plugins/email-otp/error-codes.mjs +8 -0
  251. package/dist/plugins/email-otp/index.d.mts +542 -0
  252. package/dist/plugins/email-otp/index.mjs +144 -0
  253. package/dist/plugins/email-otp/otp-token.mjs +66 -0
  254. package/dist/plugins/email-otp/routes.mjs +774 -0
  255. package/dist/plugins/email-otp/types.d.mts +105 -0
  256. package/dist/plugins/email-otp/utils.mjs +16 -0
  257. package/dist/plugins/generic-oauth/error-codes.mjs +8 -0
  258. package/dist/plugins/generic-oauth/index.d.mts +57 -0
  259. package/dist/plugins/generic-oauth/index.mjs +459 -0
  260. package/dist/plugins/generic-oauth/providers/auth0.d.mts +32 -0
  261. package/dist/plugins/generic-oauth/providers/auth0.mjs +48 -0
  262. package/dist/plugins/generic-oauth/providers/gumroad.d.mts +27 -0
  263. package/dist/plugins/generic-oauth/providers/gumroad.mjs +61 -0
  264. package/dist/plugins/generic-oauth/providers/hubspot.d.mts +32 -0
  265. package/dist/plugins/generic-oauth/providers/hubspot.mjs +65 -0
  266. package/dist/plugins/generic-oauth/providers/index.d.mts +11 -0
  267. package/dist/plugins/generic-oauth/providers/keycloak.d.mts +32 -0
  268. package/dist/plugins/generic-oauth/providers/keycloak.mjs +46 -0
  269. package/dist/plugins/generic-oauth/providers/line.d.mts +50 -0
  270. package/dist/plugins/generic-oauth/providers/line.mjs +92 -0
  271. package/dist/plugins/generic-oauth/providers/microsoft-entra-id.d.mts +35 -0
  272. package/dist/plugins/generic-oauth/providers/microsoft-entra-id.mjs +104 -0
  273. package/dist/plugins/generic-oauth/providers/okta.d.mts +32 -0
  274. package/dist/plugins/generic-oauth/providers/okta.mjs +47 -0
  275. package/dist/plugins/generic-oauth/providers/patreon.d.mts +25 -0
  276. package/dist/plugins/generic-oauth/providers/patreon.mjs +60 -0
  277. package/dist/plugins/generic-oauth/providers/slack.d.mts +25 -0
  278. package/dist/plugins/generic-oauth/providers/slack.mjs +65 -0
  279. package/dist/plugins/generic-oauth/providers/token-endpoint-audience.mjs +15 -0
  280. package/dist/plugins/generic-oauth/providers/yandex.d.mts +25 -0
  281. package/dist/plugins/generic-oauth/providers/yandex.mjs +66 -0
  282. package/dist/plugins/generic-oauth/types.d.mts +328 -0
  283. package/dist/plugins/haveibeenpwned/index.d.mts +57 -0
  284. package/dist/plugins/haveibeenpwned/index.mjs +80 -0
  285. package/dist/plugins/index.d.mts +76 -0
  286. package/dist/plugins/index.mjs +53 -0
  287. package/dist/plugins/jwt/adapter.mjs +78 -0
  288. package/dist/plugins/jwt/client.d.mts +38 -0
  289. package/dist/plugins/jwt/client.mjs +18 -0
  290. package/dist/plugins/jwt/cookie-cache.mjs +71 -0
  291. package/dist/plugins/jwt/index.d.mts +241 -0
  292. package/dist/plugins/jwt/index.mjs +213 -0
  293. package/dist/plugins/jwt/schema.d.mts +30 -0
  294. package/dist/plugins/jwt/schema.mjs +28 -0
  295. package/dist/plugins/jwt/sign.d.mts +127 -0
  296. package/dist/plugins/jwt/sign.mjs +134 -0
  297. package/dist/plugins/jwt/types.d.mts +255 -0
  298. package/dist/plugins/jwt/utils.d.mts +36 -0
  299. package/dist/plugins/jwt/utils.mjs +63 -0
  300. package/dist/plugins/jwt/verify.d.mts +7 -0
  301. package/dist/plugins/jwt/verify.mjs +50 -0
  302. package/dist/plugins/last-login-method/client.d.mts +45 -0
  303. package/dist/plugins/last-login-method/client.mjs +47 -0
  304. package/dist/plugins/last-login-method/index.d.mts +121 -0
  305. package/dist/plugins/last-login-method/index.mjs +98 -0
  306. package/dist/plugins/magic-link/client.d.mts +6 -0
  307. package/dist/plugins/magic-link/client.mjs +10 -0
  308. package/dist/plugins/magic-link/index.d.mts +208 -0
  309. package/dist/plugins/magic-link/index.mjs +223 -0
  310. package/dist/plugins/magic-link/utils.mjs +8 -0
  311. package/dist/plugins/multi-session/client.d.mts +15 -0
  312. package/dist/plugins/multi-session/client.mjs +18 -0
  313. package/dist/plugins/multi-session/error-codes.d.mts +3 -0
  314. package/dist/plugins/multi-session/error-codes.mjs +4 -0
  315. package/dist/plugins/multi-session/index.d.mts +206 -0
  316. package/dist/plugins/multi-session/index.mjs +216 -0
  317. package/dist/plugins/oauth-popup/client.d.mts +74 -0
  318. package/dist/plugins/oauth-popup/client.mjs +204 -0
  319. package/dist/plugins/oauth-popup/constants.d.mts +8 -0
  320. package/dist/plugins/oauth-popup/constants.mjs +10 -0
  321. package/dist/plugins/oauth-popup/error-codes.d.mts +6 -0
  322. package/dist/plugins/oauth-popup/error-codes.mjs +9 -0
  323. package/dist/plugins/oauth-popup/index.d.mts +61 -0
  324. package/dist/plugins/oauth-popup/index.mjs +232 -0
  325. package/dist/plugins/oauth-popup/types.d.mts +26 -0
  326. package/dist/plugins/oauth-proxy/index.d.mts +123 -0
  327. package/dist/plugins/oauth-proxy/index.mjs +397 -0
  328. package/dist/plugins/oauth-proxy/utils.mjs +54 -0
  329. package/dist/plugins/one-tap/client.d.mts +187 -0
  330. package/dist/plugins/one-tap/client.mjs +208 -0
  331. package/dist/plugins/one-tap/index.d.mts +117 -0
  332. package/dist/plugins/one-tap/index.mjs +146 -0
  333. package/dist/plugins/one-time-token/client.d.mts +7 -0
  334. package/dist/plugins/one-time-token/client.mjs +10 -0
  335. package/dist/plugins/one-time-token/index.d.mts +128 -0
  336. package/dist/plugins/one-time-token/index.mjs +106 -0
  337. package/dist/plugins/one-time-token/utils.mjs +8 -0
  338. package/dist/plugins/open-api/generator.d.mts +124 -0
  339. package/dist/plugins/open-api/generator.mjs +557 -0
  340. package/dist/plugins/open-api/index.d.mts +93 -0
  341. package/dist/plugins/open-api/index.mjs +64 -0
  342. package/dist/plugins/open-api/logo.mjs +12 -0
  343. package/dist/plugins/organization/access/index.d.mts +2 -0
  344. package/dist/plugins/organization/access/index.mjs +1 -0
  345. package/dist/plugins/organization/access/statement.d.mts +111 -0
  346. package/dist/plugins/organization/access/statement.mjs +76 -0
  347. package/dist/plugins/organization/adapter.d.mts +786 -0
  348. package/dist/plugins/organization/adapter.mjs +821 -0
  349. package/dist/plugins/organization/call.mjs +14 -0
  350. package/dist/plugins/organization/client.d.mts +375 -0
  351. package/dist/plugins/organization/client.mjs +108 -0
  352. package/dist/plugins/organization/error-codes.d.mts +62 -0
  353. package/dist/plugins/organization/error-codes.mjs +65 -0
  354. package/dist/plugins/organization/has-permission.d.mts +12 -0
  355. package/dist/plugins/organization/has-permission.mjs +72 -0
  356. package/dist/plugins/organization/index.d.mts +7 -0
  357. package/dist/plugins/organization/index.mjs +5 -0
  358. package/dist/plugins/organization/organization.d.mts +418 -0
  359. package/dist/plugins/organization/organization.mjs +888 -0
  360. package/dist/plugins/organization/permission.d.mts +12 -0
  361. package/dist/plugins/organization/permission.mjs +13 -0
  362. package/dist/plugins/organization/roles.d.mts +6 -0
  363. package/dist/plugins/organization/roles.mjs +25 -0
  364. package/dist/plugins/organization/routes/crud-access-control.d.mts +509 -0
  365. package/dist/plugins/organization/routes/crud-access-control.mjs +674 -0
  366. package/dist/plugins/organization/routes/crud-invites.d.mts +1173 -0
  367. package/dist/plugins/organization/routes/crud-invites.mjs +619 -0
  368. package/dist/plugins/organization/routes/crud-members.d.mts +1010 -0
  369. package/dist/plugins/organization/routes/crud-members.mjs +515 -0
  370. package/dist/plugins/organization/routes/crud-org.d.mts +914 -0
  371. package/dist/plugins/organization/routes/crud-org.mjs +465 -0
  372. package/dist/plugins/organization/routes/crud-team.d.mts +1235 -0
  373. package/dist/plugins/organization/routes/crud-team.mjs +767 -0
  374. package/dist/plugins/organization/schema.d.mts +388 -0
  375. package/dist/plugins/organization/schema.mjs +64 -0
  376. package/dist/plugins/organization/types.d.mts +688 -0
  377. package/dist/plugins/phone-number/client.d.mts +29 -0
  378. package/dist/plugins/phone-number/client.mjs +18 -0
  379. package/dist/plugins/phone-number/error-codes.d.mts +16 -0
  380. package/dist/plugins/phone-number/error-codes.mjs +19 -0
  381. package/dist/plugins/phone-number/index.d.mts +376 -0
  382. package/dist/plugins/phone-number/index.mjs +72 -0
  383. package/dist/plugins/phone-number/routes.mjs +612 -0
  384. package/dist/plugins/phone-number/schema.d.mts +19 -0
  385. package/dist/plugins/phone-number/schema.mjs +17 -0
  386. package/dist/plugins/phone-number/types.d.mts +119 -0
  387. package/dist/plugins/siwe/client.d.mts +10 -0
  388. package/dist/plugins/siwe/client.mjs +14 -0
  389. package/dist/plugins/siwe/index.d.mts +58 -0
  390. package/dist/plugins/siwe/index.mjs +288 -0
  391. package/dist/plugins/siwe/parse-message.mjs +57 -0
  392. package/dist/plugins/siwe/schema.d.mts +32 -0
  393. package/dist/plugins/siwe/schema.mjs +29 -0
  394. package/dist/plugins/siwe/types.d.mts +41 -0
  395. package/dist/plugins/test-utils/auth-helpers.mjs +34 -0
  396. package/dist/plugins/test-utils/cookie-builder.mjs +54 -0
  397. package/dist/plugins/test-utils/db-helpers.mjs +64 -0
  398. package/dist/plugins/test-utils/factories.mjs +37 -0
  399. package/dist/plugins/test-utils/index.d.mts +69 -0
  400. package/dist/plugins/test-utils/index.mjs +96 -0
  401. package/dist/plugins/test-utils/otp-sink.mjs +20 -0
  402. package/dist/plugins/test-utils/types.d.mts +49 -0
  403. package/dist/plugins/two-factor/backup-codes/index.d.mts +286 -0
  404. package/dist/plugins/two-factor/backup-codes/index.mjs +354 -0
  405. package/dist/plugins/two-factor/claim.d.mts +86 -0
  406. package/dist/plugins/two-factor/claim.mjs +171 -0
  407. package/dist/plugins/two-factor/client.d.mts +76 -0
  408. package/dist/plugins/two-factor/client.mjs +40 -0
  409. package/dist/plugins/two-factor/constant.d.mts +7 -0
  410. package/dist/plugins/two-factor/constant.mjs +12 -0
  411. package/dist/plugins/two-factor/error-code.d.mts +20 -0
  412. package/dist/plugins/two-factor/error-code.mjs +23 -0
  413. package/dist/plugins/two-factor/index.d.mts +746 -0
  414. package/dist/plugins/two-factor/index.mjs +493 -0
  415. package/dist/plugins/two-factor/otp/index.d.mts +211 -0
  416. package/dist/plugins/two-factor/otp/index.mjs +262 -0
  417. package/dist/plugins/two-factor/passkey.mjs +47 -0
  418. package/dist/plugins/two-factor/schema.d.mts +66 -0
  419. package/dist/plugins/two-factor/schema.mjs +66 -0
  420. package/dist/plugins/two-factor/totp/index.d.mts +214 -0
  421. package/dist/plugins/two-factor/totp/index.mjs +290 -0
  422. package/dist/plugins/two-factor/types.d.mts +112 -0
  423. package/dist/plugins/two-factor/utils.mjs +8 -0
  424. package/dist/plugins/two-factor/verify-two-factor.d.mts +121 -0
  425. package/dist/plugins/two-factor/verify-two-factor.mjs +314 -0
  426. package/dist/plugins/username/client.d.mts +34 -0
  427. package/dist/plugins/username/client.mjs +16 -0
  428. package/dist/plugins/username/error-codes.d.mts +11 -0
  429. package/dist/plugins/username/error-codes.mjs +14 -0
  430. package/dist/plugins/username/index.d.mts +319 -0
  431. package/dist/plugins/username/index.mjs +304 -0
  432. package/dist/plugins/username/schema.d.mts +45 -0
  433. package/dist/plugins/username/schema.mjs +24 -0
  434. package/dist/social-providers/index.d.mts +1 -0
  435. package/dist/social-providers/index.mjs +2 -0
  436. package/dist/state.d.mts +48 -0
  437. package/dist/state.mjs +153 -0
  438. package/dist/test-utils/headers.d.mts +5 -0
  439. package/dist/test-utils/headers.mjs +16 -0
  440. package/dist/test-utils/http-test-instance.d.mts +420 -0
  441. package/dist/test-utils/http-test-instance.mjs +106 -0
  442. package/dist/test-utils/index.d.mts +4 -0
  443. package/dist/test-utils/index.mjs +4 -0
  444. package/dist/test-utils/test-instance.d.mts +55 -0
  445. package/dist/test-utils/test-instance.mjs +252 -0
  446. package/dist/types/adapter.d.mts +2 -0
  447. package/dist/types/api.d.mts +24 -0
  448. package/dist/types/auth.d.mts +28 -0
  449. package/dist/types/helper.d.mts +23 -0
  450. package/dist/types/index.d.mts +10 -0
  451. package/dist/types/index.mjs +1 -0
  452. package/dist/types/models.d.mts +7 -0
  453. package/dist/types/plugins.d.mts +16 -0
  454. package/dist/utils/constants.mjs +3 -0
  455. package/dist/utils/date.mjs +5 -0
  456. package/dist/utils/hashing.mjs +17 -0
  457. package/dist/utils/hide-metadata.d.mts +2 -0
  458. package/dist/utils/hide-metadata.mjs +1 -0
  459. package/dist/utils/index.d.mts +5 -0
  460. package/dist/utils/is-api-error.d.mts +2 -0
  461. package/dist/utils/is-api-error.mjs +1 -0
  462. package/dist/utils/is-atom.mjs +5 -0
  463. package/dist/utils/is-promise.mjs +5 -0
  464. package/dist/utils/middleware-response.mjs +9 -0
  465. package/dist/utils/password.mjs +90 -0
  466. package/dist/utils/plugin-helper.mjs +13 -0
  467. package/dist/utils/request.mjs +22 -0
  468. package/dist/utils/shim.mjs +21 -0
  469. package/dist/utils/time.d.mts +46 -0
  470. package/dist/utils/time.mjs +97 -0
  471. package/dist/utils/url.d.mts +74 -0
  472. package/dist/utils/url.mjs +237 -0
  473. package/dist/utils/validate-user-info.mjs +43 -0
  474. package/dist/utils/wildcard.mjs +107 -0
  475. package/dist/version.mjs +4 -0
  476. package/package.json +601 -3
@@ -0,0 +1,4117 @@
1
+ import { OverrideMerge, Prettify as Prettify$1, UnionToIntersection } from "../types/helper.mjs";
2
+ import { AdditionalSessionFieldsInput, AdditionalUserFieldsInput } from "../types/models.mjs";
3
+ import "../index.mjs";
4
+ import "../types/index.mjs";
5
+ import { generateGenericState, parseGenericState } from "../state.mjs";
6
+ import { isAPIError } from "../utils/is-api-error.mjs";
7
+ import { DispatchContext, dispatchAuthEndpoint } from "./dispatch.mjs";
8
+ import { requireOrgRole, requireResourceOwnership } from "./middlewares/authorization.mjs";
9
+ import { formCsrfMiddleware, originCheck, originCheckMiddleware } from "./middlewares/origin-check.mjs";
10
+ import "./middlewares/index.mjs";
11
+ import { accountInfo, getAccessToken, linkSocialAccount, listUserAccounts, refreshToken, unlinkAccount } from "./routes/account.mjs";
12
+ import { callbackOAuth } from "./routes/callback.mjs";
13
+ import { createEmailVerificationToken, sendVerificationEmail, sendVerificationEmailFn, verifyEmail } from "./routes/email-verification.mjs";
14
+ import { error } from "./routes/error.mjs";
15
+ import { consumeIssuedIdTokenNonce, consumeNonce, issueIdTokenNonce, issueNonce, issuedNonceResponses } from "./routes/id-token-nonce.mjs";
16
+ import { ok } from "./routes/ok.mjs";
17
+ import { requestPasswordReset, requestPasswordResetCallback, resetPassword, verifyPassword } from "./routes/password.mjs";
18
+ import { freshSessionMiddleware, getAuthoritativeSessionFromCtx, getSession, getSessionFromCtx, isStateful, listSessions, requestOnlySessionMiddleware, revokeOtherSessions, revokeSession, revokeSessions, sensitiveSessionMiddleware, sessionMiddleware } from "./routes/session.mjs";
19
+ import { signInEmail, signInSocial } from "./routes/sign-in.mjs";
20
+ import { signOut } from "./routes/sign-out.mjs";
21
+ import { signUpEmail } from "./routes/sign-up.mjs";
22
+ import { updateSession } from "./routes/update-session.mjs";
23
+ import { changeEmail, changePassword, deleteUser, deleteUserCallback, setPassword, updateUser } from "./routes/update-user.mjs";
24
+ import "./routes/index.mjs";
25
+ import { addOAuthServerContext, getOAuthState } from "./state/oauth.mjs";
26
+ import { getShouldSkipSessionRefresh, setShouldSkipSessionRefresh } from "./state/should-session-refresh.mjs";
27
+ import { AuthContext, Awaitable, EntroAuthOptions, EntroAuthPlugin } from "@entro314labs/entro-auth-core";
28
+ import { InternalLogger } from "@entro314labs/entro-auth-core/env";
29
+ import { APIError } from "@entro314labs/entro-auth-core/error";
30
+ import { getIP } from "@entro314labs/entro-auth-core/utils/ip";
31
+ import { Middleware } from "better-call";
32
+ import { AuthEndpoint, AuthMiddleware, NO_STORE_HEADERS, createAuthEndpoint, createAuthMiddleware, optionsMiddleware } from "@entro314labs/entro-auth-core/api";
33
+ export declare function checkEndpointConflicts(options: EntroAuthOptions, logger: InternalLogger): void;
34
+ export declare function getEndpoints<Option extends EntroAuthOptions>(ctx: Awaitable<AuthContext>, options: Option): {
35
+ api: OverrideMerge<{
36
+ readonly ok: import("better-call").StrictEndpoint<"/ok", {
37
+ method: "GET";
38
+ metadata: {
39
+ openapi: {
40
+ description: string;
41
+ responses: {
42
+ "200": {
43
+ description: string;
44
+ content: {
45
+ "application/json": {
46
+ schema: {
47
+ type: "object";
48
+ properties: {
49
+ ok: {
50
+ type: string;
51
+ description: string;
52
+ };
53
+ };
54
+ required: string[];
55
+ };
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ scope: "server";
62
+ };
63
+ }, {
64
+ ok: boolean;
65
+ }>;
66
+ readonly error: import("better-call").StrictEndpoint<"/error", {
67
+ method: "GET";
68
+ metadata: {
69
+ openapi: {
70
+ description: string;
71
+ responses: {
72
+ "200": {
73
+ description: string;
74
+ content: {
75
+ "text/html": {
76
+ schema: {
77
+ type: "string";
78
+ description: string;
79
+ };
80
+ };
81
+ };
82
+ };
83
+ };
84
+ };
85
+ scope: "server";
86
+ };
87
+ }, Response>;
88
+ readonly signInSocial: import("better-call").StrictEndpoint<"/sign-in/social", {
89
+ method: "POST";
90
+ operationId: string;
91
+ body: import("zod").ZodObject<{
92
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
93
+ newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
94
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
95
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
96
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
97
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
98
+ token: import("zod").ZodString;
99
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
100
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
101
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
102
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
103
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
104
+ name: import("zod").ZodOptional<import("zod").ZodObject<{
105
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
106
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
107
+ }, import("zod/v4/core").$strip>>;
108
+ email: import("zod").ZodOptional<import("zod").ZodString>;
109
+ }, import("zod/v4/core").$strip>>;
110
+ }, import("zod/v4/core").$strip>>;
111
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
112
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
113
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
114
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
115
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
116
+ }, import("zod/v4/core").$strip>;
117
+ metadata: {
118
+ $Infer: {
119
+ body: import("zod").infer<import("zod").ZodObject<{
120
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
121
+ newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
122
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
123
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
124
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
125
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
126
+ token: import("zod").ZodString;
127
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
128
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
129
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
130
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
131
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
132
+ name: import("zod").ZodOptional<import("zod").ZodObject<{
133
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
134
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
135
+ }, import("zod/v4/core").$strip>>;
136
+ email: import("zod").ZodOptional<import("zod").ZodString>;
137
+ }, import("zod/v4/core").$strip>>;
138
+ }, import("zod/v4/core").$strip>>;
139
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
140
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
141
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
142
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
143
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
144
+ }, import("zod/v4/core").$strip>>;
145
+ returned: {
146
+ redirect: boolean;
147
+ token?: string | undefined;
148
+ url?: string | undefined;
149
+ user?: ({
150
+ id: string;
151
+ createdAt: Date;
152
+ updatedAt: Date;
153
+ email: string;
154
+ emailVerified: boolean;
155
+ name: string;
156
+ image?: string | null | undefined;
157
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T) ? { [K in keyof T]: T[K]; } : never) | undefined;
158
+ };
159
+ };
160
+ openapi: {
161
+ description: string;
162
+ operationId: string;
163
+ responses: {
164
+ "200": {
165
+ description: string;
166
+ content: {
167
+ "application/json": {
168
+ schema: {
169
+ type: "object";
170
+ description: string;
171
+ properties: {
172
+ token: {
173
+ type: string;
174
+ };
175
+ user: {
176
+ type: string;
177
+ $ref: string;
178
+ };
179
+ url: {
180
+ type: string;
181
+ };
182
+ redirect: {
183
+ type: string;
184
+ };
185
+ };
186
+ required: string[];
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ };
193
+ };
194
+ }, {
195
+ redirect: boolean;
196
+ url: string;
197
+ } | {
198
+ redirect: boolean;
199
+ token: string;
200
+ url: undefined;
201
+ user: {
202
+ id: string;
203
+ createdAt: Date;
204
+ updatedAt: Date;
205
+ email: string;
206
+ emailVerified: boolean;
207
+ name: string;
208
+ image?: string | null | undefined;
209
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_1) ? { [K in keyof T_1]: T_1[K]; } : never;
210
+ }>;
211
+ readonly callbackOAuth: import("better-call").StrictEndpoint<"/callback/:id", {
212
+ method: ("POST" | "GET")[];
213
+ operationId: string;
214
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
215
+ code: import("zod").ZodOptional<import("zod").ZodString>;
216
+ error: import("zod").ZodOptional<import("zod").ZodString>;
217
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
218
+ error_description: import("zod").ZodOptional<import("zod").ZodString>;
219
+ state: import("zod").ZodOptional<import("zod").ZodString>;
220
+ user: import("zod").ZodOptional<import("zod").ZodString>;
221
+ iss: import("zod").ZodOptional<import("zod").ZodString>;
222
+ }, import("zod/v4/core").$strip>>;
223
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
224
+ code: import("zod").ZodOptional<import("zod").ZodString>;
225
+ error: import("zod").ZodOptional<import("zod").ZodString>;
226
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
227
+ error_description: import("zod").ZodOptional<import("zod").ZodString>;
228
+ state: import("zod").ZodOptional<import("zod").ZodString>;
229
+ user: import("zod").ZodOptional<import("zod").ZodString>;
230
+ iss: import("zod").ZodOptional<import("zod").ZodString>;
231
+ }, import("zod/v4/core").$strip>>;
232
+ metadata: {
233
+ allowedMediaTypes: string[];
234
+ scope: "server";
235
+ };
236
+ }, void>;
237
+ readonly getSession: import("better-call").StrictEndpoint<"/get-session", {
238
+ method: ("POST" | "GET")[];
239
+ operationId: string;
240
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
241
+ disableCookieCache: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
242
+ disableRefresh: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
243
+ }, import("zod/v4/core").$strip>>;
244
+ requireHeaders: true;
245
+ disableBody: true;
246
+ metadata: {
247
+ openapi: {
248
+ operationId: string;
249
+ description: string;
250
+ responses: {
251
+ "200": {
252
+ description: string;
253
+ content: {
254
+ "application/json": {
255
+ schema: {
256
+ type: "object";
257
+ properties: {
258
+ session: {
259
+ $ref: string;
260
+ };
261
+ user: {
262
+ $ref: string;
263
+ };
264
+ };
265
+ required: string[];
266
+ };
267
+ };
268
+ };
269
+ };
270
+ };
271
+ };
272
+ };
273
+ }, {
274
+ session: {
275
+ id: string;
276
+ createdAt: Date;
277
+ updatedAt: Date;
278
+ userId: string;
279
+ expiresAt: Date;
280
+ token: string;
281
+ ipAddress?: string | null | undefined;
282
+ userAgent?: string | null | undefined;
283
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["session"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"session", Option["plugins"]> extends (infer T_2) ? { [K_1 in keyof T_2]: T_2[K_1]; } : never;
284
+ user: {
285
+ id: string;
286
+ createdAt: Date;
287
+ updatedAt: Date;
288
+ email: string;
289
+ emailVerified: boolean;
290
+ name: string;
291
+ image?: string | null | undefined;
292
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_3) ? { [K in keyof T_3]: T_3[K]; } : never;
293
+ } | null>;
294
+ readonly signOut: import("better-call").StrictEndpoint<"/sign-out", {
295
+ method: "POST";
296
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
297
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
298
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
299
+ state: import("zod").ZodOptional<import("zod").ZodString>;
300
+ }, import("zod/v4/core").$strip>>;
301
+ operationId: string;
302
+ requireHeaders: true;
303
+ metadata: {
304
+ openapi: {
305
+ operationId: string;
306
+ description: string;
307
+ responses: {
308
+ "200": {
309
+ description: string;
310
+ content: {
311
+ "application/json": {
312
+ schema: {
313
+ type: "object";
314
+ properties: {
315
+ success: {
316
+ type: string;
317
+ };
318
+ url: {
319
+ type: string;
320
+ description: string;
321
+ };
322
+ redirect: {
323
+ type: string;
324
+ description: string;
325
+ };
326
+ };
327
+ };
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ }, {
335
+ success: boolean;
336
+ url: string | undefined;
337
+ redirect: boolean | undefined;
338
+ }>;
339
+ readonly signUpEmail: import("better-call").StrictEndpoint<"/sign-up/email", {
340
+ method: "POST";
341
+ operationId: string;
342
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
343
+ body: import("zod").ZodIntersection<import("zod").ZodObject<{
344
+ name: import("zod").ZodString;
345
+ email: import("zod").ZodEmail;
346
+ password: import("zod").ZodString;
347
+ image: import("zod").ZodOptional<import("zod").ZodString>;
348
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
349
+ rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
350
+ }, import("zod/v4/core").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
351
+ cloneRequest: true;
352
+ metadata: {
353
+ allowedMediaTypes: string[];
354
+ $Infer: {
355
+ body: {
356
+ name: string;
357
+ email: string;
358
+ password: string;
359
+ image?: string | undefined;
360
+ callbackURL?: string | undefined;
361
+ rememberMe?: boolean | undefined;
362
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPluginsInput<"user", Option["plugins"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptionsInput<Option["user"]>;
363
+ returned: {
364
+ token: string | null;
365
+ user: {
366
+ id: string;
367
+ createdAt: Date;
368
+ updatedAt: Date;
369
+ email: string;
370
+ emailVerified: boolean;
371
+ name: string;
372
+ image?: string | null | undefined;
373
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_4) ? { [K in keyof T_4]: T_4[K]; } : never;
374
+ };
375
+ };
376
+ openapi: {
377
+ operationId: string;
378
+ description: string;
379
+ requestBody: {
380
+ content: {
381
+ "application/json": {
382
+ schema: {
383
+ type: "object";
384
+ properties: {
385
+ name: {
386
+ type: string;
387
+ description: string;
388
+ };
389
+ email: {
390
+ type: string;
391
+ description: string;
392
+ };
393
+ password: {
394
+ type: string;
395
+ description: string;
396
+ };
397
+ image: {
398
+ type: string;
399
+ description: string;
400
+ };
401
+ callbackURL: {
402
+ type: string;
403
+ description: string;
404
+ };
405
+ rememberMe: {
406
+ type: string;
407
+ description: string;
408
+ };
409
+ };
410
+ required: string[];
411
+ };
412
+ };
413
+ };
414
+ };
415
+ responses: {
416
+ "200": {
417
+ description: string;
418
+ content: {
419
+ "application/json": {
420
+ schema: {
421
+ type: "object";
422
+ properties: {
423
+ token: {
424
+ type: string;
425
+ nullable: boolean;
426
+ description: string;
427
+ };
428
+ user: {
429
+ type: string;
430
+ properties: {
431
+ id: {
432
+ type: string;
433
+ description: string;
434
+ };
435
+ email: {
436
+ type: string;
437
+ format: string;
438
+ description: string;
439
+ };
440
+ name: {
441
+ type: string;
442
+ description: string;
443
+ };
444
+ image: {
445
+ type: string;
446
+ format: string;
447
+ nullable: boolean;
448
+ description: string;
449
+ };
450
+ emailVerified: {
451
+ type: string;
452
+ description: string;
453
+ };
454
+ createdAt: {
455
+ type: string;
456
+ format: string;
457
+ description: string;
458
+ };
459
+ updatedAt: {
460
+ type: string;
461
+ format: string;
462
+ description: string;
463
+ };
464
+ };
465
+ required: string[];
466
+ };
467
+ };
468
+ required: string[];
469
+ };
470
+ };
471
+ };
472
+ };
473
+ "422": {
474
+ description: string;
475
+ content: {
476
+ "application/json": {
477
+ schema: {
478
+ type: "object";
479
+ properties: {
480
+ message: {
481
+ type: string;
482
+ };
483
+ };
484
+ };
485
+ };
486
+ };
487
+ };
488
+ };
489
+ };
490
+ };
491
+ }, {
492
+ token: null;
493
+ user: {
494
+ id: string;
495
+ createdAt: Date;
496
+ updatedAt: Date;
497
+ email: string;
498
+ emailVerified: boolean;
499
+ name: string;
500
+ image?: string | null | undefined;
501
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_5) ? { [K in keyof T_5]: T_5[K]; } : never;
502
+ } | {
503
+ token: string;
504
+ user: {
505
+ id: string;
506
+ createdAt: Date;
507
+ updatedAt: Date;
508
+ email: string;
509
+ emailVerified: boolean;
510
+ name: string;
511
+ image?: string | null | undefined;
512
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_6) ? { [K in keyof T_6]: T_6[K]; } : never;
513
+ }>;
514
+ readonly signInEmail: import("better-call").StrictEndpoint<"/sign-in/email", {
515
+ method: "POST";
516
+ operationId: string;
517
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
518
+ cloneRequest: true;
519
+ body: import("zod").ZodObject<{
520
+ email: import("zod").ZodString;
521
+ password: import("zod").ZodString;
522
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
523
+ rememberMe: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
524
+ }, import("zod/v4/core").$strip>;
525
+ metadata: {
526
+ allowedMediaTypes: string[];
527
+ $Infer: {
528
+ body: {
529
+ email: string;
530
+ password: string;
531
+ callbackURL?: string | undefined;
532
+ rememberMe?: boolean | undefined;
533
+ };
534
+ returned: {
535
+ redirect: boolean;
536
+ token: string;
537
+ url?: string | undefined;
538
+ user: {
539
+ id: string;
540
+ createdAt: Date;
541
+ updatedAt: Date;
542
+ email: string;
543
+ emailVerified: boolean;
544
+ name: string;
545
+ image?: string | null | undefined;
546
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_7) ? { [K in keyof T_7]: T_7[K]; } : never;
547
+ };
548
+ };
549
+ openapi: {
550
+ operationId: string;
551
+ description: string;
552
+ responses: {
553
+ "200": {
554
+ description: string;
555
+ content: {
556
+ "application/json": {
557
+ schema: {
558
+ type: "object";
559
+ description: string;
560
+ properties: {
561
+ redirect: {
562
+ type: string;
563
+ enum: boolean[];
564
+ };
565
+ token: {
566
+ type: string;
567
+ description: string;
568
+ };
569
+ url: {
570
+ type: string;
571
+ nullable: boolean;
572
+ };
573
+ user: {
574
+ type: string;
575
+ $ref: string;
576
+ };
577
+ };
578
+ required: string[];
579
+ };
580
+ };
581
+ };
582
+ };
583
+ };
584
+ };
585
+ };
586
+ }, {
587
+ redirect: boolean;
588
+ token: string;
589
+ url?: string | undefined;
590
+ user: {
591
+ id: string;
592
+ createdAt: Date;
593
+ updatedAt: Date;
594
+ email: string;
595
+ emailVerified: boolean;
596
+ name: string;
597
+ image?: string | null | undefined;
598
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_8) ? { [K in keyof T_8]: T_8[K]; } : never;
599
+ }>;
600
+ readonly resetPassword: import("better-call").StrictEndpoint<"/reset-password", {
601
+ method: "POST";
602
+ operationId: string;
603
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
604
+ token: import("zod").ZodOptional<import("zod").ZodString>;
605
+ }, import("zod/v4/core").$strip>>;
606
+ body: import("zod").ZodObject<{
607
+ newPassword: import("zod").ZodString;
608
+ token: import("zod").ZodOptional<import("zod").ZodString>;
609
+ }, import("zod/v4/core").$strip>;
610
+ metadata: {
611
+ openapi: {
612
+ operationId: string;
613
+ description: string;
614
+ responses: {
615
+ "200": {
616
+ description: string;
617
+ content: {
618
+ "application/json": {
619
+ schema: {
620
+ type: "object";
621
+ properties: {
622
+ status: {
623
+ type: string;
624
+ };
625
+ };
626
+ };
627
+ };
628
+ };
629
+ };
630
+ };
631
+ };
632
+ };
633
+ }, {
634
+ status: boolean;
635
+ }>;
636
+ readonly verifyPassword: import("better-call").StrictEndpoint<"/verify-password", {
637
+ method: "POST";
638
+ body: import("zod").ZodObject<{
639
+ password: import("zod").ZodString;
640
+ }, import("zod/v4/core").$strip>;
641
+ metadata: {
642
+ scope: "server";
643
+ openapi: {
644
+ operationId: string;
645
+ description: string;
646
+ responses: {
647
+ "200": {
648
+ description: string;
649
+ content: {
650
+ "application/json": {
651
+ schema: {
652
+ type: "object";
653
+ properties: {
654
+ status: {
655
+ type: string;
656
+ };
657
+ };
658
+ };
659
+ };
660
+ };
661
+ };
662
+ };
663
+ };
664
+ };
665
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
666
+ session: {
667
+ session: Record<string, any> & {
668
+ id: string;
669
+ createdAt: Date;
670
+ updatedAt: Date;
671
+ userId: string;
672
+ expiresAt: Date;
673
+ token: string;
674
+ ipAddress?: string | null | undefined;
675
+ userAgent?: string | null | undefined;
676
+ };
677
+ user: Record<string, any> & {
678
+ id: string;
679
+ createdAt: Date;
680
+ updatedAt: Date;
681
+ email: string;
682
+ emailVerified: boolean;
683
+ name: string;
684
+ image?: string | null | undefined;
685
+ };
686
+ };
687
+ }>>[];
688
+ }, {
689
+ status: boolean;
690
+ }>;
691
+ readonly verifyEmail: import("better-call").StrictEndpoint<"/verify-email", {
692
+ method: "GET";
693
+ operationId: string;
694
+ query: import("zod").ZodObject<{
695
+ token: import("zod").ZodString;
696
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
697
+ }, import("zod/v4/core").$strip>;
698
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
699
+ metadata: {
700
+ openapi: {
701
+ description: string;
702
+ parameters: ({
703
+ name: string;
704
+ in: "query";
705
+ description: string;
706
+ required: true;
707
+ schema: {
708
+ type: "string";
709
+ };
710
+ } | {
711
+ name: string;
712
+ in: "query";
713
+ description: string;
714
+ required: false;
715
+ schema: {
716
+ type: "string";
717
+ };
718
+ })[];
719
+ responses: {
720
+ "200": {
721
+ description: string;
722
+ content: {
723
+ "application/json": {
724
+ schema: {
725
+ type: "object";
726
+ properties: {
727
+ user: {
728
+ type: string;
729
+ $ref: string;
730
+ };
731
+ status: {
732
+ type: string;
733
+ description: string;
734
+ };
735
+ };
736
+ required: string[];
737
+ };
738
+ };
739
+ };
740
+ };
741
+ };
742
+ };
743
+ };
744
+ }, void | {
745
+ status: boolean;
746
+ }>;
747
+ readonly sendVerificationEmail: import("better-call").StrictEndpoint<"/send-verification-email", {
748
+ method: "POST";
749
+ operationId: string;
750
+ cloneRequest: true;
751
+ body: import("zod").ZodObject<{
752
+ email: import("zod").ZodEmail;
753
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
754
+ }, import("zod/v4/core").$strip>;
755
+ metadata: {
756
+ openapi: {
757
+ operationId: string;
758
+ description: string;
759
+ requestBody: {
760
+ content: {
761
+ "application/json": {
762
+ schema: {
763
+ type: "object";
764
+ properties: {
765
+ email: {
766
+ type: string;
767
+ description: string;
768
+ example: string;
769
+ };
770
+ callbackURL: {
771
+ type: string;
772
+ description: string;
773
+ example: string;
774
+ nullable: boolean;
775
+ };
776
+ };
777
+ required: string[];
778
+ };
779
+ };
780
+ };
781
+ };
782
+ responses: {
783
+ "200": {
784
+ description: string;
785
+ content: {
786
+ "application/json": {
787
+ schema: {
788
+ type: "object";
789
+ properties: {
790
+ status: {
791
+ type: string;
792
+ description: string;
793
+ example: boolean;
794
+ };
795
+ };
796
+ };
797
+ };
798
+ };
799
+ };
800
+ "400": {
801
+ description: string;
802
+ content: {
803
+ "application/json": {
804
+ schema: {
805
+ type: "object";
806
+ properties: {
807
+ message: {
808
+ type: string;
809
+ description: string;
810
+ example: string;
811
+ };
812
+ };
813
+ };
814
+ };
815
+ };
816
+ };
817
+ };
818
+ };
819
+ };
820
+ }, {
821
+ status: boolean;
822
+ }>;
823
+ readonly changeEmail: import("better-call").StrictEndpoint<"/change-email", {
824
+ method: "POST";
825
+ body: import("zod").ZodObject<{
826
+ newEmail: import("zod").ZodEmail;
827
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
828
+ }, import("zod/v4/core").$strip>;
829
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
830
+ session: {
831
+ session: Record<string, any> & {
832
+ id: string;
833
+ createdAt: Date;
834
+ updatedAt: Date;
835
+ userId: string;
836
+ expiresAt: Date;
837
+ token: string;
838
+ ipAddress?: string | null | undefined;
839
+ userAgent?: string | null | undefined;
840
+ };
841
+ user: Record<string, any> & {
842
+ id: string;
843
+ createdAt: Date;
844
+ updatedAt: Date;
845
+ email: string;
846
+ emailVerified: boolean;
847
+ name: string;
848
+ image?: string | null | undefined;
849
+ };
850
+ };
851
+ }>>[];
852
+ metadata: {
853
+ openapi: {
854
+ operationId: string;
855
+ responses: {
856
+ "200": {
857
+ description: string;
858
+ content: {
859
+ "application/json": {
860
+ schema: {
861
+ type: "object";
862
+ properties: {
863
+ user: {
864
+ type: string;
865
+ $ref: string;
866
+ };
867
+ status: {
868
+ type: string;
869
+ description: string;
870
+ };
871
+ message: {
872
+ type: string;
873
+ enum: string[];
874
+ description: string;
875
+ nullable: boolean;
876
+ };
877
+ };
878
+ required: string[];
879
+ };
880
+ };
881
+ };
882
+ };
883
+ };
884
+ };
885
+ };
886
+ }, {
887
+ status: boolean;
888
+ }>;
889
+ readonly changePassword: import("better-call").StrictEndpoint<"/change-password", {
890
+ method: "POST";
891
+ operationId: string;
892
+ body: import("zod").ZodObject<{
893
+ newPassword: import("zod").ZodString;
894
+ currentPassword: import("zod").ZodString;
895
+ revokeOtherSessions: import("zod").ZodOptional<import("zod").ZodBoolean>;
896
+ }, import("zod/v4/core").$strip>;
897
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
898
+ session: {
899
+ session: Record<string, any> & {
900
+ id: string;
901
+ createdAt: Date;
902
+ updatedAt: Date;
903
+ userId: string;
904
+ expiresAt: Date;
905
+ token: string;
906
+ ipAddress?: string | null | undefined;
907
+ userAgent?: string | null | undefined;
908
+ };
909
+ user: Record<string, any> & {
910
+ id: string;
911
+ createdAt: Date;
912
+ updatedAt: Date;
913
+ email: string;
914
+ emailVerified: boolean;
915
+ name: string;
916
+ image?: string | null | undefined;
917
+ };
918
+ };
919
+ }>>[];
920
+ metadata: {
921
+ openapi: {
922
+ operationId: string;
923
+ description: string;
924
+ responses: {
925
+ "200": {
926
+ description: string;
927
+ content: {
928
+ "application/json": {
929
+ schema: {
930
+ type: "object";
931
+ properties: {
932
+ token: {
933
+ type: string;
934
+ nullable: boolean;
935
+ description: string;
936
+ };
937
+ user: {
938
+ type: string;
939
+ properties: {
940
+ id: {
941
+ type: string;
942
+ description: string;
943
+ };
944
+ email: {
945
+ type: string;
946
+ format: string;
947
+ description: string;
948
+ };
949
+ name: {
950
+ type: string;
951
+ description: string;
952
+ };
953
+ image: {
954
+ type: string;
955
+ format: string;
956
+ nullable: boolean;
957
+ description: string;
958
+ };
959
+ emailVerified: {
960
+ type: string;
961
+ description: string;
962
+ };
963
+ createdAt: {
964
+ type: string;
965
+ format: string;
966
+ description: string;
967
+ };
968
+ updatedAt: {
969
+ type: string;
970
+ format: string;
971
+ description: string;
972
+ };
973
+ };
974
+ required: string[];
975
+ };
976
+ };
977
+ required: string[];
978
+ };
979
+ };
980
+ };
981
+ };
982
+ };
983
+ };
984
+ };
985
+ }, {
986
+ token: string | null;
987
+ user: {
988
+ id: string;
989
+ createdAt: Date;
990
+ updatedAt: Date;
991
+ email: string;
992
+ emailVerified: boolean;
993
+ name: string;
994
+ image?: string | null | undefined;
995
+ } & Record<string, any> & {
996
+ id: string;
997
+ createdAt: Date;
998
+ updatedAt: Date;
999
+ email: string;
1000
+ emailVerified: boolean;
1001
+ name: string;
1002
+ image?: string | null | undefined;
1003
+ };
1004
+ }>;
1005
+ readonly setPassword: import("better-call").StrictEndpoint<string, {
1006
+ method: "POST";
1007
+ body: import("zod").ZodObject<{
1008
+ newPassword: import("zod").ZodString;
1009
+ }, import("zod/v4/core").$strip>;
1010
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1011
+ session: {
1012
+ session: Record<string, any> & {
1013
+ id: string;
1014
+ createdAt: Date;
1015
+ updatedAt: Date;
1016
+ userId: string;
1017
+ expiresAt: Date;
1018
+ token: string;
1019
+ ipAddress?: string | null | undefined;
1020
+ userAgent?: string | null | undefined;
1021
+ };
1022
+ user: Record<string, any> & {
1023
+ id: string;
1024
+ createdAt: Date;
1025
+ updatedAt: Date;
1026
+ email: string;
1027
+ emailVerified: boolean;
1028
+ name: string;
1029
+ image?: string | null | undefined;
1030
+ };
1031
+ };
1032
+ }>>[];
1033
+ }, {
1034
+ status: boolean;
1035
+ }>;
1036
+ readonly updateSession: import("better-call").StrictEndpoint<"/update-session", {
1037
+ method: "POST";
1038
+ operationId: string;
1039
+ body: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
1040
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1041
+ session: {
1042
+ session: Record<string, any> & {
1043
+ id: string;
1044
+ createdAt: Date;
1045
+ updatedAt: Date;
1046
+ userId: string;
1047
+ expiresAt: Date;
1048
+ token: string;
1049
+ ipAddress?: string | null | undefined;
1050
+ userAgent?: string | null | undefined;
1051
+ };
1052
+ user: Record<string, any> & {
1053
+ id: string;
1054
+ createdAt: Date;
1055
+ updatedAt: Date;
1056
+ email: string;
1057
+ emailVerified: boolean;
1058
+ name: string;
1059
+ image?: string | null | undefined;
1060
+ };
1061
+ };
1062
+ }>>[];
1063
+ metadata: {
1064
+ $Infer: {
1065
+ body: Partial<AdditionalSessionFieldsInput<Option>>;
1066
+ };
1067
+ openapi: {
1068
+ operationId: string;
1069
+ description: string;
1070
+ responses: {
1071
+ "200": {
1072
+ description: string;
1073
+ content: {
1074
+ "application/json": {
1075
+ schema: {
1076
+ type: "object";
1077
+ properties: {
1078
+ session: {
1079
+ type: string;
1080
+ $ref: string;
1081
+ };
1082
+ };
1083
+ };
1084
+ };
1085
+ };
1086
+ };
1087
+ };
1088
+ };
1089
+ };
1090
+ }, {
1091
+ session: {
1092
+ id: string;
1093
+ createdAt: Date;
1094
+ updatedAt: Date;
1095
+ userId: string;
1096
+ expiresAt: Date;
1097
+ token: string;
1098
+ ipAddress?: string | null | undefined;
1099
+ userAgent?: string | null | undefined;
1100
+ };
1101
+ }>;
1102
+ readonly updateUser: import("better-call").StrictEndpoint<"/update-user", {
1103
+ method: "POST";
1104
+ operationId: string;
1105
+ body: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
1106
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1107
+ session: {
1108
+ session: Record<string, any> & {
1109
+ id: string;
1110
+ createdAt: Date;
1111
+ updatedAt: Date;
1112
+ userId: string;
1113
+ expiresAt: Date;
1114
+ token: string;
1115
+ ipAddress?: string | null | undefined;
1116
+ userAgent?: string | null | undefined;
1117
+ };
1118
+ user: Record<string, any> & {
1119
+ id: string;
1120
+ createdAt: Date;
1121
+ updatedAt: Date;
1122
+ email: string;
1123
+ emailVerified: boolean;
1124
+ name: string;
1125
+ image?: string | null | undefined;
1126
+ };
1127
+ };
1128
+ }>>[];
1129
+ metadata: {
1130
+ $Infer: {
1131
+ body: Partial<AdditionalUserFieldsInput<Option>> & {
1132
+ name?: string | undefined;
1133
+ image?: string | undefined | null;
1134
+ };
1135
+ };
1136
+ openapi: {
1137
+ operationId: string;
1138
+ description: string;
1139
+ requestBody: {
1140
+ content: {
1141
+ "application/json": {
1142
+ schema: {
1143
+ type: "object";
1144
+ properties: {
1145
+ name: {
1146
+ type: string;
1147
+ description: string;
1148
+ };
1149
+ image: {
1150
+ type: string;
1151
+ description: string;
1152
+ nullable: boolean;
1153
+ };
1154
+ };
1155
+ };
1156
+ };
1157
+ };
1158
+ };
1159
+ responses: {
1160
+ "200": {
1161
+ description: string;
1162
+ content: {
1163
+ "application/json": {
1164
+ schema: {
1165
+ type: "object";
1166
+ properties: {
1167
+ user: {
1168
+ type: string;
1169
+ $ref: string;
1170
+ };
1171
+ };
1172
+ };
1173
+ };
1174
+ };
1175
+ };
1176
+ };
1177
+ };
1178
+ };
1179
+ }, {
1180
+ status: boolean;
1181
+ }>;
1182
+ readonly deleteUser: import("better-call").StrictEndpoint<"/delete-user", {
1183
+ method: "POST";
1184
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1185
+ session: {
1186
+ session: Record<string, any> & {
1187
+ id: string;
1188
+ createdAt: Date;
1189
+ updatedAt: Date;
1190
+ userId: string;
1191
+ expiresAt: Date;
1192
+ token: string;
1193
+ ipAddress?: string | null | undefined;
1194
+ userAgent?: string | null | undefined;
1195
+ };
1196
+ user: Record<string, any> & {
1197
+ id: string;
1198
+ createdAt: Date;
1199
+ updatedAt: Date;
1200
+ email: string;
1201
+ emailVerified: boolean;
1202
+ name: string;
1203
+ image?: string | null | undefined;
1204
+ };
1205
+ };
1206
+ }>>[];
1207
+ body: import("zod").ZodObject<{
1208
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1209
+ password: import("zod").ZodOptional<import("zod").ZodString>;
1210
+ token: import("zod").ZodOptional<import("zod").ZodString>;
1211
+ }, import("zod/v4/core").$strip>;
1212
+ metadata: {
1213
+ openapi: {
1214
+ operationId: string;
1215
+ description: string;
1216
+ requestBody: {
1217
+ content: {
1218
+ "application/json": {
1219
+ schema: {
1220
+ type: "object";
1221
+ properties: {
1222
+ callbackURL: {
1223
+ type: string;
1224
+ description: string;
1225
+ };
1226
+ password: {
1227
+ type: string;
1228
+ description: string;
1229
+ };
1230
+ token: {
1231
+ type: string;
1232
+ description: string;
1233
+ };
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1238
+ };
1239
+ responses: {
1240
+ "200": {
1241
+ description: string;
1242
+ content: {
1243
+ "application/json": {
1244
+ schema: {
1245
+ type: "object";
1246
+ properties: {
1247
+ success: {
1248
+ type: string;
1249
+ description: string;
1250
+ };
1251
+ message: {
1252
+ type: string;
1253
+ enum: string[];
1254
+ description: string;
1255
+ };
1256
+ };
1257
+ required: string[];
1258
+ };
1259
+ };
1260
+ };
1261
+ };
1262
+ };
1263
+ };
1264
+ };
1265
+ }, {
1266
+ success: boolean;
1267
+ message: string;
1268
+ }>;
1269
+ readonly requestPasswordReset: import("better-call").StrictEndpoint<"/request-password-reset", {
1270
+ method: "POST";
1271
+ body: import("zod").ZodObject<{
1272
+ email: import("zod").ZodEmail;
1273
+ redirectTo: import("zod").ZodOptional<import("zod").ZodString>;
1274
+ }, import("zod/v4/core").$strip>;
1275
+ metadata: {
1276
+ openapi: {
1277
+ operationId: string;
1278
+ description: string;
1279
+ responses: {
1280
+ "200": {
1281
+ description: string;
1282
+ content: {
1283
+ "application/json": {
1284
+ schema: {
1285
+ type: "object";
1286
+ properties: {
1287
+ status: {
1288
+ type: string;
1289
+ };
1290
+ message: {
1291
+ type: string;
1292
+ };
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ };
1300
+ };
1301
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
1302
+ }, {
1303
+ status: boolean;
1304
+ message: string;
1305
+ }>;
1306
+ readonly requestPasswordResetCallback: import("better-call").StrictEndpoint<"/reset-password/:token", {
1307
+ method: "GET";
1308
+ operationId: string;
1309
+ query: import("zod").ZodObject<{
1310
+ callbackURL: import("zod").ZodString;
1311
+ }, import("zod/v4/core").$strip>;
1312
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
1313
+ metadata: {
1314
+ openapi: {
1315
+ operationId: string;
1316
+ description: string;
1317
+ parameters: ({
1318
+ name: string;
1319
+ in: "path";
1320
+ required: true;
1321
+ description: string;
1322
+ schema: {
1323
+ type: "string";
1324
+ };
1325
+ } | {
1326
+ name: string;
1327
+ in: "query";
1328
+ required: true;
1329
+ description: string;
1330
+ schema: {
1331
+ type: "string";
1332
+ };
1333
+ })[];
1334
+ responses: {
1335
+ "200": {
1336
+ description: string;
1337
+ content: {
1338
+ "application/json": {
1339
+ schema: {
1340
+ type: "object";
1341
+ properties: {
1342
+ token: {
1343
+ type: string;
1344
+ };
1345
+ };
1346
+ };
1347
+ };
1348
+ };
1349
+ };
1350
+ };
1351
+ };
1352
+ };
1353
+ }, never>;
1354
+ readonly listSessions: import("better-call").StrictEndpoint<"/list-sessions", {
1355
+ method: "GET";
1356
+ operationId: string;
1357
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1358
+ session: {
1359
+ session: Record<string, any> & {
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
+ user: Record<string, any> & {
1370
+ id: string;
1371
+ createdAt: Date;
1372
+ updatedAt: Date;
1373
+ email: string;
1374
+ emailVerified: boolean;
1375
+ name: string;
1376
+ image?: string | null | undefined;
1377
+ };
1378
+ };
1379
+ }>>[];
1380
+ requireHeaders: true;
1381
+ metadata: {
1382
+ openapi: {
1383
+ operationId: string;
1384
+ description: string;
1385
+ responses: {
1386
+ "200": {
1387
+ description: string;
1388
+ content: {
1389
+ "application/json": {
1390
+ schema: {
1391
+ type: "array";
1392
+ items: {
1393
+ $ref: string;
1394
+ };
1395
+ };
1396
+ };
1397
+ };
1398
+ };
1399
+ };
1400
+ };
1401
+ };
1402
+ }, Prettify$1<{
1403
+ id: string;
1404
+ createdAt: Date;
1405
+ updatedAt: Date;
1406
+ userId: string;
1407
+ expiresAt: Date;
1408
+ token: string;
1409
+ ipAddress?: string | null | undefined;
1410
+ userAgent?: string | null | undefined;
1411
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["session"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"session", Option["plugins"]> extends (infer T_9) ? { [K_1 in keyof T_9]: T_9[K_1]; } : never>[]>;
1412
+ readonly revokeSession: import("better-call").StrictEndpoint<"/revoke-session", {
1413
+ method: "POST";
1414
+ body: import("zod").ZodObject<{
1415
+ token: import("zod").ZodString;
1416
+ }, import("zod/v4/core").$strip>;
1417
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1418
+ session: {
1419
+ session: Record<string, any> & {
1420
+ id: string;
1421
+ createdAt: Date;
1422
+ updatedAt: Date;
1423
+ userId: string;
1424
+ expiresAt: Date;
1425
+ token: string;
1426
+ ipAddress?: string | null | undefined;
1427
+ userAgent?: string | null | undefined;
1428
+ };
1429
+ user: Record<string, any> & {
1430
+ id: string;
1431
+ createdAt: Date;
1432
+ updatedAt: Date;
1433
+ email: string;
1434
+ emailVerified: boolean;
1435
+ name: string;
1436
+ image?: string | null | undefined;
1437
+ };
1438
+ };
1439
+ }>>[];
1440
+ requireHeaders: true;
1441
+ metadata: {
1442
+ openapi: {
1443
+ description: string;
1444
+ requestBody: {
1445
+ content: {
1446
+ "application/json": {
1447
+ schema: {
1448
+ type: "object";
1449
+ properties: {
1450
+ token: {
1451
+ type: string;
1452
+ description: string;
1453
+ };
1454
+ };
1455
+ required: string[];
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ responses: {
1461
+ "200": {
1462
+ description: string;
1463
+ content: {
1464
+ "application/json": {
1465
+ schema: {
1466
+ type: "object";
1467
+ properties: {
1468
+ status: {
1469
+ type: string;
1470
+ description: string;
1471
+ };
1472
+ };
1473
+ required: string[];
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1479
+ };
1480
+ };
1481
+ }, {
1482
+ status: boolean;
1483
+ }>;
1484
+ readonly revokeSessions: import("better-call").StrictEndpoint<"/revoke-sessions", {
1485
+ method: "POST";
1486
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1487
+ session: {
1488
+ session: Record<string, any> & {
1489
+ id: string;
1490
+ createdAt: Date;
1491
+ updatedAt: Date;
1492
+ userId: string;
1493
+ expiresAt: Date;
1494
+ token: string;
1495
+ ipAddress?: string | null | undefined;
1496
+ userAgent?: string | null | undefined;
1497
+ };
1498
+ user: Record<string, any> & {
1499
+ id: string;
1500
+ createdAt: Date;
1501
+ updatedAt: Date;
1502
+ email: string;
1503
+ emailVerified: boolean;
1504
+ name: string;
1505
+ image?: string | null | undefined;
1506
+ };
1507
+ };
1508
+ }>>[];
1509
+ requireHeaders: true;
1510
+ metadata: {
1511
+ openapi: {
1512
+ description: string;
1513
+ responses: {
1514
+ "200": {
1515
+ description: string;
1516
+ content: {
1517
+ "application/json": {
1518
+ schema: {
1519
+ type: "object";
1520
+ properties: {
1521
+ status: {
1522
+ type: string;
1523
+ description: string;
1524
+ };
1525
+ };
1526
+ required: string[];
1527
+ };
1528
+ };
1529
+ };
1530
+ };
1531
+ };
1532
+ };
1533
+ };
1534
+ }, {
1535
+ status: boolean;
1536
+ }>;
1537
+ readonly revokeOtherSessions: import("better-call").StrictEndpoint<"/revoke-other-sessions", {
1538
+ method: "POST";
1539
+ requireHeaders: true;
1540
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1541
+ session: {
1542
+ session: Record<string, any> & {
1543
+ id: string;
1544
+ createdAt: Date;
1545
+ updatedAt: Date;
1546
+ userId: string;
1547
+ expiresAt: Date;
1548
+ token: string;
1549
+ ipAddress?: string | null | undefined;
1550
+ userAgent?: string | null | undefined;
1551
+ };
1552
+ user: Record<string, any> & {
1553
+ id: string;
1554
+ createdAt: Date;
1555
+ updatedAt: Date;
1556
+ email: string;
1557
+ emailVerified: boolean;
1558
+ name: string;
1559
+ image?: string | null | undefined;
1560
+ };
1561
+ };
1562
+ }>>[];
1563
+ metadata: {
1564
+ openapi: {
1565
+ description: string;
1566
+ responses: {
1567
+ "200": {
1568
+ description: string;
1569
+ content: {
1570
+ "application/json": {
1571
+ schema: {
1572
+ type: "object";
1573
+ properties: {
1574
+ status: {
1575
+ type: string;
1576
+ description: string;
1577
+ };
1578
+ };
1579
+ required: string[];
1580
+ };
1581
+ };
1582
+ };
1583
+ };
1584
+ };
1585
+ };
1586
+ };
1587
+ }, {
1588
+ status: boolean;
1589
+ }>;
1590
+ readonly linkSocialAccount: import("better-call").StrictEndpoint<"/link-social", {
1591
+ method: "POST";
1592
+ requireHeaders: true;
1593
+ body: import("zod").ZodObject<{
1594
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1595
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
1596
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
1597
+ token: import("zod").ZodString;
1598
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
1599
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
1600
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
1601
+ }, import("zod/v4/core").$strip>>;
1602
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
1603
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1604
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1605
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
1606
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
1607
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1608
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1609
+ }, import("zod/v4/core").$strip>;
1610
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1611
+ session: {
1612
+ session: Record<string, any> & {
1613
+ id: string;
1614
+ createdAt: Date;
1615
+ updatedAt: Date;
1616
+ userId: string;
1617
+ expiresAt: Date;
1618
+ token: string;
1619
+ ipAddress?: string | null | undefined;
1620
+ userAgent?: string | null | undefined;
1621
+ };
1622
+ user: Record<string, any> & {
1623
+ id: string;
1624
+ createdAt: Date;
1625
+ updatedAt: Date;
1626
+ email: string;
1627
+ emailVerified: boolean;
1628
+ name: string;
1629
+ image?: string | null | undefined;
1630
+ };
1631
+ };
1632
+ }>>[];
1633
+ metadata: {
1634
+ openapi: {
1635
+ description: string;
1636
+ operationId: string;
1637
+ responses: {
1638
+ "200": {
1639
+ description: string;
1640
+ content: {
1641
+ "application/json": {
1642
+ schema: {
1643
+ type: "object";
1644
+ properties: {
1645
+ url: {
1646
+ type: string;
1647
+ description: string;
1648
+ };
1649
+ redirect: {
1650
+ type: string;
1651
+ description: string;
1652
+ };
1653
+ status: {
1654
+ type: string;
1655
+ };
1656
+ };
1657
+ required: string[];
1658
+ };
1659
+ };
1660
+ };
1661
+ };
1662
+ };
1663
+ };
1664
+ };
1665
+ }, {
1666
+ url: string;
1667
+ redirect: boolean;
1668
+ }>;
1669
+ readonly issueIdTokenNonce: import("better-call").StrictEndpoint<"/id-token/nonce", {
1670
+ method: "POST";
1671
+ body: import("zod").ZodObject<{
1672
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
1673
+ }, import("zod/v4/core").$strip>;
1674
+ metadata: {
1675
+ noStore: boolean;
1676
+ openapi: {
1677
+ description: string;
1678
+ responses: {
1679
+ 200: {
1680
+ description: string;
1681
+ content: {
1682
+ "application/json": {
1683
+ schema: {
1684
+ type: "object";
1685
+ properties: {
1686
+ nonce: {
1687
+ type: "string";
1688
+ };
1689
+ };
1690
+ required: string[];
1691
+ };
1692
+ };
1693
+ };
1694
+ };
1695
+ };
1696
+ };
1697
+ };
1698
+ }, {
1699
+ nonce: string;
1700
+ }>;
1701
+ readonly listUserAccounts: import("better-call").StrictEndpoint<"/list-accounts", {
1702
+ method: "GET";
1703
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1704
+ session: {
1705
+ session: Record<string, any> & {
1706
+ id: string;
1707
+ createdAt: Date;
1708
+ updatedAt: Date;
1709
+ userId: string;
1710
+ expiresAt: Date;
1711
+ token: string;
1712
+ ipAddress?: string | null | undefined;
1713
+ userAgent?: string | null | undefined;
1714
+ };
1715
+ user: Record<string, any> & {
1716
+ id: string;
1717
+ createdAt: Date;
1718
+ updatedAt: Date;
1719
+ email: string;
1720
+ emailVerified: boolean;
1721
+ name: string;
1722
+ image?: string | null | undefined;
1723
+ };
1724
+ };
1725
+ }>>[];
1726
+ metadata: {
1727
+ openapi: {
1728
+ operationId: string;
1729
+ description: string;
1730
+ responses: {
1731
+ "200": {
1732
+ description: string;
1733
+ content: {
1734
+ "application/json": {
1735
+ schema: {
1736
+ type: "array";
1737
+ items: {
1738
+ type: string;
1739
+ properties: {
1740
+ id: {
1741
+ type: string;
1742
+ };
1743
+ providerId: {
1744
+ type: string;
1745
+ };
1746
+ createdAt: {
1747
+ type: string;
1748
+ format: string;
1749
+ };
1750
+ updatedAt: {
1751
+ type: string;
1752
+ format: string;
1753
+ };
1754
+ accountId: {
1755
+ type: string;
1756
+ };
1757
+ userId: {
1758
+ type: string;
1759
+ };
1760
+ scopes: {
1761
+ type: string;
1762
+ items: {
1763
+ type: string;
1764
+ };
1765
+ };
1766
+ };
1767
+ required: string[];
1768
+ };
1769
+ };
1770
+ };
1771
+ };
1772
+ };
1773
+ };
1774
+ };
1775
+ };
1776
+ }, {
1777
+ scopes: string[];
1778
+ id: string;
1779
+ createdAt: Date;
1780
+ updatedAt: Date;
1781
+ providerId: string;
1782
+ accountId: string;
1783
+ userId: string;
1784
+ }[]>;
1785
+ readonly deleteUserCallback: import("better-call").StrictEndpoint<"/delete-user/callback", {
1786
+ method: "GET";
1787
+ query: import("zod").ZodObject<{
1788
+ token: import("zod").ZodString;
1789
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1790
+ }, import("zod/v4/core").$strip>;
1791
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
1792
+ metadata: {
1793
+ openapi: {
1794
+ description: string;
1795
+ responses: {
1796
+ "200": {
1797
+ description: string;
1798
+ content: {
1799
+ "application/json": {
1800
+ schema: {
1801
+ type: "object";
1802
+ properties: {
1803
+ success: {
1804
+ type: string;
1805
+ description: string;
1806
+ };
1807
+ message: {
1808
+ type: string;
1809
+ enum: string[];
1810
+ description: string;
1811
+ };
1812
+ };
1813
+ required: string[];
1814
+ };
1815
+ };
1816
+ };
1817
+ };
1818
+ };
1819
+ };
1820
+ };
1821
+ }, {
1822
+ success: boolean;
1823
+ message: string;
1824
+ }>;
1825
+ readonly unlinkAccount: import("better-call").StrictEndpoint<"/unlink-account", {
1826
+ method: "POST";
1827
+ body: import("zod").ZodObject<{
1828
+ accountId: import("zod").ZodString;
1829
+ }, import("zod/v4/core").$strip>;
1830
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1831
+ session: {
1832
+ session: Record<string, any> & {
1833
+ id: string;
1834
+ createdAt: Date;
1835
+ updatedAt: Date;
1836
+ userId: string;
1837
+ expiresAt: Date;
1838
+ token: string;
1839
+ ipAddress?: string | null | undefined;
1840
+ userAgent?: string | null | undefined;
1841
+ };
1842
+ user: Record<string, any> & {
1843
+ id: string;
1844
+ createdAt: Date;
1845
+ updatedAt: Date;
1846
+ email: string;
1847
+ emailVerified: boolean;
1848
+ name: string;
1849
+ image?: string | null | undefined;
1850
+ };
1851
+ };
1852
+ }>>[];
1853
+ metadata: {
1854
+ openapi: {
1855
+ description: string;
1856
+ responses: {
1857
+ "200": {
1858
+ description: string;
1859
+ content: {
1860
+ "application/json": {
1861
+ schema: {
1862
+ type: "object";
1863
+ properties: {
1864
+ status: {
1865
+ type: string;
1866
+ };
1867
+ };
1868
+ };
1869
+ };
1870
+ };
1871
+ };
1872
+ };
1873
+ };
1874
+ };
1875
+ }, {
1876
+ status: boolean;
1877
+ }>;
1878
+ readonly refreshToken: import("better-call").StrictEndpoint<"/refresh-token", {
1879
+ method: "POST";
1880
+ body: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1881
+ accountId: import("zod").ZodString;
1882
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
1883
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1884
+ useAccountCookie: import("zod").ZodLiteral<true>;
1885
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
1886
+ }, import("zod/v4/core").$strict>]>;
1887
+ metadata: {
1888
+ openapi: {
1889
+ description: string;
1890
+ responses: {
1891
+ 200: {
1892
+ description: string;
1893
+ content: {
1894
+ "application/json": {
1895
+ schema: {
1896
+ type: "object";
1897
+ properties: {
1898
+ tokenType: {
1899
+ type: string;
1900
+ };
1901
+ idToken: {
1902
+ type: string;
1903
+ };
1904
+ accessToken: {
1905
+ type: string;
1906
+ };
1907
+ refreshToken: {
1908
+ type: string;
1909
+ };
1910
+ accessTokenExpiresAt: {
1911
+ type: string;
1912
+ format: string;
1913
+ };
1914
+ refreshTokenExpiresAt: {
1915
+ type: string;
1916
+ format: string;
1917
+ };
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ };
1923
+ 400: {
1924
+ description: string;
1925
+ };
1926
+ };
1927
+ };
1928
+ };
1929
+ }, {
1930
+ accessToken: string | undefined;
1931
+ refreshToken: string;
1932
+ accessTokenExpiresAt: Date | undefined;
1933
+ refreshTokenExpiresAt: Date | null | undefined;
1934
+ scope: string | null | undefined;
1935
+ idToken: string | null | undefined;
1936
+ providerId: string;
1937
+ accountId: string;
1938
+ }>;
1939
+ readonly getAccessToken: import("better-call").StrictEndpoint<"/get-access-token", {
1940
+ method: "POST";
1941
+ body: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1942
+ accountId: import("zod").ZodString;
1943
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
1944
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1945
+ useAccountCookie: import("zod").ZodLiteral<true>;
1946
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
1947
+ }, import("zod/v4/core").$strict>]>;
1948
+ metadata: {
1949
+ openapi: {
1950
+ description: string;
1951
+ responses: {
1952
+ 200: {
1953
+ description: string;
1954
+ content: {
1955
+ "application/json": {
1956
+ schema: {
1957
+ type: "object";
1958
+ properties: {
1959
+ tokenType: {
1960
+ type: string;
1961
+ };
1962
+ idToken: {
1963
+ type: string;
1964
+ };
1965
+ accessToken: {
1966
+ type: string;
1967
+ };
1968
+ accessTokenExpiresAt: {
1969
+ type: string;
1970
+ format: string;
1971
+ };
1972
+ };
1973
+ };
1974
+ };
1975
+ };
1976
+ };
1977
+ 400: {
1978
+ description: string;
1979
+ };
1980
+ };
1981
+ };
1982
+ };
1983
+ }, {
1984
+ accessToken: string;
1985
+ accessTokenExpiresAt: Date | undefined;
1986
+ scopes: string[];
1987
+ idToken: string | undefined;
1988
+ }>;
1989
+ readonly accountInfo: import("better-call").StrictEndpoint<"/account-info", {
1990
+ method: "GET";
1991
+ metadata: {
1992
+ openapi: {
1993
+ description: string;
1994
+ responses: {
1995
+ "200": {
1996
+ description: string;
1997
+ content: {
1998
+ "application/json": {
1999
+ schema: {
2000
+ type: "object";
2001
+ properties: {
2002
+ user: {
2003
+ type: string;
2004
+ properties: {
2005
+ name: {
2006
+ type: string;
2007
+ };
2008
+ email: {
2009
+ type: string;
2010
+ nullable: boolean;
2011
+ };
2012
+ image: {
2013
+ type: string;
2014
+ };
2015
+ emailVerified: {
2016
+ type: string;
2017
+ };
2018
+ };
2019
+ required: string[];
2020
+ };
2021
+ account: {
2022
+ type: string;
2023
+ properties: {
2024
+ id: {
2025
+ type: string;
2026
+ };
2027
+ providerId: {
2028
+ type: string;
2029
+ };
2030
+ accountId: {
2031
+ type: string;
2032
+ };
2033
+ };
2034
+ required: string[];
2035
+ additionalProperties: boolean;
2036
+ };
2037
+ data: {
2038
+ type: string;
2039
+ properties: {};
2040
+ additionalProperties: boolean;
2041
+ };
2042
+ };
2043
+ required: string[];
2044
+ additionalProperties: boolean;
2045
+ };
2046
+ };
2047
+ };
2048
+ };
2049
+ };
2050
+ };
2051
+ };
2052
+ query: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2053
+ accountId: import("zod").ZodString;
2054
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
2055
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2056
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
2057
+ useAccountCookie: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<true>, import("zod").ZodLiteral<"true">]>, import("zod").ZodTransform<true, true | "true">>;
2058
+ }, import("zod/v4/core").$strict>]>;
2059
+ }, {
2060
+ account: {
2061
+ id: string;
2062
+ providerId: string;
2063
+ accountId: string;
2064
+ };
2065
+ user: import("@entro314labs/entro-auth-core/oauth2").OAuth2UserInfo;
2066
+ data: object;
2067
+ }>;
2068
+ }, UnionToIntersection<Option["plugins"] extends (infer T_10)[] ? T_10 extends EntroAuthPlugin ? T_10 extends {
2069
+ endpoints: infer E;
2070
+ } ? E : {} : {} : {}>>;
2071
+ middlewares: {
2072
+ path: string;
2073
+ middleware: Middleware;
2074
+ }[];
2075
+ };
2076
+ export declare const router: <Option extends EntroAuthOptions>(ctx: AuthContext, options: Option) => {
2077
+ handler: (request: Request) => Promise<Response>;
2078
+ endpoints: UnionToIntersection<Option["plugins"] extends (infer T)[] ? T extends EntroAuthPlugin ? T extends {
2079
+ endpoints: infer E;
2080
+ } ? E : {} : {} : {}> extends (infer T_1) ? T_1 extends UnionToIntersection<Option["plugins"] extends (infer T)[] ? T extends EntroAuthPlugin ? T extends {
2081
+ endpoints: infer E;
2082
+ } ? E : {} : {} : {}> ? T_1 extends unknown ? Prettify$1<({
2083
+ readonly ok: import("better-call").StrictEndpoint<"/ok", {
2084
+ method: "GET";
2085
+ metadata: {
2086
+ openapi: {
2087
+ description: string;
2088
+ responses: {
2089
+ "200": {
2090
+ description: string;
2091
+ content: {
2092
+ "application/json": {
2093
+ schema: {
2094
+ type: "object";
2095
+ properties: {
2096
+ ok: {
2097
+ type: string;
2098
+ description: string;
2099
+ };
2100
+ };
2101
+ required: string[];
2102
+ };
2103
+ };
2104
+ };
2105
+ };
2106
+ };
2107
+ };
2108
+ scope: "server";
2109
+ };
2110
+ }, {
2111
+ ok: boolean;
2112
+ }>;
2113
+ readonly error: import("better-call").StrictEndpoint<"/error", {
2114
+ method: "GET";
2115
+ metadata: {
2116
+ openapi: {
2117
+ description: string;
2118
+ responses: {
2119
+ "200": {
2120
+ description: string;
2121
+ content: {
2122
+ "text/html": {
2123
+ schema: {
2124
+ type: "string";
2125
+ description: string;
2126
+ };
2127
+ };
2128
+ };
2129
+ };
2130
+ };
2131
+ };
2132
+ scope: "server";
2133
+ };
2134
+ }, Response>;
2135
+ readonly signInSocial: import("better-call").StrictEndpoint<"/sign-in/social", {
2136
+ method: "POST";
2137
+ operationId: string;
2138
+ body: import("zod").ZodObject<{
2139
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2140
+ newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2141
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2142
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
2143
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
2144
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
2145
+ token: import("zod").ZodString;
2146
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
2147
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
2148
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
2149
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2150
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
2151
+ name: import("zod").ZodOptional<import("zod").ZodObject<{
2152
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
2153
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
2154
+ }, import("zod/v4/core").$strip>>;
2155
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2156
+ }, import("zod/v4/core").$strip>>;
2157
+ }, import("zod/v4/core").$strip>>;
2158
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2159
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
2160
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
2161
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2162
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2163
+ }, import("zod/v4/core").$strip>;
2164
+ metadata: {
2165
+ $Infer: {
2166
+ body: import("zod").infer<import("zod").ZodObject<{
2167
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2168
+ newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2169
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2170
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
2171
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
2172
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
2173
+ token: import("zod").ZodString;
2174
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
2175
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
2176
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
2177
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2178
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
2179
+ name: import("zod").ZodOptional<import("zod").ZodObject<{
2180
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
2181
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
2182
+ }, import("zod/v4/core").$strip>>;
2183
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2184
+ }, import("zod/v4/core").$strip>>;
2185
+ }, import("zod/v4/core").$strip>>;
2186
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2187
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
2188
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
2189
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2190
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2191
+ }, import("zod/v4/core").$strip>>;
2192
+ returned: {
2193
+ redirect: boolean;
2194
+ token?: string | undefined;
2195
+ url?: string | undefined;
2196
+ user?: ({
2197
+ id: string;
2198
+ createdAt: Date;
2199
+ updatedAt: Date;
2200
+ email: string;
2201
+ emailVerified: boolean;
2202
+ name: string;
2203
+ image?: string | null | undefined;
2204
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_3) ? { [K_1 in keyof T_3]: T_3[K_1]; } : never) | undefined;
2205
+ };
2206
+ };
2207
+ openapi: {
2208
+ description: string;
2209
+ operationId: string;
2210
+ responses: {
2211
+ "200": {
2212
+ description: string;
2213
+ content: {
2214
+ "application/json": {
2215
+ schema: {
2216
+ type: "object";
2217
+ description: string;
2218
+ properties: {
2219
+ token: {
2220
+ type: string;
2221
+ };
2222
+ user: {
2223
+ type: string;
2224
+ $ref: string;
2225
+ };
2226
+ url: {
2227
+ type: string;
2228
+ };
2229
+ redirect: {
2230
+ type: string;
2231
+ };
2232
+ };
2233
+ required: string[];
2234
+ };
2235
+ };
2236
+ };
2237
+ };
2238
+ };
2239
+ };
2240
+ };
2241
+ }, {
2242
+ redirect: boolean;
2243
+ url: string;
2244
+ } | {
2245
+ redirect: boolean;
2246
+ token: string;
2247
+ url: undefined;
2248
+ user: {
2249
+ id: string;
2250
+ createdAt: Date;
2251
+ updatedAt: Date;
2252
+ email: string;
2253
+ emailVerified: boolean;
2254
+ name: string;
2255
+ image?: string | null | undefined;
2256
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_4) ? { [K_1 in keyof T_4]: T_4[K_1]; } : never;
2257
+ }>;
2258
+ readonly callbackOAuth: import("better-call").StrictEndpoint<"/callback/:id", {
2259
+ method: ("POST" | "GET")[];
2260
+ operationId: string;
2261
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
2262
+ code: import("zod").ZodOptional<import("zod").ZodString>;
2263
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2264
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
2265
+ error_description: import("zod").ZodOptional<import("zod").ZodString>;
2266
+ state: import("zod").ZodOptional<import("zod").ZodString>;
2267
+ user: import("zod").ZodOptional<import("zod").ZodString>;
2268
+ iss: import("zod").ZodOptional<import("zod").ZodString>;
2269
+ }, import("zod/v4/core").$strip>>;
2270
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
2271
+ code: import("zod").ZodOptional<import("zod").ZodString>;
2272
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2273
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
2274
+ error_description: import("zod").ZodOptional<import("zod").ZodString>;
2275
+ state: import("zod").ZodOptional<import("zod").ZodString>;
2276
+ user: import("zod").ZodOptional<import("zod").ZodString>;
2277
+ iss: import("zod").ZodOptional<import("zod").ZodString>;
2278
+ }, import("zod/v4/core").$strip>>;
2279
+ metadata: {
2280
+ allowedMediaTypes: string[];
2281
+ scope: "server";
2282
+ };
2283
+ }, void>;
2284
+ readonly getSession: import("better-call").StrictEndpoint<"/get-session", {
2285
+ method: ("POST" | "GET")[];
2286
+ operationId: string;
2287
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
2288
+ disableCookieCache: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
2289
+ disableRefresh: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
2290
+ }, import("zod/v4/core").$strip>>;
2291
+ requireHeaders: true;
2292
+ disableBody: true;
2293
+ metadata: {
2294
+ openapi: {
2295
+ operationId: string;
2296
+ description: string;
2297
+ responses: {
2298
+ "200": {
2299
+ description: string;
2300
+ content: {
2301
+ "application/json": {
2302
+ schema: {
2303
+ type: "object";
2304
+ properties: {
2305
+ session: {
2306
+ $ref: string;
2307
+ };
2308
+ user: {
2309
+ $ref: string;
2310
+ };
2311
+ };
2312
+ required: string[];
2313
+ };
2314
+ };
2315
+ };
2316
+ };
2317
+ };
2318
+ };
2319
+ };
2320
+ }, {
2321
+ session: {
2322
+ id: string;
2323
+ createdAt: Date;
2324
+ updatedAt: Date;
2325
+ userId: string;
2326
+ expiresAt: Date;
2327
+ token: string;
2328
+ ipAddress?: string | null | undefined;
2329
+ userAgent?: string | null | undefined;
2330
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["session"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"session", Option["plugins"]> extends (infer T_5) ? { [K_2 in keyof T_5]: T_5[K_2]; } : never;
2331
+ user: {
2332
+ id: string;
2333
+ createdAt: Date;
2334
+ updatedAt: Date;
2335
+ email: string;
2336
+ emailVerified: boolean;
2337
+ name: string;
2338
+ image?: string | null | undefined;
2339
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_6) ? { [K_1 in keyof T_6]: T_6[K_1]; } : never;
2340
+ } | null>;
2341
+ readonly signOut: import("better-call").StrictEndpoint<"/sign-out", {
2342
+ method: "POST";
2343
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
2344
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2345
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
2346
+ state: import("zod").ZodOptional<import("zod").ZodString>;
2347
+ }, import("zod/v4/core").$strip>>;
2348
+ operationId: string;
2349
+ requireHeaders: true;
2350
+ metadata: {
2351
+ openapi: {
2352
+ operationId: string;
2353
+ description: string;
2354
+ responses: {
2355
+ "200": {
2356
+ description: string;
2357
+ content: {
2358
+ "application/json": {
2359
+ schema: {
2360
+ type: "object";
2361
+ properties: {
2362
+ success: {
2363
+ type: string;
2364
+ };
2365
+ url: {
2366
+ type: string;
2367
+ description: string;
2368
+ };
2369
+ redirect: {
2370
+ type: string;
2371
+ description: string;
2372
+ };
2373
+ };
2374
+ };
2375
+ };
2376
+ };
2377
+ };
2378
+ };
2379
+ };
2380
+ };
2381
+ }, {
2382
+ success: boolean;
2383
+ url: string | undefined;
2384
+ redirect: boolean | undefined;
2385
+ }>;
2386
+ readonly signUpEmail: import("better-call").StrictEndpoint<"/sign-up/email", {
2387
+ method: "POST";
2388
+ operationId: string;
2389
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
2390
+ body: import("zod").ZodIntersection<import("zod").ZodObject<{
2391
+ name: import("zod").ZodString;
2392
+ email: import("zod").ZodEmail;
2393
+ password: import("zod").ZodString;
2394
+ image: import("zod").ZodOptional<import("zod").ZodString>;
2395
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2396
+ rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
2397
+ }, import("zod/v4/core").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2398
+ cloneRequest: true;
2399
+ metadata: {
2400
+ allowedMediaTypes: string[];
2401
+ $Infer: {
2402
+ body: {
2403
+ name: string;
2404
+ email: string;
2405
+ password: string;
2406
+ image?: string | undefined;
2407
+ callbackURL?: string | undefined;
2408
+ rememberMe?: boolean | undefined;
2409
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPluginsInput<"user", Option["plugins"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptionsInput<Option["user"]>;
2410
+ returned: {
2411
+ token: string | null;
2412
+ user: {
2413
+ id: string;
2414
+ createdAt: Date;
2415
+ updatedAt: Date;
2416
+ email: string;
2417
+ emailVerified: boolean;
2418
+ name: string;
2419
+ image?: string | null | undefined;
2420
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_7) ? { [K_1 in keyof T_7]: T_7[K_1]; } : never;
2421
+ };
2422
+ };
2423
+ openapi: {
2424
+ operationId: string;
2425
+ description: string;
2426
+ requestBody: {
2427
+ content: {
2428
+ "application/json": {
2429
+ schema: {
2430
+ type: "object";
2431
+ properties: {
2432
+ name: {
2433
+ type: string;
2434
+ description: string;
2435
+ };
2436
+ email: {
2437
+ type: string;
2438
+ description: string;
2439
+ };
2440
+ password: {
2441
+ type: string;
2442
+ description: string;
2443
+ };
2444
+ image: {
2445
+ type: string;
2446
+ description: string;
2447
+ };
2448
+ callbackURL: {
2449
+ type: string;
2450
+ description: string;
2451
+ };
2452
+ rememberMe: {
2453
+ type: string;
2454
+ description: string;
2455
+ };
2456
+ };
2457
+ required: string[];
2458
+ };
2459
+ };
2460
+ };
2461
+ };
2462
+ responses: {
2463
+ "200": {
2464
+ description: string;
2465
+ content: {
2466
+ "application/json": {
2467
+ schema: {
2468
+ type: "object";
2469
+ properties: {
2470
+ token: {
2471
+ type: string;
2472
+ nullable: boolean;
2473
+ description: string;
2474
+ };
2475
+ user: {
2476
+ type: string;
2477
+ properties: {
2478
+ id: {
2479
+ type: string;
2480
+ description: string;
2481
+ };
2482
+ email: {
2483
+ type: string;
2484
+ format: string;
2485
+ description: string;
2486
+ };
2487
+ name: {
2488
+ type: string;
2489
+ description: string;
2490
+ };
2491
+ image: {
2492
+ type: string;
2493
+ format: string;
2494
+ nullable: boolean;
2495
+ description: string;
2496
+ };
2497
+ emailVerified: {
2498
+ type: string;
2499
+ description: string;
2500
+ };
2501
+ createdAt: {
2502
+ type: string;
2503
+ format: string;
2504
+ description: string;
2505
+ };
2506
+ updatedAt: {
2507
+ type: string;
2508
+ format: string;
2509
+ description: string;
2510
+ };
2511
+ };
2512
+ required: string[];
2513
+ };
2514
+ };
2515
+ required: string[];
2516
+ };
2517
+ };
2518
+ };
2519
+ };
2520
+ "422": {
2521
+ description: string;
2522
+ content: {
2523
+ "application/json": {
2524
+ schema: {
2525
+ type: "object";
2526
+ properties: {
2527
+ message: {
2528
+ type: string;
2529
+ };
2530
+ };
2531
+ };
2532
+ };
2533
+ };
2534
+ };
2535
+ };
2536
+ };
2537
+ };
2538
+ }, {
2539
+ token: null;
2540
+ user: {
2541
+ id: string;
2542
+ createdAt: Date;
2543
+ updatedAt: Date;
2544
+ email: string;
2545
+ emailVerified: boolean;
2546
+ name: string;
2547
+ image?: string | null | undefined;
2548
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_8) ? { [K_1 in keyof T_8]: T_8[K_1]; } : never;
2549
+ } | {
2550
+ token: string;
2551
+ user: {
2552
+ id: string;
2553
+ createdAt: Date;
2554
+ updatedAt: Date;
2555
+ email: string;
2556
+ emailVerified: boolean;
2557
+ name: string;
2558
+ image?: string | null | undefined;
2559
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_9) ? { [K_1 in keyof T_9]: T_9[K_1]; } : never;
2560
+ }>;
2561
+ readonly signInEmail: import("better-call").StrictEndpoint<"/sign-in/email", {
2562
+ method: "POST";
2563
+ operationId: string;
2564
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
2565
+ cloneRequest: true;
2566
+ body: import("zod").ZodObject<{
2567
+ email: import("zod").ZodString;
2568
+ password: import("zod").ZodString;
2569
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2570
+ rememberMe: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2571
+ }, import("zod/v4/core").$strip>;
2572
+ metadata: {
2573
+ allowedMediaTypes: string[];
2574
+ $Infer: {
2575
+ body: {
2576
+ email: string;
2577
+ password: string;
2578
+ callbackURL?: string | undefined;
2579
+ rememberMe?: boolean | undefined;
2580
+ };
2581
+ returned: {
2582
+ redirect: boolean;
2583
+ token: string;
2584
+ url?: string | undefined;
2585
+ user: {
2586
+ id: string;
2587
+ createdAt: Date;
2588
+ updatedAt: Date;
2589
+ email: string;
2590
+ emailVerified: boolean;
2591
+ name: string;
2592
+ image?: string | null | undefined;
2593
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_10) ? { [K_1 in keyof T_10]: T_10[K_1]; } : never;
2594
+ };
2595
+ };
2596
+ openapi: {
2597
+ operationId: string;
2598
+ description: string;
2599
+ responses: {
2600
+ "200": {
2601
+ description: string;
2602
+ content: {
2603
+ "application/json": {
2604
+ schema: {
2605
+ type: "object";
2606
+ description: string;
2607
+ properties: {
2608
+ redirect: {
2609
+ type: string;
2610
+ enum: boolean[];
2611
+ };
2612
+ token: {
2613
+ type: string;
2614
+ description: string;
2615
+ };
2616
+ url: {
2617
+ type: string;
2618
+ nullable: boolean;
2619
+ };
2620
+ user: {
2621
+ type: string;
2622
+ $ref: string;
2623
+ };
2624
+ };
2625
+ required: string[];
2626
+ };
2627
+ };
2628
+ };
2629
+ };
2630
+ };
2631
+ };
2632
+ };
2633
+ }, {
2634
+ redirect: boolean;
2635
+ token: string;
2636
+ url?: string | undefined;
2637
+ user: {
2638
+ id: string;
2639
+ createdAt: Date;
2640
+ updatedAt: Date;
2641
+ email: string;
2642
+ emailVerified: boolean;
2643
+ name: string;
2644
+ image?: string | null | undefined;
2645
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["user"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"user", Option["plugins"]> extends (infer T_11) ? { [K_1 in keyof T_11]: T_11[K_1]; } : never;
2646
+ }>;
2647
+ readonly resetPassword: import("better-call").StrictEndpoint<"/reset-password", {
2648
+ method: "POST";
2649
+ operationId: string;
2650
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
2651
+ token: import("zod").ZodOptional<import("zod").ZodString>;
2652
+ }, import("zod/v4/core").$strip>>;
2653
+ body: import("zod").ZodObject<{
2654
+ newPassword: import("zod").ZodString;
2655
+ token: import("zod").ZodOptional<import("zod").ZodString>;
2656
+ }, import("zod/v4/core").$strip>;
2657
+ metadata: {
2658
+ openapi: {
2659
+ operationId: string;
2660
+ description: string;
2661
+ responses: {
2662
+ "200": {
2663
+ description: string;
2664
+ content: {
2665
+ "application/json": {
2666
+ schema: {
2667
+ type: "object";
2668
+ properties: {
2669
+ status: {
2670
+ type: string;
2671
+ };
2672
+ };
2673
+ };
2674
+ };
2675
+ };
2676
+ };
2677
+ };
2678
+ };
2679
+ };
2680
+ }, {
2681
+ status: boolean;
2682
+ }>;
2683
+ readonly verifyPassword: import("better-call").StrictEndpoint<"/verify-password", {
2684
+ method: "POST";
2685
+ body: import("zod").ZodObject<{
2686
+ password: import("zod").ZodString;
2687
+ }, import("zod/v4/core").$strip>;
2688
+ metadata: {
2689
+ scope: "server";
2690
+ openapi: {
2691
+ operationId: string;
2692
+ description: string;
2693
+ responses: {
2694
+ "200": {
2695
+ description: string;
2696
+ content: {
2697
+ "application/json": {
2698
+ schema: {
2699
+ type: "object";
2700
+ properties: {
2701
+ status: {
2702
+ type: string;
2703
+ };
2704
+ };
2705
+ };
2706
+ };
2707
+ };
2708
+ };
2709
+ };
2710
+ };
2711
+ };
2712
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2713
+ session: {
2714
+ session: Record<string, any> & {
2715
+ id: string;
2716
+ createdAt: Date;
2717
+ updatedAt: Date;
2718
+ userId: string;
2719
+ expiresAt: Date;
2720
+ token: string;
2721
+ ipAddress?: string | null | undefined;
2722
+ userAgent?: string | null | undefined;
2723
+ };
2724
+ user: Record<string, any> & {
2725
+ id: string;
2726
+ createdAt: Date;
2727
+ updatedAt: Date;
2728
+ email: string;
2729
+ emailVerified: boolean;
2730
+ name: string;
2731
+ image?: string | null | undefined;
2732
+ };
2733
+ };
2734
+ }>>[];
2735
+ }, {
2736
+ status: boolean;
2737
+ }>;
2738
+ readonly verifyEmail: import("better-call").StrictEndpoint<"/verify-email", {
2739
+ method: "GET";
2740
+ operationId: string;
2741
+ query: import("zod").ZodObject<{
2742
+ token: import("zod").ZodString;
2743
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2744
+ }, import("zod/v4/core").$strip>;
2745
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
2746
+ metadata: {
2747
+ openapi: {
2748
+ description: string;
2749
+ parameters: ({
2750
+ name: string;
2751
+ in: "query";
2752
+ description: string;
2753
+ required: true;
2754
+ schema: {
2755
+ type: "string";
2756
+ };
2757
+ } | {
2758
+ name: string;
2759
+ in: "query";
2760
+ description: string;
2761
+ required: false;
2762
+ schema: {
2763
+ type: "string";
2764
+ };
2765
+ })[];
2766
+ responses: {
2767
+ "200": {
2768
+ description: string;
2769
+ content: {
2770
+ "application/json": {
2771
+ schema: {
2772
+ type: "object";
2773
+ properties: {
2774
+ user: {
2775
+ type: string;
2776
+ $ref: string;
2777
+ };
2778
+ status: {
2779
+ type: string;
2780
+ description: string;
2781
+ };
2782
+ };
2783
+ required: string[];
2784
+ };
2785
+ };
2786
+ };
2787
+ };
2788
+ };
2789
+ };
2790
+ };
2791
+ }, void | {
2792
+ status: boolean;
2793
+ }>;
2794
+ readonly sendVerificationEmail: import("better-call").StrictEndpoint<"/send-verification-email", {
2795
+ method: "POST";
2796
+ operationId: string;
2797
+ cloneRequest: true;
2798
+ body: import("zod").ZodObject<{
2799
+ email: import("zod").ZodEmail;
2800
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2801
+ }, import("zod/v4/core").$strip>;
2802
+ metadata: {
2803
+ openapi: {
2804
+ operationId: string;
2805
+ description: string;
2806
+ requestBody: {
2807
+ content: {
2808
+ "application/json": {
2809
+ schema: {
2810
+ type: "object";
2811
+ properties: {
2812
+ email: {
2813
+ type: string;
2814
+ description: string;
2815
+ example: string;
2816
+ };
2817
+ callbackURL: {
2818
+ type: string;
2819
+ description: string;
2820
+ example: string;
2821
+ nullable: boolean;
2822
+ };
2823
+ };
2824
+ required: string[];
2825
+ };
2826
+ };
2827
+ };
2828
+ };
2829
+ responses: {
2830
+ "200": {
2831
+ description: string;
2832
+ content: {
2833
+ "application/json": {
2834
+ schema: {
2835
+ type: "object";
2836
+ properties: {
2837
+ status: {
2838
+ type: string;
2839
+ description: string;
2840
+ example: boolean;
2841
+ };
2842
+ };
2843
+ };
2844
+ };
2845
+ };
2846
+ };
2847
+ "400": {
2848
+ description: string;
2849
+ content: {
2850
+ "application/json": {
2851
+ schema: {
2852
+ type: "object";
2853
+ properties: {
2854
+ message: {
2855
+ type: string;
2856
+ description: string;
2857
+ example: string;
2858
+ };
2859
+ };
2860
+ };
2861
+ };
2862
+ };
2863
+ };
2864
+ };
2865
+ };
2866
+ };
2867
+ }, {
2868
+ status: boolean;
2869
+ }>;
2870
+ readonly changeEmail: import("better-call").StrictEndpoint<"/change-email", {
2871
+ method: "POST";
2872
+ body: import("zod").ZodObject<{
2873
+ newEmail: import("zod").ZodEmail;
2874
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
2875
+ }, import("zod/v4/core").$strip>;
2876
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2877
+ session: {
2878
+ session: Record<string, any> & {
2879
+ id: string;
2880
+ createdAt: Date;
2881
+ updatedAt: Date;
2882
+ userId: string;
2883
+ expiresAt: Date;
2884
+ token: string;
2885
+ ipAddress?: string | null | undefined;
2886
+ userAgent?: string | null | undefined;
2887
+ };
2888
+ user: Record<string, any> & {
2889
+ id: string;
2890
+ createdAt: Date;
2891
+ updatedAt: Date;
2892
+ email: string;
2893
+ emailVerified: boolean;
2894
+ name: string;
2895
+ image?: string | null | undefined;
2896
+ };
2897
+ };
2898
+ }>>[];
2899
+ metadata: {
2900
+ openapi: {
2901
+ operationId: string;
2902
+ responses: {
2903
+ "200": {
2904
+ description: string;
2905
+ content: {
2906
+ "application/json": {
2907
+ schema: {
2908
+ type: "object";
2909
+ properties: {
2910
+ user: {
2911
+ type: string;
2912
+ $ref: string;
2913
+ };
2914
+ status: {
2915
+ type: string;
2916
+ description: string;
2917
+ };
2918
+ message: {
2919
+ type: string;
2920
+ enum: string[];
2921
+ description: string;
2922
+ nullable: boolean;
2923
+ };
2924
+ };
2925
+ required: string[];
2926
+ };
2927
+ };
2928
+ };
2929
+ };
2930
+ };
2931
+ };
2932
+ };
2933
+ }, {
2934
+ status: boolean;
2935
+ }>;
2936
+ readonly changePassword: import("better-call").StrictEndpoint<"/change-password", {
2937
+ method: "POST";
2938
+ operationId: string;
2939
+ body: import("zod").ZodObject<{
2940
+ newPassword: import("zod").ZodString;
2941
+ currentPassword: import("zod").ZodString;
2942
+ revokeOtherSessions: import("zod").ZodOptional<import("zod").ZodBoolean>;
2943
+ }, import("zod/v4/core").$strip>;
2944
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2945
+ session: {
2946
+ session: Record<string, any> & {
2947
+ id: string;
2948
+ createdAt: Date;
2949
+ updatedAt: Date;
2950
+ userId: string;
2951
+ expiresAt: Date;
2952
+ token: string;
2953
+ ipAddress?: string | null | undefined;
2954
+ userAgent?: string | null | undefined;
2955
+ };
2956
+ user: Record<string, any> & {
2957
+ id: string;
2958
+ createdAt: Date;
2959
+ updatedAt: Date;
2960
+ email: string;
2961
+ emailVerified: boolean;
2962
+ name: string;
2963
+ image?: string | null | undefined;
2964
+ };
2965
+ };
2966
+ }>>[];
2967
+ metadata: {
2968
+ openapi: {
2969
+ operationId: string;
2970
+ description: string;
2971
+ responses: {
2972
+ "200": {
2973
+ description: string;
2974
+ content: {
2975
+ "application/json": {
2976
+ schema: {
2977
+ type: "object";
2978
+ properties: {
2979
+ token: {
2980
+ type: string;
2981
+ nullable: boolean;
2982
+ description: string;
2983
+ };
2984
+ user: {
2985
+ type: string;
2986
+ properties: {
2987
+ id: {
2988
+ type: string;
2989
+ description: string;
2990
+ };
2991
+ email: {
2992
+ type: string;
2993
+ format: string;
2994
+ description: string;
2995
+ };
2996
+ name: {
2997
+ type: string;
2998
+ description: string;
2999
+ };
3000
+ image: {
3001
+ type: string;
3002
+ format: string;
3003
+ nullable: boolean;
3004
+ description: string;
3005
+ };
3006
+ emailVerified: {
3007
+ type: string;
3008
+ description: string;
3009
+ };
3010
+ createdAt: {
3011
+ type: string;
3012
+ format: string;
3013
+ description: string;
3014
+ };
3015
+ updatedAt: {
3016
+ type: string;
3017
+ format: string;
3018
+ description: string;
3019
+ };
3020
+ };
3021
+ required: string[];
3022
+ };
3023
+ };
3024
+ required: string[];
3025
+ };
3026
+ };
3027
+ };
3028
+ };
3029
+ };
3030
+ };
3031
+ };
3032
+ }, {
3033
+ token: string | null;
3034
+ user: {
3035
+ id: string;
3036
+ createdAt: Date;
3037
+ updatedAt: Date;
3038
+ email: string;
3039
+ emailVerified: boolean;
3040
+ name: string;
3041
+ image?: string | null | undefined;
3042
+ } & Record<string, any> & {
3043
+ id: string;
3044
+ createdAt: Date;
3045
+ updatedAt: Date;
3046
+ email: string;
3047
+ emailVerified: boolean;
3048
+ name: string;
3049
+ image?: string | null | undefined;
3050
+ };
3051
+ }>;
3052
+ readonly setPassword: import("better-call").StrictEndpoint<string, {
3053
+ method: "POST";
3054
+ body: import("zod").ZodObject<{
3055
+ newPassword: import("zod").ZodString;
3056
+ }, import("zod/v4/core").$strip>;
3057
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3058
+ session: {
3059
+ session: Record<string, any> & {
3060
+ id: string;
3061
+ createdAt: Date;
3062
+ updatedAt: Date;
3063
+ userId: string;
3064
+ expiresAt: Date;
3065
+ token: string;
3066
+ ipAddress?: string | null | undefined;
3067
+ userAgent?: string | null | undefined;
3068
+ };
3069
+ user: Record<string, any> & {
3070
+ id: string;
3071
+ createdAt: Date;
3072
+ updatedAt: Date;
3073
+ email: string;
3074
+ emailVerified: boolean;
3075
+ name: string;
3076
+ image?: string | null | undefined;
3077
+ };
3078
+ };
3079
+ }>>[];
3080
+ }, {
3081
+ status: boolean;
3082
+ }>;
3083
+ readonly updateSession: import("better-call").StrictEndpoint<"/update-session", {
3084
+ method: "POST";
3085
+ operationId: string;
3086
+ body: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
3087
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3088
+ session: {
3089
+ session: Record<string, any> & {
3090
+ id: string;
3091
+ createdAt: Date;
3092
+ updatedAt: Date;
3093
+ userId: string;
3094
+ expiresAt: Date;
3095
+ token: string;
3096
+ ipAddress?: string | null | undefined;
3097
+ userAgent?: string | null | undefined;
3098
+ };
3099
+ user: Record<string, any> & {
3100
+ id: string;
3101
+ createdAt: Date;
3102
+ updatedAt: Date;
3103
+ email: string;
3104
+ emailVerified: boolean;
3105
+ name: string;
3106
+ image?: string | null | undefined;
3107
+ };
3108
+ };
3109
+ }>>[];
3110
+ metadata: {
3111
+ $Infer: {
3112
+ body: Partial<AdditionalSessionFieldsInput<Option>>;
3113
+ };
3114
+ openapi: {
3115
+ operationId: string;
3116
+ description: string;
3117
+ responses: {
3118
+ "200": {
3119
+ description: string;
3120
+ content: {
3121
+ "application/json": {
3122
+ schema: {
3123
+ type: "object";
3124
+ properties: {
3125
+ session: {
3126
+ type: string;
3127
+ $ref: string;
3128
+ };
3129
+ };
3130
+ };
3131
+ };
3132
+ };
3133
+ };
3134
+ };
3135
+ };
3136
+ };
3137
+ }, {
3138
+ session: {
3139
+ id: string;
3140
+ createdAt: Date;
3141
+ updatedAt: Date;
3142
+ userId: string;
3143
+ expiresAt: Date;
3144
+ token: string;
3145
+ ipAddress?: string | null | undefined;
3146
+ userAgent?: string | null | undefined;
3147
+ };
3148
+ }>;
3149
+ readonly updateUser: import("better-call").StrictEndpoint<"/update-user", {
3150
+ method: "POST";
3151
+ operationId: string;
3152
+ body: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
3153
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3154
+ session: {
3155
+ session: Record<string, any> & {
3156
+ id: string;
3157
+ createdAt: Date;
3158
+ updatedAt: Date;
3159
+ userId: string;
3160
+ expiresAt: Date;
3161
+ token: string;
3162
+ ipAddress?: string | null | undefined;
3163
+ userAgent?: string | null | undefined;
3164
+ };
3165
+ user: Record<string, any> & {
3166
+ id: string;
3167
+ createdAt: Date;
3168
+ updatedAt: Date;
3169
+ email: string;
3170
+ emailVerified: boolean;
3171
+ name: string;
3172
+ image?: string | null | undefined;
3173
+ };
3174
+ };
3175
+ }>>[];
3176
+ metadata: {
3177
+ $Infer: {
3178
+ body: Partial<AdditionalUserFieldsInput<Option>> & {
3179
+ name?: string | undefined;
3180
+ image?: string | undefined | null;
3181
+ };
3182
+ };
3183
+ openapi: {
3184
+ operationId: string;
3185
+ description: string;
3186
+ requestBody: {
3187
+ content: {
3188
+ "application/json": {
3189
+ schema: {
3190
+ type: "object";
3191
+ properties: {
3192
+ name: {
3193
+ type: string;
3194
+ description: string;
3195
+ };
3196
+ image: {
3197
+ type: string;
3198
+ description: string;
3199
+ nullable: boolean;
3200
+ };
3201
+ };
3202
+ };
3203
+ };
3204
+ };
3205
+ };
3206
+ responses: {
3207
+ "200": {
3208
+ description: string;
3209
+ content: {
3210
+ "application/json": {
3211
+ schema: {
3212
+ type: "object";
3213
+ properties: {
3214
+ user: {
3215
+ type: string;
3216
+ $ref: string;
3217
+ };
3218
+ };
3219
+ };
3220
+ };
3221
+ };
3222
+ };
3223
+ };
3224
+ };
3225
+ };
3226
+ }, {
3227
+ status: boolean;
3228
+ }>;
3229
+ readonly deleteUser: import("better-call").StrictEndpoint<"/delete-user", {
3230
+ method: "POST";
3231
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3232
+ session: {
3233
+ session: Record<string, any> & {
3234
+ id: string;
3235
+ createdAt: Date;
3236
+ updatedAt: Date;
3237
+ userId: string;
3238
+ expiresAt: Date;
3239
+ token: string;
3240
+ ipAddress?: string | null | undefined;
3241
+ userAgent?: string | null | undefined;
3242
+ };
3243
+ user: Record<string, any> & {
3244
+ id: string;
3245
+ createdAt: Date;
3246
+ updatedAt: Date;
3247
+ email: string;
3248
+ emailVerified: boolean;
3249
+ name: string;
3250
+ image?: string | null | undefined;
3251
+ };
3252
+ };
3253
+ }>>[];
3254
+ body: import("zod").ZodObject<{
3255
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
3256
+ password: import("zod").ZodOptional<import("zod").ZodString>;
3257
+ token: import("zod").ZodOptional<import("zod").ZodString>;
3258
+ }, import("zod/v4/core").$strip>;
3259
+ metadata: {
3260
+ openapi: {
3261
+ operationId: string;
3262
+ description: string;
3263
+ requestBody: {
3264
+ content: {
3265
+ "application/json": {
3266
+ schema: {
3267
+ type: "object";
3268
+ properties: {
3269
+ callbackURL: {
3270
+ type: string;
3271
+ description: string;
3272
+ };
3273
+ password: {
3274
+ type: string;
3275
+ description: string;
3276
+ };
3277
+ token: {
3278
+ type: string;
3279
+ description: string;
3280
+ };
3281
+ };
3282
+ };
3283
+ };
3284
+ };
3285
+ };
3286
+ responses: {
3287
+ "200": {
3288
+ description: string;
3289
+ content: {
3290
+ "application/json": {
3291
+ schema: {
3292
+ type: "object";
3293
+ properties: {
3294
+ success: {
3295
+ type: string;
3296
+ description: string;
3297
+ };
3298
+ message: {
3299
+ type: string;
3300
+ enum: string[];
3301
+ description: string;
3302
+ };
3303
+ };
3304
+ required: string[];
3305
+ };
3306
+ };
3307
+ };
3308
+ };
3309
+ };
3310
+ };
3311
+ };
3312
+ }, {
3313
+ success: boolean;
3314
+ message: string;
3315
+ }>;
3316
+ readonly requestPasswordReset: import("better-call").StrictEndpoint<"/request-password-reset", {
3317
+ method: "POST";
3318
+ body: import("zod").ZodObject<{
3319
+ email: import("zod").ZodEmail;
3320
+ redirectTo: import("zod").ZodOptional<import("zod").ZodString>;
3321
+ }, import("zod/v4/core").$strip>;
3322
+ metadata: {
3323
+ openapi: {
3324
+ operationId: string;
3325
+ description: string;
3326
+ responses: {
3327
+ "200": {
3328
+ description: string;
3329
+ content: {
3330
+ "application/json": {
3331
+ schema: {
3332
+ type: "object";
3333
+ properties: {
3334
+ status: {
3335
+ type: string;
3336
+ };
3337
+ message: {
3338
+ type: string;
3339
+ };
3340
+ };
3341
+ };
3342
+ };
3343
+ };
3344
+ };
3345
+ };
3346
+ };
3347
+ };
3348
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
3349
+ }, {
3350
+ status: boolean;
3351
+ message: string;
3352
+ }>;
3353
+ readonly requestPasswordResetCallback: import("better-call").StrictEndpoint<"/reset-password/:token", {
3354
+ method: "GET";
3355
+ operationId: string;
3356
+ query: import("zod").ZodObject<{
3357
+ callbackURL: import("zod").ZodString;
3358
+ }, import("zod/v4/core").$strip>;
3359
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
3360
+ metadata: {
3361
+ openapi: {
3362
+ operationId: string;
3363
+ description: string;
3364
+ parameters: ({
3365
+ name: string;
3366
+ in: "path";
3367
+ required: true;
3368
+ description: string;
3369
+ schema: {
3370
+ type: "string";
3371
+ };
3372
+ } | {
3373
+ name: string;
3374
+ in: "query";
3375
+ required: true;
3376
+ description: string;
3377
+ schema: {
3378
+ type: "string";
3379
+ };
3380
+ })[];
3381
+ responses: {
3382
+ "200": {
3383
+ description: string;
3384
+ content: {
3385
+ "application/json": {
3386
+ schema: {
3387
+ type: "object";
3388
+ properties: {
3389
+ token: {
3390
+ type: string;
3391
+ };
3392
+ };
3393
+ };
3394
+ };
3395
+ };
3396
+ };
3397
+ };
3398
+ };
3399
+ };
3400
+ }, never>;
3401
+ readonly listSessions: import("better-call").StrictEndpoint<"/list-sessions", {
3402
+ method: "GET";
3403
+ operationId: string;
3404
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3405
+ session: {
3406
+ session: Record<string, any> & {
3407
+ id: string;
3408
+ createdAt: Date;
3409
+ updatedAt: Date;
3410
+ userId: string;
3411
+ expiresAt: Date;
3412
+ token: string;
3413
+ ipAddress?: string | null | undefined;
3414
+ userAgent?: string | null | undefined;
3415
+ };
3416
+ user: Record<string, any> & {
3417
+ id: string;
3418
+ createdAt: Date;
3419
+ updatedAt: Date;
3420
+ email: string;
3421
+ emailVerified: boolean;
3422
+ name: string;
3423
+ image?: string | null | undefined;
3424
+ };
3425
+ };
3426
+ }>>[];
3427
+ requireHeaders: true;
3428
+ metadata: {
3429
+ openapi: {
3430
+ operationId: string;
3431
+ description: string;
3432
+ responses: {
3433
+ "200": {
3434
+ description: string;
3435
+ content: {
3436
+ "application/json": {
3437
+ schema: {
3438
+ type: "array";
3439
+ items: {
3440
+ $ref: string;
3441
+ };
3442
+ };
3443
+ };
3444
+ };
3445
+ };
3446
+ };
3447
+ };
3448
+ };
3449
+ }, Prettify$1<{
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
+ } & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromOptions<Option["session"]> & import("@entro314labs/entro-auth-core/db").InferDBFieldsFromPlugins<"session", Option["plugins"]> extends (infer T_12) ? { [K_2 in keyof T_12]: T_12[K_2]; } : never>[]>;
3459
+ readonly revokeSession: import("better-call").StrictEndpoint<"/revoke-session", {
3460
+ method: "POST";
3461
+ body: import("zod").ZodObject<{
3462
+ token: import("zod").ZodString;
3463
+ }, import("zod/v4/core").$strip>;
3464
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3465
+ session: {
3466
+ session: Record<string, any> & {
3467
+ id: string;
3468
+ createdAt: Date;
3469
+ updatedAt: Date;
3470
+ userId: string;
3471
+ expiresAt: Date;
3472
+ token: string;
3473
+ ipAddress?: string | null | undefined;
3474
+ userAgent?: string | null | undefined;
3475
+ };
3476
+ user: Record<string, any> & {
3477
+ id: string;
3478
+ createdAt: Date;
3479
+ updatedAt: Date;
3480
+ email: string;
3481
+ emailVerified: boolean;
3482
+ name: string;
3483
+ image?: string | null | undefined;
3484
+ };
3485
+ };
3486
+ }>>[];
3487
+ requireHeaders: true;
3488
+ metadata: {
3489
+ openapi: {
3490
+ description: string;
3491
+ requestBody: {
3492
+ content: {
3493
+ "application/json": {
3494
+ schema: {
3495
+ type: "object";
3496
+ properties: {
3497
+ token: {
3498
+ type: string;
3499
+ description: string;
3500
+ };
3501
+ };
3502
+ required: string[];
3503
+ };
3504
+ };
3505
+ };
3506
+ };
3507
+ responses: {
3508
+ "200": {
3509
+ description: string;
3510
+ content: {
3511
+ "application/json": {
3512
+ schema: {
3513
+ type: "object";
3514
+ properties: {
3515
+ status: {
3516
+ type: string;
3517
+ description: string;
3518
+ };
3519
+ };
3520
+ required: string[];
3521
+ };
3522
+ };
3523
+ };
3524
+ };
3525
+ };
3526
+ };
3527
+ };
3528
+ }, {
3529
+ status: boolean;
3530
+ }>;
3531
+ readonly revokeSessions: import("better-call").StrictEndpoint<"/revoke-sessions", {
3532
+ method: "POST";
3533
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3534
+ session: {
3535
+ session: Record<string, any> & {
3536
+ id: string;
3537
+ createdAt: Date;
3538
+ updatedAt: Date;
3539
+ userId: string;
3540
+ expiresAt: Date;
3541
+ token: string;
3542
+ ipAddress?: string | null | undefined;
3543
+ userAgent?: string | null | undefined;
3544
+ };
3545
+ user: Record<string, any> & {
3546
+ id: string;
3547
+ createdAt: Date;
3548
+ updatedAt: Date;
3549
+ email: string;
3550
+ emailVerified: boolean;
3551
+ name: string;
3552
+ image?: string | null | undefined;
3553
+ };
3554
+ };
3555
+ }>>[];
3556
+ requireHeaders: true;
3557
+ metadata: {
3558
+ openapi: {
3559
+ description: string;
3560
+ responses: {
3561
+ "200": {
3562
+ description: string;
3563
+ content: {
3564
+ "application/json": {
3565
+ schema: {
3566
+ type: "object";
3567
+ properties: {
3568
+ status: {
3569
+ type: string;
3570
+ description: string;
3571
+ };
3572
+ };
3573
+ required: string[];
3574
+ };
3575
+ };
3576
+ };
3577
+ };
3578
+ };
3579
+ };
3580
+ };
3581
+ }, {
3582
+ status: boolean;
3583
+ }>;
3584
+ readonly revokeOtherSessions: import("better-call").StrictEndpoint<"/revoke-other-sessions", {
3585
+ method: "POST";
3586
+ requireHeaders: true;
3587
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3588
+ session: {
3589
+ session: Record<string, any> & {
3590
+ id: string;
3591
+ createdAt: Date;
3592
+ updatedAt: Date;
3593
+ userId: string;
3594
+ expiresAt: Date;
3595
+ token: string;
3596
+ ipAddress?: string | null | undefined;
3597
+ userAgent?: string | null | undefined;
3598
+ };
3599
+ user: Record<string, any> & {
3600
+ id: string;
3601
+ createdAt: Date;
3602
+ updatedAt: Date;
3603
+ email: string;
3604
+ emailVerified: boolean;
3605
+ name: string;
3606
+ image?: string | null | undefined;
3607
+ };
3608
+ };
3609
+ }>>[];
3610
+ metadata: {
3611
+ openapi: {
3612
+ description: string;
3613
+ responses: {
3614
+ "200": {
3615
+ description: string;
3616
+ content: {
3617
+ "application/json": {
3618
+ schema: {
3619
+ type: "object";
3620
+ properties: {
3621
+ status: {
3622
+ type: string;
3623
+ description: string;
3624
+ };
3625
+ };
3626
+ required: string[];
3627
+ };
3628
+ };
3629
+ };
3630
+ };
3631
+ };
3632
+ };
3633
+ };
3634
+ }, {
3635
+ status: boolean;
3636
+ }>;
3637
+ readonly linkSocialAccount: import("better-call").StrictEndpoint<"/link-social", {
3638
+ method: "POST";
3639
+ requireHeaders: true;
3640
+ body: import("zod").ZodObject<{
3641
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
3642
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
3643
+ idToken: import("zod").ZodOptional<import("zod").ZodObject<{
3644
+ token: import("zod").ZodString;
3645
+ nonce: import("zod").ZodOptional<import("zod").ZodString>;
3646
+ accessToken: import("zod").ZodOptional<import("zod").ZodString>;
3647
+ refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
3648
+ }, import("zod/v4/core").$strip>>;
3649
+ requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
3650
+ scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3651
+ errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
3652
+ disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
3653
+ loginHint: import("zod").ZodOptional<import("zod").ZodString>;
3654
+ additionalParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
3655
+ additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
3656
+ }, import("zod/v4/core").$strip>;
3657
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3658
+ session: {
3659
+ session: Record<string, any> & {
3660
+ id: string;
3661
+ createdAt: Date;
3662
+ updatedAt: Date;
3663
+ userId: string;
3664
+ expiresAt: Date;
3665
+ token: string;
3666
+ ipAddress?: string | null | undefined;
3667
+ userAgent?: string | null | undefined;
3668
+ };
3669
+ user: Record<string, any> & {
3670
+ id: string;
3671
+ createdAt: Date;
3672
+ updatedAt: Date;
3673
+ email: string;
3674
+ emailVerified: boolean;
3675
+ name: string;
3676
+ image?: string | null | undefined;
3677
+ };
3678
+ };
3679
+ }>>[];
3680
+ metadata: {
3681
+ openapi: {
3682
+ description: string;
3683
+ operationId: string;
3684
+ responses: {
3685
+ "200": {
3686
+ description: string;
3687
+ content: {
3688
+ "application/json": {
3689
+ schema: {
3690
+ type: "object";
3691
+ properties: {
3692
+ url: {
3693
+ type: string;
3694
+ description: string;
3695
+ };
3696
+ redirect: {
3697
+ type: string;
3698
+ description: string;
3699
+ };
3700
+ status: {
3701
+ type: string;
3702
+ };
3703
+ };
3704
+ required: string[];
3705
+ };
3706
+ };
3707
+ };
3708
+ };
3709
+ };
3710
+ };
3711
+ };
3712
+ }, {
3713
+ url: string;
3714
+ redirect: boolean;
3715
+ }>;
3716
+ readonly issueIdTokenNonce: import("better-call").StrictEndpoint<"/id-token/nonce", {
3717
+ method: "POST";
3718
+ body: import("zod").ZodObject<{
3719
+ provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown, import("zod/v4/core").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cloudflare" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {}), unknown>>;
3720
+ }, import("zod/v4/core").$strip>;
3721
+ metadata: {
3722
+ noStore: boolean;
3723
+ openapi: {
3724
+ description: string;
3725
+ responses: {
3726
+ 200: {
3727
+ description: string;
3728
+ content: {
3729
+ "application/json": {
3730
+ schema: {
3731
+ type: "object";
3732
+ properties: {
3733
+ nonce: {
3734
+ type: "string";
3735
+ };
3736
+ };
3737
+ required: string[];
3738
+ };
3739
+ };
3740
+ };
3741
+ };
3742
+ };
3743
+ };
3744
+ };
3745
+ }, {
3746
+ nonce: string;
3747
+ }>;
3748
+ readonly listUserAccounts: import("better-call").StrictEndpoint<"/list-accounts", {
3749
+ method: "GET";
3750
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3751
+ session: {
3752
+ session: Record<string, any> & {
3753
+ id: string;
3754
+ createdAt: Date;
3755
+ updatedAt: Date;
3756
+ userId: string;
3757
+ expiresAt: Date;
3758
+ token: string;
3759
+ ipAddress?: string | null | undefined;
3760
+ userAgent?: string | null | undefined;
3761
+ };
3762
+ user: Record<string, any> & {
3763
+ id: string;
3764
+ createdAt: Date;
3765
+ updatedAt: Date;
3766
+ email: string;
3767
+ emailVerified: boolean;
3768
+ name: string;
3769
+ image?: string | null | undefined;
3770
+ };
3771
+ };
3772
+ }>>[];
3773
+ metadata: {
3774
+ openapi: {
3775
+ operationId: string;
3776
+ description: string;
3777
+ responses: {
3778
+ "200": {
3779
+ description: string;
3780
+ content: {
3781
+ "application/json": {
3782
+ schema: {
3783
+ type: "array";
3784
+ items: {
3785
+ type: string;
3786
+ properties: {
3787
+ id: {
3788
+ type: string;
3789
+ };
3790
+ providerId: {
3791
+ type: string;
3792
+ };
3793
+ createdAt: {
3794
+ type: string;
3795
+ format: string;
3796
+ };
3797
+ updatedAt: {
3798
+ type: string;
3799
+ format: string;
3800
+ };
3801
+ accountId: {
3802
+ type: string;
3803
+ };
3804
+ userId: {
3805
+ type: string;
3806
+ };
3807
+ scopes: {
3808
+ type: string;
3809
+ items: {
3810
+ type: string;
3811
+ };
3812
+ };
3813
+ };
3814
+ required: string[];
3815
+ };
3816
+ };
3817
+ };
3818
+ };
3819
+ };
3820
+ };
3821
+ };
3822
+ };
3823
+ }, {
3824
+ scopes: string[];
3825
+ id: string;
3826
+ createdAt: Date;
3827
+ updatedAt: Date;
3828
+ providerId: string;
3829
+ accountId: string;
3830
+ userId: string;
3831
+ }[]>;
3832
+ readonly deleteUserCallback: import("better-call").StrictEndpoint<"/delete-user/callback", {
3833
+ method: "GET";
3834
+ query: import("zod").ZodObject<{
3835
+ token: import("zod").ZodString;
3836
+ callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
3837
+ }, import("zod/v4/core").$strip>;
3838
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
3839
+ metadata: {
3840
+ openapi: {
3841
+ description: string;
3842
+ responses: {
3843
+ "200": {
3844
+ description: string;
3845
+ content: {
3846
+ "application/json": {
3847
+ schema: {
3848
+ type: "object";
3849
+ properties: {
3850
+ success: {
3851
+ type: string;
3852
+ description: string;
3853
+ };
3854
+ message: {
3855
+ type: string;
3856
+ enum: string[];
3857
+ description: string;
3858
+ };
3859
+ };
3860
+ required: string[];
3861
+ };
3862
+ };
3863
+ };
3864
+ };
3865
+ };
3866
+ };
3867
+ };
3868
+ }, {
3869
+ success: boolean;
3870
+ message: string;
3871
+ }>;
3872
+ readonly unlinkAccount: import("better-call").StrictEndpoint<"/unlink-account", {
3873
+ method: "POST";
3874
+ body: import("zod").ZodObject<{
3875
+ accountId: import("zod").ZodString;
3876
+ }, import("zod/v4/core").$strip>;
3877
+ use: Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3878
+ session: {
3879
+ session: Record<string, any> & {
3880
+ id: string;
3881
+ createdAt: Date;
3882
+ updatedAt: Date;
3883
+ userId: string;
3884
+ expiresAt: Date;
3885
+ token: string;
3886
+ ipAddress?: string | null | undefined;
3887
+ userAgent?: string | null | undefined;
3888
+ };
3889
+ user: Record<string, any> & {
3890
+ id: string;
3891
+ createdAt: Date;
3892
+ updatedAt: Date;
3893
+ email: string;
3894
+ emailVerified: boolean;
3895
+ name: string;
3896
+ image?: string | null | undefined;
3897
+ };
3898
+ };
3899
+ }>>[];
3900
+ metadata: {
3901
+ openapi: {
3902
+ description: string;
3903
+ responses: {
3904
+ "200": {
3905
+ description: string;
3906
+ content: {
3907
+ "application/json": {
3908
+ schema: {
3909
+ type: "object";
3910
+ properties: {
3911
+ status: {
3912
+ type: string;
3913
+ };
3914
+ };
3915
+ };
3916
+ };
3917
+ };
3918
+ };
3919
+ };
3920
+ };
3921
+ };
3922
+ }, {
3923
+ status: boolean;
3924
+ }>;
3925
+ readonly refreshToken: import("better-call").StrictEndpoint<"/refresh-token", {
3926
+ method: "POST";
3927
+ body: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3928
+ accountId: import("zod").ZodString;
3929
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
3930
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3931
+ useAccountCookie: import("zod").ZodLiteral<true>;
3932
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
3933
+ }, import("zod/v4/core").$strict>]>;
3934
+ metadata: {
3935
+ openapi: {
3936
+ description: string;
3937
+ responses: {
3938
+ 200: {
3939
+ description: string;
3940
+ content: {
3941
+ "application/json": {
3942
+ schema: {
3943
+ type: "object";
3944
+ properties: {
3945
+ tokenType: {
3946
+ type: string;
3947
+ };
3948
+ idToken: {
3949
+ type: string;
3950
+ };
3951
+ accessToken: {
3952
+ type: string;
3953
+ };
3954
+ refreshToken: {
3955
+ type: string;
3956
+ };
3957
+ accessTokenExpiresAt: {
3958
+ type: string;
3959
+ format: string;
3960
+ };
3961
+ refreshTokenExpiresAt: {
3962
+ type: string;
3963
+ format: string;
3964
+ };
3965
+ };
3966
+ };
3967
+ };
3968
+ };
3969
+ };
3970
+ 400: {
3971
+ description: string;
3972
+ };
3973
+ };
3974
+ };
3975
+ };
3976
+ }, {
3977
+ accessToken: string | undefined;
3978
+ refreshToken: string;
3979
+ accessTokenExpiresAt: Date | undefined;
3980
+ refreshTokenExpiresAt: Date | null | undefined;
3981
+ scope: string | null | undefined;
3982
+ idToken: string | null | undefined;
3983
+ providerId: string;
3984
+ accountId: string;
3985
+ }>;
3986
+ readonly getAccessToken: import("better-call").StrictEndpoint<"/get-access-token", {
3987
+ method: "POST";
3988
+ body: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3989
+ accountId: import("zod").ZodString;
3990
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
3991
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3992
+ useAccountCookie: import("zod").ZodLiteral<true>;
3993
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
3994
+ }, import("zod/v4/core").$strict>]>;
3995
+ metadata: {
3996
+ openapi: {
3997
+ description: string;
3998
+ responses: {
3999
+ 200: {
4000
+ description: string;
4001
+ content: {
4002
+ "application/json": {
4003
+ schema: {
4004
+ type: "object";
4005
+ properties: {
4006
+ tokenType: {
4007
+ type: string;
4008
+ };
4009
+ idToken: {
4010
+ type: string;
4011
+ };
4012
+ accessToken: {
4013
+ type: string;
4014
+ };
4015
+ accessTokenExpiresAt: {
4016
+ type: string;
4017
+ format: string;
4018
+ };
4019
+ };
4020
+ };
4021
+ };
4022
+ };
4023
+ };
4024
+ 400: {
4025
+ description: string;
4026
+ };
4027
+ };
4028
+ };
4029
+ };
4030
+ }, {
4031
+ accessToken: string;
4032
+ accessTokenExpiresAt: Date | undefined;
4033
+ scopes: string[];
4034
+ idToken: string | undefined;
4035
+ }>;
4036
+ readonly accountInfo: import("better-call").StrictEndpoint<"/account-info", {
4037
+ method: "GET";
4038
+ metadata: {
4039
+ openapi: {
4040
+ description: string;
4041
+ responses: {
4042
+ "200": {
4043
+ description: string;
4044
+ content: {
4045
+ "application/json": {
4046
+ schema: {
4047
+ type: "object";
4048
+ properties: {
4049
+ user: {
4050
+ type: string;
4051
+ properties: {
4052
+ name: {
4053
+ type: string;
4054
+ };
4055
+ email: {
4056
+ type: string;
4057
+ nullable: boolean;
4058
+ };
4059
+ image: {
4060
+ type: string;
4061
+ };
4062
+ emailVerified: {
4063
+ type: string;
4064
+ };
4065
+ };
4066
+ required: string[];
4067
+ };
4068
+ account: {
4069
+ type: string;
4070
+ properties: {
4071
+ id: {
4072
+ type: string;
4073
+ };
4074
+ providerId: {
4075
+ type: string;
4076
+ };
4077
+ accountId: {
4078
+ type: string;
4079
+ };
4080
+ };
4081
+ required: string[];
4082
+ additionalProperties: boolean;
4083
+ };
4084
+ data: {
4085
+ type: string;
4086
+ properties: {};
4087
+ additionalProperties: boolean;
4088
+ };
4089
+ };
4090
+ required: string[];
4091
+ additionalProperties: boolean;
4092
+ };
4093
+ };
4094
+ };
4095
+ };
4096
+ };
4097
+ };
4098
+ };
4099
+ query: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
4100
+ accountId: import("zod").ZodString;
4101
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
4102
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
4103
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
4104
+ useAccountCookie: import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<true>, import("zod").ZodLiteral<"true">]>, import("zod").ZodTransform<true, true | "true">>;
4105
+ }, import("zod/v4/core").$strict>]>;
4106
+ }, {
4107
+ account: {
4108
+ id: string;
4109
+ providerId: string;
4110
+ accountId: string;
4111
+ };
4112
+ user: import("@entro314labs/entro-auth-core/oauth2").OAuth2UserInfo;
4113
+ data: object;
4114
+ }>;
4115
+ } extends (infer T_2) ? { [K in keyof T_2 as K extends keyof T_1 ? never : K]: T_2[K]; } : never) & T_1> : never : never : never;
4116
+ };
4117
+ export { APIError, type AuthEndpoint, type AuthMiddleware, type DispatchContext, NO_STORE_HEADERS, accountInfo, addOAuthServerContext, callbackOAuth, changeEmail, changePassword, consumeIssuedIdTokenNonce, consumeNonce, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, dispatchAuthEndpoint, error, formCsrfMiddleware, freshSessionMiddleware, generateGenericState, getAccessToken, getAuthoritativeSessionFromCtx, getIP, getOAuthState, getSession, getSessionFromCtx, getShouldSkipSessionRefresh, isAPIError, isStateful, issueIdTokenNonce, issueNonce, issuedNonceResponses, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, parseGenericState, refreshToken, requestOnlySessionMiddleware, requestPasswordReset, requestPasswordResetCallback, requireOrgRole, requireResourceOwnership, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, sendVerificationEmail, sendVerificationEmailFn, sensitiveSessionMiddleware, sessionMiddleware, setPassword, setShouldSkipSessionRefresh, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateSession, updateUser, verifyEmail, verifyPassword };