better-auth 1.4.0 → 1.4.1-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 (138) hide show
  1. package/dist/adapters/index.d.mts +8 -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-dDEnOHoH.mjs → admin-DjEmkgJR.mjs} +1 -1
  5. package/dist/{anonymous-Cw36pQvS.mjs → anonymous-BWPvpB8l.mjs} +1 -1
  6. package/dist/api/index.d.mts +4 -4
  7. package/dist/api/index.mjs +3 -3
  8. package/dist/{api-CtnRQF6-.mjs → api-Ch2M0RnX.mjs} +1 -2
  9. package/dist/auth/minimal.d.mts +4 -4
  10. package/dist/auth/minimal.mjs +4 -4
  11. package/dist/{auth-CmO8rjFl.mjs → auth-DFHPggAv.mjs} +3 -3
  12. package/dist/{base-CODmcYOQ.mjs → base-aAzBva0a.mjs} +2 -2
  13. package/dist/client/index.d.mts +21 -21
  14. package/dist/client/index.mjs +2 -2
  15. package/dist/client/lynx/index.d.mts +4 -4
  16. package/dist/client/lynx/index.mjs +1 -1
  17. package/dist/client/plugins/index.d.mts +44 -44
  18. package/dist/client/plugins/index.mjs +2 -2
  19. package/dist/client/react/index.d.mts +4 -4
  20. package/dist/client/react/index.mjs +1 -1
  21. package/dist/client/solid/index.d.mts +18 -18
  22. package/dist/client/solid/index.mjs +1 -1
  23. package/dist/client/svelte/index.d.mts +18 -18
  24. package/dist/client/svelte/index.mjs +1 -1
  25. package/dist/client/vue/index.d.mts +4 -4
  26. package/dist/client/vue/index.mjs +1 -1
  27. package/dist/{client-D6y29bCu.mjs → client-BikTMh-g.mjs} +1 -1
  28. package/dist/cookies/index.d.mts +5 -5
  29. package/dist/db/index.d.mts +4 -4
  30. package/dist/db/index.mjs +2 -2
  31. package/dist/{dialect-D9ZUZA4J.mjs → dialect-BvcuosDD.mjs} +2 -2
  32. package/dist/{email-otp-CKV19Ckx.mjs → email-otp-Iw2Grar7.mjs} +1 -1
  33. package/dist/{generic-oauth-DX7YKce6.mjs → generic-oauth-C_9CdfjG.mjs} +1 -1
  34. package/dist/{get-migration-DFWocmZ4.mjs → get-migration-Dhy7uvKz.mjs} +1 -1
  35. package/dist/{haveibeenpwned-DUGeevf5.mjs → haveibeenpwned-PK1YORE5.mjs} +1 -1
  36. package/dist/{index-C3G9dIbY.d.mts → index-3FZ4iw2d.d.mts} +23 -23
  37. package/dist/{index-C5ZNIUA4.d.mts → index-76BuE6AW.d.mts} +4 -4
  38. package/dist/{index-BVJL9NCo.d.mts → index-B3Wpc3sL.d.mts} +6 -6
  39. package/dist/{index-BI_f2Azb.d.mts → index-B3ta3gmq.d.mts} +2 -2
  40. package/dist/{index-rnNTrfA7.d.mts → index-B45xbAn7.d.mts} +1 -1
  41. package/dist/{index-CWnaOyOF.d.mts → index-B5SdHrOG.d.mts} +8 -8
  42. package/dist/{index-H8a8MENl.d.mts → index-B87hBqA3.d.mts} +380 -340
  43. package/dist/{index-XKRV6Qt4.d.mts → index-BY4yRG16.d.mts} +4 -4
  44. package/dist/{index-D7X2M0Gr.d.mts → index-Ba-wkloE.d.mts} +6 -6
  45. package/dist/{index-P0C2G8Ry.d.mts → index-C5MPTktk.d.mts} +1 -1
  46. package/dist/{index-DIdwqy-S.d.mts → index-C99AUcIp.d.mts} +12 -12
  47. package/dist/{index-M5UDULql.d.mts → index-CgMG51Ai.d.mts} +5 -5
  48. package/dist/{index-CStRVDev.d.mts → index-DHeN2Npx.d.mts} +6 -6
  49. package/dist/{index-WuVgHw7_.d.mts → index-DIlZ1_TP.d.mts} +8 -11
  50. package/dist/{index-DwyjHenu.d.mts → index-DJx5kki5.d.mts} +7 -7
  51. package/dist/{index-Cco8tDfD.d.mts → index-DK1Wdij3.d.mts} +2 -2
  52. package/dist/{index-Bt3ab1b2.d.mts → index-DMFE48z6.d.mts} +4 -4
  53. package/dist/{index-COylpHSt.d.mts → index-DfRDIg8M.d.mts} +6 -6
  54. package/dist/{index-BXyyIrU-.d.mts → index-DrBv0dmW.d.mts} +12 -12
  55. package/dist/{index-DpVz0iEa.d.mts → index-TYcQHQiI.d.mts} +15 -15
  56. package/dist/{index-XgaNVx7X.d.mts → index-T_UlwoWp.d.mts} +3 -3
  57. package/dist/{index-DiLNTN_g.d.mts → index-f6tnl0Hu.d.mts} +14 -14
  58. package/dist/{index-DlyCsCOj.d.mts → index-lkDn6QLK.d.mts} +15 -15
  59. package/dist/index.d.mts +4 -4
  60. package/dist/index.mjs +5 -5
  61. package/dist/integrations/next-js.d.mts +4 -4
  62. package/dist/integrations/node.d.mts +4 -4
  63. package/dist/integrations/svelte-kit.d.mts +6 -6
  64. package/dist/integrations/tanstack-start.d.mts +4 -4
  65. package/dist/integrations/tanstack-start.mjs +1 -1
  66. package/dist/{jwt-BuqAJhwn.mjs → jwt-Bm36D5Qd.mjs} +2 -1
  67. package/dist/{magic-link-CoG1ioeB.mjs → magic-link-DFRO08H_.mjs} +1 -1
  68. package/dist/{multi-session-DbQYHT_t.mjs → multi-session-BIkeFJx_.mjs} +1 -1
  69. package/dist/{oauth-proxy-BkRjSYOV.mjs → oauth-proxy-u2rUqHab.mjs} +1 -1
  70. package/dist/oauth2/index.d.mts +4 -4
  71. package/dist/oauth2/index.mjs +3 -3
  72. package/dist/{oidc-provider-CzmNiMAW.mjs → oidc-provider-CZqkEqo1.mjs} +2 -2
  73. package/dist/{one-tap-BXj4EWjE.mjs → one-tap-DgoVIrws.mjs} +1 -1
  74. package/dist/{open-api-B1Kyaezu.mjs → open-api-WrHxGDgm.mjs} +1 -1
  75. package/dist/{organization-0xv5VdCW.mjs → organization-CQ9jVt0l.mjs} +2 -2
  76. package/dist/plugins/access/index.d.mts +2 -2
  77. package/dist/plugins/admin/access/index.d.mts +25 -25
  78. package/dist/plugins/admin/index.d.mts +25 -25
  79. package/dist/plugins/admin/index.mjs +4 -4
  80. package/dist/plugins/anonymous/index.d.mts +5 -5
  81. package/dist/plugins/anonymous/index.mjs +4 -4
  82. package/dist/plugins/bearer/index.d.mts +1 -1
  83. package/dist/plugins/captcha/index.d.mts +1 -1
  84. package/dist/plugins/custom-session/index.d.mts +5 -5
  85. package/dist/plugins/custom-session/index.mjs +3 -3
  86. package/dist/plugins/device-authorization/index.d.mts +1 -1
  87. package/dist/plugins/device-authorization/index.mjs +2 -2
  88. package/dist/plugins/email-otp/index.d.mts +1 -1
  89. package/dist/plugins/email-otp/index.mjs +4 -4
  90. package/dist/plugins/generic-oauth/index.d.mts +5 -5
  91. package/dist/plugins/generic-oauth/index.mjs +4 -4
  92. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  93. package/dist/plugins/haveibeenpwned/index.mjs +4 -4
  94. package/dist/plugins/index.d.mts +25 -25
  95. package/dist/plugins/index.mjs +19 -19
  96. package/dist/plugins/jwt/index.d.mts +5 -5
  97. package/dist/plugins/jwt/index.mjs +4 -4
  98. package/dist/plugins/magic-link/index.d.mts +1 -1
  99. package/dist/plugins/magic-link/index.mjs +4 -4
  100. package/dist/plugins/multi-session/index.d.mts +1 -1
  101. package/dist/plugins/multi-session/index.mjs +4 -4
  102. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  103. package/dist/plugins/oauth-proxy/index.mjs +4 -4
  104. package/dist/plugins/oidc-provider/index.d.mts +25 -25
  105. package/dist/plugins/oidc-provider/index.mjs +5 -5
  106. package/dist/plugins/one-tap/index.d.mts +1 -1
  107. package/dist/plugins/one-tap/index.mjs +4 -4
  108. package/dist/plugins/one-time-token/index.d.mts +5 -5
  109. package/dist/plugins/one-time-token/index.mjs +19 -19
  110. package/dist/plugins/open-api/index.d.mts +2 -2
  111. package/dist/plugins/open-api/index.mjs +4 -4
  112. package/dist/plugins/organization/access/index.d.mts +25 -25
  113. package/dist/plugins/organization/index.d.mts +25 -25
  114. package/dist/plugins/organization/index.mjs +4 -4
  115. package/dist/plugins/phone-number/index.d.mts +5 -5
  116. package/dist/plugins/phone-number/index.mjs +3 -3
  117. package/dist/plugins/siwe/index.d.mts +5 -5
  118. package/dist/plugins/siwe/index.mjs +4 -4
  119. package/dist/plugins/two-factor/index.d.mts +5 -5
  120. package/dist/plugins/two-factor/index.mjs +3 -3
  121. package/dist/plugins/username/index.d.mts +3 -3
  122. package/dist/plugins/username/index.mjs +4 -4
  123. package/dist/{plugins-BY-eqHg4.mjs → plugins-C-RtY44T.mjs} +412 -63
  124. package/dist/{plugins-Dmw3tk5H.d.mts → plugins-ClXJF1tD.d.mts} +1 -1
  125. package/dist/{proxy-DZR0bcsP.mjs → proxy-BMMJa46T.mjs} +0 -3
  126. package/dist/server-mxQ3s5dx.mjs +1912 -0
  127. package/dist/{siwe-DQYSFbuA.mjs → siwe-De9e8Scb.mjs} +1 -1
  128. package/dist/test-utils/index.d.mts +295 -301
  129. package/dist/test-utils/index.mjs +25 -25
  130. package/dist/types/index.d.mts +4 -4
  131. package/dist/{username-xFL9yCdE.mjs → username-BWTKRXQy.mjs} +1 -1
  132. package/package.json +3 -4
  133. /package/dist/{bun-sqlite-dialect-C3P_ISb5.mjs → bun-sqlite-dialect-2R9nCsVF.mjs} +0 -0
  134. /package/dist/{esm-DPWELC5I.mjs → esm-vGSrBWV-.mjs} +0 -0
  135. /package/dist/{helper-DFzV6jvx.d.mts → helper-DU33OcfW.d.mts} +0 -0
  136. /package/dist/{node-sqlite-dialect-D6w8Ekdz.mjs → node-sqlite-dialect-CdC7L-ji.mjs} +0 -0
  137. /package/dist/{promise-C9ABpfHK.mjs → promise-LNBdnXqN.mjs} +0 -0
  138. /package/dist/{types-CEepZ-RG.d.mts → types-CRiHq5rJ.d.mts} +0 -0
