x-twitter-scraper 0.3.2 → 0.4.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 (472) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +25 -5
  3. package/api-promise.d.mts +1 -0
  4. package/api-promise.d.mts.map +1 -1
  5. package/api-promise.d.ts +1 -0
  6. package/api-promise.d.ts.map +1 -1
  7. package/api-promise.mjs +1 -0
  8. package/api-promise.mjs.map +1 -1
  9. package/client.d.mts +23 -17
  10. package/client.d.mts.map +1 -1
  11. package/client.d.ts +23 -17
  12. package/client.d.ts.map +1 -1
  13. package/client.js +42 -17
  14. package/client.js.map +1 -1
  15. package/client.mjs +42 -17
  16. package/client.mjs.map +1 -1
  17. package/core/api-promise.d.mts.map +1 -1
  18. package/core/api-promise.d.ts.map +1 -1
  19. package/core/api-promise.mjs.map +1 -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/uploads.d.mts.map +1 -1
  24. package/core/uploads.d.ts.map +1 -1
  25. package/core/uploads.mjs.map +1 -1
  26. package/error.d.mts +1 -0
  27. package/error.d.mts.map +1 -1
  28. package/error.d.ts +1 -0
  29. package/error.d.ts.map +1 -1
  30. package/error.mjs +1 -0
  31. package/error.mjs.map +1 -1
  32. package/index.d.mts.map +1 -1
  33. package/index.d.ts.map +1 -1
  34. package/index.mjs.map +1 -1
  35. package/internal/detect-platform.mjs.map +1 -1
  36. package/internal/headers.mjs.map +1 -1
  37. package/internal/parse.d.mts.map +1 -1
  38. package/internal/parse.d.ts.map +1 -1
  39. package/internal/parse.mjs.map +1 -1
  40. package/internal/request-options.d.mts +4 -0
  41. package/internal/request-options.d.mts.map +1 -1
  42. package/internal/request-options.d.ts +4 -0
  43. package/internal/request-options.d.ts.map +1 -1
  44. package/internal/request-options.js.map +1 -1
  45. package/internal/request-options.mjs.map +1 -1
  46. package/internal/shims.d.mts +6 -0
  47. package/internal/shims.d.mts.map +1 -1
  48. package/internal/shims.d.ts +6 -0
  49. package/internal/shims.d.ts.map +1 -1
  50. package/internal/to-file.d.mts.map +1 -1
  51. package/internal/to-file.d.ts.map +1 -1
  52. package/internal/to-file.mjs.map +1 -1
  53. package/internal/types.d.mts +4 -4
  54. package/internal/types.d.mts.map +1 -1
  55. package/internal/types.d.ts +4 -4
  56. package/internal/types.d.ts.map +1 -1
  57. package/internal/uploads.d.mts.map +1 -1
  58. package/internal/uploads.d.ts.map +1 -1
  59. package/internal/uploads.mjs.map +1 -1
  60. package/internal/utils/base64.mjs.map +1 -1
  61. package/internal/utils/log.d.mts.map +1 -1
  62. package/internal/utils/log.d.ts.map +1 -1
  63. package/internal/utils/log.js +3 -2
  64. package/internal/utils/log.js.map +1 -1
  65. package/internal/utils/log.mjs +3 -2
  66. package/internal/utils/log.mjs.map +1 -1
  67. package/internal/utils/path.mjs.map +1 -1
  68. package/internal/utils/query.mjs.map +1 -1
  69. package/internal/utils/values.mjs.map +1 -1
  70. package/internal/utils.d.mts.map +1 -1
  71. package/internal/utils.d.ts.map +1 -1
  72. package/internal/utils.mjs.map +1 -1
  73. package/package.json +29 -16
  74. package/resource.d.mts +1 -0
  75. package/resource.d.mts.map +1 -1
  76. package/resource.d.ts +1 -0
  77. package/resource.d.ts.map +1 -1
  78. package/resource.mjs +1 -0
  79. package/resource.mjs.map +1 -1
  80. package/resources/account.d.mts +59 -3
  81. package/resources/account.d.mts.map +1 -1
  82. package/resources/account.d.ts +59 -3
  83. package/resources/account.d.ts.map +1 -1
  84. package/resources/account.mjs.map +1 -1
  85. package/resources/compose.d.mts.map +1 -1
  86. package/resources/compose.d.ts.map +1 -1
  87. package/resources/compose.mjs.map +1 -1
  88. package/resources/credits.d.mts +88 -11
  89. package/resources/credits.d.mts.map +1 -1
  90. package/resources/credits.d.ts +88 -11
  91. package/resources/credits.d.ts.map +1 -1
  92. package/resources/credits.js +37 -4
  93. package/resources/credits.js.map +1 -1
  94. package/resources/credits.mjs +37 -4
  95. package/resources/credits.mjs.map +1 -1
  96. package/resources/drafts.d.mts +4 -1
  97. package/resources/drafts.d.mts.map +1 -1
  98. package/resources/drafts.d.ts +4 -1
  99. package/resources/drafts.d.ts.map +1 -1
  100. package/resources/drafts.mjs.map +1 -1
  101. package/resources/draws.d.mts +33 -8
  102. package/resources/draws.d.mts.map +1 -1
  103. package/resources/draws.d.ts +33 -8
  104. package/resources/draws.d.ts.map +1 -1
  105. package/resources/draws.js +12 -4
  106. package/resources/draws.js.map +1 -1
  107. package/resources/draws.mjs +12 -4
  108. package/resources/draws.mjs.map +1 -1
  109. package/resources/events.d.mts +46 -7
  110. package/resources/events.d.mts.map +1 -1
  111. package/resources/events.d.ts +46 -7
  112. package/resources/events.d.ts.map +1 -1
  113. package/resources/events.mjs.map +1 -1
  114. package/resources/extractions.d.mts +287 -17
  115. package/resources/extractions.d.mts.map +1 -1
  116. package/resources/extractions.d.ts +287 -17
  117. package/resources/extractions.d.ts.map +1 -1
  118. package/resources/extractions.js +3 -2
  119. package/resources/extractions.js.map +1 -1
  120. package/resources/extractions.mjs +3 -2
  121. package/resources/extractions.mjs.map +1 -1
  122. package/resources/guest-wallets.d.mts +245 -0
  123. package/resources/guest-wallets.d.mts.map +1 -0
  124. package/resources/guest-wallets.d.ts +245 -0
  125. package/resources/guest-wallets.d.ts.map +1 -0
  126. package/resources/guest-wallets.js +79 -0
  127. package/resources/guest-wallets.js.map +1 -0
  128. package/resources/guest-wallets.mjs +75 -0
  129. package/resources/guest-wallets.mjs.map +1 -0
  130. package/resources/index.d.mts +5 -5
  131. package/resources/index.d.mts.map +1 -1
  132. package/resources/index.d.ts +5 -5
  133. package/resources/index.d.ts.map +1 -1
  134. package/resources/index.js +4 -4
  135. package/resources/index.js.map +1 -1
  136. package/resources/index.mjs +2 -2
  137. package/resources/index.mjs.map +1 -1
  138. package/resources/monitors/index.d.mts +3 -0
  139. package/resources/monitors/index.d.mts.map +1 -0
  140. package/resources/monitors/index.d.ts +3 -0
  141. package/resources/monitors/index.d.ts.map +1 -0
  142. package/resources/monitors/index.js +9 -0
  143. package/resources/monitors/index.js.map +1 -0
  144. package/resources/monitors/index.mjs +4 -0
  145. package/resources/monitors/index.mjs.map +1 -0
  146. package/resources/monitors/keywords.d.mts +164 -0
  147. package/resources/monitors/keywords.d.mts.map +1 -0
  148. package/resources/monitors/keywords.d.ts +164 -0
  149. package/resources/monitors/keywords.d.ts.map +1 -0
  150. package/resources/monitors/keywords.js +80 -0
  151. package/resources/monitors/keywords.js.map +1 -0
  152. package/resources/monitors/keywords.mjs +76 -0
  153. package/resources/monitors/keywords.mjs.map +1 -0
  154. package/resources/monitors/monitors.d.mts +127 -0
  155. package/resources/monitors/monitors.d.mts.map +1 -0
  156. package/resources/monitors/monitors.d.ts +127 -0
  157. package/resources/monitors/monitors.d.ts.map +1 -0
  158. package/resources/monitors/monitors.js +84 -0
  159. package/resources/monitors/monitors.js.map +1 -0
  160. package/resources/monitors/monitors.mjs +79 -0
  161. package/resources/monitors/monitors.mjs.map +1 -0
  162. package/resources/monitors.d.mts +1 -111
  163. package/resources/monitors.d.mts.map +1 -1
  164. package/resources/monitors.d.ts +1 -111
  165. package/resources/monitors.d.ts.map +1 -1
  166. package/resources/monitors.js +2 -70
  167. package/resources/monitors.js.map +1 -1
  168. package/resources/monitors.mjs +1 -68
  169. package/resources/monitors.mjs.map +1 -1
  170. package/resources/radar.d.mts +3 -3
  171. package/resources/radar.d.mts.map +1 -1
  172. package/resources/radar.d.ts +3 -3
  173. package/resources/radar.d.ts.map +1 -1
  174. package/resources/radar.mjs.map +1 -1
  175. package/resources/shared.d.mts +251 -19
  176. package/resources/shared.d.mts.map +1 -1
  177. package/resources/shared.d.ts +251 -19
  178. package/resources/shared.d.ts.map +1 -1
  179. package/resources/styles.d.mts.map +1 -1
  180. package/resources/styles.d.ts.map +1 -1
  181. package/resources/styles.mjs.map +1 -1
  182. package/resources/subscribe.d.mts +20 -6
  183. package/resources/subscribe.d.mts.map +1 -1
  184. package/resources/subscribe.d.ts +20 -6
  185. package/resources/subscribe.d.ts.map +1 -1
  186. package/resources/subscribe.js +12 -4
  187. package/resources/subscribe.js.map +1 -1
  188. package/resources/subscribe.mjs +12 -4
  189. package/resources/subscribe.mjs.map +1 -1
  190. package/resources/support/index.d.mts.map +1 -1
  191. package/resources/support/index.d.ts.map +1 -1
  192. package/resources/support/index.mjs.map +1 -1
  193. package/resources/support/support.d.mts.map +1 -1
  194. package/resources/support/support.d.ts.map +1 -1
  195. package/resources/support/support.mjs.map +1 -1
  196. package/resources/support/tickets.d.mts +9 -7
  197. package/resources/support/tickets.d.mts.map +1 -1
  198. package/resources/support/tickets.d.ts +9 -7
  199. package/resources/support/tickets.d.ts.map +1 -1
  200. package/resources/support/tickets.js +9 -7
  201. package/resources/support/tickets.js.map +1 -1
  202. package/resources/support/tickets.mjs +9 -7
  203. package/resources/support/tickets.mjs.map +1 -1
  204. package/resources/support.d.mts.map +1 -1
  205. package/resources/support.d.ts.map +1 -1
  206. package/resources/support.mjs.map +1 -1
  207. package/resources/trends.d.mts +2 -2
  208. package/resources/trends.d.mts.map +1 -1
  209. package/resources/trends.d.ts +2 -2
  210. package/resources/trends.d.ts.map +1 -1
  211. package/resources/trends.mjs.map +1 -1
  212. package/resources/webhooks.d.mts +34 -1
  213. package/resources/webhooks.d.mts.map +1 -1
  214. package/resources/webhooks.d.ts +34 -1
  215. package/resources/webhooks.d.ts.map +1 -1
  216. package/resources/webhooks.js +11 -0
  217. package/resources/webhooks.js.map +1 -1
  218. package/resources/webhooks.mjs +11 -0
  219. package/resources/webhooks.mjs.map +1 -1
  220. package/resources/x/account-connection-challenges.d.mts +41 -0
  221. package/resources/x/account-connection-challenges.d.mts.map +1 -0
  222. package/resources/x/account-connection-challenges.d.ts +41 -0
  223. package/resources/x/account-connection-challenges.d.ts.map +1 -0
  224. package/resources/x/account-connection-challenges.js +27 -0
  225. package/resources/x/account-connection-challenges.js.map +1 -0
  226. package/resources/x/account-connection-challenges.mjs +23 -0
  227. package/resources/x/account-connection-challenges.mjs.map +1 -0
  228. package/resources/x/accounts.d.mts +13 -41
  229. package/resources/x/accounts.d.mts.map +1 -1
  230. package/resources/x/accounts.d.ts +13 -41
  231. package/resources/x/accounts.d.ts.map +1 -1
  232. package/resources/x/accounts.js +3 -3
  233. package/resources/x/accounts.mjs +3 -3
  234. package/resources/x/accounts.mjs.map +1 -1
  235. package/resources/x/bookmarks.d.mts +6 -0
  236. package/resources/x/bookmarks.d.mts.map +1 -1
  237. package/resources/x/bookmarks.d.ts +6 -0
  238. package/resources/x/bookmarks.d.ts.map +1 -1
  239. package/resources/x/bookmarks.mjs.map +1 -1
  240. package/resources/x/communities/communities.d.mts +50 -14
  241. package/resources/x/communities/communities.d.mts.map +1 -1
  242. package/resources/x/communities/communities.d.ts +50 -14
  243. package/resources/x/communities/communities.d.ts.map +1 -1
  244. package/resources/x/communities/communities.js +5 -2
  245. package/resources/x/communities/communities.js.map +1 -1
  246. package/resources/x/communities/communities.mjs +6 -3
  247. package/resources/x/communities/communities.mjs.map +1 -1
  248. package/resources/x/communities/index.d.mts +2 -2
  249. package/resources/x/communities/index.d.mts.map +1 -1
  250. package/resources/x/communities/index.d.ts +2 -2
  251. package/resources/x/communities/index.d.ts.map +1 -1
  252. package/resources/x/communities/index.js.map +1 -1
  253. package/resources/x/communities/index.mjs +1 -1
  254. package/resources/x/communities/index.mjs.map +1 -1
  255. package/resources/x/communities/join.d.mts +16 -12
  256. package/resources/x/communities/join.d.mts.map +1 -1
  257. package/resources/x/communities/join.d.ts +16 -12
  258. package/resources/x/communities/join.d.ts.map +1 -1
  259. package/resources/x/communities/join.js +7 -8
  260. package/resources/x/communities/join.js.map +1 -1
  261. package/resources/x/communities/join.mjs +7 -8
  262. package/resources/x/communities/join.mjs.map +1 -1
  263. package/resources/x/communities/tweets.d.mts +29 -6
  264. package/resources/x/communities/tweets.d.mts.map +1 -1
  265. package/resources/x/communities/tweets.d.ts +29 -6
  266. package/resources/x/communities/tweets.d.ts.map +1 -1
  267. package/resources/x/communities/tweets.js +5 -2
  268. package/resources/x/communities/tweets.js.map +1 -1
  269. package/resources/x/communities/tweets.mjs +5 -2
  270. package/resources/x/communities/tweets.mjs.map +1 -1
  271. package/resources/x/communities.d.mts.map +1 -1
  272. package/resources/x/communities.d.ts.map +1 -1
  273. package/resources/x/communities.mjs.map +1 -1
  274. package/resources/x/dm.d.mts +17 -5
  275. package/resources/x/dm.d.mts.map +1 -1
  276. package/resources/x/dm.d.ts +17 -5
  277. package/resources/x/dm.d.ts.map +1 -1
  278. package/resources/x/dm.js +2 -2
  279. package/resources/x/dm.js.map +1 -1
  280. package/resources/x/dm.mjs +2 -2
  281. package/resources/x/dm.mjs.map +1 -1
  282. package/resources/x/followers.d.mts +2 -2
  283. package/resources/x/followers.d.mts.map +1 -1
  284. package/resources/x/followers.d.ts +2 -2
  285. package/resources/x/followers.d.ts.map +1 -1
  286. package/resources/x/followers.mjs.map +1 -1
  287. package/resources/x/index.d.mts +4 -2
  288. package/resources/x/index.d.mts.map +1 -1
  289. package/resources/x/index.d.ts +4 -2
  290. package/resources/x/index.d.ts.map +1 -1
  291. package/resources/x/index.js +5 -1
  292. package/resources/x/index.js.map +1 -1
  293. package/resources/x/index.mjs +2 -0
  294. package/resources/x/index.mjs.map +1 -1
  295. package/resources/x/lists.d.mts +19 -0
  296. package/resources/x/lists.d.mts.map +1 -1
  297. package/resources/x/lists.d.ts +19 -0
  298. package/resources/x/lists.d.ts.map +1 -1
  299. package/resources/x/lists.mjs.map +1 -1
  300. package/resources/x/media.d.mts +17 -8
  301. package/resources/x/media.d.mts.map +1 -1
  302. package/resources/x/media.d.ts +17 -8
  303. package/resources/x/media.d.ts.map +1 -1
  304. package/resources/x/media.js +2 -3
  305. package/resources/x/media.js.map +1 -1
  306. package/resources/x/media.mjs +3 -4
  307. package/resources/x/media.mjs.map +1 -1
  308. package/resources/x/profile.d.mts +8 -9
  309. package/resources/x/profile.d.mts.map +1 -1
  310. package/resources/x/profile.d.ts +8 -9
  311. package/resources/x/profile.d.ts.map +1 -1
  312. package/resources/x/profile.js +4 -4
  313. package/resources/x/profile.js.map +1 -1
  314. package/resources/x/profile.mjs +5 -5
  315. package/resources/x/profile.mjs.map +1 -1
  316. package/resources/x/tweets/index.d.mts.map +1 -1
  317. package/resources/x/tweets/index.d.ts.map +1 -1
  318. package/resources/x/tweets/index.mjs.map +1 -1
  319. package/resources/x/tweets/like.d.mts.map +1 -1
  320. package/resources/x/tweets/like.d.ts.map +1 -1
  321. package/resources/x/tweets/like.mjs.map +1 -1
  322. package/resources/x/tweets/retweet.d.mts.map +1 -1
  323. package/resources/x/tweets/retweet.d.ts.map +1 -1
  324. package/resources/x/tweets/retweet.mjs.map +1 -1
  325. package/resources/x/tweets/tweets.d.mts +442 -29
  326. package/resources/x/tweets/tweets.d.mts.map +1 -1
  327. package/resources/x/tweets/tweets.d.ts +442 -29
  328. package/resources/x/tweets/tweets.d.ts.map +1 -1
  329. package/resources/x/tweets/tweets.js +1 -1
  330. package/resources/x/tweets/tweets.js.map +1 -1
  331. package/resources/x/tweets/tweets.mjs +1 -1
  332. package/resources/x/tweets/tweets.mjs.map +1 -1
  333. package/resources/x/tweets.d.mts.map +1 -1
  334. package/resources/x/tweets.d.ts.map +1 -1
  335. package/resources/x/tweets.mjs.map +1 -1
  336. package/resources/x/users/follow.d.mts.map +1 -1
  337. package/resources/x/users/follow.d.ts.map +1 -1
  338. package/resources/x/users/follow.mjs.map +1 -1
  339. package/resources/x/users/index.d.mts +1 -1
  340. package/resources/x/users/index.d.mts.map +1 -1
  341. package/resources/x/users/index.d.ts +1 -1
  342. package/resources/x/users/index.d.ts.map +1 -1
  343. package/resources/x/users/index.js.map +1 -1
  344. package/resources/x/users/index.mjs.map +1 -1
  345. package/resources/x/users/users.d.mts +666 -9
  346. package/resources/x/users/users.d.mts.map +1 -1
  347. package/resources/x/users/users.d.ts +666 -9
  348. package/resources/x/users/users.d.ts.map +1 -1
  349. package/resources/x/users/users.js +26 -4
  350. package/resources/x/users/users.js.map +1 -1
  351. package/resources/x/users/users.mjs +26 -4
  352. package/resources/x/users/users.mjs.map +1 -1
  353. package/resources/x/users.d.mts.map +1 -1
  354. package/resources/x/users.d.ts.map +1 -1
  355. package/resources/x/users.mjs.map +1 -1
  356. package/resources/x/write-actions.d.mts +51 -0
  357. package/resources/x/write-actions.d.mts.map +1 -0
  358. package/resources/x/write-actions.d.ts +51 -0
  359. package/resources/x/write-actions.d.ts.map +1 -0
  360. package/resources/x/write-actions.js +26 -0
  361. package/resources/x/write-actions.js.map +1 -0
  362. package/resources/x/write-actions.mjs +22 -0
  363. package/resources/x/write-actions.mjs.map +1 -0
  364. package/resources/x/x.d.mts +65 -12
  365. package/resources/x/x.d.mts.map +1 -1
  366. package/resources/x/x.d.ts +65 -12
  367. package/resources/x/x.d.ts.map +1 -1
  368. package/resources/x/x.js +10 -1
  369. package/resources/x/x.js.map +1 -1
  370. package/resources/x/x.mjs +10 -1
  371. package/resources/x/x.mjs.map +1 -1
  372. package/resources/x.d.mts.map +1 -1
  373. package/resources/x.d.ts.map +1 -1
  374. package/resources/x.mjs.map +1 -1
  375. package/resources.d.mts.map +1 -1
  376. package/resources.d.ts.map +1 -1
  377. package/resources.mjs.map +1 -1
  378. package/src/client.ts +86 -40
  379. package/src/internal/request-options.ts +2 -0
  380. package/src/internal/utils/log.ts +2 -1
  381. package/src/resources/account.ts +72 -5
  382. package/src/resources/credits.ts +117 -10
  383. package/src/resources/drafts.ts +4 -1
  384. package/src/resources/draws.ts +33 -12
  385. package/src/resources/events.ts +52 -7
  386. package/src/resources/extractions.ts +364 -12
  387. package/src/resources/guest-wallets.ts +337 -0
  388. package/src/resources/index.ts +15 -10
  389. package/src/resources/monitors/index.ts +21 -0
  390. package/src/resources/monitors/keywords.ts +221 -0
  391. package/src/resources/monitors/monitors.ts +195 -0
  392. package/src/resources/monitors.ts +1 -153
  393. package/src/resources/radar.ts +3 -3
  394. package/src/resources/shared.ts +463 -21
  395. package/src/resources/subscribe.ts +29 -8
  396. package/src/resources/support/tickets.ts +9 -7
  397. package/src/resources/trends.ts +2 -2
  398. package/src/resources/webhooks.ts +43 -0
  399. package/src/resources/x/account-connection-challenges.ts +61 -0
  400. package/src/resources/x/accounts.ts +15 -46
  401. package/src/resources/x/bookmarks.ts +6 -0
  402. package/src/resources/x/communities/communities.ts +68 -16
  403. package/src/resources/x/communities/index.ts +7 -2
  404. package/src/resources/x/communities/join.ts +23 -16
  405. package/src/resources/x/communities/tweets.ts +32 -6
  406. package/src/resources/x/dm.ts +20 -7
  407. package/src/resources/x/followers.ts +2 -2
  408. package/src/resources/x/index.ts +10 -1
  409. package/src/resources/x/lists.ts +22 -0
  410. package/src/resources/x/media.ts +25 -11
  411. package/src/resources/x/profile.ts +11 -12
  412. package/src/resources/x/tweets/tweets.ts +540 -32
  413. package/src/resources/x/users/index.ts +4 -0
  414. package/src/resources/x/users/users.ts +834 -8
  415. package/src/resources/x/write-actions.ts +79 -0
  416. package/src/resources/x/x.ts +107 -10
  417. package/src/version.ts +1 -1
  418. package/uploads.d.mts +1 -0
  419. package/uploads.d.mts.map +1 -1
  420. package/uploads.d.ts +1 -0
  421. package/uploads.d.ts.map +1 -1
  422. package/uploads.mjs +1 -0
  423. package/uploads.mjs.map +1 -1
  424. package/version.d.mts +1 -1
  425. package/version.d.ts +1 -1
  426. package/version.js +1 -1
  427. package/version.mjs +1 -1
  428. package/resources/api-keys.d.mts +0 -68
  429. package/resources/api-keys.d.mts.map +0 -1
  430. package/resources/api-keys.d.ts +0 -68
  431. package/resources/api-keys.d.ts.map +0 -1
  432. package/resources/api-keys.js +0 -48
  433. package/resources/api-keys.js.map +0 -1
  434. package/resources/api-keys.mjs +0 -44
  435. package/resources/api-keys.mjs.map +0 -1
  436. package/resources/bot/bot.d.mts +0 -10
  437. package/resources/bot/bot.d.mts.map +0 -1
  438. package/resources/bot/bot.d.ts +0 -10
  439. package/resources/bot/bot.d.ts.map +0 -1
  440. package/resources/bot/bot.js +0 -17
  441. package/resources/bot/bot.js.map +0 -1
  442. package/resources/bot/bot.mjs +0 -12
  443. package/resources/bot/bot.mjs.map +0 -1
  444. package/resources/bot/index.d.mts +0 -3
  445. package/resources/bot/index.d.mts.map +0 -1
  446. package/resources/bot/index.d.ts +0 -3
  447. package/resources/bot/index.d.ts.map +0 -1
  448. package/resources/bot/index.js +0 -9
  449. package/resources/bot/index.js.map +0 -1
  450. package/resources/bot/index.mjs +0 -4
  451. package/resources/bot/index.mjs.map +0 -1
  452. package/resources/bot/platform-links.d.mts +0 -4
  453. package/resources/bot/platform-links.d.mts.map +0 -1
  454. package/resources/bot/platform-links.d.ts +0 -4
  455. package/resources/bot/platform-links.d.ts.map +0 -1
  456. package/resources/bot/platform-links.js +0 -9
  457. package/resources/bot/platform-links.js.map +0 -1
  458. package/resources/bot/platform-links.mjs +0 -5
  459. package/resources/bot/platform-links.mjs.map +0 -1
  460. package/resources/bot.d.mts +0 -2
  461. package/resources/bot.d.mts.map +0 -1
  462. package/resources/bot.d.ts +0 -2
  463. package/resources/bot.d.ts.map +0 -1
  464. package/resources/bot.js +0 -6
  465. package/resources/bot.js.map +0 -1
  466. package/resources/bot.mjs +0 -3
  467. package/resources/bot.mjs.map +0 -1
  468. package/src/resources/api-keys.ts +0 -100
  469. package/src/resources/bot/bot.ts +0 -15
  470. package/src/resources/bot/index.ts +0 -4
  471. package/src/resources/bot/platform-links.ts +0 -5
  472. package/src/resources/bot.ts +0 -3
@@ -7,7 +7,7 @@ import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
8
 
9
9
  /**
10
- * Bulk data extraction (20 tool types)
10
+ * Bulk data extraction (23 tool types)
11
11
  */
12
12
  export class Extractions extends APIResource {
13
13
  /**
@@ -66,6 +66,7 @@ export class Extractions extends APIResource {
66
66
  * ```ts
67
67
  * const response = await client.extractions.exportResults(
68
68
  * 'id',
69
+ * { format: 'csv' },
69
70
  * );
70
71
  *
71
72
  * const content = await response.blob();
@@ -74,7 +75,7 @@ export class Extractions extends APIResource {
74
75
  */
75
76
  exportResults(
76
77
  id: string,
77
- query: ExtractionExportResultsParams | null | undefined = {},
78
+ query: ExtractionExportResultsParams,
78
79
  options?: RequestOptions,
79
80
  ): APIPromise<Response> {
80
81
  return this._client.get(path`/extractions/${id}/export`, {
@@ -120,6 +121,7 @@ export interface ExtractionJob {
120
121
  | 'community_moderator_explorer'
121
122
  | 'community_post_extractor'
122
123
  | 'community_search'
124
+ | 'favoriters'
123
125
  | 'follower_explorer'
124
126
  | 'following_explorer'
125
127
  | 'list_follower_explorer'
@@ -134,6 +136,8 @@ export interface ExtractionJob {
134
136
  | 'space_explorer'
135
137
  | 'thread_extractor'
136
138
  | 'tweet_search_extractor'
139
+ | 'user_likes'
140
+ | 'user_media'
137
141
  | 'verified_follower_explorer';
138
142
 
139
143
  totalResults: number;
@@ -145,7 +149,7 @@ export interface ExtractionRetrieveResponse {
145
149
  hasMore: boolean;
146
150
 
147
151
  /**
148
- * Extraction job metadata — shape varies by tool type (JSON)
152
+ * Extraction job metadata - shape varies by tool type (JSON)
149
153
  */
150
154
  job: { [key: string]: unknown };
151
155
 
@@ -171,7 +175,16 @@ export interface ExtractionEstimateCostResponse {
171
175
 
172
176
  estimatedResults: number;
173
177
 
174
- source: string;
178
+ source:
179
+ | 'followers'
180
+ | 'following'
181
+ | 'paginationCap'
182
+ | 'posts'
183
+ | 'quoteCount'
184
+ | 'replyCount'
185
+ | 'resultsLimit'
186
+ | 'retweetCount'
187
+ | 'unknown';
175
188
 
176
189
  resolvedXUserId?: string;
177
190
  }
@@ -190,6 +203,7 @@ export interface ExtractionRunResponse {
190
203
  | 'community_moderator_explorer'
191
204
  | 'community_post_extractor'
192
205
  | 'community_search'
206
+ | 'favoriters'
193
207
  | 'follower_explorer'
194
208
  | 'following_explorer'
195
209
  | 'list_follower_explorer'
@@ -204,14 +218,16 @@ export interface ExtractionRunResponse {
204
218
  | 'space_explorer'
205
219
  | 'thread_extractor'
206
220
  | 'tweet_search_extractor'
221
+ | 'user_likes'
222
+ | 'user_media'
207
223
  | 'verified_follower_explorer';
208
224
  }
209
225
 
210
226
  export interface ExtractionRetrieveParams {
211
227
  /**
212
- * Cursor for keyset pagination
228
+ * Cursor for keyset pagination from prior response next_cursor
213
229
  */
214
- after?: string;
230
+ cursor?: string;
215
231
 
216
232
  /**
217
233
  * Maximum number of results to return (1-1000, default 100)
@@ -221,12 +237,15 @@ export interface ExtractionRetrieveParams {
221
237
 
222
238
  export interface ExtractionListParams {
223
239
  /**
224
- * Cursor for keyset pagination
240
+ * Cursor for keyset pagination from prior response next_cursor
225
241
  */
226
- after?: string;
242
+ cursor?: string;
227
243
 
228
244
  /**
229
- * Maximum number of items to return (1-100, default 50)
245
+ * Maximum number of items to return (1-100, default 50). For paid per-result
246
+ * endpoints, the returned count may be lower when available usage balance cannot cover
247
+ * the requested page. If zero paid results are affordable, the endpoint returns
248
+ * 402 insufficient_credits.
230
249
  */
231
250
  limit?: number;
232
251
 
@@ -244,6 +263,7 @@ export interface ExtractionListParams {
244
263
  | 'community_moderator_explorer'
245
264
  | 'community_post_extractor'
246
265
  | 'community_search'
266
+ | 'favoriters'
247
267
  | 'follower_explorer'
248
268
  | 'following_explorer'
249
269
  | 'list_follower_explorer'
@@ -258,6 +278,8 @@ export interface ExtractionListParams {
258
278
  | 'space_explorer'
259
279
  | 'thread_extractor'
260
280
  | 'tweet_search_extractor'
281
+ | 'user_likes'
282
+ | 'user_media'
261
283
  | 'verified_follower_explorer';
262
284
  }
263
285
 
@@ -271,6 +293,7 @@ export interface ExtractionEstimateCostParams {
271
293
  | 'community_moderator_explorer'
272
294
  | 'community_post_extractor'
273
295
  | 'community_search'
296
+ | 'favoriters'
274
297
  | 'follower_explorer'
275
298
  | 'following_explorer'
276
299
  | 'list_follower_explorer'
@@ -285,6 +308,8 @@ export interface ExtractionEstimateCostParams {
285
308
  | 'space_explorer'
286
309
  | 'thread_extractor'
287
310
  | 'tweet_search_extractor'
311
+ | 'user_likes'
312
+ | 'user_media'
288
313
  | 'verified_follower_explorer';
289
314
 
290
315
  /**
@@ -292,34 +317,197 @@ export interface ExtractionEstimateCostParams {
292
317
  */
293
318
  advancedQuery?: string;
294
319
 
320
+ /**
321
+ * Alternative words or quoted phrases for estimated results. Separate with spaces,
322
+ * commas, or lines.
323
+ */
324
+ anyWords?: string;
325
+
326
+ /**
327
+ * Geo bounding box used for estimation, e.g. -74.1 40.6 -73.9 40.8
328
+ * (tweet_search_extractor)
329
+ */
330
+ boundingBox?: string;
331
+
332
+ /**
333
+ * Cashtags applied to the estimate, separated by spaces, commas, or lines.
334
+ */
335
+ cashtags?: string;
336
+
337
+ /**
338
+ * Conversation ID filter used for estimation (tweet_search_extractor)
339
+ */
340
+ conversationId?: string;
341
+
295
342
  /**
296
343
  * Exact phrase filter for search estimation
297
344
  */
298
345
  exactPhrase?: string;
299
346
 
300
347
  /**
301
- * Words excluded from estimated search results
348
+ * Words or quoted phrases excluded from estimated results. Separate with spaces,
349
+ * commas, or lines.
302
350
  */
303
351
  excludeWords?: string;
304
352
 
353
+ /**
354
+ * Estimate only tweets from this author username (tweet_search_extractor)
355
+ */
356
+ fromUser?: string;
357
+
358
+ /**
359
+ * Hashtags applied to the estimate, separated by spaces, commas, or lines.
360
+ */
361
+ hashtags?: string;
362
+
363
+ /**
364
+ * Estimate only replies to this tweet ID (tweet_search_extractor)
365
+ */
366
+ inReplyToTweetId?: string;
367
+
368
+ /**
369
+ * Language code used for estimate filtering (tweet_search_extractor)
370
+ */
371
+ language?: string;
372
+
373
+ /**
374
+ * Estimate search results within this list ID (tweet_search_extractor)
375
+ */
376
+ listId?: string;
377
+
378
+ /**
379
+ * Media type used for estimate filtering (tweet_search_extractor)
380
+ */
381
+ mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
382
+
383
+ /**
384
+ * Estimate tweets mentioning this username (tweet_search_extractor)
385
+ */
386
+ mentioning?: string;
387
+
388
+ /**
389
+ * Minimum likes threshold for estimated results (tweet_search_extractor)
390
+ */
391
+ minFaves?: number;
392
+
393
+ /**
394
+ * Minimum quote count threshold for estimated results (tweet_search_extractor)
395
+ */
396
+ minQuotes?: number;
397
+
398
+ /**
399
+ * Minimum replies threshold for estimated results (tweet_search_extractor)
400
+ */
401
+ minReplies?: number;
402
+
403
+ /**
404
+ * Minimum retweets threshold for estimated results (tweet_search_extractor)
405
+ */
406
+ minRetweets?: number;
407
+
408
+ /**
409
+ * Estimate search results within this place ID (tweet_search_extractor)
410
+ */
411
+ place?: string;
412
+
413
+ /**
414
+ * Estimate search results within this country code (tweet_search_extractor)
415
+ */
416
+ placeCountry?: string;
417
+
418
+ /**
419
+ * Geo point radius used for estimation, e.g. -73.99 40.73 25mi
420
+ * (tweet_search_extractor)
421
+ */
422
+ pointRadius?: string;
423
+
424
+ /**
425
+ * Quote mode used for estimation (tweet_search_extractor)
426
+ */
427
+ quotes?: 'include' | 'exclude' | 'only';
428
+
429
+ /**
430
+ * Estimate only quotes of this tweet ID (tweet_search_extractor)
431
+ */
432
+ quotesOfTweetId?: string;
433
+
434
+ /**
435
+ * Reply mode used for estimation (tweet_search_extractor)
436
+ */
437
+ replies?: 'include' | 'exclude' | 'only';
438
+
439
+ /**
440
+ * Maximum number of results to estimate. When set, the estimate caps projected
441
+ * results to this value.
442
+ */
443
+ resultsLimit?: number;
444
+
445
+ /**
446
+ * Retweet mode used for estimation (tweet_search_extractor)
447
+ */
448
+ retweets?: 'include' | 'exclude' | 'only';
449
+
450
+ /**
451
+ * Estimate only retweets of this tweet ID (tweet_search_extractor)
452
+ */
453
+ retweetsOfTweetId?: string;
454
+
455
+ /**
456
+ * Required for tweet_search_extractor & community_search.
457
+ */
305
458
  searchQuery?: string;
306
459
 
460
+ /**
461
+ * Estimate start date in YYYY-MM-DD format (tweet_search_extractor)
462
+ */
463
+ sinceDate?: string;
464
+
465
+ /**
466
+ * Required for community_post_extractor & community_search.
467
+ */
307
468
  targetCommunityId?: string;
308
469
 
470
+ /**
471
+ * Required for list_follower_explorer, list_member_extractor &
472
+ * list_post_extractor.
473
+ */
309
474
  targetListId?: string;
310
475
 
476
+ /**
477
+ * Required for space_explorer.
478
+ */
311
479
  targetSpaceId?: string;
312
480
 
313
481
  targetTweetId?: string;
314
482
 
315
483
  targetUsername?: string;
484
+
485
+ /**
486
+ * Estimate replies sent to this username (tweet_search_extractor)
487
+ */
488
+ toUser?: string;
489
+
490
+ /**
491
+ * Estimate end date in YYYY-MM-DD format (tweet_search_extractor)
492
+ */
493
+ untilDate?: string;
494
+
495
+ /**
496
+ * URL substring or domain filter used for estimation (tweet_search_extractor)
497
+ */
498
+ url?: string;
499
+
500
+ /**
501
+ * Estimate only verified authors (tweet_search_extractor)
502
+ */
503
+ verifiedOnly?: boolean;
316
504
  }
317
505
 
318
506
  export interface ExtractionExportResultsParams {
319
507
  /**
320
508
  * Export file format
321
509
  */
322
- format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
510
+ format: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
323
511
  }
324
512
 
325
513
  export interface ExtractionRunParams {
@@ -332,6 +520,7 @@ export interface ExtractionRunParams {
332
520
  | 'community_moderator_explorer'
333
521
  | 'community_post_extractor'
334
522
  | 'community_search'
523
+ | 'favoriters'
335
524
  | 'follower_explorer'
336
525
  | 'following_explorer'
337
526
  | 'list_follower_explorer'
@@ -346,6 +535,8 @@ export interface ExtractionRunParams {
346
535
  | 'space_explorer'
347
536
  | 'thread_extractor'
348
537
  | 'tweet_search_extractor'
538
+ | 'user_likes'
539
+ | 'user_media'
349
540
  | 'verified_follower_explorer';
350
541
 
351
542
  /**
@@ -353,27 +544,188 @@ export interface ExtractionRunParams {
353
544
  */
354
545
  advancedQuery?: string;
355
546
 
547
+ /**
548
+ * Words or quoted phrases where any one can match. Separate with spaces, commas,
549
+ * or lines. (tweet_search_extractor)
550
+ */
551
+ anyWords?: string;
552
+
553
+ /**
554
+ * Geo bounding box, e.g. -74.1 40.6 -73.9 40.8 (tweet_search_extractor)
555
+ */
556
+ boundingBox?: string;
557
+
558
+ /**
559
+ * Cashtags separated by spaces, commas, or lines. (tweet_search_extractor)
560
+ */
561
+ cashtags?: string;
562
+
563
+ /**
564
+ * Conversation ID filter (tweet_search_extractor)
565
+ */
566
+ conversationId?: string;
567
+
356
568
  /**
357
569
  * Exact phrase to match (tweet_search_extractor)
358
570
  */
359
571
  exactPhrase?: string;
360
572
 
361
573
  /**
362
- * Words to exclude from results (tweet_search_extractor)
574
+ * Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
575
+ * (tweet_search_extractor)
363
576
  */
364
577
  excludeWords?: string;
365
578
 
579
+ /**
580
+ * Filter by author username (tweet_search_extractor)
581
+ */
582
+ fromUser?: string;
583
+
584
+ /**
585
+ * Hashtags separated by spaces, commas, or lines. (tweet_search_extractor)
586
+ */
587
+ hashtags?: string;
588
+
589
+ /**
590
+ * Only replies to this tweet ID (tweet_search_extractor)
591
+ */
592
+ inReplyToTweetId?: string;
593
+
594
+ /**
595
+ * Language code filter (tweet_search_extractor)
596
+ */
597
+ language?: string;
598
+
599
+ /**
600
+ * Search within a list ID (tweet_search_extractor)
601
+ */
602
+ listId?: string;
603
+
604
+ /**
605
+ * Media type filter (tweet_search_extractor)
606
+ */
607
+ mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
608
+
609
+ /**
610
+ * Filter tweets mentioning a username (tweet_search_extractor)
611
+ */
612
+ mentioning?: string;
613
+
614
+ /**
615
+ * Minimum likes threshold (tweet_search_extractor)
616
+ */
617
+ minFaves?: number;
618
+
619
+ /**
620
+ * Minimum quote count threshold (tweet_search_extractor)
621
+ */
622
+ minQuotes?: number;
623
+
624
+ /**
625
+ * Minimum replies threshold (tweet_search_extractor)
626
+ */
627
+ minReplies?: number;
628
+
629
+ /**
630
+ * Minimum retweets threshold (tweet_search_extractor)
631
+ */
632
+ minRetweets?: number;
633
+
634
+ /**
635
+ * Search within a place ID (tweet_search_extractor)
636
+ */
637
+ place?: string;
638
+
639
+ /**
640
+ * Search within a country code (tweet_search_extractor)
641
+ */
642
+ placeCountry?: string;
643
+
644
+ /**
645
+ * Geo point radius, e.g. -73.99 40.73 25mi (tweet_search_extractor)
646
+ */
647
+ pointRadius?: string;
648
+
649
+ /**
650
+ * Quote mode (tweet_search_extractor)
651
+ */
652
+ quotes?: 'include' | 'exclude' | 'only';
653
+
654
+ /**
655
+ * Only quotes of this tweet ID (tweet_search_extractor)
656
+ */
657
+ quotesOfTweetId?: string;
658
+
659
+ /**
660
+ * Reply mode (tweet_search_extractor)
661
+ */
662
+ replies?: 'include' | 'exclude' | 'only';
663
+
664
+ /**
665
+ * Maximum number of results to extract. When set, the extraction stops after
666
+ * reaching this limit.
667
+ */
668
+ resultsLimit?: number;
669
+
670
+ /**
671
+ * Retweet mode (tweet_search_extractor)
672
+ */
673
+ retweets?: 'include' | 'exclude' | 'only';
674
+
675
+ /**
676
+ * Only retweets of this tweet ID (tweet_search_extractor)
677
+ */
678
+ retweetsOfTweetId?: string;
679
+
680
+ /**
681
+ * Required for tweet_search_extractor & community_search.
682
+ */
366
683
  searchQuery?: string;
367
684
 
685
+ /**
686
+ * Start date YYYY-MM-DD (tweet_search_extractor)
687
+ */
688
+ sinceDate?: string;
689
+
690
+ /**
691
+ * Required for community_post_extractor & community_search.
692
+ */
368
693
  targetCommunityId?: string;
369
694
 
695
+ /**
696
+ * Required for list_follower_explorer, list_member_extractor &
697
+ * list_post_extractor.
698
+ */
370
699
  targetListId?: string;
371
700
 
701
+ /**
702
+ * Required for space_explorer.
703
+ */
372
704
  targetSpaceId?: string;
373
705
 
374
706
  targetTweetId?: string;
375
707
 
376
708
  targetUsername?: string;
709
+
710
+ /**
711
+ * Filter replies sent to a username (tweet_search_extractor)
712
+ */
713
+ toUser?: string;
714
+
715
+ /**
716
+ * End date YYYY-MM-DD (tweet_search_extractor)
717
+ */
718
+ untilDate?: string;
719
+
720
+ /**
721
+ * URL substring or domain filter (tweet_search_extractor)
722
+ */
723
+ url?: string;
724
+
725
+ /**
726
+ * Only verified authors (tweet_search_extractor)
727
+ */
728
+ verifiedOnly?: boolean;
377
729
  }
378
730
 
379
731
  export declare namespace Extractions {