@glagan/rettiwt-api 7.0.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/.eslintrc.js +166 -0
- package/.gitattributes +3 -0
- package/.github/FUNDING.yml +4 -0
- package/.github/ISSUE_TEMPLATE/bug-report.yml +57 -0
- package/.github/ISSUE_TEMPLATE/feature-request.yml +20 -0
- package/.github/ISSUE_TEMPLATE/question.yml +15 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +32 -0
- package/.github/workflows/ci.yml +32 -0
- package/.github/workflows/publish.yml +23 -0
- package/.nvmrc +1 -0
- package/.prettierignore +3 -0
- package/.prettierrc +13 -0
- package/LICENSE +21 -0
- package/README.md +566 -0
- package/dist/cli.js +43 -0
- package/eslint.config.mjs +17 -0
- package/package.json +50 -0
- package/src/Rettiwt.ts +97 -0
- package/src/cli.ts +48 -0
- package/src/collections/Extractors.ts +155 -0
- package/src/collections/Groups.ts +81 -0
- package/src/collections/Requests.ts +89 -0
- package/src/collections/Tweet.ts +17 -0
- package/src/commands/DirectMessage.ts +62 -0
- package/src/commands/List.ts +90 -0
- package/src/commands/Tweet.ts +437 -0
- package/src/commands/User.ts +367 -0
- package/src/enums/Api.ts +10 -0
- package/src/enums/Authentication.ts +10 -0
- package/src/enums/Data.ts +13 -0
- package/src/enums/Logging.ts +14 -0
- package/src/enums/Media.ts +10 -0
- package/src/enums/Notification.ts +12 -0
- package/src/enums/Resource.ts +69 -0
- package/src/enums/Tweet.ts +8 -0
- package/src/enums/raw/Analytics.ts +32 -0
- package/src/enums/raw/Media.ts +10 -0
- package/src/enums/raw/Notification.ts +11 -0
- package/src/enums/raw/Tweet.ts +20 -0
- package/src/helper/CliUtils.ts +17 -0
- package/src/helper/JsonUtils.ts +70 -0
- package/src/index.ts +128 -0
- package/src/models/RettiwtConfig.ts +101 -0
- package/src/models/args/FetchArgs.ts +169 -0
- package/src/models/args/PostArgs.ts +93 -0
- package/src/models/args/ProfileArgs.ts +68 -0
- package/src/models/auth/AuthCookie.ts +58 -0
- package/src/models/auth/AuthCredential.ts +83 -0
- package/src/models/data/Analytics.ts +97 -0
- package/src/models/data/BookmarkFolder.ts +73 -0
- package/src/models/data/Conversation.ts +344 -0
- package/src/models/data/CursoredData.ts +64 -0
- package/src/models/data/DirectMessage.ts +335 -0
- package/src/models/data/Inbox.ts +124 -0
- package/src/models/data/List.ts +113 -0
- package/src/models/data/Notification.ts +84 -0
- package/src/models/data/Tweet.ts +388 -0
- package/src/models/data/User.ts +187 -0
- package/src/models/errors/TwitterError.ts +65 -0
- package/src/models/params/Variables.ts +62 -0
- package/src/requests/DirectMessage.ts +229 -0
- package/src/requests/List.ts +203 -0
- package/src/requests/Media.ts +67 -0
- package/src/requests/Tweet.ts +607 -0
- package/src/requests/User.ts +1191 -0
- package/src/services/internal/AuthService.ts +115 -0
- package/src/services/internal/ErrorService.ts +41 -0
- package/src/services/internal/LogService.ts +34 -0
- package/src/services/public/DirectMessageService.ts +159 -0
- package/src/services/public/FetcherService.ts +366 -0
- package/src/services/public/ListService.ts +241 -0
- package/src/services/public/TweetService.ts +886 -0
- package/src/services/public/UserService.ts +1154 -0
- package/src/types/ErrorHandler.ts +13 -0
- package/src/types/Fetch.ts +3 -0
- package/src/types/RettiwtConfig.ts +48 -0
- package/src/types/args/FetchArgs.ts +233 -0
- package/src/types/args/PostArgs.ts +142 -0
- package/src/types/args/ProfileArgs.ts +33 -0
- package/src/types/auth/AuthCookie.ts +22 -0
- package/src/types/auth/AuthCredential.ts +28 -0
- package/src/types/auth/TransactionHeader.ts +8 -0
- package/src/types/data/Analytics.ts +58 -0
- package/src/types/data/BookmarkFolder.ts +12 -0
- package/src/types/data/Conversation.ts +44 -0
- package/src/types/data/CursoredData.ts +24 -0
- package/src/types/data/DirectMessage.ts +33 -0
- package/src/types/data/Inbox.ts +23 -0
- package/src/types/data/List.ts +33 -0
- package/src/types/data/Notification.ts +26 -0
- package/src/types/data/Tweet.ts +99 -0
- package/src/types/data/User.ts +54 -0
- package/src/types/errors/TwitterError.ts +37 -0
- package/src/types/params/Variables.ts +41 -0
- package/src/types/raw/base/Analytic.ts +32 -0
- package/src/types/raw/base/BookmarkFolder.ts +12 -0
- package/src/types/raw/base/Cursor.ts +13 -0
- package/src/types/raw/base/Error.ts +38 -0
- package/src/types/raw/base/LimitedVisibilityTweet.ts +40 -0
- package/src/types/raw/base/List.ts +50 -0
- package/src/types/raw/base/Media.ts +53 -0
- package/src/types/raw/base/Message.ts +22 -0
- package/src/types/raw/base/Notification.ts +66 -0
- package/src/types/raw/base/Space.ts +35 -0
- package/src/types/raw/base/Tweet.ts +139 -0
- package/src/types/raw/base/User.ts +182 -0
- package/src/types/raw/composite/DataResult.ts +8 -0
- package/src/types/raw/composite/TimelineList.ts +10 -0
- package/src/types/raw/composite/TimelineTweet.ts +14 -0
- package/src/types/raw/composite/TimelineUser.ts +13 -0
- package/src/types/raw/dm/Conversation.ts +59 -0
- package/src/types/raw/dm/InboxInitial.ts +155 -0
- package/src/types/raw/dm/InboxTimeline.ts +301 -0
- package/src/types/raw/dm/UserUpdates.ts +46 -0
- package/src/types/raw/generic/Response.ts +10 -0
- package/src/types/raw/list/AddMember.ts +175 -0
- package/src/types/raw/list/Details.ts +176 -0
- package/src/types/raw/list/Members.ts +154 -0
- package/src/types/raw/list/RemoveMember.ts +174 -0
- package/src/types/raw/list/Tweets.ts +2296 -0
- package/src/types/raw/media/FinalizeUpload.ts +20 -0
- package/src/types/raw/media/InitalizeUpload.ts +12 -0
- package/src/types/raw/media/LiveVideoStream.ts +21 -0
- package/src/types/raw/space/Details.ts +359 -0
- package/src/types/raw/tweet/Bookmark.ts +14 -0
- package/src/types/raw/tweet/Details.ts +210 -0
- package/src/types/raw/tweet/DetailsBulk.ts +338 -0
- package/src/types/raw/tweet/Like.ts +14 -0
- package/src/types/raw/tweet/Likers.ts +200 -0
- package/src/types/raw/tweet/Post.ts +150 -0
- package/src/types/raw/tweet/Replies.ts +539 -0
- package/src/types/raw/tweet/Retweet.ts +31 -0
- package/src/types/raw/tweet/Retweeters.ts +208 -0
- package/src/types/raw/tweet/Schedule.ts +18 -0
- package/src/types/raw/tweet/Search.ts +597 -0
- package/src/types/raw/tweet/Unbookmark.ts +14 -0
- package/src/types/raw/tweet/Unlike.ts +14 -0
- package/src/types/raw/tweet/Unpost.ts +20 -0
- package/src/types/raw/tweet/Unretweet.ts +31 -0
- package/src/types/raw/tweet/Unschedule.ts +14 -0
- package/src/types/raw/user/Affiliates.ts +179 -0
- package/src/types/raw/user/Analytics.ts +23 -0
- package/src/types/raw/user/BookmarkFolderTweets.ts +53 -0
- package/src/types/raw/user/BookmarkFolders.ts +41 -0
- package/src/types/raw/user/Bookmarks.ts +637 -0
- package/src/types/raw/user/Details.ts +185 -0
- package/src/types/raw/user/DetailsBulk.ts +104 -0
- package/src/types/raw/user/Follow.ts +280 -0
- package/src/types/raw/user/Followed.ts +1942 -0
- package/src/types/raw/user/Followers.ts +215 -0
- package/src/types/raw/user/Following.ts +215 -0
- package/src/types/raw/user/Highlights.ts +1287 -0
- package/src/types/raw/user/Likes.ts +1254 -0
- package/src/types/raw/user/Lists.ts +378 -0
- package/src/types/raw/user/Media.ts +1738 -0
- package/src/types/raw/user/Notifications.ts +499 -0
- package/src/types/raw/user/ProfileUpdate.ts +80 -0
- package/src/types/raw/user/Recommended.ts +2319 -0
- package/src/types/raw/user/Scheduled.ts +37 -0
- package/src/types/raw/user/Search.ts +230 -0
- package/src/types/raw/user/Subscriptions.ts +176 -0
- package/src/types/raw/user/Tweets.ts +1254 -0
- package/src/types/raw/user/TweetsAndReplies.ts +1254 -0
- package/src/types/raw/user/Unfollow.ts +280 -0
- package/tsconfig.json +97 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
export interface ITweetDetailsBulkResponse {
|
|
4
|
+
data: Data;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface Data {
|
|
8
|
+
tweetResult: TweetResult[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TweetResult {
|
|
12
|
+
result: Result;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Result {
|
|
16
|
+
__typename: string;
|
|
17
|
+
rest_id: string;
|
|
18
|
+
core: Core;
|
|
19
|
+
unmention_data: UnmentionData;
|
|
20
|
+
edit_control: EditControl;
|
|
21
|
+
is_translatable: boolean;
|
|
22
|
+
views: Views;
|
|
23
|
+
source: string;
|
|
24
|
+
legacy: Legacy2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Core {
|
|
28
|
+
user_results: UserResults;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface UserResults {
|
|
32
|
+
result: Result2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Result2 {
|
|
36
|
+
__typename: string;
|
|
37
|
+
id: string;
|
|
38
|
+
rest_id: string;
|
|
39
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel;
|
|
40
|
+
has_graduated_access: boolean;
|
|
41
|
+
is_blue_verified: boolean;
|
|
42
|
+
profile_image_shape: string;
|
|
43
|
+
legacy: Legacy;
|
|
44
|
+
verified_phone_status: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface AffiliatesHighlightedLabel {}
|
|
48
|
+
|
|
49
|
+
export interface Legacy {
|
|
50
|
+
following: boolean;
|
|
51
|
+
can_dm: boolean;
|
|
52
|
+
can_media_tag: boolean;
|
|
53
|
+
created_at: string;
|
|
54
|
+
default_profile: boolean;
|
|
55
|
+
default_profile_image: boolean;
|
|
56
|
+
description: string;
|
|
57
|
+
entities: Entities;
|
|
58
|
+
fast_followers_count: number;
|
|
59
|
+
favourites_count: number;
|
|
60
|
+
followers_count: number;
|
|
61
|
+
friends_count: number;
|
|
62
|
+
has_custom_timelines: boolean;
|
|
63
|
+
is_translator: boolean;
|
|
64
|
+
listed_count: number;
|
|
65
|
+
location: string;
|
|
66
|
+
media_count: number;
|
|
67
|
+
name: string;
|
|
68
|
+
normal_followers_count: number;
|
|
69
|
+
pinned_tweet_ids_str: string[];
|
|
70
|
+
possibly_sensitive: boolean;
|
|
71
|
+
profile_banner_url: string;
|
|
72
|
+
profile_image_url_https: string;
|
|
73
|
+
profile_interstitial_type: string;
|
|
74
|
+
screen_name: string;
|
|
75
|
+
statuses_count: number;
|
|
76
|
+
translator_type: string;
|
|
77
|
+
verified: boolean;
|
|
78
|
+
want_retweets: boolean;
|
|
79
|
+
withheld_in_countries: any[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface Entities {
|
|
83
|
+
description: Description;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface Description {
|
|
87
|
+
urls: any[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface UnmentionData {}
|
|
91
|
+
|
|
92
|
+
export interface EditControl {
|
|
93
|
+
edit_tweet_ids: string[];
|
|
94
|
+
editable_until_msecs: string;
|
|
95
|
+
is_edit_eligible: boolean;
|
|
96
|
+
edits_remaining: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface Views {
|
|
100
|
+
count: string;
|
|
101
|
+
state: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface Legacy2 {
|
|
105
|
+
bookmark_count: number;
|
|
106
|
+
bookmarked: boolean;
|
|
107
|
+
created_at: string;
|
|
108
|
+
conversation_id_str: string;
|
|
109
|
+
display_text_range: number[];
|
|
110
|
+
entities: Entities2;
|
|
111
|
+
extended_entities: ExtendedEntities;
|
|
112
|
+
favorite_count: number;
|
|
113
|
+
favorited: boolean;
|
|
114
|
+
full_text: string;
|
|
115
|
+
is_quote_status: boolean;
|
|
116
|
+
lang: string;
|
|
117
|
+
possibly_sensitive: boolean;
|
|
118
|
+
possibly_sensitive_editable: boolean;
|
|
119
|
+
quote_count: number;
|
|
120
|
+
reply_count: number;
|
|
121
|
+
retweet_count: number;
|
|
122
|
+
retweeted: boolean;
|
|
123
|
+
user_id_str: string;
|
|
124
|
+
id_str: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface Entities2 {
|
|
128
|
+
hashtags: any[];
|
|
129
|
+
media: Medum[];
|
|
130
|
+
symbols: any[];
|
|
131
|
+
timestamps: any[];
|
|
132
|
+
urls: any[];
|
|
133
|
+
user_mentions: any[];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface Medum {
|
|
137
|
+
display_url: string;
|
|
138
|
+
expanded_url: string;
|
|
139
|
+
id_str: string;
|
|
140
|
+
indices: number[];
|
|
141
|
+
media_key: string;
|
|
142
|
+
media_url_https: string;
|
|
143
|
+
type: string;
|
|
144
|
+
url: string;
|
|
145
|
+
ext_media_availability: ExtMediaAvailability;
|
|
146
|
+
features: Features;
|
|
147
|
+
sizes: Sizes;
|
|
148
|
+
original_info: OriginalInfo;
|
|
149
|
+
allow_download_status: AllowDownloadStatus;
|
|
150
|
+
media_results: MediaResults;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface ExtMediaAvailability {
|
|
154
|
+
status: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface Features {
|
|
158
|
+
large: Large;
|
|
159
|
+
medium: Medium;
|
|
160
|
+
small: Small;
|
|
161
|
+
orig: Orig;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface Large {
|
|
165
|
+
faces: any[];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface Medium {
|
|
169
|
+
faces: any[];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface Small {
|
|
173
|
+
faces: any[];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface Orig {
|
|
177
|
+
faces: any[];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface Sizes {
|
|
181
|
+
large: Large2;
|
|
182
|
+
medium: Medium2;
|
|
183
|
+
small: Small2;
|
|
184
|
+
thumb: Thumb;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface Large2 {
|
|
188
|
+
h: number;
|
|
189
|
+
w: number;
|
|
190
|
+
resize: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface Medium2 {
|
|
194
|
+
h: number;
|
|
195
|
+
w: number;
|
|
196
|
+
resize: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface Small2 {
|
|
200
|
+
h: number;
|
|
201
|
+
w: number;
|
|
202
|
+
resize: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface Thumb {
|
|
206
|
+
h: number;
|
|
207
|
+
w: number;
|
|
208
|
+
resize: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface OriginalInfo {
|
|
212
|
+
height: number;
|
|
213
|
+
width: number;
|
|
214
|
+
focus_rects: FocusRect[];
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface FocusRect {
|
|
218
|
+
x: number;
|
|
219
|
+
y: number;
|
|
220
|
+
w: number;
|
|
221
|
+
h: number;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface AllowDownloadStatus {
|
|
225
|
+
allow_download: boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface MediaResults {
|
|
229
|
+
result: Result3;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface Result3 {
|
|
233
|
+
media_key: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface ExtendedEntities {
|
|
237
|
+
media: Medum2[];
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface Medum2 {
|
|
241
|
+
display_url: string;
|
|
242
|
+
expanded_url: string;
|
|
243
|
+
id_str: string;
|
|
244
|
+
indices: number[];
|
|
245
|
+
media_key: string;
|
|
246
|
+
media_url_https: string;
|
|
247
|
+
type: string;
|
|
248
|
+
url: string;
|
|
249
|
+
ext_media_availability: ExtMediaAvailability2;
|
|
250
|
+
features: Features2;
|
|
251
|
+
sizes: Sizes2;
|
|
252
|
+
original_info: OriginalInfo2;
|
|
253
|
+
allow_download_status: AllowDownloadStatus2;
|
|
254
|
+
media_results: MediaResults2;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface ExtMediaAvailability2 {
|
|
258
|
+
status: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface Features2 {
|
|
262
|
+
large: Large3;
|
|
263
|
+
medium: Medium3;
|
|
264
|
+
small: Small3;
|
|
265
|
+
orig: Orig2;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface Large3 {
|
|
269
|
+
faces: any[];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface Medium3 {
|
|
273
|
+
faces: any[];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface Small3 {
|
|
277
|
+
faces: any[];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface Orig2 {
|
|
281
|
+
faces: any[];
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface Sizes2 {
|
|
285
|
+
large: Large4;
|
|
286
|
+
medium: Medium4;
|
|
287
|
+
small: Small4;
|
|
288
|
+
thumb: Thumb2;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface Large4 {
|
|
292
|
+
h: number;
|
|
293
|
+
w: number;
|
|
294
|
+
resize: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface Medium4 {
|
|
298
|
+
h: number;
|
|
299
|
+
w: number;
|
|
300
|
+
resize: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface Small4 {
|
|
304
|
+
h: number;
|
|
305
|
+
w: number;
|
|
306
|
+
resize: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export interface Thumb2 {
|
|
310
|
+
h: number;
|
|
311
|
+
w: number;
|
|
312
|
+
resize: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface OriginalInfo2 {
|
|
316
|
+
height: number;
|
|
317
|
+
width: number;
|
|
318
|
+
focus_rects: FocusRect2[];
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface FocusRect2 {
|
|
322
|
+
x: number;
|
|
323
|
+
y: number;
|
|
324
|
+
w: number;
|
|
325
|
+
h: number;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface AllowDownloadStatus2 {
|
|
329
|
+
allow_download: boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface MediaResults2 {
|
|
333
|
+
result: Result4;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export interface Result4 {
|
|
337
|
+
media_key: string;
|
|
338
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The raw data received when fetching the likes of a given tweet.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ITweetLikersResponse {
|
|
9
|
+
data: Data;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Data {
|
|
13
|
+
favoriters_timeline: FavoritersTimeline;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface FavoritersTimeline {
|
|
17
|
+
timeline: Timeline;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Timeline {
|
|
21
|
+
instructions: Instruction[];
|
|
22
|
+
responseObjects: ResponseObjects;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Instruction {
|
|
26
|
+
type: string;
|
|
27
|
+
entries: Entry[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface Entry {
|
|
31
|
+
entryId: string;
|
|
32
|
+
sortIndex: string;
|
|
33
|
+
content: Content;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Content {
|
|
37
|
+
entryType: string;
|
|
38
|
+
itemContent?: ItemContent;
|
|
39
|
+
value?: string;
|
|
40
|
+
cursorType?: string;
|
|
41
|
+
stopOnEmptyResponse?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ItemContent {
|
|
45
|
+
itemType: string;
|
|
46
|
+
user_results: UserResults;
|
|
47
|
+
userDisplayType: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface UserResults {
|
|
51
|
+
result: Result;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface Result {
|
|
55
|
+
__typename: string;
|
|
56
|
+
id: string;
|
|
57
|
+
rest_id: string;
|
|
58
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel;
|
|
59
|
+
has_nft_avatar: boolean;
|
|
60
|
+
legacy: Legacy;
|
|
61
|
+
professional?: Professional;
|
|
62
|
+
super_follow_eligible: boolean;
|
|
63
|
+
super_followed_by: boolean;
|
|
64
|
+
super_following: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface AffiliatesHighlightedLabel {}
|
|
68
|
+
|
|
69
|
+
interface Legacy {
|
|
70
|
+
blocked_by: boolean;
|
|
71
|
+
blocking: boolean;
|
|
72
|
+
can_dm: boolean;
|
|
73
|
+
can_media_tag: boolean;
|
|
74
|
+
created_at: string;
|
|
75
|
+
default_profile: boolean;
|
|
76
|
+
default_profile_image: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
entities: Entities;
|
|
79
|
+
fast_followers_count: number;
|
|
80
|
+
favourites_count: number;
|
|
81
|
+
follow_request_sent: boolean;
|
|
82
|
+
followed_by: boolean;
|
|
83
|
+
followers_count: number;
|
|
84
|
+
following: boolean;
|
|
85
|
+
friends_count: number;
|
|
86
|
+
has_custom_timelines: boolean;
|
|
87
|
+
is_translator: boolean;
|
|
88
|
+
listed_count: number;
|
|
89
|
+
location: string;
|
|
90
|
+
media_count: number;
|
|
91
|
+
muting: boolean;
|
|
92
|
+
name: string;
|
|
93
|
+
normal_followers_count: number;
|
|
94
|
+
notifications: boolean;
|
|
95
|
+
pinned_tweet_ids_str: string[];
|
|
96
|
+
possibly_sensitive: boolean;
|
|
97
|
+
profile_banner_extensions?: ProfileBannerExtensions;
|
|
98
|
+
profile_banner_url?: string;
|
|
99
|
+
profile_image_extensions?: ProfileImageExtensions;
|
|
100
|
+
profile_image_url_https: string;
|
|
101
|
+
profile_interstitial_type: string;
|
|
102
|
+
protected: boolean;
|
|
103
|
+
screen_name: string;
|
|
104
|
+
statuses_count: number;
|
|
105
|
+
translator_type: string;
|
|
106
|
+
url?: string;
|
|
107
|
+
verified: boolean;
|
|
108
|
+
want_retweets: boolean;
|
|
109
|
+
withheld_in_countries: any[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface Entities {
|
|
113
|
+
description: Description;
|
|
114
|
+
url?: Url;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface Description {
|
|
118
|
+
urls: any[];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface Url {
|
|
122
|
+
urls: Url2[];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface Url2 {
|
|
126
|
+
display_url: string;
|
|
127
|
+
expanded_url: string;
|
|
128
|
+
url: string;
|
|
129
|
+
indices: number[];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface ProfileBannerExtensions {
|
|
133
|
+
mediaColor: MediaColor;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface MediaColor {
|
|
137
|
+
r: R;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
interface R {
|
|
141
|
+
ok: Ok;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface Ok {
|
|
145
|
+
palette: Palette[];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface Palette {
|
|
149
|
+
percentage: number;
|
|
150
|
+
rgb: Rgb;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface Rgb {
|
|
154
|
+
blue: number;
|
|
155
|
+
green: number;
|
|
156
|
+
red: number;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
interface ProfileImageExtensions {
|
|
160
|
+
mediaColor: MediaColor2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface MediaColor2 {
|
|
164
|
+
r: R2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface R2 {
|
|
168
|
+
ok: Ok2;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface Ok2 {
|
|
172
|
+
palette: Palette2[];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface Palette2 {
|
|
176
|
+
percentage: number;
|
|
177
|
+
rgb: Rgb2;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
interface Rgb2 {
|
|
181
|
+
blue: number;
|
|
182
|
+
green: number;
|
|
183
|
+
red: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface Professional {
|
|
187
|
+
rest_id: string;
|
|
188
|
+
professional_type: string;
|
|
189
|
+
category: Category[];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface Category {
|
|
193
|
+
id: number;
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface ResponseObjects {
|
|
198
|
+
feedbackActions: any[];
|
|
199
|
+
immediateReactions: any[];
|
|
200
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The raw data received after creating a tweet.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ITweetPostResponse {
|
|
9
|
+
data: Data;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Data {
|
|
13
|
+
create_tweet: CreateTweet;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface CreateTweet {
|
|
17
|
+
tweet_results: TweetResults;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface TweetResults {
|
|
21
|
+
result: Result;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface Result {
|
|
25
|
+
rest_id: string;
|
|
26
|
+
core: Core;
|
|
27
|
+
edit_control: EditControl;
|
|
28
|
+
edit_perspective: EditPerspective;
|
|
29
|
+
is_translatable: boolean;
|
|
30
|
+
views: Views;
|
|
31
|
+
source: string;
|
|
32
|
+
legacy: Legacy2;
|
|
33
|
+
unmention_info: UnmentionInfo;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Core {
|
|
37
|
+
user_results: UserResults;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface UserResults {
|
|
41
|
+
result: Result2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface Result2 {
|
|
45
|
+
__typename: string;
|
|
46
|
+
id: string;
|
|
47
|
+
rest_id: string;
|
|
48
|
+
affiliates_highlighted_label: AffiliatesHighlightedLabel;
|
|
49
|
+
has_graduated_access: boolean;
|
|
50
|
+
is_blue_verified: boolean;
|
|
51
|
+
profile_image_shape: string;
|
|
52
|
+
legacy: Legacy;
|
|
53
|
+
verified_phone_status: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface AffiliatesHighlightedLabel {}
|
|
57
|
+
|
|
58
|
+
interface Legacy {
|
|
59
|
+
can_dm: boolean;
|
|
60
|
+
can_media_tag: boolean;
|
|
61
|
+
created_at: string;
|
|
62
|
+
default_profile: boolean;
|
|
63
|
+
default_profile_image: boolean;
|
|
64
|
+
description: string;
|
|
65
|
+
entities: Entities;
|
|
66
|
+
fast_followers_count: number;
|
|
67
|
+
favourites_count: number;
|
|
68
|
+
followers_count: number;
|
|
69
|
+
friends_count: number;
|
|
70
|
+
has_custom_timelines: boolean;
|
|
71
|
+
is_translator: boolean;
|
|
72
|
+
listed_count: number;
|
|
73
|
+
location: string;
|
|
74
|
+
media_count: number;
|
|
75
|
+
name: string;
|
|
76
|
+
needs_phone_verification: boolean;
|
|
77
|
+
normal_followers_count: number;
|
|
78
|
+
pinned_tweet_ids_str: any[];
|
|
79
|
+
possibly_sensitive: boolean;
|
|
80
|
+
profile_image_url_https: string;
|
|
81
|
+
profile_interstitial_type: string;
|
|
82
|
+
screen_name: string;
|
|
83
|
+
statuses_count: number;
|
|
84
|
+
translator_type: string;
|
|
85
|
+
verified: boolean;
|
|
86
|
+
want_retweets: boolean;
|
|
87
|
+
withheld_in_countries: any[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface Entities {
|
|
91
|
+
description: Description;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface Description {
|
|
95
|
+
urls: any[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface EditControl {
|
|
99
|
+
edit_tweet_ids: string[];
|
|
100
|
+
editable_until_msecs: string;
|
|
101
|
+
is_edit_eligible: boolean;
|
|
102
|
+
edits_remaining: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface EditPerspective {
|
|
106
|
+
favorited: boolean;
|
|
107
|
+
retweeted: boolean;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface Views {
|
|
111
|
+
state: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface Legacy2 {
|
|
115
|
+
bookmark_count: number;
|
|
116
|
+
bookmarked: boolean;
|
|
117
|
+
created_at: string;
|
|
118
|
+
conversation_id_str: string;
|
|
119
|
+
display_text_range: number[];
|
|
120
|
+
entities: Entities2;
|
|
121
|
+
favorite_count: number;
|
|
122
|
+
favorited: boolean;
|
|
123
|
+
full_text: string;
|
|
124
|
+
in_reply_to_screen_name: string;
|
|
125
|
+
in_reply_to_user_id_str: string;
|
|
126
|
+
is_quote_status: boolean;
|
|
127
|
+
lang: string;
|
|
128
|
+
quote_count: number;
|
|
129
|
+
reply_count: number;
|
|
130
|
+
retweet_count: number;
|
|
131
|
+
retweeted: boolean;
|
|
132
|
+
user_id_str: string;
|
|
133
|
+
id_str: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface Entities2 {
|
|
137
|
+
user_mentions: UserMention[];
|
|
138
|
+
urls: any[];
|
|
139
|
+
hashtags: any[];
|
|
140
|
+
symbols: any[];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface UserMention {
|
|
144
|
+
id_str: string;
|
|
145
|
+
name: string;
|
|
146
|
+
screen_name: string;
|
|
147
|
+
indices: number[];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface UnmentionInfo {}
|