@book000/twitterts 0.10.7 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generate-types.js +72 -9
- package/dist/generate-types.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +24 -3
- package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +1718 -2
- package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
- package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +2824 -0
- package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -0
- package/dist/models/responses/custom/custom-user-tweet-entry.js +4 -0
- package/dist/models/responses/custom/custom-user-tweet-entry.js.map +1 -0
- package/dist/models/responses/endpoints.d.ts +5 -2
- package/dist/models/responses/endpoints.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +178 -0
- package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/get/audio-space-by-id-success.js +4 -0
- package/dist/models/responses/graphql/get/audio-space-by-id-success.js.map +1 -0
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +78 -5
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/search-timeline-success.d.ts +24 -3
- package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +41 -2
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-tweets-success.d.ts +1557 -105
- package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +29 -5
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts +241 -21
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
- package/dist/options.d.ts +10 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js.map +1 -1
- package/dist/parser/parser.test.d.ts +2 -0
- package/dist/parser/parser.test.d.ts.map +1 -0
- package/dist/parser/parser.test.js +46 -0
- package/dist/parser/parser.test.js.map +1 -0
- package/dist/parser/search-timeline.d.ts.map +1 -1
- package/dist/parser/search-timeline.js +9 -6
- package/dist/parser/search-timeline.js.map +1 -1
- package/dist/parser/user-tweets.d.ts +20 -0
- package/dist/parser/user-tweets.d.ts.map +1 -0
- package/dist/parser/user-tweets.js +59 -0
- package/dist/parser/user-tweets.js.map +1 -0
- package/dist/scraper.d.ts.map +1 -1
- package/dist/scraper.js +1 -0
- package/dist/scraper.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/twitter.d.ts +8 -1
- package/dist/twitter.d.ts.map +1 -1
- package/dist/twitter.js +47 -1
- package/dist/twitter.js.map +1 -1
- package/dist/twitter.test.js +7 -0
- package/dist/twitter.test.js.map +1 -1
- package/package.json +5 -1
|
@@ -5,7 +5,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
5
5
|
home_timeline_urt: {
|
|
6
6
|
instructions: {
|
|
7
7
|
type: string;
|
|
8
|
-
entries
|
|
8
|
+
entries?: {
|
|
9
9
|
entryId: string;
|
|
10
10
|
sortIndex: string;
|
|
11
11
|
content: {
|
|
@@ -328,7 +328,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
328
328
|
description: {
|
|
329
329
|
urls: unknown[];
|
|
330
330
|
};
|
|
331
|
-
url
|
|
331
|
+
url?: {
|
|
332
332
|
urls: {
|
|
333
333
|
display_url: string;
|
|
334
334
|
expanded_url: string;
|
|
@@ -356,7 +356,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
356
356
|
screen_name: string;
|
|
357
357
|
statuses_count: number;
|
|
358
358
|
translator_type: string;
|
|
359
|
-
url
|
|
359
|
+
url?: string;
|
|
360
360
|
verified: boolean;
|
|
361
361
|
want_retweets: boolean;
|
|
362
362
|
withheld_in_countries: unknown[];
|
|
@@ -667,7 +667,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
667
667
|
description: {
|
|
668
668
|
urls: unknown[];
|
|
669
669
|
};
|
|
670
|
-
url
|
|
670
|
+
url?: {
|
|
671
671
|
urls: {
|
|
672
672
|
display_url: string;
|
|
673
673
|
expanded_url: string;
|
|
@@ -687,7 +687,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
687
687
|
media_count: number;
|
|
688
688
|
name: string;
|
|
689
689
|
normal_followers_count: number;
|
|
690
|
-
pinned_tweet_ids_str:
|
|
690
|
+
pinned_tweet_ids_str: string[];
|
|
691
691
|
possibly_sensitive: boolean;
|
|
692
692
|
profile_banner_url: string;
|
|
693
693
|
profile_image_url_https: string;
|
|
@@ -695,15 +695,19 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
695
695
|
screen_name: string;
|
|
696
696
|
statuses_count: number;
|
|
697
697
|
translator_type: string;
|
|
698
|
-
url
|
|
698
|
+
url?: string;
|
|
699
699
|
verified: boolean;
|
|
700
700
|
want_retweets: boolean;
|
|
701
701
|
withheld_in_countries: unknown[];
|
|
702
702
|
};
|
|
703
|
-
professional
|
|
703
|
+
professional?: {
|
|
704
704
|
rest_id: string;
|
|
705
705
|
professional_type: string;
|
|
706
|
-
category:
|
|
706
|
+
category: {
|
|
707
|
+
id: number;
|
|
708
|
+
name: string;
|
|
709
|
+
icon_name: string;
|
|
710
|
+
}[];
|
|
707
711
|
};
|
|
708
712
|
};
|
|
709
713
|
};
|
|
@@ -800,6 +804,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
800
804
|
};
|
|
801
805
|
source_status_id_str?: string;
|
|
802
806
|
source_user_id_str?: string;
|
|
807
|
+
ext_alt_text?: string;
|
|
803
808
|
}[];
|
|
804
809
|
};
|
|
805
810
|
favorite_count: number;
|
|
@@ -1971,7 +1976,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
1971
1976
|
type: string;
|
|
1972
1977
|
url: string;
|
|
1973
1978
|
features: {
|
|
1974
|
-
large
|
|
1979
|
+
large?: {
|
|
1975
1980
|
faces: {
|
|
1976
1981
|
x: number;
|
|
1977
1982
|
y: number;
|
|
@@ -1979,7 +1984,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
1979
1984
|
w: number;
|
|
1980
1985
|
}[];
|
|
1981
1986
|
};
|
|
1982
|
-
medium
|
|
1987
|
+
medium?: {
|
|
1983
1988
|
faces: {
|
|
1984
1989
|
x: number;
|
|
1985
1990
|
y: number;
|
|
@@ -1987,7 +1992,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
1987
1992
|
w: number;
|
|
1988
1993
|
}[];
|
|
1989
1994
|
};
|
|
1990
|
-
small
|
|
1995
|
+
small?: {
|
|
1991
1996
|
faces: {
|
|
1992
1997
|
x: number;
|
|
1993
1998
|
y: number;
|
|
@@ -1995,7 +2000,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
1995
2000
|
w: number;
|
|
1996
2001
|
}[];
|
|
1997
2002
|
};
|
|
1998
|
-
orig
|
|
2003
|
+
orig?: {
|
|
1999
2004
|
faces: {
|
|
2000
2005
|
x: number;
|
|
2001
2006
|
y: number;
|
|
@@ -2029,7 +2034,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2029
2034
|
original_info: {
|
|
2030
2035
|
height: number;
|
|
2031
2036
|
width: number;
|
|
2032
|
-
focus_rects
|
|
2037
|
+
focus_rects?: {
|
|
2033
2038
|
x: number;
|
|
2034
2039
|
y: number;
|
|
2035
2040
|
w: number;
|
|
@@ -2044,7 +2049,10 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2044
2049
|
url: string;
|
|
2045
2050
|
indices: number[];
|
|
2046
2051
|
}[];
|
|
2047
|
-
hashtags:
|
|
2052
|
+
hashtags: {
|
|
2053
|
+
indices: number[];
|
|
2054
|
+
text: string;
|
|
2055
|
+
}[];
|
|
2048
2056
|
symbols: unknown[];
|
|
2049
2057
|
};
|
|
2050
2058
|
extended_entities?: {
|
|
@@ -2061,7 +2069,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2061
2069
|
status: string;
|
|
2062
2070
|
};
|
|
2063
2071
|
features: {
|
|
2064
|
-
large
|
|
2072
|
+
large?: {
|
|
2065
2073
|
faces: {
|
|
2066
2074
|
x: number;
|
|
2067
2075
|
y: number;
|
|
@@ -2069,7 +2077,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2069
2077
|
w: number;
|
|
2070
2078
|
}[];
|
|
2071
2079
|
};
|
|
2072
|
-
medium
|
|
2080
|
+
medium?: {
|
|
2073
2081
|
faces: {
|
|
2074
2082
|
x: number;
|
|
2075
2083
|
y: number;
|
|
@@ -2077,7 +2085,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2077
2085
|
w: number;
|
|
2078
2086
|
}[];
|
|
2079
2087
|
};
|
|
2080
|
-
small
|
|
2088
|
+
small?: {
|
|
2081
2089
|
faces: {
|
|
2082
2090
|
x: number;
|
|
2083
2091
|
y: number;
|
|
@@ -2085,7 +2093,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2085
2093
|
w: number;
|
|
2086
2094
|
}[];
|
|
2087
2095
|
};
|
|
2088
|
-
orig
|
|
2096
|
+
orig?: {
|
|
2089
2097
|
faces: {
|
|
2090
2098
|
x: number;
|
|
2091
2099
|
y: number;
|
|
@@ -2119,13 +2127,28 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2119
2127
|
original_info: {
|
|
2120
2128
|
height: number;
|
|
2121
2129
|
width: number;
|
|
2122
|
-
focus_rects
|
|
2130
|
+
focus_rects?: {
|
|
2123
2131
|
x: number;
|
|
2124
2132
|
y: number;
|
|
2125
2133
|
w: number;
|
|
2126
2134
|
h: number;
|
|
2127
2135
|
}[];
|
|
2128
2136
|
};
|
|
2137
|
+
additional_media_info?: {
|
|
2138
|
+
monetizable: boolean;
|
|
2139
|
+
};
|
|
2140
|
+
mediaStats?: {
|
|
2141
|
+
viewCount: number;
|
|
2142
|
+
};
|
|
2143
|
+
video_info?: {
|
|
2144
|
+
aspect_ratio: number[];
|
|
2145
|
+
duration_millis: number;
|
|
2146
|
+
variants: {
|
|
2147
|
+
bitrate?: number;
|
|
2148
|
+
content_type: string;
|
|
2149
|
+
url: string;
|
|
2150
|
+
}[];
|
|
2151
|
+
};
|
|
2129
2152
|
}[];
|
|
2130
2153
|
};
|
|
2131
2154
|
favorite_count: number;
|
|
@@ -2193,6 +2216,9 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2193
2216
|
};
|
|
2194
2217
|
};
|
|
2195
2218
|
};
|
|
2219
|
+
scopes?: {
|
|
2220
|
+
followers: boolean;
|
|
2221
|
+
};
|
|
2196
2222
|
};
|
|
2197
2223
|
};
|
|
2198
2224
|
limitedActionResults?: {
|
|
@@ -2639,27 +2665,220 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2639
2665
|
value: string;
|
|
2640
2666
|
}[];
|
|
2641
2667
|
};
|
|
2668
|
+
promotedTrendName?: string;
|
|
2669
|
+
promotedTrendQueryTerm?: string;
|
|
2670
|
+
promotedTrend?: {
|
|
2671
|
+
rest_id: string;
|
|
2672
|
+
};
|
|
2642
2673
|
};
|
|
2643
2674
|
};
|
|
2644
2675
|
feedbackInfo?: {
|
|
2645
2676
|
feedbackKeys: string[];
|
|
2646
|
-
feedbackMetadata
|
|
2677
|
+
feedbackMetadata?: string;
|
|
2647
2678
|
};
|
|
2648
2679
|
clientEventInfo?: {
|
|
2649
2680
|
component: string;
|
|
2650
|
-
element
|
|
2681
|
+
element?: string;
|
|
2651
2682
|
entityToken?: string;
|
|
2652
2683
|
details: {
|
|
2653
2684
|
timelinesDetails: {
|
|
2654
2685
|
injectionType: string;
|
|
2655
2686
|
controllerData: string;
|
|
2687
|
+
sourceData?: string;
|
|
2656
2688
|
};
|
|
2657
2689
|
};
|
|
2658
2690
|
};
|
|
2659
2691
|
value?: string;
|
|
2660
2692
|
cursorType?: string;
|
|
2693
|
+
items?: {
|
|
2694
|
+
entryId: string;
|
|
2695
|
+
item: {
|
|
2696
|
+
itemContent: {
|
|
2697
|
+
itemType: string;
|
|
2698
|
+
__typename: string;
|
|
2699
|
+
user_results: {
|
|
2700
|
+
result: {
|
|
2701
|
+
__typename: string;
|
|
2702
|
+
id: string;
|
|
2703
|
+
rest_id: string;
|
|
2704
|
+
affiliates_highlighted_label: {
|
|
2705
|
+
label?: {
|
|
2706
|
+
url: {
|
|
2707
|
+
url: string;
|
|
2708
|
+
urlType: string;
|
|
2709
|
+
};
|
|
2710
|
+
badge: {
|
|
2711
|
+
url: string;
|
|
2712
|
+
};
|
|
2713
|
+
description: string;
|
|
2714
|
+
userLabelType: string;
|
|
2715
|
+
userLabelDisplayType: string;
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2718
|
+
has_graduated_access: boolean;
|
|
2719
|
+
is_blue_verified: boolean;
|
|
2720
|
+
profile_image_shape: string;
|
|
2721
|
+
legacy: {
|
|
2722
|
+
can_dm: boolean;
|
|
2723
|
+
can_media_tag: boolean;
|
|
2724
|
+
created_at: string;
|
|
2725
|
+
default_profile: boolean;
|
|
2726
|
+
default_profile_image: boolean;
|
|
2727
|
+
description: string;
|
|
2728
|
+
entities: {
|
|
2729
|
+
description: {
|
|
2730
|
+
urls: {
|
|
2731
|
+
display_url: string;
|
|
2732
|
+
expanded_url: string;
|
|
2733
|
+
url: string;
|
|
2734
|
+
indices: number[];
|
|
2735
|
+
}[];
|
|
2736
|
+
};
|
|
2737
|
+
url?: {
|
|
2738
|
+
urls: {
|
|
2739
|
+
display_url: string;
|
|
2740
|
+
expanded_url: string;
|
|
2741
|
+
url: string;
|
|
2742
|
+
indices: number[];
|
|
2743
|
+
}[];
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
fast_followers_count: number;
|
|
2747
|
+
favourites_count: number;
|
|
2748
|
+
followers_count: number;
|
|
2749
|
+
friends_count: number;
|
|
2750
|
+
has_custom_timelines: boolean;
|
|
2751
|
+
is_translator: boolean;
|
|
2752
|
+
listed_count: number;
|
|
2753
|
+
location: string;
|
|
2754
|
+
media_count: number;
|
|
2755
|
+
name: string;
|
|
2756
|
+
normal_followers_count: number;
|
|
2757
|
+
pinned_tweet_ids_str: string[];
|
|
2758
|
+
possibly_sensitive: boolean;
|
|
2759
|
+
profile_banner_url: string;
|
|
2760
|
+
profile_image_url_https: string;
|
|
2761
|
+
profile_interstitial_type: string;
|
|
2762
|
+
screen_name: string;
|
|
2763
|
+
statuses_count: number;
|
|
2764
|
+
translator_type: string;
|
|
2765
|
+
url?: string;
|
|
2766
|
+
verified: boolean;
|
|
2767
|
+
want_retweets: boolean;
|
|
2768
|
+
withheld_in_countries: unknown[];
|
|
2769
|
+
};
|
|
2770
|
+
super_follow_eligible: boolean;
|
|
2771
|
+
professional?: {
|
|
2772
|
+
rest_id: string;
|
|
2773
|
+
professional_type: string;
|
|
2774
|
+
category: {
|
|
2775
|
+
id: number;
|
|
2776
|
+
name: string;
|
|
2777
|
+
icon_name: string;
|
|
2778
|
+
}[];
|
|
2779
|
+
};
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
userDisplayType: string;
|
|
2783
|
+
};
|
|
2784
|
+
clientEventInfo: {
|
|
2785
|
+
component: string;
|
|
2786
|
+
element: string;
|
|
2787
|
+
details: {
|
|
2788
|
+
timelinesDetails: {
|
|
2789
|
+
injectionType: string;
|
|
2790
|
+
controllerData: string;
|
|
2791
|
+
sourceData: string;
|
|
2792
|
+
};
|
|
2793
|
+
};
|
|
2794
|
+
};
|
|
2795
|
+
};
|
|
2796
|
+
}[];
|
|
2797
|
+
displayType?: string;
|
|
2798
|
+
header?: {
|
|
2799
|
+
displayType: string;
|
|
2800
|
+
text: string;
|
|
2801
|
+
socialContext: {
|
|
2802
|
+
type: string;
|
|
2803
|
+
contextType: string;
|
|
2804
|
+
text: string;
|
|
2805
|
+
};
|
|
2806
|
+
sticky: boolean;
|
|
2807
|
+
};
|
|
2661
2808
|
};
|
|
2662
2809
|
}[];
|
|
2810
|
+
clientEventInfo?: {
|
|
2811
|
+
component: string;
|
|
2812
|
+
element: string;
|
|
2813
|
+
};
|
|
2814
|
+
cover?: {
|
|
2815
|
+
type: string;
|
|
2816
|
+
halfCoverDisplayType: string;
|
|
2817
|
+
primaryText: {
|
|
2818
|
+
alignment: string;
|
|
2819
|
+
text: string;
|
|
2820
|
+
entities: unknown[];
|
|
2821
|
+
};
|
|
2822
|
+
primaryCoverCta: {
|
|
2823
|
+
text: string;
|
|
2824
|
+
ctaBehavior: {
|
|
2825
|
+
type: string;
|
|
2826
|
+
};
|
|
2827
|
+
callbacks: {
|
|
2828
|
+
endpoint: string;
|
|
2829
|
+
}[];
|
|
2830
|
+
clientEventInfo: {
|
|
2831
|
+
action: string;
|
|
2832
|
+
};
|
|
2833
|
+
buttonStyle: string;
|
|
2834
|
+
};
|
|
2835
|
+
secondaryCoverCta: {
|
|
2836
|
+
text: string;
|
|
2837
|
+
ctaBehavior: {
|
|
2838
|
+
type: string;
|
|
2839
|
+
};
|
|
2840
|
+
callbacks: {
|
|
2841
|
+
endpoint: string;
|
|
2842
|
+
}[];
|
|
2843
|
+
clientEventInfo: {
|
|
2844
|
+
action: string;
|
|
2845
|
+
};
|
|
2846
|
+
buttonStyle: string;
|
|
2847
|
+
};
|
|
2848
|
+
secondaryText: {
|
|
2849
|
+
text: string;
|
|
2850
|
+
entities: unknown[];
|
|
2851
|
+
};
|
|
2852
|
+
impressionCallbacks: {
|
|
2853
|
+
endpoint: string;
|
|
2854
|
+
}[];
|
|
2855
|
+
coverImage: {
|
|
2856
|
+
image: {
|
|
2857
|
+
url: string;
|
|
2858
|
+
width: number;
|
|
2859
|
+
height: number;
|
|
2860
|
+
};
|
|
2861
|
+
imageDisplayType: string;
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
alertType?: string;
|
|
2865
|
+
triggerDelayMs?: number;
|
|
2866
|
+
displayDurationMs?: number;
|
|
2867
|
+
usersResults?: unknown[];
|
|
2868
|
+
richText?: {
|
|
2869
|
+
text: string;
|
|
2870
|
+
entities: unknown[];
|
|
2871
|
+
};
|
|
2872
|
+
iconDisplayInfo?: {
|
|
2873
|
+
icon: string;
|
|
2874
|
+
tint: string;
|
|
2875
|
+
};
|
|
2876
|
+
colorConfig?: {
|
|
2877
|
+
background: string;
|
|
2878
|
+
border: string;
|
|
2879
|
+
text: string;
|
|
2880
|
+
};
|
|
2881
|
+
displayLocation?: string;
|
|
2663
2882
|
}[];
|
|
2664
2883
|
responseObjects: {
|
|
2665
2884
|
feedbackActions: {
|
|
@@ -2684,6 +2903,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
|
|
|
2684
2903
|
not_interested: boolean;
|
|
2685
2904
|
};
|
|
2686
2905
|
};
|
|
2906
|
+
encodedFeedbackRequest?: string;
|
|
2687
2907
|
};
|
|
2688
2908
|
}[];
|
|
2689
2909
|
};
|