beta release conversation context
This commit is contained in:
34
types.d.ts
vendored
34
types.d.ts
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user