@book000/twitterts 0.12.0 → 0.14.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 +3 -2
- package/dist/generate-types.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/models/exceptions.d.ts +23 -0
- package/dist/models/exceptions.d.ts.map +1 -0
- package/dist/models/exceptions.js +34 -0
- package/dist/models/exceptions.js.map +1 -0
- package/dist/models/responses/endpoints.d.ts +23 -5
- package/dist/models/responses/endpoints.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +25 -3
- package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/quick-promote-eligibility-success.d.ts +14 -0
- package/dist/models/responses/graphql/get/quick-promote-eligibility-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/get/quick-promote-eligibility-success.js +4 -0
- package/dist/models/responses/graphql/get/quick-promote-eligibility-success.js.map +1 -0
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +117 -3
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/users-by-rest-ids-success.d.ts +61 -0
- package/dist/models/responses/graphql/get/users-by-rest-ids-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/get/users-by-rest-ids-success.js +4 -0
- package/dist/models/responses/graphql/get/users-by-rest-ids-success.js.map +1 -0
- package/dist/models/responses/graphql/post/create-retweet-success.d.ts +16 -0
- package/dist/models/responses/graphql/post/create-retweet-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/post/create-retweet-success.js +4 -0
- package/dist/models/responses/graphql/post/create-retweet-success.js.map +1 -0
- package/dist/models/responses/graphql/post/delete-retweet-success.d.ts +16 -0
- package/dist/models/responses/graphql/post/delete-retweet-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/post/delete-retweet-success.js +4 -0
- package/dist/models/responses/graphql/post/delete-retweet-success.js.map +1 -0
- package/dist/models/responses/graphql/post/favorite-tweet-success.d.ts +31 -0
- package/dist/models/responses/graphql/post/favorite-tweet-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/post/favorite-tweet-success.js +4 -0
- package/dist/models/responses/graphql/post/favorite-tweet-success.js.map +1 -0
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +171 -5
- package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/post/unfavorite-tweet-success.d.ts +31 -0
- package/dist/models/responses/graphql/post/unfavorite-tweet-success.d.ts.map +1 -0
- package/dist/models/responses/graphql/post/unfavorite-tweet-success.js +4 -0
- package/dist/models/responses/graphql/post/unfavorite-tweet-success.js.map +1 -0
- package/dist/options.d.ts +7 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/scraper.d.ts +8 -1
- package/dist/scraper.d.ts.map +1 -1
- package/dist/scraper.js +34 -2
- 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 +15 -1
- package/dist/twitter.d.ts.map +1 -1
- package/dist/twitter.js +61 -7
- package/dist/twitter.js.map +1 -1
- package/dist/twitter.test.js +11 -0
- package/dist/twitter.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
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: {
|
|
@@ -3115,6 +3115,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3115
3115
|
mediaStats?: {
|
|
3116
3116
|
viewCount: number;
|
|
3117
3117
|
};
|
|
3118
|
+
ext_alt_text?: string;
|
|
3118
3119
|
}[];
|
|
3119
3120
|
};
|
|
3120
3121
|
favorite_count: number;
|
|
@@ -3604,6 +3605,60 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3604
3605
|
user?: {
|
|
3605
3606
|
rest_id: string;
|
|
3606
3607
|
};
|
|
3608
|
+
first_media?: {
|
|
3609
|
+
media: {
|
|
3610
|
+
id: string;
|
|
3611
|
+
media_key: string;
|
|
3612
|
+
media_id: string;
|
|
3613
|
+
media_info: {
|
|
3614
|
+
__typename: string;
|
|
3615
|
+
original_img_height: number;
|
|
3616
|
+
original_img_width: number;
|
|
3617
|
+
original_img_url: string;
|
|
3618
|
+
color_info: {
|
|
3619
|
+
palette: {
|
|
3620
|
+
percentage: number;
|
|
3621
|
+
rgb: {
|
|
3622
|
+
blue: number;
|
|
3623
|
+
green: number;
|
|
3624
|
+
red: number;
|
|
3625
|
+
};
|
|
3626
|
+
}[];
|
|
3627
|
+
};
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
destination_obj: {
|
|
3631
|
+
__typename: string;
|
|
3632
|
+
user_id: string;
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3635
|
+
full_media_list?: {
|
|
3636
|
+
media: {
|
|
3637
|
+
id: string;
|
|
3638
|
+
media_key: string;
|
|
3639
|
+
media_id: string;
|
|
3640
|
+
media_info: {
|
|
3641
|
+
__typename: string;
|
|
3642
|
+
original_img_height: number;
|
|
3643
|
+
original_img_width: number;
|
|
3644
|
+
original_img_url: string;
|
|
3645
|
+
color_info: {
|
|
3646
|
+
palette: {
|
|
3647
|
+
percentage: number;
|
|
3648
|
+
rgb: {
|
|
3649
|
+
blue: number;
|
|
3650
|
+
green: number;
|
|
3651
|
+
red: number;
|
|
3652
|
+
};
|
|
3653
|
+
}[];
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
3656
|
+
};
|
|
3657
|
+
destination_obj: {
|
|
3658
|
+
__typename: string;
|
|
3659
|
+
user_id: string;
|
|
3660
|
+
};
|
|
3661
|
+
}[];
|
|
3607
3662
|
}[];
|
|
3608
3663
|
};
|
|
3609
3664
|
display_options: {};
|
|
@@ -3660,7 +3715,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3660
3715
|
indices: number[];
|
|
3661
3716
|
}[];
|
|
3662
3717
|
};
|
|
3663
|
-
url
|
|
3718
|
+
url?: {
|
|
3664
3719
|
urls: {
|
|
3665
3720
|
display_url: string;
|
|
3666
3721
|
expanded_url: string;
|
|
@@ -3688,7 +3743,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3688
3743
|
screen_name: string;
|
|
3689
3744
|
statuses_count: number;
|
|
3690
3745
|
translator_type: string;
|
|
3691
|
-
url
|
|
3746
|
+
url?: string;
|
|
3692
3747
|
verified: boolean;
|
|
3693
3748
|
verified_type: string;
|
|
3694
3749
|
want_retweets: boolean;
|
|
@@ -3724,6 +3779,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3724
3779
|
timelinesDetails: {
|
|
3725
3780
|
injectionType?: string;
|
|
3726
3781
|
controllerData: string;
|
|
3782
|
+
sourceData?: string;
|
|
3727
3783
|
};
|
|
3728
3784
|
};
|
|
3729
3785
|
};
|
|
@@ -3733,7 +3789,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
3733
3789
|
itemContent: {
|
|
3734
3790
|
itemType: string;
|
|
3735
3791
|
__typename: string;
|
|
3736
|
-
tweet_results
|
|
3792
|
+
tweet_results?: {
|
|
3737
3793
|
result: {
|
|
3738
3794
|
__typename: string;
|
|
3739
3795
|
rest_id: string;
|
|
@@ -4039,7 +4095,69 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
4039
4095
|
};
|
|
4040
4096
|
};
|
|
4041
4097
|
};
|
|
4042
|
-
tweetDisplayType
|
|
4098
|
+
tweetDisplayType?: string;
|
|
4099
|
+
user_results?: {
|
|
4100
|
+
result: {
|
|
4101
|
+
__typename: string;
|
|
4102
|
+
id: string;
|
|
4103
|
+
rest_id: string;
|
|
4104
|
+
affiliates_highlighted_label: {};
|
|
4105
|
+
has_graduated_access: boolean;
|
|
4106
|
+
is_blue_verified: boolean;
|
|
4107
|
+
profile_image_shape: string;
|
|
4108
|
+
legacy: {
|
|
4109
|
+
can_dm: boolean;
|
|
4110
|
+
can_media_tag: boolean;
|
|
4111
|
+
created_at: string;
|
|
4112
|
+
default_profile: boolean;
|
|
4113
|
+
default_profile_image: boolean;
|
|
4114
|
+
description: string;
|
|
4115
|
+
entities: {
|
|
4116
|
+
description: {
|
|
4117
|
+
urls: unknown[];
|
|
4118
|
+
};
|
|
4119
|
+
url?: {
|
|
4120
|
+
urls: {
|
|
4121
|
+
display_url: string;
|
|
4122
|
+
expanded_url: string;
|
|
4123
|
+
url: string;
|
|
4124
|
+
indices: number[];
|
|
4125
|
+
}[];
|
|
4126
|
+
};
|
|
4127
|
+
};
|
|
4128
|
+
fast_followers_count: number;
|
|
4129
|
+
favourites_count: number;
|
|
4130
|
+
followers_count: number;
|
|
4131
|
+
friends_count: number;
|
|
4132
|
+
has_custom_timelines: boolean;
|
|
4133
|
+
is_translator: boolean;
|
|
4134
|
+
listed_count: number;
|
|
4135
|
+
location: string;
|
|
4136
|
+
media_count: number;
|
|
4137
|
+
name: string;
|
|
4138
|
+
normal_followers_count: number;
|
|
4139
|
+
pinned_tweet_ids_str: string[];
|
|
4140
|
+
possibly_sensitive: boolean;
|
|
4141
|
+
profile_image_url_https: string;
|
|
4142
|
+
profile_interstitial_type: string;
|
|
4143
|
+
screen_name: string;
|
|
4144
|
+
statuses_count: number;
|
|
4145
|
+
translator_type: string;
|
|
4146
|
+
url?: string;
|
|
4147
|
+
verified: boolean;
|
|
4148
|
+
want_retweets: boolean;
|
|
4149
|
+
withheld_in_countries: unknown[];
|
|
4150
|
+
followed_by?: boolean;
|
|
4151
|
+
profile_banner_url?: string;
|
|
4152
|
+
};
|
|
4153
|
+
};
|
|
4154
|
+
};
|
|
4155
|
+
userDisplayType?: string;
|
|
4156
|
+
socialContext?: {
|
|
4157
|
+
type: string;
|
|
4158
|
+
contextType: string;
|
|
4159
|
+
text: string;
|
|
4160
|
+
};
|
|
4043
4161
|
};
|
|
4044
4162
|
clientEventInfo: {
|
|
4045
4163
|
component: string;
|
|
@@ -4048,6 +4166,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
4048
4166
|
timelinesDetails: {
|
|
4049
4167
|
injectionType: string;
|
|
4050
4168
|
controllerData: string;
|
|
4169
|
+
sourceData?: string;
|
|
4051
4170
|
};
|
|
4052
4171
|
};
|
|
4053
4172
|
};
|
|
@@ -4060,14 +4179,61 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
|
|
|
4060
4179
|
};
|
|
4061
4180
|
};
|
|
4062
4181
|
displayType?: string;
|
|
4182
|
+
header?: {
|
|
4183
|
+
displayType: string;
|
|
4184
|
+
text: string;
|
|
4185
|
+
sticky: boolean;
|
|
4186
|
+
};
|
|
4187
|
+
footer?: {
|
|
4188
|
+
displayType: string;
|
|
4189
|
+
text: string;
|
|
4190
|
+
landingUrl: {
|
|
4191
|
+
url: string;
|
|
4192
|
+
urlType: string;
|
|
4193
|
+
};
|
|
4194
|
+
};
|
|
4195
|
+
feedbackInfo?: {
|
|
4196
|
+
feedbackKeys: string[];
|
|
4197
|
+
};
|
|
4063
4198
|
};
|
|
4064
4199
|
}[];
|
|
4200
|
+
alertType?: string;
|
|
4201
|
+
triggerDelayMs?: number;
|
|
4202
|
+
displayDurationMs?: number;
|
|
4203
|
+
usersResults?: unknown[];
|
|
4204
|
+
richText?: {
|
|
4205
|
+
text: string;
|
|
4206
|
+
entities: unknown[];
|
|
4207
|
+
};
|
|
4208
|
+
iconDisplayInfo?: {
|
|
4209
|
+
icon: string;
|
|
4210
|
+
tint: string;
|
|
4211
|
+
};
|
|
4212
|
+
colorConfig?: {
|
|
4213
|
+
background: string;
|
|
4214
|
+
border: string;
|
|
4215
|
+
text: string;
|
|
4216
|
+
};
|
|
4217
|
+
displayLocation?: string;
|
|
4065
4218
|
}[];
|
|
4066
4219
|
metadata: {
|
|
4067
4220
|
scribeConfig: {
|
|
4068
4221
|
page: string;
|
|
4069
4222
|
};
|
|
4070
4223
|
};
|
|
4224
|
+
responseObjects?: {
|
|
4225
|
+
feedbackActions: {
|
|
4226
|
+
key: string;
|
|
4227
|
+
value: {
|
|
4228
|
+
feedbackType: string;
|
|
4229
|
+
prompt: string;
|
|
4230
|
+
confirmation: string;
|
|
4231
|
+
encodedFeedbackRequest: string;
|
|
4232
|
+
hasUndoAction: boolean;
|
|
4233
|
+
icon: string;
|
|
4234
|
+
};
|
|
4235
|
+
}[];
|
|
4236
|
+
};
|
|
4071
4237
|
};
|
|
4072
4238
|
};
|
|
4073
4239
|
};
|