feat: add received_for to inbound email and received webhook types#993
Merged
Conversation
commit: |
gabrielmfern
approved these changes
Jun 26, 2026
Contributor
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds a received_for field to TypeScript interfaces and test fixtures to match existing API responses. No logic changes, low risk.
Re-trigger cubic
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.
What
Adds the
received_forfield (from resend-monorepo #4637) to the SDK types.GetReceivingEmailResponseSuccess(src/emails/receiving/interfaces/get-receiving-email.interface.ts) — theemails.receiving.getresponse now includesreceived_for: string[].ReceivedEmailEventData(src/webhooks/interfaces/webhook-event.interface.ts) — theemail.receivedwebhook payload now includesreceived_for: string[].Why
The field is already returned by the GET
/emails/receiving/:idroute and theemail.receivedwebhook; the SDK types were missing it.Notes for reviewers
Targets
canaryso the diff is just thereceived_forchange. The earlier PR (#991) was opened againstmainand so also carried themessage_idcommits already present in canary — it's being closed in favor of this one.Summary by cubic
Adds
received_forto inbound email response andemail.receivedwebhook types. This syncs the SDK with existing API responses.GetReceivingEmailResponseSuccess(emails.receiving.get): addsreceived_for: string[].ReceivedEmailEventData(email.receivedwebhook): addsreceived_for: string[].Written for commit da86148. Summary will update on new commits.