x-twitter-scraper 0.19.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 (257) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +120 -120
  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/activity.d.mts +18 -2
  11. package/resources/activity.d.mts.map +1 -1
  12. package/resources/activity.d.ts +18 -2
  13. package/resources/activity.d.ts.map +1 -1
  14. package/resources/credits.d.mts +5 -0
  15. package/resources/credits.d.mts.map +1 -1
  16. package/resources/credits.d.ts +5 -0
  17. package/resources/credits.d.ts.map +1 -1
  18. package/resources/extractions.d.mts +153 -5
  19. package/resources/extractions.d.mts.map +1 -1
  20. package/resources/extractions.d.ts +153 -5
  21. package/resources/extractions.d.ts.map +1 -1
  22. package/resources/index.d.mts +1 -1
  23. package/resources/index.d.mts.map +1 -1
  24. package/resources/index.d.ts +1 -1
  25. package/resources/index.d.ts.map +1 -1
  26. package/resources/index.js.map +1 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/monitors/index.d.mts +1 -1
  29. package/resources/monitors/index.d.mts.map +1 -1
  30. package/resources/monitors/index.d.ts +1 -1
  31. package/resources/monitors/index.d.ts.map +1 -1
  32. package/resources/monitors/index.js.map +1 -1
  33. package/resources/monitors/index.mjs.map +1 -1
  34. package/resources/monitors/monitors.d.mts +38 -1
  35. package/resources/monitors/monitors.d.mts.map +1 -1
  36. package/resources/monitors/monitors.d.ts +38 -1
  37. package/resources/monitors/monitors.d.ts.map +1 -1
  38. package/resources/monitors/monitors.js +18 -0
  39. package/resources/monitors/monitors.js.map +1 -1
  40. package/resources/monitors/monitors.mjs +18 -0
  41. package/resources/monitors/monitors.mjs.map +1 -1
  42. package/resources/monitors/posts.d.mts +27 -0
  43. package/resources/monitors/posts.d.mts.map +1 -1
  44. package/resources/monitors/posts.d.ts +27 -0
  45. package/resources/monitors/posts.d.ts.map +1 -1
  46. package/resources/radar.d.mts +9 -0
  47. package/resources/radar.d.mts.map +1 -1
  48. package/resources/radar.d.ts +9 -0
  49. package/resources/radar.d.ts.map +1 -1
  50. package/resources/shared.d.mts +175 -5
  51. package/resources/shared.d.mts.map +1 -1
  52. package/resources/shared.d.ts +175 -5
  53. package/resources/shared.d.ts.map +1 -1
  54. package/resources/x/account-connection-attempts.d.mts +4 -0
  55. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  56. package/resources/x/account-connection-attempts.d.ts +4 -0
  57. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  58. package/resources/x/account-connection-links.d.mts +159 -0
  59. package/resources/x/account-connection-links.d.mts.map +1 -0
  60. package/resources/x/account-connection-links.d.ts +159 -0
  61. package/resources/x/account-connection-links.d.ts.map +1 -0
  62. package/resources/x/account-connection-links.js +82 -0
  63. package/resources/x/account-connection-links.js.map +1 -0
  64. package/resources/x/account-connection-links.mjs +78 -0
  65. package/resources/x/account-connection-links.mjs.map +1 -0
  66. package/resources/x/accounts.d.mts +13 -9
  67. package/resources/x/accounts.d.mts.map +1 -1
  68. package/resources/x/accounts.d.ts +13 -9
  69. package/resources/x/accounts.d.ts.map +1 -1
  70. package/resources/x/analysis.d.mts +540 -36
  71. package/resources/x/analysis.d.mts.map +1 -1
  72. package/resources/x/analysis.d.ts +540 -36
  73. package/resources/x/analysis.d.ts.map +1 -1
  74. package/resources/x/bookmarks.d.mts +5 -0
  75. package/resources/x/bookmarks.d.mts.map +1 -1
  76. package/resources/x/bookmarks.d.ts +5 -0
  77. package/resources/x/bookmarks.d.ts.map +1 -1
  78. package/resources/x/communities/communities.d.mts +19 -2
  79. package/resources/x/communities/communities.d.mts.map +1 -1
  80. package/resources/x/communities/communities.d.ts +19 -2
  81. package/resources/x/communities/communities.d.ts.map +1 -1
  82. package/resources/x/communities/communities.js +7 -4
  83. package/resources/x/communities/communities.js.map +1 -1
  84. package/resources/x/communities/communities.mjs +7 -4
  85. package/resources/x/communities/communities.mjs.map +1 -1
  86. package/resources/x/communities/join.d.mts +16 -2
  87. package/resources/x/communities/join.d.mts.map +1 -1
  88. package/resources/x/communities/join.d.ts +16 -2
  89. package/resources/x/communities/join.d.ts.map +1 -1
  90. package/resources/x/communities/join.js +4 -4
  91. package/resources/x/communities/join.js.map +1 -1
  92. package/resources/x/communities/join.mjs +4 -4
  93. package/resources/x/communities/join.mjs.map +1 -1
  94. package/resources/x/dm.d.mts +16 -2
  95. package/resources/x/dm.d.mts.map +1 -1
  96. package/resources/x/dm.d.ts +16 -2
  97. package/resources/x/dm.d.ts.map +1 -1
  98. package/resources/x/dm.js +4 -4
  99. package/resources/x/dm.js.map +1 -1
  100. package/resources/x/dm.mjs +4 -4
  101. package/resources/x/dm.mjs.map +1 -1
  102. package/resources/x/index.d.mts +2 -1
  103. package/resources/x/index.d.mts.map +1 -1
  104. package/resources/x/index.d.ts +2 -1
  105. package/resources/x/index.d.ts.map +1 -1
  106. package/resources/x/index.js +3 -1
  107. package/resources/x/index.js.map +1 -1
  108. package/resources/x/index.mjs +1 -0
  109. package/resources/x/index.mjs.map +1 -1
  110. package/resources/x/media.d.mts +55 -1
  111. package/resources/x/media.d.mts.map +1 -1
  112. package/resources/x/media.d.ts +55 -1
  113. package/resources/x/media.d.ts.map +1 -1
  114. package/resources/x/media.js +2 -2
  115. package/resources/x/media.js.map +1 -1
  116. package/resources/x/media.mjs +2 -2
  117. package/resources/x/media.mjs.map +1 -1
  118. package/resources/x/profile.d.mts +24 -3
  119. package/resources/x/profile.d.mts.map +1 -1
  120. package/resources/x/profile.d.ts +24 -3
  121. package/resources/x/profile.d.ts.map +1 -1
  122. package/resources/x/profile.js +6 -6
  123. package/resources/x/profile.js.map +1 -1
  124. package/resources/x/profile.mjs +6 -6
  125. package/resources/x/profile.mjs.map +1 -1
  126. package/resources/x/tweets/bookmark.d.mts +84 -0
  127. package/resources/x/tweets/bookmark.d.mts.map +1 -0
  128. package/resources/x/tweets/bookmark.d.ts +84 -0
  129. package/resources/x/tweets/bookmark.d.ts.map +1 -0
  130. package/resources/x/tweets/bookmark.js +55 -0
  131. package/resources/x/tweets/bookmark.js.map +1 -0
  132. package/resources/x/tweets/bookmark.mjs +51 -0
  133. package/resources/x/tweets/bookmark.mjs.map +1 -0
  134. package/resources/x/tweets/index.d.mts +1 -0
  135. package/resources/x/tweets/index.d.mts.map +1 -1
  136. package/resources/x/tweets/index.d.ts +1 -0
  137. package/resources/x/tweets/index.d.ts.map +1 -1
  138. package/resources/x/tweets/index.js +3 -1
  139. package/resources/x/tweets/index.js.map +1 -1
  140. package/resources/x/tweets/index.mjs +1 -0
  141. package/resources/x/tweets/index.mjs.map +1 -1
  142. package/resources/x/tweets/like.d.mts +16 -2
  143. package/resources/x/tweets/like.d.mts.map +1 -1
  144. package/resources/x/tweets/like.d.ts +16 -2
  145. package/resources/x/tweets/like.d.ts.map +1 -1
  146. package/resources/x/tweets/like.js +4 -4
  147. package/resources/x/tweets/like.js.map +1 -1
  148. package/resources/x/tweets/like.mjs +4 -4
  149. package/resources/x/tweets/like.mjs.map +1 -1
  150. package/resources/x/tweets/retweet.d.mts +16 -2
  151. package/resources/x/tweets/retweet.d.mts.map +1 -1
  152. package/resources/x/tweets/retweet.d.ts +16 -2
  153. package/resources/x/tweets/retweet.d.ts.map +1 -1
  154. package/resources/x/tweets/retweet.js +4 -4
  155. package/resources/x/tweets/retweet.js.map +1 -1
  156. package/resources/x/tweets/retweet.mjs +4 -4
  157. package/resources/x/tweets/retweet.mjs.map +1 -1
  158. package/resources/x/tweets/tweets.d.mts +68 -13
  159. package/resources/x/tweets/tweets.d.mts.map +1 -1
  160. package/resources/x/tweets/tweets.d.ts +68 -13
  161. package/resources/x/tweets/tweets.d.ts.map +1 -1
  162. package/resources/x/tweets/tweets.js +8 -4
  163. package/resources/x/tweets/tweets.js.map +1 -1
  164. package/resources/x/tweets/tweets.mjs +8 -4
  165. package/resources/x/tweets/tweets.mjs.map +1 -1
  166. package/resources/x/users/block.d.mts +84 -0
  167. package/resources/x/users/block.d.mts.map +1 -0
  168. package/resources/x/users/block.d.ts +84 -0
  169. package/resources/x/users/block.d.ts.map +1 -0
  170. package/resources/x/users/block.js +55 -0
  171. package/resources/x/users/block.js.map +1 -0
  172. package/resources/x/users/block.mjs +51 -0
  173. package/resources/x/users/block.mjs.map +1 -0
  174. package/resources/x/users/follow.d.mts +16 -2
  175. package/resources/x/users/follow.d.mts.map +1 -1
  176. package/resources/x/users/follow.d.ts +16 -2
  177. package/resources/x/users/follow.d.ts.map +1 -1
  178. package/resources/x/users/follow.js +4 -4
  179. package/resources/x/users/follow.js.map +1 -1
  180. package/resources/x/users/follow.mjs +4 -4
  181. package/resources/x/users/follow.mjs.map +1 -1
  182. package/resources/x/users/index.d.mts +3 -1
  183. package/resources/x/users/index.d.mts.map +1 -1
  184. package/resources/x/users/index.d.ts +3 -1
  185. package/resources/x/users/index.d.ts.map +1 -1
  186. package/resources/x/users/index.js +5 -1
  187. package/resources/x/users/index.js.map +1 -1
  188. package/resources/x/users/index.mjs +2 -0
  189. package/resources/x/users/index.mjs.map +1 -1
  190. package/resources/x/users/mute.d.mts +84 -0
  191. package/resources/x/users/mute.d.mts.map +1 -0
  192. package/resources/x/users/mute.d.ts +84 -0
  193. package/resources/x/users/mute.d.ts.map +1 -0
  194. package/resources/x/users/mute.js +55 -0
  195. package/resources/x/users/mute.js.map +1 -0
  196. package/resources/x/users/mute.mjs +51 -0
  197. package/resources/x/users/mute.mjs.map +1 -0
  198. package/resources/x/users/users.d.mts +783 -9
  199. package/resources/x/users/users.d.mts.map +1 -1
  200. package/resources/x/users/users.d.ts +783 -9
  201. package/resources/x/users/users.d.ts.map +1 -1
  202. package/resources/x/users/users.js +44 -3
  203. package/resources/x/users/users.js.map +1 -1
  204. package/resources/x/users/users.mjs +44 -3
  205. package/resources/x/users/users.mjs.map +1 -1
  206. package/resources/x/write-actions.d.mts +1 -1
  207. package/resources/x/write-actions.d.mts.map +1 -1
  208. package/resources/x/write-actions.d.ts +1 -1
  209. package/resources/x/write-actions.d.ts.map +1 -1
  210. package/resources/x/x.d.mts +15 -2
  211. package/resources/x/x.d.mts.map +1 -1
  212. package/resources/x/x.d.ts +15 -2
  213. package/resources/x/x.d.ts.map +1 -1
  214. package/resources/x/x.js +4 -0
  215. package/resources/x/x.js.map +1 -1
  216. package/resources/x/x.mjs +4 -0
  217. package/resources/x/x.mjs.map +1 -1
  218. package/src/client.ts +9 -0
  219. package/src/core/README.md +4 -0
  220. package/src/internal/README.md +6 -1
  221. package/src/resources/activity.ts +41 -2
  222. package/src/resources/credits.ts +6 -0
  223. package/src/resources/extractions.ts +183 -0
  224. package/src/resources/index.ts +2 -0
  225. package/src/resources/monitors/index.ts +2 -0
  226. package/src/resources/monitors/monitors.ts +49 -0
  227. package/src/resources/monitors/posts.ts +32 -0
  228. package/src/resources/radar.ts +10 -0
  229. package/src/resources/shared.ts +213 -4
  230. package/src/resources/x/account-connection-attempts.ts +5 -0
  231. package/src/resources/x/account-connection-links.ts +215 -0
  232. package/src/resources/x/accounts.ts +15 -14
  233. package/src/resources/x/analysis.ts +618 -36
  234. package/src/resources/x/bookmarks.ts +6 -0
  235. package/src/resources/x/communities/communities.ts +35 -4
  236. package/src/resources/x/communities/join.ts +32 -4
  237. package/src/resources/x/dm.ts +32 -4
  238. package/src/resources/x/index.ts +18 -0
  239. package/src/resources/x/media.ts +74 -2
  240. package/src/resources/x/profile.ts +48 -6
  241. package/src/resources/x/tweets/bookmark.ts +127 -0
  242. package/src/resources/x/tweets/index.ts +7 -0
  243. package/src/resources/x/tweets/like.ts +32 -4
  244. package/src/resources/x/tweets/retweet.ts +32 -4
  245. package/src/resources/x/tweets/tweets.ts +104 -14
  246. package/src/resources/x/users/block.ts +119 -0
  247. package/src/resources/x/users/follow.ts +32 -4
  248. package/src/resources/x/users/index.ts +23 -0
  249. package/src/resources/x/users/mute.ts +119 -0
  250. package/src/resources/x/users/users.ts +1063 -89
  251. package/src/resources/x/write-actions.ts +6 -0
  252. package/src/resources/x/x.ts +54 -0
  253. package/src/version.ts +1 -1
  254. package/version.d.mts +1 -1
  255. package/version.d.ts +1 -1
  256. package/version.js +1 -1
  257. package/version.mjs +1 -1
