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,550 @@
1
+ /**
2
+ * The raw data received when fetching the bookmarks of the given user.
3
+ *
4
+ * @public
5
+ */
6
+ export interface IUserBookmarksResponse {
7
+ data: Data;
8
+ }
9
+ interface Data {
10
+ bookmark_timeline_v2: BookmarkTimelineV2;
11
+ }
12
+ interface BookmarkTimelineV2 {
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
+ __typename: string;
31
+ itemContent?: ItemContent;
32
+ value?: string;
33
+ cursorType?: string;
34
+ stopOnEmptyResponse?: boolean;
35
+ }
36
+ interface ItemContent {
37
+ itemType: string;
38
+ __typename: string;
39
+ tweet_results: TweetResults;
40
+ tweetDisplayType: string;
41
+ }
42
+ interface TweetResults {
43
+ result: Result;
44
+ }
45
+ interface Result {
46
+ __typename: string;
47
+ rest_id: string;
48
+ core: Core;
49
+ unmention_data: UnmentionData;
50
+ edit_control: EditControl;
51
+ is_translatable: boolean;
52
+ views: Views;
53
+ source: string;
54
+ legacy: Legacy2;
55
+ }
56
+ interface Core {
57
+ user_results: UserResults;
58
+ }
59
+ interface UserResults {
60
+ result: Result2;
61
+ }
62
+ interface Result2 {
63
+ __typename: string;
64
+ id: string;
65
+ rest_id: string;
66
+ affiliates_highlighted_label: AffiliatesHighlightedLabel;
67
+ has_graduated_access: boolean;
68
+ is_blue_verified: boolean;
69
+ profile_image_shape: string;
70
+ legacy: Legacy;
71
+ professional: Professional;
72
+ tipjar_settings: TipjarSettings;
73
+ super_follow_eligible?: boolean;
74
+ verified_phone_status: boolean;
75
+ }
76
+ interface AffiliatesHighlightedLabel {
77
+ label?: Label;
78
+ }
79
+ interface Label {
80
+ url: Url;
81
+ badge: Badge;
82
+ description: string;
83
+ userLabelType: string;
84
+ userLabelDisplayType: string;
85
+ }
86
+ interface Url {
87
+ url: string;
88
+ urlType: string;
89
+ }
90
+ interface Badge {
91
+ url: string;
92
+ }
93
+ interface Legacy {
94
+ following: boolean;
95
+ can_dm: boolean;
96
+ can_media_tag: boolean;
97
+ created_at: string;
98
+ default_profile: boolean;
99
+ default_profile_image: boolean;
100
+ description: string;
101
+ entities: Entities;
102
+ fast_followers_count: number;
103
+ favourites_count: number;
104
+ followers_count: number;
105
+ friends_count: number;
106
+ has_custom_timelines: boolean;
107
+ is_translator: boolean;
108
+ listed_count: number;
109
+ location: string;
110
+ media_count: number;
111
+ name: string;
112
+ normal_followers_count: number;
113
+ pinned_tweet_ids_str: string[];
114
+ possibly_sensitive: boolean;
115
+ profile_banner_url: string;
116
+ profile_image_url_https: string;
117
+ profile_interstitial_type: string;
118
+ screen_name: string;
119
+ statuses_count: number;
120
+ translator_type: string;
121
+ url?: string;
122
+ verified: boolean;
123
+ want_retweets: boolean;
124
+ withheld_in_countries: any[];
125
+ }
126
+ interface Entities {
127
+ description: Description;
128
+ url?: Url2;
129
+ }
130
+ interface Description {
131
+ urls: any[];
132
+ }
133
+ interface Url2 {
134
+ urls: Url3[];
135
+ }
136
+ interface Url3 {
137
+ display_url: string;
138
+ expanded_url: string;
139
+ url: string;
140
+ indices: number[];
141
+ }
142
+ interface Professional {
143
+ rest_id: string;
144
+ professional_type: string;
145
+ category: Category[];
146
+ }
147
+ interface Category {
148
+ id: number;
149
+ name: string;
150
+ icon_name: string;
151
+ }
152
+ interface TipjarSettings {
153
+ is_enabled?: boolean;
154
+ }
155
+ interface UnmentionData {
156
+ }
157
+ interface EditControl {
158
+ edit_tweet_ids: string[];
159
+ editable_until_msecs: string;
160
+ is_edit_eligible: boolean;
161
+ edits_remaining: string;
162
+ }
163
+ interface Views {
164
+ count: string;
165
+ state: string;
166
+ }
167
+ interface Legacy2 {
168
+ bookmark_count: number;
169
+ bookmarked: boolean;
170
+ created_at: string;
171
+ conversation_id_str: string;
172
+ display_text_range: number[];
173
+ entities: Entities2;
174
+ extended_entities: ExtendedEntities;
175
+ favorite_count: number;
176
+ favorited: boolean;
177
+ full_text: string;
178
+ is_quote_status: boolean;
179
+ lang: string;
180
+ possibly_sensitive: boolean;
181
+ possibly_sensitive_editable: boolean;
182
+ quote_count: number;
183
+ reply_count: number;
184
+ retweet_count: number;
185
+ retweeted: boolean;
186
+ user_id_str: string;
187
+ id_str: string;
188
+ }
189
+ interface Entities2 {
190
+ hashtags: any[];
191
+ media: Medum[];
192
+ symbols: any[];
193
+ timestamps: any[];
194
+ urls: any[];
195
+ user_mentions: any[];
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
+ features?: Features;
216
+ }
217
+ interface AdditionalMediaInfo {
218
+ monetizable: boolean;
219
+ source_user: SourceUser;
220
+ }
221
+ interface SourceUser {
222
+ user_results: UserResults2;
223
+ }
224
+ interface UserResults2 {
225
+ result: Result3;
226
+ }
227
+ interface Result3 {
228
+ __typename: string;
229
+ id: string;
230
+ rest_id: string;
231
+ affiliates_highlighted_label: AffiliatesHighlightedLabel2;
232
+ has_graduated_access: boolean;
233
+ is_blue_verified: boolean;
234
+ profile_image_shape: string;
235
+ legacy: Legacy3;
236
+ tipjar_settings: TipjarSettings2;
237
+ super_follow_eligible: boolean;
238
+ verified_phone_status: boolean;
239
+ }
240
+ interface AffiliatesHighlightedLabel2 {
241
+ }
242
+ interface Legacy3 {
243
+ following: boolean;
244
+ can_dm: boolean;
245
+ can_media_tag: boolean;
246
+ created_at: string;
247
+ default_profile: boolean;
248
+ default_profile_image: boolean;
249
+ description: string;
250
+ entities: Entities3;
251
+ fast_followers_count: number;
252
+ favourites_count: number;
253
+ followers_count: number;
254
+ friends_count: number;
255
+ has_custom_timelines: boolean;
256
+ is_translator: boolean;
257
+ listed_count: number;
258
+ location: string;
259
+ media_count: number;
260
+ name: string;
261
+ normal_followers_count: number;
262
+ pinned_tweet_ids_str: any[];
263
+ possibly_sensitive: boolean;
264
+ profile_banner_url: string;
265
+ profile_image_url_https: string;
266
+ profile_interstitial_type: string;
267
+ screen_name: string;
268
+ statuses_count: number;
269
+ translator_type: string;
270
+ url: string;
271
+ verified: boolean;
272
+ want_retweets: boolean;
273
+ withheld_in_countries: any[];
274
+ }
275
+ interface Entities3 {
276
+ description: Description2;
277
+ url: Url4;
278
+ }
279
+ interface Description2 {
280
+ urls: any[];
281
+ }
282
+ interface Url4 {
283
+ urls: Url5[];
284
+ }
285
+ interface Url5 {
286
+ display_url: string;
287
+ expanded_url: string;
288
+ url: string;
289
+ indices: number[];
290
+ }
291
+ interface TipjarSettings2 {
292
+ }
293
+ interface ExtMediaAvailability {
294
+ status: string;
295
+ }
296
+ interface Sizes {
297
+ large: Large;
298
+ medium: Medium;
299
+ small: Small;
300
+ thumb: Thumb;
301
+ }
302
+ interface Large {
303
+ h: number;
304
+ w: number;
305
+ resize: string;
306
+ }
307
+ interface Medium {
308
+ h: number;
309
+ w: number;
310
+ resize: string;
311
+ }
312
+ interface Small {
313
+ h: number;
314
+ w: number;
315
+ resize: string;
316
+ }
317
+ interface Thumb {
318
+ h: number;
319
+ w: number;
320
+ resize: string;
321
+ }
322
+ interface OriginalInfo {
323
+ height: number;
324
+ width: number;
325
+ focus_rects: FocusRect[];
326
+ }
327
+ interface FocusRect {
328
+ x: number;
329
+ y: number;
330
+ w: number;
331
+ h: number;
332
+ }
333
+ interface AllowDownloadStatus {
334
+ allow_download: boolean;
335
+ }
336
+ interface VideoInfo {
337
+ aspect_ratio: number[];
338
+ duration_millis: number;
339
+ variants: Variant[];
340
+ }
341
+ interface Variant {
342
+ content_type: string;
343
+ url: string;
344
+ bitrate?: number;
345
+ }
346
+ interface MediaResults {
347
+ result: Result4;
348
+ }
349
+ interface Result4 {
350
+ media_key: string;
351
+ }
352
+ interface Features {
353
+ large: Large2;
354
+ medium: Medium2;
355
+ small: Small2;
356
+ orig: Orig;
357
+ }
358
+ interface Large2 {
359
+ faces: any[];
360
+ }
361
+ interface Medium2 {
362
+ faces: any[];
363
+ }
364
+ interface Small2 {
365
+ faces: any[];
366
+ }
367
+ interface Orig {
368
+ faces: any[];
369
+ }
370
+ interface ExtendedEntities {
371
+ media: Medum2[];
372
+ }
373
+ interface Medum2 {
374
+ display_url: string;
375
+ expanded_url: string;
376
+ id_str: string;
377
+ indices: number[];
378
+ media_key: string;
379
+ media_url_https: string;
380
+ source_status_id_str?: string;
381
+ source_user_id_str?: string;
382
+ type: string;
383
+ url: string;
384
+ additional_media_info?: AdditionalMediaInfo2;
385
+ ext_media_availability: ExtMediaAvailability2;
386
+ sizes: Sizes2;
387
+ original_info: OriginalInfo2;
388
+ allow_download_status?: AllowDownloadStatus2;
389
+ video_info?: VideoInfo2;
390
+ media_results: MediaResults2;
391
+ features?: Features2;
392
+ }
393
+ interface AdditionalMediaInfo2 {
394
+ monetizable: boolean;
395
+ source_user: SourceUser2;
396
+ }
397
+ interface SourceUser2 {
398
+ user_results: UserResults3;
399
+ }
400
+ interface UserResults3 {
401
+ result: Result5;
402
+ }
403
+ interface Result5 {
404
+ __typename: string;
405
+ id: string;
406
+ rest_id: string;
407
+ affiliates_highlighted_label: AffiliatesHighlightedLabel3;
408
+ has_graduated_access: boolean;
409
+ is_blue_verified: boolean;
410
+ profile_image_shape: string;
411
+ legacy: Legacy4;
412
+ tipjar_settings: TipjarSettings3;
413
+ super_follow_eligible: boolean;
414
+ verified_phone_status: boolean;
415
+ }
416
+ interface AffiliatesHighlightedLabel3 {
417
+ }
418
+ interface Legacy4 {
419
+ following: boolean;
420
+ can_dm: boolean;
421
+ can_media_tag: boolean;
422
+ created_at: string;
423
+ default_profile: boolean;
424
+ default_profile_image: boolean;
425
+ description: string;
426
+ entities: Entities4;
427
+ fast_followers_count: number;
428
+ favourites_count: number;
429
+ followers_count: number;
430
+ friends_count: number;
431
+ has_custom_timelines: boolean;
432
+ is_translator: boolean;
433
+ listed_count: number;
434
+ location: string;
435
+ media_count: number;
436
+ name: string;
437
+ normal_followers_count: number;
438
+ pinned_tweet_ids_str: any[];
439
+ possibly_sensitive: boolean;
440
+ profile_banner_url: string;
441
+ profile_image_url_https: string;
442
+ profile_interstitial_type: string;
443
+ screen_name: string;
444
+ statuses_count: number;
445
+ translator_type: string;
446
+ url: string;
447
+ verified: boolean;
448
+ want_retweets: boolean;
449
+ withheld_in_countries: any[];
450
+ }
451
+ interface Entities4 {
452
+ description: Description3;
453
+ url: Url6;
454
+ }
455
+ interface Description3 {
456
+ urls: any[];
457
+ }
458
+ interface Url6 {
459
+ urls: Url7[];
460
+ }
461
+ interface Url7 {
462
+ display_url: string;
463
+ expanded_url: string;
464
+ url: string;
465
+ indices: number[];
466
+ }
467
+ interface TipjarSettings3 {
468
+ }
469
+ interface ExtMediaAvailability2 {
470
+ status: string;
471
+ }
472
+ interface Sizes2 {
473
+ large: Large3;
474
+ medium: Medium3;
475
+ small: Small3;
476
+ thumb: Thumb2;
477
+ }
478
+ interface Large3 {
479
+ h: number;
480
+ w: number;
481
+ resize: string;
482
+ }
483
+ interface Medium3 {
484
+ h: number;
485
+ w: number;
486
+ resize: string;
487
+ }
488
+ interface Small3 {
489
+ h: number;
490
+ w: number;
491
+ resize: string;
492
+ }
493
+ interface Thumb2 {
494
+ h: number;
495
+ w: number;
496
+ resize: string;
497
+ }
498
+ interface OriginalInfo2 {
499
+ height: number;
500
+ width: number;
501
+ focus_rects: FocusRect2[];
502
+ }
503
+ interface FocusRect2 {
504
+ x: number;
505
+ y: number;
506
+ w: number;
507
+ h: number;
508
+ }
509
+ interface AllowDownloadStatus2 {
510
+ allow_download: boolean;
511
+ }
512
+ interface VideoInfo2 {
513
+ aspect_ratio: number[];
514
+ duration_millis: number;
515
+ variants: Variant2[];
516
+ }
517
+ interface Variant2 {
518
+ content_type: string;
519
+ url: string;
520
+ bitrate?: number;
521
+ }
522
+ interface MediaResults2 {
523
+ result: Result6;
524
+ }
525
+ interface Result6 {
526
+ media_key: string;
527
+ }
528
+ interface Features2 {
529
+ large: Large4;
530
+ medium: Medium4;
531
+ small: Small4;
532
+ orig: Orig2;
533
+ }
534
+ interface Large4 {
535
+ faces: any[];
536
+ }
537
+ interface Medium4 {
538
+ faces: any[];
539
+ }
540
+ interface Small4 {
541
+ faces: any[];
542
+ }
543
+ interface Orig2 {
544
+ faces: any[];
545
+ }
546
+ interface ResponseObjects {
547
+ feedbackActions: any[];
548
+ immediateReactions: any[];
549
+ }
550
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Bookmarks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bookmarks.js","sourceRoot":"","sources":["../../../../src/types/raw/user/Bookmarks.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * The raw data received when fetching the details of the given user.
3
+ *
4
+ * @public
5
+ */
6
+ export interface IUserDetailsResponse {
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
+ id: string;
18
+ rest_id: string;
19
+ affiliates_highlighted_label: AffiliatesHighlightedLabel;
20
+ has_nft_avatar: boolean;
21
+ legacy: Legacy;
22
+ smart_blocked_by: boolean;
23
+ smart_blocking: boolean;
24
+ super_follow_eligible: boolean;
25
+ super_followed_by: boolean;
26
+ super_following: boolean;
27
+ legacy_extended_profile: LegacyExtendedProfile;
28
+ is_profile_translatable: boolean;
29
+ }
30
+ interface AffiliatesHighlightedLabel {
31
+ label: AffiliatesHighlightedLabelDetails;
32
+ }
33
+ interface AffiliatesHighlightedLabelDetails {
34
+ badge: AffiliatesHighlightedLabelBadge;
35
+ description: string;
36
+ longDescription: AffiliatesHighlightedLabelDescription;
37
+ }
38
+ interface AffiliatesHighlightedLabelBadge {
39
+ url: string;
40
+ }
41
+ interface AffiliatesHighlightedLabelDescription {
42
+ text: string;
43
+ entities: AffiliatesHighlightedLabelEntity[];
44
+ }
45
+ interface AffiliatesHighlightedLabelEntity {
46
+ fromIndex: number;
47
+ toIndex: number;
48
+ ref: AffiliatesHighlightedMention;
49
+ }
50
+ interface AffiliatesHighlightedMention {
51
+ type: string;
52
+ screen_name: string;
53
+ mention_results: AffiliatesHighlightedMentionResults;
54
+ }
55
+ interface AffiliatesHighlightedMentionResults {
56
+ result: AffiliatesHighlightedMentionResult;
57
+ }
58
+ interface AffiliatesHighlightedMentionResult {
59
+ __typename: string;
60
+ legacy: AffiliatesHighlightedMentionResultLegacy;
61
+ rest_id: string;
62
+ }
63
+ interface AffiliatesHighlightedMentionResultLegacy {
64
+ screen_name: string;
65
+ }
66
+ interface Legacy {
67
+ blocked_by: boolean;
68
+ blocking: boolean;
69
+ can_dm: boolean;
70
+ can_media_tag: boolean;
71
+ created_at: string;
72
+ default_profile: boolean;
73
+ default_profile_image: boolean;
74
+ description: string;
75
+ entities: Entities;
76
+ fast_followers_count: number;
77
+ favourites_count: number;
78
+ follow_request_sent: boolean;
79
+ followed_by: boolean;
80
+ followers_count: number;
81
+ following: boolean;
82
+ friends_count: number;
83
+ has_custom_timelines: boolean;
84
+ is_translator: boolean;
85
+ listed_count: number;
86
+ location: string;
87
+ media_count: number;
88
+ muting: boolean;
89
+ name: string;
90
+ normal_followers_count: number;
91
+ notifications: boolean;
92
+ pinned_tweet_ids_str: any[];
93
+ possibly_sensitive: boolean;
94
+ profile_banner_extensions: ProfileBannerExtensions;
95
+ profile_banner_url: string;
96
+ profile_image_extensions: ProfileImageExtensions;
97
+ profile_image_url_https: string;
98
+ profile_interstitial_type: string;
99
+ protected: boolean;
100
+ screen_name: string;
101
+ statuses_count: number;
102
+ translator_type: string;
103
+ verified: boolean;
104
+ want_retweets: boolean;
105
+ withheld_in_countries: any[];
106
+ }
107
+ interface Entities {
108
+ description: Description;
109
+ }
110
+ interface Description {
111
+ urls: any[];
112
+ }
113
+ interface ProfileBannerExtensions {
114
+ mediaColor: MediaColor;
115
+ }
116
+ interface MediaColor {
117
+ r: R;
118
+ }
119
+ interface R {
120
+ ok: Ok;
121
+ }
122
+ interface Ok {
123
+ palette: Palette[];
124
+ }
125
+ interface Palette {
126
+ percentage: number;
127
+ rgb: Rgb;
128
+ }
129
+ interface Rgb {
130
+ blue: number;
131
+ green: number;
132
+ red: number;
133
+ }
134
+ interface ProfileImageExtensions {
135
+ mediaColor: MediaColor2;
136
+ }
137
+ interface MediaColor2 {
138
+ r: R2;
139
+ }
140
+ interface R2 {
141
+ ok: Ok2;
142
+ }
143
+ interface Ok2 {
144
+ palette: Palette2[];
145
+ }
146
+ interface Palette2 {
147
+ percentage: number;
148
+ rgb: Rgb2;
149
+ }
150
+ interface Rgb2 {
151
+ blue: number;
152
+ green: number;
153
+ red: number;
154
+ }
155
+ interface LegacyExtendedProfile {
156
+ }
157
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../src/types/raw/user/Details.ts"],"names":[],"mappings":";AAAA,oBAAoB"}