better-auth 1.4.4-beta.1 → 1.4.4-beta.2

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 (146) hide show
  1. package/dist/adapters/index.d.mts +9 -8
  2. package/dist/adapters/kysely-adapter/index.d.mts +1 -1
  3. package/dist/adapters/kysely-adapter/index.mjs +1 -1
  4. package/dist/{admin-DOf4RlqU.mjs → admin-C0d5dk6O.mjs} +1 -1
  5. package/dist/{anonymous-NbEz-M9T.mjs → anonymous-B5kAEMza.mjs} +1 -1
  6. package/dist/api/index.d.mts +5 -4
  7. package/dist/api/index.mjs +3 -3
  8. package/dist/{api-EbGN0arI.mjs → api-q2sbQ7PT.mjs} +3 -3
  9. package/dist/auth/minimal.d.mts +5 -4
  10. package/dist/auth/minimal.mjs +4 -4
  11. package/dist/{auth-DtuX7axC.mjs → auth-DtQf_JUg.mjs} +3 -3
  12. package/dist/{base-DNnxU0Gh.mjs → base-CPOjsixh.mjs} +2 -2
  13. package/dist/{chunk-DbI2OXuS.mjs → chunk-09eW3CcW.mjs} +12 -27
  14. package/dist/client/index.d.mts +5 -6
  15. package/dist/client/lynx/index.d.mts +22 -21
  16. package/dist/client/plugins/index.d.mts +84 -54
  17. package/dist/client/react/index.d.mts +20 -19
  18. package/dist/client/solid/index.d.mts +20 -19
  19. package/dist/client/svelte/index.d.mts +6 -5
  20. package/dist/client/vue/index.d.mts +22 -21
  21. package/dist/cookies/index.d.mts +6 -5
  22. package/dist/db/index.d.mts +5 -4
  23. package/dist/db/index.mjs +2 -2
  24. package/dist/{dialect-BvcuosDD.mjs → dialect-D9ZUZA4J.mjs} +2 -2
  25. package/dist/{email-otp-wH0n3Ta5.mjs → email-otp-wYPJyq8c.mjs} +1 -1
  26. package/dist/{esm-DkLFGBDk.mjs → esm-DPWELC5I.mjs} +1 -1
  27. package/dist/{generic-oauth-DbGqw_dO.mjs → generic-oauth-BlH-OSQN.mjs} +3 -3
  28. package/dist/{get-migration-BHJiEhv-.mjs → get-migration-wMpq_Lmw.mjs} +4 -4
  29. package/dist/{haveibeenpwned-BLpq2gIE.mjs → haveibeenpwned-v0bNR9PL.mjs} +1 -1
  30. package/dist/index-5t2DAD0k.d.mts +556 -0
  31. package/dist/index-B52PH6jU.d.mts +488 -0
  32. package/dist/{index-BJBZojsr.d.mts → index-BDwnO3gz.d.mts} +1 -1
  33. package/dist/index-BTk-wfTL.d.mts +6520 -0
  34. package/dist/{index-C_7_0n5I.d.mts → index-BbsJ-RVs.d.mts} +47 -6
  35. package/dist/{index-B5V55AT0.d.mts → index-Bn1R6aVZ.d.mts} +2 -2
  36. package/dist/{index-DGVCxXgt.d.mts → index-C-qjuMK3.d.mts} +52 -3
  37. package/dist/{index-DitoYNDA.d.mts → index-C40qLrfj.d.mts} +35 -3
  38. package/dist/index-C8eCoB52.d.mts +9444 -0
  39. package/dist/index-CBe2rvyJ.d.mts +197 -0
  40. package/dist/{index-BlFbMHpg.d.mts → index-CfCxrifw.d.mts} +149 -5
  41. package/dist/{index-C12miRzk.d.mts → index-CrYIJeWc.d.mts} +3 -3
  42. package/dist/{index-Ck6mqAGv.d.mts → index-D8MBzSjs.d.mts} +1 -1
  43. package/dist/{index-BH0dV2Ob.d.mts → index-DJFTvRYn.d.mts} +91 -14
  44. package/dist/index-DaaVQEvX.d.mts +76 -0
  45. package/dist/index-DcYTqy8J.d.mts +182 -0
  46. package/dist/index-DiT4DbMC.d.mts +393 -0
  47. package/dist/{index-DHAy8_Lx.d.mts → index-DljejjCu.d.mts} +45 -4
  48. package/dist/index-DmC6Ctb-.d.mts +76 -0
  49. package/dist/{index-BR5yXcTF.d.mts → index-J1rkw6JT.d.mts} +189 -11
  50. package/dist/index-UXC1tbRT.d.mts +909 -0
  51. package/dist/index-_MGUkN9y.d.mts +36 -0
  52. package/dist/index-d52kDVAg.d.mts +65 -0
  53. package/dist/index.d.mts +6 -7
  54. package/dist/index.mjs +5 -5
  55. package/dist/integrations/next-js.d.mts +5 -2
  56. package/dist/integrations/node.d.mts +7 -5
  57. package/dist/integrations/svelte-kit.d.mts +7 -5
  58. package/dist/integrations/tanstack-start.d.mts +5 -2
  59. package/dist/integrations/tanstack-start.mjs +1 -1
  60. package/dist/{jwt-CDYeUkGP.mjs → jwt-BcNc-TEx.mjs} +1 -1
  61. package/dist/{magic-link-Dqmi-o1j.mjs → magic-link-B1zZrjdu.mjs} +1 -1
  62. package/dist/{multi-session-BMU39Jg-.mjs → multi-session-C855V4lg.mjs} +4 -4
  63. package/dist/{oauth-proxy-C4DAoruM.mjs → oauth-proxy-CSxVQ45y.mjs} +1 -1
  64. package/dist/oauth2/index.d.mts +25 -8
  65. package/dist/oauth2/index.mjs +3 -3
  66. package/dist/{oidc-provider-Bj_V8yIY.mjs → oidc-provider-Dx4WDdQk.mjs} +6 -3
  67. package/dist/{one-tap-RrSKTQfM.mjs → one-tap-CPlglews.mjs} +1 -1
  68. package/dist/{open-api-sdGaJ0Cz.mjs → open-api-C33sH63J.mjs} +1 -1
  69. package/dist/{organization-BL87gz3V.mjs → organization-BsVZQpxC.mjs} +3 -22
  70. package/dist/plugins/access/index.d.mts +2 -2
  71. package/dist/plugins/admin/access/index.d.mts +42 -45
  72. package/dist/plugins/admin/index.d.mts +25 -6
  73. package/dist/plugins/admin/index.mjs +4 -4
  74. package/dist/plugins/anonymous/index.d.mts +6 -5
  75. package/dist/plugins/anonymous/index.mjs +4 -4
  76. package/dist/plugins/bearer/index.d.mts +1 -1
  77. package/dist/plugins/captcha/index.d.mts +1 -1
  78. package/dist/plugins/custom-session/index.d.mts +6 -5
  79. package/dist/plugins/custom-session/index.mjs +3 -3
  80. package/dist/plugins/device-authorization/index.d.mts +1 -1
  81. package/dist/plugins/device-authorization/index.mjs +2 -2
  82. package/dist/plugins/email-otp/index.d.mts +1 -1
  83. package/dist/plugins/email-otp/index.mjs +4 -4
  84. package/dist/plugins/generic-oauth/index.d.mts +7 -6
  85. package/dist/plugins/generic-oauth/index.mjs +4 -4
  86. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  87. package/dist/plugins/haveibeenpwned/index.mjs +4 -4
  88. package/dist/plugins/index.d.mts +26 -29
  89. package/dist/plugins/index.mjs +19 -19
  90. package/dist/plugins/jwt/index.d.mts +6 -7
  91. package/dist/plugins/jwt/index.mjs +4 -4
  92. package/dist/plugins/magic-link/index.d.mts +1 -1
  93. package/dist/plugins/magic-link/index.mjs +4 -4
  94. package/dist/plugins/multi-session/index.d.mts +2 -2
  95. package/dist/plugins/multi-session/index.mjs +4 -4
  96. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  97. package/dist/plugins/oauth-proxy/index.mjs +4 -4
  98. package/dist/plugins/oidc-provider/index.d.mts +25 -28
  99. package/dist/plugins/oidc-provider/index.mjs +5 -5
  100. package/dist/plugins/one-tap/index.d.mts +1 -1
  101. package/dist/plugins/one-tap/index.mjs +4 -4
  102. package/dist/plugins/one-time-token/index.d.mts +7 -6
  103. package/dist/plugins/one-time-token/index.mjs +19 -19
  104. package/dist/plugins/open-api/index.d.mts +2 -2
  105. package/dist/plugins/open-api/index.mjs +4 -4
  106. package/dist/plugins/organization/access/index.d.mts +25 -28
  107. package/dist/plugins/organization/index.d.mts +25 -28
  108. package/dist/plugins/organization/index.mjs +4 -4
  109. package/dist/plugins/phone-number/index.d.mts +6 -5
  110. package/dist/plugins/phone-number/index.mjs +3 -3
  111. package/dist/plugins/siwe/index.d.mts +6 -5
  112. package/dist/plugins/siwe/index.mjs +4 -4
  113. package/dist/plugins/two-factor/index.d.mts +7 -6
  114. package/dist/plugins/two-factor/index.mjs +3 -3
  115. package/dist/plugins/username/index.d.mts +3 -3
  116. package/dist/plugins/username/index.mjs +4 -4
  117. package/dist/{plugins-KJX8_wM4.mjs → plugins-Bgc_0YsW.mjs} +12 -8
  118. package/dist/{plugins-ClXJF1tD.d.mts → plugins-SfZpwDiz.d.mts} +1 -1
  119. package/dist/{promise-B9Mgup-x.mjs → promise-C9ABpfHK.mjs} +1 -2
  120. package/dist/{siwe-Z-Dh181B.mjs → siwe-D4lyacqA.mjs} +1 -1
  121. package/dist/test-utils/index.d.mts +11639 -34
  122. package/dist/test-utils/index.mjs +24 -24
  123. package/dist/types/index.d.mts +5 -4
  124. package/dist/{username-CdqIK2bY.mjs → username-CxPDW9ty.mjs} +1 -1
  125. package/package.json +49 -47
  126. package/dist/index-5_YIhDIp.d.mts +0 -226
  127. package/dist/index-BEGcCYiE.d.mts +0 -37
  128. package/dist/index-BE_eABaa.d.mts +0 -31
  129. package/dist/index-B_kk6DT-.d.mts +0 -238
  130. package/dist/index-CyyfSaZ_.d.mts +0 -115
  131. package/dist/index-D-Mj2ulL.d.mts +0 -602
  132. package/dist/index-D-TY1MQ6.d.mts +0 -94
  133. package/dist/index-DKwYzmM8.d.mts +0 -206
  134. package/dist/index-DN-gBurh.d.mts +0 -42
  135. package/dist/index-G6KSgyww.d.mts +0 -500
  136. package/dist/index-JvBDcp_w.d.mts +0 -24
  137. package/dist/index-f88KMXPN.d.mts +0 -29
  138. package/dist/index-fj43kZq3.d.mts +0 -441
  139. package/dist/index-gmDk7lt-.d.mts +0 -73
  140. package/dist/index-zDc06B1e.d.mts +0 -3662
  141. package/dist/server-xLuaTNNF.mjs +0 -20940
  142. package/dist/state-M2NfiHag.d.mts +0 -25
  143. /package/dist/{bun-sqlite-dialect-2R9nCsVF.mjs → bun-sqlite-dialect-C3P_ISb5.mjs} +0 -0
  144. /package/dist/{helper-DU33OcfW.d.mts → helper-DFzV6jvx.d.mts} +0 -0
  145. /package/dist/{node-sqlite-dialect-CdC7L-ji.mjs → node-sqlite-dialect-D6w8Ekdz.mjs} +0 -0
  146. /package/dist/{types-CRiHq5rJ.d.mts → types-CEepZ-RG.d.mts} +0 -0
