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

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