@book000/twitterts 0.29.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 (81) hide show
  1. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  2. package/dist/generate-types/custom-types-generator.js +26 -26
  3. package/dist/generate-types/custom-types-generator.js.map +1 -1
  4. package/dist/generate-types/endpoint-type-generator.d.ts +1 -1
  5. package/dist/generate-types/endpoint-type-generator.d.ts.map +1 -1
  6. package/dist/generate-types/endpoint-type-generator.js +4 -3
  7. package/dist/generate-types/endpoint-type-generator.js.map +1 -1
  8. package/dist/generate-types/types-generator.d.ts.map +1 -1
  9. package/dist/generate-types/types-generator.js +9 -13
  10. package/dist/generate-types/types-generator.js.map +1 -1
  11. package/dist/generate-types/utils.d.ts +7 -0
  12. package/dist/generate-types/utils.d.ts.map +1 -1
  13. package/dist/generate-types/utils.js +34 -6
  14. package/dist/generate-types/utils.js.map +1 -1
  15. package/dist/generate-types.js +13 -3
  16. package/dist/generate-types.js.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/models/exceptions.d.ts +12 -0
  22. package/dist/models/exceptions.d.ts.map +1 -1
  23. package/dist/models/exceptions.js +19 -1
  24. package/dist/models/exceptions.js.map +1 -1
  25. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +181 -646
  26. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  27. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +1156 -936
  28. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  29. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +511 -634
  30. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  31. package/dist/models/responses/custom/custom-tweet-object.d.ts +813 -1104
  32. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  33. package/dist/models/responses/custom/custom-user-legacy-object.d.ts +3 -0
  34. package/dist/models/responses/custom/custom-user-legacy-object.d.ts.map +1 -1
  35. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +39 -10
  36. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
  37. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +1318 -1400
  38. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  39. package/dist/models/responses/endpoints.d.ts +9 -29
  40. package/dist/models/responses/endpoints.d.ts.map +1 -1
  41. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +4 -0
  42. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -1
  43. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +1475 -1777
  44. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  45. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +1147 -1433
  46. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  47. package/dist/models/responses/graphql/get/likes-success.d.ts +39 -10
  48. package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
  49. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +230 -1080
  50. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  51. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +148 -207
  52. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
  53. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +7 -2
  54. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
  55. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +2871 -2885
  56. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  57. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts +17 -0
  58. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts.map +1 -0
  59. package/dist/models/responses/graphql/get/users-verified-avatars-success.js +4 -0
  60. package/dist/models/responses/graphql/get/users-verified-avatars-success.js.map +1 -0
  61. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +1234 -1699
  62. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  63. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +468 -769
  64. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  65. package/dist/options.d.ts +18 -0
  66. package/dist/options.d.ts.map +1 -1
  67. package/dist/parser/parser.test.js +3 -2
  68. package/dist/parser/parser.test.js.map +1 -1
  69. package/dist/scraper.d.ts +3 -3
  70. package/dist/scraper.d.ts.map +1 -1
  71. package/dist/scraper.js +79 -33
  72. package/dist/scraper.js.map +1 -1
  73. package/dist/tsconfig.build.tsbuildinfo +1 -1
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/dist/twitter.d.ts +14 -1
  76. package/dist/twitter.d.ts.map +1 -1
  77. package/dist/twitter.js +112 -0
  78. package/dist/twitter.js.map +1 -1
  79. package/dist/twitter.test.js +10 -0
  80. package/dist/twitter.test.js.map +1 -1
  81. package/package.json +2 -1
