import { type Account } from "./account.js"; import { type Status } from "./status.js"; /** * Represents a conversation with "direct message" visibility. * @see https://docs.joinmastodon.org/entities/conversation/ */ export interface Conversation { /** Local database ID of the conversation. */ id: string; /** Participants in the conversation. */ accounts: Account[]; /** Is the conversation currently marked as unread? */ unread: boolean; /** The last status in the conversation, to be used for optional display. */ lastStatus?: Status | null; }