@@ -1,11 +1,17 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as Shared from "../../shared.js";
3
+ import * as BlockAPI from "./block.js";
4
+ import { Block, BlockCreateParams, BlockCreateResponse, BlockDeleteParams, BlockDeleteResponse } from "./block.js";
3
5
  import * as FollowAPI from "./follow.js";
4
6
  import { Follow, FollowCreateParams, FollowCreateResponse, FollowDeleteAllParams, FollowDeleteAllResponse } from "./follow.js";
7
+ import * as MuteAPI from "./mute.js";
8
+ import { Mute, MuteCreateParams, MuteCreateResponse, MuteDeleteParams, MuteDeleteResponse } from "./mute.js";
5
9
  import { APIPromise } from "../../../core/api-promise.js";
6
10
  import { RequestOptions } from "../../../internal/request-options.js";
7
11
  export declare class Users extends APIResource {
12
+ block: BlockAPI.Block;
8
13
  follow: FollowAPI.Follow;
14
+ mute: MuteAPI.Mute;
9
15
  /**
10
16
  * Returns one public profile with counts and verification details.
11
17
  *
@@ -71,6 +77,22 @@ export declare class Users extends APIResource {
71
77
  * ```
72
78
  */
73
79
  retrieveBatchTweets(query?: UserRetrieveBatchTweetsParams | null | undefined, options?: RequestOptions): APIPromise<UserRetrieveBatchTweetsResponse>;
80
+ /**
81
+ * Reads the newest followers of a public account & returns a follower audit. It
82
+ * gives each follower 1 class with its score & signals, then adds coverage, a
83
+ * quality score, signal counts, arrival bands, join cohorts, countries, top
84
+ * followers & the account's engagement. Each follower read costs 1 credit, and the
85
+ * engagement adds 1 credit. Signals come from public profiles, so a real person
86
+ * can match. Older followers may differ from the newest ones.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const response = await client.x.users.retrieveFollowerAudit(
91
+ * 'id',
92
+ * );
93
+ * ```
94
+ */
95
+ retrieveFollowerAudit(id: string, query?: UserRetrieveFollowerAuditParams | null | undefined, options?: RequestOptions): APIPromise<UserRetrieveFollowerAuditResponse>;
74
96
  /**
75
97
  * Returns the user IDs of the selected user's followers, newest first, up to 5,000
76
98
  * a page. Use it when you need IDs only. Each ID costs 1 credit.
@@ -141,7 +163,7 @@ export declare class Users extends APIResource {
141
163
  retrieveHighlights(id: string, query?: UserRetrieveHighlightsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
142
164
  /**
143
165
  * Returns engagement insights for one profile: engagement rate, averages per post
144
- * and posting rate, from its counts and its last 20 posts. Reposts and the pinned
166
+ * and posting rate, from its counts and its most recent posts. It reads 20 posts unless limit names another number. Reposts and the pinned
145
167
  * post stay out of the averages. Each report costs 1 credit, whatever it reads.
146
168
  *
147
169
  * @example
@@ -207,7 +229,7 @@ export declare class Users extends APIResource {
207
229
  * );
208
230
  * ```
209
231
  */
210
- retrieveMedia(id: string, query?: UserRetrieveMediaParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
232
+ retrieveMedia(id: string, query?: UserRetrieveMediaParams | null | undefined, options?: RequestOptions): APIPromise<Shared.FilterablePaginatedTweets>;
211
233
  /**
212
234
  * Returns public posts mentioning the selected user.
213
235
  *
@@ -229,7 +251,7 @@ export declare class Users extends APIResource {
229
251
  * await client.x.users.retrieveReplies('id');
230
252
  * ```
231
253
  */
232
- retrieveReplies(id: string, query?: UserRetrieveRepliesParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
254
+ retrieveReplies(id: string, query?: UserRetrieveRepliesParams | null | undefined, options?: RequestOptions): APIPromise<Shared.FilterablePaginatedTweets>;
233
255
  /**
234
256
  * Returns public profiles matching a name or username.
235
257
  *
@@ -241,6 +263,19 @@ export declare class Users extends APIResource {
241
263
  * ```
242
264
  */
243
265
  retrieveSearch(query: UserRetrieveSearchParams, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
266
+ /**
267
+ * Checks 1 X account for a search ban, a search suggestion ban & reply
268
+ * deboosting. It also says if the account is active, protected or suspended. Each
269
+ * profile, post, suggestion & reply in the answer costs 1 credit.
270
+ *
271
+ * @example
272
+ * ```ts
273
+ * const shadowbanReport = await client.x.users.retrieveShadowban(
274
+ * 'id',
275
+ * );
276
+ * ```
277
+ */
278
+ retrieveShadowban(id: string, query?: UserRetrieveShadowbanParams | null | undefined, options?: RequestOptions): APIPromise<ShadowbanReport>;
244
279
  /**
245
280
  * Returns the public accounts X lists as similar to the selected user, in X's
246
281
  * order. X can list slightly different accounts on each call. Each account costs 1
@@ -280,7 +315,7 @@ export declare class Users extends APIResource {
280
315
  * );
281
316
  * ```
282
317
  */
283
- retrieveTweets(id: string, query?: UserRetrieveTweetsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
318
+ retrieveTweets(id: string, query?: UserRetrieveTweetsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.FilterablePaginatedTweets>;
284
319
  /**
285
320
  * Returns verified public profiles following the selected user.
286
321
  *
@@ -316,7 +351,7 @@ export interface UserRemoveFollowerResponse {
316
351
  * Connected account selected for the write.
317
352
  */
318
353
  account: UserRemoveFollowerResponse.Account | null;
319
- action: 'create_tweet' | 'delete_tweet' | 'like' | 'unlike' | 'retweet' | 'unretweet' | 'follow' | 'unfollow' | 'remove_follower' | 'send_dm' | 'delete_dm' | 'upload_media' | 'update_profile' | 'update_avatar' | 'update_banner' | 'create_community' | 'delete_community' | 'join_community' | 'leave_community';
354
+ action: 'create_tweet' | 'delete_tweet' | 'like' | 'unlike' | 'retweet' | 'unretweet' | 'bookmark' | 'unbookmark' | 'follow' | 'unfollow' | 'block' | 'unblock' | 'mute' | 'unmute' | 'remove_follower' | 'send_dm' | 'delete_dm' | 'upload_media' | 'update_profile' | 'update_avatar' | 'update_banner' | 'create_community' | 'delete_community' | 'join_community' | 'leave_community';
320
355
  /**
321
356
  * plannedCredits is the approved maximum. chargedCredits comes from the settled
322
357
  * credit ledger. Pending or failed writes are not charged.
@@ -501,6 +536,11 @@ export interface UserRetrieveBatchResponse {
501
536
  * Empty because batch lookups never paginate.
502
537
  */
503
538
  next_cursor: string;
539
+ /**
540
+ * The unavailable IDs no account holds, as X answers for an account that was
541
+ * deactivated or deleted, in first-seen request order.
542
+ */
543
+ not_found_ids: Array<string>;
504
544
  /**
505
545
  * Number of requested IDs included in the lookup.
506
546
  */
@@ -514,7 +554,12 @@ export interface UserRetrieveBatchResponse {
514
554
  */
515
555
  returned_count: number;
516
556
  /**
517
- * Processed IDs with no profile on X, in first-seen request order.
557
+ * The unavailable IDs of accounts X suspended, in first-seen request order.
558
+ */
559
+ suspended_ids: Array<string>;
560
+ /**
561
+ * Processed IDs with no profile on X, in first-seen request order. not_found_ids
562
+ * and suspended_ids split them by X's answer.
518
563
  */
519
564
  unavailable_ids: Array<string>;
520
565
  /**
@@ -542,10 +587,25 @@ export interface UserRetrieveBatchTweetsResponse {
542
587
  * Always empty. The answer holds every post in 1 page.
543
588
  */
544
589
  next_cursor: string;
590
+ /**
591
+ * The unavailable users no account holds, as X answers for an account that was
592
+ * deactivated or deleted, in first-seen request order.
593
+ */
594
+ not_found_ids: Array<string>;
595
+ /**
596
+ * The unavailable users whose posts only approved followers see, in first-seen
597
+ * request order.
598
+ */
599
+ protected_ids: Array<string>;
600
+ /**
601
+ * The unavailable users X suspended, in first-seen request order.
602
+ */
603
+ suspended_ids: Array<string>;
545
604
  tweets: Array<Shared.SearchTweet>;
546
605
  /**
547
606
  * Users with no account on X or with protected posts, in first-seen request order.
548
- * They cost nothing.
607
+ * They cost nothing. not_found_ids, suspended_ids and protected_ids split them by
608
+ * X's answer.
549
609
  */
550
610
  unavailable_ids: Array<string>;
551
611
  /**
@@ -554,6 +614,212 @@ export interface UserRetrieveBatchTweetsResponse {
554
614
  */
555
615
  unprocessed_ids: Array<string>;
556
616
  }
617
+ export interface UserRetrieveFollowerAuditResponse {
618
+ /**
619
+ * Report on the followers read. Classes rest on public profile signals, so they
620
+ * say what a profile looks like, never who runs it.
621
+ */
622
+ audit: FollowerAudit;
623
+ }
624
+ /**
625
+ * Report on the followers read. Classes rest on public profile signals, so they say
626
+ * what a profile looks like, never who runs it.
627
+ */
628
+ export interface FollowerAudit {
629
+ /**
630
+ * The audited account's engagement insights.
631
+ */
632
+ account: UserRetrieveInsightsResponse.Insights;
633
+ /**
634
+ * Likely fake share by position in the newest-first list.
635
+ */
636
+ arrivalBands: Array<FollowerAudit.ArrivalBand>;
637
+ /**
638
+ * How many followers fall in each class.
639
+ */
640
+ classes: Array<FollowerAudit.Class>;
641
+ /**
642
+ * Followers who joined X in the same UTC week.
643
+ */
644
+ cohorts: Array<FollowerAudit.Cohort>;
645
+ /**
646
+ * How many of the account's followers the audit read.
647
+ */
648
+ coverage: FollowerAudit.Coverage;
649
+ /**
650
+ * Each follower the audit read, newest first.
651
+ */
652
+ followers: Array<AuditedFollower>;
653
+ /**
654
+ * How many followers share each profile language.
655
+ */
656
+ languages: Array<FollowerValueCount>;
657
+ /**
658
+ * How many followers share each profile place.
659
+ */
660
+ places: Array<FollowerValueCount>;
661
+ /**
662
+ * The audit's grade & score for the followers read.
663
+ */
664
+ quality: FollowerAudit.Quality;
665
+ /**
666
+ * How many followers match each signal & the points it adds.
667
+ */
668
+ signals: Array<FollowerAudit.Signal>;
669
+ /**
670
+ * The followers the audit ranks highest.
671
+ */
672
+ topFollowers: Array<AuditedFollower>;
673
+ /**
674
+ * How many followers are verified.
675
+ */
676
+ verified: FollowerAudit.Verified;
677
+ }
678
+ export declare namespace FollowerAudit {
679
+ interface ArrivalBand {
680
+ /**
681
+ * Whole number from 0.
682
+ */
683
+ count: number;
684
+ /**
685
+ * Whole number from 0.
686
+ */
687
+ from: number;
688
+ percent: number;
689
+ /**
690
+ * Whole number from 0.
691
+ */
692
+ read: number;
693
+ /**
694
+ * Whole number from 0.
695
+ */
696
+ to: number;
697
+ }
698
+ interface Class {
699
+ /**
700
+ * What 1 follower looks like from its public profile.
701
+ */
702
+ class: FollowerClass;
703
+ /**
704
+ * Whole number from 0.
705
+ */
706
+ count: number;
707
+ percent: number;
708
+ }
709
+ interface Cohort {
710
+ /**
711
+ * Whole number from 0.
712
+ */
713
+ count: number;
714
+ /**
715
+ * Followers in the cohort the audit classes as likelyFake. Whole number from 0.
716
+ */
717
+ likelyFake: number;
718
+ percent: number;
719
+ /**
720
+ * Start of the UTC week, in milliseconds since the Unix epoch.
721
+ */
722
+ weekStartMs: number;
723
+ }
724
+ interface Coverage {
725
+ percent: number;
726
+ /**
727
+ * Whole number from 0.
728
+ */
729
+ read: number;
730
+ /**
731
+ * Whole number from 0.
732
+ */
733
+ total: number;
734
+ }
735
+ interface Quality {
736
+ grade: 'A' | 'B' | 'C' | 'D' | 'F';
737
+ /**
738
+ * Whole number from 0 to 100.
739
+ */
740
+ score: number;
741
+ }
742
+ interface Signal {
743
+ /**
744
+ * Whole number from 0.
745
+ */
746
+ count: number;
747
+ id: string;
748
+ percent: number;
749
+ /**
750
+ * Whole number from 0.
751
+ */
752
+ points: number;
753
+ }
754
+ interface Verified {
755
+ /**
756
+ * Whole number from 0.
757
+ */
758
+ count: number;
759
+ percent: number;
760
+ }
761
+ }
762
+ /**
763
+ * 1 follower the audit read, with its class, score & signals.
764
+ */
765
+ export interface AuditedFollower {
766
+ id: string;
767
+ /**
768
+ * What 1 follower looks like from its public profile.
769
+ */
770
+ class: FollowerClass;
771
+ /**
772
+ * Whole number from 0.
773
+ */
774
+ followers: number;
775
+ /**
776
+ * Whole number from 0.
777
+ */
778
+ following: number;
779
+ /**
780
+ * Whole number from 0.
781
+ */
782
+ likes: number;
783
+ name: string;
784
+ /**
785
+ * The follower's place in the newest-first list. Whole number from 0.
786
+ */
787
+ position: number;
788
+ /**
789
+ * Whole number from 0.
790
+ */
791
+ posts: number;
792
+ /**
793
+ * Whole number from 0.
794
+ */
795
+ score: number;
796
+ signals: Array<string>;
797
+ userName: string;
798
+ /**
799
+ * When the follower joined X, in milliseconds since the Unix epoch.
800
+ */
801
+ joinedAtMs?: number;
802
+ /**
803
+ * Account that runs an automated follower, when X names it.
804
+ */
805
+ owner?: string;
806
+ pictureUrl?: string;
807
+ }
808
+ /**
809
+ * What 1 follower looks like from its public profile.
810
+ */
811
+ export type FollowerClass = 'automated' | 'inactive' | 'likelyFake' | 'likelyReal' | 'tooNew';
812
+ /**
813
+ * How many followers share 1 value, such as a language or place.
814
+ */
815
+ export interface FollowerValueCount {
816
+ /**
817
+ * Whole number from 0.
818
+ */
819
+ count: number;
820
+ percent: number;
821
+ value: string;
822
+ }
557
823
  export type UserRetrieveFollowerIDsResponse = Shared.PaginatedUserIds;
558
824
  /**
559
825
  * A standard or terminal maximum-coverage relationship page.
@@ -773,6 +1039,11 @@ export declare namespace UserRetrieveInsightsResponse {
773
1039
  * Accounts the user follows.
774
1040
  */
775
1041
  following: number;
1042
+ /**
1043
+ * Middle view count of the sample, so 1 viral post moves it less than the
1044
+ * average. Null without posts.
1045
+ */
1046
+ medianViews: number | null;
776
1047
  /**
777
1048
  * Posts the user has made.
778
1049
  */
@@ -850,9 +1121,14 @@ export declare namespace UserRetrieveInsightsResponse {
850
1121
  */
851
1122
  oldestAt: string | null;
852
1123
  /**
853
- * Posts read.
1124
+ * Posts the averages used. Reposts and the pinned post stay out, so this can be
1125
+ * lower than `read`.
854
1126
  */
855
1127
  posts: number;
1128
+ /**
1129
+ * Posts read, reposts and the pinned post included.
1130
+ */
1131
+ read: number;
856
1132
  }
857
1133
  }
858
1134
  }
@@ -900,6 +1176,389 @@ export declare namespace UserRetrieveListsResponse {
900
1176
  }
901
1177
  }
902
1178
  }
1179
+ /**
1180
+ * Says whether X limits 1 account in search, search suggestions, reply threads or
1181
+ * its timeline. Each check holds a verdict, its reason & the evidence it read.
1182
+ * Evidence is null for a check that couldn't read the account.
1183
+ */
1184
+ export interface ShadowbanReport {
1185
+ /**
1186
+ * Whether the account is active, protected or suspended.
1187
+ */
1188
+ account: 'active' | 'protected' | 'suspended';
1189
+ /**
1190
+ * When the check ran.
1191
+ */
1192
+ checkedAt: string;
1193
+ /**
1194
+ * The 9 checks, each with a verdict, a reason & evidence.
1195
+ */
1196
+ checks: ShadowbanReport.Checks;
1197
+ /**
1198
+ * `suspended` means X suspended the account. `limited` means at least 1 check
1199
+ * failed. `clear` means search & suggestions passed with no fail. `unclear` means
1200
+ * neither of those.
1201
+ */
1202
+ overall: 'clear' | 'limited' | 'unclear' | 'suspended';
1203
+ /**
1204
+ * ID of the account. Null for a suspended account asked for by username.
1205
+ */
1206
+ userId: string | null;
1207
+ /**
1208
+ * Username of the account. Null for a suspended account asked for by ID.
1209
+ */
1210
+ username: string | null;
1211
+ }
1212
+ export declare namespace ShadowbanReport {
1213
+ /**
1214
+ * The 9 checks, each with a verdict, a reason & evidence.
1215
+ */
1216
+ interface Checks {
1217
+ /**
1218
+ * Passes an active or protected account & fails a suspended one.
1219
+ */
1220
+ account: Checks.Account;
1221
+ /**
1222
+ * Compares the newest 5 of the account's own posts older than 24 hours with its
1223
+ * earlier posts, by the median of likes, replies, reposts & quotes. `typical`
1224
+ * passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
1225
+ */
1226
+ engagement: Checks.Engagement;
1227
+ /**
1228
+ * Opens the threads of up to 3 recent replies to other accounts. `in_thread`
1229
+ * passes. X ranks replies for each viewer, so `more_replies` can't tell.
1230
+ */
1231
+ replies: Checks.Replies;
1232
+ /**
1233
+ * Reads the same reply threads as `replies`. `replies_show` passes when any
1234
+ * checked reply shows. X ranks replies for each viewer, so `replies_missing`
1235
+ * can't tell.
1236
+ */
1237
+ replyLock: Checks.ReplyLock;
1238
+ /**
1239
+ * Looks for the account's recent posts in X search, sorted by Latest. `listed`
1240
+ * passes & `missing` fails.
1241
+ */
1242
+ search: Checks.Search;
1243
+ /**
1244
+ * Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
1245
+ * fails.
1246
+ */
1247
+ sensitive: Checks.Sensitive;
1248
+ /**
1249
+ * Looks for the account among the accounts X suggests for its username.
1250
+ * `suggested` passes & `not_suggested` fails.
1251
+ */
1252
+ suggestion: Checks.Suggestion;
1253
+ /**
1254
+ * Looks for the account's posts on its profile timeline. `visible` passes &
1255
+ * `hidden` fails.
1256
+ */
1257
+ timeline: Checks.Timeline;
1258
+ /**
1259
+ * Reads the countries where X withholds the account. `none` passes & `countries`
1260
+ * fails.
1261
+ */
1262
+ withheld: Checks.Withheld;
1263
+ }
1264
+ namespace Checks {
1265
+ /**
1266
+ * Passes an active or protected account & fails a suspended one.
1267
+ */
1268
+ interface Account {
1269
+ /**
1270
+ * Where to see the account on X.
1271
+ */
1272
+ evidence: Account.Evidence;
1273
+ /**
1274
+ * State of the account on X.
1275
+ */
1276
+ reason: 'active' | 'protected' | 'suspended';
1277
+ verdict: ShadowbanVerdict;
1278
+ }
1279
+ namespace Account {
1280
+ /**
1281
+ * Where to see the account on X.
1282
+ */
1283
+ interface Evidence {
1284
+ /**
1285
+ * Profile of the account on X.
1286
+ */
1287
+ profileUrl: string;
1288
+ }
1289
+ }
1290
+ /**
1291
+ * Compares the newest 5 of the account's own posts older than 24 hours with its
1292
+ * earlier posts, by the median of likes, replies, reposts & quotes. `typical`
1293
+ * passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
1294
+ */
1295
+ interface Engagement {
1296
+ /**
1297
+ * The 2 medians & how many posts each one covers.
1298
+ */
1299
+ evidence: Engagement.Evidence | null;
1300
+ /**
1301
+ * `too_few_posts` means fewer than 8 posts to compare, or earlier posts with no
1302
+ * engagement.
1303
+ */
1304
+ reason: 'typical' | 'low' | 'too_few_posts' | 'unavailable' | 'protected' | 'suspended';
1305
+ verdict: ShadowbanVerdict;
1306
+ }
1307
+ namespace Engagement {
1308
+ /**
1309
+ * The 2 medians & how many posts each one covers.
1310
+ */
1311
+ interface Evidence {
1312
+ /**
1313
+ * Median engagement of the earlier posts.
1314
+ */
1315
+ earlierMedian: number;
1316
+ /**
1317
+ * Posts in the earlier group.
1318
+ */
1319
+ earlierPosts: number;
1320
+ /**
1321
+ * Median engagement of the newest posts.
1322
+ */
1323
+ newestMedian: number;
1324
+ /**
1325
+ * Posts in the newest group, up to 5.
1326
+ */
1327
+ newestPosts: number;
1328
+ }
1329
+ }
1330
+ /**
1331
+ * Opens the threads of up to 3 recent replies to other accounts. `in_thread`
1332
+ * passes. X ranks replies for each viewer, so `more_replies` can't tell.
1333
+ */
1334
+ interface Replies {
1335
+ /**
1336
+ * Each reply it opened & where it showed.
1337
+ */
1338
+ evidence: Replies.Evidence | null;
1339
+ /**
1340
+ * `more_replies` means X put a reply behind its hidden replies prompt.
1341
+ * `not_found` means no reply showed on the pages the check read.
1342
+ */
1343
+ reason: 'in_thread' | 'more_replies' | 'no_recent_replies' | 'not_found' | 'unavailable' | 'protected' | 'suspended';
1344
+ verdict: ShadowbanVerdict;
1345
+ }
1346
+ namespace Replies {
1347
+ /**
1348
+ * Each reply it opened & where it showed.
1349
+ */
1350
+ interface Evidence {
1351
+ /**
1352
+ * Up to 3 replies, newest first.
1353
+ */
1354
+ replies: Array<Evidence.Reply>;
1355
+ }
1356
+ namespace Evidence {
1357
+ interface Reply {
1358
+ /**
1359
+ * ID of the post it replies to.
1360
+ */
1361
+ parentId: string;
1362
+ /**
1363
+ * The thread of that post on X.
1364
+ */
1365
+ parentUrl: string;
1366
+ /**
1367
+ * `thread` means the reply shows in the thread. `more_replies` means it shows
1368
+ * only behind X's hidden replies prompt.
1369
+ */
1370
+ placement: 'thread' | 'more_replies' | 'not_found';
1371
+ /**
1372
+ * ID of the reply.
1373
+ */
1374
+ replyId: string;
1375
+ /**
1376
+ * The reply on X.
1377
+ */
1378
+ replyUrl: string;
1379
+ }
1380
+ }
1381
+ }
1382
+ /**
1383
+ * Reads the same reply threads as `replies`. `replies_show` passes when any
1384
+ * checked reply shows. X ranks replies for each viewer, so `replies_missing`
1385
+ * can't tell.
1386
+ */
1387
+ interface ReplyLock {
1388
+ /**
1389
+ * How many replies it opened & how many showed.
1390
+ */
1391
+ evidence: ReplyLock.Evidence | null;
1392
+ /**
1393
+ * `replies_show` means X showed at least 1 checked reply. `replies_missing` means
1394
+ * it showed none on the pages read.
1395
+ */
1396
+ reason: 'replies_show' | 'replies_missing' | 'no_recent_replies' | 'unavailable' | 'protected' | 'suspended';
1397
+ verdict: ShadowbanVerdict;
1398
+ }
1399
+ namespace ReplyLock {
1400
+ /**
1401
+ * How many replies it opened & how many showed.
1402
+ */
1403
+ interface Evidence {
1404
+ /**
1405
+ * Replies it looked for, up to 3.
1406
+ */
1407
+ checkedReplies: number;
1408
+ /**
1409
+ * Replies that showed in their thread.
1410
+ */
1411
+ shownReplies: number;
1412
+ }
1413
+ }
1414
+ /**
1415
+ * Looks for the account's recent posts in X search, sorted by Latest. `listed`
1416
+ * passes & `missing` fails.
1417
+ */
1418
+ interface Search {
1419
+ /**
1420
+ * The search & the posts it looked for.
1421
+ */
1422
+ evidence: Search.Evidence | null;
1423
+ /**
1424
+ * `listed` means search shows its posts & `missing` means it shows none.
1425
+ * `no_recent_posts` means the account has no recent post to look for.
1426
+ */
1427
+ reason: 'listed' | 'missing' | 'no_recent_posts' | 'unavailable' | 'protected' | 'suspended';
1428
+ verdict: ShadowbanVerdict;
1429
+ }
1430
+ namespace Search {
1431
+ /**
1432
+ * The search & the posts it looked for.
1433
+ */
1434
+ interface Evidence {
1435
+ /**
1436
+ * Up to 5 posts of the account that search showed.
1437
+ */
1438
+ foundPostIds: Array<string>;
1439
+ /**
1440
+ * The search it ran.
1441
+ */
1442
+ query: string;
1443
+ /**
1444
+ * Up to 5 recent posts of the account.
1445
+ */
1446
+ recentPostIds: Array<string>;
1447
+ /**
1448
+ * The same search on X, sorted by Latest.
1449
+ */
1450
+ searchUrl: string;
1451
+ }
1452
+ }
1453
+ /**
1454
+ * Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
1455
+ * fails.
1456
+ */
1457
+ interface Sensitive {
1458
+ /**
1459
+ * Always null, since the reason holds the answer.
1460
+ */
1461
+ evidence: null;
1462
+ /**
1463
+ * `unknown` means X left the flag out of the profile.
1464
+ */
1465
+ reason: 'not_flagged' | 'flagged' | 'unknown' | 'suspended';
1466
+ verdict: ShadowbanVerdict;
1467
+ }
1468
+ /**
1469
+ * Looks for the account among the accounts X suggests for its username.
1470
+ * `suggested` passes & `not_suggested` fails.
1471
+ */
1472
+ interface Suggestion {
1473
+ /**
1474
+ * The username searched & the accounts X suggested.
1475
+ */
1476
+ evidence: Suggestion.Evidence | null;
1477
+ /**
1478
+ * `suggested` means X suggests the account for its username.
1479
+ */
1480
+ reason: 'suggested' | 'not_suggested' | 'unavailable' | 'suspended';
1481
+ verdict: ShadowbanVerdict;
1482
+ }
1483
+ namespace Suggestion {
1484
+ /**
1485
+ * The username searched & the accounts X suggested.
1486
+ */
1487
+ interface Evidence {
1488
+ /**
1489
+ * The username it typed.
1490
+ */
1491
+ query: string;
1492
+ /**
1493
+ * Up to 10 accounts X suggested, in its order.
1494
+ */
1495
+ suggestedUsernames: Array<string>;
1496
+ }
1497
+ }
1498
+ /**
1499
+ * Looks for the account's posts on its profile timeline. `visible` passes &
1500
+ * `hidden` fails.
1501
+ */
1502
+ interface Timeline {
1503
+ /**
1504
+ * The post count on the profile & the posts read.
1505
+ */
1506
+ evidence: Timeline.Evidence | null;
1507
+ /**
1508
+ * `visible` means the timeline shows posts. `hidden` means X counts posts but
1509
+ * shows none. `no_posts` means the account has none to show.
1510
+ */
1511
+ reason: 'visible' | 'hidden' | 'no_posts' | 'unavailable' | 'protected' | 'suspended';
1512
+ verdict: ShadowbanVerdict;
1513
+ }
1514
+ namespace Timeline {
1515
+ /**
1516
+ * The post count on the profile & the posts read.
1517
+ */
1518
+ interface Evidence {
1519
+ /**
1520
+ * Posts X counts on the profile.
1521
+ */
1522
+ postCount: number | null;
1523
+ /**
1524
+ * Posts the timeline read returned, up to 20.
1525
+ */
1526
+ timelinePosts: number;
1527
+ }
1528
+ }
1529
+ /**
1530
+ * Reads the countries where X withholds the account. `none` passes & `countries`
1531
+ * fails.
1532
+ */
1533
+ interface Withheld {
1534
+ /**
1535
+ * The countries X lists.
1536
+ */
1537
+ evidence: Withheld.Evidence | null;
1538
+ /**
1539
+ * `countries` means X lists at least 1 country.
1540
+ */
1541
+ reason: 'none' | 'countries' | 'suspended';
1542
+ verdict: ShadowbanVerdict;
1543
+ }
1544
+ namespace Withheld {
1545
+ /**
1546
+ * The countries X lists.
1547
+ */
1548
+ interface Evidence {
1549
+ /**
1550
+ * Country codes as X gives them.
1551
+ */
1552
+ countries: Array<string>;
1553
+ }
1554
+ }
1555
+ }
1556
+ }
1557
+ /**
1558
+ * Pass means X shows the account there, and fail means it doesn't. Unknown means
1559
+ * the check had nothing to test or X didn't answer.
1560
+ */
1561
+ export type ShadowbanVerdict = 'pass' | 'fail' | 'unknown';
903
1562
  /**
904
1563
  * Says whether a user broadcasts live video on X now. `broadcast` is their latest
905
1564
  * broadcast, live or ended, and null when X shows none.
@@ -1284,6 +1943,13 @@ export interface UserRemoveFollowerParams {
1284
1943
  * days.
1285
1944
  */
1286
1945
  'Idempotency-Key': string;
1946
+ /**
1947
+ * Header param: A long write answers 202 with a status link, then lands on X.
1948
+ * `wait=<seconds>` asks for the answer within that many seconds, up to 85. If
1949
+ * the write is still running then, the API answers 202 with Location. Poll
1950
+ * Location until `terminal` is true, and don't send the write again.
1951
+ */
1952
+ Prefer?: string;
1287
1953
  }
1288
1954
  export interface UserRetrieveAffiliatesParams {
1289
1955
  /**
@@ -1692,6 +2358,29 @@ export interface UserRetrieveBatchTweetsParams {
1692
2358
  */
1693
2359
  usernames?: string;
1694
2360
  }
2361
+ export interface UserRetrieveFollowerAuditParams {
2362
+ /**
2363
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
2364
+ * author.username. A list keeps the field in each item. Case & underscores do not
2365
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
2366
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
2367
+ * before any read. The price stays the same. SDK row types then hold only the
2368
+ * named fields.
2369
+ */
2370
+ fields?: string;
2371
+ /**
2372
+ * Most followers to read, newest first. Left out, a read takes up to 200 and a low
2373
+ * balance reads fewer. A very long read returns what it finished, & coverage shows
2374
+ * how many. Its aliases are pageSize, count, max_results, maxItems, max_items &
2375
+ * per_page.
2376
+ */
2377
+ limit?: number;
2378
+ /**
2379
+ * Fields to drop from each row, comma-separated. It takes the same names as
2380
+ * fields. With fields, it drops from the kept fields.
2381
+ */
2382
+ omit?: string;
2383
+ }
1695
2384
  export interface UserRetrieveFollowerIDsParams {
1696
2385
  /**
1697
2386
  * Pagination cursor for collection results. Also read as next_cursor, next_token,
@@ -2258,6 +2947,12 @@ export interface UserRetrieveInsightsParams {
2258
2947
  * named fields.
2259
2948
  */
2260
2949
  fields?: string;
2950
+ /**
2951
+ * Recent posts to read for the averages and rates. The read stops at this count,
2952
+ * at the end of the timeline or after about 40 seconds, and `sample.posts` says
2953
+ * how many it read.
2954
+ */
2955
+ limit?: number;
2261
2956
  /**
2262
2957
  * Fields to drop from each row, comma-separated. It takes the same names as
2263
2958
  * fields. With fields, it drops from the kept fields.
@@ -2603,6 +3298,15 @@ export interface UserRetrieveMediaParams {
2603
3298
  * Hashtags separated by spaces, commas, or lines.
2604
3299
  */
2605
3300
  hashtags?: string;
3301
+ /**
3302
+ * Keep only posts whose photos show this. Send charts, screenshots, product_photos,
3303
+ * memes or people, or describe it in words, such as a rocket. AI-powered analysis
3304
+ * checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
3305
+ * Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
3306
+ * price, instead of the read price, & a post the filter drops costs nothing.
3307
+ * imageFilter states the cutoff & counts.
3308
+ */
3309
+ imageShows?: string;
2606
3310
  /**
2607
3311
  * Only replies to this tweet ID.
2608
3312
  */
@@ -2726,6 +3430,14 @@ export interface UserRetrieveMediaParams {
2726
3430
  * @deprecated The API ignores this filter on this route. Remove it.
2727
3431
  */
2728
3432
  source?: string;
3433
+ /**
3434
+ * Keep only posts about this topic. AI-powered analysis asks "Is this post about
3435
+ * <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
3436
+ * photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
3437
+ * price, & a post the filter drops costs nothing. limit counts checked posts, & only
3438
+ * kept posts come back. topicFilter states the cutoff & counts.
3439
+ */
3440
+ topic?: string;
2729
3441
  /**
2730
3442
  * Filter replies sent to a username.
2731
3443
  */
@@ -2893,6 +3605,11 @@ export interface UserRetrieveMentionsParams {
2893
3605
  * fields. With fields, it drops from the kept fields.
2894
3606
  */
2895
3607
  omit?: string;
3608
+ /**
3609
+ * With replies=exclude, also leaves out replies to the author's own posts, so the
3610
+ * search skips every reply.
3611
+ */
3612
+ ownThreads?: 'exclude';
2896
3613
  /**
2897
3614
  * Items per page (1-100, default 20). Source, filters or credits can return fewer.
2898
3615
  * Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
@@ -3043,6 +3760,15 @@ export interface UserRetrieveRepliesParams {
3043
3760
  * Hashtags separated by spaces, commas, or lines.
3044
3761
  */
3045
3762
  hashtags?: string;
3763
+ /**
3764
+ * Keep only posts whose photos show this. Send charts, screenshots, product_photos,
3765
+ * memes or people, or describe it in words, such as a rocket. AI-powered analysis
3766
+ * checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
3767
+ * Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
3768
+ * price, instead of the read price, & a post the filter drops costs nothing.
3769
+ * imageFilter states the cutoff & counts.
3770
+ */
3771
+ imageShows?: string;
3046
3772
  /**
3047
3773
  * Include each reply's parent tweet as parentTweet on the reply. A reply whose
3048
3774
  * parent X does not return comes without it. Search-only filters such as keywords
@@ -3203,6 +3929,14 @@ export interface UserRetrieveRepliesParams {
3203
3929
  * nothing.
3204
3930
  */
3205
3931
  source?: string;
3932
+ /**
3933
+ * Keep only posts about this topic. AI-powered analysis asks "Is this post about
3934
+ * <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
3935
+ * photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
3936
+ * price, & a post the filter drops costs nothing. limit counts checked posts, & only
3937
+ * kept posts come back. topicFilter states the cutoff & counts.
3938
+ */
3939
+ topic?: string;
3206
3940
  /**
3207
3941
  * Filter replies sent to a username.
3208
3942
  */
@@ -3345,6 +4079,27 @@ export interface UserRetrieveSearchParams {
3345
4079
  */
3346
4080
  verifiedType?: string;
3347
4081
  }
4082
+ export interface UserRetrieveShadowbanParams {
4083
+ /**
4084
+ * Fields to keep in each row, comma-separated. Use dots for nested fields, such as
4085
+ * author.username. A list keeps the field in each item. Case & underscores do not
4086
+ * matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
4087
+ * always stay. An unknown name answers 400 unknown_field with the valid names,
4088
+ * before any read. The price stays the same. SDK row types then hold only the
4089
+ * named fields.
4090
+ */
4091
+ fields?: string;
4092
+ /**
4093
+ * Recent posts to read for the timeline, engagement & reply checks. The read stops
4094
+ * at this count, at the end of the timeline or after about 40 seconds.
4095
+ */
4096
+ limit?: number;
4097
+ /**
4098
+ * Fields to drop from each row, comma-separated. It takes the same names as
4099
+ * fields. With fields, it drops from the kept fields.
4100
+ */
4101
+ omit?: string;
4102
+ }
3348
4103
  export interface UserRetrieveSimilarParams {
3349
4104
  /**
3350
4105
  * Match any comma-separated or line-separated bio term, ignoring case.
@@ -3619,6 +4374,15 @@ export interface UserRetrieveTweetsParams {
3619
4374
  * Hashtags separated by spaces, commas, or lines.
3620
4375
  */
3621
4376
  hashtags?: string;
4377
+ /**
4378
+ * Keep only posts whose photos show this. Send charts, screenshots, product_photos,
4379
+ * memes or people, or describe it in words, such as a rocket. AI-powered analysis
4380
+ * checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
4381
+ * Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
4382
+ * price, instead of the read price, & a post the filter drops costs nothing.
4383
+ * imageFilter states the cutoff & counts.
4384
+ */
4385
+ imageShows?: string;
3622
4386
  /**
3623
4387
  * Include each reply's parent tweet as parentTweet on the reply. A reply whose
3624
4388
  * parent X does not return comes without it. Search-only filters such as keywords
@@ -3783,6 +4547,14 @@ export interface UserRetrieveTweetsParams {
3783
4547
  * nothing.
3784
4548
  */
3785
4549
  source?: string;
4550
+ /**
4551
+ * Keep only posts about this topic. AI-powered analysis asks "Is this post about
4552
+ * <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
4553
+ * photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
4554
+ * price, & a post the filter drops costs nothing. limit counts checked posts, & only
4555
+ * kept posts come back. topicFilter states the cutoff & counts.
4556
+ */
4557
+ topic?: string;
3786
4558
  /**
3787
4559
  * Filter replies sent to a username.
3788
4560
  */
@@ -3965,7 +4737,9 @@ export interface UserTranslateBioParams {
3965
4737
  omit?: string;
3966
4738
  }
3967
4739
  export declare namespace Users {
3968
- export { type UserRemoveFollowerResponse as UserRemoveFollowerResponse, type UserRetrieveBatchResponse as UserRetrieveBatchResponse, type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse, type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse, type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse, type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse, type UserRetrieveFollowingIDsResponse as UserRetrieveFollowingIDsResponse, type UserRetrieveInsightsResponse as UserRetrieveInsightsResponse, type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse, type UserRetrieveListsResponse as UserRetrieveListsResponse, type UserRetrieveLiveResponse as UserRetrieveLiveResponse, type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse, type UserTranslateBioResponse as UserTranslateBioResponse, type UserRetrieveParams as UserRetrieveParams, type UserRemoveFollowerParams as UserRemoveFollowerParams, type UserRetrieveAffiliatesParams as UserRetrieveAffiliatesParams, type UserRetrieveArticlesParams as UserRetrieveArticlesParams, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams, type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveFollowingIDsParams as UserRetrieveFollowingIDsParams, type UserRetrieveHighlightsParams as UserRetrieveHighlightsParams, type UserRetrieveInsightsParams as UserRetrieveInsightsParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveListMembershipsParams as UserRetrieveListMembershipsParams, type UserRetrieveListsParams as UserRetrieveListsParams, type UserRetrieveLiveParams as UserRetrieveLiveParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveRepliesParams as UserRetrieveRepliesParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveSimilarParams as UserRetrieveSimilarParams, type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, type UserTranslateBioParams as UserTranslateBioParams, };
4740
+ export { type UserRemoveFollowerResponse as UserRemoveFollowerResponse, type UserRetrieveBatchResponse as UserRetrieveBatchResponse, type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse, type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse, type FollowerAudit as FollowerAudit, type AuditedFollower as AuditedFollower, type FollowerClass as FollowerClass, type FollowerValueCount as FollowerValueCount, type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse, type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse, type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse, type UserRetrieveFollowingIDsResponse as UserRetrieveFollowingIDsResponse, type UserRetrieveInsightsResponse as UserRetrieveInsightsResponse, type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse, type UserRetrieveListsResponse as UserRetrieveListsResponse, type UserRetrieveLiveResponse as UserRetrieveLiveResponse, type ShadowbanReport as ShadowbanReport, type ShadowbanVerdict as ShadowbanVerdict, type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse, type UserTranslateBioResponse as UserTranslateBioResponse, type UserRetrieveParams as UserRetrieveParams, type UserRemoveFollowerParams as UserRemoveFollowerParams, type UserRetrieveAffiliatesParams as UserRetrieveAffiliatesParams, type UserRetrieveArticlesParams as UserRetrieveArticlesParams, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams, type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams, type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveFollowingIDsParams as UserRetrieveFollowingIDsParams, type UserRetrieveHighlightsParams as UserRetrieveHighlightsParams, type UserRetrieveInsightsParams as UserRetrieveInsightsParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveListMembershipsParams as UserRetrieveListMembershipsParams, type UserRetrieveListsParams as UserRetrieveListsParams, type UserRetrieveLiveParams as UserRetrieveLiveParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveRepliesParams as UserRetrieveRepliesParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveShadowbanParams as UserRetrieveShadowbanParams, type UserRetrieveSimilarParams as UserRetrieveSimilarParams, type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, type UserTranslateBioParams as UserTranslateBioParams, };
4741
+ export { Block as Block, type BlockCreateResponse as BlockCreateResponse, type BlockDeleteResponse as BlockDeleteResponse, type BlockCreateParams as BlockCreateParams, type BlockDeleteParams as BlockDeleteParams, };
3969
4742
  export { Follow as Follow, type FollowCreateResponse as FollowCreateResponse, type FollowDeleteAllResponse as FollowDeleteAllResponse, type FollowCreateParams as FollowCreateParams, type FollowDeleteAllParams as FollowDeleteAllParams, };
4743
+ export { Mute as Mute, type MuteCreateResponse as MuteCreateResponse, type MuteDeleteResponse as MuteDeleteResponse, type MuteCreateParams as MuteCreateParams, type MuteDeleteParams as MuteDeleteParams, };
3970
4744
  }
3971
4745
  //# sourceMappingURL=users.d.ts.map