Expand description
Gmail API integration: typed HTTP client and OAuth2 authentication.
Provides a thin reqwest wrapper around the Gmail v1 REST API,
authenticated via OAuth2 authorization-code + PKCE (see
ADR-0063). Phase 1 covers the client,
authentication, and the message/thread/label API façades, plus the CLI
and MCP surfaces built on them. history_api.rs (the historyId
watermark) and profile_api.rs (users.getProfile) back Phase 2’s
gmail sync (see ADR-0064).
Modules§
- account
- Named Gmail account resolution (issue #1500, ADR-0066).
- attachments
- Real MIME/multipart attachment extraction for
gmail sync --extract-attachments. - auth
- Gmail OAuth2 authentication: authorization-code + PKCE login, credential storage, and in-memory access-token refresh.
- client
- Gmail REST API client.
- error
- Error types for Gmail operations.
- history_
api - Gmail History API wrapper.
- import
- Imports a Google Cloud OAuth2 client id/secret from
client_secret.json. - labels_
api - Gmail Labels API wrapper.
- messages_
api - Gmail Messages API wrapper.
- profile_
api - Gmail Profile API wrapper.
- raw_
message - Decoding and light header extraction for
format=rawGmail messages. - render
- Renders a raw MIME message (an archived
.eml, or any RFC 5322 message) as human-readable Markdown, backinggmail renderandgmail read -o markdown(#1513). - threads_
api - Gmail Threads API wrapper.
- types
- Wire types for the Gmail v1 REST API.