better-auth 0.7.5 → 0.7.6-beta.1

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 (59) hide show
  1. package/dist/adapters/drizzle.d.cts +3 -2
  2. package/dist/adapters/drizzle.d.ts +3 -2
  3. package/dist/adapters/kysely.d.cts +3 -2
  4. package/dist/adapters/kysely.d.ts +3 -2
  5. package/dist/adapters/mongodb.d.cts +3 -2
  6. package/dist/adapters/mongodb.d.ts +3 -2
  7. package/dist/adapters/prisma.d.cts +3 -2
  8. package/dist/adapters/prisma.d.ts +3 -2
  9. package/dist/api.d.cts +3 -2
  10. package/dist/api.d.ts +3 -2
  11. package/dist/{auth-CMuefPy-.d.ts → auth-DnVNaNo4.d.cts} +48 -47
  12. package/dist/{auth-D9PTCOsA.d.cts → auth-i01HJsBT.d.ts} +48 -47
  13. package/dist/client/plugins.d.cts +6 -4
  14. package/dist/client/plugins.d.ts +6 -4
  15. package/dist/client.d.cts +3 -2
  16. package/dist/client.d.ts +3 -2
  17. package/dist/cookies.d.cts +3 -2
  18. package/dist/cookies.d.ts +3 -2
  19. package/dist/db.d.cts +4 -3
  20. package/dist/db.d.ts +4 -3
  21. package/dist/helper-DPDj8Nix.d.cts +21 -0
  22. package/dist/helper-DPDj8Nix.d.ts +21 -0
  23. package/dist/{index-CYDS42Gd.d.cts → index-B7acmBVh.d.cts} +11 -57
  24. package/dist/{index-mRrWw8DZ.d.ts → index-BHDqo6WM.d.cts} +7 -24
  25. package/dist/{index-mRrWw8DZ.d.cts → index-D0dedAck.d.ts} +7 -24
  26. package/dist/{index-uQf60d1G.d.ts → index-TBR5Nwgw.d.ts} +11 -57
  27. package/dist/index.d.cts +4 -3
  28. package/dist/index.d.ts +4 -3
  29. package/dist/node.d.cts +3 -2
  30. package/dist/node.d.ts +3 -2
  31. package/dist/oauth2.d.cts +5 -4
  32. package/dist/oauth2.d.ts +5 -4
  33. package/dist/plugins/access.cjs +1 -0
  34. package/dist/plugins/access.d.cts +8 -0
  35. package/dist/plugins/access.d.ts +8 -0
  36. package/dist/plugins/access.js +1 -0
  37. package/dist/plugins.d.cts +12 -10
  38. package/dist/plugins.d.ts +12 -10
  39. package/dist/react.d.cts +3 -2
  40. package/dist/react.d.ts +3 -2
  41. package/dist/social.d.cts +2 -1
  42. package/dist/social.d.ts +2 -1
  43. package/dist/solid-start.d.cts +3 -2
  44. package/dist/solid-start.d.ts +3 -2
  45. package/dist/solid.d.cts +3 -2
  46. package/dist/solid.d.ts +3 -2
  47. package/dist/{state-C6rhMM6X.d.cts → state-B-NKU7yb.d.cts} +1 -1
  48. package/dist/{state-CEk_59zC.d.ts → state-BvaftTAj.d.ts} +1 -1
  49. package/dist/statement-CTl9eDv7.d.ts +81 -0
  50. package/dist/statement-DFWdVU7s.d.cts +81 -0
  51. package/dist/svelte-kit.d.cts +3 -2
  52. package/dist/svelte-kit.d.ts +3 -2
  53. package/dist/svelte.d.cts +3 -2
  54. package/dist/svelte.d.ts +3 -2
  55. package/dist/types.d.cts +5 -4
  56. package/dist/types.d.ts +5 -4
  57. package/dist/vue.d.cts +3 -2
  58. package/dist/vue.d.ts +3 -2
  59. package/package.json +7 -1
@@ -1,7 +1,8 @@
1
- import { A as Adapter } from '../auth-D9PTCOsA.cjs';
1
+ import { A as Adapter } from '../auth-DnVNaNo4.cjs';
2
2
  import 'zod';
3
3
  import 'kysely';
4
- import '../index-mRrWw8DZ.cjs';
4
+ import '../index-BHDqo6WM.cjs';
5
+ import '../helper-DPDj8Nix.cjs';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
@@ -1,7 +1,8 @@
1
- import { A as Adapter } from '../auth-CMuefPy-.js';
1
+ import { A as Adapter } from '../auth-i01HJsBT.js';
2
2
  import 'zod';
