import "../validators-BcQFm1oY.js"; import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-ji7By8u0.js"; import { t as GetAuth } from "../types-CM67ko7K.js"; import { F as GenericCtx } from "../procedure-caller-Cg6bxkDQ.js"; import "../http-types-BK7FuIcR.js"; import "../server/index.js"; import * as convex_values0 from "convex/values"; import { Infer } from "convex/values"; import * as convex_server0 from "convex/server"; import { DocumentByName, FunctionReference, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel, internalMutationGeneric } from "convex/server"; import { convex } from "@convex-dev/better-auth/plugins"; import * as better_auth_adapters0 from "better-auth/adapters"; import { DBAdapterDebugLogOption } from "better-auth/adapters"; import { BetterAuthDBSchema } from "better-auth/db"; import { BetterAuthOptions } from "better-auth/minimal"; import * as better_auth0 from "better-auth"; import { Auth, Where } from "better-auth/types"; import { SetOptional } from "type-fest"; //#region src/auth/define-auth.d.ts type MaybePromise$1 = T | Promise; type TableDoc = TableName extends TableNamesInDataModel ? DocumentByName extends Record ? DocumentByName : Record : Record; type InsertDocData> = Omit; type UpdateDocData> = Partial>; type TriggerChangeId = TDoc extends { _id: infer TId; } ? TId : TDoc extends { id: infer TId; } ? TId : unknown; type GenericAuthTriggerChange = Record, TId = TriggerChangeId> = { id: TId; newDoc: TDoc; oldDoc: null; operation: 'insert'; } | { id: TId; newDoc: TDoc; oldDoc: TDoc; operation: 'update'; } | { id: TId; newDoc: null; oldDoc: TDoc; operation: 'delete'; }; type GenericAuthBeforeResult> = void | false | { data: Partial; }; type GenericAuthTriggerHandlers = TableDoc, InsertDoc extends Record = InsertDocData, UpdateDoc extends Record = UpdateDocData> = { change?: (change: GenericAuthTriggerChange, ctx: TriggerCtx) => MaybePromise$1; create?: { after?: (doc: Doc, ctx: TriggerCtx) => MaybePromise$1; before?: (data: InsertDoc, ctx: TriggerCtx) => MaybePromise$1>; }; delete?: { after?: (doc: Doc, ctx: TriggerCtx) => MaybePromise$1; before?: (doc: Doc, ctx: TriggerCtx) => MaybePromise$1>; }; update?: { after?: (newDoc: Doc, ctx: TriggerCtx) => MaybePromise$1; before?: (update: UpdateDoc, ctx: TriggerCtx) => MaybePromise$1>; }; }; type GenericAuthTriggers, TriggerCtx = unknown> = { [K in keyof Schema['tables'] & string]?: GenericAuthTriggerHandlers }; type BetterAuthOptionsWithoutDatabase = Omit; type GenericAuthDefinition = SchemaDefinition, AuthOptions extends BetterAuthOptionsWithoutDatabase = BetterAuthOptionsWithoutDatabase> = (ctx: GenericCtx) => AuthOptions & { triggers?: GenericAuthTriggers; }; declare const defineAuth: = SchemaDefinition, AuthOptions extends BetterAuthOptionsWithoutDatabase = BetterAuthOptionsWithoutDatabase>(definition: GenericAuthDefinition) => GenericAuthDefinition; //#endregion //#region src/auth/create-client.d.ts type AuthFunctions = { create: FunctionReference<'mutation', 'internal', Record>; deleteMany: FunctionReference<'mutation', 'internal', Record>; deleteOne: FunctionReference<'mutation', 'internal', Record>; findMany: FunctionReference<'query', 'internal', Record>; findOne: FunctionReference<'query', 'internal', Record>; updateMany: FunctionReference<'mutation', 'internal', Record>; updateOne: FunctionReference<'mutation', 'internal', Record>; }; type Triggers, TriggerCtx = unknown> = GenericAuthTriggers; type TriggerResolver, TriggerCtx extends GenericMutationCtx = GenericMutationCtx> = Triggers | ((ctx: TriggerCtx) => Triggers | undefined); declare const createClient: , TriggerCtx extends GenericMutationCtx = GenericMutationCtx>(config: { authFunctions: AuthFunctions; schema: Schema; context?: (ctx: GenericMutationCtx) => TriggerCtx | Promise; triggers?: TriggerResolver; }) => { authFunctions: AuthFunctions; triggers: TriggerResolver | undefined; adapter: (ctx: GenericCtx, getAuthOptions: (ctx: any) => BetterAuthOptions) => better_auth_adapters0.AdapterFactory; }; //#endregion //#region src/auth/adapter.d.ts declare const handlePagination: (next: ({ paginationOpts }: { paginationOpts: PaginationOptions; }) => Promise, "page"> & { count?: number; }>, { limit, numItems }?: { limit?: number; numItems?: number; }) => Promise<{ count: number; cursor: string | null; docs: any[]; isDone: boolean; }>; type ConvexCleanedWhere = Where & { value: number[] | string[] | boolean | number | string | null; }; declare const adapterConfig: { adapterId: string; adapterName: string; debugLogs: false; disableIdGeneration: true; mapKeysTransformInput: { id: string; }; mapKeysTransformOutput: { _id: string; }; supportsJSON: false; supportsNumericIds: false; supportsDates: false; supportsArrays: true; transaction: false; usePlural: false; customTransformInput: ({ data, fieldAttributes }: { data: any; fieldAttributes: better_auth0.DBFieldAttribute; field: string; action: "create" | "update" | "findOne" | "findMany" | "updateMany" | "delete" | "deleteMany" | "count"; model: string; schema: BetterAuthDBSchema; options: BetterAuthOptions; }) => any; customTransformOutput: ({ data, fieldAttributes }: { data: any; fieldAttributes: better_auth0.DBFieldAttribute; field: string; select: string[]; model: string; schema: BetterAuthDBSchema; options: BetterAuthOptions; }) => any; }; declare const httpAdapter: >(ctx: GenericCtx, { authFunctions, debugLogs, schema }: { authFunctions: AuthFunctions; debugLogs?: DBAdapterDebugLogOption; schema?: Schema; }) => better_auth_adapters0.AdapterFactory; declare const dbAdapter: >(ctx: GenericCtx, getAuthOptions: (ctx: any) => BetterAuthOptions, { authFunctions, debugLogs, schema }: { authFunctions: AuthFunctions; schema: Schema; debugLogs?: DBAdapterDebugLogOption; }) => better_auth_adapters0.AdapterFactory; //#endregion //#region src/auth/adapter-utils.d.ts type AdapterPaginationOptions = PaginationOptions & { endCursor?: string | null; maximumRowsRead?: number; }; declare const adapterWhereValidator: convex_values0.VObject<{ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }, { connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>; field: convex_values0.VString; operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>; value: convex_values0.VUnion, convex_values0.VFloat64, convex_values0.VBoolean, convex_values0.VArray, "required">, convex_values0.VArray, "required">, convex_values0.VNull], "required", never>; }, "required", "value" | "operator" | "field" | "connector">; declare const adapterArgsValidator: convex_values0.VObject<{ limit?: number | undefined; where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; select?: string[] | undefined; offset?: number | undefined; sortBy?: { direction: "asc" | "desc"; field: string; } | undefined; model: string; }, { limit: convex_values0.VFloat64; model: convex_values0.VString; offset: convex_values0.VFloat64; select: convex_values0.VArray, "optional">; sortBy: convex_values0.VObject<{ direction: "asc" | "desc"; field: string; } | undefined, { direction: convex_values0.VUnion<"asc" | "desc", [convex_values0.VLiteral<"asc", "required">, convex_values0.VLiteral<"desc", "required">], "required", never>; field: convex_values0.VString; }, "optional", "direction" | "field">; where: convex_values0.VArray<{ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined, convex_values0.VObject<{ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }, { connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>; field: convex_values0.VString; operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>; value: convex_values0.VUnion, convex_values0.VFloat64, convex_values0.VBoolean, convex_values0.VArray, "required">, convex_values0.VArray, "required">, convex_values0.VNull], "required", never>; }, "required", "value" | "operator" | "field" | "connector">, "optional">; }, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.direction" | "sortBy.field">; declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record) => boolean; declare const checkUniqueFields: >(ctx: GenericQueryCtx, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record, doc?: Record) => Promise; declare const selectFields: , D extends DocumentByName>(doc: D | null, select?: string[]) => D | null; declare const paginate: , T extends TableNamesInDataModel>(ctx: GenericQueryCtx, schema: SchemaDefinition, betterAuthSchema: BetterAuthDBSchema, args: Infer & { paginationOpts: AdapterPaginationOptions; }) => Promise>; declare const listOne: , T extends TableNamesInDataModel>(ctx: GenericQueryCtx, schema: SchemaDefinition, betterAuthSchema: BetterAuthDBSchema, args: Infer) => Promise; //#endregion //#region src/auth/create-api.d.ts type Schema = SchemaDefinition; type MaybePromise = T | Promise; type RuntimeBeforeResult = GenericAuthBeforeResult>; type RuntimeTriggerChange = GenericAuthTriggerChange>; type RuntimeTableTriggers = { change?: (change: RuntimeTriggerChange, ctx: unknown) => MaybePromise; create?: { after?: (doc: Record, ctx: unknown) => MaybePromise; before?: (data: Record, ctx: unknown) => MaybePromise; }; delete?: { after?: (doc: Record, ctx: unknown) => MaybePromise; before?: (doc: Record, ctx: unknown) => MaybePromise; }; update?: { after?: (doc: Record, ctx: unknown) => MaybePromise; before?: (update: Record, ctx: unknown) => MaybePromise; }; }; declare const createHandler: (ctx: any, args: { input: { data: any; model: string; }; select?: string[]; tableTriggers?: RuntimeTableTriggers; triggerCtx?: unknown; }, schema: Schema, betterAuthSchema: any) => Promise; declare const findOneHandler: (ctx: any, args: { model: string; select?: string[]; where?: any[]; }, schema: Schema, betterAuthSchema: any) => Promise; declare const findManyHandler: (ctx: any, args: { model: string; paginationOpts: any; limit?: number; offset?: number; sortBy?: { direction: "asc" | "desc"; field: string; }; where?: any[]; }, schema: Schema, betterAuthSchema: any) => Promise>; declare const updateOneHandler: (ctx: any, args: { input: { model: string; update: any; where?: any[]; }; tableTriggers?: RuntimeTableTriggers; triggerCtx?: unknown; }, schema: Schema, betterAuthSchema: any) => Promise; declare const updateManyHandler: (ctx: any, args: { input: { model: string; update?: any; where?: any[]; }; paginationOpts: any; tableTriggers?: RuntimeTableTriggers; triggerCtx?: unknown; }, schema: Schema, betterAuthSchema: any) => Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>; declare const deleteOneHandler: (ctx: any, args: { input: { model: string; where?: any[]; }; tableTriggers?: RuntimeTableTriggers; triggerCtx?: unknown; }, schema: Schema, betterAuthSchema: any) => Promise | undefined>; declare const deleteManyHandler: (ctx: any, args: { input: { model: string; where?: any[]; }; paginationOpts: any; tableTriggers?: RuntimeTableTriggers; triggerCtx?: unknown; }, schema: Schema, betterAuthSchema: any) => Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>; declare const createApi: , DataModel extends GenericDataModel = GenericDataModel, Ctx = unknown, TriggerCtx = Ctx, Auth = unknown>(schema: Schema, getAuth: GetAuth, options?: { internalMutation?: typeof internalMutationGeneric; context?: (ctx: any) => TriggerCtx | Promise; triggers?: GenericAuthTriggers | ((ctx: TriggerCtx) => GenericAuthTriggers | undefined); /** Validate input validators against auth table schemas. Defaults to false for smaller generated types. */ validateInput?: boolean; }) => { create: convex_server0.RegisteredMutation<"internal", { select?: string[] | undefined; input: { data: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { data: any; model: string; }; }, Promise>; deleteMany: convex_server0.RegisteredMutation<"internal", { paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; model: string; } | { where?: any[] | undefined; model: string; }; }, Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>>; deleteOne: convex_server0.RegisteredMutation<"internal", { input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; model: string; } | { where?: any[] | undefined; model: string; }; }, Promise | undefined>>; findMany: convex_server0.RegisteredQuery<"internal", { join?: any; limit?: number | undefined; where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; offset?: number | undefined; sortBy?: { direction: "asc" | "desc"; field: string; } | undefined; paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; model: string; }, Promise>>; findOne: convex_server0.RegisteredQuery<"internal", { join?: any; where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; select?: string[] | undefined; model: string; }, Promise>; getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise>; rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise>; updateMany: convex_server0.RegisteredMutation<"internal", { paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; update: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { where?: any[] | undefined; update: any; model: string; }; }, Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>>; updateOne: convex_server0.RegisteredMutation<"internal", { input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; update: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { where?: any[] | undefined; update: any; model: string; }; }, Promise>; }; //#endregion //#region src/auth/generated-contract.d.ts type GeneratedAuthDisabledReasonKind = 'default_export_unavailable' | 'missing_auth_file' | 'missing_default_export'; declare const getGeneratedAuthDisabledReason: (kind: GeneratedAuthDisabledReasonKind) => string; type UnknownFn = (...args: unknown[]) => unknown; type AuthDefinitionModule, AuthOptions extends BetterAuthOptionsWithoutDatabase> = { default: GenericAuthDefinition; }; type AuthDefinitionInput, AuthOptions extends BetterAuthOptionsWithoutDatabase> = GenericAuthDefinition | AuthDefinitionModule; declare const resolveGeneratedAuthDefinition: (input: unknown, reason: string) => Definition; type BetterAuthRuntime = Auth; declare const createAuthRuntime: , TriggerCtx extends GenericMutationCtx = GenericMutationCtx, GenericCtx$1 = GenericMutationCtx, AuthOptions extends BetterAuthOptionsWithoutDatabase = BetterAuthOptionsWithoutDatabase>(config: { internal: unknown; moduleName: string; schema: Schema; auth: AuthDefinitionInput; context?: (ctx: GenericMutationCtx) => TriggerCtx | Promise; }) => { create: convex_server0.RegisteredMutation<"internal", { select?: string[] | undefined; input: { data: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { data: any; model: string; }; }, Promise>; deleteMany: convex_server0.RegisteredMutation<"internal", { paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; model: string; } | { where?: any[] | undefined; model: string; }; }, Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>>; deleteOne: convex_server0.RegisteredMutation<"internal", { input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; model: string; } | { where?: any[] | undefined; model: string; }; }, Promise | undefined>>; findMany: convex_server0.RegisteredQuery<"internal", { join?: any; limit?: number | undefined; where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; offset?: number | undefined; sortBy?: { direction: "asc" | "desc"; field: string; } | undefined; paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; model: string; }, Promise>>; findOne: convex_server0.RegisteredQuery<"internal", { join?: any; where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; select?: string[] | undefined; model: string; }, Promise>; getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise>; rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise>; updateMany: convex_server0.RegisteredMutation<"internal", { paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; update: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { where?: any[] | undefined; update: any; model: string; }; }, Promise<{ count: number; ids: any[]; isDone: boolean; continueCursor: convex_server0.Cursor; splitCursor?: convex_server0.Cursor | null; pageStatus?: "SplitRecommended" | "SplitRequired" | null; }>>; updateOne: convex_server0.RegisteredMutation<"internal", { input: { where?: { operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; connector?: "AND" | "OR" | undefined; value: string | number | boolean | string[] | number[] | null; field: string; }[] | undefined; update: { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; }; model: string; } | { where?: any[] | undefined; update: any; model: string; }; }, Promise>; authEnabled: true; authClient: { authFunctions: AuthFunctions; triggers: TriggerResolver | undefined; adapter: (ctx: GenericCtx, getAuthOptions: (ctx: any) => BetterAuthOptions) => better_auth_adapters0.AdapterFactory; }; getAuth: (ctx: GenericCtx$1) => Auth; auth: BetterAuthRuntime; }; declare const createDisabledAuthRuntime: , TriggerCtx extends GenericMutationCtx = GenericMutationCtx, GenericCtx = GenericMutationCtx>(config?: { reason?: string; }) => { authEnabled: false; authClient: ReturnType>; auth: BetterAuthRuntime; getAuth: (ctx: GenericCtx) => BetterAuthRuntime; create: () => never; deleteMany: () => never; deleteOne: () => never; findMany: () => never; findOne: () => never; updateMany: () => never; updateOne: () => never; getLatestJwks: () => never; rotateKeys: () => never; }; //#endregion //#region src/auth/helpers.d.ts type SessionDoc> = DocByCtx; type SessionResult> = LookupByIdResultByCtx; type SessionLookupCtx> = QueryCtxWithPreferredOrmQueryTable; type SessionClientSignals = { ip?: string; userAgent?: string; }; declare const getAuthUserIdentity: (ctx: GenericQueryCtx) => Promise<{ sessionId: DocumentByName["_id"]; userId: DocumentByName["_id"]; tokenIdentifier: string; subject: string; issuer: string; name?: string; givenName?: string; familyName?: string; nickname?: string; preferredUsername?: string; profileUrl?: string; pictureUrl?: string; email?: string; emailVerified?: boolean; gender?: string; birthday?: string; timezone?: string; language?: string; phoneNumber?: string; phoneNumberVerified?: boolean; address?: string; updatedAt?: string; } | null>; declare const getAuthUserId: (ctx: GenericQueryCtx) => Promise; declare function getSession>(ctx: TCtx & SessionLookupCtx, _sessionId?: SessionDoc['_id']): Promise>; declare const getSessionNetworkSignals: >(ctx: TCtx & QueryCtxWithPreferredOrmQueryTable, session?: SessionResult | null) => Promise; declare const getHeaders: >(ctx: TCtx & QueryCtxWithPreferredOrmQueryTable, session?: SessionResult | null) => Promise; //#endregion export { type AuthFunctions, BetterAuthOptionsWithoutDatabase, ConvexCleanedWhere, GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, GetAuth, SessionClientSignals, type Triggers, adapterArgsValidator, adapterConfig, adapterWhereValidator, checkUniqueFields, convex, createApi, createAuthRuntime, createClient, createDisabledAuthRuntime, createHandler, dbAdapter, defineAuth, deleteManyHandler, deleteOneHandler, findManyHandler, findOneHandler, getAuthUserId, getAuthUserIdentity, getGeneratedAuthDisabledReason, getHeaders, getSession, getSessionNetworkSignals, handlePagination, hasUniqueFields, httpAdapter, listOne, paginate, resolveGeneratedAuthDefinition, selectFields, updateManyHandler, updateOneHandler };