Skip to content

Align SDK with SendDock v0.8.2 newsletters - #2

Merged
JuansesDev merged 1 commit into
mainfrom
feat/sync-v0.8.2
Sep 2, 2026
Merged

Align SDK with SendDock v0.8.2 newsletters#2
JuansesDev merged 1 commit into
mainfrom
feat/sync-v0.8.2

Conversation

@JuansesDev

Copy link
Copy Markdown
Contributor

Align SDK with SendDock v0.8.2

Added

  • BroadcastRequest.newsletter_id — target a newsletter (mutually exclusive with segment_id). Recipients of a newsletter broadcast get a per-newsletter unsubscribe link; the rest of the list and their project status are untouched.
  • WebhookEventType now includes subscriber.newsletter_unsubscribed (new event emitted by SendDock v0.8.2).

Changed

  • BroadcastResponse aligned with the actual server response: { sent, broadcast_id? } (it previously listed failed/suppressed, which the /broadcast endpoint omits). Use broadcast_id to poll GET /broadcasts for the final tallies.
  • Version bump to 0.2.0.

Validation

  • npm run typecheck ✓ · npm test (35 tests, incl. type-level) ✓ · npm run build ✓ (dist regenerated).

- BroadcastRequest gains a newsletter_id targeting option (mutually
  exclusive with segment_id); recipients of a newsletter broadcast get a
  per-newsletter unsubscribe link.
- WebhookEventType adds the new 'subscriber.newsletter_unsubscribed' event.
- BroadcastResponse now matches the server ({sent, broadcast_id}).
- README: newsletter targeting example.
- Tests: newsletter broadcast body passthrough + type-level acceptance.

Bump to v0.2.0.
@JuansesDev
JuansesDev merged commit 8f51296 into main Sep 2, 2026
1 check passed
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.

1 participant