1030 lines
30 KiB
TypeScript
1030 lines
30 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated `api` utility.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type * as autenticacao from "../autenticacao.js";
|
|
import type * as auth_utils from "../auth/utils.js";
|
|
import type * as auth from "../auth.js";
|
|
import type * as betterAuth__generated_api from "../betterAuth/_generated/api.js";
|
|
import type * as betterAuth__generated_server from "../betterAuth/_generated/server.js";
|
|
import type * as betterAuth_adapter from "../betterAuth/adapter.js";
|
|
import type * as betterAuth_auth from "../betterAuth/auth.js";
|
|
import type * as dashboard from "../dashboard.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 inicializarPermissoes from "../inicializarPermissoes.js";
|
|
import type * as logsAcesso from "../logsAcesso.js";
|
|
import type * as menuPermissoes from "../menuPermissoes.js";
|
|
import type * as monitoramento from "../monitoramento.js";
|
|
import type * as roles from "../roles.js";
|
|
import type * as seed from "../seed.js";
|
|
import type * as simbolos from "../simbolos.js";
|
|
import type * as solicitacoesAcesso from "../solicitacoesAcesso.js";
|
|
import type * as todos from "../todos.js";
|
|
import type * as usuarios from "../usuarios.js";
|
|
|
|
import type {
|
|
ApiFromModules,
|
|
FilterApi,
|
|
FunctionReference,
|
|
} from "convex/server";
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = api.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
declare const fullApi: ApiFromModules<{
|
|
autenticacao: typeof autenticacao;
|
|
"auth/utils": typeof auth_utils;
|
|
auth: typeof auth;
|
|
"betterAuth/_generated/api": typeof betterAuth__generated_api;
|
|
"betterAuth/_generated/server": typeof betterAuth__generated_server;
|
|
"betterAuth/adapter": typeof betterAuth_adapter;
|
|
"betterAuth/auth": typeof betterAuth_auth;
|
|
dashboard: typeof dashboard;
|
|
funcionarios: typeof funcionarios;
|
|
healthCheck: typeof healthCheck;
|
|
http: typeof http;
|
|
inicializarPermissoes: typeof inicializarPermissoes;
|
|
logsAcesso: typeof logsAcesso;
|
|
menuPermissoes: typeof menuPermissoes;
|
|
monitoramento: typeof monitoramento;
|
|
roles: typeof roles;
|
|
seed: typeof seed;
|
|
simbolos: typeof simbolos;
|
|
solicitacoesAcesso: typeof solicitacoesAcesso;
|
|
todos: typeof todos;
|
|
usuarios: typeof usuarios;
|
|
}>;
|
|
declare const fullApiWithMounts: typeof fullApi;
|
|
|
|
export declare const api: FilterApi<
|
|
typeof fullApiWithMounts,
|
|
FunctionReference<any, "public">
|
|
>;
|
|
export declare const internal: FilterApi<
|
|
typeof fullApiWithMounts,
|
|
FunctionReference<any, "internal">
|
|
>;
|
|
|
|
export declare const components: {
|
|
betterAuth: {
|
|
adapter: {
|
|
create: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{
|
|
input:
|
|
| {
|
|
data: {
|
|
createdAt: number;
|
|
email: string;
|
|
emailVerified: boolean;
|
|
image?: null | string;
|
|
name: string;
|
|
updatedAt: number;
|
|
userId?: 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: {
|
|
createdAt: number;
|
|
privateKey: string;
|
|
publicKey: string;
|
|
};
|
|
model: "jwks";
|
|
};
|
|
onCreateHandle?: string;
|
|
select?: Array<string>;
|
|
},
|
|
any
|
|
>;
|
|
deleteMany: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{
|
|
input:
|
|
| {
|
|
model: "user";
|
|
where?: Array<{
|
|
connector?: "AND" | "OR";
|
|
field:
|
|
| "name"
|
|
| "email"
|
|
| "emailVerified"
|
|
| "image"
|
|
| "createdAt"
|
|
| "updatedAt"
|
|
| "userId"
|
|
| "_id";
|
|
operator?:
|
|
| "lt"
|
|
| "lte"
|
|
| "gt"
|
|
| "gte"
|
|
| "eq"
|
|
| "in"
|
|
| "not_in"
|
|
| "ne"
|
|
| "contains"
|
|
| "starts_with"
|
|
| "ends_with";
|
|
value:
|
|
| string
|
|
| number
|
|
| boolean
|
|
| Array<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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"
|
|
| "userId"
|
|
| "_id";
|
|
operator?:
|
|
| "lt"
|
|
| "lte"
|
|
| "gt"
|
|
| "gte"
|
|
| "eq"
|
|
| "in"
|
|
| "not_in"
|
|
| "ne"
|
|
| "contains"
|
|
| "starts_with"
|
|
| "ends_with";
|
|
value:
|
|
| string
|
|
| number
|
|
| boolean
|
|
| Array<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| null;
|
|
}>;
|
|
};
|
|
onDeleteHandle?: string;
|
|
},
|
|
any
|
|
>;
|
|
findMany: FunctionReference<
|
|
"query",
|
|
"internal",
|
|
{
|
|
limit?: number;
|
|
model: "user" | "session" | "account" | "verification" | "jwks";
|
|
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<string>
|
|
| Array<number>
|
|
| null;
|
|
}>;
|
|
},
|
|
any
|
|
>;
|
|
findOne: FunctionReference<
|
|
"query",
|
|
"internal",
|
|
{
|
|
model: "user" | "session" | "account" | "verification" | "jwks";
|
|
select?: Array<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<string>
|
|
| Array<number>
|
|
| null;
|
|
}>;
|
|
},
|
|
any
|
|
>;
|
|
updateMany: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{
|
|
input:
|
|
| {
|
|
model: "user";
|
|
update: {
|
|
createdAt?: number;
|
|
email?: string;
|
|
emailVerified?: boolean;
|
|
image?: null | string;
|
|
name?: string;
|
|
updatedAt?: number;
|
|
userId?: null | string;
|
|
};
|
|
where?: Array<{
|
|
connector?: "AND" | "OR";
|
|
field:
|
|
| "name"
|
|
| "email"
|
|
| "emailVerified"
|
|
| "image"
|
|
| "createdAt"
|
|
| "updatedAt"
|
|
| "userId"
|
|
| "_id";
|
|
operator?:
|
|
| "lt"
|
|
| "lte"
|
|
| "gt"
|
|
| "gte"
|
|
| "eq"
|
|
| "in"
|
|
| "not_in"
|
|
| "ne"
|
|
| "contains"
|
|
| "starts_with"
|
|
| "ends_with";
|
|
value:
|
|
| string
|
|
| number
|
|
| boolean
|
|
| Array<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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;
|
|
email?: string;
|
|
emailVerified?: boolean;
|
|
image?: null | string;
|
|
name?: string;
|
|
updatedAt?: number;
|
|
userId?: null | string;
|
|
};
|
|
where?: Array<{
|
|
connector?: "AND" | "OR";
|
|
field:
|
|
| "name"
|
|
| "email"
|
|
| "emailVerified"
|
|
| "image"
|
|
| "createdAt"
|
|
| "updatedAt"
|
|
| "userId"
|
|
| "_id";
|
|
operator?:
|
|
| "lt"
|
|
| "lte"
|
|
| "gt"
|
|
| "gte"
|
|
| "eq"
|
|
| "in"
|
|
| "not_in"
|
|
| "ne"
|
|
| "contains"
|
|
| "starts_with"
|
|
| "ends_with";
|
|
value:
|
|
| string
|
|
| number
|
|
| boolean
|
|
| Array<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| 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<string>
|
|
| Array<number>
|
|
| null;
|
|
}>;
|
|
};
|
|
onUpdateHandle?: string;
|
|
},
|
|
any
|
|
>;
|
|
};
|
|
};
|
|
};
|