UNPKG

2.73 kBTypeScriptView Raw
1export interface DirectThreadRepositoryGetByParticipantsResponseRootObject {
2 thread: DirectThreadRepositoryGetByParticipantsResponseThread;
3 status: string;
4}
5export interface DirectThreadRepositoryGetByParticipantsResponseThread {
6 thread_id: string;
7 thread_v2_id: string;
8 users: DirectThreadRepositoryGetByParticipantsResponseUsersItem[];
9 left_users: any[];
10 admin_user_ids: any[];
11 items: DirectThreadRepositoryGetByParticipantsResponseItemsItem[];
12 last_activity_at: string;
13 muted: boolean;
14 is_pin: boolean;
15 named: boolean;
16 canonical: boolean;
17 pending: boolean;
18 archived: boolean;
19 valued_request: boolean;
20 thread_type: string;
21 viewer_id: number;
22 thread_title: string;
23 pending_score: string;
24 folder: number;
25 vc_muted: boolean;
26 is_group: boolean;
27 mentions_muted: boolean;
28 approval_required_for_new_members: boolean;
29 input_mode: number;
30 business_thread_folder: number;
31 read_state: number;
32 inviter: DirectThreadRepositoryGetByParticipantsResponseInviter;
33 has_older: boolean;
34 has_newer: boolean;
35 last_seen_at: any;
36 newest_cursor: string;
37 oldest_cursor: string;
38 next_cursor: string;
39 prev_cursor: string;
40 last_permanent_item: DirectThreadRepositoryGetByParticipantsResponseLastPermanentItem;
41}
42export interface DirectThreadRepositoryGetByParticipantsResponseUsersItem {
43 pk: number;
44 username: string;
45 full_name: string;
46 is_private: boolean;
47 profile_pic_url: string;
48 profile_pic_id: string;
49 friendship_status: DirectThreadRepositoryGetByParticipantsResponseFriendshipStatus;
50 is_verified: boolean;
51 has_anonymous_profile_picture: boolean;
52 is_directapp_installed: boolean;
53 is_using_unified_inbox_for_direct: boolean;
54}
55export interface DirectThreadRepositoryGetByParticipantsResponseFriendshipStatus {
56 following: boolean;
57 blocking: boolean;
58 is_private: boolean;
59 incoming_request: boolean;
60 outgoing_request: boolean;
61 is_bestie: boolean;
62 is_restricted: boolean;
63}
64export interface DirectThreadRepositoryGetByParticipantsResponseItemsItem {
65 item_id: string;
66 user_id: number;
67 timestamp: string;
68 item_type: string;
69 text: string;
70}
71export interface DirectThreadRepositoryGetByParticipantsResponseInviter {
72 pk: number;
73 username: string;
74 full_name: string;
75 is_private: boolean;
76 profile_pic_url: string;
77 profile_pic_id: string;
78 is_verified: boolean;
79 has_anonymous_profile_picture: boolean;
80}
81export interface DirectThreadRepositoryGetByParticipantsResponseLastPermanentItem {
82 item_id: string;
83 user_id: number;
84 timestamp: string;
85 item_type: string;
86 text: string;
87}