Repository navigation
feat(inboxes): align inboxes with the GA API and bump to 6.33.0 - #1145
Conversation
…TF-8 (#1117) Co-authored-by: dielduarte <[email protected]>
commit: |
There was a problem hiding this comment.
1 issue found across 15 files
Confidence score: 3/5
package.jsonpublishes 6.33.0 to npm’slatesttag whileaddLabelIdsandremoveLabelIdsstill return 422 in production. Defer thelatestrelease 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
| { | ||
| "name": "resend", | ||
| "version": "6.32.1-preview-inboxes.6", | ||
| "version": "6.33.0", |
There was a problem hiding this comment.
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>
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: Auto-approval blocked by 1 unresolved issue from previous reviews.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
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
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: Auto-approval blocked by 1 unresolved issue from previous reviews.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
LGTM! I ran the tests localy using my own account's inbox and no bugs found
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: Auto-approval blocked by 1 unresolved issue from previous reviews.
View guided diff | Re-trigger cubic
Summary
This PR brings the
preview-inboxesbranch up to the inbox API at GA and sets the version to6.33.0.canaryinto the branch. The only conflict was theversionin package.json.{ id }, the ID of the sent email.attachments, with the same shape asresend.emails.send.addLabelIdsandremoveLabelIds.labelIdis removed, because the API no longer acceptslabel_id.attachments. Each one needscontent,filenameandcontentType. On update,attachmentsreplaces every attachment on the draft, and[]ornullremoves them all.InboxDraft, draft list items and the webhook draft object returnattachments.nullforto,ccandbcc, as the spec allows.inbox.*webhook event has its owndatatype, as in the spec. For example,thread_idis required on thread events, andinbox.deletedhas noinboxobject.idempotencyKey, the same request option asemails.send. Reply, forward and send draft already had it.headers, the same field asemails.send.In-Reply-To,ReferencesandReply-Toare reserved, and the API returns a 422 for them. Send draft still sends no body whenheadersis not set.6.33.0is its own commit.Label colors were already
#RRGGBBstrings, andINBOX_LABEL_COLORSwas already removed in #1144.When this PR merges into
preview-inboxes, #1088 merges cleanly intocanaryand releases as6.33.0.Depends on
Idempotency-Keyon the four inbox send operations). It is merged and live.Verification
pnpm install --frozen-lockfile pnpm lint pnpm typecheck pnpm test pnpm buildAll pass: 645 tests, 4 todo.
I also ran an e2e script against
https://api.resend.comthroughdist/index.mjs, on the shared test inbox. The script cleans up after itself.list,getby ID and by email,updateand restore pass.createreturns the expected 403 for the plan limit.get,updateand restore pass.createreturns{ object, id }.listreturns the colors in uppercase.updateandremovepass.listwith folders, read and labels,searchwith query and filters,get, andremovepass.updatepasses forread,folder,addLabelIdsandremoveLabelIds. The label still exists afterremoveLabelIds. The same ID in both arrays returns 422.list,get,replyandforwardpass, also with a base64 text attachment. Each send returns only{ id }. The attachments are on the sent emails.createwith an attachment, thengetandlistshow it.updatewith a new set replaces it, an update withoutattachmentskeeps it, and[]empties it.sendreturns{ id }, and the sent email has the attachment.removepasses.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 409invalid_idempotent_request.X-Ticket-Idpass. A reply with areply-toheader returns 422. Send draft without headers still passes.Not in this PR
mainbranch.