x-twitter-scraper 0.1.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 (748) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +201 -0
  3. package/README.md +398 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +295 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +295 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +592 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +588 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +79 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +79 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +86 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +80 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/query.d.mts +5 -0
  199. package/internal/utils/query.d.mts.map +1 -0
  200. package/internal/utils/query.d.ts +5 -0
  201. package/internal/utils/query.d.ts.map +1 -0
  202. package/internal/utils/query.js +23 -0
  203. package/internal/utils/query.js.map +1 -0
  204. package/internal/utils/query.mjs +20 -0
  205. package/internal/utils/query.mjs.map +1 -0
  206. package/internal/utils/sleep.d.mts +2 -0
  207. package/internal/utils/sleep.d.mts.map +1 -0
  208. package/internal/utils/sleep.d.ts +2 -0
  209. package/internal/utils/sleep.d.ts.map +1 -0
  210. package/internal/utils/sleep.js +7 -0
  211. package/internal/utils/sleep.js.map +1 -0
  212. package/internal/utils/sleep.mjs +3 -0
  213. package/internal/utils/sleep.mjs.map +1 -0
  214. package/internal/utils/uuid.d.mts +5 -0
  215. package/internal/utils/uuid.d.mts.map +1 -0
  216. package/internal/utils/uuid.d.ts +5 -0
  217. package/internal/utils/uuid.d.ts.map +1 -0
  218. package/internal/utils/uuid.js +19 -0
  219. package/internal/utils/uuid.js.map +1 -0
  220. package/internal/utils/uuid.mjs +15 -0
  221. package/internal/utils/uuid.mjs.map +1 -0
  222. package/internal/utils/values.d.mts +18 -0
  223. package/internal/utils/values.d.mts.map +1 -0
  224. package/internal/utils/values.d.ts +18 -0
  225. package/internal/utils/values.d.ts.map +1 -0
  226. package/internal/utils/values.js +112 -0
  227. package/internal/utils/values.js.map +1 -0
  228. package/internal/utils/values.mjs +94 -0
  229. package/internal/utils/values.mjs.map +1 -0
  230. package/internal/utils.d.mts +8 -0
  231. package/internal/utils.d.mts.map +1 -0
  232. package/internal/utils.d.ts +8 -0
  233. package/internal/utils.d.ts.map +1 -0
  234. package/internal/utils.js +12 -0
  235. package/internal/utils.js.map +1 -0
  236. package/internal/utils.mjs +9 -0
  237. package/internal/utils.mjs.map +1 -0
  238. package/package.json +143 -0
  239. package/resource.d.mts +2 -0
  240. package/resource.d.mts.map +1 -0
  241. package/resource.d.ts +2 -0
  242. package/resource.d.ts.map +1 -0
  243. package/resource.js +6 -0
  244. package/resource.js.map +1 -0
  245. package/resource.mjs +2 -0
  246. package/resource.mjs.map +1 -0
  247. package/resources/account.d.mts +53 -0
  248. package/resources/account.d.mts.map +1 -0
  249. package/resources/account.d.ts +53 -0
  250. package/resources/account.d.ts.map +1 -0
  251. package/resources/account.js +30 -0
  252. package/resources/account.js.map +1 -0
  253. package/resources/account.mjs +26 -0
  254. package/resources/account.mjs.map +1 -0
  255. package/resources/api-keys.d.mts +48 -0
  256. package/resources/api-keys.d.mts.map +1 -0
  257. package/resources/api-keys.d.ts +48 -0
  258. package/resources/api-keys.d.ts.map +1 -0
  259. package/resources/api-keys.js +31 -0
  260. package/resources/api-keys.js.map +1 -0
  261. package/resources/api-keys.mjs +27 -0
  262. package/resources/api-keys.mjs.map +1 -0
  263. package/resources/bot/bot.d.mts +10 -0
  264. package/resources/bot/bot.d.mts.map +1 -0
  265. package/resources/bot/bot.d.ts +10 -0
  266. package/resources/bot/bot.d.ts.map +1 -0
  267. package/resources/bot/bot.js +17 -0
  268. package/resources/bot/bot.js.map +1 -0
  269. package/resources/bot/bot.mjs +12 -0
  270. package/resources/bot/bot.mjs.map +1 -0
  271. package/resources/bot/index.d.mts +3 -0
  272. package/resources/bot/index.d.mts.map +1 -0
  273. package/resources/bot/index.d.ts +3 -0
  274. package/resources/bot/index.d.ts.map +1 -0
  275. package/resources/bot/index.js +9 -0
  276. package/resources/bot/index.js.map +1 -0
  277. package/resources/bot/index.mjs +4 -0
  278. package/resources/bot/index.mjs.map +1 -0
  279. package/resources/bot/platform-links.d.mts +4 -0
  280. package/resources/bot/platform-links.d.mts.map +1 -0
  281. package/resources/bot/platform-links.d.ts +4 -0
  282. package/resources/bot/platform-links.d.ts.map +1 -0
  283. package/resources/bot/platform-links.js +9 -0
  284. package/resources/bot/platform-links.js.map +1 -0
  285. package/resources/bot/platform-links.mjs +5 -0
  286. package/resources/bot/platform-links.mjs.map +1 -0
  287. package/resources/bot.d.mts +2 -0
  288. package/resources/bot.d.mts.map +1 -0
  289. package/resources/bot.d.ts +2 -0
  290. package/resources/bot.d.ts.map +1 -0
  291. package/resources/bot.js +6 -0
  292. package/resources/bot.js.map +1 -0
  293. package/resources/bot.mjs +3 -0
  294. package/resources/bot.mjs.map +1 -0
  295. package/resources/compose.d.mts +65 -0
  296. package/resources/compose.d.mts.map +1 -0
  297. package/resources/compose.d.ts +65 -0
  298. package/resources/compose.d.ts.map +1 -0
  299. package/resources/compose.js +18 -0
  300. package/resources/compose.js.map +1 -0
  301. package/resources/compose.mjs +14 -0
  302. package/resources/compose.mjs.map +1 -0
  303. package/resources/credits.d.mts +35 -0
  304. package/resources/credits.d.mts.map +1 -0
  305. package/resources/credits.d.ts +35 -0
  306. package/resources/credits.d.ts.map +1 -0
  307. package/resources/credits.js +24 -0
  308. package/resources/credits.js.map +1 -0
  309. package/resources/credits.mjs +20 -0
  310. package/resources/credits.mjs.map +1 -0
  311. package/resources/drafts.d.mts +60 -0
  312. package/resources/drafts.d.mts.map +1 -0
  313. package/resources/drafts.d.ts +60 -0
  314. package/resources/drafts.d.ts.map +1 -0
  315. package/resources/drafts.js +41 -0
  316. package/resources/drafts.js.map +1 -0
  317. package/resources/drafts.mjs +37 -0
  318. package/resources/drafts.mjs.map +1 -0
  319. package/resources/draws.d.mts +103 -0
  320. package/resources/draws.d.mts.map +1 -0
  321. package/resources/draws.d.ts +103 -0
  322. package/resources/draws.d.ts.map +1 -0
  323. package/resources/draws.js +43 -0
  324. package/resources/draws.js.map +1 -0
  325. package/resources/draws.mjs +39 -0
  326. package/resources/draws.mjs.map +1 -0
  327. package/resources/events.d.mts +56 -0
  328. package/resources/events.d.mts.map +1 -0
  329. package/resources/events.d.ts +56 -0
  330. package/resources/events.d.ts.map +1 -0
  331. package/resources/events.js +25 -0
  332. package/resources/events.js.map +1 -0
  333. package/resources/events.mjs +21 -0
  334. package/resources/events.mjs.map +1 -0
  335. package/resources/extractions.d.mts +128 -0
  336. package/resources/extractions.d.mts.map +1 -0
  337. package/resources/extractions.d.ts +128 -0
  338. package/resources/extractions.d.ts.map +1 -0
  339. package/resources/extractions.js +49 -0
  340. package/resources/extractions.js.map +1 -0
  341. package/resources/extractions.mjs +45 -0
  342. package/resources/extractions.mjs.map +1 -0
  343. package/resources/index.d.mts +20 -0
  344. package/resources/index.d.mts.map +1 -0
  345. package/resources/index.d.ts +20 -0
  346. package/resources/index.d.ts.map +1 -0
  347. package/resources/index.js +43 -0
  348. package/resources/index.js.map +1 -0
  349. package/resources/index.mjs +21 -0
  350. package/resources/index.mjs.map +1 -0
  351. package/resources/integrations.d.mts +115 -0
  352. package/resources/integrations.d.mts.map +1 -0
  353. package/resources/integrations.d.ts +115 -0
  354. package/resources/integrations.d.ts.map +1 -0
  355. package/resources/integrations.js +55 -0
  356. package/resources/integrations.js.map +1 -0
  357. package/resources/integrations.mjs +51 -0
  358. package/resources/integrations.mjs.map +1 -0
  359. package/resources/monitors.d.mts +66 -0
  360. package/resources/monitors.d.mts.map +1 -0
  361. package/resources/monitors.d.ts +66 -0
  362. package/resources/monitors.d.ts.map +1 -0
  363. package/resources/monitors.js +43 -0
  364. package/resources/monitors.js.map +1 -0
  365. package/resources/monitors.mjs +39 -0
  366. package/resources/monitors.mjs.map +1 -0
  367. package/resources/radar.d.mts +54 -0
  368. package/resources/radar.d.mts.map +1 -0
  369. package/resources/radar.d.ts +54 -0
  370. package/resources/radar.d.ts.map +1 -0
  371. package/resources/radar.js +18 -0
  372. package/resources/radar.js.map +1 -0
  373. package/resources/radar.mjs +14 -0
  374. package/resources/radar.mjs.map +1 -0
  375. package/resources/shared.d.mts +17 -0
  376. package/resources/shared.d.mts.map +1 -0
  377. package/resources/shared.d.ts +17 -0
  378. package/resources/shared.d.ts.map +1 -0
  379. package/resources/shared.js +4 -0
  380. package/resources/shared.js.map +1 -0
  381. package/resources/shared.mjs +3 -0
  382. package/resources/shared.mjs.map +1 -0
  383. package/resources/styles.d.mts +115 -0
  384. package/resources/styles.d.mts.map +1 -0
  385. package/resources/styles.d.ts +115 -0
  386. package/resources/styles.d.ts.map +1 -0
  387. package/resources/styles.js +59 -0
  388. package/resources/styles.js.map +1 -0
  389. package/resources/styles.mjs +55 -0
  390. package/resources/styles.mjs.map +1 -0
  391. package/resources/subscribe.d.mts +21 -0
  392. package/resources/subscribe.d.mts.map +1 -0
  393. package/resources/subscribe.d.ts +21 -0
  394. package/resources/subscribe.d.ts.map +1 -0
  395. package/resources/subscribe.js +18 -0
  396. package/resources/subscribe.js.map +1 -0
  397. package/resources/subscribe.mjs +14 -0
  398. package/resources/subscribe.mjs.map +1 -0
  399. package/resources/support/index.d.mts +3 -0
  400. package/resources/support/index.d.mts.map +1 -0
  401. package/resources/support/index.d.ts +3 -0
  402. package/resources/support/index.d.ts.map +1 -0
  403. package/resources/support/index.js +9 -0
  404. package/resources/support/index.js.map +1 -0
  405. package/resources/support/index.mjs +4 -0
  406. package/resources/support/index.mjs.map +1 -0
  407. package/resources/support/support.d.mts +10 -0
  408. package/resources/support/support.d.mts.map +1 -0
  409. package/resources/support/support.d.ts +10 -0
  410. package/resources/support/support.d.ts.map +1 -0
  411. package/resources/support/support.js +17 -0
  412. package/resources/support/support.js.map +1 -0
  413. package/resources/support/support.mjs +12 -0
  414. package/resources/support/support.mjs.map +1 -0
  415. package/resources/support/tickets.d.mts +80 -0
  416. package/resources/support/tickets.d.mts.map +1 -0
  417. package/resources/support/tickets.d.ts +80 -0
  418. package/resources/support/tickets.d.ts.map +1 -0
  419. package/resources/support/tickets.js +43 -0
  420. package/resources/support/tickets.js.map +1 -0
  421. package/resources/support/tickets.mjs +39 -0
  422. package/resources/support/tickets.mjs.map +1 -0
  423. package/resources/support.d.mts +2 -0
  424. package/resources/support.d.mts.map +1 -0
  425. package/resources/support.d.ts +2 -0
  426. package/resources/support.d.ts.map +1 -0
  427. package/resources/support.js +6 -0
  428. package/resources/support.js.map +1 -0
  429. package/resources/support.mjs +3 -0
  430. package/resources/support.mjs.map +1 -0
  431. package/resources/trends.d.mts +36 -0
  432. package/resources/trends.d.mts.map +1 -0
  433. package/resources/trends.d.ts +36 -0
  434. package/resources/trends.d.ts.map +1 -0
  435. package/resources/trends.js +18 -0
  436. package/resources/trends.js.map +1 -0
  437. package/resources/trends.mjs +14 -0
  438. package/resources/trends.mjs.map +1 -0
  439. package/resources/webhooks.d.mts +87 -0
  440. package/resources/webhooks.d.mts.map +1 -0
  441. package/resources/webhooks.d.ts +87 -0
  442. package/resources/webhooks.d.ts.map +1 -0
  443. package/resources/webhooks.js +49 -0
  444. package/resources/webhooks.js.map +1 -0
  445. package/resources/webhooks.mjs +45 -0
  446. package/resources/webhooks.mjs.map +1 -0
  447. package/resources/x/accounts.d.mts +98 -0
  448. package/resources/x/accounts.d.mts.map +1 -0
  449. package/resources/x/accounts.d.ts +98 -0
  450. package/resources/x/accounts.d.ts.map +1 -0
  451. package/resources/x/accounts.js +43 -0
  452. package/resources/x/accounts.js.map +1 -0
  453. package/resources/x/accounts.mjs +39 -0
  454. package/resources/x/accounts.mjs.map +1 -0
  455. package/resources/x/bookmarks.d.mts +42 -0
  456. package/resources/x/bookmarks.d.mts.map +1 -0
  457. package/resources/x/bookmarks.d.ts +42 -0
  458. package/resources/x/bookmarks.d.ts.map +1 -0
  459. package/resources/x/bookmarks.js +24 -0
  460. package/resources/x/bookmarks.js.map +1 -0
  461. package/resources/x/bookmarks.mjs +20 -0
  462. package/resources/x/bookmarks.mjs.map +1 -0
  463. package/resources/x/communities/communities.d.mts +110 -0
  464. package/resources/x/communities/communities.d.mts.map +1 -0
  465. package/resources/x/communities/communities.d.ts +110 -0
  466. package/resources/x/communities/communities.d.ts.map +1 -0
  467. package/resources/x/communities/communities.js +71 -0
  468. package/resources/x/communities/communities.js.map +1 -0
  469. package/resources/x/communities/communities.mjs +66 -0
  470. package/resources/x/communities/communities.mjs.map +1 -0
  471. package/resources/x/communities/index.d.mts +4 -0
  472. package/resources/x/communities/index.d.mts.map +1 -0
  473. package/resources/x/communities/index.d.ts +4 -0
  474. package/resources/x/communities/index.d.ts.map +1 -0
  475. package/resources/x/communities/index.js +11 -0
  476. package/resources/x/communities/index.js.map +1 -0
  477. package/resources/x/communities/index.mjs +5 -0
  478. package/resources/x/communities/index.mjs.map +1 -0
  479. package/resources/x/communities/join.d.mts +33 -0
  480. package/resources/x/communities/join.d.mts.map +1 -0
  481. package/resources/x/communities/join.d.ts +33 -0
  482. package/resources/x/communities/join.d.ts.map +1 -0
  483. package/resources/x/communities/join.js +25 -0
  484. package/resources/x/communities/join.js.map +1 -0
  485. package/resources/x/communities/join.mjs +21 -0
  486. package/resources/x/communities/join.mjs.map +1 -0
  487. package/resources/x/communities/tweets.d.mts +30 -0
  488. package/resources/x/communities/tweets.d.mts.map +1 -0
  489. package/resources/x/communities/tweets.d.ts +30 -0
  490. package/resources/x/communities/tweets.d.ts.map +1 -0
  491. package/resources/x/communities/tweets.js +23 -0
  492. package/resources/x/communities/tweets.js.map +1 -0
  493. package/resources/x/communities/tweets.mjs +19 -0
  494. package/resources/x/communities/tweets.mjs.map +1 -0
  495. package/resources/x/communities.d.mts +2 -0
  496. package/resources/x/communities.d.mts.map +1 -0
  497. package/resources/x/communities.d.ts +2 -0
  498. package/resources/x/communities.d.ts.map +1 -0
  499. package/resources/x/communities.js +6 -0
  500. package/resources/x/communities.js.map +1 -0
  501. package/resources/x/communities.mjs +3 -0
  502. package/resources/x/communities.mjs.map +1 -0
  503. package/resources/x/dm.d.mts +54 -0
  504. package/resources/x/dm.d.mts.map +1 -0
  505. package/resources/x/dm.d.ts +54 -0
  506. package/resources/x/dm.d.ts.map +1 -0
  507. package/resources/x/dm.js +22 -0
  508. package/resources/x/dm.js.map +1 -0
  509. package/resources/x/dm.mjs +18 -0
  510. package/resources/x/dm.mjs.map +1 -0
  511. package/resources/x/followers.d.mts +32 -0
  512. package/resources/x/followers.d.mts.map +1 -0
  513. package/resources/x/followers.d.ts +32 -0
  514. package/resources/x/followers.d.ts.map +1 -0
  515. package/resources/x/followers.js +18 -0
  516. package/resources/x/followers.js.map +1 -0
  517. package/resources/x/followers.mjs +14 -0
  518. package/resources/x/followers.mjs.map +1 -0
  519. package/resources/x/index.d.mts +12 -0
  520. package/resources/x/index.d.mts.map +1 -0
  521. package/resources/x/index.d.ts +12 -0
  522. package/resources/x/index.d.ts.map +1 -0
  523. package/resources/x/index.js +27 -0
  524. package/resources/x/index.js.map +1 -0
  525. package/resources/x/index.mjs +13 -0
  526. package/resources/x/index.mjs.map +1 -0
  527. package/resources/x/lists.d.mts +54 -0
  528. package/resources/x/lists.d.mts.map +1 -0
  529. package/resources/x/lists.d.ts +54 -0
  530. package/resources/x/lists.d.ts.map +1 -0
  531. package/resources/x/lists.js +44 -0
  532. package/resources/x/lists.js.map +1 -0
  533. package/resources/x/lists.mjs +40 -0
  534. package/resources/x/lists.mjs.map +1 -0
  535. package/resources/x/media.d.mts +53 -0
  536. package/resources/x/media.d.mts.map +1 -0
  537. package/resources/x/media.d.ts +53 -0
  538. package/resources/x/media.d.ts.map +1 -0
  539. package/resources/x/media.js +25 -0
  540. package/resources/x/media.js.map +1 -0
  541. package/resources/x/media.mjs +21 -0
  542. package/resources/x/media.mjs.map +1 -0
  543. package/resources/x/profile.d.mts +73 -0
  544. package/resources/x/profile.d.mts.map +1 -0
  545. package/resources/x/profile.d.ts +73 -0
  546. package/resources/x/profile.d.ts.map +1 -0
  547. package/resources/x/profile.js +31 -0
  548. package/resources/x/profile.js.map +1 -0
  549. package/resources/x/profile.mjs +27 -0
  550. package/resources/x/profile.mjs.map +1 -0
  551. package/resources/x/tweets/index.d.mts +4 -0
  552. package/resources/x/tweets/index.d.mts.map +1 -0
  553. package/resources/x/tweets/index.d.ts +4 -0
  554. package/resources/x/tweets/index.d.ts.map +1 -0
  555. package/resources/x/tweets/index.js +11 -0
  556. package/resources/x/tweets/index.js.map +1 -0
  557. package/resources/x/tweets/index.mjs +5 -0
  558. package/resources/x/tweets/index.mjs.map +1 -0
  559. package/resources/x/tweets/like.d.mts +38 -0
  560. package/resources/x/tweets/like.d.mts.map +1 -0
  561. package/resources/x/tweets/like.d.ts +38 -0
  562. package/resources/x/tweets/like.d.ts.map +1 -0
  563. package/resources/x/tweets/like.js +25 -0
  564. package/resources/x/tweets/like.js.map +1 -0
  565. package/resources/x/tweets/like.mjs +21 -0
  566. package/resources/x/tweets/like.mjs.map +1 -0
  567. package/resources/x/tweets/retweet.d.mts +38 -0
  568. package/resources/x/tweets/retweet.d.mts.map +1 -0
  569. package/resources/x/tweets/retweet.d.ts +38 -0
  570. package/resources/x/tweets/retweet.d.ts.map +1 -0
  571. package/resources/x/tweets/retweet.js +25 -0
  572. package/resources/x/tweets/retweet.js.map +1 -0
  573. package/resources/x/tweets/retweet.mjs +21 -0
  574. package/resources/x/tweets/retweet.mjs.map +1 -0
  575. package/resources/x/tweets/tweets.d.mts +207 -0
  576. package/resources/x/tweets/tweets.d.mts.map +1 -0
  577. package/resources/x/tweets/tweets.d.ts +207 -0
  578. package/resources/x/tweets/tweets.d.ts.map +1 -0
  579. package/resources/x/tweets/tweets.js +87 -0
  580. package/resources/x/tweets/tweets.js.map +1 -0
  581. package/resources/x/tweets/tweets.mjs +82 -0
  582. package/resources/x/tweets/tweets.mjs.map +1 -0
  583. package/resources/x/tweets.d.mts +2 -0
  584. package/resources/x/tweets.d.mts.map +1 -0
  585. package/resources/x/tweets.d.ts +2 -0
  586. package/resources/x/tweets.d.ts.map +1 -0
  587. package/resources/x/tweets.js +6 -0
  588. package/resources/x/tweets.js.map +1 -0
  589. package/resources/x/tweets.mjs +3 -0
  590. package/resources/x/tweets.mjs.map +1 -0
  591. package/resources/x/users/follow.d.mts +38 -0
  592. package/resources/x/users/follow.d.mts.map +1 -0
  593. package/resources/x/users/follow.d.ts +38 -0
  594. package/resources/x/users/follow.d.ts.map +1 -0
  595. package/resources/x/users/follow.js +25 -0
  596. package/resources/x/users/follow.js.map +1 -0
  597. package/resources/x/users/follow.mjs +21 -0
  598. package/resources/x/users/follow.mjs.map +1 -0
  599. package/resources/x/users/index.d.mts +3 -0
  600. package/resources/x/users/index.d.mts.map +1 -0
  601. package/resources/x/users/index.d.ts +3 -0
  602. package/resources/x/users/index.d.ts.map +1 -0
  603. package/resources/x/users/index.js +9 -0
  604. package/resources/x/users/index.js.map +1 -0
  605. package/resources/x/users/index.mjs +4 -0
  606. package/resources/x/users/index.mjs.map +1 -0
  607. package/resources/x/users/users.d.mts +162 -0
  608. package/resources/x/users/users.d.mts.map +1 -0
  609. package/resources/x/users/users.d.ts +162 -0
  610. package/resources/x/users/users.d.ts.map +1 -0
  611. package/resources/x/users/users.js +112 -0
  612. package/resources/x/users/users.js.map +1 -0
  613. package/resources/x/users/users.mjs +107 -0
  614. package/resources/x/users/users.mjs.map +1 -0
  615. package/resources/x/users.d.mts +2 -0
  616. package/resources/x/users.d.mts.map +1 -0
  617. package/resources/x/users.d.ts +2 -0
  618. package/resources/x/users.d.ts.map +1 -0
  619. package/resources/x/users.js +6 -0
  620. package/resources/x/users.js.map +1 -0
  621. package/resources/x/users.mjs +3 -0
  622. package/resources/x/users.mjs.map +1 -0
  623. package/resources/x/x.d.mts +135 -0
  624. package/resources/x/x.d.mts.map +1 -0
  625. package/resources/x/x.d.ts +135 -0
  626. package/resources/x/x.d.ts.map +1 -0
  627. package/resources/x/x.js +85 -0
  628. package/resources/x/x.js.map +1 -0
  629. package/resources/x/x.mjs +80 -0
  630. package/resources/x/x.mjs.map +1 -0
  631. package/resources/x.d.mts +2 -0
  632. package/resources/x.d.mts.map +1 -0
  633. package/resources/x.d.ts +2 -0
  634. package/resources/x.d.ts.map +1 -0
  635. package/resources/x.js +6 -0
  636. package/resources/x.js.map +1 -0
  637. package/resources/x.mjs +3 -0
  638. package/resources/x.mjs.map +1 -0
  639. package/resources.d.mts +2 -0
  640. package/resources.d.mts.map +1 -0
  641. package/resources.d.ts +2 -0
  642. package/resources.d.ts.map +1 -0
  643. package/resources.js +5 -0
  644. package/resources.js.map +1 -0
  645. package/resources.mjs +2 -0
  646. package/resources.mjs.map +1 -0
  647. package/src/api-promise.ts +2 -0
  648. package/src/client.ts +1123 -0
  649. package/src/core/README.md +3 -0
  650. package/src/core/api-promise.ts +92 -0
  651. package/src/core/error.ts +130 -0
  652. package/src/core/resource.ts +11 -0
  653. package/src/core/uploads.ts +2 -0
  654. package/src/error.ts +2 -0
  655. package/src/index.ts +22 -0
  656. package/src/internal/README.md +3 -0
  657. package/src/internal/builtin-types.ts +93 -0
  658. package/src/internal/detect-platform.ts +196 -0
  659. package/src/internal/errors.ts +33 -0
  660. package/src/internal/headers.ts +97 -0
  661. package/src/internal/parse.ts +56 -0
  662. package/src/internal/request-options.ts +93 -0
  663. package/src/internal/shim-types.ts +26 -0
  664. package/src/internal/shims.ts +107 -0
  665. package/src/internal/to-file.ts +154 -0
  666. package/src/internal/types.ts +95 -0
  667. package/src/internal/uploads.ts +187 -0
  668. package/src/internal/utils/base64.ts +40 -0
  669. package/src/internal/utils/bytes.ts +32 -0
  670. package/src/internal/utils/env.ts +18 -0
  671. package/src/internal/utils/log.ts +127 -0
  672. package/src/internal/utils/path.ts +88 -0
  673. package/src/internal/utils/query.ts +23 -0
  674. package/src/internal/utils/sleep.ts +3 -0
  675. package/src/internal/utils/uuid.ts +17 -0
  676. package/src/internal/utils/values.ts +105 -0
  677. package/src/internal/utils.ts +9 -0
  678. package/src/lib/.keep +4 -0
  679. package/src/resource.ts +2 -0
  680. package/src/resources/account.ts +88 -0
  681. package/src/resources/api-keys.ts +80 -0
  682. package/src/resources/bot/bot.ts +15 -0
  683. package/src/resources/bot/index.ts +4 -0
  684. package/src/resources/bot/platform-links.ts +5 -0
  685. package/src/resources/bot.ts +3 -0
  686. package/src/resources/compose.ts +83 -0
  687. package/src/resources/credits.ts +56 -0
  688. package/src/resources/drafts.ts +107 -0
  689. package/src/resources/draws.ts +192 -0
  690. package/src/resources/events.ts +89 -0
  691. package/src/resources/extractions.ts +321 -0
  692. package/src/resources/index.ts +121 -0
  693. package/src/resources/integrations.ts +183 -0
  694. package/src/resources/monitors.ts +109 -0
  695. package/src/resources/radar.ts +82 -0
  696. package/src/resources/shared.ts +57 -0
  697. package/src/resources/styles.ts +184 -0
  698. package/src/resources/subscribe.ts +29 -0
  699. package/src/resources/support/index.ts +14 -0
  700. package/src/resources/support/support.ts +35 -0
  701. package/src/resources/support/tickets.ts +131 -0
  702. package/src/resources/support.ts +3 -0
  703. package/src/resources/trends.ts +53 -0
  704. package/src/resources/webhooks.ts +147 -0
  705. package/src/resources/x/accounts.ts +154 -0
  706. package/src/resources/x/bookmarks.ts +63 -0
  707. package/src/resources/x/communities/communities.ts +194 -0
  708. package/src/resources/x/communities/index.ts +16 -0
  709. package/src/resources/x/communities/join.ts +52 -0
  710. package/src/resources/x/communities/tweets.ts +43 -0
  711. package/src/resources/x/communities.ts +3 -0
  712. package/src/resources/x/dm.ts +88 -0
  713. package/src/resources/x/followers.ts +46 -0
  714. package/src/resources/x/index.ts +95 -0
  715. package/src/resources/x/lists.ts +101 -0
  716. package/src/resources/x/media.ts +79 -0
  717. package/src/resources/x/profile.ts +116 -0
  718. package/src/resources/x/tweets/index.ts +34 -0
  719. package/src/resources/x/tweets/like.ts +56 -0
  720. package/src/resources/x/tweets/retweet.ts +64 -0
  721. package/src/resources/x/tweets/tweets.ts +367 -0
  722. package/src/resources/x/tweets.ts +3 -0
  723. package/src/resources/x/users/follow.ts +64 -0
  724. package/src/resources/x/users/index.ts +23 -0
  725. package/src/resources/x/users/users.ts +311 -0
  726. package/src/resources/x/users.ts +3 -0
  727. package/src/resources/x/x.ts +368 -0
  728. package/src/resources/x.ts +3 -0
  729. package/src/resources.ts +1 -0
  730. package/src/tsconfig.json +11 -0
  731. package/src/uploads.ts +2 -0
  732. package/src/version.ts +1 -0
  733. package/uploads.d.mts +2 -0
  734. package/uploads.d.mts.map +1 -0
  735. package/uploads.d.ts +2 -0
  736. package/uploads.d.ts.map +1 -0
  737. package/uploads.js +6 -0
  738. package/uploads.js.map +1 -0
  739. package/uploads.mjs +2 -0
  740. package/uploads.mjs.map +1 -0
  741. package/version.d.mts +2 -0
  742. package/version.d.mts.map +1 -0
  743. package/version.d.ts +2 -0
  744. package/version.d.ts.map +1 -0
  745. package/version.js +5 -0
  746. package/version.js.map +1 -0
  747. package/version.mjs +2 -0
  748. package/version.mjs.map +1 -0
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { path } from "../../../internal/utils/path.mjs";
4
+ /**
5
+ * X write actions (tweets, likes, follows, DMs)
6
+ */
7
+ export class Join extends APIResource {
8
+ /**
9
+ * Join community
10
+ */
11
+ create(id, body, options) {
12
+ return this._client.post(path `/x/communities/${id}/join`, { body, ...options });
13
+ }
14
+ /**
15
+ * Leave community
16
+ */
17
+ deleteAll(id, body, options) {
18
+ return this._client.delete(path `/x/communities/${id}/join`, { body, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=join.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/join.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,SAAS,CACP,EAAU,EACV,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../../internal/request-options.mjs";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export declare class Tweets extends APIResource {
8
+ /**
9
+ * Search tweets across all communities
10
+ */
11
+ list(query: TweetListParams, options?: RequestOptions): APIPromise<void>;
12
+ }
13
+ export interface TweetListParams {
14
+ /**
15
+ * Search query
16
+ */
17
+ q: string;
18
+ /**
19
+ * Pagination cursor
20
+ */
21
+ cursor?: string;
22
+ /**
23
+ * Sort order (Latest or Top)
24
+ */
25
+ queryType?: string;
26
+ }
27
+ export declare namespace Tweets {
28
+ export { type TweetListParams as TweetListParams };
29
+ }
30
+ //# sourceMappingURL=tweets.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tweets.d.mts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOzE;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export declare class Tweets extends APIResource {
8
+ /**
9
+ * Search tweets across all communities
10
+ */
11
+ list(query: TweetListParams, options?: RequestOptions): APIPromise<void>;
12
+ }
13
+ export interface TweetListParams {
14
+ /**
15
+ * Search query
16
+ */
17
+ q: string;
18
+ /**
19
+ * Pagination cursor
20
+ */
21
+ cursor?: string;
22
+ /**
23
+ * Sort order (Latest or Top)
24
+ */
25
+ queryType?: string;
26
+ }
27
+ export declare namespace Tweets {
28
+ export { type TweetListParams as TweetListParams };
29
+ }
30
+ //# sourceMappingURL=tweets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tweets.d.ts","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOzE;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Tweets = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ /**
8
+ * X data lookups (subscription required)
9
+ */
10
+ class Tweets extends resource_1.APIResource {
11
+ /**
12
+ * Search tweets across all communities
13
+ */
14
+ list(query, options) {
15
+ return this._client.get('/x/communities/tweets', {
16
+ query,
17
+ ...options,
18
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
19
+ });
20
+ }
21
+ }
22
+ exports.Tweets = Tweets;
23
+ //# sourceMappingURL=tweets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tweets.js","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CAAC,KAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC/C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAXD,wBAWC"}
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export class Tweets extends APIResource {
8
+ /**
9
+ * Search tweets across all communities
10
+ */
11
+ list(query, options) {
12
+ return this._client.get('/x/communities/tweets', {
13
+ query,
14
+ ...options,
15
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
16
+ });
17
+ }
18
+ }
19
+ //# sourceMappingURL=tweets.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tweets.mjs","sourceRoot":"","sources":["../../../src/resources/x/communities/tweets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,KAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC/C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./communities/index.mjs";
2
+ //# sourceMappingURL=communities.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"communities.d.mts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./communities/index.js";
2
+ //# sourceMappingURL=communities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./communities/index.js"), exports);
6
+ //# sourceMappingURL=communities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"communities.js","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./communities/index.mjs";
3
+ //# sourceMappingURL=communities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"communities.mjs","sourceRoot":"","sources":["../../src/resources/x/communities.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,54 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Dm extends APIResource {
5
+ /**
6
+ * Get DM conversation history
7
+ */
8
+ retrieveHistory(userID: string, query?: DmRetrieveHistoryParams | null | undefined, options?: RequestOptions): APIPromise<DmRetrieveHistoryResponse>;
9
+ /**
10
+ * Send direct message
11
+ */
12
+ send(userID: string, body: DmSendParams, options?: RequestOptions): APIPromise<DmSendResponse>;
13
+ }
14
+ export interface DmRetrieveHistoryResponse {
15
+ has_next_page: boolean;
16
+ messages: Array<DmRetrieveHistoryResponse.Message>;
17
+ next_cursor: string;
18
+ }
19
+ export declare namespace DmRetrieveHistoryResponse {
20
+ interface Message {
21
+ id: string;
22
+ createdAt?: string;
23
+ receiverId?: string;
24
+ senderId?: string;
25
+ text?: string;
26
+ }
27
+ }
28
+ export interface DmSendResponse {
29
+ messageId: string;
30
+ success: true;
31
+ }
32
+ export interface DmRetrieveHistoryParams {
33
+ /**
34
+ * Pagination cursor from previous response
35
+ */
36
+ cursor?: string;
37
+ /**
38
+ * Legacy pagination cursor (backward compat)
39
+ */
40
+ maxId?: string;
41
+ }
42
+ export interface DmSendParams {
43
+ /**
44
+ * X account (@username or account ID)
45
+ */
46
+ account: string;
47
+ text: string;
48
+ media_ids?: Array<string>;
49
+ reply_to_message_id?: string;
50
+ }
51
+ export declare namespace Dm {
52
+ export { type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse, type DmSendResponse as DmSendResponse, type DmRetrieveHistoryParams as DmRetrieveHistoryParams, type DmSendParams as DmSendParams, };
53
+ }
54
+ //# sourceMappingURL=dm.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm.d.mts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAG/F;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
@@ -0,0 +1,54 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Dm extends APIResource {
5
+ /**
6
+ * Get DM conversation history
7
+ */
8
+ retrieveHistory(userID: string, query?: DmRetrieveHistoryParams | null | undefined, options?: RequestOptions): APIPromise<DmRetrieveHistoryResponse>;
9
+ /**
10
+ * Send direct message
11
+ */
12
+ send(userID: string, body: DmSendParams, options?: RequestOptions): APIPromise<DmSendResponse>;
13
+ }
14
+ export interface DmRetrieveHistoryResponse {
15
+ has_next_page: boolean;
16
+ messages: Array<DmRetrieveHistoryResponse.Message>;
17
+ next_cursor: string;
18
+ }
19
+ export declare namespace DmRetrieveHistoryResponse {
20
+ interface Message {
21
+ id: string;
22
+ createdAt?: string;
23
+ receiverId?: string;
24
+ senderId?: string;
25
+ text?: string;
26
+ }
27
+ }
28
+ export interface DmSendResponse {
29
+ messageId: string;
30
+ success: true;
31
+ }
32
+ export interface DmRetrieveHistoryParams {
33
+ /**
34
+ * Pagination cursor from previous response
35
+ */
36
+ cursor?: string;
37
+ /**
38
+ * Legacy pagination cursor (backward compat)
39
+ */
40
+ maxId?: string;
41
+ }
42
+ export interface DmSendParams {
43
+ /**
44
+ * X account (@username or account ID)
45
+ */
46
+ account: string;
47
+ text: string;
48
+ media_ids?: Array<string>;
49
+ reply_to_message_id?: string;
50
+ }
51
+ export declare namespace Dm {
52
+ export { type DmRetrieveHistoryResponse as DmRetrieveHistoryResponse, type DmSendResponse as DmSendResponse, type DmRetrieveHistoryParams as DmRetrieveHistoryParams, type DmSendParams as DmSendParams, };
53
+ }
54
+ //# sourceMappingURL=dm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAG/F;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Dm = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Dm extends resource_1.APIResource {
8
+ /**
9
+ * Get DM conversation history
10
+ */
11
+ retrieveHistory(userID, query = {}, options) {
12
+ return this._client.get((0, path_1.path) `/x/dm/${userID}/history`, { query, ...options });
13
+ }
14
+ /**
15
+ * Send direct message
16
+ */
17
+ send(userID, body, options) {
18
+ return this._client.post((0, path_1.path) `/x/dm/${userID}`, { body, ...options });
19
+ }
20
+ }
21
+ exports.Dm = Dm;
22
+ //# sourceMappingURL=dm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm.js","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;OAEG;IACH,eAAe,CACb,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,SAAS,MAAM,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,IAAkB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAlBD,gBAkBC"}
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Dm extends APIResource {
5
+ /**
6
+ * Get DM conversation history
7
+ */
8
+ retrieveHistory(userID, query = {}, options) {
9
+ return this._client.get(path `/x/dm/${userID}/history`, { query, ...options });
10
+ }
11
+ /**
12
+ * Send direct message
13
+ */
14
+ send(userID, body, options) {
15
+ return this._client.post(path `/x/dm/${userID}`, { body, ...options });
16
+ }
17
+ }
18
+ //# sourceMappingURL=dm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm.mjs","sourceRoot":"","sources":["../../src/resources/x/dm.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,eAAe,CACb,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,MAAM,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,IAAkB,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -0,0 +1,32 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export declare class Followers extends APIResource {
8
+ /**
9
+ * Check follow relationship
10
+ */
11
+ check(query: FollowerCheckParams, options?: RequestOptions): APIPromise<FollowerCheckResponse>;
12
+ }
13
+ export interface FollowerCheckResponse {
14
+ isFollowedBy: boolean;
15
+ isFollowing: boolean;
16
+ sourceUsername: string;
17
+ targetUsername: string;
18
+ }
19
+ export interface FollowerCheckParams {
20
+ /**
21
+ * Username to check (without @)
22
+ */
23
+ source: string;
24
+ /**
25
+ * Target username (without @)
26
+ */
27
+ target: string;
28
+ }
29
+ export declare namespace Followers {
30
+ export { type FollowerCheckResponse as FollowerCheckResponse, type FollowerCheckParams as FollowerCheckParams, };
31
+ }
32
+ //# sourceMappingURL=followers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.d.mts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IAEtB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,32 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export declare class Followers extends APIResource {
8
+ /**
9
+ * Check follow relationship
10
+ */
11
+ check(query: FollowerCheckParams, options?: RequestOptions): APIPromise<FollowerCheckResponse>;
12
+ }
13
+ export interface FollowerCheckResponse {
14
+ isFollowedBy: boolean;
15
+ isFollowing: boolean;
16
+ sourceUsername: string;
17
+ targetUsername: string;
18
+ }
19
+ export interface FollowerCheckParams {
20
+ /**
21
+ * Username to check (without @)
22
+ */
23
+ source: string;
24
+ /**
25
+ * Target username (without @)
26
+ */
27
+ target: string;
28
+ }
29
+ export declare namespace Followers {
30
+ export { type FollowerCheckResponse as FollowerCheckResponse, type FollowerCheckParams as FollowerCheckParams, };
31
+ }
32
+ //# sourceMappingURL=followers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.d.ts","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IAEtB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Followers = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * X data lookups (subscription required)
8
+ */
9
+ class Followers extends resource_1.APIResource {
10
+ /**
11
+ * Check follow relationship
12
+ */
13
+ check(query, options) {
14
+ return this._client.get('/x/followers/check', { query, ...options });
15
+ }
16
+ }
17
+ exports.Followers = Followers;
18
+ //# sourceMappingURL=followers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.js","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,KAAK,CAAC,KAA0B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAPD,8BAOC"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * X data lookups (subscription required)
5
+ */
6
+ export class Followers extends APIResource {
7
+ /**
8
+ * Check follow relationship
9
+ */
10
+ check(query, options) {
11
+ return this._client.get('/x/followers/check', { query, ...options });
12
+ }
13
+ }
14
+ //# sourceMappingURL=followers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.mjs","sourceRoot":"","sources":["../../src/resources/x/followers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,KAAK,CAAC,KAA0B,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ export { Accounts, type XAccount, type XAccountDetail, type AccountCreateResponse, type AccountListResponse, type AccountDeleteResponse, type AccountReauthResponse, type AccountCreateParams, type AccountReauthParams, } from "./accounts.mjs";
2
+ export { Bookmarks, type BookmarkRetrieveFoldersResponse, type BookmarkListParams } from "./bookmarks.mjs";
3
+ export { Communities, type CommunityActionResult, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities/index.mjs";
4
+ export { Dm, type DmRetrieveHistoryResponse, type DmSendResponse, type DmRetrieveHistoryParams, type DmSendParams, } from "./dm.mjs";
5
+ export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from "./followers.mjs";
6
+ export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.mjs";
7
+ export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.mjs";
8
+ export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.mjs";
9
+ export { Tweets, type SearchTweet, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.mjs";
10
+ export { Users, type UserProfile, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.mjs";
11
+ export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x.mjs";
12
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE;OAC5E,EACL,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC;OACM,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB;OACM,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACnE,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,GACzC;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
@@ -0,0 +1,12 @@
1
+ export { Accounts, type XAccount, type XAccountDetail, type AccountCreateResponse, type AccountListResponse, type AccountDeleteResponse, type AccountReauthResponse, type AccountCreateParams, type AccountReauthParams, } from "./accounts.js";
2
+ export { Bookmarks, type BookmarkRetrieveFoldersResponse, type BookmarkListParams } from "./bookmarks.js";
3
+ export { Communities, type CommunityActionResult, type CommunityCreateResponse, type CommunityDeleteResponse, type CommunityRetrieveInfoResponse, type CommunityCreateParams, type CommunityDeleteParams, type CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams, } from "./communities/index.js";
4
+ export { Dm, type DmRetrieveHistoryResponse, type DmSendResponse, type DmRetrieveHistoryParams, type DmSendParams, } from "./dm.js";
5
+ export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from "./followers.js";
6
+ export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.js";
7
+ export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.js";
8
+ export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.js";
9
+ export { Tweets, type SearchTweet, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.js";
10
+ export { Users, type UserProfile, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.js";
11
+ export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE;OAC5E,EACL,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC;OACM,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB;OACM,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACnE,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,GACzC;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.X = exports.Users = exports.Tweets = exports.Profile = exports.Media = exports.Lists = exports.Followers = exports.Dm = exports.Communities = exports.Bookmarks = exports.Accounts = void 0;
5
+ var accounts_1 = require("./accounts.js");
6
+ Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
7
+ var bookmarks_1 = require("./bookmarks.js");
8
+ Object.defineProperty(exports, "Bookmarks", { enumerable: true, get: function () { return bookmarks_1.Bookmarks; } });
9
+ var index_1 = require("./communities/index.js");
10
+ Object.defineProperty(exports, "Communities", { enumerable: true, get: function () { return index_1.Communities; } });
11
+ var dm_1 = require("./dm.js");
12
+ Object.defineProperty(exports, "Dm", { enumerable: true, get: function () { return dm_1.Dm; } });
13
+ var followers_1 = require("./followers.js");
14
+ Object.defineProperty(exports, "Followers", { enumerable: true, get: function () { return followers_1.Followers; } });
15
+ var lists_1 = require("./lists.js");
16
+ Object.defineProperty(exports, "Lists", { enumerable: true, get: function () { return lists_1.Lists; } });
17
+ var media_1 = require("./media.js");
18
+ Object.defineProperty(exports, "Media", { enumerable: true, get: function () { return media_1.Media; } });
19
+ var profile_1 = require("./profile.js");
20
+ Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return profile_1.Profile; } });
21
+ var index_2 = require("./tweets/index.js");
22
+ Object.defineProperty(exports, "Tweets", { enumerable: true, get: function () { return index_2.Tweets; } });
23
+ var index_3 = require("./users/index.js");
24
+ Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return index_3.Users; } });
25
+ var x_1 = require("./x.js");
26
+ Object.defineProperty(exports, "X", { enumerable: true, get: function () { return x_1.X; } });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAAuG;AAA9F,sGAAA,SAAS,OAAA;AAClB,gDAW6B;AAV3B,oGAAA,WAAW,OAAA;AAWb,8BAMc;AALZ,wFAAA,EAAE,OAAA;AAMJ,4CAA8F;AAArF,sGAAA,SAAS,OAAA;AAClB,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,2CAiBwB;AAhBtB,+FAAA,MAAM,OAAA;AAiBR,0CAauB;AAZrB,8FAAA,KAAK,OAAA;AAaP,4BAMa;AALX,sFAAA,CAAC,OAAA"}
@@ -0,0 +1,13 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Accounts, } from "./accounts.mjs";
3
+ export { Bookmarks } from "./bookmarks.mjs";
4
+ export { Communities, } from "./communities/index.mjs";
5
+ export { Dm, } from "./dm.mjs";
6
+ export { Followers } from "./followers.mjs";
7
+ export { Lists, } from "./lists.mjs";
8
+ export { Media, } from "./media.mjs";
9
+ export { Profile, } from "./profile.mjs";
10
+ export { Tweets, } from "./tweets/index.mjs";
11
+ export { Users, } from "./users/index.mjs";
12
+ export { X, } from "./x.mjs";
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAST;OACM,EAAE,SAAS,EAAiE;OAC5E,EACL,WAAW,GAUZ;OACM,EACL,EAAE,GAKH;OACM,EAAE,SAAS,EAAwD;OACnE,EACL,KAAK,GAIN;OACM,EACL,KAAK,GAKN;OACM,EACL,OAAO,GAOR;OACM,EACL,MAAM,GAgBP;OACM,EACL,KAAK,GAYN;OACM,EACL,CAAC,GAKF"}
@@ -0,0 +1,54 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * X data lookups (subscription required)
6
+ */
7
+ export declare class Lists extends APIResource {
8
+ /**
9
+ * Get list followers
10
+ */
11
+ retrieveFollowers(id: string, query?: ListRetrieveFollowersParams | null | undefined, options?: RequestOptions): APIPromise<void>;
12
+ /**
13
+ * Get list members
14
+ */
15
+ retrieveMembers(id: string, query?: ListRetrieveMembersParams | null | undefined, options?: RequestOptions): APIPromise<void>;
16
+ /**
17
+ * Get list tweets
18
+ */
19
+ retrieveTweets(id: string, query?: ListRetrieveTweetsParams | null | undefined, options?: RequestOptions): APIPromise<void>;
20
+ }
21
+ export interface ListRetrieveFollowersParams {
22
+ /**
23
+ * Pagination cursor
24
+ */
25
+ cursor?: string;
26
+ }
27
+ export interface ListRetrieveMembersParams {
28
+ /**
29
+ * Pagination cursor
30
+ */
31
+ cursor?: string;
32
+ }
33
+ export interface ListRetrieveTweetsParams {
34
+ /**
35
+ * Pagination cursor
36
+ */
37
+ cursor?: string;
38
+ /**
39
+ * Include replies (default false)
40
+ */
41
+ includeReplies?: boolean;
42
+ /**
43
+ * Unix timestamp - filter after
44
+ */
45
+ sinceTime?: string;
46
+ /**
47
+ * Unix timestamp - filter before
48
+ */
49
+ untilTime?: string;
50
+ }
51
+ export declare namespace Lists {
52
+ export { type ListRetrieveFollowersParams as ListRetrieveFollowersParams, type ListRetrieveMembersParams as ListRetrieveMembersParams, type ListRetrieveTweetsParams as ListRetrieveTweetsParams, };
53
+ }
54
+ //# sourceMappingURL=lists.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lists.d.mts","sourceRoot":"","sources":["../../src/resources/x/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}