x-twitter-scraper 0.15.0 → 0.17.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 +63 -5
- package/README.md +1 -0
- package/client.d.mts +12 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/detect-platform.d.mts +3 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts +3 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/account.d.mts +5 -0
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +5 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/compose.d.mts +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/drafts.d.mts +13 -3
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -3
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +1 -1
- package/resources/drafts.mjs +1 -1
- package/resources/events.d.mts +100 -29
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +100 -29
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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 +2 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +3 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +1 -0
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +15 -65
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +15 -65
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +12 -5
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +12 -5
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +4 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +4 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +344 -0
- package/resources/monitors/posts.d.mts.map +1 -0
- package/resources/monitors/posts.d.ts +344 -0
- package/resources/monitors/posts.d.ts.map +1 -0
- package/resources/monitors/posts.js +94 -0
- package/resources/monitors/posts.js.map +1 -0
- package/resources/monitors/posts.mjs +90 -0
- package/resources/monitors/posts.mjs.map +1 -0
- package/resources/shared.d.mts +671 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +671 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +26 -25
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +26 -25
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/webhooks.d.mts +10 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +10 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +14 -4
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +14 -4
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -4
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -4
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +3 -127
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -127
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +92 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +92 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +14 -0
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +14 -0
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/community-notes.d.mts +122 -510
- package/resources/x/community-notes.d.mts.map +1 -1
- package/resources/x/community-notes.d.ts +122 -510
- package/resources/x/community-notes.d.ts.map +1 -1
- package/resources/x/community-notes.js.map +1 -1
- package/resources/x/community-notes.mjs.map +1 -1
- package/resources/x/index.d.mts +7 -6
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +7 -6
- 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/jobs.d.mts +144 -283
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -283
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts +27 -425
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +27 -425
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/media.d.mts +13 -2
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +13 -2
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +13 -4
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +13 -4
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/spaces.d.mts +213 -669
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -669
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/sports.d.mts +1349 -0
- package/resources/x/sports.d.mts.map +1 -0
- package/resources/x/sports.d.ts +1349 -0
- package/resources/x/sports.d.ts.map +1 -0
- package/resources/x/sports.js +76 -0
- package/resources/x/sports.js.map +1 -0
- package/resources/x/sports.mjs +72 -0
- package/resources/x/sports.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +32 -24
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +32 -24
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/users.d.mts +62 -614
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +62 -614
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +63 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +63 -118
- 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/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
- package/src/client.ts +12 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/internal/uploads.ts +1 -1
- package/src/resources/account.ts +6 -0
- package/src/resources/compose.ts +1 -1
- package/src/resources/drafts.ts +14 -2
- package/src/resources/events.ts +137 -29
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +15 -79
- package/src/resources/monitors/monitors.ts +52 -3
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +897 -215
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +29 -25
- package/src/resources/webhooks.ts +11 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -154
- package/src/resources/x/communities/communities.ts +113 -0
- package/src/resources/x/communities/index.ts +3 -0
- package/src/resources/x/community-notes.ts +137 -582
- package/src/resources/x/index.ts +62 -0
- package/src/resources/x/jobs.ts +160 -324
- package/src/resources/x/lists.ts +27 -499
- package/src/resources/x/media.ts +15 -2
- package/src/resources/x/profile.ts +15 -4
- package/src/resources/x/spaces.ts +227 -787
- package/src/resources/x/sports.ts +1675 -0
- package/src/resources/x/tweets/tweets.ts +41 -26
- package/src/resources/x/users/users.ts +62 -721
- package/src/resources/x/x.ts +185 -128
- 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
- package/src/lib/.keep +0 -2
package/resources/shared.d.mts
CHANGED
|
@@ -1,4 +1,136 @@
|
|
|
1
1
|
import * as Shared from "./shared.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* X broadcast, a live video
|
|
4
|
+
*/
|
|
5
|
+
export interface Broadcast {
|
|
6
|
+
/**
|
|
7
|
+
* Broadcast ID
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Camera rotation in degrees
|
|
12
|
+
*/
|
|
13
|
+
cameraRotation?: number;
|
|
14
|
+
/**
|
|
15
|
+
* X's code for who may chat
|
|
16
|
+
*/
|
|
17
|
+
chatOption?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Public X profile.
|
|
20
|
+
*/
|
|
21
|
+
creator?: UserProfile;
|
|
22
|
+
/**
|
|
23
|
+
* When the broadcast ended
|
|
24
|
+
*/
|
|
25
|
+
endedAt?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Video height in pixels
|
|
28
|
+
*/
|
|
29
|
+
height?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Whether X offers a recording of the broadcast
|
|
32
|
+
*/
|
|
33
|
+
isAvailableForReplay?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the video stream runs in high-latency mode
|
|
36
|
+
*/
|
|
37
|
+
isHighLatency?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether X marks the chat private
|
|
40
|
+
*/
|
|
41
|
+
isPrivateChat?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the broadcaster edited the title of the replay
|
|
44
|
+
*/
|
|
45
|
+
isTitleEdited?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* When the video stream last reached X
|
|
48
|
+
*/
|
|
49
|
+
lastPingAt?: string;
|
|
50
|
+
/**
|
|
51
|
+
* X's media key for the video
|
|
52
|
+
*/
|
|
53
|
+
mediaKey?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Broadcaster, as X's live video service names the account
|
|
56
|
+
*/
|
|
57
|
+
periscopeUser?: Broadcast.PeriscopeUser;
|
|
58
|
+
/**
|
|
59
|
+
* Image X shows before the broadcast starts
|
|
60
|
+
*/
|
|
61
|
+
preLiveSlateUrl?: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the broadcast was set to start
|
|
64
|
+
*/
|
|
65
|
+
scheduledStart?: string;
|
|
66
|
+
/**
|
|
67
|
+
* What produced the video stream, as X names it
|
|
68
|
+
*/
|
|
69
|
+
source?: string;
|
|
70
|
+
/**
|
|
71
|
+
* When the broadcast went live
|
|
72
|
+
*/
|
|
73
|
+
startedAt?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Such as NotStarted, Running or Ended, as X names it
|
|
76
|
+
*/
|
|
77
|
+
state?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Broadcast title
|
|
80
|
+
*/
|
|
81
|
+
title?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Accounts that watched, live or after
|
|
84
|
+
*/
|
|
85
|
+
totalWatched?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Accounts watching, as X counts them
|
|
88
|
+
*/
|
|
89
|
+
totalWatching?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
92
|
+
*/
|
|
93
|
+
tweet?: SearchTweet;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the post that announces the broadcast
|
|
96
|
+
*/
|
|
97
|
+
tweetId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* X's revision number of the broadcast
|
|
100
|
+
*/
|
|
101
|
+
version?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Video width in pixels
|
|
104
|
+
*/
|
|
105
|
+
width?: number;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace Broadcast {
|
|
108
|
+
/**
|
|
109
|
+
* Broadcaster, as X's live video service names the account
|
|
110
|
+
*/
|
|
111
|
+
interface PeriscopeUser {
|
|
112
|
+
/**
|
|
113
|
+
* Live video account ID
|
|
114
|
+
*/
|
|
115
|
+
id?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Live video display name
|
|
118
|
+
*/
|
|
119
|
+
displayName?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Live video avatar URL
|
|
122
|
+
*/
|
|
123
|
+
profilePicture?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The broadcaster's avatar at full size
|
|
126
|
+
*/
|
|
127
|
+
profilePictureOriginal?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Live video username
|
|
130
|
+
*/
|
|
131
|
+
username?: string;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
2
134
|
/**
|
|
3
135
|
* Public X Community, as every Community read returns it.
|
|
4
136
|
*/
|
|
@@ -172,6 +304,10 @@ export declare namespace Community {
|
|
|
172
304
|
* Profile picture URL of the member
|
|
173
305
|
*/
|
|
174
306
|
profilePicture?: string;
|
|
307
|
+
/**
|
|
308
|
+
* The member's profile picture at full size
|
|
309
|
+
*/
|
|
310
|
+
profilePictureOriginal?: string;
|
|
175
311
|
}
|
|
176
312
|
/**
|
|
177
313
|
* Primary topic. Its id is absent when X lists the community in a keyword or topic
|
|
@@ -287,10 +423,219 @@ export interface EmbeddedTweet {
|
|
|
287
423
|
retweetCount: number;
|
|
288
424
|
text: string;
|
|
289
425
|
viewCount: number;
|
|
426
|
+
/**
|
|
427
|
+
* Describes an X Article preview and its lifecycle metadata.
|
|
428
|
+
*/
|
|
429
|
+
article?: SearchTweet.Article;
|
|
290
430
|
/**
|
|
291
431
|
* Public X profile.
|
|
292
432
|
*/
|
|
293
433
|
author?: UserProfile;
|
|
434
|
+
/**
|
|
435
|
+
* Why the tweet has no author. X serves a suspended or deleted account as an
|
|
436
|
+
* unavailable user with a reason such as Suspended or NotFound. Omitted when the
|
|
437
|
+
* author is available.
|
|
438
|
+
*/
|
|
439
|
+
authorUnavailable?: SearchTweet.AuthorUnavailable;
|
|
440
|
+
/**
|
|
441
|
+
* Describes a public card and its referenced profiles.
|
|
442
|
+
*/
|
|
443
|
+
card?: SearchTweet.Card;
|
|
444
|
+
/**
|
|
445
|
+
* Price charts the author attached under the post, 1 per cashtag. Absent when the
|
|
446
|
+
* post has none. X may send a cashtag without a chart window.
|
|
447
|
+
*/
|
|
448
|
+
cashtagAttachments?: Array<SearchTweet.CashtagAttachment>;
|
|
449
|
+
/**
|
|
450
|
+
* Community ID.
|
|
451
|
+
*/
|
|
452
|
+
communityId?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Community name. Present when X sends it with the post.
|
|
455
|
+
*/
|
|
456
|
+
communityName?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Community Note presentation metadata returned by X.
|
|
459
|
+
*/
|
|
460
|
+
communityNote?: SearchTweet.CommunityNote;
|
|
461
|
+
/**
|
|
462
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
463
|
+
* partnership content or AI-generated media.
|
|
464
|
+
*/
|
|
465
|
+
contentDisclosure?: ContentDisclosure;
|
|
466
|
+
/**
|
|
467
|
+
* Reply policy & conversation owner.
|
|
468
|
+
*/
|
|
469
|
+
conversationControl?: SearchTweet.ConversationControl;
|
|
470
|
+
conversationId?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Author-published point, with longitude before latitude.
|
|
473
|
+
*/
|
|
474
|
+
coordinates?: SearchTweet.Coordinates;
|
|
475
|
+
createdAt?: string;
|
|
476
|
+
displayTextRange?: Array<number>;
|
|
477
|
+
/**
|
|
478
|
+
* Lists edit-chain identifiers and the remaining edit window.
|
|
479
|
+
*/
|
|
480
|
+
edit?: SearchTweet.Edit;
|
|
481
|
+
/**
|
|
482
|
+
* Lists hashtags, symbols, links, and mentions from tweet text.
|
|
483
|
+
*/
|
|
484
|
+
entities?: SearchTweet.Entities;
|
|
485
|
+
/**
|
|
486
|
+
* Marks a subscriber-only post with the creator whose subscription unlocks it.
|
|
487
|
+
* Non-subscribers get the preview text & the subscribe link. Omitted on public
|
|
488
|
+
* posts.
|
|
489
|
+
*/
|
|
490
|
+
exclusiveContent?: SearchTweet.ExclusiveContent;
|
|
491
|
+
/**
|
|
492
|
+
* Author-published point, with latitude before longitude.
|
|
493
|
+
*/
|
|
494
|
+
geo?: SearchTweet.Geo;
|
|
495
|
+
/**
|
|
496
|
+
* Public metadata whose fields are defined by X.
|
|
497
|
+
*/
|
|
498
|
+
grokShareAttachment?: {
|
|
499
|
+
[key: string]: unknown;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Grok's translation of the post, as X shows it.
|
|
503
|
+
*/
|
|
504
|
+
grokTranslatedPost?: {
|
|
505
|
+
[key: string]: unknown;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Whether X holds Community Notes on the post, shown or not.
|
|
509
|
+
*/
|
|
510
|
+
hasCommunityNotes?: boolean;
|
|
511
|
+
inReplyToId?: string;
|
|
512
|
+
inReplyToUserId?: string;
|
|
513
|
+
inReplyToUsername?: string;
|
|
514
|
+
/**
|
|
515
|
+
* The notice x.com covers the post with until the reader views it, such as X's
|
|
516
|
+
* public interest notice on a post that broke its rules but stays up.
|
|
517
|
+
*/
|
|
518
|
+
interstitial?: SearchTweet.Interstitial;
|
|
519
|
+
isLimitedReply?: boolean;
|
|
520
|
+
isNoteTweet?: boolean;
|
|
521
|
+
isPinned?: boolean;
|
|
522
|
+
isQuoteStatus?: boolean;
|
|
523
|
+
isReply?: boolean;
|
|
524
|
+
isRetweet?: boolean;
|
|
525
|
+
isTranslatable?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Public metadata whose fields are defined by X.
|
|
528
|
+
*/
|
|
529
|
+
jetfuelAttachment?: {
|
|
530
|
+
[key: string]: unknown;
|
|
531
|
+
};
|
|
532
|
+
lang?: string;
|
|
533
|
+
/**
|
|
534
|
+
* Public restrictions & prompts.
|
|
535
|
+
*/
|
|
536
|
+
limitedActions?: Array<SearchTweet.LimitedAction>;
|
|
537
|
+
/**
|
|
538
|
+
* Media, omitted when unavailable.
|
|
539
|
+
*/
|
|
540
|
+
media?: Array<TweetMedia>;
|
|
541
|
+
/**
|
|
542
|
+
* Complete Note Tweet content and rich-text metadata.
|
|
543
|
+
*/
|
|
544
|
+
noteTweet?: SearchTweet.NoteTweet;
|
|
545
|
+
/**
|
|
546
|
+
* The post this one replies to, with the same fields.
|
|
547
|
+
*/
|
|
548
|
+
parentTweet?: EmbeddedTweet;
|
|
549
|
+
/**
|
|
550
|
+
* Describes public place metadata on a geotagged tweet.
|
|
551
|
+
*/
|
|
552
|
+
place?: SearchTweet.Place;
|
|
553
|
+
possiblySensitive?: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* Public metadata whose fields are defined by X.
|
|
556
|
+
*/
|
|
557
|
+
postCta?: {
|
|
558
|
+
[key: string]: unknown;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Engagement counts retained from a prior tweet edit.
|
|
562
|
+
*/
|
|
563
|
+
previousCounts?: SearchTweet.PreviousCounts;
|
|
564
|
+
/**
|
|
565
|
+
* The post this one quotes, with the same fields.
|
|
566
|
+
*/
|
|
567
|
+
quoted_tweet?: EmbeddedTweet;
|
|
568
|
+
quotedTweetId?: string;
|
|
569
|
+
/**
|
|
570
|
+
* The quoted post's link, kept when X withholds that post.
|
|
571
|
+
*/
|
|
572
|
+
quotedTweetPermalink?: SearchTweet.QuotedTweetPermalink;
|
|
573
|
+
/**
|
|
574
|
+
* Why X shows no quoted post. Omitted when X names no reason, as its legacy
|
|
575
|
+
* answers never do.
|
|
576
|
+
*/
|
|
577
|
+
quotedTweetUnavailable?: SearchTweet.QuotedTweetUnavailable;
|
|
578
|
+
/**
|
|
579
|
+
* Public post & user this reaction references.
|
|
580
|
+
*/
|
|
581
|
+
reactionContext?: SearchTweet.ReactionContext;
|
|
582
|
+
/**
|
|
583
|
+
* The post this one reposts, with the same fields.
|
|
584
|
+
*/
|
|
585
|
+
retweeted_tweet?: EmbeddedTweet;
|
|
586
|
+
/**
|
|
587
|
+
* Repost event time in UTC. Null when unavailable. Omitted for other posts.
|
|
588
|
+
*/
|
|
589
|
+
retweetedAt?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
* Public metadata whose fields are defined by X.
|
|
592
|
+
*/
|
|
593
|
+
scopes?: {
|
|
594
|
+
[key: string]: unknown;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* The label X shows under a post whose reach it limits. It links to the page that
|
|
598
|
+
* explains it.
|
|
599
|
+
*/
|
|
600
|
+
softIntervention?: SoftIntervention;
|
|
601
|
+
/**
|
|
602
|
+
* The app the post was sent from, as X labels it. X sends it for some posts only.
|
|
603
|
+
*/
|
|
604
|
+
source?: string;
|
|
605
|
+
/**
|
|
606
|
+
* Game metadata attached to this post.
|
|
607
|
+
*/
|
|
608
|
+
sportsContext?: SearchTweet.SportsContext;
|
|
609
|
+
/**
|
|
610
|
+
* The Subscriber badge X shows on a reply. The reply's author subscribes to the
|
|
611
|
+
* creator who started the conversation. Omitted on a post without the badge.
|
|
612
|
+
*/
|
|
613
|
+
subscriberBadge?: SearchTweet.SubscriberBadge;
|
|
614
|
+
/**
|
|
615
|
+
* Where `text` matches the search, on each row a search read. Offsets count code
|
|
616
|
+
* points of `text`, as `displayTextRange` does. Empty when X marks nothing in the
|
|
617
|
+
* post. X marks matches only in a post's first 280 characters.
|
|
618
|
+
*/
|
|
619
|
+
textHighlights?: Array<SearchTweet.TextHighlight>;
|
|
620
|
+
/**
|
|
621
|
+
* Public visibility notice attached to an available tweet.
|
|
622
|
+
*/
|
|
623
|
+
tombstone?: SearchTweet.Tombstone;
|
|
624
|
+
type?: string;
|
|
625
|
+
/**
|
|
626
|
+
* The author's ID when X withholds the author's profile.
|
|
627
|
+
*/
|
|
628
|
+
unavailableAuthorId?: string;
|
|
629
|
+
/**
|
|
630
|
+
* X did not send these counts, so each 0 means unknown.
|
|
631
|
+
*/
|
|
632
|
+
unknownCounts?: Array<'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'>;
|
|
633
|
+
/**
|
|
634
|
+
* User IDs that left this conversation.
|
|
635
|
+
*/
|
|
636
|
+
unmentionedUserIds?: Array<string>;
|
|
637
|
+
url?: string;
|
|
638
|
+
viewState?: string;
|
|
294
639
|
[k: string]: unknown;
|
|
295
640
|
}
|
|
296
641
|
/**
|
|
@@ -298,7 +643,7 @@ export interface EmbeddedTweet {
|
|
|
298
643
|
* `xquik-api-contract: 2026-04-29` for the structured best-practice error object.
|
|
299
644
|
*/
|
|
300
645
|
export interface Error {
|
|
301
|
-
error:
|
|
646
|
+
error: Error.Code | Error.StructuredError;
|
|
302
647
|
/**
|
|
303
648
|
* With unknown_field: the valid names where the first unknown name in fields or
|
|
304
649
|
* omit stopped.
|
|
@@ -330,8 +675,9 @@ export interface Error {
|
|
|
330
675
|
retryAfterMs?: number;
|
|
331
676
|
}
|
|
332
677
|
export declare namespace Error {
|
|
678
|
+
type Code = 'internal_error' | 'account_already_connected' | 'account_needs_reauth' | 'account_not_found' | 'account_required' | 'account_restricted' | 'api_key_limit_reached' | 'article_not_found' | 'closed' | 'dm_not_permitted' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_media_url' | 'invalid_message_id' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_user_id' | 'invalid_user_ids' | 'invalid_username' | 'invalid_json' | 'insufficient_credits' | 'job_not_found' | 'login_cooldown' | 'login_failed' | 'media_download_failed' | 'media_too_large' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'monitor_profile_unavailable' | 'no_media' | 'no_credits' | 'no_subscription' | 'not_found' | 'payment_failed' | 'rate_limit_exceeded' | 'service_unavailable' | 'session_required' | 'style_not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'unsupported_field' | 'user_not_found' | 'body_too_large' | 'bookmark_folders_unavailable' | 'broadcast_not_found' | 'checkout_unavailable' | 'connection_challenge_expired' | 'connection_challenge_inactive' | 'contributor_not_found' | 'coverage_cursor_gone' | 'coverage_cursor_unavailable' | 'cursor_account_unavailable' | 'draft_not_found' | 'draw_too_large' | 'expired' | 'favoriters_unavailable' | 'forbidden' | 'guest_wallet_unavailable' | 'guest_wallets_disabled' | 'guest_wallets_unavailable' | 'idempotency_conflict' | 'idempotency_in_progress' | 'idempotency_key_conflict' | 'invalid_broadcast_id' | 'invalid_community_id' | 'invalid_community_topic' | 'invalid_complete_replies_request' | 'invalid_contributor_alias' | 'invalid_coverage_cursor' | 'invalid_coverage_request' | 'invalid_cursor' | 'invalid_idempotency_key' | 'invalid_job_filter' | 'invalid_job_id' | 'invalid_list_id' | 'invalid_news_id' | 'invalid_output_options' | 'invalid_payment_amount' | 'invalid_range' | 'invalid_reply_options' | 'invalid_space_id' | 'likes_unavailable' | 'list_not_found' | 'login_rate_limited' | 'login_service_unavailable' | 'missing_idempotency_key' | 'missing_ids' | 'missing_url' | 'news_not_found' | 'no_cached_style' | 'pagination_stalled' | 'passkey_required' | 'rate_limited' | 'read_request_timeout' | 'replay_unavailable' | 'replies_incomplete' | 'retweeters_incomplete' | 'search_unavailable' | 'space_canceled' | 'space_not_ended' | 'support_media_rate_limit' | 'support_request_rate_limit' | 'telegram_unavailable' | 'too_many_ids' | 'too_many_streams' | 'too_many_tweets' | 'topup_in_progress' | 'unknown_field' | 'unsupported_media_combination' | 'unsupported_media_type' | 'webhook_inactive' | 'write_tracking_unavailable' | 'x_write_unconfirmed' | 'x_account_feature_required' | 'x_account_protected' | 'x_account_suspended' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized' | 'x_auth_failure' | 'x_automation_refused' | 'x_community_not_joined' | 'x_community_not_selectable' | 'x_community_post_public' | 'x_community_post_removed' | 'x_content_too_long' | 'x_daily_limit' | 'x_dm_not_allowed' | 'x_dm_not_deleted' | 'x_dm_not_sent' | 'x_duplicate_action' | 'x_login_auth_failed' | 'x_login_challenge' | 'x_login_denied' | 'x_login_failed' | 'x_login_rate_limited' | 'x_login_service_unavailable' | 'x_login_suspended' | 'x_image_invalid' | 'x_media_rejected' | 'x_post_not_sent' | 'x_rate_limited' | 'x_rejected' | 'x_reply_not_allowed' | 'x_reply_target_unavailable' | 'x_target_not_found' | 'x_transient_error' | 'x_user_lookup_failed' | 'x_video_too_large' | 'x_write_ambiguous' | 'x_write_failed';
|
|
333
679
|
interface StructuredError {
|
|
334
|
-
code:
|
|
680
|
+
code: Code;
|
|
335
681
|
message: string;
|
|
336
682
|
type: 'api_error' | 'authentication_error' | 'billing_error' | 'dependency_error' | 'invalid_request_error' | 'permission_error' | 'rate_limit_error';
|
|
337
683
|
}
|
|
@@ -359,12 +705,57 @@ export declare namespace Error {
|
|
|
359
705
|
* Type of monitor event fired when account activity occurs. tweet.deleted fires
|
|
360
706
|
* once X confirms the account deleted a post the monitor saw. Its data is the post
|
|
361
707
|
* as last seen. broadcast.started & space.started fire when the account posts its
|
|
362
|
-
* running live video or Space. Their data is that post.
|
|
363
|
-
*
|
|
364
|
-
* follows or unfollows someone, with that account's profile.
|
|
365
|
-
*
|
|
708
|
+
* running live video or Space. Their data is that post. Xquik misses a live video
|
|
709
|
+
* the account does not post. following.added & following.removed fire when the
|
|
710
|
+
* account follows or unfollows someone, with that account's profile.
|
|
711
|
+
* follower.added & follower.removed fire when someone follows the account or
|
|
712
|
+
* leaves its followers, with that account's profile. Xquik names lost followers
|
|
713
|
+
* for accounts with up to 100,000 followers. profile.followers.changed &
|
|
714
|
+
* profile.following.changed fire when the account's follower or following count
|
|
715
|
+
* moves, at most once a minute each. X shows counts that differ by a few between
|
|
716
|
+
* reads, so a monitor holds the lowest. A fall counts once 2 reads show it, & a
|
|
717
|
+
* rise once no read for a minute showed less. Keyword monitors take the 10 post
|
|
718
|
+
* types only.
|
|
366
719
|
*/
|
|
367
|
-
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote' | 'tweet.media' | 'tweet.link' | 'tweet.poll' | 'tweet.mention' | 'tweet.hashtag' | 'tweet.longform' | 'profile.avatar.changed' | 'profile.banner.changed' | 'profile.name.changed' | 'profile.username.changed' | 'profile.bio.changed' | 'profile.location.changed' | 'profile.url.changed' | 'profile.verified.changed' | 'profile.protected.changed' | 'profile.pinned_tweet.changed' | 'profile.unavailable.changed' | 'tweet.deleted' | 'broadcast.started' | 'space.started' | 'following.added' | 'following.removed';
|
|
720
|
+
export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote' | 'tweet.media' | 'tweet.link' | 'tweet.poll' | 'tweet.mention' | 'tweet.hashtag' | 'tweet.longform' | 'profile.avatar.changed' | 'profile.banner.changed' | 'profile.name.changed' | 'profile.username.changed' | 'profile.bio.changed' | 'profile.location.changed' | 'profile.url.changed' | 'profile.verified.changed' | 'profile.protected.changed' | 'profile.pinned_tweet.changed' | 'profile.unavailable.changed' | 'tweet.deleted' | 'broadcast.started' | 'space.started' | 'following.added' | 'following.removed' | 'follower.added' | 'follower.removed' | 'profile.followers.changed' | 'profile.following.changed';
|
|
721
|
+
/**
|
|
722
|
+
* The other account of a following or follower event, with the profile fields a
|
|
723
|
+
* user lookup returns. It holds the ID alone when X fails the profile lookup.
|
|
724
|
+
*/
|
|
725
|
+
export interface MonitorFollow {
|
|
726
|
+
/**
|
|
727
|
+
* The other account's X user ID.
|
|
728
|
+
*/
|
|
729
|
+
id: string;
|
|
730
|
+
/**
|
|
731
|
+
* X's time of the follow, on following.added & follower.added. It is missing when
|
|
732
|
+
* X gives none, as for an account that returns to a list.
|
|
733
|
+
*/
|
|
734
|
+
followedAt?: string;
|
|
735
|
+
/**
|
|
736
|
+
* Whether followedAt is X's exact time of this follow. When several accounts join
|
|
737
|
+
* between 2 checks, X times the first, the second & the last. Each other one holds
|
|
738
|
+
* the earliest time its follow can have, with false here.
|
|
739
|
+
*/
|
|
740
|
+
followedAtExact?: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* Why the account left the list, on following.removed & follower.removed.
|
|
743
|
+
* unavailable means X no longer serves the account. unfollowed means X's follow
|
|
744
|
+
* check says the follow ended. It is missing when X fails the check. Xquik sends no
|
|
745
|
+
* removal while X still confirms the follow.
|
|
746
|
+
*/
|
|
747
|
+
reason?: 'unavailable' | 'unfollowed';
|
|
748
|
+
[k: string]: unknown;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* 1 page of public X Lists. Follow next_cursor while the response reports more
|
|
752
|
+
* pages. Each returned List costs 1 credit.
|
|
753
|
+
*/
|
|
754
|
+
export interface PaginatedLists {
|
|
755
|
+
has_next_page: boolean;
|
|
756
|
+
lists: Array<XList>;
|
|
757
|
+
next_cursor: string;
|
|
758
|
+
}
|
|
368
759
|
/**
|
|
369
760
|
* Follow next_cursor while the response reports more pages. A page can hold fewer
|
|
370
761
|
* rows than its limit & still report more. That report decides, not the row count.
|
|
@@ -430,6 +821,18 @@ export declare namespace PaginatedTweets {
|
|
|
430
821
|
}
|
|
431
822
|
}
|
|
432
823
|
}
|
|
824
|
+
/**
|
|
825
|
+
* A page of user IDs without profiles. Follow next_cursor while the response
|
|
826
|
+
* reports more pages.
|
|
827
|
+
*/
|
|
828
|
+
export interface PaginatedUserIds {
|
|
829
|
+
has_next_page: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* X user IDs, newest relationship first.
|
|
832
|
+
*/
|
|
833
|
+
ids: Array<string>;
|
|
834
|
+
next_cursor: string;
|
|
835
|
+
}
|
|
433
836
|
/**
|
|
434
837
|
* Profile coverage preserves shape, billing, aliases, and filters. Follow
|
|
435
838
|
* next_cursor while the response reports more pages. Unprefixed cursors remain
|
|
@@ -629,6 +1032,11 @@ export interface SearchTweet {
|
|
|
629
1032
|
scopes?: {
|
|
630
1033
|
[key: string]: unknown;
|
|
631
1034
|
};
|
|
1035
|
+
/**
|
|
1036
|
+
* The label X shows under a post whose reach it limits. It links to the page that
|
|
1037
|
+
* explains it.
|
|
1038
|
+
*/
|
|
1039
|
+
softIntervention?: SoftIntervention;
|
|
632
1040
|
/**
|
|
633
1041
|
* The app the post was sent from, as X labels it. X sends it for some posts only.
|
|
634
1042
|
*/
|
|
@@ -657,6 +1065,10 @@ export interface SearchTweet {
|
|
|
657
1065
|
* The author's ID when X withholds the author's profile.
|
|
658
1066
|
*/
|
|
659
1067
|
unavailableAuthorId?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* X did not send these counts, so each 0 means unknown.
|
|
1070
|
+
*/
|
|
1071
|
+
unknownCounts?: Array<'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'>;
|
|
660
1072
|
/**
|
|
661
1073
|
* User IDs that left this conversation.
|
|
662
1074
|
*/
|
|
@@ -1077,6 +1489,8 @@ export declare namespace SearchTweet {
|
|
|
1077
1489
|
}
|
|
1078
1490
|
namespace Entity {
|
|
1079
1491
|
interface Ref {
|
|
1492
|
+
screenName?: string;
|
|
1493
|
+
text?: string;
|
|
1080
1494
|
type?: string;
|
|
1081
1495
|
url?: string;
|
|
1082
1496
|
urlType?: string;
|
|
@@ -1547,6 +1961,8 @@ export declare namespace SearchTweet {
|
|
|
1547
1961
|
}
|
|
1548
1962
|
namespace Entity {
|
|
1549
1963
|
interface Ref {
|
|
1964
|
+
screenName?: string;
|
|
1965
|
+
text?: string;
|
|
1550
1966
|
type?: string;
|
|
1551
1967
|
url?: string;
|
|
1552
1968
|
urlType?: string;
|
|
@@ -1555,6 +1971,70 @@ export declare namespace SearchTweet {
|
|
|
1555
1971
|
}
|
|
1556
1972
|
}
|
|
1557
1973
|
}
|
|
1974
|
+
/**
|
|
1975
|
+
* The label X shows under a post whose reach it limits. It links to the page that
|
|
1976
|
+
* explains it.
|
|
1977
|
+
*/
|
|
1978
|
+
export interface SoftIntervention {
|
|
1979
|
+
/**
|
|
1980
|
+
* The label's kind. `Fosnr` marks a post X keeps up but shows to fewer people.
|
|
1981
|
+
*/
|
|
1982
|
+
displayType?: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Whether X prompts readers before they engage with the post.
|
|
1985
|
+
*/
|
|
1986
|
+
engagementNudge?: boolean;
|
|
1987
|
+
text?: SoftIntervention.Text;
|
|
1988
|
+
/**
|
|
1989
|
+
* The page that explains the label.
|
|
1990
|
+
*/
|
|
1991
|
+
url?: SoftIntervention.URL;
|
|
1992
|
+
}
|
|
1993
|
+
export declare namespace SoftIntervention {
|
|
1994
|
+
interface Text {
|
|
1995
|
+
/**
|
|
1996
|
+
* Links inside the label, by character range.
|
|
1997
|
+
*/
|
|
1998
|
+
entities?: Array<Text.Entity>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Whether the label reads right to left.
|
|
2001
|
+
*/
|
|
2002
|
+
rtl?: boolean;
|
|
2003
|
+
/**
|
|
2004
|
+
* The label's text.
|
|
2005
|
+
*/
|
|
2006
|
+
text?: string;
|
|
2007
|
+
}
|
|
2008
|
+
namespace Text {
|
|
2009
|
+
interface Entity {
|
|
2010
|
+
/**
|
|
2011
|
+
* Position in the label's text where the entity starts, counted from 0.
|
|
2012
|
+
*/
|
|
2013
|
+
fromIndex?: number;
|
|
2014
|
+
ref?: Entity.Ref;
|
|
2015
|
+
/**
|
|
2016
|
+
* Position in the label's text where the entity ends, counted from 0.
|
|
2017
|
+
*/
|
|
2018
|
+
toIndex?: number;
|
|
2019
|
+
}
|
|
2020
|
+
namespace Entity {
|
|
2021
|
+
interface Ref {
|
|
2022
|
+
screenName?: string;
|
|
2023
|
+
text?: string;
|
|
2024
|
+
type?: string;
|
|
2025
|
+
url?: string;
|
|
2026
|
+
urlType?: string;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* The page that explains the label.
|
|
2032
|
+
*/
|
|
2033
|
+
interface URL {
|
|
2034
|
+
url?: string;
|
|
2035
|
+
urlType?: string;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
1558
2038
|
/**
|
|
1559
2039
|
* Tweet media.
|
|
1560
2040
|
*/
|
|
@@ -1776,6 +2256,40 @@ export declare namespace TweetMedia {
|
|
|
1776
2256
|
bitrate?: number;
|
|
1777
2257
|
}
|
|
1778
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
* A relationship page. A filtered read's last page may name the scan limit that
|
|
2261
|
+
* ended it.
|
|
2262
|
+
*/
|
|
2263
|
+
export interface UserListPage extends PaginatedUsers {
|
|
2264
|
+
/**
|
|
2265
|
+
* Present on the last page of a filtered automatic read that sent no maxScan,
|
|
2266
|
+
* once the list scanned 100,000 profiles across its pages. That page is the
|
|
2267
|
+
* list's last.
|
|
2268
|
+
*/
|
|
2269
|
+
scanLimit?: UserListPage.ScanLimit;
|
|
2270
|
+
}
|
|
2271
|
+
export declare namespace UserListPage {
|
|
2272
|
+
/**
|
|
2273
|
+
* Present on the last page of a filtered automatic read that sent no maxScan,
|
|
2274
|
+
* once the list scanned 100,000 profiles across its pages. That page is the
|
|
2275
|
+
* list's last.
|
|
2276
|
+
*/
|
|
2277
|
+
interface ScanLimit {
|
|
2278
|
+
/**
|
|
2279
|
+
* The profiles a filtered read scans of a list without maxScan.
|
|
2280
|
+
*/
|
|
2281
|
+
limit: 100000;
|
|
2282
|
+
/**
|
|
2283
|
+
* What stopped the list & how to read further.
|
|
2284
|
+
*/
|
|
2285
|
+
message: string;
|
|
2286
|
+
/**
|
|
2287
|
+
* Profiles the list read across its pages, kept or dropped by the filters. The
|
|
2288
|
+
* last page may read past the limit.
|
|
2289
|
+
*/
|
|
2290
|
+
rowsRead: number;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
1779
2293
|
/**
|
|
1780
2294
|
* Public X profile.
|
|
1781
2295
|
*/
|
|
@@ -1955,12 +2469,23 @@ export interface UserProfile {
|
|
|
1955
2469
|
profileImageShape?: string;
|
|
1956
2470
|
profileInterstitialType?: string;
|
|
1957
2471
|
profilePicture?: string;
|
|
2472
|
+
/**
|
|
2473
|
+
* The same profile picture at full size, as the account uploaded it. Download this
|
|
2474
|
+
* one for the image.
|
|
2475
|
+
*/
|
|
2476
|
+
profilePictureOriginal?: string;
|
|
1958
2477
|
profileSortEnabled?: boolean;
|
|
1959
2478
|
profileTranslatorType?: string;
|
|
1960
2479
|
/**
|
|
1961
2480
|
* Whether the profile protects its posts
|
|
1962
2481
|
*/
|
|
1963
2482
|
protected?: boolean;
|
|
2483
|
+
/**
|
|
2484
|
+
* Handle x.com sends this profile's visitors to, such as the new handle of a
|
|
2485
|
+
* renamed account whose old handle now holds a placeholder. Missing when x.com
|
|
2486
|
+
* shows the profile itself.
|
|
2487
|
+
*/
|
|
2488
|
+
redirectsToUsername?: string;
|
|
1964
2489
|
/**
|
|
1965
2490
|
* UTC repost time with includeRetweetTimestamp. Null if the newest profile page
|
|
1966
2491
|
* has no match or lookup failed; otherwise omitted.
|
|
@@ -2118,6 +2643,10 @@ export declare namespace UserProfile {
|
|
|
2118
2643
|
* Whether the owner verified their ID with X.
|
|
2119
2644
|
*/
|
|
2120
2645
|
isIdentityVerified?: boolean;
|
|
2646
|
+
/**
|
|
2647
|
+
* The year X shows as the start of verification, in place of verifiedSinceMsec.
|
|
2648
|
+
*/
|
|
2649
|
+
overrideVerifiedYear?: number;
|
|
2121
2650
|
/**
|
|
2122
2651
|
* When X verified the account, in milliseconds since 1970, as text.
|
|
2123
2652
|
*/
|
|
@@ -2175,4 +2704,139 @@ export declare namespace UserProfile {
|
|
|
2175
2704
|
}
|
|
2176
2705
|
}
|
|
2177
2706
|
}
|
|
2707
|
+
/**
|
|
2708
|
+
* Public X List with its owner's public profile. Leaves out what X tells the
|
|
2709
|
+
* reading account, such as whether it follows the List.
|
|
2710
|
+
*/
|
|
2711
|
+
export interface XList {
|
|
2712
|
+
/**
|
|
2713
|
+
* Numeric ID of the List.
|
|
2714
|
+
*/
|
|
2715
|
+
id: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* Name the owner gave the List.
|
|
2718
|
+
*/
|
|
2719
|
+
name: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* URL of the banner the owner uploaded. Absent when the owner uploaded none.
|
|
2722
|
+
*/
|
|
2723
|
+
bannerUrl?: string;
|
|
2724
|
+
/**
|
|
2725
|
+
* When the owner made the List.
|
|
2726
|
+
*/
|
|
2727
|
+
createdAt?: string;
|
|
2728
|
+
/**
|
|
2729
|
+
* Banner the owner uploaded.
|
|
2730
|
+
*/
|
|
2731
|
+
customBanner?: XListBanner;
|
|
2732
|
+
/**
|
|
2733
|
+
* Banner X shows when the owner uploaded none. X picks it per reading account, so
|
|
2734
|
+
* 2 calls can return different ones.
|
|
2735
|
+
*/
|
|
2736
|
+
defaultBanner?: XListBanner;
|
|
2737
|
+
/**
|
|
2738
|
+
* About text of the List. Empty when the owner wrote none.
|
|
2739
|
+
*/
|
|
2740
|
+
description?: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* Avatar URLs of a few List members, which X may pick per request.
|
|
2743
|
+
*/
|
|
2744
|
+
facepileUrls?: Array<string>;
|
|
2745
|
+
/**
|
|
2746
|
+
* Accounts on the List.
|
|
2747
|
+
*/
|
|
2748
|
+
memberCount?: number;
|
|
2749
|
+
/**
|
|
2750
|
+
* Member count as X words it, such as 35 members.
|
|
2751
|
+
*/
|
|
2752
|
+
membersContext?: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* Public profile of the account that owns the List.
|
|
2755
|
+
*/
|
|
2756
|
+
owner?: UserProfile;
|
|
2757
|
+
/**
|
|
2758
|
+
* Accounts that follow the List, which X calls followers.
|
|
2759
|
+
*/
|
|
2760
|
+
subscriberCount?: number;
|
|
2761
|
+
/**
|
|
2762
|
+
* List page on x.com.
|
|
2763
|
+
*/
|
|
2764
|
+
url?: string;
|
|
2765
|
+
}
|
|
2766
|
+
/**
|
|
2767
|
+
* Banner image of an X List.
|
|
2768
|
+
*/
|
|
2769
|
+
export interface XListBanner {
|
|
2770
|
+
/**
|
|
2771
|
+
* Banner image URL.
|
|
2772
|
+
*/
|
|
2773
|
+
url: string;
|
|
2774
|
+
/**
|
|
2775
|
+
* Banner height in pixels.
|
|
2776
|
+
*/
|
|
2777
|
+
height?: number;
|
|
2778
|
+
/**
|
|
2779
|
+
* Media ID of an uploaded banner.
|
|
2780
|
+
*/
|
|
2781
|
+
mediaId?: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Stable media key of an uploaded banner.
|
|
2784
|
+
*/
|
|
2785
|
+
mediaKey?: string;
|
|
2786
|
+
/**
|
|
2787
|
+
* Dominant colors of an uploaded banner and their shares.
|
|
2788
|
+
*/
|
|
2789
|
+
palette?: Array<XListBanner.Palette>;
|
|
2790
|
+
/**
|
|
2791
|
+
* Area X marks as the subject of the banner, in pixels.
|
|
2792
|
+
*/
|
|
2793
|
+
salientRect?: XListBanner.SalientRect;
|
|
2794
|
+
/**
|
|
2795
|
+
* Banner width in pixels.
|
|
2796
|
+
*/
|
|
2797
|
+
width?: number;
|
|
2798
|
+
}
|
|
2799
|
+
export declare namespace XListBanner {
|
|
2800
|
+
interface Palette {
|
|
2801
|
+
/**
|
|
2802
|
+
* Share of the banner, from 0 to 100.
|
|
2803
|
+
*/
|
|
2804
|
+
percentage?: number;
|
|
2805
|
+
/**
|
|
2806
|
+
* The color's red, green and blue values.
|
|
2807
|
+
*/
|
|
2808
|
+
rgb?: Palette.Rgb;
|
|
2809
|
+
}
|
|
2810
|
+
namespace Palette {
|
|
2811
|
+
/**
|
|
2812
|
+
* The color's red, green and blue values.
|
|
2813
|
+
*/
|
|
2814
|
+
interface Rgb {
|
|
2815
|
+
blue?: number;
|
|
2816
|
+
green?: number;
|
|
2817
|
+
red?: number;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
/**
|
|
2821
|
+
* Area X marks as the subject of the banner, in pixels.
|
|
2822
|
+
*/
|
|
2823
|
+
interface SalientRect {
|
|
2824
|
+
/**
|
|
2825
|
+
* Height of the marked area.
|
|
2826
|
+
*/
|
|
2827
|
+
height?: number;
|
|
2828
|
+
/**
|
|
2829
|
+
* Pixels from the banner's left.
|
|
2830
|
+
*/
|
|
2831
|
+
left?: number;
|
|
2832
|
+
/**
|
|
2833
|
+
* Pixels from the banner's top.
|
|
2834
|
+
*/
|
|
2835
|
+
top?: number;
|
|
2836
|
+
/**
|
|
2837
|
+
* Width of the marked area.
|
|
2838
|
+
*/
|
|
2839
|
+
width?: number;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2178
2842
|
//# sourceMappingURL=shared.d.mts.map
|