Files
drive/packages/convex/_generated/api.d.ts

3332 lines
100 KiB
TypeScript
Raw Normal View History

2025-09-13 22:02:27 +01:00
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/
import type * as auth from "../auth.js";
2025-09-13 22:02:27 +01:00
import type * as files from "../files.js";
import type * as filesystem from "../filesystem.js";
2025-09-15 21:44:41 +00:00
import type * as functions from "../functions.js";
import type * as http from "../http.js";
2025-09-13 22:02:27 +01:00
import type * as model_directories from "../model/directories.js";
import type * as model_error from "../model/error.js";
2025-09-18 00:14:16 +00:00
import type * as model_files from "../model/files.js";
import type * as model_filesystem from "../model/filesystem.js";
2025-09-15 21:44:41 +00:00
import type * as model_user from "../model/user.js";
import type * as user from "../user.js";
2025-09-13 22:02:27 +01:00
import type {
ApiFromModules,
FilterApi,
FunctionReference,
} from "convex/server";
2025-09-13 22:02:27 +01:00
/**
* A utility for referencing Convex functions in your app's API.
*
* Usage:
* ```js
* const myFunctionReference = api.myModule.myFunction;
* ```
*/
declare const fullApi: ApiFromModules<{
auth: typeof auth;
2025-09-13 22:02:27 +01:00
files: typeof files;
filesystem: typeof filesystem;
2025-09-15 21:44:41 +00:00
functions: typeof functions;
http: typeof http;
2025-09-13 22:02:27 +01:00
"model/directories": typeof model_directories;
"model/error": typeof model_error;
2025-09-18 00:14:16 +00:00
"model/files": typeof model_files;
"model/filesystem": typeof model_filesystem;
2025-09-15 21:44:41 +00:00
"model/user": typeof model_user;
user: typeof user;
2025-09-13 22:02:27 +01:00
}>;
declare const fullApiWithMounts: typeof fullApi;
2025-09-13 22:02:27 +01:00
export declare const api: FilterApi<
typeof fullApiWithMounts,
2025-09-13 22:02:27 +01:00
FunctionReference<any, "public">
>;
export declare const internal: FilterApi<
typeof fullApiWithMounts,
2025-09-13 22:02:27 +01:00
FunctionReference<any, "internal">
>;
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;
name: string;
organizationId: string;
updatedAt?: null | number;
};
model: "team";
}
| {
data: {
createdAt?: null | number;
teamId: string;
userId: string;
};
model: "teamMember";
}
| {
data: {
createdAt: number;
logo?: null | string;
metadata?: null | string;
name: string;
slug?: null | string;
};
model: "organization";
}
| {
data: {
createdAt: number;
organizationId: string;
role: string;
userId: string;
};
model: "member";
}
| {
data: {
email: string;
expiresAt: number;
inviterId: string;
organizationId: string;
role?: null | string;
status: string;
teamId?: null | string;
};
model: "invitation";
}
| {
data: {
domain: string;
issuer: string;
oidcConfig?: null | string;
organizationId?: null | string;
providerId: string;
samlConfig?: null | string;
userId?: null | string;
};
model: "ssoProvider";
}
| {
data: {
createdAt: number;
privateKey: string;
publicKey: string;
};
model: "jwks";
}
| {
data: {
cancelAtPeriodEnd?: null | boolean;
periodEnd?: null | number;
periodStart?: null | number;
plan: string;
referenceId: string;
seats?: null | number;
status?: null | string;
stripeCustomerId?: null | string;
stripeSubscriptionId?: null | string;
trialEnd?: null | number;
trialStart?: null | number;
};
model: "subscription";
}
| {
data: {
address: string;
chainId: number;
createdAt: number;
isPrimary?: null | boolean;
userId: string;
};
model: "walletAddress";
}
| {
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<string>;
},
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"
| "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"
| "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"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "twoFactor";
where?: Array<{
connector?: "AND" | "OR";
field: "secret" | "backupCodes" | "userId" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "oauthConsent";
where?: Array<{
connector?: "AND" | "OR";
field:
| "clientId"
| "userId"
| "scopes"
| "createdAt"
| "updatedAt"
| "consentGiven"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "team";
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "organizationId"
| "createdAt"
| "updatedAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "teamMember";
where?: Array<{
connector?: "AND" | "OR";
field: "teamId" | "userId" | "createdAt" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "organization";
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "slug"
| "logo"
| "createdAt"
| "metadata"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "member";
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "userId"
| "role"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "invitation";
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "email"
| "role"
| "teamId"
| "status"
| "expiresAt"
| "inviterId"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ssoProvider";
where?: Array<{
connector?: "AND" | "OR";
field:
| "issuer"
| "oidcConfig"
| "samlConfig"
| "userId"
| "providerId"
| "organizationId"
| "domain"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "subscription";
where?: Array<{
connector?: "AND" | "OR";
field:
| "plan"
| "referenceId"
| "stripeCustomerId"
| "stripeSubscriptionId"
| "status"
| "periodStart"
| "periodEnd"
| "trialStart"
| "trialEnd"
| "cancelAtPeriodEnd"
| "seats"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "walletAddress";
where?: Array<{
connector?: "AND" | "OR";
field:
| "userId"
| "address"
| "chainId"
| "isPrimary"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "rateLimit";
where?: Array<{
connector?: "AND" | "OR";
field: "key" | "count" | "lastRequest" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ratelimit";
where?: Array<{
connector?: "AND" | "OR";
field: "key" | "count" | "lastRequest" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "twoFactorEnabled"
| "isAnonymous"
| "username"
| "displayUsername"
| "phoneNumber"
| "phoneNumberVerified"
| "userId"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "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"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "twoFactor";
where?: Array<{
connector?: "AND" | "OR";
field: "secret" | "backupCodes" | "userId" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "oauthConsent";
where?: Array<{
connector?: "AND" | "OR";
field:
| "clientId"
| "userId"
| "scopes"
| "createdAt"
| "updatedAt"
| "consentGiven"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "team";
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "organizationId"
| "createdAt"
| "updatedAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "teamMember";
where?: Array<{
connector?: "AND" | "OR";
field: "teamId" | "userId" | "createdAt" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "organization";
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "slug"
| "logo"
| "createdAt"
| "metadata"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "member";
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "userId"
| "role"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "invitation";
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "email"
| "role"
| "teamId"
| "status"
| "expiresAt"
| "inviterId"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ssoProvider";
where?: Array<{
connector?: "AND" | "OR";
field:
| "issuer"
| "oidcConfig"
| "samlConfig"
| "userId"
| "providerId"
| "organizationId"
| "domain"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "subscription";
where?: Array<{
connector?: "AND" | "OR";
field:
| "plan"
| "referenceId"
| "stripeCustomerId"
| "stripeSubscriptionId"
| "status"
| "periodStart"
| "periodEnd"
| "trialStart"
| "trialEnd"
| "cancelAtPeriodEnd"
| "seats"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "walletAddress";
where?: Array<{
connector?: "AND" | "OR";
field:
| "userId"
| "address"
| "chainId"
| "isPrimary"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "rateLimit";
where?: Array<{
connector?: "AND" | "OR";
field: "key" | "count" | "lastRequest" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ratelimit";
where?: Array<{
connector?: "AND" | "OR";
field: "key" | "count" | "lastRequest" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "twoFactor"
| "passkey"
| "oauthApplication"
| "oauthAccessToken"
| "oauthConsent"
| "team"
| "teamMember"
| "organization"
| "member"
| "invitation"
| "ssoProvider"
| "jwks"
| "subscription"
| "walletAddress"
| "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"
| "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"
| "twoFactor"
| "passkey"
| "oauthApplication"
| "oauthAccessToken"
| "oauthConsent"
| "team"
| "teamMember"
| "organization"
| "member"
| "invitation"
| "ssoProvider"
| "jwks"
| "subscription"
| "walletAddress"
| "rateLimit"
| "ratelimit";
select?: Array<string>;
where?: Array<{
connector?: "AND" | "OR";
field: string;
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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;
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"
| "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"
| "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"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "team";
update: {
createdAt?: number;
name?: string;
organizationId?: string;
updatedAt?: null | number;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "organizationId"
| "createdAt"
| "updatedAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "teamMember";
update: {
createdAt?: null | number;
teamId?: string;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field: "teamId" | "userId" | "createdAt" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "organization";
update: {
createdAt?: number;
logo?: null | string;
metadata?: null | string;
name?: string;
slug?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "slug"
| "logo"
| "createdAt"
| "metadata"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "member";
update: {
createdAt?: number;
organizationId?: string;
role?: string;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "userId"
| "role"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "invitation";
update: {
email?: string;
expiresAt?: number;
inviterId?: string;
organizationId?: string;
role?: null | string;
status?: string;
teamId?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "email"
| "role"
| "teamId"
| "status"
| "expiresAt"
| "inviterId"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ssoProvider";
update: {
domain?: string;
issuer?: string;
oidcConfig?: null | string;
organizationId?: null | string;
providerId?: string;
samlConfig?: null | string;
userId?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "issuer"
| "oidcConfig"
| "samlConfig"
| "userId"
| "providerId"
| "organizationId"
| "domain"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "subscription";
update: {
cancelAtPeriodEnd?: null | boolean;
periodEnd?: null | number;
periodStart?: null | number;
plan?: string;
referenceId?: string;
seats?: null | number;
status?: null | string;
stripeCustomerId?: null | string;
stripeSubscriptionId?: null | string;
trialEnd?: null | number;
trialStart?: null | number;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "plan"
| "referenceId"
| "stripeCustomerId"
| "stripeSubscriptionId"
| "status"
| "periodStart"
| "periodEnd"
| "trialStart"
| "trialEnd"
| "cancelAtPeriodEnd"
| "seats"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "walletAddress";
update: {
address?: string;
chainId?: number;
createdAt?: number;
isPrimary?: null | boolean;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "userId"
| "address"
| "chainId"
| "isPrimary"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "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;
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"
| "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"
| "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"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "team";
update: {
createdAt?: number;
name?: string;
organizationId?: string;
updatedAt?: null | number;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "organizationId"
| "createdAt"
| "updatedAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "teamMember";
update: {
createdAt?: null | number;
teamId?: string;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field: "teamId" | "userId" | "createdAt" | "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "organization";
update: {
createdAt?: number;
logo?: null | string;
metadata?: null | string;
name?: string;
slug?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "name"
| "slug"
| "logo"
| "createdAt"
| "metadata"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "member";
update: {
createdAt?: number;
organizationId?: string;
role?: string;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "userId"
| "role"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "invitation";
update: {
email?: string;
expiresAt?: number;
inviterId?: string;
organizationId?: string;
role?: null | string;
status?: string;
teamId?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "organizationId"
| "email"
| "role"
| "teamId"
| "status"
| "expiresAt"
| "inviterId"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "ssoProvider";
update: {
domain?: string;
issuer?: string;
oidcConfig?: null | string;
organizationId?: null | string;
providerId?: string;
samlConfig?: null | string;
userId?: null | string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "issuer"
| "oidcConfig"
| "samlConfig"
| "userId"
| "providerId"
| "organizationId"
| "domain"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "subscription";
update: {
cancelAtPeriodEnd?: null | boolean;
periodEnd?: null | number;
periodStart?: null | number;
plan?: string;
referenceId?: string;
seats?: null | number;
status?: null | string;
stripeCustomerId?: null | string;
stripeSubscriptionId?: null | string;
trialEnd?: null | number;
trialStart?: null | number;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "plan"
| "referenceId"
| "stripeCustomerId"
| "stripeSubscriptionId"
| "status"
| "periodStart"
| "periodEnd"
| "trialStart"
| "trialEnd"
| "cancelAtPeriodEnd"
| "seats"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| null;
}>;
}
| {
model: "walletAddress";
update: {
address?: string;
chainId?: number;
createdAt?: number;
isPrimary?: null | boolean;
userId?: string;
};
where?: Array<{
connector?: "AND" | "OR";
field:
| "userId"
| "address"
| "chainId"
| "isPrimary"
| "createdAt"
| "id";
operator?:
| "lt"
| "lte"
| "gt"
| "gte"
| "eq"
| "in"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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"
| "ne"
| "contains"
| "starts_with"
| "ends_with";
value:
| string
| number
| boolean
| Array<string>
| Array<number>
| 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>;
};
};
};