Skip to content

feat(inboxes): rename the inbox agent enabled_actions field to actions - #1158

Merged
LauraBeatris merged 1 commit into
mainfrom
feature/mes-2741-nodejs-sdk
Oct 15, 2026
Merged

LauraBeatris merged 1 commit into
mainfrom
feature/mes-2741-nodejs-sdk

Conversation

@LauraBeatris

@LauraBeatris LauraBeatris commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

The inbox agent's list of allowed actions is now called actions instead of enabled_actions. This follows the API rename in https://github.com/resend/resend-monorepo/pull/12724, where GET /inboxes/:id/agent returns actions and PATCH /inboxes/:id/agent accepts actions.

In the SDK, InboxAgentSettings.enabled_actions is now InboxAgentSettings.actions, and the enabledActions option of resend.inboxes.agent.update is now actions and is sent to the API as actions.

This is a breaking change for anyone passing enabledActions to update or reading enabled_actions from get. There is no alias for the old name.

This targets main so the rename can go out in the next latest release alongside the API change. The same commit applies cleanly on canary, which is two commits ahead of main and does not touch the agent files.

Testing

Ran pnpm typecheck, pnpm lint, the inbox agent spec, and pnpm test. All pass.

Part of MES-2741: https://linear.app/resend/issue/MES-2741/nodejs-sdk


Summary by cubic

Renames the inbox agent's allowed actions field from enabled_actions to actions in the Node.js SDK, aligning with the API rename.

  • InboxAgentSettings.enabled_actions is now InboxAgentSettings.actions, and the enabledActions update option is now actions, sent as actions to the API.
  • Breaking change: callers passing enabledActions or reading enabled_actions must switch to the new names; no alias is provided.

Written for commit b2344cf. 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@1158

commit: b2344cf

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cubic analysis

No issues found across 4 files

Confidence score: 5/5

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

Linked issue analysis

Linked issue: MES-2741: Node.js SDK

Status Acceptance criteria Notes
✅ Rename the inbox agent response field to actions InboxAgentSettings exposes actions instead of enabled_actions, and the response test expects the renamed field.
✅ Rename the update option and send actions to the API The update option is now actions, and agent.ts sends it as actions in the PATCH body.
✅ Do not retain aliases for the old names The old response field and update option are removed from their interfaces and are not mapped in the request.

Requires human review: Renames the inbox agent's public SDK field and update option from enabled_actions/enabledActions to actions to match an API rename, making this a breaking change to the SDK's public contract.

View guided diff | Re-trigger cubic

@LauraBeatris LauraBeatris self-assigned this Oct 14, 2026
@LauraBeatris LauraBeatris changed the title feat(inboxes): rename the inbox agent enabled_actions field to actions feat(inboxes): rename the inbox agent enabled_actions field to actions Oct 14, 2026
@LauraBeatris
LauraBeatris marked this pull request as ready for review October 14, 2026 23:59
@LauraBeatris
LauraBeatris requested a review from a team as a code owner October 14, 2026 23:59
@LauraBeatris
LauraBeatris requested review from mwoss and removed request for a team October 14, 2026 23:59
@LauraBeatris
LauraBeatris merged commit a1daacf into main Oct 15, 2026
10 of 11 checks passed
@LauraBeatris
LauraBeatris deleted the feature/mes-2741-nodejs-sdk branch October 15, 2026 13:47
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.

3 participants