rettiwt-api 5.0.0-alpha.1 → 5.0.0-alpha.3

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 (406) hide show
  1. package/dist/Rettiwt.d.ts +10 -3
  2. package/dist/Rettiwt.js +19 -7
  3. package/dist/Rettiwt.js.map +1 -1
  4. package/dist/collections/Extractors.d.ts +35 -2
  5. package/dist/collections/Extractors.js +3 -0
  6. package/dist/collections/Extractors.js.map +1 -1
  7. package/dist/collections/Groups.js +3 -0
  8. package/dist/collections/Groups.js.map +1 -1
  9. package/dist/collections/Requests.js +41 -41
  10. package/dist/collections/Requests.js.map +1 -1
  11. package/dist/commands/Tweet.js +33 -7
  12. package/dist/commands/Tweet.js.map +1 -1
  13. package/dist/commands/User.js +12 -2
  14. package/dist/commands/User.js.map +1 -1
  15. package/dist/enums/Authentication.d.ts +2 -10
  16. package/dist/enums/Authentication.js +3 -12
  17. package/dist/enums/Authentication.js.map +1 -1
  18. package/dist/enums/Data.d.ts +3 -15
  19. package/dist/enums/Data.js +4 -17
  20. package/dist/enums/Data.js.map +1 -1
  21. package/dist/enums/Media.d.ts +10 -0
  22. package/dist/enums/Media.js +15 -0
  23. package/dist/enums/Media.js.map +1 -0
  24. package/dist/enums/Notification.d.ts +12 -0
  25. package/dist/enums/Notification.js +17 -0
  26. package/dist/enums/Notification.js.map +1 -0
  27. package/dist/enums/Resource.d.ts +3 -0
  28. package/dist/enums/Resource.js +3 -0
  29. package/dist/enums/Resource.js.map +1 -1
  30. package/dist/enums/raw/Analytics.d.ts +28 -0
  31. package/dist/enums/raw/Analytics.js +34 -0
  32. package/dist/enums/raw/Analytics.js.map +1 -0
  33. package/dist/enums/raw/Media.d.ts +10 -0
  34. package/dist/enums/raw/Media.js +15 -0
  35. package/dist/enums/raw/Media.js.map +1 -0
  36. package/dist/enums/raw/Notification.d.ts +11 -0
  37. package/dist/enums/raw/Notification.js +16 -0
  38. package/dist/enums/raw/Notification.js.map +1 -0
  39. package/dist/enums/raw/Tweet.d.ts +9 -0
  40. package/dist/enums/raw/Tweet.js +14 -0
  41. package/dist/enums/raw/Tweet.js.map +1 -0
  42. package/dist/helper/TidUtils.d.ts +2 -0
  43. package/dist/helper/TidUtils.js +162 -0
  44. package/dist/helper/TidUtils.js.map +1 -0
  45. package/dist/index.d.ts +75 -4
  46. package/dist/index.js +26 -5
  47. package/dist/index.js.map +1 -1
  48. package/dist/models/RettiwtConfig.d.ts +28 -0
  49. package/dist/models/RettiwtConfig.js +55 -0
  50. package/dist/models/RettiwtConfig.js.map +1 -0
  51. package/dist/models/args/FetchArgs.d.ts +46 -3
  52. package/dist/models/args/FetchArgs.js +107 -5
  53. package/dist/models/args/FetchArgs.js.map +1 -1
  54. package/dist/models/args/PostArgs.d.ts +44 -16
  55. package/dist/models/args/PostArgs.js +61 -22
  56. package/dist/models/args/PostArgs.js.map +1 -1
  57. package/dist/models/auth/AuthCookie.d.ts +2 -0
  58. package/dist/models/auth/AuthCookie.js +2 -0
  59. package/dist/models/auth/AuthCookie.js.map +1 -1
  60. package/dist/models/auth/AuthCredential.d.ts +2 -0
  61. package/dist/models/auth/AuthCredential.js +2 -0
  62. package/dist/models/auth/AuthCredential.js.map +1 -1
  63. package/dist/models/data/CursoredData.d.ts +4 -13
  64. package/dist/models/data/CursoredData.js +16 -23
  65. package/dist/models/data/CursoredData.js.map +1 -1
  66. package/dist/models/data/List.d.ts +5 -1
  67. package/dist/models/data/List.js +14 -0
  68. package/dist/models/data/List.js.map +1 -1
  69. package/dist/models/data/Notification.d.ts +7 -5
  70. package/dist/models/data/Notification.js +19 -8
  71. package/dist/models/data/Notification.js.map +1 -1
  72. package/dist/models/data/Tweet.d.ts +29 -9
  73. package/dist/models/data/Tweet.js +103 -25
  74. package/dist/models/data/Tweet.js.map +1 -1
  75. package/dist/models/data/User.d.ts +17 -8
  76. package/dist/models/data/User.js +63 -13
  77. package/dist/models/data/User.js.map +1 -1
  78. package/dist/models/errors/RettiwtError.d.ts +3 -2
  79. package/dist/models/errors/RettiwtError.js +3 -2
  80. package/dist/models/errors/RettiwtError.js.map +1 -1
  81. package/dist/models/params/Variables.d.ts +41 -0
  82. package/dist/models/params/Variables.js +61 -0
  83. package/dist/models/params/Variables.js.map +1 -0
  84. package/dist/requests/List.d.ts +24 -0
  85. package/dist/requests/List.js +122 -0
  86. package/dist/requests/List.js.map +1 -0
  87. package/dist/requests/Media.d.ts +21 -0
  88. package/dist/requests/Media.js +70 -0
  89. package/dist/requests/Media.js.map +1 -0
  90. package/dist/requests/Tweet.d.ts +75 -0
  91. package/dist/requests/Tweet.js +500 -0
  92. package/dist/requests/Tweet.js.map +1 -0
  93. package/dist/requests/User.d.ts +111 -0
  94. package/dist/requests/User.js +762 -0
  95. package/dist/requests/User.js.map +1 -0
  96. package/dist/services/internal/AuthService.d.ts +3 -5
  97. package/dist/services/internal/AuthService.js +5 -8
  98. package/dist/services/internal/AuthService.js.map +1 -1
  99. package/dist/services/internal/TidService.d.ts +44 -0
  100. package/dist/services/internal/TidService.js +162 -0
  101. package/dist/services/internal/TidService.js.map +1 -0
  102. package/dist/services/public/FetcherService.d.ts +20 -19
  103. package/dist/services/public/FetcherService.js +67 -49
  104. package/dist/services/public/FetcherService.js.map +1 -1
  105. package/dist/services/public/ListService.d.ts +2 -2
  106. package/dist/services/public/ListService.js.map +1 -1
  107. package/dist/services/public/TweetService.d.ts +35 -7
  108. package/dist/services/public/TweetService.js +54 -8
  109. package/dist/services/public/TweetService.js.map +1 -1
  110. package/dist/services/public/UserService.d.ts +4 -4
  111. package/dist/services/public/UserService.js +25 -13
  112. package/dist/services/public/UserService.js.map +1 -1
  113. package/dist/types/RettiwtConfig.d.ts +9 -10
  114. package/dist/types/args/FetchArgs.d.ts +71 -7
  115. package/dist/types/args/PostArgs.d.ts +62 -18
  116. package/dist/types/auth/AuthCookie.d.ts +2 -0
  117. package/dist/types/auth/AuthCredential.d.ts +2 -0
  118. package/dist/types/auth/TidDynamicArgs.d.ts +10 -0
  119. package/dist/types/auth/{AccountCredential.js → TidDynamicArgs.js} +1 -1
  120. package/dist/types/auth/TidDynamicArgs.js.map +1 -0
  121. package/dist/types/auth/TidHeader.d.ts +8 -0
  122. package/dist/types/{ReturnTypes.js → auth/TidHeader.js} +1 -1
  123. package/dist/types/auth/TidHeader.js.map +1 -0
  124. package/dist/types/auth/TidParams.d.ts +27 -0
  125. package/dist/types/auth/TidParams.js +3 -0
  126. package/dist/types/auth/TidParams.js.map +1 -0
  127. package/dist/types/auth/TidProvider.d.ts +18 -0
  128. package/dist/types/auth/TidProvider.js +3 -0
  129. package/dist/types/auth/TidProvider.js.map +1 -0
  130. package/dist/types/data/CursoredData.d.ts +1 -10
  131. package/dist/types/data/Notification.d.ts +2 -2
  132. package/dist/types/data/Tweet.d.ts +2 -2
  133. package/dist/types/params/Variables.d.ts +27 -0
  134. package/dist/types/params/Variables.js +3 -0
  135. package/dist/types/params/Variables.js.map +1 -0
  136. package/dist/types/raw/base/Analytic.d.ts +21 -0
  137. package/dist/types/raw/base/Analytic.js +4 -0
  138. package/dist/types/raw/base/Analytic.js.map +1 -0
  139. package/dist/types/raw/base/Cursor.d.ts +11 -0
  140. package/dist/types/raw/base/Cursor.js +4 -0
  141. package/dist/types/raw/base/Cursor.js.map +1 -0
  142. package/dist/types/raw/base/LimitedVisibilityTweet.d.ts +32 -0
  143. package/dist/types/raw/base/LimitedVisibilityTweet.js +4 -0
  144. package/dist/types/raw/base/LimitedVisibilityTweet.js.map +1 -0
  145. package/dist/types/raw/base/List.d.ts +43 -0
  146. package/dist/types/raw/base/List.js +4 -0
  147. package/dist/types/raw/base/List.js.map +1 -0
  148. package/dist/types/raw/base/Media.d.ts +43 -0
  149. package/dist/types/raw/base/Media.js +4 -0
  150. package/dist/types/raw/base/Media.js.map +1 -0
  151. package/dist/types/raw/base/Notification.d.ts +53 -0
  152. package/dist/types/raw/base/Notification.js +4 -0
  153. package/dist/types/raw/base/Notification.js.map +1 -0
  154. package/dist/types/raw/base/Space.d.ts +32 -0
  155. package/dist/types/raw/base/Space.js +4 -0
  156. package/dist/types/raw/base/Space.js.map +1 -0
  157. package/dist/types/raw/base/Tweet.d.ts +119 -0
  158. package/dist/types/raw/base/Tweet.js +4 -0
  159. package/dist/types/raw/base/Tweet.js.map +1 -0
  160. package/dist/types/raw/base/User.d.ts +140 -0
  161. package/dist/types/raw/base/User.js +4 -0
  162. package/dist/types/raw/base/User.js.map +1 -0
  163. package/dist/types/raw/composite/DataResult.d.ts +8 -0
  164. package/dist/types/raw/composite/DataResult.js +3 -0
  165. package/dist/types/raw/composite/DataResult.js.map +1 -0
  166. package/dist/types/raw/composite/TimelineTweet.d.ts +11 -0
  167. package/dist/types/raw/composite/TimelineTweet.js +4 -0
  168. package/dist/types/raw/composite/TimelineTweet.js.map +1 -0
  169. package/dist/types/raw/composite/TimelineUser.d.ts +10 -0
  170. package/dist/types/raw/composite/TimelineUser.js +4 -0
  171. package/dist/types/raw/composite/TimelineUser.js.map +1 -0
  172. package/dist/types/raw/generic/Error.d.ts +30 -0
  173. package/dist/types/raw/generic/Error.js +3 -0
  174. package/dist/types/raw/generic/Error.js.map +1 -0
  175. package/dist/types/raw/generic/Response.d.ts +12 -0
  176. package/dist/types/raw/generic/Response.js +3 -0
  177. package/dist/types/raw/generic/Response.js.map +1 -0
  178. package/dist/types/raw/list/Details.d.ts +122 -0
  179. package/dist/types/raw/list/Details.js +4 -0
  180. package/dist/types/raw/list/Details.js.map +1 -0
  181. package/dist/types/raw/list/Members.d.ts +134 -0
  182. package/dist/types/raw/list/Members.js +4 -0
  183. package/dist/types/raw/list/Members.js.map +1 -0
  184. package/dist/types/raw/list/Tweets.d.ts +1968 -0
  185. package/dist/types/raw/list/Tweets.js +4 -0
  186. package/dist/types/raw/list/Tweets.js.map +1 -0
  187. package/dist/types/raw/media/FinalizeUpload.d.ts +18 -0
  188. package/dist/types/raw/media/FinalizeUpload.js +4 -0
  189. package/dist/types/raw/media/FinalizeUpload.js.map +1 -0
  190. package/dist/types/raw/media/InitalizeUpload.d.ts +10 -0
  191. package/dist/types/raw/media/InitalizeUpload.js +4 -0
  192. package/dist/types/raw/media/InitalizeUpload.js.map +1 -0
  193. package/dist/types/raw/media/LiveVideoStream.d.ts +19 -0
  194. package/dist/types/raw/media/LiveVideoStream.js +4 -0
  195. package/dist/types/raw/media/LiveVideoStream.js.map +1 -0
  196. package/dist/types/raw/space/Details.d.ts +315 -0
  197. package/dist/types/raw/space/Details.js +4 -0
  198. package/dist/types/raw/space/Details.js.map +1 -0
  199. package/dist/types/raw/tweet/Details.d.ts +183 -0
  200. package/dist/types/raw/tweet/Details.js +4 -0
  201. package/dist/types/raw/tweet/Details.js.map +1 -0
  202. package/dist/types/raw/tweet/Like.d.ts +12 -0
  203. package/dist/types/raw/tweet/Like.js +4 -0
  204. package/dist/types/raw/tweet/Like.js.map +1 -0
  205. package/dist/types/raw/tweet/Likers.d.ts +170 -0
  206. package/dist/types/raw/tweet/Likers.js +4 -0
  207. package/dist/types/raw/tweet/Likers.js.map +1 -0
  208. package/dist/types/raw/tweet/Post.d.ts +133 -0
  209. package/dist/types/raw/tweet/Post.js +4 -0
  210. package/dist/types/raw/tweet/Post.js.map +1 -0
  211. package/dist/types/raw/tweet/Replies.d.ts +465 -0
  212. package/dist/types/raw/tweet/Replies.js +4 -0
  213. package/dist/types/raw/tweet/Replies.js.map +1 -0
  214. package/dist/types/raw/tweet/Retweet.d.ts +25 -0
  215. package/dist/types/raw/tweet/Retweet.js +4 -0
  216. package/dist/types/raw/tweet/Retweet.js.map +1 -0
  217. package/dist/types/raw/tweet/Retweeters.d.ts +177 -0
  218. package/dist/types/raw/tweet/Retweeters.js +4 -0
  219. package/dist/types/raw/tweet/Retweeters.js.map +1 -0
  220. package/dist/types/raw/tweet/Schedule.d.ts +15 -0
  221. package/dist/types/raw/tweet/Schedule.js +4 -0
  222. package/dist/types/raw/tweet/Schedule.js.map +1 -0
  223. package/dist/types/raw/tweet/Search.d.ts +518 -0
  224. package/dist/types/raw/tweet/Search.js +4 -0
  225. package/dist/types/raw/tweet/Search.js.map +1 -0
  226. package/dist/types/raw/tweet/Unlike.d.ts +12 -0
  227. package/dist/types/raw/tweet/Unlike.js +4 -0
  228. package/dist/types/raw/tweet/Unlike.js.map +1 -0
  229. package/dist/types/raw/tweet/Unpost.d.ts +17 -0
  230. package/dist/types/raw/tweet/Unpost.js +4 -0
  231. package/dist/types/raw/tweet/Unpost.js.map +1 -0
  232. package/dist/types/raw/tweet/Unretweet.d.ts +25 -0
  233. package/dist/types/raw/tweet/Unretweet.js +4 -0
  234. package/dist/types/raw/tweet/Unretweet.js.map +1 -0
  235. package/dist/types/raw/tweet/Unschedule.d.ts +12 -0
  236. package/dist/types/raw/tweet/Unschedule.js +4 -0
  237. package/dist/types/raw/tweet/Unschedule.js.map +1 -0
  238. package/dist/types/raw/user/Affiliates.d.ts +154 -0
  239. package/dist/types/raw/user/Affiliates.js +4 -0
  240. package/dist/types/raw/user/Affiliates.js.map +1 -0
  241. package/dist/types/raw/user/Analytics.d.ts +32 -0
  242. package/dist/types/raw/user/Analytics.js +4 -0
  243. package/dist/types/raw/user/Analytics.js.map +1 -0
  244. package/dist/types/raw/user/Bookmarks.d.ts +550 -0
  245. package/dist/types/raw/user/Bookmarks.js +4 -0
  246. package/dist/types/raw/user/Bookmarks.js.map +1 -0
  247. package/dist/types/raw/user/Details.d.ts +157 -0
  248. package/dist/types/raw/user/Details.js +4 -0
  249. package/dist/types/raw/user/Details.js.map +1 -0
  250. package/dist/types/raw/user/Follow.d.ts +248 -0
  251. package/dist/types/raw/user/Follow.js +4 -0
  252. package/dist/types/raw/user/Follow.js.map +1 -0
  253. package/dist/types/raw/user/Followed.d.ts +1666 -0
  254. package/dist/types/raw/user/Followed.js +4 -0
  255. package/dist/types/raw/user/Followed.js.map +1 -0
  256. package/dist/types/raw/user/Followers.d.ts +182 -0
  257. package/dist/types/raw/user/Followers.js +4 -0
  258. package/dist/types/raw/user/Followers.js.map +1 -0
  259. package/dist/types/raw/user/Following.d.ts +182 -0
  260. package/dist/types/raw/user/Following.js +4 -0
  261. package/dist/types/raw/user/Following.js.map +1 -0
  262. package/dist/types/raw/user/Highlights.d.ts +1106 -0
  263. package/dist/types/raw/user/Highlights.js +4 -0
  264. package/dist/types/raw/user/Highlights.js.map +1 -0
  265. package/dist/types/raw/user/Likes.d.ts +1065 -0
  266. package/dist/types/raw/user/Likes.js +4 -0
  267. package/dist/types/raw/user/Likes.js.map +1 -0
  268. package/dist/types/raw/user/Media.d.ts +1492 -0
  269. package/dist/types/raw/user/Media.js +4 -0
  270. package/dist/types/raw/user/Media.js.map +1 -0
  271. package/dist/types/raw/user/Notifications.d.ts +142 -0
  272. package/dist/types/raw/user/Notifications.js +4 -0
  273. package/dist/types/raw/user/Notifications.js.map +1 -0
  274. package/dist/types/raw/user/Recommended.d.ts +1991 -0
  275. package/dist/types/raw/user/Recommended.js +4 -0
  276. package/dist/types/raw/user/Recommended.js.map +1 -0
  277. package/dist/types/raw/user/Scheduled.d.ts +31 -0
  278. package/dist/types/raw/user/Scheduled.js +4 -0
  279. package/dist/types/raw/user/Scheduled.js.map +1 -0
  280. package/dist/types/raw/user/Subscriptions.d.ts +151 -0
  281. package/dist/types/raw/user/Subscriptions.js +4 -0
  282. package/dist/types/raw/user/Subscriptions.js.map +1 -0
  283. package/dist/types/raw/user/Tweets.d.ts +1065 -0
  284. package/dist/types/raw/user/Tweets.js +4 -0
  285. package/dist/types/raw/user/Tweets.js.map +1 -0
  286. package/dist/types/raw/user/TweetsAndReplies.d.ts +1065 -0
  287. package/dist/types/raw/user/TweetsAndReplies.js +4 -0
  288. package/dist/types/raw/user/TweetsAndReplies.js.map +1 -0
  289. package/dist/types/raw/user/Unfollow.d.ts +248 -0
  290. package/dist/types/raw/user/Unfollow.js +4 -0
  291. package/dist/types/raw/user/Unfollow.js.map +1 -0
  292. package/package.json +3 -3
  293. package/src/Rettiwt.ts +22 -7
  294. package/src/collections/Extractors.ts +38 -34
  295. package/src/collections/Groups.ts +3 -0
  296. package/src/collections/Requests.ts +43 -42
  297. package/src/commands/Tweet.ts +35 -7
  298. package/src/commands/User.ts +13 -2
  299. package/src/enums/Authentication.ts +2 -11
  300. package/src/enums/Data.ts +3 -16
  301. package/src/enums/Media.ts +10 -0
  302. package/src/enums/Notification.ts +12 -0
  303. package/src/enums/Resource.ts +3 -0
  304. package/src/enums/raw/Analytics.ts +29 -0
  305. package/src/enums/raw/Media.ts +10 -0
  306. package/src/enums/raw/Notification.ts +11 -0
  307. package/src/enums/raw/Tweet.ts +9 -0
  308. package/src/helper/TidUtils.ts +189 -0
  309. package/src/index.ts +78 -43
  310. package/src/models/RettiwtConfig.ts +64 -0
  311. package/src/models/args/FetchArgs.ts +121 -5
  312. package/src/models/args/PostArgs.ts +61 -21
  313. package/src/models/auth/AuthCookie.ts +2 -0
  314. package/src/models/auth/AuthCredential.ts +2 -0
  315. package/src/models/data/CursoredData.ts +16 -24
  316. package/src/models/data/List.ts +16 -2
  317. package/src/models/data/Notification.ts +21 -12
  318. package/src/models/data/Tweet.ts +120 -39
  319. package/src/models/data/User.ts +71 -15
  320. package/src/models/errors/RettiwtError.ts +3 -2
  321. package/src/models/params/Variables.ts +62 -0
  322. package/src/requests/List.ts +121 -0
  323. package/src/requests/Media.ts +67 -0
  324. package/src/requests/Tweet.ts +516 -0
  325. package/src/requests/User.ts +783 -0
  326. package/src/services/internal/AuthService.ts +6 -11
  327. package/src/services/internal/TidService.ts +147 -0
  328. package/src/services/public/FetcherService.ts +78 -58
  329. package/src/services/public/ListService.ts +4 -4
  330. package/src/services/public/TweetService.ts +87 -40
  331. package/src/services/public/UserService.ts +47 -35
  332. package/src/types/RettiwtConfig.ts +11 -12
  333. package/src/types/args/FetchArgs.ts +92 -8
  334. package/src/types/args/PostArgs.ts +72 -22
  335. package/src/types/auth/AuthCookie.ts +2 -0
  336. package/src/types/auth/AuthCredential.ts +2 -0
  337. package/src/types/auth/TidDynamicArgs.ts +10 -0
  338. package/src/types/auth/TidHeader.ts +12 -0
  339. package/src/types/auth/TidParams.ts +36 -0
  340. package/src/types/auth/TidProvider.ts +19 -0
  341. package/src/types/data/CursoredData.ts +1 -11
  342. package/src/types/data/Notification.ts +2 -2
  343. package/src/types/data/Tweet.ts +2 -2
  344. package/src/types/params/Variables.ts +41 -0
  345. package/src/types/raw/base/Analytic.ts +26 -0
  346. package/src/types/raw/base/Cursor.ts +13 -0
  347. package/src/types/raw/base/LimitedVisibilityTweet.ts +40 -0
  348. package/src/types/raw/base/List.ts +50 -0
  349. package/src/types/raw/base/Media.ts +53 -0
  350. package/src/types/raw/base/Notification.ts +67 -0
  351. package/src/types/raw/base/Space.ts +35 -0
  352. package/src/types/raw/base/Tweet.ts +139 -0
  353. package/src/types/raw/base/User.ts +164 -0
  354. package/src/types/raw/composite/DataResult.ts +8 -0
  355. package/src/types/raw/composite/TimelineTweet.ts +14 -0
  356. package/src/types/raw/composite/TimelineUser.ts +13 -0
  357. package/src/types/raw/generic/Error.ts +35 -0
  358. package/src/types/raw/generic/Response.ts +13 -0
  359. package/src/types/raw/list/Details.ts +137 -0
  360. package/src/types/raw/list/Members.ts +154 -0
  361. package/src/types/raw/list/Tweets.ts +2296 -0
  362. package/src/types/raw/media/FinalizeUpload.ts +20 -0
  363. package/src/types/raw/media/InitalizeUpload.ts +12 -0
  364. package/src/types/raw/media/LiveVideoStream.ts +21 -0
  365. package/src/types/raw/space/Details.ts +359 -0
  366. package/src/types/raw/tweet/Details.ts +210 -0
  367. package/src/types/raw/tweet/Like.ts +14 -0
  368. package/src/types/raw/tweet/Likers.ts +200 -0
  369. package/src/types/raw/tweet/Post.ts +150 -0
  370. package/src/types/raw/tweet/Replies.ts +539 -0
  371. package/src/types/raw/tweet/Retweet.ts +31 -0
  372. package/src/types/raw/tweet/Retweeters.ts +208 -0
  373. package/src/types/raw/tweet/Schedule.ts +18 -0
  374. package/src/types/raw/tweet/Search.ts +597 -0
  375. package/src/types/raw/tweet/Unlike.ts +14 -0
  376. package/src/types/raw/tweet/Unpost.ts +20 -0
  377. package/src/types/raw/tweet/Unretweet.ts +31 -0
  378. package/src/types/raw/tweet/Unschedule.ts +14 -0
  379. package/src/types/raw/user/Affiliates.ts +179 -0
  380. package/src/types/raw/user/Analytics.ts +39 -0
  381. package/src/types/raw/user/Bookmarks.ts +637 -0
  382. package/src/types/raw/user/Details.ts +185 -0
  383. package/src/types/raw/user/Follow.ts +280 -0
  384. package/src/types/raw/user/Followed.ts +1942 -0
  385. package/src/types/raw/user/Followers.ts +215 -0
  386. package/src/types/raw/user/Following.ts +215 -0
  387. package/src/types/raw/user/Highlights.ts +1287 -0
  388. package/src/types/raw/user/Likes.ts +1254 -0
  389. package/src/types/raw/user/Media.ts +1738 -0
  390. package/src/types/raw/user/Notifications.ts +175 -0
  391. package/src/types/raw/user/Recommended.ts +2319 -0
  392. package/src/types/raw/user/Scheduled.ts +37 -0
  393. package/src/types/raw/user/Subscriptions.ts +176 -0
  394. package/src/types/raw/user/Tweets.ts +1254 -0
  395. package/src/types/raw/user/TweetsAndReplies.ts +1254 -0
  396. package/src/types/raw/user/Unfollow.ts +280 -0
  397. package/dist/models/auth/AccountCredential.d.ts +0 -13
  398. package/dist/models/auth/AccountCredential.js +0 -21
  399. package/dist/models/auth/AccountCredential.js.map +0 -1
  400. package/dist/types/ReturnTypes.d.ts +0 -21
  401. package/dist/types/ReturnTypes.js.map +0 -1
  402. package/dist/types/auth/AccountCredential.d.ts +0 -11
  403. package/dist/types/auth/AccountCredential.js.map +0 -1
  404. package/src/models/auth/AccountCredential.ts +0 -19
  405. package/src/types/ReturnTypes.ts +0 -24
  406. package/src/types/auth/AccountCredential.ts +0 -13
