import { defineAccount } from "../../automation/integrations" import * as actions from "./actions" import * as triggers from "./triggers" /** Declares a named Convex account binding for an automation. */ export const convexAccount = defineAccount("convex") /** Convex callables. */ export const convex = { onDocumentCreated: triggers.onConvexDocumentCreated, onDocumentDeleted: triggers.onConvexDocumentDeleted, onDocumentEvent: triggers.onConvexDocumentEvent, onDocumentUpdated: triggers.onConvexDocumentUpdated, onEvent: triggers.onConvexEvent, runAction: actions.runConvexAction, runMutation: actions.runConvexMutation, runQuery: actions.runConvexQuery, } export * from "./actions" export * from "./triggers" export type { ConvexValue } from "@automate.ax/integration-contracts/convex"