@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,539 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when fetching the replies of a given tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetRepliesResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ threaded_conversation_with_injections_v2: ThreadedConversationWithInjectionsV2;
14
+ }
15
+
16
+ interface ThreadedConversationWithInjectionsV2 {
17
+ instructions: Instruction[];
18
+ }
19
+
20
+ interface Instruction {
21
+ type: string;
22
+ entries?: Entry[];
23
+ direction?: string;
24
+ }
25
+
26
+ interface Entry {
27
+ entryId: string;
28
+ sortIndex: string;
29
+ content: Content;
30
+ }
31
+
32
+ interface Content {
33
+ entryType: string;
34
+ __typename: string;
35
+ items?: Item[];
36
+ displayType?: string;
37
+ clientEventInfo?: ClientEventInfo2;
38
+ itemContent?: ItemContent2;
39
+ }
40
+
41
+ interface Item {
42
+ entryId: string;
43
+ item: Item2;
44
+ }
45
+
46
+ interface Item2 {
47
+ itemContent: ItemContent;
48
+ clientEventInfo: ClientEventInfo;
49
+ }
50
+
51
+ interface ItemContent {
52
+ itemType: string;
53
+ __typename: string;
54
+ tweet_results: TweetResults;
55
+ tweetDisplayType: string;
56
+ promotedMetadata?: PromotedMetadata;
57
+ }
58
+
59
+ interface TweetResults {
60
+ result: Result;
61
+ }
62
+
63
+ interface Result {
64
+ __typename: string;
65
+ rest_id: string;
66
+ has_birdwatch_notes: boolean;
67
+ core: Core;
68
+ unmention_data: UnmentionData;
69
+ edit_control: EditControl;
70
+ is_translatable: boolean;
71
+ views: Views;
72
+ source: string;
73
+ legacy: Legacy2;
74
+ quick_promote_eligibility: QuickPromoteEligibility;
75
+ unified_card?: UnifiedCard;
76
+ }
77
+
78
+ interface Core {
79
+ user_results: UserResults;
80
+ }
81
+
82
+ interface UserResults {
83
+ result: Result2;
84
+ }
85
+
86
+ interface Result2 {
87
+ __typename: string;
88
+ id: string;
89
+ rest_id: string;
90
+ affiliates_highlighted_label: AffiliatesHighlightedLabel;
91
+ has_graduated_access: boolean;
92
+ is_blue_verified: boolean;
93
+ profile_image_shape: string;
94
+ legacy: Legacy;
95
+ professional?: Professional;
96
+ verified_phone_status: boolean;
97
+ }
98
+
99
+ interface AffiliatesHighlightedLabel {}
100
+
101
+ interface Legacy {
102
+ can_dm: boolean;
103
+ can_media_tag: boolean;
104
+ created_at: string;
105
+ default_profile: boolean;
106
+ default_profile_image: boolean;
107
+ description: string;
108
+ entities: Entities;
109
+ fast_followers_count: number;
110
+ favourites_count: number;
111
+ followers_count: number;
112
+ friends_count: number;
113
+ has_custom_timelines: boolean;
114
+ is_translator: boolean;
115
+ listed_count: number;
116
+ location: string;
117
+ media_count: number;
118
+ name: string;
119
+ normal_followers_count: number;
120
+ pinned_tweet_ids_str: string[];
121
+ possibly_sensitive: boolean;
122
+ profile_banner_url: string;
123
+ profile_image_url_https: string;
124
+ profile_interstitial_type: string;
125
+ screen_name: string;
126
+ statuses_count: number;
127
+ translator_type: string;
128
+ url?: string;
129
+ verified: boolean;
130
+ want_retweets: boolean;
131
+ withheld_in_countries: any[];
132
+ }
133
+
134
+ interface Entities {
135
+ description: Description;
136
+ url?: Url2;
137
+ }
138
+
139
+ interface Description {
140
+ urls: Url[];
141
+ }
142
+
143
+ interface Url {
144
+ display_url: string;
145
+ expanded_url: string;
146
+ url: string;
147
+ indices: number[];
148
+ }
149
+
150
+ interface Url2 {
151
+ urls: Url3[];
152
+ }
153
+
154
+ interface Url3 {
155
+ display_url: string;
156
+ expanded_url: string;
157
+ url: string;
158
+ indices: number[];
159
+ }
160
+
161
+ interface Professional {
162
+ rest_id: string;
163
+ professional_type: string;
164
+ category: Category[];
165
+ }
166
+
167
+ interface Category {
168
+ id: number;
169
+ name: string;
170
+ icon_name: string;
171
+ }
172
+
173
+ interface UnmentionData {}
174
+
175
+ interface EditControl {
176
+ edit_tweet_ids: string[];
177
+ editable_until_msecs: string;
178
+ is_edit_eligible: boolean;
179
+ edits_remaining: string;
180
+ }
181
+
182
+ interface Views {
183
+ count: string;
184
+ state: string;
185
+ }
186
+
187
+ interface Legacy2 {
188
+ bookmark_count: number;
189
+ bookmarked: boolean;
190
+ created_at: string;
191
+ conversation_id_str: string;
192
+ display_text_range: number[];
193
+ entities: Entities2;
194
+ favorite_count: number;
195
+ favorited: boolean;
196
+ full_text: string;
197
+ in_reply_to_screen_name?: string;
198
+ in_reply_to_status_id_str?: string;
199
+ in_reply_to_user_id_str?: string;
200
+ is_quote_status: boolean;
201
+ lang: string;
202
+ quote_count: number;
203
+ reply_count: number;
204
+ retweet_count: number;
205
+ retweeted: boolean;
206
+ user_id_str: string;
207
+ id_str: string;
208
+ extended_entities?: ExtendedEntities;
209
+ possibly_sensitive?: boolean;
210
+ possibly_sensitive_editable?: boolean;
211
+ }
212
+
213
+ interface Entities2 {
214
+ hashtags: any[];
215
+ symbols: any[];
216
+ timestamps: any[];
217
+ urls: Url4[];
218
+ user_mentions: UserMention[];
219
+ media?: Medum[];
220
+ }
221
+
222
+ interface Url4 {
223
+ display_url: string;
224
+ expanded_url: string;
225
+ url: string;
226
+ indices: number[];
227
+ }
228
+
229
+ interface UserMention {
230
+ id_str: string;
231
+ name: string;
232
+ screen_name: string;
233
+ indices: number[];
234
+ }
235
+
236
+ interface Medum {
237
+ display_url: string;
238
+ expanded_url: string;
239
+ id_str: string;
240
+ indices: number[];
241
+ media_key: string;
242
+ media_url_https: string;
243
+ type: string;
244
+ url: string;
245
+ additional_media_info?: AdditionalMediaInfo;
246
+ ext_media_availability: ExtMediaAvailability;
247
+ sizes: Sizes;
248
+ original_info: OriginalInfo;
249
+ video_info: VideoInfo;
250
+ ext_alt_text?: string;
251
+ }
252
+
253
+ interface AdditionalMediaInfo {
254
+ monetizable: boolean;
255
+ }
256
+
257
+ interface ExtMediaAvailability {
258
+ status: string;
259
+ }
260
+
261
+ interface Sizes {
262
+ large: Large;
263
+ medium: Medium;
264
+ small: Small;
265
+ thumb: Thumb;
266
+ }
267
+
268
+ interface Large {
269
+ h: number;
270
+ w: number;
271
+ resize: string;
272
+ }
273
+
274
+ interface Medium {
275
+ h: number;
276
+ w: number;
277
+ resize: string;
278
+ }
279
+
280
+ interface Small {
281
+ h: number;
282
+ w: number;
283
+ resize: string;
284
+ }
285
+
286
+ interface Thumb {
287
+ h: number;
288
+ w: number;
289
+ resize: string;
290
+ }
291
+
292
+ interface OriginalInfo {
293
+ height: number;
294
+ width: number;
295
+ focus_rects: any[];
296
+ }
297
+
298
+ interface VideoInfo {
299
+ aspect_ratio: number[];
300
+ duration_millis?: number;
301
+ variants: Variant[];
302
+ }
303
+
304
+ interface Variant {
305
+ bitrate?: number;
306
+ content_type: string;
307
+ url: string;
308
+ }
309
+
310
+ interface ExtendedEntities {
311
+ media: Medum2[];
312
+ }
313
+
314
+ interface Medum2 {
315
+ display_url: string;
316
+ expanded_url: string;
317
+ id_str: string;
318
+ indices: number[];
319
+ media_key: string;
320
+ media_url_https: string;
321
+ type: string;
322
+ url: string;
323
+ additional_media_info?: AdditionalMediaInfo2;
324
+ ext_media_availability: ExtMediaAvailability2;
325
+ sizes: Sizes2;
326
+ original_info: OriginalInfo2;
327
+ video_info: VideoInfo2;
328
+ ext_alt_text?: string;
329
+ }
330
+
331
+ interface AdditionalMediaInfo2 {
332
+ monetizable: boolean;
333
+ }
334
+
335
+ interface ExtMediaAvailability2 {
336
+ status: string;
337
+ }
338
+
339
+ interface Sizes2 {
340
+ large: Large2;
341
+ medium: Medium2;
342
+ small: Small2;
343
+ thumb: Thumb2;
344
+ }
345
+
346
+ interface Large2 {
347
+ h: number;
348
+ w: number;
349
+ resize: string;
350
+ }
351
+
352
+ interface Medium2 {
353
+ h: number;
354
+ w: number;
355
+ resize: string;
356
+ }
357
+
358
+ interface Small2 {
359
+ h: number;
360
+ w: number;
361
+ resize: string;
362
+ }
363
+
364
+ interface Thumb2 {
365
+ h: number;
366
+ w: number;
367
+ resize: string;
368
+ }
369
+
370
+ interface OriginalInfo2 {
371
+ height: number;
372
+ width: number;
373
+ focus_rects: any[];
374
+ }
375
+
376
+ interface VideoInfo2 {
377
+ aspect_ratio: number[];
378
+ duration_millis?: number;
379
+ variants: Variant2[];
380
+ }
381
+
382
+ interface Variant2 {
383
+ bitrate?: number;
384
+ content_type: string;
385
+ url: string;
386
+ }
387
+
388
+ interface QuickPromoteEligibility {
389
+ eligibility: string;
390
+ }
391
+
392
+ interface UnifiedCard {
393
+ card_fetch_state: string;
394
+ }
395
+
396
+ interface PromotedMetadata {
397
+ advertiser_results: AdvertiserResults;
398
+ disclosureType: string;
399
+ experimentValues: any[];
400
+ impressionId: string;
401
+ impressionString: string;
402
+ clickTrackingInfo: ClickTrackingInfo;
403
+ }
404
+
405
+ interface AdvertiserResults {
406
+ result: Result3;
407
+ }
408
+
409
+ interface Result3 {
410
+ __typename: string;
411
+ id: string;
412
+ rest_id: string;
413
+ affiliates_highlighted_label: AffiliatesHighlightedLabel2;
414
+ has_graduated_access: boolean;
415
+ is_blue_verified: boolean;
416
+ profile_image_shape: string;
417
+ legacy: Legacy3;
418
+ professional: Professional2;
419
+ verified_phone_status: boolean;
420
+ }
421
+
422
+ interface AffiliatesHighlightedLabel2 {}
423
+
424
+ interface Legacy3 {
425
+ can_dm: boolean;
426
+ can_media_tag: boolean;
427
+ created_at: string;
428
+ default_profile: boolean;
429
+ default_profile_image: boolean;
430
+ description: string;
431
+ entities: Entities3;
432
+ fast_followers_count: number;
433
+ favourites_count: number;
434
+ followers_count: number;
435
+ friends_count: number;
436
+ has_custom_timelines: boolean;
437
+ is_translator: boolean;
438
+ listed_count: number;
439
+ location: string;
440
+ media_count: number;
441
+ name: string;
442
+ normal_followers_count: number;
443
+ pinned_tweet_ids_str: string[];
444
+ possibly_sensitive: boolean;
445
+ profile_banner_url: string;
446
+ profile_image_url_https: string;
447
+ profile_interstitial_type: string;
448
+ screen_name: string;
449
+ statuses_count: number;
450
+ translator_type: string;
451
+ url: string;
452
+ verified: boolean;
453
+ want_retweets: boolean;
454
+ withheld_in_countries: any[];
455
+ }
456
+
457
+ interface Entities3 {
458
+ description: Description2;
459
+ url: Url6;
460
+ }
461
+
462
+ interface Description2 {
463
+ urls: Url5[];
464
+ }
465
+
466
+ interface Url5 {
467
+ display_url: string;
468
+ expanded_url: string;
469
+ url: string;
470
+ indices: number[];
471
+ }
472
+
473
+ interface Url6 {
474
+ urls: Url7[];
475
+ }
476
+
477
+ interface Url7 {
478
+ display_url: string;
479
+ expanded_url: string;
480
+ url: string;
481
+ indices: number[];
482
+ }
483
+
484
+ interface Professional2 {
485
+ rest_id: string;
486
+ professional_type: string;
487
+ category: Category2[];
488
+ }
489
+
490
+ interface Category2 {
491
+ id: number;
492
+ name: string;
493
+ icon_name: string;
494
+ }
495
+
496
+ interface ClickTrackingInfo {
497
+ urlParams: UrlParam[];
498
+ }
499
+
500
+ interface UrlParam {
501
+ key: string;
502
+ value: string;
503
+ }
504
+
505
+ interface ClientEventInfo {
506
+ details: Details;
507
+ }
508
+
509
+ interface Details {
510
+ conversationDetails: ConversationDetails;
511
+ timelinesDetails?: TimelinesDetails;
512
+ }
513
+
514
+ interface ConversationDetails {
515
+ conversationSection: string;
516
+ }
517
+
518
+ interface TimelinesDetails {
519
+ controllerData: string;
520
+ }
521
+
522
+ interface ClientEventInfo2 {
523
+ details: Details2;
524
+ }
525
+
526
+ interface Details2 {
527
+ conversationDetails: ConversationDetails2;
528
+ }
529
+
530
+ interface ConversationDetails2 {
531
+ conversationSection: string;
532
+ }
533
+
534
+ interface ItemContent2 {
535
+ itemType: string;
536
+ __typename: string;
537
+ value: string;
538
+ cursorType: string;
539
+ }
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * The raw data received when after retweeting a tweet.
5
+ *
6
+ * @public
7
+ */
8
+ export interface ITweetRetweetResponse {
9
+ data: Data;
10
+ }
11
+
12
+ interface Data {
13
+ create_retweet: CreateRetweet;
14
+ }
15
+
16
+ interface CreateRetweet {
17
+ retweet_results: RetweetResults;
18
+ }
19
+
20
+ interface RetweetResults {
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
+ }