From 566d6ae51803ad1b9d2c74ce6bddc07a0480eab6 Mon Sep 17 00:00:00 2001 From: matty Date: Sun, 3 Aug 2025 20:59:53 +0000 Subject: [PATCH 1/2] update types --- types.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types.d.ts b/types.d.ts index 8e9655f..70f58a8 100644 --- a/types.d.ts +++ b/types.d.ts @@ -94,9 +94,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; From 8e90e8b71e11268c252deaed591eefba51c53359 Mon Sep 17 00:00:00 2001 From: matty Date: Sun, 3 Aug 2025 21:24:40 +0000 Subject: [PATCH 2/2] add context response type --- types.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types.d.ts b/types.d.ts index 70f58a8..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;