3
3
  import 'kysely';
4
- import '../index-mRrWw8DZ.js';
4
+ import '../index-D0dedAck.js';
5
+ import '../helper-DPDj8Nix.js';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
@@ -1,7 +1,8 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-D9PTCOsA.cjs';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DnVNaNo4.cjs';
3
3
  import 'zod';
4
- import '../index-mRrWw8DZ.cjs';
4
+ import '../index-BHDqo6WM.cjs';
5
+ import '../helper-DPDj8Nix.cjs';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
@@ -1,7 +1,8 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-CMuefPy-.js';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-i01HJsBT.js';
3
3
  import 'zod';
4
- import '../index-mRrWw8DZ.js';
4
+ import '../index-D0dedAck.js';
5
+ import '../helper-DPDj8Nix.js';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
@@ -1,8 +1,9 @@
1
1
  import { Db } from 'mongodb';
2
- import { W as Where } from '../auth-D9PTCOsA.cjs';
2
+ import { W as Where } from '../auth-DnVNaNo4.cjs';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.cjs';
5
+ import '../index-BHDqo6WM.cjs';
6
+ import '../helper-DPDj8Nix.cjs';
6
7
  import 'better-call';
7
8
  import 'better-sqlite3';
8
9
 
@@ -1,8 +1,9 @@
1
1
  import { Db } from 'mongodb';
2
- import { W as Where } from '../auth-CMuefPy-.js';
2
+ import { W as Where } from '../auth-i01HJsBT.js';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.js';
5
+ import '../index-D0dedAck.js';
6
+ import '../helper-DPDj8Nix.js';
6
7
  import 'better-call';
7
8
  import 'better-sqlite3';
8
9
 
@@ -1,7 +1,8 @@
1
- import { A as Adapter } from '../auth-D9PTCOsA.cjs';
1
+ import { A as Adapter } from '../auth-DnVNaNo4.cjs';
2
2
  import 'zod';
3
3
  import 'kysely';
4
- import '../index-mRrWw8DZ.cjs';
4
+ import '../index-BHDqo6WM.cjs';
5
+ import '../helper-DPDj8Nix.cjs';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
@@ -1,7 +1,8 @@
1
- import { A as Adapter } from '../auth-CMuefPy-.js';
1
+ import { A as Adapter } from '../auth-i01HJsBT.js';
2
2
  import 'zod';
3
3
  import 'kysely';
4
- import '../index-mRrWw8DZ.js';
4
+ import '../index-D0dedAck.js';
5
+ import '../helper-DPDj8Nix.js';
5
6
  import 'better-call';
6
7
  import 'better-sqlite3';
7
8
 
package/dist/api.d.cts CHANGED
@@ -1,6 +1,7 @@
1
- export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-D9PTCOsA.cjs';
2
- import './index-mRrWw8DZ.cjs';
1
+ export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-DnVNaNo4.cjs';
2
+ import './helper-DPDj8Nix.cjs';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
5
5
  import 'kysely';
6
+ import './index-BHDqo6WM.cjs';
6
7
  import 'better-sqlite3';
package/dist/api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-CMuefPy-.js';
2
- import './index-mRrWw8DZ.js';
1
+ export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-i01HJsBT.js';
2
+ import './helper-DPDj8Nix.js';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
5
5
  import 'kysely';
6
+ import './index-D0dedAck.js';
6
7
  import 'better-sqlite3';
@@ -1,9 +1,10 @@
1
1
  import * as zod from 'zod';
2
2
  import { ZodSchema, z, ZodObject, ZodOptional, ZodString } from 'zod';
3
3
  import { Kysely, Migration, PostgresPool, MysqlPool, Dialect } from 'kysely';
4
- import { a as User, A as Account, S as Session, V as Verification, e as OAuthProvider, L as LiteralString, D as DeepPartial, U as UnionToIntersection, c as StripEmptyObjects, f as SocialProviders, g as SocialProviderList, P as Prettify } from './index-mRrWw8DZ.js';
4
+ import { U as User, A as Account, S as Session, V as Verification, a as OAuthProvider, b as SocialProviders, c as SocialProviderList } from './index-BHDqo6WM.cjs';
5
5
  import * as better_call from 'better-call';
6
6
  import { ContextTools, CookieOptions, Endpoint, EndpointResponse, Context, Prettify as Prettify$1 } from 'better-call';
7
+ import { L as LiteralString, D as DeepPartial, U as UnionToIntersection, S as StripEmptyObjects, P as Prettify } from './helper-DPDj8Nix.cjs';
7
8
  import { Database } from 'better-sqlite3';
