/* eslint-disable */ /** * Generated `api` utility. * * THIS CODE IS AUTOMATICALLY GENERATED. * * To regenerate, run `npx convex dev`. * @module */ import type * as acoes from '../acoes.js'; import type * as actions_email from '../actions/email.js'; import type * as actions_linkPreview from '../actions/linkPreview.js'; import type * as actions_pushNotifications from '../actions/pushNotifications.js'; import type * as actions_smtp from '../actions/smtp.js'; import type * as actions_utils_nodeCrypto from '../actions/utils/nodeCrypto.js'; import type * as atestadosLicencas from '../atestadosLicencas.js'; import type * as ausencias from '../ausencias.js'; import type * as autenticacao from '../autenticacao.js'; import type * as auth from '../auth.js'; import type * as auth_utils from '../auth/utils.js'; import type * as chamadas from '../chamadas.js'; import type * as chamados from '../chamados.js'; import type * as chat from '../chat.js'; import type * as config from '../config.js'; import type * as configuracaoEmail from '../configuracaoEmail.js'; import type * as configuracaoJitsi from '../configuracaoJitsi.js'; import type * as configuracaoPonto from '../configuracaoPonto.js'; import type * as configuracaoRelogio from '../configuracaoRelogio.js'; import type * as contratos from '../contratos.js'; import type * as crons from '../crons.js'; import type * as cursos from '../cursos.js'; import type * as dashboard from '../dashboard.js'; import type * as documentos from '../documentos.js'; import type * as email from '../email.js'; import type * as empresas from '../empresas.js'; import type * as enderecosMarcacao from '../enderecosMarcacao.js'; import type * as ferias from '../ferias.js'; import type * as flows from '../flows.js'; import type * as funcionarioEnderecos from '../funcionarioEnderecos.js'; import type * as funcionarios from '../funcionarios.js'; import type * as healthCheck from '../healthCheck.js'; import type * as http from '../http.js'; import type * as lgpd from '../lgpd.js'; import type * as logsAcesso from '../logsAcesso.js'; import type * as logsAtividades from '../logsAtividades.js'; import type * as logsLogin from '../logsLogin.js'; import type * as monitoramento from '../monitoramento.js'; import type * as pedidos from '../pedidos.js'; import type * as permissoesAcoes from '../permissoesAcoes.js'; import type * as pontos from '../pontos.js'; import type * as preferenciasNotificacao from '../preferenciasNotificacao.js'; import type * as produtos from '../produtos.js'; import type * as pushNotifications from '../pushNotifications.js'; import type * as roles from '../roles.js'; import type * as saldoFerias from '../saldoFerias.js'; import type * as security from '../security.js'; import type * as seed from '../seed.js'; import type * as setores from '../setores.js'; import type * as simbolos from '../simbolos.js'; import type * as tables_atestados from '../tables/atestados.js'; import type * as tables_ausencias from '../tables/ausencias.js'; import type * as tables_auth from '../tables/auth.js'; import type * as tables_chat from '../tables/chat.js'; import type * as tables_contratos from '../tables/contratos.js'; import type * as tables_cursos from '../tables/cursos.js'; import type * as tables_empresas from '../tables/empresas.js'; import type * as tables_enderecos from '../tables/enderecos.js'; import type * as tables_ferias from '../tables/ferias.js'; import type * as tables_flows from '../tables/flows.js'; import type * as tables_funcionarios from '../tables/funcionarios.js'; import type * as tables_lgpdTables from '../tables/lgpdTables.js'; import type * as tables_licencas from '../tables/licencas.js'; import type * as tables_pedidos from '../tables/pedidos.js'; import type * as tables_ponto from '../tables/ponto.js'; import type * as tables_produtos from '../tables/produtos.js'; import type * as tables_security from '../tables/security.js'; import type * as tables_setores from '../tables/setores.js'; import type * as tables_system from '../tables/system.js'; import type * as tables_tickets from '../tables/tickets.js'; import type * as tables_times from '../tables/times.js'; import type * as templatesMensagens from '../templatesMensagens.js'; import type * as times from '../times.js'; import type * as usuarios from '../usuarios.js'; import type * as utils_chatTemplateWrapper from '../utils/chatTemplateWrapper.js'; import type * as utils_emailTemplateWrapper from '../utils/emailTemplateWrapper.js'; import type * as utils_getClientIP from '../utils/getClientIP.js'; import type * as utils_scanEmailSenders from '../utils/scanEmailSenders.js'; import type * as verificarMatriculas from '../verificarMatriculas.js'; import type { ApiFromModules, FilterApi, FunctionReference } from 'convex/server'; declare const fullApi: ApiFromModules<{ acoes: typeof acoes; 'actions/email': typeof actions_email; 'actions/linkPreview': typeof actions_linkPreview; 'actions/pushNotifications': typeof actions_pushNotifications; 'actions/smtp': typeof actions_smtp; 'actions/utils/nodeCrypto': typeof actions_utils_nodeCrypto; atestadosLicencas: typeof atestadosLicencas; ausencias: typeof ausencias; autenticacao: typeof autenticacao; auth: typeof auth; 'auth/utils': typeof auth_utils; chamadas: typeof chamadas; chamados: typeof chamados; chat: typeof chat; config: typeof config; configuracaoEmail: typeof configuracaoEmail; configuracaoJitsi: typeof configuracaoJitsi; configuracaoPonto: typeof configuracaoPonto; configuracaoRelogio: typeof configuracaoRelogio; contratos: typeof contratos; crons: typeof crons; cursos: typeof cursos; dashboard: typeof dashboard; documentos: typeof documentos; email: typeof email; empresas: typeof empresas; enderecosMarcacao: typeof enderecosMarcacao; ferias: typeof ferias; flows: typeof flows; funcionarioEnderecos: typeof funcionarioEnderecos; funcionarios: typeof funcionarios; healthCheck: typeof healthCheck; http: typeof http; lgpd: typeof lgpd; logsAcesso: typeof logsAcesso; logsAtividades: typeof logsAtividades; logsLogin: typeof logsLogin; monitoramento: typeof monitoramento; pedidos: typeof pedidos; permissoesAcoes: typeof permissoesAcoes; pontos: typeof pontos; preferenciasNotificacao: typeof preferenciasNotificacao; produtos: typeof produtos; pushNotifications: typeof pushNotifications; roles: typeof roles; saldoFerias: typeof saldoFerias; security: typeof security; seed: typeof seed; setores: typeof setores; simbolos: typeof simbolos; 'tables/atestados': typeof tables_atestados; 'tables/ausencias': typeof tables_ausencias; 'tables/auth': typeof tables_auth; 'tables/chat': typeof tables_chat; 'tables/contratos': typeof tables_contratos; 'tables/cursos': typeof tables_cursos; 'tables/empresas': typeof tables_empresas; 'tables/enderecos': typeof tables_enderecos; 'tables/ferias': typeof tables_ferias; 'tables/flows': typeof tables_flows; 'tables/funcionarios': typeof tables_funcionarios; 'tables/lgpdTables': typeof tables_lgpdTables; 'tables/licencas': typeof tables_licencas; 'tables/pedidos': typeof tables_pedidos; 'tables/ponto': typeof tables_ponto; 'tables/produtos': typeof tables_produtos; 'tables/security': typeof tables_security; 'tables/setores': typeof tables_setores; 'tables/system': typeof tables_system; 'tables/tickets': typeof tables_tickets; 'tables/times': typeof tables_times; templatesMensagens: typeof templatesMensagens; times: typeof times; usuarios: typeof usuarios; 'utils/chatTemplateWrapper': typeof utils_chatTemplateWrapper; 'utils/emailTemplateWrapper': typeof utils_emailTemplateWrapper; 'utils/getClientIP': typeof utils_getClientIP; 'utils/scanEmailSenders': typeof utils_scanEmailSenders; verificarMatriculas: typeof verificarMatriculas; }>; /** * A utility for referencing Convex functions in your app's public API. * * Usage: * ```js * const myFunctionReference = api.myModule.myFunction; * ``` */ export declare const api: FilterApi>; /** * A utility for referencing Convex functions in your app's internal API. * * Usage: * ```js * const myFunctionReference = internal.myModule.myFunction; * ``` */ export declare const internal: FilterApi>; export declare const components: { betterAuth: { adapter: { create: FunctionReference< 'mutation', 'internal', { input: | { data: { createdAt: number; displayUsername?: null | string; email: string; emailVerified: boolean; image?: null | string; isAnonymous?: null | boolean; name: string; phoneNumber?: null | string; phoneNumberVerified?: null | boolean; twoFactorEnabled?: null | boolean; updatedAt: number; userId?: null | string; username?: null | string; }; model: 'user'; } | { data: { createdAt: number; expiresAt: number; ipAddress?: null | string; token: string; updatedAt: number; userAgent?: null | string; userId: string; }; model: 'session'; } | { data: { accessToken?: null | string; accessTokenExpiresAt?: null | number; accountId: string; createdAt: number; idToken?: null | string; password?: null | string; providerId: string; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scope?: null | string; updatedAt: number; userId: string; }; model: 'account'; } | { data: { createdAt: number; expiresAt: number; identifier: string; updatedAt: number; value: string; }; model: 'verification'; } | { data: { backupCodes: string; secret: string; userId: string }; model: 'twoFactor'; } | { data: { aaguid?: null | string; backedUp: boolean; counter: number; createdAt?: null | number; credentialID: string; deviceType: string; name?: null | string; publicKey: string; transports?: null | string; userId: string; }; model: 'passkey'; } | { data: { clientId?: null | string; clientSecret?: null | string; createdAt?: null | number; disabled?: null | boolean; icon?: null | string; metadata?: null | string; name?: null | string; redirectURLs?: null | string; type?: null | string; updatedAt?: null | number; userId?: null | string; }; model: 'oauthApplication'; } | { data: { accessToken?: null | string; accessTokenExpiresAt?: null | number; clientId?: null | string; createdAt?: null | number; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; model: 'oauthAccessToken'; } | { data: { clientId?: null | string; consentGiven?: null | boolean; createdAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; model: 'oauthConsent'; } | { data: { createdAt: number; privateKey: string; publicKey: string; }; model: 'jwks'; } | { data: { count?: null | number; key?: null | string; lastRequest?: null | number; }; model: 'rateLimit'; } | { data: { count: number; key: string; lastRequest: number }; model: 'ratelimit'; }; onCreateHandle?: string; select?: Array; }, any >; deleteMany: FunctionReference< 'mutation', 'internal', { input: | { model: 'user'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'email' | 'emailVerified' | 'image' | 'createdAt' | 'updatedAt' | 'twoFactorEnabled' | 'isAnonymous' | 'username' | 'displayUsername' | 'phoneNumber' | 'phoneNumberVerified' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'session'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'expiresAt' | 'token' | 'createdAt' | 'updatedAt' | 'ipAddress' | 'userAgent' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'account'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accountId' | 'providerId' | 'userId' | 'accessToken' | 'refreshToken' | 'idToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'scope' | 'password' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'verification'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'identifier' | 'value' | 'expiresAt' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'twoFactor'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'secret' | 'backupCodes' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'passkey'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'publicKey' | 'userId' | 'credentialID' | 'counter' | 'deviceType' | 'backedUp' | 'transports' | 'createdAt' | 'aaguid' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthApplication'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'icon' | 'metadata' | 'clientId' | 'clientSecret' | 'redirectURLs' | 'type' | 'disabled' | 'userId' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthAccessToken'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accessToken' | 'refreshToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthConsent'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | 'consentGiven' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'jwks'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'publicKey' | 'privateKey' | 'createdAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'rateLimit'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'ratelimit'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }; onDeleteHandle?: string; paginationOpts: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; }, any >; deleteOne: FunctionReference< 'mutation', 'internal', { input: | { model: 'user'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'email' | 'emailVerified' | 'image' | 'createdAt' | 'updatedAt' | 'twoFactorEnabled' | 'isAnonymous' | 'username' | 'displayUsername' | 'phoneNumber' | 'phoneNumberVerified' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'session'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'expiresAt' | 'token' | 'createdAt' | 'updatedAt' | 'ipAddress' | 'userAgent' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'account'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accountId' | 'providerId' | 'userId' | 'accessToken' | 'refreshToken' | 'idToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'scope' | 'password' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'verification'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'identifier' | 'value' | 'expiresAt' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'twoFactor'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'secret' | 'backupCodes' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'passkey'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'publicKey' | 'userId' | 'credentialID' | 'counter' | 'deviceType' | 'backedUp' | 'transports' | 'createdAt' | 'aaguid' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthApplication'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'icon' | 'metadata' | 'clientId' | 'clientSecret' | 'redirectURLs' | 'type' | 'disabled' | 'userId' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthAccessToken'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accessToken' | 'refreshToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthConsent'; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | 'consentGiven' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'jwks'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'publicKey' | 'privateKey' | 'createdAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'rateLimit'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'ratelimit'; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }; onDeleteHandle?: string; }, any >; findMany: FunctionReference< 'query', 'internal', { limit?: number; model: | 'user' | 'session' | 'account' | 'verification' | 'twoFactor' | 'passkey' | 'oauthApplication' | 'oauthAccessToken' | 'oauthConsent' | 'jwks' | 'rateLimit' | 'ratelimit'; offset?: number; paginationOpts: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; sortBy?: { direction: 'asc' | 'desc'; field: string }; where?: Array<{ connector?: 'AND' | 'OR'; field: string; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }, any >; findOne: FunctionReference< 'query', 'internal', { model: | 'user' | 'session' | 'account' | 'verification' | 'twoFactor' | 'passkey' | 'oauthApplication' | 'oauthAccessToken' | 'oauthConsent' | 'jwks' | 'rateLimit' | 'ratelimit'; select?: Array; where?: Array<{ connector?: 'AND' | 'OR'; field: string; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }, any >; migrationRemoveUserId: FunctionReference<'mutation', 'internal', { userId: string }, any>; updateMany: FunctionReference< 'mutation', 'internal', { input: | { model: 'user'; update: { createdAt?: number; displayUsername?: null | string; email?: string; emailVerified?: boolean; image?: null | string; isAnonymous?: null | boolean; name?: string; phoneNumber?: null | string; phoneNumberVerified?: null | boolean; twoFactorEnabled?: null | boolean; updatedAt?: number; userId?: null | string; username?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'email' | 'emailVerified' | 'image' | 'createdAt' | 'updatedAt' | 'twoFactorEnabled' | 'isAnonymous' | 'username' | 'displayUsername' | 'phoneNumber' | 'phoneNumberVerified' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'session'; update: { createdAt?: number; expiresAt?: number; ipAddress?: null | string; token?: string; updatedAt?: number; userAgent?: null | string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'expiresAt' | 'token' | 'createdAt' | 'updatedAt' | 'ipAddress' | 'userAgent' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'account'; update: { accessToken?: null | string; accessTokenExpiresAt?: null | number; accountId?: string; createdAt?: number; idToken?: null | string; password?: null | string; providerId?: string; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scope?: null | string; updatedAt?: number; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accountId' | 'providerId' | 'userId' | 'accessToken' | 'refreshToken' | 'idToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'scope' | 'password' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'verification'; update: { createdAt?: number; expiresAt?: number; identifier?: string; updatedAt?: number; value?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'identifier' | 'value' | 'expiresAt' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'twoFactor'; update: { backupCodes?: string; secret?: string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'secret' | 'backupCodes' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'passkey'; update: { aaguid?: null | string; backedUp?: boolean; counter?: number; createdAt?: null | number; credentialID?: string; deviceType?: string; name?: null | string; publicKey?: string; transports?: null | string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'publicKey' | 'userId' | 'credentialID' | 'counter' | 'deviceType' | 'backedUp' | 'transports' | 'createdAt' | 'aaguid' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthApplication'; update: { clientId?: null | string; clientSecret?: null | string; createdAt?: null | number; disabled?: null | boolean; icon?: null | string; metadata?: null | string; name?: null | string; redirectURLs?: null | string; type?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'icon' | 'metadata' | 'clientId' | 'clientSecret' | 'redirectURLs' | 'type' | 'disabled' | 'userId' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthAccessToken'; update: { accessToken?: null | string; accessTokenExpiresAt?: null | number; clientId?: null | string; createdAt?: null | number; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accessToken' | 'refreshToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthConsent'; update: { clientId?: null | string; consentGiven?: null | boolean; createdAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | 'consentGiven' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'jwks'; update: { createdAt?: number; privateKey?: string; publicKey?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'publicKey' | 'privateKey' | 'createdAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'rateLimit'; update: { count?: null | number; key?: null | string; lastRequest?: null | number; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'ratelimit'; update: { count?: number; key?: string; lastRequest?: number }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }; onUpdateHandle?: string; paginationOpts: { cursor: string | null; endCursor?: string | null; id?: number; maximumBytesRead?: number; maximumRowsRead?: number; numItems: number; }; }, any >; updateOne: FunctionReference< 'mutation', 'internal', { input: | { model: 'user'; update: { createdAt?: number; displayUsername?: null | string; email?: string; emailVerified?: boolean; image?: null | string; isAnonymous?: null | boolean; name?: string; phoneNumber?: null | string; phoneNumberVerified?: null | boolean; twoFactorEnabled?: null | boolean; updatedAt?: number; userId?: null | string; username?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'email' | 'emailVerified' | 'image' | 'createdAt' | 'updatedAt' | 'twoFactorEnabled' | 'isAnonymous' | 'username' | 'displayUsername' | 'phoneNumber' | 'phoneNumberVerified' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'session'; update: { createdAt?: number; expiresAt?: number; ipAddress?: null | string; token?: string; updatedAt?: number; userAgent?: null | string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'expiresAt' | 'token' | 'createdAt' | 'updatedAt' | 'ipAddress' | 'userAgent' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'account'; update: { accessToken?: null | string; accessTokenExpiresAt?: null | number; accountId?: string; createdAt?: number; idToken?: null | string; password?: null | string; providerId?: string; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scope?: null | string; updatedAt?: number; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accountId' | 'providerId' | 'userId' | 'accessToken' | 'refreshToken' | 'idToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'scope' | 'password' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'verification'; update: { createdAt?: number; expiresAt?: number; identifier?: string; updatedAt?: number; value?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'identifier' | 'value' | 'expiresAt' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'twoFactor'; update: { backupCodes?: string; secret?: string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'secret' | 'backupCodes' | 'userId' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'passkey'; update: { aaguid?: null | string; backedUp?: boolean; counter?: number; createdAt?: null | number; credentialID?: string; deviceType?: string; name?: null | string; publicKey?: string; transports?: null | string; userId?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'publicKey' | 'userId' | 'credentialID' | 'counter' | 'deviceType' | 'backedUp' | 'transports' | 'createdAt' | 'aaguid' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthApplication'; update: { clientId?: null | string; clientSecret?: null | string; createdAt?: null | number; disabled?: null | boolean; icon?: null | string; metadata?: null | string; name?: null | string; redirectURLs?: null | string; type?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'name' | 'icon' | 'metadata' | 'clientId' | 'clientSecret' | 'redirectURLs' | 'type' | 'disabled' | 'userId' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthAccessToken'; update: { accessToken?: null | string; accessTokenExpiresAt?: null | number; clientId?: null | string; createdAt?: null | number; refreshToken?: null | string; refreshTokenExpiresAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'accessToken' | 'refreshToken' | 'accessTokenExpiresAt' | 'refreshTokenExpiresAt' | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'oauthConsent'; update: { clientId?: null | string; consentGiven?: null | boolean; createdAt?: null | number; scopes?: null | string; updatedAt?: null | number; userId?: null | string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: | 'clientId' | 'userId' | 'scopes' | 'createdAt' | 'updatedAt' | 'consentGiven' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'jwks'; update: { createdAt?: number; privateKey?: string; publicKey?: string; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'publicKey' | 'privateKey' | 'createdAt' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'rateLimit'; update: { count?: null | number; key?: null | string; lastRequest?: null | number; }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; } | { model: 'ratelimit'; update: { count?: number; key?: string; lastRequest?: number }; where?: Array<{ connector?: 'AND' | 'OR'; field: 'key' | 'count' | 'lastRequest' | '_id'; operator?: | 'lt' | 'lte' | 'gt' | 'gte' | 'eq' | 'in' | 'not_in' | 'ne' | 'contains' | 'starts_with' | 'ends_with'; value: string | number | boolean | Array | Array | null; }>; }; onUpdateHandle?: string; }, any >; }; adapterTest: { count: FunctionReference<'query', 'internal', any, any>; create: FunctionReference<'mutation', 'internal', any, any>; delete: FunctionReference<'mutation', 'internal', any, any>; deleteMany: FunctionReference<'mutation', 'internal', any, any>; findMany: FunctionReference<'query', 'internal', any, any>; findOne: FunctionReference<'query', 'internal', any, any>; update: FunctionReference<'mutation', 'internal', any, any>; updateMany: FunctionReference<'mutation', 'internal', any, any>; }; }; rateLimiter: { lib: { checkRateLimit: FunctionReference< 'query', 'internal', { config: | { capacity?: number; kind: 'token bucket'; maxReserved?: number; period: number; rate: number; shards?: number; start?: null; } | { capacity?: number; kind: 'fixed window'; maxReserved?: number; period: number; rate: number; shards?: number; start?: number; }; count?: number; key?: string; name: string; reserve?: boolean; throws?: boolean; }, { ok: true; retryAfter?: number } | { ok: false; retryAfter: number } >; clearAll: FunctionReference<'mutation', 'internal', { before?: number }, null>; getServerTime: FunctionReference<'mutation', 'internal', {}, number>; getValue: FunctionReference< 'query', 'internal', { config: | { capacity?: number; kind: 'token bucket'; maxReserved?: number; period: number; rate: number; shards?: number; start?: null; } | { capacity?: number; kind: 'fixed window'; maxReserved?: number; period: number; rate: number; shards?: number; start?: number; }; key?: string; name: string; sampleShards?: number; }, { config: | { capacity?: number; kind: 'token bucket'; maxReserved?: number; period: number; rate: number; shards?: number; start?: null; } | { capacity?: number; kind: 'fixed window'; maxReserved?: number; period: number; rate: number; shards?: number; start?: number; }; shard: number; ts: number; value: number; } >; rateLimit: FunctionReference< 'mutation', 'internal', { config: | { capacity?: number; kind: 'token bucket'; maxReserved?: number; period: number; rate: number; shards?: number; start?: null; } | { capacity?: number; kind: 'fixed window'; maxReserved?: number; period: number; rate: number; shards?: number; start?: number; }; count?: number; key?: string; name: string; reserve?: boolean; throws?: boolean; }, { ok: true; retryAfter?: number } | { ok: false; retryAfter: number } >; resetRateLimit: FunctionReference< 'mutation', 'internal', { key?: string; name: string }, null >; }; time: { getServerTime: FunctionReference<'mutation', 'internal', {}, number>; }; }; };