import type { IntegrationAccountRequirement, TriggerDefinition } from "../types" const RESEND_ACCOUNT = { connectionOptions: [ { connectionMethodId: "oauth", requiredScopes: ["full_access"], }, { connectionMethodId: "api-key", requiredScopes: ["full_access"], }, ], serviceId: "resend", } as const satisfies IntegrationAccountRequirement export const resendTriggerDefinitions = { resendContactCreated: { account: RESEND_ACCOUNT, type: "resend.contact.created", }, resendContactDeleted: { account: RESEND_ACCOUNT, type: "resend.contact.deleted", }, resendContactEvent: { account: RESEND_ACCOUNT, type: "resend.contact.event", }, resendContactUpdated: { account: RESEND_ACCOUNT, type: "resend.contact.updated", }, resendDomainCreated: { account: RESEND_ACCOUNT, type: "resend.domain.created", }, resendDomainDeleted: { account: RESEND_ACCOUNT, type: "resend.domain.deleted", }, resendDomainEvent: { account: RESEND_ACCOUNT, type: "resend.domain.event", }, resendDomainUpdated: { account: RESEND_ACCOUNT, type: "resend.domain.updated", }, resendEmailBounced: { account: RESEND_ACCOUNT, type: "resend.email.bounced", }, resendEmailClicked: { account: RESEND_ACCOUNT, type: "resend.email.clicked", }, resendEmailComplained: { account: RESEND_ACCOUNT, type: "resend.email.complained", }, resendEmailDelivered: { account: RESEND_ACCOUNT, type: "resend.email.delivered", }, resendEmailDeliveryDelayed: { account: RESEND_ACCOUNT, type: "resend.email.deliveryDelayed", }, resendEmailEvent: { account: RESEND_ACCOUNT, type: "resend.email.event", }, resendEmailFailed: { account: RESEND_ACCOUNT, type: "resend.email.failed", }, resendEmailOpened: { account: RESEND_ACCOUNT, type: "resend.email.opened", }, resendEmailReceived: { account: RESEND_ACCOUNT, type: "resend.email.received", }, resendEmailScheduled: { account: RESEND_ACCOUNT, type: "resend.email.scheduled", }, resendEmailSent: { account: RESEND_ACCOUNT, type: "resend.email.sent", }, resendEmailSuppressed: { account: RESEND_ACCOUNT, type: "resend.email.suppressed", }, resendEvent: { account: RESEND_ACCOUNT, type: "resend.event", }, resendSuppressionAdded: { account: RESEND_ACCOUNT, type: "resend.suppression.added", }, resendSuppressionEvent: { account: RESEND_ACCOUNT, type: "resend.suppression.event", }, resendSuppressionRemoved: { account: RESEND_ACCOUNT, type: "resend.suppression.removed", }, } as const satisfies Record