UNPKG

12.5 kBTypeScriptView Raw
1export interface TopicalExploreFeedResponseRootObject {
2 sectional_items: TopicalExploreFeedResponseSectionalItemsItem[];
3 rank_token: string;
4 auto_load_more_enabled: boolean;
5 more_available: boolean;
6 next_max_id: string;
7 max_id: string;
8 status: string;
9}
10export interface TopicalExploreFeedResponseSectionalItemsItem {
11 layout_type: string;
12 layout_content: TopicalExploreFeedResponseLayout_content;
13 feed_type: string;
14 explore_item_info: TopicalExploreFeedResponseExplore_item_info;
15}
16export interface TopicalExploreFeedResponseLayout_content {
17 two_by_two_item?: TopicalExploreFeedResponseTwo_by_two_item;
18 fill_items?: TopicalExploreFeedResponseFillItemsItem[];
19 medias?: TopicalExploreFeedResponseMediasItem[];
20}
21export interface TopicalExploreFeedResponseTwo_by_two_item {
22 channel?: TopicalExploreFeedResponseChannel;
23 igtv?: TopicalExploreFeedResponseIgtv;
24}
25export interface TopicalExploreFeedResponseChannel {
26 title: string;
27 channel_id: string;
28 channel_type: string;
29 header: string;
30 context: string;
31 media: TopicalExploreFeedResponseMedia;
32 media_count: number;
33}
34export interface TopicalExploreFeedResponseMedia {
35 taken_at: number;
36 pk: string;
37 id: string;
38 device_timestamp: number | string;
39 media_type: number;
40 code: string;
41 client_cache_key: string;
42 filter_type: number;
43 location?: TopicalExploreFeedResponseLocation;
44 lat?: number;
45 lng?: number;
46 user: TopicalExploreFeedResponseUser;
47 can_viewer_reshare: boolean;
48 caption_is_edited: boolean;
49 comment_likes_enabled: boolean;
50 comment_threading_enabled: boolean;
51 has_more_comments: boolean;
52 max_num_visible_preview_comments: number;
53 preview_comments: any[];
54 can_view_more_preview_comments: boolean;
55 comment_count: number;
56 image_versions2?: TopicalExploreFeedResponseImage_versions2;
57 original_width?: number;
58 original_height?: number;
59 like_count?: number;
60 has_liked?: boolean;
61 top_likers?: string[];
62 photo_of_you: boolean;
63 can_see_insights_as_brand: boolean;
64 is_dash_eligible?: number;
65 video_dash_manifest?: string;
66 video_codec?: string;
67 number_of_qualities?: number;
68 video_versions?: TopicalExploreFeedResponseVideoVersionsItem[];
69 has_audio?: boolean;
70 video_duration?: number;
71 view_count?: number;
72 caption: TopicalExploreFeedResponseCaption;
73 can_viewer_save: boolean;
74 organic_tracking_token: string;
75 sharing_friction_info: TopicalExploreFeedResponseSharing_friction_info;
76 is_in_profile_grid: boolean;
77 profile_grid_control_enabled: boolean;
78 is_shop_the_look_eligible: boolean;
79 deleted_reason: number;
80 explore_hide_comments?: boolean;
81 algorithm?: string;
82 connection_id?: string;
83 mezql_token: string;
84 explore_context?: string;
85 explore_source_token?: string;
86 explore: TopicalExploreFeedResponseExplore;
87 impression_token?: string;
88 product_tags?: TopicalExploreFeedResponseProduct_tags;
89 usertags?: TopicalExploreFeedResponseUsertags;
90 carousel_media_count?: number;
91 carousel_media?: TopicalExploreFeedResponseCarouselMediaItem[];
92 title?: string;
93 product_type?: string;
94 nearly_complete_copyright_match?: boolean;
95 media_cropping_info?: TopicalExploreFeedResponseMedia_cropping_info;
96 thumbnails?: TopicalExploreFeedResponseThumbnails;
97 is_post_live?: boolean;
98}
99export interface TopicalExploreFeedResponseLocation {
100 pk: number;
101 name: string;
102 address: string;
103 city: string;
104 short_name: string;
105 lng: number;
106 lat: number;
107 external_source: string;
108 facebook_places_id: number;
109}
110export interface TopicalExploreFeedResponseUser {
111 pk: number;
112 username: string;
113 full_name: string;
114 is_private: boolean;
115 profile_pic_url: string;
116 profile_pic_id?: string;
117 friendship_status?: TopicalExploreFeedResponseFriendship_status;
118 is_verified: boolean;
119 has_anonymous_profile_picture?: boolean;
120 is_unpublished?: boolean;
121 is_favorite?: boolean;
122 latest_reel_media?: number;
123 account_badges?: any[];
124 show_shoppable_feed?: boolean;
125 shoppable_posts_count?: number;
126 can_be_reported_as_fraud?: boolean;
127 merchant_checkout_style?: string;
128 seller_shoppable_feed_type?: string;
129}
130export interface TopicalExploreFeedResponseFriendship_status {
131 following: boolean;
132 outgoing_request: boolean;
133 is_bestie: boolean;
134 is_restricted: boolean;
135}
136export interface TopicalExploreFeedResponseImage_versions2 {
137 candidates: TopicalExploreFeedResponseCandidatesItem[];
138 additional_candidates?: TopicalExploreFeedResponseAdditional_candidates;
139}
140export interface TopicalExploreFeedResponseCandidatesItem {
141 width: number;
142 height: number;
143 url: string;
144 scans_profile?: string;
145 estimated_scans_sizes?: number[];
146}
147export interface TopicalExploreFeedResponseVideoVersionsItem {
148 type: number;
149 width: number;
150 height: number;
151 url: string;
152 id: string;
153}
154export interface TopicalExploreFeedResponseCaption {
155 pk: string;
156 user_id: number;
157 text: string;
158 type: number;
159 created_at: number;
160 created_at_utc: number;
161 content_type: string;
162 status: string;
163 bit_flags: number;
164 did_report_as_spam: boolean;
165 share_enabled: boolean;
166 user: TopicalExploreFeedResponseUser;
167 is_covered: boolean;
168 media_id: string;
169 private_reply_status: number;
170 has_translation?: boolean;
171}
172export interface TopicalExploreFeedResponseSharing_friction_info {
173 should_have_sharing_friction: boolean;
174 bloks_app_url: null;
175}
176export interface TopicalExploreFeedResponseExplore {
177 explanation: string;
178 actor_id?: number;
179 source_token?: string;
180}
181export interface TopicalExploreFeedResponseFillItemsItem {
182 media: TopicalExploreFeedResponseMedia;
183}
184export interface TopicalExploreFeedResponseProduct_tags {
185 'in': TopicalExploreFeedResponseInItem[];
186}
187export interface TopicalExploreFeedResponseInItem {
188 product?: TopicalExploreFeedResponseProduct;
189 position: string[] | number[];
190 user?: TopicalExploreFeedResponseUser;
191 start_time_in_video_in_sec?: null;
192 duration_in_video_in_sec?: null;
193}
194export interface TopicalExploreFeedResponseProduct {
195 name: string;
196 price: string;
197 current_price: string;
198 full_price: string;
199 product_id: string;
200 merchant: TopicalExploreFeedResponseMerchant;
201 compound_product_id: string;
202 description: string;
203 retailer_id: string;
204 has_viewer_saved: boolean;
205 main_image: TopicalExploreFeedResponseMain_image;
206 thumbnail_image: TopicalExploreFeedResponseThumbnail_image;
207 review_status: string;
208 external_url: string;
209 checkout_style: string;
210 can_share_to_story: boolean;
211 can_see_insights_for_viewer: boolean;
212 full_price_stripped: string;
213 current_price_stripped: string;
214 launch_information?: TopicalExploreFeedResponseLaunch_information;
215 rich_text_description?: TopicalExploreFeedResponseRichTextDescriptionItem[];
216}
217export interface TopicalExploreFeedResponseMerchant {
218 pk: number;
219 username: string;
220 profile_pic_url: string;
221}
222export interface TopicalExploreFeedResponseMain_image {
223 image_versions2: TopicalExploreFeedResponseImage_versions2;
224 preview: string;
225}
226export interface TopicalExploreFeedResponseThumbnail_image {
227 image_versions2: TopicalExploreFeedResponseImage_versions2;
228 preview: string;
229}
230export interface TopicalExploreFeedResponseLaunch_information {
231 launch_date: number;
232 has_launched: boolean;
233 is_ig_exclusive: boolean;
234 drops_campaign_id: string;
235}
236export interface TopicalExploreFeedResponseRichTextDescriptionItem {
237 block_type: string;
238 depth: number;
239 text_with_entities: TopicalExploreFeedResponseText_with_entities;
240}
241export interface TopicalExploreFeedResponseText_with_entities {
242 text: string;
243 inline_style_ranges: TopicalExploreFeedResponseInlineStyleRangesItem[];
244}
245export interface TopicalExploreFeedResponseInlineStyleRangesItem {
246 inline_style: number;
247 length: number;
248 offset: number;
249}
250export interface TopicalExploreFeedResponseExplore_item_info {
251 num_columns: number;
252 total_num_columns: number;
253 aspect_ratio: number;
254 autoplay: boolean;
255}
256export interface TopicalExploreFeedResponseMediasItem {
257 media: TopicalExploreFeedResponseMedia;
258}
259export interface TopicalExploreFeedResponseUsertags {
260 'in': TopicalExploreFeedResponseInItem[];
261}
262export interface TopicalExploreFeedResponseCarouselMediaItem {
263 id: string;
264 media_type: number;
265 image_versions2: TopicalExploreFeedResponseImage_versions2;
266 original_width: number;
267 original_height: number;
268 pk: string;
269 carousel_parent_id: string;
270 can_see_insights_as_brand: boolean;
271 sharing_friction_info: TopicalExploreFeedResponseSharing_friction_info;
272 usertags?: TopicalExploreFeedResponseUsertags;
273 product_tags?: TopicalExploreFeedResponseProduct_tags;
274}
275export interface TopicalExploreFeedResponseIgtv {
276 media: TopicalExploreFeedResponseMedia;
277 tv_guide: TopicalExploreFeedResponseTv_guide;
278 display_content_metadata: boolean;
279}
280export interface TopicalExploreFeedResponseMedia_cropping_info {
281}
282export interface TopicalExploreFeedResponseThumbnails {
283 video_length: number;
284 thumbnail_width: number;
285 thumbnail_height: number;
286 thumbnail_duration: string;
287 sprite_urls: string[];
288 thumbnails_per_row: number;
289 max_thumbnails_per_sprite: number;
290 sprite_width: number;
291 sprite_height: number;
292 rendered_width: number;
293}
294export interface TopicalExploreFeedResponseAdditional_candidates {
295 igtv_first_frame: TopicalExploreFeedResponseIgtv_first_frame;
296 first_frame: TopicalExploreFeedResponseFirst_frame;
297}
298export interface TopicalExploreFeedResponseIgtv_first_frame {
299 width: number;
300 height: number;
301 url: string;
302 scans_profile: string;
303 estimated_scans_sizes: number[];
304}
305export interface TopicalExploreFeedResponseFirst_frame {
306 width: number;
307 height: number;
308 url: string;
309 scans_profile: string;
310 estimated_scans_sizes: number[];
311}
312export interface TopicalExploreFeedResponseTv_guide {
313 channels: TopicalExploreFeedResponseChannelsItem[];
314}
315export interface TopicalExploreFeedResponseChannelsItem {
316 id: string;
317 items: TopicalExploreFeedResponseItemsItem[];
318 more_available: boolean;
319 seen_state: TopicalExploreFeedResponseSeen_state;
320 title: string;
321 type: string;
322 max_id: string;
323 user_dict: null;
324 description: null;
325 cover_photo_url: null;
326 approx_total_videos: null;
327 destination_client_configs: null;
328}
329export interface TopicalExploreFeedResponseItemsItem {
330 taken_at: number;
331 pk: string;
332 id: string;
333 device_timestamp: number | string;
334 media_type: number;
335 code: string;
336 client_cache_key: string;
337 filter_type: number;
338 user: TopicalExploreFeedResponseUser;
339 can_viewer_reshare: boolean;
340 caption_is_edited: boolean;
341 comment_likes_enabled: boolean;
342 comment_threading_enabled: boolean;
343 has_more_comments: boolean;
344 max_num_visible_preview_comments: number;
345 preview_comments: any[];
346 can_view_more_preview_comments: boolean;
347 comment_count: number;
348 title: string;
349 product_type: string;
350 nearly_complete_copyright_match: boolean;
351 media_cropping_info: TopicalExploreFeedResponseMedia_cropping_info;
352 thumbnails: TopicalExploreFeedResponseThumbnails;
353 is_post_live: boolean;
354 image_versions2: TopicalExploreFeedResponseImage_versions2;
355 original_width: number;
356 original_height: number;
357 photo_of_you: boolean;
358 can_see_insights_as_brand: boolean;
359 is_dash_eligible: number;
360 video_dash_manifest: string;
361 video_codec: string;
362 number_of_qualities: number;
363 video_versions: TopicalExploreFeedResponseVideoVersionsItem[];
364 has_audio: boolean;
365 video_duration: number;
366 view_count: number;
367 caption: TopicalExploreFeedResponseCaption;
368 can_viewer_save: boolean;
369 organic_tracking_token: string;
370 sharing_friction_info: TopicalExploreFeedResponseSharing_friction_info;
371 is_in_profile_grid: boolean;
372 profile_grid_control_enabled: boolean;
373 is_shop_the_look_eligible: boolean;
374 deleted_reason: number;
375 explore: TopicalExploreFeedResponseExplore;
376 mezql_token: string;
377}
378export interface TopicalExploreFeedResponseSeen_state {
379}