/* eslint-disable */ /** * Generated `ComponentApi` utility. * * THIS CODE IS AUTOMATICALLY GENERATED. * * To regenerate, run `npx convex dev`. * @module */ import type { FunctionReference } from "convex/server"; /** * A utility for referencing a Convex component's exposed API. * * Useful when expecting a parameter like `components.myComponent`. * Usage: * ```ts * async function myFunction(ctx: QueryCtx, component: ComponentApi) { * return ctx.runQuery(component.someFile.someQuery, { ...args }); * } * ``` */ export type ComponentApi = { lib: { deleteMetadata: FunctionReference< "mutation", "internal", { bucket: string; key: string }, null, Name >; deleteObject: FunctionReference< "mutation", "internal", { accessKeyId: string; bucket: string; endpoint: string; key: string; secretAccessKey: string; }, null, Name >; deleteR2Object: FunctionReference< "action", "internal", { accessKeyId: string; bucket: string; endpoint: string; key: string; secretAccessKey: string; }, null, Name >; getMetadata: FunctionReference< "query", "internal", { accessKeyId: string; bucket: string; endpoint: string; key: string; secretAccessKey: string; }, { bucket: string; bucketLink: string; contentType?: string; key: string; lastModified: string; link: string; sha256?: string; size?: number; url: string; } | null, Name >; listMetadata: FunctionReference< "query", "internal", { accessKeyId: string; bucket: string; cursor?: string; endpoint: string; limit?: number; secretAccessKey: string; }, { continueCursor: string; isDone: boolean; page: Array<{ bucket: string; bucketLink: string; contentType?: string; key: string; lastModified: string; link: string; sha256?: string; size?: number; url: string; }>; pageStatus?: null | "SplitRecommended" | "SplitRequired"; splitCursor?: null | string; }, Name >; store: FunctionReference< "action", "internal", { accessKeyId: string; bucket: string; endpoint: string; secretAccessKey: string; url: string; }, any, Name >; syncMetadata: FunctionReference< "action", "internal", { accessKeyId: string; bucket: string; endpoint: string; key: string; onComplete?: string; secretAccessKey: string; }, null, Name >; upsertMetadata: FunctionReference< "mutation", "internal", { bucket: string; contentType?: string; key: string; lastModified: string; link: string; sha256?: string; size?: number; }, { isNew: boolean }, Name >; }; };