better-auth 1.4.21 → 1.4.22

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 (63) hide show
  1. package/dist/api/index.d.mts +407 -407
  2. package/dist/api/middlewares/origin-check.d.mts +4 -4
  3. package/dist/api/routes/account.d.mts +11 -11
  4. package/dist/api/routes/callback.d.mts +2 -2
  5. package/dist/api/routes/email-verification.d.mts +4 -4
  6. package/dist/api/routes/error.d.mts +2 -2
  7. package/dist/api/routes/ok.d.mts +2 -2
  8. package/dist/api/routes/password.d.mts +7 -7
  9. package/dist/api/routes/sign-in.d.mts +4 -4
  10. package/dist/api/routes/sign-out.d.mts +2 -2
  11. package/dist/api/routes/sign-up.d.mts +3 -3
  12. package/dist/api/routes/update-user.d.mts +13 -13
  13. package/dist/client/lynx/index.d.mts +15 -15
  14. package/dist/client/react/index.d.mts +15 -15
  15. package/dist/client/solid/index.d.mts +13 -13
  16. package/dist/client/svelte/index.d.mts +13 -13
  17. package/dist/client/vanilla.d.mts +15 -15
  18. package/dist/client/vue/index.d.mts +15 -15
  19. package/dist/db/field.d.mts +6 -6
  20. package/dist/integrations/next-js.d.mts +4 -4
  21. package/dist/integrations/svelte-kit.d.mts +2 -2
  22. package/dist/integrations/tanstack-start-solid.d.mts +4 -4
  23. package/dist/integrations/tanstack-start.d.mts +4 -4
  24. package/dist/plugins/admin/admin.d.mts +114 -114
  25. package/dist/plugins/anonymous/index.d.mts +5 -5
  26. package/dist/plugins/api-key/index.d.mts +79 -79
  27. package/dist/plugins/bearer/index.d.mts +6 -6
  28. package/dist/plugins/captcha/index.d.mts +2 -2
  29. package/dist/plugins/custom-session/index.d.mts +5 -5
  30. package/dist/plugins/device-authorization/index.d.mts +6 -6
  31. package/dist/plugins/email-otp/index.d.mts +52 -52
  32. package/dist/plugins/generic-oauth/index.d.mts +32 -32
  33. package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
  34. package/dist/plugins/jwt/client.d.mts +2 -2
  35. package/dist/plugins/jwt/index.d.mts +7 -7
  36. package/dist/plugins/last-login-method/index.d.mts +4 -4
  37. package/dist/plugins/magic-link/index.d.mts +4 -4
  38. package/dist/plugins/mcp/index.d.mts +10 -10
  39. package/dist/plugins/multi-session/index.d.mts +9 -9
  40. package/dist/plugins/oauth-proxy/index.d.mts +8 -8
  41. package/dist/plugins/oidc-provider/index.d.mts +13 -13
  42. package/dist/plugins/one-tap/client.d.mts +4 -4
  43. package/dist/plugins/one-tap/index.d.mts +2 -2
  44. package/dist/plugins/one-time-token/index.d.mts +5 -5
  45. package/dist/plugins/open-api/index.d.mts +3 -3
  46. package/dist/plugins/organization/adapter.d.mts +24 -24
  47. package/dist/plugins/organization/client.d.mts +8 -8
  48. package/dist/plugins/organization/organization.d.mts +7 -7
  49. package/dist/plugins/organization/routes/crud-access-control.d.mts +22 -22
  50. package/dist/plugins/organization/routes/crud-invites.d.mts +69 -69
  51. package/dist/plugins/organization/routes/crud-members.d.mts +67 -67
  52. package/dist/plugins/organization/routes/crud-org.d.mts +59 -59
  53. package/dist/plugins/organization/routes/crud-team.d.mts +79 -79
  54. package/dist/plugins/phone-number/index.d.mts +33 -33
  55. package/dist/plugins/siwe/index.d.mts +3 -3
  56. package/dist/plugins/two-factor/backup-codes/index.d.mts +5 -5
  57. package/dist/plugins/two-factor/index.d.mts +16 -16
  58. package/dist/plugins/two-factor/otp/index.d.mts +3 -3
  59. package/dist/plugins/two-factor/totp/index.d.mts +5 -5
  60. package/dist/plugins/username/index.d.mts +9 -9
  61. package/dist/plugins/username/schema.d.mts +3 -3
  62. package/dist/test-utils/test-instance.d.mts +1225 -1225
  63. package/package.json +3 -3
@@ -1,12 +1,12 @@
1
1
  import { ApiKey, ApiKeyOptions } from "./types.mjs";
