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
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ReturnTypes.js.map
3
+ //# sourceMappingURL=TidHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TidHeader.js","sourceRoot":"","sources":["../../../src/types/auth/TidHeader.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The parameters for generating the transaction ID.
3
+ *
4
+ * @internal
5
+ */
6
+ export interface ITidParams {
7
+ /** Secret used for transaction ID calculation. */
8
+ keyword: string;
9
+ /** Request method. */
10
+ method: string;
11
+ /** Endpoint path without query parameters. */
12
+ path: string;
13
+ /** Twitter verification key received from HTML. */
14
+ verificationKey: string;
15
+ /** Animation frames extracted from HTML. */
16
+ frames: number[][][];
17
+ /** Indices used for getting the correct verification key bytes during animation key calculation. */
18
+ indices: number[];
19
+ /** Final byte of the transaction ID. */
20
+ extraByte: number;
21
+ /** Current time */
22
+ time?: number;
23
+ /** XOR byte used for final hash calculation, must be in 0-255 range. */
24
+ xorByte?: number;
25
+ /** Precomputed animation key. */
26
+ animationKey?: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TidParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TidParams.js","sourceRoot":"","sources":["../../../src/types/auth/TidParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Service responsible for generating the `x-client-transaction-id` header.
3
+ *
4
+ * @public
5
+ */
6
+ export interface ITidProvider {
7
+ /**
8
+ * Generates new `x-client-transaction-id` header.
9
+ *
10
+ * @param method - Request method.
11
+ * @param path - Endpoint path without query parameters.
12
+ */
13
+ generate(method: string, path: string): Promise<string | undefined>;
14
+ /**
15
+ * Refresh arguments obtained from parsing the HTML page, if any.
16
+ */
17
+ refreshDynamicArgs(): Promise<void>;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TidProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TidProvider.js","sourceRoot":"","sources":["../../../src/types/auth/TidProvider.ts"],"names":[],"mappings":""}
@@ -12,14 +12,5 @@ export interface ICursoredData<T extends INotification | ITweet | IUser> {
12
12
  /** The batch of data of the given type. */
13
13
  list: T[];
14
14
  /** The cursor to the next batch of data. */
15
- next: ICursor;
16
- }
17
- /**
18
- * The cursor to the batch of data to fetch.
19
- *
20
- * @public
21
- */
22
- export interface ICursor {
23
- /** The cursor string. */
24
- value: string;
15
+ next: string;
25
16
  }
@@ -1,4 +1,4 @@
1
- import { ENotificationType } from '../../enums/Data';
1
+ import { ENotificationType } from '../../enums/Notification';
2
2
  /**
3
3
  * The details of a single notification.
4
4
  *
@@ -12,7 +12,7 @@ export interface INotification {
12
12
  /** The text contents of the notification. */
13
13
  message: string;
14
14
  /** The date/time at which the notification was received. */
15
- receivedAt: Date;
15
+ receivedAt: string;
16
16
  /** The list of id of the target tweet(s) of the notification. */
17
17
  target: string[];
18
18
  /** The type of notification. */
@@ -1,4 +1,4 @@
1
- import { EMediaType } from 'rettiwt-core';
1
+ import { EMediaType } from '../../enums/Media';
2
2
  import { IUser } from './User';
3
3
  /**
4
4
  * The details of a single tweet.
@@ -10,7 +10,7 @@ export interface ITweet {
10
10
  bookmarkCount: number;
11
11
  /** The ID of tweet which started the current conversation. */
12
12
  conversationId: string;
13
- /** The date and time of creation of the tweet, in UTC string format. */
13
+ /** The creation date of the tweet. */
14
14
  createdAt: string;
15
15
  /** Additional tweet entities like urls, mentions, etc. */
16
16
  entities: ITweetEntities;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Media to be sent as payload.
3
+ *
4
+ * @internal
5
+ */
6
+ export interface IMediaVariable {
7
+ media_entities: IMediaEntityVariable[];
8
+ possibly_sensitive: boolean;
9
+ }
10
+ /**
11
+ * Each media item in the media payload.
12
+ *
13
+ * @internal
14
+ */
15
+ export interface IMediaEntityVariable {
16
+ media_id: string;
17
+ tagged_users: string[];
18
+ }
19
+ /**
20
+ * Reply specific details to be sent in payload.
21
+ *
22
+ * @internal
23
+ */
24
+ export interface IReplyVariable {
25
+ exclude_reply_user_ids: string[];
26
+ in_reply_to_tweet_id: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Variables.js","sourceRoot":"","sources":["../../../src/types/params/Variables.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Represents the raw data of the analytic result of the User.
3
+ *
4
+ * @public
5
+ */
6
+ export interface IAnalytics {
7
+ __typename: string;
8
+ organic_metrics_time_series: IAnalyticsMetric[];
9
+ id: string;
10
+ }
11
+ export interface IAnalyticsMetric {
12
+ metric_value: IAnalyticsMetricValue[];
13
+ timestamp: IAnalyticsTimeStamp;
14
+ }
15
+ export interface IAnalyticsMetricValue {
16
+ metric_value: number;
17
+ metric_type: string;
18
+ }
19
+ export interface IAnalyticsTimeStamp {
20
+ iso8601_time: string;
21
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Analytic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Analytic.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Analytic.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents a cursor object used for pagination.
3
+ *
4
+ * @public
5
+ */
6
+ export interface ICursor {
7
+ entryType: string;
8
+ __typename: string;
9
+ value: string;
10
+ cursorType: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Cursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cursor.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Cursor.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,32 @@
1
+ import { ITweet } from './Tweet';
2
+ /**
3
+ * Represents the raw data of a single Tweet with limited visibility actions.
4
+ *
5
+ * @public
6
+ */
7
+ export interface ILimitedVisibilityTweet {
8
+ __typename: string;
9
+ tweet: ITweet;
10
+ limitedActionResults: ITweetLimitedActionResults;
11
+ }
12
+ export interface ITweetLimitedActionResults {
13
+ limited_actions: ITweetLimitedAction[];
14
+ }
15
+ export interface ITweetLimitedAction {
16
+ action: string;
17
+ prompt: ILimitedActionPrompt;
18
+ }
19
+ export interface ILimitedActionPrompt {
20
+ __typename: string;
21
+ cta_type: string;
22
+ headline: IPromptHeadline;
23
+ subtext: IPromptSubtext;
24
+ }
25
+ export interface IPromptHeadline {
26
+ text: string;
27
+ entities: any[];
28
+ }
29
+ export interface IPromptSubtext {
30
+ text: string;
31
+ entities: any[];
32
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=LimitedVisibilityTweet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitedVisibilityTweet.js","sourceRoot":"","sources":["../../../../src/types/raw/base/LimitedVisibilityTweet.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,43 @@
1
+ import { IDataResult } from '../composite/DataResult';
2
+ import { IUser } from './User';
3
+ /**
4
+ * Represents the raw data of a single List.
5
+ *
6
+ * @public
7
+ */
8
+ export interface IList {
9
+ created_at: number;
10
+ default_banner_media: IDefaultBannerMedia;
11
+ default_banner_media_results: IDefaultBannerMediaResults;
12
+ description: string;
13
+ following: boolean;
14
+ id: string;
15
+ id_str: string;
16
+ is_member: boolean;
17
+ member_count: number;
18
+ mode: string;
19
+ muting: boolean;
20
+ name: string;
21
+ subscriber_count: number;
22
+ user_results: IDataResult<IUser>;
23
+ facepile_urls: string[];
24
+ followers_context: string;
25
+ members_context: string;
26
+ }
27
+ export interface IDefaultBannerMedia {
28
+ media_info: IBannerMediaInfo;
29
+ }
30
+ export interface IDefaultBannerMediaResults {
31
+ result: IBannerMediaResult;
32
+ }
33
+ export interface IBannerMediaResult {
34
+ id: string;
35
+ media_key: string;
36
+ media_id: string;
37
+ media_info: IBannerMediaInfo;
38
+ }
39
+ export interface IBannerMediaInfo {
40
+ original_img_url: string;
41
+ original_img_width: number;
42
+ original_img_height: number;
43
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=List.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/types/raw/base/List.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,43 @@
1
+ import { ERawMediaType } from '../../../enums/raw/Media';
2
+ /**
3
+ * Represents the raw data of a single Media.
4
+ *
5
+ * @public
6
+ */
7
+ export interface IMedia {
8
+ display_url: string;
9
+ expanded_url: string;
10
+ id_str: string;
11
+ media_url_https: string;
12
+ type: ERawMediaType;
13
+ url: string;
14
+ }
15
+ export interface IExtendedMedia extends IMedia {
16
+ media_key: string;
17
+ ext_media_availability: IMediaAvailability;
18
+ additional_media_info?: IAdditionalMediaInfo;
19
+ mediaStats?: IMediaStats;
20
+ video_info?: IVideoInfo;
21
+ }
22
+ export interface IMediaAvailability {
23
+ status: string;
24
+ }
25
+ export interface IAdditionalMediaInfo {
26
+ monetizable: boolean;
27
+ }
28
+ export interface IMediaStats {
29
+ viewCount: number;
30
+ }
31
+ export interface IMediaAvailability {
32
+ status: string;
33
+ }
34
+ export interface IVideoInfo {
35
+ aspect_ratio: number[];
36
+ duration_millis: number;
37
+ variants: IVideoVariant[];
38
+ }
39
+ export interface IVideoVariant {
40
+ bitrate: number;
41
+ content_type: string;
42
+ url: string;
43
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Media.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,53 @@
1
+ import { ERawNotificationType } from '../../../enums/raw/Notification';
2
+ /**
3
+ * Represents the raw data of a single Notification.
4
+ *
5
+ * @public
6
+ */
7
+ export interface INotification {
8
+ id: string;
9
+ timestampMs: string;
10
+ icon: INotificationIcon;
11
+ message: INotificationMessage;
12
+ template: INotificationTemplate;
13
+ }
14
+ export interface INotificationIcon {
15
+ id: ERawNotificationType;
16
+ }
17
+ export interface INotificationMessage {
18
+ text: string;
19
+ entities: INotificationMessageEntity[];
20
+ rtl: boolean;
21
+ }
22
+ export interface INotificationMessageEntity {
23
+ fromIndex: number;
24
+ toIndex: number;
25
+ format: string;
26
+ }
27
+ export interface INotificationTemplate {
28
+ aggregateUserActionsV1: INotificationUserActions;
29
+ }
30
+ export interface INotificationUserActions {
31
+ targetObjects: INotificationTargetObject[];
32
+ fromUsers: INotificationFromUser[];
33
+ additionalContext: INotificationAdditionalContext;
34
+ }
35
+ export interface INotificationTargetObject {
36
+ tweet: INotificationTweet;
37
+ }
38
+ export interface INotificationTweet {
39
+ id: string;
40
+ }
41
+ export interface INotificationFromUser {
42
+ user: INotificationUser;
43
+ }
44
+ export interface INotificationUser {
45
+ id: string;
46
+ }
47
+ export interface INotificationAdditionalContext {
48
+ contextText: INotificationContextText;
49
+ }
50
+ export interface INotificationContextText {
51
+ text: string;
52
+ entities: any[];
53
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Notification.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,32 @@
1
+ import { IDataResult } from '../composite/DataResult';
2
+ import { IUser } from './User';
3
+ import { ITweet } from './Tweet';
4
+ /**
5
+ * Represents the raw data of a single Space.
6
+ *
7
+ * @public
8
+ */
9
+ export interface ISpace {
10
+ rest_id: string;
11
+ state: string;
12
+ title: string;
13
+ media_key: string;
14
+ created_at: number;
15
+ started_at: number;
16
+ ended_at: string;
17
+ replay_start_time: number;
18
+ updated_at: number;
19
+ creator_results: IDataResult<IUser>;
20
+ conversation_controls: number;
21
+ disallow_join: boolean;
22
+ is_employee_only: boolean;
23
+ is_locked: boolean;
24
+ is_muted: boolean;
25
+ is_space_available_for_clipping: boolean;
26
+ is_space_available_for_replay: boolean;
27
+ narrow_cast_space_type: number;
28
+ no_incognito: boolean;
29
+ total_replay_watched: number;
30
+ total_live_listeners: number;
31
+ tweet_results: IDataResult<ITweet>;
32
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Space.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Space.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Space.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,119 @@
1
+ import { IDataResult } from '../composite/DataResult';
2
+ import { IUser } from './User';
3
+ import { IMedia, IExtendedMedia } from './Media';
4
+ import { ILimitedVisibilityTweet } from './LimitedVisibilityTweet';
5
+ /**
6
+ * Represents the raw data of a single Tweet.
7
+ *
8
+ * @public
9
+ */
10
+ export interface ITweet {
11
+ __typename: string;
12
+ rest_id: string;
13
+ core: ITweetCore;
14
+ edit_control: ITweetEditControl;
15
+ edit_perspective: ITweetEditPerspective;
16
+ is_translatable: boolean;
17
+ views: ITweetViews;
18
+ source: string;
19
+ quoted_status_result: IDataResult<ITweet | ILimitedVisibilityTweet>;
20
+ note_tweet: ITweetNote;
21
+ legacy: ITweetLegacy;
22
+ quick_promote_eligibility: ITweetQuickPromoteEligibilityInfo;
23
+ }
24
+ export interface ITweetCore {
25
+ user_results: IDataResult<IUser>;
26
+ }
27
+ export interface ITweetEditControl {
28
+ edit_tweet_ids: string[];
29
+ editable_until_msecs: string;
30
+ is_edit_eligible: boolean;
31
+ edits_remaining: string;
32
+ }
33
+ export interface ITweetEditPerspective {
34
+ favorited: boolean;
35
+ retweeted: boolean;
36
+ }
37
+ export interface ITweetViews {
38
+ count: string;
39
+ state: string;
40
+ }
41
+ export interface ITweetNote {
42
+ is_expandable: boolean;
43
+ note_tweet_results: ITweetNoteResults;
44
+ }
45
+ export interface ITweetNoteResults {
46
+ result: ITweetNoteResult;
47
+ }
48
+ export interface ITweetNoteResult {
49
+ id: string;
50
+ text: string;
51
+ entity_set: IEntities;
52
+ richtext: IRichtext;
53
+ media: ITweetNoteMedia;
54
+ }
55
+ export interface IRichtext {
56
+ richtext_tags: IRichtextTag[];
57
+ }
58
+ export interface IRichtextTag {
59
+ from_index: number;
60
+ to_index: number;
61
+ richtext_types: string[];
62
+ }
63
+ export interface ITweetNoteMedia {
64
+ inline_media: any[];
65
+ }
66
+ export interface ITweetLegacy {
67
+ bookmark_count: number;
68
+ bookmarked: boolean;
69
+ created_at: string;
70
+ conversation_id_str: string;
71
+ display_text_range: number[];
72
+ entities: IEntities;
73
+ extended_entities: IExtendedEntities;
74
+ favorite_count: number;
75
+ favorited: boolean;
76
+ full_text: string;
77
+ in_reply_to_status_id_str: string;
78
+ is_quote_status: boolean;
79
+ lang: string;
80
+ possibly_sensitive: boolean;
81
+ possibly_sensitive_editable: boolean;
82
+ quote_count: number;
83
+ quoted_status_id_str: string;
84
+ reply_count: number;
85
+ retweet_count: number;
86
+ retweeted: boolean;
87
+ user_id_str: string;
88
+ id_str: string;
89
+ retweeted_status_result: IDataResult<ITweet | ILimitedVisibilityTweet>;
90
+ }
91
+ export interface IEntities {
92
+ media: IMedia[];
93
+ user_mentions: IUserMention[];
94
+ urls: IUrl[];
95
+ hashtags: IHashtag[];
96
+ symbols: any[];
97
+ }
98
+ export interface IUserMention {
99
+ id_str: string;
100
+ name: string;
101
+ screen_name: string;
102
+ indices: number[];
103
+ }
104
+ export interface IUrl {
105
+ display_url: string;
106
+ expanded_url: string;
107
+ url: string;
108
+ indices: number[];
109
+ }
110
+ export interface IHashtag {
111
+ indices: number[];
112
+ text: string;
113
+ }
114
+ export interface IExtendedEntities {
115
+ media: IExtendedMedia[];
116
+ }
117
+ export interface ITweetQuickPromoteEligibilityInfo {
118
+ eligibility: string;
119
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Tweet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tweet.js","sourceRoot":"","sources":["../../../../src/types/raw/base/Tweet.ts"],"names":[],"mappings":";AAAA,oBAAoB"}