x-twitter-scraper 0.20.0 → 0.21.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 (214) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +120 -121
  3. package/client.d.mts +7 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +7 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/extractions.d.mts +105 -5
  11. package/resources/extractions.d.mts.map +1 -1
  12. package/resources/extractions.d.ts +105 -5
  13. package/resources/extractions.d.ts.map +1 -1
  14. package/resources/index.d.mts +1 -1
  15. package/resources/index.d.mts.map +1 -1
  16. package/resources/index.d.ts +1 -1
  17. package/resources/index.d.ts.map +1 -1
  18. package/resources/index.js.map +1 -1
  19. package/resources/index.mjs.map +1 -1
  20. package/resources/monitors/index.d.mts +1 -1
  21. package/resources/monitors/index.d.mts.map +1 -1
  22. package/resources/monitors/index.d.ts +1 -1
  23. package/resources/monitors/index.d.ts.map +1 -1
  24. package/resources/monitors/index.js.map +1 -1
  25. package/resources/monitors/index.mjs.map +1 -1
  26. package/resources/monitors/monitors.d.mts +38 -1
  27. package/resources/monitors/monitors.d.mts.map +1 -1
  28. package/resources/monitors/monitors.d.ts +38 -1
  29. package/resources/monitors/monitors.d.ts.map +1 -1
  30. package/resources/monitors/monitors.js +18 -0
  31. package/resources/monitors/monitors.js.map +1 -1
  32. package/resources/monitors/monitors.mjs +18 -0
  33. package/resources/monitors/monitors.mjs.map +1 -1
  34. package/resources/monitors/posts.d.mts +27 -0
  35. package/resources/monitors/posts.d.mts.map +1 -1
  36. package/resources/monitors/posts.d.ts +27 -0
  37. package/resources/monitors/posts.d.ts.map +1 -1
  38. package/resources/shared.d.mts +175 -5
  39. package/resources/shared.d.mts.map +1 -1
  40. package/resources/shared.d.ts +175 -5
  41. package/resources/shared.d.ts.map +1 -1
  42. package/resources/x/account-connection-attempts.d.mts +4 -0
  43. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  44. package/resources/x/account-connection-attempts.d.ts +4 -0
  45. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  46. package/resources/x/account-connection-links.d.mts +159 -0
  47. package/resources/x/account-connection-links.d.mts.map +1 -0
  48. package/resources/x/account-connection-links.d.ts +159 -0
  49. package/resources/x/account-connection-links.d.ts.map +1 -0
  50. package/resources/x/account-connection-links.js +82 -0
  51. package/resources/x/account-connection-links.js.map +1 -0
  52. package/resources/x/account-connection-links.mjs +78 -0
  53. package/resources/x/account-connection-links.mjs.map +1 -0
  54. package/resources/x/accounts.d.mts +13 -9
  55. package/resources/x/accounts.d.mts.map +1 -1
  56. package/resources/x/accounts.d.ts +13 -9
  57. package/resources/x/accounts.d.ts.map +1 -1
  58. package/resources/x/analysis.d.mts +540 -36
  59. package/resources/x/analysis.d.mts.map +1 -1
  60. package/resources/x/analysis.d.ts +540 -36
  61. package/resources/x/analysis.d.ts.map +1 -1
  62. package/resources/x/bookmarks.d.mts +5 -0
  63. package/resources/x/bookmarks.d.mts.map +1 -1
  64. package/resources/x/bookmarks.d.ts +5 -0
  65. package/resources/x/bookmarks.d.ts.map +1 -1
  66. package/resources/x/communities/communities.d.mts +2 -2
  67. package/resources/x/communities/communities.d.mts.map +1 -1
  68. package/resources/x/communities/communities.d.ts +2 -2
  69. package/resources/x/communities/communities.d.ts.map +1 -1
  70. package/resources/x/communities/communities.js.map +1 -1
  71. package/resources/x/communities/communities.mjs.map +1 -1
  72. package/resources/x/communities/join.d.mts +2 -2
  73. package/resources/x/communities/join.d.mts.map +1 -1
  74. package/resources/x/communities/join.d.ts +2 -2
  75. package/resources/x/communities/join.d.ts.map +1 -1
  76. package/resources/x/dm.d.mts +2 -2
  77. package/resources/x/dm.d.mts.map +1 -1
  78. package/resources/x/dm.d.ts +2 -2
  79. package/resources/x/dm.d.ts.map +1 -1
  80. package/resources/x/index.d.mts +2 -1
  81. package/resources/x/index.d.mts.map +1 -1
  82. package/resources/x/index.d.ts +2 -1
  83. package/resources/x/index.d.ts.map +1 -1
  84. package/resources/x/index.js +3 -1
  85. package/resources/x/index.js.map +1 -1
  86. package/resources/x/index.mjs +1 -0
  87. package/resources/x/index.mjs.map +1 -1
  88. package/resources/x/media.d.mts +48 -1
  89. package/resources/x/media.d.mts.map +1 -1
  90. package/resources/x/media.d.ts +48 -1
  91. package/resources/x/media.d.ts.map +1 -1
  92. package/resources/x/media.js.map +1 -1
  93. package/resources/x/media.mjs.map +1 -1
  94. package/resources/x/profile.d.mts +3 -3
  95. package/resources/x/profile.d.mts.map +1 -1
  96. package/resources/x/profile.d.ts +3 -3
  97. package/resources/x/profile.d.ts.map +1 -1
  98. package/resources/x/tweets/bookmark.d.mts +84 -0
  99. package/resources/x/tweets/bookmark.d.mts.map +1 -0
  100. package/resources/x/tweets/bookmark.d.ts +84 -0
  101. package/resources/x/tweets/bookmark.d.ts.map +1 -0
  102. package/resources/x/tweets/bookmark.js +55 -0
  103. package/resources/x/tweets/bookmark.js.map +1 -0
  104. package/resources/x/tweets/bookmark.mjs +51 -0
  105. package/resources/x/tweets/bookmark.mjs.map +1 -0
  106. package/resources/x/tweets/index.d.mts +1 -0
  107. package/resources/x/tweets/index.d.mts.map +1 -1
  108. package/resources/x/tweets/index.d.ts +1 -0
  109. package/resources/x/tweets/index.d.ts.map +1 -1
  110. package/resources/x/tweets/index.js +3 -1
  111. package/resources/x/tweets/index.js.map +1 -1
  112. package/resources/x/tweets/index.mjs +1 -0
  113. package/resources/x/tweets/index.mjs.map +1 -1
  114. package/resources/x/tweets/like.d.mts +2 -2
  115. package/resources/x/tweets/like.d.mts.map +1 -1
  116. package/resources/x/tweets/like.d.ts +2 -2
  117. package/resources/x/tweets/like.d.ts.map +1 -1
  118. package/resources/x/tweets/retweet.d.mts +2 -2
  119. package/resources/x/tweets/retweet.d.mts.map +1 -1
  120. package/resources/x/tweets/retweet.d.ts +2 -2
  121. package/resources/x/tweets/retweet.d.ts.map +1 -1
  122. package/resources/x/tweets/tweets.d.mts +41 -13
  123. package/resources/x/tweets/tweets.d.mts.map +1 -1
  124. package/resources/x/tweets/tweets.d.ts +41 -13
  125. package/resources/x/tweets/tweets.d.ts.map +1 -1
  126. package/resources/x/tweets/tweets.js +4 -0
  127. package/resources/x/tweets/tweets.js.map +1 -1
  128. package/resources/x/tweets/tweets.mjs +4 -0
  129. package/resources/x/tweets/tweets.mjs.map +1 -1
  130. package/resources/x/users/block.d.mts +84 -0
  131. package/resources/x/users/block.d.mts.map +1 -0
  132. package/resources/x/users/block.d.ts +84 -0
  133. package/resources/x/users/block.d.ts.map +1 -0
  134. package/resources/x/users/block.js +55 -0
  135. package/resources/x/users/block.js.map +1 -0
  136. package/resources/x/users/block.mjs +51 -0
  137. package/resources/x/users/block.mjs.map +1 -0
  138. package/resources/x/users/follow.d.mts +2 -2
  139. package/resources/x/users/follow.d.mts.map +1 -1
  140. package/resources/x/users/follow.d.ts +2 -2
  141. package/resources/x/users/follow.d.ts.map +1 -1
  142. package/resources/x/users/index.d.mts +3 -1
  143. package/resources/x/users/index.d.mts.map +1 -1
  144. package/resources/x/users/index.d.ts +3 -1
  145. package/resources/x/users/index.d.ts.map +1 -1
  146. package/resources/x/users/index.js +5 -1
  147. package/resources/x/users/index.js.map +1 -1
  148. package/resources/x/users/index.mjs +2 -0
  149. package/resources/x/users/index.mjs.map +1 -1
  150. package/resources/x/users/mute.d.mts +84 -0
  151. package/resources/x/users/mute.d.mts.map +1 -0
  152. package/resources/x/users/mute.d.ts +84 -0
  153. package/resources/x/users/mute.d.ts.map +1 -0
  154. package/resources/x/users/mute.js +55 -0
  155. package/resources/x/users/mute.js.map +1 -0
  156. package/resources/x/users/mute.mjs +51 -0
  157. package/resources/x/users/mute.mjs.map +1 -0
  158. package/resources/x/users/users.d.mts +359 -9
  159. package/resources/x/users/users.d.mts.map +1 -1
  160. package/resources/x/users/users.d.ts +359 -9
  161. package/resources/x/users/users.d.ts.map +1 -1
  162. package/resources/x/users/users.js +27 -1
  163. package/resources/x/users/users.js.map +1 -1
  164. package/resources/x/users/users.mjs +27 -1
  165. package/resources/x/users/users.mjs.map +1 -1
  166. package/resources/x/write-actions.d.mts +1 -1
  167. package/resources/x/write-actions.d.mts.map +1 -1
  168. package/resources/x/write-actions.d.ts +1 -1
  169. package/resources/x/write-actions.d.ts.map +1 -1
  170. package/resources/x/x.d.mts +15 -2
  171. package/resources/x/x.d.mts.map +1 -1
  172. package/resources/x/x.d.ts +15 -2
  173. package/resources/x/x.d.ts.map +1 -1
  174. package/resources/x/x.js +4 -0
  175. package/resources/x/x.js.map +1 -1
  176. package/resources/x/x.mjs +4 -0
  177. package/resources/x/x.mjs.map +1 -1
  178. package/src/client.ts +9 -0
  179. package/src/core/README.md +4 -0
  180. package/src/internal/README.md +6 -1
  181. package/src/resources/extractions.ts +125 -0
  182. package/src/resources/index.ts +2 -0
  183. package/src/resources/monitors/index.ts +2 -0
  184. package/src/resources/monitors/monitors.ts +49 -0
  185. package/src/resources/monitors/posts.ts +32 -0
  186. package/src/resources/shared.ts +203 -4
  187. package/src/resources/x/account-connection-attempts.ts +5 -0
  188. package/src/resources/x/account-connection-links.ts +215 -0
  189. package/src/resources/x/accounts.ts +15 -14
  190. package/src/resources/x/analysis.ts +618 -36
  191. package/src/resources/x/bookmarks.ts +6 -0
  192. package/src/resources/x/communities/communities.ts +12 -0
  193. package/src/resources/x/communities/join.ts +12 -0
  194. package/src/resources/x/dm.ts +12 -0
  195. package/src/resources/x/index.ts +15 -0
  196. package/src/resources/x/media.ts +64 -0
  197. package/src/resources/x/profile.ts +18 -0
  198. package/src/resources/x/tweets/bookmark.ts +127 -0
  199. package/src/resources/x/tweets/index.ts +7 -0
  200. package/src/resources/x/tweets/like.ts +12 -0
  201. package/src/resources/x/tweets/retweet.ts +12 -0
  202. package/src/resources/x/tweets/tweets.ts +69 -10
  203. package/src/resources/x/users/block.ts +119 -0
  204. package/src/resources/x/users/follow.ts +12 -0
  205. package/src/resources/x/users/index.ts +20 -0
  206. package/src/resources/x/users/mute.ts +119 -0
  207. package/src/resources/x/users/users.ts +470 -7
  208. package/src/resources/x/write-actions.ts +6 -0
  209. package/src/resources/x/x.ts +48 -0
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -9,6 +9,16 @@ import {
9
9
  AccountConnectionAttemptRetrieveResponse,
10
10
  AccountConnectionAttempts,
11
11
  } from './account-connection-attempts';
