@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.
Files changed (85) hide show
  1. package/dist/converter.d.ts +17 -1
  2. package/dist/converter.d.ts.map +1 -1
  3. package/dist/converter.js +71 -0
  4. package/dist/converter.js.map +1 -1
  5. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  6. package/dist/generate-types/custom-types-generator.js +26 -26
  7. package/dist/generate-types/custom-types-generator.js.map +1 -1
  8. package/dist/generate-types/endpoint-type-generator.d.ts +1 -1
  9. package/dist/generate-types/endpoint-type-generator.d.ts.map +1 -1
  10. package/dist/generate-types/endpoint-type-generator.js +4 -3
  11. package/dist/generate-types/endpoint-type-generator.js.map +1 -1
  12. package/dist/generate-types/types-generator.d.ts.map +1 -1
  13. package/dist/generate-types/types-generator.js +9 -13
  14. package/dist/generate-types/types-generator.js.map +1 -1
  15. package/dist/generate-types/utils.d.ts +7 -0
  16. package/dist/generate-types/utils.d.ts.map +1 -1
  17. package/dist/generate-types/utils.js +34 -6
  18. package/dist/generate-types/utils.js.map +1 -1
  19. package/dist/generate-types.js +13 -3
  20. package/dist/generate-types.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/models/exceptions.d.ts +12 -0
  26. package/dist/models/exceptions.d.ts.map +1 -1
  27. package/dist/models/exceptions.js +19 -1
  28. package/dist/models/exceptions.js.map +1 -1
  29. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +181 -646
  30. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  31. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +1156 -936
  32. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  33. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +511 -634
  34. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  35. package/dist/models/responses/custom/custom-tweet-object.d.ts +813 -1104
  36. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  37. package/dist/models/responses/custom/custom-user-legacy-object.d.ts +3 -0
  38. package/dist/models/responses/custom/custom-user-legacy-object.d.ts.map +1 -1
  39. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +39 -10
  40. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
  41. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +1318 -1400
  42. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  43. package/dist/models/responses/endpoints.d.ts +9 -29
  44. package/dist/models/responses/endpoints.d.ts.map +1 -1
  45. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +4 -0
  46. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -1
  47. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +1475 -1777
  48. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  49. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +1147 -1433
  50. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  51. package/dist/models/responses/graphql/get/likes-success.d.ts +39 -10
  52. package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
  53. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +230 -1080
  54. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  55. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +148 -207
  56. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
  57. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +7 -2
  58. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
  59. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +2871 -2885
  60. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  61. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts +17 -0
  62. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts.map +1 -0
  63. package/dist/models/responses/graphql/get/users-verified-avatars-success.js +4 -0
  64. package/dist/models/responses/graphql/get/users-verified-avatars-success.js.map +1 -0
  65. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +1234 -1699
  66. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  67. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +468 -769
  68. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  69. package/dist/options.d.ts +18 -0
  70. package/dist/options.d.ts.map +1 -1
  71. package/dist/parser/parser.test.js +3 -2
  72. package/dist/parser/parser.test.js.map +1 -1
  73. package/dist/scraper.d.ts +3 -3
  74. package/dist/scraper.d.ts.map +1 -1
  75. package/dist/scraper.js +79 -33
  76. package/dist/scraper.js.map +1 -1
  77. package/dist/tsconfig.build.tsbuildinfo +1 -1
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/dist/twitter.d.ts +23 -3
  80. package/dist/twitter.d.ts.map +1 -1
  81. package/dist/twitter.js +126 -1
  82. package/dist/twitter.js.map +1 -1
  83. package/dist/twitter.test.js +18 -1
  84. package/dist/twitter.test.js.map +1 -1
  85. package/package.json +3 -2
