UNPKG

4.96 kBTypeScriptView Raw
1export interface TagsFeedResponse {
2 sections: TagsFeedResponseSectionsItem[];
3 more_available: boolean;
4 next_page: number;
5 next_media_ids: string[];
6 next_max_id: string;
7 status: string;
8}
9export interface TagsFeedResponseSectionsItem {
10 layout_type: string;
11 layout_content: TagsFeedResponseLayout_content;
12 feed_type: string;
13 explore_item_info: TagsFeedResponseExplore_item_info;
14}
15export interface TagsFeedResponseLayout_content {
16 medias: TagsFeedResponseMediasItem[];
17}
18export interface TagsFeedResponseMediasItem {
19 media: TagsFeedResponseMedia;
20}
21export interface TagsFeedResponseMedia {
22 taken_at: number;
23 pk: string;
24 id: string;
25 device_timestamp: string | number;
26 media_type: number;
27 code: string;
28 client_cache_key: string;
29 filter_type: number;
30 comment_likes_enabled: boolean;
31 comment_threading_enabled: boolean;
32 has_more_comments: boolean;
33 next_max_id: string;
34 max_num_visible_preview_comments: number;
35 preview_comments: TagsFeedResponsePreviewCommentsItem[];
36 can_view_more_preview_comments: boolean;
37 comment_count: number;
38 carousel_media_count?: number;
39 carousel_media?: TagsFeedResponseCarouselMediaItem[];
40 can_see_insights_as_brand?: boolean;
41 Tags: TagsFeedResponseTags;
42 lat: string;
43 lng: string;
44 user: TagsFeedResponseUser;
45 can_viewer_reshare: boolean;
46 caption: TagsFeedResponseCaption | null;
47 caption_is_edited: boolean;
48 like_count: number;
49 has_liked: boolean;
50 top_likers: any[];
51 photo_of_you: boolean;
52 can_viewer_save: boolean;
53 organic_tracking_token: string;
54 image_versions2?: TagsFeedResponseImage_versions2;
55 original_width?: number;
56 original_height?: number;
57 usertags?: TagsFeedResponseUsertags;
58 is_dash_eligible?: number;
59 video_dash_manifest?: string;
60 video_codec?: string;
61 number_of_qualities?: number;
62 video_versions?: TagsFeedResponseVideoVersionsItem[];
63 has_audio?: boolean;
64 video_duration?: number;
65 view_count?: number;
66 commenting_disabled_for_viewer?: boolean;
67}
68export interface TagsFeedResponsePreviewCommentsItem {
69 pk: string;
70 user_id: number;
71 text: string;
72 type: number;
73 created_at: number;
74 created_at_utc: number;
75 content_type: string;
76 status: string;
77 bit_flags: number;
78 user: TagsFeedResponseUser;
79 did_report_as_spam: boolean;
80 share_enabled: boolean;
81 media_id: string;
82 has_translation?: boolean;
83 parent_comment_id?: string;
84}
85export interface TagsFeedResponseUser {
86 pk: number;
87 username: string;
88 full_name: string;
89 is_private: boolean;
90 profile_pic_url: string;
91 profile_pic_id?: string;
92 is_verified?: boolean;
93 friendship_status?: TagsFeedResponseFriendship_status;
94 has_anonymous_profile_picture?: boolean;
95 is_unpublished?: boolean;
96 is_favorite?: boolean;
97}
98export interface TagsFeedResponseCarouselMediaItem {
99 id: string;
100 media_type: number;
101 image_versions2: TagsFeedResponseImage_versions2;
102 original_width: number;
103 original_height: number;
104 pk: string;
105 carousel_parent_id: string;
106 usertags?: TagsFeedResponseUsertags;
107 video_versions?: TagsFeedResponseVideoVersionsItem[];
108 video_duration?: number;
109 is_dash_eligible?: number;
110 video_dash_manifest?: string;
111 video_codec?: string;
112 number_of_qualities?: number;
113}
114export interface TagsFeedResponseImage_versions2 {
115 candidates: TagsFeedResponseCandidatesItem[];
116}
117export interface TagsFeedResponseCandidatesItem {
118 width: number;
119 height: number;
120 url: string;
121}
122export interface TagsFeedResponseTags {
123 pk: number;
124 name: string;
125 address: string;
126 city: string;
127 short_name: string;
128 lng: string;
129 lat: string;
130 external_source: string;
131 facebook_places_id: string;
132}
133export interface TagsFeedResponseFriendship_status {
134 following: boolean;
135 outgoing_request: boolean;
136 is_bestie: boolean;
137}
138export interface TagsFeedResponseCaption {
139 pk: string;
140 user_id: number;
141 text: string;
142 type: number;
143 created_at: number;
144 created_at_utc: number;
145 content_type: string;
146 status: string;
147 bit_flags: number;
148 user: TagsFeedResponseUser;
149 did_report_as_spam: boolean;
150 share_enabled: boolean;
151 media_id: string;
152 has_translation?: boolean;
153}
154export interface TagsFeedResponseUsertags {
155 in: TagsFeedResponseInItem[];
156}
157export interface TagsFeedResponseInItem {
158 user: TagsFeedResponseUser;
159 position: number[] | (number | string)[];
160 start_time_in_video_in_sec: null;
161 duration_in_video_in_sec: null;
162}
163export interface TagsFeedResponseExplore_item_info {
164 num_columns: number;
165 total_num_columns: number;
166 aspect_ratio: number;
167 autoplay: boolean;
168}
169export interface TagsFeedResponseVideoVersionsItem {
170 type: number;
171 width: number;
172 height: number;
173 url: string;
174 id: string;
175}