UNPKG

8.14 kBTypeScriptView Raw
1export interface TagFeedResponse {
2 ranked_items: TagFeedResponseRankedItemsItem[];
3 items: TagFeedResponseItemsItem[];
4 num_results: number;
5 next_max_id: string;
6 more_available: boolean;
7 auto_load_more_enabled: boolean;
8 story: TagFeedResponseStory;
9 status: string;
10}
11export interface TagFeedResponseRankedItemsItem {
12 taken_at: number;
13 pk: string;
14 id: string;
15 device_timestamp: string | number;
16 media_type: number;
17 code: string;
18 client_cache_key: string;
19 filter_type: number;
20 comment_likes_enabled?: boolean;
21 comment_threading_enabled?: boolean;
22 has_more_comments?: boolean;
23 next_max_id?: string;
24 max_num_visible_preview_comments?: number;
25 preview_comments?: TagFeedResponsePreviewCommentsItem[];
26 can_view_more_preview_comments?: boolean;
27 comment_count?: number;
28 image_versions2: TagFeedResponseImage_versions2;
29 original_width: number;
30 original_height: number;
31 location?: TagFeedResponseLocation;
32 lat?: number | string;
33 lng?: number | string;
34 user: TagFeedResponseUser;
35 can_viewer_reshare: boolean;
36 caption: TagFeedResponseCaption;
37 caption_is_edited: boolean;
38 like_count: number;
39 has_liked: boolean;
40 photo_of_you: boolean;
41 can_viewer_save: boolean;
42 organic_tracking_token: string;
43 usertags?: TagFeedResponseUsertags;
44 comments_disabled?: boolean;
45}
46export interface TagFeedResponsePreviewCommentsItem {
47 pk: string;
48 user_id: number;
49 text: string;
50 type: number;
51 created_at: number;
52 created_at_utc: number;
53 content_type: string;
54 status: string;
55 bit_flags: number;
56 user: TagFeedResponseUser;
57 did_report_as_spam: boolean;
58 share_enabled: boolean;
59 media_id: string;
60 has_translation?: boolean;
61 parent_comment_id?: string;
62}
63export interface TagFeedResponseUser {
64 pk: number;
65 username: string;
66 full_name: string;
67 is_private: boolean;
68 profile_pic_url: string;
69 profile_pic_id?: string;
70 is_verified?: boolean;
71 friendship_status?: TagFeedResponseFriendship_status;
72 has_anonymous_profile_picture?: boolean;
73 is_unpublished?: boolean;
74 is_favorite?: boolean;
75}
76export interface TagFeedResponseImage_versions2 {
77 candidates: TagFeedResponseCandidatesItem[];
78}
79export interface TagFeedResponseCandidatesItem {
80 width: number;
81 height: number;
82 url: string;
83}
84export interface TagFeedResponseLocation {
85 pk: number | string;
86 name: string;
87 address: string;
88 city: string;
89 short_name: string;
90 lng: number | string;
91 lat: number | string;
92 external_source: string;
93 facebook_places_id: string | number;
94}
95export interface TagFeedResponseFriendship_status {
96 following: boolean;
97 outgoing_request: boolean;
98 is_bestie: boolean;
99}
100export interface TagFeedResponseCaption {
101 pk: string;
102 user_id: number;
103 text: string;
104 type: number;
105 created_at: number;
106 created_at_utc: number;
107 content_type: string;
108 status: string;
109 bit_flags: number;
110 user: TagFeedResponseUser;
111 did_report_as_spam: boolean;
112 share_enabled: boolean;
113 media_id: string;
114 has_translation?: boolean;
115}
116export interface TagFeedResponseUsertags {
117 in: TagFeedResponseInItem[];
118}
119export interface TagFeedResponseInItem {
120 user: TagFeedResponseUser;
121 position: (string | number)[] | number[];
122 start_time_in_video_in_sec: null;
123 duration_in_video_in_sec: null;
124}
125export interface TagFeedResponseItemsItem {
126 taken_at: number;
127 pk: string;
128 id: string;
129 device_timestamp: string | number;
130 media_type: number;
131 code: string;
132 client_cache_key: string;
133 filter_type: number;
134 comment_likes_enabled?: boolean;
135 comment_threading_enabled?: boolean;
136 has_more_comments?: boolean;
137 max_num_visible_preview_comments?: number;
138 preview_comments?: TagFeedResponsePreviewCommentsItem[];
139 can_view_more_preview_comments?: boolean;
140 comment_count?: number;
141 carousel_media_count?: number;
142 carousel_media?: TagFeedResponseCarouselMediaItem[];
143 can_see_insights_as_brand?: boolean;
144 user: TagFeedResponseUser;
145 can_viewer_reshare?: boolean;
146 caption: TagFeedResponseCaption | null;
147 caption_is_edited: boolean;
148 like_count?: number;
149 has_liked?: boolean;
150 likers?: TagFeedResponseLikersItem[];
151 photo_of_you: boolean;
152 can_viewer_save: boolean;
153 organic_tracking_token: string;
154 image_versions2?: TagFeedResponseImage_versions2;
155 original_width?: number;
156 original_height?: number;
157 location?: TagFeedResponseLocation;
158 lat?: number | string;
159 lng?: number | string;
160 is_dash_eligible?: number;
161 video_dash_manifest?: string;
162 video_codec?: string;
163 number_of_qualities?: number;
164 video_versions?: TagFeedResponseVideoVersionsItem[];
165 has_audio?: boolean;
166 video_duration?: number;
167 view_count?: number;
168 usertags?: TagFeedResponseUsertags;
169 commenting_disabled_for_viewer?: boolean;
170 attribution?: TagFeedResponseAttribution;
171 next_max_id?: string;
172 comments_disabled?: boolean;
173 caption_position?: number;
174 is_reel_media?: boolean;
175 expiring_at?: number;
176 can_reshare?: boolean;
177 can_reply?: boolean;
178 story_hashtags?: TagFeedResponseStoryHashtagsItem[];
179 creative_config?: TagFeedResponseCreative_config;
180 supports_reel_reactions?: boolean;
181 show_one_tap_fb_share_tooltip?: boolean;
182 has_shared_to_fb?: number;
183 imported_taken_at?: number;
184 reel_mentions?: TagFeedResponseReelMentionsItem[];
185 story_locations?: TagFeedResponseStoryLocationsItem[];
186}
187export interface TagFeedResponseCarouselMediaItem {
188 id: string;
189 media_type: number;
190 image_versions2: TagFeedResponseImage_versions2;
191 original_width: number;
192 original_height: number;
193 pk: string;
194 carousel_parent_id: string;
195 video_versions?: TagFeedResponseVideoVersionsItem[];
196 video_duration?: number;
197 is_dash_eligible?: number;
198 video_dash_manifest?: string;
199 video_codec?: string;
200 number_of_qualities?: number;
201 usertags?: TagFeedResponseUsertags;
202}
203export interface TagFeedResponseLikersItem {
204 pk: number;
205 username: string;
206 full_name: string;
207 is_private: boolean;
208 profile_pic_url: string;
209 profile_pic_id?: string;
210 is_verified: boolean;
211}
212export interface TagFeedResponseVideoVersionsItem {
213 type: number;
214 width: number;
215 height: number;
216 url: string;
217 id: string;
218}
219export interface TagFeedResponseAttribution {
220 name: string;
221}
222export interface TagFeedResponseStory {
223 id: string;
224 latest_reel_media: number;
225 expiring_at: number;
226 seen: number;
227 can_reply: boolean;
228 can_reshare: boolean;
229 reel_type: string;
230 owner: TagFeedResponseOwner;
231 items: TagFeedResponseItemsItem[];
232 prefetch_count: number;
233 unique_integer_reel_id: string;
234 muted: boolean;
235}
236export interface TagFeedResponseOwner {
237 type: string;
238 pk: string;
239 name: string;
240 profile_pic_url: string;
241 profile_pic_username: string;
242}
243export interface TagFeedResponseStoryHashtagsItem {
244 x: string | number;
245 y: string | number;
246 z: number;
247 width: string | number;
248 height: string | number;
249 rotation: string | number;
250 is_pinned: number;
251 is_hidden: number;
252 hashtag: TagFeedResponseHashtag;
253}
254export interface TagFeedResponseHashtag {
255 name: string;
256 id: string;
257}
258export interface TagFeedResponseCreative_config {
259 capture_type: string;
260 camera_facing: string;
261 should_render_try_it_on: boolean;
262}
263export interface TagFeedResponseReelMentionsItem {
264 x: number | string;
265 y: number | string;
266 z: number;
267 width: number | string;
268 height: number | string;
269 rotation: number;
270 is_pinned: number;
271 is_hidden: number;
272 user: TagFeedResponseUser;
273}
274export interface TagFeedResponseStoryLocationsItem {
275 x: number | string;
276 y: number | string;
277 z: number;
278 width: number | string;
279 height: string | number;
280 rotation: number;
281 is_pinned: number;
282 is_hidden: number;
283 location: TagFeedResponseLocation;
284}