@@ -0,0 +1,1106 @@
1
+ /**
2
+ * The raw data received when fetching the highlights of the given user.
3
+ *
4
+ * @public
5
+ */
6
+ export interface IUserHighlightsResponse {
7
+ data: Data;
8
+ }
9
+ interface Data {
10
+ user: User;
11
+ }
12
+ interface User {
13
+ result: Result;
14
+ }
15
+ interface Result {
16
+ __typename: string;
17
+ timeline: Timeline;
18
+ }
19
+ interface Timeline {
20
+ timeline: Timeline2;
21
+ }
22
+ interface Timeline2 {
23
+ instructions: Instruction[];
24
+ metadata: Metadata;
25
+ }
26
+ interface Instruction {
27
+ type: string;
28
+ entries?: Entry[];
29
+ }
30
+ interface Entry {
31
+ entryId: string;
32
+ sortIndex: string;
33
+ content: Content;
34
+ }
35
+ interface Content {
36
+ entryType: string;
37
+ __typename: string;
38
+ itemContent?: ItemContent;
39
+ clientEventInfo?: ClientEventInfo;
40
+ value?: string;
41
+ cursorType?: string;
42
+ }
43
+ interface ItemContent {
44
+ itemType: string;
45
+ __typename: string;
46
+ tweet_results: TweetResults;
47
+ tweetDisplayType: string;
48
+ }
49
+ interface TweetResults {
50
+ result: Result2;
51
+ }
52
+ interface Result2 {
53
+ __typename: string;
54
+ rest_id: string;
55
+ core: Core;
56
+ unmention_data: UnmentionData;
57
+ edit_control: EditControl;
58
+ is_translatable: boolean;
59
+ views: Views;
60
+ source: string;
61
+ legacy: Legacy2;
62
+ superFollowsReplyUserResult?: SuperFollowsReplyUserResult;
63
+ quoted_status_result?: QuotedStatusResult;
64
+ }
65
+ interface Core {
66
+ user_results: UserResults;
67
+ }
68
+ interface UserResults {
69
+ result: Result3;
70
+ }
71
+ interface Result3 {
72
+ __typename: string;
73
+ id: string;
74
+ rest_id: string;
75
+ affiliates_highlighted_label: AffiliatesHighlightedLabel;
76
+ has_graduated_access: boolean;
77
+ is_blue_verified: boolean;
78
+ profile_image_shape: string;
79
+ legacy: Legacy;
80
+ professional: Professional;
81
+ super_follow_eligible: boolean;
82
+ verified_phone_status: boolean;
83
+ }
84
+ interface AffiliatesHighlightedLabel {
85
+ label: Label;
86
+ }
87
+ interface Label {
88
+ url: Url;
89
+ badge: Badge;
90
+ description: string;
91
+ userLabelType: string;
92
+ userLabelDisplayType: string;
93
+ }
94
+ interface Url {
95
+ url: string;
96
+ urlType: string;
97
+ }
98
+ interface Badge {
99
+ url: string;
100
+ }
101
+ interface Legacy {
102
+ following: boolean;
103
+ can_dm: boolean;
104
+ can_media_tag: boolean;
105
+ created_at: string;
106
+ default_profile: boolean;
107
+ default_profile_image: boolean;
108
+ description: string;
109
+ entities: Entities;
110
+ fast_followers_count: number;
111
+ favourites_count: number;
112
+ followers_count: number;
113
+ friends_count: number;
114
+ has_custom_timelines: boolean;
115
+ is_translator: boolean;
116
+ listed_count: number;
117
+ location: string;
118
+ media_count: number;
119
+ name: string;
120
+ normal_followers_count: number;
121
+ pinned_tweet_ids_str: string[];
122
+ possibly_sensitive: boolean;
123
+ profile_banner_url: string;
124
+ profile_image_url_https: string;
125
+ profile_interstitial_type: string;
126
+ screen_name: string;
127
+ statuses_count: number;
128
+ translator_type: string;
129
+ verified: boolean;
130
+ want_retweets: boolean;
131
+ withheld_in_countries: any[];
132
+ }
133
+ interface Entities {
134
+ description: Description;
135
+ }
136
+ interface Description {
137
+ urls: any[];
138
+ }
139
+ interface Professional {
140
+ rest_id: string;
141
+ professional_type: string;
142
+ category: any[];
143
+ }
144
+ interface UnmentionData {
145
+ }
146
+ interface EditControl {
147
+ edit_tweet_ids: string[];
148
+ editable_until_msecs: string;
149
+ is_edit_eligible: boolean;
150
+ edits_remaining: string;
151
+ }
152
+ interface Views {
153
+ count: string;
154
+ state: string;
155
+ }
156
+ interface Legacy2 {
157
+ bookmark_count: number;
158
+ bookmarked: boolean;
159
+ created_at: string;
160
+ conversation_id_str: string;
161
+ display_text_range: number[];
162
+ entities: Entities2;
163
+ favorite_count: number;
164
+ favorited: boolean;
165
+ full_text: string;
166
+ in_reply_to_screen_name?: string;
167
+ in_reply_to_status_id_str?: string;
168
+ in_reply_to_user_id_str?: string;
169
+ is_quote_status: boolean;
170
+ lang: string;
171
+ quote_count: number;
172
+ reply_count: number;
173
+ retweet_count: number;
174
+ retweeted: boolean;
175
+ user_id_str: string;
176
+ id_str: string;
177
+ quoted_status_id_str?: string;
178
+ quoted_status_permalink?: QuotedStatusPermalink;
179
+ extended_entities?: ExtendedEntities;
180
+ possibly_sensitive?: boolean;
181
+ possibly_sensitive_editable?: boolean;
182
+ }
183
+ interface Entities2 {
184
+ hashtags: any[];
185
+ symbols: any[];
186
+ timestamps: any[];
187
+ urls: any[];
188
+ user_mentions: UserMention[];
189
+ media?: Medum[];
190
+ }
191
+ interface UserMention {
192
+ id_str: string;
193
+ name: string;
194
+ screen_name: string;
195
+ indices: number[];
196
+ }
197
+ interface Medum {
198
+ display_url: string;
199
+ expanded_url: string;
200
+ id_str: string;
201
+ indices: number[];
202
+ media_key: string;
203
+ media_url_https: string;
204
+ source_status_id_str: string;
205
+ source_user_id_str: string;
206
+ type: string;
207
+ url: string;
208
+ additional_media_info: AdditionalMediaInfo;
209
+ ext_media_availability: ExtMediaAvailability;
210
+ sizes: Sizes;
211
+ original_info: OriginalInfo;
212
+ allow_download_status: AllowDownloadStatus;
213
+ video_info: VideoInfo;
214
+ media_results: MediaResults;
215
+ }
216
+ interface AdditionalMediaInfo {
217
+ monetizable: boolean;
218
+ source_user: SourceUser;
219
+ }
220
+ interface SourceUser {
221
+ user_results: UserResults2;
222
+ }
223
+ interface UserResults2 {
224
+ result: Result4;
225
+ }
226
+ interface Result4 {
227
+ __typename: string;
228
+ id: string;
229
+ rest_id: string;
230
+ affiliates_highlighted_label: AffiliatesHighlightedLabel2;
231
+ has_graduated_access: boolean;
232
+ is_blue_verified: boolean;
233
+ profile_image_shape: string;
234
+ legacy: Legacy3;
235
+ professional: Professional2;
236
+ super_follow_eligible: boolean;
237
+ verified_phone_status: boolean;
238
+ }
239
+ interface AffiliatesHighlightedLabel2 {
240
+ }
241
+ interface Legacy3 {
242
+ can_dm: boolean;
243
+ can_media_tag: boolean;
244
+ created_at: string;
245
+ default_profile: boolean;
246
+ default_profile_image: boolean;
247
+ description: string;
248
+ entities: Entities3;
249
+ fast_followers_count: number;
250
+ favourites_count: number;
251
+ followers_count: number;
252
+ friends_count: number;
253
+ has_custom_timelines: boolean;
254
+ is_translator: boolean;
255
+ listed_count: number;
256
+ location: string;
257
+ media_count: number;
258
+ name: string;
259
+ normal_followers_count: number;
260
+ pinned_tweet_ids_str: string[];
261
+ possibly_sensitive: boolean;
262
+ profile_banner_url: string;
263
+ profile_image_url_https: string;
264
+ profile_interstitial_type: string;
265
+ screen_name: string;
266
+ statuses_count: number;
267
+ translator_type: string;
268
+ url: string;
269
+ verified: boolean;
270
+ want_retweets: boolean;
271
+ withheld_in_countries: any[];
272
+ }
273
+ interface Entities3 {
274
+ description: Description2;
275
+ url: Url3;
276
+ }
277
+ interface Description2 {
278
+ urls: Url2[];
279
+ }
280
+ interface Url2 {
281
+ display_url: string;
282
+ expanded_url: string;
283
+ url: string;
284
+ indices: number[];
285
+ }
286
+ interface Url3 {
287
+ urls: Url4[];
288
+ }
289
+ interface Url4 {
290
+ display_url: string;
291
+ expanded_url: string;
292
+ url: string;
293
+ indices: number[];
294
+ }
295
+ interface Professional2 {
296
+ rest_id: string;
297
+ professional_type: string;
298
+ category: any[];
299
+ }
300
+ interface ExtMediaAvailability {
301
+ status: string;
302
+ }
303
+ interface Sizes {
304
+ large: Large;
305
+ medium: Medium;
306
+ small: Small;
307
+ thumb: Thumb;
308
+ }
309
+ interface Large {
310
+ h: number;
311
+ w: number;
312
+ resize: string;
313
+ }
314
+ interface Medium {
315
+ h: number;
316
+ w: number;
317
+ resize: string;
318
+ }
319
+ interface Small {
320
+ h: number;
321
+ w: number;
322
+ resize: string;
323
+ }
324
+ interface Thumb {
325
+ h: number;
326
+ w: number;
327
+ resize: string;
328
+ }
329
+ interface OriginalInfo {
330
+ height: number;
331
+ width: number;
332
+ focus_rects: any[];
333
+ }
334
+ interface AllowDownloadStatus {
335
+ allow_download: boolean;
336
+ }
337
+ interface VideoInfo {
338
+ aspect_ratio: number[];
339
+ duration_millis: number;
340
+ variants: Variant[];
341
+ }
342
+ interface Variant {
343
+ bitrate?: number;
344
+ content_type: string;
345
+ url: string;
346
+ }
347
+ interface MediaResults {
348
+ result: Result5;
349
+ }
350
+ interface Result5 {
351
+ media_key: string;
352
+ }
353
+ interface QuotedStatusPermalink {
354
+ url: string;
355
+ expanded: string;
356
+ display: string;
357
+ }
358
+ interface ExtendedEntities {
359
+ media: Medum2[];
360
+ }
361
+ interface Medum2 {
362
+ display_url: string;
363
+ expanded_url: string;
364
+ id_str: string;
365
+ indices: number[];
366
+ media_key: string;
367
+ media_url_https: string;
368
+ source_status_id_str: string;
369
+ source_user_id_str: string;
370
+ type: string;
371
+ url: string;
372
+ additional_media_info: AdditionalMediaInfo2;
373
+ ext_media_availability: ExtMediaAvailability2;
374
+ sizes: Sizes2;
375
+ original_info: OriginalInfo2;
376
+ allow_download_status: AllowDownloadStatus2;
377
+ video_info: VideoInfo2;
378
+ media_results: MediaResults2;
379
+ }
380
+ interface AdditionalMediaInfo2 {
381
+ monetizable: boolean;
382
+ source_user: SourceUser2;
383
+ }
384
+ interface SourceUser2 {
385
+ user_results: UserResults3;
386
+ }
387
+ interface UserResults3 {
388
+ result: Result6;
389
+ }
390
+ interface Result6 {
391
+ __typename: string;
392
+ id: string;
393
+ rest_id: string;
394
+ affiliates_highlighted_label: AffiliatesHighlightedLabel3;
395
+ has_graduated_access: boolean;
396
+ is_blue_verified: boolean;
397
+ profile_image_shape: string;
398
+ legacy: Legacy4;
399
+ professional: Professional3;
400
+ super_follow_eligible: boolean;
401
+ verified_phone_status: boolean;
402
+ }
403
+ interface AffiliatesHighlightedLabel3 {
404
+ }
405
+ interface Legacy4 {
406
+ can_dm: boolean;
407
+ can_media_tag: boolean;
408
+ created_at: string;
409
+ default_profile: boolean;
410
+ default_profile_image: boolean;
411
+ description: string;
412
+ entities: Entities4;
413
+ fast_followers_count: number;
414
+ favourites_count: number;
415
+ followers_count: number;
416
+ friends_count: number;
417
+ has_custom_timelines: boolean;
418
+ is_translator: boolean;
419
+ listed_count: number;
420
+ location: string;
421
+ media_count: number;
422
+ name: string;
423
+ normal_followers_count: number;
424
+ pinned_tweet_ids_str: string[];
425
+ possibly_sensitive: boolean;
426
+ profile_banner_url: string;
427
+ profile_image_url_https: string;
428
+ profile_interstitial_type: string;
429
+ screen_name: string;
430
+ statuses_count: number;
431
+ translator_type: string;
432
+ url: string;
433
+ verified: boolean;
434
+ want_retweets: boolean;
435
+ withheld_in_countries: any[];
436
+ }
437
+ interface Entities4 {
438
+ description: Description3;
439
+ url: Url6;
440
+ }
441
+ interface Description3 {
442
+ urls: Url5[];
443
+ }
444
+ interface Url5 {
445
+ display_url: string;
446
+ expanded_url: string;
447
+ url: string;
448
+ indices: number[];
449
+ }
450
+ interface Url6 {
451
+ urls: Url7[];
452
+ }
453
+ interface Url7 {
454
+ display_url: string;
455
+ expanded_url: string;
456
+ url: string;
457
+ indices: number[];
458
+ }
459
+ interface Professional3 {
460
+ rest_id: string;
461
+ professional_type: string;
462
+ category: any[];
463
+ }
464
+ interface ExtMediaAvailability2 {
465
+ status: string;
466
+ }
467
+ interface Sizes2 {
468
+ large: Large2;
469
+ medium: Medium2;
470
+ small: Small2;
471
+ thumb: Thumb2;
472
+ }
473
+ interface Large2 {
474
+ h: number;
475
+ w: number;
476
+ resize: string;
477
+ }
478
+ interface Medium2 {
479
+ h: number;
480
+ w: number;
481
+ resize: string;
482
+ }
483
+ interface Small2 {
484
+ h: number;
485
+ w: number;
486
+ resize: string;
487
+ }
488
+ interface Thumb2 {
489
+ h: number;
490
+ w: number;
491
+ resize: string;
492
+ }
493
+ interface OriginalInfo2 {
494
+ height: number;
495
+ width: number;
496
+ focus_rects: any[];
497
+ }
498
+ interface AllowDownloadStatus2 {
499
+ allow_download: boolean;
500
+ }
501
+ interface VideoInfo2 {
502
+ aspect_ratio: number[];
503
+ duration_millis: number;
504
+ variants: Variant2[];
505
+ }
506
+ interface Variant2 {
507
+ bitrate?: number;
508
+ content_type: string;
509
+ url: string;
510
+ }
511
+ interface MediaResults2 {
512
+ result: Result7;
513
+ }
514
+ interface Result7 {
515
+ media_key: string;
516
+ }
517
+ interface SuperFollowsReplyUserResult {
518
+ result: Result8;
519
+ }
520
+ interface Result8 {
521
+ __typename: string;
522
+ legacy: Legacy5;
523
+ }
524
+ interface Legacy5 {
525
+ screen_name: string;
526
+ }
527
+ interface QuotedStatusResult {
528
+ result: Result9;
529
+ }
530
+ interface Result9 {
531
+ __typename: string;
532
+ rest_id: string;
533
+ core: Core2;
534
+ unmention_data: UnmentionData2;
535
+ edit_control: EditControl2;
536
+ is_translatable: boolean;
537
+ views: Views2;
538
+ source: string;
539
+ legacy: Legacy7;
540
+ card?: Card;
541
+ note_tweet?: NoteTweet;
542
+ quotedRefResult?: QuotedRefResult;
543
+ }
544
+ interface Core2 {
545
+ user_results: UserResults4;
546
+ }
547
+ interface UserResults4 {
548
+ result: Result10;
549
+ }
550
+ interface Result10 {
551
+ __typename: string;
552
+ id: string;
553
+ rest_id: string;
554
+ affiliates_highlighted_label: AffiliatesHighlightedLabel4;
555
+ has_graduated_access: boolean;
556
+ is_blue_verified: boolean;
557
+ profile_image_shape: string;
558
+ legacy: Legacy6;
559
+ verified_phone_status: boolean;
560
+ professional?: Professional4;
561
+ super_follow_eligible?: boolean;
562
+ }
563
+ interface AffiliatesHighlightedLabel4 {
564
+ label?: Label2;
565
+ }
566
+ interface Label2 {
567
+ url: Url8;
568
+ badge: Badge2;
569
+ description: string;
570
+ userLabelType: string;
571
+ userLabelDisplayType: string;
572
+ }
573
+ interface Url8 {
574
+ url: string;
575
+ urlType: string;
576
+ }
577
+ interface Badge2 {
578
+ url: string;
579
+ }
580
+ interface Legacy6 {
581
+ can_dm: boolean;
582
+ can_media_tag: boolean;
583
+ created_at: string;
584
+ default_profile: boolean;
585
+ default_profile_image: boolean;
586
+ description: string;
587
+ entities: Entities5;
588
+ fast_followers_count: number;
589
+ favourites_count: number;
590
+ followers_count: number;
591
+ friends_count: number;
592
+ has_custom_timelines: boolean;
593
+ is_translator: boolean;
594
+ listed_count: number;
595
+ location: string;
596
+ media_count: number;
597
+ name: string;
598
+ normal_followers_count: number;
599
+ pinned_tweet_ids_str: string[];
600
+ possibly_sensitive: boolean;
601
+ profile_banner_url: string;
602
+ profile_image_url_https: string;
603
+ profile_interstitial_type: string;
604
+ screen_name: string;
605
+ statuses_count: number;
606
+ translator_type: string;
607
+ url?: string;
608
+ verified: boolean;
609
+ want_retweets: boolean;
610
+ withheld_in_countries: any[];
611
+ following?: boolean;
612
+ verified_type?: string;
613
+ }
614
+ interface Entities5 {
615
+ description: Description4;
616
+ url?: Url10;
617
+ }
618
+ interface Description4 {
619
+ urls: Url9[];
620
+ }
621
+ interface Url9 {
622
+ display_url: string;
623
+ expanded_url: string;
624
+ url: string;
625
+ indices: number[];
626
+ }
627
+ interface Url10 {
628
+ urls: Url11[];
629
+ }
630
+ interface Url11 {
631
+ display_url: string;
632
+ expanded_url: string;
633
+ url: string;
634
+ indices: number[];
635
+ }
636
+ interface Professional4 {
637
+ rest_id: string;
638
+ professional_type: string;
639
+ category: any[];
640
+ }
641
+ interface UnmentionData2 {
642
+ }
643
+ interface EditControl2 {
644
+ edit_tweet_ids: string[];
645
+ editable_until_msecs: string;
646
+ is_edit_eligible: boolean;
647
+ edits_remaining: string;
648
+ }
649
+ interface Views2 {
650
+ count: string;
651
+ state: string;
652
+ }
653
+ interface Legacy7 {
654
+ bookmark_count: number;
655
+ bookmarked: boolean;
656
+ created_at: string;
657
+ conversation_id_str: string;
658
+ display_text_range: number[];
659
+ entities: Entities6;
660
+ extended_entities?: ExtendedEntities2;
661
+ favorite_count: number;
662
+ favorited: boolean;
663
+ full_text: string;
664
+ is_quote_status: boolean;
665
+ lang: string;
666
+ possibly_sensitive?: boolean;
667
+ possibly_sensitive_editable?: boolean;
668
+ quote_count: number;
669
+ reply_count: number;
670
+ retweet_count: number;
671
+ retweeted: boolean;
672
+ user_id_str: string;
673
+ id_str: string;
674
+ quoted_status_id_str?: string;
675
+ quoted_status_permalink?: QuotedStatusPermalink2;
676
+ in_reply_to_screen_name?: string;
677
+ in_reply_to_status_id_str?: string;
678
+ in_reply_to_user_id_str?: string;
679
+ }
680
+ interface Entities6 {
681
+ hashtags: any[];
682
+ media?: Medum3[];
683
+ symbols: any[];
684
+ timestamps: any[];
685
+ urls: Url12[];
686
+ user_mentions: UserMention2[];
687
+ }
688
+ interface Medum3 {
689
+ display_url: string;
690
+ expanded_url: string;
691
+ id_str: string;
692
+ indices: number[];
693
+ media_key: string;
694
+ media_url_https: string;
695
+ type: string;
696
+ url: string;
697
+ additional_media_info?: AdditionalMediaInfo3;
698
+ ext_media_availability: ExtMediaAvailability3;
699
+ sizes: Sizes3;
700
+ original_info: OriginalInfo3;
701
+ allow_download_status?: AllowDownloadStatus3;
702
+ video_info?: VideoInfo3;
703
+ media_results: MediaResults3;
704
+ features?: Features;
705
+ }
706
+ interface AdditionalMediaInfo3 {
707
+ title?: string;
708
+ description?: string;
709
+ embeddable?: boolean;
710
+ monetizable: boolean;
711
+ }
712
+ interface ExtMediaAvailability3 {
713
+ status: string;
714
+ }
715
+ interface Sizes3 {
716
+ large: Large3;
717
+ medium: Medium3;
718
+ small: Small3;
719
+ thumb: Thumb3;
720
+ }
721
+ interface Large3 {
722
+ h: number;
723
+ w: number;
724
+ resize: string;
725
+ }
726
+ interface Medium3 {
727
+ h: number;
728
+ w: number;
729
+ resize: string;
730
+ }
731
+ interface Small3 {
732
+ h: number;
733
+ w: number;
734
+ resize: string;
735
+ }
736
+ interface Thumb3 {
737
+ h: number;
738
+ w: number;
739
+ resize: string;
740
+ }
741
+ interface OriginalInfo3 {
742
+ height: number;
743
+ width: number;
744
+ focus_rects: FocusRect[];
745
+ }
746
+ interface FocusRect {
747
+ x: number;
748
+ y: number;
749
+ w: number;
750
+ h: number;
751
+ }
752
+ interface AllowDownloadStatus3 {
753
+ allow_download: boolean;
754
+ }
755
+ interface VideoInfo3 {
756
+ aspect_ratio: number[];
757
+ duration_millis: number;
758
+ variants: Variant3[];
759
+ }
760
+ interface Variant3 {
761
+ content_type: string;
762
+ url: string;
763
+ bitrate?: number;
764
+ }
765
+ interface MediaResults3 {
766
+ result: Result11;
767
+ }
768
+ interface Result11 {
769
+ media_key: string;
770
+ }
771
+ interface Features {
772
+ large: Large4;
773
+ medium: Medium4;
774
+ small: Small4;
775
+ orig: Orig;
776
+ }
777
+ interface Large4 {
778
+ faces: any[];
779
+ }
780
+ interface Medium4 {
781
+ faces: any[];
782
+ }
783
+ interface Small4 {
784
+ faces: any[];
785
+ }
786
+ interface Orig {
787
+ faces: any[];
788
+ }
789
+ interface Url12 {
790
+ display_url: string;
791
+ expanded_url: string;
792
+ url: string;
793
+ indices: number[];
794
+ }
795
+ interface UserMention2 {
796
+ id_str: string;
797
+ name: string;
798
+ screen_name: string;
799
+ indices: number[];
800
+ }
801
+ interface ExtendedEntities2 {
802
+ media: Medum4[];
803
+ }
804
+ interface Medum4 {
805
+ display_url: string;
806
+ expanded_url: string;
807
+ id_str: string;
808
+ indices: number[];
809
+ media_key: string;
810
+ media_url_https: string;
811
+ type: string;
812
+ url: string;
813
+ additional_media_info?: AdditionalMediaInfo4;
814
+ ext_media_availability: ExtMediaAvailability4;
815
+ sizes: Sizes4;
816
+ original_info: OriginalInfo4;
817
+ allow_download_status?: AllowDownloadStatus4;
818
+ video_info?: VideoInfo4;
819
+ media_results: MediaResults4;
820
+ features?: Features2;
821
+ }
822
+ interface AdditionalMediaInfo4 {
823
+ title?: string;
824
+ description?: string;
825
+ embeddable?: boolean;
826
+ monetizable: boolean;
827
+ }
828
+ interface ExtMediaAvailability4 {
829
+ status: string;
830
+ }
831
+ interface Sizes4 {
832
+ large: Large5;
833
+ medium: Medium5;
834
+ small: Small5;
835
+ thumb: Thumb4;
836
+ }
837
+ interface Large5 {
838
+ h: number;
839
+ w: number;
840
+ resize: string;
841
+ }
842
+ interface Medium5 {
843
+ h: number;
844
+ w: number;
845
+ resize: string;
846
+ }
847
+ interface Small5 {
848
+ h: number;
849
+ w: number;
850
+ resize: string;
851
+ }
852
+ interface Thumb4 {
853
+ h: number;
854
+ w: number;
855
+ resize: string;
856
+ }
857
+ interface OriginalInfo4 {
858
+ height: number;
859
+ width: number;
860
+ focus_rects: FocusRect2[];
861
+ }
862
+ interface FocusRect2 {
863
+ x: number;
864
+ y: number;
865
+ w: number;
866
+ h: number;
867
+ }
868
+ interface AllowDownloadStatus4 {
869
+ allow_download: boolean;
870
+ }
871
+ interface VideoInfo4 {
872
+ aspect_ratio: number[];
873
+ duration_millis: number;
874
+ variants: Variant4[];
875
+ }
876
+ interface Variant4 {
877
+ content_type: string;
878
+ url: string;
879
+ bitrate?: number;
880
+ }
881
+ interface MediaResults4 {
882
+ result: Result12;
883
+ }
884
+ interface Result12 {
885
+ media_key: string;
886
+ }
887
+ interface Features2 {
888
+ large: Large6;
889
+ medium: Medium6;
890
+ small: Small6;
891
+ orig: Orig2;
892
+ }
893
+ interface Large6 {
894
+ faces: any[];
895
+ }
896
+ interface Medium6 {
897
+ faces: any[];
898
+ }
899
+ interface Small6 {
900
+ faces: any[];
901
+ }
902
+ interface Orig2 {
903
+ faces: any[];
904
+ }
905
+ interface QuotedStatusPermalink2 {
906
+ url: string;
907
+ expanded: string;
908
+ display: string;
909
+ }
910
+ interface Card {
911
+ rest_id: string;
912
+ legacy: Legacy8;
913
+ }
914
+ interface Legacy8 {
915
+ binding_values: BindingValue[];
916
+ card_platform: CardPlatform;
917
+ name: string;
918
+ url: string;
919
+ user_refs_results: UserRefsResult[];
920
+ }
921
+ interface BindingValue {
922
+ key: string;
923
+ value: Value;
924
+ }
925
+ interface Value {
926
+ image_value?: ImageValue;
927
+ type: string;
928
+ string_value?: string;
929
+ scribe_key?: string;
930
+ user_value?: UserValue;
931
+ image_color_value?: ImageColorValue;
932
+ }
933
+ interface ImageValue {
934
+ alt: string;
935
+ height: number;
936
+ width: number;
937
+ url: string;
938
+ }
939
+ interface UserValue {
940
+ id_str: string;
941
+ path: any[];
942
+ }
943
+ interface ImageColorValue {
944
+ palette: Palette[];
945
+ }
946
+ interface Palette {
947
+ rgb: Rgb;
948
+ percentage: number;
949
+ }
950
+ interface Rgb {
951
+ blue: number;
952
+ green: number;
953
+ red: number;
954
+ }
955
+ interface CardPlatform {
956
+ platform: Platform;
957
+ }
958
+ interface Platform {
959
+ audience: Audience;
960
+ device: Device;
961
+ }
962
+ interface Audience {
963
+ name: string;
964
+ }
965
+ interface Device {
966
+ name: string;
967
+ version: string;
968
+ }
969
+ interface UserRefsResult {
970
+ result: Result13;
971
+ }
972
+ interface Result13 {
973
+ __typename: string;
974
+ id: string;
975
+ rest_id: string;
976
+ affiliates_highlighted_label: AffiliatesHighlightedLabel5;
977
+ has_graduated_access: boolean;
978
+ is_blue_verified: boolean;
979
+ profile_image_shape: string;
980
+ legacy: Legacy9;
981
+ professional: Professional5;
982
+ verified_phone_status: boolean;
983
+ }
984
+ interface AffiliatesHighlightedLabel5 {
985
+ }
986
+ interface Legacy9 {
987
+ can_dm: boolean;
988
+ can_media_tag: boolean;
989
+ created_at: string;
990
+ default_profile: boolean;
991
+ default_profile_image: boolean;
992
+ description: string;
993
+ entities: Entities7;
994
+ fast_followers_count: number;
995
+ favourites_count: number;
996
+ followers_count: number;
997
+ friends_count: number;
998
+ has_custom_timelines: boolean;
999
+ is_translator: boolean;
1000
+ listed_count: number;
1001
+ location: string;
1002
+ media_count: number;
1003
+ name: string;
1004
+ normal_followers_count: number;
1005
+ pinned_tweet_ids_str: any[];
1006
+ possibly_sensitive: boolean;
1007
+ profile_banner_url: string;
1008
+ profile_image_url_https: string;
1009
+ profile_interstitial_type: string;
1010
+ screen_name: string;
1011
+ statuses_count: number;
1012
+ translator_type: string;
1013
+ url: string;
1014
+ verified: boolean;
1015
+ verified_type: string;
1016
+ want_retweets: boolean;
1017
+ withheld_in_countries: any[];
1018
+ }
1019
+ interface Entities7 {
1020
+ description: Description5;
1021
+ url: Url14;
1022
+ }
1023
+ interface Description5 {
1024
+ urls: Url13[];
1025
+ }
1026
+ interface Url13 {
1027
+ display_url: string;
1028
+ expanded_url: string;
1029
+ url: string;
1030
+ indices: number[];
1031
+ }
1032
+ interface Url14 {
1033
+ urls: Url15[];
1034
+ }
1035
+ interface Url15 {
1036
+ display_url: string;
1037
+ expanded_url: string;
1038
+ url: string;
1039
+ indices: number[];
1040
+ }
1041
+ interface Professional5 {
1042
+ rest_id: string;
1043
+ professional_type: string;
1044
+ category: Category[];
1045
+ }
1046
+ interface Category {
1047
+ id: number;
1048
+ name: string;
1049
+ icon_name: string;
1050
+ }
1051
+ interface NoteTweet {
1052
+ is_expandable: boolean;
1053
+ note_tweet_results: NoteTweetResults;
1054
+ }
1055
+ interface NoteTweetResults {
1056
+ result: Result14;
1057
+ }
1058
+ interface Result14 {
1059
+ id: string;
1060
+ text: string;
1061
+ entity_set: EntitySet;
1062
+ richtext: Richtext;
1063
+ media: Media;
1064
+ }
1065
+ interface EntitySet {
1066
+ hashtags: any[];
1067
+ symbols: any[];
1068
+ timestamps: any[];
1069
+ urls: any[];
1070
+ user_mentions: UserMention3[];
1071
+ }
1072
+ interface UserMention3 {
1073
+ id_str: string;
1074
+ name: string;
1075
+ screen_name: string;
1076
+ indices: number[];
1077
+ }
1078
+ interface Richtext {
1079
+ richtext_tags: RichtextTag[];
1080
+ }
1081
+ interface RichtextTag {
1082
+ from_index: number;
1083
+ to_index: number;
1084
+ richtext_types: string[];
1085
+ }
1086
+ interface Media {
1087
+ inline_media: any[];
1088
+ }
1089
+ interface QuotedRefResult {
1090
+ result: Result15;
1091
+ }
1092
+ interface Result15 {
1093
+ __typename: string;
1094
+ rest_id: string;
1095
+ }
1096
+ interface ClientEventInfo {
1097
+ component: string;
1098
+ element: string;
1099
+ }
1100
+ interface Metadata {
1101
+ scribeConfig: ScribeConfig;
1102
+ }
1103
+ interface ScribeConfig {
1104
+ page: string;
1105
+ }
1106
+ export {};