@@ -14,6 +14,18 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
14
14
  itemContent?: {
15
15
  itemType: string;
16
16
  __typename: string;
17
+ content?: {
18
+ contentType: string;
19
+ headerText: string;
20
+ bodyText: string;
21
+ primaryButtonAction: {
22
+ text: string;
23
+ action: {
24
+ url: string;
25
+ dismissOnClick: boolean;
26
+ };
27
+ };
28
+ };
17
29
  tweet_results?: {
18
30
  result: {
19
31
  __typename: string;
@@ -42,8 +54,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
42
54
  is_blue_verified: boolean;
43
55
  profile_image_shape: string;
44
56
  legacy: {
45
- followed_by?: boolean;
46
- following?: boolean;
47
57
  can_dm: boolean;
48
58
  can_media_tag: boolean;
49
59
  created_at: string;
@@ -87,11 +97,13 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
87
97
  screen_name: string;
88
98
  statuses_count: number;
89
99
  translator_type: string;
100
+ url?: string;
90
101
  verified: boolean;
91
102
  want_retweets: boolean;
92
103
  withheld_in_countries: unknown[];
93
- url?: string;
104
+ following?: boolean;
94
105
  verified_type?: string;
106
+ followed_by?: boolean;
95
107
  };
96
108
  professional?: {
97
109
  rest_id: string;
@@ -119,14 +131,10 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
119
131
  edits_remaining: string;
120
132
  };
121
133
  };
122
- edit_perspective?: {
123
- favorited: boolean;
124
- retweeted: boolean;
125
- };
126
134
  is_translatable?: boolean;
127
135
  views?: {
128
- state: string;
129
136
  count?: string;
137
+ state: string;
130
138
  };
131
139
  source?: string;
132
140
  legacy?: {
@@ -136,6 +144,83 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
136
144
  conversation_id_str: string;
137
145
  display_text_range: number[];
138
146
  entities: {
147
+ media?: {
148
+ display_url: string;
149
+ expanded_url: string;
150
+ id_str: string;
151
+ indices: number[];
152
+ media_url_https: string;
153
+ source_status_id_str?: string;
154
+ source_user_id_str?: string;
155
+ type: string;
156
+ url: string;
157
+ features: {
158
+ large?: {
159
+ faces: {
160
+ x: number;
161
+ y: number;
162
+ h: number;
163
+ w: number;
164
+ }[];
165
+ };
166
+ medium?: {
167
+ faces: {
168
+ x: number;
169
+ y: number;
170
+ h: number;
171
+ w: number;
172
+ }[];
173
+ };
174
+ small?: {
175
+ faces: {
176
+ x: number;
177
+ y: number;
178
+ h: number;
179
+ w: number;
180
+ }[];
181
+ };
182
+ orig?: {
183
+ faces: {
184
+ x: number;
185
+ y: number;
186
+ h: number;
187
+ w: number;
188
+ }[];
189
+ };
190
+ };
191
+ sizes: {
192
+ large: {
193
+ h: number;
194
+ w: number;
195
+ resize: string;
196
+ };
197
+ medium: {
198
+ h: number;
199
+ w: number;
200
+ resize: string;
201
+ };
202
+ small: {
203
+ h: number;
204
+ w: number;
205
+ resize: string;
206
+ };
207
+ thumb: {
208
+ h: number;
209
+ w: number;
210
+ resize: string;
211
+ };
212
+ };
213
+ original_info: {
214
+ height: number;
215
+ width: number;
216
+ focus_rects?: {
217
+ x: number;
218
+ y: number;
219
+ w: number;
220
+ h: number;
221
+ }[];
222
+ };
223
+ }[];
139
224
  user_mentions: {
140
225
  id_str: string;
141
226
  name: string;
@@ -153,14 +238,111 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
153
238
  text: string;
154
239
  }[];
155
240
  symbols: unknown[];
156
- media?: {
241
+ };
242
+ extended_entities?: {
243
+ media: {
157
244
  display_url: string;
158
245
  expanded_url: string;
159
246
  id_str: string;
160
247
  indices: number[];
248
+ media_key: string;
161
249
  media_url_https: string;
250
+ source_status_id_str?: string;
251
+ source_user_id_str?: string;
162
252
  type: string;
163
253
  url: string;
254
+ additional_media_info?: {
255
+ monetizable: boolean;
256
+ source_user?: {
257
+ user_results: {
258
+ result: {
259
+ __typename: string;
260
+ id: string;
261
+ rest_id: string;
262
+ affiliates_highlighted_label: {};
263
+ has_graduated_access: boolean;
264
+ is_blue_verified: boolean;
265
+ profile_image_shape: string;
266
+ legacy: {
267
+ can_dm: boolean;
268
+ can_media_tag: boolean;
269
+ created_at: string;
270
+ default_profile: boolean;
271
+ default_profile_image: boolean;
272
+ description: string;
273
+ entities: {
274
+ description: {
275
+ urls: {
276
+ display_url: string;
277
+ expanded_url: string;
278
+ url: string;
279
+ indices: number[];
280
+ }[];
281
+ };
282
+ url?: {
283
+ urls: {
284
+ display_url: string;
285
+ expanded_url: string;
286
+ url: string;
287
+ indices: number[];
288
+ }[];
289
+ };
290
+ };
291
+ fast_followers_count: number;
292
+ favourites_count: number;
293
+ followers_count: number;
294
+ friends_count: number;
295
+ has_custom_timelines: boolean;
296
+ is_translator: boolean;
297
+ listed_count: number;
298
+ location: string;
299
+ media_count: number;
300
+ name: string;
301
+ normal_followers_count: number;
302
+ pinned_tweet_ids_str: string[];
303
+ possibly_sensitive: boolean;
304
+ profile_banner_url?: string;
305
+ profile_image_url_https: string;
306
+ profile_interstitial_type: string;
307
+ screen_name: string;
308
+ statuses_count: number;
309
+ translator_type: string;
310
+ verified: boolean;
311
+ want_retweets: boolean;
312
+ withheld_in_countries: unknown[];
313
+ url?: string;
314
+ };
315
+ professional?: {
316
+ rest_id: string;
317
+ professional_type: string;
318
+ category: {
319
+ id: number;
320
+ name: string;
321
+ icon_name: string;
322
+ }[];
323
+ };
324
+ super_follow_eligible?: boolean;
325
+ };
326
+ };
327
+ };
328
+ title?: string;
329
+ description?: string;
330
+ call_to_actions?: {
331
+ visit_site?: {
332
+ url: string;
333
+ };
334
+ watch_now?: {
335
+ url: string;
336
+ };
337
+ };
338
+ embeddable?: boolean;
339
+ };
340
+ mediaStats?: {
341
+ viewCount: number;
342
+ };
343
+ ext_media_availability: {
344
+ status: string;
345
+ };
164
346
  features: {
165
347
  large?: {
166
348
  faces: {
@@ -227,8 +409,16 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
227
409
  h: number;
228
410
  }[];
229
411
  };
230
- source_status_id_str?: string;
231
- source_user_id_str?: string;
412
+ video_info?: {
413
+ aspect_ratio: number[];
414
+ duration_millis?: number;
415
+ variants: {
416
+ bitrate?: number;
417
+ content_type: string;
418
+ url: string;
419
+ }[];
420
+ };
421
+ ext_alt_text?: string;
232
422
  }[];
233
423
  };
234
424
  favorite_count: number;
@@ -236,6 +426,8 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
236
426
  full_text: string;
237
427
  is_quote_status: boolean;
238
428
  lang: string;
429
+ possibly_sensitive?: boolean;
430
+ possibly_sensitive_editable?: boolean;
239
431
  quote_count: number;
240
432
  reply_count: number;
241
433
  retweet_count: number;
@@ -254,17 +446,11 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
254
446
  rest_id: string;
255
447
  affiliates_highlighted_label: {
256
448
  label?: {
257
- url?: {
258
- url: string;
259
- urlType: string;
260
- };
261
449
  badge: {
262
450
  url: string;
263
451
  };
264
452
  description: string;
265
- userLabelType: string;
266
- userLabelDisplayType?: string;
267
- longDescription?: {
453
+ longDescription: {
268
454
  text: string;
269
455
  entities: {
270
456
  fromIndex: number;
@@ -281,6 +467,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
281
467
  };
282
468
  }[];
283
469
  };
470
+ userLabelType: string;
284
471
  };
285
472
  };
286
473
  has_graduated_access: boolean;
@@ -330,10 +517,10 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
330
517
  screen_name: string;
331
518
  statuses_count: number;
332
519
  translator_type: string;
520
+ url?: string;
333
521
  verified: boolean;
334
522
  want_retweets: boolean;
335
523
  withheld_in_countries: unknown[];
336
- url?: string;
337
524
  verified_type?: string;
338
525
  };
339
526
  professional?: {
@@ -355,10 +542,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
355
542
  is_edit_eligible: boolean;
356
543
  edits_remaining: string;
357
544
  };
358
- edit_perspective?: {
359
- favorited: boolean;
360
- retweeted: boolean;
361
- };
362
545
  is_translatable: boolean;
363
546
  views: {
364
547
  count: string;
@@ -413,14 +596,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
413
596
  w: number;
414
597
  }[];
415
598
  };
416
- all?: {
417
- tags: {
418
- user_id: string;
419
- name: string;
420
- screen_name: string;
421
- type: string;
422
- }[];
423
- };
424
599
  };
425
600
  sizes: {
426
601
  large: {
@@ -485,86 +660,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
485
660
  media_url_https: string;
486
661
  type: string;
487
662
  url: string;
488
- additional_media_info?: {
489
- monetizable: boolean;
490
- title?: string;
491
- description?: string;
492
- embeddable?: boolean;
493
- source_user?: {
494
- user_results: {
495
- result: {
496
- __typename: string;
497
- id: string;
498
- rest_id: string;
499
- affiliates_highlighted_label: {};
500
- has_graduated_access: boolean;
501
- is_blue_verified: boolean;
502
- profile_image_shape: string;
503
- legacy: {
504
- can_dm: boolean;
505
- can_media_tag: boolean;
506
- created_at: string;
507
- default_profile: boolean;
508
- default_profile_image: boolean;
509
- description: string;
510
- entities: {
511
- description: {
512
- urls: unknown[];
513
- };
514
- url?: {
515
- urls: {
516
- display_url: string;
517
- expanded_url: string;
518
- url: string;
519
- indices: number[];
520
- }[];
521
- };
522
- };
523
- fast_followers_count: number;
524
- favourites_count: number;
525
- followers_count: number;
526
- friends_count: number;
527
- has_custom_timelines: boolean;
528
- is_translator: boolean;
529
- listed_count: number;
530
- location: string;
531
- media_count: number;
532
- name: string;
533
- normal_followers_count: number;
534
- pinned_tweet_ids_str: string[];
535
- possibly_sensitive: boolean;
536
- profile_banner_url: string;
537
- profile_image_url_https: string;
538
- profile_interstitial_type: string;
539
- screen_name: string;
540
- statuses_count: number;
541
- translator_type: string;
542
- url?: string;
543
- verified: boolean;
544
- want_retweets: boolean;
545
- withheld_in_countries: unknown[];
546
- };
547
- professional?: {
548
- rest_id: string;
549
- professional_type: string;
550
- category: {
551
- id: number;
552
- name: string;
553
- icon_name: string;
554
- }[];
555
- };
556
- };
557
- };
558
- };
559
- call_to_actions?: {
560
- watch_now: {
561
- url: string;
562
- };
563
- };
564
- };
565
- mediaStats?: {
566
- viewCount: number;
567
- };
568
663
  ext_media_availability: {
569
664
  status: string;
570
665
  };
@@ -601,14 +696,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
601
696
  w: number;
602
697
  }[];
603
698
  };
604
- all?: {
605
- tags: {
606
- user_id: string;
607
- name: string;
608
- screen_name: string;
609
- type: string;
610
- }[];
611
- };
612
699
  };
613
700
  sizes: {
614
701
  large: {
@@ -642,6 +729,86 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
642
729
  h: number;
643
730
  }[];
644
731
  };
732
+ additional_media_info?: {
733
+ monetizable: boolean;
734
+ source_user?: {
735
+ user_results: {
736
+ result: {
737
+ __typename: string;
738
+ id: string;
739
+ rest_id: string;
740
+ affiliates_highlighted_label: {};
741
+ has_graduated_access: boolean;
742
+ is_blue_verified: boolean;
743
+ profile_image_shape: string;
744
+ legacy: {
745
+ can_dm: boolean;
746
+ can_media_tag: boolean;
747
+ created_at: string;
748
+ default_profile: boolean;
749
+ default_profile_image: boolean;
750
+ description: string;
751
+ entities: {
752
+ description: {
753
+ urls: unknown[];
754
+ };
755
+ url?: {
756
+ urls: {
757
+ display_url: string;
758
+ expanded_url: string;
759
+ url: string;
760
+ indices: number[];
761
+ }[];
762
+ };
763
+ };
764
+ fast_followers_count: number;
765
+ favourites_count: number;
766
+ followers_count: number;
767
+ friends_count: number;
768
+ has_custom_timelines: boolean;
769
+ is_translator: boolean;
770
+ listed_count: number;
771
+ location: string;
772
+ media_count: number;
773
+ name: string;
774
+ normal_followers_count: number;
775
+ pinned_tweet_ids_str: string[];
776
+ possibly_sensitive: boolean;
777
+ profile_banner_url: string;
778
+ profile_image_url_https: string;
779
+ profile_interstitial_type: string;
780
+ screen_name: string;
781
+ statuses_count: number;
782
+ translator_type: string;
783
+ url?: string;
784
+ verified: boolean;
785
+ want_retweets: boolean;
786
+ withheld_in_countries: unknown[];
787
+ };
788
+ professional?: {
789
+ rest_id: string;
790
+ professional_type: string;
791
+ category: {
792
+ id: number;
793
+ name: string;
794
+ icon_name: string;
795
+ }[];
796
+ };
797
+ };
798
+ };
799
+ };
800
+ title?: string;
801
+ description?: string;
802
+ call_to_actions?: {
803
+ watch_now: {
804
+ url: string;
805
+ };
806
+ };
807
+ embeddable?: boolean;
808
+ };
809
+ mediaStats?: {
810
+ viewCount: number;
811
+ };
645
812
  video_info?: {
646
813
  aspect_ratio: number[];
647
814
  duration_millis: number;
@@ -678,218 +845,66 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
678
845
  followers: boolean;
679
846
  };
680
847
  };
