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.

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

import type { CountedReaction } from './countedReaction';
import type { MessageAttachment } from './messageAttachment';
import type { MessageBotProfile } from './messageBotProfile';
import type { MessageDeletedAt } from './messageDeletedAt';
import type { MessageEditedAt } from './messageEditedAt';
import type { MessageGuestName } from './messageGuestName';
import type { MessageImportedAuthor } from './messageImportedAuthor';
import type { MessageKind } from './messageKind';
import type { MessageParent } from './messageParent';
import type { MessageThreadId } from './messageThreadId';
import type { MessageTriggeredBy } from './messageTriggeredBy';
import type { MessageTriggeredVia } from './messageTriggeredVia';
import type { SimpleMention } from './simpleMention';

/**
 * Shared message representation for channel timelines and entity discussions.
 */
export interface Message {
  /** Attached entities. */
  attachments: MessageAttachment[];
  bot_profile?: MessageBotProfile;
  /** Macro Markdown body. */
  content: string;
  /** Creation time. */
  created_at: string;
  /** Message tombstone, independent of thread deletion. */
  deleted_at?: MessageDeletedAt;
  /** Last content edit, if any. */
  edited_at?: MessageEditedAt;
  /** Display name of a verified call guest, retained after the call ends. */
  guest_name?: MessageGuestName;
  /** Message UUID. */
  id: string;
  imported_author?: MessageImportedAuthor;
  /** What this message is. */
  kind?: MessageKind;
  /** Tracked mentions, retained when a caller changes attachments only. */
  mentions: SimpleMention[];
  /** Entity that owns this conversation. */
  parent: MessageParent;
  /** Aggregated reactions. */
  reactions: CountedReaction[];
  /** Authenticated actor or owner of imported content. */
  sender_id: string;
  /** Root message UUID for replies; absent on roots. */
  thread_id?: MessageThreadId;
  /** User who triggered a bot-authored message. */
  triggered_by?: MessageTriggeredBy;
  /** Self-reported name of the client the user triggered it through, such
as "Claude Code"; a display label only. */
  triggered_via?: MessageTriggeredVia;
  /** Last persisted update. */
  updated_at: string;
}