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 { APIPromise } from '../../core/api-promise';
9
7
  import { buildHeaders } from '../../internal/headers';
@@ -12,7 +10,37 @@ import { path } from '../../internal/utils/path';
12
10
 
13
11
  export class Dm extends APIResource {
14
12
  /**
15
- * Get DM conversation history
13
+ * Deletes 1 DM from the account's side; the other person keeps it. Success means
14
+ * the account's conversation no longer shows it. Still shown gets 422
15
+ * `x_dm_not_deleted`, uncharged.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response = await client.x.dm.deleteMessage(
20
+ * '321669910225',
21
+ * {
22
+ * userId: 'userId',
23
+ * account: 'account',
24
+ * 'Idempotency-Key': 'Idempotency-Key',
25
+ * },
26
+ * );
27
+ * ```
28
+ */
29
+ deleteMessage(
30
+ messageID: string,
31
+ params: DmDeleteMessageParams,
32
+ options?: RequestOptions,
33
+ ): APIPromise<DmDeleteMessageResponse> {
34
+ const { userId, account, 'Idempotency-Key': idempotencyKey } = params;
35
+ return this._client.delete(path`/x/dm/${userId}/messages/${messageID}`, {
36
+ query: { account },
37
+ ...options,
38
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
39
+ });
40
+ }
41
+
42
+ /**
43
+ * Returns message history with one user for the connected X account.
16
44
  *
17
45
  * @example
18
46
  * ```ts
@@ -31,7 +59,9 @@ export class Dm extends APIResource {
31
59
  }
32
60
 
33
61
  /**
34
- * Send direct message
62
+ * Sends a direct message through a connected X account. Once X rate limits an
63
+ * account's DMs, its DMs get 429 until X's reset. Xquik sends nothing to X &
64
+ * charges nothing. `Retry-After` & `nextAction.afterMs` give the wait.
35
65
  *
36
66
  * @example
37
67
  * ```ts
@@ -53,6 +83,257 @@ export class Dm extends APIResource {
53
83
  }
54
84
  }
55
85
 
86
+ /**
87
+ * Durable write record. Poll statusUrl until terminal is true. Reusing its
88
+ * Idempotency-Key returns this record. Create another action only when safeToRetry
89
+ * is true.
90
+ */
91
+ export interface DmDeleteMessageResponse {
92
+ id: string;
93
+
94
+ /**
95
+ * Connected account selected for the write.
96
+ */
97
+ account: DmDeleteMessageResponse.Account | null;
98
+
99
+ action:
100
+ | 'create_tweet'
101
+ | 'delete_tweet'
102
+ | 'like'
103
+ | 'unlike'
104
+ | 'retweet'
105
+ | 'unretweet'
106
+ | 'follow'
107
+ | 'unfollow'
108
+ | 'remove_follower'
109
+ | 'send_dm'
110
+ | 'delete_dm'
111
+ | 'upload_media'
112
+ | 'update_profile'
113
+ | 'update_avatar'
114
+ | 'update_banner'
115
+ | 'create_community'
116
+ | 'delete_community'
117
+ | 'join_community'
118
+ | 'leave_community';
119
+
120
+ /**
121
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
122
+ * credit ledger. Pending or failed writes are not charged.
123
+ */
124
+ billing: DmDeleteMessageResponse.Billing;
125
+
126
+ charged: boolean;
127
+
128
+ chargedCredits: string;
129
+
130
+ /**
131
+ * Exact follow-up an API client or agent should perform.
132
+ */
133
+ nextAction: DmDeleteMessageResponse.NextAction | null;
134
+
135
+ object: 'x_write_action';
136
+
137
+ pollAfterMs: number | null;
138
+
139
+ /**
140
+ * Stable fingerprint and sanitized payload for replay checks.
141
+ */
142
+ request: DmDeleteMessageResponse.Request;
143
+
144
+ /**
145
+ * Confirmed result produced by the write, when available.
146
+ */
147
+ result: DmDeleteMessageResponse.Result | null;
148
+
149
+ /**
150
+ * True only when a new attempt can reasonably succeed.
151
+ */
152
+ retryable: boolean;
153
+
154
+ /**
155
+ * True only when X did not get the write and a new idempotency key may be used.
156
+ */
157
+ safeToRetry: boolean;
158
+
159
+ sendDispatched: boolean;
160
+
161
+ status: 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired';
162
+
163
+ statusUrl: string;
164
+
165
+ success: boolean;
166
+
167
+ /**
168
+ * Existing X resource targeted by the write, when applicable.
169
+ */
170
+ target: DmDeleteMessageResponse.Target | null;
171
+
172
+ targetId: string | null;
173
+
174
+ terminal: boolean;
175
+
176
+ writeActionId: string;
177
+
178
+ /**
179
+ * Compatibility field for a confirmed community ID.
180
+ */
181
+ communityId?: string;
182
+
183
+ /**
184
+ * Confirmed community name when available.
185
+ */
186
+ communityName?: string;
187
+
188
+ completedAt?: string;
189
+
190
+ confirmationAttempts?: number;
191
+
192
+ confirmationCheckedAt?: string;
193
+
194
+ confirmedAt?: string;
195
+
196
+ createdAt?: string;
197
+
198
+ /**
199
+ * Structured recovery context for a failed write.
200
+ */
201
+ details?: { [key: string]: unknown };
202
+
203
+ error?: string;
204
+
205
+ /**
206
+ * Deadline for resolving a non-terminal write. This is not the Idempotency-Key
207
+ * retention deadline.
208
+ */
209
+ expiresAt?: string;
210
+
211
+ /**
212
+ * True when this answers a retry of an earlier request with the same
213
+ * Idempotency-Key.
214
+ */
215
+ idempotent?: boolean;
216
+
217
+ /**
218
+ * Media count, kind, size, and billing details when used.
219
+ */
220
+ media?: { [key: string]: unknown };
221
+
222
+ /**
223
+ * Compatibility field for a confirmed media upload ID.
224
+ */
225
+ mediaId?: string;
226
+
227
+ /**
228
+ * Public media URL when the upload creates one.
229
+ */
230
+ mediaUrl?: string;
231
+
232
+ message?: string;
233
+
234
+ /**
235
+ * Compatibility field for a confirmed direct message ID.
236
+ */
237
+ messageId?: string;
238
+
239
+ requestHash?: string;
240
+
241
+ requestId?: string;
242
+
243
+ /**
244
+ * Compatibility result ID for other write actions.
245
+ */
246
+ resultId?: string;
247
+
248
+ /**
249
+ * Dispatch timestamp when the write reached execution.
250
+ */
251
+ sendDispatchedAt?: string;
252
+
253
+ /**
254
+ * Compatibility field for a confirmed tweet result ID.
255
+ */
256
+ tweetId?: string;
257
+
258
+ updatedAt?: string;
259
+ }
260
+
261
+ export namespace DmDeleteMessageResponse {
262
+ /**
263
+ * Connected account selected for the write.
264
+ */
265
+ export interface Account {
266
+ id: string;
267
+
268
+ username: string;
269
+ }
270
+
271
+ /**
272
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
273
+ * credit ledger. Pending or failed writes are not charged.
274
+ */
275
+ export interface Billing {
276
+ charged: boolean;
277
+
278
+ chargedCredits: string;
279
+
280
+ plannedCredits: string;
281
+
282
+ status: 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded';
283
+ }
284
+
285
+ /**
286
+ * Exact follow-up an API client or agent should perform.
287
+ */
288
+ export interface NextAction {
289
+ type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
290
+
291
+ /**
292
+ * Milliseconds to wait before you poll or retry.
293
+ */
294
+ afterMs?: number;
295
+
296
+ requiresNewIdempotencyKey?: boolean;
297
+
298
+ url?: string;
299
+ }
300
+
301
+ /**
302
+ * Stable fingerprint and sanitized payload for replay checks.
303
+ */
304
+ export interface Request {
305
+ /**
306
+ * Stable hash of account, action, target, and payload.
307
+ */
308
+ hash: string | null;
309
+
310
+ /**
311
+ * Exact sanitized payload dispatched for this action.
312
+ */
313
+ payload: { [key: string]: unknown } | null;
314
+ }
315
+
316
+ /**
317
+ * Confirmed result produced by the write, when available.
318
+ */
319
+ export interface Result {
320
+ id?: string;
321
+
322
+ state?: string;
323
+
324
+ type?: 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change';
325
+ }
326
+
327
+ /**
328
+ * Existing X resource targeted by the write, when applicable.
329
+ */
330
+ export interface Target {
331
+ id: string;
332
+
333
+ type: 'tweet' | 'user' | 'community';
334
+ }
335
+ }
336
+
56
337
  export interface DmRetrieveHistoryResponse {
57
338
  has_next_page: boolean;
58
339
 
@@ -77,14 +358,17 @@ export namespace DmRetrieveHistoryResponse {
77
358
  */
78
359
  mediaUrl?: string;
79
360
 
361
+ /**
362
+ * Text as x.com shows it, with `&`, `<` & `>` decoded.
363
+ */
80
364
  text?: string;
81
365
  }
82
366
  }
83
367
 
84
368
  /**
85
- * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
86
- * the original Idempotency-Key returns this same record. Submit a new write only
87
- * when safeToRetry is true, using a new key.
369
+ * Durable write record. Poll statusUrl until terminal is true. Reusing its
370
+ * Idempotency-Key returns this record. Create another action only when safeToRetry
371
+ * is true.
88
372
  */
89
373
  export interface DmSendResponse {
90
374
  id: string;
@@ -105,6 +389,7 @@ export interface DmSendResponse {
105
389
  | 'unfollow'
106
390
  | 'remove_follower'
107
391
  | 'send_dm'
392
+ | 'delete_dm'
108
393
  | 'upload_media'
109
394
  | 'update_profile'
110
395
  | 'update_avatar'
@@ -149,7 +434,7 @@ export interface DmSendResponse {
149
434
  retryable: boolean;
150
435
 
151
436
  /**
152
- * True only when no write was dispatched and a new idempotency key may be used.
437
+ * True only when X did not get the write and a new idempotency key may be used.
153
438
  */
154
439
  safeToRetry: boolean;
155
440
 
@@ -205,6 +490,10 @@ export interface DmSendResponse {
205
490
  */
206
491
  expiresAt?: string;
207
492
 
493
+ /**
494
+ * True when this answers a retry of an earlier request with the same
495
+ * Idempotency-Key.
496
+ */
208
497
  idempotent?: boolean;
209
498
 
210
499
  /**
@@ -281,6 +570,9 @@ export namespace DmSendResponse {
281
570
  export interface NextAction {
282
571
  type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
283
572
 
573
+ /**
574
+ * Milliseconds to wait before you poll or retry.
575
+ */
284
576
  afterMs?: number;
285
577
 
286
578
  requiresNewIdempotencyKey?: boolean;
@@ -324,6 +616,30 @@ export namespace DmSendResponse {
324
616
  }
325
617
  }
326
618
 
619
+ export interface DmDeleteMessageParams {
620
+ /**
621
+ * Path param: The other person in the conversation: user ID, username with or
622
+ * without @, or URL-encoded profile URL, such as x.com/nasa. Xquik looks up a
623
+ * username's ID first. Anything else gets 400 `invalid_user_id`.
624
+ */
625
+ userId: string;
626
+
627
+ /**
628
+ * Query param: Connected X account (@username or ID) that sees the DM.
629
+ */
630
+ account: string;
631
+
632
+ /**
633
+ * Header param: Use one unique value per intended write. Reuse it only for an
634
+ * identical retry. A matching retry returns the first answer again, with
635
+ * idempotent: true added. It keeps the first status, body & Retry-After. It sends
636
+ * nothing to X & charges nothing. While the first request runs, a retry returns
637
+ * 202 & the action. Different input returns 409. Protection lasts at least 90
638
+ * days.
639
+ */
640
+ 'Idempotency-Key': string;
641
+ }
642
+
327
643
  export interface DmRetrieveHistoryParams {
328
644
  /**
329
645
  * X handle (without the `@` prefix) of the connected X account used to read the
@@ -332,7 +648,8 @@ export interface DmRetrieveHistoryParams {
332
648
  account: string;
333
649
 
334
650
  /**
335
- * Pagination cursor for DM history
651
+ * Pagination cursor for collection results. Also read as next_cursor, next_token,
652
+ * pagination_token or continuation_token.
336
653
  */
337
654
  cursor?: string;
338
655
 
@@ -354,10 +671,12 @@ export interface DmSendParams {
354
671
  text: string;
355
672
 
356
673
  /**
357
- * Header param: Generate one unique value for each intended write. Reuse it only
358
- * when retrying the exact same account, action, target, and payload. A reused key
359
- * returns the original action. Reusing it with different input returns 409. Replay
360
- * protection remains active for at least 90 days.
674
+ * Header param: Use one unique value per intended write. Reuse it only for an
675
+ * identical retry. A matching retry returns the first answer again, with
676
+ * idempotent: true added. It keeps the first status, body & Retry-After. It sends
677
+ * nothing to X & charges nothing. While the first request runs, a retry returns
678
+ * 202 & the action. Different input returns 409. Protection lasts at least 90
679
+ * days.
361
680
  */
362
681
  'Idempotency-Key': string;
363
682
 
@@ -369,8 +688,10 @@ export interface DmSendParams {
369
688
 
370
689
  export declare namespace Dm {
371
690
  export {
691
+ type DmDeleteMessageResponse as DmDeleteMessageResponse,
372
692
  type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse,
373
693
  type DmSendResponse as DmSendResponse,
694
+ type DmDeleteMessageParams as DmDeleteMessageParams,
374
695
  type DmRetrieveHistoryParams as DmRetrieveHistoryParams,
375
696
  type DmSendParams as DmSendParams,
376
697
  };
@@ -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 { APIPromise } from '../../core/api-promise';
9
7
  import { RequestOptions } from '../../internal/request-options';
@@ -13,7 +11,8 @@ import { RequestOptions } from '../../internal/request-options';
13
11
  */
14
12
  export class Followers extends APIResource {
15
13
  /**
16
- * Check if one user follows another
14
+ * Returns whether one public account follows another, & the reverse, with each
15
+ * account's username & user ID as X names them.
17
16
  *
18
17
  * @example
19
18
  * ```ts
@@ -35,19 +34,50 @@ export interface FollowerCheckResponse {
35
34
 
36
35
  sourceUsername: string;
37
36
 
37
+ /**
38
+ * The target account's username, in lower case.
39
+ */
38
40
  targetUsername: string;
41
+
42
+ /**
43
+ * The source account's user ID, as X gives it.
44
+ */
45
+ sourceId?: string;
46
+
47
+ /**
48
+ * The target account's user ID, as X gives it.
49
+ */
50
+ targetId?: string;
39
51
  }
40
52
 
41
53
  export interface FollowerCheckParams {
42
54
  /**
43
- * Source username, @username, or X or Twitter profile URL
55
+ * Source user ID, username, @username, or X or Twitter profile URL, such as
56
+ * x.com/i/user/11348282. A number is a user ID.
44
57
  */
45
58
  source: string;
46
59
 
47
60
  /**
48
- * Target username, @username, or X or Twitter profile URL
61
+ * Target user ID, username, @username, or X or Twitter profile URL, such as
62
+ * x.com/i/user/11348282. A number is a user ID.
49
63
  */
50
64
  target: string;
65
+
66
+ /**
67
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
68
+ * author.username. A list keeps the field in each item. Case & underscores do not
69
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
70
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
71
+ * before any read. The price stays the same. SDK row types then hold only the
72
+ * named fields.
73
+ */
74
+ fields?: string;
75
+
76
+ /**
77
+ * Fields to drop from each row, comma-separated. It takes the same names as
78
+ * fields. With fields, it drops from the kept fields.
79
+ */
80
+ omit?: string;
51
81
  }
52
82
 
53
83
  export declare namespace Followers {
@@ -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
  export {
8
6
  AccountConnectionAttempts,
9
7
  type AccountConnectionAttemptRetrieveResponse,
@@ -23,32 +21,79 @@ export {
23
21
  type AccountBulkRetryResponse,
24
22
  type AccountReauthResponse,
25
23
  type AccountCreateParams,
24
+ type AccountListParams,
26
25
  type AccountReauthParams,
27
26
  } from './accounts';
28
- export { Bookmarks, type BookmarkRetrieveFoldersResponse, type BookmarkListParams } from './bookmarks';
27
+ export {
28
+ Analysis,
29
+ type AnalysisBrandResponse,
30
+ type AnalysisClassifyResponse,
31
+ type AnalysisMarketSignalsResponse,
32
+ type AnalysisNewsResponse,
33
+ type AnalysisSentimentResponse,
34
+ type AnalysisViralScoreResponse,
35
+ type AnalysisBrandParams,
36
+ type AnalysisClassifyParams,
37
+ type AnalysisMarketSignalsParams,
38
+ type AnalysisNewsParams,
39
+ type AnalysisSentimentParams,
40
+ type AnalysisViralScoreParams,
41
+ } from './analysis';
42
+ export {
43
+ Bookmarks,
44
+ type BookmarkRetrieveFoldersResponse,
45
+ type BookmarkListParams,
46
+ type BookmarkRetrieveFoldersParams,
47
+ } from './bookmarks';
48
+ export { Broadcasts, type BroadcastRetrieveResponse, type BroadcastRetrieveParams } from './broadcasts';
29
49
  export {
30
50
  Communities,
31
51
  type CommunityCreateResponse,
32
52
  type CommunityDeleteResponse,
53
+ type CommunityListSuggestedResponse,
54
+ type CommunityListTopicsResponse,
33
55
  type CommunityRetrieveInfoResponse,
34
56
  type CommunityCreateParams,
35
57
  type CommunityDeleteParams,
58
+ type CommunityFindParams,
59
+ type CommunityListPopularParams,
60
+ type CommunityListSuggestedParams,
61
+ type CommunityListTopicsParams,
62
+ type CommunityRetrieveInfoParams,
36
63
  type CommunityRetrieveMembersParams,
37
64
  type CommunityRetrieveModeratorsParams,
38
65
  type CommunityRetrieveSearchParams,
66
+ type CommunitySearchMembersParams,
39
67
  } from './communities/index';
40
68
  export {
41
69
  Dm,
70
+ type DmDeleteMessageResponse,
42
71
  type DmRetrieveHistoryResponse,
43
72
  type DmSendResponse,
73
+ type DmDeleteMessageParams,
44
74
  type DmRetrieveHistoryParams,
45
75
  type DmSendParams,
46
76
  } from './dm';
47
77
  export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from './followers';
78
+ export {
79
+ Jobs,
80
+ type JobRetrieveResponse,
81
+ type JobListLocationsResponse,
82
+ type JobSearchResponse,
83
+ type JobRetrieveParams,
84
+ type JobListLocationsParams,
85
+ type JobSearchParams,
86
+ } from './jobs';
48
87
  export {
49
88
  Lists,
89
+ type ListRetrieveResponse,
90
+ type ListRetrieveFollowersResponse,
91
+ type ListRetrieveMembersResponse,
92
+ type ListRetrieveSearchResponse,
93
+ type ListRetrieveParams,
50
94
  type ListRetrieveFollowersParams,
51
95
  type ListRetrieveMembersParams,
96
+ type ListRetrieveSearchParams,
52
97
  type ListRetrieveTweetsParams,
53
98
  } from './lists';
54
99
  export {
@@ -67,52 +112,110 @@ export {
67
112
  type ProfileUpdateAvatarParams,
68
113
  type ProfileUpdateBannerParams,
69
114
  } from './profile';
115
+ export {
116
+ Spaces,
117
+ type SpaceRetrieveResponse,
118
+ type SpaceRetrieveReplayResponse,
119
+ type SpaceSearchResponse,
120
+ type SpaceRetrieveParams,
121
+ type SpaceRetrieveReplayParams,
122
+ type SpaceSearchParams,
123
+ } from './spaces';
70
124
  export {
71
125
  Tweets,
72
126
  type TweetAuthor,
73
127
  type TweetDetail,
74
128
  type TweetCreateResponse,
75
129
  type TweetRetrieveResponse,
130
+ type TweetListResponse,
76
131
  type TweetDeleteResponse,
132
+ type TweetCheckRepostResponse,
133
+ type TweetEmbedResponse,
134
+ type TweetGetInsightsResponse,
77
135
  type TweetGetRepliesResponse,
136
+ type TweetGetRetweeterIDsResponse,
137
+ type TweetGetSubtitlesResponse,
138
+ type TweetResolveLinksResponse,
78
139
  type TweetSearchResponse,
140
+ type TweetTranslateResponse,
79
141
  type TweetCreateParams,
142
+ type TweetRetrieveParams,
80
143
  type TweetListParams,
81
144
  type TweetDeleteParams,
145
+ type TweetCheckRepostParams,
146
+ type TweetEmbedParams,
82
147
  type TweetGetFavoritersParams,
148
+ type TweetGetHiddenRepliesParams,
149
+ type TweetGetInsightsParams,
83
150
  type TweetGetQuotesParams,
84
151
  type TweetGetRepliesParams,
152
+ type TweetGetRetweeterIDsParams,
85
153
  type TweetGetRetweetersParams,
154
+ type TweetGetSubtitlesParams,
86
155
  type TweetGetThreadParams,
156
+ type TweetListTopParams,
157
+ type TweetResolveLinksParams,
87
158
  type TweetSearchParams,
159
+ type TweetTranslateParams,
88
160
  } from './tweets/index';
89
161
  export {
90
162
  Users,
91
163
  type UserRemoveFollowerResponse,
92
164
  type UserRetrieveBatchResponse,
165
+ type UserRetrieveBatchTweetsResponse,
166
+ type UserRetrieveFollowerIDsResponse,
93
167
  type UserRetrieveFollowersResponse,
94
168
  type UserRetrieveFollowingResponse,
169
+ type UserRetrieveFollowingIDsResponse,
170
+ type UserRetrieveInsightsResponse,
171
+ type UserRetrieveListMembershipsResponse,
172
+ type UserRetrieveListsResponse,
173
+ type UserRetrieveLiveResponse,
95
174
  type UserRetrieveVerifiedFollowersResponse,
175
+ type UserTranslateBioResponse,
176
+ type UserRetrieveParams,
96
177
  type UserRemoveFollowerParams,
178
+ type UserRetrieveAffiliatesParams,
179
+ type UserRetrieveArticlesParams,
97
180
  type UserRetrieveBatchParams,
181
+ type UserRetrieveBatchTweetsParams,
182
+ type UserRetrieveFollowerIDsParams,
98
183
  type UserRetrieveFollowersParams,
99
184
  type UserRetrieveFollowersYouKnowParams,
100
185
  type UserRetrieveFollowingParams,
186
+ type UserRetrieveFollowingIDsParams,
187
+ type UserRetrieveHighlightsParams,
188
+ type UserRetrieveInsightsParams,
101
189
  type UserRetrieveLikesParams,
190
+ type UserRetrieveListMembershipsParams,
191
+ type UserRetrieveListsParams,
192
+ type UserRetrieveLiveParams,
102
193
  type UserRetrieveMediaParams,
103
194
  type UserRetrieveMentionsParams,
104
195
  type UserRetrieveRepliesParams,
105
196
  type UserRetrieveSearchParams,
197
+ type UserRetrieveSimilarParams,
198
+ type UserRetrieveSubscriptionsParams,
106
199
  type UserRetrieveTweetsParams,
107
200
  type UserRetrieveVerifiedFollowersParams,
201
+ type UserTranslateBioParams,
108
202
  } from './users/index';
109
203
  export { WriteActions, type WriteActionRetrieveResponse } from './write-actions';
110
204
  export {
111
205
  X,
206
+ type XAutocompleteSearchResponse,
112
207
  type XGetArticleResponse,
208
+ type XGetHashflagsResponse,
113
209
  type XGetNotificationsResponse,
210
+ type XGetTrendLocationsResponse,
114
211
  type XGetTrendsResponse,
212
+ type XSearchPlacesResponse,
213
+ type XAutocompleteSearchParams,
214
+ type XGetArticleParams,
215
+ type XGetHashflagsParams,
115
216
  type XGetHomeTimelineParams,
116
217
  type XGetNotificationsParams,
218
+ type XGetTrendLocationsParams,
117
219
  type XGetTrendsParams,
220
+ type XSearchPlacesParams,
118
221
  } from './x';