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
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* email_service
* OpenAPI spec version: 0.1.0
*/
import type { Attachment } from './attachment';
import type { AttachmentDraft } from './attachmentDraft';
import type { AttachmentForwarded } from './attachmentForwarded';
import type { ContactInfo } from './contactInfo';
import type { Label } from './label';
import type { MessageBodyHtmlSanitized } from './messageBodyHtmlSanitized';
import type { MessageBodyMacro } from './messageBodyMacro';
import type { MessageBodyText } from './messageBodyText';
import type { MessageFrom } from './messageFrom';
import type { MessageGlobalId } from './messageGlobalId';
import type { MessageHeadersJson } from './messageHeadersJson';
import type { MessageInternalDateTs } from './messageInternalDateTs';
import type { MessageProviderHistoryId } from './messageProviderHistoryId';
import type { MessageProviderId } from './messageProviderId';
import type { MessageProviderThreadId } from './messageProviderThreadId';
import type { MessageReplyingToId } from './messageReplyingToId';
import type { MessageScheduledSendTime } from './messageScheduledSendTime';
import type { MessageSentAt } from './messageSentAt';
import type { MessageSizeEstimate } from './messageSizeEstimate';
import type { MessageSnippet } from './messageSnippet';
import type { MessageSubject } from './messageSubject';
export interface Message {
attachments: Attachment[];
/** Uploaded file attachments for the message, if it is a draft */
attachments_draft: AttachmentDraft[];
/** Forwarded attachments from original messages, if it is a draft */
attachments_forwarded: AttachmentForwarded[];
bcc: ContactInfo[];
body_html_sanitized?: MessageBodyHtmlSanitized;
body_macro?: MessageBodyMacro;
body_text?: MessageBodyText;
cc: ContactInfo[];
created_at: string;
db_id: string;
from?: MessageFrom;
/** The globally unique Message-ID header value created by the sender to uniquely identify this email
Used for threading across all providers (In-Reply-To header, References header) */
global_id?: MessageGlobalId;
has_attachments: boolean;
headers_json?: MessageHeadersJson;
internal_date_ts?: MessageInternalDateTs;
is_draft: boolean;
is_read: boolean;
is_sent: boolean;
is_starred: boolean;
labels: Label[];
link_id: string;
provider_history_id?: MessageProviderHistoryId;
provider_id?: MessageProviderId;
provider_thread_id?: MessageProviderThreadId;
replying_to_id?: MessageReplyingToId;
scheduled_send_time?: MessageScheduledSendTime;
sent_at?: MessageSentAt;
size_estimate?: MessageSizeEstimate;
snippet?: MessageSnippet;
subject?: MessageSubject;
thread_db_id: string;
to: ContactInfo[];
updated_at: string;
}