@@ -1,9 +1,10 @@
1
- import { Et as Where$1, Tt as TransactionAdapter, bt as AdapterSchemaCreation } from "../index-D-Mj2ulL.mjs";
2
- import "../types-CRiHq5rJ.mjs";
3
- import { u as Prettify } from "../helper-DU33OcfW.mjs";
4
- import "../plugins-ClXJF1tD.mjs";
1
+ import { $t as AdapterSchemaCreation, an as Where$1, in as TransactionAdapter } from "../index-BTk-wfTL.mjs";
2
+ import "../types-CEepZ-RG.mjs";
3
+ import { u as Prettify } from "../helper-DFzV6jvx.mjs";
4
+ import "../index-D8MBzSjs.mjs";
5
+ import "../plugins-SfZpwDiz.mjs";
5
6
  import { BetterAuthOptions } from "@better-auth/core";
6
- import * as _better_auth_core_db7 from "@better-auth/core/db";
7
+ import * as _better_auth_core_db23 from "@better-auth/core/db";
7
8
  import { BetterAuthDBSchema, DBFieldAttribute } from "@better-auth/core/db";
8
9
  import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig, JoinConfig } from "@better-auth/core/db/adapter";
9
10
  export * from "@better-auth/core/db/adapter";
@@ -53,7 +54,7 @@ declare const initGetFieldAttributes: ({
53
54
  }: {
54
55
  model: string;
55
56
  field: string;
56
- }) => _better_auth_core_db7.DBFieldAttribute<_better_auth_core_db7.DBFieldType>;
57
+ }) => _better_auth_core_db23.DBFieldAttribute<_better_auth_core_db23.DBFieldType>;
57
58
  //#endregion
