Back to Changelog

SDK v0.3.0: Invitations Resource & Draft Fixes

sdkbreaking

Breaking Changes

drafts.create() Signature Change

  • Before: drafts.create({ inbox_id, subject, ... })
  • After: drafts.create(inboxId, { subject, ... })
  • The inbox_id moves from request body to first positional parameter, matching the messages.send() pattern.

members.invite() removed in favor of invitations.create()

  • Before: organizations.members.invite({ email, role })
  • After: organizations.invitations.create({ email, role })
  • Full invitations resource now available: create(), list(), revoke(id)

New Features

Invitations Resource

Both TypeScript and Python SDKs now expose a full invitations resource:

  • organizations.invitations.create() -- Send invitation
  • organizations.invitations.list() -- List pending invitations
  • organizations.invitations.revoke(id) -- Revoke invitation

Bulk Message Events

Bulk message operations now emit per-message events:

  • message.deleted -- Emitted for each deleted message
  • message.updated -- Emitted for mark_read, mark_unread, add_label, remove_label, archive