2
- import * as _better_auth_core28 from "@better-auth/core";
3
- import * as _better_auth_core_db22 from "@better-auth/core/db";
2
+ import * as _better_auth_core22 from "@better-auth/core";
3
+ import * as _better_auth_core_db3 from "@better-auth/core/db";
4
4
  import * as _better_auth_core_env0 from "@better-auth/core/env";
5
- import * as _better_auth_core_oauth28 from "@better-auth/core/oauth2";
5
+ import * as _better_auth_core_oauth22 from "@better-auth/core/oauth2";
6
6
  import * as _better_auth_core_db_adapter0 from "@better-auth/core/db/adapter";
7
- import * as better_call711 from "better-call";
8
- import * as zod1952 from "zod";
9
- import * as zod_v4_core280 from "zod/v4/core";
7
+ import * as better_call262 from "better-call";
8
+ import * as zod530 from "zod";
9
+ import * as zod_v4_core78 from "zod/v4/core";
10
10
 
11
11
  //#region src/plugins/api-key/index.d.ts
12
12
  declare const defaultKeyHasher: (key: string) => Promise<string>;
@@ -69,8 +69,8 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
69
69
  };
70
70
  hooks: {
71
71
  before: {
72
- matcher: (ctx: _better_auth_core28.HookEndpointContext) => boolean;
73
- handler: (inputContext: better_call711.MiddlewareInputContext<better_call711.MiddlewareOptions>) => Promise<{
72
+ matcher: (ctx: _better_auth_core22.HookEndpointContext) => boolean;
73
+ handler: (inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
74
74
  user: {
75
75
  id: string;
76
76
  createdAt: Date;
@@ -91,11 +91,11 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
91
91
  expiresAt: Date;
92
92
  };
93
93
  } | {
94
- context: better_call711.MiddlewareContext<better_call711.MiddlewareOptions, {
94
+ context: better_call262.MiddlewareContext<better_call262.MiddlewareOptions, {
95
95
  returned?: unknown | undefined;
96
96
  responseHeaders?: Headers | undefined;
97
- } & _better_auth_core28.PluginContext & _better_auth_core28.InfoContext & {
98
- options: _better_auth_core28.BetterAuthOptions;
97
+ } & _better_auth_core22.PluginContext & _better_auth_core22.InfoContext & {
98
+ options: _better_auth_core22.BetterAuthOptions;
99
99
  appName: string;
100
100
  baseURL: string;
101
101
  trustedOrigins: string[];
@@ -107,29 +107,29 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
107
107
  storeStateStrategy: "database" | "cookie";
108
108
  };
109
109
  newSession: {
110
- session: _better_auth_core_db22.Session & Record<string, any>;
111
- user: _better_auth_core_db22.User & Record<string, any>;
110
+ session: _better_auth_core_db3.Session & Record<string, any>;
111
+ user: _better_auth_core_db3.User & Record<string, any>;
112
112
  } | null;
113
113
  session: {
114
- session: _better_auth_core_db22.Session & Record<string, any>;
115
- user: _better_auth_core_db22.User & Record<string, any>;
114
+ session: _better_auth_core_db3.Session & Record<string, any>;
115
+ user: _better_auth_core_db3.User & Record<string, any>;
116
116
  } | null;
117
117
  setNewSession: (session: {
118
- session: _better_auth_core_db22.Session & Record<string, any>;
119
- user: _better_auth_core_db22.User & Record<string, any>;
118
+ session: _better_auth_core_db3.Session & Record<string, any>;
119
+ user: _better_auth_core_db3.User & Record<string, any>;
120
120
  } | null) => void;
121
- socialProviders: _better_auth_core_oauth28.OAuthProvider[];
122
- authCookies: _better_auth_core28.BetterAuthCookies;
121
+ socialProviders: _better_auth_core_oauth22.OAuthProvider[];
122
+ authCookies: _better_auth_core22.BetterAuthCookies;
123
123
  logger: ReturnType<typeof _better_auth_core_env0.createLogger>;
124
124
  rateLimit: {
125
125
  enabled: boolean;
126
126
  window: number;
127
127
  max: number;
128
128
  storage: "memory" | "database" | "secondary-storage";
129
- } & Omit<_better_auth_core28.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
130
- adapter: _better_auth_core_db_adapter0.DBAdapter<_better_auth_core28.BetterAuthOptions>;
131
- internalAdapter: _better_auth_core28.InternalAdapter<_better_auth_core28.BetterAuthOptions>;
132
- createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call711.CookieOptions> | undefined) => _better_auth_core28.BetterAuthCookie;
129
+ } & Omit<_better_auth_core22.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
130
+ adapter: _better_auth_core_db_adapter0.DBAdapter<_better_auth_core22.BetterAuthOptions>;
131
+ internalAdapter: _better_auth_core22.InternalAdapter<_better_auth_core22.BetterAuthOptions>;
132
+ createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call262.CookieOptions> | undefined) => _better_auth_core22.BetterAuthCookie;
133
133
  secret: string;
134
134
  sessionConfig: {
135
135
  updateAge: number;
@@ -141,10 +141,10 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
141
141
  };
142
142
  };
143
143
  generateId: (options: {
144
- model: _better_auth_core_db22.ModelNames;
144
+ model: _better_auth_core_db3.ModelNames;
145
145
  size?: number | undefined;
146
146
  }) => string | false;
147
- secondaryStorage: _better_auth_core_db22.SecondaryStorage | undefined;
147
+ secondaryStorage: _better_auth_core_db3.SecondaryStorage | undefined;
148
148
  password: {
149
149
  hash: (password: string) => Promise<string>;
150
150
  verify: (data: {
@@ -155,9 +155,9 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
155
155
  minPasswordLength: number;
156
156
  maxPasswordLength: number;
157
157
  };
158
- checkPassword: (userId: string, ctx: _better_auth_core28.GenericEndpointContext<_better_auth_core28.BetterAuthOptions>) => Promise<boolean>;
158
+ checkPassword: (userId: string, ctx: _better_auth_core22.GenericEndpointContext<_better_auth_core22.BetterAuthOptions>) => Promise<boolean>;
159
159
  };
160
- tables: _better_auth_core_db22.BetterAuthDBSchema;
160
+ tables: _better_auth_core_db3.BetterAuthDBSchema;
161
161
  runMigrations: () => Promise<void>;
162
162
  publishTelemetry: (event: {
163
163
  type: string;
@@ -167,7 +167,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
167
167
  skipOriginCheck: boolean | string[];
168
168
  skipCSRFCheck: boolean;
169
169
  runInBackground: (promise: Promise<unknown>) => void;
170
- runInBackgroundOrAwait: (promise: Promise<unknown> | void) => _better_auth_core28.Awaitable<unknown>;
170
+ runInBackgroundOrAwait: (promise: Promise<unknown> | void) => _better_auth_core22.Awaitable<unknown>;
171
171
  }>;
172
172
  }>;
173
173
  }[];
@@ -188,22 +188,22 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
188
188
  *
189
189
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-create)
190
190
  */
