import { Sn as InferAdditionalFieldsFromPluginOptions, dt as BetterAuthOptions$1, en as SessionQueryParams } from "../../index-nluIr-xs.mjs"; 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-BBvhhJRX.mjs"; import "../../plugins-DLdyc73z.mjs"; import { a as Role, i as AccessControl, o as Statements } from "../../index-B1fASdrI.mjs"; import { A as invitationStatus, C as OrganizationSchema, Ct as SessionWithImpersonatedBy, D as TeamMemberInput, E as TeamMember, F as roleSchema, I as teamMemberSchema, L as teamSchema, M as organizationResourceSchema, N as organizationRoleSchema, O as defaultRolesSchema, P as organizationSchema, R as OrganizationOptions, S as OrganizationRole, St as InferAdminRolesFromOption, T as TeamInput, _ as Member, at as AuthorizationQuery, b as OrganizationInput, bt as admin, c as InferInvitation, ct as OAuthAccessToken, d as InferOrganizationRolesFromOption, dt as TokenBody, f as InferOrganizationZodRolesFromOption, g as InvitationStatus, gt as apiKey, h as InvitationInput, i as OrganizationPlugin, it as oidcProvider, j as memberSchema, k as invitationSchema, l as InferMember, lt as OIDCMetadata, m as Invitation, ot as Client, p as InferTeam, st as CodeVerificationValue, u as InferOrganization, ut as OIDCOptions, v as MemberInput, vt as ApiKey, w as Team, wt as UserWithRole, x as OrganizationResource, xt as AdminOptions, y as Organization, yt as ApiKeyOptions } from "../../index-DJMB5A8c.mjs"; import { i as schema, n as AnonymousOptions, r as UserWithAnonymous, t as anonymous } from "../../index-BsKJI7ef.mjs"; import "../../index-BgRi_ahI.mjs"; import "../../index-BM9Q5Q-k.mjs"; import "../../index-CcBYHJ2F.mjs"; import { n as deviceAuthorization } from "../../index-CoRq_As_.mjs"; import { t as emailOTP } from "../../index-pQf0Gaiy.mjs"; import { _ as GenericOAuthConfig, a as OktaOptions, c as microsoftEntraId, d as KeycloakOptions, f as keycloak, g as auth0, h as Auth0Options, i as slack, l as LineOptions, m as hubspot, n as genericOAuth, o as okta, p as HubSpotOptions, r as SlackOptions, s as MicrosoftEntraIdOptions, t as BaseOAuthProviderOptions, u as line, v as GenericOAuthOptions } from "../../index-D5-8cUau.mjs"; import "../../index-R4SK94Yy.mjs"; import { c as Jwk, l as JwtOptions, o as JWKOptions, s as JWSAlgorithms, t as jwt } from "../../index-BJGIyxsi.mjs"; import { n as magicLink } from "../../index-DcSCEFo3.mjs"; import { n as multiSession, t as MultiSessionConfig } from "../../index-CgsWXdev.mjs"; import "../../index-BC_mMN4o.mjs"; import "../../index-BZ-s8xLk.mjs"; import { n as oneTimeToken, t as OneTimeTokenOptions } from "../../index-Bp4xYyri.mjs"; import "../../index-BnEcmaYd.mjs"; import { n as PhoneNumberOptions, r as UserWithPhoneNumber, t as phoneNumber } from "../../index-DzGXzNsZ.mjs"; import { n as siwe } from "../../index-DlygXL_H.mjs"; 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-CBR9_RaM.mjs"; import { n as username } from "../../index-DU5e1_PD.mjs"; import * as _better_auth_core23 from "@better-auth/core"; import { BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core"; import { DBFieldAttribute } from "@better-auth/core/db"; import { JSONWebKeySet } from "jose"; import * as nanostores3 from "nanostores"; import * as _better_fetch_fetch88 from "@better-fetch/fetch"; import { Auth } from "better-auth"; //#region src/plugins/additional-fields/client.d.ts declare const inferAdditionalFields: (schema?: S | undefined) => { id: "additional-fields-client"; $InferServerPlugin: ((T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never) extends never ? S extends { user?: { [key: string]: DBFieldAttribute; } | undefined; session?: { [key: string]: DBFieldAttribute; } | undefined; } ? { id: "additional-fields-client"; schema: { user: { fields: S["user"] extends object ? S["user"] : {}; }; session: { fields: S["session"] extends object ? S["session"] : {}; }; }; } : never : (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never) extends BetterAuthOptions ? { id: "additional-fields"; schema: { user: { fields: (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never)["user"] extends { additionalFields: infer U; } ? U : {}; }; session: { fields: (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never)["session"] extends { additionalFields: infer U; } ? U : {}; }; }; } : never) extends BetterAuthPlugin ? (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never) extends never ? S extends { user?: { [key: string]: DBFieldAttribute; } | undefined; session?: { [key: string]: DBFieldAttribute; } | undefined; } ? { id: "additional-fields-client"; schema: { user: { fields: S["user"] extends object ? S["user"] : {}; }; session: { fields: S["session"] extends object ? S["session"] : {}; }; }; } : never : (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never) extends BetterAuthOptions ? { id: "additional-fields"; schema: { user: { fields: (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never)["user"] extends { additionalFields: infer U; } ? U : {}; }; session: { fields: (T$1 extends BetterAuthOptions ? T$1 : T$1 extends { options: BetterAuthOptions; } ? T$1["options"] : never)["session"] extends { additionalFields: infer U; } ? U : {}; }; }; } : never : undefined; }; //#endregion //#region src/plugins/admin/client.d.ts interface AdminClientOptions { ac?: AccessControl | undefined; roles?: { [key in string]: Role } | undefined; } declare const adminClient: (options?: O | undefined) => { id: "admin-client"; $InferServerPlugin: ReturnType; roles: O["roles"] extends Record ? O["roles"] : { admin: Role; user: Role; }; }>>; getActions: () => { admin: { checkRolePermission: (data: ({ /** * @deprecated Use `permissions` instead */ permission: { [key in keyof (O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })]?: ((O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })[key] extends readonly unknown[] ? (O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })[key][number] : never)[] | undefined }; permissions?: never | undefined; } | { permissions: { [key in keyof (O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })]?: ((O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })[key] extends readonly unknown[] ? (O["ac"] extends AccessControl ? S : { readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"]; readonly session: readonly ["list", "revoke", "delete"]; })[key][number] : never)[] | undefined }; permission?: never | undefined; }) & { role: R; }) => boolean; }; }; pathMethods: { "/admin/list-users": "GET"; "/admin/stop-impersonating": "POST"; }; }; //#endregion //#region src/plugins/anonymous/client.d.ts declare const anonymousClient: () => { id: "anonymous"; $InferServerPlugin: ReturnType; pathMethods: { "/sign-in/anonymous": "POST"; }; atomListeners: { matcher: (path: string) => path is "/sign-in/anonymous"; signal: "$sessionSignal"; }[]; }; //#endregion //#region src/plugins/api-key/client.d.ts declare const apiKeyClient: () => { id: "api-key"; $InferServerPlugin: ReturnType; pathMethods: { "/api-key/create": "POST"; "/api-key/delete": "POST"; "/api-key/delete-all-expired-api-keys": "POST"; }; }; type ApiKeyClientPlugin = ReturnType; //#endregion //#region src/plugins/custom-session/client.d.ts declare const customSessionClient: () => { id: "infer-server-plugin"; $InferServerPlugin: (A extends { options: infer O; } ? O : A)["plugins"] extends (infer P)[] ? P extends { id: "custom-session"; } ? P : never : never; }; //#endregion //#region src/plugins/device-authorization/client.d.ts declare const deviceAuthorizationClient: () => { id: "device-authorization"; $InferServerPlugin: ReturnType; pathMethods: { "/device/code": "POST"; "/device/token": "POST"; "/device": "GET"; "/device/approve": "POST"; "/device/deny": "POST"; }; }; //#endregion //#region src/plugins/email-otp/client.d.ts declare const emailOTPClient: () => { id: "email-otp"; $InferServerPlugin: ReturnType; atomListeners: { matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp"; signal: "$sessionSignal"; }[]; }; //#endregion //#region src/plugins/generic-oauth/client.d.ts declare const genericOAuthClient: () => { id: "generic-oauth-client"; $InferServerPlugin: ReturnType; }; //#endregion //#region src/plugins/jwt/client.d.ts interface JwtClientOptions { jwks?: { /** * The path of the endpoint exposing the JWKS. * Must match the server configuration. * * @default /jwks */ jwksPath?: string; }; } declare const jwtClient: (options?: JwtClientOptions) => { id: "better-auth-client"; $InferServerPlugin: ReturnType; pathMethods: { [x: string]: "GET"; }; getActions: ($fetch: _better_fetch_fetch88.BetterFetch) => { jwks: (fetchOptions?: any) => Promise<{ data: null; error: { message?: string | undefined; status: number; statusText: string; }; } | { data: JSONWebKeySet; error: null; }>; }; }; //#endregion //#region src/plugins/last-login-method/client.d.ts /** * Configuration for the client-side last login method plugin */ interface LastLoginMethodClientConfig { /** * Name of the cookie to read the last login method from * @default "better-auth.last_used_login_method" */ cookieName?: string | undefined; } /** * Client-side plugin to retrieve the last used login method */ declare const lastLoginMethodClient: (config?: LastLoginMethodClientConfig) => { id: "last-login-method-client"; getActions(): { /** * Get the last used login method from cookies * @returns The last used login method or null if not found */ getLastUsedLoginMethod: () => string | null; /** * Clear the last used login method cookie * This sets the cookie with an expiration date in the past */ clearLastUsedLoginMethod: () => void; /** * Check if a specific login method was the last used * @param method The method to check * @returns True if the method was the last used, false otherwise */ isLastUsedLoginMethod: (method: string) => boolean; }; }; //#endregion //#region src/plugins/magic-link/client.d.ts declare const magicLinkClient: () => { id: "magic-link"; $InferServerPlugin: ReturnType; }; //#endregion //#region src/plugins/multi-session/client.d.ts declare const multiSessionClient: () => { id: "multi-session"; $InferServerPlugin: ReturnType; atomListeners: { matcher(path: string): path is "/multi-session/set-active"; signal: "$sessionSignal"; }[]; }; //#endregion //#region src/plugins/oidc-provider/client.d.ts declare const oidcClient: () => { id: "oidc-client"; $InferServerPlugin: ReturnType; }; type OidcClientPlugin = ReturnType; //#endregion //#region src/plugins/one-tap/client.d.ts declare global { interface Window { google?: { accounts: { id: { initialize: (config: any) => void; prompt: (callback?: (notification: any) => void) => void; }; }; } | undefined; googleScriptInitialized?: boolean | undefined; } } interface GoogleOneTapOptions { /** * Google client ID */ clientId: string; /** * Auto select the account if the user is already signed in */ autoSelect?: boolean | undefined; /** * Cancel the flow when the user taps outside the prompt */ cancelOnTapOutside?: boolean | undefined; /** * The mode to use for the Google One Tap flow * * popup: Use a popup window * redirect: Redirect the user to the Google One Tap flow * * @default "popup" */ uxMode?: ("popup" | "redirect") | undefined; /** * The context to use for the Google One Tap flow. * * @see {@link https://developers.google.com/identity/gsi/web/reference/js-reference} * @default "signin" */ context?: ("signin" | "signup" | "use") | undefined; /** * Additional configuration options to pass to the Google One Tap API. */ additionalOptions?: Record | undefined; /** * Configuration options for the prompt and exponential backoff behavior. */ promptOptions?: { /** * Base delay (in milliseconds) for exponential backoff. * @default 1000 */ baseDelay?: number; /** * Maximum number of prompt attempts before calling onPromptNotification. * @default 5 */ maxAttempts?: number; /** * Whether to support FedCM (Federated Credential Management) support. * * @see {@link https://developer.chrome.com/docs/identity/fedcm/overview} * @default true */ fedCM?: boolean | undefined; } | undefined; } interface GoogleOneTapActionOptions extends Omit { fetchOptions?: ClientFetchOption | undefined; /** * Callback URL. */ callbackURL?: string | undefined; /** * Optional callback that receives the prompt notification if (or when) the prompt is dismissed or skipped. * This lets you render an alternative UI (e.g. a Google Sign-In button) to restart the process. */ onPromptNotification?: ((notification?: any | undefined) => void) | undefined; nonce?: string | undefined; } declare const oneTapClient: (options: GoogleOneTapOptions) => { id: "one-tap"; fetchPlugins: { id: string; name: string; hooks: { onResponse(ctx: _better_fetch_fetch88.ResponseContext): Promise; }; }[]; getActions: ($fetch: _better_fetch_fetch88.BetterFetch, _: _better_auth_core23.ClientStore) => { oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise; }; getAtoms($fetch: _better_fetch_fetch88.BetterFetch): {}; }; //#endregion //#region src/plugins/one-time-token/client.d.ts declare const oneTimeTokenClient: () => { id: "one-time-token"; $InferServerPlugin: ReturnType; }; //#endregion //#region src/plugins/organization/permission.d.ts type PermissionExclusive = { /** * @deprecated Use `permissions` instead */ permission: { [key: string]: string[]; }; permissions?: never | undefined; } | { permissions: { [key: string]: string[]; }; permission?: never | undefined; }; type HasPermissionBaseInput = { role: string; options: OrganizationOptions; allowCreatorAllPermissions?: boolean | undefined; } & PermissionExclusive; //#endregion //#region src/plugins/organization/client.d.ts /** * Using the same `hasPermissionFn` function, but without the need for a `ctx` parameter or the `organizationId` parameter. */ declare const clientSideHasPermission: (input: HasPermissionBaseInput) => boolean; interface OrganizationClientOptions { ac?: AccessControl | undefined; roles?: { [key in string]: Role } | undefined; teams?: { enabled: boolean; } | undefined; schema?: { organization?: { additionalFields?: { [key: string]: DBFieldAttribute; }; }; member?: { additionalFields?: { [key: string]: DBFieldAttribute; }; }; invitation?: { additionalFields?: { [key: string]: DBFieldAttribute; }; }; team?: { additionalFields?: { [key: string]: DBFieldAttribute; }; }; organizationRole?: { additionalFields?: { [key: string]: DBFieldAttribute; }; }; } | undefined; dynamicAccessControl?: { enabled: boolean; } | undefined; } declare const organizationClient: (options?: CO | undefined) => { id: "organization"; $InferServerPlugin: OrganizationPlugin<{ ac: CO["ac"] extends AccessControl ? CO["ac"] : AccessControl<{ readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; }>; roles: CO["roles"] extends Record ? CO["roles"] : { admin: Role; member: Role; owner: Role; }; teams: { enabled: CO["teams"] extends { enabled: true; } ? true : false; }; schema: CO["schema"]; dynamicAccessControl: { enabled: CO["dynamicAccessControl"] extends { enabled: true; } ? true : false; }; }>; getActions: ($fetch: _better_fetch_fetch88.BetterFetch, _$store: _better_auth_core23.ClientStore, co: _better_auth_core23.BetterAuthClientOptions | undefined) => { $Infer: { ActiveOrganization: CO["teams"] extends { enabled: true; } ? { members: InferMember[]; invitations: InferInvitation[]; teams: InferTeam[]; } & ({ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) : { members: InferMember[]; invitations: InferInvitation[]; } & ({ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never); Organization: InferOrganization; Invitation: InferInvitation; Member: InferMember; Team: InferTeam; }; organization: { checkRolePermission: (data: ({ /** * @deprecated Use `permissions` instead */ permission: { [key in keyof (CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })]?: ((CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })[key] extends readonly unknown[] ? (CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })[key][number] : never)[] | undefined }; permissions?: never | undefined; } | { permissions: { [key in keyof (CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })]?: ((CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })[key] extends readonly unknown[] ? (CO["ac"] extends AccessControl ? S : { readonly organization: readonly ["update", "delete"]; readonly member: readonly ["create", "update", "delete"]; readonly invitation: readonly ["create", "cancel"]; readonly team: readonly ["create", "update", "delete"]; readonly ac: readonly ["create", "read", "update", "delete"]; })[key][number] : never)[] | undefined }; permission?: never | undefined; }) & { role: R; }) => boolean; }; }; getAtoms: ($fetch: _better_fetch_fetch88.BetterFetch) => { $listOrg: nanostores3.PreinitializedWritableAtom & object; $activeOrgSignal: nanostores3.PreinitializedWritableAtom & object; $activeMemberSignal: nanostores3.PreinitializedWritableAtom & object; $activeMemberRoleSignal: nanostores3.PreinitializedWritableAtom & object; activeOrganization: nanostores3.PreinitializedWritableAtom<{ data: Prettify<({ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) & { members: InferMember[]; invitations: InferInvitation[]; }> | null; error: null | _better_fetch_fetch88.BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: SessionQueryParams; } | undefined) => Promise; }> & object; listOrganizations: nanostores3.PreinitializedWritableAtom<{ data: ({ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null; error: null | _better_fetch_fetch88.BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: SessionQueryParams; } | undefined) => Promise; }> & object; activeMember: nanostores3.PreinitializedWritableAtom<{ data: { id: string; organizationId: string; userId: string; role: string; createdAt: Date; } | null; error: null | _better_fetch_fetch88.BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: SessionQueryParams; } | undefined) => Promise; }> & object; activeMemberRole: nanostores3.PreinitializedWritableAtom<{ data: { role: string; } | null; error: null | _better_fetch_fetch88.BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: SessionQueryParams; } | undefined) => Promise; }> & object; }; pathMethods: { "/organization/get-full-organization": "GET"; "/organization/list-user-teams": "GET"; }; atomListeners: ({ matcher(path: string): path is "/organization/create" | "/organization/update" | "/organization/delete"; signal: "$listOrg"; } | { matcher(path: string): boolean; signal: "$activeOrgSignal"; } | { matcher(path: string): boolean; signal: "$sessionSignal"; } | { matcher(path: string): boolean; signal: "$activeMemberSignal"; } | { matcher(path: string): boolean; signal: "$activeMemberRoleSignal"; })[]; }; declare const inferOrgAdditionalFields: (schema?: S | undefined) => undefined extends S ? O extends Object ? O extends { session?: { fields?: { activeOrganizationId?: string; activeTeamId?: string; }; }; organization?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; member?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; invitation?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; team?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; teamMember?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; }; organizationRole?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; organizationResource?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; } ? O : ((O extends { options: any; } ? O : { options: { plugins: []; }; })["options"]["plugins"][number] extends infer T ? T extends (O extends { options: any; } ? O : { options: { plugins: []; }; })["options"]["plugins"][number] ? T extends { id: "organization"; } ? T : never : never : never) extends { options: { schema: infer S_1; }; } ? S_1 extends { session?: { fields?: { activeOrganizationId?: string; activeTeamId?: string; }; }; organization?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; member?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; invitation?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; team?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; teamMember?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; }; organizationRole?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; organizationResource?: { modelName?: string; fields?: { [key in keyof Omit]?: string }; additionalFields?: { [key in string]: DBFieldAttribute }; }; } | undefined ? { [K in keyof S_1]: S_1[K] extends { additionalFields: infer AF; } ? S_1[K] : undefined } : undefined : undefined : undefined : S; //#endregion //#region src/plugins/phone-number/client.d.ts declare const phoneNumberClient: () => { id: "phoneNumber"; $InferServerPlugin: ReturnType; atomListeners: { matcher(path: string): path is "/sign-in/phone-number" | "/phone-number/verify" | "/phone-number/update"; signal: "$sessionSignal"; }[]; }; //#endregion //#region src/plugins/siwe/client.d.ts declare const siweClient: () => { id: "siwe"; $InferServerPlugin: ReturnType; }; //#endregion //#region src/plugins/username/client.d.ts declare const usernameClient: () => { id: "username"; $InferServerPlugin: ReturnType; atomListeners: { matcher: (path: string) => path is "/sign-in/username"; signal: "$sessionSignal"; }[]; }; //#endregion //#region src/client/plugins/infer-plugin.d.ts declare const InferServerPlugin: () => { id: "infer-server-plugin"; $InferServerPlugin: (AuthOrOption extends { options: infer O; } ? O : AuthOrOption)["plugins"] extends (infer P)[] ? P extends { id: ID; } ? P : never : never; }; //#endregion export { AdminOptions, AnonymousOptions, ApiKey, ApiKeyClientPlugin, ApiKeyOptions, Auth0Options, AuthorizationQuery, Awaitable, BackupCodeOptions, type BaseOAuthProviderOptions, Client, CodeVerificationValue, DeepPartial, Expand, type GenericOAuthConfig, type GenericOAuthOptions, GoogleOneTapActionOptions, GoogleOneTapOptions, HasRequiredKeys, HubSpotOptions, InferAdminRolesFromOption, InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferServerPlugin, InferTeam, Invitation, InvitationInput, InvitationStatus, JWKOptions, JWSAlgorithms, Jwk, JwtOptions, KeycloakOptions, LastLoginMethodClientConfig, LineOptions, LiteralNumber, LiteralString, LiteralUnion, Member, MemberInput, MicrosoftEntraIdOptions, type MultiSessionConfig, OAuthAccessToken, OIDCMetadata, OIDCOptions, OTPOptions, OidcClientPlugin, OktaOptions, OmitId, type OneTimeTokenOptions, Organization, OrganizationInput, OrganizationResource, OrganizationRole, OrganizationSchema, PhoneNumberOptions, PreserveJSDoc, Prettify, PrettifyDeep, Primitive, RequiredKeysOf, SessionWithImpersonatedBy, SlackOptions, StripEmptyObjects, TOTPOptions, Team, TeamInput, TeamMember, TeamMemberInput, TokenBody, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UnionToIntersection, UserWithAnonymous, UserWithPhoneNumber, UserWithRole, UserWithTwoFactor, WithoutEmpty, adminClient, anonymousClient, apiKeyClient, auth0, backupCode2fa, clientSideHasPermission, customSessionClient, defaultRolesSchema, deviceAuthorizationClient, emailOTPClient, generateBackupCodes, genericOAuthClient, getBackupCodes, hubspot, inferAdditionalFields, inferOrgAdditionalFields, invitationSchema, invitationStatus, jwtClient, keycloak, lastLoginMethodClient, line, magicLinkClient, memberSchema, microsoftEntraId, multiSessionClient, oidcClient, okta, oneTapClient, oneTimeTokenClient, organizationClient, organizationResourceSchema, organizationRoleSchema, organizationSchema, otp2fa, phoneNumberClient, roleSchema, schema, siweClient, slack, teamMemberSchema, teamSchema, totp2fa, twoFactorClient, usernameClient, verifyBackupCode };