feat(automations): add topic_id to send_email steps

Closed
IS
20h ago
+33-0

Adds topicId(String) to SendEmailStepBuilder, sending topic_id in the step config. When set, contacts opted out of that topic are skipped.

Mirrors resend/resend-node#1192.

Tests: new testCreateAutomation_WithTopicId_SendsTopicId asserts the request body includes topic_id.


Summary by cubic

Adds topicId(String) to SendEmailStepBuilder so send-email automation steps can pass a topic_id. When set, contacts who opted out of that topic are skipped.

  • Sends topic_id in the step config; behavior is unchanged when no topic ID is provided.
  • Adds a test asserting topic_id is included in the request body.