191
- createApiKey: better_call711.StrictEndpoint<"/api-key/create", {
191
+ createApiKey: better_call262.StrictEndpoint<"/api-key/create", {
192
192
  method: "POST";
193
- body: zod1952.ZodObject<{
194
- name: zod1952.ZodOptional<zod1952.ZodString>;
195
- expiresIn: zod1952.ZodDefault<zod1952.ZodNullable<zod1952.ZodOptional<zod1952.ZodNumber>>>;
196
- userId: zod1952.ZodOptional<zod1952.ZodCoercedString<unknown>>;
197
- prefix: zod1952.ZodOptional<zod1952.ZodString>;
198
- remaining: zod1952.ZodDefault<zod1952.ZodNullable<zod1952.ZodOptional<zod1952.ZodNumber>>>;
199
- metadata: zod1952.ZodOptional<zod1952.ZodAny>;
200
- refillAmount: zod1952.ZodOptional<zod1952.ZodNumber>;
201
- refillInterval: zod1952.ZodOptional<zod1952.ZodNumber>;
202
- rateLimitTimeWindow: zod1952.ZodOptional<zod1952.ZodNumber>;
203
- rateLimitMax: zod1952.ZodOptional<zod1952.ZodNumber>;
204
- rateLimitEnabled: zod1952.ZodOptional<zod1952.ZodBoolean>;
205
- permissions: zod1952.ZodOptional<zod1952.ZodRecord<zod1952.ZodString, zod1952.ZodArray<zod1952.ZodString>>>;
206
- }, zod_v4_core280.$strip>;
193
+ body: zod530.ZodObject<{
194
+ name: zod530.ZodOptional<zod530.ZodString>;
195
+ expiresIn: zod530.ZodDefault<zod530.ZodNullable<zod530.ZodOptional<zod530.ZodNumber>>>;
196
+ userId: zod530.ZodOptional<zod530.ZodCoercedString<unknown>>;
197
+ prefix: zod530.ZodOptional<zod530.ZodString>;
198
+ remaining: zod530.ZodDefault<zod530.ZodNullable<zod530.ZodOptional<zod530.ZodNumber>>>;
199
+ metadata: zod530.ZodOptional<zod530.ZodAny>;
200
+ refillAmount: zod530.ZodOptional<zod530.ZodNumber>;
201
+ refillInterval: zod530.ZodOptional<zod530.ZodNumber>;
202
+ rateLimitTimeWindow: zod530.ZodOptional<zod530.ZodNumber>;
203
+ rateLimitMax: zod530.ZodOptional<zod530.ZodNumber>;
204
+ rateLimitEnabled: zod530.ZodOptional<zod530.ZodBoolean>;
205
+ permissions: zod530.ZodOptional<zod530.ZodRecord<zod530.ZodString, zod530.ZodArray<zod530.ZodString>>>;
206
+ }, zod_v4_core78.$strip>;
207
207
  metadata: {
208
208
  openapi: {
209
209
  description: string;
@@ -368,12 +368,12 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
368
368
  *
369
369
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-verify)
370
370
  */
371
- verifyApiKey: better_call711.StrictEndpoint<string, {
371
+ verifyApiKey: better_call262.StrictEndpoint<string, {
372
372
  method: "POST";
373
- body: zod1952.ZodObject<{
374
- key: zod1952.ZodString;
375
- permissions: zod1952.ZodOptional<zod1952.ZodRecord<zod1952.ZodString, zod1952.ZodArray<zod1952.ZodString>>>;
376
- }, zod_v4_core280.$strip>;
373
+ body: zod530.ZodObject<{
374
+ key: zod530.ZodString;
375
+ permissions: zod530.ZodOptional<zod530.ZodRecord<zod530.ZodString, zod530.ZodArray<zod530.ZodString>>>;
376
+ }, zod_v4_core78.$strip>;
377
377
  }, {
378
378
  valid: boolean;
379
379
  error: {
@@ -416,12 +416,12 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
416
416
  *
417
417
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-get)
418
418
  */
419
- getApiKey: better_call711.StrictEndpoint<"/api-key/get", {
419
+ getApiKey: better_call262.StrictEndpoint<"/api-key/get", {
420
420
  method: "GET";
421
- query: zod1952.ZodObject<{
422
- id: zod1952.ZodString;
423
- }, zod_v4_core280.$strip>;
424
- use: ((inputContext: better_call711.MiddlewareInputContext<better_call711.MiddlewareOptions>) => Promise<{
421
+ query: zod530.ZodObject<{
422
+ id: zod530.ZodString;
423
+ }, zod_v4_core78.$strip>;
424
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
425
425
  session: {
426
426
  session: Record<string, any> & {
427
427
  id: string;
@@ -603,23 +603,23 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
603
603
  *
604
604
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-update)
605
605
  */
606
- updateApiKey: better_call711.StrictEndpoint<"/api-key/update", {
606
+ updateApiKey: better_call262.StrictEndpoint<"/api-key/update", {
607
607
  method: "POST";
608
- body: zod1952.ZodObject<{
609
- keyId: zod1952.ZodString;
610
- userId: zod1952.ZodOptional<zod1952.ZodCoercedString<unknown>>;
611
- name: zod1952.ZodOptional<zod1952.ZodString>;
612
- enabled: zod1952.ZodOptional<zod1952.ZodBoolean>;
613
- remaining: zod1952.ZodOptional<zod1952.ZodNumber>;
614
- refillAmount: zod1952.ZodOptional<zod1952.ZodNumber>;
615
- refillInterval: zod1952.ZodOptional<zod1952.ZodNumber>;
616
- metadata: zod1952.ZodOptional<zod1952.ZodAny>;
617
- expiresIn: zod1952.ZodNullable<zod1952.ZodOptional<zod1952.ZodNumber>>;
618
- rateLimitEnabled: zod1952.ZodOptional<zod1952.ZodBoolean>;
619
- rateLimitTimeWindow: zod1952.ZodOptional<zod1952.ZodNumber>;
620
- rateLimitMax: zod1952.ZodOptional<zod1952.ZodNumber>;
621
- permissions: zod1952.ZodNullable<zod1952.ZodOptional<zod1952.ZodRecord<zod1952.ZodString, zod1952.ZodArray<zod1952.ZodString>>>>;
622
- }, zod_v4_core280.$strip>;
608
+ body: zod530.ZodObject<{
609
+ keyId: zod530.ZodString;
610
+ userId: zod530.ZodOptional<zod530.ZodCoercedString<unknown>>;
611
+ name: zod530.ZodOptional<zod530.ZodString>;
612
+ enabled: zod530.ZodOptional<zod530.ZodBoolean>;
613
+ remaining: zod530.ZodOptional<zod530.ZodNumber>;
614
+ refillAmount: zod530.ZodOptional<zod530.ZodNumber>;
615
+ refillInterval: zod530.ZodOptional<zod530.ZodNumber>;
616
+ metadata: zod530.ZodOptional<zod530.ZodAny>;
617
+ expiresIn: zod530.ZodNullable<zod530.ZodOptional<zod530.ZodNumber>>;
618
+ rateLimitEnabled: zod530.ZodOptional<zod530.ZodBoolean>;
619
+ rateLimitTimeWindow: zod530.ZodOptional<zod530.ZodNumber>;
620
+ rateLimitMax: zod530.ZodOptional<zod530.ZodNumber>;
621
+ permissions: zod530.ZodNullable<zod530.ZodOptional<zod530.ZodRecord<zod530.ZodString, zod530.ZodArray<zod530.ZodString>>>>;
622
+ }, zod_v4_core78.$strip>;
623
623
  metadata: {
624
624
  openapi: {
625
625
  description: string;
@@ -779,12 +779,12 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
779
779
  *
780
780
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-delete)
781
781
  */
782
- deleteApiKey: better_call711.StrictEndpoint<"/api-key/delete", {
782
+ deleteApiKey: better_call262.StrictEndpoint<"/api-key/delete", {
783
783
  method: "POST";
784
- body: zod1952.ZodObject<{
785
- keyId: zod1952.ZodString;
786
- }, zod_v4_core280.$strip>;
787
- use: ((inputContext: better_call711.MiddlewareInputContext<better_call711.MiddlewareOptions>) => Promise<{
784
+ body: zod530.ZodObject<{
785
+ keyId: zod530.ZodString;
786
+ }, zod_v4_core78.$strip>;
787
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
788
788
  session: {
789
789
  session: Record<string, any> & {
790
790
  id: string;
@@ -865,9 +865,9 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
865
865
  *
866
866
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-list)
867
867
  */
868
- listApiKeys: better_call711.StrictEndpoint<"/api-key/list", {
868
+ listApiKeys: better_call262.StrictEndpoint<"/api-key/list", {
869
869
  method: "GET";
870
- use: ((inputContext: better_call711.MiddlewareInputContext<better_call711.MiddlewareOptions>) => Promise<{
870
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
871
871
  session: {
872
872
  session: Record<string, any> & {
873
873
  id: string;
@@ -1049,7 +1049,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
1049
1049
  *
1050
1050
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-delete-all-expired-api-keys)
1051
1051
  */
1052
- deleteAllExpiredApiKeys: better_call711.StrictEndpoint<string, {
1052
+ deleteAllExpiredApiKeys: better_call262.StrictEndpoint<string, {
1053
1053
  method: "POST";
1054
1054
  }, {
1055
1055
  success: boolean;
@@ -1171,8 +1171,8 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
1171
1171
  required: false;
1172
1172
  input: true;
1173
1173
  transform: {
1174
- input(value: _better_auth_core_db22.DBPrimitive): string;
1175
- output(value: _better_auth_core_db22.DBPrimitive): any;
1174
+ input(value: _better_auth_core_db3.DBPrimitive): string;
1175
+ output(value: _better_auth_core_db3.DBPrimitive): any;
1176
1176
  };
1177
1177
  };
1178
1178
  };
@@ -1,5 +1,5 @@
1
- import * as _better_auth_core5 from "@better-auth/core";
2
- import * as better_call172 from "better-call";
1
+ import * as _better_auth_core4 from "@better-auth/core";
2
+ import * as better_call22 from "better-call";
3
3
 
4
4
  //#region src/plugins/bearer/index.d.ts
5
5
  interface BearerOptions {
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
19
19
  id: "bearer";
20
20
  hooks: {
21
21
  before: {
22
- matcher(context: _better_auth_core5.HookEndpointContext): boolean;
23
- handler: (inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<{
22
+ matcher(context: _better_auth_core4.HookEndpointContext): boolean;
23
+ handler: (inputContext: better_call22.MiddlewareInputContext<better_call22.MiddlewareOptions>) => Promise<{
24
24
  context: {
25
25
  headers: Headers;
26
26
  };
27
27
  } | undefined>;
28
28
  }[];
29
29
  after: {
30
- matcher(context: _better_auth_core5.HookEndpointContext): true;
31
- handler: (inputContext: better_call172.MiddlewareInputContext<better_call172.MiddlewareOptions>) => Promise<void>;
30
+ matcher(context: _better_auth_core4.HookEndpointContext): true;
31
+ handler: (inputContext: better_call22.MiddlewareInputContext<better_call22.MiddlewareOptions>) => Promise<void>;
32
32
  }[];
33
33
  };
34
34
  options: BearerOptions | undefined;
@@ -1,10 +1,10 @@
1
1
  import { BaseCaptchaOptions, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider } from "./types.mjs";
2
- import * as _better_auth_core7 from "@better-auth/core";
2
+ import * as _better_auth_core0 from "@better-auth/core";
3
3
 
4
4
  //#region src/plugins/captcha/index.d.ts
5
5
  declare const captcha: (options: CaptchaOptions) => {
6
6
  id: "captcha";
7
- onRequest: (request: Request, ctx: _better_auth_core7.AuthContext) => Promise<{
7
+ onRequest: (request: Request, ctx: _better_auth_core0.AuthContext) => Promise<{
8
8
  response: Response;
9
9
  } | undefined>;
10
10
  options: CaptchaOptions;
@@ -1,8 +1,8 @@
1
1
  import { InferSession, InferUser } from "../../types/models.mjs";
2
2
  import "../../types/index.mjs";
3
- import * as _better_auth_core9 from "@better-auth/core";
3
+ import * as _better_auth_core1 from "@better-auth/core";
4
4
  import { BetterAuthOptions, GenericEndpointContext } from "@better-auth/core";
5
- import * as better_call188 from "better-call";
5
+ import * as better_call7 from "better-call";
6
6
  import * as z from "zod";
7
7
 
8
8
  //#region src/plugins/custom-session/index.d.ts
@@ -20,12 +20,12 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
20
20
  id: "custom-session";
21
21
  hooks: {
22
22
  after: {
23
- matcher: (ctx: _better_auth_core9.HookEndpointContext) => boolean;
24
- handler: (inputContext: better_call188.MiddlewareInputContext<better_call188.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
23
+ matcher: (ctx: _better_auth_core1.HookEndpointContext) => boolean;
24
+ handler: (inputContext: better_call7.MiddlewareInputContext<better_call7.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
25
25
  }[];
26
26
  };
27
27
  endpoints: {
28
- getSession: better_call188.StrictEndpoint<"/get-session", {
28
+ getSession: better_call7.StrictEndpoint<"/get-session", {
29
29
  method: "GET";
30
30
  query: z.ZodOptional<z.ZodObject<{
31
31
  disableCookieCache: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>]>>;
@@ -1,5 +1,5 @@
1
1
  import { TimeString, ms, sec } from "../../utils/time.mjs";
2
- import * as better_call149 from "better-call";
2
+ import * as better_call10 from "better-call";
3
3
  import * as z from "zod";
4
4
 
5
5
  //#region src/plugins/device-authorization/index.d.ts
@@ -91,7 +91,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
91
91
  };
92
92
  };
93
93
  endpoints: {
94
- deviceCode: better_call149.StrictEndpoint<"/device/code", {
94
+ deviceCode: better_call10.StrictEndpoint<"/device/code", {
95
95
  method: "POST";
96
96
  body: z.ZodObject<{
97
97
  client_id: z.ZodString;
@@ -176,7 +176,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
176
176
  expires_in: number;
177
177
  interval: number;
178
178
  }>;
179
- deviceToken: better_call149.StrictEndpoint<"/device/token", {
179
+ deviceToken: better_call10.StrictEndpoint<"/device/token", {
180
180
  method: "POST";
181
181
  body: z.ZodObject<{
182
182
  grant_type: z.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
@@ -244,7 +244,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
244
244
  expires_in: number;
245
245
  scope: string;
246
246
  }>;
247
- deviceVerify: better_call149.StrictEndpoint<"/device", {
247
+ deviceVerify: better_call10.StrictEndpoint<"/device", {
248
248
  method: "GET";
249
249
  query: z.ZodObject<{
250
250
  user_code: z.ZodString;
@@ -287,7 +287,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
287
287
  user_code: string;
288
288
  status: string;
289
289
  }>;
290
- deviceApprove: better_call149.StrictEndpoint<"/device/approve", {
290
+ deviceApprove: better_call10.StrictEndpoint<"/device/approve", {
291
291
  method: "POST";
292
292
  body: z.ZodObject<{
293
293
  userCode: z.ZodString;
@@ -328,7 +328,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
328
328
  }, {
329
329
  success: boolean;
330
330
  }>;
331
- deviceDeny: better_call149.StrictEndpoint<"/device/deny", {
331
+ deviceDeny: better_call10.StrictEndpoint<"/device/deny", {
332
332
  method: "POST";
333
333
  body: z.ZodObject<{
334
334
  userCode: z.ZodString;
@@ -1,14 +1,14 @@
1
1
  import { EmailOTPOptions } from "./types.mjs";
2
- import * as _better_auth_core3 from "@better-auth/core";
2
+ import * as _better_auth_core6 from "@better-auth/core";
3
3
  import * as _better_auth_core_db0 from "@better-auth/core/db";
4
- import * as better_call154 from "better-call";
5
- import * as zod441 from "zod";
6
- import * as zod_v4_core61 from "zod/v4/core";
4
+ import * as better_call26 from "better-call";
5
+ import * as zod0 from "zod";
6
+ import * as zod_v4_core0 from "zod/v4/core";
7
7
 
8
8
  //#region src/plugins/email-otp/index.d.ts
9
9
  declare const emailOTP: (options: EmailOTPOptions) => {
10
10
  id: "email-otp";
11
- init(ctx: _better_auth_core3.AuthContext): {
11
+ init(ctx: _better_auth_core6.AuthContext): {
12
12
  options: {
13
13
  emailVerification: {
14
14
  sendVerificationEmail(data: {
@@ -20,16 +20,16 @@ declare const emailOTP: (options: EmailOTPOptions) => {
20
20
  };
21
21
  } | undefined;
22
22
  endpoints: {
23
- sendVerificationOTP: better_call154.StrictEndpoint<"/email-otp/send-verification-otp", {
23
+ sendVerificationOTP: better_call26.StrictEndpoint<"/email-otp/send-verification-otp", {
24
24
  method: "POST";
25
- body: zod441.ZodObject<{
26
- email: zod441.ZodString;
27
- type: zod441.ZodEnum<{
25
+ body: zod0.ZodObject<{
26
+ email: zod0.ZodString;
27
+ type: zod0.ZodEnum<{
28
28
  "sign-in": "sign-in";
29
29
  "email-verification": "email-verification";
30
30
  "forget-password": "forget-password";
31
31
  }>;
32
- }, zod_v4_core61.$strip>;
32
+ }, zod_v4_core0.$strip>;
33
33
  metadata: {
34
34
  openapi: {
35
35
  operationId: string;
@@ -56,16 +56,16 @@ declare const emailOTP: (options: EmailOTPOptions) => {
56
56
  }, {
57
57
  success: boolean;
58
58
  }>;
59
- createVerificationOTP: better_call154.StrictEndpoint<string, {
59
+ createVerificationOTP: better_call26.StrictEndpoint<string, {
60
60
  method: "POST";
61
- body: zod441.ZodObject<{
62
- email: zod441.ZodString;
63
- type: zod441.ZodEnum<{
61
+ body: zod0.ZodObject<{
62
+ email: zod0.ZodString;
63
+ type: zod0.ZodEnum<{
64
64
  "sign-in": "sign-in";
65
65
  "email-verification": "email-verification";
66
66
  "forget-password": "forget-password";
67
67
  }>;
68
- }, zod_v4_core61.$strip>;
68
+ }, zod_v4_core0.$strip>;
69
69
  metadata: {
70
70
  openapi: {
71
71
  operationId: string;
@@ -85,16 +85,16 @@ declare const emailOTP: (options: EmailOTPOptions) => {
85
85
  };
86
86
  };
87
87
  }, string>;
88
- getVerificationOTP: better_call154.StrictEndpoint<string, {
88
+ getVerificationOTP: better_call26.StrictEndpoint<string, {
89
89
  method: "GET";
90
- query: zod441.ZodObject<{
91
- email: zod441.ZodString;
92
- type: zod441.ZodEnum<{
90
+ query: zod0.ZodObject<{
91
+ email: zod0.ZodString;
92
+ type: zod0.ZodEnum<{
93
93
  "sign-in": "sign-in";
94
94
  "email-verification": "email-verification";
95
95
  "forget-password": "forget-password";
96
96
  }>;
97
- }, zod_v4_core61.$strip>;
97
+ }, zod_v4_core0.$strip>;
98
98
  metadata: {
99
99
  openapi: {
100
100
  operationId: string;
@@ -126,17 +126,17 @@ declare const emailOTP: (options: EmailOTPOptions) => {
126
126
  } | {
127
127
  otp: string;
128
128
  }>;
129
- checkVerificationOTP: better_call154.StrictEndpoint<"/email-otp/check-verification-otp", {
129
+ checkVerificationOTP: better_call26.StrictEndpoint<"/email-otp/check-verification-otp", {
130
130
  method: "POST";
131
- body: zod441.ZodObject<{
132
- email: zod441.ZodString;
133
- type: zod441.ZodEnum<{
131
+ body: zod0.ZodObject<{
132
+ email: zod0.ZodString;
133
+ type: zod0.ZodEnum<{
134
134
  "sign-in": "sign-in";
135
135
  "email-verification": "email-verification";
136
136
  "forget-password": "forget-password";
137
137
  }>;
138
- otp: zod441.ZodString;
139
- }, zod_v4_core61.$strip>;
138
+ otp: zod0.ZodString;
139
+ }, zod_v4_core0.$strip>;
140
140
  metadata: {
141
141
  openapi: {
142
142
  operationId: string;
@@ -163,12 +163,12 @@ declare const emailOTP: (options: EmailOTPOptions) => {
163
163
  }, {
164
164
  success: boolean;
165
165
  }>;
166
- verifyEmailOTP: better_call154.StrictEndpoint<"/email-otp/verify-email", {
166
+ verifyEmailOTP: better_call26.StrictEndpoint<"/email-otp/verify-email", {
167
167
  method: "POST";
168
- body: zod441.ZodObject<{
169
- email: zod441.ZodString;
170
- otp: zod441.ZodString;
171
- }, zod_v4_core61.$strip>;
168
+ body: zod0.ZodObject<{
169
+ email: zod0.ZodString;
170
+ otp: zod0.ZodString;
171
+ }, zod_v4_core0.$strip>;
172
172
  metadata: {
173
173
  openapi: {
174
174
  description: string;
@@ -227,12 +227,12 @@ declare const emailOTP: (options: EmailOTPOptions) => {
227
227
  image?: string | null | undefined;
228
228
  } & Record<string, any>;
229
229
  }>;
230
- signInEmailOTP: better_call154.StrictEndpoint<"/sign-in/email-otp", {
230
+ signInEmailOTP: better_call26.StrictEndpoint<"/sign-in/email-otp", {
231
231
  method: "POST";
232
- body: zod441.ZodObject<{
233
- email: zod441.ZodString;
234
- otp: zod441.ZodString;
235
- }, zod_v4_core61.$strip>;
232
+ body: zod0.ZodObject<{
233
+ email: zod0.ZodString;
234
+ otp: zod0.ZodString;
235
+ }, zod_v4_core0.$strip>;
236
236
  metadata: {
237
237
  openapi: {
238
238
  operationId: string;
@@ -273,11 +273,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
273
273
  image?: string | null | undefined;
274
274
  };
275
275
  }>;
276
- requestPasswordResetEmailOTP: better_call154.StrictEndpoint<"/email-otp/request-password-reset", {
276
+ requestPasswordResetEmailOTP: better_call26.StrictEndpoint<"/email-otp/request-password-reset", {
277
277
  method: "POST";
278
- body: zod441.ZodObject<{
279
- email: zod441.ZodString;
280
- }, zod_v4_core61.$strip>;
278
+ body: zod0.ZodObject<{
279
+ email: zod0.ZodString;
280
+ }, zod_v4_core0.$strip>;
281
281
  metadata: {
282
282
  openapi: {
283
283
  operationId: string;
@@ -305,11 +305,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
305
305
  }, {
306
306
  success: boolean;
307
307
  }>;
308
- forgetPasswordEmailOTP: better_call154.StrictEndpoint<"/forget-password/email-otp", {
308
+ forgetPasswordEmailOTP: better_call26.StrictEndpoint<"/forget-password/email-otp", {
309
309
  method: "POST";
310
- body: zod441.ZodObject<{
311
- email: zod441.ZodString;
312
- }, zod_v4_core61.$strip>;
310
+ body: zod0.ZodObject<{
311
+ email: zod0.ZodString;
312
+ }, zod_v4_core0.$strip>;
313
313
  metadata: {
314
314
  openapi: {
315
315
  operationId: string;
@@ -337,13 +337,13 @@ declare const emailOTP: (options: EmailOTPOptions) => {
337
337
  }, {
338
338
  success: boolean;
339
339
  }>;
340
- resetPasswordEmailOTP: better_call154.StrictEndpoint<"/email-otp/reset-password", {
340
+ resetPasswordEmailOTP: better_call26.StrictEndpoint<"/email-otp/reset-password", {
341
341
  method: "POST";
342
- body: zod441.ZodObject<{
343
- email: zod441.ZodString;
344
- otp: zod441.ZodString;
345
- password: zod441.ZodString;
346
- }, zod_v4_core61.$strip>;
342
+ body: zod0.ZodObject<{
343
+ email: zod0.ZodString;
344
+ otp: zod0.ZodString;
345
+ password: zod0.ZodString;
346
+ }, zod_v4_core0.$strip>;
347
347
  metadata: {
348
348
  openapi: {
349
349
  operationId: string;
@@ -373,8 +373,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
373
373
  };
374
374
  hooks: {
375
375
  after: {
376
- matcher(context: _better_auth_core3.HookEndpointContext): boolean;
377
- handler: (inputContext: better_call154.MiddlewareInputContext<better_call154.MiddlewareOptions>) => Promise<void>;
376
+ matcher(context: _better_auth_core6.HookEndpointContext): boolean;
377
+ handler: (inputContext: better_call26.MiddlewareInputContext<better_call26.MiddlewareOptions>) => Promise<void>;
378
378
  }[];
379
379
  };
380
380
  $ERROR_CODES: {