import { resendTriggerDefinitions as triggerDefinitions } from "@automate.ax/catalog/triggers/resend" import { createTrigger } from "../../../automation/create-trigger" import type { IntegrationAccountReference } from "../../../automation/integrations" /** Options for subscribing to every Resend webhook event. */ export interface OnResendEventOptions { /** Resend account binding to watch. */ account?: string | IntegrationAccountReference<"resend"> } /** * Subscribes to every supported Resend webhook event. * * @param options - Resend account selection. */ export const onResendEvent = createTrigger(triggerDefinitions.resendEvent)