Repository navigation
SDK 0.6.0: conversations, receive email, attachments - #4
Merged
Merged
Conversation
- emails.send / sendBatch take `headers` and `attachments` (bytes or base64; the SDK base64-encodes Buffers and Uint8Arrays). - threadHeaders() builds In-Reply-To / References from a received email or an email.sent event's message_id. - emails.inbound.list / get / getAttachment read mail received at the workspace's mailboxes. - Webhook types: email.failed, email.received, and message_id on email.sent. Needs app.zalify.com#2617 (the endpoints) and reach#326 (message_id). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
zalify.conversations.create / reply / list / get / update / import and messages.list / getAttachment, zalify.inboxes.list, and the conversation.* webhook event types (app#2624, ZAL-174). Threading is done server side now, so threadHeaders() is gone before it ever shipped; headers stay for other custom headers. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Needs app#2617 and app#2624 deployed first. Merging publishes 0.6.0 to npm.
What
zalify.conversations.create,reply,list,get,updateandimport.conversations.messages.listandgetAttachment.zalify.inboxes.list.conversation.created,conversation.message.received,conversation.message.updatedandconversation.updated.Re:and the thread headers are filled in server side.emails.inbound.list,getandgetAttachment, plus theemail.receivedandemail.failedwebhook types.email.sentnow carriesmessage_id.attachments(Buffer/Uint8Array or base64, up to 10 files, 10 MB together) andheadersfor other custom headers.threadHeaders(), which was in the first version of this PR. The conversations API replaces it, and it was never published.conversation_exists,inbox_not_found,inbox_cannot_send,channel_unavailable,not_foundandemail_api_not_enabled.Tests
pnpm typecheckandpnpm buildpass, andpnpm testpasses 31 tests (including the newtest/conversations.test.ts).🤖 Generated with Claude Code