x-twitter-scraper 0.20.0 → 0.22.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 (226) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +121 -122
  3. package/client.d.mts +9 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +2 -2
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -2
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/events.d.mts +8 -0
  13. package/resources/events.d.mts.map +1 -1
  14. package/resources/events.d.ts +8 -0
  15. package/resources/events.d.ts.map +1 -1
  16. package/resources/extractions.d.mts +105 -5
  17. package/resources/extractions.d.mts.map +1 -1
  18. package/resources/extractions.d.ts +105 -5
  19. package/resources/extractions.d.ts.map +1 -1
  20. package/resources/index.d.mts +1 -1
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +1 -1
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/monitors/index.d.mts +1 -1
  27. package/resources/monitors/index.d.mts.map +1 -1
  28. package/resources/monitors/index.d.ts +1 -1
  29. package/resources/monitors/index.d.ts.map +1 -1
  30. package/resources/monitors/index.js.map +1 -1
  31. package/resources/monitors/index.mjs.map +1 -1
  32. package/resources/monitors/monitors.d.mts +38 -1
  33. package/resources/monitors/monitors.d.mts.map +1 -1
  34. package/resources/monitors/monitors.d.ts +38 -1
  35. package/resources/monitors/monitors.d.ts.map +1 -1
  36. package/resources/monitors/monitors.js +18 -0
  37. package/resources/monitors/monitors.js.map +1 -1
  38. package/resources/monitors/monitors.mjs +18 -0
  39. package/resources/monitors/monitors.mjs.map +1 -1
  40. package/resources/monitors/posts.d.mts +27 -0
  41. package/resources/monitors/posts.d.mts.map +1 -1
  42. package/resources/monitors/posts.d.ts +27 -0
  43. package/resources/monitors/posts.d.ts.map +1 -1
  44. package/resources/shared.d.mts +192 -5
  45. package/resources/shared.d.mts.map +1 -1
  46. package/resources/shared.d.ts +192 -5
  47. package/resources/shared.d.ts.map +1 -1
  48. package/resources/x/account-connection-attempts.d.mts +4 -0
  49. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  50. package/resources/x/account-connection-attempts.d.ts +4 -0
  51. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  52. package/resources/x/account-connection-links.d.mts +159 -0
  53. package/resources/x/account-connection-links.d.mts.map +1 -0
  54. package/resources/x/account-connection-links.d.ts +159 -0
  55. package/resources/x/account-connection-links.d.ts.map +1 -0
  56. package/resources/x/account-connection-links.js +82 -0
  57. package/resources/x/account-connection-links.js.map +1 -0
  58. package/resources/x/account-connection-links.mjs +78 -0
  59. package/resources/x/account-connection-links.mjs.map +1 -0
  60. package/resources/x/accounts.d.mts +13 -9
  61. package/resources/x/accounts.d.mts.map +1 -1
  62. package/resources/x/accounts.d.ts +13 -9
  63. package/resources/x/accounts.d.ts.map +1 -1
  64. package/resources/x/analysis.d.mts +540 -36
  65. package/resources/x/analysis.d.mts.map +1 -1
  66. package/resources/x/analysis.d.ts +540 -36
  67. package/resources/x/analysis.d.ts.map +1 -1
  68. package/resources/x/bookmarks.d.mts +5 -0
  69. package/resources/x/bookmarks.d.mts.map +1 -1
  70. package/resources/x/bookmarks.d.ts +5 -0
  71. package/resources/x/bookmarks.d.ts.map +1 -1
  72. package/resources/x/communities/communities.d.mts +2 -2
  73. package/resources/x/communities/communities.d.mts.map +1 -1
  74. package/resources/x/communities/communities.d.ts +2 -2
  75. package/resources/x/communities/communities.d.ts.map +1 -1
  76. package/resources/x/communities/communities.js.map +1 -1
  77. package/resources/x/communities/communities.mjs.map +1 -1
  78. package/resources/x/communities/join.d.mts +2 -2
  79. package/resources/x/communities/join.d.mts.map +1 -1
  80. package/resources/x/communities/join.d.ts +2 -2
  81. package/resources/x/communities/join.d.ts.map +1 -1
  82. package/resources/x/dm.d.mts +2 -2
  83. package/resources/x/dm.d.mts.map +1 -1
  84. package/resources/x/dm.d.ts +2 -2
  85. package/resources/x/dm.d.ts.map +1 -1
  86. package/resources/x/index.d.mts +3 -2
  87. package/resources/x/index.d.mts.map +1 -1
  88. package/resources/x/index.d.ts +3 -2
  89. package/resources/x/index.d.ts.map +1 -1
  90. package/resources/x/index.js +3 -1
  91. package/resources/x/index.js.map +1 -1
  92. package/resources/x/index.mjs +1 -0
  93. package/resources/x/index.mjs.map +1 -1
  94. package/resources/x/media.d.mts +48 -1
  95. package/resources/x/media.d.mts.map +1 -1
  96. package/resources/x/media.d.ts +48 -1
  97. package/resources/x/media.d.ts.map +1 -1
  98. package/resources/x/media.js.map +1 -1
  99. package/resources/x/media.mjs.map +1 -1
  100. package/resources/x/profile.d.mts +3 -3
  101. package/resources/x/profile.d.mts.map +1 -1
  102. package/resources/x/profile.d.ts +3 -3
  103. package/resources/x/profile.d.ts.map +1 -1
  104. package/resources/x/sports.d.mts +19 -1
  105. package/resources/x/sports.d.mts.map +1 -1
  106. package/resources/x/sports.d.ts +19 -1
  107. package/resources/x/sports.d.ts.map +1 -1
  108. package/resources/x/tweets/bookmark.d.mts +84 -0
  109. package/resources/x/tweets/bookmark.d.mts.map +1 -0
  110. package/resources/x/tweets/bookmark.d.ts +84 -0
  111. package/resources/x/tweets/bookmark.d.ts.map +1 -0
  112. package/resources/x/tweets/bookmark.js +55 -0
  113. package/resources/x/tweets/bookmark.js.map +1 -0
  114. package/resources/x/tweets/bookmark.mjs +51 -0
  115. package/resources/x/tweets/bookmark.mjs.map +1 -0
  116. package/resources/x/tweets/index.d.mts +1 -0
  117. package/resources/x/tweets/index.d.mts.map +1 -1
  118. package/resources/x/tweets/index.d.ts +1 -0
  119. package/resources/x/tweets/index.d.ts.map +1 -1
  120. package/resources/x/tweets/index.js +3 -1
  121. package/resources/x/tweets/index.js.map +1 -1
  122. package/resources/x/tweets/index.mjs +1 -0
  123. package/resources/x/tweets/index.mjs.map +1 -1
  124. package/resources/x/tweets/like.d.mts +2 -2
  125. package/resources/x/tweets/like.d.mts.map +1 -1
  126. package/resources/x/tweets/like.d.ts +2 -2
  127. package/resources/x/tweets/like.d.ts.map +1 -1
  128. package/resources/x/tweets/retweet.d.mts +2 -2
  129. package/resources/x/tweets/retweet.d.mts.map +1 -1
  130. package/resources/x/tweets/retweet.d.ts +2 -2
  131. package/resources/x/tweets/retweet.d.ts.map +1 -1
  132. package/resources/x/tweets/tweets.d.mts +45 -13
  133. package/resources/x/tweets/tweets.d.mts.map +1 -1
  134. package/resources/x/tweets/tweets.d.ts +45 -13
  135. package/resources/x/tweets/tweets.d.ts.map +1 -1
  136. package/resources/x/tweets/tweets.js +4 -0
  137. package/resources/x/tweets/tweets.js.map +1 -1
  138. package/resources/x/tweets/tweets.mjs +4 -0
  139. package/resources/x/tweets/tweets.mjs.map +1 -1
  140. package/resources/x/users/block.d.mts +84 -0
  141. package/resources/x/users/block.d.mts.map +1 -0
  142. package/resources/x/users/block.d.ts +84 -0
  143. package/resources/x/users/block.d.ts.map +1 -0
  144. package/resources/x/users/block.js +55 -0
  145. package/resources/x/users/block.js.map +1 -0
  146. package/resources/x/users/block.mjs +51 -0
  147. package/resources/x/users/block.mjs.map +1 -0
  148. package/resources/x/users/follow.d.mts +2 -2
  149. package/resources/x/users/follow.d.mts.map +1 -1
  150. package/resources/x/users/follow.d.ts +2 -2
  151. package/resources/x/users/follow.d.ts.map +1 -1
  152. package/resources/x/users/index.d.mts +3 -1
  153. package/resources/x/users/index.d.mts.map +1 -1
  154. package/resources/x/users/index.d.ts +3 -1
  155. package/resources/x/users/index.d.ts.map +1 -1
  156. package/resources/x/users/index.js +5 -1
  157. package/resources/x/users/index.js.map +1 -1
  158. package/resources/x/users/index.mjs +2 -0
  159. package/resources/x/users/index.mjs.map +1 -1
  160. package/resources/x/users/mute.d.mts +84 -0
  161. package/resources/x/users/mute.d.mts.map +1 -0
  162. package/resources/x/users/mute.d.ts +84 -0
  163. package/resources/x/users/mute.d.ts.map +1 -0
  164. package/resources/x/users/mute.js +55 -0
  165. package/resources/x/users/mute.js.map +1 -0
  166. package/resources/x/users/mute.mjs +51 -0
  167. package/resources/x/users/mute.mjs.map +1 -0
  168. package/resources/x/users/users.d.mts +359 -9
  169. package/resources/x/users/users.d.mts.map +1 -1
  170. package/resources/x/users/users.d.ts +359 -9
  171. package/resources/x/users/users.d.ts.map +1 -1
  172. package/resources/x/users/users.js +27 -1
  173. package/resources/x/users/users.js.map +1 -1
  174. package/resources/x/users/users.mjs +27 -1
  175. package/resources/x/users/users.mjs.map +1 -1
  176. package/resources/x/write-actions.d.mts +1 -1
  177. package/resources/x/write-actions.d.mts.map +1 -1
  178. package/resources/x/write-actions.d.ts +1 -1
  179. package/resources/x/write-actions.d.ts.map +1 -1
  180. package/resources/x/x.d.mts +17 -4
  181. package/resources/x/x.d.mts.map +1 -1
  182. package/resources/x/x.d.ts +17 -4
  183. package/resources/x/x.d.ts.map +1 -1
  184. package/resources/x/x.js +4 -0
  185. package/resources/x/x.js.map +1 -1
  186. package/resources/x/x.mjs +4 -0
  187. package/resources/x/x.mjs.map +1 -1
  188. package/src/client.ts +12 -2
  189. package/src/core/README.md +4 -0
  190. package/src/internal/README.md +6 -1
  191. package/src/resources/events.ts +10 -0
  192. package/src/resources/extractions.ts +125 -0
  193. package/src/resources/index.ts +2 -0
  194. package/src/resources/monitors/index.ts +2 -0
  195. package/src/resources/monitors/monitors.ts +49 -0
  196. package/src/resources/monitors/posts.ts +32 -0
  197. package/src/resources/shared.ts +223 -4
  198. package/src/resources/x/account-connection-attempts.ts +5 -0
  199. package/src/resources/x/account-connection-links.ts +215 -0
  200. package/src/resources/x/accounts.ts +15 -14
  201. package/src/resources/x/analysis.ts +618 -36
  202. package/src/resources/x/bookmarks.ts +6 -0
  203. package/src/resources/x/communities/communities.ts +12 -0
  204. package/src/resources/x/communities/join.ts +12 -0
  205. package/src/resources/x/dm.ts +12 -0
  206. package/src/resources/x/index.ts +16 -0
  207. package/src/resources/x/media.ts +64 -0
  208. package/src/resources/x/profile.ts +18 -0
  209. package/src/resources/x/sports.ts +22 -0
  210. package/src/resources/x/tweets/bookmark.ts +127 -0
  211. package/src/resources/x/tweets/index.ts +7 -0
  212. package/src/resources/x/tweets/like.ts +12 -0
  213. package/src/resources/x/tweets/retweet.ts +12 -0
  214. package/src/resources/x/tweets/tweets.ts +74 -10
  215. package/src/resources/x/users/block.ts +119 -0
  216. package/src/resources/x/users/follow.ts +12 -0
  217. package/src/resources/x/users/index.ts +20 -0
  218. package/src/resources/x/users/mute.ts +119 -0
  219. package/src/resources/x/users/users.ts +470 -7
  220. package/src/resources/x/write-actions.ts +6 -0
  221. package/src/resources/x/x.ts +50 -0
  222. package/src/version.ts +1 -1
  223. package/version.d.mts +1 -1
  224. package/version.d.ts +1 -1
  225. package/version.js +1 -1
  226. 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
  *
