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.
* search_service
* OpenAPI spec version: 0.1.0
*/
import type { EmailSearchParticipant } from './emailSearchParticipant';
import type { EmailSearchResponseItemName } from './emailSearchResponseItemName';
import type { EmailSearchResponseItemSubject } from './emailSearchResponseItemSubject';
import type { EmailSearchResult } from './emailSearchResult';
/**
* A single response item, part of the EmailSearchResponse object
*/
export interface EmailSearchResponseItem {
/** The search results for the document
This may be empty if the search result match was on the email subject only */
email_message_search_results: EmailSearchResult[];
/** Standardized fields that all item types will share.
These field names are being aligned across all item types
for consistency in our data model. */
id: string;
/** The inbox that owns the thread. Drives the multi-inbox indicator
when the caller has more than one inbox. */
link_id: string;
/** Subject of the email thread */
name?: EmailSearchResponseItemName;
owner_id: string;
/** The participants (senders) in this email thread */
participants: EmailSearchParticipant[];
/** The subject of the email
This is only present if the search result is on the message content */
subject?: EmailSearchResponseItemSubject;
/** The id of the email thread */
thread_id: string;
/** The id of the owner of the email thread */
user_id: string;
}