Repository navigation
feat(inboxes): accept path attachments on drafts - #1172
Merged
Merged
Conversation
commit: |
klotty
approved these changes
Oct 30, 2026
klotty
left a comment
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds path-attachment support to inbox draft create/update, with tests for pass-through and compile-time exclusivity. Bounded and clearly beneficial because the API feature is already live and the change is confined to SDK typing, docs, and versioning.
View guided diff | Re-trigger cubic
dielduarte
marked this pull request as ready for review
October 30, 2026 16:41
This was referenced Oct 30, 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.
resend.inboxes.drafts.create()and.update()now acceptpathattachments. The API change is live (resend/resend-monorepo#13475), and the spec is in resend/resend-openapi#141.Changes
InboxDraftAttachmentOptionsis now a union, so invalid shapes don't compile:parseAttachmentsalready mapspath, so no runtime change was needed. The create/update doc comments now describe thepathrules.The exported name is unchanged, but it's now a type alias instead of an interface. Code that does
interface X extends InboxDraftAttachmentOptionswould stop compiling. I don't expect anyone to do that with a request options type.Version: 6.35.0 → 6.36.0 (minor). The CLI and OSS MCP will pin 6.36.0.
Verification
pnpm lint,pnpm typecheck,pnpm testandpnpm buildall pass.pathwithoutcontent. A compile-time test rejects an attachment with no source, with both sources, or withcontentand nocontentType.dist:pathstoresinvoice.pdf(application/pdf, 80893 bytes)path+contentstores bothftp://path returns 422Linear: DEV-2419
Summary by cubic
resend.inboxes.drafts.create()and.update()now acceptpathattachments, so drafts can reference a URL that the API downloads and stores instead of requiring inline content. This unlocks path attachment support for the CLI and MCP.InboxDraftAttachmentOptionsis now a union, so invalid shapes fail at compile time: each attachment needs eithercontentwith acontentType, or apathURL. The exported name is unchanged, but the type is now a type alias instead of an interface, which would break code that extends it. Version bumped to 6.36.0.Written for commit 96713f7. Summary will update on new commits.