681
- note_tweet?: {
682
- is_expandable: boolean;
683
- note_tweet_results: {
684
- result: {
685
- id: string;
686
- text: string;
687
- entity_set: {
688
- user_mentions: {
689
- id_str: string;
690
- name: string;
691
- screen_name: string;
692
- indices: number[];
693
- }[];
694
- urls: {
695
- display_url: string;
696
- expanded_url: string;
697
- url: string;
698
- indices: number[];
699
- }[];
700
- hashtags: {
701
- indices: number[];
702
- text: string;
703
- }[];
704
- symbols: unknown[];
705
- };
706
- richtext?: {
707
- richtext_tags: {
708
- from_index: number;
709
- to_index: number;
710
- richtext_types: string[];
711
- }[];
712
- };
713
- media?: {
714
- inline_media: unknown[];
715
- };
716
- };
717
- };
718
- };
719
- card?: {
720
- rest_id: string;
721
- legacy: {
722
- binding_values: {
723
- key: string;
724
- value: {
725
- string_value?: string;
726
- type: string;
727
- scribe_key?: string;
728
- user_value?: {
729
- id_str: string;
730
- path: unknown[];
731
- };
732
- image_value?: {
733
- height: number;
734
- width: number;
735
- url: string;
736
- };
737
- image_color_value?: {
738
- palette: {
739
- rgb: {
740
- blue: number;
741
- green: number;
742
- red: number;
848
+ quoted_status_result?: {
849
+ result: {
850
+ __typename: string;
851
+ rest_id: string;
852
+ core: {
853
+ user_results: {
854
+ result: {
855
+ __typename: string;
856
+ id: string;
857
+ rest_id: string;
858
+ affiliates_highlighted_label: {};
859
+ has_graduated_access: boolean;
860
+ is_blue_verified: boolean;
861
+ profile_image_shape: string;
862
+ legacy: {
863
+ followed_by?: boolean;
864
+ following?: boolean;
865
+ can_dm: boolean;
866
+ can_media_tag: boolean;
867
+ created_at: string;
868
+ default_profile: boolean;
869
+ default_profile_image: boolean;
870
+ description: string;
871
+ entities: {
872
+ description: {
873
+ urls: unknown[];
874
+ };
875
+ url: {
876
+ urls: {
877
+ display_url: string;
878
+ expanded_url: string;
879
+ url: string;
880
+ indices: number[];
881
+ }[];
882
+ };
743
883
  };
744
- percentage: number;
745
- }[];
746
- };
747
- };
748
- }[];
749
- card_platform: {
750
- platform: {
751
- audience: {
752
- name: string;
753
- };
754
- device: {
755
- name: string;
756
- version: string;
757
- };
758
- };
759
- };
760
- name: string;
761
- url: string;
762
- user_refs_results: {
763
- result: {
764
- __typename: string;
765
- id: string;
766
- rest_id: string;
767
- affiliates_highlighted_label: {};
768
- has_graduated_access: boolean;
769
- is_blue_verified: boolean;
770
- profile_image_shape: string;
771
- legacy: {
772
- can_dm: boolean;
773
- can_media_tag: boolean;
774
- created_at: string;
775
- default_profile: boolean;
776
- default_profile_image: boolean;
777
- description: string;
778
- entities: {
779
- description: {
780
- urls: {
781
- display_url: string;
782
- expanded_url: string;
783
- url: string;
784
- indices: number[];
785
- }[];
786
- };
787
- url: {
788
- urls: {
789
- display_url: string;
790
- expanded_url: string;
791
- url: string;
792
- indices: number[];
793
- }[];
794
- };
795
- };
796
- fast_followers_count: number;
797
- favourites_count: number;
798
- followers_count: number;
799
- friends_count: number;
800
- has_custom_timelines: boolean;
801
- is_translator: boolean;
802
- listed_count: number;
803
- location: string;
804
- media_count: number;
805
- name: string;
806
- normal_followers_count: number;
807
- pinned_tweet_ids_str: string[];
808
- possibly_sensitive: boolean;
809
- profile_banner_url: string;
810
- profile_image_url_https: string;
811
- profile_interstitial_type: string;
812
- screen_name: string;
813
- statuses_count: number;
814
- translator_type: string;
815
- url: string;
816
- verified: boolean;
817
- want_retweets: boolean;
818
- withheld_in_countries: unknown[];
819
- verified_type?: string;
820
- };
821
- };
822
- }[];
823
- };
824
- };
825
- unified_card?: {
826
- card_fetch_state: string;
827
- };
828
- quoted_status_result?: {
829
- result: {
830
- __typename: string;
831
- rest_id: string;
832
- core: {
833
- user_results: {
834
- result: {
835
- __typename: string;
836
- id: string;
837
- rest_id: string;
838
- affiliates_highlighted_label: {};
839
- has_graduated_access: boolean;
840
- is_blue_verified: boolean;
841
- profile_image_shape: string;
842
- legacy: {
843
- can_dm: boolean;
844
- can_media_tag: boolean;
845
- created_at: string;
846
- default_profile: boolean;
847
- default_profile_image: boolean;
848
- description: string;
849
- entities: {
850
- description: {
851
- urls: unknown[];
852
- };
853
- url: {
854
- urls: {
855
- display_url: string;
856
- expanded_url: string;
857
- url: string;
858
- indices: number[];
859
- }[];
860
- };
861
- };
862
- fast_followers_count: number;
863
- favourites_count: number;
864
- followers_count: number;
865
- friends_count: number;
866
- has_custom_timelines: boolean;
867
- is_translator: boolean;
868
- listed_count: number;
869
- location: string;
870
- media_count: number;
871
- name: string;
872
- normal_followers_count: number;
873
- pinned_tweet_ids_str: string[];
874
- possibly_sensitive: boolean;
875
- profile_banner_url: string;
876
- profile_image_url_https: string;
877
- profile_interstitial_type: string;
878
- screen_name: string;
879
- statuses_count: number;
880
- translator_type: string;
881
- url: string;
882
- verified: boolean;
883
- want_retweets: boolean;
884
- withheld_in_countries: unknown[];
885
- followed_by?: boolean;
886
- following?: boolean;
887
- };
888
- professional?: {
889
- rest_id: string;
890
- professional_type: string;
891
- category: unknown[];
892
- };
884
+ fast_followers_count: number;
885
+ favourites_count: number;
886
+ followers_count: number;
887
+ friends_count: number;
888
+ has_custom_timelines: boolean;
889
+ is_translator: boolean;
890
+ listed_count: number;
891
+ location: string;
892
+ media_count: number;
893
+ name: string;
894
+ normal_followers_count: number;
895
+ pinned_tweet_ids_str: string[];
896
+ possibly_sensitive: boolean;
897
+ profile_banner_url: string;
898
+ profile_image_url_https: string;
899
+ profile_interstitial_type: string;
900
+ screen_name: string;
901
+ statuses_count: number;
902
+ translator_type: string;
903
+ url: string;
904
+ verified: boolean;
905
+ want_retweets: boolean;
906
+ withheld_in_countries: unknown[];
907
+ };
893
908
  };
894
909
  };
895
910
  };
@@ -899,10 +914,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
899
914
  is_edit_eligible: boolean;
900
915
  edits_remaining: string;
901
916
  };
902
- edit_perspective?: {
903
- favorited: boolean;
904
- retweeted: boolean;
905
- };
906
917
  is_translatable: boolean;
907
918
  views: {
908
919
  count: string;
@@ -924,40 +935,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
924
935
  media_url_https: string;
925
936
  type: string;
926
937
  url: string;
927
- features: {
928
- large?: {
929
- faces: {
930
- x: number;
931
- y: number;
932
- h: number;
933
- w: number;
934
- }[];
935
- };
936
- medium?: {
937
- faces: {
938
- x: number;
939
- y: number;
940
- h: number;
941
- w: number;
942
- }[];
943
- };
944
- small?: {
945
- faces: {
946
- x: number;
947
- y: number;
948
- h: number;
949
- w: number;
950
- }[];
951
- };
952
- orig?: {
953
- faces: {
954
- x: number;
955
- y: number;
956
- h: number;
957
- w: number;
958
- }[];
959
- };
960
- };
938
+ features: {};
961
939
  sizes: {
962
940
  large: {
963
941
  h: number;
@@ -983,12 +961,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
983
961
  original_info: {
984
962
  height: number;
985
963
  width: number;
986
- focus_rects?: {
987
- x: number;
988
- y: number;
989
- w: number;
990
- h: number;
991
- }[];
992
964
  };
993
965
  }[];
994
966
  user_mentions: {
@@ -1003,10 +975,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1003
975
  url: string;
1004
976
  indices: number[];
1005
977
  }[];
1006
- hashtags: {
1007
- indices: number[];
1008
- text: string;
1009
- }[];
978
+ hashtags: unknown[];
1010
979
  symbols: unknown[];
1011
980
  };
1012
981
  extended_entities?: {
@@ -1022,40 +991,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1022
991
  ext_media_availability: {
1023
992
  status: string;
1024
993
  };
1025
- features: {
1026
- large?: {
1027
- faces: {
1028
- x: number;
1029
- y: number;
1030
- h: number;
1031
- w: number;
1032
- }[];
1033
- };
1034
- medium?: {
1035
- faces: {
1036
- x: number;
1037
- y: number;
1038
- h: number;
1039
- w: number;
1040
- }[];
1041
- };
1042
- small?: {
1043
- faces: {
1044
- x: number;
1045
- y: number;
1046
- h: number;
1047
- w: number;
1048
- }[];
1049
- };
1050
- orig?: {
1051
- faces: {
1052
- x: number;
1053
- y: number;
1054
- h: number;
1055
- w: number;
1056
- }[];
1057
- };
1058
- };
994
+ features: {};
1059
995
  sizes: {
1060
996
  large: {
1061
997
  h: number;
@@ -1081,24 +1017,11 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1081
1017
  original_info: {
1082
1018
  height: number;
1083
1019
  width: number;
1084
- focus_rects?: {
1085
- x: number;
1086
- y: number;
1087
- w: number;
1088
- h: number;
1089
- }[];
1090
- };
1091
- additional_media_info?: {
1092
- monetizable: boolean;
1093
- };
1094
- mediaStats?: {
1095
- viewCount: number;
1096
1020
  };
1097
- video_info?: {
1021
+ video_info: {
1098
1022
  aspect_ratio: number[];
1099
- duration_millis?: number;
1100
1023
  variants: {
1101
- bitrate?: number;
1024
+ bitrate: number;
1102
1025
  content_type: string;
1103
1026
  url: string;
1104
1027
  }[];
@@ -1108,6 +1031,9 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1108
1031
  favorite_count: number;
1109
1032
  favorited: boolean;
1110
1033
  full_text: string;
1034
+ in_reply_to_screen_name?: string;
1035
+ in_reply_to_status_id_str?: string;
1036
+ in_reply_to_user_id_str?: string;
1111
1037
  is_quote_status: boolean;
1112
1038
  lang: string;
1113
1039
  possibly_sensitive: boolean;
@@ -1118,9 +1044,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1118
1044
  retweeted: boolean;
1119
1045
  user_id_str: string;
1120
1046
  id_str: string;
1121
- in_reply_to_screen_name?: string;
1122
- in_reply_to_status_id_str?: string;
1123
- in_reply_to_user_id_str?: string;
1124
1047
  quoted_status_id_str?: string;
1125
1048
  quoted_status_permalink?: {
1126
1049
  url: string;
@@ -1136,33 +1059,50 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1136
1059
  };
1137
1060
  };
1138
1061
  };
1139
- };
1140
- };
1141
- extended_entities?: {
1142
- media: {
1143
- display_url: string;
1144
- expanded_url: string;
1145
- id_str: string;
1146
- indices: number[];
1147
- media_key: string;
1148
- media_url_https: string;
1149
- type: string;
1150
- url: string;
1151
- additional_media_info?: {
1152
- monetizable: boolean;
1153
- title?: string;
1154
- description?: string;
1155
- call_to_actions?: {
1156
- visit_site?: {
1157
- url: string;
1158
- };
1159
- watch_now?: {
1160
- url: string;
1062
+ card?: {
1063
+ rest_id: string;
1064
+ legacy: {
1065
+ binding_values: {
1066
+ key: string;
1067
+ value: {
1068
+ image_value?: {
1069
+ height: number;
1070
+ width: number;
1071
+ url: string;
1072
+ };
1073
+ type: string;
1074
+ string_value?: string;
1075
+ scribe_key?: string;
1076
+ user_value?: {
1077
+ id_str: string;
1078
+ path: unknown[];
1079
+ };
1080
+ image_color_value?: {
1081
+ palette: {
1082
+ rgb: {
1083
+ blue: number;
1084
+ green: number;
1085
+ red: number;
1086
+ };
1087
+ percentage: number;
1088
+ }[];
1089
+ };
1090
+ };
1091
+ }[];
1092
+ card_platform: {
1093
+ platform: {
1094
+ audience: {
1095
+ name: string;
1096
+ };
1097
+ device: {
1098
+ name: string;
1099
+ version: string;
1100
+ };
1101
+ };
1161
1102
  };
1162
- };
1163
- embeddable?: boolean;
1164
- source_user?: {
1165
- user_results: {
1103
+ name: string;
1104
+ url: string;
1105
+ user_refs_results: {
1166
1106
  result: {
1167
1107
  __typename: string;
1168
1108
  id: string;
@@ -1187,7 +1127,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1187
1127
  indices: number[];
1188
1128
  }[];
1189
1129
  };
1190
- url?: {
1130
+ url: {
1191
1131
  urls: {
1192
1132
  display_url: string;
1193
1133
  expanded_url: string;
@@ -1209,214 +1149,287 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1209
1149
  normal_followers_count: number;
1210
1150
  pinned_tweet_ids_str: string[];
1211
1151
  possibly_sensitive: boolean;
1212
- profile_banner_url?: string;
1152
+ profile_banner_url: string;
1213
1153
  profile_image_url_https: string;
1214
1154
  profile_interstitial_type: string;
1215
1155
  screen_name: string;
1216
1156
  statuses_count: number;
1217
1157
  translator_type: string;
1158
+ url: string;
1218
1159
  verified: boolean;
1160
+ verified_type?: string;
1219
1161
  want_retweets: boolean;
1220
1162
  withheld_in_countries: unknown[];
1221
- url?: string;
1222
- };
1223
- professional?: {
1224
- rest_id: string;
1225
- professional_type: string;
1226
- category: {
1227
- id: number;
1228
- name: string;
1229
- icon_name: string;
1230
- }[];
1231
1163
  };
1232
- super_follow_eligible?: boolean;
1233
1164
  };
1234
- };
1235
- };
1236
- };
1237
- mediaStats?: {
1238
- viewCount: number;
1239
- };
1240
- ext_media_availability: {
1241
- status: string;
1242
- };
1243
- features: {
1244
- large?: {
1245
- faces: {
1246
- x: number;
1247
- y: number;
1248
- h: number;
1249
- w: number;
1250
- }[];
1251
- };
1252
- medium?: {
1253
- faces: {
1254
- x: number;
1255
- y: number;
1256
- h: number;
1257
- w: number;
1258
- }[];
1259
- };
1260
- small?: {
1261
- faces: {
1262
- x: number;
1263
- y: number;
1264
- h: number;
1265
- w: number;
1266
- }[];
1267
- };
1268
- orig?: {
1269
- faces: {
1270
- x: number;
1271
- y: number;
1272
- h: number;
1273
- w: number;
1274
1165
  }[];
1275
1166
  };
1276
1167
  };
1277
- sizes: {
1278
- large: {
1279
- h: number;
1280
- w: number;
1281
- resize: string;
1282
- };
1283
- medium: {
1284
- h: number;
1285
- w: number;
1286
- resize: string;
1287
- };
1288
- small: {
1289
- h: number;
1290
- w: number;
1291
- resize: string;
1292
- };
1293
- thumb: {
1294
- h: number;
1295
- w: number;
1296
- resize: string;
1297
- };
1298
- };
1299
- original_info: {
1300
- height: number;
1301
- width: number;
1302
- focus_rects?: {
1303
- x: number;
1304
- y: number;
1305
- w: number;
1306
- h: number;
1307
- }[];
1168
+ unified_card?: {
1169
+ card_fetch_state: string;
1308
1170
  };
1309
- video_info?: {
1310
- aspect_ratio: number[];
1311
- duration_millis: number;
1312
- variants: {
1313
- bitrate?: number;
1314
- content_type: string;
1315
- url: string;
1316
- }[];
1171
+ note_tweet?: {
1172
+ is_expandable: boolean;
1173
+ note_tweet_results: {
1174
+ result: {
1175
+ id: string;
1176
+ text: string;
1177
+ entity_set: {
1178
+ user_mentions: {
1179
+ id_str: string;
1180
+ name: string;
1181
+ screen_name: string;
1182
+ indices: number[];
1183
+ }[];
1184
+ urls: {
1185
+ display_url: string;
1186
+ expanded_url: string;
1187
+ url: string;
1188
+ indices: number[];
1189
+ }[];
1190
+ hashtags: {
1191
+ indices: number[];
1192
+ text: string;
1193
+ }[];
1194
+ symbols: unknown[];
1195
+ };
1196
+ richtext: {
1197
+ richtext_tags: {
1198
+ from_index: number;
1199
+ to_index: number;
1200
+ richtext_types: string[];
1201
+ }[];
1202
+ };
1203
+ media: {
1204
+ inline_media: unknown[];
1205
+ };
1206
+ };
1207
+ };
1317
1208
  };
1318
- source_status_id_str?: string;
1319
- source_user_id_str?: string;
1320
- ext_alt_text?: string;
1321
- }[];
1209
+ };
1210
+ };
1211
+ scopes?: {
1212
+ followers: boolean;
1322
1213
  };
1323
- possibly_sensitive?: boolean;
1324
- possibly_sensitive_editable?: boolean;
1325
1214
  quoted_status_id_str?: string;
1326
1215
  quoted_status_permalink?: {
1327
1216
  url: string;
1328
1217
  expanded: string;
1329
1218
  display: string;
1330
1219
  };
1331
- scopes?: {
1332
- followers: boolean;
1333
- };
1334
1220
  };
1335
- quoted_status_result?: {
1336
- result: {
1337
- __typename: string;
1338
- rest_id: string;
1339
- core: {
1340
- user_results: {
1341
- result: {
1342
- __typename: string;
1343
- id: string;
1344
- rest_id: string;
1345
- affiliates_highlighted_label: {};
1346
- has_graduated_access: boolean;
1347
- is_blue_verified: boolean;
1348
- profile_image_shape: string;
1349
- legacy: {
1350
- can_dm: boolean;
1351
- can_media_tag: boolean;
1352
- created_at: string;
1353
- default_profile: boolean;
1354
- default_profile_image: boolean;
1355
- description: string;
1356
- entities: {
1357
- description: {
1358
- urls: {
1359
- display_url: string;
1360
- expanded_url: string;
1361
- url: string;
1362
- indices: number[];
1363
- }[];
1364
- };
1365
- url?: {
1366
- urls: {
1367
- display_url: string;
1368
- expanded_url: string;
1369
- url: string;
1370
- indices: number[];
1371
- }[];
1372
- };
1221
+ card?: {
1222
+ rest_id: string;
1223
+ legacy: {
1224
+ binding_values: {
1225
+ key: string;
1226
+ value: {
1227
+ string_value?: string;
1228
+ type: string;
1229
+ scribe_key?: string;
1230
+ image_value?: {
1231
+ height: number;
1232
+ width: number;
1233
+ url: string;
1234
+ };
1235
+ user_value?: {
1236
+ id_str: string;
1237
+ path: unknown[];
1238
+ };
1239
+ image_color_value?: {
1240
+ palette: {
1241
+ rgb: {
1242
+ blue: number;
1243
+ green: number;
1244
+ red: number;
1373
1245
  };
1374
- fast_followers_count: number;
1375
- favourites_count: number;
1376
- followers_count: number;
1377
- friends_count: number;
1378
- has_custom_timelines: boolean;
1379
- is_translator: boolean;
1380
- listed_count: number;
1381
- location: string;
1382
- media_count: number;
1383
- name: string;
1384
- normal_followers_count: number;
1385
- pinned_tweet_ids_str: string[];
1386
- possibly_sensitive: boolean;
1387
- profile_banner_url?: string;
1388
- profile_image_url_https: string;
1389
- profile_interstitial_type: string;
1390
- screen_name: string;
1391
- statuses_count: number;
1392
- translator_type: string;
1393
- verified: boolean;
1394
- want_retweets: boolean;
1395
- withheld_in_countries: unknown[];
1396
- url?: string;
1397
- verified_type?: string;
1398
- };
1399
- professional?: {
1400
- rest_id: string;
1401
- professional_type: string;
1402
- category: {
1403
- id: number;
1404
- name: string;
1405
- icon_name: string;
1406
- }[];
1407
- };
1246
+ percentage: number;
1247
+ }[];
1248
+ };
1249
+ };
1250
+ }[];
1251
+ card_platform: {
1252
+ platform: {
1253
+ audience: {
1254
+ name: string;
1255
+ };
1256
+ device: {
1257
+ name: string;
1258
+ version: string;
1408
1259
  };
1409
1260
  };
1410
1261
  };
1411
- edit_control: {
1412
- edit_tweet_ids: string[];
1413
- editable_until_msecs: string;
1414
- is_edit_eligible: boolean;
1415
- edits_remaining: string;
1416
- };
1417
- edit_perspective?: {
1418
- favorited: boolean;
1419
- retweeted: boolean;
1262
+ name: string;
1263
+ url: string;
1264
+ user_refs_results: {
1265
+ result: {
1266
+ __typename: string;
1267
+ id: string;
1268
+ rest_id: string;
1269
+ affiliates_highlighted_label: {
1270
+ label?: {
1271
+ url: {
1272
+ url: string;
1273
+ urlType: string;
1274
+ };
1275
+ badge: {
1276
+ url: string;
1277
+ };
1278
+ description: string;
1279
+ userLabelType: string;
1280
+ userLabelDisplayType: string;
1281
+ };
1282
+ };
1283
+ has_graduated_access: boolean;
1284
+ is_blue_verified: boolean;
1285
+ profile_image_shape: string;
1286
+ legacy: {
1287
+ can_dm: boolean;
1288
+ can_media_tag: boolean;
1289
+ created_at: string;
1290
+ default_profile: boolean;
1291
+ default_profile_image: boolean;
1292
+ description: string;
1293
+ entities: {
1294
+ description: {
1295
+ urls: {
1296
+ display_url: string;
1297
+ expanded_url: string;
1298
+ url: string;
1299
+ indices: number[];
1300
+ }[];
1301
+ };
1302
+ url: {
1303
+ urls: {
1304
+ display_url: string;
1305
+ expanded_url: string;
1306
+ url: string;
1307
+ indices: number[];
1308
+ }[];
1309
+ };
1310
+ };
1311
+ fast_followers_count: number;
1312
+ favourites_count: number;
1313
+ followers_count: number;
1314
+ friends_count: number;
1315
+ has_custom_timelines: boolean;
1316
+ is_translator: boolean;
1317
+ listed_count: number;
1318
+ location: string;
1319
+ media_count: number;
1320
+ name: string;
1321
+ normal_followers_count: number;
1322
+ pinned_tweet_ids_str: string[];
1323
+ possibly_sensitive: boolean;
1324
+ profile_banner_url: string;
1325
+ profile_image_url_https: string;
1326
+ profile_interstitial_type: string;
1327
+ screen_name: string;
1328
+ statuses_count: number;
1329
+ translator_type: string;
1330
+ url: string;
1331
+ verified: boolean;
1332
+ verified_type?: string;
1333
+ want_retweets: boolean;
1334
+ withheld_in_countries: unknown[];
1335
+ };
1336
+ professional?: {
1337
+ rest_id: string;
1338
+ professional_type: string;
1339
+ category: {
1340
+ id: number;
1341
+ name: string;
1342
+ icon_name: string;
1343
+ }[];
1344
+ };
1345
+ };
1346
+ }[];
1347
+ };
1348
+ };
1349
+ unified_card?: {
1350
+ card_fetch_state: string;
1351
+ };
1352
+ quoted_status_result?: {
1353
+ result: {
1354
+ __typename: string;
1355
+ rest_id: string;
1356
+ core: {
1357
+ user_results: {
1358
+ result: {
1359
+ __typename: string;
1360
+ id: string;
1361
+ rest_id: string;
1362
+ affiliates_highlighted_label: {};
1363
+ has_graduated_access: boolean;
1364
+ is_blue_verified: boolean;
1365
+ profile_image_shape: string;
1366
+ legacy: {
1367
+ can_dm: boolean;
1368
+ can_media_tag: boolean;
1369
+ created_at: string;
1370
+ default_profile: boolean;
1371
+ default_profile_image: boolean;
1372
+ description: string;
1373
+ entities: {
1374
+ description: {
1375
+ urls: {
1376
+ display_url: string;
1377
+ expanded_url: string;
1378
+ url: string;
1379
+ indices: number[];
1380
+ }[];
1381
+ };
1382
+ url?: {
1383
+ urls: {
1384
+ display_url: string;
1385
+ expanded_url: string;
1386
+ url: string;
1387
+ indices: number[];
1388
+ }[];
1389
+ };
1390
+ };
1391
+ fast_followers_count: number;
1392
+ favourites_count: number;
1393
+ followers_count: number;
1394
+ friends_count: number;
1395
+ has_custom_timelines: boolean;
1396
+ is_translator: boolean;
1397
+ listed_count: number;
1398
+ location: string;
1399
+ media_count: number;
1400
+ name: string;
1401
+ normal_followers_count: number;
1402
+ pinned_tweet_ids_str: string[];
1403
+ possibly_sensitive: boolean;
1404
+ profile_banner_url?: string;
1405
+ profile_image_url_https: string;
1406
+ profile_interstitial_type: string;
1407
+ screen_name: string;
1408
+ statuses_count: number;
1409
+ translator_type: string;
1410
+ verified: boolean;
1411
+ want_retweets: boolean;
1412
+ withheld_in_countries: unknown[];
1413
+ url?: string;
1414
+ verified_type?: string;
1415
+ };
1416
+ professional?: {
1417
+ rest_id: string;
1418
+ professional_type: string;
1419
+ category: {
1420
+ id: number;
1421
+ name: string;
1422
+ icon_name: string;
1423
+ }[];
1424
+ };
1425
+ };
1426
+ };
1427
+ };
1428
+ edit_control: {
1429
+ edit_tweet_ids: string[];
1430
+ editable_until_msecs: string;
1431
+ is_edit_eligible: boolean;
1432
+ edits_remaining: string;
1420
1433
  };
1421
1434
  is_translatable: boolean;
1422
1435
  views: {
@@ -1431,23 +1444,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1431
1444
  conversation_id_str: string;
1432
1445
  display_text_range: number[];
1433
1446
  entities: {
1434
- user_mentions: {
1435
- id_str: string;
1436
- name: string;
1437
- screen_name: string;
1438
- indices: number[];
1439
- }[];
1440
- urls: {
1441
- display_url: string;
1442
- expanded_url: string;
1443
- url: string;
1444
- indices: number[];
1445
- }[];
1446
- hashtags: {
1447
- indices: number[];
1448
- text: string;
1449
- }[];
1450
- symbols: unknown[];
1451
1447
  media?: {
1452
1448
  display_url: string;
1453
1449
  expanded_url: string;
@@ -1505,18 +1501,24 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1505
1501
  source_status_id_str?: string;
1506
1502
  source_user_id_str?: string;
1507
1503
  }[];
1504
+ user_mentions: {
1505
+ id_str: string;
1506
+ name: string;
1507
+ screen_name: string;
1508
+ indices: number[];
1509
+ }[];
1510
+ urls: {
1511
+ display_url: string;
1512
+ expanded_url: string;
1513
+ url: string;
1514
+ indices: number[];
1515
+ }[];
1516
+ hashtags: {
1517
+ indices: number[];
1518
+ text: string;
1519
+ }[];
1520
+ symbols: unknown[];
1508
1521
  };
1509
- favorite_count: number;
1510
- favorited: boolean;
1511
- full_text: string;
1512
- is_quote_status: boolean;
1513
- lang: string;
1514
- quote_count: number;
1515
- reply_count: number;
1516
- retweet_count: number;
1517
- retweeted: boolean;
1518
- user_id_str: string;
1519
- id_str: string;
1520
1522
  extended_entities?: {
1521
1523
  media: {
1522
1524
  display_url: string;
@@ -1580,8 +1582,19 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1580
1582
  source_user_id_str?: string;
1581
1583
  }[];
1582
1584
  };
1585
+ favorite_count: number;
1586
+ favorited: boolean;
1587
+ full_text: string;
1588
+ is_quote_status: boolean;
1589
+ lang: string;
1583
1590
  possibly_sensitive?: boolean;
1584
1591
  possibly_sensitive_editable?: boolean;
1592
+ quote_count: number;
1593
+ reply_count: number;
1594
+ retweet_count: number;
1595
+ retweeted: boolean;
1596
+ user_id_str: string;
1597
+ id_str: string;
1585
1598
  quoted_status_id_str?: string;
1586
1599
  quoted_status_permalink?: {
1587
1600
  url: string;
@@ -1595,562 +1608,196 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
1595
1608
  rest_id: string;
1596
1609
  };
1597
1610
  };
1598
- };
1599
- };
1600
- tweet?: {
1601
- rest_id: string;
1602
- core: {
1603
- user_results: {
1604
- result: {
1605
- __typename: string;
1606
- id: string;
1607
- rest_id: string;
1608
- affiliates_highlighted_label: {
1609
- label?: {
1610
- url: {
1611
- url: string;
1612
- urlType: string;
1613
- };
1614
- badge: {
1611
+ card?: {
1612
+ rest_id: string;
1613
+ legacy: {
1614
+ binding_values: {
1615
+ key: string;
1616
+ value: {
1617
+ image_value?: {
1618
+ height: number;
1619
+ width: number;
1615
1620
  url: string;
1616
1621
  };
1617
- description: string;
1618
- userLabelType: string;
1619
- userLabelDisplayType: string;
1620
- };
1621
- };
1622
- has_graduated_access: boolean;
1623
- is_blue_verified: boolean;
1624
- profile_image_shape: string;
1625
- legacy: {
1626
- following?: boolean;
1627
- can_dm: boolean;
1628
- can_media_tag: boolean;
1629
- created_at: string;
1630
- default_profile: boolean;
1631
- default_profile_image: boolean;
1632
- description: string;
1633
- entities: {
1634
- description: {
1635
- urls: {
1636
- display_url: string;
1637
- expanded_url: string;
1638
- url: string;
1639
- indices: number[];
1640
- }[];
1622
+ type: string;
1623
+ string_value?: string;
1624
+ scribe_key?: string;
1625
+ user_value?: {
1626
+ id_str: string;
1627
+ path: unknown[];
1641
1628
  };
1642
- url?: {
1643
- urls: {
1644
- display_url: string;
1645
- expanded_url: string;
1646
- url: string;
1647
- indices: number[];
1629
+ image_color_value?: {
1630
+ palette: {
1631
+ rgb: {
1632
+ blue: number;
1633
+ green: number;
1634
+ red: number;
1635
+ };
1636
+ percentage: number;
1648
1637
  }[];
1649
1638
  };
1650
1639
  };
1651
- fast_followers_count: number;
1652
- favourites_count: number;
1653
- followers_count: number;
1654
- friends_count: number;
1655
- has_custom_timelines: boolean;
1656
- is_translator: boolean;
1657
- listed_count: number;
1658
- location: string;
1659
- media_count: number;
1660
- name: string;
1661
- normal_followers_count: number;
1662
- pinned_tweet_ids_str: string[];
1663
- possibly_sensitive: boolean;
1664
- profile_banner_url: string;
1665
- profile_image_url_https: string;
1666
- profile_interstitial_type: string;
1667
- screen_name: string;
1668
- statuses_count: number;
1669
- translator_type: string;
1670
- verified: boolean;
1671
- want_retweets: boolean;
1672
- withheld_in_countries: unknown[];
1673
- followed_by?: boolean;
1674
- url?: string;
1675
- verified_type?: string;
1676
- };
1677
- professional?: {
1678
- rest_id: string;
1679
- professional_type: string;
1680
- category: {
1681
- id: number;
1682
- name: string;
1683
- icon_name: string;
1684
- }[];
1685
- };
1686
- };
1687
- };
1688
- };
1689
- edit_control: {
1690
- edit_tweet_ids: string[];
1691
- editable_until_msecs: string;
1692
- is_edit_eligible: boolean;
1693
- edits_remaining: string;
1694
- };
1695
- edit_perspective?: {
1696
- favorited: boolean;
1697
- retweeted: boolean;
1698
- };
1699
- is_translatable: boolean;
1700
- views: {
1701
- state: string;
1702
- count?: string;
1703
- };
1704
- source: string;
1705
- legacy: {
1706
- bookmark_count: number;
1707
- bookmarked: boolean;
1708
- created_at: string;
1709
- conversation_control: {
1710
- policy: string;
1711
- conversation_owner_results: {
1712
- result: {
1713
- __typename: string;
1714
- legacy: {
1715
- screen_name: string;
1640
+ }[];
1641
+ card_platform: {
1642
+ platform: {
1643
+ audience: {
1644
+ name: string;
1645
+ };
1646
+ device: {
1647
+ name: string;
1648
+ version: string;
1649
+ };
1716
1650
  };
1717
1651
  };
1718
- };
1719
- };
1720
- conversation_id_str: string;
1721
- display_text_range: number[];
1722
- entities: {
1723
- user_mentions: {
1724
- id_str: string;
1725
1652
  name: string;
1726
- screen_name: string;
1727
- indices: number[];
1728
- }[];
1729
- urls: {
1730
- display_url: string;
1731
- expanded_url: string;
1732
- url: string;
1733
- indices: number[];
1734
- }[];
1735
- hashtags: {
1736
- indices: number[];
1737
- text: string;
1738
- }[];
1739
- symbols: unknown[];
1740
- media?: {
1741
- display_url: string;
1742
- expanded_url: string;
1743
- id_str: string;
1744
- indices: number[];
1745
- media_url_https: string;
1746
- type: string;
1747
1653
  url: string;
1748
- features: {};
1749
- sizes: {
1750
- large: {
1751
- h: number;
1752
- w: number;
1753
- resize: string;
1754
- };
1755
- medium: {
1756
- h: number;
1757
- w: number;
1758
- resize: string;
1759
- };
1760
- small: {
1761
- h: number;
1762
- w: number;
1763
- resize: string;
1764
- };
1765
- thumb: {
1766
- h: number;
1767
- w: number;
1768
- resize: string;
1769
- };
1770
- };
1771
- original_info: {
1772
- height: number;
1773
- width: number;
1774
- };
1775
- }[];
1776
- };
1777
- favorite_count: number;
1778
- favorited: boolean;
1779
- full_text: string;
1780
- is_quote_status: boolean;
1781
- lang: string;
1782
- limited_actions: string;
1783
- quote_count: number;
1784
- reply_count: number;
1785
- retweet_count: number;
1786
- retweeted: boolean;
1787
- user_id_str: string;
1788
- id_str: string;
1789
- retweeted_status_result?: {
1790
- result: {
1791
- __typename: string;
1792
- tweet: {
1793
- rest_id: string;
1794
- core: {
1795
- user_results: {
1796
- result: {
1797
- __typename: string;
1798
- id: string;
1799
- rest_id: string;
1800
- affiliates_highlighted_label: {};
1801
- has_graduated_access: boolean;
1802
- is_blue_verified: boolean;
1803
- profile_image_shape: string;
1804
- legacy: {
1805
- can_dm: boolean;
1806
- can_media_tag: boolean;
1807
- created_at: string;
1808
- default_profile: boolean;
1809
- default_profile_image: boolean;
1810
- description: string;
1811
- entities: {
1812
- description: {
1813
- urls: {
1814
- display_url: string;
1815
- expanded_url: string;
1816
- url: string;
1817
- indices: number[];
1818
- }[];
1819
- };
1820
- url?: {
1821
- urls: {
1822
- display_url: string;
1823
- expanded_url: string;
1824
- url: string;
1825
- indices: number[];
1826
- }[];
1827
- };
1828
- };
1829
- fast_followers_count: number;
1830
- favourites_count: number;
1831
- followers_count: number;
1832
- friends_count: number;
1833
- has_custom_timelines: boolean;
1834
- is_translator: boolean;
1835
- listed_count: number;
1836
- location: string;
1837
- media_count: number;
1838
- name: string;
1839
- normal_followers_count: number;
1840
- pinned_tweet_ids_str: string[];
1841
- possibly_sensitive: boolean;
1842
- profile_banner_url: string;
1843
- profile_image_url_https: string;
1844
- profile_interstitial_type: string;
1845
- screen_name: string;
1846
- statuses_count: number;
1847
- translator_type: string;
1848
- url?: string;
1849
- verified: boolean;
1850
- want_retweets: boolean;
1851
- withheld_in_countries: unknown[];
1852
- };
1853
- professional?: {
1854
- rest_id: string;
1855
- professional_type: string;
1856
- category: {
1857
- id: number;
1858
- name: string;
1859
- icon_name: string;
1860
- }[];
1861
- };
1862
- };
1863
- };
1864
- };
1865
- edit_control: {
1866
- edit_tweet_ids: string[];
1867
- editable_until_msecs: string;
1868
- is_edit_eligible: boolean;
1869
- edits_remaining: string;
1870
- };
1871
- edit_perspective: {
1872
- favorited: boolean;
1873
- retweeted: boolean;
1874
- };
1875
- is_translatable: boolean;
1876
- views: {
1877
- count: string;
1878
- state: string;
1879
- };
1880
- source: string;
1881
- legacy: {
1882
- bookmark_count: number;
1883
- bookmarked: boolean;
1884
- created_at: string;
1885
- conversation_control: {
1886
- policy: string;
1887
- conversation_owner_results: {
1888
- result: {
1889
- __typename: string;
1890
- legacy: {
1891
- screen_name: string;
1892
- };
1893
- };
1894
- };
1895
- };
1896
- conversation_id_str: string;
1897
- display_text_range: number[];
1898
- entities: {
1899
- media?: {
1900
- display_url: string;
1901
- expanded_url: string;
1902
- id_str: string;
1903
- indices: number[];
1904
- media_url_https: string;
1905
- type: string;
1906
- url: string;
1907
- features: {
1908
- large: {
1909
- faces: unknown[];
1910
- };
1911
- medium: {
1912
- faces: unknown[];
1913
- };
1914
- small: {
1915
- faces: unknown[];
1916
- };
1917
- orig: {
1918
- faces: unknown[];
1919
- };
1920
- };
1921
- sizes: {
1922
- large: {
1923
- h: number;
1924
- w: number;
1925
- resize: string;
1926
- };
1927
- medium: {
1928
- h: number;
1929
- w: number;
1930
- resize: string;
1931
- };
1932
- small: {
1933
- h: number;
1934
- w: number;
1935
- resize: string;
1936
- };
1937
- thumb: {
1938
- h: number;
1939
- w: number;
1940
- resize: string;
1941
- };
1942
- };
1943
- original_info: {
1944
- height: number;
1945
- width: number;
1946
- focus_rects: {
1947
- x: number;
1948
- y: number;
1949
- w: number;
1950
- h: number;
1951
- }[];
1952
- };
1953
- }[];
1954
- user_mentions: unknown[];
1955
- urls: {
1956
- display_url: string;
1957
- expanded_url: string;
1958
- url: string;
1959
- indices: number[];
1960
- }[];
1961
- hashtags: {
1962
- indices: number[];
1963
- text: string;
1964
- }[];
1965
- symbols: unknown[];
1966
- };
1967
- extended_entities?: {
1968
- media: {
1969
- display_url: string;
1970
- expanded_url: string;
1971
- id_str: string;
1972
- indices: number[];
1973
- media_key: string;
1974
- media_url_https: string;
1975
- type: string;
1976
- url: string;
1977
- ext_media_availability: {
1978
- status: string;
1979
- };
1980
- features: {
1981
- large: {
1982
- faces: unknown[];
1983
- };
1984
- medium: {
1985
- faces: unknown[];
1986
- };
1987
- small: {
1988
- faces: unknown[];
1989
- };
1990
- orig: {
1991
- faces: unknown[];
1992
- };
1993
- };
1994
- sizes: {
1995
- large: {
1996
- h: number;
1997
- w: number;
1998
- resize: string;
1999
- };
2000
- medium: {
2001
- h: number;
2002
- w: number;
2003
- resize: string;
2004
- };
2005
- small: {
2006
- h: number;
2007
- w: number;
2008
- resize: string;
2009
- };
2010
- thumb: {
2011
- h: number;
2012
- w: number;
2013
- resize: string;
2014
- };
2015
- };
2016
- original_info: {
2017
- height: number;
2018
- width: number;
2019
- focus_rects: {
2020
- x: number;
2021
- y: number;
2022
- w: number;
2023
- h: number;
2024
- }[];
1654
+ user_refs_results: {
1655
+ result: {
1656
+ __typename: string;
1657
+ id: string;
1658
+ rest_id: string;
1659
+ affiliates_highlighted_label: {};
1660
+ has_graduated_access: boolean;
1661
+ is_blue_verified: boolean;
1662
+ profile_image_shape: string;
1663
+ legacy: {
1664
+ can_dm: boolean;
1665
+ can_media_tag: boolean;
1666
+ created_at: string;
1667
+ default_profile: boolean;
1668
+ default_profile_image: boolean;
1669
+ description: string;
1670
+ entities: {
1671
+ description: {
1672
+ urls: unknown[];
2025
1673
  };
2026
- }[];
2027
- };
2028
- favorite_count: number;
2029
- favorited: boolean;
2030
- full_text: string;
2031
- is_quote_status: boolean;
2032
- lang: string;
2033
- limited_actions: string;
2034
- possibly_sensitive?: boolean;
2035
- possibly_sensitive_editable?: boolean;
2036
- quote_count: number;
2037
- reply_count: number;
2038
- retweet_count: number;
2039
- retweeted: boolean;
2040
- user_id_str: string;
2041
- id_str: string;
2042
- };
2043
- note_tweet?: {
2044
- is_expandable: boolean;
2045
- note_tweet_results: {
2046
- result: {
2047
- id: string;
2048
- text: string;
2049
- entity_set: {
2050
- user_mentions: unknown[];
1674
+ url: {
2051
1675
  urls: {
2052
1676
  display_url: string;
2053
1677
  expanded_url: string;
2054
1678
  url: string;
2055
1679
  indices: number[];
2056
1680
  }[];
2057
- hashtags: unknown[];
2058
- symbols: unknown[];
2059
- };
2060
- richtext: {
2061
- richtext_tags: {
2062
- from_index: number;
2063
- to_index: number;
2064
- richtext_types: string[];
2065
- }[];
2066
- };
2067
- media: {
2068
- inline_media: unknown[];
2069
1681
  };
2070
1682
  };
1683
+ fast_followers_count: number;
1684
+ favourites_count: number;
1685
+ followers_count: number;
1686
+ friends_count: number;
1687
+ has_custom_timelines: boolean;
1688
+ is_translator: boolean;
1689
+ listed_count: number;
1690
+ location: string;
1691
+ media_count: number;
1692
+ name: string;
1693
+ normal_followers_count: number;
1694
+ pinned_tweet_ids_str: unknown[];
1695
+ possibly_sensitive: boolean;
1696
+ profile_banner_url: string;
1697
+ profile_image_url_https: string;
1698
+ profile_interstitial_type: string;
1699
+ screen_name: string;
1700
+ statuses_count: number;
1701
+ translator_type: string;
1702
+ url: string;
1703
+ verified: boolean;
1704
+ want_retweets: boolean;
1705
+ withheld_in_countries: unknown[];
2071
1706
  };
2072
1707
  };
2073
- };
2074
- limitedActionResults: {
2075
- limited_actions: {
2076
- action: string;
2077
- prompt: {
2078
- __typename: string;
2079
- cta_type: string;
2080
- headline: {
2081
- text: string;
2082
- entities: unknown[];
2083
- };
2084
- subtext: {
2085
- text: string;
2086
- entities: unknown[];
2087
- };
2088
- };
2089
- }[];
2090
- };
1708
+ }[];
2091
1709
  };
2092
1710
  };
2093
- possibly_sensitive?: boolean;
2094
- possibly_sensitive_editable?: boolean;
2095
- scopes?: {
2096
- followers: boolean;
1711
+ unified_card?: {
1712
+ card_fetch_state: string;
2097
1713
  };
2098
- extended_entities?: {
2099
- media: {
2100
- display_url: string;
2101
- expanded_url: string;
2102
- id_str: string;
2103
- indices: number[];
2104
- media_key: string;
2105
- media_url_https: string;
2106
- type: string;
2107
- url: string;
2108
- additional_media_info: {
2109
- monetizable: boolean;
2110
- };
2111
- mediaStats: {
2112
- viewCount: number;
2113
- };
2114
- ext_media_availability: {
2115
- status: string;
2116
- };
2117
- features: {};
2118
- sizes: {
2119
- large: {
2120
- h: number;
2121
- w: number;
2122
- resize: string;
2123
- };
2124
- medium: {
2125
- h: number;
2126
- w: number;
2127
- resize: string;
2128
- };
2129
- small: {
2130
- h: number;
2131
- w: number;
2132
- resize: string;
2133
- };
2134
- thumb: {
2135
- h: number;
2136
- w: number;
2137
- resize: string;
1714
+ };
1715
+ };
1716
+ tweet?: {
1717
+ rest_id: string;
1718
+ core: {
1719
+ user_results: {
1720
+ result: {
1721
+ __typename: string;
1722
+ id: string;
1723
+ rest_id: string;
1724
+ affiliates_highlighted_label: {
1725
+ label?: {
1726
+ url: {
1727
+ url: string;
1728
+ urlType: string;
1729
+ };
1730
+ badge: {
1731
+ url: string;
1732
+ };
1733
+ description: string;
1734
+ userLabelType: string;
1735
+ userLabelDisplayType: string;
2138
1736
  };
2139
1737
  };
2140
- original_info: {
2141
- height: number;
2142
- width: number;
1738
+ has_graduated_access: boolean;
1739
+ is_blue_verified: boolean;
1740
+ profile_image_shape: string;
1741
+ legacy: {
1742
+ can_dm: boolean;
1743
+ can_media_tag: boolean;
1744
+ created_at: string;
1745
+ default_profile: boolean;
1746
+ default_profile_image: boolean;
1747
+ description: string;
1748
+ entities: {
1749
+ description: {
1750
+ urls: {
1751
+ display_url: string;
1752
+ expanded_url: string;
1753
+ url: string;
1754
+ indices: number[];
1755
+ }[];
1756
+ };
1757
+ url: {
1758
+ urls: {
1759
+ display_url: string;
1760
+ expanded_url: string;
1761
+ url: string;
1762
+ indices: number[];
1763
+ }[];
1764
+ };
1765
+ };
1766
+ fast_followers_count: number;
1767
+ favourites_count: number;
1768
+ followers_count: number;
1769
+ friends_count: number;
1770
+ has_custom_timelines: boolean;
1771
+ is_translator: boolean;
1772
+ listed_count: number;
1773
+ location: string;
1774
+ media_count: number;
1775
+ name: string;
1776
+ normal_followers_count: number;
1777
+ pinned_tweet_ids_str: string[];
1778
+ possibly_sensitive: boolean;
1779
+ profile_banner_url: string;
1780
+ profile_image_url_https: string;
1781
+ profile_interstitial_type: string;
1782
+ screen_name: string;
1783
+ statuses_count: number;
1784
+ translator_type: string;
1785
+ url: string;
1786
+ verified: boolean;
1787
+ verified_type?: string;
1788
+ want_retweets: boolean;
1789
+ withheld_in_countries: unknown[];
2143
1790
  };
2144
- video_info: {
2145
- aspect_ratio: number[];
2146
- duration_millis: number;
2147
- variants: {
2148
- content_type: string;
2149
- url: string;
2150
- bitrate?: number;
1791
+ professional?: {
1792
+ rest_id: string;
1793
+ professional_type: string;
1794
+ category: {
1795
+ id: number;
1796
+ name: string;
1797
+ icon_name: string;
2151
1798
  }[];
2152
1799
  };
2153
- }[];
1800
+ };
2154
1801
  };
2155
1802
  };
2156
1803
  card?: {
@@ -2183,154 +1830,177 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2183
1830
  unified_card?: {
2184
1831
  card_fetch_state: string;
2185
1832
  };
2186
- };
2187
- limitedActionResults?: {
2188
- limited_actions: {
2189
- action: string;
2190
- prompt: {
2191
- __typename: string;
2192
- cta_type: string;
2193
- headline: {
2194
- text: string;
2195
- entities: unknown[];
2196
- };
2197
- subtext: {
2198
- text: string;
2199
- entities: unknown[];
1833
+ edit_control: {
1834
+ edit_tweet_ids: string[];
1835
+ editable_until_msecs: string;
1836
+ is_edit_eligible: boolean;
1837
+ edits_remaining: string;
1838
+ };
1839
+ is_translatable: boolean;
1840
+ views: {
1841
+ count: string;
1842
+ state: string;
1843
+ };
1844
+ source: string;
1845
+ legacy: {
1846
+ bookmark_count: number;
1847
+ bookmarked: boolean;
1848
+ created_at: string;
1849
+ conversation_control: {
1850
+ policy: string;
1851
+ conversation_owner_results: {
1852
+ result: {
1853
+ __typename: string;
1854
+ legacy: {
1855
+ screen_name: string;
1856
+ };
1857
+ };
2200
1858
  };
2201
1859
  };
2202
- }[];
2203
- };
2204
- card?: {
2205
- rest_id: string;
2206
- legacy: {
2207
- binding_values: {
2208
- key: string;
2209
- value: {
2210
- string_value?: string;
1860
+ conversation_id_str: string;
1861
+ display_text_range: number[];
1862
+ entities: {
1863
+ user_mentions: unknown[];
1864
+ urls: {
1865
+ display_url: string;
1866
+ expanded_url: string;
1867
+ url: string;
1868
+ indices: number[];
1869
+ }[];
1870
+ hashtags: {
1871
+ indices: number[];
1872
+ text: string;
1873
+ }[];
1874
+ symbols: unknown[];
1875
+ media?: {
1876
+ display_url: string;
1877
+ expanded_url: string;
1878
+ id_str: string;
1879
+ indices: number[];
1880
+ media_url_https: string;
2211
1881
  type: string;
2212
- scribe_key?: string;
2213
- user_value?: {
2214
- id_str: string;
2215
- path: unknown[];
1882
+ url: string;
1883
+ features: {};
1884
+ sizes: {
1885
+ large: {
1886
+ h: number;
1887
+ w: number;
1888
+ resize: string;
1889
+ };
1890
+ medium: {
1891
+ h: number;
1892
+ w: number;
1893
+ resize: string;
1894
+ };
1895
+ small: {
1896
+ h: number;
1897
+ w: number;
1898
+ resize: string;
1899
+ };
1900
+ thumb: {
1901
+ h: number;
1902
+ w: number;
1903
+ resize: string;
1904
+ };
2216
1905
  };
2217
- image_value?: {
1906
+ original_info: {
2218
1907
  height: number;
2219
1908
  width: number;
2220
- url: string;
2221
- };
2222
- image_color_value?: {
2223
- palette: {
2224
- rgb: {
2225
- blue: number;
2226
- green: number;
2227
- red: number;
2228
- };
2229
- percentage: number;
2230
- }[];
2231
- };
2232
- };
2233
- }[];
2234
- card_platform: {
2235
- platform: {
2236
- audience: {
2237
- name: string;
2238
1909
  };
2239
- device: {
2240
- name: string;
2241
- version: string;
2242
- };
2243
- };
1910
+ }[];
2244
1911
  };
2245
- name: string;
2246
- url: string;
2247
- user_refs_results: {
2248
- result: {
2249
- __typename: string;
2250
- id: string;
2251
- rest_id: string;
2252
- affiliates_highlighted_label: {
2253
- label?: {
2254
- url: {
2255
- url: string;
2256
- urlType: string;
2257
- };
2258
- badge: {
2259
- url: string;
2260
- };
2261
- description: string;
2262
- userLabelType: string;
2263
- userLabelDisplayType: string;
2264
- };
1912
+ favorite_count: number;
1913
+ favorited: boolean;
1914
+ full_text: string;
1915
+ is_quote_status: boolean;
1916
+ lang: string;
1917
+ limited_actions: string;
1918
+ possibly_sensitive: boolean;
1919
+ possibly_sensitive_editable: boolean;
1920
+ quote_count: number;
1921
+ reply_count: number;
1922
+ retweet_count: number;
1923
+ retweeted: boolean;
1924
+ scopes?: {
1925
+ followers: boolean;
1926
+ };
1927
+ user_id_str: string;
1928
+ id_str: string;
1929
+ extended_entities?: {
1930
+ media: {
1931
+ display_url: string;
1932
+ expanded_url: string;
1933
+ id_str: string;
1934
+ indices: number[];
1935
+ media_key: string;
1936
+ media_url_https: string;
1937
+ type: string;
1938
+ url: string;
1939
+ additional_media_info: {
1940
+ monetizable: boolean;
1941
+ };
1942
+ mediaStats: {
1943
+ viewCount: number;
2265
1944
  };
2266
- has_graduated_access: boolean;
2267
- is_blue_verified: boolean;
2268
- profile_image_shape: string;
2269
- legacy: {
2270
- can_dm: boolean;
2271
- can_media_tag: boolean;
2272
- created_at: string;
2273
- default_profile: boolean;
2274
- default_profile_image: boolean;
2275
- description: string;
2276
- entities: {
2277
- description: {
2278
- urls: {
2279
- display_url: string;
2280
- expanded_url: string;
2281
- url: string;
2282
- indices: number[];
2283
- }[];
2284
- };
2285
- url: {
2286
- urls: {
2287
- display_url: string;
2288
- expanded_url: string;
2289
- url: string;
2290
- indices: number[];
2291
- }[];
2292
- };
1945
+ ext_media_availability: {
1946
+ status: string;
1947
+ };
1948
+ features: {};
1949
+ sizes: {
1950
+ large: {
1951
+ h: number;
1952
+ w: number;
1953
+ resize: string;
1954
+ };
1955
+ medium: {
1956
+ h: number;
1957
+ w: number;
1958
+ resize: string;
1959
+ };
1960
+ small: {
1961
+ h: number;
1962
+ w: number;
1963
+ resize: string;
1964
+ };
1965
+ thumb: {
1966
+ h: number;
1967
+ w: number;
1968
+ resize: string;
2293
1969
  };
2294
- fast_followers_count: number;
2295
- favourites_count: number;
2296
- followers_count: number;
2297
- friends_count: number;
2298
- has_custom_timelines: boolean;
2299
- is_translator: boolean;
2300
- listed_count: number;
2301
- location: string;
2302
- media_count: number;
2303
- name: string;
2304
- normal_followers_count: number;
2305
- pinned_tweet_ids_str: string[];
2306
- possibly_sensitive: boolean;
2307
- profile_banner_url: string;
2308
- profile_image_url_https: string;
2309
- profile_interstitial_type: string;
2310
- screen_name: string;
2311
- statuses_count: number;
2312
- translator_type: string;
2313
- url: string;
2314
- verified: boolean;
2315
- want_retweets: boolean;
2316
- withheld_in_countries: unknown[];
2317
- verified_type?: string;
2318
1970
  };
2319
- professional?: {
2320
- rest_id: string;
2321
- professional_type: string;
2322
- category: {
2323
- id: number;
2324
- name: string;
2325
- icon_name: string;
1971
+ original_info: {
1972
+ height: number;
1973
+ width: number;
1974
+ };
1975
+ video_info: {
1976
+ aspect_ratio: number[];
1977
+ duration_millis: number;
1978
+ variants: {
1979
+ content_type: string;
1980
+ url: string;
1981
+ bitrate?: number;
2326
1982
  }[];
2327
1983
  };
2328
- };
2329
- }[];
1984
+ }[];
1985
+ };
2330
1986
  };
2331
1987
  };
2332
- unified_card?: {
2333
- card_fetch_state: string;
1988
+ limitedActionResults?: {
1989
+ limited_actions: {
1990
+ action: string;
1991
+ prompt: {
1992
+ __typename: string;
1993
+ cta_type: string;
1994
+ headline: {
1995
+ text: string;
1996
+ entities: unknown[];
1997
+ };
1998
+ subtext: {
1999
+ text: string;
2000
+ entities: unknown[];
2001
+ };
2002
+ };
2003
+ }[];
2334
2004
  };
2335
2005
  previous_counts?: {
2336
2006
  bookmark_count: number;
@@ -2347,12 +2017,21 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2347
2017
  text: string;
2348
2018
  entity_set: {
2349
2019
  user_mentions: unknown[];
2350
- urls: unknown[];
2020
+ urls: {
2021
+ display_url: string;
2022
+ expanded_url: string;
2023
+ url: string;
2024
+ indices: number[];
2025
+ }[];
2351
2026
  hashtags: unknown[];
2352
2027
  symbols: unknown[];
2353
2028
  };
2354
2029
  richtext: {
2355
- richtext_tags: unknown[];
2030
+ richtext_tags: {
2031
+ from_index: number;
2032
+ to_index: number;
2033
+ richtext_types: string[];
2034
+ }[];
2356
2035
  };
2357
2036
  media: {
2358
2037
  inline_media: unknown[];
@@ -2363,6 +2042,32 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2363
2042
  };
2364
2043
  };
2365
2044
  tweetDisplayType?: string;
2045
+ socialContext?: {
2046
+ type: string;
2047
+ contextType?: string;
2048
+ text?: string;
2049
+ landingUrl?: {
2050
+ url: string;
2051
+ urlType: string;
2052
+ urtEndpointOptions?: {
2053
+ title: string;
2054
+ requestParams: {
2055
+ key: string;
2056
+ value: string;
2057
+ }[];
2058
+ };
2059
+ };
2060
+ topic?: {
2061
+ description: string;
2062
+ following: boolean;
2063
+ icon_url: string;
2064
+ id: string;
2065
+ topic_id: string;
2066
+ name: string;
2067
+ not_interested: boolean;
2068
+ };
2069
+ functionalityType?: string;
2070
+ };
2366
2071
  promotedMetadata?: {
2367
2072
  advertiser_results: {
2368
2073
  result: {
@@ -2454,6 +2159,11 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2454
2159
  }[];
2455
2160
  impressionId: string;
2456
2161
  impressionString: string;
2162
+ promotedTrendName?: string;
2163
+ promotedTrendQueryTerm?: string;
2164
+ promotedTrend?: {
2165
+ rest_id: string;
2166
+ };
2457
2167
  clickTrackingInfo?: {
2458
2168
  urlParams: {
2459
2169
  key: string;
@@ -2461,7 +2171,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2461
2171
  }[];
2462
2172
  };
2463
2173
  adMetadataContainer?: {
2464
- dynamicCardContent?: {
2174
+ dynamicCardContent: {
2465
2175
  card_type: string;
2466
2176
  layout: {
2467
2177
  __typename: string;
@@ -2501,55 +2211,8 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2501
2211
  card_fetch_state: string;
2502
2212
  };
2503
2213
  };
2504
- promotedTrendName?: string;
2505
- promotedTrendQueryTerm?: string;
2506
- promotedTrend?: {
2507
- rest_id: string;
2508
- };
2509
- };
2510
- content?: {
2511
- contentType: string;
2512
- headerText: string;
2513
- bodyText: string;
2514
- primaryButtonAction: {
2515
- text: string;
2516
- action: {
2517
- url: string;
2518
- dismissOnClick: boolean;
2519
- };
2520
- };
2521
- };
2522
- socialContext?: {
2523
- type: string;
2524
- contextType?: string;
2525
- text?: string;
2526
- landingUrl?: {
2527
- url: string;
2528
- urlType: string;
2529
- urtEndpointOptions?: {
2530
- title: string;
2531
- requestParams: {
2532
- key: string;
2533
- value: string;
2534
- }[];
2535
- };
2536
- };
2537
- topic?: {
2538
- description: string;
2539
- following: boolean;
2540
- icon_url: string;
2541
- id: string;
2542
- topic_id: string;
2543
- name: string;
2544
- not_interested: boolean;
2545
- };
2546
- functionalityType?: string;
2547
2214
  };
2548
2215
  };
2549
- feedbackInfo?: {
2550
- feedbackKeys: string[];
2551
- feedbackMetadata: string;
2552
- };
2553
2216
  clientEventInfo?: {
2554
2217
  component: string;
2555
2218
  element?: string;
@@ -2563,6 +2226,10 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
2563
2226
  };
2564
2227
  value?: string;
2565
2228
  cursorType?: string;
2229
+ feedbackInfo?: {
2230
+ feedbackKeys: string[];
2231
+ feedbackMetadata: string;
2232
+ };
2566
2233
  items?: {
2567
2234
  entryId: string;
2568
2235
  item: {
@@ -3013,7 +2680,12 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
3013
2680
  description: string;
3014
2681
  entities: {
3015
2682
  description: {
3016
- urls: unknown[];
2683
+ urls: {
2684
+ display_url: string;
2685
+ expanded_url: string;
2686
+ url: string;
2687
+ indices: number[];
2688
+ }[];
3017
2689
  };
3018
2690
  url: {
3019
2691
  urls: {
@@ -3045,10 +2717,19 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
3045
2717
  translator_type: string;
3046
2718
  url: string;
3047
2719
  verified: boolean;
3048
- verified_type: string;
2720
+ verified_type?: string;
3049
2721
  want_retweets: boolean;
3050
2722
  withheld_in_countries: unknown[];
3051
2723
  };
2724
+ professional?: {
2725
+ rest_id: string;
2726
+ professional_type: string;
2727
+ category: {
2728
+ id: number;
2729
+ name: string;
2730
+ icon_name: string;
2731
+ }[];
2732
+ };
3052
2733
  };
3053
2734
  }[];
3054
2735
  };
@@ -3094,61 +2775,99 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
3094
2775
  displayType?: string;
3095
2776
  };
3096
2777
  }[];
3097
- clientEventInfo?: {
3098
- component: string;
3099
- element: string;
3100
- };
3101
- cover?: {
3102
- type: string;
3103
- halfCoverDisplayType: string;
3104
- primaryText: {
3105
- alignment: string;
3106
- text: string;
3107
- entities: unknown[];
3108
- };
3109
- primaryCoverCta: {
3110
- text: string;
3111
- ctaBehavior: {
3112
- type: string;
3113
- };
3114
- callbacks: {
3115
- endpoint: string;
3116
- }[];
3117
- clientEventInfo: {
3118
- action: string;
3119
- };
3120
- buttonStyle: string;
3121
- };
3122
- secondaryCoverCta: {
3123
- text: string;
3124
- ctaBehavior: {
3125
- type: string;
3126
- };
3127
- callbacks: {
3128
- endpoint: string;
3129
- }[];
3130
- clientEventInfo: {
3131
- action: string;
2778
+ alertType?: string;
2779
+ triggerDelayMs?: number;
2780
+ displayDurationMs?: number;
2781
+ usersResults?: {
2782
+ result: {
2783
+ __typename: string;
2784
+ id: string;
2785
+ rest_id: string;
2786
+ affiliates_highlighted_label: {};
2787
+ has_graduated_access: boolean;
2788
+ is_blue_verified: boolean;
2789
+ profile_image_shape: string;
2790
+ legacy: {
2791
+ can_dm: boolean;
2792
+ can_media_tag: boolean;
2793
+ created_at: string;
2794
+ default_profile: boolean;
2795
+ default_profile_image: boolean;
2796
+ description: string;
2797
+ entities: {
2798
+ description: {
2799
+ urls: {
2800
+ display_url: string;
2801
+ expanded_url: string;
2802
+ url: string;
2803
+ indices: number[];
2804
+ }[];
2805
+ };
2806
+ url?: {
2807
+ urls: {
2808
+ display_url: string;
2809
+ expanded_url: string;
2810
+ url: string;
2811
+ indices: number[];
2812
+ }[];
2813
+ };
2814
+ };
2815
+ fast_followers_count: number;
2816
+ favourites_count: number;
2817
+ followers_count: number;
2818
+ friends_count: number;
2819
+ has_custom_timelines: boolean;
2820
+ is_translator: boolean;
2821
+ listed_count: number;
2822
+ location: string;
2823
+ media_count: number;
2824
+ name: string;
2825
+ normal_followers_count: number;
2826
+ pinned_tweet_ids_str: string[];
2827
+ possibly_sensitive: boolean;
2828
+ profile_banner_url: string;
2829
+ profile_image_url_https: string;
2830
+ profile_interstitial_type: string;
2831
+ screen_name: string;
2832
+ statuses_count: number;
2833
+ translator_type: string;
2834
+ url?: string;
2835
+ verified: boolean;
2836
+ want_retweets: boolean;
2837
+ withheld_in_countries: unknown[];
2838
+ following?: boolean;
3132
2839
  };
3133
- buttonStyle: string;
3134
- };
3135
- secondaryText: {
3136
- text: string;
3137
- entities: unknown[];
3138
- };
3139
- impressionCallbacks: {
3140
- endpoint: string;
3141
- }[];
3142
- coverImage: {
3143
- image: {
3144
- url: string;
3145
- width: number;
3146
- height: number;
2840
+ professional?: {
2841
+ rest_id: string;
2842
+ professional_type: string;
2843
+ category: {
2844
+ id: number;
2845
+ name: string;
2846
+ icon_name: string;
2847
+ }[];
3147
2848
  };
3148
- imageDisplayType: string;
3149
2849
  };
2850
+ }[];
2851
+ richText?: {
2852
+ text: string;
2853
+ entities: unknown[];
3150
2854
  };
2855
+ iconDisplayInfo?: {
2856
+ icon: string;
2857
+ tint: string;
2858
+ };
2859
+ colorConfig?: {
2860
+ background: string;
2861
+ border: string;
2862
+ text: string;
2863
+ };
2864
+ displayLocation?: string;
3151
2865
  }[];
2866
+ metadata: {
2867
+ scribeConfig: {
2868
+ page: string;
2869
+ };
2870
+ };
3152
2871
  responseObjects?: {
3153
2872
  feedbackActions: {
3154
2873
  key: string;
@@ -3175,11 +2894,6 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
3175
2894
  };
3176
2895
  }[];
3177
2896
  };
3178
- metadata: {
3179
- scribeConfig: {
3180
- page: string;
3181
- };
3182
- };
3183
2897
  };
3184
2898
  };
3185
2899
  };