@book000/twitterts 0.28.0 → 0.30.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/dist/converter.d.ts +17 -1
- package/dist/converter.d.ts.map +1 -1
- package/dist/converter.js +71 -0
- package/dist/converter.js.map +1 -1
- package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
- package/dist/generate-types/custom-types-generator.js +26 -26
- package/dist/generate-types/custom-types-generator.js.map +1 -1
- package/dist/generate-types/endpoint-type-generator.d.ts +1 -1
- package/dist/generate-types/endpoint-type-generator.d.ts.map +1 -1
- package/dist/generate-types/endpoint-type-generator.js +4 -3
- package/dist/generate-types/endpoint-type-generator.js.map +1 -1
- package/dist/generate-types/types-generator.d.ts.map +1 -1
- package/dist/generate-types/types-generator.js +9 -13
- package/dist/generate-types/types-generator.js.map +1 -1
- package/dist/generate-types/utils.d.ts +7 -0
- package/dist/generate-types/utils.d.ts.map +1 -1
- package/dist/generate-types/utils.js +34 -6
- package/dist/generate-types/utils.js.map +1 -1
- package/dist/generate-types.js +13 -3
- package/dist/generate-types.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/models/exceptions.d.ts +12 -0
- package/dist/models/exceptions.d.ts.map +1 -1
- package/dist/models/exceptions.js +19 -1
- package/dist/models/exceptions.js.map +1 -1
- package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +181 -646
- package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +1156 -936
- package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +511 -634
- package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-tweet-object.d.ts +813 -1104
- package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-user-legacy-object.d.ts +3 -0
- package/dist/models/responses/custom/custom-user-legacy-object.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +39 -10
- package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +1318 -1400
- package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
- package/dist/models/responses/endpoints.d.ts +9 -29
- package/dist/models/responses/endpoints.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +4 -0
- package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +1475 -1777
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/home-timeline-success.d.ts +1147 -1433
- package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/likes-success.d.ts +39 -10
- package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/search-timeline-success.d.ts +230 -1080
- package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +148 -207
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +7 -2
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-tweets-success.d.ts +2871 -2885
- package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts +17 -0
- package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/get/users-verified-avatars-success.js +4 -0
- package/dist/models/responses/graphql/get/users-verified-avatars-success.js.map +1 -0
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +1234 -1699
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts +468 -769
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
- package/dist/options.d.ts +18 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/parser/parser.test.js +3 -2
- package/dist/parser/parser.test.js.map +1 -1
- package/dist/scraper.d.ts +3 -3
- package/dist/scraper.d.ts.map +1 -1
- package/dist/scraper.js +79 -33
- package/dist/scraper.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/twitter.d.ts +23 -3
- package/dist/twitter.d.ts.map +1 -1
- package/dist/twitter.js +126 -1
- package/dist/twitter.js.map +1 -1
- package/dist/twitter.test.js +18 -1
- package/dist/twitter.test.js.map +1 -1
- package/package.json +3 -2
|
@@ -18,40 +18,7 @@ export interface CustomSearchTimelineEntry {
|
|
|
18
18
|
__typename: string;
|
|
19
19
|
id: string;
|
|
20
20
|
rest_id: string;
|
|
21
|
-
affiliates_highlighted_label: {
|
|
22
|
-
label?: {
|
|
23
|
-
badge: {
|
|
24
|
-
url: string;
|
|
25
|
-
};
|
|
26
|
-
description: string;
|
|
27
|
-
longDescription?: {
|
|
28
|
-
text: string;
|
|
29
|
-
entities: {
|
|
30
|
-
fromIndex: number;
|
|
31
|
-
toIndex: number;
|
|
32
|
-
ref: {
|
|
33
|
-
type: string;
|
|
34
|
-
screen_name: string;
|
|
35
|
-
mention_results: {
|
|
36
|
-
result: {
|
|
37
|
-
__typename: string;
|
|
38
|
-
legacy: {
|
|
39
|
-
screen_name: string;
|
|
40
|
-
};
|
|
41
|
-
rest_id: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}[];
|
|
46
|
-
};
|
|
47
|
-
userLabelType: string;
|
|
48
|
-
url?: {
|
|
49
|
-
url: string;
|
|
50
|
-
urlType: string;
|
|
51
|
-
};
|
|
52
|
-
userLabelDisplayType?: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
21
|
+
affiliates_highlighted_label: {};
|
|
55
22
|
has_graduated_access: boolean;
|
|
56
23
|
is_blue_verified: boolean;
|
|
57
24
|
profile_image_shape: string;
|
|
@@ -64,14 +31,9 @@ export interface CustomSearchTimelineEntry {
|
|
|
64
31
|
description: string;
|
|
65
32
|
entities: {
|
|
66
33
|
description: {
|
|
67
|
-
urls:
|
|
68
|
-
display_url: string;
|
|
69
|
-
expanded_url: string;
|
|
70
|
-
url: string;
|
|
71
|
-
indices: number[];
|
|
72
|
-
}[];
|
|
34
|
+
urls: unknown[];
|
|
73
35
|
};
|
|
74
|
-
url
|
|
36
|
+
url: {
|
|
75
37
|
urls: {
|
|
76
38
|
display_url: string;
|
|
77
39
|
expanded_url: string;
|
|
@@ -93,28 +55,17 @@ export interface CustomSearchTimelineEntry {
|
|
|
93
55
|
normal_followers_count: number;
|
|
94
56
|
pinned_tweet_ids_str: string[];
|
|
95
57
|
possibly_sensitive: boolean;
|
|
96
|
-
profile_banner_url
|
|
58
|
+
profile_banner_url: string;
|
|
97
59
|
profile_image_url_https: string;
|
|
98
60
|
profile_interstitial_type: string;
|
|
99
61
|
screen_name: string;
|
|
100
62
|
statuses_count: number;
|
|
101
63
|
translator_type: string;
|
|
102
|
-
url
|
|
64
|
+
url: string;
|
|
103
65
|
verified: boolean;
|
|
104
66
|
want_retweets: boolean;
|
|
105
67
|
withheld_in_countries: unknown[];
|
|
106
|
-
verified_type?: string;
|
|
107
|
-
};
|
|
108
|
-
professional?: {
|
|
109
|
-
rest_id: string;
|
|
110
|
-
professional_type: string;
|
|
111
|
-
category: {
|
|
112
|
-
id: number;
|
|
113
|
-
name: string;
|
|
114
|
-
icon_name: string;
|
|
115
|
-
}[];
|
|
116
68
|
};
|
|
117
|
-
super_follow_eligible?: boolean;
|
|
118
69
|
};
|
|
119
70
|
};
|
|
120
71
|
};
|
|
@@ -141,6 +92,23 @@ export interface CustomSearchTimelineEntry {
|
|
|
141
92
|
conversation_id_str: string;
|
|
142
93
|
display_text_range: number[];
|
|
143
94
|
entities: {
|
|
95
|
+
user_mentions: {
|
|
96
|
+
id_str: string;
|
|
97
|
+
name: string;
|
|
98
|
+
screen_name: string;
|
|
99
|
+
indices: number[];
|
|
100
|
+
}[];
|
|
101
|
+
urls: {
|
|
102
|
+
display_url: string;
|
|
103
|
+
expanded_url: string;
|
|
104
|
+
url: string;
|
|
105
|
+
indices: number[];
|
|
106
|
+
}[];
|
|
107
|
+
hashtags: {
|
|
108
|
+
indices: number[];
|
|
109
|
+
text: string;
|
|
110
|
+
}[];
|
|
111
|
+
symbols: unknown[];
|
|
144
112
|
media?: {
|
|
145
113
|
display_url: string;
|
|
146
114
|
expanded_url: string;
|
|
@@ -223,27 +191,24 @@ export interface CustomSearchTimelineEntry {
|
|
|
223
191
|
h: number;
|
|
224
192
|
}[];
|
|
225
193
|
};
|
|
226
|
-
source_status_id_str?: string;
|
|
227
|
-
source_user_id_str?: string;
|
|
228
|
-
}[];
|
|
229
|
-
user_mentions: {
|
|
230
|
-
id_str: string;
|
|
231
|
-
name: string;
|
|
232
|
-
screen_name: string;
|
|
233
|
-
indices: number[];
|
|
234
194
|
}[];
|
|
235
|
-
urls: {
|
|
236
|
-
display_url: string;
|
|
237
|
-
expanded_url: string;
|
|
238
|
-
url: string;
|
|
239
|
-
indices: number[];
|
|
240
|
-
}[];
|
|
241
|
-
hashtags: {
|
|
242
|
-
indices: number[];
|
|
243
|
-
text: string;
|
|
244
|
-
}[];
|
|
245
|
-
symbols: unknown[];
|
|
246
195
|
};
|
|
196
|
+
favorite_count: number;
|
|
197
|
+
favorited: boolean;
|
|
198
|
+
full_text: string;
|
|
199
|
+
is_quote_status: boolean;
|
|
200
|
+
lang: string;
|
|
201
|
+
quote_count: number;
|
|
202
|
+
reply_count: number;
|
|
203
|
+
retweet_count: number;
|
|
204
|
+
retweeted: boolean;
|
|
205
|
+
user_id_str: string;
|
|
206
|
+
id_str: string;
|
|
207
|
+
possibly_sensitive?: boolean;
|
|
208
|
+
possibly_sensitive_editable?: boolean;
|
|
209
|
+
in_reply_to_screen_name?: string;
|
|
210
|
+
in_reply_to_status_id_str?: string;
|
|
211
|
+
in_reply_to_user_id_str?: string;
|
|
247
212
|
extended_entities?: {
|
|
248
213
|
media: {
|
|
249
214
|
display_url: string;
|
|
@@ -254,87 +219,6 @@ export interface CustomSearchTimelineEntry {
|
|
|
254
219
|
media_url_https: string;
|
|
255
220
|
type: string;
|
|
256
221
|
url: string;
|
|
257
|
-
additional_media_info?: {
|
|
258
|
-
title?: string;
|
|
259
|
-
description?: string;
|
|
260
|
-
embeddable?: boolean;
|
|
261
|
-
monetizable: boolean;
|
|
262
|
-
source_user?: {
|
|
263
|
-
user_results: {
|
|
264
|
-
result: {
|
|
265
|
-
__typename: string;
|
|
266
|
-
id: string;
|
|
267
|
-
rest_id: string;
|
|
268
|
-
affiliates_highlighted_label: {};
|
|
269
|
-
has_graduated_access: boolean;
|
|
270
|
-
is_blue_verified: boolean;
|
|
271
|
-
profile_image_shape: string;
|
|
272
|
-
legacy: {
|
|
273
|
-
can_dm: boolean;
|
|
274
|
-
can_media_tag: boolean;
|
|
275
|
-
created_at: string;
|
|
276
|
-
default_profile: boolean;
|
|
277
|
-
default_profile_image: boolean;
|
|
278
|
-
description: string;
|
|
279
|
-
entities: {
|
|
280
|
-
description: {
|
|
281
|
-
urls: {
|
|
282
|
-
display_url: string;
|
|
283
|
-
expanded_url: string;
|
|
284
|
-
url: string;
|
|
285
|
-
indices: number[];
|
|
286
|
-
}[];
|
|
287
|
-
};
|
|
288
|
-
url?: {
|
|
289
|
-
urls: {
|
|
290
|
-
display_url: string;
|
|
291
|
-
expanded_url: string;
|
|
292
|
-
url: string;
|
|
293
|
-
indices: number[];
|
|
294
|
-
}[];
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
fast_followers_count: number;
|
|
298
|
-
favourites_count: number;
|
|
299
|
-
followers_count: number;
|
|
300
|
-
friends_count: number;
|
|
301
|
-
has_custom_timelines: boolean;
|
|
302
|
-
is_translator: boolean;
|
|
303
|
-
listed_count: number;
|
|
304
|
-
location: string;
|
|
305
|
-
media_count: number;
|
|
306
|
-
name: string;
|
|
307
|
-
normal_followers_count: number;
|
|
308
|
-
pinned_tweet_ids_str: string[];
|
|
309
|
-
possibly_sensitive: boolean;
|
|
310
|
-
profile_banner_url: string;
|
|
311
|
-
profile_image_url_https: string;
|
|
312
|
-
profile_interstitial_type: string;
|
|
313
|
-
screen_name: string;
|
|
314
|
-
statuses_count: number;
|
|
315
|
-
translator_type: string;
|
|
316
|
-
verified: boolean;
|
|
317
|
-
want_retweets: boolean;
|
|
318
|
-
withheld_in_countries: unknown[];
|
|
319
|
-
url?: string;
|
|
320
|
-
};
|
|
321
|
-
professional?: {
|
|
322
|
-
rest_id: string;
|
|
323
|
-
professional_type: string;
|
|
324
|
-
category: unknown[];
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
call_to_actions?: {
|
|
330
|
-
visit_site: {
|
|
331
|
-
url: string;
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
mediaStats?: {
|
|
336
|
-
viewCount: number;
|
|
337
|
-
};
|
|
338
222
|
ext_media_availability: {
|
|
339
223
|
status: string;
|
|
340
224
|
};
|
|
@@ -412,33 +296,29 @@ export interface CustomSearchTimelineEntry {
|
|
|
412
296
|
h: number;
|
|
413
297
|
}[];
|
|
414
298
|
};
|
|
299
|
+
additional_media_info?: {
|
|
300
|
+
monetizable: boolean;
|
|
301
|
+
};
|
|
302
|
+
mediaStats?: {
|
|
303
|
+
viewCount: number;
|
|
304
|
+
};
|
|
415
305
|
video_info?: {
|
|
416
306
|
aspect_ratio: number[];
|
|
417
|
-
duration_millis
|
|
307
|
+
duration_millis: number;
|
|
418
308
|
variants: {
|
|
419
309
|
content_type: string;
|
|
420
310
|
url: string;
|
|
421
311
|
bitrate?: number;
|
|
422
312
|
}[];
|
|
423
313
|
};
|
|
424
|
-
source_status_id_str?: string;
|
|
425
|
-
source_user_id_str?: string;
|
|
426
|
-
ext_alt_text?: string;
|
|
427
314
|
}[];
|
|
428
315
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
possibly_sensitive_editable?: boolean;
|
|
436
|
-
quote_count: number;
|
|
437
|
-
reply_count: number;
|
|
438
|
-
retweet_count: number;
|
|
439
|
-
retweeted: boolean;
|
|
440
|
-
user_id_str: string;
|
|
441
|
-
id_str: string;
|
|
316
|
+
quoted_status_id_str?: string;
|
|
317
|
+
quoted_status_permalink?: {
|
|
318
|
+
url: string;
|
|
319
|
+
expanded: string;
|
|
320
|
+
display: string;
|
|
321
|
+
};
|
|
442
322
|
place?: {
|
|
443
323
|
attributes: {};
|
|
444
324
|
bounding_box: {
|
|
@@ -454,451 +334,6 @@ export interface CustomSearchTimelineEntry {
|
|
|
454
334
|
place_type: string;
|
|
455
335
|
url: string;
|
|
456
336
|
};
|
|
457
|
-
quoted_status_id_str?: string;
|
|
458
|
-
quoted_status_permalink?: {
|
|
459
|
-
url: string;
|
|
460
|
-
expanded: string;
|
|
461
|
-
display: string;
|
|
462
|
-
};
|
|
463
|
-
in_reply_to_screen_name?: string;
|
|
464
|
-
in_reply_to_status_id_str?: string;
|
|
465
|
-
in_reply_to_user_id_str?: string;
|
|
466
|
-
};
|
|
467
|
-
quoted_status_result?: {
|
|
468
|
-
result: {
|
|
469
|
-
__typename: string;
|
|
470
|
-
rest_id: string;
|
|
471
|
-
core: {
|
|
472
|
-
user_results: {
|
|
473
|
-
result: {
|
|
474
|
-
__typename: string;
|
|
475
|
-
id: string;
|
|
476
|
-
rest_id: string;
|
|
477
|
-
affiliates_highlighted_label: {};
|
|
478
|
-
has_graduated_access: boolean;
|
|
479
|
-
is_blue_verified: boolean;
|
|
480
|
-
profile_image_shape: string;
|
|
481
|
-
legacy: {
|
|
482
|
-
can_dm: boolean;
|
|
483
|
-
can_media_tag: boolean;
|
|
484
|
-
created_at: string;
|
|
485
|
-
default_profile: boolean;
|
|
486
|
-
default_profile_image: boolean;
|
|
487
|
-
description: string;
|
|
488
|
-
entities: {
|
|
489
|
-
description: {
|
|
490
|
-
urls: unknown[];
|
|
491
|
-
};
|
|
492
|
-
url?: {
|
|
493
|
-
urls: {
|
|
494
|
-
display_url: string;
|
|
495
|
-
expanded_url: string;
|
|
496
|
-
url: string;
|
|
497
|
-
indices: number[];
|
|
498
|
-
}[];
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
fast_followers_count: number;
|
|
502
|
-
favourites_count: number;
|
|
503
|
-
followers_count: number;
|
|
504
|
-
friends_count: number;
|
|
505
|
-
has_custom_timelines: boolean;
|
|
506
|
-
is_translator: boolean;
|
|
507
|
-
listed_count: number;
|
|
508
|
-
location: string;
|
|
509
|
-
media_count: number;
|
|
510
|
-
name: string;
|
|
511
|
-
normal_followers_count: number;
|
|
512
|
-
pinned_tweet_ids_str: string[];
|
|
513
|
-
possibly_sensitive: boolean;
|
|
514
|
-
profile_banner_url?: string;
|
|
515
|
-
profile_image_url_https: string;
|
|
516
|
-
profile_interstitial_type: string;
|
|
517
|
-
screen_name: string;
|
|
518
|
-
statuses_count: number;
|
|
519
|
-
translator_type: string;
|
|
520
|
-
url?: string;
|
|
521
|
-
verified: boolean;
|
|
522
|
-
want_retweets: boolean;
|
|
523
|
-
withheld_in_countries: unknown[];
|
|
524
|
-
verified_type?: string;
|
|
525
|
-
};
|
|
526
|
-
professional?: {
|
|
527
|
-
rest_id: string;
|
|
528
|
-
professional_type: string;
|
|
529
|
-
category: {
|
|
530
|
-
id: number;
|
|
531
|
-
name: string;
|
|
532
|
-
icon_name: string;
|
|
533
|
-
}[];
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
edit_control: {
|
|
539
|
-
edit_tweet_ids: string[];
|
|
540
|
-
editable_until_msecs: string;
|
|
541
|
-
is_edit_eligible: boolean;
|
|
542
|
-
edits_remaining: string;
|
|
543
|
-
};
|
|
544
|
-
edit_perspective?: {
|
|
545
|
-
favorited: boolean;
|
|
546
|
-
retweeted: boolean;
|
|
547
|
-
};
|
|
548
|
-
is_translatable: boolean;
|
|
549
|
-
views: {
|
|
550
|
-
count?: string;
|
|
551
|
-
state: string;
|
|
552
|
-
};
|
|
553
|
-
source: string;
|
|
554
|
-
legacy: {
|
|
555
|
-
bookmark_count: number;
|
|
556
|
-
bookmarked: boolean;
|
|
557
|
-
created_at: string;
|
|
558
|
-
conversation_id_str: string;
|
|
559
|
-
display_text_range: number[];
|
|
560
|
-
entities: {
|
|
561
|
-
media?: {
|
|
562
|
-
display_url: string;
|
|
563
|
-
expanded_url: string;
|
|
564
|
-
id_str: string;
|
|
565
|
-
indices: number[];
|
|
566
|
-
media_url_https: string;
|
|
567
|
-
type: string;
|
|
568
|
-
url: string;
|
|
569
|
-
features: {
|
|
570
|
-
large?: {
|
|
571
|
-
faces: {
|
|
572
|
-
x: number;
|
|
573
|
-
y: number;
|
|
574
|
-
h: number;
|
|
575
|
-
w: number;
|
|
576
|
-
}[];
|
|
577
|
-
};
|
|
578
|
-
medium?: {
|
|
579
|
-
faces: {
|
|
580
|
-
x: number;
|
|
581
|
-
y: number;
|
|
582
|
-
h: number;
|
|
583
|
-
w: number;
|
|
584
|
-
}[];
|
|
585
|
-
};
|
|
586
|
-
small?: {
|
|
587
|
-
faces: {
|
|
588
|
-
x: number;
|
|
589
|
-
y: number;
|
|
590
|
-
h: number;
|
|
591
|
-
w: number;
|
|
592
|
-
}[];
|
|
593
|
-
};
|
|
594
|
-
orig?: {
|
|
595
|
-
faces: {
|
|
596
|
-
x: number;
|
|
597
|
-
y: number;
|
|
598
|
-
h: number;
|
|
599
|
-
w: number;
|
|
600
|
-
}[];
|
|
601
|
-
};
|
|
602
|
-
};
|
|
603
|
-
sizes: {
|
|
604
|
-
large: {
|
|
605
|
-
h: number;
|
|
606
|
-
w: number;
|
|
607
|
-
resize: string;
|
|
608
|
-
};
|
|
609
|
-
medium: {
|
|
610
|
-
h: number;
|
|
611
|
-
w: number;
|
|
612
|
-
resize: string;
|
|
613
|
-
};
|
|
614
|
-
small: {
|
|
615
|
-
h: number;
|
|
616
|
-
w: number;
|
|
617
|
-
resize: string;
|
|
618
|
-
};
|
|
619
|
-
thumb: {
|
|
620
|
-
h: number;
|
|
621
|
-
w: number;
|
|
622
|
-
resize: string;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
original_info: {
|
|
626
|
-
height: number;
|
|
627
|
-
width: number;
|
|
628
|
-
focus_rects?: {
|
|
629
|
-
x: number;
|
|
630
|
-
y: number;
|
|
631
|
-
w: number;
|
|
632
|
-
h: number;
|
|
633
|
-
}[];
|
|
634
|
-
};
|
|
635
|
-
}[];
|
|
636
|
-
user_mentions: {
|
|
637
|
-
id_str: string;
|
|
638
|
-
name: string;
|
|
639
|
-
screen_name: string;
|
|
640
|
-
indices: number[];
|
|
641
|
-
}[];
|
|
642
|
-
urls: {
|
|
643
|
-
display_url: string;
|
|
644
|
-
expanded_url: string;
|
|
645
|
-
url: string;
|
|
646
|
-
indices: number[];
|
|
647
|
-
}[];
|
|
648
|
-
hashtags: {
|
|
649
|
-
indices: number[];
|
|
650
|
-
text: string;
|
|
651
|
-
}[];
|
|
652
|
-
symbols: unknown[];
|
|
653
|
-
};
|
|
654
|
-
extended_entities?: {
|
|
655
|
-
media: {
|
|
656
|
-
display_url: string;
|
|
657
|
-
expanded_url: string;
|
|
658
|
-
id_str: string;
|
|
659
|
-
indices: number[];
|
|
660
|
-
media_key: string;
|
|
661
|
-
media_url_https: string;
|
|
662
|
-
type: string;
|
|
663
|
-
url: string;
|
|
664
|
-
additional_media_info?: {
|
|
665
|
-
monetizable: boolean;
|
|
666
|
-
};
|
|
667
|
-
mediaStats?: {
|
|
668
|
-
viewCount: number;
|
|
669
|
-
};
|
|
670
|
-
ext_media_availability: {
|
|
671
|
-
status: string;
|
|
672
|
-
};
|
|
673
|
-
features: {
|
|
674
|
-
large?: {
|
|
675
|
-
faces: {
|
|
676
|
-
x: number;
|
|
677
|
-
y: number;
|
|
678
|
-
h: number;
|
|
679
|
-
w: number;
|
|
680
|
-
}[];
|
|
681
|
-
};
|
|
682
|
-
medium?: {
|
|
683
|
-
faces: {
|
|
684
|
-
x: number;
|
|
685
|
-
y: number;
|
|
686
|
-
h: number;
|
|
687
|
-
w: number;
|
|
688
|
-
}[];
|
|
689
|
-
};
|
|
690
|
-
small?: {
|
|
691
|
-
faces: {
|
|
692
|
-
x: number;
|
|
693
|
-
y: number;
|
|
694
|
-
h: number;
|
|
695
|
-
w: number;
|
|
696
|
-
}[];
|
|
697
|
-
};
|
|
698
|
-
orig?: {
|
|
699
|
-
faces: {
|
|
700
|
-
x: number;
|
|
701
|
-
y: number;
|
|
702
|
-
h: number;
|
|
703
|
-
w: number;
|
|
704
|
-
}[];
|
|
705
|
-
};
|
|
706
|
-
};
|
|
707
|
-
sizes: {
|
|
708
|
-
large: {
|
|
709
|
-
h: number;
|
|
710
|
-
w: number;
|
|
711
|
-
resize: string;
|
|
712
|
-
};
|
|
713
|
-
medium: {
|
|
714
|
-
h: number;
|
|
715
|
-
w: number;
|
|
716
|
-
resize: string;
|
|
717
|
-
};
|
|
718
|
-
small: {
|
|
719
|
-
h: number;
|
|
720
|
-
w: number;
|
|
721
|
-
resize: string;
|
|
722
|
-
};
|
|
723
|
-
thumb: {
|
|
724
|
-
h: number;
|
|
725
|
-
w: number;
|
|
726
|
-
resize: string;
|
|
727
|
-
};
|
|
728
|
-
};
|
|
729
|
-
original_info: {
|
|
730
|
-
height: number;
|
|
731
|
-
width: number;
|
|
732
|
-
focus_rects?: {
|
|
733
|
-
x: number;
|
|
734
|
-
y: number;
|
|
735
|
-
w: number;
|
|
736
|
-
h: number;
|
|
737
|
-
}[];
|
|
738
|
-
};
|
|
739
|
-
video_info?: {
|
|
740
|
-
aspect_ratio: number[];
|
|
741
|
-
duration_millis: number;
|
|
742
|
-
variants: {
|
|
743
|
-
bitrate?: number;
|
|
744
|
-
content_type: string;
|
|
745
|
-
url: string;
|
|
746
|
-
}[];
|
|
747
|
-
};
|
|
748
|
-
}[];
|
|
749
|
-
};
|
|
750
|
-
favorite_count: number;
|
|
751
|
-
favorited: boolean;
|
|
752
|
-
full_text: string;
|
|
753
|
-
is_quote_status: boolean;
|
|
754
|
-
lang: string;
|
|
755
|
-
possibly_sensitive?: boolean;
|
|
756
|
-
possibly_sensitive_editable?: boolean;
|
|
757
|
-
quote_count: number;
|
|
758
|
-
reply_count: number;
|
|
759
|
-
retweet_count: number;
|
|
760
|
-
retweeted: boolean;
|
|
761
|
-
user_id_str: string;
|
|
762
|
-
id_str: string;
|
|
763
|
-
in_reply_to_screen_name?: string;
|
|
764
|
-
in_reply_to_status_id_str?: string;
|
|
765
|
-
in_reply_to_user_id_str?: string;
|
|
766
|
-
quoted_status_id_str?: string;
|
|
767
|
-
quoted_status_permalink?: {
|
|
768
|
-
url: string;
|
|
769
|
-
expanded: string;
|
|
770
|
-
display: string;
|
|
771
|
-
};
|
|
772
|
-
};
|
|
773
|
-
note_tweet?: {
|
|
774
|
-
is_expandable: boolean;
|
|
775
|
-
note_tweet_results: {
|
|
776
|
-
result: {
|
|
777
|
-
id: string;
|
|
778
|
-
text: string;
|
|
779
|
-
entity_set: {
|
|
780
|
-
user_mentions: unknown[];
|
|
781
|
-
urls: {
|
|
782
|
-
display_url: string;
|
|
783
|
-
expanded_url: string;
|
|
784
|
-
url: string;
|
|
785
|
-
indices: number[];
|
|
786
|
-
}[];
|
|
787
|
-
hashtags: {
|
|
788
|
-
indices: number[];
|
|
789
|
-
text: string;
|
|
790
|
-
}[];
|
|
791
|
-
symbols: unknown[];
|
|
792
|
-
};
|
|
793
|
-
richtext: {
|
|
794
|
-
richtext_tags: {
|
|
795
|
-
from_index: number;
|
|
796
|
-
to_index: number;
|
|
797
|
-
richtext_types: string[];
|
|
798
|
-
}[];
|
|
799
|
-
};
|
|
800
|
-
media: {
|
|
801
|
-
inline_media: unknown[];
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
};
|
|
806
|
-
card?: {
|
|
807
|
-
rest_id: string;
|
|
808
|
-
legacy: {
|
|
809
|
-
binding_values: {
|
|
810
|
-
key: string;
|
|
811
|
-
value: {
|
|
812
|
-
string_value?: string;
|
|
813
|
-
type: string;
|
|
814
|
-
scribe_key?: string;
|
|
815
|
-
user_value?: {
|
|
816
|
-
id_str: string;
|
|
817
|
-
path: unknown[];
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
}[];
|
|
821
|
-
card_platform: {
|
|
822
|
-
platform: {
|
|
823
|
-
audience: {
|
|
824
|
-
name: string;
|
|
825
|
-
};
|
|
826
|
-
device: {
|
|
827
|
-
name: string;
|
|
828
|
-
version: string;
|
|
829
|
-
};
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
name: string;
|
|
833
|
-
url: string;
|
|
834
|
-
user_refs_results: {
|
|
835
|
-
result: {
|
|
836
|
-
__typename: string;
|
|
837
|
-
id: string;
|
|
838
|
-
rest_id: string;
|
|
839
|
-
affiliates_highlighted_label: {};
|
|
840
|
-
has_graduated_access: boolean;
|
|
841
|
-
is_blue_verified: boolean;
|
|
842
|
-
profile_image_shape: string;
|
|
843
|
-
legacy: {
|
|
844
|
-
can_dm: boolean;
|
|
845
|
-
can_media_tag: boolean;
|
|
846
|
-
created_at: string;
|
|
847
|
-
default_profile: boolean;
|
|
848
|
-
default_profile_image: boolean;
|
|
849
|
-
description: string;
|
|
850
|
-
entities: {
|
|
851
|
-
description: {
|
|
852
|
-
urls: unknown[];
|
|
853
|
-
};
|
|
854
|
-
url: {
|
|
855
|
-
urls: {
|
|
856
|
-
display_url: string;
|
|
857
|
-
expanded_url: string;
|
|
858
|
-
url: string;
|
|
859
|
-
indices: number[];
|
|
860
|
-
}[];
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
fast_followers_count: number;
|
|
864
|
-
favourites_count: number;
|
|
865
|
-
followers_count: number;
|
|
866
|
-
friends_count: number;
|
|
867
|
-
has_custom_timelines: boolean;
|
|
868
|
-
is_translator: boolean;
|
|
869
|
-
listed_count: number;
|
|
870
|
-
location: string;
|
|
871
|
-
media_count: number;
|
|
872
|
-
name: string;
|
|
873
|
-
normal_followers_count: number;
|
|
874
|
-
pinned_tweet_ids_str: unknown[];
|
|
875
|
-
possibly_sensitive: boolean;
|
|
876
|
-
profile_banner_url: string;
|
|
877
|
-
profile_image_url_https: string;
|
|
878
|
-
profile_interstitial_type: string;
|
|
879
|
-
screen_name: string;
|
|
880
|
-
statuses_count: number;
|
|
881
|
-
translator_type: string;
|
|
882
|
-
url: string;
|
|
883
|
-
verified: boolean;
|
|
884
|
-
verified_type: string;
|
|
885
|
-
want_retweets: boolean;
|
|
886
|
-
withheld_in_countries: unknown[];
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
}[];
|
|
890
|
-
};
|
|
891
|
-
};
|
|
892
|
-
unified_card?: {
|
|
893
|
-
card_fetch_state: string;
|
|
894
|
-
};
|
|
895
|
-
quotedRefResult?: {
|
|
896
|
-
result: {
|
|
897
|
-
__typename: string;
|
|
898
|
-
rest_id: string;
|
|
899
|
-
};
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
337
|
};
|
|
903
338
|
card?: {
|
|
904
339
|
rest_id: string;
|
|
@@ -907,10 +342,10 @@ export interface CustomSearchTimelineEntry {
|
|
|
907
342
|
key: string;
|
|
908
343
|
value: {
|
|
909
344
|
image_value?: {
|
|
910
|
-
alt?: string;
|
|
911
345
|
height: number;
|
|
912
346
|
width: number;
|
|
913
347
|
url: string;
|
|
348
|
+
alt?: string;
|
|
914
349
|
};
|
|
915
350
|
type: string;
|
|
916
351
|
string_value?: string;
|
|
@@ -945,7 +380,7 @@ export interface CustomSearchTimelineEntry {
|
|
|
945
380
|
name: string;
|
|
946
381
|
url: string;
|
|
947
382
|
user_refs_results: {
|
|
948
|
-
result
|
|
383
|
+
result: {
|
|
949
384
|
__typename: string;
|
|
950
385
|
id?: string;
|
|
951
386
|
rest_id?: string;
|
|
@@ -982,7 +417,7 @@ export interface CustomSearchTimelineEntry {
|
|
|
982
417
|
indices: number[];
|
|
983
418
|
}[];
|
|
984
419
|
};
|
|
985
|
-
url
|
|
420
|
+
url: {
|
|
986
421
|
urls: {
|
|
987
422
|
display_url?: string;
|
|
988
423
|
expanded_url?: string;
|
|
@@ -1010,11 +445,20 @@ export interface CustomSearchTimelineEntry {
|
|
|
1010
445
|
screen_name: string;
|
|
1011
446
|
statuses_count: number;
|
|
1012
447
|
translator_type: string;
|
|
1013
|
-
url
|
|
448
|
+
url: string;
|
|
1014
449
|
verified: boolean;
|
|
450
|
+
verified_type?: string;
|
|
1015
451
|
want_retweets: boolean;
|
|
1016
452
|
withheld_in_countries: unknown[];
|
|
1017
|
-
|
|
453
|
+
};
|
|
454
|
+
professional?: {
|
|
455
|
+
rest_id: string;
|
|
456
|
+
professional_type: string;
|
|
457
|
+
category: {
|
|
458
|
+
id: number;
|
|
459
|
+
name: string;
|
|
460
|
+
icon_name: string;
|
|
461
|
+
}[];
|
|
1018
462
|
};
|
|
1019
463
|
unavailable_message?: {
|
|
1020
464
|
rtl: boolean;
|
|
@@ -1030,15 +474,6 @@ export interface CustomSearchTimelineEntry {
|
|
|
1030
474
|
}[];
|
|
1031
475
|
};
|
|
1032
476
|
reason?: string;
|
|
1033
|
-
professional?: {
|
|
1034
|
-
rest_id: string;
|
|
1035
|
-
professional_type: string;
|
|
1036
|
-
category: {
|
|
1037
|
-
id: number;
|
|
1038
|
-
name: string;
|
|
1039
|
-
icon_name: string;
|
|
1040
|
-
}[];
|
|
1041
|
-
};
|
|
1042
477
|
};
|
|
1043
478
|
}[];
|
|
1044
479
|
};
|
|
@@ -1046,27 +481,127 @@ export interface CustomSearchTimelineEntry {
|
|
|
1046
481
|
unified_card?: {
|
|
1047
482
|
card_fetch_state: string;
|
|
1048
483
|
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
484
|
+
quoted_status_result?: {
|
|
485
|
+
result: {
|
|
486
|
+
__typename: string;
|
|
487
|
+
rest_id: string;
|
|
488
|
+
core: {
|
|
489
|
+
user_results: {
|
|
490
|
+
result: {
|
|
491
|
+
__typename: string;
|
|
492
|
+
id: string;
|
|
493
|
+
rest_id: string;
|
|
494
|
+
affiliates_highlighted_label: {};
|
|
495
|
+
has_graduated_access: boolean;
|
|
496
|
+
is_blue_verified: boolean;
|
|
497
|
+
profile_image_shape: string;
|
|
498
|
+
legacy: {
|
|
499
|
+
can_dm: boolean;
|
|
500
|
+
can_media_tag: boolean;
|
|
501
|
+
created_at: string;
|
|
502
|
+
default_profile: boolean;
|
|
503
|
+
default_profile_image: boolean;
|
|
504
|
+
description: string;
|
|
505
|
+
entities: {
|
|
506
|
+
description: {
|
|
507
|
+
urls: unknown[];
|
|
508
|
+
};
|
|
509
|
+
url: {
|
|
510
|
+
urls: {
|
|
511
|
+
display_url: string;
|
|
512
|
+
expanded_url: string;
|
|
513
|
+
url: string;
|
|
514
|
+
indices: number[];
|
|
515
|
+
}[];
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
fast_followers_count: number;
|
|
519
|
+
favourites_count: number;
|
|
520
|
+
followers_count: number;
|
|
521
|
+
friends_count: number;
|
|
522
|
+
has_custom_timelines: boolean;
|
|
523
|
+
is_translator: boolean;
|
|
524
|
+
listed_count: number;
|
|
525
|
+
location: string;
|
|
526
|
+
media_count: number;
|
|
527
|
+
name: string;
|
|
528
|
+
normal_followers_count: number;
|
|
529
|
+
pinned_tweet_ids_str: string[];
|
|
530
|
+
possibly_sensitive: boolean;
|
|
531
|
+
profile_image_url_https: string;
|
|
532
|
+
profile_interstitial_type: string;
|
|
533
|
+
screen_name: string;
|
|
534
|
+
statuses_count: number;
|
|
535
|
+
translator_type: string;
|
|
536
|
+
url: string;
|
|
537
|
+
verified: boolean;
|
|
538
|
+
want_retweets: boolean;
|
|
539
|
+
withheld_in_countries: unknown[];
|
|
540
|
+
profile_banner_url?: string;
|
|
541
|
+
};
|
|
542
|
+
professional?: {
|
|
543
|
+
rest_id: string;
|
|
544
|
+
professional_type: string;
|
|
545
|
+
category: {
|
|
546
|
+
id: number;
|
|
547
|
+
name: string;
|
|
548
|
+
icon_name: string;
|
|
549
|
+
}[];
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
edit_control: {
|
|
555
|
+
edit_tweet_ids: string[];
|
|
556
|
+
editable_until_msecs: string;
|
|
557
|
+
is_edit_eligible: boolean;
|
|
558
|
+
edits_remaining: string;
|
|
559
|
+
};
|
|
560
|
+
edit_perspective?: {
|
|
561
|
+
favorited: boolean;
|
|
562
|
+
retweeted: boolean;
|
|
563
|
+
};
|
|
564
|
+
is_translatable: boolean;
|
|
565
|
+
views: {
|
|
566
|
+
count?: string;
|
|
567
|
+
state: string;
|
|
568
|
+
};
|
|
569
|
+
source: string;
|
|
570
|
+
quotedRefResult?: {
|
|
571
|
+
result: {
|
|
572
|
+
__typename: string;
|
|
573
|
+
rest_id: string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
legacy: {
|
|
577
|
+
bookmark_count: number;
|
|
578
|
+
bookmarked: boolean;
|
|
579
|
+
created_at: string;
|
|
580
|
+
conversation_id_str: string;
|
|
581
|
+
display_text_range: number[];
|
|
582
|
+
entities: {
|
|
1056
583
|
user_mentions: unknown[];
|
|
1057
584
|
urls: unknown[];
|
|
1058
|
-
hashtags:
|
|
1059
|
-
indices: number[];
|
|
1060
|
-
text: string;
|
|
1061
|
-
}[];
|
|
585
|
+
hashtags: unknown[];
|
|
1062
586
|
symbols: unknown[];
|
|
1063
587
|
};
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
588
|
+
favorite_count: number;
|
|
589
|
+
favorited: boolean;
|
|
590
|
+
full_text: string;
|
|
591
|
+
is_quote_status: boolean;
|
|
592
|
+
lang: string;
|
|
593
|
+
quote_count: number;
|
|
594
|
+
quoted_status_id_str?: string;
|
|
595
|
+
quoted_status_permalink?: {
|
|
596
|
+
url: string;
|
|
597
|
+
expanded: string;
|
|
598
|
+
display: string;
|
|
1069
599
|
};
|
|
600
|
+
reply_count: number;
|
|
601
|
+
retweet_count: number;
|
|
602
|
+
retweeted: boolean;
|
|
603
|
+
user_id_str: string;
|
|
604
|
+
id_str: string;
|
|
1070
605
|
};
|
|
1071
606
|
};
|
|
1072
607
|
};
|