@@ -6,52 +6,6 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
6
6
  timeline: {
7
7
  instructions: {
8
8
  type: string;
9
- entry?: {
10
- entryId: string;
11
- sortIndex: string;
12
- content: {
13
- entryType: string;
14
- __typename: string;
15
- itemContent?: {
16
- itemType: string;
17
- __typename: string;
18
- content: {
19
- contentType: string;
20
- headerImage: {
21
- imageVariants: {
22
- url: string;
23
- width: number;
24
- height: number;
25
- }[];
26
- backgroundColor: string;
27
- };
28
- bodyText: string;
29
- primaryButtonAction: {
30
- text: string;
31
- action: {
32
- url: string;
33
- dismissOnClick: boolean;
34
- };
35
- };
36
- action: {
37
- url: string;
38
- dismissOnClick: boolean;
39
- };
40
- };
41
- };
42
- clientEventInfo?: {
43
- component: string;
44
- element: string;
45
- details: {
46
- timelinesDetails: {
47
- controllerData: string;
48
- };
49
- };
50
- };
51
- value?: string;
52
- cursorType?: string;
53
- };
54
- };
55
9
  entries?: {
56
10
  entryId: string;
57
11
  sortIndex: string;
@@ -61,30 +15,7 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
61
15
  itemContent?: {
62
16
  itemType: string;
63
17
  __typename: string;
64
- content?: {
65
- contentType: string;
66
- headerImage: {
67
- imageVariants: {
68
- url: string;
69
- width: number;
70
- height: number;
71
- }[];
72
- backgroundColor: string;
73
- };
74
- bodyText: string;
75
- primaryButtonAction: {
76
- text: string;
77
- action: {
78
- url: string;
79
- dismissOnClick: boolean;
80
- };
81
- };
82
- action: {
83
- url: string;
84
- dismissOnClick: boolean;
85
- };
86
- };
87
- tweet_results?: {
18
+ tweet_results: {
88
19
  result: {
89
20
  __typename: string;
90
21
  rest_id: string;
@@ -94,40 +25,7 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
94
25
  __typename: string;
95
26
  id: string;
96
27
  rest_id: string;
97
- affiliates_highlighted_label: {
98
- label?: {
99
- badge: {
100
- url: string;
101
- };
102
- description: string;
103
- longDescription?: {
104
- text: string;
105
- entities: {
106
- fromIndex: number;
107
- toIndex: number;
108
- ref: {
109
- type: string;
110
- screen_name: string;
111
- mention_results: {
112
- result: {
113
- __typename: string;
114
- legacy: {
115
- screen_name: string;
116
- };
117
- rest_id: string;
118
- };
119
- };
120
- };
121
- }[];
122
- };
123
- userLabelType: string;
124
- url?: {
125
- url: string;
126
- urlType: string;
127
- };
128
- userLabelDisplayType?: string;
129
- };
130
- };
28
+ affiliates_highlighted_label: {};
131
29
  has_graduated_access: boolean;
132
30
  is_blue_verified: boolean;
133
31
  profile_image_shape: string;
@@ -140,14 +38,9 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
140
38
  description: string;
141
39
  entities: {
142
40
  description: {
143
- urls: {
144
- display_url: string;
145
- expanded_url: string;
146
- url: string;
147
- indices: number[];
148
- }[];
41
+ urls: unknown[];
149
42
  };
150
- url?: {
43
+ url: {
151
44
  urls: {
152
45
  display_url: string;
153
46
  expanded_url: string;
@@ -169,28 +62,17 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
169
62
  normal_followers_count: number;
170
63
  pinned_tweet_ids_str: string[];
171
64
  possibly_sensitive: boolean;
172
- profile_banner_url?: string;
65
+ profile_banner_url: string;
173
66
  profile_image_url_https: string;
174
67
  profile_interstitial_type: string;
175
68
  screen_name: string;
176
69
  statuses_count: number;
177
70
  translator_type: string;
178
- url?: string;
71
+ url: string;
179
72
  verified: boolean;
180
73
  want_retweets: boolean;
181
74
  withheld_in_countries: unknown[];
182
- verified_type?: string;
183
- };
184
- professional?: {
185
- rest_id: string;
186
- professional_type: string;
187
- category: {
188
- id: number;
189
- name: string;
190
- icon_name: string;
191
- }[];
192
75
  };
193
- super_follow_eligible?: boolean;
194
76
  };
195
77
  };
196
78
  };
@@ -217,6 +99,23 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
217
99
  conversation_id_str: string;
218
100
  display_text_range: number[];
219
101
  entities: {
102
+ user_mentions: {
103
+ id_str: string;
104
+ name: string;
105
+ screen_name: string;
106
+ indices: number[];
107
+ }[];
108
+ urls: {
109
+ display_url: string;
110
+ expanded_url: string;
111
+ url: string;
112
+ indices: number[];
113
+ }[];
114
+ hashtags: {
115
+ indices: number[];
116
+ text: string;
117
+ }[];
118
+ symbols: unknown[];
220
119
  media?: {
221
120
  display_url: string;
222
121
  expanded_url: string;
@@ -299,27 +198,24 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
299
198
  h: number;
300
199
  }[];
301
200
  };
302
- source_status_id_str?: string;
303
- source_user_id_str?: string;
304
- }[];
305
- user_mentions: {
306
- id_str: string;
307
- name: string;
308
- screen_name: string;
309
- indices: number[];
310
- }[];
311
- urls: {
312
- display_url: string;
313
- expanded_url: string;
314
- url: string;
315
- indices: number[];
316
- }[];
317
- hashtags: {
318
- indices: number[];
319
- text: string;
320
201
  }[];
321
- symbols: unknown[];
322
202
  };
203
+ favorite_count: number;
204
+ favorited: boolean;
205
+ full_text: string;
206
+ is_quote_status: boolean;
207
+ lang: string;
208
+ quote_count: number;
209
+ reply_count: number;
210
+ retweet_count: number;
211
+ retweeted: boolean;
212
+ user_id_str: string;
213
+ id_str: string;
214
+ possibly_sensitive?: boolean;
215
+ possibly_sensitive_editable?: boolean;
216
+ in_reply_to_screen_name?: string;
217
+ in_reply_to_status_id_str?: string;
218
+ in_reply_to_user_id_str?: string;
323
219
  extended_entities?: {
324
220
  media: {
325
221
  display_url: string;
@@ -330,87 +226,6 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
330
226
  media_url_https: string;
331
227
  type: string;
332
228
  url: string;
333
- additional_media_info?: {
334
- title?: string;
335
- description?: string;
336
- embeddable?: boolean;
337
- monetizable: boolean;
338
- source_user?: {
339
- user_results: {
340
- result: {
341
- __typename: string;
342
- id: string;
343
- rest_id: string;
344
- affiliates_highlighted_label: {};
345
- has_graduated_access: boolean;
346
- is_blue_verified: boolean;
347
- profile_image_shape: string;
348
- legacy: {
349
- can_dm: boolean;
350
- can_media_tag: boolean;
351
- created_at: string;
352
- default_profile: boolean;
353
- default_profile_image: boolean;
354
- description: string;
355
- entities: {
356
- description: {
357
- urls: {
358
- display_url: string;
359
- expanded_url: string;
360
- url: string;
361
- indices: number[];
362
- }[];
363
- };
364
- url?: {
365
- urls: {
366
- display_url: string;
367
- expanded_url: string;
368
- url: string;
369
- indices: number[];
370
- }[];
371
- };
372
- };
373
- fast_followers_count: number;
374
- favourites_count: number;
375
- followers_count: number;
376
- friends_count: number;
377
- has_custom_timelines: boolean;
378
- is_translator: boolean;
379
- listed_count: number;
380
- location: string;
381
- media_count: number;
382
- name: string;
383
- normal_followers_count: number;
384
- pinned_tweet_ids_str: string[];
385
- possibly_sensitive: boolean;
386
- profile_banner_url: string;
387
- profile_image_url_https: string;
388
- profile_interstitial_type: string;
389
- screen_name: string;
390
- statuses_count: number;
391
- translator_type: string;
392
- verified: boolean;
393
- want_retweets: boolean;
394
- withheld_in_countries: unknown[];
395
- url?: string;
396
- };
397
- professional?: {
398
- rest_id: string;
399
- professional_type: string;
400
- category: unknown[];
401
- };
402
- };
403
- };
404
- };
405
- call_to_actions?: {
406
- visit_site: {
407
- url: string;
408
- };
409
- };
410
- };
411
- mediaStats?: {
412
- viewCount: number;
413
- };
414
229
  ext_media_availability: {
415
230
  status: string;
416
231
  };
@@ -488,33 +303,29 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
488
303
  h: number;
489
304
  }[];
490
305
  };
306
+ additional_media_info?: {
307
+ monetizable: boolean;
308
+ };
309
+ mediaStats?: {
310
+ viewCount: number;
311
+ };
491
312
  video_info?: {
492
313
  aspect_ratio: number[];
493
- duration_millis?: number;
314
+ duration_millis: number;
494
315
  variants: {
495
316
  content_type: string;
496
317
  url: string;
497
318
  bitrate?: number;
498
319
  }[];
499
320
  };
500
- source_status_id_str?: string;
501
- source_user_id_str?: string;
502
- ext_alt_text?: string;
503
321
  }[];
504
322
  };
505
- favorite_count: number;
506
- favorited: boolean;
507
- full_text: string;
508
- is_quote_status: boolean;
509
- lang: string;
510
- possibly_sensitive?: boolean;
511
- possibly_sensitive_editable?: boolean;
512
- quote_count: number;
513
- reply_count: number;
514
- retweet_count: number;
515
- retweeted: boolean;
516
- user_id_str: string;
517
- id_str: string;
323
+ quoted_status_id_str?: string;
324
+ quoted_status_permalink?: {
325
+ url: string;
326
+ expanded: string;
327
+ display: string;
328
+ };
518
329
  place?: {
519
330
  attributes: {};
520
331
  bounding_box: {
@@ -530,501 +341,53 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
530
341
  place_type: string;
531
342
  url: string;
532
343
  };
533
- quoted_status_id_str?: string;
534
- quoted_status_permalink?: {
535
- url: string;
536
- expanded: string;
537
- display: string;
538
- };
539
- in_reply_to_screen_name?: string;
540
- in_reply_to_status_id_str?: string;
541
- in_reply_to_user_id_str?: string;
542
- scopes?: {
543
- followers: boolean;
544
- };
545
344
  };
546
- quoted_status_result?: {
547
- result: {
548
- __typename: string;
549
- rest_id: string;
550
- core: {
551
- user_results: {
552
- result: {
553
- __typename: string;
554
- id: string;
555
- rest_id: string;
556
- affiliates_highlighted_label: {};
557
- has_graduated_access: boolean;
558
- is_blue_verified: boolean;
559
- profile_image_shape: string;
560
- legacy: {
561
- can_dm: boolean;
562
- can_media_tag: boolean;
563
- created_at: string;
564
- default_profile: boolean;
565
- default_profile_image: boolean;
566
- description: string;
567
- entities: {
568
- description: {
569
- urls: unknown[];
570
- };
571
- url?: {
572
- urls: {
573
- display_url: string;
574
- expanded_url: string;
575
- url: string;
576
- indices: number[];
577
- }[];
578
- };
345
+ card?: {
346
+ rest_id: string;
347
+ legacy: {
348
+ binding_values: {
349
+ key: string;
350
+ value: {
351
+ image_value?: {
352
+ height: number;
353
+ width: number;
354
+ url: string;
355
+ alt?: string;
356
+ };
357
+ type: string;
358
+ string_value?: string;
359
+ scribe_key?: string;
360
+ user_value?: {
361
+ id_str: string;
362
+ path: unknown[];
363
+ };
364
+ image_color_value?: {
365
+ palette: {
366
+ rgb: {
367
+ blue: number;
368
+ green: number;
369
+ red: number;
579
370
  };
580
- fast_followers_count: number;
581
- favourites_count: number;
582
- followers_count: number;
583
- friends_count: number;
584
- has_custom_timelines: boolean;
585
- is_translator: boolean;
586
- listed_count: number;
587
- location: string;
588
- media_count: number;
589
- name: string;
590
- normal_followers_count: number;
591
- pinned_tweet_ids_str: string[];
592
- possibly_sensitive: boolean;
593
- profile_banner_url?: string;
594
- profile_image_url_https: string;
595
- profile_interstitial_type: string;
596
- screen_name: string;
597
- statuses_count: number;
598
- translator_type: string;
599
- url?: string;
600
- verified: boolean;
601
- want_retweets: boolean;
602
- withheld_in_countries: unknown[];
603
- verified_type?: string;
604
- };
605
- professional?: {
606
- rest_id: string;
607
- professional_type: string;
608
- category: {
609
- id: number;
610
- name: string;
611
- icon_name: string;
612
- }[];
613
- };
614
- };
615
- };
616
- };
617
- edit_control: {
618
- edit_tweet_ids: string[];
619
- editable_until_msecs: string;
620
- is_edit_eligible: boolean;
621
- edits_remaining: string;
622
- };
623
- edit_perspective?: {
624
- favorited: boolean;
625
- retweeted: boolean;
626
- };
627
- is_translatable: boolean;
628
- views: {
629
- count?: string;
630
- state: string;
631
- };
632
- source: string;
633
- legacy: {
634
- bookmark_count: number;
635
- bookmarked: boolean;
636
- created_at: string;
637
- conversation_id_str: string;
638
- display_text_range: number[];
639
- entities: {
640
- media?: {
641
- display_url: string;
642
- expanded_url: string;
643
- id_str: string;
644
- indices: number[];
645
- media_url_https: string;
646
- type: string;
647
- url: string;
648
- features: {
649
- large?: {
650
- faces: {
651
- x: number;
652
- y: number;
653
- h: number;
654
- w: number;
655
- }[];
656
- };
657
- medium?: {
658
- faces: {
659
- x: number;
660
- y: number;
661
- h: number;
662
- w: number;
663
- }[];
664
- };
665
- small?: {
666
- faces: {
667
- x: number;
668
- y: number;
669
- h: number;
670
- w: number;
671
- }[];
672
- };
673
- orig?: {
674
- faces: {
675
- x: number;
676
- y: number;
677
- h: number;
678
- w: number;
679
- }[];
680
- };
681
- };
682
- sizes: {
683
- large: {
684
- h: number;
685
- w: number;
686
- resize: string;
687
- };
688
- medium: {
689
- h: number;
690
- w: number;
691
- resize: string;
692
- };
693
- small: {
694
- h: number;
695
- w: number;
696
- resize: string;
697
- };
698
- thumb: {
699
- h: number;
700
- w: number;
701
- resize: string;
702
- };
703
- };
704
- original_info: {
705
- height: number;
706
- width: number;
707
- focus_rects?: {
708
- x: number;
709
- y: number;
710
- w: number;
711
- h: number;
712
- }[];
713
- };
714
- }[];
715
- user_mentions: {
716
- id_str: string;
717
- name: string;
718
- screen_name: string;
719
- indices: number[];
720
- }[];
721
- urls: {
722
- display_url: string;
723
- expanded_url: string;
724
- url: string;
725
- indices: number[];
726
- }[];
727
- hashtags: {
728
- indices: number[];
729
- text: string;
730
- }[];
731
- symbols: unknown[];
732
- };
733
- extended_entities?: {
734
- media: {
735
- display_url: string;
736
- expanded_url: string;
737
- id_str: string;
738
- indices: number[];
739
- media_key: string;
740
- media_url_https: string;
741
- type: string;
742
- url: string;
743
- additional_media_info?: {
744
- monetizable: boolean;
745
- };
746
- mediaStats?: {
747
- viewCount: number;
748
- };
749
- ext_media_availability: {
750
- status: string;
751
- };
752
- features: {
753
- large?: {
754
- faces: {
755
- x: number;
756
- y: number;
757
- h: number;
758
- w: number;
759
- }[];
760
- };
761
- medium?: {
762
- faces: {
763
- x: number;
764
- y: number;
765
- h: number;
766
- w: number;
767
- }[];
768
- };
769
- small?: {
770
- faces: {
771
- x: number;
772
- y: number;
773
- h: number;
774
- w: number;
775
- }[];
776
- };
777
- orig?: {
778
- faces: {
779
- x: number;
780
- y: number;
781
- h: number;
782
- w: number;
783
- }[];
784
- };
785
- };
786
- sizes: {
787
- large: {
788
- h: number;
789
- w: number;
790
- resize: string;
791
- };
792
- medium: {
793
- h: number;
794
- w: number;
795
- resize: string;
796
- };
797
- small: {
798
- h: number;
799
- w: number;
800
- resize: string;
801
- };
802
- thumb: {
803
- h: number;
804
- w: number;
805
- resize: string;
806
- };
807
- };
808
- original_info: {
809
- height: number;
810
- width: number;
811
- focus_rects?: {
812
- x: number;
813
- y: number;
814
- w: number;
815
- h: number;
816
- }[];
817
- };
818
- video_info?: {
819
- aspect_ratio: number[];
820
- duration_millis: number;
821
- variants: {
822
- bitrate?: number;
823
- content_type: string;
824
- url: string;
825
- }[];
826
- };
827
- }[];
828
- };
829
- favorite_count: number;
830
- favorited: boolean;
831
- full_text: string;
832
- is_quote_status: boolean;
833
- lang: string;
834
- possibly_sensitive?: boolean;
835
- possibly_sensitive_editable?: boolean;
836
- quote_count: number;
837
- reply_count: number;
838
- retweet_count: number;
839
- retweeted: boolean;
840
- user_id_str: string;
841
- id_str: string;
842
- in_reply_to_screen_name?: string;
843
- in_reply_to_status_id_str?: string;
844
- in_reply_to_user_id_str?: string;
845
- quoted_status_id_str?: string;
846
- quoted_status_permalink?: {
847
- url: string;
848
- expanded: string;
849
- display: string;
850
- };
851
- };
852
- note_tweet?: {
853
- is_expandable: boolean;
854
- note_tweet_results: {
855
- result: {
856
- id: string;
857
- text: string;
858
- entity_set: {
859
- user_mentions: unknown[];
860
- urls: {
861
- display_url: string;
862
- expanded_url: string;
863
- url: string;
864
- indices: number[];
865
- }[];
866
- hashtags: {
867
- indices: number[];
868
- text: string;
869
- }[];
870
- symbols: unknown[];
871
- };
872
- richtext: {
873
- richtext_tags: {
874
- from_index: number;
875
- to_index: number;
876
- richtext_types: string[];
877
- }[];
878
- };
879
- media: {
880
- inline_media: unknown[];
881
- };
882
- };
883
- };
884
- };
885
- card?: {
886
- rest_id: string;
887
- legacy: {
888
- binding_values: {
889
- key: string;
890
- value: {
891
- string_value?: string;
892
- type: string;
893
- scribe_key?: string;
894
- user_value?: {
895
- id_str: string;
896
- path: unknown[];
897
- };
898
- };
899
- }[];
900
- card_platform: {
901
- platform: {
902
- audience: {
903
- name: string;
904
- };
905
- device: {
906
- name: string;
907
- version: string;
908
- };
909
- };
910
- };
911
- name: string;
912
- url: string;
913
- user_refs_results: {
914
- result: {
915
- __typename: string;
916
- id: string;
917
- rest_id: string;
918
- affiliates_highlighted_label: {};
919
- has_graduated_access: boolean;
920
- is_blue_verified: boolean;
921
- profile_image_shape: string;
922
- legacy: {
923
- can_dm: boolean;
924
- can_media_tag: boolean;
925
- created_at: string;
926
- default_profile: boolean;
927
- default_profile_image: boolean;
928
- description: string;
929
- entities: {
930
- description: {
931
- urls: unknown[];
932
- };
933
- url: {
934
- urls: {
935
- display_url: string;
936
- expanded_url: string;
937
- url: string;
938
- indices: number[];
939
- }[];
940
- };
941
- };
942
- fast_followers_count: number;
943
- favourites_count: number;
944
- followers_count: number;
945
- friends_count: number;
946
- has_custom_timelines: boolean;
947
- is_translator: boolean;
948
- listed_count: number;
949
- location: string;
950
- media_count: number;
951
- name: string;
952
- normal_followers_count: number;
953
- pinned_tweet_ids_str: unknown[];
954
- possibly_sensitive: boolean;
955
- profile_banner_url: string;
956
- profile_image_url_https: string;
957
- profile_interstitial_type: string;
958
- screen_name: string;
959
- statuses_count: number;
960
- translator_type: string;
961
- url: string;
962
- verified: boolean;
963
- verified_type: string;
964
- want_retweets: boolean;
965
- withheld_in_countries: unknown[];
966
- };
967
- };
968
- }[];
969
- };
970
- };
971
- unified_card?: {
972
- card_fetch_state: string;
973
- };
974
- quotedRefResult?: {
975
- result: {
976
- __typename: string;
977
- rest_id: string;
978
- };
979
- };
980
- };
981
- };
982
- card?: {
983
- rest_id: string;
984
- legacy: {
985
- binding_values: {
986
- key: string;
987
- value: {
988
- image_value?: {
989
- alt?: string;
990
- height: number;
991
- width: number;
992
- url: string;
993
- };
994
- type: string;
995
- string_value?: string;
996
- scribe_key?: string;
997
- user_value?: {
998
- id_str: string;
999
- path: unknown[];
1000
- };
1001
- image_color_value?: {
1002
- palette: {
1003
- rgb: {
1004
- blue: number;
1005
- green: number;
1006
- red: number;
1007
- };
1008
- percentage: number;
1009
- }[];
1010
- };
1011
- };
1012
- }[];
1013
- card_platform: {
1014
- platform: {
1015
- audience: {
1016
- name: string;
1017
- };
1018
- device: {
1019
- name: string;
1020
- version: string;
371
+ percentage: number;
372
+ }[];
373
+ };
374
+ };
375
+ }[];
376
+ card_platform: {
377
+ platform: {
378
+ audience: {
379
+ name: string;
380
+ };
381
+ device: {
382
+ name: string;
383
+ version: string;
1021
384
  };
1022
385
  };
1023
386
  };
1024
387
  name: string;
1025
388
  url: string;
1026
389
  user_refs_results: {
1027
- result?: {
390
+ result: {
1028
391
  __typename: string;
1029
392
  id?: string;
1030
393
  rest_id?: string;
@@ -1061,7 +424,7 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
1061
424
  indices: number[];
1062
425
  }[];
1063
426
  };
1064
- url?: {
427
+ url: {
1065
428
  urls: {
1066
429
  display_url?: string;
1067
430
  expanded_url?: string;
@@ -1089,11 +452,20 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
1089
452
  screen_name: string;
1090
453
  statuses_count: number;
1091
454
  translator_type: string;
1092
- url?: string;
455
+ url: string;
1093
456
  verified: boolean;
457
+ verified_type?: string;
1094
458
  want_retweets: boolean;
1095
459
  withheld_in_countries: unknown[];
1096
- verified_type?: string;
460
+ };
461
+ professional?: {
462
+ rest_id: string;
463
+ professional_type: string;
464
+ category: {
465
+ id: number;
466
+ name: string;
467
+ icon_name: string;
468
+ }[];
1097
469
  };
1098
470
  unavailable_message?: {
1099
471
  rtl: boolean;
@@ -1109,15 +481,6 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
1109
481
  }[];
1110
482
  };
1111
483
  reason?: string;
1112
- professional?: {
1113
- rest_id: string;
1114
- professional_type: string;
1115
- category: {
1116
- id: number;
1117
- name: string;
1118
- icon_name: string;
1119
- }[];
1120
- };
1121
484
  };
1122
485
  }[];
1123
486
  };
@@ -1125,348 +488,161 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
1125
488
  unified_card?: {
1126
489
  card_fetch_state: string;
1127
490
  };
1128
- note_tweet?: {
1129
- is_expandable: boolean;
1130
- note_tweet_results: {
1131
- result: {
1132
- id: string;
1133
- text: string;
1134
- entity_set: {
1135
- user_mentions: unknown[];
1136
- urls: unknown[];
1137
- hashtags: {
1138
- indices: number[];
1139
- text: string;
1140
- }[];
1141
- symbols: unknown[];
1142
- };
1143
- richtext: {
1144
- richtext_tags: unknown[];
1145
- };
1146
- media: {
1147
- inline_media: unknown[];
491
+ quoted_status_result?: {
492
+ result: {
493
+ __typename: string;
494
+ rest_id: string;
495
+ core: {
496
+ user_results: {
497
+ result: {
498
+ __typename: string;
499
+ id: string;
500
+ rest_id: string;
501
+ affiliates_highlighted_label: {};
502
+ has_graduated_access: boolean;
503
+ is_blue_verified: boolean;
504
+ profile_image_shape: string;
505
+ legacy: {
506
+ can_dm: boolean;
507
+ can_media_tag: boolean;
508
+ created_at: string;
509
+ default_profile: boolean;
510
+ default_profile_image: boolean;
511
+ description: string;
512
+ entities: {
513
+ description: {
514
+ urls: unknown[];
515
+ };
516
+ url: {
517
+ urls: {
518
+ display_url: string;
519
+ expanded_url: string;
520
+ url: string;
521
+ indices: number[];
522
+ }[];
523
+ };
524
+ };
525
+ fast_followers_count: number;
526
+ favourites_count: number;
527
+ followers_count: number;
528
+ friends_count: number;
529
+ has_custom_timelines: boolean;
530
+ is_translator: boolean;
531
+ listed_count: number;
532
+ location: string;
533
+ media_count: number;
534
+ name: string;
535
+ normal_followers_count: number;
536
+ pinned_tweet_ids_str: string[];
537
+ possibly_sensitive: boolean;
538
+ profile_image_url_https: string;
539
+ profile_interstitial_type: string;
540
+ screen_name: string;
541
+ statuses_count: number;
542
+ translator_type: string;
543
+ url: string;
544
+ verified: boolean;
545
+ want_retweets: boolean;
546
+ withheld_in_countries: unknown[];
547
+ profile_banner_url?: string;
548
+ };
549
+ professional?: {
550
+ rest_id: string;
551
+ professional_type: string;
552
+ category: {
553
+ id: number;
554
+ name: string;
555
+ icon_name: string;
556
+ }[];
557
+ };
558
+ };
1148
559
  };
1149
560
  };
1150
- };
1151
- };
1152
- };
1153
- };
1154
- tweetDisplayType?: string;
1155
- user_results?: {
1156
- result: {
1157
- __typename: string;
1158
- id: string;
1159
- rest_id: string;
1160
- affiliates_highlighted_label: {
1161
- label?: {
1162
- url: {
1163
- url: string;
1164
- urlType: string;
1165
- };
1166
- badge: {
1167
- url: string;
561
+ edit_control: {
562
+ edit_tweet_ids: string[];
563
+ editable_until_msecs: string;
564
+ is_edit_eligible: boolean;
565
+ edits_remaining: string;
1168
566
  };
1169
- description: string;
1170
- userLabelType: string;
1171
- userLabelDisplayType: string;
1172
- };
1173
- };
1174
- has_graduated_access: boolean;
1175
- is_blue_verified: boolean;
1176
- profile_image_shape: string;
1177
- legacy: {
1178
- can_dm: boolean;
1179
- can_media_tag: boolean;
1180
- created_at: string;
1181
- default_profile: boolean;
1182
- default_profile_image: boolean;
1183
- description: string;
1184
- entities: {
1185
- description: {
1186
- urls: {
1187
- display_url: string;
1188
- expanded_url: string;
1189
- url: string;
1190
- indices: number[];
1191
- }[];
567
+ edit_perspective?: {
568
+ favorited: boolean;
569
+ retweeted: boolean;
1192
570
  };
1193
- url?: {
1194
- urls: {
1195
- display_url: string;
1196
- expanded_url: string;
1197
- url: string;
1198
- indices: number[];
1199
- }[];
571
+ is_translatable: boolean;
572
+ views: {
573
+ count?: string;
574
+ state: string;
1200
575
  };
1201
- };
1202
- fast_followers_count: number;
1203
- favourites_count: number;
1204
- followers_count: number;
1205
- friends_count: number;
1206
- has_custom_timelines: boolean;
1207
- is_translator: boolean;
1208
- listed_count: number;
1209
- location: string;
1210
- media_count: number;
1211
- name: string;
1212
- normal_followers_count: number;
1213
- pinned_tweet_ids_str: string[];
1214
- possibly_sensitive: boolean;
1215
- profile_banner_url?: string;
1216
- profile_image_url_https: string;
1217
- profile_interstitial_type: string;
1218
- screen_name: string;
1219
- statuses_count: number;
1220
- translator_type: string;
1221
- url?: string;
1222
- verified: boolean;
1223
- verified_type?: string;
1224
- want_retweets: boolean;
1225
- withheld_in_countries: unknown[];
1226
- protected?: boolean;
1227
- };
1228
- professional?: {
1229
- rest_id: string;
1230
- professional_type: string;
1231
- category: {
1232
- id: number;
1233
- name: string;
1234
- icon_name: string;
1235
- }[];
1236
- };
1237
- };
1238
- };
1239
- userDisplayType?: string;
1240
- socialContext?: {
1241
- type: string;
1242
- contextType: string;
1243
- text: string;
1244
- };
1245
- promotedMetadata?: {
1246
- advertiser_results: {
1247
- result: {
1248
- __typename: string;
1249
- id: string;
1250
- rest_id: string;
1251
- affiliates_highlighted_label: {
1252
- label?: {
1253
- url: {
1254
- url: string;
1255
- urlType: string;
1256
- };
1257
- badge: {
1258
- url: string;
576
+ source: string;
577
+ quotedRefResult?: {
578
+ result: {
579
+ __typename: string;
580
+ rest_id: string;
1259
581
  };
1260
- description: string;
1261
- userLabelType: string;
1262
- userLabelDisplayType: string;
1263
582
  };
1264
- };
1265
- has_graduated_access: boolean;
1266
- is_blue_verified: boolean;
1267
- profile_image_shape: string;
1268
- legacy: {
1269
- can_dm: boolean;
1270
- can_media_tag: boolean;
1271
- created_at: string;
1272
- default_profile: boolean;
1273
- default_profile_image: boolean;
1274
- description: string;
1275
- entities: {
1276
- description: {
1277
- urls: {
1278
- display_url: string;
1279
- expanded_url: string;
1280
- url: string;
1281
- indices: number[];
1282
- }[];
583
+ legacy: {
584
+ bookmark_count: number;
585
+ bookmarked: boolean;
586
+ created_at: string;
587
+ conversation_id_str: string;
588
+ display_text_range: number[];
589
+ entities: {
590
+ user_mentions: unknown[];
591
+ urls: unknown[];
592
+ hashtags: unknown[];
593
+ symbols: unknown[];
1283
594
  };
1284
- url: {
1285
- urls: {
1286
- display_url: string;
1287
- expanded_url: string;
1288
- url: string;
1289
- indices: number[];
1290
- }[];
595
+ favorite_count: number;
596
+ favorited: boolean;
597
+ full_text: string;
598
+ is_quote_status: boolean;
599
+ lang: string;
600
+ quote_count: number;
601
+ quoted_status_id_str?: string;
602
+ quoted_status_permalink?: {
603
+ url: string;
604
+ expanded: string;
605
+ display: string;
1291
606
  };
607
+ reply_count: number;
608
+ retweet_count: number;
609
+ retweeted: boolean;
610
+ user_id_str: string;
611
+ id_str: string;
1292
612
  };
1293
- fast_followers_count: number;
1294
- favourites_count: number;
1295
- followers_count: number;
1296
- friends_count: number;
1297
- has_custom_timelines: boolean;
1298
- is_translator: boolean;
1299
- listed_count: number;
1300
- location: string;
1301
- media_count: number;
1302
- name: string;
1303
- normal_followers_count: number;
1304
- pinned_tweet_ids_str: string[];
1305
- possibly_sensitive: boolean;
1306
- profile_banner_url: string;
1307
- profile_image_url_https: string;
1308
- profile_interstitial_type: string;
1309
- screen_name: string;
1310
- statuses_count: number;
1311
- translator_type: string;
1312
- url: string;
1313
- verified: boolean;
1314
- verified_type?: string;
1315
- want_retweets: boolean;
1316
- withheld_in_countries: unknown[];
1317
- };
1318
- professional?: {
1319
- rest_id: string;
1320
- professional_type: string;
1321
- category: {
1322
- id: number;
1323
- name: string;
1324
- icon_name: string;
1325
- }[];
1326
613
  };
1327
614
  };
1328
615
  };
1329
- disclosureType: string;
1330
- experimentValues: {
1331
- key: string;
1332
- value: string;
1333
- }[];
1334
- impressionId: string;
1335
- impressionString: string;
1336
- clickTrackingInfo: {
1337
- urlParams: {
1338
- key: string;
1339
- value: string;
1340
- }[];
1341
- };
1342
616
  };
617
+ tweetDisplayType: string;
618
+ };
619
+ feedbackInfo?: {
620
+ feedbackKeys: string[];
1343
621
  };
1344
622
  clientEventInfo?: {
1345
623
  component: string;
1346
624
  element: string;
1347
- details?: {
625
+ details: {
1348
626
  timelinesDetails: {
1349
627
  controllerData: string;
1350
628
  };
1351
629
  };
1352
630
  };
1353
- items?: {
1354
- entryId: string;
1355
- item: {
1356
- itemContent: {
1357
- itemType: string;
1358
- __typename: string;
1359
- user_results: {
1360
- result: {
1361
- __typename: string;
1362
- id: string;
1363
- rest_id: string;
1364
- affiliates_highlighted_label: {};
1365
- has_graduated_access: boolean;
1366
- is_blue_verified: boolean;
1367
- profile_image_shape: string;
1368
- legacy: {
1369
- can_dm: boolean;
1370
- can_media_tag: boolean;
1371
- created_at: string;
1372
- default_profile: boolean;
1373
- default_profile_image: boolean;
1374
- description: string;
1375
- entities: {
1376
- description: {
1377
- urls: {
1378
- display_url: string;
1379
- expanded_url: string;
1380
- url: string;
1381
- indices: number[];
1382
- }[];
1383
- };
1384
- url?: {
1385
- urls: {
1386
- display_url: string;
1387
- expanded_url: string;
1388
- url: string;
1389
- indices: number[];
1390
- }[];
1391
- };
1392
- };
1393
- fast_followers_count: number;
1394
- favourites_count: number;
1395
- followers_count: number;
1396
- friends_count: number;
1397
- has_custom_timelines: boolean;
1398
- is_translator: boolean;
1399
- listed_count: number;
1400
- location: string;
1401
- media_count: number;
1402
- name: string;
1403
- normal_followers_count: number;
1404
- pinned_tweet_ids_str: string[];
1405
- possibly_sensitive: boolean;
1406
- profile_banner_url: string;
1407
- profile_image_url_https: string;
1408
- profile_interstitial_type: string;
1409
- screen_name: string;
1410
- statuses_count: number;
1411
- translator_type: string;
1412
- url?: string;
1413
- verified: boolean;
1414
- verified_type?: string;
1415
- want_retweets: boolean;
1416
- withheld_in_countries: unknown[];
1417
- };
1418
- professional?: {
1419
- rest_id: string;
1420
- professional_type: string;
1421
- category: {
1422
- id: number;
1423
- name: string;
1424
- icon_name: string;
1425
- }[];
1426
- };
1427
- };
1428
- };
1429
- userDisplayType: string;
1430
- socialContext?: {
1431
- type: string;
1432
- contextType: string;
1433
- text: string;
1434
- };
1435
- };
1436
- clientEventInfo: {
1437
- component: string;
1438
- element: string;
1439
- details: {
1440
- timelinesDetails: {
1441
- controllerData: string;
1442
- };
1443
- };
1444
- };
1445
- };
1446
- }[];
1447
- displayType?: string;
1448
- header?: {
1449
- displayType: string;
1450
- text: string;
1451
- sticky: boolean;
1452
- };
1453
- footer?: {
1454
- displayType: string;
1455
- text: string;
1456
- landingUrl: {
1457
- url: string;
1458
- urlType: string;
1459
- };
1460
- };
1461
- feedbackInfo?: {
1462
- feedbackKeys: string[];
1463
- };
1464
631
  value?: string;
1465
632
  cursorType?: string;
1466
633
  };
1467
634
  }[];
1468
635
  entry_id_to_replace?: string;
1469
- direction?: string;
636
+ entry?: {
637
+ entryId: string;
638
+ sortIndex: string;
639
+ content: {
640
+ entryType: string;
641
+ __typename: string;
642
+ value: string;
643
+ cursorType: string;
644
+ };
645
+ };
1470
646
  }[];
1471
647
  responseObjects?: {
1472
648
  feedbackActions: {
@@ -1491,31 +667,5 @@ export interface GraphQLGetSearchTimelineSuccessResponse {
1491
667
  };
1492
668
  };
1493
669
  };
1494
- errors?: {
1495
- message: string;
1496
- locations: {
1497
- line: number;
1498
- column: number;
1499
- }[];
1500
- path: (number | string)[];
1501
- extensions: {
1502
- name: string;
1503
- source: string;
1504
- retry_after: number;
1505
- code: number;
1506
- kind: string;
1507
- tracing: {
1508
- trace_id: string;
1509
- };
1510
- };
1511
- code: number;
1512
- kind: string;
1513
- name: string;
1514
- source: string;
1515
- retry_after: number;
1516
- tracing: {
1517
- trace_id: string;
1518
- };
1519
- }[];
1520
670
  }
1521
671
  //# sourceMappingURL=search-timeline-success.d.ts.map