12
+ import * as AccountConnectionLinksAPI from './account-connection-links';
13
+ import {
14
+ AccountConnectionLinkCreateParams,
15
+ AccountConnectionLinkCreateResponse,
16
+ AccountConnectionLinkDeleteResponse,
17
+ AccountConnectionLinkListParams,
18
+ AccountConnectionLinkListResponse,
19
+ AccountConnectionLinks,
20
+ XAccountConnectionLink,
21
+ } from './account-connection-links';
12
22
  import * as AccountConnectionChallengesAPI from './account-connection-challenges';
13
23
  import {
14
24
  AccountConnectionChallengeSubmitParams,
@@ -279,7 +289,13 @@ import {
279
289
  UserRetrieveBatchResponse,
280
290
  UserRetrieveBatchTweetsParams,
281
291
  UserRetrieveBatchTweetsResponse,
292
+ UserRetrieveFollowerAuditParams,
282
293
  UserRetrieveFollowerIDsParams,
294
+ UserRetrieveFollowerAuditResponse,
295
+ FollowerAudit,
296
+ AuditedFollower,
297
+ FollowerClass,
298
+ FollowerValueCount,
283
299
  UserRetrieveFollowerIDsResponse,
284
300
  UserRetrieveFollowersParams,
285
301
  UserRetrieveFollowersResponse,
@@ -333,6 +349,8 @@ export class X extends APIResource {
333
349
  new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
334
350
  accountConnectionAttempts: AccountConnectionAttemptsAPI.AccountConnectionAttempts =
335
351
  new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
352
+ accountConnectionLinks: AccountConnectionLinksAPI.AccountConnectionLinks =
353
+ new AccountConnectionLinksAPI.AccountConnectionLinks(this._client);
336
354
  bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
337
355
  lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
338
356
  broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
@@ -847,6 +865,13 @@ export namespace XGetArticleResponse {
847
865
 
848
866
  title?: string;
849
867
 
868
+ /**
869
+ * X did not send these counts, so each 0 means unknown.
870
+ */
871
+ unknownCounts?: Array<
872
+ 'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
873
+ >;
874
+
850
875
  viewCount?: number;
851
876
  }
852
877
 
@@ -1633,6 +1658,12 @@ export interface XGetHomeTimelineParams {
1633
1658
  * Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
1634
1659
  */
1635
1660
  seenTweetIds?: string;
1661
+
1662
+ /**
1663
+ * Items per page, 1 to 100, default 20. Source, filters or credits can return
1664
+ * fewer. Follow next_cursor for more pages.
1665
+ */
1666
+ pageSize?: number;
1636
1667
  }
1637
1668
 
1638
1669
  export interface XGetNewsStoryVersionsParams {
@@ -1875,6 +1906,7 @@ X.Communities = Communities;
1875
1906
  X.Accounts = Accounts;
1876
1907
  X.AccountConnectionChallenges = AccountConnectionChallenges;
1877
1908
  X.AccountConnectionAttempts = AccountConnectionAttempts;
1909
+ X.AccountConnectionLinks = AccountConnectionLinks;
1878
1910
  X.Bookmarks = Bookmarks;
1879
1911
  X.Lists = Lists;
1880
1912
  X.Broadcasts = Broadcasts;
@@ -1967,6 +1999,11 @@ export declare namespace X {
1967
1999
  type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
1968
2000
  type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
1969
2001
  type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
2002
+ type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse,
2003
+ type FollowerAudit as FollowerAudit,
2004
+ type AuditedFollower as AuditedFollower,
2005
+ type FollowerClass as FollowerClass,
2006
+ type FollowerValueCount as FollowerValueCount,
1970
2007
  type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
1971
2008
  type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
1972
2009
  type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
@@ -1985,6 +2022,7 @@ export declare namespace X {
1985
2022
  type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
1986
2023
  type UserRetrieveBatchParams as UserRetrieveBatchParams,
1987
2024
  type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
2025
+ type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams,
1988
2026
  type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
1989
2027
  type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
1990
2028
  type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
@@ -2102,6 +2140,16 @@ export declare namespace X {
2102
2140
  type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse,
2103
2141
  };
2104
2142
 
2143
+ export {
2144
+ AccountConnectionLinks as AccountConnectionLinks,
2145
+ type XAccountConnectionLink as XAccountConnectionLink,
2146
+ type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse,
2147
+ type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse,
2148
+ type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse,
2149
+ type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams,
2150
+ type AccountConnectionLinkListParams as AccountConnectionLinkListParams,
2151
+ };
2152
+
2105
2153
  export {
2106
2154
  Bookmarks as Bookmarks,
2107
2155
  type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
package/src/version.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
- export const VERSION = '0.20.0';
5
+ export const VERSION = '0.21.0';
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VERSION = void 0;
7
- exports.VERSION = '0.20.0';
7
+ exports.VERSION = '0.21.0';
8
8
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // SPDX-FileCopyrightText: 2026 Xquik contributors
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- export const VERSION = '0.20.0';
4
+ export const VERSION = '0.21.0';
5
5
  //# sourceMappingURL=version.mjs.map