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
@@ -0,0 +1,1076 @@
1
+ // SPDX-FileCopyrightText: 2026 Xquik contributors
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+
5
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6
+
7
+ import { APIResource } from '../../core/resource';
8
+ import * as Shared from '../shared';
9
+ import { APIPromise } from '../../core/api-promise';
10
+ import { RequestOptions } from '../../internal/request-options';
11
+ import { path } from '../../internal/utils/path';
12
+
13
+ /**
14
+ * X Space details, host, and speakers
15
+ */
16
+ export class Spaces extends APIResource {
17
+ /**
18
+ * Returns one X Space as X shows it, live, scheduled or ended. Accepts the Space
19
+ * ID or the URL-encoded Space URL. A Space X limits to subscribers or a community
20
+ * answers 404.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const space = await client.x.spaces.retrieve('id');
25
+ * ```
26
+ */
27
+ retrieve(
28
+ id: string,
29
+ query: SpaceRetrieveParams | null | undefined = {},
30
+ options?: RequestOptions,
31
+ ): APIPromise<SpaceRetrieveResponse> {
32
+ return this._client.get(path`/x/spaces/${id}`, { query, ...options });
33
+ }
34
+
35
+ /**
36
+ * Returns the recording X plays back once a Space is over, in state Ended or
37
+ * TimedOut. Accepts the Space ID or the URL-encoded Space URL. Check state and
38
+ * isAvailableForReplay with the Space lookup first. A live or scheduled Space
39
+ * answers 409, and a cancelled one 404.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const response = await client.x.spaces.retrieveReplay('id');
44
+ * ```
45
+ */
46
+ retrieveReplay(
47
+ id: string,
48
+ query: SpaceRetrieveReplayParams | null | undefined = {},
49
+ options?: RequestOptions,
50
+ ): APIPromise<SpaceRetrieveReplayResponse> {
51
+ return this._client.get(path`/x/spaces/${id}/replay`, { query, ...options });
52
+ }
53
+
54
+ /**
55
+ * Returns the public Spaces that posts matching the query share, live, scheduled
56
+ * or ended. Each page reads up to pageSize posts, 20 by default, and returns each
57
+ * Space once. Costs 1 credit per Space.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response = await client.x.spaces.search({
62
+ * q: 'from:solana',
63
+ * });
64
+ * ```
65
+ */
66
+ search(query: SpaceSearchParams, options?: RequestOptions): APIPromise<SpaceSearchResponse> {
67
+ return this._client.get('/x/spaces/search', { query, ...options });
68
+ }
69
+ }
70
+
71
+ export interface SpaceRetrieveResponse {
72
+ /**
73
+ * X Space
74
+ */
75
+ space: SpaceRetrieveResponse.Space;
76
+ }
77
+
78
+ export namespace SpaceRetrieveResponse {
79
+ /**
80
+ * X Space
81
+ */
82
+ export interface Space {
83
+ /**
84
+ * Space ID
85
+ */
86
+ id: string;
87
+
88
+ /**
89
+ * Hosts and co-hosts
90
+ */
91
+ admins: Array<Space.Admin>;
92
+
93
+ /**
94
+ * Accounts X lists as listeners
95
+ */
96
+ listeners: Array<Space.Listener>;
97
+
98
+ /**
99
+ * Accounts X lists as speakers
100
+ */
101
+ speakers: Array<Space.Speaker>;
102
+
103
+ /**
104
+ * Audio or video kind, as X names it
105
+ */
106
+ contentType?: string;
107
+
108
+ /**
109
+ * X's code for who may speak
110
+ */
111
+ conversationControls?: number;
112
+
113
+ /**
114
+ * When the Space was made
115
+ */
116
+ createdAt?: string;
117
+
118
+ /**
119
+ * Public X profile.
120
+ */
121
+ creator?: Shared.UserProfile;
122
+
123
+ /**
124
+ * Whether X lets no more accounts join
125
+ */
126
+ disallowJoin?: boolean;
127
+
128
+ /**
129
+ * When the Space ended
130
+ */
131
+ endedAt?: string;
132
+
133
+ /**
134
+ * Whether listeners may clip the Space
135
+ */
136
+ isAvailableForClipping?: boolean;
137
+
138
+ /**
139
+ * Whether X offers a recording
140
+ */
141
+ isAvailableForReplay?: boolean;
142
+
143
+ /**
144
+ * Whether only X employees may join
145
+ */
146
+ isEmployeeOnly?: boolean;
147
+
148
+ /**
149
+ * Whether the host locked the Space
150
+ */
151
+ isLocked?: boolean;
152
+
153
+ /**
154
+ * Most hosts and co-hosts the Space allows
155
+ */
156
+ maxAdminCapacity?: number;
157
+
158
+ /**
159
+ * X's media key for the Space's audio
160
+ */
161
+ mediaKey?: string;
162
+
163
+ /**
164
+ * IDs of the accounts the host tagged
165
+ */
166
+ mentionedUserIds?: Array<string>;
167
+
168
+ /**
169
+ * Whether anonymous listening is off
170
+ */
171
+ noIncognito?: boolean;
172
+
173
+ /**
174
+ * Accounts in the Space now, while it is live
175
+ */
176
+ participantCount?: number;
177
+
178
+ /**
179
+ * When the Space was set to start
180
+ */
181
+ scheduledStart?: string;
182
+
183
+ /**
184
+ * Posts the hosts and speakers shared in the Space, in X's order. Only when X
185
+ * lists them.
186
+ */
187
+ sharings?: Array<Space.Sharing>;
188
+
189
+ /**
190
+ * When the Space went live
191
+ */
192
+ startedAt?: string;
193
+
194
+ /**
195
+ * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
196
+ * started) or TimedOut (closed by X, not by its host)
197
+ */
198
+ state?: string;
199
+
200
+ /**
201
+ * Space title
202
+ */
203
+ title?: string;
204
+
205
+ /**
206
+ * Accounts that listened live
207
+ */
208
+ totalLiveListeners?: number;
209
+
210
+ /**
211
+ * Accounts that played the recording
212
+ */
213
+ totalReplayWatched?: number;
214
+
215
+ /**
216
+ * Search tweet with author. Zero metrics may mean X omitted counts.
217
+ */
218
+ tweet?: Shared.SearchTweet;
219
+
220
+ /**
221
+ * ID of the post that announces the Space
222
+ */
223
+ tweetId?: string;
224
+
225
+ /**
226
+ * When X last changed the Space
227
+ */
228
+ updatedAt?: string;
229
+ }
230
+
231
+ export namespace Space {
232
+ /**
233
+ * An account on a Space's stage or in its audience, as X lists it there.
234
+ */
235
+ export interface Admin {
236
+ id: string;
237
+
238
+ /**
239
+ * Name the account shows in the Space
240
+ */
241
+ name: string;
242
+
243
+ username: string;
244
+
245
+ /**
246
+ * Organization affiliation label shown on an X profile.
247
+ */
248
+ affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
249
+
250
+ /**
251
+ * Whether the account has X Premium verification
252
+ */
253
+ isBlueVerified?: boolean;
254
+
255
+ /**
256
+ * Whether a host muted the account
257
+ */
258
+ isMutedByAdmin?: boolean;
259
+
260
+ /**
261
+ * Whether the account muted itself
262
+ */
263
+ isMutedByGuest?: boolean;
264
+
265
+ /**
266
+ * Whether X shows a verified badge in the Space
267
+ */
268
+ isVerified?: boolean;
269
+
270
+ /**
271
+ * When the account joined the Space
272
+ */
273
+ joinedAt?: string;
274
+
275
+ /**
276
+ * The account's ID in X's broadcast service
277
+ */
278
+ periscopeUserId?: string;
279
+
280
+ /**
281
+ * Profile picture URL
282
+ */
283
+ profilePicture?: string;
284
+
285
+ /**
286
+ * Business or Government badge type
287
+ */
288
+ verifiedType?: string;
289
+ }
290
+
291
+ export namespace Admin {
292
+ /**
293
+ * Organization affiliation label shown on an X profile.
294
+ */
295
+ export interface AffiliatesHighlightedLabel {
296
+ badgeUrl?: string;
297
+
298
+ description?: string;
299
+
300
+ /**
301
+ * Public text, ranges, references, and mention data.
302
+ */
303
+ longDescription?: { [key: string]: unknown };
304
+
305
+ url?: string;
306
+
307
+ urlType?: string;
308
+
309
+ userLabelDisplayType?: string;
310
+
311
+ userLabelType?: string;
312
+ }
313
+ }
314
+
315
+ /**
316
+ * An account on a Space's stage or in its audience, as X lists it there.
317
+ */
318
+ export interface Listener {
319
+ id: string;
320
+
321
+ /**
322
+ * Name the account shows in the Space
323
+ */
324
+ name: string;
325
+
326
+ username: string;
327
+
328
+ /**
329
+ * Organization affiliation label shown on an X profile.
330
+ */
331
+ affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
332
+
333
+ /**
334
+ * Whether the account has X Premium verification
335
+ */
336
+ isBlueVerified?: boolean;
337
+
338
+ /**
339
+ * Whether a host muted the account
340
+ */
341
+ isMutedByAdmin?: boolean;
342
+
343
+ /**
344
+ * Whether the account muted itself
345
+ */
346
+ isMutedByGuest?: boolean;
347
+
348
+ /**
349
+ * Whether X shows a verified badge in the Space
350
+ */
351
+ isVerified?: boolean;
352
+
353
+ /**
354
+ * When the account joined the Space
355
+ */
356
+ joinedAt?: string;
357
+
358
+ /**
359
+ * The account's ID in X's broadcast service
360
+ */
361
+ periscopeUserId?: string;
362
+
363
+ /**
364
+ * Profile picture URL
365
+ */
366
+ profilePicture?: string;
367
+
368
+ /**
369
+ * Business or Government badge type
370
+ */
371
+ verifiedType?: string;
372
+ }
373
+
374
+ export namespace Listener {
375
+ /**
376
+ * Organization affiliation label shown on an X profile.
377
+ */
378
+ export interface AffiliatesHighlightedLabel {
379
+ badgeUrl?: string;
380
+
381
+ description?: string;
382
+
383
+ /**
384
+ * Public text, ranges, references, and mention data.
385
+ */
386
+ longDescription?: { [key: string]: unknown };
387
+
388
+ url?: string;
389
+
390
+ urlType?: string;
391
+
392
+ userLabelDisplayType?: string;
393
+
394
+ userLabelType?: string;
395
+ }
396
+ }
397
+
398
+ /**
399
+ * An account on a Space's stage or in its audience, as X lists it there.
400
+ */
401
+ export interface Speaker {
402
+ id: string;
403
+
404
+ /**
405
+ * Name the account shows in the Space
406
+ */
407
+ name: string;
408
+
409
+ username: string;
410
+
411
+ /**
412
+ * Organization affiliation label shown on an X profile.
413
+ */
414
+ affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
415
+
416
+ /**
417
+ * Whether the account has X Premium verification
418
+ */
419
+ isBlueVerified?: boolean;
420
+
421
+ /**
422
+ * Whether a host muted the account
423
+ */
424
+ isMutedByAdmin?: boolean;
425
+
426
+ /**
427
+ * Whether the account muted itself
428
+ */
429
+ isMutedByGuest?: boolean;
430
+
431
+ /**
432
+ * Whether X shows a verified badge in the Space
433
+ */
434
+ isVerified?: boolean;
435
+
436
+ /**
437
+ * When the account joined the Space
438
+ */
439
+ joinedAt?: string;
440
+
441
+ /**
442
+ * The account's ID in X's broadcast service
443
+ */
444
+ periscopeUserId?: string;
445
+
446
+ /**
447
+ * Profile picture URL
448
+ */
449
+ profilePicture?: string;
450
+
451
+ /**
452
+ * Business or Government badge type
453
+ */
454
+ verifiedType?: string;
455
+ }
456
+
457
+ export namespace Speaker {
458
+ /**
459
+ * Organization affiliation label shown on an X profile.
460
+ */
461
+ export interface AffiliatesHighlightedLabel {
462
+ badgeUrl?: string;
463
+
464
+ description?: string;
465
+
466
+ /**
467
+ * Public text, ranges, references, and mention data.
468
+ */
469
+ longDescription?: { [key: string]: unknown };
470
+
471
+ url?: string;
472
+
473
+ urlType?: string;
474
+
475
+ userLabelDisplayType?: string;
476
+
477
+ userLabelType?: string;
478
+ }
479
+ }
480
+
481
+ /**
482
+ * A post shared in a Space, & the account that shared it.
483
+ */
484
+ export interface Sharing {
485
+ /**
486
+ * X's ID of the sharing, not of the post
487
+ */
488
+ id?: string;
489
+
490
+ /**
491
+ * When the post was shared
492
+ */
493
+ sharedAt?: string;
494
+
495
+ /**
496
+ * Public X profile.
497
+ */
498
+ sharedBy?: Shared.UserProfile;
499
+
500
+ /**
501
+ * Search tweet with author. Zero metrics may mean X omitted counts.
502
+ */
503
+ tweet?: Shared.SearchTweet;
504
+
505
+ /**
506
+ * When X last changed the sharing
507
+ */
508
+ updatedAt?: string;
509
+ }
510
+ }
511
+ }
512
+
513
+ export interface SpaceRetrieveReplayResponse {
514
+ /**
515
+ * Recording of an ended Space
516
+ */
517
+ replay: SpaceRetrieveReplayResponse.Replay;
518
+ }
519
+
520
+ export namespace SpaceRetrieveReplayResponse {
521
+ /**
522
+ * Recording of an ended Space
523
+ */
524
+ export interface Replay {
525
+ /**
526
+ * HLS playlist of the recording
527
+ */
528
+ url: string;
529
+
530
+ /**
531
+ * Stream status, as X names it
532
+ */
533
+ status?: string;
534
+
535
+ /**
536
+ * Stream format, as X names it
537
+ */
538
+ streamType?: string;
539
+ }
540
+ }
541
+
542
+ export interface SpaceSearchResponse {
543
+ has_next_page: boolean;
544
+
545
+ next_cursor: string;
546
+
547
+ /**
548
+ * Public Spaces, in the order the posts share them
549
+ */
550
+ spaces: Array<SpaceSearchResponse.Space>;
551
+ }
552
+
553
+ export namespace SpaceSearchResponse {
554
+ /**
555
+ * X Space
556
+ */
557
+ export interface Space {
558
+ /**
559
+ * Space ID
560
+ */
561
+ id: string;
562
+
563
+ /**
564
+ * Hosts and co-hosts
565
+ */
566
+ admins: Array<Space.Admin>;
567
+
568
+ /**
569
+ * Accounts X lists as listeners
570
+ */
571
+ listeners: Array<Space.Listener>;
572
+
573
+ /**
574
+ * Accounts X lists as speakers
575
+ */
576
+ speakers: Array<Space.Speaker>;
577
+
578
+ /**
579
+ * Audio or video kind, as X names it
580
+ */
581
+ contentType?: string;
582
+
583
+ /**
584
+ * X's code for who may speak
585
+ */
586
+ conversationControls?: number;
587
+
588
+ /**
589
+ * When the Space was made
590
+ */
591
+ createdAt?: string;
592
+
593
+ /**
594
+ * Public X profile.
595
+ */
596
+ creator?: Shared.UserProfile;
597
+
598
+ /**
599
+ * Whether X lets no more accounts join
600
+ */
601
+ disallowJoin?: boolean;
602
+
603
+ /**
604
+ * When the Space ended
605
+ */
606
+ endedAt?: string;
607
+
608
+ /**
609
+ * Whether listeners may clip the Space
610
+ */
611
+ isAvailableForClipping?: boolean;
612
+
613
+ /**
614
+ * Whether X offers a recording
615
+ */
616
+ isAvailableForReplay?: boolean;
617
+
618
+ /**
619
+ * Whether only X employees may join
620
+ */
621
+ isEmployeeOnly?: boolean;
622
+
623
+ /**
624
+ * Whether the host locked the Space
625
+ */
626
+ isLocked?: boolean;
627
+
628
+ /**
629
+ * Most hosts and co-hosts the Space allows
630
+ */
631
+ maxAdminCapacity?: number;
632
+
633
+ /**
634
+ * X's media key for the Space's audio
635
+ */
636
+ mediaKey?: string;
637
+
638
+ /**
639
+ * IDs of the accounts the host tagged
640
+ */
641
+ mentionedUserIds?: Array<string>;
642
+
643
+ /**
644
+ * Whether anonymous listening is off
645
+ */
646
+ noIncognito?: boolean;
647
+
648
+ /**
649
+ * Accounts in the Space now, while it is live
650
+ */
651
+ participantCount?: number;
652
+
653
+ /**
654
+ * When the Space was set to start
655
+ */
656
+ scheduledStart?: string;
657
+
658
+ /**
659
+ * Posts the hosts and speakers shared in the Space, in X's order. Only when X
660
+ * lists them.
661
+ */
662
+ sharings?: Array<Space.Sharing>;
663
+
664
+ /**
665
+ * When the Space went live
666
+ */
667
+ startedAt?: string;
668
+
669
+ /**
670
+ * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
671
+ * started) or TimedOut (closed by X, not by its host)
672
+ */
673
+ state?: string;
674
+
675
+ /**
676
+ * Space title
677
+ */
678
+ title?: string;
679
+
680
+ /**
681
+ * Accounts that listened live
682
+ */
683
+ totalLiveListeners?: number;
684
+
685
+ /**
686
+ * Accounts that played the recording
687
+ */
688
+ totalReplayWatched?: number;
689
+
690
+ /**
691
+ * Search tweet with author. Zero metrics may mean X omitted counts.
692
+ */
693
+ tweet?: Shared.SearchTweet;
694
+
695
+ /**
696
+ * ID of the post that announces the Space
697
+ */
698
+ tweetId?: string;
699
+
700
+ /**
701
+ * When X last changed the Space
702
+ */
703
+ updatedAt?: string;
704
+ }
705
+
706
+ export namespace Space {
707
+ /**
708
+ * An account on a Space's stage or in its audience, as X lists it there.
709
+ */
710
+ export interface Admin {
711
+ id: string;
712
+
713
+ /**
714
+ * Name the account shows in the Space
715
+ */
716
+ name: string;
717
+
718
+ username: string;
719
+
720
+ /**
721
+ * Organization affiliation label shown on an X profile.
722
+ */
723
+ affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
724
+
725
+ /**
726
+ * Whether the account has X Premium verification
727
+ */
728
+ isBlueVerified?: boolean;
729
+
730
+ /**
731
+ * Whether a host muted the account
732
+ */
733
+ isMutedByAdmin?: boolean;
734
+
735
+ /**
736
+ * Whether the account muted itself
737
+ */
738
+ isMutedByGuest?: boolean;
739
+
740
+ /**
741
+ * Whether X shows a verified badge in the Space
742
+ */
743
+ isVerified?: boolean;
744
+
745
+ /**
746
+ * When the account joined the Space
747
+ */
748
+ joinedAt?: string;
749
+
750
+ /**
751
+ * The account's ID in X's broadcast service
752
+ */
753
+ periscopeUserId?: string;
754
+
755
+ /**
756
+ * Profile picture URL
757
+ */
758
+ profilePicture?: string;
759
+
760
+ /**
761
+ * Business or Government badge type
762
+ */
763
+ verifiedType?: string;
764
+ }
765
+
766
+ export namespace Admin {
767
+ /**
768
+ * Organization affiliation label shown on an X profile.
769
+ */
770
+ export interface AffiliatesHighlightedLabel {
771
+ badgeUrl?: string;
772
+
773
+ description?: string;
774
+
775
+ /**
776
+ * Public text, ranges, references, and mention data.
777
+ */
778
+ longDescription?: { [key: string]: unknown };
779
+
780
+ url?: string;
781
+
782
+ urlType?: string;
783
+
784
+ userLabelDisplayType?: string;
785
+
786
+ userLabelType?: string;
787
+ }
788
+ }
789
+
790
+ /**
791
+ * An account on a Space's stage or in its audience, as X lists it there.
792
+ */
793
+ export interface Listener {
794
+ id: string;
795
+
796
+ /**
797
+ * Name the account shows in the Space
798
+ */
799
+ name: string;
800
+
801
+ username: string;
802
+
803
+ /**
804
+ * Organization affiliation label shown on an X profile.
805
+ */
806
+ affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
807
+
808
+ /**
809
+ * Whether the account has X Premium verification
810
+ */
811
+ isBlueVerified?: boolean;
812
+
813
+ /**
814
+ * Whether a host muted the account
815
+ */
816
+ isMutedByAdmin?: boolean;
817
+
818
+ /**
819
+ * Whether the account muted itself
820
+ */
821
+ isMutedByGuest?: boolean;
822
+
823
+ /**
824
+ * Whether X shows a verified badge in the Space
825
+ */
826
+ isVerified?: boolean;
827
+
828
+ /**
829
+ * When the account joined the Space
830
+ */
831
+ joinedAt?: string;
832
+
833
+ /**
834
+ * The account's ID in X's broadcast service
835
+ */
836
+ periscopeUserId?: string;
837
+
838
+ /**
839
+ * Profile picture URL
840
+ */
841
+ profilePicture?: string;
842
+
843
+ /**
844
+ * Business or Government badge type
845
+ */
846
+ verifiedType?: string;
847
+ }
848
+
849
+ export namespace Listener {
850
+ /**
851
+ * Organization affiliation label shown on an X profile.
852
+ */
853
+ export interface AffiliatesHighlightedLabel {
854
+ badgeUrl?: string;
855
+
856
+ description?: string;
857
+
858
+ /**
859
+ * Public text, ranges, references, and mention data.
860
+ */
861
+ longDescription?: { [key: string]: unknown };
862
+
863
+ url?: string;
864
+
865
+ urlType?: string;
866
+
867
+ userLabelDisplayType?: string;
868
+
869
+ userLabelType?: string;
870
+ }
871
+ }
872
+
873
+ /**
874
+ * An account on a Space's stage or in its audience, as X lists it there.
875
+ */
876
+ export interface Speaker {
877
+ id: string;
878
+
879
+ /**
880
+ * Name the account shows in the Space
881
+ */
882
+ name: string;
883
+
884
+ username: string;
885
+
886
+ /**
887
+ * Organization affiliation label shown on an X profile.
888
+ */
889
+ affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
890
+
891
+ /**
892
+ * Whether the account has X Premium verification
893
+ */
894
+ isBlueVerified?: boolean;
895
+
896
+ /**
897
+ * Whether a host muted the account
898
+ */
899
+ isMutedByAdmin?: boolean;
900
+
901
+ /**
902
+ * Whether the account muted itself
903
+ */
904
+ isMutedByGuest?: boolean;
905
+
906
+ /**
907
+ * Whether X shows a verified badge in the Space
908
+ */
909
+ isVerified?: boolean;
910
+
911
+ /**
912
+ * When the account joined the Space
913
+ */
914
+ joinedAt?: string;
915
+
916
+ /**
917
+ * The account's ID in X's broadcast service
918
+ */
919
+ periscopeUserId?: string;
920
+
921
+ /**
922
+ * Profile picture URL
923
+ */
924
+ profilePicture?: string;
925
+
926
+ /**
927
+ * Business or Government badge type
928
+ */
929
+ verifiedType?: string;
930
+ }
931
+
932
+ export namespace Speaker {
933
+ /**
934
+ * Organization affiliation label shown on an X profile.
935
+ */
936
+ export interface AffiliatesHighlightedLabel {
937
+ badgeUrl?: string;
938
+
939
+ description?: string;
940
+
941
+ /**
942
+ * Public text, ranges, references, and mention data.
943
+ */
944
+ longDescription?: { [key: string]: unknown };
945
+
946
+ url?: string;
947
+
948
+ urlType?: string;
949
+
950
+ userLabelDisplayType?: string;
951
+
952
+ userLabelType?: string;
953
+ }
954
+ }
955
+
956
+ /**
957
+ * A post shared in a Space, & the account that shared it.
958
+ */
959
+ export interface Sharing {
960
+ /**
961
+ * X's ID of the sharing, not of the post
962
+ */
963
+ id?: string;
964
+
965
+ /**
966
+ * When the post was shared
967
+ */
968
+ sharedAt?: string;
969
+
970
+ /**
971
+ * Public X profile.
972
+ */
973
+ sharedBy?: Shared.UserProfile;
974
+
975
+ /**
976
+ * Search tweet with author. Zero metrics may mean X omitted counts.
977
+ */
978
+ tweet?: Shared.SearchTweet;
979
+
980
+ /**
981
+ * When X last changed the sharing
982
+ */
983
+ updatedAt?: string;
984
+ }
985
+ }
986
+ }
987
+
988
+ export interface SpaceRetrieveParams {
989
+ /**
990
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
991
+ * author.username. A list keeps the field in each item. Case & underscores do not
992
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
993
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
994
+ * before any read. The price stays the same. SDK row types then hold only the
995
+ * named fields.
996
+ */
997
+ fields?: string;
998
+
999
+ /**
1000
+ * Fields to drop from each row, comma-separated. It takes the same names as
1001
+ * fields. With fields, it drops from the kept fields.
1002
+ */
1003
+ omit?: string;
1004
+ }
1005
+
1006
+ export interface SpaceRetrieveReplayParams {
1007
+ /**
1008
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1009
+ * author.username. A list keeps the field in each item. Case & underscores do not
1010
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1011
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1012
+ * before any read. The price stays the same. SDK row types then hold only the
1013
+ * named fields.
1014
+ */
1015
+ fields?: string;
1016
+
1017
+ /**
1018
+ * Fields to drop from each row, comma-separated. It takes the same names as
1019
+ * fields. With fields, it drops from the kept fields.
1020
+ */
1021
+ omit?: string;
1022
+ }
1023
+
1024
+ export interface SpaceSearchParams {
1025
+ /**
1026
+ * Words, hashtags or X search operators, such as from:solana. The search adds
1027
+ * filter:spaces. Alias query.
1028
+ */
1029
+ q: string;
1030
+
1031
+ /**
1032
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
1033
+ * pagination_token or continuation_token.
1034
+ */
1035
+ cursor?: string;
1036
+
1037
+ /**
1038
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1039
+ * author.username. A list keeps the field in each item. Case & underscores do not
1040
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1041
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1042
+ * before any read. The price stays the same. SDK row types then hold only the
1043
+ * named fields.
1044
+ */
1045
+ fields?: string;
1046
+
1047
+ /**
1048
+ * Fields to drop from each row, comma-separated. It takes the same names as
1049
+ * fields. With fields, it drops from the kept fields.
1050
+ */
1051
+ omit?: string;
1052
+
1053
+ /**
1054
+ * Posts a page reads, 20 at a time (1-100, default 20). Posts often share the same
1055
+ * Space, so a page returns fewer Spaces. Send 100 to read a search fastest.
1056
+ * Aliases: limit, count, max_results, maxItems, max_items & per_page.
1057
+ */
1058
+ pageSize?: number;
1059
+
1060
+ /**
1061
+ * Latest sorts by post time. Top ranks by engagement. Any case works. Aliases
1062
+ * result_type, sort_order, type, search_type, product, category & section.
1063
+ */
1064
+ queryType?: 'Latest' | 'Top';
1065
+ }
1066
+
1067
+ export declare namespace Spaces {
1068
+ export {
1069
+ type SpaceRetrieveResponse as SpaceRetrieveResponse,
1070
+ type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse,
1071
+ type SpaceSearchResponse as SpaceSearchResponse,
1072
+ type SpaceRetrieveParams as SpaceRetrieveParams,
1073
+ type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams,
1074
+ type SpaceSearchParams as SpaceSearchParams,
1075
+ };
1076
+ }