api.d.ts•2.02 kB
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/
import type * as componentEntry from "../componentEntry.js";
import type * as errors from "../errors.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<{
componentEntry: typeof componentEntry;
errors: typeof errors;
}>;
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: {
errors: {
throwSystemError: {
fromAction: FunctionReference<"action", "internal", any, any>;
fromQuery: FunctionReference<"query", "internal", any, any>;
};
};
envVars: {
messages: {
envVarAction: FunctionReference<"action", "internal", any, any>;
envVarQuery: FunctionReference<"query", "internal", any, any>;
hello: FunctionReference<"action", "internal", any, any>;
systemEnvVarAction: FunctionReference<"action", "internal", any, any>;
systemEnvVarQuery: FunctionReference<"query", "internal", any, any>;
};
};
component: {
messages: {
dateNow: FunctionReference<"query", "internal", {}, any>;
hello: FunctionReference<"action", "internal", {}, any>;
insertMessage: FunctionReference<
"mutation",
"internal",
{ channel: string; text: string },
any
>;
listMessages: FunctionReference<"query", "internal", {}, any>;
mathRandom: FunctionReference<"query", "internal", {}, any>;
tryToPaginate: FunctionReference<"query", "internal", {}, any>;
};
};
};