x-twitter-scraper 0.12.4 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +30 -9
  3. package/client.d.mts +18 -15
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +18 -15
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +4 -4
  10. package/client.mjs.map +1 -1
  11. package/core/streaming.d.mts +33 -0
  12. package/core/streaming.d.mts.map +1 -0
  13. package/core/streaming.d.ts +33 -0
  14. package/core/streaming.d.ts.map +1 -0
  15. package/core/streaming.js +270 -0
  16. package/core/streaming.js.map +1 -0
  17. package/core/streaming.mjs +265 -0
  18. package/core/streaming.mjs.map +1 -0
  19. package/internal/decoders/line.d.mts +17 -0
  20. package/internal/decoders/line.d.mts.map +1 -0
  21. package/internal/decoders/line.d.ts +17 -0
  22. package/internal/decoders/line.d.ts.map +1 -0
  23. package/internal/decoders/line.js +116 -0
  24. package/internal/decoders/line.js.map +1 -0
  25. package/internal/decoders/line.mjs +111 -0
  26. package/internal/decoders/line.mjs.map +1 -0
  27. package/internal/parse.d.mts.map +1 -1
  28. package/internal/parse.d.ts.map +1 -1
  29. package/internal/parse.js +7 -0
  30. package/internal/parse.js.map +1 -1
  31. package/internal/parse.mjs +7 -0
  32. package/internal/parse.mjs.map +1 -1
  33. package/internal/tslib.js +18 -18
  34. package/package.json +23 -5
  35. package/resources/account.d.mts +35 -12
  36. package/resources/account.d.mts.map +1 -1
  37. package/resources/account.d.ts +35 -12
  38. package/resources/account.d.ts.map +1 -1
  39. package/resources/account.js +4 -3
  40. package/resources/account.js.map +1 -1
  41. package/resources/account.mjs +4 -3
  42. package/resources/account.mjs.map +1 -1
  43. package/resources/compose.d.mts +77 -21
  44. package/resources/compose.d.mts.map +1 -1
  45. package/resources/compose.d.ts +77 -21
  46. package/resources/compose.d.ts.map +1 -1
  47. package/resources/compose.js +3 -4
  48. package/resources/compose.js.map +1 -1
  49. package/resources/compose.mjs +3 -4
  50. package/resources/compose.mjs.map +1 -1
  51. package/resources/credits.d.mts +18 -10
  52. package/resources/credits.d.mts.map +1 -1
  53. package/resources/credits.d.ts +18 -10
  54. package/resources/credits.d.ts.map +1 -1
  55. package/resources/credits.js +5 -4
  56. package/resources/credits.js.map +1 -1
  57. package/resources/credits.mjs +5 -4
  58. package/resources/credits.mjs.map +1 -1
  59. package/resources/drafts.d.mts +13 -17
  60. package/resources/drafts.d.mts.map +1 -1
  61. package/resources/drafts.d.ts +13 -17
  62. package/resources/drafts.d.ts.map +1 -1
  63. package/resources/drafts.js +4 -4
  64. package/resources/drafts.mjs +4 -4
  65. package/resources/draws.d.mts +84 -28
  66. package/resources/draws.d.mts.map +1 -1
  67. package/resources/draws.d.ts +84 -28
  68. package/resources/draws.d.ts.map +1 -1
  69. package/resources/draws.js +24 -9
  70. package/resources/draws.js.map +1 -1
  71. package/resources/draws.mjs +24 -9
  72. package/resources/draws.mjs.map +1 -1
  73. package/resources/events.d.mts +2564 -21
  74. package/resources/events.d.mts.map +1 -1
  75. package/resources/events.d.ts +2564 -21
  76. package/resources/events.d.ts.map +1 -1
  77. package/resources/events.js +34 -2
  78. package/resources/events.js.map +1 -1
  79. package/resources/events.mjs +34 -2
  80. package/resources/events.mjs.map +1 -1
  81. package/resources/extractions.d.mts +410 -128
  82. package/resources/extractions.d.mts.map +1 -1
  83. package/resources/extractions.d.ts +410 -128
  84. package/resources/extractions.d.ts.map +1 -1
  85. package/resources/extractions.js +74 -12
  86. package/resources/extractions.js.map +1 -1
  87. package/resources/extractions.mjs +74 -12
  88. package/resources/extractions.mjs.map +1 -1
  89. package/resources/guest-wallets.d.mts +6 -5
  90. package/resources/guest-wallets.d.mts.map +1 -1
  91. package/resources/guest-wallets.d.ts +6 -5
  92. package/resources/guest-wallets.d.ts.map +1 -1
  93. package/resources/guest-wallets.js +2 -1
  94. package/resources/guest-wallets.js.map +1 -1
  95. package/resources/guest-wallets.mjs +2 -1
  96. package/resources/guest-wallets.mjs.map +1 -1
  97. package/resources/index.d.mts +6 -6
  98. package/resources/index.d.mts.map +1 -1
  99. package/resources/index.d.ts +6 -6
  100. package/resources/index.d.ts.map +1 -1
  101. package/resources/index.js.map +1 -1
  102. package/resources/index.mjs +1 -1
  103. package/resources/index.mjs.map +1 -1
  104. package/resources/monitors/index.d.mts +2 -2
  105. package/resources/monitors/index.d.mts.map +1 -1
  106. package/resources/monitors/index.d.ts +2 -2
  107. package/resources/monitors/index.d.ts.map +1 -1
  108. package/resources/monitors/index.js.map +1 -1
  109. package/resources/monitors/index.mjs.map +1 -1
  110. package/resources/monitors/keywords.d.mts +66 -14
  111. package/resources/monitors/keywords.d.mts.map +1 -1
  112. package/resources/monitors/keywords.d.ts +66 -14
  113. package/resources/monitors/keywords.d.ts.map +1 -1
  114. package/resources/monitors/keywords.js +16 -10
  115. package/resources/monitors/keywords.js.map +1 -1
  116. package/resources/monitors/keywords.mjs +16 -10
  117. package/resources/monitors/keywords.mjs.map +1 -1
  118. package/resources/monitors/monitors.d.mts +53 -16
  119. package/resources/monitors/monitors.d.mts.map +1 -1
  120. package/resources/monitors/monitors.d.ts +53 -16
  121. package/resources/monitors/monitors.d.ts.map +1 -1
  122. package/resources/monitors/monitors.js +12 -10
  123. package/resources/monitors/monitors.js.map +1 -1
  124. package/resources/monitors/monitors.mjs +12 -10
  125. package/resources/monitors/monitors.mjs.map +1 -1
  126. package/resources/radar.d.mts +32 -36
  127. package/resources/radar.d.mts.map +1 -1
  128. package/resources/radar.d.ts +32 -36
  129. package/resources/radar.d.ts.map +1 -1
  130. package/resources/radar.js +1 -1
  131. package/resources/radar.mjs +1 -1
  132. package/resources/shared.d.mts +1726 -233
  133. package/resources/shared.d.mts.map +1 -1
  134. package/resources/shared.d.ts +1726 -233
  135. package/resources/shared.d.ts.map +1 -1
  136. package/resources/styles.d.mts +34 -23
  137. package/resources/styles.d.mts.map +1 -1
  138. package/resources/styles.d.ts +34 -23
  139. package/resources/styles.d.ts.map +1 -1
  140. package/resources/styles.js +11 -13
  141. package/resources/styles.js.map +1 -1
  142. package/resources/styles.mjs +11 -13
  143. package/resources/styles.mjs.map +1 -1
  144. package/resources/subscribe.d.mts +1 -1
  145. package/resources/subscribe.d.ts +1 -1
  146. package/resources/subscribe.js +1 -1
  147. package/resources/subscribe.mjs +1 -1
  148. package/resources/support/index.d.mts +1 -1
  149. package/resources/support/index.d.mts.map +1 -1
  150. package/resources/support/index.d.ts +1 -1
  151. package/resources/support/index.d.ts.map +1 -1
  152. package/resources/support/index.js.map +1 -1
  153. package/resources/support/index.mjs.map +1 -1
  154. package/resources/support/support.d.mts +2 -2
  155. package/resources/support/support.d.mts.map +1 -1
  156. package/resources/support/support.d.ts +2 -2
  157. package/resources/support/support.d.ts.map +1 -1
  158. package/resources/support/support.js.map +1 -1
  159. package/resources/support/support.mjs.map +1 -1
  160. package/resources/support/tickets.d.mts +30 -10
  161. package/resources/support/tickets.d.mts.map +1 -1
  162. package/resources/support/tickets.d.ts +30 -10
  163. package/resources/support/tickets.d.ts.map +1 -1
  164. package/resources/support/tickets.js +7 -7
  165. package/resources/support/tickets.js.map +1 -1
  166. package/resources/support/tickets.mjs +7 -7
  167. package/resources/support/tickets.mjs.map +1 -1
  168. package/resources/trends.d.mts +21 -5
  169. package/resources/trends.d.mts.map +1 -1
  170. package/resources/trends.d.ts +21 -5
  171. package/resources/trends.d.ts.map +1 -1
  172. package/resources/trends.js +2 -1
  173. package/resources/trends.js.map +1 -1
  174. package/resources/trends.mjs +2 -1
  175. package/resources/trends.mjs.map +1 -1
  176. package/resources/webhooks.d.mts +80 -14
  177. package/resources/webhooks.d.mts.map +1 -1
  178. package/resources/webhooks.d.ts +80 -14
  179. package/resources/webhooks.d.ts.map +1 -1
  180. package/resources/webhooks.js +30 -11
  181. package/resources/webhooks.js.map +1 -1
  182. package/resources/webhooks.mjs +30 -11
  183. package/resources/webhooks.mjs.map +1 -1
  184. package/resources/x/account-connection-attempts.d.mts +1 -1
  185. package/resources/x/account-connection-attempts.d.ts +1 -1
  186. package/resources/x/account-connection-attempts.js +1 -1
  187. package/resources/x/account-connection-attempts.mjs +1 -1
  188. package/resources/x/account-connection-challenges.d.mts +30 -11
  189. package/resources/x/account-connection-challenges.d.mts.map +1 -1
  190. package/resources/x/account-connection-challenges.d.ts +30 -11
  191. package/resources/x/account-connection-challenges.d.ts.map +1 -1
  192. package/resources/x/account-connection-challenges.js +5 -4
  193. package/resources/x/account-connection-challenges.js.map +1 -1
  194. package/resources/x/account-connection-challenges.mjs +5 -4
  195. package/resources/x/account-connection-challenges.mjs.map +1 -1
  196. package/resources/x/accounts.d.mts +38 -10
  197. package/resources/x/accounts.d.mts.map +1 -1
  198. package/resources/x/accounts.d.ts +38 -10
  199. package/resources/x/accounts.d.ts.map +1 -1
  200. package/resources/x/accounts.js +8 -7
  201. package/resources/x/accounts.js.map +1 -1
  202. package/resources/x/accounts.mjs +8 -7
  203. package/resources/x/accounts.mjs.map +1 -1
  204. package/resources/x/analysis.d.mts +3274 -0
  205. package/resources/x/analysis.d.mts.map +1 -0
  206. package/resources/x/analysis.d.ts +3274 -0
  207. package/resources/x/analysis.d.ts.map +1 -0
  208. package/resources/x/analysis.js +132 -0
  209. package/resources/x/analysis.js.map +1 -0
  210. package/resources/x/analysis.mjs +128 -0
  211. package/resources/x/analysis.mjs.map +1 -0
  212. package/resources/x/bookmarks.d.mts +84 -9
  213. package/resources/x/bookmarks.d.mts.map +1 -1
  214. package/resources/x/bookmarks.d.ts +84 -9
  215. package/resources/x/bookmarks.d.ts.map +1 -1
  216. package/resources/x/bookmarks.js +6 -4
  217. package/resources/x/bookmarks.js.map +1 -1
  218. package/resources/x/bookmarks.mjs +6 -4
  219. package/resources/x/bookmarks.mjs.map +1 -1
  220. package/resources/x/broadcasts.d.mts +176 -0
  221. package/resources/x/broadcasts.d.mts.map +1 -0
  222. package/resources/x/broadcasts.d.ts +176 -0
  223. package/resources/x/broadcasts.d.ts.map +1 -0
  224. package/resources/x/broadcasts.js +29 -0
  225. package/resources/x/broadcasts.js.map +1 -0
  226. package/resources/x/broadcasts.mjs +25 -0
  227. package/resources/x/broadcasts.mjs.map +1 -0
  228. package/resources/x/communities/communities.d.mts +612 -128
  229. package/resources/x/communities/communities.d.mts.map +1 -1
  230. package/resources/x/communities/communities.d.ts +612 -128
  231. package/resources/x/communities/communities.d.ts.map +1 -1
  232. package/resources/x/communities/communities.js +96 -17
  233. package/resources/x/communities/communities.js.map +1 -1
  234. package/resources/x/communities/communities.mjs +96 -17
  235. package/resources/x/communities/communities.mjs.map +1 -1
  236. package/resources/x/communities/index.d.mts +2 -1
  237. package/resources/x/communities/index.d.mts.map +1 -1
  238. package/resources/x/communities/index.d.ts +2 -1
  239. package/resources/x/communities/index.d.ts.map +1 -1
  240. package/resources/x/communities/index.js +3 -1
  241. package/resources/x/communities/index.js.map +1 -1
  242. package/resources/x/communities/index.mjs +1 -0
  243. package/resources/x/communities/index.mjs.map +1 -1
  244. package/resources/x/communities/join.d.mts +46 -25
  245. package/resources/x/communities/join.d.mts.map +1 -1
  246. package/resources/x/communities/join.d.ts +46 -25
  247. package/resources/x/communities/join.d.ts.map +1 -1
  248. package/resources/x/communities/join.js +10 -7
  249. package/resources/x/communities/join.js.map +1 -1
  250. package/resources/x/communities/join.mjs +10 -7
  251. package/resources/x/communities/join.mjs.map +1 -1
  252. package/resources/x/communities/media.d.mts +197 -0
  253. package/resources/x/communities/media.d.mts.map +1 -0
  254. package/resources/x/communities/media.d.ts +197 -0
  255. package/resources/x/communities/media.d.ts.map +1 -0
  256. package/resources/x/communities/media.js +29 -0
  257. package/resources/x/communities/media.js.map +1 -0
  258. package/resources/x/communities/media.mjs +25 -0
  259. package/resources/x/communities/media.mjs.map +1 -0
  260. package/resources/x/communities/tweets.d.mts +350 -20
  261. package/resources/x/communities/tweets.d.mts.map +1 -1
  262. package/resources/x/communities/tweets.d.ts +350 -20
  263. package/resources/x/communities/tweets.d.ts.map +1 -1
  264. package/resources/x/communities/tweets.js +8 -7
  265. package/resources/x/communities/tweets.js.map +1 -1
  266. package/resources/x/communities/tweets.mjs +8 -7
  267. package/resources/x/communities/tweets.mjs.map +1 -1
  268. package/resources/x/dm.d.mts +245 -13
  269. package/resources/x/dm.d.mts.map +1 -1
  270. package/resources/x/dm.d.ts +245 -13
  271. package/resources/x/dm.d.ts.map +1 -1
  272. package/resources/x/dm.js +29 -2
  273. package/resources/x/dm.js.map +1 -1
  274. package/resources/x/dm.mjs +29 -2
  275. package/resources/x/dm.mjs.map +1 -1
  276. package/resources/x/followers.d.mts +31 -3
  277. package/resources/x/followers.d.mts.map +1 -1
  278. package/resources/x/followers.d.ts +31 -3
  279. package/resources/x/followers.d.ts.map +1 -1
  280. package/resources/x/followers.js +2 -1
  281. package/resources/x/followers.js.map +1 -1
  282. package/resources/x/followers.mjs +2 -1
  283. package/resources/x/followers.mjs.map +1 -1
  284. package/resources/x/index.d.mts +12 -8
  285. package/resources/x/index.d.mts.map +1 -1
  286. package/resources/x/index.d.ts +12 -8
  287. package/resources/x/index.d.ts.map +1 -1
  288. package/resources/x/index.js +9 -1
  289. package/resources/x/index.js.map +1 -1
  290. package/resources/x/index.mjs +5 -1
  291. package/resources/x/index.mjs.map +1 -1
  292. package/resources/x/jobs.d.mts +506 -0
  293. package/resources/x/jobs.d.mts.map +1 -0
  294. package/resources/x/jobs.d.ts +506 -0
  295. package/resources/x/jobs.d.ts.map +1 -0
  296. package/resources/x/jobs.js +60 -0
  297. package/resources/x/jobs.js.map +1 -0
  298. package/resources/x/jobs.mjs +56 -0
  299. package/resources/x/jobs.mjs.map +1 -0
  300. package/resources/x/lists.d.mts +1058 -27
  301. package/resources/x/lists.d.mts.map +1 -1
  302. package/resources/x/lists.d.ts +1058 -27
  303. package/resources/x/lists.d.ts.map +1 -1
  304. package/resources/x/lists.js +39 -9
  305. package/resources/x/lists.js.map +1 -1
  306. package/resources/x/lists.mjs +39 -9
  307. package/resources/x/lists.mjs.map +1 -1
  308. package/resources/x/media.d.mts +24 -13
  309. package/resources/x/media.d.mts.map +1 -1
  310. package/resources/x/media.d.ts +24 -13
  311. package/resources/x/media.d.ts.map +1 -1
  312. package/resources/x/media.js +2 -2
  313. package/resources/x/media.mjs +2 -2
  314. package/resources/x/profile.d.mts +60 -33
  315. package/resources/x/profile.d.mts.map +1 -1
  316. package/resources/x/profile.d.ts +60 -33
  317. package/resources/x/profile.d.ts.map +1 -1
  318. package/resources/x/profile.js +3 -3
  319. package/resources/x/profile.mjs +3 -3
  320. package/resources/x/spaces.d.mts +857 -0
  321. package/resources/x/spaces.d.mts.map +1 -0
  322. package/resources/x/spaces.d.ts +857 -0
  323. package/resources/x/spaces.d.ts.map +1 -0
  324. package/resources/x/spaces.js +58 -0
  325. package/resources/x/spaces.js.map +1 -0
  326. package/resources/x/spaces.mjs +54 -0
  327. package/resources/x/spaces.mjs.map +1 -0
  328. package/resources/x/tweets/index.d.mts +1 -1
  329. package/resources/x/tweets/index.d.mts.map +1 -1
  330. package/resources/x/tweets/index.d.ts +1 -1
  331. package/resources/x/tweets/index.d.ts.map +1 -1
  332. package/resources/x/tweets/index.js.map +1 -1
  333. package/resources/x/tweets/index.mjs.map +1 -1
  334. package/resources/x/tweets/like.d.mts +38 -20
  335. package/resources/x/tweets/like.d.mts.map +1 -1
  336. package/resources/x/tweets/like.d.ts +38 -20
  337. package/resources/x/tweets/like.d.ts.map +1 -1
  338. package/resources/x/tweets/like.js +2 -2
  339. package/resources/x/tweets/like.mjs +2 -2
  340. package/resources/x/tweets/retweet.d.mts +38 -20
  341. package/resources/x/tweets/retweet.d.mts.map +1 -1
  342. package/resources/x/tweets/retweet.d.ts +38 -20
  343. package/resources/x/tweets/retweet.d.ts.map +1 -1
  344. package/resources/x/tweets/retweet.js +2 -2
  345. package/resources/x/tweets/retweet.mjs +2 -2
  346. package/resources/x/tweets/tweets.d.mts +2639 -326
  347. package/resources/x/tweets/tweets.d.mts.map +1 -1
  348. package/resources/x/tweets/tweets.d.ts +2639 -326
  349. package/resources/x/tweets/tweets.d.ts.map +1 -1
  350. package/resources/x/tweets/tweets.js +147 -21
  351. package/resources/x/tweets/tweets.js.map +1 -1
  352. package/resources/x/tweets/tweets.mjs +147 -21
  353. package/resources/x/tweets/tweets.mjs.map +1 -1
  354. package/resources/x/users/follow.d.mts +38 -20
  355. package/resources/x/users/follow.d.mts.map +1 -1
  356. package/resources/x/users/follow.d.ts +38 -20
  357. package/resources/x/users/follow.d.ts.map +1 -1
  358. package/resources/x/users/follow.js +2 -2
  359. package/resources/x/users/follow.mjs +2 -2
  360. package/resources/x/users/index.d.mts +1 -1
  361. package/resources/x/users/index.d.mts.map +1 -1
  362. package/resources/x/users/index.d.ts +1 -1
  363. package/resources/x/users/index.d.ts.map +1 -1
  364. package/resources/x/users/index.js.map +1 -1
  365. package/resources/x/users/index.mjs.map +1 -1
  366. package/resources/x/users/users.d.mts +3068 -457
  367. package/resources/x/users/users.d.mts.map +1 -1
  368. package/resources/x/users/users.d.ts +3068 -457
  369. package/resources/x/users/users.d.ts.map +1 -1
  370. package/resources/x/users/users.js +205 -22
  371. package/resources/x/users/users.js.map +1 -1
  372. package/resources/x/users/users.mjs +205 -22
  373. package/resources/x/users/users.mjs.map +1 -1
  374. package/resources/x/write-actions.d.mts +13 -6
  375. package/resources/x/write-actions.d.mts.map +1 -1
  376. package/resources/x/write-actions.d.ts +13 -6
  377. package/resources/x/write-actions.d.ts.map +1 -1
  378. package/resources/x/write-actions.js +1 -1
  379. package/resources/x/write-actions.mjs +1 -1
  380. package/resources/x/x.d.mts +864 -27
  381. package/resources/x/x.d.mts.map +1 -1
  382. package/resources/x/x.d.ts +864 -27
  383. package/resources/x/x.d.ts.map +1 -1
  384. package/resources/x/x.js +78 -5
  385. package/resources/x/x.js.map +1 -1
  386. package/resources/x/x.mjs +80 -7
  387. package/resources/x/x.mjs.map +1 -1
  388. package/skills/x-twitter-scraper/SKILL.md +99 -344
  389. package/skills/x-twitter-scraper/metadata.json +2 -2
  390. package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
  391. package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
  392. package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
  393. package/skills/x-twitter-scraper/references/types.md +0 -1
  394. package/skills/x-twitter-scraper/skill-card.md +5 -6
  395. package/skills/x-twitter-scraper/skillspector-report.md +6 -3
  396. package/skills/xquik-account-automation/LICENSE +21 -0
  397. package/skills/xquik-account-automation/SKILL.md +91 -0
  398. package/skills/xquik-social-research/SKILL.md +48 -55
  399. package/src/client.ts +47 -4
  400. package/src/core/streaming.ts +328 -0
  401. package/src/internal/decoders/line.ts +140 -0
  402. package/src/internal/parse.ts +9 -0
  403. package/src/resources/account.ts +41 -12
  404. package/src/resources/compose.ts +77 -21
  405. package/src/resources/credits.ts +19 -10
  406. package/src/resources/drafts.ts +13 -22
  407. package/src/resources/draws.ts +94 -36
  408. package/src/resources/events.ts +3225 -68
  409. package/src/resources/extractions.ts +512 -125
  410. package/src/resources/guest-wallets.ts +6 -5
  411. package/src/resources/index.ts +24 -1
  412. package/src/resources/monitors/index.ts +2 -0
  413. package/src/resources/monitors/keywords.ts +82 -14
  414. package/src/resources/monitors/monitors.ts +66 -14
  415. package/src/resources/radar.ts +32 -36
  416. package/src/resources/shared.ts +2227 -351
  417. package/src/resources/styles.ts +43 -27
  418. package/src/resources/subscribe.ts +1 -1
  419. package/src/resources/support/index.ts +1 -0
  420. package/src/resources/support/support.ts +2 -0
  421. package/src/resources/support/tickets.ts +38 -10
  422. package/src/resources/trends.ts +23 -5
  423. package/src/resources/webhooks.ts +109 -15
  424. package/src/resources/x/account-connection-attempts.ts +1 -1
  425. package/src/resources/x/account-connection-challenges.ts +39 -11
  426. package/src/resources/x/accounts.ts +46 -10
  427. package/src/resources/x/analysis.ts +3947 -0
  428. package/src/resources/x/bookmarks.ts +103 -9
  429. package/src/resources/x/broadcasts.ts +225 -0
  430. package/src/resources/x/communities/communities.ts +743 -141
  431. package/src/resources/x/communities/index.ts +9 -0
  432. package/src/resources/x/communities/join.ts +46 -23
  433. package/src/resources/x/communities/media.ts +251 -0
  434. package/src/resources/x/communities/tweets.ts +427 -20
  435. package/src/resources/x/dm.ts +334 -11
  436. package/src/resources/x/followers.ts +35 -3
  437. package/src/resources/x/index.ts +106 -1
  438. package/src/resources/x/jobs.ts +627 -0
  439. package/src/resources/x/lists.ts +1307 -28
  440. package/src/resources/x/media.ts +24 -12
  441. package/src/resources/x/profile.ts +60 -30
  442. package/src/resources/x/spaces.ts +1076 -0
  443. package/src/resources/x/tweets/index.ts +18 -0
  444. package/src/resources/x/tweets/like.ts +38 -18
  445. package/src/resources/x/tweets/retweet.ts +38 -18
  446. package/src/resources/x/tweets/tweets.ts +3695 -843
  447. package/src/resources/x/users/follow.ts +38 -18
  448. package/src/resources/x/users/index.ts +22 -0
  449. package/src/resources/x/users/users.ts +3687 -465
  450. package/src/resources/x/write-actions.ts +13 -5
  451. package/src/resources/x/x.ts +1227 -15
  452. package/src/streaming.ts +6 -0
  453. package/src/version.ts +1 -1
  454. package/streaming.d.mts +3 -0
  455. package/streaming.d.mts.map +1 -0
  456. package/streaming.d.ts +3 -0
  457. package/streaming.d.ts.map +1 -0
  458. package/streaming.js +9 -0
  459. package/streaming.js.map +1 -0
  460. package/streaming.mjs +6 -0
  461. package/streaming.mjs.map +1 -0
  462. package/version.d.mts +1 -1
  463. package/version.d.ts +1 -1
  464. package/version.js +1 -1
  465. package/version.mjs +1 -1
  466. package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
