better-auth 1.4.4-beta.3 → 1.4.6-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 (78) hide show
  1. package/dist/{adapter-factory-CXEYdBBi.mjs → adapter-factory-HF3JB9cT.mjs} +2 -0
  2. package/dist/adapters/drizzle-adapter/index.mjs +1 -1
  3. package/dist/adapters/index.d.mts +6 -7
  4. package/dist/adapters/index.mjs +1 -1
  5. package/dist/adapters/kysely-adapter/index.mjs +1 -1
  6. package/dist/adapters/memory-adapter/index.mjs +1 -1
  7. package/dist/adapters/mongodb-adapter/index.mjs +1 -1
  8. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  9. package/dist/api/index.d.mts +2 -3
  10. package/dist/auth/minimal.d.mts +2 -3
  11. package/dist/client/index.d.mts +201 -4
  12. package/dist/client/lynx/index.d.mts +17 -18
  13. package/dist/client/plugins/index.d.mts +44 -44
  14. package/dist/client/react/index.d.mts +15 -16
  15. package/dist/client/solid/index.d.mts +2 -3
  16. package/dist/client/svelte/index.d.mts +17 -18
  17. package/dist/client/vue/index.d.mts +17 -18
  18. package/dist/cookies/index.d.mts +3 -4
  19. package/dist/db/index.d.mts +2 -3
  20. package/dist/{index-BsRgjUAv.d.mts → index--dkKT2P2.d.mts} +5 -5
  21. package/dist/{index-BVJL9NCo.d.mts → index-73Iin-Jq.d.mts} +6 -6
  22. package/dist/{index-B_1KAoYv.d.mts → index-BVpFCwyn.d.mts} +4 -4
  23. package/dist/{index-CL-QZ1hb.d.mts → index-BcnaxwZM.d.mts} +9 -9
  24. package/dist/{index-CnSDnpiK.d.mts → index-Be0syNaw.d.mts} +13 -13
  25. package/dist/{index-CJ4w3OzO.d.mts → index-BevOkArW.d.mts} +155 -347
  26. package/dist/{index-Br01_oSy.d.mts → index-BfHctM9K.d.mts} +7 -7
  27. package/dist/{index-Hid3pW0N.d.mts → index-Bqj2Kztr.d.mts} +9 -9
  28. package/dist/{index-DAPxdOKi.d.mts → index-Bt92FfJd.d.mts} +32 -32
  29. package/dist/{index-Dy2g8XKv.d.mts → index-BvZWUEoC.d.mts} +6 -6
  30. package/dist/{index-0xgBgtem.d.mts → index-CGKooORC.d.mts} +3 -3
  31. package/dist/{index-BkD9iyuk.d.mts → index-CLll1XPI.d.mts} +8 -8
  32. package/dist/{index-WXoTnrFA.d.mts → index-CWcnHbjn.d.mts} +2 -2
  33. package/dist/{index-DrEnqtuQ.d.mts → index-CfdutUAu.d.mts} +6 -6
  34. package/dist/{index-COEqRbac.d.mts → index-D0UwTS5_.d.mts} +15 -15
  35. package/dist/{index-BGKXL3Av.d.mts → index-DA5jLHwS.d.mts} +1 -1
  36. package/dist/{index-CGBSkAO7.d.mts → index-DlOKn_yt.d.mts} +11 -11
  37. package/dist/{index-CujXvEf8.d.mts → index-Dqjfj0PE.d.mts} +344 -344
  38. package/dist/{index-wHdZCXFM.d.mts → index-RbmRVtaI.d.mts} +3 -3
  39. package/dist/{index-DgwGZQ6M.d.mts → index-akAuJUJt.d.mts} +8 -8
  40. package/dist/{index-DqkPFN8B.d.mts → index-hBQ1qSDX.d.mts} +4 -4
  41. package/dist/{index-K2ZMxFny.d.mts → index-pQ7I9EOb.d.mts} +2 -2
  42. package/dist/index.d.mts +4 -5
  43. package/dist/integrations/next-js.d.mts +4 -4
  44. package/dist/integrations/node.d.mts +2 -3
  45. package/dist/integrations/svelte-kit.d.mts +4 -5
  46. package/dist/integrations/tanstack-start.d.mts +2 -2
  47. package/dist/oauth2/index.d.mts +2 -3
  48. package/dist/plugins/access/index.d.mts +1 -1
  49. package/dist/plugins/admin/access/index.d.mts +23 -23
  50. package/dist/plugins/admin/index.d.mts +23 -23
  51. package/dist/plugins/anonymous/index.d.mts +3 -4
  52. package/dist/plugins/bearer/index.d.mts +1 -1
  53. package/dist/plugins/captcha/index.d.mts +1 -1
  54. package/dist/plugins/custom-session/index.d.mts +3 -4
  55. package/dist/plugins/device-authorization/index.d.mts +1 -1
  56. package/dist/plugins/email-otp/index.d.mts +1 -1
  57. package/dist/plugins/generic-oauth/index.d.mts +3 -4
  58. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  59. package/dist/plugins/index.d.mts +23 -23
  60. package/dist/plugins/jwt/index.d.mts +3 -4
  61. package/dist/plugins/magic-link/index.d.mts +1 -1
  62. package/dist/plugins/multi-session/index.d.mts +1 -1
  63. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  64. package/dist/plugins/oidc-provider/index.d.mts +23 -23
  65. package/dist/plugins/one-tap/index.d.mts +1 -1
  66. package/dist/plugins/one-time-token/index.d.mts +3 -4
  67. package/dist/plugins/open-api/index.d.mts +1 -1
  68. package/dist/plugins/organization/access/index.d.mts +23 -23
  69. package/dist/plugins/organization/index.d.mts +23 -23
  70. package/dist/plugins/phone-number/index.d.mts +3 -4
  71. package/dist/plugins/siwe/index.d.mts +3 -4
  72. package/dist/plugins/two-factor/index.d.mts +3 -4
  73. package/dist/plugins/username/index.d.mts +2 -2
  74. package/dist/test-utils/index.d.mts +1152 -1153
  75. package/dist/types/index.d.mts +4 -5
  76. package/package.json +3 -3
  77. /package/dist/{index-D8MBzSjs.d.mts → index-rnNTrfA7.d.mts} +0 -0
  78. /package/dist/{plugins-SfZpwDiz.d.mts → plugins-Dmw3tk5H.d.mts} +0 -0
