Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.6 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * search_service
 * OpenAPI spec version: 0.1.0
 */

import type { EmailSearchResultMessageId } from './emailSearchResultMessageId';
import type { EmailSearchResultScore } from './emailSearchResultScore';
import type { EmailSearchResultSentAt } from './emailSearchResultSentAt';
import type { SearchHighlight } from './searchHighlight';

/**
 * A email message match for a given thread id
 */
export interface EmailSearchResult {
  /** This is only present if the search result is on the message content */
  bcc: string[];
  /** This is only present if the search result is on the message content */
  cc: string[];
  /** The highlights for the email message */
  highlight: SearchHighlight;
  /** This is only present if the search result is on the message content */
  labels: string[];
  /** The email message id.
This is only present if the search result is on the message content */
  message_id?: EmailSearchResultMessageId;
  /** The pretty sender.
If the match is on the subject, the pretty sender is the latest sender on the thread.
This could be the sender's email if there is no contact name for the sender. */
  pretty_sender: string;
  /** This is only present if the search result is on the message content */
  recipients: string[];
  /** The score of the result */
  score?: EmailSearchResultScore;
  /** The sender.
If the match is on the subject, the sender is the latest sender on the thread. */
  sender: string;
  /** When the email message was sent
This is only present if the search result is on the message content */
  sent_at?: EmailSearchResultSentAt;
}