58
59
  //#region src/adapters/adapter-factory/get-field-name.d.ts
59
60
  declare const initGetFieldName: ({
@@ -95,8 +96,8 @@ declare const initGetIdField: ({
95
96
  forceAllowId?: boolean;
96
97
  }) => {
97
98
  transform: {
98
- input: (value: _better_auth_core_db7.DBPrimitive) => string | number | true | Date | Record<string, unknown> | unknown[] | undefined;
99
- output: (value: _better_auth_core_db7.DBPrimitive) => string | undefined;
99
+ input: (value: _better_auth_core_db23.DBPrimitive) => string | number | true | Date | unknown[] | Record<string, unknown> | undefined;
100
+ output: (value: _better_auth_core_db23.DBPrimitive) => string | undefined;
100
101
  };
101
102
  defaultValue?: (() => string | false | undefined) | undefined;
102
103
  type: "string" | "number";
@@ -1,4 +1,4 @@
1
- import { t as KyselyDatabaseType } from "../../types-CRiHq5rJ.mjs";
1
+ import { t as KyselyDatabaseType } from "../../types-CEepZ-RG.mjs";
2
2
  import { BetterAuthOptions } from "@better-auth/core";
3
3
  import { Kysely } from "kysely";
4
4
  import { DBAdapter, DBAdapterDebugLogOption } from "@better-auth/core/db/adapter";
@@ -1,4 +1,4 @@
1
- import { n as getKyselyDatabaseType, t as createKyselyAdapter } from "../../dialect-BvcuosDD.mjs";
1
+ import { n as getKyselyDatabaseType, t as createKyselyAdapter } from "../../dialect-D9ZUZA4J.mjs";
2
2
  import "../../get-model-name-D4DUV7S2.mjs";
3
3
  import "../../utils-DBbaShi0.mjs";
4
4
  import "../../crypto-BQxYXGGX.mjs";
@@ -1,5 +1,5 @@
1
1
  import { l as parseUserOutput, t as mergeSchema, u as getDate } from "./schema-CSB7dlK0.mjs";
2
- import { t as APIError } from "./api-EbGN0arI.mjs";
2
+ import { t as APIError } from "./api-q2sbQ7PT.mjs";
3
3
  import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-D_dksn7B.mjs";
4
4
  import { r as getSessionFromCtx } from "./session-CgfX4vv1.mjs";
5
5
  import { t as hasPermission } from "./has-permission-DN8I_Icv.mjs";
@@ -1,6 +1,6 @@
1
1
  import { t as generateId } from "./utils-DBbaShi0.mjs";
2
2
  import { t as mergeSchema } from "./schema-CSB7dlK0.mjs";
3
- import { t as APIError } from "./api-EbGN0arI.mjs";
3
+ import { t as APIError } from "./api-q2sbQ7PT.mjs";
4
4
  import { c as setSessionCookie, l as parseSetCookieHeader } from "./cookies-D_dksn7B.mjs";
5
5
  import { r as getSessionFromCtx } from "./session-CgfX4vv1.mjs";
6
6
  import { defineErrorCodes } from "@better-auth/core/utils";
@@ -1,5 +1,6 @@
1
- import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-D-Mj2ulL.mjs";
2
- import "../types-CRiHq5rJ.mjs";
3
- import "../helper-DU33OcfW.mjs";
4
- import "../plugins-ClXJF1tD.mjs";
1
+ import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-BTk-wfTL.mjs";
2
+ import "../types-CEepZ-RG.mjs";
3
+ import "../helper-DFzV6jvx.mjs";
4
+ import "../index-D8MBzSjs.mjs";
5
+ import "../plugins-SfZpwDiz.mjs";
5
6
  export { APIError, AuthEndpoint, AuthMiddleware, accountInfo, callbackOAuth, changeEmail, changePassword, checkEndpointConflicts, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, freshSessionMiddleware, getAccessToken, getEndpoints, getIp, getOAuthState, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, refreshToken, requestOnlySessionMiddleware, requestPasswordReset, requestPasswordResetCallback, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sensitiveSessionMiddleware, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
@@ -1,6 +1,6 @@
1
- import "../dialect-BvcuosDD.mjs";
1
+ import "../dialect-D9ZUZA4J.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import "../get-migration-BHJiEhv-.mjs";
3
+ import "../get-migration-wMpq_Lmw.mjs";
4
4
  import { a as getOAuthState } from "../utils-DBbaShi0.mjs";
5
5
  import "../crypto-BQxYXGGX.mjs";
6
6
  import "../jwt-DzuIBp7t.mjs";
@@ -9,7 +9,7 @@ import "../schema-CSB7dlK0.mjs";
9
9
  import { t as getIp } from "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-BLNRhCPO.mjs";
12
- import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-EbGN0arI.mjs";
12
+ import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-q2sbQ7PT.mjs";
13
13
  import "../cookies-D_dksn7B.mjs";
14
14
  import { a as requestOnlySessionMiddleware, c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "../session-CgfX4vv1.mjs";
15
15
 
@@ -1821,12 +1821,13 @@ function redirectCallback(ctx, callbackURL, query) {
1821
1821
  }
1822
1822
  const requestPasswordReset = createAuthEndpoint("/request-password-reset", {
1823
1823
  method: "POST",
1824
+ operationId: "forgetPassword",
1824
1825
  body: z.object({
1825
1826
  email: z.email().meta({ description: "The email address of the user to send a password reset email to" }),
1826
1827
  redirectTo: z.string().meta({ description: "The URL to redirect the user to reset their password. If the token isn't valid or expired, it'll be redirected with a query parameter `?error=INVALID_TOKEN`. If the token is valid, it'll be redirected with a query parameter `?token=VALID_TOKEN" }).optional()
1827
1828
  }),
1828
1829
  metadata: { openapi: {
1829
- operationId: "requestPasswordReset",
1830
+ operationId: "forgetPassword",
1830
1831
  description: "Send a password reset email to the user",
1831
1832
  responses: { "200": {
1832
1833
  description: "Success",
@@ -2463,8 +2464,7 @@ const updateUser = () => createAuthEndpoint("/update-user", {
2463
2464
  },
2464
2465
  image: {
2465
2466
  type: "string",
2466
- description: "The image of the user",
2467
- nullable: true
2467
+ description: "The image of the user"
2468
2468
  }
2469
2469
  }
2470
2470
  } } } },
@@ -1,7 +1,8 @@
1
- import { o as Auth } from "../index-D-Mj2ulL.mjs";
2
- import "../types-CRiHq5rJ.mjs";
3
- import "../helper-DU33OcfW.mjs";
4
- import "../plugins-ClXJF1tD.mjs";
1
+ import { o as Auth } from "../index-BTk-wfTL.mjs";
2
+ import "../types-CEepZ-RG.mjs";
3
+ import "../helper-DFzV6jvx.mjs";
4
+ import "../index-D8MBzSjs.mjs";
5
+ import "../plugins-SfZpwDiz.mjs";
5
6
  import { BetterAuthOptions } from "@better-auth/core";
6
7
 
7
8
  //#region src/auth/minimal.d.ts
@@ -1,6 +1,6 @@
1
- import "../dialect-BvcuosDD.mjs";
1
+ import "../dialect-D9ZUZA4J.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import { d as getBaseAdapter } from "../get-migration-BHJiEhv-.mjs";
3
+ import { d as getBaseAdapter } from "../get-migration-wMpq_Lmw.mjs";
4
4
  import "../utils-DBbaShi0.mjs";
5
5
  import "../crypto-BQxYXGGX.mjs";
6
6
  import "../jwt-DzuIBp7t.mjs";
@@ -9,10 +9,10 @@ import "../schema-CSB7dlK0.mjs";
9
9
  import "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-BLNRhCPO.mjs";
12
- import "../api-EbGN0arI.mjs";
12
+ import "../api-q2sbQ7PT.mjs";
13
13
  import "../cookies-D_dksn7B.mjs";
14
14
  import "../session-CgfX4vv1.mjs";
15
- import { n as createAuthContext, t as createBetterAuth } from "../base-DNnxU0Gh.mjs";
15
+ import { n as createAuthContext, t as createBetterAuth } from "../base-CPOjsixh.mjs";
16
16
  import "../password-DBH2q5D6.mjs";
17
17
  import { BetterAuthError } from "@better-auth/core/error";
18
18
 
@@ -1,6 +1,6 @@
1
- import { n as getKyselyDatabaseType } from "./dialect-BvcuosDD.mjs";
2
- import { t as getMigrations, u as getAdapter } from "./get-migration-BHJiEhv-.mjs";
3
- import { n as createAuthContext, t as createBetterAuth } from "./base-DNnxU0Gh.mjs";
1
+ import { n as getKyselyDatabaseType } from "./dialect-D9ZUZA4J.mjs";
2
+ import { t as getMigrations, u as getAdapter } from "./get-migration-wMpq_Lmw.mjs";
3
+ import { n as createAuthContext, t as createBetterAuth } from "./base-CPOjsixh.mjs";
4
4
  import { BetterAuthError } from "@better-auth/core/error";
5
5
 
6
6
  //#region src/context/init.ts
@@ -1,9 +1,9 @@
1
1
  import { a as getAuthTables } from "./get-model-name-D4DUV7S2.mjs";
2
- import { a as createInternalAdapter } from "./get-migration-BHJiEhv-.mjs";
2
+ import { a as createInternalAdapter } from "./get-migration-wMpq_Lmw.mjs";
3
3
  import { t as generateId } from "./utils-DBbaShi0.mjs";
4
4
  import { a as verifyPassword, i as hashPassword } from "./crypto-BQxYXGGX.mjs";
5
5
  import { r as getOrigin, t as getBaseURL } from "./url-BLNRhCPO.mjs";
6
- import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-EbGN0arI.mjs";
6
+ import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-q2sbQ7PT.mjs";
7
7
  import { i as getCookies, t as createCookieGetter } from "./cookies-D_dksn7B.mjs";
8
8
  import { t as checkPassword } from "./password-DBH2q5D6.mjs";
9
9
  import { runWithAdapter } from "@better-auth/core/context";
@@ -10,40 +10,25 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __commonJS = (cb, mod) => function() {
11
11
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
12
  };
13
- var __export = (all, symbols) => {
13
+ var __export = (all) => {
14
14
  let target = {};
15
- for (var name in all) {
16
- __defProp(target, name, {
17
- get: all[name],
18
- enumerable: true
19
- });
20
- }
21
- if (symbols) {
22
- __defProp(target, Symbol.toStringTag, { value: "Module" });
23
- }
15
+ for (var name in all) __defProp(target, name, {
16
+ get: all[name],
17
+ enumerable: true
18
+ });
24
19
  return target;
25
20
  };
26
21
  var __copyProps = (to, from, except, desc) => {
27
- if (from && typeof from === "object" || typeof from === "function") {
28
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
- key = keys[i];
30
- if (!__hasOwnProp.call(to, key) && key !== except) {
31
- __defProp(to, key, {
32
- get: ((k) => from[k]).bind(null, key),
33
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
34
- });
35
- }
36
- }
22
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
23
+ key = keys[i];
24
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
25
+ get: ((k) => from[k]).bind(null, key),
26
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
+ });
37
28
  }
38
29
  return to;
39
30
  };
40
- var __reExport = (target, mod, secondTarget, symbols) => {
41
- if (symbols) {
42
- __defProp(target, Symbol.toStringTag, { value: "Module" });
43
- secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
44
- }
45
- __copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
46
- };
31
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
47
32
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
48
33
  value: mod,
49
34
  enumerable: true
@@ -1,9 +1,8 @@
1
- import { At as ClientAtomListener, Bt as IsSignal, Dt as AtomListener, Ft as InferClientAPI, Ht as Store, It as InferErrorCodes, Lt as InferPluginsFromClient, Mt as ClientStore, Nt as InferActions, Ot as BetterAuthClientOptions, Pt as InferAdditionalFromClient, Rt as InferSessionFromClient, Vt as SessionQueryParams, jt as ClientOptions, kt as BetterAuthClientPlugin, zt as InferUserFromClient } from "../index-D-Mj2ulL.mjs";
2
- import "../types-CRiHq5rJ.mjs";
3
- import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../helper-DU33OcfW.mjs";
4
- import "../plugins-ClXJF1tD.mjs";
5
- import { _ as BroadcastMessage, a as createAuthClient, c as useAuthQuery, d as kOnlineManager, f as FocusListener, g as BroadcastListener, h as BroadcastChannel, i as AuthClient, l as OnlineListener, m as kFocusManager, n as InferPlugin, o as SessionRefreshOptions, p as FocusManager, r as Primitive, s as createSessionRefreshManager, t as InferAuth, u as OnlineManager, v as getGlobalBroadcastChannel, y as kBroadcastChannel } from "../index-DKwYzmM8.mjs";
6
- import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-Ck6mqAGv.mjs";
1
+ import { At as BroadcastMessage, Ct as OnlineManager, Dt as kFocusManager, Et as FocusManager, Mt as kBroadcastChannel, Ot as BroadcastChannel, St as OnlineListener, Tt as FocusListener, _n as InferSessionFromClient, _t as AuthClient, bn as SessionQueryParams, bt as createSessionRefreshManager, cn as BetterAuthClientPlugin, dn as ClientStore, fn as InferActions, gn as InferPluginsFromClient, gt as Primitive, hn as InferErrorCodes, ht as InferPlugin, jt as getGlobalBroadcastChannel, kt as BroadcastListener, ln as ClientAtomListener, mn as InferClientAPI, mt as InferAuth, on as AtomListener, pn as InferAdditionalFromClient, sn as BetterAuthClientOptions, un as ClientOptions, vn as InferUserFromClient, vt as createAuthClient, wt as kOnlineManager, xn as Store, xt as useAuthQuery, yn as IsSignal, yt as SessionRefreshOptions } from "../index-BTk-wfTL.mjs";
2
+ import "../types-CEepZ-RG.mjs";
3
+ import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../helper-DFzV6jvx.mjs";
4
+ import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-D8MBzSjs.mjs";
5
+ import "../plugins-SfZpwDiz.mjs";
7
6
  export * from "@better-auth/core/db";
8
7
  export * from "nanostores";
9
8
  export * from "@better-fetch/fetch";
@@ -1,12 +1,13 @@
1
- import { Bt as IsSignal, Ft as InferClientAPI, It as InferErrorCodes, Nt as InferActions, Vt as SessionQueryParams } from "../../index-D-Mj2ulL.mjs";
2
- import "../../types-CRiHq5rJ.mjs";
3
- import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DU33OcfW.mjs";
4
- import "../../plugins-ClXJF1tD.mjs";
1
+ import { bn as SessionQueryParams, fn as InferActions, hn as InferErrorCodes, mn as InferClientAPI, yn as IsSignal } from "../../index-BTk-wfTL.mjs";
2
+ import "../../types-CEepZ-RG.mjs";
3
+ import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DFzV6jvx.mjs";
4
+ import "../../index-D8MBzSjs.mjs";
5
+ import "../../plugins-SfZpwDiz.mjs";
5
6
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
6
7
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
- import * as nanostores0 from "nanostores";
8
+ import * as nanostores2 from "nanostores";
8
9
  import { Store, StoreValue } from "nanostores";
9
- import * as _better_fetch_fetch33 from "@better-fetch/fetch";
10
+ import * as _better_fetch_fetch67 from "@better-fetch/fetch";
10
11
  import { BetterFetchError } from "@better-fetch/fetch";
11
12
  import { DependencyList } from "@lynx-js/react";
12
13
  export * from "nanostores";
@@ -95,27 +96,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
95
96
  error: null;
96
97
  } ? S : Res : never>;
97
98
  };
98
- $fetch: _better_fetch_fetch33.BetterFetch<{
99
- plugins: (_better_fetch_fetch33.BetterFetchPlugin | {
99
+ $fetch: _better_fetch_fetch67.BetterFetch<{
100
+ plugins: (_better_fetch_fetch67.BetterFetchPlugin | {
100
101
  id: string;
101
102
  name: string;
102
103
  hooks: {
103
- onSuccess(context: _better_fetch_fetch33.SuccessContext<any>): void;
104
+ onSuccess(context: _better_fetch_fetch67.SuccessContext<any>): void;
104
105
  };
105
106
  } | {
106
107
  id: string;
107
108
  name: string;
108
109
  hooks: {
109
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>): void;
110
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch67.RequestContext<T>): void;
110
111
  };
111
112
  } | {
112
113
  id: string;
113
114
  name: string;
114
115
  hooks: {
115
- onSuccess: ((context: _better_fetch_fetch33.SuccessContext<any>) => Promise<void> | void) | undefined;
116
- onError: ((context: _better_fetch_fetch33.ErrorContext) => Promise<void> | void) | undefined;
117
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>) => Promise<_better_fetch_fetch33.RequestContext | void> | _better_fetch_fetch33.RequestContext | void) | undefined;
118
- onResponse: ((context: _better_fetch_fetch33.ResponseContext) => Promise<Response | void | _better_fetch_fetch33.ResponseContext> | Response | _better_fetch_fetch33.ResponseContext | void) | undefined;
116
+ onSuccess: ((context: _better_fetch_fetch67.SuccessContext<any>) => Promise<void> | void) | undefined;
117
+ onError: ((context: _better_fetch_fetch67.ErrorContext) => Promise<void> | void) | undefined;
118
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch67.RequestContext<T>) => Promise<_better_fetch_fetch67.RequestContext | void> | _better_fetch_fetch67.RequestContext | void) | undefined;
119
+ onResponse: ((context: _better_fetch_fetch67.ResponseContext) => Promise<Response | void | _better_fetch_fetch67.ResponseContext> | Response | _better_fetch_fetch67.ResponseContext | void) | undefined;
119
120
  };
120
121
  })[];
121
122
  cache?: RequestCache | undefined;
@@ -125,22 +126,22 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
125
126
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
126
127
  authorization: "Bearer" | "Basic";
127
128
  })) | undefined;