@@ -227,6 +227,7 @@ const createAdapterFactory = ({ adapter: customAdapter, config: cfg }) => (optio
227
227
  if (fieldAttributes.references?.field === "id" && useNumberId) if (Array.isArray(newValue)) newValue = newValue.map((x) => x !== null ? Number(x) : null);
228
228
  else newValue = newValue !== null ? Number(newValue) : null;
229
229
  else if (config.supportsJSON === false && typeof newValue === "object" && fieldAttributes.type === "json") newValue = JSON.stringify(newValue);
230
+ else if (config.supportsJSON === false && Array.isArray(newValue) && (fieldAttributes.type === "string[]" || fieldAttributes.type === "number[]")) newValue = JSON.stringify(newValue);
230
231
  else if (config.supportsDates === false && newValue instanceof Date && fieldAttributes.type === "date") newValue = newValue.toISOString();
231
232
  else if (config.supportsBooleans === false && typeof newValue === "boolean") newValue = newValue ? 1 : 0;
232
233
  if (config.customTransformInput) newValue = config.customTransformInput({
@@ -261,6 +262,7 @@ const createAdapterFactory = ({ adapter: customAdapter, config: cfg }) => (optio
261
262
  if (originalKey === "id" || field.references?.field === "id") {
262
263
  if (typeof newValue !== "undefined" && newValue !== null) newValue = String(newValue);
263
264
  } else if (config.supportsJSON === false && typeof newValue === "string" && field.type === "json") newValue = safeJSONParse(newValue);
265
+ else if (config.supportsJSON === false && typeof newValue === "string" && (field.type === "string[]" || field.type === "number[]")) newValue = safeJSONParse(newValue);
264
266
  else if (config.supportsDates === false && typeof newValue === "string" && field.type === "date") newValue = new Date(newValue);
265
267
  else if (config.supportsBooleans === false && typeof newValue === "number" && field.type === "boolean") newValue = newValue === 1;
266
268
  if (config.customTransformOutput) newValue = config.customTransformOutput({
@@ -3,7 +3,7 @@ import "../../utils-db7gNqd-.mjs";
3
3
  import "../../crypto-CFUhAR9W.mjs";
4
4
  import "../../misc-BwNc0MKr.mjs";
5
5
  import "../../json-CnHxKYpj.mjs";
6
- import { t as createAdapterFactory } from "../../adapter-factory-CXEYdBBi.mjs";
6
+ import { t as createAdapterFactory } from "../../adapter-factory-HF3JB9cT.mjs";
7
7
  import { logger } from "@better-auth/core/env";
8
8
  import { BetterAuthError } from "@better-auth/core/error";
9
9
  import { and, asc, count, desc, eq, gt, gte, inArray, like, lt, lte, ne, notInArray, or, sql } from "drizzle-orm";
@@ -1,10 +1,9 @@
1
- import { $t as AdapterSchemaCreation, an as Where$1, in as TransactionAdapter } from "../index-CJ4w3OzO.mjs";
1
+ import { Bt as Where$1, Pt as AdapterSchemaCreation, zt as TransactionAdapter } from "../index-BevOkArW.mjs";
2
2
  import "../types-CEepZ-RG.mjs";
3
3
  import { u as Prettify } from "../helper-DFzV6jvx.mjs";
4
- import "../index-D8MBzSjs.mjs";
5
- import "../plugins-SfZpwDiz.mjs";
4
+ import "../plugins-Dmw3tk5H.mjs";
6
5
  import { BetterAuthOptions } from "@better-auth/core";
7
- import * as _better_auth_core_db23 from "@better-auth/core/db";
6
+ import * as _better_auth_core_db21 from "@better-auth/core/db";
8
7
  import { BetterAuthDBSchema, DBFieldAttribute } from "@better-auth/core/db";
9
8
  import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig, JoinConfig } from "@better-auth/core/db/adapter";
10
9
  export * from "@better-auth/core/db/adapter";
@@ -54,7 +53,7 @@ declare const initGetFieldAttributes: ({
54
53
  }: {
55
54
  model: string;
56
55
  field: string;
57
- }) => _better_auth_core_db23.DBFieldAttribute<_better_auth_core_db23.DBFieldType>;
56
+ }) => _better_auth_core_db21.DBFieldAttribute<_better_auth_core_db21.DBFieldType>;
58
57
  //#endregion
59
58
  //#region src/adapters/adapter-factory/get-field-name.d.ts
60
59
  declare const initGetFieldName: ({
@@ -96,8 +95,8 @@ declare const initGetIdField: ({
96
95
  forceAllowId?: boolean;
97
96
  }) => {
98
97
  transform: {
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;
98
+ input: (value: _better_auth_core_db21.DBPrimitive) => string | number | true | Date | unknown[] | Record<string, unknown> | undefined;
99
+ output: (value: _better_auth_core_db21.DBPrimitive) => string | undefined;
101
100
  };
102
101
  defaultValue?: (() => string | false | undefined) | undefined;
103
102
  type: "string" | "number";
@@ -3,7 +3,7 @@ import "../utils-db7gNqd-.mjs";
3
3
  import "../crypto-CFUhAR9W.mjs";
4
4
  import "../misc-BwNc0MKr.mjs";
5
5
  import "../json-CnHxKYpj.mjs";
6
- import { n as initGetFieldAttributes, r as initGetIdField, t as createAdapterFactory } from "../adapter-factory-CXEYdBBi.mjs";
6
+ import { n as initGetFieldAttributes, r as initGetIdField, t as createAdapterFactory } from "../adapter-factory-HF3JB9cT.mjs";
7
7
 
8
8
  export * from "@better-auth/core/db/adapter"
9
9
 
@@ -4,7 +4,7 @@ import "../../utils-db7gNqd-.mjs";
4
4
  import "../../crypto-CFUhAR9W.mjs";
5
5
  import "../../misc-BwNc0MKr.mjs";
6
6
  import "../../json-CnHxKYpj.mjs";
7
- import { t as createAdapterFactory } from "../../adapter-factory-CXEYdBBi.mjs";
7
+ import { t as createAdapterFactory } from "../../adapter-factory-HF3JB9cT.mjs";
8
8
  import { sql } from "kysely";
9
9
 
10
10
  //#region src/adapters/kysely-adapter/kysely-adapter.ts
@@ -3,7 +3,7 @@ import "../../utils-db7gNqd-.mjs";
3
3
  import "../../crypto-CFUhAR9W.mjs";
4
4
  import "../../misc-BwNc0MKr.mjs";
5
5
  import "../../json-CnHxKYpj.mjs";
6
- import { t as createAdapterFactory } from "../../adapter-factory-CXEYdBBi.mjs";
6
+ import { t as createAdapterFactory } from "../../adapter-factory-HF3JB9cT.mjs";
7
7
  import { logger } from "@better-auth/core/env";
8
8
 
9
9
  //#region src/adapters/memory-adapter/memory-adapter.ts
@@ -3,7 +3,7 @@ import "../../utils-db7gNqd-.mjs";
3
3
  import "../../crypto-CFUhAR9W.mjs";
4
4
  import "../../misc-BwNc0MKr.mjs";
5
5
  import "../../json-CnHxKYpj.mjs";
6
- import { t as createAdapterFactory } from "../../adapter-factory-CXEYdBBi.mjs";
6
+ import { t as createAdapterFactory } from "../../adapter-factory-HF3JB9cT.mjs";
7
7
  import { ObjectId } from "mongodb";
8
8
 
9
9
  //#region src/adapters/mongodb-adapter/mongodb-adapter.ts
@@ -3,7 +3,7 @@ import "../../utils-db7gNqd-.mjs";
3
3
  import "../../crypto-CFUhAR9W.mjs";
4
4
  import "../../misc-BwNc0MKr.mjs";
5
5
  import "../../json-CnHxKYpj.mjs";
6
- import { t as createAdapterFactory } from "../../adapter-factory-CXEYdBBi.mjs";
6
+ import { t as createAdapterFactory } from "../../adapter-factory-HF3JB9cT.mjs";
7
7
  import { BetterAuthError } from "@better-auth/core/error";
8
8
 
9
9
  //#region src/adapters/prisma-adapter/prisma-adapter.ts
@@ -1,6 +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-CJ4w3OzO.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-BevOkArW.mjs";
2
2
  import "../types-CEepZ-RG.mjs";
3
3
  import "../helper-DFzV6jvx.mjs";
4
- import "../index-D8MBzSjs.mjs";
5
- import "../plugins-SfZpwDiz.mjs";
4
+ import "../plugins-Dmw3tk5H.mjs";
6
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,8 +1,7 @@
1
- import { o as Auth } from "../index-CJ4w3OzO.mjs";
1
+ import { o as Auth } from "../index-BevOkArW.mjs";
2
2
  import "../types-CEepZ-RG.mjs";
3
3
  import "../helper-DFzV6jvx.mjs";
4
- import "../index-D8MBzSjs.mjs";
5
- import "../plugins-SfZpwDiz.mjs";
4
+ import "../plugins-Dmw3tk5H.mjs";
6
5
  import { BetterAuthOptions } from "@better-auth/core";
7
6
 
8
7
  //#region src/auth/minimal.d.ts
@@ -1,9 +1,206 @@
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-CJ4w3OzO.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-BevOkArW.mjs";
2
2
  import "../types-CEepZ-RG.mjs";
3
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";
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";
6
+ import { BetterAuthClientOptions as BetterAuthClientOptions$1, BetterAuthClientPlugin as BetterAuthClientPlugin$1, BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
7
+ import { Primitive } from "@better-auth/core/db";
8
+ import { BASE_ERROR_CODES } from "@better-auth/core/error";
9
+ import * as nanostores3 from "nanostores";
10
+ import { Atom, PreinitializedWritableAtom, WritableAtom } from "nanostores";
11
+ import * as _better_fetch_fetch79 from "@better-fetch/fetch";
12
+ import { BetterFetch, BetterFetchError } from "@better-fetch/fetch";
6
13
  export * from "@better-auth/core/db";
7
14
  export * from "nanostores";
8
15
  export * from "@better-fetch/fetch";
9
- export { AccessControl, AtomListener, AuthClient, AuthorizeResponse, Awaitable, BetterAuthClientOptions, BetterAuthClientPlugin, BroadcastChannel, BroadcastListener, BroadcastMessage, ClientAtomListener, ClientOptions, ClientStore, DeepPartial, Expand, FocusListener, FocusManager, HasRequiredKeys, InferActions, InferAdditionalFromClient, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, LiteralNumber, LiteralString, LiteralUnion, OmitId, OnlineListener, OnlineManager, PreserveJSDoc, Prettify, PrettifyDeep, Primitive, RequiredKeysOf, Role, SessionQueryParams, SessionRefreshOptions, Statements, Store, StripEmptyObjects, SubArray, Subset, UnionToIntersection, WithoutEmpty, createAccessControl, createAuthClient, createSessionRefreshManager, getGlobalBroadcastChannel, kBroadcastChannel, kFocusManager, kOnlineManager, role, useAuthQuery };
16
+
17
+ //#region src/client/broadcast-channel.d.ts
18
+ interface BroadcastMessage {
19
+ event?: "session" | undefined;
20
+ data?: {
21
+ trigger?: "signout" | "getSession" | "updateUser";
22
+ } | undefined;
23
+ clientId: string;
24
+ timestamp: number;
25
+ }
26
+ type BroadcastListener = (message: BroadcastMessage) => void;
27
+ declare const kBroadcastChannel: unique symbol;
28
+ interface BroadcastChannel {
29
+ post(message: Record<string, unknown>): void;
30
+ subscribe(listener: BroadcastListener): () => void;
31
+ setup(): () => void;
32
+ }
33
+ declare function getGlobalBroadcastChannel(name?: string): BroadcastChannel;
34
+ //#endregion
35
+ //#region src/client/focus-manager.d.ts
36
+ type FocusListener = (focused: boolean) => void;
37
+ declare const kFocusManager: unique symbol;
38
+ interface FocusManager {
39
+ setFocused(focused: boolean): void;
40
+ subscribe(listener: FocusListener): () => void;
41
+ setup(): () => void;
42
+ }
43
+ //#endregion
44
+ //#region src/client/online-manager.d.ts
45
+ type OnlineListener = (online: boolean) => void;
46
+ declare const kOnlineManager: unique symbol;
47
+ interface OnlineManager {
48
+ setOnline(online: boolean): void;
49
+ isOnline: boolean;
50
+ subscribe(listener: OnlineListener): () => void;
51
+ setup(): () => void;
52
+ }
53
+ //#endregion
54
+ //#region src/client/query.d.ts
55
+ declare const useAuthQuery: <T>(initializedAtom: PreinitializedWritableAtom<any> | PreinitializedWritableAtom<any>[], path: string, $fetch: BetterFetch, options?: (((value: {
56
+ data: null | T;
57
+ error: null | BetterFetchError;
58
+ isPending: boolean;
59
+ }) => ClientFetchOption) | ClientFetchOption) | undefined) => PreinitializedWritableAtom<{
60
+ data: null | T;
61
+ error: null | BetterFetchError;
62
+ isPending: boolean;
63
+ isRefetching: boolean;
64
+ refetch: (queryParams?: {
65
+ query?: SessionQueryParams;
66
+ } | undefined) => Promise<void>;
67
+ }> & object;
68
+ //#endregion
69
+ //#region src/client/session-refresh.d.ts
70
+ interface SessionRefreshOptions {
71
+ sessionAtom: WritableAtom<any>;
72
+ sessionSignal: WritableAtom<boolean>;
73
+ $fetch: BetterFetch;
74
+ options?: BetterAuthClientOptions$1 | undefined;
75
+ }
76
+ declare function createSessionRefreshManager(opts: SessionRefreshOptions): {
77
+ init: () => void;
78
+ cleanup: () => void;
79
+ triggerRefetch: (event?: {
80
+ event?: "poll" | "visibilitychange" | "storage";
81
+ } | undefined) => void;
82
+ broadcastSessionUpdate: (trigger: "signout" | "getSession" | "updateUser") => void;
83
+ };
84
+ //#endregion
85
+ //#region src/client/vanilla.d.ts
86
+ type InferResolvedHooks<O extends BetterAuthClientOptions$1> = O extends {
87
+ plugins: Array<infer Plugin>;
88
+ } ? UnionToIntersection<Plugin extends BetterAuthClientPlugin$1 ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: Atoms[key] } : {} : {} : {}> : {};
89
+ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(options?: Option | undefined): UnionToIntersection<InferResolvedHooks<Option>> & InferClientAPI<Option> & InferActions<Option> & {
90
+ useSession: Atom<{
91
+ data: InferClientAPI<Option> extends {
92
+ getSession: () => Promise<infer Res>;
93
+ } ? Res extends {
94
+ data: null;
95
+ error: {
96
+ message?: string | undefined;
97
+ status: number;
98
+ statusText: string;
99
+ };
100
+ } | {
101
+ data: infer S;
102
+ error: null;
103
+ } ? S : Res extends Record<string, any> ? Res : never : never;
104
+ error: BetterFetchError | null;
105
+ isPending: boolean;
106
+ }>;
107
+ $fetch: _better_fetch_fetch79.BetterFetch<{
108
+ plugins: (_better_fetch_fetch79.BetterFetchPlugin | {
109
+ id: string;
110
+ name: string;
111
+ hooks: {
112
+ onSuccess(context: _better_fetch_fetch79.SuccessContext<any>): void;
113
+ };
114
+ } | {
115
+ id: string;
116
+ name: string;
117
+ hooks: {
118
+ onSuccess: ((context: _better_fetch_fetch79.SuccessContext<any>) => Promise<void> | void) | undefined;
119
+ onError: ((context: _better_fetch_fetch79.ErrorContext) => Promise<void> | void) | undefined;
120
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch79.RequestContext<T>) => Promise<_better_fetch_fetch79.RequestContext | void> | _better_fetch_fetch79.RequestContext | void) | undefined;
121
+ onResponse: ((context: _better_fetch_fetch79.ResponseContext) => Promise<Response | void | _better_fetch_fetch79.ResponseContext> | Response | _better_fetch_fetch79.ResponseContext | void) | undefined;
122
+ };
123
+ })[];
124
+ cache?: RequestCache | undefined;
125
+ method: string;
126
+ headers?: (HeadersInit & (HeadersInit | {
127
+ accept: "application/json" | "text/plain" | "application/octet-stream";
128
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
129
+ authorization: "Bearer" | "Basic";
130
+ })) | undefined;
131
+ redirect?: RequestRedirect | undefined;
132
+ credentials?: RequestCredentials;
133
+ integrity?: string | undefined;
134
+ keepalive?: boolean | undefined;
135
+ mode?: RequestMode | undefined;
136
+ priority?: RequestPriority | undefined;
137
+ referrer?: string | undefined;
138
+ referrerPolicy?: ReferrerPolicy | undefined;
139
+ signal?: (AbortSignal | null) | undefined;
140
+ window?: null | undefined;
141
+ onRetry?: ((response: _better_fetch_fetch79.ResponseContext) => Promise<void> | void) | undefined;
142
+ hookOptions?: {
143
+ cloneResponse?: boolean;
144
+ } | undefined;
145
+ timeout?: number | undefined;
146
+ customFetchImpl: _better_fetch_fetch79.FetchEsque;
147
+ baseURL: string;
148
+ throw?: boolean | undefined;
149
+ auth?: ({
150
+ type: "Bearer";
151
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
152
+ } | {
153
+ type: "Basic";
154
+ username: string | (() => string | undefined) | undefined;
155
+ password: string | (() => string | undefined) | undefined;
156
+ } | {
157
+ type: "Custom";
158
+ prefix: string | (() => string | undefined) | undefined;
159
+ value: string | (() => string | undefined) | undefined;
160
+ }) | undefined;
161
+ body?: any;
162
+ query?: any;
163
+ params?: any;
164
+ duplex?: "full" | "half" | undefined;
165
+ jsonParser: (text: string) => Promise<any> | any;
166
+ retry?: _better_fetch_fetch79.RetryOptions | undefined;
167
+ retryAttempt?: number | undefined;
168
+ output?: (_better_fetch_fetch79.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
169
+ errorSchema?: _better_fetch_fetch79.StandardSchemaV1 | undefined;
170
+ disableValidation?: boolean | undefined;
171
+ disableSignal?: boolean | undefined;
172
+ }, unknown, unknown, {}>;
173
+ $store: {
174
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
175
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
176
+ atoms: Record<string, nanostores3.WritableAtom<any>>;
177
+ };
178
+ $Infer: {
179
+ Session: NonNullable<InferClientAPI<Option> extends {
180
+ getSession: () => Promise<infer Res>;
181
+ } ? Res extends {
182
+ data: null;
183
+ error: {
184
+ message?: string | undefined;
185
+ status: number;
186
+ statusText: string;
187
+ };
188
+ } | {
189
+ data: infer S;
190
+ error: null;
191
+ } ? S : Res extends Record<string, any> ? Res : never : never>;
192
+ };
193
+ $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
194
+ };
195
+ type AuthClient<Option extends BetterAuthClientOptions$1> = ReturnType<typeof createAuthClient<Option>>;
196
+ //#endregion
197
+ //#region src/client/index.d.ts
198
+ declare const InferPlugin: <T extends BetterAuthPlugin>() => {
199
+ id: "infer-server-plugin";
200
+ $InferServerPlugin: T;
201
+ };
202
+ declare function InferAuth<O extends {
203
+ options: BetterAuthOptions;
204
+ }>(): O["options"];
205
+ //#endregion
206
+ export { AccessControl, AtomListener, AuthClient, AuthorizeResponse, Awaitable, BetterAuthClientOptions, BetterAuthClientPlugin, BroadcastChannel, BroadcastListener, BroadcastMessage, ClientAtomListener, ClientOptions, ClientStore, DeepPartial, Expand, type FocusListener, type FocusManager, HasRequiredKeys, InferActions, InferAdditionalFromClient, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, LiteralNumber, LiteralString, LiteralUnion, OmitId, type OnlineListener, type OnlineManager, PreserveJSDoc, Prettify, PrettifyDeep, type Primitive, RequiredKeysOf, Role, SessionQueryParams, SessionRefreshOptions, Statements, Store, StripEmptyObjects, SubArray, Subset, type UnionToIntersection, WithoutEmpty, createAccessControl, createAuthClient, createSessionRefreshManager, getGlobalBroadcastChannel, kBroadcastChannel, kFocusManager, kOnlineManager, role, useAuthQuery };
@@ -1,13 +1,12 @@
1
- import { bn as SessionQueryParams, fn as InferActions, hn as InferErrorCodes, mn as InferClientAPI, yn as IsSignal } from "../../index-CJ4w3OzO.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-BevOkArW.mjs";
2
2
  import "../../types-CEepZ-RG.mjs";
3
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";
4
+ import "../../plugins-Dmw3tk5H.mjs";
6
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
7
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
8
- import * as nanostores0 from "nanostores";
7
+ import * as nanostores1 from "nanostores";
9
8
  import { Store, StoreValue } from "nanostores";
10
- import * as _better_fetch_fetch15 from "@better-fetch/fetch";
9
+ import * as _better_fetch_fetch47 from "@better-fetch/fetch";
11
10
  import { BetterFetchError } from "@better-fetch/fetch";
12
11
  import { DependencyList } from "@lynx-js/react";
13
12
  export * from "nanostores";
@@ -96,21 +95,21 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
96
95
  error: null;
97
96
  } ? S : Res : never>;
98
97
  };
99
- $fetch: _better_fetch_fetch15.BetterFetch<{
100
- plugins: (_better_fetch_fetch15.BetterFetchPlugin | {
98
+ $fetch: _better_fetch_fetch47.BetterFetch<{
99
+ plugins: (_better_fetch_fetch47.BetterFetchPlugin | {
101
100
  id: string;
102
101
  name: string;
103
102
  hooks: {
104
- onSuccess(context: _better_fetch_fetch15.SuccessContext<any>): void;
103
+ onSuccess(context: _better_fetch_fetch47.SuccessContext<any>): void;
105
104
  };
106
105
  } | {
107
106
  id: string;
108
107
  name: string;
109
108
  hooks: {
110
- onSuccess: ((context: _better_fetch_fetch15.SuccessContext<any>) => Promise<void> | void) | undefined;
111
- onError: ((context: _better_fetch_fetch15.ErrorContext) => Promise<void> | void) | undefined;
112
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch15.RequestContext<T>) => Promise<_better_fetch_fetch15.RequestContext | void> | _better_fetch_fetch15.RequestContext | void) | undefined;
113
- onResponse: ((context: _better_fetch_fetch15.ResponseContext) => Promise<Response | void | _better_fetch_fetch15.ResponseContext> | Response | _better_fetch_fetch15.ResponseContext | void) | undefined;
109
+ onSuccess: ((context: _better_fetch_fetch47.SuccessContext<any>) => Promise<void> | void) | undefined;
110
+ onError: ((context: _better_fetch_fetch47.ErrorContext) => Promise<void> | void) | undefined;
111
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch47.RequestContext<T>) => Promise<_better_fetch_fetch47.RequestContext | void> | _better_fetch_fetch47.RequestContext | void) | undefined;
112
+ onResponse: ((context: _better_fetch_fetch47.ResponseContext) => Promise<Response | void | _better_fetch_fetch47.ResponseContext> | Response | _better_fetch_fetch47.ResponseContext | void) | undefined;
114
113
  };
115
114
  })[];
116
115
  cache?: RequestCache | undefined;
@@ -130,12 +129,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
130
129
  referrerPolicy?: ReferrerPolicy | undefined;
131
130
  signal?: (AbortSignal | null) | undefined;
132
131
  window?: null | undefined;
133
- onRetry?: ((response: _better_fetch_fetch15.ResponseContext) => Promise<void> | void) | undefined;
132
+ onRetry?: ((response: _better_fetch_fetch47.ResponseContext) => Promise<void> | void) | undefined;
134
133
  hookOptions?: {
135
134
  cloneResponse?: boolean;
136
135
  } | undefined;
137
136
  timeout?: number | undefined;
138
- customFetchImpl: _better_fetch_fetch15.FetchEsque;
137
+ customFetchImpl: _better_fetch_fetch47.FetchEsque;
139
138
  baseURL: string;
140
139
  throw?: boolean | undefined;
141
140
  auth?: ({
@@ -155,17 +154,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
155
154
  params?: any;
156
155
  duplex?: "full" | "half" | undefined;
157
156
  jsonParser: (text: string) => Promise<any> | any;
158
- retry?: _better_fetch_fetch15.RetryOptions | undefined;
157
+ retry?: _better_fetch_fetch47.RetryOptions | undefined;
159
158
  retryAttempt?: number | undefined;
160
- output?: (_better_fetch_fetch15.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
161
- errorSchema?: _better_fetch_fetch15.StandardSchemaV1 | undefined;
159
+ output?: (_better_fetch_fetch47.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
160
+ errorSchema?: _better_fetch_fetch47.StandardSchemaV1 | undefined;
162
161
  disableValidation?: boolean | undefined;
163
162
  disableSignal?: boolean | undefined;
164
163
  }, unknown, unknown, {}>;
165
164
  $store: {
166
165
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
167
166
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
168
- atoms: Record<string, nanostores0.WritableAtom<any>>;
167
+ atoms: Record<string, nanostores1.WritableAtom<any>>;
169
168
  };
170
169
  $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
171
170
  };
@@ -1,34 +1,34 @@
1
- import { Un as InferAdditionalFieldsFromPluginOptions, bn as SessionQueryParams, r as BetterAuthOptions$1 } from "../../index-CJ4w3OzO.mjs";
1
+ import { r as BetterAuthOptions$1, tn as SessionQueryParams, wn as InferAdditionalFieldsFromPluginOptions } from "../../index-BevOkArW.mjs";
2
2
  import "../../types-CEepZ-RG.mjs";
3
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, _t as admin, at as OAuthAccessToken, bt as SessionWithImpersonatedBy, c as OrganizationPlugin, ct as TokenBody, f as InferInvitation, gt as ApiKeyOptions, ht as ApiKey, it as CodeVerificationValue, k as TeamMember, m as InferOrganization, nt as AuthorizationQuery, ot as OIDCMetadata, p as InferMember, pt as apiKey, rt as Client, st as OIDCOptions, tt as oidcProvider, v as Invitation, vt as AdminOptions, x as Member, xt as UserWithRole, yt as InferAdminRolesFromOption } from "../../index-CujXvEf8.mjs";
7
- import { i as schema, n as AnonymousOptions, r as UserWithAnonymous, t as anonymous } from "../../index-Br01_oSy.mjs";
8
- import "../../index-DrEnqtuQ.mjs";
9
- import "../../index-WXoTnrFA.mjs";
10
- import "../../index-Dy2g8XKv.mjs";
11
- import { n as deviceAuthorization } from "../../index-BVJL9NCo.mjs";
12
- import { n as emailOTP } from "../../index-CnSDnpiK.mjs";
13
- 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-DgwGZQ6M.mjs";
14
- import "../../index-wHdZCXFM.mjs";
15
- import { c as Jwk, l as JwtOptions, o as JWKOptions, s as JWSAlgorithms, t as jwt } from "../../index-CGBSkAO7.mjs";
16
- import { n as magicLink } from "../../index-B_1KAoYv.mjs";
17
- import { n as multiSession, t as MultiSessionConfig } from "../../index-Hid3pW0N.mjs";
18
- import "../../index-BkD9iyuk.mjs";
19
- import "../../index-K2ZMxFny.mjs";
20
- import { n as oneTimeToken, t as OneTimeTokenOptions } from "../../index-BsRgjUAv.mjs";
21
- import "../../index-0xgBgtem.mjs";
22
- import { n as PhoneNumberOptions, r as UserWithPhoneNumber, t as phoneNumber } from "../../index-CL-QZ1hb.mjs";
23
- import { n as siwe } from "../../index-DqkPFN8B.mjs";
24
- 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-DAPxdOKi.mjs";
25
- import { n as username } from "../../index-COEqRbac.mjs";
26
- import * as _better_auth_core28 from "@better-auth/core";
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, _t as admin, at as OAuthAccessToken, bt as SessionWithImpersonatedBy, c as OrganizationPlugin, ct as TokenBody, f as InferInvitation, gt as ApiKeyOptions, ht as ApiKey, it as CodeVerificationValue, k as TeamMember, m as InferOrganization, nt as AuthorizationQuery, ot as OIDCMetadata, p as InferMember, pt as apiKey, rt as Client, st as OIDCOptions, tt as oidcProvider, v as Invitation, vt as AdminOptions, x as Member, xt as UserWithRole, yt as InferAdminRolesFromOption } from "../../index-Dqjfj0PE.mjs";
7
+ import { i as schema, n as AnonymousOptions, r as UserWithAnonymous, t as anonymous } from "../../index-BfHctM9K.mjs";
8
+ import "../../index-CfdutUAu.mjs";
9
+ import "../../index-CWcnHbjn.mjs";
10
+ import "../../index-BvZWUEoC.mjs";
11
+ import { n as deviceAuthorization } from "../../index-73Iin-Jq.mjs";
12
+ import { n as emailOTP } from "../../index-Be0syNaw.mjs";
13
+ 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-akAuJUJt.mjs";
14
+ import "../../index-RbmRVtaI.mjs";
15
+ import { c as Jwk, l as JwtOptions, o as JWKOptions, s as JWSAlgorithms, t as jwt } from "../../index-DlOKn_yt.mjs";
16
+ import { n as magicLink } from "../../index-BVpFCwyn.mjs";
17
+ import { n as multiSession, t as MultiSessionConfig } from "../../index-Bqj2Kztr.mjs";
18
+ import "../../index-CLll1XPI.mjs";
19
+ import "../../index-pQ7I9EOb.mjs";
20
+ import { n as oneTimeToken, t as OneTimeTokenOptions } from "../../index--dkKT2P2.mjs";
21
+ import "../../index-CGKooORC.mjs";
22
+ import { n as PhoneNumberOptions, r as UserWithPhoneNumber, t as phoneNumber } from "../../index-BcnaxwZM.mjs";
23
+ import { n as siwe } from "../../index-hBQ1qSDX.mjs";
24
+ 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-Bt92FfJd.mjs";
25
+ import { n as username } from "../../index-D0UwTS5_.mjs";
26
+ import * as _better_auth_core26 from "@better-auth/core";
27
27
  import { BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
28
28
  import { DBFieldAttribute } from "@better-auth/core/db";
29
29
  import { JSONWebKeySet } from "jose";
30
- import * as nanostores6 from "nanostores";
31
- import * as _better_fetch_fetch111 from "@better-fetch/fetch";
30
+ import * as nanostores4 from "nanostores";
31
+ import * as _better_fetch_fetch95 from "@better-fetch/fetch";
32
32
  import { Auth } from "better-auth";
33
33
 
34
34
  //#region src/plugins/additional-fields/client.d.ts
@@ -265,7 +265,7 @@ declare const jwtClient: (options?: JwtClientOptions) => {
265
265
  pathMethods: {
266
266
  [x: string]: "GET";
267
267
  };
268
- getActions: ($fetch: _better_fetch_fetch111.BetterFetch) => {
268
+ getActions: ($fetch: _better_fetch_fetch95.BetterFetch) => {
269
269
  jwks: (fetchOptions?: any) => Promise<{
270
270
  data: null;
271
271
  error: {
@@ -428,13 +428,13 @@ declare const oneTapClient: (options: GoogleOneTapOptions) => {
428
428
  id: string;
429
429
  name: string;
430
430
  hooks: {
431
- onResponse(ctx: _better_fetch_fetch111.ResponseContext): Promise<void>;
431
+ onResponse(ctx: _better_fetch_fetch95.ResponseContext): Promise<void>;
432
432
  };
433
433
  }[];
434
- getActions: ($fetch: _better_fetch_fetch111.BetterFetch, _: _better_auth_core28.ClientStore) => {
434
+ getActions: ($fetch: _better_fetch_fetch95.BetterFetch, _: _better_auth_core26.ClientStore) => {
435
435
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise<void>;
436
436
  };
437
- getAtoms($fetch: _better_fetch_fetch111.BetterFetch): {};
437
+ getAtoms($fetch: _better_fetch_fetch95.BetterFetch): {};
438
438
  };
439
439
  //#endregion
440
440
  //#region src/plugins/one-time-token/client.d.ts
@@ -533,7 +533,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
533
533
  } ? true : false;
534
534
  };
535
535
  }>;
536
- getActions: ($fetch: _better_fetch_fetch111.BetterFetch, _$store: _better_auth_core28.ClientStore, co: _better_auth_core28.BetterAuthClientOptions | undefined) => {
536
+ getActions: ($fetch: _better_fetch_fetch95.BetterFetch, _$store: _better_auth_core26.ClientStore, co: _better_auth_core26.BetterAuthClientOptions | undefined) => {
537
537
  $Infer: {
538
538
  ActiveOrganization: CO["teams"] extends {
539
539
  enabled: true;
@@ -617,12 +617,12 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
617
617
  }) => boolean;
618
618
  };
619
619
  };
620
- getAtoms: ($fetch: _better_fetch_fetch111.BetterFetch) => {
621
- $listOrg: nanostores6.PreinitializedWritableAtom<boolean> & object;
622
- $activeOrgSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
623
- $activeMemberSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
624
- $activeMemberRoleSignal: nanostores6.PreinitializedWritableAtom<boolean> & object;
625
- activeOrganization: nanostores6.PreinitializedWritableAtom<{
620
+ getAtoms: ($fetch: _better_fetch_fetch95.BetterFetch) => {
621
+ $listOrg: nanostores4.PreinitializedWritableAtom<boolean> & object;
622
+ $activeOrgSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
623
+ $activeMemberSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
624
+ $activeMemberRoleSignal: nanostores4.PreinitializedWritableAtom<boolean> & object;
625
+ activeOrganization: nanostores4.PreinitializedWritableAtom<{
626
626
  data: Prettify<({
627
627
  id: string;
628
628
  name: string;
@@ -634,14 +634,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
634
634
  members: InferMember<CO, false>[];
635
635
  invitations: InferInvitation<CO, false>[];
636
636
  }> | null;
637
- error: null | _better_fetch_fetch111.BetterFetchError;
637
+ error: null | _better_fetch_fetch95.BetterFetchError;
638
638
  isPending: boolean;
639
639
  isRefetching: boolean;
640
640
  refetch: (queryParams?: {
641
641
  query?: SessionQueryParams;
642
642
  } | undefined) => Promise<void>;
643
643
  }> & object;
644
- listOrganizations: nanostores6.PreinitializedWritableAtom<{
644
+ listOrganizations: nanostores4.PreinitializedWritableAtom<{
645
645
  data: ({
646
646
  id: string;
647
647
  name: string;
@@ -650,14 +650,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
650
650
  logo?: string | null | undefined;
651
651
  metadata?: any;
652
652
  } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null;
653
- error: null | _better_fetch_fetch111.BetterFetchError;
653
+ error: null | _better_fetch_fetch95.BetterFetchError;
654
654
  isPending: boolean;
655
655
  isRefetching: boolean;
656
656
  refetch: (queryParams?: {
657
657
  query?: SessionQueryParams;
658
658
  } | undefined) => Promise<void>;
659
659
  }> & object;
660
- activeMember: nanostores6.PreinitializedWritableAtom<{
660
+ activeMember: nanostores4.PreinitializedWritableAtom<{
661
661
  data: {
662
662
  id: string;
663
663
  organizationId: string;
@@ -665,18 +665,18 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
665
665
  role: string;
666
666
  createdAt: Date;
667
667
  } | null;
668
- error: null | _better_fetch_fetch111.BetterFetchError;
668
+ error: null | _better_fetch_fetch95.BetterFetchError;
669
669
  isPending: boolean;
670
670
  isRefetching: boolean;
671
671
  refetch: (queryParams?: {
672
672
  query?: SessionQueryParams;
673
673
  } | undefined) => Promise<void>;
674
674
  }> & object;
675
- activeMemberRole: nanostores6.PreinitializedWritableAtom<{
675
+ activeMemberRole: nanostores4.PreinitializedWritableAtom<{
676
676
  data: {
677
677
  role: string;
678
678
  } | null;
679
- error: null | _better_fetch_fetch111.BetterFetchError;
679
+ error: null | _better_fetch_fetch95.BetterFetchError;
680
680
  isPending: boolean;
681
681
  isRefetching: boolean;
682
682
  refetch: (queryParams?: {