api.ts•1.76 kB
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/
import type { FunctionReference } from "convex/server";
import type { GenericId as Id } from "convex/values";
import { anyApi, componentsGeneric } from "convex/server";
/**
* A utility for referencing Convex functions in your app's public API.
*
* Usage:
* ```js
* const myFunctionReference = api.myModule.myFunction;
* ```
*/
export const api: {
staticFunctions: {
a: FunctionReference<
"action",
"public",
{ branded: string; id: Id<"empty"> },
string
>;
m: FunctionReference<
"mutation",
"public",
{ branded: string },
{ _creationTime: number; _id: Id<"empty"> } | null
>;
q: FunctionReference<"query", "public", { branded: string }, string>;
};
} = anyApi as any;
/**
* A utility for referencing Convex functions in your app's internal API.
*
* Usage:
* ```js
* const myFunctionReference = internal.myModule.myFunction;
* ```
*/
export const internal: {
staticFunctions: {
ia: FunctionReference<"action", "internal", {}, any>;
im: FunctionReference<"mutation", "internal", { branded: string }, null>;
iq: FunctionReference<
"query",
"internal",
{
arr: Array<number>;
bool: boolean;
data: ArrayBuffer;
id: Id<"empty">;
literal: "literal";
null: null;
num: number;
str: string;
},
| string
| "literal"
| number
| boolean
| ArrayBuffer
| Array<number>
| null
| Id<"empty">
>;
};
} = anyApi as any;
export const components = componentsGeneric() as unknown as {};