feat: preview-headless-dashboard - #1043
Conversation
commit: |
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds new public API methods and types for broadcast metrics and recipients. New features expanding the SDK's contract require human review of design, typing, and behavior.
Re-trigger cubic
There was a problem hiding this comment.
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.
Requires human review: Draft PR marked 'DO NOT MERGE' for tracking preview features; adds new public API methods (broadcasts.metrics, broadcasts.recipients, usage.get) that require human review for correctness and design alignment.
Re-trigger cubic
e50c36b to
afc19ce
Compare
There was a problem hiding this comment.
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.
Requires human review: The PR is explicitly marked as a draft with "DO NOT MERGE" and introduces new public API methods (metrics, recipients, usage) as preview features, requiring human review before approval.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: PR is marked as draft and says 'DO NOT MERGE'; it adds multiple new public API endpoints (metrics, recipients, usage) that require human review for design and correctness before approval.
Re-trigger cubic
9512d00 to
dc8ff51
Compare
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
dc8ff51 to
466939d
Compare
Signed-off-by: gabriel miranda <gabriel@resend.com>
Signed-off-by: gabriel miranda <gabriel@resend.com>
There was a problem hiding this comment.
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.
Requires human review: PR is explicitly marked draft/DO NOT MERGE and adds new public API methods (metrics, usage, webhook events) plus a preview version bump. New API surface and release decisions need human sign-off.
Re-trigger cubic
DO NOT MERGE
draft PR just so we can follow the preview features being merged here and control preview bumps.
Summary by cubic
Adds account-level email, broadcast, and segment metrics, a usage endpoint, and webhook event APIs to support the headless dashboard preview. Bumps to 6.19.0-preview-headless-dashboard.4.
New Features
broadcasts.metrics(id): status/timestamps; counters and rates for delivered/opened/clicked/unsubscribed/bounced/complained/suppressed;clicked_links.broadcasts.recipients(id, { type, ... }): recipients by event (sent|delivered|opened|clicked|bounced|complained|unsubscribed|suppressed); filtersemail,bounceType(whenbounced); cursor pagination.emails.metrics(options?): metrics withmetrics,dimensions(period|domain|email),startDate/endDate,timezone,granularity(hourly|daily|weekly|monthly),filter.domainId|emailId,sortBy,sortOrder; returnstotalsand optionaldata.segments.metrics(options?): metrics withmetrics,dimensions,filter.segmentId,sortBy,sortOrder; returnstotalsand optionaldata.resend.usage.get(): returns generated time and usage for emails (daily/monthly), contacts, segments, broadcasts,ai_credits,automation_runs, domains, and rate limit.webhooks.events.list({ webhookId, limit?, after? }),webhooks.events.get({ webhookId, eventId }),webhooks.events.attempts.list({ webhookId, eventId, limit?, after? }).Bug Fixes
emails.metrics()andsegments.metrics()filter query params to top-leveldomain_id,email_id, andsegment_idin requests.Written for commit 3e683d5. Summary will update on new commits.