@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.
Files changed (165) hide show
  1. package/.eslintrc.js +166 -0
  2. package/.gitattributes +3 -0
  3. package/.github/FUNDING.yml +4 -0
  4. package/.github/ISSUE_TEMPLATE/bug-report.yml +57 -0
  5. package/.github/ISSUE_TEMPLATE/feature-request.yml +20 -0
  6. package/.github/ISSUE_TEMPLATE/question.yml +15 -0
  7. package/.github/PULL_REQUEST_TEMPLATE.md +32 -0
  8. package/.github/workflows/ci.yml +32 -0
  9. package/.github/workflows/publish.yml +23 -0
  10. package/.nvmrc +1 -0
  11. package/.prettierignore +3 -0
  12. package/.prettierrc +13 -0
  13. package/LICENSE +21 -0
  14. package/README.md +566 -0
  15. package/dist/cli.js +43 -0
  16. package/eslint.config.mjs +17 -0
  17. package/package.json +50 -0
  18. package/src/Rettiwt.ts +97 -0
  19. package/src/cli.ts +48 -0
  20. package/src/collections/Extractors.ts +155 -0
  21. package/src/collections/Groups.ts +81 -0
  22. package/src/collections/Requests.ts +89 -0
  23. package/src/collections/Tweet.ts +17 -0
  24. package/src/commands/DirectMessage.ts +62 -0
  25. package/src/commands/List.ts +90 -0
  26. package/src/commands/Tweet.ts +437 -0
  27. package/src/commands/User.ts +367 -0
  28. package/src/enums/Api.ts +10 -0
  29. package/src/enums/Authentication.ts +10 -0
  30. package/src/enums/Data.ts +13 -0
  31. package/src/enums/Logging.ts +14 -0
  32. package/src/enums/Media.ts +10 -0
  33. package/src/enums/Notification.ts +12 -0
  34. package/src/enums/Resource.ts +69 -0
  35. package/src/enums/Tweet.ts +8 -0
  36. package/src/enums/raw/Analytics.ts +32 -0
  37. package/src/enums/raw/Media.ts +10 -0
  38. package/src/enums/raw/Notification.ts +11 -0
  39. package/src/enums/raw/Tweet.ts +20 -0
  40. package/src/helper/CliUtils.ts +17 -0
  41. package/src/helper/JsonUtils.ts +70 -0
  42. package/src/index.ts +128 -0
  43. package/src/models/RettiwtConfig.ts +101 -0
  44. package/src/models/args/FetchArgs.ts +169 -0
  45. package/src/models/args/PostArgs.ts +93 -0
  46. package/src/models/args/ProfileArgs.ts +68 -0
  47. package/src/models/auth/AuthCookie.ts +58 -0
  48. package/src/models/auth/AuthCredential.ts +83 -0
  49. package/src/models/data/Analytics.ts +97 -0
  50. package/src/models/data/BookmarkFolder.ts +73 -0
  51. package/src/models/data/Conversation.ts +344 -0
  52. package/src/models/data/CursoredData.ts +64 -0
  53. package/src/models/data/DirectMessage.ts +335 -0
  54. package/src/models/data/Inbox.ts +124 -0
  55. package/src/models/data/List.ts +113 -0
  56. package/src/models/data/Notification.ts +84 -0
  57. package/src/models/data/Tweet.ts +388 -0
  58. package/src/models/data/User.ts +187 -0
  59. package/src/models/errors/TwitterError.ts +65 -0
  60. package/src/models/params/Variables.ts +62 -0
  61. package/src/requests/DirectMessage.ts +229 -0
  62. package/src/requests/List.ts +203 -0
  63. package/src/requests/Media.ts +67 -0
  64. package/src/requests/Tweet.ts +607 -0
  65. package/src/requests/User.ts +1191 -0
  66. package/src/services/internal/AuthService.ts +115 -0
  67. package/src/services/internal/ErrorService.ts +41 -0
  68. package/src/services/internal/LogService.ts +34 -0
  69. package/src/services/public/DirectMessageService.ts +159 -0
  70. package/src/services/public/FetcherService.ts +366 -0
  71. package/src/services/public/ListService.ts +241 -0
  72. package/src/services/public/TweetService.ts +886 -0
  73. package/src/services/public/UserService.ts +1154 -0
  74. package/src/types/ErrorHandler.ts +13 -0
  75. package/src/types/Fetch.ts +3 -0
  76. package/src/types/RettiwtConfig.ts +48 -0
  77. package/src/types/args/FetchArgs.ts +233 -0
  78. package/src/types/args/PostArgs.ts +142 -0
  79. package/src/types/args/ProfileArgs.ts +33 -0
  80. package/src/types/auth/AuthCookie.ts +22 -0
  81. package/src/types/auth/AuthCredential.ts +28 -0
  82. package/src/types/auth/TransactionHeader.ts +8 -0
  83. package/src/types/data/Analytics.ts +58 -0
  84. package/src/types/data/BookmarkFolder.ts +12 -0
  85. package/src/types/data/Conversation.ts +44 -0
  86. package/src/types/data/CursoredData.ts +24 -0
  87. package/src/types/data/DirectMessage.ts +33 -0
  88. package/src/types/data/Inbox.ts +23 -0
  89. package/src/types/data/List.ts +33 -0
  90. package/src/types/data/Notification.ts +26 -0
  91. package/src/types/data/Tweet.ts +99 -0
  92. package/src/types/data/User.ts +54 -0
  93. package/src/types/errors/TwitterError.ts +37 -0
  94. package/src/types/params/Variables.ts +41 -0
  95. package/src/types/raw/base/Analytic.ts +32 -0
  96. package/src/types/raw/base/BookmarkFolder.ts +12 -0
  97. package/src/types/raw/base/Cursor.ts +13 -0
  98. package/src/types/raw/base/Error.ts +38 -0
  99. package/src/types/raw/base/LimitedVisibilityTweet.ts +40 -0
  100. package/src/types/raw/base/List.ts +50 -0
  101. package/src/types/raw/base/Media.ts +53 -0
  102. package/src/types/raw/base/Message.ts +22 -0
  103. package/src/types/raw/base/Notification.ts +66 -0
  104. package/src/types/raw/base/Space.ts +35 -0
  105. package/src/types/raw/base/Tweet.ts +139 -0
  106. package/src/types/raw/base/User.ts +182 -0
  107. package/src/types/raw/composite/DataResult.ts +8 -0
  108. package/src/types/raw/composite/TimelineList.ts +10 -0
  109. package/src/types/raw/composite/TimelineTweet.ts +14 -0
  110. package/src/types/raw/composite/TimelineUser.ts +13 -0
  111. package/src/types/raw/dm/Conversation.ts +59 -0
  112. package/src/types/raw/dm/InboxInitial.ts +155 -0
  113. package/src/types/raw/dm/InboxTimeline.ts +301 -0
  114. package/src/types/raw/dm/UserUpdates.ts +46 -0
  115. package/src/types/raw/generic/Response.ts +10 -0
  116. package/src/types/raw/list/AddMember.ts +175 -0
  117. package/src/types/raw/list/Details.ts +176 -0
  118. package/src/types/raw/list/Members.ts +154 -0
  119. package/src/types/raw/list/RemoveMember.ts +174 -0
  120. package/src/types/raw/list/Tweets.ts +2296 -0
  121. package/src/types/raw/media/FinalizeUpload.ts +20 -0
  122. package/src/types/raw/media/InitalizeUpload.ts +12 -0
  123. package/src/types/raw/media/LiveVideoStream.ts +21 -0
  124. package/src/types/raw/space/Details.ts +359 -0
  125. package/src/types/raw/tweet/Bookmark.ts +14 -0
  126. package/src/types/raw/tweet/Details.ts +210 -0
  127. package/src/types/raw/tweet/DetailsBulk.ts +338 -0
  128. package/src/types/raw/tweet/Like.ts +14 -0
  129. package/src/types/raw/tweet/Likers.ts +200 -0
  130. package/src/types/raw/tweet/Post.ts +150 -0
  131. package/src/types/raw/tweet/Replies.ts +539 -0
  132. package/src/types/raw/tweet/Retweet.ts +31 -0
  133. package/src/types/raw/tweet/Retweeters.ts +208 -0
  134. package/src/types/raw/tweet/Schedule.ts +18 -0
  135. package/src/types/raw/tweet/Search.ts +597 -0
  136. package/src/types/raw/tweet/Unbookmark.ts +14 -0
  137. package/src/types/raw/tweet/Unlike.ts +14 -0
  138. package/src/types/raw/tweet/Unpost.ts +20 -0
  139. package/src/types/raw/tweet/Unretweet.ts +31 -0
  140. package/src/types/raw/tweet/Unschedule.ts +14 -0
  141. package/src/types/raw/user/Affiliates.ts +179 -0
  142. package/src/types/raw/user/Analytics.ts +23 -0
  143. package/src/types/raw/user/BookmarkFolderTweets.ts +53 -0
  144. package/src/types/raw/user/BookmarkFolders.ts +41 -0
  145. package/src/types/raw/user/Bookmarks.ts +637 -0
  146. package/src/types/raw/user/Details.ts +185 -0
  147. package/src/types/raw/user/DetailsBulk.ts +104 -0
  148. package/src/types/raw/user/Follow.ts +280 -0
  149. package/src/types/raw/user/Followed.ts +1942 -0
  150. package/src/types/raw/user/Followers.ts +215 -0
  151. package/src/types/raw/user/Following.ts +215 -0
  152. package/src/types/raw/user/Highlights.ts +1287 -0
  153. package/src/types/raw/user/Likes.ts +1254 -0
  154. package/src/types/raw/user/Lists.ts +378 -0
  155. package/src/types/raw/user/Media.ts +1738 -0
  156. package/src/types/raw/user/Notifications.ts +499 -0
  157. package/src/types/raw/user/ProfileUpdate.ts +80 -0
  158. package/src/types/raw/user/Recommended.ts +2319 -0
  159. package/src/types/raw/user/Scheduled.ts +37 -0
  160. package/src/types/raw/user/Search.ts +230 -0
  161. package/src/types/raw/user/Subscriptions.ts +176 -0
  162. package/src/types/raw/user/Tweets.ts +1254 -0
  163. package/src/types/raw/user/TweetsAndReplies.ts +1254 -0
  164. package/src/types/raw/user/Unfollow.ts +280 -0
  165. package/tsconfig.json +97 -0