@@ -293,7 +315,7 @@ export declare class Users extends APIResource {
293
315
  * );
294
316
  * ```
295
317
  */
296
- 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>;
297
319
  /**
298
320
  * Returns verified public profiles following the selected user.
299
321
  *
@@ -329,7 +351,7 @@ export interface UserRemoveFollowerResponse {
329
351
  * Connected account selected for the write.
330
352
  */
331
353
  account: UserRemoveFollowerResponse.Account | null;
332
- 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';
333
355
  /**
334
356
  * plannedCredits is the approved maximum. chargedCredits comes from the settled
335
357
  * credit ledger. Pending or failed writes are not charged.
@@ -514,6 +536,11 @@ export interface UserRetrieveBatchResponse {
514
536
  * Empty because batch lookups never paginate.
515
537
  */
516
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>;
517
544
  /**
518
545
  * Number of requested IDs included in the lookup.
519
546
  */
@@ -527,7 +554,12 @@ export interface UserRetrieveBatchResponse {
527
554
  */
528
555
  returned_count: number;
529
556
  /**
530
- * 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.
531
563
  */
532
564
  unavailable_ids: Array<string>;
533
565
  /**
@@ -555,10 +587,25 @@ export interface UserRetrieveBatchTweetsResponse {
555
587
  * Always empty. The answer holds every post in 1 page.
556
588
  */
557
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>;
558
604
  tweets: Array<Shared.SearchTweet>;
559
605
  /**
560
606
  * Users with no account on X or with protected posts, in first-seen request order.
561
- * They cost nothing.
607
+ * They cost nothing. not_found_ids, suspended_ids and protected_ids split them by
608
+ * X's answer.
562
609
  */
563
610
  unavailable_ids: Array<string>;
564
611
  /**
@@ -567,6 +614,212 @@ export interface UserRetrieveBatchTweetsResponse {
567
614
  */
568
615
  unprocessed_ids: Array<string>;
569
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
+ }
570
823
  export type UserRetrieveFollowerIDsResponse = Shared.PaginatedUserIds;
571
824
  /**
572
825
  * A standard or terminal maximum-coverage relationship page.
@@ -868,9 +1121,14 @@ export declare namespace UserRetrieveInsightsResponse {
868
1121
  */
869
1122
  oldestAt: string | null;
870
1123
  /**
871
- * Posts read.
1124
+ * Posts the averages used. Reposts and the pinned post stay out, so this can be
1125
+ * lower than `read`.
872
1126
  */
873
1127
  posts: number;
1128
+ /**
1129
+ * Posts read, reposts and the pinned post included.
1130
+ */
1131
+ read: number;
874
1132
  }
875
1133
  }
876
1134
  }
@@ -2100,6 +2358,29 @@ export interface UserRetrieveBatchTweetsParams {
2100
2358
  */
2101
2359
  usernames?: string;
2102
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
+ }
2103
2384
  export interface UserRetrieveFollowerIDsParams {
2104
2385
  /**
2105
2386
  * Pagination cursor for collection results. Also read as next_cursor, next_token,
@@ -2666,6 +2947,12 @@ export interface UserRetrieveInsightsParams {
2666
2947
  * named fields.
2667
2948
  */
2668
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;
2669
2956
  /**
2670
2957
  * Fields to drop from each row, comma-separated. It takes the same names as
2671
2958
  * fields. With fields, it drops from the kept fields.
@@ -3011,6 +3298,15 @@ export interface UserRetrieveMediaParams {
3011
3298
  * Hashtags separated by spaces, commas, or lines.
3012
3299
  */
3013
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;
3014
3310
  /**
3015
3311
  * Only replies to this tweet ID.
3016
3312
  */
@@ -3134,6 +3430,14 @@ export interface UserRetrieveMediaParams {
3134
3430
  * @deprecated The API ignores this filter on this route. Remove it.
3135
3431
  */
3136
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;
3137
3441
  /**
3138
3442
  * Filter replies sent to a username.
3139
3443
  */
@@ -3301,6 +3605,11 @@ export interface UserRetrieveMentionsParams {
3301
3605
  * fields. With fields, it drops from the kept fields.
3302
3606
  */
3303
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';
3304
3613
  /**
3305
3614
  * Items per page (1-100, default 20). Source, filters or credits can return fewer.
3306
3615
  * Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
@@ -3451,6 +3760,15 @@ export interface UserRetrieveRepliesParams {
3451
3760
  * Hashtags separated by spaces, commas, or lines.
3452
3761
  */
3453
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;
3454
3772
  /**
3455
3773
  * Include each reply's parent tweet as parentTweet on the reply. A reply whose
3456
3774
  * parent X does not return comes without it. Search-only filters such as keywords
@@ -3611,6 +3929,14 @@ export interface UserRetrieveRepliesParams {
3611
3929
  * nothing.
3612
3930
  */
3613
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;
3614
3940
  /**
3615
3941
  * Filter replies sent to a username.
3616
3942
  */
@@ -3763,6 +4089,11 @@ export interface UserRetrieveShadowbanParams {
3763
4089
  * named fields.
3764
4090
  */
3765
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;
3766
4097
  /**
3767
4098
  * Fields to drop from each row, comma-separated. It takes the same names as
3768
4099
  * fields. With fields, it drops from the kept fields.
@@ -4043,6 +4374,15 @@ export interface UserRetrieveTweetsParams {
4043
4374
  * Hashtags separated by spaces, commas, or lines.
4044
4375
  */
4045
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;
4046
4386
  /**
4047
4387
  * Include each reply's parent tweet as parentTweet on the reply. A reply whose
4048
4388
  * parent X does not return comes without it. Search-only filters such as keywords
@@ -4207,6 +4547,14 @@ export interface UserRetrieveTweetsParams {
4207
4547
  * nothing.
4208
4548
  */
4209
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;
4210
4558
  /**
4211
4559
  * Filter replies sent to a username.
4212
4560
  */
@@ -4389,7 +4737,9 @@ export interface UserTranslateBioParams {
4389
4737
  omit?: string;
4390
4738
  }
4391
4739
  export declare namespace Users {
4392
- 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 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 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, };
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, };
4393
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, };
4394
4744
  }
4395
4745
  //# sourceMappingURL=users.d.ts.map