Skip to content

feat(automations): add topicId to send_email steps - #1192

Merged
felipefreitag merged 3 commits into
canaryfrom
feat/automation-send-email-topic-id
Nov 9, 2026
Merged

felipefreitag merged 3 commits into
canaryfrom
feat/automation-send-email-topic-id

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Automation send_email steps can now carry a topic through the Node SDK. Before, the SDK left the topic out of every request. An update that sent steps through the SDK removed the topic from each send_email step in the live automation, with no error. The CLI and both MCP servers send steps through the SDK, so they need this release to keep topics.


Summary by cubic

Fixes the Node SDK dropping topicId from send_email steps in automations, which silently removed topics from live automations when steps were updated through the SDK. The CLI and both MCP servers depend on this release to keep topics intact.

  • Refactored step config serialization to map fields through typed key maps, so a config field without a map entry now fails the build instead of being silently dropped.

Written for commit e5785e1. Summary will update on new commits.

View guided diff

The API accepts topic_id on send_email step configs. The SDK dropped it,
so automations.create and automations.update removed the topic from
every send_email step.
@felipefreitag
felipefreitag requested a review from a team as a code owner November 9, 2026 19:38
@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1192

commit: e5785e1

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds an optional topicId to send_email automation steps and maps it to API topic_id, fixing the SDK silently dropping topics when steps are sent through it. The change is focused, additive, and covered by tests.

View guided diff | Re-trigger cubic

Each step type now renames its fields through a map typed as
Record<keyof Config, string>. A new config field without a map entry,
or a map entry that is not a config field, fails the build. Before, a
new field compiled and the serializer dropped it, which is how
topic_id was lost.

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds optional topicId to send_email automation steps, serializes it as topic_id, and refactors step config mapping to typed key maps so dropped fields fail the build. The fix is focused, additive, and covered by unit tests.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants