gmail.onMailboxChanged is the broad Gmail history trigger. Use it when one automation must handle message additions, permanent deletions, label additions, and label removals.
Example
automations/audit-mailbox.automation.ts
Options
account is a static Google Account binding and defaults to the project binding. It can’t change at runtime.
Trigger data
Returns a discriminated union withchangeType: