Skip to content

feat(inboxes): type the inbox agent tone as a preset key or custom text - #1153

Closed
LauraBeatris wants to merge 1 commit into
canaryfrom
feature/mes-2292-inbox-agent-tone-union
Closed

LauraBeatris wants to merge 1 commit into
canaryfrom
feature/mes-2292-inbox-agent-tone-union

Conversation

@LauraBeatris

@LauraBeatris LauraBeatris commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Follow up to the MES-2292 stack in the monorepo (resend/resend-monorepo#12635 is the public API part). The API now takes tone as one of four preset keys or custom text, and this types the same union in the SDK.

Summary

tone on the agent settings and on the update options is now InboxAgentTone | null instead of string | null. InboxAgentTone is one of the four preset keys or any other string, so the presets autocomplete and custom text written by the inbox owner still type checks. INBOX_AGENT_TONE_PRESETS and InboxAgentTonePreset are exported next to the existing action list.

Nothing changes on the wire. The SDK keeps sending the string as it is, so this is not a breaking change and existing callers compile unchanged.

Testing

The agent spec has a new case that sends a preset through update and checks the body carries it unchanged. The existing get case keeps custom text in the response fixture, which covers the free text side of the union. Lint, typecheck and the agent spec pass.

Part of MES-2292.


Summary by cubic

Types the inbox agent tone as a preset key or custom text instead of a free-form string, aligning the SDK with the updated API.

  • tone on agent settings and update options is now InboxAgentTone | null; the four preset keys autocomplete while custom text still type checks.
  • Exports INBOX_AGENT_TONE_PRESETS and InboxAgentTonePreset alongside the existing action list.
  • No wire change; the SDK sends the string as before, so existing callers compile unchanged.

Written for commit 5afcf91. Summary will update on new commits.

View guided diff

@pkg-pr-new

pkg-pr-new Bot commented Oct 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1153

commit: 5afcf91

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Types the inbox agent tone as a preset key or custom text while keeping it assignable from any string, so the change is non-breaking and affects types only. A spec test confirms the preset is sent unchanged on update.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants