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 { ApiAttachmentDraft } from './apiAttachmentDraft';
import type { ApiAttachmentForwarded } from './apiAttachmentForwarded';
import type { ApiContactInfo } from './apiContactInfo';
import type { ApiMessageAttachment } from './apiMessageAttachment';
import type { ApiMessageBodyHtmlSanitized } from './apiMessageBodyHtmlSanitized';
import type { ApiMessageBodyMacro } from './apiMessageBodyMacro';
import type { ApiMessageBodyReplyless } from './apiMessageBodyReplyless';
import type { ApiMessageBodyText } from './apiMessageBodyText';
import type { ApiMessageFrom } from './apiMessageFrom';
import type { ApiMessageGlobalId } from './apiMessageGlobalId';
import type { ApiMessageInternalDateTs } from './apiMessageInternalDateTs';
import type { ApiMessageLabel } from './apiMessageLabel';
import type { ApiMessageOperationStatus } from './apiMessageOperationStatus';
import type { ApiMessageProviderHistoryId } from './apiMessageProviderHistoryId';
import type { ApiMessageProviderId } from './apiMessageProviderId';
import type { ApiMessageProviderThreadId } from './apiMessageProviderThreadId';
import type { ApiMessageReplyingToId } from './apiMessageReplyingToId';
import type { ApiMessageScheduledSendStatus } from './apiMessageScheduledSendStatus';
import type { ApiMessageScheduledSendTime } from './apiMessageScheduledSendTime';
import type { ApiMessageSentAt } from './apiMessageSentAt';
import type { ApiMessageSizeEstimate } from './apiMessageSizeEstimate';
import type { ApiMessageSnippet } from './apiMessageSnippet';
import type { ApiMessageSubject } from './apiMessageSubject';
import type { CalendarInvitation } from './calendarInvitation';
/**
* API representation of a fully assembled email message.
*/
export interface ApiMessage {
attachments: ApiMessageAttachment[];
attachments_draft: ApiAttachmentDraft[];
attachments_forwarded: ApiAttachmentForwarded[];
bcc: ApiContactInfo[];
body_html_sanitized?: ApiMessageBodyHtmlSanitized;
body_macro?: ApiMessageBodyMacro;
body_replyless?: ApiMessageBodyReplyless;
body_text?: ApiMessageBodyText;
calendar_invitations?: CalendarInvitation[];
cc: ApiContactInfo[];
created_at: string;
db_id: string;
/** Draft edit generation; changes at send and cancellation boundaries. */
draft_generation: number;
from?: ApiMessageFrom;
global_id?: ApiMessageGlobalId;
has_attachments: boolean;
headers_json?: unknown;
internal_date_ts?: ApiMessageInternalDateTs;
is_draft: boolean;
is_read: boolean;
is_sent: boolean;
is_starred: boolean;
labels: ApiMessageLabel[];
link_id: string;
operation_status?: ApiMessageOperationStatus;
provider_history_id?: ApiMessageProviderHistoryId;
provider_id?: ApiMessageProviderId;
provider_thread_id?: ApiMessageProviderThreadId;
replying_to_id?: ApiMessageReplyingToId;
scheduled_send_status?: ApiMessageScheduledSendStatus;
scheduled_send_time?: ApiMessageScheduledSendTime;
sent_at?: ApiMessageSentAt;
size_estimate?: ApiMessageSizeEstimate;
snippet?: ApiMessageSnippet;
subject?: ApiMessageSubject;
thread_db_id: string;
to: ApiContactInfo[];
updated_at: string;
}