@@ -23,6 +23,7 @@ import {
23
23
  AccountCreateParams,
24
24
  AccountCreateResponse,
25
25
  AccountDeleteResponse,
26
+ AccountListParams,
26
27
  AccountListResponse,
27
28
  AccountReauthParams,
28
29
  AccountReauthResponse,
@@ -30,16 +31,63 @@ import {
30
31
  XAccount,
31
32
  XAccountDetail,
32
33
  } from './accounts';
34
+ import * as AnalysisAPI from './analysis';
35
+ import {
36
+ Analysis,
37
+ AnalysisBrandParams,
38
+ AnalysisBrandResponse,
39
+ AnalysisClassifyParams,
40
+ AnalysisClassifyResponse,
41
+ AnalysisMarketSignalsParams,
42
+ AnalysisMarketSignalsResponse,
43
+ AnalysisNewsParams,
44
+ AnalysisNewsResponse,
45
+ AnalysisSentimentParams,
46
+ AnalysisSentimentResponse,
47
+ AnalysisViralScoreParams,
48
+ AnalysisViralScoreResponse,
49
+ } from './analysis';
33
50
  import * as BookmarksAPI from './bookmarks';
34
- import { BookmarkListParams, BookmarkRetrieveFoldersResponse, Bookmarks } from './bookmarks';
51
+ import {
52
+ BookmarkListParams,
53
+ BookmarkRetrieveFoldersParams,
54
+ BookmarkRetrieveFoldersResponse,
55
+ Bookmarks,
56
+ } from './bookmarks';
57
+ import * as BroadcastsAPI from './broadcasts';
58
+ import { BroadcastRetrieveParams, BroadcastRetrieveResponse, Broadcasts } from './broadcasts';
35
59
  import * as DmAPI from './dm';
36
- import { Dm, DmRetrieveHistoryParams, DmRetrieveHistoryResponse, DmSendParams, DmSendResponse } from './dm';
60
+ import {
61
+ Dm,
62
+ DmDeleteMessageParams,
63
+ DmDeleteMessageResponse,
64
+ DmRetrieveHistoryParams,
65
+ DmRetrieveHistoryResponse,
66
+ DmSendParams,
67
+ DmSendResponse,
68
+ } from './dm';
37
69
  import * as FollowersAPI from './followers';
38
70
  import { FollowerCheckParams, FollowerCheckResponse, Followers } from './followers';
71
+ import * as JobsAPI from './jobs';
72
+ import {
73
+ JobListLocationsParams,
74
+ JobListLocationsResponse,
75
+ JobRetrieveParams,
76
+ JobRetrieveResponse,
77
+ JobSearchParams,
78
+ JobSearchResponse,
79
+ Jobs,
80
+ } from './jobs';
39
81
  import * as ListsAPI from './lists';
40
82
  import {
41
83
  ListRetrieveFollowersParams,
84
+ ListRetrieveFollowersResponse,
42
85
  ListRetrieveMembersParams,
86
+ ListRetrieveMembersResponse,
87
+ ListRetrieveParams,
88
+ ListRetrieveResponse,
89
+ ListRetrieveSearchParams,
90
+ ListRetrieveSearchResponse,
43
91
  ListRetrieveTweetsParams,
44
92
  Lists,
45
93
  } from './lists';
@@ -61,6 +109,16 @@ import {
61
109
  ProfileUpdateParams,
62
110
  ProfileUpdateResponse,
63
111
  } from './profile';
112
+ import * as SpacesAPI from './spaces';
113
+ import {
114
+ SpaceRetrieveParams,
115
+ SpaceRetrieveReplayParams,
116
+ SpaceRetrieveReplayResponse,
117
+ SpaceRetrieveResponse,
118
+ SpaceSearchParams,
119
+ SpaceSearchResponse,
120
+ Spaces,
121
+ } from './spaces';
64
122
  import * as WriteActionsAPI from './write-actions';
65
123
  import { WriteActionRetrieveResponse, WriteActions } from './write-actions';
66
124
  import * as CommunitiesAPI from './communities/communities';
@@ -70,50 +128,98 @@ import {
70
128
  CommunityCreateResponse,
71
129
  CommunityDeleteParams,
72
130
  CommunityDeleteResponse,
131
+ CommunityFindParams,
132
+ CommunityListPopularParams,
133
+ CommunityListSuggestedParams,
134
+ CommunityListSuggestedResponse,
135
+ CommunityListTopicsParams,
136
+ CommunityListTopicsResponse,
137
+ CommunityRetrieveInfoParams,
73
138
  CommunityRetrieveInfoResponse,
74
139
  CommunityRetrieveMembersParams,
75
140
  CommunityRetrieveModeratorsParams,
76
141
  CommunityRetrieveSearchParams,
142
+ CommunitySearchMembersParams,
77
143
  } from './communities/communities';
78
144
  import * as TweetsAPI from './tweets/tweets';
79
145
  import {
80
146
  TweetAuthor,
147
+ TweetCheckRepostParams,
148
+ TweetCheckRepostResponse,
81
149
  TweetCreateParams,
82
150
  TweetCreateResponse,
83
151
  TweetDeleteParams,
84
152
  TweetDeleteResponse,
85
153
  TweetDetail,
154
+ TweetEmbedParams,
155
+ TweetEmbedResponse,
86
156
  TweetGetFavoritersParams,
157
+ TweetGetHiddenRepliesParams,
158
+ TweetGetInsightsParams,
159
+ TweetGetInsightsResponse,
87
160
  TweetGetQuotesParams,
88
161
  TweetGetRepliesParams,
89
162
  TweetGetRepliesResponse,
163
+ TweetGetRetweeterIDsParams,
164
+ TweetGetRetweeterIDsResponse,
90
165
  TweetGetRetweetersParams,
166
+ TweetGetSubtitlesParams,
167
+ TweetGetSubtitlesResponse,
91
168
  TweetGetThreadParams,
92
169
  TweetListParams,
170
+ TweetListResponse,
171
+ TweetListTopParams,
172
+ TweetResolveLinksParams,
173
+ TweetResolveLinksResponse,
174
+ TweetRetrieveParams,
93
175
  TweetRetrieveResponse,
94
176
  TweetSearchParams,
95
177
  TweetSearchResponse,
178
+ TweetTranslateParams,
179
+ TweetTranslateResponse,
96
180
  Tweets,
97
181
  } from './tweets/tweets';
98
182
  import * as UsersAPI from './users/users';
99
183
  import {
100
184
  UserRemoveFollowerParams,
101
185
  UserRemoveFollowerResponse,
186
+ UserRetrieveAffiliatesParams,
187
+ UserRetrieveArticlesParams,
102
188
  UserRetrieveBatchParams,
103
189
  UserRetrieveBatchResponse,
190
+ UserRetrieveBatchTweetsParams,
191
+ UserRetrieveBatchTweetsResponse,
192
+ UserRetrieveFollowerIDsParams,
193
+ UserRetrieveFollowerIDsResponse,
104
194
  UserRetrieveFollowersParams,
105
195
  UserRetrieveFollowersResponse,
106
196
  UserRetrieveFollowersYouKnowParams,
197
+ UserRetrieveFollowingIDsParams,
198
+ UserRetrieveFollowingIDsResponse,
107
199
  UserRetrieveFollowingParams,
108
200
  UserRetrieveFollowingResponse,
201
+ UserRetrieveHighlightsParams,
202
+ UserRetrieveInsightsParams,
203
+ UserRetrieveInsightsResponse,
109
204
  UserRetrieveLikesParams,
205
+ UserRetrieveListMembershipsParams,
206
+ UserRetrieveListMembershipsResponse,
207
+ UserRetrieveListsParams,
208
+ UserRetrieveListsResponse,
209
+ UserRetrieveLiveParams,
210
+ UserRetrieveLiveResponse,
110
211
  UserRetrieveMediaParams,
111
212
  UserRetrieveMentionsParams,
213
+ UserRetrieveParams,
112
214
  UserRetrieveRepliesParams,
113
215
  UserRetrieveSearchParams,
216
+ UserRetrieveSimilarParams,
217
+ UserRetrieveSubscriptionsParams,
114
218
  UserRetrieveTweetsParams,
115
219
  UserRetrieveVerifiedFollowersParams,
116
220
  UserRetrieveVerifiedFollowersResponse,
221
+ UserTranslateBioParams,
222
+ UserTranslateBioResponse,
117
223
  Users,
118
224
  } from './users/users';
119
225
  import { APIPromise } from '../../core/api-promise';
@@ -122,9 +228,11 @@ import { path } from '../../internal/utils/path';
122
228
 
123
229
  export class X extends APIResource {
124
230
  writeActions: WriteActionsAPI.WriteActions = new WriteActionsAPI.WriteActions(this._client);
231
+ analysis: AnalysisAPI.Analysis = new AnalysisAPI.Analysis(this._client);
125
232
  tweets: TweetsAPI.Tweets = new TweetsAPI.Tweets(this._client);
126
233
  users: UsersAPI.Users = new UsersAPI.Users(this._client);
127
234
  followers: FollowersAPI.Followers = new FollowersAPI.Followers(this._client);
235
+ jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
128
236
  dm: DmAPI.Dm = new DmAPI.Dm(this._client);
129
237
  media: MediaAPI.Media = new MediaAPI.Media(this._client);
130
238
  profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
@@ -136,6 +244,27 @@ export class X extends APIResource {
136
244
  new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
137
245
  bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
138
246
  lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
247
+ broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
248
+ spaces: SpacesAPI.Spaces = new SpacesAPI.Spaces(this._client);
249
+
250
+ /**
251
+ * Returns the accounts, topics, hashtags & cashtags X suggests while someone types
252
+ * a search. X may rank them differently per request. Costs 1 credit per
253
+ * suggestion.
254
+ *
255
+ * @example
256
+ * ```ts
257
+ * const response = await client.x.autocompleteSearch({
258
+ * q: 'nasa',
259
+ * });
260
+ * ```
261
+ */
262
+ autocompleteSearch(
263
+ query: XAutocompleteSearchParams,
264
+ options?: RequestOptions,
265
+ ): APIPromise<XAutocompleteSearchResponse> {
266
+ return this._client.get('/x/search/autocomplete', { query, ...options });
267
+ }
139
268
 
140
269
  /**
141
270
  * Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
@@ -146,12 +275,35 @@ export class X extends APIResource {
146
275
  * const response = await client.x.getArticle('tweetId');
147
276
  * ```
148
277
  */
149
- getArticle(tweetID: string, options?: RequestOptions): APIPromise<XGetArticleResponse> {
150
- return this._client.get(path`/x/articles/${tweetID}`, options);
278
+ getArticle(
279
+ tweetID: string,
280
+ query: XGetArticleParams | null | undefined = {},
281
+ options?: RequestOptions,
282
+ ): APIPromise<XGetArticleResponse> {
283
+ return this._client.get(path`/x/articles/${tweetID}`, { query, ...options });
284
+ }
285
+
286
+ /**
287
+ * Returns X's hashflags, the custom emoji X shows after some hashtags. Lists the
288
+ * ones running now unless activeOnly is false. Each returned hashflag costs 1
289
+ * credit.
290
+ *
291
+ * @example
292
+ * ```ts
293
+ * const response = await client.x.getHashflags();
294
+ * ```
295
+ */
296
+ getHashflags(
297
+ query: XGetHashflagsParams | null | undefined = {},
298
+ options?: RequestOptions,
299
+ ): APIPromise<XGetHashflagsResponse> {
300
+ return this._client.get('/x/hashflags', { query, ...options });
151
301
  }
152
302
 
153
303
  /**
154
- * Get home timeline
304
+ * Returns the home timeline of 1 of your connected X accounts, else 424
305
+ * `account_required`. A cursor reads the next page from the same account. Results
306
+ * exclude X ads.
155
307
  *
156
308
  * @example
157
309
  * ```ts
@@ -166,7 +318,7 @@ export class X extends APIResource {
166
318
  }
167
319
 
168
320
  /**
169
- * Get notifications
321
+ * Returns your X account's notifications, else 424 `account_required`.
170
322
  *
171
323
  * @example
172
324
  * ```ts
@@ -181,7 +333,25 @@ export class X extends APIResource {
181
333
  }
182
334
 
183
335
  /**
184
- * Get trending hashtags and topics from X by region
336
+ * Returns the places X offers trends for. Pass a location's woeid to /x/trends.
337
+ * Each returned location costs 1 credit.
338
+ *
339
+ * @example
340
+ * ```ts
341
+ * const response = await client.x.getTrendLocations();
342
+ * ```
343
+ */
344
+ getTrendLocations(
345
+ query: XGetTrendLocationsParams | null | undefined = {},
346
+ options?: RequestOptions,
347
+ ): APIPromise<XGetTrendLocationsResponse> {
348
+ return this._client.get('/x/trends/locations', { query, ...options });
349
+ }
350
+
351
+ /**
352
+ * Returns X's current trends for a place you choose. Pick it by woeid, country or
353
+ * location name. Without one, trends are worldwide. Each request costs 1 credit,
354
+ * however many trends it returns.
185
355
  *
186
356
  * @example
187
357
  * ```ts
@@ -194,38 +364,344 @@ export class X extends APIResource {
194
364
  ): APIPromise<XGetTrendsResponse> {
195
365
  return this._client.get('/x/trends', { query, ...options });
196
366
  }
367
+
368
+ /**
369
+ * Finds places on X by name. Pass a place's id as place to /x/tweets/search to
370
+ * read posts tagged there. X ranks the places, so their order can differ between
371
+ * requests. Each returned place costs 1 credit.
372
+ *
373
+ * @example
374
+ * ```ts
375
+ * const response = await client.x.searchPlaces({ q: 'q' });
376
+ * ```
377
+ */
378
+ searchPlaces(query: XSearchPlacesParams, options?: RequestOptions): APIPromise<XSearchPlacesResponse> {
379
+ return this._client.get('/x/places/search', { query, ...options });
380
+ }
381
+ }
382
+
383
+ /**
384
+ * What X suggests for a partial search query. Each list keeps X's order. A list is
385
+ * empty when X suggests none of its type or types leaves it out.
386
+ */
387
+ export interface XAutocompleteSearchResponse {
388
+ /**
389
+ * Suggested stocks & crypto tokens.
390
+ */
391
+ cashtags: Array<XAutocompleteSearchResponse.Cashtag>;
392
+
393
+ /**
394
+ * Suggestions returned across all 4 lists. Each costs 1 credit.
395
+ */
396
+ count: number;
397
+
398
+ /**
399
+ * Suggested hashtags.
400
+ */
401
+ hashtags: Array<XAutocompleteSearchResponse.Hashtag>;
402
+
403
+ /**
404
+ * The query you sent, trimmed.
405
+ */
406
+ query: string;
407
+
408
+ /**
409
+ * Suggested search phrases that are not hashtags.
410
+ */
411
+ topics: Array<XAutocompleteSearchResponse.Topic>;
412
+
413
+ /**
414
+ * Suggested accounts.
415
+ */
416
+ users: Array<XAutocompleteSearchResponse.User>;
417
+ }
418
+
419
+ export namespace XAutocompleteSearchResponse {
420
+ /**
421
+ * A stock or crypto token X suggests for the query.
422
+ */
423
+ export interface Cashtag {
424
+ /**
425
+ * Ticker symbol without the $.
426
+ */
427
+ ticker: string;
428
+
429
+ /**
430
+ * Logo of the token's chain. Tokens only.
431
+ */
432
+ chainLogoUrl?: string;
433
+
434
+ /**
435
+ * Token contract address. Tokens only.
436
+ */
437
+ contractAddress?: string;
438
+
439
+ /**
440
+ * Currency of price & marketCap.
441
+ */
442
+ currency?: string;
443
+
444
+ /**
445
+ * Price change over the last 24 hours, in percent.
446
+ */
447
+ dailyChangePercent?: number;
448
+
449
+ /**
450
+ * Stock exchange. Stocks only.
451
+ */
452
+ exchangeShortName?: string;
453
+
454
+ /**
455
+ * Logo image URL.
456
+ */
457
+ logoUrl?: string;
458
+
459
+ /**
460
+ * Market capitalization as decimal text.
461
+ */
462
+ marketCap?: string;
463
+
464
+ /**
465
+ * Company or token name.
466
+ */
467
+ name?: string;
468
+
469
+ /**
470
+ * Latest price as decimal text, which keeps every digit.
471
+ */
472
+ price?: string;
473
+
474
+ /**
475
+ * X's tag for the asset. $TICKER for a stock, chain:contract for a token.
476
+ */
477
+ smartTag?: string;
478
+ }
479
+
480
+ /**
481
+ * A hashtag X suggests for the query.
482
+ */
483
+ export interface Hashtag {
484
+ /**
485
+ * Suggested hashtag, with its
486
+ */
487
+ hashtag: string;
488
+
489
+ /**
490
+ * X's inline flag for the hashtag.
491
+ */
492
+ inline?: boolean;
493
+
494
+ /**
495
+ * X's rounded relevance score for the hashtag.
496
+ */
497
+ score?: number;
498
+
499
+ /**
500
+ * Normalized text tokens X matches the hashtag by.
501
+ */
502
+ tokens?: Array<string>;
503
+ }
504
+
505
+ /**
506
+ * A search phrase X suggests for the query.
507
+ */
508
+ export interface Topic {
509
+ /**
510
+ * Suggested search phrase.
511
+ */
512
+ topic: string;
513
+
514
+ /**
515
+ * X's inline flag for the phrase.
516
+ */
517
+ inline?: boolean;
518
+
519
+ /**
520
+ * X's rounded relevance score for the phrase.
521
+ */
522
+ score?: number;
523
+
524
+ /**
525
+ * Normalized text tokens X matches the phrase by.
526
+ */
527
+ tokens?: Array<string>;
528
+ }
529
+
530
+ /**
531
+ * An account X suggests for the query.
532
+ */
533
+ export interface User {
534
+ /**
535
+ * X user ID.
536
+ */
537
+ id: string;
538
+
539
+ /**
540
+ * Display name.
541
+ */
542
+ name: string;
543
+
544
+ /**
545
+ * Handle without the @.
546
+ */
547
+ username: string;
548
+
549
+ /**
550
+ * Affiliation badges X shows beside the name.
551
+ */
552
+ badges?: Array<User.Badge>;
553
+
554
+ /**
555
+ * X's inline flag for the account.
556
+ */
557
+ inline?: boolean;
558
+
559
+ /**
560
+ * Whether X shows a blue verification badge.
561
+ */
562
+ isBlueVerified?: boolean;
563
+
564
+ /**
565
+ * X's flag for whether media can be generated from this account's persona.
566
+ */
567
+ isPersonaMediaGenable?: boolean;
568
+
569
+ /**
570
+ * Whether the account holds X's legacy verification.
571
+ */
572
+ isVerified?: boolean;
573
+
574
+ /**
575
+ * Public profile location text. Omitted when empty.
576
+ */
577
+ location?: string;
578
+
579
+ /**
580
+ * Avatar URL.
581
+ */
582
+ profilePicture?: string;
583
+
584
+ /**
585
+ * Whether the account protects its posts.
586
+ */
587
+ protected?: boolean;
588
+
589
+ /**
590
+ * X's rounded relevance score for the account.
591
+ */
592
+ score?: number;
593
+
594
+ /**
595
+ * Normalized text tokens X matches the account by.
596
+ */
597
+ tokens?: Array<string>;
598
+
599
+ /**
600
+ * Whether X shows any verification badge.
601
+ */
602
+ verified?: boolean;
603
+
604
+ /**
605
+ * Verification category, such as Government or Business. Omitted when X names
606
+ * none.
607
+ */
608
+ verifiedType?: string;
609
+ }
610
+
611
+ export namespace User {
612
+ /**
613
+ * 1 affiliation badge.
614
+ */
615
+ export interface Badge {
616
+ /**
617
+ * Kind of badge.
618
+ */
619
+ badgeType?: string;
620
+
621
+ /**
622
+ * Badge image URL.
623
+ */
624
+ badgeUrl?: string;
625
+
626
+ /**
627
+ * Name of the affiliated account.
628
+ */
629
+ description?: string;
630
+ }
631
+ }
197
632
  }
198
633
 
199
634
  export interface XGetArticleResponse {
200
635
  article: XGetArticleResponse.Article;
201
636
 
202
637
  /**
203
- * X Article author profile fields returned when available.
638
+ * Available X Article author fields.
204
639
  */
205
640
  author?: XGetArticleResponse.Author;
206
641
  }
207
642
 
208
643
  export namespace XGetArticleResponse {
209
644
  export interface Article {
645
+ /**
646
+ * X's ID for the Article, which differs from its post's ID
647
+ */
648
+ articleId?: string;
649
+
650
+ /**
651
+ * Article blocks as Markdown, with headings, lists, bold, italic, links, images &
652
+ * embedded posts as their x.com URLs. Holds no HTML.
653
+ */
654
+ bodyMarkdown?: string;
655
+
210
656
  /**
211
657
  * Plain text joined from all article blocks
212
658
  */
213
659
  bodyText?: string;
214
660
 
661
+ /**
662
+ * Accounts that bookmarked the Article's post. 0 or more.
663
+ */
664
+ bookmarkCount?: number;
665
+
215
666
  contents?: Array<Article.Content>;
216
667
 
217
668
  coverImageUrl?: string;
218
669
 
670
+ /**
671
+ * Public metadata whose fields are defined by X.
672
+ */
673
+ coverMedia?: { [key: string]: unknown };
674
+
219
675
  createdAt?: string;
220
676
 
677
+ /**
678
+ * Public metadata whose fields are defined by X.
679
+ */
680
+ lifecycleState?: { [key: string]: unknown };
681
+
221
682
  likeCount?: number;
222
683
 
684
+ /**
685
+ * Public metadata whose fields are defined by X.
686
+ */
687
+ metadata?: { [key: string]: unknown };
688
+
223
689
  previewText?: string;
224
690
 
225
691
  quoteCount?: number;
226
692
 
227
693
  replyCount?: number;
228
694
 
695
+ /**
696
+ * Reposts of the Article's post. 0 or more.
697
+ */
698
+ retweetCount?: number;
699
+
700
+ /**
701
+ * X's summary of the Article, when X has one
702
+ */
703
+ summaryText?: string;
704
+
229
705
  title?: string;
230
706
 
231
707
  viewCount?: number;
@@ -233,6 +709,24 @@ export namespace XGetArticleResponse {
233
709
 
234
710
  export namespace Article {
235
711
  export interface Content {
712
+ /**
713
+ * Alt text of the image or preview image
714
+ */
715
+ altText?: string;
716
+
717
+ /**
718
+ * Caption the author wrote under a media block
719
+ */
720
+ caption?: string;
721
+
722
+ /**
723
+ * Length of a video, in milliseconds
724
+ */
725
+ durationMs?: number;
726
+
727
+ /**
728
+ * Height of the image or preview image
729
+ */
236
730
  height?: number;
237
731
 
238
732
  /**
@@ -241,24 +735,47 @@ export namespace XGetArticleResponse {
241
735
  inlineStyleRanges?: Array<Content.InlineStyleRange>;
242
736
 
243
737
  /**
244
- * Preview image URL for media blocks
738
+ * Links in the block's text, with the text range each covers
739
+ */
740
+ links?: Array<Content.Link>;
741
+
742
+ /**
743
+ * What a media block holds
744
+ */
745
+ mediaType?: 'image' | 'video' | 'gif';
746
+
747
+ /**
748
+ * Image of a media block, or the preview image of a video or GIF
245
749
  */
246
750
  previewUrl?: string;
247
751
 
248
752
  text?: string;
249
753
 
754
+ /**
755
+ * ID of the post a tweet block embeds
756
+ */
757
+ tweetId?: string;
758
+
250
759
  /**
251
760
  * Block type: paragraph, header-one, header-two, header-three, header-four,
252
761
  * header-five, header-six, unordered-list-item, ordered-list-item, blockquote,
253
- * code-block, media, divider
762
+ * code-block, markdown, media, tweet, divider
254
763
  */
255
764
  type?: string;
256
765
 
257
766
  /**
258
- * Media URL for media blocks
767
+ * Image URL of an image block. A video or GIF block lists its files in `variants`.
259
768
  */
260
769
  url?: string;
261
770
 
771
+ /**
772
+ * Files of a video or GIF block, in X's order
773
+ */
774
+ variants?: Array<Content.Variant>;
775
+
776
+ /**
777
+ * Width of the image or preview image
778
+ */
262
779
  width?: number;
263
780
  }
264
781
 
@@ -268,13 +785,32 @@ export namespace XGetArticleResponse {
268
785
 
269
786
  offset?: number;
270
787
 
788
+ /**
789
+ * X's name for the style, such as Bold or Italic
790
+ */
271
791
  style?: string;
272
792
  }
793
+
794
+ export interface Link {
795
+ length?: number;
796
+
797
+ offset?: number;
798
+
799
+ url?: string;
800
+ }
801
+
802
+ export interface Variant {
803
+ contentType: string;
804
+
805
+ url: string;
806
+
807
+ bitrate?: number;
808
+ }
273
809
  }
274
810
  }
275
811
 
276
812
  /**
277
- * X Article author profile fields returned when available.
813
+ * Available X Article author fields.
278
814
  */
279
815
  export interface Author {
280
816
  id: string;
@@ -287,10 +823,19 @@ export namespace XGetArticleResponse {
287
823
 
288
824
  description?: string;
289
825
 
826
+ /**
827
+ * Whole number from 0.
828
+ */
290
829
  favouritesCount?: number;
291
830
 
831
+ /**
832
+ * Whole number from 0.
833
+ */
292
834
  followersCount?: number;
293
835
 
836
+ /**
837
+ * Whole number from 0.
838
+ */
294
839
  followingCount?: number;
295
840
 
296
841
  isBlueVerified?: boolean;
@@ -301,6 +846,9 @@ export namespace XGetArticleResponse {
301
846
 
302
847
  location?: string;
303
848
 
849
+ /**
850
+ * Whole number from 0.
851
+ */
304
852
  mediaCount?: number;
305
853
 
306
854
  profileBannerUrl?: string;
@@ -309,12 +857,90 @@ export namespace XGetArticleResponse {
309
857
 
310
858
  protected?: boolean;
311
859
 
860
+ /**
861
+ * Whole number from 0.
862
+ */
312
863
  statusesCount?: number;
313
864
 
314
865
  url?: string;
315
866
  }
316
867
  }
317
868
 
869
+ export interface XGetHashflagsResponse {
870
+ /**
871
+ * Hashflags returned & charged.
872
+ */
873
+ count: number;
874
+
875
+ hashflags: Array<XGetHashflagsResponse.Hashflag>;
876
+
877
+ /**
878
+ * Hashflags that match the filters, before limit.
879
+ */
880
+ total: number;
881
+
882
+ /**
883
+ * What to send instead. Present only when no hashflag matches.
884
+ */
885
+ message?: string;
886
+ }
887
+
888
+ export namespace XGetHashflagsResponse {
889
+ /**
890
+ * A custom emoji X shows after a hashtag for a set time.
891
+ */
892
+ export interface Hashflag {
893
+ /**
894
+ * Animations X plays for the hashtag, such as on a like. Often empty.
895
+ */
896
+ animations: Array<Hashflag.Animation>;
897
+
898
+ /**
899
+ * Image of the emoji.
900
+ */
901
+ assetUrl: string;
902
+
903
+ /**
904
+ * When X stops showing the emoji, in UTC.
905
+ */
906
+ endsAt: string;
907
+
908
+ /**
909
+ * Hashtag text without the hash sign. X also lists some plain phrases.
910
+ */
911
+ hashtag: string;
912
+
913
+ /**
914
+ * Whether X marks the hashflag for its hashfetti effect.
915
+ */
916
+ isHashfettiEnabled: boolean;
917
+
918
+ /**
919
+ * When X starts showing the emoji, in UTC.
920
+ */
921
+ startsAt: string;
922
+ }
923
+
924
+ export namespace Hashflag {
925
+ export interface Animation {
926
+ /**
927
+ * Animation file.
928
+ */
929
+ assetUrl: string;
930
+
931
+ /**
932
+ * What plays the animation, such as Like.
933
+ */
934
+ context: string | null;
935
+
936
+ /**
937
+ * X's order among the animations of a hashtag.
938
+ */
939
+ priority: number | null;
940
+ }
941
+ }
942
+ }
943
+
318
944
  export interface XGetNotificationsResponse {
319
945
  has_next_page: boolean;
320
946
 
@@ -335,12 +961,81 @@ export namespace XGetNotificationsResponse {
335
961
  }
336
962
  }
337
963
 
964
+ export interface XGetTrendLocationsResponse {
965
+ /**
966
+ * Locations returned & charged.
967
+ */
968
+ count: number;
969
+
970
+ locations: Array<XGetTrendLocationsResponse.Location>;
971
+
972
+ /**
973
+ * Locations that match the filters, before limit.
974
+ */
975
+ total: number;
976
+
977
+ /**
978
+ * What to send instead. Present only when no location matches.
979
+ */
980
+ message?: string;
981
+ }
982
+
983
+ export namespace XGetTrendLocationsResponse {
984
+ /**
985
+ * A place X offers trends for.
986
+ */
987
+ export interface Location {
988
+ /**
989
+ * Country name. Null for Worldwide.
990
+ */
991
+ country: string | null;
992
+
993
+ /**
994
+ * 2-letter country code. Null for Worldwide.
995
+ */
996
+ countryCode: string | null;
997
+
998
+ name: string;
999
+
1000
+ /**
1001
+ * WOEID of the country or region above it. Null for Worldwide.
1002
+ */
1003
+ parentWoeid: number | null;
1004
+
1005
+ /**
1006
+ * X's kind of place. Town, Country, Supername for Worldwide, or Unknown.
1007
+ */
1008
+ placeType: string | null;
1009
+
1010
+ /**
1011
+ * X's numeric code for the kind of place.
1012
+ */
1013
+ placeTypeCode: number | null;
1014
+
1015
+ /**
1016
+ * X's legacy Yahoo GeoPlanet reference. It may not resolve.
1017
+ */
1018
+ url: string | null;
1019
+
1020
+ /**
1021
+ * Location ID. Pass it as woeid to /x/trends.
1022
+ */
1023
+ woeid: number;
1024
+ }
1025
+ }
1026
+
338
1027
  export interface XGetTrendsResponse {
339
1028
  count: number;
340
1029
 
341
1030
  trends: Array<XGetTrendsResponse.Trend>;
342
1031
 
343
1032
  woeid: number;
1033
+
1034
+ /**
1035
+ * The place country or location named. Absent when woeid picked the place or the
1036
+ * request named none.
1037
+ */
1038
+ location?: XGetTrendsResponse.Location;
344
1039
  }
345
1040
 
346
1041
  export namespace XGetTrendsResponse {
@@ -368,11 +1063,316 @@ export namespace XGetTrendsResponse {
368
1063
  */
369
1064
  url?: string;
370
1065
  }
1066
+
1067
+ /**
1068
+ * The place country or location named. Absent when woeid picked the place or the
1069
+ * request named none.
1070
+ */
1071
+ export interface Location {
1072
+ /**
1073
+ * Country name. Null for Worldwide.
1074
+ */
1075
+ country: string | null;
1076
+
1077
+ /**
1078
+ * 2-letter country code. Null for Worldwide.
1079
+ */
1080
+ countryCode: string | null;
1081
+
1082
+ name: string;
1083
+
1084
+ /**
1085
+ * WOEID of the country or region above it. Null for Worldwide.
1086
+ */
1087
+ parentWoeid: number | null;
1088
+
1089
+ /**
1090
+ * X's kind of place. Town, Country, Supername for Worldwide, or Unknown.
1091
+ */
1092
+ placeType: string | null;
1093
+
1094
+ /**
1095
+ * X's numeric code for the kind of place.
1096
+ */
1097
+ placeTypeCode: number | null;
1098
+
1099
+ /**
1100
+ * X's legacy Yahoo GeoPlanet reference. It may not resolve.
1101
+ */
1102
+ url: string | null;
1103
+
1104
+ /**
1105
+ * Location ID. Pass it as woeid to /x/trends.
1106
+ */
1107
+ woeid: number;
1108
+ }
1109
+ }
1110
+
1111
+ export interface XSearchPlacesResponse {
1112
+ /**
1113
+ * Places returned & charged.
1114
+ */
1115
+ count: number;
1116
+
1117
+ places: Array<XSearchPlacesResponse.Place>;
1118
+
1119
+ /**
1120
+ * Places X found, before limit.
1121
+ */
1122
+ total: number;
1123
+
1124
+ /**
1125
+ * What to send instead. Present only when X finds no place.
1126
+ */
1127
+ message?: string;
1128
+ }
1129
+
1130
+ export namespace XSearchPlacesResponse {
1131
+ /**
1132
+ * A place X found, with the larger places it lies in.
1133
+ */
1134
+ export interface Place {
1135
+ /**
1136
+ * Place ID. Pass it as place to /x/tweets/search.
1137
+ */
1138
+ id: string;
1139
+
1140
+ /**
1141
+ * Extra details X attaches to some places. Often empty.
1142
+ */
1143
+ attributes: { [key: string]: unknown };
1144
+
1145
+ /**
1146
+ * Outline of the place as GeoJSON. Each point holds longitude, then latitude.
1147
+ */
1148
+ boundingBox: Place.BoundingBox | null;
1149
+
1150
+ /**
1151
+ * Center of the place. Longitude, then latitude.
1152
+ */
1153
+ centroid: Array<number> | null;
1154
+
1155
+ /**
1156
+ * Larger places this place lies in. Often 1.
1157
+ */
1158
+ containedWithin: Array<Place.ContainedWithin>;
1159
+
1160
+ /**
1161
+ * Country the place lies in.
1162
+ */
1163
+ country: string | null;
1164
+
1165
+ /**
1166
+ * 2-letter code of the country the place lies in.
1167
+ */
1168
+ countryCode: string | null;
1169
+
1170
+ /**
1171
+ * Name with the region or country around the place.
1172
+ */
1173
+ fullName: string | null;
1174
+
1175
+ /**
1176
+ * Short name of the place.
1177
+ */
1178
+ name: string;
1179
+
1180
+ /**
1181
+ * X's kind of place, such as city, admin, neighborhood, poi or country.
1182
+ */
1183
+ placeType: string | null;
1184
+
1185
+ /**
1186
+ * X's own reference URL for the place.
1187
+ */
1188
+ url: string | null;
1189
+ }
1190
+
1191
+ export namespace Place {
1192
+ /**
1193
+ * Outline of the place as GeoJSON. Each point holds longitude, then latitude.
1194
+ */
1195
+ export interface BoundingBox {
1196
+ /**
1197
+ * Rings of points that draw the outline.
1198
+ */
1199
+ coordinates: Array<Array<Array<number>>>;
1200
+
1201
+ /**
1202
+ * GeoJSON shape of the outline.
1203
+ */
1204
+ type: string;
1205
+ }
1206
+
1207
+ /**
1208
+ * A place on X, such as a city or a neighborhood.
1209
+ */
1210
+ export interface ContainedWithin {
1211
+ /**
1212
+ * Place ID. Pass it as place to /x/tweets/search.
1213
+ */
1214
+ id: string;
1215
+
1216
+ /**
1217
+ * Extra details X attaches to some places. Often empty.
1218
+ */
1219
+ attributes: { [key: string]: unknown };
1220
+
1221
+ /**
1222
+ * Outline of the place as GeoJSON. Each point holds longitude, then latitude.
1223
+ */
1224
+ boundingBox: ContainedWithin.BoundingBox | null;
1225
+
1226
+ /**
1227
+ * Center of the place. Longitude, then latitude.
1228
+ */
1229
+ centroid: Array<number> | null;
1230
+
1231
+ /**
1232
+ * Country the place lies in.
1233
+ */
1234
+ country: string | null;
1235
+
1236
+ /**
1237
+ * 2-letter code of the country the place lies in.
1238
+ */
1239
+ countryCode: string | null;
1240
+
1241
+ /**
1242
+ * Name with the region or country around the place.
1243
+ */
1244
+ fullName: string | null;
1245
+
1246
+ /**
1247
+ * Short name of the place.
1248
+ */
1249
+ name: string;
1250
+
1251
+ /**
1252
+ * X's kind of place, such as city, admin, neighborhood, poi or country.
1253
+ */
1254
+ placeType: string | null;
1255
+
1256
+ /**
1257
+ * X's own reference URL for the place.
1258
+ */
1259
+ url: string | null;
1260
+ }
1261
+
1262
+ export namespace ContainedWithin {
1263
+ /**
1264
+ * Outline of the place as GeoJSON. Each point holds longitude, then latitude.
1265
+ */
1266
+ export interface BoundingBox {
1267
+ /**
1268
+ * Rings of points that draw the outline.
1269
+ */
1270
+ coordinates: Array<Array<Array<number>>>;
1271
+
1272
+ /**
1273
+ * GeoJSON shape of the outline.
1274
+ */
1275
+ type: string;
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+
1281
+ export interface XAutocompleteSearchParams {
1282
+ /**
1283
+ * Text typed so far. Start with # for hashtags or $ for cashtags. A # query
1284
+ * returns hashtags & the accounts X suggests for it. Alias: query.
1285
+ */
1286
+ q: string;
1287
+
1288
+ /**
1289
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1290
+ * author.username. A list keeps the field in each item. Case & underscores do not
1291
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1292
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1293
+ * before any read. The price stays the same. SDK row types then hold only the
1294
+ * named fields.
1295
+ */
1296
+ fields?: string;
1297
+
1298
+ /**
1299
+ * Most suggestions to return: 1 to 100, default 20. Accounts fill it first, then
1300
+ * topics, hashtags & cashtags. Credits can return fewer. Aliases: pageSize, count,
1301
+ * max_results, maxItems, max_items & per_page.
1302
+ */
1303
+ limit?: number;
1304
+
1305
+ /**
1306
+ * Fields to drop from each row, comma-separated. It takes the same names as
1307
+ * fields. With fields, it drops from the kept fields.
1308
+ */
1309
+ omit?: string;
1310
+
1311
+ /**
1312
+ * Comma-separated suggestion types: users, topics, hashtags or cashtags. Omit for
1313
+ * all. With only hashtags or only cashtags, the query gets its # or $ when it
1314
+ * lacks one.
1315
+ */
1316
+ types?: string;
1317
+ }
1318
+
1319
+ export interface XGetArticleParams {
1320
+ /**
1321
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1322
+ * author.username. A list keeps the field in each item. Case & underscores do not
1323
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1324
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1325
+ * before any read. The price stays the same. SDK row types then hold only the
1326
+ * named fields.
1327
+ */
1328
+ fields?: string;
1329
+
1330
+ /**
1331
+ * Fields to drop from each row, comma-separated. It takes the same names as
1332
+ * fields. With fields, it drops from the kept fields.
1333
+ */
1334
+ omit?: string;
1335
+ }
1336
+
1337
+ export interface XGetHashflagsParams {
1338
+ /**
1339
+ * Keeps hashflags that run now. Send false to add ended & upcoming ones.
1340
+ */
1341
+ activeOnly?: boolean;
1342
+
1343
+ /**
1344
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1345
+ * author.username. A list keeps the field in each item. Case & underscores do not
1346
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1347
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1348
+ * before any read. The price stays the same. SDK row types then hold only the
1349
+ * named fields.
1350
+ */
1351
+ fields?: string;
1352
+
1353
+ /**
1354
+ * Maximum hashflags to return. Omit it for every match. Credits can return fewer.
1355
+ * Aliases pageSize, count, max_results, maxItems, max_items & per_page.
1356
+ */
1357
+ limit?: number;
1358
+
1359
+ /**
1360
+ * Fields to drop from each row, comma-separated. It takes the same names as
1361
+ * fields. With fields, it drops from the kept fields.
1362
+ */
1363
+ omit?: string;
1364
+
1365
+ /**
1366
+ * Text the hashtag contains, such as football. Case insensitive. A leading hash
1367
+ * sign is ignored. Alias query.
1368
+ */
1369
+ q?: string;
371
1370
  }
372
1371
 
373
1372
  export interface XGetHomeTimelineParams {
374
1373
  /**
375
- * Pagination cursor for timeline
1374
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
1375
+ * pagination_token or continuation_token.
376
1376
  */
377
1377
  cursor?: string;
378
1378
 
@@ -384,7 +1384,8 @@ export interface XGetHomeTimelineParams {
384
1384
 
385
1385
  export interface XGetNotificationsParams {
386
1386
  /**
387
- * Pagination cursor for notifications
1387
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
1388
+ * pagination_token or continuation_token.
388
1389
  */
389
1390
  cursor?: string;
390
1391
 
@@ -394,6 +1395,46 @@ export interface XGetNotificationsParams {
394
1395
  type?: 'All' | 'Verified' | 'Mentions';
395
1396
  }
396
1397
 
1398
+ export interface XGetTrendLocationsParams {
1399
+ /**
1400
+ * Country name or 2-letter code, such as Turkey or TR. Case insensitive. Returns
1401
+ * the country & its towns.
1402
+ */
1403
+ country?: string;
1404
+
1405
+ /**
1406
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1407
+ * author.username. A list keeps the field in each item. Case & underscores do not
1408
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1409
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1410
+ * before any read. The price stays the same. SDK row types then hold only the
1411
+ * named fields.
1412
+ */
1413
+ fields?: string;
1414
+
1415
+ /**
1416
+ * Maximum locations to return. Omit it for every match. Credits can return fewer.
1417
+ * Aliases pageSize, count, max_results, maxItems, max_items & per_page.
1418
+ */
1419
+ limit?: number;
1420
+
1421
+ /**
1422
+ * Fields to drop from each row, comma-separated. It takes the same names as
1423
+ * fields. With fields, it drops from the kept fields.
1424
+ */
1425
+ omit?: string;
1426
+
1427
+ /**
1428
+ * Kind of place. Case insensitive. X labels a few towns unknown.
1429
+ */
1430
+ placeType?: 'country' | 'town' | 'worldwide' | 'unknown';
1431
+
1432
+ /**
1433
+ * Text the location name contains, such as york. Case insensitive. Alias query.
1434
+ */
1435
+ q?: string;
1436
+ }
1437
+
397
1438
  export interface XGetTrendsParams {
398
1439
  /**
399
1440
  * Number of trending topics to return (1-50, default 30)
@@ -401,15 +1442,75 @@ export interface XGetTrendsParams {
401
1442
  count?: number;
402
1443
 
403
1444
  /**
404
- * Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey)
1445
+ * Country to read trends for, by name or 2-letter code, such as Turkey or TR. Case
1446
+ * insensitive.
1447
+ */
1448
+ country?: string;
1449
+
1450
+ /**
1451
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1452
+ * author.username. A list keeps the field in each item. Case & underscores do not
1453
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1454
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1455
+ * before any read. The price stays the same. SDK row types then hold only the
1456
+ * named fields.
1457
+ */
1458
+ fields?: string;
1459
+
1460
+ /**
1461
+ * Town or country to read trends for, by name, such as Istanbul. Case insensitive.
1462
+ * Add country when 2 towns share a name. /x/trends/locations lists every name.
1463
+ */
1464
+ location?: string;
1465
+
1466
+ /**
1467
+ * Fields to drop from each row, comma-separated. It takes the same names as
1468
+ * fields. With fields, it drops from the kept fields.
1469
+ */
1470
+ omit?: string;
1471
+
1472
+ /**
1473
+ * Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey). Wins over
1474
+ * country & location.
405
1475
  */
406
1476
  woeid?: number;
407
1477
  }
408
1478
 
1479
+ export interface XSearchPlacesParams {
1480
+ /**
1481
+ * Place name to search for, such as istanbul. Alias query.
1482
+ */
1483
+ q: string;
1484
+
1485
+ /**
1486
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1487
+ * author.username. A list keeps the field in each item. Case & underscores do not
1488
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1489
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1490
+ * before any read. The price stays the same. SDK row types then hold only the
1491
+ * named fields.
1492
+ */
1493
+ fields?: string;
1494
+
1495
+ /**
1496
+ * Maximum places to return. Omit it for every place X finds. Credits can return
1497
+ * fewer. Aliases pageSize, count, max_results, maxItems, max_items & per_page.
1498
+ */
1499
+ limit?: number;
1500
+
1501
+ /**
1502
+ * Fields to drop from each row, comma-separated. It takes the same names as
1503
+ * fields. With fields, it drops from the kept fields.
1504
+ */
1505
+ omit?: string;
1506
+ }
1507
+
409
1508
  X.WriteActions = WriteActions;
1509
+ X.Analysis = Analysis;
410
1510
  X.Tweets = Tweets;
411
1511
  X.Users = Users;
412
1512
  X.Followers = Followers;
1513
+ X.Jobs = Jobs;
413
1514
  X.Dm = Dm;
414
1515
  X.Media = Media;
415
1516
  X.Profile = Profile;
@@ -419,58 +1520,125 @@ X.AccountConnectionChallenges = AccountConnectionChallenges;
419
1520
  X.AccountConnectionAttempts = AccountConnectionAttempts;
420
1521
  X.Bookmarks = Bookmarks;
421
1522
  X.Lists = Lists;
1523
+ X.Broadcasts = Broadcasts;
1524
+ X.Spaces = Spaces;
422
1525
 
423
1526
  export declare namespace X {
424
1527
  export {
1528
+ type XAutocompleteSearchResponse as XAutocompleteSearchResponse,
425
1529
  type XGetArticleResponse as XGetArticleResponse,
1530
+ type XGetHashflagsResponse as XGetHashflagsResponse,
426
1531
  type XGetNotificationsResponse as XGetNotificationsResponse,
1532
+ type XGetTrendLocationsResponse as XGetTrendLocationsResponse,
427
1533
  type XGetTrendsResponse as XGetTrendsResponse,
1534
+ type XSearchPlacesResponse as XSearchPlacesResponse,
1535
+ type XAutocompleteSearchParams as XAutocompleteSearchParams,
1536
+ type XGetArticleParams as XGetArticleParams,
1537
+ type XGetHashflagsParams as XGetHashflagsParams,
428
1538
  type XGetHomeTimelineParams as XGetHomeTimelineParams,
429
1539
  type XGetNotificationsParams as XGetNotificationsParams,
1540
+ type XGetTrendLocationsParams as XGetTrendLocationsParams,
430
1541
  type XGetTrendsParams as XGetTrendsParams,
1542
+ type XSearchPlacesParams as XSearchPlacesParams,
431
1543
  };
432
1544
 
433
1545
  export { WriteActions as WriteActions, type WriteActionRetrieveResponse as WriteActionRetrieveResponse };
434
1546
 
1547
+ export {
1548
+ Analysis as Analysis,
1549
+ type AnalysisBrandResponse as AnalysisBrandResponse,
1550
+ type AnalysisClassifyResponse as AnalysisClassifyResponse,
1551
+ type AnalysisMarketSignalsResponse as AnalysisMarketSignalsResponse,
1552
+ type AnalysisNewsResponse as AnalysisNewsResponse,
1553
+ type AnalysisSentimentResponse as AnalysisSentimentResponse,
1554
+ type AnalysisViralScoreResponse as AnalysisViralScoreResponse,
1555
+ type AnalysisBrandParams as AnalysisBrandParams,
1556
+ type AnalysisClassifyParams as AnalysisClassifyParams,
1557
+ type AnalysisMarketSignalsParams as AnalysisMarketSignalsParams,
1558
+ type AnalysisNewsParams as AnalysisNewsParams,
1559
+ type AnalysisSentimentParams as AnalysisSentimentParams,
1560
+ type AnalysisViralScoreParams as AnalysisViralScoreParams,
1561
+ };
1562
+
435
1563
  export {
436
1564
  Tweets as Tweets,
437
1565
  type TweetAuthor as TweetAuthor,
438
1566
  type TweetDetail as TweetDetail,
439
1567
  type TweetCreateResponse as TweetCreateResponse,
440
1568
  type TweetRetrieveResponse as TweetRetrieveResponse,
1569
+ type TweetListResponse as TweetListResponse,
441
1570
  type TweetDeleteResponse as TweetDeleteResponse,
1571
+ type TweetCheckRepostResponse as TweetCheckRepostResponse,
1572
+ type TweetEmbedResponse as TweetEmbedResponse,
1573
+ type TweetGetInsightsResponse as TweetGetInsightsResponse,
442
1574
  type TweetGetRepliesResponse as TweetGetRepliesResponse,
1575
+ type TweetGetRetweeterIDsResponse as TweetGetRetweeterIDsResponse,
1576
+ type TweetGetSubtitlesResponse as TweetGetSubtitlesResponse,
1577
+ type TweetResolveLinksResponse as TweetResolveLinksResponse,
443
1578
  type TweetSearchResponse as TweetSearchResponse,
1579
+ type TweetTranslateResponse as TweetTranslateResponse,
444
1580
  type TweetCreateParams as TweetCreateParams,
1581
+ type TweetRetrieveParams as TweetRetrieveParams,
445
1582
  type TweetListParams as TweetListParams,
446
1583
  type TweetDeleteParams as TweetDeleteParams,
1584
+ type TweetCheckRepostParams as TweetCheckRepostParams,
1585
+ type TweetEmbedParams as TweetEmbedParams,
447
1586
  type TweetGetFavoritersParams as TweetGetFavoritersParams,
1587
+ type TweetGetHiddenRepliesParams as TweetGetHiddenRepliesParams,
1588
+ type TweetGetInsightsParams as TweetGetInsightsParams,
448
1589
  type TweetGetQuotesParams as TweetGetQuotesParams,
449
1590
  type TweetGetRepliesParams as TweetGetRepliesParams,
1591
+ type TweetGetRetweeterIDsParams as TweetGetRetweeterIDsParams,
450
1592
  type TweetGetRetweetersParams as TweetGetRetweetersParams,
1593
+ type TweetGetSubtitlesParams as TweetGetSubtitlesParams,
451
1594
  type TweetGetThreadParams as TweetGetThreadParams,
1595
+ type TweetListTopParams as TweetListTopParams,
1596
+ type TweetResolveLinksParams as TweetResolveLinksParams,
452
1597
  type TweetSearchParams as TweetSearchParams,
1598
+ type TweetTranslateParams as TweetTranslateParams,
453
1599
  };
454
1600
 
455
1601
  export {
456
1602
  Users as Users,
457
1603
  type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
458
1604
  type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
1605
+ type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
1606
+ type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
459
1607
  type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
460
1608
  type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
1609
+ type UserRetrieveFollowingIDsResponse as UserRetrieveFollowingIDsResponse,
1610
+ type UserRetrieveInsightsResponse as UserRetrieveInsightsResponse,
1611
+ type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse,
1612
+ type UserRetrieveListsResponse as UserRetrieveListsResponse,
1613
+ type UserRetrieveLiveResponse as UserRetrieveLiveResponse,
461
1614
  type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse,
1615
+ type UserTranslateBioResponse as UserTranslateBioResponse,
1616
+ type UserRetrieveParams as UserRetrieveParams,
462
1617
  type UserRemoveFollowerParams as UserRemoveFollowerParams,
1618
+ type UserRetrieveAffiliatesParams as UserRetrieveAffiliatesParams,
1619
+ type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
463
1620
  type UserRetrieveBatchParams as UserRetrieveBatchParams,
1621
+ type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
1622
+ type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
464
1623
  type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
465
1624
  type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
466
1625
  type UserRetrieveFollowingParams as UserRetrieveFollowingParams,
1626
+ type UserRetrieveFollowingIDsParams as UserRetrieveFollowingIDsParams,
1627
+ type UserRetrieveHighlightsParams as UserRetrieveHighlightsParams,
1628
+ type UserRetrieveInsightsParams as UserRetrieveInsightsParams,
467
1629
  type UserRetrieveLikesParams as UserRetrieveLikesParams,
1630
+ type UserRetrieveListMembershipsParams as UserRetrieveListMembershipsParams,
1631
+ type UserRetrieveListsParams as UserRetrieveListsParams,
1632
+ type UserRetrieveLiveParams as UserRetrieveLiveParams,
468
1633
  type UserRetrieveMediaParams as UserRetrieveMediaParams,
469
1634
  type UserRetrieveMentionsParams as UserRetrieveMentionsParams,
470
1635
  type UserRetrieveRepliesParams as UserRetrieveRepliesParams,
471
1636
  type UserRetrieveSearchParams as UserRetrieveSearchParams,
1637
+ type UserRetrieveSimilarParams as UserRetrieveSimilarParams,
1638
+ type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams,
472
1639
  type UserRetrieveTweetsParams as UserRetrieveTweetsParams,
473
1640
  type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams,
1641
+ type UserTranslateBioParams as UserTranslateBioParams,
474
1642
  };
475
1643
 
476
1644
  export {
@@ -479,10 +1647,22 @@ export declare namespace X {
479
1647
  type FollowerCheckParams as FollowerCheckParams,
480
1648
  };
481
1649
 
1650
+ export {
1651
+ Jobs as Jobs,
1652
+ type JobRetrieveResponse as JobRetrieveResponse,
1653
+ type JobListLocationsResponse as JobListLocationsResponse,
1654
+ type JobSearchResponse as JobSearchResponse,
1655
+ type JobRetrieveParams as JobRetrieveParams,
1656
+ type JobListLocationsParams as JobListLocationsParams,
1657
+ type JobSearchParams as JobSearchParams,
1658
+ };
1659
+
482
1660
  export {
483
1661
  Dm as Dm,
1662
+ type DmDeleteMessageResponse as DmDeleteMessageResponse,
484
1663
  type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse,
485
1664
  type DmSendResponse as DmSendResponse,
1665
+ type DmDeleteMessageParams as DmDeleteMessageParams,
486
1666
  type DmRetrieveHistoryParams as DmRetrieveHistoryParams,
487
1667
  type DmSendParams as DmSendParams,
488
1668
  };
@@ -509,12 +1689,20 @@ export declare namespace X {
509
1689
  Communities as Communities,
510
1690
  type CommunityCreateResponse as CommunityCreateResponse,
511
1691
  type CommunityDeleteResponse as CommunityDeleteResponse,
1692
+ type CommunityListSuggestedResponse as CommunityListSuggestedResponse,
1693
+ type CommunityListTopicsResponse as CommunityListTopicsResponse,
512
1694
  type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse,
513
1695
  type CommunityCreateParams as CommunityCreateParams,
514
1696
  type CommunityDeleteParams as CommunityDeleteParams,
1697
+ type CommunityFindParams as CommunityFindParams,
1698
+ type CommunityListPopularParams as CommunityListPopularParams,
1699
+ type CommunityListSuggestedParams as CommunityListSuggestedParams,
1700
+ type CommunityListTopicsParams as CommunityListTopicsParams,
1701
+ type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams,
515
1702
  type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams,
516
1703
  type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams,
517
1704
  type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams,
1705
+ type CommunitySearchMembersParams as CommunitySearchMembersParams,
518
1706
  };
519
1707
 
520
1708
  export {
@@ -527,6 +1715,7 @@ export declare namespace X {
527
1715
  type AccountBulkRetryResponse as AccountBulkRetryResponse,
528
1716
  type AccountReauthResponse as AccountReauthResponse,
529
1717
  type AccountCreateParams as AccountCreateParams,
1718
+ type AccountListParams as AccountListParams,
530
1719
  type AccountReauthParams as AccountReauthParams,
531
1720
  };
532
1721
 
@@ -545,12 +1734,35 @@ export declare namespace X {
545
1734
  Bookmarks as Bookmarks,
546
1735
  type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
547
1736
  type BookmarkListParams as BookmarkListParams,
1737
+ type BookmarkRetrieveFoldersParams as BookmarkRetrieveFoldersParams,
548
1738
  };
549
1739
 
550
1740
  export {
551
1741
  Lists as Lists,
1742
+ type ListRetrieveResponse as ListRetrieveResponse,
1743
+ type ListRetrieveFollowersResponse as ListRetrieveFollowersResponse,
1744
+ type ListRetrieveMembersResponse as ListRetrieveMembersResponse,
1745
+ type ListRetrieveSearchResponse as ListRetrieveSearchResponse,
1746
+ type ListRetrieveParams as ListRetrieveParams,
552
1747
  type ListRetrieveFollowersParams as ListRetrieveFollowersParams,
553
1748
  type ListRetrieveMembersParams as ListRetrieveMembersParams,
1749
+ type ListRetrieveSearchParams as ListRetrieveSearchParams,
554
1750
  type ListRetrieveTweetsParams as ListRetrieveTweetsParams,
555
1751
  };
1752
+
1753
+ export {
1754
+ Broadcasts as Broadcasts,
1755
+ type BroadcastRetrieveResponse as BroadcastRetrieveResponse,
1756
+ type BroadcastRetrieveParams as BroadcastRetrieveParams,
1757
+ };
1758
+
1759
+ export {
1760
+ Spaces as Spaces,
1761
+ type SpaceRetrieveResponse as SpaceRetrieveResponse,
1762
+ type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse,
1763
+ type SpaceSearchResponse as SpaceSearchResponse,
1764
+ type SpaceRetrieveParams as SpaceRetrieveParams,
1765
+ type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams,
1766
+ type SpaceSearchParams as SpaceSearchParams,
1767
+ };
556
1768
  }