@@ -1,9 +1,9 @@
1
- import { Bt as Where$1, Pt as AdapterSchemaCreation, zt as TransactionAdapter } from "../index-WuVgHw7_.mjs";
2
- import "../types-CEepZ-RG.mjs";
3
- import { u as Prettify } from "../helper-DFzV6jvx.mjs";
4
- import "../plugins-Dmw3tk5H.mjs";
1
+ import { Bt as Where$1, Pt as AdapterSchemaCreation, zt as TransactionAdapter } from "../index-DIlZ1_TP.mjs";
2
+ import "../types-CRiHq5rJ.mjs";
3
+ import { u as Prettify } from "../helper-DU33OcfW.mjs";
4
+ import "../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthOptions } from "@better-auth/core";
6
- import * as _better_auth_core_db25 from "@better-auth/core/db";
6
+ import * as _better_auth_core_db23 from "@better-auth/core/db";
7
7
  import { BetterAuthDBSchema, DBFieldAttribute } from "@better-auth/core/db";
8
8
  import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig, JoinConfig } from "@better-auth/core/db/adapter";
9
9
  export * from "@better-auth/core/db/adapter";
@@ -53,7 +53,7 @@ declare const initGetFieldAttributes: ({
53
53
  }: {
54
54
  model: string;
55
55
  field: string;
56
- }) => _better_auth_core_db25.DBFieldAttribute<_better_auth_core_db25.DBFieldType>;
56
+ }) => _better_auth_core_db23.DBFieldAttribute<_better_auth_core_db23.DBFieldType>;
57
57
  //#endregion
