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.3 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * email_service
 * OpenAPI spec version: 0.1.0
 */
import type { AccessLevel } from './accessLevel';
import type { ApiMessage } from './apiMessage';
import type { ApiThreadLatestInboundMessageTs } from './apiThreadLatestInboundMessageTs';
import type { ApiThreadLatestNonSpamMessageTs } from './apiThreadLatestNonSpamMessageTs';
import type { ApiThreadLatestOutboundMessageTs } from './apiThreadLatestOutboundMessageTs';
import type { ApiThreadProjectId } from './apiThreadProjectId';
import type { ApiThreadProviderId } from './apiThreadProviderId';

/**
 * API representation of a fully assembled email thread.
 */
export interface ApiThread {
  access_level: AccessLevel;
  created_at: string;
  db_id: string;
  /** Whether any message was received rather than drafted or sent. Only
threads with received mail can return to the inbox. */
  has_received_mail: boolean;
  inbox_visible: boolean;
  is_read: boolean;
  latest_inbound_message_ts?: ApiThreadLatestInboundMessageTs;
  latest_non_spam_message_ts?: ApiThreadLatestNonSpamMessageTs;
  latest_outbound_message_ts?: ApiThreadLatestOutboundMessageTs;
  link_id: string;
  messages: ApiMessage[];
  project_id?: ApiThreadProjectId;
  provider_id?: ApiThreadProviderId;
  updated_at: string;
}