8
9
 
9
10
  type RequiredKeysOf<BaseType extends object> = Exclude<{
@@ -147,13 +148,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
147
148
  }>;
148
149
  createAccount: <T>(account: Omit<Account, "id" | "createdAt" | "updatedAt"> & Partial<Account> & Record<string, any>) => Promise<T & {
149
150
  id: string;
151
+ userId: string;
150
152
  providerId: string;
151
153
  accountId: string;
152
- userId: string;
154
+ expiresAt?: Date | null | undefined;
153
155
  accessToken?: string | null | undefined;
154
156
  refreshToken?: string | null | undefined;
155
157
  idToken?: string | null | undefined;
156
- expiresAt?: Date | null | undefined;
157
158
  password?: string | null | undefined;
158
159
  }>;
159
160
  listSessions: (userId: string) => Promise<{
@@ -208,13 +209,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
208
209
  };
209
210
  accounts: {
210
211
  id: string;
212
+ userId: string;
211
213
  providerId: string;
212
214
  accountId: string;
213
- userId: string;
215
+ expiresAt?: Date | null | undefined;
214
216
  accessToken?: string | null | undefined;
215
217
  refreshToken?: string | null | undefined;
216
218
  idToken?: string | null | undefined;
217
- expiresAt?: Date | null | undefined;
218
219
  password?: string | null | undefined;
219
220
  }[];
220
221
  } | null>;
@@ -233,13 +234,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
233
234
  updatePassword: (userId: string, password: string) => Promise<any>;
234
235
  findAccounts: (userId: string) => Promise<{
235
236
  id: string;
237
+ userId: string;
236
238
  providerId: string;
237
239
  accountId: string;
238
- userId: string;
240
+ expiresAt?: Date | null | undefined;
239
241
  accessToken?: string | null | undefined;
240
242
  refreshToken?: string | null | undefined;
241
243
  idToken?: string | null | undefined;
242
- expiresAt?: Date | null | undefined;
243
244
  password?: string | null | undefined;
244
245
  }[]>;
245
246
  updateAccount: (accountId: string, data: Partial<Account>) => Promise<any>;
@@ -1361,13 +1362,13 @@ declare const signInEmail: {
1361
1362
  */
1362
1363
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1363
1364
  }, "strip", z.ZodTypeAny, {
1364
- password: string;
1365
1365
  email: string;
1366
+ password: string;
1366
1367
  callbackURL?: string | undefined;
1367
1368
  dontRememberMe?: boolean | undefined;
1368
1369
  }, {
1369
- password: string;
1370
1370
  email: string;
1371
+ password: string;
1371
1372
  callbackURL?: string | undefined;
1372
1373
  dontRememberMe?: boolean | undefined;
1373
1374
  }>;
@@ -1406,13 +1407,13 @@ declare const signInEmail: {
1406
1407
  */
1407
1408
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1408
1409
  }, "strip", z.ZodTypeAny, {
1409
- password: string;
1410
1410
  email: string;
1411
+ password: string;
1411
1412
  callbackURL?: string | undefined;
1412
1413
  dontRememberMe?: boolean | undefined;
1413
1414
  }, {
1414
- password: string;
1415
1415
  email: string;
1416
+ password: string;
1416
1417
  callbackURL?: string | undefined;
1417
1418
  dontRememberMe?: boolean | undefined;
1418
1419
  }>;
@@ -2953,13 +2954,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2953
2954
  email: zod.ZodString;
2954
2955
  password: zod.ZodString;
2955
2956
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
2956
- password: string;
2957
2957
  email: string;
2958
2958
  name: string;
2959
- }, {
2960
2959
  password: string;
2960
+ }, {
2961
2961
  email: string;
2962
2962
  name: string;
2963
+ password: string;
2963
2964
  }> & toZod<AdditionalUserFieldsInput<Option>>;
