UNPKG

4.67 kBTypeScriptView Raw
1export interface DirectInboxFeedResponse {
2 inbox: DirectInboxFeedResponseInbox;
3 seq_id: number;
4 snapshot_at_ms: number;
5 pending_requests_total: number;
6 most_recent_inviter: DirectInboxFeedResponseMostRecentInviter;
7 status: string;
8}
9export interface DirectInboxFeedResponseInbox {
10 threads: DirectInboxFeedResponseThreadsItem[];
11 has_older: boolean;
12 unseen_count: number;
13 unseen_count_ts: string;
14 oldest_cursor: string;
15 blended_inbox_enabled: boolean;
16}
17export declare class DirectInboxFeedResponseThreadsItem {
18 thread_id: string;
19 thread_v2_id: string;
20 users: DirectInboxFeedResponseUsersItem[];
21 left_users: any[];
22 admin_user_ids: any[];
23 items: DirectInboxFeedResponseItemsItem[];
24 last_activity_at: string;
25 muted: boolean;
26 is_pin: boolean;
27 named: boolean;
28 canonical: boolean;
29 pending: boolean;
30 archived: boolean;
31 valued_request: boolean;
32 thread_type: string;
33 viewer_id: number;
34 thread_title: string;
35 pending_score: string;
36 folder: number;
37 vc_muted: boolean;
38 is_group: boolean;
39 mentions_muted: boolean;
40 inviter: DirectInboxFeedResponseInviter;
41 has_older: boolean;
42 has_newer: boolean;
43 last_seen_at: any;
44 newest_cursor: string;
45 oldest_cursor: string;
46 is_spam: boolean;
47 last_permanent_item: DirectInboxFeedResponseLastPermanentItem;
48}
49export interface DirectInboxFeedResponseUsersItem {
50 pk: number;
51 username: string;
52 full_name: string;
53 is_private: boolean;
54 profile_pic_url: string;
55 profile_pic_id?: string;
56 friendship_status: DirectInboxFeedResponseFriendshipStatus;
57 is_verified: boolean;
58 has_anonymous_profile_picture: boolean;
59 is_directapp_installed: boolean;
60}
61export interface DirectInboxFeedResponseFriendshipStatus {
62 following: boolean;
63 blocking: boolean;
64 is_private: boolean;
65 incoming_request: boolean;
66 outgoing_request: boolean;
67 is_bestie: boolean;
68}
69export interface DirectInboxFeedResponseItemsItem {
70 item_id: string;
71 user_id: number;
72 timestamp: string;
73 item_type: string;
74 text?: string;
75 link?: DirectInboxFeedResponseLink;
76 client_context?: string;
77 reel_share?: DirectInboxFeedResponseReelShare;
78 profile?: DirectInboxFeedResponseProfile;
79 placeholder?: DirectInboxFeedResponsePlaceholder;
80}
81export interface DirectInboxFeedResponseInviter {
82 pk: number;
83 username: string;
84 full_name: string;
85 is_private: boolean;
86 profile_pic_url: string;
87 profile_pic_id?: string;
88 is_verified: boolean;
89 has_anonymous_profile_picture: boolean;
90 reel_auto_archive?: string;
91 allowed_commenter_type?: string;
92}
93export interface DirectInboxFeedResponseLastPermanentItem {
94 item_id: string;
95 user_id: number;
96 timestamp: string;
97 item_type: string;
98 text?: string;
99 link?: DirectInboxFeedResponseLink;
100 client_context?: string;
101 reel_share?: DirectInboxFeedResponseReelShare;
102 profile?: DirectInboxFeedResponseProfile;
103 placeholder?: DirectInboxFeedResponsePlaceholder;
104}
105export interface DirectInboxFeedResponseLink {
106 text: string;
107 link_context: DirectInboxFeedResponseLinkContext;
108 client_context: string;
109 mutation_token: string;
110}
111export interface DirectInboxFeedResponseLinkContext {
112 link_url: string;
113 link_title: string;
114 link_summary: string;
115 link_image_url: string;
116}
117export interface DirectInboxFeedResponseReelShare {
118 text: string;
119 type: string;
120 reel_owner_id: number;
121 is_reel_persisted: boolean;
122 reel_type: string;
123 media: DirectInboxFeedResponseMedia;
124}
125export interface DirectInboxFeedResponseMedia {
126 user: DirectInboxFeedResponseUser;
127 expiring_at: number;
128}
129export interface DirectInboxFeedResponseUser {
130 pk: number;
131 username: string;
132 full_name: string;
133 is_private: boolean;
134 profile_pic_url: string;
135 profile_pic_id: string;
136 is_verified: boolean;
137 has_anonymous_profile_picture: boolean;
138}
139export interface DirectInboxFeedResponseProfile {
140 pk: number;
141 username: string;
142 full_name: string;
143 is_private: boolean;
144 profile_pic_url: string;
145 profile_pic_id: string;
146 is_verified: boolean;
147 has_anonymous_profile_picture: boolean;
148}
149export interface DirectInboxFeedResponsePlaceholder {
150 is_linked: boolean;
151 title: string;
152 message: string;
153}
154export interface DirectInboxFeedResponseMostRecentInviter {
155 pk: number;
156 username: string;
157 full_name: string;
158 is_private: boolean;
159 profile_pic_url: string;
160 profile_pic_id: string;
161 is_verified: boolean;
162 has_anonymous_profile_picture: boolean;
163}