feat(automations): add topic_id to send_email steps
Merged
IS
8h ago+33+33+01234567890123456789-0-0-0123456789
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_idin the step config; behavior is unchanged when no topic ID is provided. - Adds a test asserting
topic_idis included in the request body.