2964
2965
  }>> extends true ? [better_call.Context<"/sign-up/email", {
2965
2966
  method: "POST";
@@ -2975,13 +2976,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2975
2976
  email: zod.ZodString;
2976
2977
  password: zod.ZodString;
2977
2978
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
2978
- password: string;
2979
2979
  email: string;
2980
2980
  name: string;
2981
- }, {
2982
2981
  password: string;
2982
+ }, {
2983
2983
  email: string;
2984
2984
  name: string;
2985
+ password: string;
2985
2986
  }> & toZod<AdditionalUserFieldsInput<Option>>;
2986
2987
  }>] : [(better_call.Context<"/sign-up/email", {
2987
2988
  method: "POST";
@@ -2997,13 +2998,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2997
2998
  email: zod.ZodString;
2998
2999
  password: zod.ZodString;
2999
3000
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3000
- password: string;
3001
3001
  email: string;
3002
3002
  name: string;
3003
- }, {
3004
3003
  password: string;
3004
+ }, {
3005
3005
  email: string;
3006
3006
  name: string;
3007
+ password: string;
3007
3008
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3008
3009
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
3009
3010
  asResponse: true;
@@ -3051,13 +3052,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3051
3052
  email: zod.ZodString;
3052
3053
  password: zod.ZodString;
3053
3054
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3054
- password: string;
3055
3055
  email: string;
3056
3056
  name: string;
3057
- }, {
3058
3057
  password: string;
3058
+ }, {
3059
3059
  email: string;
3060
3060
  name: string;
3061
+ password: string;
3061
3062
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3062
3063
  };
3063
3064
  method: better_call.Method | better_call.Method[];
@@ -3072,13 +3073,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3072
3073
  callbackURL: zod.ZodOptional<zod.ZodString>;
3073
3074
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3074
3075
  }, "strip", zod.ZodTypeAny, {
3075
- password: string;
3076
3076
  email: string;
3077
+ password: string;
3077
3078
  callbackURL?: string | undefined;
3078
3079
  dontRememberMe?: boolean | undefined;
3079
3080
  }, {
3080
- password: string;
3081
3081
  email: string;
3082
+ password: string;
3082
3083
  callbackURL?: string | undefined;
3083
3084
  dontRememberMe?: boolean | undefined;
3084
3085
  }>;
@@ -3113,13 +3114,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3113
3114
  callbackURL: zod.ZodOptional<zod.ZodString>;
3114
3115
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3115
3116
  }, "strip", zod.ZodTypeAny, {
3116
- password: string;
3117
3117
  email: string;
3118
+ password: string;
3118
3119
  callbackURL?: string | undefined;
3119
3120
  dontRememberMe?: boolean | undefined;
3120
3121
  }, {
3121
- password: string;
3122
3122
  email: string;
3123
+ password: string;
3123
3124
  callbackURL?: string | undefined;
3124
3125
  dontRememberMe?: boolean | undefined;
3125
3126
  }>;
@@ -4348,13 +4349,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4348
4349
  email: zod.ZodString;
4349
4350
  password: zod.ZodString;
4350
4351
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4351
- password: string;
4352
4352
  email: string;
4353
4353
  name: string;
4354
- }, {
4355
4354
  password: string;
4355
+ }, {
4356
4356
  email: string;
4357
4357
  name: string;
4358
+ password: string;
4358
4359
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4359
4360
  }>> extends true ? [better_call.Context<"/sign-up/email", {
4360
4361
  method: "POST";
@@ -4370,13 +4371,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4370
4371
  email: zod.ZodString;
4371
4372
  password: zod.ZodString;
4372
4373
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4373
- password: string;
4374
4374
  email: string;
4375
4375
  name: string;
4376
- }, {
4377
4376
  password: string;
4377
+ }, {
4378
4378
  email: string;
4379
4379
  name: string;
4380
+ password: string;
4380
4381
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4381
4382
  }>] : [(better_call.Context<"/sign-up/email", {
4382
4383
  method: "POST";
@@ -4392,13 +4393,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4392
4393
  email: zod.ZodString;
4393
4394
  password: zod.ZodString;
4394
4395
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4395
- password: string;
4396
4396
  email: string;
4397
4397
  name: string;
4398
- }, {
4399
4398
  password: string;
4399
+ }, {
4400
4400
  email: string;
4401
4401
  name: string;
4402
+ password: string;
4402
4403
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4403
4404
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
4404
4405
  asResponse: true;
@@ -4446,13 +4447,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4446
4447
  email: zod.ZodString;
4447
4448
  password: zod.ZodString;
4448
4449
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4449
- password: string;
4450
4450
  email: string;
4451
4451
  name: string;
4452
- }, {
4453
4452
  password: string;
4453
+ }, {
4454
4454
  email: string;
4455
4455
  name: string;
4456
+ password: string;
4456
4457
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4457
4458
  };
4458
4459
  method: better_call.Method | better_call.Method[];
@@ -4467,13 +4468,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4467
4468
  callbackURL: zod.ZodOptional<zod.ZodString>;
4468
4469
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4469
4470
  }, "strip", zod.ZodTypeAny, {
4470
- password: string;
4471
4471
  email: string;
4472
+ password: string;
4472
4473
  callbackURL?: string | undefined;
4473
4474
  dontRememberMe?: boolean | undefined;
4474
4475
  }, {
4475
- password: string;
4476
4476
  email: string;
4477
+ password: string;
4477
4478
  callbackURL?: string | undefined;
4478
4479
  dontRememberMe?: boolean | undefined;
4479
4480
  }>;
@@ -4508,13 +4509,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4508
4509
  callbackURL: zod.ZodOptional<zod.ZodString>;
4509
4510
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4510
4511
  }, "strip", zod.ZodTypeAny, {
4511
- password: string;
4512
4512
  email: string;
4513
+ password: string;
4513
4514
  callbackURL?: string | undefined;
4514
4515
  dontRememberMe?: boolean | undefined;
4515
4516
  }, {
4516
- password: string;
4517
4517
  email: string;
4518
+ password: string;
4518
4519
  callbackURL?: string | undefined;
4519
4520
  dontRememberMe?: boolean | undefined;
4520
4521
  }>;
