Initial Commit
This commit is contained in:
@@ -48,3 +48,58 @@ export interface StoryDetail {
|
||||
start_index: number;
|
||||
items: StoryItem[];
|
||||
}
|
||||
|
||||
export interface ThreadParticipant {
|
||||
user_id: string;
|
||||
username: string;
|
||||
full_name: string | null;
|
||||
profile_pic_url: string | null;
|
||||
interop_messaging_user_fbid: string;
|
||||
}
|
||||
|
||||
export interface ThreadSummary {
|
||||
thread_id: string;
|
||||
thread_title: string | null;
|
||||
is_group: boolean;
|
||||
participants: ThreadParticipant[];
|
||||
last_activity_at: number | null;
|
||||
muted: boolean | null;
|
||||
last_message: {
|
||||
username: string | null;
|
||||
text: string | null;
|
||||
item_type: string | null;
|
||||
timestamp: number | null;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface ThreadReaction {
|
||||
emoji: string | null;
|
||||
sender_fbid: string | null;
|
||||
username: string | null;
|
||||
}
|
||||
|
||||
export interface ThreadMessage {
|
||||
id: string;
|
||||
user_id: string | null;
|
||||
username: string | null;
|
||||
full_name: string | null;
|
||||
item_type: string | null;
|
||||
text: string | null;
|
||||
timestamp: number | null;
|
||||
shared_url: string | null;
|
||||
shared_preview_image: string | null;
|
||||
shared_title: string | null;
|
||||
shared_caption: string | null;
|
||||
reactions: ThreadReaction[] | null;
|
||||
replied_to_id: string | null;
|
||||
replied_to_text: string | null;
|
||||
}
|
||||
|
||||
export interface ThreadDetail {
|
||||
thread_id: string;
|
||||
thread_title: string | null;
|
||||
is_group: boolean;
|
||||
participants: ThreadParticipant[];
|
||||
muted: boolean | null;
|
||||
messages: ThreadMessage[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user