beta release conversation context

This commit is contained in:
2025-08-03 23:31:56 +00:00
parent 0bfff52fd0
commit 0f178fcfa9
5 changed files with 101 additions and 12 deletions

34
types.d.ts vendored
View File

@ -7,8 +7,38 @@ export interface Notification {
}
export interface ContextResponse {
ancestors: Notification[];
descendents: Notification[];
ancestors: ContextObject[];
descendents: ContextObject[];
}
export interface PostAncestorsForModel {
account_fqn: string;
mentions: string[];
plaintext_content: string;
}
interface ContextAccountObject {
acct: string;
avatar: string;
bot: boolean;
display_name: string;
followers_count: number;
following_count: number;
fqn: string;
id: string;
}
export interface ContextObject {
content: string;
id: string;
in_reply_to_account_id: string | null;
in_reply_to_id: string | null;
media_attachments: string[];
mentions: Mention[];
pleroma: PleromaObjectInResponse;
visibility: "public" | "private" | "unlisted";
uri: string;
account: ContextAccountObject;
}
export interface NewStatusBody {