@@ -5745,13 +5746,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5745
5746
  email: zod.ZodString;
5746
5747
  password: zod.ZodString;
5747
5748
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5748
- password: string;
5749
5749
  email: string;
5750
5750
  name: string;
5751
- }, {
5752
5751
  password: string;
5752
+ }, {
5753
5753
  email: string;
5754
5754
  name: string;
5755
+ password: string;
5755
5756
  }> & toZod<AdditionalUserFieldsInput<O>>;
5756
5757
  }>> extends true ? [better_call.Context<"/sign-up/email", {
5757
5758
  method: "POST";
@@ -5767,13 +5768,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5767
5768
  email: zod.ZodString;
5768
5769
  password: zod.ZodString;
5769
5770
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5770
- password: string;
5771
5771
  email: string;
5772
5772
  name: string;
5773
- }, {
5774
5773
  password: string;
5774
+ }, {
5775
5775
  email: string;
5776
5776
  name: string;
5777
+ password: string;
5777
5778
  }> & toZod<AdditionalUserFieldsInput<O>>;
5778
5779
  }>] : [(better_call.Context<"/sign-up/email", {
5779
5780
  method: "POST";
@@ -5789,13 +5790,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5789
5790
  email: zod.ZodString;
5790
5791
  password: zod.ZodString;
5791
5792
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5792
- password: string;
5793
5793
  email: string;
5794
5794
  name: string;
5795
- }, {
5796
5795
  password: string;
5796
+ }, {
5797
5797
  email: string;
5798
5798
  name: string;
5799
+ password: string;
5799
5800
  }> & toZod<AdditionalUserFieldsInput<O>>;
5800
5801
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
5801
5802
  asResponse: true;
@@ -5843,13 +5844,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5843
5844
  email: zod.ZodString;
5844
5845
  password: zod.ZodString;
5845
5846
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5846
- password: string;
5847
5847
  email: string;
5848
5848
  name: string;
5849
- }, {
5850
5849
  password: string;
5850
+ }, {
5851
5851
  email: string;
5852
5852
  name: string;
5853
+ password: string;
5853
5854
  }> & toZod<AdditionalUserFieldsInput<O>>;
5854
5855
  };
5855
5856
  method: better_call.Method | better_call.Method[];
@@ -5864,13 +5865,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5864
5865
  callbackURL: zod.ZodOptional<zod.ZodString>;
5865
5866
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5866
5867
  }, "strip", zod.ZodTypeAny, {
5867
- password: string;
5868
5868
  email: string;
5869
+ password: string;
5869
5870
  callbackURL?: string | undefined;
5870
5871
  dontRememberMe?: boolean | undefined;
5871
5872
  }, {
5872
- password: string;
5873
5873
  email: string;
5874
+ password: string;
5874
5875
  callbackURL?: string | undefined;
5875
5876
  dontRememberMe?: boolean | undefined;
5876
5877
  }>;
@@ -5905,13 +5906,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5905
5906
  callbackURL: zod.ZodOptional<zod.ZodString>;
5906
5907
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5907
5908
  }, "strip", zod.ZodTypeAny, {
5908
- password: string;
5909
5909
  email: string;
5910
+ password: string;
5910
5911
  callbackURL?: string | undefined;
5911
5912
  dontRememberMe?: boolean | undefined;
5912
5913
  }, {
5913
- password: string;
5914
5914
  email: string;
5915
+ password: string;
5915
5916
  callbackURL?: string | undefined;
5916
5917
  dontRememberMe?: boolean | undefined;
5917
5918
  }>;