Merge branch 'main' into implement-conversation-context
This commit is contained in:
15
types.d.ts
vendored
15
types.d.ts
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user