onResendEmailEvent is the broad Resend trigger for send, delivery, engagement,
failure, suppression, scheduling, and inbound events. Use a specific helper when
the automation only handles one category.
automations/watch-all-resend-events.automation.ts
account: string | IntegrationAccountReference<"resend">
defaults to the project binding and cannot be a signal.
Returns { createdAt: string; data: Record<string, JsonValue>; type }, where
type is email.sent, email.delivered, email.bounced, email.failed,
email.opened, email.clicked, email.complained, email.received,
email.delivery_delayed, email.scheduled, or email.suppressed. createdAt
is the normalized ISO timestamp. data remains provider-native so fields such
as email_id, recipients, links, and failure details depend on the event type.