@book000/twitterts 0.34.0 → 0.35.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 (26) hide show
  1. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  2. package/dist/generate-types/custom-types-generator.js +30 -0
  3. package/dist/generate-types/custom-types-generator.js.map +1 -1
  4. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +809 -231
  5. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  6. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +76 -3
  7. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  8. package/dist/models/responses/custom/custom-tweet-object.d.ts +249 -129
  9. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  10. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +223 -8
  11. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  12. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +41 -4
  13. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  14. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +82 -7
  15. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  16. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +17 -2
  17. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  18. package/dist/parser/home-timeline-parser.d.ts.map +1 -1
  19. package/dist/parser/home-timeline-parser.js +6 -1
  20. package/dist/parser/home-timeline-parser.js.map +1 -1
  21. package/dist/parser/search-timeline.d.ts.map +1 -1
  22. package/dist/parser/search-timeline.js +6 -1
  23. package/dist/parser/search-timeline.js.map +1 -1
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
@@ -20,7 +20,7 @@ export interface CustomTimelineTweetEntry {
20
20
  rest_id: string;
21
21
  affiliates_highlighted_label: {
22
22
  label?: {
23
- url: {
23
+ url?: {
24
24
  url: string;
25
25
  urlType: string;
26
26
  };
@@ -29,7 +29,24 @@ export interface CustomTimelineTweetEntry {
29
29
  };
30
30
  description: string;
31
31
  userLabelType: string;
32
- userLabelDisplayType: string;
32
+ userLabelDisplayType?: string;
33
+ longDescription?: {
34
+ text: string;
35
+ entities: {
36
+ fromIndex: number;
37
+ toIndex: number;
38
+ ref: {
39
+ type: string;
40
+ screen_name: string;
41
+ mention_results: {
42
+ result: {
43
+ __typename: string;
44
+ reason: string;
45
+ };
46
+ };
47
+ };
48
+ }[];
49
+ };
33
50
  };
34
51
  };
35
52
  has_graduated_access: boolean;
@@ -84,8 +101,8 @@ export interface CustomTimelineTweetEntry {
84
101
  want_retweets: boolean;
85
102
  withheld_in_countries: unknown[];
86
103
  following?: boolean;
87
- followed_by?: boolean;
88
104
  verified_type?: string;
105
+ followed_by?: boolean;
89
106
  needs_phone_verification?: boolean;
90
107
  };
91
108
  professional?: {
@@ -338,7 +355,10 @@ export interface CustomTimelineTweetEntry {
338
355
  title?: string;
339
356
  description?: string;
340
357
  call_to_actions?: {
341
- watch_now: {
358
+ visit_site?: {
359
+ url: string;
360
+ };
361
+ watch_now?: {
342
362
  url: string;
343
363
  };
344
364
  };
@@ -577,7 +597,7 @@ export interface CustomTimelineTweetEntry {
577
597
  };
578
598
  is_translatable: boolean;
579
599
  views: {
580
- count: string;
600
+ count?: string;
581
601
  state: string;
582
602
  };
583
603
  source: string;
@@ -836,6 +856,7 @@ export interface CustomTimelineTweetEntry {
836
856
  verified: boolean;
837
857
  want_retweets: boolean;
838
858
  withheld_in_countries: unknown[];
859
+ verified_type?: string;
839
860
  };
840
861
  professional?: {
841
862
  rest_id: string;
@@ -895,6 +916,9 @@ export interface CustomTimelineTweetEntry {
895
916
  expanded: string;
896
917
  display: string;
897
918
  };
919
+ scopes?: {
920
+ followers: boolean;
921
+ };
898
922
  };
899
923
  quoted_status_result?: {
900
924
  result: {
@@ -1874,6 +1898,9 @@ export interface CustomTimelineTweetEntry {
1874
1898
  };
1875
1899
  };
1876
1900
  };
1901
+ scopes?: {
1902
+ followers: boolean;
1903
+ };
1877
1904
  quoted_status_id_str?: string;
1878
1905
  quoted_status_permalink?: {
1879
1906
  url: string;
@@ -1905,14 +1932,15 @@ export interface CustomTimelineTweetEntry {
1905
1932
  binding_values: {
1906
1933
  key: string;
1907
1934
  value: {
1935
+ string_value?: string;
1936
+ type: string;
1937
+ scribe_key?: string;
1908
1938
  image_value?: {
1909
1939
  height: number;
1910
1940
  width: number;
1911
1941
  url: string;
1942
+ alt?: string;
1912
1943
  };
1913
- type: string;
1914
- string_value?: string;
1915
- scribe_key?: string;
1916
1944
  user_value?: {
1917
1945
  id_str: string;
1918
1946
  path: unknown[];
@@ -1981,7 +2009,7 @@ export interface CustomTimelineTweetEntry {
1981
2009
  indices: number[];
1982
2010
  }[];
1983
2011
  };
1984
- url: {
2012
+ url?: {
1985
2013
  urls: {
1986
2014
  display_url?: string;
1987
2015
  expanded_url?: string;
@@ -2003,13 +2031,13 @@ export interface CustomTimelineTweetEntry {
2003
2031
  normal_followers_count: number;
2004
2032
  pinned_tweet_ids_str: string[];
2005
2033
  possibly_sensitive: boolean;
2006
- profile_banner_url: string;
2034
+ profile_banner_url?: string;
2007
2035
  profile_image_url_https: string;
2008
2036
  profile_interstitial_type: string;
2009
2037
  screen_name: string;
2010
2038
  statuses_count: number;
2011
2039
  translator_type: string;
2012
- url: string;
2040
+ url?: string;
2013
2041
  verified: boolean;
2014
2042
  verified_type?: string;
2015
2043
  want_retweets: boolean;
@@ -2530,17 +2558,6 @@ export interface CustomTimelineTweetEntry {
2530
2558
  };
2531
2559
  };
2532
2560
  };
2533
- previous_counts?: {
2534
- bookmark_count: number;
2535
- favorite_count: number;
2536
- quote_count: number;
2537
- reply_count: number;
2538
- retweet_count: number;
2539
- };
2540
- edit_perspective?: {
2541
- favorited: boolean;
2542
- retweeted: boolean;
2543
- };
2544
2561
  tweet?: {
2545
2562
  rest_id: string;
2546
2563
  core: {
@@ -2549,13 +2566,24 @@ export interface CustomTimelineTweetEntry {
2549
2566
  __typename: string;
2550
2567
  id: string;
2551
2568
  rest_id: string;
2552
- affiliates_highlighted_label: {};
2569
+ affiliates_highlighted_label: {
2570
+ label?: {
2571
+ url: {
2572
+ url: string;
2573
+ urlType: string;
2574
+ };
2575
+ badge: {
2576
+ url: string;
2577
+ };
2578
+ description: string;
2579
+ userLabelType: string;
2580
+ userLabelDisplayType: string;
2581
+ };
2582
+ };
2553
2583
  has_graduated_access: boolean;
2554
2584
  is_blue_verified: boolean;
2555
2585
  profile_image_shape: string;
2556
2586
  legacy: {
2557
- followed_by?: boolean;
2558
- following?: boolean;
2559
2587
  can_dm: boolean;
2560
2588
  can_media_tag: boolean;
2561
2589
  created_at: string;
@@ -2564,7 +2592,12 @@ export interface CustomTimelineTweetEntry {
2564
2592
  description: string;
2565
2593
  entities: {
2566
2594
  description: {
2567
- urls: unknown[];
2595
+ urls: {
2596
+ display_url: string;
2597
+ expanded_url: string;
2598
+ url: string;
2599
+ indices: number[];
2600
+ }[];
2568
2601
  };
2569
2602
  url?: {
2570
2603
  urls: {
@@ -2594,35 +2627,154 @@ export interface CustomTimelineTweetEntry {
2594
2627
  screen_name: string;
2595
2628
  statuses_count: number;
2596
2629
  translator_type: string;
2630
+ url?: string;
2597
2631
  verified: boolean;
2632
+ verified_type?: string;
2598
2633
  want_retweets: boolean;
2599
2634
  withheld_in_countries: unknown[];
2600
- url?: string;
2635
+ followed_by?: boolean;
2636
+ following?: boolean;
2637
+ };
2638
+ professional?: {
2639
+ rest_id: string;
2640
+ professional_type: string;
2641
+ category: {
2642
+ id: number;
2643
+ name: string;
2644
+ icon_name: string;
2645
+ }[];
2601
2646
  };
2602
2647
  };
2603
2648
  };
2604
2649
  };
2605
- edit_control: {
2606
- edit_tweet_ids: string[];
2607
- editable_until_msecs: string;
2608
- is_edit_eligible: boolean;
2609
- edits_remaining: string;
2650
+ card?: {
2651
+ rest_id: string;
2652
+ legacy: {
2653
+ binding_values: {
2654
+ key: string;
2655
+ value: {
2656
+ string_value?: string;
2657
+ type: string;
2658
+ scribe_key?: string;
2659
+ image_value?: {
2660
+ height: number;
2661
+ width: number;
2662
+ url: string;
2663
+ };
2664
+ user_value?: {
2665
+ id_str: string;
2666
+ path: unknown[];
2667
+ };
2668
+ image_color_value?: {
2669
+ palette: {
2670
+ rgb: {
2671
+ blue: number;
2672
+ green: number;
2673
+ red: number;
2674
+ };
2675
+ percentage: number;
2676
+ }[];
2677
+ };
2678
+ };
2679
+ }[];
2680
+ card_platform: {
2681
+ platform: {
2682
+ audience: {
2683
+ name: string;
2684
+ };
2685
+ device: {
2686
+ name: string;
2687
+ version: string;
2688
+ };
2689
+ };
2690
+ };
2691
+ name: string;
2692
+ url: string;
2693
+ user_refs_results: {
2694
+ result: {
2695
+ __typename: string;
2696
+ id: string;
2697
+ rest_id: string;
2698
+ affiliates_highlighted_label: {};
2699
+ has_graduated_access: boolean;
2700
+ is_blue_verified: boolean;
2701
+ profile_image_shape: string;
2702
+ legacy: {
2703
+ can_dm: boolean;
2704
+ can_media_tag: boolean;
2705
+ created_at: string;
2706
+ default_profile: boolean;
2707
+ default_profile_image: boolean;
2708
+ description: string;
2709
+ entities: {
2710
+ description: {
2711
+ urls: unknown[];
2712
+ };
2713
+ url: {
2714
+ urls: {
2715
+ display_url: string;
2716
+ expanded_url: string;
2717
+ url: string;
2718
+ indices: number[];
2719
+ }[];
2720
+ };
2721
+ };
2722
+ fast_followers_count: number;
2723
+ favourites_count: number;
2724
+ followers_count: number;
2725
+ friends_count: number;
2726
+ has_custom_timelines: boolean;
2727
+ is_translator: boolean;
2728
+ listed_count: number;
2729
+ location: string;
2730
+ media_count: number;
2731
+ name: string;
2732
+ normal_followers_count: number;
2733
+ pinned_tweet_ids_str: unknown[];
2734
+ possibly_sensitive: boolean;
2735
+ profile_banner_url: string;
2736
+ profile_image_url_https: string;
2737
+ profile_interstitial_type: string;
2738
+ screen_name: string;
2739
+ statuses_count: number;
2740
+ translator_type: string;
2741
+ url: string;
2742
+ verified: boolean;
2743
+ verified_type: string;
2744
+ want_retweets: boolean;
2745
+ withheld_in_countries: unknown[];
2746
+ };
2747
+ };
2748
+ }[];
2749
+ };
2610
2750
  };
2611
- edit_perspective?: {
2612
- favorited: boolean;
2613
- retweeted: boolean;
2751
+ unified_card?: {
2752
+ card_fetch_state: string;
2753
+ };
2754
+ edit_control: {
2755
+ edit_tweet_ids?: string[];
2756
+ editable_until_msecs?: string;
2757
+ is_edit_eligible?: boolean;
2758
+ edits_remaining?: string;
2759
+ initial_tweet_id?: string;
2760
+ edit_control_initial?: {
2761
+ edit_tweet_ids: string[];
2762
+ editable_until_msecs: string;
2763
+ is_edit_eligible: boolean;
2764
+ edits_remaining: string;
2765
+ };
2614
2766
  };
2615
2767
  is_translatable: boolean;
2616
2768
  views: {
2617
- state: string;
2618
2769
  count?: string;
2770
+ state: string;
2619
2771
  };
2620
2772
  source: string;
2621
2773
  legacy: {
2622
2774
  bookmark_count: number;
2623
2775
  bookmarked: boolean;
2624
2776
  created_at: string;
2625
- conversation_control: {
2777
+ conversation_control?: {
2626
2778
  policy: string;
2627
2779
  conversation_owner_results: {
2628
2780
  result: {
@@ -2659,8 +2811,6 @@ export interface CustomTimelineTweetEntry {
2659
2811
  id_str: string;
2660
2812
  indices: number[];
2661
2813
  media_url_https: string;
2662
- source_status_id_str?: string;
2663
- source_user_id_str?: string;
2664
2814
  type: string;
2665
2815
  url: string;
2666
2816
  features: {
@@ -2729,6 +2879,8 @@ export interface CustomTimelineTweetEntry {
2729
2879
  h: number;
2730
2880
  }[];
2731
2881
  };
2882
+ source_status_id_str?: string;
2883
+ source_user_id_str?: string;
2732
2884
  }[];
2733
2885
  };
2734
2886
  favorite_count: number;
@@ -2737,18 +2889,30 @@ export interface CustomTimelineTweetEntry {
2737
2889
  is_quote_status: boolean;
2738
2890
  lang: string;
2739
2891
  limited_actions: string;
2892
+ possibly_sensitive?: boolean;
2893
+ possibly_sensitive_editable?: boolean;
2740
2894
  quote_count: number;
2741
2895
  reply_count: number;
2742
2896
  retweet_count: number;
2743
2897
  retweeted: boolean;
2898
+ scopes?: {
2899
+ followers: boolean;
2900
+ };
2744
2901
  user_id_str: string;
2745
2902
  id_str: string;
2746
- retweeted_status_result?: {
2747
- result: {
2748
- __typename: string;
2749
- tweet: {
2750
- rest_id: string;
2751
- core: {
2903
+ extended_entities?: {
2904
+ media: {
2905
+ display_url: string;
2906
+ expanded_url: string;
2907
+ id_str: string;
2908
+ indices: number[];
2909
+ media_key: string;
2910
+ media_url_https: string;
2911
+ type: string;
2912
+ url: string;
2913
+ additional_media_info?: {
2914
+ monetizable: boolean;
2915
+ source_user?: {
2752
2916
  user_results: {
2753
2917
  result: {
2754
2918
  __typename: string;
@@ -2767,12 +2931,7 @@ export interface CustomTimelineTweetEntry {
2767
2931
  description: string;
2768
2932
  entities: {
2769
2933
  description: {
2770
- urls: {
2771
- display_url: string;
2772
- expanded_url: string;
2773
- url: string;
2774
- indices: number[];
2775
- }[];
2934
+ urls: unknown[];
2776
2935
  };
2777
2936
  url?: {
2778
2937
  urls: {
@@ -2796,46 +2955,199 @@ export interface CustomTimelineTweetEntry {
2796
2955
  normal_followers_count: number;
2797
2956
  pinned_tweet_ids_str: string[];
2798
2957
  possibly_sensitive: boolean;
2799
- profile_banner_url: string;
2800
2958
  profile_image_url_https: string;
2801
2959
  profile_interstitial_type: string;
2802
2960
  screen_name: string;
2803
2961
  statuses_count: number;
2804
2962
  translator_type: string;
2805
- url?: string;
2806
2963
  verified: boolean;
2807
2964
  want_retweets: boolean;
2808
2965
  withheld_in_countries: unknown[];
2809
- };
2810
- professional?: {
2811
- rest_id: string;
2812
- professional_type: string;
2813
- category: unknown[];
2966
+ profile_banner_url?: string;
2967
+ url?: string;
2814
2968
  };
2815
2969
  };
2816
2970
  };
2817
2971
  };
2818
- edit_control: {
2819
- edit_tweet_ids: string[];
2820
- editable_until_msecs: string;
2821
- is_edit_eligible: boolean;
2822
- edits_remaining: string;
2972
+ };
2973
+ mediaStats?: {
2974
+ viewCount: number;
2975
+ };
2976
+ ext_media_availability: {
2977
+ status: string;
2978
+ };
2979
+ features: {
2980
+ large?: {
2981
+ faces: {
2982
+ x: number;
2983
+ y: number;
2984
+ h: number;
2985
+ w: number;
2986
+ }[];
2823
2987
  };
2824
- edit_perspective?: {
2825
- favorited: boolean;
2826
- retweeted: boolean;
2988
+ medium?: {
2989
+ faces: {
2990
+ x: number;
2991
+ y: number;
2992
+ h: number;
2993
+ w: number;
2994
+ }[];
2827
2995
  };
2828
- is_translatable: boolean;
2829
- views: {
2830
- count: string;
2831
- state: string;
2996
+ small?: {
2997
+ faces: {
2998
+ x: number;
2999
+ y: number;
3000
+ h: number;
3001
+ w: number;
3002
+ }[];
2832
3003
  };
2833
- source: string;
2834
- legacy: {
2835
- bookmark_count: number;
2836
- bookmarked: boolean;
2837
- created_at: string;
2838
- conversation_control: {
3004
+ orig?: {
3005
+ faces: {
3006
+ x: number;
3007
+ y: number;
3008
+ h: number;
3009
+ w: number;
3010
+ }[];
3011
+ };
3012
+ };
3013
+ sizes: {
3014
+ large: {
3015
+ h: number;
3016
+ w: number;
3017
+ resize: string;
3018
+ };
3019
+ medium: {
3020
+ h: number;
3021
+ w: number;
3022
+ resize: string;
3023
+ };
3024
+ small: {
3025
+ h: number;
3026
+ w: number;
3027
+ resize: string;
3028
+ };
3029
+ thumb: {
3030
+ h: number;
3031
+ w: number;
3032
+ resize: string;
3033
+ };
3034
+ };
3035
+ original_info: {
3036
+ height: number;
3037
+ width: number;
3038
+ focus_rects?: {
3039
+ x: number;
3040
+ y: number;
3041
+ w: number;
3042
+ h: number;
3043
+ }[];
3044
+ };
3045
+ video_info?: {
3046
+ aspect_ratio: number[];
3047
+ duration_millis: number;
3048
+ variants: {
3049
+ content_type: string;
3050
+ url: string;
3051
+ bitrate?: number;
3052
+ }[];
3053
+ };
3054
+ source_status_id_str?: string;
3055
+ source_user_id_str?: string;
3056
+ }[];
3057
+ };
3058
+ retweeted_status_result?: {
3059
+ result: {
3060
+ __typename: string;
3061
+ tweet: {
3062
+ rest_id: string;
3063
+ core: {
3064
+ user_results: {
3065
+ result: {
3066
+ __typename: string;
3067
+ id: string;
3068
+ rest_id: string;
3069
+ affiliates_highlighted_label: {};
3070
+ has_graduated_access: boolean;
3071
+ is_blue_verified: boolean;
3072
+ profile_image_shape: string;
3073
+ legacy: {
3074
+ can_dm: boolean;
3075
+ can_media_tag: boolean;
3076
+ created_at: string;
3077
+ default_profile: boolean;
3078
+ default_profile_image: boolean;
3079
+ description: string;
3080
+ entities: {
3081
+ description: {
3082
+ urls: {
3083
+ display_url: string;
3084
+ expanded_url: string;
3085
+ url: string;
3086
+ indices: number[];
3087
+ }[];
3088
+ };
3089
+ url?: {
3090
+ urls: {
3091
+ display_url: string;
3092
+ expanded_url: string;
3093
+ url: string;
3094
+ indices: number[];
3095
+ }[];
3096
+ };
3097
+ };
3098
+ fast_followers_count: number;
3099
+ favourites_count: number;
3100
+ followers_count: number;
3101
+ friends_count: number;
3102
+ has_custom_timelines: boolean;
3103
+ is_translator: boolean;
3104
+ listed_count: number;
3105
+ location: string;
3106
+ media_count: number;
3107
+ name: string;
3108
+ normal_followers_count: number;
3109
+ pinned_tweet_ids_str: string[];
3110
+ possibly_sensitive: boolean;
3111
+ profile_banner_url: string;
3112
+ profile_image_url_https: string;
3113
+ profile_interstitial_type: string;
3114
+ screen_name: string;
3115
+ statuses_count: number;
3116
+ translator_type: string;
3117
+ url?: string;
3118
+ verified: boolean;
3119
+ want_retweets: boolean;
3120
+ withheld_in_countries: unknown[];
3121
+ };
3122
+ professional?: {
3123
+ rest_id: string;
3124
+ professional_type: string;
3125
+ category: unknown[];
3126
+ };
3127
+ };
3128
+ };
3129
+ };
3130
+ edit_control: {
3131
+ edit_tweet_ids: string[];
3132
+ editable_until_msecs: string;
3133
+ is_edit_eligible: boolean;
3134
+ edits_remaining: string;
3135
+ };
3136
+ edit_perspective?: {
3137
+ favorited: boolean;
3138
+ retweeted: boolean;
3139
+ };
3140
+ is_translatable: boolean;
3141
+ views: {
3142
+ count: string;
3143
+ state: string;
3144
+ };
3145
+ source: string;
3146
+ legacy: {
3147
+ bookmark_count: number;
3148
+ bookmarked: boolean;
3149
+ created_at: string;
3150
+ conversation_control: {
2839
3151
  policy: string;
2840
3152
  conversation_owner_results: {
2841
3153
  result: {
@@ -3073,169 +3385,57 @@ export interface CustomTimelineTweetEntry {
3073
3385
  };
3074
3386
  };
3075
3387
  };
3076
- extended_entities?: {
3077
- media: {
3078
- display_url: string;
3079
- expanded_url: string;
3080
- id_str: string;
3081
- indices: number[];
3082
- media_key: string;
3083
- media_url_https: string;
3084
- source_status_id_str?: string;
3085
- source_user_id_str?: string;
3086
- type: string;
3087
- url: string;
3088
- ext_media_availability: {
3089
- status: string;
3090
- };
3091
- features: {
3092
- large?: {
3093
- faces: {
3094
- x: number;
3095
- y: number;
3096
- h: number;
3097
- w: number;
3098
- }[];
3099
- };
3100
- medium?: {
3101
- faces: {
3102
- x: number;
3103
- y: number;
3104
- h: number;
3105
- w: number;
3106
- }[];
3107
- };
3108
- small?: {
3109
- faces: {
3110
- x: number;
3111
- y: number;
3112
- h: number;
3113
- w: number;
3114
- }[];
3115
- };
3116
- orig?: {
3117
- faces: {
3118
- x: number;
3119
- y: number;
3120
- h: number;
3121
- w: number;
3122
- }[];
3123
- };
3388
+ };
3389
+ edit_perspective?: {
3390
+ favorited: boolean;
3391
+ retweeted: boolean;
3392
+ };
3393
+ previous_counts?: {
3394
+ bookmark_count: number;
3395
+ favorite_count: number;
3396
+ quote_count: number;
3397
+ reply_count: number;
3398
+ retweet_count: number;
3399
+ };
3400
+ note_tweet?: {
3401
+ is_expandable: boolean;
3402
+ note_tweet_results: {
3403
+ result: {
3404
+ id: string;
3405
+ text: string;
3406
+ entity_set: {
3407
+ user_mentions: {
3408
+ id_str: string;
3409
+ name: string;
3410
+ screen_name: string;
3411
+ indices: number[];
3412
+ }[];
3413
+ urls: {
3414
+ display_url: string;
3415
+ expanded_url: string;
3416
+ url: string;
3417
+ indices: number[];
3418
+ }[];
3419
+ hashtags: {
3420
+ indices: number[];
3421
+ text: string;
3422
+ }[];
3423
+ symbols: unknown[];
3124
3424
  };
3125
- sizes: {
3126
- large: {
3127
- h: number;
3128
- w: number;
3129
- resize: string;
3130
- };
3131
- medium: {
3132
- h: number;
3133
- w: number;
3134
- resize: string;
3135
- };
3136
- small: {
3137
- h: number;
3138
- w: number;
3139
- resize: string;
3140
- };
3141
- thumb: {
3142
- h: number;
3143
- w: number;
3144
- resize: string;
3145
- };
3425
+ richtext: {
3426
+ richtext_tags: unknown[];
3146
3427
  };
3147
- original_info: {
3148
- height: number;
3149
- width: number;
3150
- focus_rects?: {
3151
- x: number;
3152
- y: number;
3153
- w: number;
3154
- h: number;
3155
- }[];
3428
+ media: {
3429
+ inline_media: unknown[];
3156
3430
  };
3157
- additional_media_info?: {
3158
- monetizable: boolean;
3159
- source_user?: {
3160
- user_results: {
3161
- result: {
3162
- __typename: string;
3163
- id: string;
3164
- rest_id: string;
3165
- affiliates_highlighted_label: {};
3166
- has_graduated_access: boolean;
3167
- is_blue_verified: boolean;
3168
- profile_image_shape: string;
3169
- legacy: {
3170
- can_dm: boolean;
3171
- can_media_tag: boolean;
3172
- created_at: string;
3173
- default_profile: boolean;
3174
- default_profile_image: boolean;
3175
- description: string;
3176
- entities: {
3177
- description: {
3178
- urls: unknown[];
3179
- };
3180
- url?: {
3181
- urls: {
3182
- display_url: string;
3183
- expanded_url: string;
3184
- url: string;
3185
- indices: number[];
3186
- }[];
3187
- };
3188
- };
3189
- fast_followers_count: number;
3190
- favourites_count: number;
3191
- followers_count: number;
3192
- friends_count: number;
3193
- has_custom_timelines: boolean;
3194
- is_translator: boolean;
3195
- listed_count: number;
3196
- location: string;
3197
- media_count: number;
3198
- name: string;
3199
- normal_followers_count: number;
3200
- pinned_tweet_ids_str: string[];
3201
- possibly_sensitive: boolean;
3202
- profile_image_url_https: string;
3203
- profile_interstitial_type: string;
3204
- screen_name: string;
3205
- statuses_count: number;
3206
- translator_type: string;
3207
- verified: boolean;
3208
- want_retweets: boolean;
3209
- withheld_in_countries: unknown[];
3210
- profile_banner_url?: string;
3211
- url?: string;
3212
- };
3213
- };
3214
- };
3215
- };
3216
- };
3217
- mediaStats?: {
3218
- viewCount: number;
3219
- };
3220
- video_info?: {
3221
- aspect_ratio: number[];
3222
- duration_millis: number;
3223
- variants: {
3224
- content_type: string;
3225
- url: string;
3226
- bitrate?: number;
3227
- }[];
3228
- };
3229
- }[];
3431
+ };
3230
3432
  };
3231
- possibly_sensitive?: boolean;
3232
- possibly_sensitive_editable?: boolean;
3233
3433
  };
3234
3434
  };
3235
3435
  limitedActionResults?: {
3236
3436
  limited_actions: {
3237
3437
  action: string;
3238
- prompt: {
3438
+ prompt?: {
3239
3439
  __typename: string;
3240
3440
  cta_type: string;
3241
3441
  headline: {
@@ -3249,6 +3449,13 @@ export interface CustomTimelineTweetEntry {
3249
3449
  };
3250
3450
  }[];
3251
3451
  };
3452
+ previous_counts?: {
3453
+ bookmark_count: number;
3454
+ favorite_count: number;
3455
+ quote_count: number;
3456
+ reply_count: number;
3457
+ retweet_count: number;
3458
+ };
3252
3459
  note_tweet?: {
3253
3460
  is_expandable: boolean;
3254
3461
  note_tweet_results: {
@@ -3275,7 +3482,11 @@ export interface CustomTimelineTweetEntry {
3275
3482
  symbols: unknown[];
3276
3483
  };
3277
3484
  richtext?: {
3278
- richtext_tags: unknown[];
3485
+ richtext_tags: {
3486
+ from_index: number;
3487
+ to_index: number;
3488
+ richtext_types: string[];
3489
+ }[];
3279
3490
  };
3280
3491
  media?: {
3281
3492
  inline_media: unknown[];
@@ -3283,6 +3494,48 @@ export interface CustomTimelineTweetEntry {
3283
3494
  };
3284
3495
  };
3285
3496
  };
3497
+ edit_perspective?: {
3498
+ favorited: boolean;
3499
+ retweeted: boolean;
3500
+ };
3501
+ birdwatch_pivot?: {
3502
+ callToAction: {
3503
+ prompt: string;
3504
+ title: string;
3505
+ destinationUrl: string;
3506
+ };
3507
+ destinationUrl: string;
3508
+ footer: {
3509
+ text: string;
3510
+ entities: {
3511
+ fromIndex: number;
3512
+ toIndex: number;
3513
+ ref: {
3514
+ type: string;
3515
+ url: string;
3516
+ urlType: string;
3517
+ };
3518
+ }[];
3519
+ };
3520
+ note: {
3521
+ rest_id: string;
3522
+ };
3523
+ subtitle: {
3524
+ text: string;
3525
+ entities: {
3526
+ fromIndex: number;
3527
+ toIndex: number;
3528
+ ref: {
3529
+ type: string;
3530
+ url: string;
3531
+ urlType: string;
3532
+ };
3533
+ }[];
3534
+ };
3535
+ title: string;
3536
+ shorttitle: string;
3537
+ iconType: string;
3538
+ };
3286
3539
  };
3287
3540
  };
3288
3541
  tweetDisplayType: string;
@@ -3312,6 +3565,331 @@ export interface CustomTimelineTweetEntry {
3312
3565
  };
3313
3566
  functionalityType?: string;
3314
3567
  };
3568
+ promotedMetadata?: {
3569
+ advertiser_results: {
3570
+ result: {
3571
+ __typename: string;
3572
+ id: string;
3573
+ rest_id: string;
3574
+ affiliates_highlighted_label: {
3575
+ label?: {
3576
+ url?: {
3577
+ url: string;
3578
+ urlType: string;
3579
+ };
3580
+ badge: {
3581
+ url: string;
3582
+ };
3583
+ description: string;
3584
+ userLabelType: string;
3585
+ userLabelDisplayType?: string;
3586
+ longDescription?: {
3587
+ text: string;
3588
+ entities: {
3589
+ fromIndex: number;
3590
+ toIndex: number;
3591
+ ref: {
3592
+ type: string;
3593
+ screen_name: string;
3594
+ mention_results: {
3595
+ result: {
3596
+ __typename: string;
3597
+ reason: string;
3598
+ };
3599
+ };
3600
+ };
3601
+ }[];
3602
+ };
3603
+ };
3604
+ };
3605
+ has_graduated_access: boolean;
3606
+ is_blue_verified: boolean;
3607
+ profile_image_shape: string;
3608
+ legacy: {
3609
+ can_dm: boolean;
3610
+ can_media_tag: boolean;
3611
+ created_at: string;
3612
+ default_profile: boolean;
3613
+ default_profile_image: boolean;
3614
+ description: string;
3615
+ entities: {
3616
+ description: {
3617
+ urls: {
3618
+ display_url: string;
3619
+ expanded_url: string;
3620
+ url: string;
3621
+ indices: number[];
3622
+ }[];
3623
+ };
3624
+ url?: {
3625
+ urls: {
3626
+ display_url?: string;
3627
+ expanded_url?: string;
3628
+ url: string;
3629
+ indices: number[];
3630
+ }[];
3631
+ };
3632
+ };
3633
+ fast_followers_count: number;
3634
+ favourites_count: number;
3635
+ followers_count: number;
3636
+ friends_count: number;
3637
+ has_custom_timelines: boolean;
3638
+ is_translator: boolean;
3639
+ listed_count: number;
3640
+ location: string;
3641
+ media_count: number;
3642
+ name: string;
3643
+ normal_followers_count: number;
3644
+ pinned_tweet_ids_str: string[];
3645
+ possibly_sensitive: boolean;
3646
+ profile_banner_url?: string;
3647
+ profile_image_url_https: string;
3648
+ profile_interstitial_type: string;
3649
+ screen_name: string;
3650
+ statuses_count: number;
3651
+ translator_type: string;
3652
+ url?: string;
3653
+ verified: boolean;
3654
+ verified_type?: string;
3655
+ want_retweets: boolean;
3656
+ withheld_in_countries: unknown[];
3657
+ };
3658
+ professional?: {
3659
+ rest_id: string;
3660
+ professional_type: string;
3661
+ category: {
3662
+ id: number;
3663
+ name: string;
3664
+ icon_name: string;
3665
+ }[];
3666
+ };
3667
+ super_follow_eligible?: boolean;
3668
+ };
3669
+ };
3670
+ disclosureType: string;
3671
+ experimentValues: {
3672
+ key: string;
3673
+ value: string;
3674
+ }[];
3675
+ impressionId: string;
3676
+ impressionString: string;
3677
+ promotedTrendName?: string;
3678
+ promotedTrendQueryTerm?: string;
3679
+ promotedTrend?: {
3680
+ rest_id: string;
3681
+ };
3682
+ clickTrackingInfo?: {
3683
+ urlParams: {
3684
+ key: string;
3685
+ value: string;
3686
+ }[];
3687
+ urlOverride?: string;
3688
+ urlOverrideType?: string;
3689
+ };
3690
+ adMetadataContainer?: {
3691
+ dynamicCardContent?: {
3692
+ card_type: string;
3693
+ layout: {
3694
+ __typename: string;
3695
+ components: {
3696
+ __typename: string;
3697
+ media?: {
3698
+ id: string;
3699
+ media_key: string;
3700
+ media_id: string;
3701
+ media_info: {
3702
+ __typename: string;
3703
+ original_img_height: number;
3704
+ original_img_width: number;
3705
+ original_img_url: string;
3706
+ color_info: {
3707
+ palette: {
3708
+ percentage: number;
3709
+ rgb: {
3710
+ blue: number;
3711
+ green: number;
3712
+ red: number;
3713
+ };
3714
+ }[];
3715
+ };
3716
+ };
3717
+ };
3718
+ destination_obj?: {
3719
+ __typename: string;
3720
+ user_id: string;
3721
+ };
3722
+ user?: {
3723
+ rest_id: string;
3724
+ };
3725
+ first_media?: {
3726
+ media: {
3727
+ id: string;
3728
+ media_key: string;
3729
+ media_id: string;
3730
+ media_info: {
3731
+ __typename: string;
3732
+ original_img_height: number;
3733
+ original_img_width: number;
3734
+ original_img_url: string;
3735
+ color_info: {
3736
+ palette: {
3737
+ percentage: number;
3738
+ rgb: {
3739
+ blue: number;
3740
+ green: number;
3741
+ red: number;
3742
+ };
3743
+ }[];
3744
+ };
3745
+ };
3746
+ };
3747
+ destination_obj: {
3748
+ __typename: string;
3749
+ user_id: string;
3750
+ };
3751
+ };
3752
+ full_media_list?: {
3753
+ media: {
3754
+ id: string;
3755
+ media_key: string;
3756
+ media_id: string;
3757
+ media_info: {
3758
+ __typename: string;
3759
+ original_img_height: number;
3760
+ original_img_width: number;
3761
+ original_img_url: string;
3762
+ color_info: {
3763
+ palette: {
3764
+ percentage: number;
3765
+ rgb: {
3766
+ blue: number;
3767
+ green: number;
3768
+ red: number;
3769
+ };
3770
+ }[];
3771
+ };
3772
+ };
3773
+ };
3774
+ destination_obj: {
3775
+ __typename: string;
3776
+ user_id: string;
3777
+ };
3778
+ }[];
3779
+ }[];
3780
+ };
3781
+ display_options: {};
3782
+ card_fetch_state: string;
3783
+ };
3784
+ unifiedCardOverride?: string;
3785
+ remove_promoted_attribution_for_preroll?: boolean;
3786
+ };
3787
+ };
3788
+ prerollMetadata?: {
3789
+ preroll: {
3790
+ dynamicPrerollType: string;
3791
+ mediaInfo: {
3792
+ advertiserName: string;
3793
+ advertiserProfileImageUrl: string;
3794
+ callToAction: {
3795
+ callToActionType: string;
3796
+ url: string;
3797
+ };
3798
+ durationMillis: number;
3799
+ publisherResults: {
3800
+ result: {
3801
+ __typename: string;
3802
+ id: string;
3803
+ rest_id: string;
3804
+ affiliates_highlighted_label: {
3805
+ label?: {
3806
+ url: {
3807
+ url: string;
3808
+ urlType: string;
3809
+ };
3810
+ badge: {
3811
+ url: string;
3812
+ };
3813
+ description: string;
3814
+ userLabelType: string;
3815
+ userLabelDisplayType: string;
3816
+ };
3817
+ };
3818
+ has_graduated_access: boolean;
3819
+ is_blue_verified: boolean;
3820
+ profile_image_shape: string;
3821
+ legacy: {
3822
+ can_dm: boolean;
3823
+ can_media_tag: boolean;
3824
+ created_at: string;
3825
+ default_profile: boolean;
3826
+ default_profile_image: boolean;
3827
+ description: string;
3828
+ entities: {
3829
+ description: {
3830
+ urls: {
3831
+ display_url: string;
3832
+ expanded_url: string;
3833
+ url: string;
3834
+ indices: number[];
3835
+ }[];
3836
+ };
3837
+ url?: {
3838
+ urls: {
3839
+ display_url: string;
3840
+ expanded_url: string;
3841
+ url: string;
3842
+ indices: number[];
3843
+ }[];
3844
+ };
3845
+ };
3846
+ fast_followers_count: number;
3847
+ favourites_count: number;
3848
+ followers_count: number;
3849
+ friends_count: number;
3850
+ has_custom_timelines: boolean;
3851
+ is_translator: boolean;
3852
+ listed_count: number;
3853
+ location: string;
3854
+ media_count: number;
3855
+ name: string;
3856
+ normal_followers_count: number;
3857
+ pinned_tweet_ids_str: unknown[];
3858
+ possibly_sensitive: boolean;
3859
+ profile_banner_url: string;
3860
+ profile_image_url_https: string;
3861
+ profile_interstitial_type: string;
3862
+ screen_name: string;
3863
+ statuses_count: number;
3864
+ translator_type: string;
3865
+ url?: string;
3866
+ verified: boolean;
3867
+ verified_type: string;
3868
+ want_retweets: boolean;
3869
+ withheld_in_countries: unknown[];
3870
+ };
3871
+ professional?: {
3872
+ rest_id: string;
3873
+ professional_type: string;
3874
+ category: {
3875
+ id: number;
3876
+ name: string;
3877
+ icon_name: string;
3878
+ }[];
3879
+ };
3880
+ };
3881
+ };
3882
+ renderAdByAdvertiserName: boolean;
3883
+ uuid: string;
3884
+ videoVariants: {
3885
+ bitrate?: number;
3886
+ contentType: string;
3887
+ url: string;
3888
+ }[];
3889
+ };
3890
+ prerollId: string;
3891
+ };
3892
+ };
3315
3893
  };
3316
3894
  feedbackInfo?: {
3317
3895
  feedbackKeys: string[];