insta-api-wrapper 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +709 -0
- package/lib/config.d.ts +16 -0
- package/lib/config.js +16 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +6 -0
- package/lib/lib/client.service.d.ts +119 -0
- package/lib/lib/client.service.js +477 -0
- package/lib/lib/cookies.service.d.ts +4 -0
- package/lib/lib/cookies.service.js +35 -0
- package/lib/lib/handler.d.ts +12 -0
- package/lib/lib/handler.js +83 -0
- package/lib/lib/login.service.d.ts +26 -0
- package/lib/lib/login.service.js +265 -0
- package/lib/lib/parser.service.d.ts +13 -0
- package/lib/lib/parser.service.js +142 -0
- package/lib/types/LoginData.d.ts +63 -0
- package/lib/types/LoginData.js +1 -0
- package/lib/types/PostModels.d.ts +497 -0
- package/lib/types/PostModels.js +1 -0
- package/lib/types/StoriesMetadata.d.ts +56 -0
- package/lib/types/StoriesMetadata.js +1 -0
- package/lib/types/UserGraphQlV2.d.ts +104 -0
- package/lib/types/UserGraphQlV2.js +1 -0
- package/lib/types/UserMetadata.d.ts +208 -0
- package/lib/types/UserMetadata.js +1 -0
- package/lib/types/index.d.ts +49 -0
- package/lib/types/index.js +34 -0
- package/lib/utils/index.d.ts +28 -0
- package/lib/utils/index.js +76 -0
- package/package.json +73 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
export interface IPostModels {
|
|
2
|
+
/** an Instagram Username */
|
|
3
|
+
username: string;
|
|
4
|
+
/** Instagram Full Name */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Instagram Post type */
|
|
7
|
+
postType: string;
|
|
8
|
+
/** media id */
|
|
9
|
+
media_id: string;
|
|
10
|
+
/** post shortcode */
|
|
11
|
+
shortcode: string;
|
|
12
|
+
/** a timestamp of posted media */
|
|
13
|
+
createdAt: number;
|
|
14
|
+
/** the number of user who like a instagram post */
|
|
15
|
+
likes: number;
|
|
16
|
+
/** an caption from instagram post */
|
|
17
|
+
caption: string | null;
|
|
18
|
+
/** total media */
|
|
19
|
+
media_count: number;
|
|
20
|
+
/** comment count */
|
|
21
|
+
comment_count: number;
|
|
22
|
+
/** if post is video */
|
|
23
|
+
video_duration: number | null;
|
|
24
|
+
/** music info will show if post is Reel */
|
|
25
|
+
music?: ClipsMetadata | null;
|
|
26
|
+
/** media urls */
|
|
27
|
+
media: MediaUrls[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Media pixels dimensions
|
|
31
|
+
*/
|
|
32
|
+
export interface Dimensions {
|
|
33
|
+
height: number;
|
|
34
|
+
width: number;
|
|
35
|
+
}
|
|
36
|
+
export interface SharingFrictionInfo {
|
|
37
|
+
should_have_sharing_friction: boolean;
|
|
38
|
+
bloks_app_url: null;
|
|
39
|
+
}
|
|
40
|
+
export interface MediaUrls {
|
|
41
|
+
/** Media ID */
|
|
42
|
+
id: string;
|
|
43
|
+
type: string;
|
|
44
|
+
thumbnail: string;
|
|
45
|
+
/** url of downloadable media */
|
|
46
|
+
url: string;
|
|
47
|
+
dimensions: Dimensions;
|
|
48
|
+
}
|
|
49
|
+
export interface IRawBody {
|
|
50
|
+
items: Item[];
|
|
51
|
+
username: string;
|
|
52
|
+
name: string;
|
|
53
|
+
postType: string;
|
|
54
|
+
media_id: string;
|
|
55
|
+
shortcode: string;
|
|
56
|
+
createdAt: number;
|
|
57
|
+
num_results: number;
|
|
58
|
+
more_available: boolean;
|
|
59
|
+
auto_load_more_enabled: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface Item {
|
|
62
|
+
taken_at: number;
|
|
63
|
+
pk: number;
|
|
64
|
+
id: string;
|
|
65
|
+
device_timestamp: number;
|
|
66
|
+
media_type: number;
|
|
67
|
+
code: string;
|
|
68
|
+
client_cache_key: string;
|
|
69
|
+
filter_type: number;
|
|
70
|
+
is_unified_video: boolean;
|
|
71
|
+
user: User;
|
|
72
|
+
can_viewer_reshare: boolean;
|
|
73
|
+
caption_is_edited: boolean;
|
|
74
|
+
like_and_view_counts_disabled: boolean;
|
|
75
|
+
featured_products_cta: null;
|
|
76
|
+
commerciality_status: string;
|
|
77
|
+
is_paid_partnership: boolean;
|
|
78
|
+
is_visual_reply_commenter_notice_enabled: boolean;
|
|
79
|
+
original_media_has_visual_reply_media: boolean;
|
|
80
|
+
comment_likes_enabled: boolean;
|
|
81
|
+
comment_threading_enabled: boolean;
|
|
82
|
+
has_more_comments: boolean;
|
|
83
|
+
max_num_visible_preview_comments: number;
|
|
84
|
+
carousel_media_count: number;
|
|
85
|
+
carousel_media: CarouselMedia[];
|
|
86
|
+
next_max_id: number;
|
|
87
|
+
preview_comments: Comment[];
|
|
88
|
+
comments: Comment[];
|
|
89
|
+
can_view_more_preview_comments: boolean;
|
|
90
|
+
comment_count: number;
|
|
91
|
+
hide_view_all_comment_entrypoint: boolean;
|
|
92
|
+
inline_composer_display_condition: string;
|
|
93
|
+
image_versions2: ImageVersions2;
|
|
94
|
+
original_width: number;
|
|
95
|
+
original_height: number;
|
|
96
|
+
like_count: number;
|
|
97
|
+
has_liked: boolean;
|
|
98
|
+
top_likers: any[];
|
|
99
|
+
facepile_top_likers: any[];
|
|
100
|
+
photo_of_you: boolean;
|
|
101
|
+
can_see_insights_as_brand: boolean;
|
|
102
|
+
mashup_info: MashupInfo;
|
|
103
|
+
is_dash_eligible: number;
|
|
104
|
+
video_dash_manifest: string;
|
|
105
|
+
video_codec: string;
|
|
106
|
+
number_of_qualities: number;
|
|
107
|
+
video_versions: VideoVersion[];
|
|
108
|
+
has_audio: boolean;
|
|
109
|
+
video_duration: number;
|
|
110
|
+
view_count: number;
|
|
111
|
+
caption: Caption;
|
|
112
|
+
can_viewer_save: boolean;
|
|
113
|
+
organic_tracking_token: string;
|
|
114
|
+
sharing_friction_info: SharingFrictionInfo;
|
|
115
|
+
comment_inform_treatment: CommentInformTreatment;
|
|
116
|
+
product_type: string;
|
|
117
|
+
is_in_profile_grid: boolean;
|
|
118
|
+
profile_grid_control_enabled: boolean;
|
|
119
|
+
deleted_reason: number;
|
|
120
|
+
integrity_review_decision: string;
|
|
121
|
+
music_metadata: MusicMetadata;
|
|
122
|
+
clips_metadata: ClipsMetadata;
|
|
123
|
+
media_cropping_info: MediaCroppingInfo;
|
|
124
|
+
has_translation: boolean;
|
|
125
|
+
caption_position: number;
|
|
126
|
+
is_reel_media: boolean;
|
|
127
|
+
expiring_at: number;
|
|
128
|
+
can_reshare: boolean;
|
|
129
|
+
can_reply: boolean;
|
|
130
|
+
story_static_models: any[];
|
|
131
|
+
supports_reel_reactions: boolean;
|
|
132
|
+
can_send_custom_emojis: boolean;
|
|
133
|
+
show_one_tap_fb_share_tooltip: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface Caption {
|
|
136
|
+
pk: number;
|
|
137
|
+
user_id: number;
|
|
138
|
+
text: string;
|
|
139
|
+
type: number;
|
|
140
|
+
created_at: number;
|
|
141
|
+
created_at_utc: number;
|
|
142
|
+
content_type: string;
|
|
143
|
+
status: string;
|
|
144
|
+
bit_flags: number;
|
|
145
|
+
did_report_as_spam: boolean;
|
|
146
|
+
share_enabled: boolean;
|
|
147
|
+
user: User;
|
|
148
|
+
is_covered: boolean;
|
|
149
|
+
media_id: number;
|
|
150
|
+
private_reply_status: number;
|
|
151
|
+
}
|
|
152
|
+
export interface User {
|
|
153
|
+
pk: number;
|
|
154
|
+
username: string;
|
|
155
|
+
full_name: string;
|
|
156
|
+
is_private: boolean;
|
|
157
|
+
profile_pic_url: string;
|
|
158
|
+
profile_pic_id: string;
|
|
159
|
+
friendship_status: FriendshipStatus | false;
|
|
160
|
+
is_verified: boolean;
|
|
161
|
+
follow_friction_type: number;
|
|
162
|
+
has_anonymous_profile_picture: boolean;
|
|
163
|
+
is_unpublished: boolean;
|
|
164
|
+
is_favorite: boolean;
|
|
165
|
+
latest_reel_media: number;
|
|
166
|
+
has_highlight_reels: boolean;
|
|
167
|
+
live_broadcast_id: null;
|
|
168
|
+
live_broadcast_visibility: null;
|
|
169
|
+
can_boost_post: boolean;
|
|
170
|
+
can_see_organic_insights: boolean;
|
|
171
|
+
show_insights_terms: boolean;
|
|
172
|
+
reel_auto_archive: string;
|
|
173
|
+
allowed_commenter_type: string;
|
|
174
|
+
interop_messaging_user_fbid: string;
|
|
175
|
+
fbid_v2: string;
|
|
176
|
+
account_badges: any[];
|
|
177
|
+
}
|
|
178
|
+
export interface FriendshipStatus {
|
|
179
|
+
following: boolean;
|
|
180
|
+
outgoing_request: boolean;
|
|
181
|
+
is_bestie: boolean;
|
|
182
|
+
is_restricted: boolean;
|
|
183
|
+
is_feed_favorite: boolean;
|
|
184
|
+
followed_by: boolean;
|
|
185
|
+
blocking: boolean;
|
|
186
|
+
muting: boolean;
|
|
187
|
+
is_private: boolean;
|
|
188
|
+
incoming_request: boolean;
|
|
189
|
+
}
|
|
190
|
+
export interface CarouselMedia {
|
|
191
|
+
id: string;
|
|
192
|
+
media_type: number;
|
|
193
|
+
image_versions2: ImageVersions2;
|
|
194
|
+
original_width: number;
|
|
195
|
+
original_height: number;
|
|
196
|
+
pk: number;
|
|
197
|
+
carousel_parent_id: string;
|
|
198
|
+
can_see_insights_as_brand: boolean;
|
|
199
|
+
usertags?: Usertags;
|
|
200
|
+
commerciality_status: string;
|
|
201
|
+
sharing_friction_info: SharingFrictionInfo;
|
|
202
|
+
comment_inform_treatment: CommentInformTreatment;
|
|
203
|
+
video_versions?: VideoVersion[];
|
|
204
|
+
video_duration?: number;
|
|
205
|
+
is_dash_eligible?: number;
|
|
206
|
+
video_dash_manifest?: string;
|
|
207
|
+
video_codec?: string;
|
|
208
|
+
number_of_qualities?: number;
|
|
209
|
+
}
|
|
210
|
+
export interface CommentInformTreatment {
|
|
211
|
+
should_have_inform_treatment: boolean;
|
|
212
|
+
text: string;
|
|
213
|
+
}
|
|
214
|
+
export interface ClipsMetadata {
|
|
215
|
+
music_info: MusicInfo;
|
|
216
|
+
original_sound_info: OriginalSoundInfo;
|
|
217
|
+
audio_type: string;
|
|
218
|
+
music_canonical_id: string;
|
|
219
|
+
featured_label: null;
|
|
220
|
+
mashup_info: MashupInfo;
|
|
221
|
+
nux_info: null;
|
|
222
|
+
viewer_interaction_settings: null;
|
|
223
|
+
branded_content_tag_info: BrandedContentTagInfo;
|
|
224
|
+
shopping_info: null;
|
|
225
|
+
additional_audio_info: AdditionalAudioInfo;
|
|
226
|
+
is_shared_to_fb: boolean;
|
|
227
|
+
breaking_content_info: null;
|
|
228
|
+
challenge_info: null;
|
|
229
|
+
reels_on_the_rise_info: null;
|
|
230
|
+
breaking_creator_info: null;
|
|
231
|
+
asset_recommendation_info: null;
|
|
232
|
+
contextual_highlight_info: null;
|
|
233
|
+
clips_creation_entry_point: string;
|
|
234
|
+
audio_ranking_info: AudioRankingInfo;
|
|
235
|
+
}
|
|
236
|
+
export interface AdditionalAudioInfo {
|
|
237
|
+
additional_audio_username: null;
|
|
238
|
+
audio_reattribution_info: AudioReattributionInfo;
|
|
239
|
+
}
|
|
240
|
+
export interface AudioReattributionInfo {
|
|
241
|
+
should_allow_restore: boolean;
|
|
242
|
+
}
|
|
243
|
+
export interface AudioRankingInfo {
|
|
244
|
+
best_audio_cluster_id: string;
|
|
245
|
+
}
|
|
246
|
+
export interface BrandedContentTagInfo {
|
|
247
|
+
can_add_tag: boolean;
|
|
248
|
+
}
|
|
249
|
+
export interface MashupInfo {
|
|
250
|
+
mashups_allowed: boolean;
|
|
251
|
+
can_toggle_mashups_allowed: boolean;
|
|
252
|
+
has_been_mashed_up: boolean;
|
|
253
|
+
formatted_mashups_count: null;
|
|
254
|
+
original_media: null;
|
|
255
|
+
non_privacy_filtered_mashups_media_count: null;
|
|
256
|
+
}
|
|
257
|
+
export interface MusicInfo {
|
|
258
|
+
music_asset_info: MusicAssetInfo;
|
|
259
|
+
music_consumption_info: MusicConsumptionInfo;
|
|
260
|
+
push_blocking_test: null;
|
|
261
|
+
}
|
|
262
|
+
export interface MusicAssetInfo {
|
|
263
|
+
audio_cluster_id: string;
|
|
264
|
+
id: string;
|
|
265
|
+
title: string;
|
|
266
|
+
subtitle: string;
|
|
267
|
+
display_artist: string;
|
|
268
|
+
artist_id: string;
|
|
269
|
+
cover_artwork_uri: string;
|
|
270
|
+
cover_artwork_thumbnail_uri: string;
|
|
271
|
+
progressive_download_url: string;
|
|
272
|
+
reactive_audio_download_url: null;
|
|
273
|
+
fast_start_progressive_download_url: string;
|
|
274
|
+
highlight_start_times_in_ms: number[];
|
|
275
|
+
is_explicit: boolean;
|
|
276
|
+
dash_manifest: null;
|
|
277
|
+
has_lyrics: boolean;
|
|
278
|
+
audio_asset_id: string;
|
|
279
|
+
duration_in_ms: number;
|
|
280
|
+
dark_message: null;
|
|
281
|
+
allows_saving: boolean;
|
|
282
|
+
territory_validity_periods: TerritoryValidityPeriods;
|
|
283
|
+
}
|
|
284
|
+
export interface TerritoryValidityPeriods {
|
|
285
|
+
}
|
|
286
|
+
export interface MusicConsumptionInfo {
|
|
287
|
+
ig_artist: CoauthorProducer;
|
|
288
|
+
placeholder_profile_pic_url: string;
|
|
289
|
+
should_mute_audio: boolean;
|
|
290
|
+
should_mute_audio_reason: string[];
|
|
291
|
+
is_bookmarked: boolean;
|
|
292
|
+
overlap_duration_in_ms: number;
|
|
293
|
+
audio_asset_start_time_in_ms: number;
|
|
294
|
+
allow_media_creation_with_music: boolean;
|
|
295
|
+
is_trending_in_clips: boolean;
|
|
296
|
+
formatted_clips_media_count: null;
|
|
297
|
+
streaming_services: null;
|
|
298
|
+
display_labels: null;
|
|
299
|
+
}
|
|
300
|
+
export interface CoauthorProducer {
|
|
301
|
+
pk: number;
|
|
302
|
+
username: string;
|
|
303
|
+
full_name: string;
|
|
304
|
+
is_private: boolean;
|
|
305
|
+
profile_pic_url: string;
|
|
306
|
+
profile_pic_id?: string;
|
|
307
|
+
is_verified: boolean;
|
|
308
|
+
follow_friction_type: number;
|
|
309
|
+
friendship_status?: CoauthorProducerFriendshipStatus;
|
|
310
|
+
}
|
|
311
|
+
export interface CoauthorProducerFriendshipStatus {
|
|
312
|
+
following: boolean;
|
|
313
|
+
followed_by: boolean;
|
|
314
|
+
blocking: boolean;
|
|
315
|
+
muting: boolean;
|
|
316
|
+
is_private: boolean;
|
|
317
|
+
incoming_request: boolean;
|
|
318
|
+
outgoing_request: boolean;
|
|
319
|
+
is_bestie: boolean;
|
|
320
|
+
is_restricted: boolean;
|
|
321
|
+
is_feed_favorite: boolean;
|
|
322
|
+
}
|
|
323
|
+
export interface OriginalSoundInfo {
|
|
324
|
+
audio_asset_id: number;
|
|
325
|
+
progressive_download_url: string;
|
|
326
|
+
dash_manifest: string;
|
|
327
|
+
ig_artist: IgArtist;
|
|
328
|
+
should_mute_audio: boolean;
|
|
329
|
+
original_media_id: number;
|
|
330
|
+
hide_remixing: boolean;
|
|
331
|
+
duration_in_ms: number;
|
|
332
|
+
time_created: number;
|
|
333
|
+
original_audio_title: string[];
|
|
334
|
+
consumption_info: ConsumptionInfo;
|
|
335
|
+
allow_creator_to_rename: boolean;
|
|
336
|
+
can_remix_be_shared_to_fb: boolean;
|
|
337
|
+
formatted_clips_media_count: null;
|
|
338
|
+
audio_parts: any[];
|
|
339
|
+
is_explicit: boolean;
|
|
340
|
+
original_audio_subtype: string;
|
|
341
|
+
is_audio_automatically_attributed: boolean;
|
|
342
|
+
}
|
|
343
|
+
export interface ConsumptionInfo {
|
|
344
|
+
is_bookmarked: boolean;
|
|
345
|
+
should_mute_audio_reason: string;
|
|
346
|
+
is_trending_in_clips: boolean;
|
|
347
|
+
}
|
|
348
|
+
export interface IgArtist {
|
|
349
|
+
pk: number;
|
|
350
|
+
username: string;
|
|
351
|
+
full_name: string;
|
|
352
|
+
is_private: boolean;
|
|
353
|
+
profile_pic_url: string;
|
|
354
|
+
profile_pic_id: string;
|
|
355
|
+
is_verified: boolean;
|
|
356
|
+
follow_friction_type: number;
|
|
357
|
+
friendship_status?: IgArtistFriendshipStatus;
|
|
358
|
+
}
|
|
359
|
+
export interface IgArtistFriendshipStatus {
|
|
360
|
+
following: boolean;
|
|
361
|
+
followed_by: boolean;
|
|
362
|
+
blocking: boolean;
|
|
363
|
+
muting: boolean;
|
|
364
|
+
is_private: boolean;
|
|
365
|
+
incoming_request: boolean;
|
|
366
|
+
outgoing_request: boolean;
|
|
367
|
+
is_bestie: boolean;
|
|
368
|
+
is_restricted: boolean;
|
|
369
|
+
is_feed_favorite: boolean;
|
|
370
|
+
}
|
|
371
|
+
export interface Usertags {
|
|
372
|
+
in: In[];
|
|
373
|
+
}
|
|
374
|
+
export interface In {
|
|
375
|
+
user: InUser;
|
|
376
|
+
position: number[];
|
|
377
|
+
start_time_in_video_in_sec: null;
|
|
378
|
+
duration_in_video_in_sec: null;
|
|
379
|
+
}
|
|
380
|
+
export interface InUser {
|
|
381
|
+
pk: number;
|
|
382
|
+
username: string;
|
|
383
|
+
full_name: string;
|
|
384
|
+
is_private: boolean;
|
|
385
|
+
profile_pic_url: string;
|
|
386
|
+
profile_pic_id: string;
|
|
387
|
+
is_verified: boolean;
|
|
388
|
+
follow_friction_type: number;
|
|
389
|
+
}
|
|
390
|
+
export interface VideoVersion {
|
|
391
|
+
type: number;
|
|
392
|
+
width: number;
|
|
393
|
+
height: number;
|
|
394
|
+
url: string;
|
|
395
|
+
id: string;
|
|
396
|
+
}
|
|
397
|
+
export interface Location {
|
|
398
|
+
pk: number;
|
|
399
|
+
short_name: string;
|
|
400
|
+
facebook_places_id: number;
|
|
401
|
+
external_source: string;
|
|
402
|
+
name: string;
|
|
403
|
+
address: string;
|
|
404
|
+
city: string;
|
|
405
|
+
has_viewer_saved: boolean;
|
|
406
|
+
lng: number;
|
|
407
|
+
lat: number;
|
|
408
|
+
is_eligible_for_guides: boolean;
|
|
409
|
+
}
|
|
410
|
+
export interface ImageVersions2 {
|
|
411
|
+
candidates: FirstFrame[];
|
|
412
|
+
additional_candidates: AdditionalCandidates;
|
|
413
|
+
animated_thumbnail_spritesheet_info_candidates: AnimatedThumbnailSpritesheetInfoCandidates;
|
|
414
|
+
}
|
|
415
|
+
export interface AdditionalCandidates {
|
|
416
|
+
igtv_first_frame: FirstFrame;
|
|
417
|
+
first_frame: FirstFrame;
|
|
418
|
+
}
|
|
419
|
+
export interface FirstFrame {
|
|
420
|
+
width: number;
|
|
421
|
+
height: number;
|
|
422
|
+
url: string;
|
|
423
|
+
}
|
|
424
|
+
export interface AnimatedThumbnailSpritesheetInfoCandidates {
|
|
425
|
+
default: Default;
|
|
426
|
+
}
|
|
427
|
+
export interface Default {
|
|
428
|
+
video_length: number;
|
|
429
|
+
thumbnail_width: number;
|
|
430
|
+
thumbnail_height: number;
|
|
431
|
+
thumbnail_duration: number;
|
|
432
|
+
sprite_urls: string[];
|
|
433
|
+
thumbnails_per_row: number;
|
|
434
|
+
total_thumbnail_num_per_sprite: number;
|
|
435
|
+
max_thumbnails_per_sprite: number;
|
|
436
|
+
sprite_width: number;
|
|
437
|
+
sprite_height: number;
|
|
438
|
+
rendered_width: number;
|
|
439
|
+
file_size_kb: number;
|
|
440
|
+
}
|
|
441
|
+
export interface MusicMetadata {
|
|
442
|
+
music_canonical_id: string;
|
|
443
|
+
audio_type: null;
|
|
444
|
+
music_info: null;
|
|
445
|
+
original_sound_info: null;
|
|
446
|
+
}
|
|
447
|
+
export interface MediaCroppingInfo {
|
|
448
|
+
feed_preview_crop: null;
|
|
449
|
+
square_crop: SquareCrop;
|
|
450
|
+
}
|
|
451
|
+
export interface SquareCrop {
|
|
452
|
+
crop_bottom: number;
|
|
453
|
+
crop_left: number;
|
|
454
|
+
crop_right: number;
|
|
455
|
+
crop_top: number;
|
|
456
|
+
}
|
|
457
|
+
export interface CommentInformTreatment {
|
|
458
|
+
should_have_inform_treatment: boolean;
|
|
459
|
+
text: string;
|
|
460
|
+
}
|
|
461
|
+
export interface Comment {
|
|
462
|
+
pk: number;
|
|
463
|
+
user_id: number;
|
|
464
|
+
text: string;
|
|
465
|
+
type: number;
|
|
466
|
+
created_at: number;
|
|
467
|
+
created_at_utc: number;
|
|
468
|
+
content_type: string;
|
|
469
|
+
status: string;
|
|
470
|
+
bit_flags: number;
|
|
471
|
+
did_report_as_spam: boolean;
|
|
472
|
+
share_enabled: boolean;
|
|
473
|
+
user: CommentUser;
|
|
474
|
+
is_covered: boolean;
|
|
475
|
+
media_id: number;
|
|
476
|
+
has_liked_comment: boolean;
|
|
477
|
+
comment_like_count: number;
|
|
478
|
+
private_reply_status: number;
|
|
479
|
+
parent_comment_id?: number;
|
|
480
|
+
}
|
|
481
|
+
export interface CommentUser {
|
|
482
|
+
pk: number;
|
|
483
|
+
username: string;
|
|
484
|
+
full_name: string;
|
|
485
|
+
is_private: boolean;
|
|
486
|
+
profile_pic_url: string;
|
|
487
|
+
profile_pic_id: string;
|
|
488
|
+
is_verified: boolean;
|
|
489
|
+
follow_friction_type: number;
|
|
490
|
+
}
|
|
491
|
+
export interface FriendshipStatus {
|
|
492
|
+
following: boolean;
|
|
493
|
+
outgoing_request: boolean;
|
|
494
|
+
is_bestie: boolean;
|
|
495
|
+
is_restricted: boolean;
|
|
496
|
+
is_feed_favorite: boolean;
|
|
497
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Item, User, MimeType } from './index.js';
|
|
2
|
+
export interface StoryUser {
|
|
3
|
+
id: string;
|
|
4
|
+
full_name: string;
|
|
5
|
+
username: string;
|
|
6
|
+
story_duration_secs: number;
|
|
7
|
+
media_count: number;
|
|
8
|
+
has_video: boolean;
|
|
9
|
+
profile_pic_url: string;
|
|
10
|
+
is_verified: boolean;
|
|
11
|
+
is_private: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** an Array of simplified StoriesMetadata */
|
|
14
|
+
export interface ItemStories {
|
|
15
|
+
type: string;
|
|
16
|
+
mimetype: MimeType;
|
|
17
|
+
/** Downloadable media url */
|
|
18
|
+
url: string;
|
|
19
|
+
thumbnailVideoDefault: string;
|
|
20
|
+
/** a timestamp of posted media */
|
|
21
|
+
taken_at: number;
|
|
22
|
+
/** a timestamp of expire stories */
|
|
23
|
+
expiring_at: number;
|
|
24
|
+
/** stories media id */
|
|
25
|
+
id: number;
|
|
26
|
+
/** media pixels weight */
|
|
27
|
+
original_width: number;
|
|
28
|
+
/** media pixels height */
|
|
29
|
+
original_height: number;
|
|
30
|
+
/** has audio */
|
|
31
|
+
has_audio: boolean;
|
|
32
|
+
/** video duration */
|
|
33
|
+
video_duration: number;
|
|
34
|
+
/** stories caption */
|
|
35
|
+
caption: string;
|
|
36
|
+
}
|
|
37
|
+
export interface StoriesGraphQL {
|
|
38
|
+
id: number;
|
|
39
|
+
latest_reel_media: number;
|
|
40
|
+
expiring_at: number;
|
|
41
|
+
seen: number;
|
|
42
|
+
can_reply: boolean;
|
|
43
|
+
can_gif_quick_reply: boolean;
|
|
44
|
+
can_reshare: boolean;
|
|
45
|
+
reel_type: string;
|
|
46
|
+
ad_expiry_timestamp_in_millis: null;
|
|
47
|
+
is_cta_sticker_available: null;
|
|
48
|
+
user: User;
|
|
49
|
+
items: Item[];
|
|
50
|
+
prefetch_count: number;
|
|
51
|
+
has_besties_media: boolean;
|
|
52
|
+
media_count: number;
|
|
53
|
+
media_ids: number[];
|
|
54
|
+
has_fan_club_media: boolean;
|
|
55
|
+
status: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface Graphql {
|
|
2
|
+
data?: Data;
|
|
3
|
+
status?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Data {
|
|
6
|
+
user?: UserGraphQlV2;
|
|
7
|
+
}
|
|
8
|
+
export interface PageInfo {
|
|
9
|
+
has_next_page: boolean;
|
|
10
|
+
end_cursor: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UserGraphQlV2 {
|
|
13
|
+
ai_agent_type?: null;
|
|
14
|
+
biography?: string;
|
|
15
|
+
bio_links?: BioLink[];
|
|
16
|
+
fb_profile_biolink?: null;
|
|
17
|
+
biography_with_entities?: BiographyWithEntities;
|
|
18
|
+
blocked_by_viewer?: boolean;
|
|
19
|
+
restricted_by_viewer?: boolean;
|
|
20
|
+
country_block?: boolean;
|
|
21
|
+
eimu_id?: string;
|
|
22
|
+
external_url?: string;
|
|
23
|
+
external_url_linkshimmed?: string;
|
|
24
|
+
edge_followed_by?: EdgeFollow;
|
|
25
|
+
fbid?: string;
|
|
26
|
+
followed_by_viewer?: boolean;
|
|
27
|
+
edge_follow?: EdgeFollow;
|
|
28
|
+
follows_viewer?: boolean;
|
|
29
|
+
full_name?: string;
|
|
30
|
+
group_metadata?: null;
|
|
31
|
+
has_ar_effects?: boolean;
|
|
32
|
+
has_clips?: boolean;
|
|
33
|
+
has_guides?: boolean;
|
|
34
|
+
has_chaining?: boolean;
|
|
35
|
+
has_channel?: boolean;
|
|
36
|
+
has_blocked_viewer?: boolean;
|
|
37
|
+
highlight_reel_count?: number;
|
|
38
|
+
has_requested_viewer?: boolean;
|
|
39
|
+
hide_like_and_view_counts?: boolean;
|
|
40
|
+
id?: string;
|
|
41
|
+
is_business_account?: boolean;
|
|
42
|
+
is_professional_account?: boolean;
|
|
43
|
+
is_supervision_enabled?: boolean;
|
|
44
|
+
is_guardian_of_viewer?: boolean;
|
|
45
|
+
is_supervised_by_viewer?: boolean;
|
|
46
|
+
is_supervised_user?: boolean;
|
|
47
|
+
is_embeds_disabled?: boolean;
|
|
48
|
+
is_joined_recently?: boolean;
|
|
49
|
+
guardian_id?: null;
|
|
50
|
+
business_address_json?: null;
|
|
51
|
+
business_contact_method?: string;
|
|
52
|
+
business_email?: null;
|
|
53
|
+
business_phone_number?: null;
|
|
54
|
+
business_category_name?: null;
|
|
55
|
+
overall_category_name?: null;
|
|
56
|
+
category_enum?: null;
|
|
57
|
+
category_name?: null;
|
|
58
|
+
is_private?: boolean;
|
|
59
|
+
is_verified?: boolean;
|
|
60
|
+
is_verified_by_mv4b?: boolean;
|
|
61
|
+
is_regulated_c18?: boolean;
|
|
62
|
+
edge_mutual_followed_by?: EdgeMutualFollowedBy;
|
|
63
|
+
pinned_channels_list_count?: number;
|
|
64
|
+
profile_pic_url?: string;
|
|
65
|
+
profile_pic_url_hd?: string;
|
|
66
|
+
requested_by_viewer?: boolean;
|
|
67
|
+
should_show_category?: boolean;
|
|
68
|
+
should_show_public_contacts?: boolean;
|
|
69
|
+
show_account_transparency_details?: boolean;
|
|
70
|
+
transparency_label?: null;
|
|
71
|
+
transparency_product?: null;
|
|
72
|
+
username?: string;
|
|
73
|
+
connected_fb_page?: null;
|
|
74
|
+
pronouns?: any[];
|
|
75
|
+
edge_owner_to_timeline_media?: EdgeOwnerToTimelineMedia;
|
|
76
|
+
}
|
|
77
|
+
export interface BioLink {
|
|
78
|
+
title?: string;
|
|
79
|
+
lynx_url?: string;
|
|
80
|
+
url?: string;
|
|
81
|
+
link_type?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface BiographyWithEntities {
|
|
84
|
+
raw_text?: string;
|
|
85
|
+
entities?: any[];
|
|
86
|
+
}
|
|
87
|
+
export interface EdgeFollow {
|
|
88
|
+
count?: number;
|
|
89
|
+
}
|
|
90
|
+
export interface EdgeMutualFollowedBy {
|
|
91
|
+
count?: number;
|
|
92
|
+
edges?: EdgeUser[];
|
|
93
|
+
}
|
|
94
|
+
export interface EdgeUser {
|
|
95
|
+
node?: NodeUsername;
|
|
96
|
+
}
|
|
97
|
+
export interface NodeUsername {
|
|
98
|
+
username?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface EdgeOwnerToTimelineMedia {
|
|
101
|
+
count?: number;
|
|
102
|
+
page_info?: PageInfo;
|
|
103
|
+
edges?: any[];
|
|
104
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|