masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
17 lines (16 loc) • 583 B
TypeScript
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;
}