Skip to content

preview-headless-dashboard - #1043

Draft
dielduarte wants to merge 6 commits into
canaryfrom
preview-headless-dashboard
Draft

preview-headless-dashboard#1043
dielduarte wants to merge 6 commits into
canaryfrom
preview-headless-dashboard

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

DO NOT MERGE

draft PR just so we can follow the preview features being merged here and control preview bumps.


Summary by cubic

Adds email metrics, broadcast metrics/recipients, segment metrics, and a usage endpoint to support the headless dashboard preview. Bumps to 6.19.0-preview-headless-dashboard.1.

  • 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); filters email, bounceType (when bounced); cursor pagination.
    • emails.metrics(options?): account-level metrics with metrics, dimensions (period|domain|email), startDate/endDate, timezone, granularity, filter.domainId|emailId, sortBy, sortOrder; returns totals and optional breakdown in data.
    • segments.metrics(options?): account-level metrics with metrics, dimensions, filter.segmentId, sortBy, sortOrder; returns totals and optional breakdown in data.
    • resend.usage.get(): returns generated time and usage for emails (daily/monthly), contacts, segments, broadcasts, ai_credits, automation_runs, domains, and rate limit.

Written for commit 4e1ff51. Summary will update on new commits.

Review in cubic

@dielduarte dielduarte changed the title feat: broadcast metrics and recipients (#1037) preview-headless-dashboard Aug 3, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 4e1ff51

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

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

@dielduarte
dielduarte force-pushed the preview-headless-dashboard branch from 10e0dc9 to e50c36b Compare August 5, 2026 17:18
@dielduarte
dielduarte force-pushed the preview-headless-dashboard branch from e50c36b to afc19ce Compare August 5, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants