x-twitter-scraper 0.12.4 → 0.13.1

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 (671) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +56 -29
  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 +4 -4
  8. package/client.js.map +1 -1
  9. package/client.mjs +5 -5
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.js.map +1 -1
  14. package/core/api-promise.mjs.map +1 -1
  15. package/core/error.d.mts.map +1 -1
  16. package/core/error.d.ts.map +1 -1
  17. package/core/error.js +0 -1
  18. package/core/error.js.map +1 -1
  19. package/core/error.mjs +0 -1
  20. package/core/error.mjs.map +1 -1
  21. package/core/resource.d.mts.map +1 -1
  22. package/core/resource.d.ts.map +1 -1
  23. package/core/resource.js.map +1 -1
  24. package/core/resource.mjs.map +1 -1
  25. package/core/streaming.d.mts +33 -0
  26. package/core/streaming.d.mts.map +1 -0
  27. package/core/streaming.d.ts +33 -0
  28. package/core/streaming.d.ts.map +1 -0
  29. package/core/streaming.js +269 -0
  30. package/core/streaming.js.map +1 -0
  31. package/core/streaming.mjs +264 -0
  32. package/core/streaming.mjs.map +1 -0
  33. package/index.d.mts.map +1 -1
  34. package/index.d.ts.map +1 -1
  35. package/index.js +0 -1
  36. package/index.js.map +1 -1
  37. package/index.mjs +0 -1
  38. package/index.mjs.map +1 -1
  39. package/internal/builtin-types.d.mts.map +1 -1
  40. package/internal/builtin-types.d.ts.map +1 -1
  41. package/internal/decoders/line.d.mts +17 -0
  42. package/internal/decoders/line.d.mts.map +1 -0
  43. package/internal/decoders/line.d.ts +17 -0
  44. package/internal/decoders/line.d.ts.map +1 -0
  45. package/internal/decoders/line.js +115 -0
  46. package/internal/decoders/line.js.map +1 -0
  47. package/internal/decoders/line.mjs +110 -0
  48. package/internal/decoders/line.mjs.map +1 -0
  49. package/internal/detect-platform.d.mts.map +1 -1
  50. package/internal/detect-platform.d.ts.map +1 -1
  51. package/internal/detect-platform.js +0 -1
  52. package/internal/detect-platform.js.map +1 -1
  53. package/internal/detect-platform.mjs +0 -1
  54. package/internal/detect-platform.mjs.map +1 -1
  55. package/internal/errors.d.mts.map +1 -1
  56. package/internal/errors.d.ts.map +1 -1
  57. package/internal/errors.js +0 -1
  58. package/internal/errors.js.map +1 -1
  59. package/internal/errors.mjs +0 -1
  60. package/internal/errors.mjs.map +1 -1
  61. package/internal/headers.d.mts.map +1 -1
  62. package/internal/headers.d.ts.map +1 -1
  63. package/internal/headers.js +0 -1
  64. package/internal/headers.js.map +1 -1
  65. package/internal/headers.mjs +0 -1
  66. package/internal/headers.mjs.map +1 -1
  67. package/internal/parse.d.mts.map +1 -1
  68. package/internal/parse.d.ts.map +1 -1
  69. package/internal/parse.js +7 -0
  70. package/internal/parse.js.map +1 -1
  71. package/internal/parse.mjs +7 -0
  72. package/internal/parse.mjs.map +1 -1
  73. package/internal/request-options.d.mts.map +1 -1
  74. package/internal/request-options.d.ts.map +1 -1
  75. package/internal/request-options.js.map +1 -1
  76. package/internal/request-options.mjs.map +1 -1
  77. package/internal/shim-types.d.mts.map +1 -1
  78. package/internal/shim-types.d.ts.map +1 -1
  79. package/internal/shims.d.mts.map +1 -1
  80. package/internal/shims.d.ts.map +1 -1
  81. package/internal/shims.js.map +1 -1
  82. package/internal/shims.mjs.map +1 -1
  83. package/internal/tslib.js +18 -18
  84. package/internal/types.d.mts.map +1 -1
  85. package/internal/types.d.ts.map +1 -1
  86. package/internal/utils/base64.d.mts.map +1 -1
  87. package/internal/utils/base64.d.ts.map +1 -1
  88. package/internal/utils/base64.js +0 -1
  89. package/internal/utils/base64.js.map +1 -1
  90. package/internal/utils/base64.mjs +0 -1
  91. package/internal/utils/base64.mjs.map +1 -1
  92. package/internal/utils/env.d.mts.map +1 -1
  93. package/internal/utils/env.d.ts.map +1 -1
  94. package/internal/utils/env.js +0 -1
  95. package/internal/utils/env.js.map +1 -1
  96. package/internal/utils/env.mjs +0 -1
  97. package/internal/utils/env.mjs.map +1 -1
  98. package/internal/utils/log.d.mts.map +1 -1
  99. package/internal/utils/log.d.ts.map +1 -1
  100. package/internal/utils/log.js +0 -1
  101. package/internal/utils/log.js.map +1 -1
  102. package/internal/utils/log.mjs +0 -1
  103. package/internal/utils/log.mjs.map +1 -1
  104. package/internal/utils/query.d.mts.map +1 -1
  105. package/internal/utils/query.d.ts.map +1 -1
  106. package/internal/utils/query.js +0 -1
  107. package/internal/utils/query.js.map +1 -1
  108. package/internal/utils/query.mjs +0 -1
  109. package/internal/utils/query.mjs.map +1 -1
  110. package/internal/utils/sleep.d.mts.map +1 -1
  111. package/internal/utils/sleep.d.ts.map +1 -1
  112. package/internal/utils/sleep.js +0 -1
  113. package/internal/utils/sleep.js.map +1 -1
  114. package/internal/utils/sleep.mjs +0 -1
  115. package/internal/utils/sleep.mjs.map +1 -1
  116. package/internal/utils/uuid.d.mts.map +1 -1
  117. package/internal/utils/uuid.d.ts.map +1 -1
  118. package/internal/utils/uuid.js +0 -1
  119. package/internal/utils/uuid.js.map +1 -1
  120. package/internal/utils/uuid.mjs +0 -1
  121. package/internal/utils/uuid.mjs.map +1 -1
  122. package/internal/utils/values.d.mts.map +1 -1
  123. package/internal/utils/values.d.ts.map +1 -1
  124. package/internal/utils/values.js +0 -1
  125. package/internal/utils/values.js.map +1 -1
  126. package/internal/utils/values.mjs +0 -1
  127. package/internal/utils/values.mjs.map +1 -1
  128. package/internal/utils.d.mts.map +1 -1
  129. package/internal/utils.d.ts.map +1 -1
  130. package/internal/utils.js +0 -1
  131. package/internal/utils.js.map +1 -1
  132. package/internal/utils.mjs +0 -1
  133. package/internal/utils.mjs.map +1 -1
  134. package/package.json +23 -5
  135. package/resources/account.d.mts +35 -12
  136. package/resources/account.d.mts.map +1 -1
  137. package/resources/account.d.ts +35 -12
  138. package/resources/account.d.ts.map +1 -1
  139. package/resources/account.js +4 -4
  140. package/resources/account.js.map +1 -1
  141. package/resources/account.mjs +4 -4
  142. package/resources/account.mjs.map +1 -1
  143. package/resources/compose.d.mts +77 -21
  144. package/resources/compose.d.mts.map +1 -1
  145. package/resources/compose.d.ts +77 -21
  146. package/resources/compose.d.ts.map +1 -1
  147. package/resources/compose.js +3 -5
  148. package/resources/compose.js.map +1 -1
  149. package/resources/compose.mjs +3 -5
  150. package/resources/compose.mjs.map +1 -1
  151. package/resources/credits.d.mts +18 -10
  152. package/resources/credits.d.mts.map +1 -1
  153. package/resources/credits.d.ts +18 -10
  154. package/resources/credits.d.ts.map +1 -1
  155. package/resources/credits.js +5 -5
  156. package/resources/credits.js.map +1 -1
  157. package/resources/credits.mjs +5 -5
  158. package/resources/credits.mjs.map +1 -1
  159. package/resources/drafts.d.mts +13 -17
  160. package/resources/drafts.d.mts.map +1 -1
  161. package/resources/drafts.d.ts +13 -17
  162. package/resources/drafts.d.ts.map +1 -1
  163. package/resources/drafts.js +4 -5
  164. package/resources/drafts.js.map +1 -1
  165. package/resources/drafts.mjs +4 -5
  166. package/resources/drafts.mjs.map +1 -1
  167. package/resources/draws.d.mts +84 -28
  168. package/resources/draws.d.mts.map +1 -1
  169. package/resources/draws.d.ts +84 -28
  170. package/resources/draws.d.ts.map +1 -1
  171. package/resources/draws.js +24 -10
  172. package/resources/draws.js.map +1 -1
  173. package/resources/draws.mjs +24 -10
  174. package/resources/draws.mjs.map +1 -1
  175. package/resources/events.d.mts +2564 -21
  176. package/resources/events.d.mts.map +1 -1
  177. package/resources/events.d.ts +2564 -21
  178. package/resources/events.d.ts.map +1 -1
  179. package/resources/events.js +34 -3
  180. package/resources/events.js.map +1 -1
  181. package/resources/events.mjs +34 -3
  182. package/resources/events.mjs.map +1 -1
  183. package/resources/extractions.d.mts +410 -128
  184. package/resources/extractions.d.mts.map +1 -1
  185. package/resources/extractions.d.ts +410 -128
  186. package/resources/extractions.d.ts.map +1 -1
  187. package/resources/extractions.js +74 -13
  188. package/resources/extractions.js.map +1 -1
  189. package/resources/extractions.mjs +74 -13
  190. package/resources/extractions.mjs.map +1 -1
  191. package/resources/guest-wallets.d.mts +6 -5
  192. package/resources/guest-wallets.d.mts.map +1 -1
  193. package/resources/guest-wallets.d.ts +6 -5
  194. package/resources/guest-wallets.d.ts.map +1 -1
  195. package/resources/guest-wallets.js +2 -2
  196. package/resources/guest-wallets.js.map +1 -1
  197. package/resources/guest-wallets.mjs +2 -2
  198. package/resources/guest-wallets.mjs.map +1 -1
  199. package/resources/index.d.mts +6 -6
  200. package/resources/index.d.mts.map +1 -1
  201. package/resources/index.d.ts +6 -6
  202. package/resources/index.d.ts.map +1 -1
  203. package/resources/index.js +0 -1
  204. package/resources/index.js.map +1 -1
  205. package/resources/index.mjs +1 -2
  206. package/resources/index.mjs.map +1 -1
  207. package/resources/monitors/index.d.mts +2 -2
  208. package/resources/monitors/index.d.mts.map +1 -1
  209. package/resources/monitors/index.d.ts +2 -2
  210. package/resources/monitors/index.d.ts.map +1 -1
  211. package/resources/monitors/index.js +0 -1
  212. package/resources/monitors/index.js.map +1 -1
  213. package/resources/monitors/index.mjs +0 -1
  214. package/resources/monitors/index.mjs.map +1 -1
  215. package/resources/monitors/keywords.d.mts +66 -14
  216. package/resources/monitors/keywords.d.mts.map +1 -1
  217. package/resources/monitors/keywords.d.ts +66 -14
  218. package/resources/monitors/keywords.d.ts.map +1 -1
  219. package/resources/monitors/keywords.js +16 -11
  220. package/resources/monitors/keywords.js.map +1 -1
  221. package/resources/monitors/keywords.mjs +16 -11
  222. package/resources/monitors/keywords.mjs.map +1 -1
  223. package/resources/monitors/monitors.d.mts +53 -16
  224. package/resources/monitors/monitors.d.mts.map +1 -1
  225. package/resources/monitors/monitors.d.ts +53 -16
  226. package/resources/monitors/monitors.d.ts.map +1 -1
  227. package/resources/monitors/monitors.js +12 -11
  228. package/resources/monitors/monitors.js.map +1 -1
  229. package/resources/monitors/monitors.mjs +12 -11
  230. package/resources/monitors/monitors.mjs.map +1 -1
  231. package/resources/monitors.d.mts.map +1 -1
  232. package/resources/monitors.d.ts.map +1 -1
  233. package/resources/monitors.js +0 -1
  234. package/resources/monitors.js.map +1 -1
  235. package/resources/monitors.mjs +0 -1
  236. package/resources/monitors.mjs.map +1 -1
  237. package/resources/radar.d.mts +32 -36
  238. package/resources/radar.d.mts.map +1 -1
  239. package/resources/radar.d.ts +32 -36
  240. package/resources/radar.d.ts.map +1 -1
  241. package/resources/radar.js +1 -2
  242. package/resources/radar.js.map +1 -1
  243. package/resources/radar.mjs +1 -2
  244. package/resources/radar.mjs.map +1 -1
  245. package/resources/shared.d.mts +1726 -233
  246. package/resources/shared.d.mts.map +1 -1
  247. package/resources/shared.d.ts +1726 -233
  248. package/resources/shared.d.ts.map +1 -1
  249. package/resources/styles.d.mts +34 -23
  250. package/resources/styles.d.mts.map +1 -1
  251. package/resources/styles.d.ts +34 -23
  252. package/resources/styles.d.ts.map +1 -1
  253. package/resources/styles.js +11 -14
  254. package/resources/styles.js.map +1 -1
  255. package/resources/styles.mjs +11 -14
  256. package/resources/styles.mjs.map +1 -1
  257. package/resources/subscribe.d.mts +1 -1
  258. package/resources/subscribe.d.mts.map +1 -1
  259. package/resources/subscribe.d.ts +1 -1
  260. package/resources/subscribe.d.ts.map +1 -1
  261. package/resources/subscribe.js +1 -2
  262. package/resources/subscribe.js.map +1 -1
  263. package/resources/subscribe.mjs +1 -2
  264. package/resources/subscribe.mjs.map +1 -1
  265. package/resources/support/attachments.d.mts.map +1 -1
  266. package/resources/support/attachments.d.ts.map +1 -1
  267. package/resources/support/attachments.js +0 -1
  268. package/resources/support/attachments.js.map +1 -1
  269. package/resources/support/attachments.mjs +0 -1
  270. package/resources/support/attachments.mjs.map +1 -1
  271. package/resources/support/index.d.mts +1 -1
  272. package/resources/support/index.d.mts.map +1 -1
  273. package/resources/support/index.d.ts +1 -1
  274. package/resources/support/index.d.ts.map +1 -1
  275. package/resources/support/index.js +0 -1
  276. package/resources/support/index.js.map +1 -1
  277. package/resources/support/index.mjs +0 -1
  278. package/resources/support/index.mjs.map +1 -1
  279. package/resources/support/support.d.mts +2 -2
  280. package/resources/support/support.d.mts.map +1 -1
  281. package/resources/support/support.d.ts +2 -2
  282. package/resources/support/support.d.ts.map +1 -1
  283. package/resources/support/support.js +0 -1
  284. package/resources/support/support.js.map +1 -1
  285. package/resources/support/support.mjs +0 -1
  286. package/resources/support/support.mjs.map +1 -1
  287. package/resources/support/tickets.d.mts +30 -10
  288. package/resources/support/tickets.d.mts.map +1 -1
  289. package/resources/support/tickets.d.ts +30 -10
  290. package/resources/support/tickets.d.ts.map +1 -1
  291. package/resources/support/tickets.js +7 -8
  292. package/resources/support/tickets.js.map +1 -1
  293. package/resources/support/tickets.mjs +7 -8
  294. package/resources/support/tickets.mjs.map +1 -1
  295. package/resources/support.d.mts.map +1 -1
  296. package/resources/support.d.ts.map +1 -1
  297. package/resources/support.js +0 -1
  298. package/resources/support.js.map +1 -1
  299. package/resources/support.mjs +0 -1
  300. package/resources/support.mjs.map +1 -1
  301. package/resources/trends.d.mts +21 -5
  302. package/resources/trends.d.mts.map +1 -1
  303. package/resources/trends.d.ts +21 -5
  304. package/resources/trends.d.ts.map +1 -1
  305. package/resources/trends.js +2 -2
  306. package/resources/trends.js.map +1 -1
  307. package/resources/trends.mjs +2 -2
  308. package/resources/trends.mjs.map +1 -1
  309. package/resources/webhooks.d.mts +80 -14
  310. package/resources/webhooks.d.mts.map +1 -1
  311. package/resources/webhooks.d.ts +80 -14
  312. package/resources/webhooks.d.ts.map +1 -1
  313. package/resources/webhooks.js +30 -12
  314. package/resources/webhooks.js.map +1 -1
  315. package/resources/webhooks.mjs +30 -12
  316. package/resources/webhooks.mjs.map +1 -1
  317. package/resources/x/account-connection-attempts.d.mts +1 -1
  318. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  319. package/resources/x/account-connection-attempts.d.ts +1 -1
  320. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  321. package/resources/x/account-connection-attempts.js +1 -2
  322. package/resources/x/account-connection-attempts.js.map +1 -1
  323. package/resources/x/account-connection-attempts.mjs +1 -2
  324. package/resources/x/account-connection-attempts.mjs.map +1 -1
  325. package/resources/x/account-connection-challenges.d.mts +30 -11
  326. package/resources/x/account-connection-challenges.d.mts.map +1 -1
  327. package/resources/x/account-connection-challenges.d.ts +30 -11
  328. package/resources/x/account-connection-challenges.d.ts.map +1 -1
  329. package/resources/x/account-connection-challenges.js +5 -5
  330. package/resources/x/account-connection-challenges.js.map +1 -1
  331. package/resources/x/account-connection-challenges.mjs +5 -5
  332. package/resources/x/account-connection-challenges.mjs.map +1 -1
  333. package/resources/x/accounts.d.mts +38 -10
  334. package/resources/x/accounts.d.mts.map +1 -1
  335. package/resources/x/accounts.d.ts +38 -10
  336. package/resources/x/accounts.d.ts.map +1 -1
  337. package/resources/x/accounts.js +8 -8
  338. package/resources/x/accounts.js.map +1 -1
  339. package/resources/x/accounts.mjs +8 -8
  340. package/resources/x/accounts.mjs.map +1 -1
  341. package/resources/x/analysis.d.mts +3274 -0
  342. package/resources/x/analysis.d.mts.map +1 -0
  343. package/resources/x/analysis.d.ts +3274 -0
  344. package/resources/x/analysis.d.ts.map +1 -0
  345. package/resources/x/analysis.js +131 -0
  346. package/resources/x/analysis.js.map +1 -0
  347. package/resources/x/analysis.mjs +127 -0
  348. package/resources/x/analysis.mjs.map +1 -0
  349. package/resources/x/bookmarks.d.mts +84 -9
  350. package/resources/x/bookmarks.d.mts.map +1 -1
  351. package/resources/x/bookmarks.d.ts +84 -9
  352. package/resources/x/bookmarks.d.ts.map +1 -1
  353. package/resources/x/bookmarks.js +6 -5
  354. package/resources/x/bookmarks.js.map +1 -1
  355. package/resources/x/bookmarks.mjs +6 -5
  356. package/resources/x/bookmarks.mjs.map +1 -1
  357. package/resources/x/broadcasts.d.mts +176 -0
  358. package/resources/x/broadcasts.d.mts.map +1 -0
  359. package/resources/x/broadcasts.d.ts +176 -0
  360. package/resources/x/broadcasts.d.ts.map +1 -0
  361. package/resources/x/broadcasts.js +28 -0
  362. package/resources/x/broadcasts.js.map +1 -0
  363. package/resources/x/broadcasts.mjs +24 -0
  364. package/resources/x/broadcasts.mjs.map +1 -0
  365. package/resources/x/communities/communities.d.mts +612 -128
  366. package/resources/x/communities/communities.d.mts.map +1 -1
  367. package/resources/x/communities/communities.d.ts +612 -128
  368. package/resources/x/communities/communities.d.ts.map +1 -1
  369. package/resources/x/communities/communities.js +96 -18
  370. package/resources/x/communities/communities.js.map +1 -1
  371. package/resources/x/communities/communities.mjs +96 -18
  372. package/resources/x/communities/communities.mjs.map +1 -1
  373. package/resources/x/communities/index.d.mts +2 -1
  374. package/resources/x/communities/index.d.mts.map +1 -1
  375. package/resources/x/communities/index.d.ts +2 -1
  376. package/resources/x/communities/index.d.ts.map +1 -1
  377. package/resources/x/communities/index.js +3 -2
  378. package/resources/x/communities/index.js.map +1 -1
  379. package/resources/x/communities/index.mjs +1 -1
  380. package/resources/x/communities/index.mjs.map +1 -1
  381. package/resources/x/communities/join.d.mts +46 -25
  382. package/resources/x/communities/join.d.mts.map +1 -1
  383. package/resources/x/communities/join.d.ts +46 -25
  384. package/resources/x/communities/join.d.ts.map +1 -1
  385. package/resources/x/communities/join.js +10 -8
  386. package/resources/x/communities/join.js.map +1 -1
  387. package/resources/x/communities/join.mjs +10 -8
  388. package/resources/x/communities/join.mjs.map +1 -1
  389. package/resources/x/communities/media.d.mts +197 -0
  390. package/resources/x/communities/media.d.mts.map +1 -0
  391. package/resources/x/communities/media.d.ts +197 -0
  392. package/resources/x/communities/media.d.ts.map +1 -0
  393. package/resources/x/communities/media.js +28 -0
  394. package/resources/x/communities/media.js.map +1 -0
  395. package/resources/x/communities/media.mjs +24 -0
  396. package/resources/x/communities/media.mjs.map +1 -0
  397. package/resources/x/communities/tweets.d.mts +350 -20
  398. package/resources/x/communities/tweets.d.mts.map +1 -1
  399. package/resources/x/communities/tweets.d.ts +350 -20
  400. package/resources/x/communities/tweets.d.ts.map +1 -1
  401. package/resources/x/communities/tweets.js +8 -8
  402. package/resources/x/communities/tweets.js.map +1 -1
  403. package/resources/x/communities/tweets.mjs +8 -8
  404. package/resources/x/communities/tweets.mjs.map +1 -1
  405. package/resources/x/communities.d.mts.map +1 -1
  406. package/resources/x/communities.d.ts.map +1 -1
  407. package/resources/x/communities.js +0 -1
  408. package/resources/x/communities.js.map +1 -1
  409. package/resources/x/communities.mjs +0 -1
  410. package/resources/x/communities.mjs.map +1 -1
  411. package/resources/x/dm.d.mts +245 -13
  412. package/resources/x/dm.d.mts.map +1 -1
  413. package/resources/x/dm.d.ts +245 -13
  414. package/resources/x/dm.d.ts.map +1 -1
  415. package/resources/x/dm.js +29 -3
  416. package/resources/x/dm.js.map +1 -1
  417. package/resources/x/dm.mjs +29 -3
  418. package/resources/x/dm.mjs.map +1 -1
  419. package/resources/x/followers.d.mts +31 -3
  420. package/resources/x/followers.d.mts.map +1 -1
  421. package/resources/x/followers.d.ts +31 -3
  422. package/resources/x/followers.d.ts.map +1 -1
  423. package/resources/x/followers.js +2 -2
  424. package/resources/x/followers.js.map +1 -1
  425. package/resources/x/followers.mjs +2 -2
  426. package/resources/x/followers.mjs.map +1 -1
  427. package/resources/x/index.d.mts +12 -8
  428. package/resources/x/index.d.mts.map +1 -1
  429. package/resources/x/index.d.ts +12 -8
  430. package/resources/x/index.d.ts.map +1 -1
  431. package/resources/x/index.js +9 -2
  432. package/resources/x/index.js.map +1 -1
  433. package/resources/x/index.mjs +5 -2
  434. package/resources/x/index.mjs.map +1 -1
  435. package/resources/x/jobs.d.mts +506 -0
  436. package/resources/x/jobs.d.mts.map +1 -0
  437. package/resources/x/jobs.d.ts +506 -0
  438. package/resources/x/jobs.d.ts.map +1 -0
  439. package/resources/x/jobs.js +59 -0
  440. package/resources/x/jobs.js.map +1 -0
  441. package/resources/x/jobs.mjs +55 -0
  442. package/resources/x/jobs.mjs.map +1 -0
  443. package/resources/x/lists.d.mts +1058 -27
  444. package/resources/x/lists.d.mts.map +1 -1
  445. package/resources/x/lists.d.ts +1058 -27
  446. package/resources/x/lists.d.ts.map +1 -1
  447. package/resources/x/lists.js +39 -10
  448. package/resources/x/lists.js.map +1 -1
  449. package/resources/x/lists.mjs +39 -10
  450. package/resources/x/lists.mjs.map +1 -1
  451. package/resources/x/media.d.mts +24 -13
  452. package/resources/x/media.d.mts.map +1 -1
  453. package/resources/x/media.d.ts +24 -13
  454. package/resources/x/media.d.ts.map +1 -1
  455. package/resources/x/media.js +2 -3
  456. package/resources/x/media.js.map +1 -1
  457. package/resources/x/media.mjs +2 -3
  458. package/resources/x/media.mjs.map +1 -1
  459. package/resources/x/profile.d.mts +60 -33
  460. package/resources/x/profile.d.mts.map +1 -1
  461. package/resources/x/profile.d.ts +60 -33
  462. package/resources/x/profile.d.ts.map +1 -1
  463. package/resources/x/profile.js +3 -4
  464. package/resources/x/profile.js.map +1 -1
  465. package/resources/x/profile.mjs +3 -4
  466. package/resources/x/profile.mjs.map +1 -1
  467. package/resources/x/spaces.d.mts +857 -0
  468. package/resources/x/spaces.d.mts.map +1 -0
  469. package/resources/x/spaces.d.ts +857 -0
  470. package/resources/x/spaces.d.ts.map +1 -0
  471. package/resources/x/spaces.js +57 -0
  472. package/resources/x/spaces.js.map +1 -0
  473. package/resources/x/spaces.mjs +53 -0
  474. package/resources/x/spaces.mjs.map +1 -0
  475. package/resources/x/tweets/index.d.mts +1 -1
  476. package/resources/x/tweets/index.d.mts.map +1 -1
  477. package/resources/x/tweets/index.d.ts +1 -1
  478. package/resources/x/tweets/index.d.ts.map +1 -1
  479. package/resources/x/tweets/index.js +0 -1
  480. package/resources/x/tweets/index.js.map +1 -1
  481. package/resources/x/tweets/index.mjs +0 -1
  482. package/resources/x/tweets/index.mjs.map +1 -1
  483. package/resources/x/tweets/like.d.mts +38 -20
  484. package/resources/x/tweets/like.d.mts.map +1 -1
  485. package/resources/x/tweets/like.d.ts +38 -20
  486. package/resources/x/tweets/like.d.ts.map +1 -1
  487. package/resources/x/tweets/like.js +2 -3
  488. package/resources/x/tweets/like.js.map +1 -1
  489. package/resources/x/tweets/like.mjs +2 -3
  490. package/resources/x/tweets/like.mjs.map +1 -1
  491. package/resources/x/tweets/retweet.d.mts +38 -20
  492. package/resources/x/tweets/retweet.d.mts.map +1 -1
  493. package/resources/x/tweets/retweet.d.ts +38 -20
  494. package/resources/x/tweets/retweet.d.ts.map +1 -1
  495. package/resources/x/tweets/retweet.js +2 -3
  496. package/resources/x/tweets/retweet.js.map +1 -1
  497. package/resources/x/tweets/retweet.mjs +2 -3
  498. package/resources/x/tweets/retweet.mjs.map +1 -1
  499. package/resources/x/tweets/tweets.d.mts +2639 -326
  500. package/resources/x/tweets/tweets.d.mts.map +1 -1
  501. package/resources/x/tweets/tweets.d.ts +2639 -326
  502. package/resources/x/tweets/tweets.d.ts.map +1 -1
  503. package/resources/x/tweets/tweets.js +147 -22
  504. package/resources/x/tweets/tweets.js.map +1 -1
  505. package/resources/x/tweets/tweets.mjs +147 -22
  506. package/resources/x/tweets/tweets.mjs.map +1 -1
  507. package/resources/x/tweets.d.mts.map +1 -1
  508. package/resources/x/tweets.d.ts.map +1 -1
  509. package/resources/x/tweets.js +0 -1
  510. package/resources/x/tweets.js.map +1 -1
  511. package/resources/x/tweets.mjs +0 -1
  512. package/resources/x/tweets.mjs.map +1 -1
  513. package/resources/x/users/follow.d.mts +38 -20
  514. package/resources/x/users/follow.d.mts.map +1 -1
  515. package/resources/x/users/follow.d.ts +38 -20
  516. package/resources/x/users/follow.d.ts.map +1 -1
  517. package/resources/x/users/follow.js +2 -3
  518. package/resources/x/users/follow.js.map +1 -1
  519. package/resources/x/users/follow.mjs +2 -3
  520. package/resources/x/users/follow.mjs.map +1 -1
  521. package/resources/x/users/index.d.mts +1 -1
  522. package/resources/x/users/index.d.mts.map +1 -1
  523. package/resources/x/users/index.d.ts +1 -1
  524. package/resources/x/users/index.d.ts.map +1 -1
  525. package/resources/x/users/index.js +0 -1
  526. package/resources/x/users/index.js.map +1 -1
  527. package/resources/x/users/index.mjs +0 -1
  528. package/resources/x/users/index.mjs.map +1 -1
  529. package/resources/x/users/users.d.mts +3068 -457
  530. package/resources/x/users/users.d.mts.map +1 -1
  531. package/resources/x/users/users.d.ts +3068 -457
  532. package/resources/x/users/users.d.ts.map +1 -1
  533. package/resources/x/users/users.js +205 -23
  534. package/resources/x/users/users.js.map +1 -1
  535. package/resources/x/users/users.mjs +205 -23
  536. package/resources/x/users/users.mjs.map +1 -1
  537. package/resources/x/users.d.mts.map +1 -1
  538. package/resources/x/users.d.ts.map +1 -1
  539. package/resources/x/users.js +0 -1
  540. package/resources/x/users.js.map +1 -1
  541. package/resources/x/users.mjs +0 -1
  542. package/resources/x/users.mjs.map +1 -1
  543. package/resources/x/write-actions.d.mts +13 -6
  544. package/resources/x/write-actions.d.mts.map +1 -1
  545. package/resources/x/write-actions.d.ts +13 -6
  546. package/resources/x/write-actions.d.ts.map +1 -1
  547. package/resources/x/write-actions.js +1 -2
  548. package/resources/x/write-actions.js.map +1 -1
  549. package/resources/x/write-actions.mjs +1 -2
  550. package/resources/x/write-actions.mjs.map +1 -1
  551. package/resources/x/x.d.mts +864 -27
  552. package/resources/x/x.d.mts.map +1 -1
  553. package/resources/x/x.d.ts +864 -27
  554. package/resources/x/x.d.ts.map +1 -1
  555. package/resources/x/x.js +78 -6
  556. package/resources/x/x.js.map +1 -1
  557. package/resources/x/x.mjs +80 -8
  558. package/resources/x/x.mjs.map +1 -1
  559. package/resources/x.d.mts.map +1 -1
  560. package/resources/x.d.ts.map +1 -1
  561. package/resources/x.js +0 -1
  562. package/resources/x.js.map +1 -1
  563. package/resources/x.mjs +0 -1
  564. package/resources/x.mjs.map +1 -1
  565. package/skills/x-twitter-scraper/SKILL.md +99 -344
  566. package/skills/x-twitter-scraper/metadata.json +2 -2
  567. package/skills/x-twitter-scraper/references/mcp-setup.md +12 -15
  568. package/skills/x-twitter-scraper/references/mcp-tools.md +105 -166
  569. package/skills/x-twitter-scraper/references/types-mcp-output-schemas.md +4 -4
  570. package/skills/x-twitter-scraper/references/types.md +0 -1
  571. package/skills/x-twitter-scraper/skill-card.md +5 -6
  572. package/skills/x-twitter-scraper/skillspector-report.md +6 -3
  573. package/skills/xquik-account-automation/LICENSE +21 -0
  574. package/skills/xquik-account-automation/SKILL.md +91 -0
  575. package/skills/xquik-social-research/SKILL.md +48 -55
  576. package/src/client.ts +48 -7
  577. package/src/core/api-promise.ts +0 -2
  578. package/src/core/error.ts +0 -2
  579. package/src/core/resource.ts +0 -2
  580. package/src/core/streaming.ts +326 -0
  581. package/src/index.ts +0 -2
  582. package/src/internal/builtin-types.ts +0 -2
  583. package/src/internal/decoders/line.ts +138 -0
  584. package/src/internal/detect-platform.ts +0 -2
  585. package/src/internal/errors.ts +0 -2
  586. package/src/internal/headers.ts +0 -2
  587. package/src/internal/parse.ts +9 -2
  588. package/src/internal/request-options.ts +0 -2
  589. package/src/internal/shim-types.ts +0 -2
  590. package/src/internal/shims.ts +0 -2
  591. package/src/internal/types.ts +0 -2
  592. package/src/internal/utils/base64.ts +0 -2
  593. package/src/internal/utils/env.ts +0 -2
  594. package/src/internal/utils/log.ts +0 -2
  595. package/src/internal/utils/query.ts +0 -2
  596. package/src/internal/utils/sleep.ts +0 -2
  597. package/src/internal/utils/uuid.ts +0 -2
  598. package/src/internal/utils/values.ts +0 -2
  599. package/src/internal/utils.ts +0 -2
  600. package/src/lib/.keep +2 -4
  601. package/src/resources/account.ts +41 -14
  602. package/src/resources/compose.ts +77 -23
  603. package/src/resources/credits.ts +19 -12
  604. package/src/resources/drafts.ts +13 -24
  605. package/src/resources/draws.ts +94 -38
  606. package/src/resources/events.ts +3225 -70
  607. package/src/resources/extractions.ts +512 -127
  608. package/src/resources/guest-wallets.ts +6 -7
  609. package/src/resources/index.ts +24 -3
  610. package/src/resources/monitors/index.ts +2 -2
  611. package/src/resources/monitors/keywords.ts +82 -16
  612. package/src/resources/monitors/monitors.ts +66 -16
  613. package/src/resources/monitors.ts +0 -2
  614. package/src/resources/radar.ts +32 -38
  615. package/src/resources/shared.ts +2226 -352
  616. package/src/resources/styles.ts +43 -29
  617. package/src/resources/subscribe.ts +1 -3
  618. package/src/resources/support/attachments.ts +0 -2
  619. package/src/resources/support/index.ts +1 -2
  620. package/src/resources/support/support.ts +2 -2
  621. package/src/resources/support/tickets.ts +38 -12
  622. package/src/resources/support.ts +0 -2
  623. package/src/resources/trends.ts +23 -7
  624. package/src/resources/webhooks.ts +109 -17
  625. package/src/resources/x/account-connection-attempts.ts +1 -3
  626. package/src/resources/x/account-connection-challenges.ts +39 -13
  627. package/src/resources/x/accounts.ts +46 -12
  628. package/src/resources/x/analysis.ts +3945 -0
  629. package/src/resources/x/bookmarks.ts +103 -11
  630. package/src/resources/x/broadcasts.ts +223 -0
  631. package/src/resources/x/communities/communities.ts +743 -143
  632. package/src/resources/x/communities/index.ts +9 -2
  633. package/src/resources/x/communities/join.ts +46 -25
  634. package/src/resources/x/communities/media.ts +249 -0
  635. package/src/resources/x/communities/tweets.ts +427 -22
  636. package/src/resources/x/communities.ts +0 -2
  637. package/src/resources/x/dm.ts +334 -13
  638. package/src/resources/x/followers.ts +35 -5
  639. package/src/resources/x/index.ts +106 -3
  640. package/src/resources/x/jobs.ts +625 -0
  641. package/src/resources/x/lists.ts +1307 -30
  642. package/src/resources/x/media.ts +24 -14
  643. package/src/resources/x/profile.ts +60 -32
  644. package/src/resources/x/spaces.ts +1074 -0
  645. package/src/resources/x/tweets/index.ts +18 -2
  646. package/src/resources/x/tweets/like.ts +38 -20
  647. package/src/resources/x/tweets/retweet.ts +38 -20
  648. package/src/resources/x/tweets/tweets.ts +3693 -843
  649. package/src/resources/x/tweets.ts +0 -2
  650. package/src/resources/x/users/follow.ts +38 -20
  651. package/src/resources/x/users/index.ts +22 -2
  652. package/src/resources/x/users/users.ts +3687 -467
  653. package/src/resources/x/users.ts +0 -2
  654. package/src/resources/x/write-actions.ts +13 -7
  655. package/src/resources/x/x.ts +1234 -24
  656. package/src/resources/x.ts +0 -2
  657. package/src/streaming.ts +6 -0
  658. package/src/version.ts +1 -1
  659. package/streaming.d.mts +3 -0
  660. package/streaming.d.mts.map +1 -0
  661. package/streaming.d.ts +3 -0
  662. package/streaming.d.ts.map +1 -0
  663. package/streaming.js +9 -0
  664. package/streaming.js.map +1 -0
  665. package/streaming.mjs +6 -0
  666. package/streaming.mjs.map +1 -0
  667. package/version.d.mts +1 -1
  668. package/version.d.ts +1 -1
  669. package/version.js +1 -1
  670. package/version.mjs +1 -1
  671. package/skills/x-twitter-scraper/references/types-rest-api-vs-mcp-field-naming.md +0 -15
@@ -2,8 +2,6 @@
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6
-
7
5
  import { APIResource } from '../../../core/resource';
8
6
  import * as Shared from '../../shared';
9
7
  import * as JoinAPI from './join';
@@ -14,6 +12,8 @@ import {
14
12
  JoinDeleteAllParams,
15
13
  JoinDeleteAllResponse,
16
14
  } from './join';
15
+ import * as MediaAPI from './media';
16
+ import { Media, MediaListParams } from './media';
17
17
  import * as TweetsAPI from './tweets';
18
18
  import { TweetListByCommunityParams, TweetListParams, Tweets } from './tweets';
19
19
  import { APIPromise } from '../../../core/api-promise';
@@ -24,9 +24,10 @@ import { path } from '../../../internal/utils/path';
24
24
  export class Communities extends APIResource {
25
25
  join: JoinAPI.Join = new JoinAPI.Join(this._client);
26
26
  tweets: TweetsAPI.Tweets = new TweetsAPI.Tweets(this._client);
27
+ media: MediaAPI.Media = new MediaAPI.Media(this._client);
27
28
 
28
29
  /**
29
- * Create community
30
+ * Creates an X Community through a connected account.
30
31
  *
31
32
  * @example
32
33
  * ```ts
@@ -48,15 +49,18 @@ export class Communities extends APIResource {
48
49
  }
49
50
 
50
51
  /**
51
- * Delete community
52
+ * Deletes an owned X Community through a connected account.
52
53
  *
53
54
  * @example
54
55
  * ```ts
55
- * const community = await client.x.communities.delete('id', {
56
- * account: '@elonmusk',
57
- * community_name: 'Tesla Fans',
58
- * 'Idempotency-Key': 'Idempotency-Key',
59
- * });
56
+ * const community = await client.x.communities.delete(
57
+ * '1500000000000000000',
58
+ * {
59
+ * account: '@elonmusk',
60
+ * community_name: 'Tesla Fans',
61
+ * 'Idempotency-Key': 'Idempotency-Key',
62
+ * },
63
+ * );
60
64
  * ```
61
65
  */
62
66
  delete(
@@ -73,7 +77,76 @@ export class Communities extends APIResource {
73
77
  }
74
78
 
75
79
  /**
76
- * Get community name, description and member count
80
+ * Returns the communities X finds for a keyword, in X's order. Each community
81
+ * costs 1 credit. To search the tweets in Communities, use /x/communities/search.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const communityPage = await client.x.communities.find({
86
+ * q: 'q',
87
+ * });
88
+ * ```
89
+ */
90
+ find(query: CommunityFindParams, options?: RequestOptions): APIPromise<Shared.CommunityPage> {
91
+ return this._client.get('/x/communities/find', { query, ...options });
92
+ }
93
+
94
+ /**
95
+ * Returns the communities X ranks highest under a topic or subtopic. Name it by
96
+ * topicId or by topic name from /x/communities/topics. Each community costs 1
97
+ * credit. A missing or unknown topic returns invalid_community_topic & lists the
98
+ * topic names.
99
+ *
100
+ * @example
101
+ * ```ts
102
+ * const communityPage =
103
+ * await client.x.communities.listPopular();
104
+ * ```
105
+ */
106
+ listPopular(
107
+ query: CommunityListPopularParams | null | undefined = {},
108
+ options?: RequestOptions,
109
+ ): APIPromise<Shared.CommunityPage> {
110
+ return this._client.get('/x/communities/popular', { query, ...options });
111
+ }
112
+
113
+ /**
114
+ * Returns the communities X suggests, with their full public fields. X picks them
115
+ * per request, so 2 calls can differ. If X suggests none, Xquik asks up to 2 more
116
+ * times. An empty list is free. Each community costs 1 credit.
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * const response = await client.x.communities.listSuggested();
121
+ * ```
122
+ */
123
+ listSuggested(
124
+ query: CommunityListSuggestedParams | null | undefined = {},
125
+ options?: RequestOptions,
126
+ ): APIPromise<CommunityListSuggestedResponse> {
127
+ return this._client.get('/x/communities/suggested', { query, ...options });
128
+ }
129
+
130
+ /**
131
+ * Returns the community topics with their subtopics. Pass an ID as topicId, or a
132
+ * name as topic, to /x/communities/popular. Each top-level topic costs 1 credit,
133
+ * its subtopics included.
134
+ *
135
+ * @example
136
+ * ```ts
137
+ * const response = await client.x.communities.listTopics();
138
+ * ```
139
+ */
140
+ listTopics(
141
+ query: CommunityListTopicsParams | null | undefined = {},
142
+ options?: RequestOptions,
143
+ ): APIPromise<CommunityListTopicsResponse> {
144
+ return this._client.get('/x/communities/topics', { query, ...options });
145
+ }
146
+
147
+ /**
148
+ * Returns one community's public identity, rules, join question, search tags,
149
+ * membership counts, and the profiles of its creator, admin and previewed members.
77
150
  *
78
151
  * @example
79
152
  * ```ts
@@ -82,12 +155,16 @@ export class Communities extends APIResource {
82
155
  * );
83
156
  * ```
84
157
  */
85
- retrieveInfo(id: string, options?: RequestOptions): APIPromise<CommunityRetrieveInfoResponse> {
86
- return this._client.get(path`/x/communities/${id}/info`, options);
158
+ retrieveInfo(
159
+ id: string,
160
+ query: CommunityRetrieveInfoParams | null | undefined = {},
161
+ options?: RequestOptions,
162
+ ): APIPromise<CommunityRetrieveInfoResponse> {
163
+ return this._client.get(path`/x/communities/${id}/info`, { query, ...options });
87
164
  }
88
165
 
89
166
  /**
90
- * List members of a community
167
+ * Returns public member profiles for one community.
91
168
  *
92
169
  * @example
93
170
  * ```ts
@@ -104,7 +181,7 @@ export class Communities extends APIResource {
104
181
  }
105
182
 
106
183
  /**
107
- * List moderators of a community
184
+ * Returns public moderator profiles for one community.
108
185
  *
109
186
  * @example
110
187
  * ```ts
@@ -121,15 +198,14 @@ export class Communities extends APIResource {
121
198
  }
122
199
 
123
200
  /**
124
- * Returns tweets, not community records. Requires a Community ID.
201
+ * Returns one tweet page, not community records. Add communityId to search 1
202
+ * Community, or leave it out to search every Community. To find communities by
203
+ * keyword, use /x/communities/find.
125
204
  *
126
205
  * @example
127
206
  * ```ts
128
207
  * const paginatedTweets =
129
- * await client.x.communities.retrieveSearch({
130
- * communityId: '321669910225',
131
- * q: 'q',
132
- * });
208
+ * await client.x.communities.retrieveSearch({ q: 'q' });
133
209
  * ```
134
210
  */
135
211
  retrieveSearch(
@@ -138,12 +214,34 @@ export class Communities extends APIResource {
138
214
  ): APIPromise<Shared.PaginatedTweets> {
139
215
  return this._client.get('/x/communities/search', { query, ...options });
140
216
  }
217
+
218
+ /**
219
+ * Finds a community's members by name or username, as the search box on X's
220
+ * members page does. X checks up to 10 accounts that match, & the answer holds the
221
+ * members among them, each with its role. Each member costs 1 credit. An answer
222
+ * without members is free.
223
+ *
224
+ * @example
225
+ * ```ts
226
+ * const paginatedUsers =
227
+ * await client.x.communities.searchMembers('id', {
228
+ * q: 'q',
229
+ * });
230
+ * ```
231
+ */
232
+ searchMembers(
233
+ id: string,
234
+ query: CommunitySearchMembersParams,
235
+ options?: RequestOptions,
236
+ ): APIPromise<Shared.PaginatedUsers> {
237
+ return this._client.get(path`/x/communities/${id}/members/search`, { query, ...options });
238
+ }
141
239
  }
142
240
 
143
241
  /**
144
- * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
145
- * the original Idempotency-Key returns this same record. Submit a new write only
146
- * when safeToRetry is true, using a new key.
242
+ * Durable write record. Poll statusUrl until terminal is true. Reusing its
243
+ * Idempotency-Key returns this record. Create another action only when safeToRetry
244
+ * is true.
147
245
  */
148
246
  export interface CommunityCreateResponse {
149
247
  id: string;
@@ -164,6 +262,7 @@ export interface CommunityCreateResponse {
164
262
  | 'unfollow'
165
263
  | 'remove_follower'
166
264
  | 'send_dm'
265
+ | 'delete_dm'
167
266
  | 'upload_media'
168
267
  | 'update_profile'
169
268
  | 'update_avatar'
@@ -208,7 +307,7 @@ export interface CommunityCreateResponse {
208
307
  retryable: boolean;
209
308
 
210
309
  /**
211
- * True only when no write was dispatched and a new idempotency key may be used.
310
+ * True only when X did not get the write and a new idempotency key may be used.
212
311
  */
213
312
  safeToRetry: boolean;
214
313
 
@@ -264,6 +363,10 @@ export interface CommunityCreateResponse {
264
363
  */
265
364
  expiresAt?: string;
266
365
 
366
+ /**
367
+ * True when this answers a retry of an earlier request with the same
368
+ * Idempotency-Key.
369
+ */
267
370
  idempotent?: boolean;
268
371
 
269
372
  /**
@@ -340,6 +443,9 @@ export namespace CommunityCreateResponse {
340
443
  export interface NextAction {
341
444
  type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
342
445
 
446
+ /**
447
+ * Milliseconds to wait before you poll or retry.
448
+ */
343
449
  afterMs?: number;
344
450
 
345
451
  requiresNewIdempotencyKey?: boolean;
@@ -384,9 +490,9 @@ export namespace CommunityCreateResponse {
384
490
  }
385
491
 
386
492
  /**
387
- * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
388
- * the original Idempotency-Key returns this same record. Submit a new write only
389
- * when safeToRetry is true, using a new key.
493
+ * Durable write record. Poll statusUrl until terminal is true. Reusing its
494
+ * Idempotency-Key returns this record. Create another action only when safeToRetry
495
+ * is true.
390
496
  */
391
497
  export interface CommunityDeleteResponse {
392
498
  id: string;
@@ -407,6 +513,7 @@ export interface CommunityDeleteResponse {
407
513
  | 'unfollow'
408
514
  | 'remove_follower'
409
515
  | 'send_dm'
516
+ | 'delete_dm'
410
517
  | 'upload_media'
411
518
  | 'update_profile'
412
519
  | 'update_avatar'
@@ -451,7 +558,7 @@ export interface CommunityDeleteResponse {
451
558
  retryable: boolean;
452
559
 
453
560
  /**
454
- * True only when no write was dispatched and a new idempotency key may be used.
561
+ * True only when X did not get the write and a new idempotency key may be used.
455
562
  */
456
563
  safeToRetry: boolean;
457
564
 
@@ -507,6 +614,10 @@ export interface CommunityDeleteResponse {
507
614
  */
508
615
  expiresAt?: string;
509
616
 
617
+ /**
618
+ * True when this answers a retry of an earlier request with the same
619
+ * Idempotency-Key.
620
+ */
510
621
  idempotent?: boolean;
511
622
 
512
623
  /**
@@ -583,6 +694,9 @@ export namespace CommunityDeleteResponse {
583
694
  export interface NextAction {
584
695
  type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
585
696
 
697
+ /**
698
+ * Milliseconds to wait before you poll or retry.
699
+ */
586
700
  afterMs?: number;
587
701
 
588
702
  requiresNewIdempotencyKey?: boolean;
@@ -626,154 +740,237 @@ export namespace CommunityDeleteResponse {
626
740
  }
627
741
  }
628
742
 
629
- export interface CommunityRetrieveInfoResponse {
743
+ export interface CommunityListSuggestedResponse {
744
+ /**
745
+ * Suggested communities in X's order
746
+ */
747
+ communities: Array<Shared.Community>;
748
+
630
749
  /**
631
- * Community info object
750
+ * Communities returned & charged
632
751
  */
633
- community: CommunityRetrieveInfoResponse.Community;
752
+ count: number;
753
+
754
+ /**
755
+ * What to do next. Present only when X suggests none.
756
+ */
757
+ message?: string;
634
758
  }
635
759
 
636
- export namespace CommunityRetrieveInfoResponse {
760
+ export interface CommunityListTopicsResponse {
637
761
  /**
638
- * Community info object
762
+ * Top-level topics returned & charged
639
763
  */
640
- export interface Community {
641
- /**
642
- * Unique community identifier
643
- */
644
- id: string;
764
+ count: number;
645
765
 
646
- /**
647
- * Community banner image URL
648
- */
649
- banner_url?: string;
766
+ /**
767
+ * Topics in X's order
768
+ */
769
+ topics: Array<Shared.CommunityTopic>;
650
770
 
651
- /**
652
- * Community creation timestamp
653
- */
654
- created_at?: string;
771
+ /**
772
+ * What to do next. Present only when X lists no topic.
773
+ */
774
+ message?: string;
775
+ }
655
776
 
656
- creator?: Community.Creator;
777
+ export interface CommunityRetrieveInfoResponse {
778
+ /**
779
+ * Public X Community, as every Community read returns it.
780
+ */
781
+ community: Shared.Community;
782
+ }
657
783
 
658
- /**
659
- * About text for the community
660
- */
661
- description?: string;
784
+ export interface CommunityCreateParams {
785
+ /**
786
+ * Body param: X account (@username or ID) creating the community
787
+ */
788
+ account: string;
662
789
 
663
- /**
664
- * Invitation policy
665
- */
666
- invites_policy?: string;
790
+ /**
791
+ * Body param: Community name, 1 to 100 characters, as X takes it
792
+ */
793
+ name: string;
667
794
 
668
- /**
669
- * Whether the community is marked sensitive
670
- */
671
- is_nsfw?: boolean;
795
+ /**
796
+ * Header param: Use one unique value per intended write. Reuse it only for an
797
+ * identical retry. A matching retry returns the first answer again, with
798
+ * idempotent: true added. It keeps the first status, body & Retry-After. It sends
799
+ * nothing to X & charges nothing. While the first request runs, a retry returns
800
+ * 202 & the action. Different input returns 409. Protection lasts at least 90
801
+ * days.
802
+ */
803
+ 'Idempotency-Key': string;
672
804
 
673
- /**
674
- * Join policy (open or restricted)
675
- */
676
- join_policy?: string;
805
+ /**
806
+ * Body param: Community description
807
+ */
808
+ description?: string;
809
+ }
677
810
 
678
- /**
679
- * Total member count
680
- */
681
- member_count?: number;
811
+ export interface CommunityDeleteParams {
812
+ /**
813
+ * Body param: X account (@username or ID) deleting the community
814
+ */
815
+ account: string;
682
816
 
683
- /**
684
- * Total moderator count
685
- */
686
- moderator_count?: number;
817
+ /**
818
+ * Body param: Community name for confirmation
819
+ */
820
+ community_name: string;
687
821
 
688
- /**
689
- * Display name of the community
690
- */
691
- name?: string;
822
+ /**
823
+ * Header param: Use one unique value per intended write. Reuse it only for an
824
+ * identical retry. A matching retry returns the first answer again, with
825
+ * idempotent: true added. It keeps the first status, body & Retry-After. It sends
826
+ * nothing to X & charges nothing. While the first request runs, a retry returns
827
+ * 202 & the action. Different input returns 409. Protection lasts at least 90
828
+ * days.
829
+ */
830
+ 'Idempotency-Key': string;
831
+ }
692
832
 
693
- /**
694
- * Primary topic
695
- */
696
- primary_topic?: Community.PrimaryTopic;
833
+ export interface CommunityFindParams {
834
+ /**
835
+ * Keyword to find communities by, such as ai. Alias query.
836
+ */
837
+ q: string;
697
838
 
698
- /**
699
- * Community rules
700
- */
701
- rules?: Array<Community.Rule>;
702
- }
839
+ /**
840
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
841
+ * pagination_token or continuation_token.
842
+ */
843
+ cursor?: string;
703
844
 
704
- export namespace Community {
705
- export interface Creator {
706
- id: string;
845
+ /**
846
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
847
+ * author.username. A list keeps the field in each item. Case & underscores do not
848
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
849
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
850
+ * before any read. The price stays the same. SDK row types then hold only the
851
+ * named fields.
852
+ */
853
+ fields?: string;
707
854
 
708
- username: string;
855
+ /**
856
+ * Fields to drop from each row, comma-separated. It takes the same names as
857
+ * fields. With fields, it drops from the kept fields.
858
+ */
859
+ omit?: string;
709
860
 
710
- verified: boolean;
861
+ /**
862
+ * Items per page (1-100, default 20). Source, filters or credits can return fewer.
863
+ * Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
864
+ * max_items & per_page.
865
+ */
866
+ pageSize?: number;
867
+ }
711
868
 
712
- name?: string;
713
- }
869
+ export interface CommunityListPopularParams {
870
+ /**
871
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
872
+ * pagination_token or continuation_token.
873
+ */
874
+ cursor?: string;
714
875
 
715
- /**
716
- * Primary topic
717
- */
718
- export interface PrimaryTopic {
719
- id?: string;
876
+ /**
877
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
878
+ * author.username. A list keeps the field in each item. Case & underscores do not
879
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
880
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
881
+ * before any read. The price stays the same. SDK row types then hold only the
882
+ * named fields.
883
+ */
884
+ fields?: string;
720
885
 
721
- name?: string;
722
- }
886
+ /**
887
+ * Fields to drop from each row, comma-separated. It takes the same names as
888
+ * fields. With fields, it drops from the kept fields.
889
+ */
890
+ omit?: string;
723
891
 
724
- export interface Rule {
725
- id?: string;
892
+ /**
893
+ * Items per page (1-100, default 20). Source, filters or credits can return fewer.
894
+ * Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
895
+ * max_items & per_page.
896
+ */
897
+ pageSize?: number;
726
898
 
727
- description?: string;
899
+ /**
900
+ * Topic or subtopic name in any case, such as technology. Send this or topicId.
901
+ */
902
+ topic?: string;
728
903
 
729
- name?: string;
730
- }
731
- }
904
+ /**
905
+ * Topic or subtopic ID from /x/communities/topics, such as 301. Wins over topic.
906
+ */
907
+ topicId?: string;
732
908
  }
733
909
 
734
- export interface CommunityCreateParams {
910
+ export interface CommunityListSuggestedParams {
735
911
  /**
736
- * Body param: X account (@username or ID) creating the community
912
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
913
+ * author.username. A list keeps the field in each item. Case & underscores do not
914
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
915
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
916
+ * before any read. The price stays the same. SDK row types then hold only the
917
+ * named fields.
737
918
  */
738
- account: string;
919
+ fields?: string;
739
920
 
740
921
  /**
741
- * Body param: Community name
922
+ * Maximum communities to return. Omit it for every suggestion. Credits can return
923
+ * fewer. Aliases pageSize, count, max_results, maxItems, max_items & per_page.
742
924
  */
743
- name: string;
925
+ limit?: number;
744
926
 
745
927
  /**
746
- * Header param: Generate one unique value for each intended write. Reuse it only
747
- * when retrying the exact same account, action, target, and payload. A reused key
748
- * returns the original action. Reusing it with different input returns 409. Replay
749
- * protection remains active for at least 90 days.
928
+ * Fields to drop from each row, comma-separated. It takes the same names as
929
+ * fields. With fields, it drops from the kept fields.
750
930
  */
751
- 'Idempotency-Key': string;
931
+ omit?: string;
932
+ }
752
933
 
934
+ export interface CommunityListTopicsParams {
753
935
  /**
754
- * Body param: Community description
936
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
937
+ * author.username. A list keeps the field in each item. Case & underscores do not
938
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
939
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
940
+ * before any read. The price stays the same. SDK row types then hold only the
941
+ * named fields.
755
942
  */
756
- description?: string;
757
- }
943
+ fields?: string;
758
944
 
759
- export interface CommunityDeleteParams {
760
945
  /**
761
- * Body param: X account (@username or ID) deleting the community
946
+ * Maximum topics to return. Omit it for every topic. Credits can return fewer.
947
+ * Aliases pageSize, count, max_results, maxItems, max_items & per_page.
762
948
  */
763
- account: string;
949
+ limit?: number;
764
950
 
765
951
  /**
766
- * Body param: Community name for confirmation
952
+ * Fields to drop from each row, comma-separated. It takes the same names as
953
+ * fields. With fields, it drops from the kept fields.
767
954
  */
768
- community_name: string;
955
+ omit?: string;
956
+ }
769
957
 
958
+ export interface CommunityRetrieveInfoParams {
770
959
  /**
771
- * Header param: Generate one unique value for each intended write. Reuse it only
772
- * when retrying the exact same account, action, target, and payload. A reused key
773
- * returns the original action. Reusing it with different input returns 409. Replay
774
- * protection remains active for at least 90 days.
960
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
961
+ * author.username. A list keeps the field in each item. Case & underscores do not
962
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
963
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
964
+ * before any read. The price stays the same. SDK row types then hold only the
965
+ * named fields.
775
966
  */
776
- 'Idempotency-Key': string;
967
+ fields?: string;
968
+
969
+ /**
970
+ * Fields to drop from each row, comma-separated. It takes the same names as
971
+ * fields. With fields, it drops from the kept fields.
972
+ */
973
+ omit?: string;
777
974
  }
778
975
 
779
976
  export interface CommunityRetrieveMembersParams {
@@ -783,10 +980,43 @@ export interface CommunityRetrieveMembersParams {
783
980
  bioContains?: string;
784
981
 
785
982
  /**
786
- * Pagination cursor
983
+ * Only return profiles X marks as blue verified. X marks many business &
984
+ * government accounts blue too. Use verifiedType for 1 badge type.
985
+ */
986
+ blueVerifiedOnly?: boolean;
987
+
988
+ /**
989
+ * Only return profiles that publish an email outside free webmail, such as Gmail.
990
+ */
991
+ businessEmailOnly?: boolean;
992
+
993
+ /**
994
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
995
+ * pagination_token or continuation_token.
787
996
  */
788
997
  cursor?: string;
789
998
 
999
+ /**
1000
+ * Only return profiles with an email at one of these domains. Separate domains
1001
+ * with commas. Subdomains match.
1002
+ */
1003
+ emailDomains?: string;
1004
+
1005
+ /**
1006
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1007
+ * author.username. A list keeps the field in each item. Case & underscores do not
1008
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1009
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1010
+ * before any read. The price stays the same. SDK row types then hold only the
1011
+ * named fields.
1012
+ */
1013
+ fields?: string;
1014
+
1015
+ /**
1016
+ * Only return profiles that publish an email.
1017
+ */
1018
+ hasEmail?: boolean;
1019
+
790
1020
  /**
791
1021
  * Only return profiles with a location.
792
1022
  */
@@ -808,7 +1038,7 @@ export interface CommunityRetrieveMembersParams {
808
1038
  maxFollowers?: number;
809
1039
 
810
1040
  /**
811
- * Maximum following count.
1041
+ * Profiles may follow at most this many accounts.
812
1042
  */
813
1043
  maxFollowing?: number;
814
1044
 
@@ -828,7 +1058,7 @@ export interface CommunityRetrieveMembersParams {
828
1058
  minFollowers?: number;
829
1059
 
830
1060
  /**
831
- * Minimum following count.
1061
+ * Profiles must follow at least this many accounts.
832
1062
  */
833
1063
  minFollowing?: number;
834
1064
 
@@ -838,9 +1068,13 @@ export interface CommunityRetrieveMembersParams {
838
1068
  minStatuses?: number;
839
1069
 
840
1070
  /**
841
- * Items per page (20-200, default 20). This is an upper bound for paid
842
- * authenticated calls: available usage balance can reduce the returned page size, and
843
- * zero affordable results returns 402 insufficient_credits.
1071
+ * Fields to drop from each row, comma-separated. It takes the same names as
1072
+ * fields. With fields, it drops from the kept fields.
1073
+ */
1074
+ omit?: string;
1075
+
1076
+ /**
1077
+ * Maximum user profiles per page (1-200, default 20).
844
1078
  */
845
1079
  pageSize?: number;
846
1080
 
@@ -867,10 +1101,43 @@ export interface CommunityRetrieveModeratorsParams {
867
1101
  bioContains?: string;
868
1102
 
869
1103
  /**
870
- * Pagination cursor for community moderators
1104
+ * Only return profiles X marks as blue verified. X marks many business &
1105
+ * government accounts blue too. Use verifiedType for 1 badge type.
1106
+ */
1107
+ blueVerifiedOnly?: boolean;
1108
+
1109
+ /**
1110
+ * Only return profiles that publish an email outside free webmail, such as Gmail.
1111
+ */
1112
+ businessEmailOnly?: boolean;
1113
+
1114
+ /**
1115
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
1116
+ * pagination_token or continuation_token.
871
1117
  */
872
1118
  cursor?: string;
873
1119
 
1120
+ /**
1121
+ * Only return profiles with an email at one of these domains. Separate domains
1122
+ * with commas. Subdomains match.
1123
+ */
1124
+ emailDomains?: string;
1125
+
1126
+ /**
1127
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1128
+ * author.username. A list keeps the field in each item. Case & underscores do not
1129
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1130
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1131
+ * before any read. The price stays the same. SDK row types then hold only the
1132
+ * named fields.
1133
+ */
1134
+ fields?: string;
1135
+
1136
+ /**
1137
+ * Only return profiles that publish an email.
1138
+ */
1139
+ hasEmail?: boolean;
1140
+
874
1141
  /**
875
1142
  * Only return profiles with a location.
876
1143
  */
@@ -892,7 +1159,7 @@ export interface CommunityRetrieveModeratorsParams {
892
1159
  maxFollowers?: number;
893
1160
 
894
1161
  /**
895
- * Maximum following count.
1162
+ * Profiles may follow at most this many accounts.
896
1163
  */
897
1164
  maxFollowing?: number;
898
1165
 
@@ -912,7 +1179,7 @@ export interface CommunityRetrieveModeratorsParams {
912
1179
  minFollowers?: number;
913
1180
 
914
1181
  /**
915
- * Minimum following count.
1182
+ * Profiles must follow at least this many accounts.
916
1183
  */
917
1184
  minFollowing?: number;
918
1185
 
@@ -921,6 +1188,12 @@ export interface CommunityRetrieveModeratorsParams {
921
1188
  */
922
1189
  minStatuses?: number;
923
1190
 
1191
+ /**
1192
+ * Fields to drop from each row, comma-separated. It takes the same names as
1193
+ * fields. With fields, it drops from the kept fields.
1194
+ */
1195
+ omit?: string;
1196
+
924
1197
  /**
925
1198
  * Match a username substring, ignoring case.
926
1199
  */
@@ -939,24 +1212,163 @@ export interface CommunityRetrieveModeratorsParams {
939
1212
 
940
1213
  export interface CommunityRetrieveSearchParams {
941
1214
  /**
942
- * Numeric ID of the community whose posts to search
1215
+ * Search query
943
1216
  */
944
- communityId: string;
1217
+ q: string;
945
1218
 
946
1219
  /**
947
- * Search query
1220
+ * Words or quoted phrases where any one can match. Separate with spaces, commas,
1221
+ * or lines.
948
1222
  */
949
- q: string;
1223
+ anyWords?: string;
1224
+
1225
+ /**
1226
+ * Only return tweets from Blue-verified authors.
1227
+ */
1228
+ blueVerifiedOnly?: boolean;
950
1229
 
951
1230
  /**
952
- * Pagination cursor for community search
1231
+ * Cashtags separated by spaces, commas, or lines.
1232
+ */
1233
+ cashtags?: string;
1234
+
1235
+ /**
1236
+ * Numeric ID of the Community whose posts to search. Leave it out to search posts
1237
+ * across every Community.
1238
+ */
1239
+ communityId?: string;
1240
+
1241
+ /**
1242
+ * Conversation ID filter.
1243
+ */
1244
+ conversationId?: string;
1245
+
1246
+ /**
1247
+ * Pagination cursor for community search. Also read as next_cursor, next_token,
1248
+ * pagination_token or continuation_token.
953
1249
  */
954
1250
  cursor?: string;
955
1251
 
956
1252
  /**
957
- * Maximum page items (1-100, default 20). Source, filters, or credits can reduce
958
- * results. Continue while has_next_page is true. Deprecated limit and count
959
- * aliases remain accepted.
1253
+ * Match this literal phrase, including any hyphens.
1254
+ */
1255
+ exactPhrase?: string;
1256
+
1257
+ /**
1258
+ * Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
1259
+ */
1260
+ excludeWords?: string;
1261
+
1262
+ /**
1263
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1264
+ * author.username. A list keeps the field in each item. Case & underscores do not
1265
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1266
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1267
+ * before any read. The price stays the same. SDK row types then hold only the
1268
+ * named fields.
1269
+ */
1270
+ fields?: string;
1271
+
1272
+ /**
1273
+ * Filter by author username.
1274
+ */
1275
+ fromUser?: string;
1276
+
1277
+ /**
1278
+ * Hashtags separated by spaces, commas, or lines.
1279
+ */
1280
+ hashtags?: string;
1281
+
1282
+ /**
1283
+ * Only replies to this tweet ID.
1284
+ */
1285
+ inReplyToTweetId?: string;
1286
+
1287
+ /**
1288
+ * Filter by language. Alias `lang` is accepted.
1289
+ */
1290
+ language?: string;
1291
+
1292
+ /**
1293
+ * Maximum likes threshold. maxLikes & max_likes also work.
1294
+ */
1295
+ maxFaves?: number;
1296
+
1297
+ /**
1298
+ * Return Tweets at or below this ID.
1299
+ */
1300
+ maxId?: string;
1301
+
1302
+ /**
1303
+ * Maximum quotes threshold.
1304
+ */
1305
+ maxQuotes?: number;
1306
+
1307
+ /**
1308
+ * Maximum replies threshold.
1309
+ */
1310
+ maxReplies?: number;
1311
+
1312
+ /**
1313
+ * Maximum retweets threshold.
1314
+ */
1315
+ maxRetweets?: number;
1316
+
1317
+ /**
1318
+ * Filter media. Aliases: has_video, has_media.
1319
+ */
1320
+ mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
1321
+
1322
+ /**
1323
+ * Filter tweets mentioning a username.
1324
+ */
1325
+ mentioning?: string;
1326
+
1327
+ /**
1328
+ * Minimum bookmark count threshold.
1329
+ */
1330
+ minBookmarks?: number;
1331
+
1332
+ /**
1333
+ * Minimum likes. Aliases: minFaves, min_likes, min_faves.
1334
+ */
1335
+ minLikes?: number;
1336
+
1337
+ /**
1338
+ * Minimum quote count threshold.
1339
+ */
1340
+ minQuotes?: number;
1341
+
1342
+ /**
1343
+ * Minimum replies threshold.
1344
+ */
1345
+ minReplies?: number;
1346
+
1347
+ /**
1348
+ * Minimum retweets threshold.
1349
+ */
1350
+ minRetweets?: number;
1351
+
1352
+ /**
1353
+ * Minimum view count threshold.
1354
+ */
1355
+ minViews?: number;
1356
+
1357
+ /**
1358
+ * Only return native reposts.
1359
+ */
1360
+ nativeRetweets?: boolean;
1361
+
1362
+ /**
1363
+ * Fields to drop from each row, comma-separated. It takes the same names as
1364
+ * fields. With fields, it drops from the kept fields.
1365
+ */
1366
+ omit?: string;
1367
+
1368
+ /**
1369
+ * Items per page (1-100, default 20). Source, filters or credits can return fewer.
1370
+ * Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
1371
+ * max_items & per_page.
960
1372
  */
961
1373
  pageSize?: number;
962
1374
 
@@ -964,21 +1376,207 @@ export interface CommunityRetrieveSearchParams {
964
1376
  * Sort order (Latest or Top)
965
1377
  */
966
1378
  queryType?: 'Latest' | 'Top';
1379
+
1380
+ /**
1381
+ * Only when the caller requests a quote mode.
1382
+ */
1383
+ quotes?: 'include' | 'exclude' | 'only';
1384
+
1385
+ /**
1386
+ * Only quotes of this tweet ID.
1387
+ */
1388
+ quotesOfTweetId?: string;
1389
+
1390
+ /**
1391
+ * Reply mode. Exclude keeps own-thread replies.
1392
+ */
1393
+ replies?: 'include' | 'exclude' | 'only';
1394
+
1395
+ /**
1396
+ * Only when the caller requests a repost mode.
1397
+ */
1398
+ retweets?: 'include' | 'exclude' | 'only';
1399
+
1400
+ /**
1401
+ * Only retweets of this tweet ID.
1402
+ */
1403
+ retweetsOfTweetId?: string;
1404
+
1405
+ /**
1406
+ * Start date in YYYY-MM-DD format, as a UTC day.
1407
+ */
1408
+ sinceDate?: string;
1409
+
1410
+ /**
1411
+ * Return Tweets whose IDs exceed this ID.
1412
+ */
1413
+ sinceId?: string;
1414
+
1415
+ /**
1416
+ * Filter replies sent to a username.
1417
+ */
1418
+ toUser?: string;
1419
+
1420
+ /**
1421
+ * End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
1422
+ */
1423
+ untilDate?: string;
1424
+
1425
+ /**
1426
+ * URL substring or domain filter.
1427
+ */
1428
+ url?: string;
1429
+
1430
+ /**
1431
+ * Only return tweets from verified authors.
1432
+ */
1433
+ verifiedOnly?: boolean;
1434
+
1435
+ /**
1436
+ * Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m,
1437
+ * h or d.
1438
+ */
1439
+ withinTime?: string;
1440
+ }
1441
+
1442
+ export interface CommunitySearchMembersParams {
1443
+ /**
1444
+ * Name or username to find members by, such as marckohlbrugge. A leading @ is
1445
+ * dropped. Alias query.
1446
+ */
1447
+ q: string;
1448
+
1449
+ /**
1450
+ * Match any comma-separated or line-separated bio term, ignoring case.
1451
+ */
1452
+ bioContains?: string;
1453
+
1454
+ /**
1455
+ * Only return profiles X marks as blue verified. X marks many business &
1456
+ * government accounts blue too. Use verifiedType for 1 badge type.
1457
+ */
1458
+ blueVerifiedOnly?: boolean;
1459
+
1460
+ /**
1461
+ * Only return profiles that publish an email outside free webmail, such as Gmail.
1462
+ */
1463
+ businessEmailOnly?: boolean;
1464
+
1465
+ /**
1466
+ * Only return profiles with an email at one of these domains. Separate domains
1467
+ * with commas. Subdomains match.
1468
+ */
1469
+ emailDomains?: string;
1470
+
1471
+ /**
1472
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
1473
+ * author.username. A list keeps the field in each item. Case & underscores do not
1474
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
1475
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
1476
+ * before any read. The price stays the same. SDK row types then hold only the
1477
+ * named fields.
1478
+ */
1479
+ fields?: string;
1480
+
1481
+ /**
1482
+ * Only return profiles that publish an email.
1483
+ */
1484
+ hasEmail?: boolean;
1485
+
1486
+ /**
1487
+ * Only return profiles with a location.
1488
+ */
1489
+ hasLocation?: boolean;
1490
+
1491
+ /**
1492
+ * Only return profiles with a website.
1493
+ */
1494
+ hasWebsite?: boolean;
1495
+
1496
+ /**
1497
+ * Match a location substring, ignoring case.
1498
+ */
1499
+ locationContains?: string;
1500
+
1501
+ /**
1502
+ * Maximum follower count. Missing counts pass this maximum.
1503
+ */
1504
+ maxFollowers?: number;
1505
+
1506
+ /**
1507
+ * Profiles may follow at most this many accounts.
1508
+ */
1509
+ maxFollowing?: number;
1510
+
1511
+ /**
1512
+ * Maximum post count. maxPosts is also accepted.
1513
+ */
1514
+ maxStatuses?: number;
1515
+
1516
+ /**
1517
+ * Minimum account age in whole days.
1518
+ */
1519
+ minAccountAgeDays?: number;
1520
+
1521
+ /**
1522
+ * Minimum follower count. Filtering happens before billing.
1523
+ */
1524
+ minFollowers?: number;
1525
+
1526
+ /**
1527
+ * Profiles must follow at least this many accounts.
1528
+ */
1529
+ minFollowing?: number;
1530
+
1531
+ /**
1532
+ * Minimum post count. minPosts is also accepted.
1533
+ */
1534
+ minStatuses?: number;
1535
+
1536
+ /**
1537
+ * Fields to drop from each row, comma-separated. It takes the same names as
1538
+ * fields. With fields, it drops from the kept fields.
1539
+ */
1540
+ omit?: string;
1541
+
1542
+ /**
1543
+ * Match a username substring, ignoring case.
1544
+ */
1545
+ usernameContains?: string;
1546
+
1547
+ /**
1548
+ * Only return verified profiles.
1549
+ */
1550
+ verifiedOnly?: boolean;
1551
+
1552
+ /**
1553
+ * Match the verification type exactly, ignoring case.
1554
+ */
1555
+ verifiedType?: string;
967
1556
  }
968
1557
 
969
1558
  Communities.Join = Join;
970
1559
  Communities.Tweets = Tweets;
1560
+ Communities.Media = Media;
971
1561
 
972
1562
  export declare namespace Communities {
973
1563
  export {
974
1564
  type CommunityCreateResponse as CommunityCreateResponse,
975
1565
  type CommunityDeleteResponse as CommunityDeleteResponse,
1566
+ type CommunityListSuggestedResponse as CommunityListSuggestedResponse,
1567
+ type CommunityListTopicsResponse as CommunityListTopicsResponse,
976
1568
  type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse,
977
1569
  type CommunityCreateParams as CommunityCreateParams,
978
1570
  type CommunityDeleteParams as CommunityDeleteParams,
1571
+ type CommunityFindParams as CommunityFindParams,
1572
+ type CommunityListPopularParams as CommunityListPopularParams,
1573
+ type CommunityListSuggestedParams as CommunityListSuggestedParams,
1574
+ type CommunityListTopicsParams as CommunityListTopicsParams,
1575
+ type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams,
979
1576
  type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams,
980
1577
  type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams,
981
1578
  type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams,
1579
+ type CommunitySearchMembersParams as CommunitySearchMembersParams,
982
1580
  };
983
1581
 
984
1582
  export {
@@ -994,4 +1592,6 @@ export declare namespace Communities {
994
1592
  type TweetListParams as TweetListParams,
995
1593
  type TweetListByCommunityParams as TweetListByCommunityParams,
996
1594
  };
1595
+
1596
+ export { Media as Media, type MediaListParams as MediaListParams };
997
1597
  }