x-twitter-scraper 0.18.0 → 0.20.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 +48 -0
- package/README.md +1 -0
- package/client.d.mts +7 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/account.d.mts +1 -1
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +1 -1
- package/resources/account.d.ts.map +1 -1
- package/resources/activity.d.mts +230 -0
- package/resources/activity.d.mts.map +1 -0
- package/resources/activity.d.ts +230 -0
- package/resources/activity.d.ts.map +1 -0
- package/resources/activity.js +67 -0
- package/resources/activity.js.map +1 -0
- package/resources/activity.mjs +63 -0
- package/resources/activity.mjs.map +1 -0
- package/resources/credits.d.mts +29 -0
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +29 -0
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs.map +1 -1
- package/resources/events.d.mts +69 -0
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +69 -0
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +2 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +2 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +56 -0
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +56 -0
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +45 -1
- package/resources/monitors/posts.d.mts.map +1 -1
- package/resources/monitors/posts.d.ts +45 -1
- package/resources/monitors/posts.d.ts.map +1 -1
- package/resources/monitors/posts.js +1 -1
- package/resources/monitors/posts.mjs +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 +67 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +67 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/subscribe.d.mts +11 -0
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +11 -0
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +17 -0
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +17 -0
- 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 +14 -0
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +14 -0
- 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 +14 -0
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +14 -0
- 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 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/media.d.mts +43 -0
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +43 -0
- 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 +21 -0
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +21 -0
- 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/sports.d.mts +309 -2
- package/resources/x/sports.d.mts.map +1 -1
- package/resources/x/sports.d.ts +309 -2
- package/resources/x/sports.d.ts.map +1 -1
- package/resources/x/sports.js +49 -1
- package/resources/x/sports.js.map +1 -1
- package/resources/x/sports.mjs +49 -1
- package/resources/x/sports.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +14 -0
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +14 -0
- 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 +14 -0
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +14 -0
- 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 +58 -0
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +58 -0
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +4 -4
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +4 -4
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +14 -0
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +14 -0
- 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 +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +425 -1
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +425 -1
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +17 -2
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +17 -2
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +4 -4
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +4 -4
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-draws.md +13 -13
- package/skills/x-twitter-scraper/references/draws.md +3 -3
- package/skills/x-twitter-scraper/references/python-examples.md +2 -2
- package/src/client.ts +23 -0
- package/src/resources/account.ts +1 -1
- package/src/resources/activity.ts +341 -0
- package/src/resources/credits.ts +35 -0
- package/src/resources/events.ts +85 -1
- package/src/resources/extractions.ts +67 -0
- package/src/resources/index.ts +8 -0
- package/src/resources/monitors/posts.ts +58 -1
- package/src/resources/radar.ts +10 -0
- package/src/resources/shared.ts +123 -0
- package/src/resources/subscribe.ts +13 -0
- package/src/resources/x/communities/communities.ts +23 -4
- package/src/resources/x/communities/join.ts +20 -4
- package/src/resources/x/dm.ts +20 -4
- package/src/resources/x/index.ts +13 -0
- package/src/resources/x/media.ts +60 -2
- package/src/resources/x/profile.ts +30 -6
- package/src/resources/x/sports.ts +379 -1
- package/src/resources/x/tweets/like.ts +20 -4
- package/src/resources/x/tweets/retweet.ts +20 -4
- package/src/resources/x/tweets/tweets.ts +70 -4
- package/src/resources/x/users/follow.ts +20 -4
- package/src/resources/x/users/index.ts +3 -0
- package/src/resources/x/users/users.ts +513 -2
- package/src/resources/x/x.ts +26 -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
|
@@ -241,6 +241,19 @@ export declare class Users extends APIResource {
|
|
|
241
241
|
* ```
|
|
242
242
|
*/
|
|
243
243
|
retrieveSearch(query: UserRetrieveSearchParams, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
244
|
+
/**
|
|
245
|
+
* Checks 1 X account for a search ban, a search suggestion ban & reply
|
|
246
|
+
* deboosting. It also says if the account is active, protected or suspended. Each
|
|
247
|
+
* profile, post, suggestion & reply in the answer costs 1 credit.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```ts
|
|
251
|
+
* const shadowbanReport = await client.x.users.retrieveShadowban(
|
|
252
|
+
* 'id',
|
|
253
|
+
* );
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
retrieveShadowban(id: string, query?: UserRetrieveShadowbanParams | null | undefined, options?: RequestOptions): APIPromise<ShadowbanReport>;
|
|
244
257
|
/**
|
|
245
258
|
* Returns the public accounts X lists as similar to the selected user, in X's
|
|
246
259
|
* order. X can list slightly different accounts on each call. Each account costs 1
|
|
@@ -773,6 +786,11 @@ export declare namespace UserRetrieveInsightsResponse {
|
|
|
773
786
|
* Accounts the user follows.
|
|
774
787
|
*/
|
|
775
788
|
following: number;
|
|
789
|
+
/**
|
|
790
|
+
* Middle view count of the sample, so 1 viral post moves it less than the
|
|
791
|
+
* average. Null without posts.
|
|
792
|
+
*/
|
|
793
|
+
medianViews: number | null;
|
|
776
794
|
/**
|
|
777
795
|
* Posts the user has made.
|
|
778
796
|
*/
|
|
@@ -900,6 +918,389 @@ export declare namespace UserRetrieveListsResponse {
|
|
|
900
918
|
}
|
|
901
919
|
}
|
|
902
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* Says whether X limits 1 account in search, search suggestions, reply threads or
|
|
923
|
+
* its timeline. Each check holds a verdict, its reason & the evidence it read.
|
|
924
|
+
* Evidence is null for a check that couldn't read the account.
|
|
925
|
+
*/
|
|
926
|
+
export interface ShadowbanReport {
|
|
927
|
+
/**
|
|
928
|
+
* Whether the account is active, protected or suspended.
|
|
929
|
+
*/
|
|
930
|
+
account: 'active' | 'protected' | 'suspended';
|
|
931
|
+
/**
|
|
932
|
+
* When the check ran.
|
|
933
|
+
*/
|
|
934
|
+
checkedAt: string;
|
|
935
|
+
/**
|
|
936
|
+
* The 9 checks, each with a verdict, a reason & evidence.
|
|
937
|
+
*/
|
|
938
|
+
checks: ShadowbanReport.Checks;
|
|
939
|
+
/**
|
|
940
|
+
* `suspended` means X suspended the account. `limited` means at least 1 check
|
|
941
|
+
* failed. `clear` means search & suggestions passed with no fail. `unclear` means
|
|
942
|
+
* neither of those.
|
|
943
|
+
*/
|
|
944
|
+
overall: 'clear' | 'limited' | 'unclear' | 'suspended';
|
|
945
|
+
/**
|
|
946
|
+
* ID of the account. Null for a suspended account asked for by username.
|
|
947
|
+
*/
|
|
948
|
+
userId: string | null;
|
|
949
|
+
/**
|
|
950
|
+
* Username of the account. Null for a suspended account asked for by ID.
|
|
951
|
+
*/
|
|
952
|
+
username: string | null;
|
|
953
|
+
}
|
|
954
|
+
export declare namespace ShadowbanReport {
|
|
955
|
+
/**
|
|
956
|
+
* The 9 checks, each with a verdict, a reason & evidence.
|
|
957
|
+
*/
|
|
958
|
+
interface Checks {
|
|
959
|
+
/**
|
|
960
|
+
* Passes an active or protected account & fails a suspended one.
|
|
961
|
+
*/
|
|
962
|
+
account: Checks.Account;
|
|
963
|
+
/**
|
|
964
|
+
* Compares the newest 5 of the account's own posts older than 24 hours with its
|
|
965
|
+
* earlier posts, by the median of likes, replies, reposts & quotes. `typical`
|
|
966
|
+
* passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
|
|
967
|
+
*/
|
|
968
|
+
engagement: Checks.Engagement;
|
|
969
|
+
/**
|
|
970
|
+
* Opens the threads of up to 3 recent replies to other accounts. `in_thread`
|
|
971
|
+
* passes. X ranks replies for each viewer, so `more_replies` can't tell.
|
|
972
|
+
*/
|
|
973
|
+
replies: Checks.Replies;
|
|
974
|
+
/**
|
|
975
|
+
* Reads the same reply threads as `replies`. `replies_show` passes when any
|
|
976
|
+
* checked reply shows. X ranks replies for each viewer, so `replies_missing`
|
|
977
|
+
* can't tell.
|
|
978
|
+
*/
|
|
979
|
+
replyLock: Checks.ReplyLock;
|
|
980
|
+
/**
|
|
981
|
+
* Looks for the account's recent posts in X search, sorted by Latest. `listed`
|
|
982
|
+
* passes & `missing` fails.
|
|
983
|
+
*/
|
|
984
|
+
search: Checks.Search;
|
|
985
|
+
/**
|
|
986
|
+
* Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
|
|
987
|
+
* fails.
|
|
988
|
+
*/
|
|
989
|
+
sensitive: Checks.Sensitive;
|
|
990
|
+
/**
|
|
991
|
+
* Looks for the account among the accounts X suggests for its username.
|
|
992
|
+
* `suggested` passes & `not_suggested` fails.
|
|
993
|
+
*/
|
|
994
|
+
suggestion: Checks.Suggestion;
|
|
995
|
+
/**
|
|
996
|
+
* Looks for the account's posts on its profile timeline. `visible` passes &
|
|
997
|
+
* `hidden` fails.
|
|
998
|
+
*/
|
|
999
|
+
timeline: Checks.Timeline;
|
|
1000
|
+
/**
|
|
1001
|
+
* Reads the countries where X withholds the account. `none` passes & `countries`
|
|
1002
|
+
* fails.
|
|
1003
|
+
*/
|
|
1004
|
+
withheld: Checks.Withheld;
|
|
1005
|
+
}
|
|
1006
|
+
namespace Checks {
|
|
1007
|
+
/**
|
|
1008
|
+
* Passes an active or protected account & fails a suspended one.
|
|
1009
|
+
*/
|
|
1010
|
+
interface Account {
|
|
1011
|
+
/**
|
|
1012
|
+
* Where to see the account on X.
|
|
1013
|
+
*/
|
|
1014
|
+
evidence: Account.Evidence;
|
|
1015
|
+
/**
|
|
1016
|
+
* State of the account on X.
|
|
1017
|
+
*/
|
|
1018
|
+
reason: 'active' | 'protected' | 'suspended';
|
|
1019
|
+
verdict: ShadowbanVerdict;
|
|
1020
|
+
}
|
|
1021
|
+
namespace Account {
|
|
1022
|
+
/**
|
|
1023
|
+
* Where to see the account on X.
|
|
1024
|
+
*/
|
|
1025
|
+
interface Evidence {
|
|
1026
|
+
/**
|
|
1027
|
+
* Profile of the account on X.
|
|
1028
|
+
*/
|
|
1029
|
+
profileUrl: string;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Compares the newest 5 of the account's own posts older than 24 hours with its
|
|
1034
|
+
* earlier posts, by the median of likes, replies, reposts & quotes. `typical`
|
|
1035
|
+
* passes at 25% or more. A drop alone proves nothing, so `low` can't tell.
|
|
1036
|
+
*/
|
|
1037
|
+
interface Engagement {
|
|
1038
|
+
/**
|
|
1039
|
+
* The 2 medians & how many posts each one covers.
|
|
1040
|
+
*/
|
|
1041
|
+
evidence: Engagement.Evidence | null;
|
|
1042
|
+
/**
|
|
1043
|
+
* `too_few_posts` means fewer than 8 posts to compare, or earlier posts with no
|
|
1044
|
+
* engagement.
|
|
1045
|
+
*/
|
|
1046
|
+
reason: 'typical' | 'low' | 'too_few_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1047
|
+
verdict: ShadowbanVerdict;
|
|
1048
|
+
}
|
|
1049
|
+
namespace Engagement {
|
|
1050
|
+
/**
|
|
1051
|
+
* The 2 medians & how many posts each one covers.
|
|
1052
|
+
*/
|
|
1053
|
+
interface Evidence {
|
|
1054
|
+
/**
|
|
1055
|
+
* Median engagement of the earlier posts.
|
|
1056
|
+
*/
|
|
1057
|
+
earlierMedian: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* Posts in the earlier group.
|
|
1060
|
+
*/
|
|
1061
|
+
earlierPosts: number;
|
|
1062
|
+
/**
|
|
1063
|
+
* Median engagement of the newest posts.
|
|
1064
|
+
*/
|
|
1065
|
+
newestMedian: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* Posts in the newest group, up to 5.
|
|
1068
|
+
*/
|
|
1069
|
+
newestPosts: number;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Opens the threads of up to 3 recent replies to other accounts. `in_thread`
|
|
1074
|
+
* passes. X ranks replies for each viewer, so `more_replies` can't tell.
|
|
1075
|
+
*/
|
|
1076
|
+
interface Replies {
|
|
1077
|
+
/**
|
|
1078
|
+
* Each reply it opened & where it showed.
|
|
1079
|
+
*/
|
|
1080
|
+
evidence: Replies.Evidence | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* `more_replies` means X put a reply behind its hidden replies prompt.
|
|
1083
|
+
* `not_found` means no reply showed on the pages the check read.
|
|
1084
|
+
*/
|
|
1085
|
+
reason: 'in_thread' | 'more_replies' | 'no_recent_replies' | 'not_found' | 'unavailable' | 'protected' | 'suspended';
|
|
1086
|
+
verdict: ShadowbanVerdict;
|
|
1087
|
+
}
|
|
1088
|
+
namespace Replies {
|
|
1089
|
+
/**
|
|
1090
|
+
* Each reply it opened & where it showed.
|
|
1091
|
+
*/
|
|
1092
|
+
interface Evidence {
|
|
1093
|
+
/**
|
|
1094
|
+
* Up to 3 replies, newest first.
|
|
1095
|
+
*/
|
|
1096
|
+
replies: Array<Evidence.Reply>;
|
|
1097
|
+
}
|
|
1098
|
+
namespace Evidence {
|
|
1099
|
+
interface Reply {
|
|
1100
|
+
/**
|
|
1101
|
+
* ID of the post it replies to.
|
|
1102
|
+
*/
|
|
1103
|
+
parentId: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* The thread of that post on X.
|
|
1106
|
+
*/
|
|
1107
|
+
parentUrl: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* `thread` means the reply shows in the thread. `more_replies` means it shows
|
|
1110
|
+
* only behind X's hidden replies prompt.
|
|
1111
|
+
*/
|
|
1112
|
+
placement: 'thread' | 'more_replies' | 'not_found';
|
|
1113
|
+
/**
|
|
1114
|
+
* ID of the reply.
|
|
1115
|
+
*/
|
|
1116
|
+
replyId: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* The reply on X.
|
|
1119
|
+
*/
|
|
1120
|
+
replyUrl: string;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Reads the same reply threads as `replies`. `replies_show` passes when any
|
|
1126
|
+
* checked reply shows. X ranks replies for each viewer, so `replies_missing`
|
|
1127
|
+
* can't tell.
|
|
1128
|
+
*/
|
|
1129
|
+
interface ReplyLock {
|
|
1130
|
+
/**
|
|
1131
|
+
* How many replies it opened & how many showed.
|
|
1132
|
+
*/
|
|
1133
|
+
evidence: ReplyLock.Evidence | null;
|
|
1134
|
+
/**
|
|
1135
|
+
* `replies_show` means X showed at least 1 checked reply. `replies_missing` means
|
|
1136
|
+
* it showed none on the pages read.
|
|
1137
|
+
*/
|
|
1138
|
+
reason: 'replies_show' | 'replies_missing' | 'no_recent_replies' | 'unavailable' | 'protected' | 'suspended';
|
|
1139
|
+
verdict: ShadowbanVerdict;
|
|
1140
|
+
}
|
|
1141
|
+
namespace ReplyLock {
|
|
1142
|
+
/**
|
|
1143
|
+
* How many replies it opened & how many showed.
|
|
1144
|
+
*/
|
|
1145
|
+
interface Evidence {
|
|
1146
|
+
/**
|
|
1147
|
+
* Replies it looked for, up to 3.
|
|
1148
|
+
*/
|
|
1149
|
+
checkedReplies: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Replies that showed in their thread.
|
|
1152
|
+
*/
|
|
1153
|
+
shownReplies: number;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Looks for the account's recent posts in X search, sorted by Latest. `listed`
|
|
1158
|
+
* passes & `missing` fails.
|
|
1159
|
+
*/
|
|
1160
|
+
interface Search {
|
|
1161
|
+
/**
|
|
1162
|
+
* The search & the posts it looked for.
|
|
1163
|
+
*/
|
|
1164
|
+
evidence: Search.Evidence | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* `listed` means search shows its posts & `missing` means it shows none.
|
|
1167
|
+
* `no_recent_posts` means the account has no recent post to look for.
|
|
1168
|
+
*/
|
|
1169
|
+
reason: 'listed' | 'missing' | 'no_recent_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1170
|
+
verdict: ShadowbanVerdict;
|
|
1171
|
+
}
|
|
1172
|
+
namespace Search {
|
|
1173
|
+
/**
|
|
1174
|
+
* The search & the posts it looked for.
|
|
1175
|
+
*/
|
|
1176
|
+
interface Evidence {
|
|
1177
|
+
/**
|
|
1178
|
+
* Up to 5 posts of the account that search showed.
|
|
1179
|
+
*/
|
|
1180
|
+
foundPostIds: Array<string>;
|
|
1181
|
+
/**
|
|
1182
|
+
* The search it ran.
|
|
1183
|
+
*/
|
|
1184
|
+
query: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Up to 5 recent posts of the account.
|
|
1187
|
+
*/
|
|
1188
|
+
recentPostIds: Array<string>;
|
|
1189
|
+
/**
|
|
1190
|
+
* The same search on X, sorted by Latest.
|
|
1191
|
+
*/
|
|
1192
|
+
searchUrl: string;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Reads X's sensitive flag on the profile. `not_flagged` passes & `flagged`
|
|
1197
|
+
* fails.
|
|
1198
|
+
*/
|
|
1199
|
+
interface Sensitive {
|
|
1200
|
+
/**
|
|
1201
|
+
* Always null, since the reason holds the answer.
|
|
1202
|
+
*/
|
|
1203
|
+
evidence: null;
|
|
1204
|
+
/**
|
|
1205
|
+
* `unknown` means X left the flag out of the profile.
|
|
1206
|
+
*/
|
|
1207
|
+
reason: 'not_flagged' | 'flagged' | 'unknown' | 'suspended';
|
|
1208
|
+
verdict: ShadowbanVerdict;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Looks for the account among the accounts X suggests for its username.
|
|
1212
|
+
* `suggested` passes & `not_suggested` fails.
|
|
1213
|
+
*/
|
|
1214
|
+
interface Suggestion {
|
|
1215
|
+
/**
|
|
1216
|
+
* The username searched & the accounts X suggested.
|
|
1217
|
+
*/
|
|
1218
|
+
evidence: Suggestion.Evidence | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* `suggested` means X suggests the account for its username.
|
|
1221
|
+
*/
|
|
1222
|
+
reason: 'suggested' | 'not_suggested' | 'unavailable' | 'suspended';
|
|
1223
|
+
verdict: ShadowbanVerdict;
|
|
1224
|
+
}
|
|
1225
|
+
namespace Suggestion {
|
|
1226
|
+
/**
|
|
1227
|
+
* The username searched & the accounts X suggested.
|
|
1228
|
+
*/
|
|
1229
|
+
interface Evidence {
|
|
1230
|
+
/**
|
|
1231
|
+
* The username it typed.
|
|
1232
|
+
*/
|
|
1233
|
+
query: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* Up to 10 accounts X suggested, in its order.
|
|
1236
|
+
*/
|
|
1237
|
+
suggestedUsernames: Array<string>;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Looks for the account's posts on its profile timeline. `visible` passes &
|
|
1242
|
+
* `hidden` fails.
|
|
1243
|
+
*/
|
|
1244
|
+
interface Timeline {
|
|
1245
|
+
/**
|
|
1246
|
+
* The post count on the profile & the posts read.
|
|
1247
|
+
*/
|
|
1248
|
+
evidence: Timeline.Evidence | null;
|
|
1249
|
+
/**
|
|
1250
|
+
* `visible` means the timeline shows posts. `hidden` means X counts posts but
|
|
1251
|
+
* shows none. `no_posts` means the account has none to show.
|
|
1252
|
+
*/
|
|
1253
|
+
reason: 'visible' | 'hidden' | 'no_posts' | 'unavailable' | 'protected' | 'suspended';
|
|
1254
|
+
verdict: ShadowbanVerdict;
|
|
1255
|
+
}
|
|
1256
|
+
namespace Timeline {
|
|
1257
|
+
/**
|
|
1258
|
+
* The post count on the profile & the posts read.
|
|
1259
|
+
*/
|
|
1260
|
+
interface Evidence {
|
|
1261
|
+
/**
|
|
1262
|
+
* Posts X counts on the profile.
|
|
1263
|
+
*/
|
|
1264
|
+
postCount: number | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* Posts the timeline read returned, up to 20.
|
|
1267
|
+
*/
|
|
1268
|
+
timelinePosts: number;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Reads the countries where X withholds the account. `none` passes & `countries`
|
|
1273
|
+
* fails.
|
|
1274
|
+
*/
|
|
1275
|
+
interface Withheld {
|
|
1276
|
+
/**
|
|
1277
|
+
* The countries X lists.
|
|
1278
|
+
*/
|
|
1279
|
+
evidence: Withheld.Evidence | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* `countries` means X lists at least 1 country.
|
|
1282
|
+
*/
|
|
1283
|
+
reason: 'none' | 'countries' | 'suspended';
|
|
1284
|
+
verdict: ShadowbanVerdict;
|
|
1285
|
+
}
|
|
1286
|
+
namespace Withheld {
|
|
1287
|
+
/**
|
|
1288
|
+
* The countries X lists.
|
|
1289
|
+
*/
|
|
1290
|
+
interface Evidence {
|
|
1291
|
+
/**
|
|
1292
|
+
* Country codes as X gives them.
|
|
1293
|
+
*/
|
|
1294
|
+
countries: Array<string>;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Pass means X shows the account there, and fail means it doesn't. Unknown means
|
|
1301
|
+
* the check had nothing to test or X didn't answer.
|
|
1302
|
+
*/
|
|
1303
|
+
export type ShadowbanVerdict = 'pass' | 'fail' | 'unknown';
|
|
903
1304
|
/**
|
|
904
1305
|
* Says whether a user broadcasts live video on X now. `broadcast` is their latest
|
|
905
1306
|
* broadcast, live or ended, and null when X shows none.
|
|
@@ -1284,6 +1685,13 @@ export interface UserRemoveFollowerParams {
|
|
|
1284
1685
|
* days.
|
|
1285
1686
|
*/
|
|
1286
1687
|
'Idempotency-Key': string;
|
|
1688
|
+
/**
|
|
1689
|
+
* Header param: A long write answers 202 with a status link, then lands on X.
|
|
1690
|
+
* `wait=<seconds>` asks for the answer within that many seconds, up to 85. If
|
|
1691
|
+
* the write is still running then, the API answers 202 with Location. Poll
|
|
1692
|
+
* Location until `terminal` is true, and don't send the write again.
|
|
1693
|
+
*/
|
|
1694
|
+
Prefer?: string;
|
|
1287
1695
|
}
|
|
1288
1696
|
export interface UserRetrieveAffiliatesParams {
|
|
1289
1697
|
/**
|
|
@@ -3345,6 +3753,22 @@ export interface UserRetrieveSearchParams {
|
|
|
3345
3753
|
*/
|
|
3346
3754
|
verifiedType?: string;
|
|
3347
3755
|
}
|
|
3756
|
+
export interface UserRetrieveShadowbanParams {
|
|
3757
|
+
/**
|
|
3758
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
3759
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
3760
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
3761
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
3762
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
3763
|
+
* named fields.
|
|
3764
|
+
*/
|
|
3765
|
+
fields?: string;
|
|
3766
|
+
/**
|
|
3767
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
3768
|
+
* fields. With fields, it drops from the kept fields.
|
|
3769
|
+
*/
|
|
3770
|
+
omit?: string;
|
|
3771
|
+
}
|
|
3348
3772
|
export interface UserRetrieveSimilarParams {
|
|
3349
3773
|
/**
|
|
3350
3774
|
* Match any comma-separated or line-separated bio term, ignoring case.
|
|
@@ -3965,7 +4389,7 @@ export interface UserTranslateBioParams {
|
|
|
3965
4389
|
omit?: string;
|
|
3966
4390
|
}
|
|
3967
4391
|
export declare namespace Users {
|
|
3968
|
-
export { type UserRemoveFollowerResponse as UserRemoveFollowerResponse, type UserRetrieveBatchResponse as UserRetrieveBatchResponse, type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse, type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse, type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse, type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse, type UserRetrieveFollowingIDsResponse as UserRetrieveFollowingIDsResponse, type UserRetrieveInsightsResponse as UserRetrieveInsightsResponse, type UserRetrieveListMembershipsResponse as UserRetrieveListMembershipsResponse, type UserRetrieveListsResponse as UserRetrieveListsResponse, type UserRetrieveLiveResponse as UserRetrieveLiveResponse, type UserRetrieveVerifiedFollowersResponse as UserRetrieveVerifiedFollowersResponse, type UserTranslateBioResponse as UserTranslateBioResponse, type UserRetrieveParams as UserRetrieveParams, type UserRemoveFollowerParams as UserRemoveFollowerParams, type UserRetrieveAffiliatesParams as UserRetrieveAffiliatesParams, type UserRetrieveArticlesParams as UserRetrieveArticlesParams, type UserRetrieveBatchParams as UserRetrieveBatchParams, type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams, type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams, type UserRetrieveFollowersParams as UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams as UserRetrieveFollowingParams, type UserRetrieveFollowingIDsParams as UserRetrieveFollowingIDsParams, type UserRetrieveHighlightsParams as UserRetrieveHighlightsParams, type UserRetrieveInsightsParams as UserRetrieveInsightsParams, type UserRetrieveLikesParams as UserRetrieveLikesParams, type UserRetrieveListMembershipsParams as UserRetrieveListMembershipsParams, type UserRetrieveListsParams as UserRetrieveListsParams, type UserRetrieveLiveParams as UserRetrieveLiveParams, type UserRetrieveMediaParams as UserRetrieveMediaParams, type UserRetrieveMentionsParams as UserRetrieveMentionsParams, type UserRetrieveRepliesParams as UserRetrieveRepliesParams, type UserRetrieveSearchParams as UserRetrieveSearchParams, type UserRetrieveSimilarParams as UserRetrieveSimilarParams, type UserRetrieveSubscriptionsParams as UserRetrieveSubscriptionsParams, type UserRetrieveTweetsParams as UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams as UserRetrieveVerifiedFollowersParams, type UserTranslateBioParams as UserTranslateBioParams, };
|
|
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, };
|
|
3969
4393
|
export { Follow as Follow, type FollowCreateResponse as FollowCreateResponse, type FollowDeleteAllResponse as FollowDeleteAllResponse, type FollowCreateParams as FollowCreateParams, type FollowDeleteAllParams as FollowDeleteAllParams, };
|
|
3970
4394
|
}
|
|
3971
4395
|
//# sourceMappingURL=users.d.mts.map
|