Skip to content

feat(inboxes): align inboxes with the GA API and bump to 6.33.0 - #1145

Merged
felipefreitag merged 16 commits into
preview-inboxesfrom
feature/dev-2321-node-sdk-internal
Oct 13, 2026
Merged

felipefreitag merged 16 commits into
preview-inboxesfrom
feature/dev-2321-node-sdk-internal

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR brings the preview-inboxes branch up to the inbox API at GA and sets the version to 6.33.0.

  • Merge canary into the branch. The only conflict was the version in package.json.
  • Reply, forward and send draft return only { id }, the ID of the sent email.
  • Reply and forward accept attachments, with the same shape as resend.emails.send.
  • Thread update accepts addLabelIds and removeLabelIds. labelId is removed, because the API no longer accepts label_id.
  • Draft create and update accept attachments. Each one needs content, filename and contentType. On update, attachments replaces every attachment on the draft, and [] or null removes them all.
  • InboxDraft, draft list items and the webhook draft object return attachments.
  • Draft create accepts null for to, cc and bcc, as the spec allows.
  • Each inbox.* webhook event has its own data type, as in the spec. For example, thread_id is required on thread events, and inbox.deleted has no inbox object.
  • Draft create accepts idempotencyKey, the same request option as emails.send. Reply, forward and send draft already had it.
  • Reply, forward and send draft accept headers, the same field as emails.send. In-Reply-To, References and Reply-To are reserved, and the API returns a 422 for them. Send draft still sends no body when headers is not set.
  • The version bump to 6.33.0 is its own commit.

Label colors were already #RRGGBB strings, and INBOX_LABEL_COLORS was already removed in #1144.

When this PR merges into preview-inboxes, #1088 merges cleanly into canary and releases as 6.33.0.

Depends on

  • The spec in feat(inboxes): add the Inboxes API and webhook events to the spec resend-openapi#125.
  • resend/resend-monorepo#12396 (thread labels) and resend/resend-monorepo#12481 (draft attachments). Both are merged and live.
  • resend/resend-monorepo#11768 (Idempotency-Key on the four inbox send operations). It is merged and live.
  • resend/resend-monorepo#12509 (custom headers on reply, forward and send draft). It is merged and live.
  • Sent attachment IDs in thread emails need resend/resend-monorepo#12152. The SDK types do not change for it.

Verification

pnpm install --frozen-lockfile
pnpm lint
pnpm typecheck
pnpm test
pnpm build

All pass: 645 tests, 4 todo.

I also ran an e2e script against https://api.resend.com through dist/index.mjs, on the shared test inbox. The script cleans up after itself.

  • Inboxes: list, get by ID and by email, update and restore pass. create returns the expected 403 for the plan limit.
  • Agent: get, update and restore pass.
  • Labels: create returns { object, id }. list returns the colors in uppercase. update and remove pass.
  • Threads: list with folders, read and labels, search with query and filters, get, and remove pass. update passes for read, folder, addLabelIds and removeLabelIds. The label still exists after removeLabelIds. The same ID in both arrays returns 422.
  • Thread emails: list, get, reply and forward pass, also with a base64 text attachment. Each send returns only { id }. The attachments are on the sent emails.
  • Drafts: create with an attachment, then get and list show it. update with a new set replaces it, an update without attachments keeps it, and [] empties it. send returns { id }, and the sent email has the attachment. remove passes.
  • Result: 54 of 54 calls pass.
  • Idempotency: a second draft create with the same key returns the same ID with idempotent-replayed: true, and only one draft exists. A second send with the same key replays the same email ID. The same key with a different body returns 409 invalid_idempotent_request.
  • Headers: reply, forward and send draft with X-Ticket-Id pass. A reply with a reply-to header returns 422. Send draft without headers still passes.

Not in this PR

  • Sender authentication fields. They are not on the API main branch.
  • CHANGELOG.md, which lags releases.

@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 3874ae2

@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.

1 issue found across 15 files

Confidence score: 3/5

  • package.json publishes 6.33.0 to npm’s latest tag while addLabelIds and removeLabelIds still return 422 in production. Defer the latest release until the upstream fix ships.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="package.json">

<violation number="1" location="package.json:3">
P2: This bump publishes 6.33.0 to the npm `latest` tag while `addLabelIds`/`removeLabelIds` still return 422 in production (per the PR description, until resend/resend-monorepo#12396 ships). Consumers following the inbox GA docs will hit failed requests for documented options. Coordinate the backend deploy to land with or before the release, or gate these options until then.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread package.json
{
"name": "resend",
"version": "6.32.1-preview-inboxes.6",
"version": "6.33.0",

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.

P2: This bump publishes 6.33.0 to the npm latest tag while addLabelIds/removeLabelIds still return 422 in production (per the PR description, until resend/resend-monorepo#12396 ships). Consumers following the inbox GA docs will hit failed requests for documented options. Coordinate the backend deploy to land with or before the release, or gate these options until then.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At package.json, line 3:

<comment>This bump publishes 6.33.0 to the npm `latest` tag while `addLabelIds`/`removeLabelIds` still return 422 in production (per the PR description, until resend/resend-monorepo#12396 ships). Consumers following the inbox GA docs will hit failed requests for documented options. Coordinate the backend deploy to land with or before the release, or gate these options until then.</comment>

<file context>
@@ -1,6 +1,6 @@
 {
   "name": "resend",
-  "version": "6.32.1-preview-inboxes.6",
+  "version": "6.33.0",
   "description": "Node.js library for the Resend API",
   "main": "./dist/index.cjs",
</file context>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

12396 shipped

@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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | 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 9 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | 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 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | 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 2 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | 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 7 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | 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 6 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | Re-trigger cubic

@dielduarte dielduarte 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.

LGTM! I ran the tests localy using my own account's inbox and no bugs found

@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 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: Auto-approval blocked by 1 unresolved issue from previous reviews.

View guided diff | Re-trigger cubic

@felipefreitag
felipefreitag marked this pull request as ready for review October 13, 2026 19:45
@felipefreitag
felipefreitag requested a review from a team as a code owner October 13, 2026 19:45
@felipefreitag
felipefreitag removed the request for review from a team October 13, 2026 19:45
@felipefreitag
felipefreitag merged commit 4333fcf into preview-inboxes Oct 13, 2026
9 checks passed
@felipefreitag
felipefreitag deleted the feature/dev-2321-node-sdk-internal branch October 13, 2026 19: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.

3 participants