129
+ redirect?: RequestRedirect | undefined;
128
130
  credentials?: RequestCredentials;
129
131
  integrity?: string | undefined;
130
132
  keepalive?: boolean | undefined;
131
133
  mode?: RequestMode | undefined;
132
134
  priority?: RequestPriority | undefined;
133
- redirect?: RequestRedirect | undefined;
134
135
  referrer?: string | undefined;
135
136
  referrerPolicy?: ReferrerPolicy | undefined;
136
137
  signal?: (AbortSignal | null) | undefined;
137
138
  window?: null | undefined;
138
- onRetry?: ((response: _better_fetch_fetch33.ResponseContext) => Promise<void> | void) | undefined;
139
+ onRetry?: ((response: _better_fetch_fetch67.ResponseContext) => Promise<void> | void) | undefined;
139
140
  hookOptions?: {
140
141
  cloneResponse?: boolean;
141
142
  } | undefined;
142
143
  timeout?: number | undefined;
143
- customFetchImpl: _better_fetch_fetch33.FetchEsque;
144
+ customFetchImpl: _better_fetch_fetch67.FetchEsque;
144
145
  baseURL: string;
145
146
  throw?: boolean | undefined;
146
147
  auth?: ({
@@ -160,17 +161,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
160
161
  params?: any;
161
162
  duplex?: "full" | "half" | undefined;
162
163
  jsonParser: (text: string) => Promise<any> | any;
163
- retry?: _better_fetch_fetch33.RetryOptions | undefined;
164
+ retry?: _better_fetch_fetch67.RetryOptions | undefined;
164
165
  retryAttempt?: number | undefined;
165
- output?: (_better_fetch_fetch33.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
166
- errorSchema?: _better_fetch_fetch33.StandardSchemaV1 | undefined;
166
+ output?: (_better_fetch_fetch67.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
167
+ errorSchema?: _better_fetch_fetch67.StandardSchemaV1 | undefined;
167
168
  disableValidation?: boolean | undefined;
168
169
  disableSignal?: boolean | undefined;
169
170
  }, unknown, unknown, {}>;
170
171
  $store: {
171
172
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
172
173
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
173
- atoms: Record<string, nanostores0.WritableAtom<any>>;
174
+ atoms: Record<string, nanostores2.WritableAtom<any>>;
174
175
  };
175
176
  $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
176
177
  };
@@ -1,37 +1,34 @@
1
- import { Vt as SessionQueryParams, r as BetterAuthOptions$1, un as InferAdditionalFieldsFromPluginOptions } from "../../index-D-Mj2ulL.mjs";
2
- import "../../types-CRiHq5rJ.mjs";
3
- import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DU33OcfW.mjs";
4
- import "../../plugins-ClXJF1tD.mjs";
5
- import { a as Role, i as AccessControl, o as Statements } from "../../index-Ck6mqAGv.mjs";
6
- import "../../index-DN-gBurh.mjs";
7
- import { a as UserWithRole, i as SessionWithImpersonatedBy, n as AdminOptions, r as InferAdminRolesFromOption, t as admin } from "../../index-fj43kZq3.mjs";
8
- import { i as schema, n as AnonymousOptions, r as UserWithAnonymous, t as anonymous } from "../../index-C_7_0n5I.mjs";
9
- import { A as TeamMember, E as OrganizationRole, O as Team, S as Member, at as OAuthAccessToken, c as OrganizationPlugin, ct as TokenBody, f as OrganizationOptions, gt as ApiKeyOptions, h as InferOrganization, ht as ApiKey, it as CodeVerificationValue, m as InferMember, nt as AuthorizationQuery, ot as OIDCMetadata, p as InferInvitation, pt as apiKey, rt as Client, st as OIDCOptions, tt as oidcProvider, v as InferTeam, w as Organization, y as Invitation } from "../../index-zDc06B1e.mjs";
10
- import "../../index-f88KMXPN.mjs";
11
- import "../../index-B5V55AT0.mjs";
12
- import "../../index-BE_eABaa.mjs";
13
- import { n as deviceAuthorization } from "../../index-CyyfSaZ_.mjs";
14
- import { n as emailOTP } from "../../index-5_YIhDIp.mjs";
15
- import { _ as Auth0Options, a as SlackOptions, c as okta, d as LineOptions, f as line, g as hubspot, h as HubSpotOptions, i as genericOAuth, l as MicrosoftEntraIdOptions, m as keycloak, n as GenericOAuthConfig, o as slack, p as KeycloakOptions, r as GenericOAuthOptions, s as OktaOptions, t as BaseOAuthProviderOptions, u as microsoftEntraId, v as auth0 } from "../../index-BlFbMHpg.mjs";
16
- import "../../index-C12miRzk.mjs";
17
- import "../../state-M2NfiHag.mjs";
18
- import { c as Jwk, l as JwtOptions, o as JWKOptions, s as JWSAlgorithms, t as jwt } from "../../index-BR5yXcTF.mjs";
19
- import { n as magicLink } from "../../index-D-TY1MQ6.mjs";
20
- import { n as multiSession, t as MultiSessionConfig } from "../../index-gmDk7lt-.mjs";
21
- import "../../index-BEGcCYiE.mjs";
22
- import "../../index-JvBDcp_w.mjs";
23
- import { n as oneTimeToken, t as OneTimeTokenOptions } from "../../index-DHAy8_Lx.mjs";
24
- import "../../index-DGVCxXgt.mjs";
25
- import { n as PhoneNumberOptions, r as UserWithPhoneNumber, t as phoneNumber } from "../../index-B_kk6DT-.mjs";
26
- import { n as siwe } from "../../index-DitoYNDA.mjs";
27
- import { a as TwoFactorProvider, c as TOTPOptions, d as otp2fa, f as BackupCodeOptions, g as verifyBackupCode, h as getBackupCodes, i as TwoFactorOptions, l as totp2fa, m as generateBackupCodes, n as twoFactorClient, o as TwoFactorTable, p as backupCode2fa, s as UserWithTwoFactor, u as OTPOptions } from "../../index-G6KSgyww.mjs";
28
- import { n as username } from "../../index-BH0dV2Ob.mjs";
29
- import * as _better_auth_core6 from "@better-auth/core";
1
+ import { Un as InferAdditionalFieldsFromPluginOptions, bn as SessionQueryParams, r as BetterAuthOptions$1 } from "../../index-BTk-wfTL.mjs";
2
+ import "../../types-CEepZ-RG.mjs";
3
+ import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DFzV6jvx.mjs";
4
+ import { a as Role, i as AccessControl, o as Statements } from "../../index-D8MBzSjs.mjs";
5
+ import "../../plugins-SfZpwDiz.mjs";
6
+ import { B as OrganizationOptions, C as Organization, D as Team, T as OrganizationRole, _ as InferTeam, c as OrganizationPlugin, f as InferInvitation, ht as admin, k as TeamMember, m as InferOrganization, p as InferMember, pt as apiKey, tt as oidcProvider, v as Invitation, x as Member } from "../../index-C8eCoB52.mjs";
7
+ import { t as anonymous } from "../../index-BbsJ-RVs.mjs";
8
+ import "../../index-_MGUkN9y.mjs";
9
+ import "../../index-Bn1R6aVZ.mjs";
10
+ import "../../index-d52kDVAg.mjs";
11
+ import { n as deviceAuthorization } from "../../index-DiT4DbMC.mjs";
12
+ import { n as emailOTP } from "../../index-5t2DAD0k.mjs";
13
+ import { r as genericOAuth } from "../../index-CfCxrifw.mjs";
14
+ import "../../index-CrYIJeWc.mjs";
15
+ import { t as jwt } from "../../index-J1rkw6JT.mjs";
16
+ import { n as magicLink } from "../../index-DcYTqy8J.mjs";
17
+ import { t as multiSession } from "../../index-CBe2rvyJ.mjs";
18
+ import "../../index-DmC6Ctb-.mjs";
19
+ import "../../index-DaaVQEvX.mjs";
20
+ import { t as oneTimeToken } from "../../index-DljejjCu.mjs";
21
+ import "../../index-C-qjuMK3.mjs";
22
+ import { t as phoneNumber } from "../../index-B52PH6jU.mjs";
23
+ import { n as siwe } from "../../index-C40qLrfj.mjs";
24
+ import { n as twoFactorClient } from "../../index-UXC1tbRT.mjs";
25
+ import { n as username } from "../../index-DJFTvRYn.mjs";
26
+ import * as _better_auth_core27 from "@better-auth/core";
30
27
  import { BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
31
28
  import { DBFieldAttribute } from "@better-auth/core/db";
32
29
  import { JSONWebKeySet } from "jose";
33
- import * as nanostores4 from "nanostores";
34
- import * as _better_fetch_fetch102 from "@better-fetch/fetch";
30
+ import * as nanostores5 from "nanostores";
31
+ import * as _better_fetch_fetch101 from "@better-fetch/fetch";
35
32
  import { Auth } from "better-auth";
36
33
 
37
34
  //#region src/plugins/additional-fields/client.d.ts
@@ -268,7 +265,7 @@ declare const jwtClient: (options?: JwtClientOptions) => {
268
265
  pathMethods: {
269
266
  [x: string]: "GET";
270
267
  };
271
- getActions: ($fetch: _better_fetch_fetch102.BetterFetch) => {
268
+ getActions: ($fetch: _better_fetch_fetch101.BetterFetch) => {
272
269
  jwks: (fetchOptions?: any) => Promise<{
273
270
  data: null;
274
271
  error: {
@@ -418,10 +415,10 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
418
415
  }
419
416
  declare const oneTapClient: (options: GoogleOneTapOptions) => {
420
417
  id: "one-tap";
421
- getActions: ($fetch: _better_fetch_fetch102.BetterFetch, _: _better_auth_core6.ClientStore) => {
418
+ getActions: ($fetch: _better_fetch_fetch101.BetterFetch, _: _better_auth_core27.ClientStore) => {
422
419
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise<void>;
423
420
  };
424
- getAtoms($fetch: _better_fetch_fetch102.BetterFetch): {};
421
+ getAtoms($fetch: _better_fetch_fetch101.BetterFetch): {};
425
422
  };
426
423
  //#endregion
427
424
  //#region src/plugins/one-time-token/client.d.ts
@@ -520,11 +517,32 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
520
517
  } ? true : false;
521
518
  };
522
519
  }>;
523
- getActions: ($fetch: _better_fetch_fetch102.BetterFetch, _$store: _better_auth_core6.ClientStore, co: _better_auth_core6.BetterAuthClientOptions | undefined) => {
520
+ getActions: ($fetch: _better_fetch_fetch101.BetterFetch, _$store: _better_auth_core27.ClientStore, co: _better_auth_core27.BetterAuthClientOptions | undefined) => {
524
521
  $Infer: {
525
522
  ActiveOrganization: CO["teams"] extends {
526
523
  enabled: true;
527
- } ? any : any;
524
+ } ? {
525
+ members: InferMember<CO, false>[];
526
+ invitations: InferInvitation<CO>[];
527
+ teams: InferTeam<CO, false>[];
528
+ } & ({
529
+ id: string;
530
+ name: string;
531
+ slug: string;
532
+ createdAt: Date;
533
+ logo?: string | null | undefined;
534
+ metadata?: any;
535
+ } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) : {
536
+ members: InferMember<CO, false>[];
537
+ invitations: InferInvitation<CO, false>[];
538
+ } & ({
539
+ id: string;
540
+ name: string;
541
+ slug: string;
542
+ createdAt: Date;
543
+ logo?: string | null | undefined;
544
+ metadata?: any;
545
+ } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never);
528
546
  Organization: InferOrganization<CO, false>;
529
547
  Invitation: InferInvitation<CO, false>;
530
548
  Member: InferMember<CO, false>;
@@ -583,37 +601,47 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
583
601
  }) => boolean;
584
602
  };
585
603
  };
586
- getAtoms: ($fetch: _better_fetch_fetch102.BetterFetch) => {
587
- $listOrg: nanostores4.PreinitializedWritableAtom<boolean> & object;
588
- $activeOrgSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
589
- $activeMemberSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
590
- $activeMemberRoleSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
591
- activeOrganization: nanostores4.PreinitializedWritableAtom<{
592
- data: Prettify<any> | null;
593
- error: null | _better_fetch_fetch102.BetterFetchError;
604
+ getAtoms: ($fetch: _better_fetch_fetch101.BetterFetch) => {
605
+ $listOrg: nanostores5.PreinitializedWritableAtom<boolean> & object;
606
+ $activeOrgSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
607
+ $activeMemberSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
608
+ $activeMemberRoleSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
609
+ activeOrganization: nanostores5.PreinitializedWritableAtom<{
610
+ data: Prettify<({
611
+ id: string;
612
+ name: string;
613
+ slug: string;
614
+ createdAt: Date;
615
+ logo?: string | null | undefined;
616
+ metadata?: any;
617
+ } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) & {
618
+ members: InferMember<CO, false>[];
619
+ invitations: InferInvitation<CO, false>[];
620
+ }> | null;
621
+ error: null | _better_fetch_fetch101.BetterFetchError;
594
622
  isPending: boolean;
595
623
  isRefetching: boolean;
596
624
  refetch: (queryParams?: {
597
625
  query?: SessionQueryParams;
598
626
  } | undefined) => Promise<void>;
599
627
  }> & object;
600
- listOrganizations: nanostores4.PreinitializedWritableAtom<{
601
- data: Prettify<{
628
+ listOrganizations: nanostores5.PreinitializedWritableAtom<{
629
+ data: ({
602
630
  id: string;
603
631
  name: string;
604
632
  slug: string;
605
633
  createdAt: Date;
606
634
  logo?: string | null | undefined;
607
635
  metadata?: any;
608
- } & InferAdditionalFieldsFromPluginOptions<"organization", O, isClientSide>>[] | null;
609
- error: null | _better_fetch_fetch102.BetterFetchError;
636
+ } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null;
637
+ error: null | _better_fetch_fetch101.BetterFetchError;
610
638
  isPending: boolean;
611
639
  isRefetching: boolean;
612
640
  refetch: (queryParams?: {
613
641
  query?: SessionQueryParams;
614
642
  } | undefined) => Promise<void>;
615
643
  }> & object;
616
- activeMember: nanostores4.PreinitializedWritableAtom<{
644
+ activeMember: nanostores5.PreinitializedWritableAtom<{
617
645
  data: {
618
646
  id: string;
619
647
  organizationId: string;
@@ -621,18 +649,18 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
621
649
  role: string;
622
650
  createdAt: Date;
623
651
  } | null;
624
- error: null | _better_fetch_fetch102.BetterFetchError;
652
+ error: null | _better_fetch_fetch101.BetterFetchError;
625
653
  isPending: boolean;
626
654
  isRefetching: boolean;
627
655
  refetch: (queryParams?: {
628
656
  query?: SessionQueryParams;
629
657
  } | undefined) => Promise<void>;
630
658
  }> & object;
631
- activeMemberRole: nanostores4.PreinitializedWritableAtom<{
659
+ activeMemberRole: nanostores5.PreinitializedWritableAtom<{
632
660
  data: {
633
661
  role: string;
634
662
  } | null;
635
- error: null | _better_fetch_fetch102.BetterFetchError;
663
+ error: null | _better_fetch_fetch101.BetterFetchError;
636
664
  isPending: boolean;
637
665
  isRefetching: boolean;
638
666
  refetch: (queryParams?: {
@@ -753,7 +781,9 @@ declare const inferOrgAdditionalFields: <O$1 extends {
753
781
  fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string };
754
782
  additionalFields?: { [key in string]: DBFieldAttribute };
755
783
  };
756
- } | undefined ? S_1 : undefined : undefined : undefined : S$1;
784
+ } | undefined ? { [K in keyof S_1]: S_1[K] extends {
785
+ additionalFields: infer AF;
786
+ } ? S_1[K] : undefined } : undefined : undefined : undefined : S$1;
757
787
  //#endregion
758
788
  //#region src/plugins/phone-number/client.d.ts
759
789
  declare const phoneNumberClient: () => {
@@ -793,4 +823,4 @@ declare const InferServerPlugin: <AuthOrOption extends BetterAuthOptions | {
793
823
  } ? P : never : never;
794
824
  };
795
825
  //#endregion
796
- export { AdminOptions, AnonymousOptions, ApiKey, ApiKeyClientPlugin, ApiKeyOptions, Auth0Options, AuthorizationQuery, Awaitable, BackupCodeOptions, type BaseOAuthProviderOptions, Client, CodeVerificationValue, DeepPartial, Expand, type GenericOAuthConfig, type GenericOAuthOptions, GoogleOneTapActionOptions, GoogleOneTapOptions, HasRequiredKeys, HubSpotOptions, InferAdminRolesFromOption, InferServerPlugin, JWKOptions, JWSAlgorithms, Jwk, JwtOptions, KeycloakOptions, LastLoginMethodClientConfig, LineOptions, LiteralNumber, LiteralString, LiteralUnion, MicrosoftEntraIdOptions, type MultiSessionConfig, OAuthAccessToken, OIDCMetadata, OIDCOptions, OTPOptions, OidcClientPlugin, OktaOptions, OmitId, type OneTimeTokenOptions, PhoneNumberOptions, PreserveJSDoc, Prettify, PrettifyDeep, Primitive, RequiredKeysOf, SessionWithImpersonatedBy, SlackOptions, StripEmptyObjects, TOTPOptions, TokenBody, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UnionToIntersection, UserWithAnonymous, UserWithPhoneNumber, UserWithRole, UserWithTwoFactor, WithoutEmpty, adminClient, anonymousClient, apiKeyClient, auth0, backupCode2fa, clientSideHasPermission, customSessionClient, deviceAuthorizationClient, emailOTPClient, generateBackupCodes, genericOAuthClient, getBackupCodes, hubspot, inferAdditionalFields, inferOrgAdditionalFields, jwtClient, keycloak, lastLoginMethodClient, line, magicLinkClient, microsoftEntraId, multiSessionClient, oidcClient, okta, oneTapClient, oneTimeTokenClient, organizationClient, otp2fa, phoneNumberClient, schema, siweClient, slack, totp2fa, twoFactorClient, usernameClient, verifyBackupCode };
826
+ export { ApiKeyClientPlugin, Awaitable, DeepPartial, Expand, GoogleOneTapActionOptions, GoogleOneTapOptions, HasRequiredKeys, InferServerPlugin, LastLoginMethodClientConfig, LiteralNumber, LiteralString, LiteralUnion, OidcClientPlugin, OmitId, PreserveJSDoc, Prettify, PrettifyDeep, Primitive, RequiredKeysOf, StripEmptyObjects, UnionToIntersection, WithoutEmpty, adminClient, anonymousClient, apiKeyClient, clientSideHasPermission, customSessionClient, deviceAuthorizationClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, inferOrgAdditionalFields, jwtClient, lastLoginMethodClient, magicLinkClient, multiSessionClient, oidcClient, oneTapClient, oneTimeTokenClient, organizationClient, phoneNumberClient, siweClient, twoFactorClient, usernameClient };