Repository navigation
fix(inboxes): type create responses as object and id - #1143
Merged
Merged
Conversation
commit: |
Contributor
There was a problem hiding this comment.
No issues found across 7 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Narrows public SDK response types for three inbox create endpoints to object/id. A human should confirm this breaking type change and that the backend actually returns only these fields.
View guided diff | Re-trigger cubic
joaopcm
requested review from
isabellaaquino
and removed request for
cassiozen
October 9, 2026 15:09
felipefreitag
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POST /inboxes,POST /inboxes/:inbox_id/labelsandPOST /inboxes/:inbox_id/draftsnow return only the object type and the id, like every other create endpoint (resend/resend-monorepo#12282). the preview types still describe the full resource, sodata.email_address,data.colorordata.typetype-check and come backundefined.MES-2144
what changed
same for
CreateInboxLabelResponseSuccess(inbox_label) andCreateInboxDraftResponseSuccess(inbox_draft). to readreceiving_addressafter creating a forwarding inbox, callresend.inboxes.get(id).the create tests now mock the
{ object, id }response.release
this bumps to
6.32.1-preview-inboxes.5, which also ships #1142 (not published yet, npm still has.4). after merge, push thev6.32.1-preview-inboxes.5tag to publish under thepreview-inboxesdist-tag.Summary by cubic
POST /inboxes,POST /inboxes/:inbox_id/labels, andPOST /inboxes/:inbox_id/draftsnow return only the object type and id, matching the other create endpoints. The preview types still describe the full resource, sodata.email_address,data.color, anddata.typetype-check but come backundefined. To readreceiving_addressafter creating a forwarding inbox, callresend.inboxes.get(id).Release
6.32.1-preview-inboxes.5, which also includes unpublished changes; npm still has.4. After merge, push thev6.32.1-preview-inboxes.5tag to publish under thepreview-inboxesdist-tag.Written for commit ad20372. Summary will update on new commits.