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.
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
import type { ExternalChatKind } from './externalChatKind';
import type { ExternalChatProvider } from './externalChatProvider';
import type { ExternalChatSummaryBackfill } from './externalChatSummaryBackfill';
import type { ExternalChatSummaryCommunity } from './externalChatSummaryCommunity';
import type { ExternalChatSummaryLastMessageAt } from './externalChatSummaryLastMessageAt';
import type { ExternalChatSummarySendReason } from './externalChatSummarySendReason';
/**
* An external chat visible through ordinary entity sharing.
*/
export interface ExternalChatSummary {
backfill?: ExternalChatSummaryBackfill;
/** Caller may currently send from their own account. */
canSend: boolean;
community?: ExternalChatSummaryCommunity;
/** Entity identifier. */
id: string;
/** A group, or a direct chat with one person (only its owner sends). */
kind: ExternalChatKind;
/** Latest message timestamp. */
lastMessageAt?: ExternalChatSummaryLastMessageAt;
/** Display name: the group's, or a direct chat's other person. */
name: string;
/** The service the chat lives in. */
provider: ExternalChatProvider;
sendReason?: ExternalChatSummarySendReason;
/** Unread live messages for this viewer, counted up to
[`UNREAD_COUNT_CAP`]. */
unreadCount: number;
/** Actual entity owner. */
userId: string;
}