UNPKG

2.4 kBTypeScriptView Raw
1export interface MediaInfoResponseRootObject {
2 items: MediaInfoResponseItemsItem[];
3 num_results: number;
4 more_available: boolean;
5 auto_load_more_enabled: boolean;
6 status: string;
7}
8export interface MediaInfoResponseItemsItem {
9 taken_at: number;
10 pk: string;
11 id: string;
12 device_timestamp: number;
13 media_type: number;
14 code: string;
15 client_cache_key: string;
16 filter_type: number;
17 comment_likes_enabled: boolean;
18 comment_threading_enabled: boolean;
19 has_more_comments: boolean;
20 max_num_visible_preview_comments: number;
21 preview_comments: any[];
22 can_view_more_preview_comments: boolean;
23 comment_count: number;
24 inline_composer_display_condition: string;
25 inline_composer_imp_trigger_time: number;
26 image_versions2: MediaInfoResponseImage_versions2;
27 original_width: number;
28 original_height: number;
29 user: MediaInfoResponseUser;
30 can_viewer_reshare: boolean;
31 caption_is_edited: boolean;
32 like_count: number;
33 has_liked: boolean;
34 top_likers: any[];
35 photo_of_you: boolean;
36 caption: MediaInfoResponseCaption;
37 can_viewer_save: boolean;
38 organic_tracking_token: string;
39}
40export interface MediaInfoResponseImage_versions2 {
41 candidates: MediaInfoResponseCandidatesItem[];
42}
43export interface MediaInfoResponseCandidatesItem {
44 width: number;
45 height: number;
46 url: string;
47}
48export interface MediaInfoResponseUser {
49 pk: number;
50 username: string;
51 full_name: string;
52 is_private: boolean;
53 profile_pic_url: string;
54 profile_pic_id: string;
55 friendship_status: MediaInfoResponseFriendship_status;
56 is_verified: boolean;
57 has_anonymous_profile_picture: boolean;
58 is_unpublished: boolean;
59 is_favorite: boolean;
60}
61export interface MediaInfoResponseFriendship_status {
62 following: boolean;
63 outgoing_request: boolean;
64 is_bestie: boolean;
65 is_restricted: boolean;
66}
67export interface MediaInfoResponseCaption {
68 pk: string;
69 user_id: number;
70 text: string;
71 type: number;
72 created_at: number;
73 created_at_utc: number;
74 content_type: string;
75 status: string;
76 bit_flags: number;
77 user: MediaInfoResponseUser;
78 did_report_as_spam: boolean;
79 share_enabled: boolean;
80 media_id: string;
81}
82export interface MediaEditResponseRootObject {
83 media: MediaInfoResponseItemsItem;
84 status: string;
85}