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 { ApiDraftInputBcc } from './apiDraftInputBcc';
import type { ApiDraftInputBodyHtml } from './apiDraftInputBodyHtml';
import type { ApiDraftInputBodyMacro } from './apiDraftInputBodyMacro';
import type { ApiDraftInputBodyText } from './apiDraftInputBodyText';
import type { ApiDraftInputCc } from './apiDraftInputCc';
import type { ApiDraftInputDbId } from './apiDraftInputDbId';
import type { ApiDraftInputHeadersJson } from './apiDraftInputHeadersJson';
import type { ApiDraftInputIncludeSignature } from './apiDraftInputIncludeSignature';
import type { ApiDraftInputProviderId } from './apiDraftInputProviderId';
import type { ApiDraftInputProviderThreadId } from './apiDraftInputProviderThreadId';
import type { ApiDraftInputReplyingToId } from './apiDraftInputReplyingToId';
import type { ApiDraftInputThreadDbId } from './apiDraftInputThreadDbId';
import type { ApiDraftInputTo } from './apiDraftInputTo';
/**
* The draft input matching the current `MessageToSend` JSON shape for backward compat.
*/
export interface ApiDraftInput {
/** Bcc recipients. */
bcc?: ApiDraftInputBcc;
/** HTML body (base64 URL_SAFE_NO_PAD encoded). Sanitized before storage. */
body_html?: ApiDraftInputBodyHtml;
/** Macro body format. */
body_macro?: ApiDraftInputBodyMacro;
/** Plain text body. */
body_text?: ApiDraftInputBodyText;
/** Cc recipients. */
cc?: ApiDraftInputCc;
/** Existing message DB ID (for updating an existing draft). */
db_id?: ApiDraftInputDbId;
/** Generation from the last loaded draft; legacy clients begin at zero. */
draft_generation?: number;
headers_json?: ApiDraftInputHeadersJson;
/** Per-message override for whether to include the signature on send:
`Some(false)` to exclude (user dismissed it). Omit to use the inbox's
default policy. Ignored for drafts. */
include_signature?: ApiDraftInputIncludeSignature;
/** Provider message ID. */
provider_id?: ApiDraftInputProviderId;
/** Provider thread ID. */
provider_thread_id?: ApiDraftInputProviderThreadId;
/** ID of the message this draft is replying to. */
replying_to_id?: ApiDraftInputReplyingToId;
/** Subject line. */
subject: string;
/** Thread DB ID. */
thread_db_id?: ApiDraftInputThreadDbId;
/** To recipients. */
to?: ApiDraftInputTo;
}