147 lines
3.7 KiB
TypeScript
147 lines
3.7 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated `api` utility.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type * as auth from "../auth.js";
|
|
import type * as categories from "../categories.js";
|
|
import type * as channelKeys from "../channelKeys.js";
|
|
import type * as channels from "../channels.js";
|
|
import type * as dms from "../dms.js";
|
|
import type * as files from "../files.js";
|
|
import type * as gifs from "../gifs.js";
|
|
import type * as invites from "../invites.js";
|
|
import type * as members from "../members.js";
|
|
import type * as messages from "../messages.js";
|
|
import type * as presence from "../presence.js";
|
|
import type * as reactions from "../reactions.js";
|
|
import type * as readState from "../readState.js";
|
|
import type * as roles from "../roles.js";
|
|
import type * as storageUrl from "../storageUrl.js";
|
|
import type * as typing from "../typing.js";
|
|
import type * as voice from "../voice.js";
|
|
import type * as voiceState from "../voiceState.js";
|
|
|
|
import type {
|
|
ApiFromModules,
|
|
FilterApi,
|
|
FunctionReference,
|
|
} from "convex/server";
|
|
|
|
declare const fullApi: ApiFromModules<{
|
|
auth: typeof auth;
|
|
categories: typeof categories;
|
|
channelKeys: typeof channelKeys;
|
|
channels: typeof channels;
|
|
dms: typeof dms;
|
|
files: typeof files;
|
|
gifs: typeof gifs;
|
|
invites: typeof invites;
|
|
members: typeof members;
|
|
messages: typeof messages;
|
|
presence: typeof presence;
|
|
reactions: typeof reactions;
|
|
readState: typeof readState;
|
|
roles: typeof roles;
|
|
storageUrl: typeof storageUrl;
|
|
typing: typeof typing;
|
|
voice: typeof voice;
|
|
voiceState: typeof voiceState;
|
|
}>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's public API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = api.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const api: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "public">
|
|
>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's internal API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = internal.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const internal: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "internal">
|
|
>;
|
|
|
|
export declare const components: {
|
|
presence: {
|
|
public: {
|
|
disconnect: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{ sessionToken: string },
|
|
null
|
|
>;
|
|
heartbeat: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{
|
|
interval?: number;
|
|
roomId: string;
|
|
sessionId: string;
|
|
userId: string;
|
|
},
|
|
{ roomToken: string; sessionToken: string }
|
|
>;
|
|
list: FunctionReference<
|
|
"query",
|
|
"internal",
|
|
{ limit?: number; roomToken: string },
|
|
Array<{
|
|
data?: any;
|
|
lastDisconnected: number;
|
|
online: boolean;
|
|
userId: string;
|
|
}>
|
|
>;
|
|
listRoom: FunctionReference<
|
|
"query",
|
|
"internal",
|
|
{ limit?: number; onlineOnly?: boolean; roomId: string },
|
|
Array<{ lastDisconnected: number; online: boolean; userId: string }>
|
|
>;
|
|
listUser: FunctionReference<
|
|
"query",
|
|
"internal",
|
|
{ limit?: number; onlineOnly?: boolean; userId: string },
|
|
Array<{ lastDisconnected: number; online: boolean; roomId: string }>
|
|
>;
|
|
removeRoom: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{ roomId: string },
|
|
null
|
|
>;
|
|
removeRoomUser: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{ roomId: string; userId: string },
|
|
null
|
|
>;
|
|
updateRoomUser: FunctionReference<
|
|
"mutation",
|
|
"internal",
|
|
{ data?: any; roomId: string; userId: string },
|
|
null
|
|
>;
|
|
};
|
|
};
|
|
};
|