import type { IntegrationAccountReference } from "../../automation/integrations.js"; import type { Signal } from "../../automation/signal-protocol.js"; import type { TriggerEvent } from "@automate.ax/integration-contracts/triggers"; export interface ConvexDocumentTriggerOptions { /** Convex project or deployment account binding. */ account?: string | IntegrationAccountReference<"convex">; /** Component path, or an empty string for the root component. */ component?: string; /** Deployment reference for project OAuth accounts. Defaults to `prod`. */ deployment?: string; /** Convex table name. */ table: string; } export interface ConvexEventTriggerOptions { /** Deployment-key account containing the shared webhook secret. */ account?: string | IntegrationAccountReference<"convex">; /** Application-defined event name accepted by this trigger. */ name: string; } export type ConvexEventTrigger = Signal> & { readonly endpoint: string; }; export declare const onConvexDocumentEvent: (options: ConvexDocumentTriggerOptions) => Signal<{ action: "created" | "deleted" | "updated"; component: string; document: { [x: string]: import("@automate.ax/integration-contracts/convex").ConvexValue | undefined; _id: string; _creationTime?: number | undefined; } | null; documentId: string; revision: bigint; table: string; }>; export declare const onConvexDocumentCreated: (options: ConvexDocumentTriggerOptions) => Signal<{ action: "created" | "deleted" | "updated"; component: string; document: { [x: string]: import("@automate.ax/integration-contracts/convex").ConvexValue | undefined; _id: string; _creationTime?: number | undefined; } | null; documentId: string; revision: bigint; table: string; }>; export declare const onConvexDocumentUpdated: (options: ConvexDocumentTriggerOptions) => Signal<{ action: "created" | "deleted" | "updated"; component: string; document: { [x: string]: import("@automate.ax/integration-contracts/convex").ConvexValue | undefined; _id: string; _creationTime?: number | undefined; } | null; documentId: string; revision: bigint; table: string; }>; export declare const onConvexDocumentDeleted: (options: ConvexDocumentTriggerOptions) => Signal<{ action: "created" | "deleted" | "updated"; component: string; document: { [x: string]: import("@automate.ax/integration-contracts/convex").ConvexValue | undefined; _id: string; _creationTime?: number | undefined; } | null; documentId: string; revision: bigint; table: string; }>; /** * Starts an automation for one explicitly emitted, signed Convex event. * * @param options - Static account binding and semantic event name. * @throws When declared outside an automation invocation. */ export declare function onConvexEvent(options: ConvexEventTriggerOptions): ConvexEventTrigger; //# sourceMappingURL=triggers.d.ts.map