Skip to content

feat(webhooks): add contact.topics.updated and topic.created/updated/deleted events - #166

Merged
joaopcm merged 2 commits into
mainfrom
feat/topic-webhook-events
Sep 29, 2026
Merged

joaopcm merged 2 commits into
mainfrom
feat/topic-webhook-events

Conversation

@joaopcm

@joaopcm joaopcm commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

the API accepts contact.topics.updated, topic.created, topic.updated and topic.deleted as webhook events, and they're live with no feature flag (the monorepo has sent them since at least 60ac6d5dbf, 2026-02-12). the trigger and the webhook actions can't select them.

this adds them to the event options in ResendTrigger.node.ts and actions/webhook/index.ts. lists only namespaced event values used /^[a-z]+\.[a-z_]+$/, which rejects the three-part contact.topics.updated, so it's now /^[a-z]+(\.[a-z_]+)+$/.

bumps to 2.9.0.

lint, lint:n8n, typecheck, test (449 passed) and build pass.

part of DEV-2236 (no sub-issue for n8n).


Summary by cubic

Adds contact.topics.updated, topic.created, topic.updated, and topic.deleted as selectable events in the Resend Trigger and Webhook node. These events were already sent by the API but couldn't be selected.

  • Relaxes the event-name validation regex to accept multi-part namespaced values like contact.topics.updated, and updates the trigger subtitle logic to derive labels from multi-part names instead of splitting on the first dot.
  • Bumps the package to 2.9.0.

Written for commit 7c5ec3d. Summary will update on new commits.

Review in cubic

@joaopcm joaopcm self-assigned this Sep 29, 2026
@joaopcm
joaopcm requested a review from dielduarte September 29, 2026 17:26
@joaopcm
joaopcm marked this pull request as ready for review September 29, 2026 17:28

@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 4 files

Auto-approved: Adds selectable options for four existing Resend webhook events in the trigger and webhook nodes, updates event-name validation and trigger subtitles to handle multipart names, and bumps the package version. Bounded additive change with tests updated.

Re-trigger cubic

@joaopcm
joaopcm merged commit dd48ba7 into main Sep 29, 2026
3 checks passed
@joaopcm
joaopcm deleted the feat/topic-webhook-events branch September 29, 2026 18:50
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.

2 participants