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.
- package/CHANGELOG.md +79 -0
- package/README.md +120 -120
- package/client.d.mts +7 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/activity.d.mts +18 -2
- package/resources/activity.d.mts.map +1 -1
- package/resources/activity.d.ts +18 -2
- package/resources/activity.d.ts.map +1 -1
- package/resources/credits.d.mts +5 -0
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +5 -0
- package/resources/credits.d.ts.map +1 -1
- package/resources/extractions.d.mts +153 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +153 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +1 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +1 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +38 -1
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +38 -1
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +18 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +18 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +27 -0
- package/resources/monitors/posts.d.mts.map +1 -1
- package/resources/monitors/posts.d.ts +27 -0
- package/resources/monitors/posts.d.ts.map +1 -1
- package/resources/radar.d.mts +9 -0
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +9 -0
- package/resources/radar.d.ts.map +1 -1
- package/resources/shared.d.mts +175 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +4 -0
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +4 -0
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-links.d.mts +159 -0
- package/resources/x/account-connection-links.d.mts.map +1 -0
- package/resources/x/account-connection-links.d.ts +159 -0
- package/resources/x/account-connection-links.d.ts.map +1 -0
- package/resources/x/account-connection-links.js +82 -0
- package/resources/x/account-connection-links.js.map +1 -0
- package/resources/x/account-connection-links.mjs +78 -0
- package/resources/x/account-connection-links.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -9
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -9
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/analysis.d.mts +540 -36
- package/resources/x/analysis.d.mts.map +1 -1
- package/resources/x/analysis.d.ts +540 -36
- package/resources/x/analysis.d.ts.map +1 -1
- package/resources/x/bookmarks.d.mts +5 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +5 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +19 -2
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +19 -2
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +7 -4
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +7 -4
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +4 -4
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +4 -4
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/dm.d.mts +16 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +16 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +4 -4
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +4 -4
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/index.d.mts +2 -1
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -1
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/media.d.mts +55 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +55 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -2
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +2 -2
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +24 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +24 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +6 -6
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +6 -6
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/bookmark.d.mts +84 -0
- package/resources/x/tweets/bookmark.d.mts.map +1 -0
- package/resources/x/tweets/bookmark.d.ts +84 -0
- package/resources/x/tweets/bookmark.d.ts.map +1 -0
- package/resources/x/tweets/bookmark.js +55 -0
- package/resources/x/tweets/bookmark.js.map +1 -0
- package/resources/x/tweets/bookmark.mjs +51 -0
- package/resources/x/tweets/bookmark.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -0
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -0
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +3 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +1 -0
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +16 -2
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +16 -2
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +4 -4
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +4 -4
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +16 -2
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +16 -2
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +4 -4
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +4 -4
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +68 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +68 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +8 -4
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +8 -4
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/block.d.mts +84 -0
- package/resources/x/users/block.d.mts.map +1 -0
- package/resources/x/users/block.d.ts +84 -0
- package/resources/x/users/block.d.ts.map +1 -0
- package/resources/x/users/block.js +55 -0
- package/resources/x/users/block.js.map +1 -0
- package/resources/x/users/block.mjs +51 -0
- package/resources/x/users/block.mjs.map +1 -0
- package/resources/x/users/follow.d.mts +16 -2
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +16 -2
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +4 -4
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +4 -4
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +3 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +3 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js +5 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +2 -0
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/mute.d.mts +84 -0
- package/resources/x/users/mute.d.mts.map +1 -0
- package/resources/x/users/mute.d.ts +84 -0
- package/resources/x/users/mute.d.ts.map +1 -0
- package/resources/x/users/mute.js +55 -0
- package/resources/x/users/mute.js.map +1 -0
- package/resources/x/users/mute.mjs +51 -0
- package/resources/x/users/mute.mjs.map +1 -0
- package/resources/x/users/users.d.mts +783 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +783 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +44 -3
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +44 -3
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +1 -1
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +1 -1
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/x.d.mts +15 -2
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +15 -2
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +9 -0
- package/src/core/README.md +4 -0
- package/src/internal/README.md +6 -1
- package/src/resources/activity.ts +41 -2
- package/src/resources/credits.ts +6 -0
- package/src/resources/extractions.ts +183 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/monitors.ts +49 -0
- package/src/resources/monitors/posts.ts +32 -0
- package/src/resources/radar.ts +10 -0
- package/src/resources/shared.ts +213 -4
- package/src/resources/x/account-connection-attempts.ts +5 -0
- package/src/resources/x/account-connection-links.ts +215 -0
- package/src/resources/x/accounts.ts +15 -14
- package/src/resources/x/analysis.ts +618 -36
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +35 -4
- package/src/resources/x/communities/join.ts +32 -4
- package/src/resources/x/dm.ts +32 -4
- package/src/resources/x/index.ts +18 -0
- package/src/resources/x/media.ts +74 -2
- package/src/resources/x/profile.ts +48 -6
- package/src/resources/x/tweets/bookmark.ts +127 -0
- package/src/resources/x/tweets/index.ts +7 -0
- package/src/resources/x/tweets/like.ts +32 -4
- package/src/resources/x/tweets/retweet.ts +32 -4
- package/src/resources/x/tweets/tweets.ts +104 -14
- package/src/resources/x/users/block.ts +119 -0
- package/src/resources/x/users/follow.ts +32 -4
- package/src/resources/x/users/index.ts +23 -0
- package/src/resources/x/users/mute.ts +119 -0
- package/src/resources/x/users/users.ts +1063 -89
- package/src/resources/x/write-actions.ts +6 -0
- package/src/resources/x/x.ts +54 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import { APIResource } from '../../../core/resource';
|
|
6
6
|
import * as Shared from '../../shared';
|
|
7
|
+
import * as BlockAPI from './block';
|
|
8
|
+
import {
|
|
9
|
+
Block,
|
|
10
|
+
BlockCreateParams,
|
|
11
|
+
BlockCreateResponse,
|
|
12
|
+
BlockDeleteParams,
|
|
13
|
+
BlockDeleteResponse,
|
|
14
|
+
} from './block';
|
|
7
15
|
import * as FollowAPI from './follow';
|
|
8
16
|
import {
|
|
9
17
|
Follow,
|
|
@@ -12,13 +20,17 @@ import {
|
|
|
12
20
|
FollowDeleteAllParams,
|
|
13
21
|
FollowDeleteAllResponse,
|
|
14
22
|
} from './follow';
|
|
23
|
+
import * as MuteAPI from './mute';
|
|
24
|
+
import { Mute, MuteCreateParams, MuteCreateResponse, MuteDeleteParams, MuteDeleteResponse } from './mute';
|
|
15
25
|
import { APIPromise } from '../../../core/api-promise';
|
|
16
26
|
import { buildHeaders } from '../../../internal/headers';
|
|
17
27
|
import { RequestOptions } from '../../../internal/request-options';
|
|
18
28
|
import { path } from '../../../internal/utils/path';
|
|
19
29
|
|
|
20
30
|
export class Users extends APIResource {
|
|
31
|
+
block: BlockAPI.Block = new BlockAPI.Block(this._client);
|
|
21
32
|
follow: FollowAPI.Follow = new FollowAPI.Follow(this._client);
|
|
33
|
+
mute: MuteAPI.Mute = new MuteAPI.Mute(this._client);
|
|
22
34
|
|
|
23
35
|
/**
|
|
24
36
|
* Returns one public profile with counts and verification details.
|
|
@@ -52,11 +64,11 @@ export class Users extends APIResource {
|
|
|
52
64
|
params: UserRemoveFollowerParams,
|
|
53
65
|
options?: RequestOptions,
|
|
54
66
|
): APIPromise<UserRemoveFollowerResponse> {
|
|
55
|
-
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
67
|
+
const { 'Idempotency-Key': idempotencyKey, Prefer: prefer, ...body } = params;
|
|
56
68
|
return this._client.post(path`/x/users/${id}/remove-follower`, {
|
|
57
69
|
body,
|
|
58
70
|
...options,
|
|
59
|
-
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
71
|
+
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey, Prefer: prefer }, options?.headers]),
|
|
60
72
|
});
|
|
61
73
|
}
|
|
62
74
|
|
|
@@ -130,6 +142,29 @@ export class Users extends APIResource {
|
|
|
130
142
|
return this._client.get('/x/users/batch/tweets', { query, ...options });
|
|
131
143
|
}
|
|
132
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Reads the newest followers of a public account & returns a follower audit. It
|
|
147
|
+
* gives each follower 1 class with its score & signals, then adds coverage, a
|
|
148
|
+
* quality score, signal counts, arrival bands, join cohorts, countries, top
|
|
149
|
+
* followers & the account's engagement. Each follower read costs 1 credit, and the
|
|
150
|
+
* engagement adds 1 credit. Signals come from public profiles, so a real person
|
|
151
|
+
* can match. Older followers may differ from the newest ones.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* const response = await client.x.users.retrieveFollowerAudit(
|
|
156
|
+
* 'id',
|
|
157
|
+
* );
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
retrieveFollowerAudit(
|
|
161
|
+
id: string,
|
|
162
|
+
query: UserRetrieveFollowerAuditParams | null | undefined = {},
|
|
163
|
+
options?: RequestOptions,
|
|
164
|
+
): APIPromise<UserRetrieveFollowerAuditResponse> {
|
|
165
|
+
return this._client.get(path`/x/users/${id}/follower-audit`, { query, ...options });
|
|
166
|
+
}
|
|
167
|
+
|
|
133
168
|
/**
|
|
134
169
|
* Returns the user IDs of the selected user's followers, newest first, up to 5,000
|
|
135
170
|
* a page. Use it when you need IDs only. Each ID costs 1 credit.
|
|
@@ -242,7 +277,7 @@ export class Users extends APIResource {
|
|
|
242
277
|
|
|
243
278
|
/**
|
|
244
279
|
* Returns engagement insights for one profile: engagement rate, averages per post
|
|
245
|
-
* and posting rate, from its counts and its
|
|
280
|
+
* and posting rate, from its counts and its most recent posts. It reads 20 posts unless limit names another number. Reposts and the pinned
|
|
246
281
|
* post stay out of the averages. Each report costs 1 credit, whatever it reads.
|
|
247
282
|
*
|
|
248
283
|
* @example
|
|
@@ -347,7 +382,7 @@ export class Users extends APIResource {
|
|
|
347
382
|
id: string,
|
|
348
383
|
query: UserRetrieveMediaParams | null | undefined = {},
|
|
349
384
|
options?: RequestOptions,
|
|
350
|
-
): APIPromise<Shared.
|
|
385
|
+
): APIPromise<Shared.FilterablePaginatedTweets> {
|
|
351
386
|
return this._client.get(path`/x/users/${id}/media`, { query, ...options });
|
|
352
387
|
}
|
|
353
388
|
|
|
@@ -383,7 +418,7 @@ export class Users extends APIResource {
|
|
|
383
418
|
id: string,
|
|
384
419
|
query: UserRetrieveRepliesParams | null | undefined = {},
|
|
385
420
|
options?: RequestOptions,
|
|
386
|
-
): APIPromise<Shared.
|
|
421
|
+
): APIPromise<Shared.FilterablePaginatedTweets> {
|
|
387
422
|
return this._client.get(path`/x/users/${id}/replies`, { query, ...options });
|
|
388
423
|
}
|
|
389
424
|
|
|
@@ -404,6 +439,26 @@ export class Users extends APIResource {
|
|
|
404
439
|
return this._client.get('/x/users/search', { query, ...options });
|
|
405
440
|
}
|
|
406
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Checks 1 X account for a search ban, a search suggestion ban & reply
|
|
444
|
+
* deboosting. It also says if the account is active, protected or suspended. Each
|
|
445
|
+
* profile, post, suggestion & reply in the answer costs 1 credit.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* ```ts
|
|
449
|
+
* const shadowbanReport = await client.x.users.retrieveShadowban(
|
|
450
|
+
* 'id',
|
|
451
|
+
* );
|
|
452
|
+
* ```
|
|
453
|
+
*/
|
|
454
|
+
retrieveShadowban(
|
|
455
|
+
id: string,
|
|
456
|
+
query: UserRetrieveShadowbanParams | null | undefined = {},
|
|
457
|
+
options?: RequestOptions,
|
|
458
|
+
): APIPromise<ShadowbanReport> {
|
|
459
|
+
return this._client.get(path`/x/users/${id}/shadowban`, { query, ...options });
|
|
460
|
+
}
|
|
461
|
+
|
|
407
462
|
/**
|
|
408
463
|
* Returns the public accounts X lists as similar to the selected user, in X's
|
|
409
464
|
* order. X can list slightly different accounts on each call. Each account costs 1
|
|
@@ -461,7 +516,7 @@ export class Users extends APIResource {
|
|
|
461
516
|
id: string,
|
|
462
517
|
query: UserRetrieveTweetsParams | null | undefined = {},
|
|
463
518
|
options?: RequestOptions,
|
|
464
|
-
): APIPromise<Shared.
|
|
519
|
+
): APIPromise<Shared.FilterablePaginatedTweets> {
|
|
465
520
|
return this._client.get(path`/x/users/${id}/tweets`, { query, ...options });
|
|
466
521
|
}
|
|
467
522
|
|
|
@@ -523,8 +578,14 @@ export interface UserRemoveFollowerResponse {
|
|
|
523
578
|
| 'unlike'
|
|
524
579
|
| 'retweet'
|
|
525
580
|
| 'unretweet'
|
|
581
|
+
| 'bookmark'
|
|
582
|
+
| 'unbookmark'
|
|
526
583
|
| 'follow'
|
|
527
584
|
| 'unfollow'
|
|
585
|
+
| 'block'
|
|
586
|
+
| 'unblock'
|
|
587
|
+
| 'mute'
|
|
588
|
+
| 'unmute'
|
|
528
589
|
| 'remove_follower'
|
|
529
590
|
| 'send_dm'
|
|
530
591
|
| 'delete_dm'
|
|
@@ -775,6 +836,12 @@ export interface UserRetrieveBatchResponse {
|
|
|
775
836
|
*/
|
|
776
837
|
next_cursor: string;
|
|
777
838
|
|
|
839
|
+
/**
|
|
840
|
+
* The unavailable IDs no account holds, as X answers for an account that was
|
|
841
|
+
* deactivated or deleted, in first-seen request order.
|
|
842
|
+
*/
|
|
843
|
+
not_found_ids: Array<string>;
|
|
844
|
+
|
|
778
845
|
/**
|
|
779
846
|
* Number of requested IDs included in the lookup.
|
|
780
847
|
*/
|
|
@@ -791,7 +858,13 @@ export interface UserRetrieveBatchResponse {
|
|
|
791
858
|
returned_count: number;
|
|
792
859
|
|
|
793
860
|
/**
|
|
794
|
-
*
|
|
861
|
+
* The unavailable IDs of accounts X suspended, in first-seen request order.
|
|
862
|
+
*/
|
|
863
|
+
suspended_ids: Array<string>;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Processed IDs with no profile on X, in first-seen request order. not_found_ids
|
|
867
|
+
* and suspended_ids split them by X's answer.
|
|
795
868
|
*/
|
|
796
869
|
unavailable_ids: Array<string>;
|
|
797
870
|
|
|
@@ -825,11 +898,29 @@ export interface UserRetrieveBatchTweetsResponse {
|
|
|
825
898
|
*/
|
|
826
899
|
next_cursor: string;
|
|
827
900
|
|
|
901
|
+
/**
|
|
902
|
+
* The unavailable users no account holds, as X answers for an account that was
|
|
903
|
+
* deactivated or deleted, in first-seen request order.
|
|
904
|
+
*/
|
|
905
|
+
not_found_ids: Array<string>;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* The unavailable users whose posts only approved followers see, in first-seen
|
|
909
|
+
* request order.
|
|
910
|
+
*/
|
|
911
|
+
protected_ids: Array<string>;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* The unavailable users X suspended, in first-seen request order.
|
|
915
|
+
*/
|
|
916
|
+
suspended_ids: Array<string>;
|
|
917
|
+
|
|
828
918
|
tweets: Array<Shared.SearchTweet>;
|
|
829
919
|
|
|
830
920
|
/**
|
|
831
921
|
* Users with no account on X or with protected posts, in first-seen request order.
|
|
832
|
-
* They cost nothing.
|
|
922
|
+
* They cost nothing. not_found_ids, suspended_ids and protected_ids split them by
|
|
923
|
+
* X's answer.
|
|
833
924
|
*/
|
|
834
925
|
unavailable_ids: Array<string>;
|
|
835
926
|
|
|
@@ -840,6 +931,266 @@ export interface UserRetrieveBatchTweetsResponse {
|
|
|
840
931
|
unprocessed_ids: Array<string>;
|
|
841
932
|
}
|
|
842
933
|
|
|
934
|
+
export interface UserRetrieveFollowerAuditResponse {
|
|
935
|
+
/**
|
|
936
|
+
* Report on the followers read. Classes rest on public profile signals, so they
|
|
937
|
+
* say what a profile looks like, never who runs it.
|
|
938
|
+
*/
|
|
939
|
+
audit: FollowerAudit;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Report on the followers read. Classes rest on public profile signals, so they say
|
|
944
|
+
* what a profile looks like, never who runs it.
|
|
945
|
+
*/
|
|
946
|
+
export interface FollowerAudit {
|
|
947
|
+
/**
|
|
948
|
+
* The audited account's engagement insights.
|
|
949
|
+
*/
|
|
950
|
+
account: UserRetrieveInsightsResponse.Insights;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Likely fake share by position in the newest-first list.
|
|
954
|
+
*/
|
|
955
|
+
arrivalBands: Array<FollowerAudit.ArrivalBand>;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* How many followers fall in each class.
|
|
959
|
+
*/
|
|
960
|
+
classes: Array<FollowerAudit.Class>;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Followers who joined X in the same UTC week.
|
|
964
|
+
*/
|
|
965
|
+
cohorts: Array<FollowerAudit.Cohort>;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* How many of the account's followers the audit read.
|
|
969
|
+
*/
|
|
970
|
+
coverage: FollowerAudit.Coverage;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Each follower the audit read, newest first.
|
|
974
|
+
*/
|
|
975
|
+
followers: Array<AuditedFollower>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* How many followers share each profile language.
|
|
979
|
+
*/
|
|
980
|
+
languages: Array<FollowerValueCount>;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* How many followers share each profile place.
|
|
984
|
+
*/
|
|
985
|
+
places: Array<FollowerValueCount>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* The audit's grade & score for the followers read.
|
|
989
|
+
*/
|
|
990
|
+
quality: FollowerAudit.Quality;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* How many followers match each signal & the points it adds.
|
|
994
|
+
*/
|
|
995
|
+
signals: Array<FollowerAudit.Signal>;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* The followers the audit ranks highest.
|
|
999
|
+
*/
|
|
1000
|
+
topFollowers: Array<AuditedFollower>;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* How many followers are verified.
|
|
1004
|
+
*/
|
|
1005
|
+
verified: FollowerAudit.Verified;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export namespace FollowerAudit {
|
|
1009
|
+
export interface ArrivalBand {
|
|
1010
|
+
/**
|
|
1011
|
+
* Whole number from 0.
|
|
1012
|
+
*/
|
|
1013
|
+
count: number;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Whole number from 0.
|
|
1017
|
+
*/
|
|
1018
|
+
from: number;
|
|
1019
|
+
|
|
1020
|
+
percent: number;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Whole number from 0.
|
|
1024
|
+
*/
|
|
1025
|
+
read: number;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Whole number from 0.
|
|
1029
|
+
*/
|
|
1030
|
+
to: number;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export interface Class {
|
|
1034
|
+
/**
|
|
1035
|
+
* What 1 follower looks like from its public profile.
|
|
1036
|
+
*/
|
|
1037
|
+
class: FollowerClass;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Whole number from 0.
|
|
1041
|
+
*/
|
|
1042
|
+
count: number;
|
|
1043
|
+
|
|
1044
|
+
percent: number;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export interface Cohort {
|
|
1048
|
+
/**
|
|
1049
|
+
* Whole number from 0.
|
|
1050
|
+
*/
|
|
1051
|
+
count: number;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Followers in the cohort the audit classes as likelyFake. Whole number from 0.
|
|
1055
|
+
*/
|
|
1056
|
+
likelyFake: number;
|
|
1057
|
+
|
|
1058
|
+
percent: number;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Start of the UTC week, in milliseconds since the Unix epoch.
|
|
1062
|
+
*/
|
|
1063
|
+
weekStartMs: number;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export interface Coverage {
|
|
1067
|
+
percent: number;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Whole number from 0.
|
|
1071
|
+
*/
|
|
1072
|
+
read: number;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Whole number from 0.
|
|
1076
|
+
*/
|
|
1077
|
+
total: number;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
export interface Quality {
|
|
1081
|
+
grade: 'A' | 'B' | 'C' | 'D' | 'F';
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Whole number from 0 to 100.
|
|
1085
|
+
*/
|
|
1086
|
+
score: number;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export interface Signal {
|
|
1090
|
+
/**
|
|
1091
|
+
* Whole number from 0.
|
|
1092
|
+
*/
|
|
1093
|
+
count: number;
|
|
1094
|
+
|
|
1095
|
+
id: string;
|
|
1096
|
+
|
|
1097
|
+
percent: number;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Whole number from 0.
|
|
1101
|
+
*/
|
|
1102
|
+
points: number;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
export interface Verified {
|
|
1106
|
+
/**
|
|
1107
|
+
* Whole number from 0.
|
|
1108
|
+
*/
|
|
1109
|
+
count: number;
|
|
1110
|
+
|
|
1111
|
+
percent: number;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* 1 follower the audit read, with its class, score & signals.
|
|
1117
|
+
*/
|
|
1118
|
+
export interface AuditedFollower {
|
|
1119
|
+
id: string;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* What 1 follower looks like from its public profile.
|
|
1123
|
+
*/
|
|
1124
|
+
class: FollowerClass;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Whole number from 0.
|
|
1128
|
+
*/
|
|
1129
|
+
followers: number;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Whole number from 0.
|
|
1133
|
+
*/
|
|
1134
|
+
following: number;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Whole number from 0.
|
|
1138
|
+
*/
|
|
1139
|
+
likes: number;
|
|
1140
|
+
|
|
1141
|
+
name: string;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* The follower's place in the newest-first list. Whole number from 0.
|
|
1145
|
+
*/
|
|
1146
|
+
position: number;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Whole number from 0.
|
|
1150
|
+
*/
|
|
1151
|
+
posts: number;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Whole number from 0.
|
|
1155
|
+
*/
|
|
1156
|
+
score: number;
|
|
1157
|
+
|
|
1158
|
+
signals: Array<string>;
|
|
1159
|
+
|
|
1160
|
+
userName: string;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* When the follower joined X, in milliseconds since the Unix epoch.
|
|
1164
|
+
*/
|
|
1165
|
+
joinedAtMs?: number;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Account that runs an automated follower, when X names it.
|
|
1169
|
+
*/
|
|
1170
|
+
owner?: string;
|
|
1171
|
+
|
|
1172
|
+
pictureUrl?: string;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* What 1 follower looks like from its public profile.
|
|
1177
|
+
*/
|
|
1178
|
+
export type FollowerClass = 'automated' | 'inactive' | 'likelyFake' | 'likelyReal' | 'tooNew';
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* How many followers share 1 value, such as a language or place.
|
|
1182
|
+
*/
|
|
1183
|
+
export interface FollowerValueCount {
|
|
1184
|
+
/**
|
|
1185
|
+
* Whole number from 0.
|
|
1186
|
+
*/
|
|
1187
|
+
count: number;
|
|
1188
|
+
|
|
1189
|
+
percent: number;
|
|
1190
|
+
|
|
1191
|
+
value: string;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
843
1194
|
export type UserRetrieveFollowerIDsResponse = Shared.PaginatedUserIds;
|
|
844
1195
|
|
|
845
1196
|
/**
|
|
@@ -1125,6 +1476,12 @@ export namespace UserRetrieveInsightsResponse {
|
|
|
1125
1476
|
*/
|
|
1126
1477
|
following: number;
|
|
1127
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* Middle view count of the sample, so 1 viral post moves it less than the
|
|
1481
|
+
* average. Null without posts.
|
|
1482
|
+
*/
|
|
1483
|
+
medianViews: number | null;
|
|
1484
|
+
|
|
1128
1485
|
/**
|
|
1129
1486
|
* Posts the user has made.
|
|
1130
1487
|
*/
|
|
@@ -1146,149 +1503,611 @@ export namespace UserRetrieveInsightsResponse {
|
|
|
1146
1503
|
*/
|
|
1147
1504
|
sample: Insights.Sample;
|
|
1148
1505
|
|
|
1149
|
-
/**
|
|
1150
|
-
* The sampled post with the most engagements.
|
|
1151
|
-
*/
|
|
1152
|
-
topPostId: string | null;
|
|
1506
|
+
/**
|
|
1507
|
+
* The sampled post with the most engagements.
|
|
1508
|
+
*/
|
|
1509
|
+
topPostId: string | null;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* ID of the profile the insights describe.
|
|
1513
|
+
*/
|
|
1514
|
+
userId: string;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Username of that profile.
|
|
1518
|
+
*/
|
|
1519
|
+
userName: string;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export namespace Insights {
|
|
1523
|
+
/**
|
|
1524
|
+
* Each count per post of the sample. Null without posts.
|
|
1525
|
+
*/
|
|
1526
|
+
export interface Averages {
|
|
1527
|
+
/**
|
|
1528
|
+
* Bookmarks.
|
|
1529
|
+
*/
|
|
1530
|
+
bookmarks: number;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Likes, replies, reposts and quotes per post.
|
|
1534
|
+
*/
|
|
1535
|
+
engagements: number;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Likes.
|
|
1539
|
+
*/
|
|
1540
|
+
likes: number;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Quotes.
|
|
1544
|
+
*/
|
|
1545
|
+
quotes: number;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Replies.
|
|
1549
|
+
*/
|
|
1550
|
+
replies: number;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Reposts.
|
|
1554
|
+
*/
|
|
1555
|
+
reposts: number;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Views.
|
|
1559
|
+
*/
|
|
1560
|
+
views: number;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* The recent posts the averages read.
|
|
1565
|
+
*/
|
|
1566
|
+
export interface Sample {
|
|
1567
|
+
/**
|
|
1568
|
+
* When the newest of them went up.
|
|
1569
|
+
*/
|
|
1570
|
+
newestAt: string | null;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* When the oldest of them went up.
|
|
1574
|
+
*/
|
|
1575
|
+
oldestAt: string | null;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Posts the averages used. Reposts and the pinned post stay out, so this can be
|
|
1579
|
+
* lower than `read`.
|
|
1580
|
+
*/
|
|
1581
|
+
posts: number;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Posts read, reposts and the pinned post included.
|
|
1585
|
+
*/
|
|
1586
|
+
read: number;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
export type UserRetrieveListMembershipsResponse = Shared.PaginatedLists;
|
|
1592
|
+
|
|
1593
|
+
export namespace UserRetrieveListMembershipsResponse {
|
|
1594
|
+
export type List = Shared.XList;
|
|
1595
|
+
|
|
1596
|
+
export namespace List {
|
|
1597
|
+
export type CustomBanner = Shared.XListBanner;
|
|
1598
|
+
|
|
1599
|
+
export namespace CustomBanner {
|
|
1600
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1601
|
+
|
|
1602
|
+
export namespace Palette {
|
|
1603
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
export type DefaultBanner = Shared.XListBanner;
|
|
1610
|
+
|
|
1611
|
+
export namespace DefaultBanner {
|
|
1612
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1613
|
+
|
|
1614
|
+
export namespace Palette {
|
|
1615
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
export type UserRetrieveListsResponse = Shared.PaginatedLists;
|
|
1624
|
+
|
|
1625
|
+
export namespace UserRetrieveListsResponse {
|
|
1626
|
+
export type List = Shared.XList;
|
|
1627
|
+
|
|
1628
|
+
export namespace List {
|
|
1629
|
+
export type CustomBanner = Shared.XListBanner;
|
|
1630
|
+
|
|
1631
|
+
export namespace CustomBanner {
|
|
1632
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1633
|
+
|
|
1634
|
+
export namespace Palette {
|
|
1635
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
export type DefaultBanner = Shared.XListBanner;
|
|
1642
|
+
|
|
1643
|
+
export namespace DefaultBanner {
|
|
1644
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1645
|
+
|
|
1646
|
+
export namespace Palette {
|
|
1647
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Says whether X limits 1 account in search, search suggestions, reply threads or
|
|
1657
|
+
* its timeline. Each check holds a verdict, its reason & the evidence it read.
|
|
1658
|
+
* Evidence is null for a check that couldn't read the account.
|
|
1659
|
+
*/
|
|
1660
|
+
export interface ShadowbanReport {
|
|
1661
|
+
/**
|
|
1662
|
+
* Whether the account is active, protected or suspended.
|
|
1663
|
+
*/
|
|
1664
|
+
account: 'active' | 'protected' | 'suspended';
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* When the check ran.
|
|
1668
|
+
*/
|
|
1669
|
+
checkedAt: string;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* The 9 checks, each with a verdict, a reason & evidence.
|
|
1673
|
+
*/
|
|
1674
|
+
checks: ShadowbanReport.Checks;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* `suspended` means X suspended the account. `limited` means at least 1 check
|
|
1678
|
+
* failed. `clear` means search & suggestions passed with no fail. `unclear` means
|
|
1679
|
+
* neither of those.
|
|
1680
|
+
*/
|
|
1681
|
+
overall: 'clear' | 'limited' | 'unclear' | 'suspended';
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* ID of the account. Null for a suspended account asked for by username.
|
|
1685
|
+
*/
|
|
1686
|
+
userId: string | null;
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* Username of the account. Null for a suspended account asked for by ID.
|
|
1690
|
+
*/
|
|
1691
|
+
username: string | null;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
export namespace ShadowbanReport {
|
|
1695
|
+
/**
|
|
1696
|
+
* The 9 checks, each with a verdict, a reason & evidence.
|
|
1697
|
+
*/
|
|
1698
|
+
export interface Checks {
|
|
1699
|
+
/**
|
|
1700
|
+
* Passes an active or protected account & fails a suspended one.
|
|
1701
|
+
*/
|
|
1702
|
+
account: Checks.Account;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Compares the newest 5 of the account's own posts older than 24 hours with its
|
|
1706
|
+
* earlier posts, by the median of likes, replies, reposts & quotes. `typical`
|
|
1707
|
+
* passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
|
|
1708
|
+
*/
|
|
1709
|
+
engagement: Checks.Engagement;
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* Opens the threads of up to 3 recent replies to other accounts. `in_thread`
|
|
1713
|
+
* passes. X ranks replies for each viewer, so `more_replies` can't tell.
|
|
1714
|
+
*/
|
|
1715
|
+
replies: Checks.Replies;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Reads the same reply threads as `replies`. `replies_show` passes when any
|
|
1719
|
+
* checked reply shows. X ranks replies for each viewer, so `replies_missing`
|
|
1720
|
+
* can't tell.
|
|
1721
|
+
*/
|
|
1722
|
+
replyLock: Checks.ReplyLock;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* Looks for the account's recent posts in X search, sorted by Latest. `listed`
|
|
1726
|
+
* passes & `missing` fails.
|
|
1727
|
+
*/
|
|
1728
|
+
search: Checks.Search;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
|
|
1732
|
+
* fails.
|
|
1733
|
+
*/
|
|
1734
|
+
sensitive: Checks.Sensitive;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Looks for the account among the accounts X suggests for its username.
|
|
1738
|
+
* `suggested` passes & `not_suggested` fails.
|
|
1739
|
+
*/
|
|
1740
|
+
suggestion: Checks.Suggestion;
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Looks for the account's posts on its profile timeline. `visible` passes &
|
|
1744
|
+
* `hidden` fails.
|
|
1745
|
+
*/
|
|
1746
|
+
timeline: Checks.Timeline;
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* Reads the countries where X withholds the account. `none` passes & `countries`
|
|
1750
|
+
* fails.
|
|
1751
|
+
*/
|
|
1752
|
+
withheld: Checks.Withheld;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
export namespace Checks {
|
|
1756
|
+
/**
|
|
1757
|
+
* Passes an active or protected account & fails a suspended one.
|
|
1758
|
+
*/
|
|
1759
|
+
export interface Account {
|
|
1760
|
+
/**
|
|
1761
|
+
* Where to see the account on X.
|
|
1762
|
+
*/
|
|
1763
|
+
evidence: Account.Evidence;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* State of the account on X.
|
|
1767
|
+
*/
|
|
1768
|
+
reason: 'active' | 'protected' | 'suspended';
|
|
1769
|
+
|
|
1770
|
+
verdict: ShadowbanVerdict;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export namespace Account {
|
|
1774
|
+
/**
|
|
1775
|
+
* Where to see the account on X.
|
|
1776
|
+
*/
|
|
1777
|
+
export interface Evidence {
|
|
1778
|
+
/**
|
|
1779
|
+
* Profile of the account on X.
|
|
1780
|
+
*/
|
|
1781
|
+
profileUrl: string;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* Compares the newest 5 of the account's own posts older than 24 hours with its
|
|
1787
|
+
* earlier posts, by the median of likes, replies, reposts & quotes. `typical`
|
|
1788
|
+
* passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
|
|
1789
|
+
*/
|
|
1790
|
+
export interface Engagement {
|
|
1791
|
+
/**
|
|
1792
|
+
* The 2 medians & how many posts each one covers.
|
|
1793
|
+
*/
|
|
1794
|
+
evidence: Engagement.Evidence | null;
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* `too_few_posts` means fewer than 8 posts to compare, or earlier posts with no
|
|
1798
|
+
* engagement.
|
|
1799
|
+
*/
|
|
1800
|
+
reason: 'typical' | 'low' | 'too_few_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1801
|
+
|
|
1802
|
+
verdict: ShadowbanVerdict;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
export namespace Engagement {
|
|
1806
|
+
/**
|
|
1807
|
+
* The 2 medians & how many posts each one covers.
|
|
1808
|
+
*/
|
|
1809
|
+
export interface Evidence {
|
|
1810
|
+
/**
|
|
1811
|
+
* Median engagement of the earlier posts.
|
|
1812
|
+
*/
|
|
1813
|
+
earlierMedian: number;
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Posts in the earlier group.
|
|
1817
|
+
*/
|
|
1818
|
+
earlierPosts: number;
|
|
1153
1819
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1820
|
+
/**
|
|
1821
|
+
* Median engagement of the newest posts.
|
|
1822
|
+
*/
|
|
1823
|
+
newestMedian: number;
|
|
1158
1824
|
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1825
|
+
/**
|
|
1826
|
+
* Posts in the newest group, up to 5.
|
|
1827
|
+
*/
|
|
1828
|
+
newestPosts: number;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1164
1831
|
|
|
1165
|
-
export namespace Insights {
|
|
1166
1832
|
/**
|
|
1167
|
-
*
|
|
1833
|
+
* Opens the threads of up to 3 recent replies to other accounts. `in_thread`
|
|
1834
|
+
* passes. X ranks replies for each viewer, so `more_replies` can't tell.
|
|
1168
1835
|
*/
|
|
1169
|
-
export interface
|
|
1836
|
+
export interface Replies {
|
|
1170
1837
|
/**
|
|
1171
|
-
*
|
|
1838
|
+
* Each reply it opened & where it showed.
|
|
1172
1839
|
*/
|
|
1173
|
-
|
|
1840
|
+
evidence: Replies.Evidence | null;
|
|
1174
1841
|
|
|
1175
1842
|
/**
|
|
1176
|
-
*
|
|
1843
|
+
* `more_replies` means X put a reply behind its hidden replies prompt.
|
|
1844
|
+
* `not_found` means no reply showed on the pages the check read.
|
|
1177
1845
|
*/
|
|
1178
|
-
|
|
1846
|
+
reason:
|
|
1847
|
+
| 'in_thread'
|
|
1848
|
+
| 'more_replies'
|
|
1849
|
+
| 'no_recent_replies'
|
|
1850
|
+
| 'not_found'
|
|
1851
|
+
| 'unavailable'
|
|
1852
|
+
| 'protected'
|
|
1853
|
+
| 'suspended';
|
|
1854
|
+
|
|
1855
|
+
verdict: ShadowbanVerdict;
|
|
1856
|
+
}
|
|
1179
1857
|
|
|
1858
|
+
export namespace Replies {
|
|
1180
1859
|
/**
|
|
1181
|
-
*
|
|
1860
|
+
* Each reply it opened & where it showed.
|
|
1182
1861
|
*/
|
|
1183
|
-
|
|
1862
|
+
export interface Evidence {
|
|
1863
|
+
/**
|
|
1864
|
+
* Up to 3 replies, newest first.
|
|
1865
|
+
*/
|
|
1866
|
+
replies: Array<Evidence.Reply>;
|
|
1867
|
+
}
|
|
1184
1868
|
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1869
|
+
export namespace Evidence {
|
|
1870
|
+
export interface Reply {
|
|
1871
|
+
/**
|
|
1872
|
+
* ID of the post it replies to.
|
|
1873
|
+
*/
|
|
1874
|
+
parentId: string;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* The thread of that post on X.
|
|
1878
|
+
*/
|
|
1879
|
+
parentUrl: string;
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* `thread` means the reply shows in the thread. `more_replies` means it shows
|
|
1883
|
+
* only behind X's hidden replies prompt.
|
|
1884
|
+
*/
|
|
1885
|
+
placement: 'thread' | 'more_replies' | 'not_found';
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* ID of the reply.
|
|
1889
|
+
*/
|
|
1890
|
+
replyId: string;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* The reply on X.
|
|
1894
|
+
*/
|
|
1895
|
+
replyUrl: string;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1189
1899
|
|
|
1900
|
+
/**
|
|
1901
|
+
* Reads the same reply threads as `replies`. `replies_show` passes when any
|
|
1902
|
+
* checked reply shows. X ranks replies for each viewer, so `replies_missing`
|
|
1903
|
+
* can't tell.
|
|
1904
|
+
*/
|
|
1905
|
+
export interface ReplyLock {
|
|
1190
1906
|
/**
|
|
1191
|
-
*
|
|
1907
|
+
* How many replies it opened & how many showed.
|
|
1192
1908
|
*/
|
|
1193
|
-
|
|
1909
|
+
evidence: ReplyLock.Evidence | null;
|
|
1194
1910
|
|
|
1195
1911
|
/**
|
|
1196
|
-
*
|
|
1912
|
+
* `replies_show` means X showed at least 1 checked reply. `replies_missing` means
|
|
1913
|
+
* it showed none on the pages read.
|
|
1197
1914
|
*/
|
|
1198
|
-
|
|
1915
|
+
reason:
|
|
1916
|
+
'replies_show' | 'replies_missing' | 'no_recent_replies' | 'unavailable' | 'protected' | 'suspended';
|
|
1917
|
+
|
|
1918
|
+
verdict: ShadowbanVerdict;
|
|
1919
|
+
}
|
|
1199
1920
|
|
|
1921
|
+
export namespace ReplyLock {
|
|
1200
1922
|
/**
|
|
1201
|
-
*
|
|
1923
|
+
* How many replies it opened & how many showed.
|
|
1202
1924
|
*/
|
|
1203
|
-
|
|
1925
|
+
export interface Evidence {
|
|
1926
|
+
/**
|
|
1927
|
+
* Replies it looked for, up to 3.
|
|
1928
|
+
*/
|
|
1929
|
+
checkedReplies: number;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Replies that showed in their thread.
|
|
1933
|
+
*/
|
|
1934
|
+
shownReplies: number;
|
|
1935
|
+
}
|
|
1204
1936
|
}
|
|
1205
1937
|
|
|
1206
1938
|
/**
|
|
1207
|
-
*
|
|
1939
|
+
* Looks for the account's recent posts in X search, sorted by Latest. `listed`
|
|
1940
|
+
* passes & `missing` fails.
|
|
1208
1941
|
*/
|
|
1209
|
-
export interface
|
|
1942
|
+
export interface Search {
|
|
1210
1943
|
/**
|
|
1211
|
-
*
|
|
1944
|
+
* The search & the posts it looked for.
|
|
1212
1945
|
*/
|
|
1213
|
-
|
|
1946
|
+
evidence: Search.Evidence | null;
|
|
1214
1947
|
|
|
1215
1948
|
/**
|
|
1216
|
-
*
|
|
1949
|
+
* `listed` means search shows its posts & `missing` means it shows none.
|
|
1950
|
+
* `no_recent_posts` means the account has no recent post to look for.
|
|
1217
1951
|
*/
|
|
1218
|
-
|
|
1952
|
+
reason: 'listed' | 'missing' | 'no_recent_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1953
|
+
|
|
1954
|
+
verdict: ShadowbanVerdict;
|
|
1955
|
+
}
|
|
1219
1956
|
|
|
1957
|
+
export namespace Search {
|
|
1220
1958
|
/**
|
|
1221
|
-
*
|
|
1959
|
+
* The search & the posts it looked for.
|
|
1222
1960
|
*/
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1961
|
+
export interface Evidence {
|
|
1962
|
+
/**
|
|
1963
|
+
* Up to 5 posts of the account that search showed.
|
|
1964
|
+
*/
|
|
1965
|
+
foundPostIds: Array<string>;
|
|
1227
1966
|
|
|
1228
|
-
|
|
1967
|
+
/**
|
|
1968
|
+
* The search it ran.
|
|
1969
|
+
*/
|
|
1970
|
+
query: string;
|
|
1229
1971
|
|
|
1230
|
-
|
|
1231
|
-
|
|
1972
|
+
/**
|
|
1973
|
+
* Up to 5 recent posts of the account.
|
|
1974
|
+
*/
|
|
1975
|
+
recentPostIds: Array<string>;
|
|
1232
1976
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1977
|
+
/**
|
|
1978
|
+
* The same search on X, sorted by Latest.
|
|
1979
|
+
*/
|
|
1980
|
+
searchUrl: string;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1235
1983
|
|
|
1236
|
-
|
|
1237
|
-
|
|
1984
|
+
/**
|
|
1985
|
+
* Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
|
|
1986
|
+
* fails.
|
|
1987
|
+
*/
|
|
1988
|
+
export interface Sensitive {
|
|
1989
|
+
/**
|
|
1990
|
+
* Always null, since the reason holds the answer.
|
|
1991
|
+
*/
|
|
1992
|
+
evidence: null;
|
|
1238
1993
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1994
|
+
/**
|
|
1995
|
+
* `unknown` means X left the flag out of the profile.
|
|
1996
|
+
*/
|
|
1997
|
+
reason: 'not_flagged' | 'flagged' | 'unknown' | 'suspended';
|
|
1242
1998
|
|
|
1243
|
-
|
|
1999
|
+
verdict: ShadowbanVerdict;
|
|
1244
2000
|
}
|
|
1245
2001
|
|
|
1246
|
-
|
|
2002
|
+
/**
|
|
2003
|
+
* Looks for the account among the accounts X suggests for its username.
|
|
2004
|
+
* `suggested` passes & `not_suggested` fails.
|
|
2005
|
+
*/
|
|
2006
|
+
export interface Suggestion {
|
|
2007
|
+
/**
|
|
2008
|
+
* The username searched & the accounts X suggested.
|
|
2009
|
+
*/
|
|
2010
|
+
evidence: Suggestion.Evidence | null;
|
|
1247
2011
|
|
|
1248
|
-
|
|
1249
|
-
|
|
2012
|
+
/**
|
|
2013
|
+
* `suggested` means X suggests the account for its username.
|
|
2014
|
+
*/
|
|
2015
|
+
reason: 'suggested' | 'not_suggested' | 'unavailable' | 'suspended';
|
|
1250
2016
|
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
}
|
|
2017
|
+
verdict: ShadowbanVerdict;
|
|
2018
|
+
}
|
|
1254
2019
|
|
|
1255
|
-
|
|
2020
|
+
export namespace Suggestion {
|
|
2021
|
+
/**
|
|
2022
|
+
* The username searched & the accounts X suggested.
|
|
2023
|
+
*/
|
|
2024
|
+
export interface Evidence {
|
|
2025
|
+
/**
|
|
2026
|
+
* The username it typed.
|
|
2027
|
+
*/
|
|
2028
|
+
query: string;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Up to 10 accounts X suggested, in its order.
|
|
2032
|
+
*/
|
|
2033
|
+
suggestedUsernames: Array<string>;
|
|
2034
|
+
}
|
|
1256
2035
|
}
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
2036
|
|
|
1260
|
-
|
|
2037
|
+
/**
|
|
2038
|
+
* Looks for the account's posts on its profile timeline. `visible` passes &
|
|
2039
|
+
* `hidden` fails.
|
|
2040
|
+
*/
|
|
2041
|
+
export interface Timeline {
|
|
2042
|
+
/**
|
|
2043
|
+
* The post count on the profile & the posts read.
|
|
2044
|
+
*/
|
|
2045
|
+
evidence: Timeline.Evidence | null;
|
|
1261
2046
|
|
|
1262
|
-
|
|
1263
|
-
|
|
2047
|
+
/**
|
|
2048
|
+
* `visible` means the timeline shows posts. `hidden` means X counts posts but
|
|
2049
|
+
* shows none. `no_posts` means the account has none to show.
|
|
2050
|
+
*/
|
|
2051
|
+
reason: 'visible' | 'hidden' | 'no_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1264
2052
|
|
|
1265
|
-
|
|
1266
|
-
|
|
2053
|
+
verdict: ShadowbanVerdict;
|
|
2054
|
+
}
|
|
1267
2055
|
|
|
1268
|
-
export namespace
|
|
1269
|
-
|
|
2056
|
+
export namespace Timeline {
|
|
2057
|
+
/**
|
|
2058
|
+
* The post count on the profile & the posts read.
|
|
2059
|
+
*/
|
|
2060
|
+
export interface Evidence {
|
|
2061
|
+
/**
|
|
2062
|
+
* Posts X counts on the profile.
|
|
2063
|
+
*/
|
|
2064
|
+
postCount: number | null;
|
|
1270
2065
|
|
|
1271
|
-
|
|
1272
|
-
|
|
2066
|
+
/**
|
|
2067
|
+
* Posts the timeline read returned, up to 20.
|
|
2068
|
+
*/
|
|
2069
|
+
timelinePosts: number;
|
|
1273
2070
|
}
|
|
1274
|
-
|
|
1275
|
-
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1276
2071
|
}
|
|
1277
2072
|
|
|
1278
|
-
|
|
2073
|
+
/**
|
|
2074
|
+
* Reads the countries where X withholds the account. `none` passes & `countries`
|
|
2075
|
+
* fails.
|
|
2076
|
+
*/
|
|
2077
|
+
export interface Withheld {
|
|
2078
|
+
/**
|
|
2079
|
+
* The countries X lists.
|
|
2080
|
+
*/
|
|
2081
|
+
evidence: Withheld.Evidence | null;
|
|
1279
2082
|
|
|
1280
|
-
|
|
1281
|
-
|
|
2083
|
+
/**
|
|
2084
|
+
* `countries` means X lists at least 1 country.
|
|
2085
|
+
*/
|
|
2086
|
+
reason: 'none' | 'countries' | 'suspended';
|
|
1282
2087
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
}
|
|
2088
|
+
verdict: ShadowbanVerdict;
|
|
2089
|
+
}
|
|
1286
2090
|
|
|
1287
|
-
|
|
2091
|
+
export namespace Withheld {
|
|
2092
|
+
/**
|
|
2093
|
+
* The countries X lists.
|
|
2094
|
+
*/
|
|
2095
|
+
export interface Evidence {
|
|
2096
|
+
/**
|
|
2097
|
+
* Country codes as X gives them.
|
|
2098
|
+
*/
|
|
2099
|
+
countries: Array<string>;
|
|
2100
|
+
}
|
|
1288
2101
|
}
|
|
1289
2102
|
}
|
|
1290
2103
|
}
|
|
1291
2104
|
|
|
2105
|
+
/**
|
|
2106
|
+
* Pass means X shows the account there, and fail means it doesn't. Unknown means
|
|
2107
|
+
* the check had nothing to test or X didn't answer.
|
|
2108
|
+
*/
|
|
2109
|
+
export type ShadowbanVerdict = 'pass' | 'fail' | 'unknown';
|
|
2110
|
+
|
|
1292
2111
|
/**
|
|
1293
2112
|
* Says whether a user broadcasts live video on X now. `broadcast` is their latest
|
|
1294
2113
|
* broadcast, live or ended, and null when X shows none.
|
|
@@ -1771,6 +2590,14 @@ export interface UserRemoveFollowerParams {
|
|
|
1771
2590
|
* days.
|
|
1772
2591
|
*/
|
|
1773
2592
|
'Idempotency-Key': string;
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* Header param: A long write answers 202 with a status link, then lands on X.
|
|
2596
|
+
* `wait=<seconds>` asks for the answer within that many seconds, up to 85. If
|
|
2597
|
+
* the write is still running then, the API answers 202 with Location. Poll
|
|
2598
|
+
* Location until `terminal` is true, and don't send the write again.
|
|
2599
|
+
*/
|
|
2600
|
+
Prefer?: string;
|
|
1774
2601
|
}
|
|
1775
2602
|
|
|
1776
2603
|
export interface UserRetrieveAffiliatesParams {
|
|
@@ -2269,6 +3096,32 @@ export interface UserRetrieveBatchTweetsParams {
|
|
|
2269
3096
|
usernames?: string;
|
|
2270
3097
|
}
|
|
2271
3098
|
|
|
3099
|
+
export interface UserRetrieveFollowerAuditParams {
|
|
3100
|
+
/**
|
|
3101
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
3102
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
3103
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
3104
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
3105
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
3106
|
+
* named fields.
|
|
3107
|
+
*/
|
|
3108
|
+
fields?: string;
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* Most followers to read, newest first. Left out, a read takes up to 200 and a low
|
|
3112
|
+
* balance reads fewer. A very long read returns what it finished, & coverage shows
|
|
3113
|
+
* how many. Its aliases are pageSize, count, max_results, maxItems, max_items &
|
|
3114
|
+
* per_page.
|
|
3115
|
+
*/
|
|
3116
|
+
limit?: number;
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
3120
|
+
* fields. With fields, it drops from the kept fields.
|
|
3121
|
+
*/
|
|
3122
|
+
omit?: string;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
2272
3125
|
export interface UserRetrieveFollowerIDsParams {
|
|
2273
3126
|
/**
|
|
2274
3127
|
* Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
@@ -2956,6 +3809,13 @@ export interface UserRetrieveInsightsParams {
|
|
|
2956
3809
|
*/
|
|
2957
3810
|
fields?: string;
|
|
2958
3811
|
|
|
3812
|
+
/**
|
|
3813
|
+
* Recent posts to read for the averages and rates. The read stops at this count,
|
|
3814
|
+
* at the end of the timeline or after about 40 seconds, and `sample.posts` says
|
|
3815
|
+
* how many it read.
|
|
3816
|
+
*/
|
|
3817
|
+
limit?: number;
|
|
3818
|
+
|
|
2959
3819
|
/**
|
|
2960
3820
|
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
2961
3821
|
* fields. With fields, it drops from the kept fields.
|
|
@@ -3374,6 +4234,16 @@ export interface UserRetrieveMediaParams {
|
|
|
3374
4234
|
*/
|
|
3375
4235
|
hashtags?: string;
|
|
3376
4236
|
|
|
4237
|
+
/**
|
|
4238
|
+
* Keep only posts whose photos show this. Send charts, screenshots, product_photos,
|
|
4239
|
+
* memes or people, or describe it in words, such as a rocket. AI-powered analysis
|
|
4240
|
+
* checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
|
|
4241
|
+
* Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
|
|
4242
|
+
* price, instead of the read price, & a post the filter drops costs nothing.
|
|
4243
|
+
* imageFilter states the cutoff & counts.
|
|
4244
|
+
*/
|
|
4245
|
+
imageShows?: string;
|
|
4246
|
+
|
|
3377
4247
|
/**
|
|
3378
4248
|
* Only replies to this tweet ID.
|
|
3379
4249
|
*/
|
|
@@ -3527,6 +4397,15 @@ export interface UserRetrieveMediaParams {
|
|
|
3527
4397
|
*/
|
|
3528
4398
|
source?: string;
|
|
3529
4399
|
|
|
4400
|
+
/**
|
|
4401
|
+
* Keep only posts about this topic. AI-powered analysis asks "Is this post about
|
|
4402
|
+
* <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
|
|
4403
|
+
* photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
|
|
4404
|
+
* price, & a post the filter drops costs nothing. limit counts checked posts, & only
|
|
4405
|
+
* kept posts come back. topicFilter states the cutoff & counts.
|
|
4406
|
+
*/
|
|
4407
|
+
topic?: string;
|
|
4408
|
+
|
|
3530
4409
|
/**
|
|
3531
4410
|
* Filter replies sent to a username.
|
|
3532
4411
|
*/
|
|
@@ -3733,6 +4612,12 @@ export interface UserRetrieveMentionsParams {
|
|
|
3733
4612
|
*/
|
|
3734
4613
|
omit?: string;
|
|
3735
4614
|
|
|
4615
|
+
/**
|
|
4616
|
+
* With replies=exclude, also leaves out replies to the author's own posts, so the
|
|
4617
|
+
* search skips every reply.
|
|
4618
|
+
*/
|
|
4619
|
+
ownThreads?: 'exclude';
|
|
4620
|
+
|
|
3736
4621
|
/**
|
|
3737
4622
|
* Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
3738
4623
|
* Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems,
|
|
@@ -3916,6 +4801,16 @@ export interface UserRetrieveRepliesParams {
|
|
|
3916
4801
|
*/
|
|
3917
4802
|
hashtags?: string;
|
|
3918
4803
|
|
|
4804
|
+
/**
|
|
4805
|
+
* Keep only posts whose photos show this. Send charts, screenshots, product_photos,
|
|
4806
|
+
* memes or people, or describe it in words, such as a rocket. AI-powered analysis
|
|
4807
|
+
* checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
|
|
4808
|
+
* Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
|
|
4809
|
+
* price, instead of the read price, & a post the filter drops costs nothing.
|
|
4810
|
+
* imageFilter states the cutoff & counts.
|
|
4811
|
+
*/
|
|
4812
|
+
imageShows?: string;
|
|
4813
|
+
|
|
3919
4814
|
/**
|
|
3920
4815
|
* Include each reply's parent tweet as parentTweet on the reply. A reply whose
|
|
3921
4816
|
* parent X does not return comes without it. Search-only filters such as keywords
|
|
@@ -4114,6 +5009,15 @@ export interface UserRetrieveRepliesParams {
|
|
|
4114
5009
|
*/
|
|
4115
5010
|
source?: string;
|
|
4116
5011
|
|
|
5012
|
+
/**
|
|
5013
|
+
* Keep only posts about this topic. AI-powered analysis asks "Is this post about
|
|
5014
|
+
* <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
|
|
5015
|
+
* photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
|
|
5016
|
+
* price, & a post the filter drops costs nothing. limit counts checked posts, & only
|
|
5017
|
+
* kept posts come back. topicFilter states the cutoff & counts.
|
|
5018
|
+
*/
|
|
5019
|
+
topic?: string;
|
|
5020
|
+
|
|
4117
5021
|
/**
|
|
4118
5022
|
* Filter replies sent to a username.
|
|
4119
5023
|
*/
|
|
@@ -4287,6 +5191,30 @@ export interface UserRetrieveSearchParams {
|
|
|
4287
5191
|
verifiedType?: string;
|
|
4288
5192
|
}
|
|
4289
5193
|
|
|
5194
|
+
export interface UserRetrieveShadowbanParams {
|
|
5195
|
+
/**
|
|
5196
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
5197
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
5198
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
5199
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
5200
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
5201
|
+
* named fields.
|
|
5202
|
+
*/
|
|
5203
|
+
fields?: string;
|
|
5204
|
+
|
|
5205
|
+
/**
|
|
5206
|
+
* Recent posts to read for the timeline, engagement & reply checks. The read stops
|
|
5207
|
+
* at this count, at the end of the timeline or after about 40 seconds.
|
|
5208
|
+
*/
|
|
5209
|
+
limit?: number;
|
|
5210
|
+
|
|
5211
|
+
/**
|
|
5212
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
5213
|
+
* fields. With fields, it drops from the kept fields.
|
|
5214
|
+
*/
|
|
5215
|
+
omit?: string;
|
|
5216
|
+
}
|
|
5217
|
+
|
|
4290
5218
|
export interface UserRetrieveSimilarParams {
|
|
4291
5219
|
/**
|
|
4292
5220
|
* Match any comma-separated or line-separated bio term, ignoring case.
|
|
@@ -4620,6 +5548,16 @@ export interface UserRetrieveTweetsParams {
|
|
|
4620
5548
|
*/
|
|
4621
5549
|
hashtags?: string;
|
|
4622
5550
|
|
|
5551
|
+
/**
|
|
5552
|
+
* Keep only posts whose photos show this. Send charts, screenshots, product_photos,
|
|
5553
|
+
* memes or people, or describe it in words, such as a rocket. AI-powered analysis
|
|
5554
|
+
* checks posts with photos X doesn't mark sensitive & keeps scores of 0.5 or more.
|
|
5555
|
+
* Other posts stay out at no charge. Each kept post costs 2 credits, the AI analysis
|
|
5556
|
+
* price, instead of the read price, & a post the filter drops costs nothing.
|
|
5557
|
+
* imageFilter states the cutoff & counts.
|
|
5558
|
+
*/
|
|
5559
|
+
imageShows?: string;
|
|
5560
|
+
|
|
4623
5561
|
/**
|
|
4624
5562
|
* Include each reply's parent tweet as parentTweet on the reply. A reply whose
|
|
4625
5563
|
* parent X does not return comes without it. Search-only filters such as keywords
|
|
@@ -4823,6 +5761,15 @@ export interface UserRetrieveTweetsParams {
|
|
|
4823
5761
|
*/
|
|
4824
5762
|
source?: string;
|
|
4825
5763
|
|
|
5764
|
+
/**
|
|
5765
|
+
* Keep only posts about this topic. AI-powered analysis asks "Is this post about
|
|
5766
|
+
* <topic>?" of each post & keeps scores of 0.5 or more. It reads post text & safe
|
|
5767
|
+
* photos. Each kept post costs 2 credits, the AI analysis price, instead of the read
|
|
5768
|
+
* price, & a post the filter drops costs nothing. limit counts checked posts, & only
|
|
5769
|
+
* kept posts come back. topicFilter states the cutoff & counts.
|
|
5770
|
+
*/
|
|
5771
|
+
topic?: string;
|
|
5772
|
+
|
|
4826
5773
|
/**
|
|
4827
5774
|
* Filter replies sent to a username.
|
|
4828
5775
|
*/
|
|
@@ -5041,13 +5988,20 @@ export interface UserTranslateBioParams {
|
|
|
5041
5988
|
omit?: string;
|
|
5042
5989
|
}
|
|
5043
5990
|
|
|
5991
|
+
Users.Block = Block;
|
|
5044
5992
|
Users.Follow = Follow;
|
|
5993
|
+
Users.Mute = Mute;
|
|
5045
5994
|
|
|
5046
5995
|
export declare namespace Users {
|
|
5047
5996
|
export {
|
|
5048
5997
|
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
5049
5998
|
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
5050
5999
|
type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
|
|
6000
|
+
type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse,
|
|
6001
|
+
type FollowerAudit as FollowerAudit,
|
|
6002
|
+
type AuditedFollower as AuditedFollower,
|
|
6003
|
+
type FollowerClass as FollowerClass,
|
|
6004
|
+
type FollowerValueCount as FollowerValueCount,
|
|
5051
6005
|
type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
|
|
5052
6006
|
type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
|
|
5053
6007
|
type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
|
|
@@ -5056,6 +6010,8 @@ export declare namespace Users {
|
|
|
5056
6010
|
type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse,
|
|
5057
6011
|
type UserRetrieveListsResponse as UserRetrieveListsResponse,
|
|
5058
6012
|
type UserRetrieveLiveResponse as UserRetrieveLiveResponse,
|
|
6013
|
+
type ShadowbanReport as ShadowbanReport,
|
|
6014
|
+
type ShadowbanVerdict as ShadowbanVerdict,
|
|
5059
6015
|
type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse,
|
|
5060
6016
|
type UserTranslateBioResponse as UserTranslateBioResponse,
|
|
5061
6017
|
type UserRetrieveParams as UserRetrieveParams,
|
|
@@ -5064,6 +6020,7 @@ export declare namespace Users {
|
|
|
5064
6020
|
type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
|
|
5065
6021
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
5066
6022
|
type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
|
|
6023
|
+
type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams,
|
|
5067
6024
|
type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
|
|
5068
6025
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
5069
6026
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
@@ -5079,6 +6036,7 @@ export declare namespace Users {
|
|
|
5079
6036
|
type UserRetrieveMentionsParams as UserRetrieveMentionsParams,
|
|
5080
6037
|
type UserRetrieveRepliesParams as UserRetrieveRepliesParams,
|
|
5081
6038
|
type UserRetrieveSearchParams as UserRetrieveSearchParams,
|
|
6039
|
+
type UserRetrieveShadowbanParams as UserRetrieveShadowbanParams,
|
|
5082
6040
|
type UserRetrieveSimilarParams as UserRetrieveSimilarParams,
|
|
5083
6041
|
type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams,
|
|
5084
6042
|
type UserRetrieveTweetsParams as UserRetrieveTweetsParams,
|
|
@@ -5086,6 +6044,14 @@ export declare namespace Users {
|
|
|
5086
6044
|
type UserTranslateBioParams as UserTranslateBioParams,
|
|
5087
6045
|
};
|
|
5088
6046
|
|
|
6047
|
+
export {
|
|
6048
|
+
Block as Block,
|
|
6049
|
+
type BlockCreateResponse as BlockCreateResponse,
|
|
6050
|
+
type BlockDeleteResponse as BlockDeleteResponse,
|
|
6051
|
+
type BlockCreateParams as BlockCreateParams,
|
|
6052
|
+
type BlockDeleteParams as BlockDeleteParams,
|
|
6053
|
+
};
|
|
6054
|
+
|
|
5089
6055
|
export {
|
|
5090
6056
|
Follow as Follow,
|
|
5091
6057
|
type FollowCreateResponse as FollowCreateResponse,
|
|
@@ -5093,4 +6059,12 @@ export declare namespace Users {
|
|
|
5093
6059
|
type FollowCreateParams as FollowCreateParams,
|
|
5094
6060
|
type FollowDeleteAllParams as FollowDeleteAllParams,
|
|
5095
6061
|
};
|
|
6062
|
+
|
|
6063
|
+
export {
|
|
6064
|
+
Mute as Mute,
|
|
6065
|
+
type MuteCreateResponse as MuteCreateResponse,
|
|
6066
|
+
type MuteDeleteResponse as MuteDeleteResponse,
|
|
6067
|
+
type MuteCreateParams as MuteCreateParams,
|
|
6068
|
+
type MuteDeleteParams as MuteDeleteParams,
|
|
6069
|
+
};
|
|
5096
6070
|
}
|