omni_dev/gmail.rs
1//! Gmail API integration: typed HTTP client and OAuth2 authentication.
2//!
3//! Provides a thin `reqwest` wrapper around the Gmail v1 REST API,
4//! authenticated via OAuth2 authorization-code + PKCE (see
5//! [ADR-0063](../../docs/adrs/adr-0063.md)). Phase 1 covers the client,
6//! authentication, and the message/thread/label API façades, plus the CLI
7//! and MCP surfaces built on them. `history_api.rs` (the `historyId`
8//! watermark) and `profile_api.rs` (`users.getProfile`) back Phase 2's
9//! `gmail sync` (see [ADR-0064](../../docs/adrs/adr-0064.md)).
10//! `send_as_api.rs` (`users.settings.sendAs.list`) lets `gmail draft create
11//! --reply-all` leave the account's own addresses out of a reply, and checks
12//! a draft's `--from` against the account's send-as aliases.
13
14pub mod account;
15pub mod attachments;
16pub mod auth;
17mod chrome_profile;
18pub mod client;
19pub mod compose;
20pub mod draft_edit;
21pub mod drafts_api;
22pub mod error;
23pub mod history_api;
24pub mod import;
25pub mod labels_api;
26pub mod messages_api;
27pub mod profile_api;
28pub mod raw_message;
29pub mod render;
30pub mod send_as_api;
31pub mod threads_api;
32pub mod types;
33
34#[cfg(test)]
35pub(crate) mod test_support;