@@ -0,0 +1,597 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when fetching the list of tweets matching a given filter.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetSearchResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ search_by_raw_query: SearchByRawQuery;
14
+ }
15
+
16
+ interface SearchByRawQuery {
17
+ search_timeline: SearchTimeline;
18
+ }
19
+
20
+ interface SearchTimeline {
21
+ timeline: Timeline;
22
+ }
23
+
24
+ interface Timeline {
25
+ instructions: Instruction[];
26
+ }
27
+
28
+ interface Instruction {
29
+ type: string;
30
+ entries?: Entry[];
31
+ entry_id_to_replace?: string;
32
+ entry?: Entry2;
33
+ }
34
+
35
+ interface Entry {
36
+ entryId: string;
37
+ sortIndex: string;
38
+ content: Content;
39
+ }
40
+
41
+ interface Content {
42
+ entryType: string;
43
+ __typename: string;
44
+ itemContent?: ItemContent;
45
+ clientEventInfo?: ClientEventInfo;
46
+ value?: string;
47
+ cursorType?: string;
48
+ }
49
+
50
+ interface ItemContent {
51
+ itemType: string;
52
+ __typename: string;
53
+ tweet_results: TweetResults;
54
+ tweetDisplayType: string;
55
+ }
56
+
57
+ interface TweetResults {
58
+ result: Result;
59
+ }
60
+
61
+ interface Result {
62
+ __typename: string;
63
+ tweet?: Tweet;
64
+ limitedActionResults?: LimitedActionResults;
65
+ rest_id?: string;
66
+ core?: Core2;
67
+ edit_control?: EditControl2;
68
+ edit_perspective?: EditPerspective2;
69
+ is_translatable?: boolean;
70
+ views?: Views2;
71
+ source?: string;
72
+ legacy?: Legacy5;
73
+ superFollowsReplyUserResult?: SuperFollowsReplyUserResult;
74
+ quoted_status_result?: QuotedStatusResult;
75
+ }
76
+
77
+ interface Tweet {
78
+ rest_id: string;
79
+ core: Core;
80
+ edit_control: EditControl;
81
+ edit_perspective: EditPerspective;
82
+ is_translatable: boolean;
83
+ views: Views;
84
+ source: string;
85
+ legacy: Legacy2;
86
+ }
87
+
88
+ interface Core {
89
+ user_results: UserResults;
90
+ }
91
+
92
+ interface UserResults {
93
+ result: Result2;
94
+ }
95
+
96
+ interface Result2 {
97
+ __typename: string;
98
+ id: string;
99
+ rest_id: string;
100
+ affiliates_highlighted_label: AffiliatesHighlightedLabel;
101
+ has_graduated_access: boolean;
102
+ is_blue_verified: boolean;
103
+ profile_image_shape: string;
104
+ legacy: Legacy;
105
+ super_follow_eligible: boolean;
106
+ verified_phone_status: boolean;
107
+ }
108
+
109
+ interface AffiliatesHighlightedLabel {
110
+ label: Label;
111
+ }
112
+
113
+ interface Label {
114
+ url: Url;
115
+ badge: Badge;
116
+ description: string;
117
+ userLabelType: string;
118
+ userLabelDisplayType: string;
119
+ }
120
+
121
+ interface Url {
122
+ url: string;
123
+ urlType: string;
124
+ }
125
+
126
+ interface Badge {
127
+ url: string;
128
+ }
129
+
130
+ interface Legacy {
131
+ following: boolean;
132
+ can_dm: boolean;
133
+ can_media_tag: boolean;
134
+ created_at: string;
135
+ default_profile: boolean;
136
+ default_profile_image: boolean;
137
+ description: string;
138
+ entities: Entities;
139
+ fast_followers_count: number;
140
+ favourites_count: number;
141
+ followers_count: number;
142
+ friends_count: number;
143
+ has_custom_timelines: boolean;
144
+ is_translator: boolean;
145
+ listed_count: number;
146
+ location: string;
147
+ media_count: number;
148
+ name: string;
149
+ normal_followers_count: number;
150
+ pinned_tweet_ids_str: any[];
151
+ possibly_sensitive: boolean;
152
+ profile_banner_url: string;
153
+ profile_image_url_https: string;
154
+ profile_interstitial_type: string;
155
+ screen_name: string;
156
+ statuses_count: number;
157
+ translator_type: string;
158
+ verified: boolean;
159
+ want_retweets: boolean;
160
+ withheld_in_countries: any[];
161
+ }
162
+
163
+ interface Entities {
164
+ description: Description;
165
+ }
166
+
167
+ interface Description {
168
+ urls: any[];
169
+ }
170
+
171
+ interface EditControl {
172
+ edit_tweet_ids: string[];
173
+ editable_until_msecs: string;
174
+ is_edit_eligible: boolean;
175
+ edits_remaining: string;
176
+ }
177
+
178
+ interface EditPerspective {
179
+ favorited: boolean;
180
+ retweeted: boolean;
181
+ }
182
+
183
+ interface Views {
184
+ count: string;
185
+ state: string;
186
+ }
187
+
188
+ interface Legacy2 {
189
+ bookmark_count: number;
190
+ bookmarked: boolean;
191
+ created_at: string;
192
+ conversation_control: ConversationControl;
193
+ conversation_id_str: string;
194
+ display_text_range: number[];
195
+ entities: Entities2;
196
+ favorite_count: number;
197
+ favorited: boolean;
198
+ full_text: string;
199
+ in_reply_to_screen_name: string;
200
+ in_reply_to_status_id_str: string;
201
+ in_reply_to_user_id_str: string;
202
+ is_quote_status: boolean;
203
+ lang: string;
204
+ limited_actions: string;
205
+ quote_count: number;
206
+ reply_count: number;
207
+ retweet_count: number;
208
+ retweeted: boolean;
209
+ user_id_str: string;
210
+ id_str: string;
211
+ }
212
+
213
+ interface ConversationControl {
214
+ policy: string;
215
+ conversation_owner_results: ConversationOwnerResults;
216
+ }
217
+
218
+ interface ConversationOwnerResults {
219
+ result: Result3;
220
+ }
221
+
222
+ interface Result3 {
223
+ __typename: string;
224
+ legacy: Legacy3;
225
+ }
226
+
227
+ interface Legacy3 {
228
+ screen_name: string;
229
+ }
230
+
231
+ interface Entities2 {
232
+ user_mentions: UserMention[];
233
+ urls: any[];
234
+ hashtags: any[];
235
+ symbols: any[];
236
+ }
237
+
238
+ interface UserMention {
239
+ id_str: string;
240
+ name: string;
241
+ screen_name: string;
242
+ indices: number[];
243
+ }
244
+
245
+ interface LimitedActionResults {
246
+ limited_actions: LimitedAction[];
247
+ }
248
+
249
+ interface LimitedAction {
250
+ action: string;
251
+ prompt: Prompt;
252
+ }
253
+
254
+ interface Prompt {
255
+ __typename: string;
256
+ cta_type: string;
257
+ headline: Headline;
258
+ subtext: Subtext;
259
+ }
260
+
261
+ interface Headline {
262
+ text: string;
263
+ entities: any[];
264
+ }
265
+
266
+ interface Subtext {
267
+ text: string;
268
+ entities: any[];
269
+ }
270
+
271
+ interface Core2 {
272
+ user_results: UserResults2;
273
+ }
274
+
275
+ interface UserResults2 {
276
+ result: Result4;
277
+ }
278
+
279
+ interface Result4 {
280
+ __typename: string;
281
+ id: string;
282
+ rest_id: string;
283
+ affiliates_highlighted_label: AffiliatesHighlightedLabel2;
284
+ has_graduated_access: boolean;
285
+ is_blue_verified: boolean;
286
+ profile_image_shape: string;
287
+ legacy: Legacy4;
288
+ super_follow_eligible: boolean;
289
+ verified_phone_status: boolean;
290
+ }
291
+
292
+ interface AffiliatesHighlightedLabel2 {
293
+ label: Label2;
294
+ }
295
+
296
+ interface Label2 {
297
+ url: Url2;
298
+ badge: Badge2;
299
+ description: string;
300
+ userLabelType: string;
301
+ userLabelDisplayType: string;
302
+ }
303
+
304
+ interface Url2 {
305
+ url: string;
306
+ urlType: string;
307
+ }
308
+
309
+ interface Badge2 {
310
+ url: string;
311
+ }
312
+
313
+ interface Legacy4 {
314
+ following: boolean;
315
+ can_dm: boolean;
316
+ can_media_tag: boolean;
317
+ created_at: string;
318
+ default_profile: boolean;
319
+ default_profile_image: boolean;
320
+ description: string;
321
+ entities: Entities3;
322
+ fast_followers_count: number;
323
+ favourites_count: number;
324
+ followers_count: number;
325
+ friends_count: number;
326
+ has_custom_timelines: boolean;
327
+ is_translator: boolean;
328
+ listed_count: number;
329
+ location: string;
330
+ media_count: number;
331
+ name: string;
332
+ normal_followers_count: number;
333
+ pinned_tweet_ids_str: any[];
334
+ possibly_sensitive: boolean;
335
+ profile_banner_url: string;
336
+ profile_image_url_https: string;
337
+ profile_interstitial_type: string;
338
+ screen_name: string;
339
+ statuses_count: number;
340
+ translator_type: string;
341
+ verified: boolean;
342
+ want_retweets: boolean;
343
+ withheld_in_countries: any[];
344
+ }
345
+
346
+ interface Entities3 {
347
+ description: Description2;
348
+ }
349
+
350
+ interface Description2 {
351
+ urls: any[];
352
+ }
353
+
354
+ interface EditControl2 {
355
+ edit_tweet_ids: string[];
356
+ editable_until_msecs: string;
357
+ is_edit_eligible: boolean;
358
+ edits_remaining: string;
359
+ }
360
+
361
+ interface EditPerspective2 {
362
+ favorited: boolean;
363
+ retweeted: boolean;
364
+ }
365
+
366
+ interface Views2 {
367
+ count: string;
368
+ state: string;
369
+ }
370
+
371
+ interface Legacy5 {
372
+ bookmark_count: number;
373
+ bookmarked: boolean;
374
+ created_at: string;
375
+ conversation_id_str: string;
376
+ display_text_range: number[];
377
+ entities: Entities4;
378
+ favorite_count: number;
379
+ favorited: boolean;
380
+ full_text: string;
381
+ in_reply_to_screen_name?: string;
382
+ in_reply_to_status_id_str?: string;
383
+ in_reply_to_user_id_str?: string;
384
+ is_quote_status: boolean;
385
+ lang: string;
386
+ quote_count: number;
387
+ reply_count: number;
388
+ retweet_count: number;
389
+ retweeted: boolean;
390
+ user_id_str: string;
391
+ id_str: string;
392
+ quoted_status_id_str?: string;
393
+ quoted_status_permalink?: QuotedStatusPermalink;
394
+ }
395
+
396
+ interface Entities4 {
397
+ user_mentions: UserMention2[];
398
+ urls: any[];
399
+ hashtags: any[];
400
+ symbols: any[];
401
+ }
402
+
403
+ interface UserMention2 {
404
+ id_str: string;
405
+ name: string;
406
+ screen_name: string;
407
+ indices: number[];
408
+ }
409
+
410
+ interface QuotedStatusPermalink {
411
+ url: string;
412
+ expanded: string;
413
+ display: string;
414
+ }
415
+
416
+ interface SuperFollowsReplyUserResult {
417
+ result: Result5;
418
+ }
419
+
420
+ interface Result5 {
421
+ __typename: string;
422
+ legacy: Legacy6;
423
+ }
424
+
425
+ interface Legacy6 {
426
+ screen_name: string;
427
+ }
428
+
429
+ interface QuotedStatusResult {
430
+ result: Result6;
431
+ }
432
+
433
+ interface Result6 {
434
+ __typename: string;
435
+ rest_id: string;
436
+ core: Core3;
437
+ edit_control: EditControl3;
438
+ edit_perspective: EditPerspective3;
439
+ is_translatable: boolean;
440
+ views: Views3;
441
+ source: string;
442
+ legacy: Legacy8;
443
+ }
444
+
445
+ interface Core3 {
446
+ user_results: UserResults3;
447
+ }
448
+
449
+ interface UserResults3 {
450
+ result: Result7;
451
+ }
452
+
453
+ interface Result7 {
454
+ __typename: string;
455
+ id: string;
456
+ rest_id: string;
457
+ affiliates_highlighted_label: AffiliatesHighlightedLabel3;
458
+ has_graduated_access: boolean;
459
+ is_blue_verified: boolean;
460
+ profile_image_shape: string;
461
+ legacy: Legacy7;
462
+ super_follow_eligible: boolean;
463
+ verified_phone_status: boolean;
464
+ }
465
+
466
+ interface AffiliatesHighlightedLabel3 {
467
+ label: Label3;
468
+ }
469
+
470
+ interface Label3 {
471
+ url: Url3;
472
+ badge: Badge3;
473
+ description: string;
474
+ userLabelType: string;
475
+ userLabelDisplayType: string;
476
+ }
477
+
478
+ interface Url3 {
479
+ url: string;
480
+ urlType: string;
481
+ }
482
+
483
+ interface Badge3 {
484
+ url: string;
485
+ }
486
+
487
+ interface Legacy7 {
488
+ following: boolean;
489
+ can_dm: boolean;
490
+ can_media_tag: boolean;
491
+ created_at: string;
492
+ default_profile: boolean;
493
+ default_profile_image: boolean;
494
+ description: string;
495
+ entities: Entities5;
496
+ fast_followers_count: number;
497
+ favourites_count: number;
498
+ followers_count: number;
499
+ friends_count: number;
500
+ has_custom_timelines: boolean;
501
+ is_translator: boolean;
502
+ listed_count: number;
503
+ location: string;
504
+ media_count: number;
505
+ name: string;
506
+ normal_followers_count: number;
507
+ pinned_tweet_ids_str: any[];
508
+ possibly_sensitive: boolean;
509
+ profile_banner_url: string;
510
+ profile_image_url_https: string;
511
+ profile_interstitial_type: string;
512
+ screen_name: string;
513
+ statuses_count: number;
514
+ translator_type: string;
515
+ verified: boolean;
516
+ want_retweets: boolean;
517
+ withheld_in_countries: any[];
518
+ }
519
+
520
+ interface Entities5 {
521
+ description: Description3;
522
+ }
523
+
524
+ interface Description3 {
525
+ urls: any[];
526
+ }
527
+
528
+ interface EditControl3 {
529
+ edit_tweet_ids: string[];
530
+ editable_until_msecs: string;
531
+ is_edit_eligible: boolean;
532
+ edits_remaining: string;
533
+ }
534
+
535
+ interface EditPerspective3 {
536
+ favorited: boolean;
537
+ retweeted: boolean;
538
+ }
539
+
540
+ interface Views3 {
541
+ count: string;
542
+ state: string;
543
+ }
544
+
545
+ interface Legacy8 {
546
+ bookmark_count: number;
547
+ bookmarked: boolean;
548
+ created_at: string;
549
+ conversation_id_str: string;
550
+ display_text_range: number[];
551
+ entities: Entities6;
552
+ favorite_count: number;
553
+ favorited: boolean;
554
+ full_text: string;
555
+ is_quote_status: boolean;
556
+ lang: string;
557
+ quote_count: number;
558
+ reply_count: number;
559
+ retweet_count: number;
560
+ retweeted: boolean;
561
+ user_id_str: string;
562
+ id_str: string;
563
+ }
564
+
565
+ interface Entities6 {
566
+ user_mentions: any[];
567
+ urls: any[];
568
+ hashtags: any[];
569
+ symbols: any[];
570
+ }
571
+
572
+ interface ClientEventInfo {
573
+ component: string;
574
+ element: string;
575
+ details: Details;
576
+ }
577
+
578
+ interface Details {
579
+ timelinesDetails: TimelinesDetails;
580
+ }
581
+
582
+ interface TimelinesDetails {
583
+ controllerData: string;
584
+ }
585
+
586
+ interface Entry2 {
587
+ entryId: string;
588
+ sortIndex: string;
589
+ content: Content2;
590
+ }
591
+
592
+ interface Content2 {
593
+ entryType: string;
594
+ __typename: string;
595
+ value: string;
596
+ cursorType: string;
597
+ }
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when unbookmarking a given tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetUnbookmarkResponse {
9
+ data: Data;
10
+ }
11
+
12
+ export interface Data {
13
+ tweet_bookmark_delete: string;
14
+ }
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when unliking a tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetUnlikeResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ unfavorite_tweet: string;
14
+ }
@@ -0,0 +1,20 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when unposting a tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetUnpostResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ delete_tweet: DeleteTweet;
14
+ }
15
+
16
+ interface DeleteTweet {
17
+ tweet_results: TweetResults;
18
+ }
19
+
20
+ interface TweetResults {}
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when unretweeting a tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetUnretweetResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ unretweet: Unretweet;
14
+ }
15
+
16
+ interface Unretweet {
17
+ source_tweet_results: SourceTweetResults;
18
+ }
19
+
20
+ interface SourceTweetResults {
21
+ result: Result;
22
+ }
23
+
24
+ interface Result {
25
+ rest_id: string;
26
+ legacy: Legacy;
27
+ }
28
+
29
+ interface Legacy {
30
+ full_text: string;
31
+ }
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received after unscheduling a tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetUnscheduleResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ scheduledtweet_delete: string;
14
+ }