Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
pub mod attachment;
pub mod calendar_invitation;
pub mod contact;
pub mod draft;
pub mod draft_attachment_manifest;
pub mod email_filter;
pub mod error;
pub mod label;
pub mod link;
pub mod mail_projection;
pub mod mailbox_action;
pub mod mailbox_operation;
pub mod message;
pub mod parsed_message;
pub mod preview;
pub mod sender_policy;
pub mod thread;
#[cfg(test)]
mod tests;
pub use attachment::{
Attachment, AttachmentDraft, AttachmentForwarded, MAX_DRAFT_ATTACHMENTS_BYTES,
MessageAttachment, SourcedAttachment,
};
pub use contact::{Contact, ContactInfo, RecipientType};
pub use draft::{
CreateDraftInput, CreatedDraft, DeletedUserDraft, DraftDeletion, MessageTimestamps,
ParsedAddresses, ResolvedDraftInput, SavedUserDraft, SettledDraftIds, SimpleMessageInfo,
UpsertedContacts, UpsertedRecipient,
};
pub use email_filter::{EmailFilter, UpsertEmailFilterInput};
pub use error::EmailErr;
pub use label::{
Label, LabelListVisibility, LabelType, LinkLabel, MAX_BULK_ARCHIVE_THREADS, MessageLabel,
MessageListVisibility, SetThreadsArchivedResult, StagedLabelChange, UpdateThreadLabelsResult,
};
pub use link::{
EmailBackfillStatus, EmailInboxDetails, EmailSyncStatus, Link, ResolvedSendingInbox,
SendingInboxRequest, UserEmailLink, UserEmailLinkSettings, UserProvider,
};
pub use mail_projection::{
EmailDraftAggregate, EmailDraftEntry, EmailPreview, EmailThreadDraftState,
EmailThreadMailCacheFacts, EmailThreadMailPreviews, EmailThreadMailProjection,
};
pub use message::{Message, MessageRow, ScheduledSend, ScheduledSendStatus, SimpleMessage};
pub use parsed_message::{ParsedLabel, ParsedMessage, ParsedThread};
pub use preview::{
EmailThreadPreview, EnrichedEmailThreadPreview, GetEmailsRequest, PreviewCursorQuery,
PreviewView, PreviewViewStandardLabel,
};
pub use sender_policy::SenderPolicy;
pub use thread::{EmailThreadMetadata, Thread, ThreadRow};