diff --git a/types.d.ts b/types.d.ts index 8e9655f..4ea03fb 100644 --- a/types.d.ts +++ b/types.d.ts @@ -6,6 +6,11 @@ export interface Notification { created_at: string; } +export interface ContextResponse { + ancestors: Notification[]; + descendents: Notification[]; +} + export interface NewStatusBody { content_type: "application/json" | "text/markdown"; in_reply_to_id?: string; @@ -94,9 +99,19 @@ export interface Status { in_reply_to_account_id: string; // account ID of the reply in_reply_to_id: string; // status that the user has replied to mentions: Mention[]; // array of mentions + pleroma: PleromaObjectInResponse; visibility: "private" | "public" | "unlisted"; } +interface PleromaObjectInResponse { + content: { "text/plain": string }; + context: string; + conversation_id: number; + direct_conversation_id: number | null; + local: boolean; + in_reply_to_account_acct: string; +} + export interface Mention { acct: string; id: string;