58
58
  //#region src/adapters/adapter-factory/get-field-name.d.ts
59
59
  declare const initGetFieldName: ({
@@ -95,8 +95,8 @@ declare const initGetIdField: ({
95
95
  forceAllowId?: boolean;
96
96
  }) => {
97
97
  transform: {
98
- input: (value: _better_auth_core_db25.DBPrimitive) => string | number | true | Date | unknown[] | Record<string, unknown> | undefined;
99
- output: (value: _better_auth_core_db25.DBPrimitive) => string | undefined;
98
+ input: (value: _better_auth_core_db23.DBPrimitive) => string | number | true | Date | unknown[] | Record<string, unknown> | undefined;
99
+ output: (value: _better_auth_core_db23.DBPrimitive) => string | undefined;
100
100
  };
101
101
  defaultValue?: (() => string | false | undefined) | undefined;
102
102
  type: "string" | "number";
@@ -1,4 +1,4 @@
1
- import { t as KyselyDatabaseType } from "../../types-CEepZ-RG.mjs";
1
+ import { t as KyselyDatabaseType } from "../../types-CRiHq5rJ.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-D9ZUZA4J.mjs";
1
+ import { n as getKyselyDatabaseType, t as createKyselyAdapter } from "../../dialect-BvcuosDD.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-Bf7Oa87Q.mjs";
2
- import { t as APIError } from "./api-CtnRQF6-.mjs";
2
+ import { t as APIError } from "./api-Ch2M0RnX.mjs";
3
3
  import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-B7DF9RAb.mjs";
4
4
  import { r as getSessionFromCtx } from "./session-BbD-cxNG.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-Bf7Oa87Q.mjs";
3
- import { t as APIError } from "./api-CtnRQF6-.mjs";
3
+ import { t as APIError } from "./api-Ch2M0RnX.mjs";
4
4
  import { c as setSessionCookie, l as parseSetCookieHeader } from "./cookies-B7DF9RAb.mjs";
5
5
  import { r as getSessionFromCtx } from "./session-BbD-cxNG.mjs";
6
6
  import { defineErrorCodes } from "@better-auth/core/utils";
@@ -1,5 +1,5 @@
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-WuVgHw7_.mjs";
2
- import "../types-CEepZ-RG.mjs";
3
- import "../helper-DFzV6jvx.mjs";
4
- import "../plugins-Dmw3tk5H.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-DIlZ1_TP.mjs";
2
+ import "../types-CRiHq5rJ.mjs";
3
+ import "../helper-DU33OcfW.mjs";
4
+ import "../plugins-ClXJF1tD.mjs";
5
5
  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-D9ZUZA4J.mjs";
1
+ import "../dialect-BvcuosDD.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import "../get-migration-DFWocmZ4.mjs";
3
+ import "../get-migration-Dhy7uvKz.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-Bf7Oa87Q.mjs";
9
9
  import { t as getIp } from "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-C4fqRUH1.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-CtnRQF6-.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-Ch2M0RnX.mjs";
13
13
  import "../cookies-B7DF9RAb.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-BbD-cxNG.mjs";
15
15
 
@@ -1821,13 +1821,12 @@ function redirectCallback(ctx, callbackURL, query) {
1821
1821
  }
1822
1822
  const requestPasswordReset = createAuthEndpoint("/request-password-reset", {
1823
1823
  method: "POST",
1824
- operationId: "forgetPassword",
1825
1824
  body: z.object({
1826
1825
  email: z.email().meta({ description: "The email address of the user to send a password reset email to" }),
1827
1826
  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()
1828
1827
  }),
1829
1828
  metadata: { openapi: {
1830
- operationId: "forgetPassword",
1829
+ operationId: "requestPasswordReset",
1831
1830
  description: "Send a password reset email to the user",
1832
1831
  responses: { "200": {
1833
1832
  description: "Success",
@@ -1,7 +1,7 @@
1
- import { o as Auth } from "../index-WuVgHw7_.mjs";
2
- import "../types-CEepZ-RG.mjs";
3
- import "../helper-DFzV6jvx.mjs";
4
- import "../plugins-Dmw3tk5H.mjs";
1
+ import { o as Auth } from "../index-DIlZ1_TP.mjs";
2
+ import "../types-CRiHq5rJ.mjs";
3
+ import "../helper-DU33OcfW.mjs";
4
+ import "../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthOptions } from "@better-auth/core";
6
6
 
7
7
  //#region src/auth/minimal.d.ts
@@ -1,6 +1,6 @@
1
- import "../dialect-D9ZUZA4J.mjs";
1
+ import "../dialect-BvcuosDD.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import { d as getBaseAdapter } from "../get-migration-DFWocmZ4.mjs";
3
+ import { d as getBaseAdapter } from "../get-migration-Dhy7uvKz.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-Bf7Oa87Q.mjs";
9
9
  import "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-C4fqRUH1.mjs";
12
- import "../api-CtnRQF6-.mjs";
12
+ import "../api-Ch2M0RnX.mjs";
13
13
  import "../cookies-B7DF9RAb.mjs";
14
14
  import "../session-BbD-cxNG.mjs";
15
- import { n as createAuthContext, t as createBetterAuth } from "../base-CODmcYOQ.mjs";
15
+ import { n as createAuthContext, t as createBetterAuth } from "../base-aAzBva0a.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-D9ZUZA4J.mjs";
2
- import { t as getMigrations, u as getAdapter } from "./get-migration-DFWocmZ4.mjs";
3
- import { n as createAuthContext, t as createBetterAuth } from "./base-CODmcYOQ.mjs";
1
+ import { n as getKyselyDatabaseType } from "./dialect-BvcuosDD.mjs";
2
+ import { t as getMigrations, u as getAdapter } from "./get-migration-Dhy7uvKz.mjs";
3
+ import { n as createAuthContext, t as createBetterAuth } from "./base-aAzBva0a.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-DFWocmZ4.mjs";
2
+ import { a as createInternalAdapter } from "./get-migration-Dhy7uvKz.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-C4fqRUH1.mjs";
6
- import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-CtnRQF6-.mjs";
6
+ import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-Ch2M0RnX.mjs";
7
7
  import { i as getCookies, t as createCookieGetter } from "./cookies-B7DF9RAb.mjs";
8
8
  import { t as checkPassword } from "./password-DBH2q5D6.mjs";
9
9
  import { runWithAdapter } from "@better-auth/core/context";
@@ -1,13 +1,13 @@
1
- import { $t as InferUserFromClient, Gt as ClientOptions, Ht as BetterAuthClientOptions, Jt as InferAdditionalFromClient, Kt as ClientStore, Qt as InferSessionFromClient, Ut as BetterAuthClientPlugin, Vt as AtomListener, Wt as ClientAtomListener, Xt as InferErrorCodes, Yt as InferClientAPI, Zt as InferPluginsFromClient, en as IsSignal, nn as Store, qt as InferActions, tn as SessionQueryParams } from "../index-WuVgHw7_.mjs";
2
- import "../types-CEepZ-RG.mjs";
3
- import { d as PrettifyDeep, h as UnionToIntersection } from "../helper-DFzV6jvx.mjs";
4
- import "../plugins-Dmw3tk5H.mjs";
5
- 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-rnNTrfA7.mjs";
1
+ import { $t as InferUserFromClient, Gt as ClientOptions, Ht as BetterAuthClientOptions, Jt as InferAdditionalFromClient, Kt as ClientStore, Qt as InferSessionFromClient, Ut as BetterAuthClientPlugin, Vt as AtomListener, Wt as ClientAtomListener, Xt as InferErrorCodes, Yt as InferClientAPI, Zt as InferPluginsFromClient, en as IsSignal, nn as Store, qt as InferActions, tn as SessionQueryParams } from "../index-DIlZ1_TP.mjs";
2
+ import "../types-CRiHq5rJ.mjs";
3
+ import { d as PrettifyDeep, h as UnionToIntersection } from "../helper-DU33OcfW.mjs";
4
+ import "../plugins-ClXJF1tD.mjs";
5
+ 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-B45xbAn7.mjs";
6
6
  import { BetterAuthClientOptions as BetterAuthClientOptions$1, BetterAuthClientPlugin as BetterAuthClientPlugin$1, BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
7
7
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
8
- import * as nanostores11 from "nanostores";
8
+ import * as nanostores3 from "nanostores";
9
9
  import { Atom, PreinitializedWritableAtom, WritableAtom } from "nanostores";
10
- import * as _better_fetch_fetch93 from "@better-fetch/fetch";
10
+ import * as _better_fetch_fetch84 from "@better-fetch/fetch";
11
11
  import { BetterFetch, BetterFetchError } from "@better-fetch/fetch";
12
12
  export * from "@better-auth/core/db";
13
13
  export * from "nanostores";
@@ -103,27 +103,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
103
103
  error: BetterFetchError | null;
104
104
  isPending: boolean;
105
105
  }>;
106
- $fetch: _better_fetch_fetch93.BetterFetch<{
107
- plugins: (_better_fetch_fetch93.BetterFetchPlugin | {
106
+ $fetch: _better_fetch_fetch84.BetterFetch<{
107
+ plugins: (_better_fetch_fetch84.BetterFetchPlugin | {
108
108
  id: string;
109
109
  name: string;
110
110
  hooks: {
111
- onSuccess(context: _better_fetch_fetch93.SuccessContext<any>): void;
111
+ onSuccess(context: _better_fetch_fetch84.SuccessContext<any>): void;
112
112
  };
113
113
  } | {
114
114
  id: string;
115
115
  name: string;
116
116
  hooks: {
117
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch93.RequestContext<T>): void;
117
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch84.RequestContext<T>): void;
118
118
  };
119
119
  } | {
120
120
  id: string;
121
121
  name: string;
122
122
  hooks: {
123
- onSuccess: ((context: _better_fetch_fetch93.SuccessContext<any>) => Promise<void> | void) | undefined;
124
- onError: ((context: _better_fetch_fetch93.ErrorContext) => Promise<void> | void) | undefined;
125
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch93.RequestContext<T>) => Promise<_better_fetch_fetch93.RequestContext | void> | _better_fetch_fetch93.RequestContext | void) | undefined;
126
- onResponse: ((context: _better_fetch_fetch93.ResponseContext) => Promise<Response | void | _better_fetch_fetch93.ResponseContext> | Response | _better_fetch_fetch93.ResponseContext | void) | undefined;
123
+ onSuccess: ((context: _better_fetch_fetch84.SuccessContext<any>) => Promise<void> | void) | undefined;
124
+ onError: ((context: _better_fetch_fetch84.ErrorContext) => Promise<void> | void) | undefined;
125
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch84.RequestContext<T>) => Promise<_better_fetch_fetch84.RequestContext | void> | _better_fetch_fetch84.RequestContext | void) | undefined;
126
+ onResponse: ((context: _better_fetch_fetch84.ResponseContext) => Promise<Response | void | _better_fetch_fetch84.ResponseContext> | Response | _better_fetch_fetch84.ResponseContext | void) | undefined;
127
127
  };
128
128
  })[];
129
129
  cache?: RequestCache | undefined;
@@ -143,12 +143,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
143
143
  referrerPolicy?: ReferrerPolicy | undefined;
144
144
  signal?: (AbortSignal | null) | undefined;
145
145
  window?: null | undefined;
146
- onRetry?: ((response: _better_fetch_fetch93.ResponseContext) => Promise<void> | void) | undefined;
146
+ onRetry?: ((response: _better_fetch_fetch84.ResponseContext) => Promise<void> | void) | undefined;
147
147
  hookOptions?: {
148
148
  cloneResponse?: boolean;
149
149
  } | undefined;
150
150
  timeout?: number | undefined;
151
- customFetchImpl: _better_fetch_fetch93.FetchEsque;
151
+ customFetchImpl: _better_fetch_fetch84.FetchEsque;
152
152
  baseURL: string;
153
153
  throw?: boolean | undefined;
154
154
  auth?: ({
@@ -168,17 +168,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
168
168
  params?: any;
169
169
  duplex?: "full" | "half" | undefined;
170
170
  jsonParser: (text: string) => Promise<any> | any;
171
- retry?: _better_fetch_fetch93.RetryOptions | undefined;
171
+ retry?: _better_fetch_fetch84.RetryOptions | undefined;
172
172
  retryAttempt?: number | undefined;
173
- output?: (_better_fetch_fetch93.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
174
- errorSchema?: _better_fetch_fetch93.StandardSchemaV1 | undefined;
173
+ output?: (_better_fetch_fetch84.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
174
+ errorSchema?: _better_fetch_fetch84.StandardSchemaV1 | undefined;
175
175
  disableValidation?: boolean | undefined;
176
176
  disableSignal?: boolean | undefined;
177
177
  }, unknown, unknown, {}>;
178
178
  $store: {
179
179
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
180
180
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
181
- atoms: Record<string, nanostores11.WritableAtom<any>>;
181
+ atoms: Record<string, nanostores3.WritableAtom<any>>;
182
182
  };
183
183
  $Infer: {
184
184
  Session: NonNullable<InferClientAPI<Option> extends {
@@ -1,7 +1,7 @@
1
1
  import "../misc-D8A8FGv2.mjs";
2
2
  import "../url-C4fqRUH1.mjs";
3
- import { a as kOnlineManager, c as kBroadcastChannel, i as useAuthQuery, o as kFocusManager, r as createSessionRefreshManager, s as getGlobalBroadcastChannel } from "../proxy-DZR0bcsP.mjs";
3
+ import { a as kOnlineManager, c as kBroadcastChannel, i as useAuthQuery, o as kFocusManager, r as createSessionRefreshManager, s as getGlobalBroadcastChannel } from "../proxy-BMMJa46T.mjs";
4
4
  import "../parser-kwbb5q_C.mjs";
5
- import { n as InferPlugin, r as createAuthClient, t as InferAuth } from "../client-D6y29bCu.mjs";
5
+ import { n as InferPlugin, r as createAuthClient, t as InferAuth } from "../client-BikTMh-g.mjs";
6
6
 
7
7
  export { InferAuth, InferPlugin, createAuthClient, createSessionRefreshManager, getGlobalBroadcastChannel, kBroadcastChannel, kFocusManager, kOnlineManager, useAuthQuery };
@@ -1,7 +1,7 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-WuVgHw7_.mjs";
2
- import "../../types-CEepZ-RG.mjs";
3
- import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DFzV6jvx.mjs";
4
- import "../../plugins-Dmw3tk5H.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-DIlZ1_TP.mjs";
2
+ import "../../types-CRiHq5rJ.mjs";
3
+ import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
+ import "../../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
6
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
7
  import * as nanostores2 from "nanostores";
@@ -1,5 +1,5 @@
1
1
  import "../../url-C4fqRUH1.mjs";
2
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
2
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
3
3
  import "../../parser-kwbb5q_C.mjs";
4
4
  import { listenKeys } from "nanostores";
5
5
  import { useCallback, useRef, useSyncExternalStore } from "@lynx-js/react";
@@ -1,33 +1,33 @@
1
- import { i as BetterAuthPlugin$1, r as BetterAuthOptions$1, tn as SessionQueryParams, wn as InferAdditionalFieldsFromPluginOptions } from "../../index-WuVgHw7_.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 "../../plugins-Dmw3tk5H.mjs";
5
- import { a as Role, i as AccessControl, o as Statements } from "../../index-rnNTrfA7.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-H8a8MENl.mjs";
7
- import { t as anonymous } from "../../index-DwyjHenu.mjs";
8
- import "../../index-D7X2M0Gr.mjs";
9
- import "../../index-BI_f2Azb.mjs";
10
- import "../../index-COylpHSt.mjs";
11
- import { n as deviceAuthorization } from "../../index-BVJL9NCo.mjs";
12
- import { n as emailOTP } from "../../index-DlyCsCOj.mjs";
13
- import { r as genericOAuth } from "../../index-CStRVDev.mjs";
14
- import "../../index-XgaNVx7X.mjs";
15
- import { t as jwt } from "../../index-DIdwqy-S.mjs";
16
- import { n as magicLink } from "../../index-XKRV6Qt4.mjs";
17
- import { t as multiSession } from "../../index-DiLNTN_g.mjs";
18
- import "../../index-CWnaOyOF.mjs";
19
- import "../../index-Cco8tDfD.mjs";
20
- import { t as oneTimeToken } from "../../index-M5UDULql.mjs";
21
- import "../../index-Bt3ab1b2.mjs";
22
- import { t as phoneNumber } from "../../index-BXyyIrU-.mjs";
23
- import { n as siwe } from "../../index-C5ZNIUA4.mjs";
24
- import { n as twoFactorClient } from "../../index-C3G9dIbY.mjs";
25
- import { n as username } from "../../index-DpVz0iEa.mjs";
26
- import * as _better_auth_core24 from "@better-auth/core";
1
+ import { i as BetterAuthPlugin$1, r as BetterAuthOptions$1, tn as SessionQueryParams, wn as InferAdditionalFieldsFromPluginOptions } from "../../index-DIlZ1_TP.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-B45xbAn7.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-B87hBqA3.mjs";
7
+ import { t as anonymous } from "../../index-DJx5kki5.mjs";
8
+ import "../../index-Ba-wkloE.mjs";
9
+ import "../../index-B3ta3gmq.mjs";
10
+ import "../../index-DfRDIg8M.mjs";
11
+ import { n as deviceAuthorization } from "../../index-B3Wpc3sL.mjs";
12
+ import { n as emailOTP } from "../../index-lkDn6QLK.mjs";
13
+ import { r as genericOAuth } from "../../index-DHeN2Npx.mjs";
14
+ import "../../index-T_UlwoWp.mjs";
15
+ import { t as jwt } from "../../index-C99AUcIp.mjs";
16
+ import { n as magicLink } from "../../index-BY4yRG16.mjs";
17
+ import { t as multiSession } from "../../index-f6tnl0Hu.mjs";
18
+ import "../../index-B5SdHrOG.mjs";
19
+ import "../../index-DK1Wdij3.mjs";
20
+ import { t as oneTimeToken } from "../../index-CgMG51Ai.mjs";
21
+ import "../../index-DMFE48z6.mjs";
22
+ import { t as phoneNumber } from "../../index-DrBv0dmW.mjs";
23
+ import { n as siwe } from "../../index-76BuE6AW.mjs";
24
+ import { n as twoFactorClient } from "../../index-3FZ4iw2d.mjs";
25
+ import { n as username } from "../../index-TYcQHQiI.mjs";
26
+ import * as _better_auth_core28 from "@better-auth/core";
27
27
  import { BetterAuthOptions, ClientFetchOption } from "@better-auth/core";
28
28
  import { DBFieldAttribute } from "@better-auth/core/db";
29
- import * as nanostores3 from "nanostores";
30
- import * as _better_fetch_fetch84 from "@better-fetch/fetch";
29
+ import * as nanostores6 from "nanostores";
30
+ import * as _better_fetch_fetch118 from "@better-fetch/fetch";
31
31
  import { Auth } from "better-auth";
32
32
 
33
33
  //#region src/plugins/additional-fields/client.d.ts
@@ -387,10 +387,10 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
387
387
  }
388
388
  declare const oneTapClient: (options: GoogleOneTapOptions) => {
389
389
  id: "one-tap";
390
- getActions: ($fetch: _better_fetch_fetch84.BetterFetch, _: _better_auth_core24.ClientStore) => {
390
+ getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _: _better_auth_core28.ClientStore) => {
391
391
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise<void>;
392
392
  };
393
- getAtoms($fetch: _better_fetch_fetch84.BetterFetch): {};
393
+ getAtoms($fetch: _better_fetch_fetch118.BetterFetch): {};
394
394
  };
395
395
  //#endregion
396
396
  //#region src/plugins/one-time-token/client.d.ts
@@ -489,7 +489,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
489
489
  } ? true : false;
490
490
  };
491
491
  }>;
492
- getActions: ($fetch: _better_fetch_fetch84.BetterFetch, _$store: _better_auth_core24.ClientStore, co: _better_auth_core24.BetterAuthClientOptions | undefined) => {
492
+ getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _$store: _better_auth_core28.ClientStore, co: _better_auth_core28.BetterAuthClientOptions | undefined) => {
493
493
  $Infer: {
494
494
  ActiveOrganization: CO["teams"] extends {
495
495
  enabled: true;
@@ -573,12 +573,12 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
573
573
  }) => boolean;
574
574
  };
575
575
  };
576
- getAtoms: ($fetch: _better_fetch_fetch84.BetterFetch) => {
577
- $listOrg: nanostores3.PreinitializedWritableAtom<boolean> & object;
578
- $activeOrgSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
579
- $activeMemberSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
580
- $activeMemberRoleSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
581
- activeOrganization: nanostores3.PreinitializedWritableAtom<{
576
+ getAtoms: ($fetch: _better_fetch_fetch118.BetterFetch) => {
577
+ $listOrg: nanostores6.PreinitializedWritableAtom<boolean> & object;
578
+ $activeOrgSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
579
+ $activeMemberSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
580
+ $activeMemberRoleSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
581
+ activeOrganization: nanostores6.PreinitializedWritableAtom<{
582
582
  data: Prettify<({
583
583
  id: string;
584
584
  name: string;
@@ -590,14 +590,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
590
590
  members: InferMember<CO, false>[];
591
591
  invitations: InferInvitation<CO, false>[];
592
592
  }> | null;
593
- error: null | _better_fetch_fetch84.BetterFetchError;
593
+ error: null | _better_fetch_fetch118.BetterFetchError;
594
594
  isPending: boolean;
595
595
  isRefetching: boolean;
596
596
  refetch: (queryParams?: {
597
597
  query?: SessionQueryParams;
598
598
  } | undefined) => Promise<void>;
599
599
  }> & object;
600
- listOrganizations: nanostores3.PreinitializedWritableAtom<{
600
+ listOrganizations: nanostores6.PreinitializedWritableAtom<{
601
601
  data: ({
602
602
  id: string;
603
603
  name: string;
@@ -606,14 +606,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
606
606
  logo?: string | null | undefined;
607
607
  metadata?: any;
608
608
  } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null;
609
- error: null | _better_fetch_fetch84.BetterFetchError;
609
+ error: null | _better_fetch_fetch118.BetterFetchError;
610
610
  isPending: boolean;
611
611
  isRefetching: boolean;
612
612
  refetch: (queryParams?: {
613
613
  query?: SessionQueryParams;
614
614
  } | undefined) => Promise<void>;
615
615
  }> & object;
616
- activeMember: nanostores3.PreinitializedWritableAtom<{
616
+ activeMember: nanostores6.PreinitializedWritableAtom<{
617
617
  data: {
618
618
  id: string;
619
619
  organizationId: string;
@@ -621,18 +621,18 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
621
621
  role: string;
622
622
  createdAt: Date;
623
623
  } | null;
624
- error: null | _better_fetch_fetch84.BetterFetchError;
624
+ error: null | _better_fetch_fetch118.BetterFetchError;
625
625
  isPending: boolean;
626
626
  isRefetching: boolean;
627
627
  refetch: (queryParams?: {
628
628
  query?: SessionQueryParams;
629
629
  } | undefined) => Promise<void>;
630
630
  }> & object;
631
- activeMemberRole: nanostores3.PreinitializedWritableAtom<{
631
+ activeMemberRole: nanostores6.PreinitializedWritableAtom<{
632
632
  data: {
633
633
  role: string;
634
634
  } | null;
635
- error: null | _better_fetch_fetch84.BetterFetchError;
635
+ error: null | _better_fetch_fetch118.BetterFetchError;
636
636
  isPending: boolean;
637
637
  isRefetching: boolean;
638
638
  refetch: (queryParams?: {
@@ -1,8 +1,8 @@
1
1
  import "../../misc-D8A8FGv2.mjs";
2
2
  import "../../url-C4fqRUH1.mjs";
3
- import { i as useAuthQuery } from "../../proxy-DZR0bcsP.mjs";
3
+ import { i as useAuthQuery } from "../../proxy-BMMJa46T.mjs";
4
4
  import "../../parser-kwbb5q_C.mjs";
5
- import "../../client-D6y29bCu.mjs";
5
+ import "../../client-BikTMh-g.mjs";
6
6
  import "../../access-DXuPG0DH.mjs";
7
7
  import { a as userAc, t as adminAc$1 } from "../../access-Bue6UE97.mjs";
8
8
  import { t as hasPermission } from "../../has-permission-DN8I_Icv.mjs";
@@ -1,7 +1,7 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-WuVgHw7_.mjs";
2
- import "../../types-CEepZ-RG.mjs";
3
- import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DFzV6jvx.mjs";
4
- import "../../plugins-Dmw3tk5H.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-DIlZ1_TP.mjs";
2
+ import "../../types-CRiHq5rJ.mjs";
3
+ import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
+ import "../../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
6
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
7
  import * as nanostores0 from "nanostores";
@@ -1,5 +1,5 @@
1
1
  import "../../url-C4fqRUH1.mjs";
2
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
2
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
3
3
  import "../../parser-kwbb5q_C.mjs";
4
4
  import { listenKeys } from "nanostores";
5
5
  import { useCallback, useRef, useSyncExternalStore } from "react";
@@ -1,10 +1,10 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-WuVgHw7_.mjs";
2
- import "../../types-CEepZ-RG.mjs";
3
- import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DFzV6jvx.mjs";
4
- import "../../plugins-Dmw3tk5H.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-DIlZ1_TP.mjs";
2
+ import "../../types-CRiHq5rJ.mjs";
3
+ import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
+ import "../../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
6
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
- import * as _better_fetch_fetch33 from "@better-fetch/fetch";
7
+ import * as _better_fetch_fetch50 from "@better-fetch/fetch";
8
8
  import { BetterFetchError } from "@better-fetch/fetch";
9
9
  import { Accessor } from "solid-js";
10
10
  export * from "nanostores";
@@ -48,27 +48,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
48
48
  error: null;
49
49
  } ? S : Res extends Record<string, any> ? Res : never : never>;
50
50
  };
51
- $fetch: _better_fetch_fetch33.BetterFetch<{
52
- plugins: (_better_fetch_fetch33.BetterFetchPlugin | {
51
+ $fetch: _better_fetch_fetch50.BetterFetch<{
52
+ plugins: (_better_fetch_fetch50.BetterFetchPlugin | {
53
53
  id: string;
54
54
  name: string;
55
55
  hooks: {
56
- onSuccess(context: _better_fetch_fetch33.SuccessContext<any>): void;
56
+ onSuccess(context: _better_fetch_fetch50.SuccessContext<any>): void;
57
57
  };
58
58
  } | {
59
59
  id: string;
60
60
  name: string;
61
61
  hooks: {
62
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>): void;
62
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch50.RequestContext<T>): void;
63
63
  };
64
64
  } | {
65
65
  id: string;
66
66
  name: string;
67
67
  hooks: {
68
- onSuccess: ((context: _better_fetch_fetch33.SuccessContext<any>) => Promise<void> | void) | undefined;
69
- onError: ((context: _better_fetch_fetch33.ErrorContext) => Promise<void> | void) | undefined;
70
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>) => Promise<_better_fetch_fetch33.RequestContext | void> | _better_fetch_fetch33.RequestContext | void) | undefined;
71
- onResponse: ((context: _better_fetch_fetch33.ResponseContext) => Promise<Response | void | _better_fetch_fetch33.ResponseContext> | Response | _better_fetch_fetch33.ResponseContext | void) | undefined;
68
+ onSuccess: ((context: _better_fetch_fetch50.SuccessContext<any>) => Promise<void> | void) | undefined;
69
+ onError: ((context: _better_fetch_fetch50.ErrorContext) => Promise<void> | void) | undefined;
70
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch50.RequestContext<T>) => Promise<_better_fetch_fetch50.RequestContext | void> | _better_fetch_fetch50.RequestContext | void) | undefined;
71
+ onResponse: ((context: _better_fetch_fetch50.ResponseContext) => Promise<Response | void | _better_fetch_fetch50.ResponseContext> | Response | _better_fetch_fetch50.ResponseContext | void) | undefined;
72
72
  };
73
73
  })[];
74
74
  cache?: RequestCache | undefined;
@@ -88,12 +88,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
88
88
  referrerPolicy?: ReferrerPolicy | undefined;
89
89
  signal?: (AbortSignal | null) | undefined;
90
90
  window?: null | undefined;
91
- onRetry?: ((response: _better_fetch_fetch33.ResponseContext) => Promise<void> | void) | undefined;
91
+ onRetry?: ((response: _better_fetch_fetch50.ResponseContext) => Promise<void> | void) | undefined;
92
92
  hookOptions?: {
93
93
  cloneResponse?: boolean;
94
94
  } | undefined;
95
95
  timeout?: number | undefined;
96
- customFetchImpl: _better_fetch_fetch33.FetchEsque;
96
+ customFetchImpl: _better_fetch_fetch50.FetchEsque;
97
97
  baseURL: string;
98
98
  throw?: boolean | undefined;
99
99
  auth?: ({
@@ -113,10 +113,10 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
113
113
  params?: any;
114
114
  duplex?: "full" | "half" | undefined;
115
115
  jsonParser: (text: string) => Promise<any> | any;
116
- retry?: _better_fetch_fetch33.RetryOptions | undefined;
116
+ retry?: _better_fetch_fetch50.RetryOptions | undefined;
117
117
  retryAttempt?: number | undefined;
118
- output?: (_better_fetch_fetch33.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
119
- errorSchema?: _better_fetch_fetch33.StandardSchemaV1 | undefined;
118
+ output?: (_better_fetch_fetch50.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
119
+ errorSchema?: _better_fetch_fetch50.StandardSchemaV1 | undefined;
120
120
  disableValidation?: boolean | undefined;
121
121
  disableSignal?: boolean | undefined;
122
122
  }, unknown, unknown, {}>;
@@ -1,6 +1,6 @@
1
1
  import { t as capitalizeFirstLetter } from "../../misc-D8A8FGv2.mjs";
2
2
  import "../../url-C4fqRUH1.mjs";
3
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
3
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
4
4
  import "../../parser-kwbb5q_C.mjs";
5
5
  import { onCleanup } from "solid-js";
6
6
  import { createStore, reconcile } from "solid-js/store";