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.
Files changed (238) hide show
  1. package/CHANGELOG.md +63 -5
  2. package/README.md +1 -0
  3. package/client.d.mts +12 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/detect-platform.d.mts +3 -1
  10. package/internal/detect-platform.d.mts.map +1 -1
  11. package/internal/detect-platform.d.ts +3 -1
  12. package/internal/detect-platform.d.ts.map +1 -1
  13. package/internal/detect-platform.js +1 -1
  14. package/internal/detect-platform.js.map +1 -1
  15. package/internal/detect-platform.mjs +1 -1
  16. package/internal/detect-platform.mjs.map +1 -1
  17. package/internal/uploads.js +1 -1
  18. package/internal/uploads.js.map +1 -1
  19. package/internal/uploads.mjs +1 -1
  20. package/internal/uploads.mjs.map +1 -1
  21. package/package.json +2 -2
  22. package/resources/account.d.mts +5 -0
  23. package/resources/account.d.mts.map +1 -1
  24. package/resources/account.d.ts +5 -0
  25. package/resources/account.d.ts.map +1 -1
  26. package/resources/compose.d.mts +1 -1
  27. package/resources/compose.d.mts.map +1 -1
  28. package/resources/compose.d.ts +1 -1
  29. package/resources/compose.d.ts.map +1 -1
  30. package/resources/drafts.d.mts +13 -3
  31. package/resources/drafts.d.mts.map +1 -1
  32. package/resources/drafts.d.ts +13 -3
  33. package/resources/drafts.d.ts.map +1 -1
  34. package/resources/drafts.js +1 -1
  35. package/resources/drafts.mjs +1 -1
  36. package/resources/events.d.mts +100 -29
  37. package/resources/events.d.mts.map +1 -1
  38. package/resources/events.d.ts +100 -29
  39. package/resources/events.d.ts.map +1 -1
  40. package/resources/events.js.map +1 -1
  41. package/resources/events.mjs.map +1 -1
  42. package/resources/index.d.mts +2 -2
  43. package/resources/index.d.mts.map +1 -1
  44. package/resources/index.d.ts +2 -2
  45. package/resources/index.d.ts.map +1 -1
  46. package/resources/index.js.map +1 -1
  47. package/resources/index.mjs.map +1 -1
  48. package/resources/monitors/index.d.mts +2 -1
  49. package/resources/monitors/index.d.mts.map +1 -1
  50. package/resources/monitors/index.d.ts +2 -1
  51. package/resources/monitors/index.d.ts.map +1 -1
  52. package/resources/monitors/index.js +3 -1
  53. package/resources/monitors/index.js.map +1 -1
  54. package/resources/monitors/index.mjs +1 -0
  55. package/resources/monitors/index.mjs.map +1 -1
  56. package/resources/monitors/keywords.d.mts +15 -65
  57. package/resources/monitors/keywords.d.mts.map +1 -1
  58. package/resources/monitors/keywords.d.ts +15 -65
  59. package/resources/monitors/keywords.d.ts.map +1 -1
  60. package/resources/monitors/monitors.d.mts +12 -5
  61. package/resources/monitors/monitors.d.mts.map +1 -1
  62. package/resources/monitors/monitors.d.ts +12 -5
  63. package/resources/monitors/monitors.d.ts.map +1 -1
  64. package/resources/monitors/monitors.js +4 -0
  65. package/resources/monitors/monitors.js.map +1 -1
  66. package/resources/monitors/monitors.mjs +4 -0
  67. package/resources/monitors/monitors.mjs.map +1 -1
  68. package/resources/monitors/posts.d.mts +344 -0
  69. package/resources/monitors/posts.d.mts.map +1 -0
  70. package/resources/monitors/posts.d.ts +344 -0
  71. package/resources/monitors/posts.d.ts.map +1 -0
  72. package/resources/monitors/posts.js +94 -0
  73. package/resources/monitors/posts.js.map +1 -0
  74. package/resources/monitors/posts.mjs +90 -0
  75. package/resources/monitors/posts.mjs.map +1 -0
  76. package/resources/shared.d.mts +671 -7
  77. package/resources/shared.d.mts.map +1 -1
  78. package/resources/shared.d.ts +671 -7
  79. package/resources/shared.d.ts.map +1 -1
  80. package/resources/support/index.d.mts +1 -1
  81. package/resources/support/index.d.mts.map +1 -1
  82. package/resources/support/index.d.ts +1 -1
  83. package/resources/support/index.d.ts.map +1 -1
  84. package/resources/support/index.js.map +1 -1
  85. package/resources/support/index.mjs.map +1 -1
  86. package/resources/support/support.d.mts +2 -2
  87. package/resources/support/support.d.mts.map +1 -1
  88. package/resources/support/support.d.ts +2 -2
  89. package/resources/support/support.d.ts.map +1 -1
  90. package/resources/support/support.js.map +1 -1
  91. package/resources/support/support.mjs.map +1 -1
  92. package/resources/support/tickets.d.mts +26 -25
  93. package/resources/support/tickets.d.mts.map +1 -1
  94. package/resources/support/tickets.d.ts +26 -25
  95. package/resources/support/tickets.d.ts.map +1 -1
  96. package/resources/support/tickets.js.map +1 -1
  97. package/resources/support/tickets.mjs.map +1 -1
  98. package/resources/webhooks.d.mts +10 -4
  99. package/resources/webhooks.d.mts.map +1 -1
  100. package/resources/webhooks.d.ts +10 -4
  101. package/resources/webhooks.d.ts.map +1 -1
  102. package/resources/webhooks.js.map +1 -1
  103. package/resources/webhooks.mjs.map +1 -1
  104. package/resources/x/accounts.d.mts +14 -4
  105. package/resources/x/accounts.d.mts.map +1 -1
  106. package/resources/x/accounts.d.ts +14 -4
  107. package/resources/x/accounts.d.ts.map +1 -1
  108. package/resources/x/accounts.js +6 -4
  109. package/resources/x/accounts.js.map +1 -1
  110. package/resources/x/accounts.mjs +6 -4
  111. package/resources/x/accounts.mjs.map +1 -1
  112. package/resources/x/broadcasts.d.mts +3 -127
  113. package/resources/x/broadcasts.d.mts.map +1 -1
  114. package/resources/x/broadcasts.d.ts +3 -127
  115. package/resources/x/broadcasts.d.ts.map +1 -1
  116. package/resources/x/communities/communities.d.mts +92 -1
  117. package/resources/x/communities/communities.d.mts.map +1 -1
  118. package/resources/x/communities/communities.d.ts +92 -1
  119. package/resources/x/communities/communities.d.ts.map +1 -1
  120. package/resources/x/communities/communities.js +14 -0
  121. package/resources/x/communities/communities.js.map +1 -1
  122. package/resources/x/communities/communities.mjs +14 -0
  123. package/resources/x/communities/communities.mjs.map +1 -1
  124. package/resources/x/communities/index.d.mts +1 -1
  125. package/resources/x/communities/index.d.mts.map +1 -1
  126. package/resources/x/communities/index.d.ts +1 -1
  127. package/resources/x/communities/index.d.ts.map +1 -1
  128. package/resources/x/communities/index.js.map +1 -1
  129. package/resources/x/communities/index.mjs.map +1 -1
  130. package/resources/x/community-notes.d.mts +122 -510
  131. package/resources/x/community-notes.d.mts.map +1 -1
  132. package/resources/x/community-notes.d.ts +122 -510
  133. package/resources/x/community-notes.d.ts.map +1 -1
  134. package/resources/x/community-notes.js.map +1 -1
  135. package/resources/x/community-notes.mjs.map +1 -1
  136. package/resources/x/index.d.mts +7 -6
  137. package/resources/x/index.d.mts.map +1 -1
  138. package/resources/x/index.d.ts +7 -6
  139. package/resources/x/index.d.ts.map +1 -1
  140. package/resources/x/index.js +3 -1
  141. package/resources/x/index.js.map +1 -1
  142. package/resources/x/index.mjs +1 -0
  143. package/resources/x/index.mjs.map +1 -1
  144. package/resources/x/jobs.d.mts +144 -283
  145. package/resources/x/jobs.d.mts.map +1 -1
  146. package/resources/x/jobs.d.ts +144 -283
  147. package/resources/x/jobs.d.ts.map +1 -1
  148. package/resources/x/jobs.js.map +1 -1
  149. package/resources/x/jobs.mjs.map +1 -1
  150. package/resources/x/lists.d.mts +27 -425
  151. package/resources/x/lists.d.mts.map +1 -1
  152. package/resources/x/lists.d.ts +27 -425
  153. package/resources/x/lists.d.ts.map +1 -1
  154. package/resources/x/media.d.mts +13 -2
  155. package/resources/x/media.d.mts.map +1 -1
  156. package/resources/x/media.d.ts +13 -2
  157. package/resources/x/media.d.ts.map +1 -1
  158. package/resources/x/media.js.map +1 -1
  159. package/resources/x/media.mjs.map +1 -1
  160. package/resources/x/profile.d.mts +13 -4
  161. package/resources/x/profile.d.mts.map +1 -1
  162. package/resources/x/profile.d.ts +13 -4
  163. package/resources/x/profile.d.ts.map +1 -1
  164. package/resources/x/profile.js.map +1 -1
  165. package/resources/x/profile.mjs.map +1 -1
  166. package/resources/x/spaces.d.mts +213 -669
  167. package/resources/x/spaces.d.mts.map +1 -1
  168. package/resources/x/spaces.d.ts +213 -669
  169. package/resources/x/spaces.d.ts.map +1 -1
  170. package/resources/x/spaces.js.map +1 -1
  171. package/resources/x/spaces.mjs.map +1 -1
  172. package/resources/x/sports.d.mts +1349 -0
  173. package/resources/x/sports.d.mts.map +1 -0
  174. package/resources/x/sports.d.ts +1349 -0
  175. package/resources/x/sports.d.ts.map +1 -0
  176. package/resources/x/sports.js +76 -0
  177. package/resources/x/sports.js.map +1 -0
  178. package/resources/x/sports.mjs +72 -0
  179. package/resources/x/sports.mjs.map +1 -0
  180. package/resources/x/tweets/tweets.d.mts +32 -24
  181. package/resources/x/tweets/tweets.d.mts.map +1 -1
  182. package/resources/x/tweets/tweets.d.ts +32 -24
  183. package/resources/x/tweets/tweets.d.ts.map +1 -1
  184. package/resources/x/tweets/tweets.js.map +1 -1
  185. package/resources/x/tweets/tweets.mjs.map +1 -1
  186. package/resources/x/users/users.d.mts +62 -614
  187. package/resources/x/users/users.d.mts.map +1 -1
  188. package/resources/x/users/users.d.ts +62 -614
  189. package/resources/x/users/users.d.ts.map +1 -1
  190. package/resources/x/users/users.js.map +1 -1
  191. package/resources/x/users/users.mjs.map +1 -1
  192. package/resources/x/x.d.mts +63 -118
  193. package/resources/x/x.d.mts.map +1 -1
  194. package/resources/x/x.d.ts +63 -118
  195. package/resources/x/x.d.ts.map +1 -1
  196. package/resources/x/x.js +4 -0
  197. package/resources/x/x.js.map +1 -1
  198. package/resources/x/x.mjs +4 -0
  199. package/resources/x/x.mjs.map +1 -1
  200. package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
  201. package/src/client.ts +12 -0
  202. package/src/internal/detect-platform.ts +2 -2
  203. package/src/internal/uploads.ts +1 -1
  204. package/src/resources/account.ts +6 -0
  205. package/src/resources/compose.ts +1 -1
  206. package/src/resources/drafts.ts +14 -2
  207. package/src/resources/events.ts +137 -29
  208. package/src/resources/index.ts +2 -0
  209. package/src/resources/monitors/index.ts +21 -0
  210. package/src/resources/monitors/keywords.ts +15 -79
  211. package/src/resources/monitors/monitors.ts +52 -3
  212. package/src/resources/monitors/posts.ts +463 -0
  213. package/src/resources/shared.ts +897 -215
  214. package/src/resources/support/index.ts +1 -0
  215. package/src/resources/support/support.ts +2 -0
  216. package/src/resources/support/tickets.ts +29 -25
  217. package/src/resources/webhooks.ts +11 -4
  218. package/src/resources/x/accounts.ts +19 -4
  219. package/src/resources/x/broadcasts.ts +3 -154
  220. package/src/resources/x/communities/communities.ts +113 -0
  221. package/src/resources/x/communities/index.ts +3 -0
  222. package/src/resources/x/community-notes.ts +137 -582
  223. package/src/resources/x/index.ts +62 -0
  224. package/src/resources/x/jobs.ts +160 -324
  225. package/src/resources/x/lists.ts +27 -499
  226. package/src/resources/x/media.ts +15 -2
  227. package/src/resources/x/profile.ts +15 -4
  228. package/src/resources/x/spaces.ts +227 -787
  229. package/src/resources/x/sports.ts +1675 -0
  230. package/src/resources/x/tweets/tweets.ts +41 -26
  231. package/src/resources/x/users/users.ts +62 -721
  232. package/src/resources/x/x.ts +185 -128
  233. package/src/version.ts +1 -1
  234. package/version.d.mts +1 -1
  235. package/version.d.ts +1 -1
  236. package/version.js +1 -1
  237. package/version.mjs +1 -1
  238. package/src/lib/.keep +0 -2
@@ -4,6 +4,168 @@
4
4
 
5
5
  import * as Shared from './shared';
6
6
 
7
+ /**
8
+ * X broadcast, a live video
9
+ */
10
+ export interface Broadcast {
11
+ /**
12
+ * Broadcast ID
13
+ */
14
+ id: string;
15
+
16
+ /**
17
+ * Camera rotation in degrees
18
+ */
19
+ cameraRotation?: number;
20
+
21
+ /**
22
+ * X's code for who may chat
23
+ */
24
+ chatOption?: number;
25
+
26
+ /**
27
+ * Public X profile.
28
+ */
29
+ creator?: UserProfile;
30
+
31
+ /**
32
+ * When the broadcast ended
33
+ */
34
+ endedAt?: string;
35
+
36
+ /**
37
+ * Video height in pixels
38
+ */
39
+ height?: number;
40
+
41
+ /**
42
+ * Whether X offers a recording of the broadcast
43
+ */
44
+ isAvailableForReplay?: boolean;
45
+
46
+ /**
47
+ * Whether the video stream runs in high-latency mode
48
+ */
49
+ isHighLatency?: boolean;
50
+
51
+ /**
52
+ * Whether X marks the chat private
53
+ */
54
+ isPrivateChat?: boolean;
55
+
56
+ /**
57
+ * Whether the broadcaster edited the title of the replay
58
+ */
59
+ isTitleEdited?: boolean;
60
+
61
+ /**
62
+ * When the video stream last reached X
63
+ */
64
+ lastPingAt?: string;
65
+
66
+ /**
67
+ * X's media key for the video
68
+ */
69
+ mediaKey?: string;
70
+
71
+ /**
72
+ * Broadcaster, as X's live video service names the account
73
+ */
74
+ periscopeUser?: Broadcast.PeriscopeUser;
75
+
76
+ /**
77
+ * Image X shows before the broadcast starts
78
+ */
79
+ preLiveSlateUrl?: string;
80
+
81
+ /**
82
+ * When the broadcast was set to start
83
+ */
84
+ scheduledStart?: string;
85
+
86
+ /**
87
+ * What produced the video stream, as X names it
88
+ */
89
+ source?: string;
90
+
91
+ /**
92
+ * When the broadcast went live
93
+ */
94
+ startedAt?: string;
95
+
96
+ /**
97
+ * Such as NotStarted, Running or Ended, as X names it
98
+ */
99
+ state?: string;
100
+
101
+ /**
102
+ * Broadcast title
103
+ */
104
+ title?: string;
105
+
106
+ /**
107
+ * Accounts that watched, live or after
108
+ */
109
+ totalWatched?: number;
110
+
111
+ /**
112
+ * Accounts watching, as X counts them
113
+ */
114
+ totalWatching?: number;
115
+
116
+ /**
117
+ * Search tweet with author. Zero metrics may mean X omitted counts.
118
+ */
119
+ tweet?: SearchTweet;
120
+
121
+ /**
122
+ * ID of the post that announces the broadcast
123
+ */
124
+ tweetId?: string;
125
+
126
+ /**
127
+ * X's revision number of the broadcast
128
+ */
129
+ version?: number;
130
+
131
+ /**
132
+ * Video width in pixels
133
+ */
134
+ width?: number;
135
+ }
136
+
137
+ export namespace Broadcast {
138
+ /**
139
+ * Broadcaster, as X's live video service names the account
140
+ */
141
+ export interface PeriscopeUser {
142
+ /**
143
+ * Live video account ID
144
+ */
145
+ id?: string;
146
+
147
+ /**
148
+ * Live video display name
149
+ */
150
+ displayName?: string;
151
+
152
+ /**
153
+ * Live video avatar URL
154
+ */
155
+ profilePicture?: string;
156
+
157
+ /**
158
+ * The broadcaster's avatar at full size
159
+ */
160
+ profilePictureOriginal?: string;
161
+
162
+ /**
163
+ * Live video username
164
+ */
165
+ username?: string;
166
+ }
167
+ }
168
+
7
169
  /**
8
170
  * Public X Community, as every Community read returns it.
9
171
  */
@@ -212,6 +374,11 @@ export namespace Community {
212
374
  * Profile picture URL of the member
213
375
  */
214
376
  profilePicture?: string;
377
+
378
+ /**
379
+ * The member's profile picture at full size
380
+ */
381
+ profilePictureOriginal?: string;
215
382
  }
216
383
 
217
384
  /**
@@ -354,11 +521,273 @@ export interface EmbeddedTweet {
354
521
 
355
522
  viewCount: number;
356
523
 
524
+ /**
525
+ * Describes an X Article preview and its lifecycle metadata.
526
+ */
527
+ article?: SearchTweet.Article;
528
+
357
529
  /**
358
530
  * Public X profile.
359
531
  */
360
532
  author?: UserProfile;
361
533
 
534
+ /**
535
+ * Why the tweet has no author. X serves a suspended or deleted account as an
536
+ * unavailable user with a reason such as Suspended or NotFound. Omitted when the
537
+ * author is available.
538
+ */
539
+ authorUnavailable?: SearchTweet.AuthorUnavailable;
540
+
541
+ /**
542
+ * Describes a public card and its referenced profiles.
543
+ */
544
+ card?: SearchTweet.Card;
545
+
546
+ /**
547
+ * Price charts the author attached under the post, 1 per cashtag. Absent when the
548
+ * post has none. X may send a cashtag without a chart window.
549
+ */
550
+ cashtagAttachments?: Array<SearchTweet.CashtagAttachment>;
551
+
552
+ /**
553
+ * Community ID.
554
+ */
555
+ communityId?: string;
556
+
557
+ /**
558
+ * Community name. Present when X sends it with the post.
559
+ */
560
+ communityName?: string;
561
+
562
+ /**
563
+ * Community Note presentation metadata returned by X.
564
+ */
565
+ communityNote?: SearchTweet.CommunityNote;
566
+
567
+ /**
568
+ * Content disclosure metadata shown by X when a tweet is labeled as paid
569
+ * partnership content or AI-generated media.
570
+ */
571
+ contentDisclosure?: ContentDisclosure;
572
+
573
+ /**
574
+ * Reply policy & conversation owner.
575
+ */
576
+ conversationControl?: SearchTweet.ConversationControl;
577
+
578
+ conversationId?: string;
579
+
580
+ /**
581
+ * Author-published point, with longitude before latitude.
582
+ */
583
+ coordinates?: SearchTweet.Coordinates;
584
+
585
+ createdAt?: string;
586
+
587
+ displayTextRange?: Array<number>;
588
+
589
+ /**
590
+ * Lists edit-chain identifiers and the remaining edit window.
591
+ */
592
+ edit?: SearchTweet.Edit;
593
+
594
+ /**
595
+ * Lists hashtags, symbols, links, and mentions from tweet text.
596
+ */
597
+ entities?: SearchTweet.Entities;
598
+
599
+ /**
600
+ * Marks a subscriber-only post with the creator whose subscription unlocks it.
601
+ * Non-subscribers get the preview text & the subscribe link. Omitted on public
602
+ * posts.
603
+ */
604
+ exclusiveContent?: SearchTweet.ExclusiveContent;
605
+
606
+ /**
607
+ * Author-published point, with latitude before longitude.
608
+ */
609
+ geo?: SearchTweet.Geo;
610
+
611
+ /**
612
+ * Public metadata whose fields are defined by X.
613
+ */
614
+ grokShareAttachment?: { [key: string]: unknown };
615
+
616
+ /**
617
+ * Grok's translation of the post, as X shows it.
618
+ */
619
+ grokTranslatedPost?: { [key: string]: unknown };
620
+
621
+ /**
622
+ * Whether X holds Community Notes on the post, shown or not.
623
+ */
624
+ hasCommunityNotes?: boolean;
625
+
626
+ inReplyToId?: string;
627
+
628
+ inReplyToUserId?: string;
629
+
630
+ inReplyToUsername?: string;
631
+
632
+ /**
633
+ * The notice x.com covers the post with until the reader views it, such as X's
634
+ * public interest notice on a post that broke its rules but stays up.
635
+ */
636
+ interstitial?: SearchTweet.Interstitial;
637
+
638
+ isLimitedReply?: boolean;
639
+
640
+ isNoteTweet?: boolean;
641
+
642
+ isPinned?: boolean;
643
+
644
+ isQuoteStatus?: boolean;
645
+
646
+ isReply?: boolean;
647
+
648
+ isRetweet?: boolean;
649
+
650
+ isTranslatable?: boolean;
651
+
652
+ /**
653
+ * Public metadata whose fields are defined by X.
654
+ */
655
+ jetfuelAttachment?: { [key: string]: unknown };
656
+
657
+ lang?: string;
658
+
659
+ /**
660
+ * Public restrictions & prompts.
661
+ */
662
+ limitedActions?: Array<SearchTweet.LimitedAction>;
663
+
664
+ /**
665
+ * Media, omitted when unavailable.
666
+ */
667
+ media?: Array<TweetMedia>;
668
+
669
+ /**
670
+ * Complete Note Tweet content and rich-text metadata.
671
+ */
672
+ noteTweet?: SearchTweet.NoteTweet;
673
+
674
+ /**
675
+ * The post this one replies to, with the same fields.
676
+ */
677
+ parentTweet?: EmbeddedTweet;
678
+
679
+ /**
680
+ * Describes public place metadata on a geotagged tweet.
681
+ */
682
+ place?: SearchTweet.Place;
683
+
684
+ possiblySensitive?: boolean;
685
+
686
+ /**
687
+ * Public metadata whose fields are defined by X.
688
+ */
689
+ postCta?: { [key: string]: unknown };
690
+
691
+ /**
692
+ * Engagement counts retained from a prior tweet edit.
693
+ */
694
+ previousCounts?: SearchTweet.PreviousCounts;
695
+
696
+ /**
697
+ * The post this one quotes, with the same fields.
698
+ */
699
+ quoted_tweet?: EmbeddedTweet;
700
+
701
+ quotedTweetId?: string;
702
+
703
+ /**
704
+ * The quoted post's link, kept when X withholds that post.
705
+ */
706
+ quotedTweetPermalink?: SearchTweet.QuotedTweetPermalink;
707
+
708
+ /**
709
+ * Why X shows no quoted post. Omitted when X names no reason, as its legacy
710
+ * answers never do.
711
+ */
712
+ quotedTweetUnavailable?: SearchTweet.QuotedTweetUnavailable;
713
+
714
+ /**
715
+ * Public post & user this reaction references.
716
+ */
717
+ reactionContext?: SearchTweet.ReactionContext;
718
+
719
+ /**
720
+ * The post this one reposts, with the same fields.
721
+ */
722
+ retweeted_tweet?: EmbeddedTweet;
723
+
724
+ /**
725
+ * Repost event time in UTC. Null when unavailable. Omitted for other posts.
726
+ */
727
+ retweetedAt?: string | null;
728
+
729
+ /**
730
+ * Public metadata whose fields are defined by X.
731
+ */
732
+ scopes?: { [key: string]: unknown };
733
+
734
+ /**
735
+ * The label X shows under a post whose reach it limits. It links to the page that
736
+ * explains it.
737
+ */
738
+ softIntervention?: SoftIntervention;
739
+
740
+ /**
741
+ * The app the post was sent from, as X labels it. X sends it for some posts only.
742
+ */
743
+ source?: string;
744
+
745
+ /**
746
+ * Game metadata attached to this post.
747
+ */
748
+ sportsContext?: SearchTweet.SportsContext;
749
+
750
+ /**
751
+ * The Subscriber badge X shows on a reply. The reply's author subscribes to the
752
+ * creator who started the conversation. Omitted on a post without the badge.
753
+ */
754
+ subscriberBadge?: SearchTweet.SubscriberBadge;
755
+
756
+ /**
757
+ * Where `text` matches the search, on each row a search read. Offsets count code
758
+ * points of `text`, as `displayTextRange` does. Empty when X marks nothing in the
759
+ * post. X marks matches only in a post's first 280 characters.
760
+ */
761
+ textHighlights?: Array<SearchTweet.TextHighlight>;
762
+
763
+ /**
764
+ * Public visibility notice attached to an available tweet.
765
+ */
766
+ tombstone?: SearchTweet.Tombstone;
767
+
768
+ type?: string;
769
+
770
+ /**
771
+ * The author's ID when X withholds the author's profile.
772
+ */
773
+ unavailableAuthorId?: string;
774
+
775
+ /**
776
+ * X did not send these counts, so each 0 means unknown.
777
+ */
778
+ unknownCounts?: Array<
779
+ 'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
780
+ >;
781
+
782
+ /**
783
+ * User IDs that left this conversation.
784
+ */
785
+ unmentionedUserIds?: Array<string>;
786
+
787
+ url?: string;
788
+
789
+ viewState?: string;
790
+
362
791
  [k: string]: unknown;
363
792
  }
364
793
 
@@ -367,7 +796,46 @@ export interface EmbeddedTweet {
367
796
  * `xquik-api-contract: 2026-04-29` for the structured best-practice error object.
368
797
  */
369
798
  export interface Error {
370
- error:
799
+ error: Error.Code | Error.StructuredError;
800
+
801
+ /**
802
+ * With unknown_field: the valid names where the first unknown name in fields or
803
+ * omit stopped.
804
+ */
805
+ allowedFields?: Array<string>;
806
+
807
+ /**
808
+ * With unknown_field: each unknown name in fields or omit, with the name it most
809
+ * likely meant.
810
+ */
811
+ fieldErrors?: Array<Error.FieldError>;
812
+
813
+ /**
814
+ * Human-readable error guidance.
815
+ */
816
+ message?: string;
817
+
818
+ /**
819
+ * Machine-readable reason. A login failure names its cause, such as
820
+ * temporary_issue. A user_not_found answer names why X shows no profile: not_found
821
+ * or suspended. A tweet_not_found answer names why X shows no post, when X said:
822
+ * deleted, author_suspended or protected.
823
+ */
824
+ reason?: string;
825
+
826
+ /**
827
+ * Seconds until the next permitted request.
828
+ */
829
+ retryAfter?: number;
830
+
831
+ /**
832
+ * Required wait in milliseconds.
833
+ */
834
+ retryAfterMs?: number;
835
+ }
836
+
837
+ export namespace Error {
838
+ export type Code =
371
839
  | 'internal_error'
372
840
  | 'account_already_connected'
373
841
  | 'account_needs_reauth'
@@ -408,6 +876,7 @@ export interface Error {
408
876
  | 'payment_failed'
409
877
  | 'rate_limit_exceeded'
410
878
  | 'service_unavailable'
879
+ | 'session_required'
411
880
  | 'style_not_found'
412
881
  | 'subscription_inactive'
413
882
  | 'tweet_not_found'
@@ -420,6 +889,7 @@ export interface Error {
420
889
  | 'checkout_unavailable'
421
890
  | 'connection_challenge_expired'
422
891
  | 'connection_challenge_inactive'
892
+ | 'contributor_not_found'
423
893
  | 'coverage_cursor_gone'
424
894
  | 'coverage_cursor_unavailable'
425
895
  | 'cursor_account_unavailable'
@@ -438,6 +908,7 @@ export interface Error {
438
908
  | 'invalid_community_id'
439
909
  | 'invalid_community_topic'
440
910
  | 'invalid_complete_replies_request'
911
+ | 'invalid_contributor_alias'
441
912
  | 'invalid_coverage_cursor'
442
913
  | 'invalid_coverage_request'
443
914
  | 'invalid_cursor'
@@ -445,6 +916,7 @@ export interface Error {
445
916
  | 'invalid_job_filter'
446
917
  | 'invalid_job_id'
447
918
  | 'invalid_list_id'
919
+ | 'invalid_news_id'
448
920
  | 'invalid_output_options'
449
921
  | 'invalid_payment_amount'
450
922
  | 'invalid_range'
@@ -457,6 +929,7 @@ export interface Error {
457
929
  | 'missing_idempotency_key'
458
930
  | 'missing_ids'
459
931
  | 'missing_url'
932
+ | 'news_not_found'
460
933
  | 'no_cached_style'
461
934
  | 'pagination_stalled'
462
935
  | 'passkey_required'
@@ -474,6 +947,7 @@ export interface Error {
474
947
  | 'too_many_ids'
475
948
  | 'too_many_streams'
476
949
  | 'too_many_tweets'
950
+ | 'topup_in_progress'
477
951
  | 'unknown_field'
478
952
  | 'unsupported_media_combination'
479
953
  | 'unsupported_media_type'
@@ -496,217 +970,31 @@ export interface Error {
496
970
  | 'x_daily_limit'
497
971
  | 'x_dm_not_allowed'
498
972
  | 'x_dm_not_deleted'
499
- | 'x_dm_not_sent'
500
- | 'x_duplicate_action'
501
- | 'x_login_auth_failed'
502
- | 'x_login_challenge'
503
- | 'x_login_denied'
504
- | 'x_login_failed'
505
- | 'x_login_rate_limited'
506
- | 'x_login_service_unavailable'
507
- | 'x_login_suspended'
508
- | 'x_image_invalid'
509
- | 'x_media_rejected'
510
- | 'x_post_not_sent'
511
- | 'x_rate_limited'
512
- | 'x_rejected'
513
- | 'x_reply_not_allowed'
514
- | 'x_reply_target_unavailable'
515
- | 'x_target_not_found'
516
- | 'x_transient_error'
517
- | 'x_user_lookup_failed'
518
- | 'x_write_ambiguous'
519
- | 'x_write_failed'
520
- | Error.StructuredError;
521
-
522
- /**
523
- * With unknown_field: the valid names where the first unknown name in fields or
524
- * omit stopped.
525
- */
526
- allowedFields?: Array<string>;
527
-
528
- /**
529
- * With unknown_field: each unknown name in fields or omit, with the name it most
530
- * likely meant.
531
- */
532
- fieldErrors?: Array<Error.FieldError>;
533
-
534
- /**
535
- * Human-readable error guidance.
536
- */
537
- message?: string;
538
-
539
- /**
540
- * Machine-readable reason. A login failure names its cause, such as
541
- * temporary_issue. A user_not_found answer names why X shows no profile: not_found
542
- * or suspended. A tweet_not_found answer names why X shows no post, when X said:
543
- * deleted, author_suspended or protected.
544
- */
545
- reason?: string;
546
-
547
- /**
548
- * Seconds until the next permitted request.
549
- */
550
- retryAfter?: number;
551
-
552
- /**
553
- * Required wait in milliseconds.
554
- */
555
- retryAfterMs?: number;
556
- }
973
+ | 'x_dm_not_sent'
974
+ | 'x_duplicate_action'
975
+ | 'x_login_auth_failed'
976
+ | 'x_login_challenge'
977
+ | 'x_login_denied'
978
+ | 'x_login_failed'
979
+ | 'x_login_rate_limited'
980
+ | 'x_login_service_unavailable'
981
+ | 'x_login_suspended'
982
+ | 'x_image_invalid'
983
+ | 'x_media_rejected'
984
+ | 'x_post_not_sent'
985
+ | 'x_rate_limited'
986
+ | 'x_rejected'
987
+ | 'x_reply_not_allowed'
988
+ | 'x_reply_target_unavailable'
989
+ | 'x_target_not_found'
990
+ | 'x_transient_error'
991
+ | 'x_user_lookup_failed'
992
+ | 'x_video_too_large'
993
+ | 'x_write_ambiguous'
994
+ | 'x_write_failed';
557
995
 
558
- export namespace Error {
559
996
  export interface StructuredError {
560
- code:
561
- | 'internal_error'
562
- | 'account_already_connected'
563
- | 'account_needs_reauth'
564
- | 'account_not_found'
565
- | 'account_required'
566
- | 'account_restricted'
567
- | 'api_key_limit_reached'
568
- | 'article_not_found'
569
- | 'closed'
570
- | 'dm_not_permitted'
571
- | 'invalid_format'
572
- | 'invalid_id'
573
- | 'invalid_input'
574
- | 'invalid_media_url'
575
- | 'invalid_message_id'
576
- | 'invalid_params'
577
- | 'invalid_tool_type'
578
- | 'invalid_tweet_id'
579
- | 'invalid_tweet_url'
580
- | 'invalid_user_id'
581
- | 'invalid_user_ids'
582
- | 'invalid_username'
583
- | 'invalid_json'
584
- | 'insufficient_credits'
585
- | 'job_not_found'
586
- | 'login_cooldown'
587
- | 'login_failed'
588
- | 'media_download_failed'
589
- | 'media_too_large'
590
- | 'missing_params'
591
- | 'missing_query'
592
- | 'monitor_already_exists'
593
- | 'monitor_profile_unavailable'
594
- | 'no_media'
595
- | 'no_credits'
596
- | 'no_subscription'
597
- | 'not_found'
598
- | 'payment_failed'
599
- | 'rate_limit_exceeded'
600
- | 'service_unavailable'
601
- | 'style_not_found'
602
- | 'subscription_inactive'
603
- | 'tweet_not_found'
604
- | 'unauthenticated'
605
- | 'unsupported_field'
606
- | 'user_not_found'
607
- | 'body_too_large'
608
- | 'bookmark_folders_unavailable'
609
- | 'broadcast_not_found'
610
- | 'checkout_unavailable'
611
- | 'connection_challenge_expired'
612
- | 'connection_challenge_inactive'
613
- | 'coverage_cursor_gone'
614
- | 'coverage_cursor_unavailable'
615
- | 'cursor_account_unavailable'
616
- | 'draft_not_found'
617
- | 'draw_too_large'
618
- | 'expired'
619
- | 'favoriters_unavailable'
620
- | 'forbidden'
621
- | 'guest_wallet_unavailable'
622
- | 'guest_wallets_disabled'
623
- | 'guest_wallets_unavailable'
624
- | 'idempotency_conflict'
625
- | 'idempotency_in_progress'
626
- | 'idempotency_key_conflict'
627
- | 'invalid_broadcast_id'
628
- | 'invalid_community_id'
629
- | 'invalid_community_topic'
630
- | 'invalid_complete_replies_request'
631
- | 'invalid_coverage_cursor'
632
- | 'invalid_coverage_request'
633
- | 'invalid_cursor'
634
- | 'invalid_idempotency_key'
635
- | 'invalid_job_filter'
636
- | 'invalid_job_id'
637
- | 'invalid_list_id'
638
- | 'invalid_output_options'
639
- | 'invalid_payment_amount'
640
- | 'invalid_range'
641
- | 'invalid_reply_options'
642
- | 'invalid_space_id'
643
- | 'likes_unavailable'
644
- | 'list_not_found'
645
- | 'login_rate_limited'
646
- | 'login_service_unavailable'
647
- | 'missing_idempotency_key'
648
- | 'missing_ids'
649
- | 'missing_url'
650
- | 'no_cached_style'
651
- | 'pagination_stalled'
652
- | 'passkey_required'
653
- | 'rate_limited'
654
- | 'read_request_timeout'
655
- | 'replay_unavailable'
656
- | 'replies_incomplete'
657
- | 'retweeters_incomplete'
658
- | 'search_unavailable'
659
- | 'space_canceled'
660
- | 'space_not_ended'
661
- | 'support_media_rate_limit'
662
- | 'support_request_rate_limit'
663
- | 'telegram_unavailable'
664
- | 'too_many_ids'
665
- | 'too_many_streams'
666
- | 'too_many_tweets'
667
- | 'unknown_field'
668
- | 'unsupported_media_combination'
669
- | 'unsupported_media_type'
670
- | 'webhook_inactive'
671
- | 'write_tracking_unavailable'
672
- | 'x_write_unconfirmed'
673
- | 'x_account_feature_required'
674
- | 'x_account_protected'
675
- | 'x_account_suspended'
676
- | 'x_api_rate_limited'
677
- | 'x_api_unavailable'
678
- | 'x_api_unauthorized'
679
- | 'x_auth_failure'
680
- | 'x_automation_refused'
681
- | 'x_community_not_joined'
682
- | 'x_community_not_selectable'
683
- | 'x_community_post_public'
684
- | 'x_community_post_removed'
685
- | 'x_content_too_long'
686
- | 'x_daily_limit'
687
- | 'x_dm_not_allowed'
688
- | 'x_dm_not_deleted'
689
- | 'x_dm_not_sent'
690
- | 'x_duplicate_action'
691
- | 'x_login_auth_failed'
692
- | 'x_login_challenge'
693
- | 'x_login_denied'
694
- | 'x_login_failed'
695
- | 'x_login_rate_limited'
696
- | 'x_login_service_unavailable'
697
- | 'x_login_suspended'
698
- | 'x_image_invalid'
699
- | 'x_media_rejected'
700
- | 'x_post_not_sent'
701
- | 'x_rate_limited'
702
- | 'x_rejected'
703
- | 'x_reply_not_allowed'
704
- | 'x_reply_target_unavailable'
705
- | 'x_target_not_found'
706
- | 'x_transient_error'
707
- | 'x_user_lookup_failed'
708
- | 'x_write_ambiguous'
709
- | 'x_write_failed';
997
+ code: Code;
710
998
 
711
999
  message: string;
712
1000
 
@@ -749,10 +1037,17 @@ export namespace Error {
749
1037
  * Type of monitor event fired when account activity occurs. tweet.deleted fires
750
1038
  * once X confirms the account deleted a post the monitor saw. Its data is the post
751
1039
  * as last seen. broadcast.started & space.started fire when the account posts its
752
- * running live video or Space. Their data is that post. A live the account does
753
- * not post is not seen. following.added & following.removed fire when the account
754
- * follows or unfollows someone, with that account's profile. Keyword monitors take
755
- * the 10 post types only.
1040
+ * running live video or Space. Their data is that post. Xquik misses a live video
1041
+ * the account does not post. following.added & following.removed fire when the
1042
+ * account follows or unfollows someone, with that account's profile.
1043
+ * follower.added & follower.removed fire when someone follows the account or
1044
+ * leaves its followers, with that account's profile. Xquik names lost followers
1045
+ * for accounts with up to 100,000 followers. profile.followers.changed &
1046
+ * profile.following.changed fire when the account's follower or following count
1047
+ * moves, at most once a minute each. X shows counts that differ by a few between
1048
+ * reads, so a monitor holds the lowest. A fall counts once 2 reads show it, & a
1049
+ * rise once no read for a minute showed less. Keyword monitors take the 10 post
1050
+ * types only.
756
1051
  */
757
1052
  export type EventType =
758
1053
  | 'tweet.new'
@@ -780,7 +1075,57 @@ export type EventType =
780
1075
  | 'broadcast.started'
781
1076
  | 'space.started'
782
1077
  | 'following.added'
783
- | 'following.removed';
1078
+ | 'following.removed'
1079
+ | 'follower.added'
1080
+ | 'follower.removed'
1081
+ | 'profile.followers.changed'
1082
+ | 'profile.following.changed';
1083
+
1084
+ /**
1085
+ * The other account of a following or follower event, with the profile fields a
1086
+ * user lookup returns. It holds the ID alone when X fails the profile lookup.
1087
+ */
1088
+ export interface MonitorFollow {
1089
+ /**
1090
+ * The other account's X user ID.
1091
+ */
1092
+ id: string;
1093
+
1094
+ /**
1095
+ * X's time of the follow, on following.added & follower.added. It is missing when
1096
+ * X gives none, as for an account that returns to a list.
1097
+ */
1098
+ followedAt?: string;
1099
+
1100
+ /**
1101
+ * Whether followedAt is X's exact time of this follow. When several accounts join
1102
+ * between 2 checks, X times the first, the second & the last. Each other one holds
1103
+ * the earliest time its follow can have, with false here.
1104
+ */
1105
+ followedAtExact?: boolean;
1106
+
1107
+ /**
1108
+ * Why the account left the list, on following.removed & follower.removed.
1109
+ * unavailable means X no longer serves the account. unfollowed means X's follow
1110
+ * check says the follow ended. It is missing when X fails the check. Xquik sends no
1111
+ * removal while X still confirms the follow.
1112
+ */
1113
+ reason?: 'unavailable' | 'unfollowed';
1114
+
1115
+ [k: string]: unknown;
1116
+ }
1117
+
1118
+ /**
1119
+ * 1 page of public X Lists. Follow next_cursor while the response reports more
1120
+ * pages. Each returned List costs 1 credit.
1121
+ */
1122
+ export interface PaginatedLists {
1123
+ has_next_page: boolean;
1124
+
1125
+ lists: Array<XList>;
1126
+
1127
+ next_cursor: string;
1128
+ }
784
1129
 
785
1130
  /**
786
1131
  * Follow next_cursor while the response reports more pages. A page can hold fewer
@@ -859,6 +1204,21 @@ export namespace PaginatedTweets {
859
1204
  }
860
1205
  }
861
1206
 
1207
+ /**
1208
+ * A page of user IDs without profiles. Follow next_cursor while the response
1209
+ * reports more pages.
1210
+ */
1211
+ export interface PaginatedUserIds {
1212
+ has_next_page: boolean;
1213
+
1214
+ /**
1215
+ * X user IDs, newest relationship first.
1216
+ */
1217
+ ids: Array<string>;
1218
+
1219
+ next_cursor: string;
1220
+ }
1221
+
862
1222
  /**
863
1223
  * Profile coverage preserves shape, billing, aliases, and filters. Follow
864
1224
  * next_cursor while the response reports more pages. Unprefixed cursors remain
@@ -1110,6 +1470,12 @@ export interface SearchTweet {
1110
1470
  */
1111
1471
  scopes?: { [key: string]: unknown };
1112
1472
 
1473
+ /**
1474
+ * The label X shows under a post whose reach it limits. It links to the page that
1475
+ * explains it.
1476
+ */
1477
+ softIntervention?: SoftIntervention;
1478
+
1113
1479
  /**
1114
1480
  * The app the post was sent from, as X labels it. X sends it for some posts only.
1115
1481
  */
@@ -1145,6 +1511,13 @@ export interface SearchTweet {
1145
1511
  */
1146
1512
  unavailableAuthorId?: string;
1147
1513
 
1514
+ /**
1515
+ * X did not send these counts, so each 0 means unknown.
1516
+ */
1517
+ unknownCounts?: Array<
1518
+ 'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
1519
+ >;
1520
+
1148
1521
  /**
1149
1522
  * User IDs that left this conversation.
1150
1523
  */
@@ -1666,6 +2039,10 @@ export namespace SearchTweet {
1666
2039
 
1667
2040
  export namespace Entity {
1668
2041
  export interface Ref {
2042
+ screenName?: string;
2043
+
2044
+ text?: string;
2045
+
1669
2046
  type?: string;
1670
2047
 
1671
2048
  url?: string;
@@ -2253,6 +2630,10 @@ export namespace SearchTweet {
2253
2630
 
2254
2631
  export namespace Entity {
2255
2632
  export interface Ref {
2633
+ screenName?: string;
2634
+
2635
+ text?: string;
2636
+
2256
2637
  type?: string;
2257
2638
 
2258
2639
  url?: string;
@@ -2264,6 +2645,87 @@ export namespace SearchTweet {
2264
2645
  }
2265
2646
  }
2266
2647
 
2648
+ /**
2649
+ * The label X shows under a post whose reach it limits. It links to the page that
2650
+ * explains it.
2651
+ */
2652
+ export interface SoftIntervention {
2653
+ /**
2654
+ * The label's kind. `Fosnr` marks a post X keeps up but shows to fewer people.
2655
+ */
2656
+ displayType?: string;
2657
+
2658
+ /**
2659
+ * Whether X prompts readers before they engage with the post.
2660
+ */
2661
+ engagementNudge?: boolean;
2662
+
2663
+ text?: SoftIntervention.Text;
2664
+
2665
+ /**
2666
+ * The page that explains the label.
2667
+ */
2668
+ url?: SoftIntervention.URL;
2669
+ }
2670
+
2671
+ export namespace SoftIntervention {
2672
+ export interface Text {
2673
+ /**
2674
+ * Links inside the label, by character range.
2675
+ */
2676
+ entities?: Array<Text.Entity>;
2677
+
2678
+ /**
2679
+ * Whether the label reads right to left.
2680
+ */
2681
+ rtl?: boolean;
2682
+
2683
+ /**
2684
+ * The label's text.
2685
+ */
2686
+ text?: string;
2687
+ }
2688
+
2689
+ export namespace Text {
2690
+ export interface Entity {
2691
+ /**
2692
+ * Position in the label's text where the entity starts, counted from 0.
2693
+ */
2694
+ fromIndex?: number;
2695
+
2696
+ ref?: Entity.Ref;
2697
+
2698
+ /**
2699
+ * Position in the label's text where the entity ends, counted from 0.
2700
+ */
2701
+ toIndex?: number;
2702
+ }
2703
+
2704
+ export namespace Entity {
2705
+ export interface Ref {
2706
+ screenName?: string;
2707
+
2708
+ text?: string;
2709
+
2710
+ type?: string;
2711
+
2712
+ url?: string;
2713
+
2714
+ urlType?: string;
2715
+ }
2716
+ }
2717
+ }
2718
+
2719
+ /**
2720
+ * The page that explains the label.
2721
+ */
2722
+ export interface URL {
2723
+ url?: string;
2724
+
2725
+ urlType?: string;
2726
+ }
2727
+ }
2728
+
2267
2729
  /**
2268
2730
  * Tweet media.
2269
2731
  */
@@ -2536,6 +2998,44 @@ export namespace TweetMedia {
2536
2998
  }
2537
2999
  }
2538
3000
 
3001
+ /**
3002
+ * A relationship page. A filtered read's last page may name the scan limit that
3003
+ * ended it.
3004
+ */
3005
+ export interface UserListPage extends PaginatedUsers {
3006
+ /**
3007
+ * Present on the last page of a filtered automatic read that sent no maxScan,
3008
+ * once the list scanned 100,000 profiles across its pages. That page is the
3009
+ * list's last.
3010
+ */
3011
+ scanLimit?: UserListPage.ScanLimit;
3012
+ }
3013
+
3014
+ export namespace UserListPage {
3015
+ /**
3016
+ * Present on the last page of a filtered automatic read that sent no maxScan,
3017
+ * once the list scanned 100,000 profiles across its pages. That page is the
3018
+ * list's last.
3019
+ */
3020
+ export interface ScanLimit {
3021
+ /**
3022
+ * The profiles a filtered read scans of a list without maxScan.
3023
+ */
3024
+ limit: 100000;
3025
+
3026
+ /**
3027
+ * What stopped the list & how to read further.
3028
+ */
3029
+ message: string;
3030
+
3031
+ /**
3032
+ * Profiles the list read across its pages, kept or dropped by the filters. The
3033
+ * last page may read past the limit.
3034
+ */
3035
+ rowsRead: number;
3036
+ }
3037
+ }
3038
+
2539
3039
  /**
2540
3040
  * Public X profile.
2541
3041
  */
@@ -2766,6 +3266,12 @@ export interface UserProfile {
2766
3266
 
2767
3267
  profilePicture?: string;
2768
3268
 
3269
+ /**
3270
+ * The same profile picture at full size, as the account uploaded it. Download this
3271
+ * one for the image.
3272
+ */
3273
+ profilePictureOriginal?: string;
3274
+
2769
3275
  profileSortEnabled?: boolean;
2770
3276
 
2771
3277
  profileTranslatorType?: string;
@@ -2775,6 +3281,13 @@ export interface UserProfile {
2775
3281
  */
2776
3282
  protected?: boolean;
2777
3283
 
3284
+ /**
3285
+ * Handle x.com sends this profile's visitors to, such as the new handle of a
3286
+ * renamed account whose old handle now holds a placeholder. Missing when x.com
3287
+ * shows the profile itself.
3288
+ */
3289
+ redirectsToUsername?: string;
3290
+
2778
3291
  /**
2779
3292
  * UTC repost time with includeRetweetTimestamp. Null if the newest profile page
2780
3293
  * has no match or lookup failed; otherwise omitted.
@@ -2975,6 +3488,11 @@ export namespace UserProfile {
2975
3488
  */
2976
3489
  isIdentityVerified?: boolean;
2977
3490
 
3491
+ /**
3492
+ * The year X shows as the start of verification, in place of verifiedSinceMsec.
3493
+ */
3494
+ overrideVerifiedYear?: number;
3495
+
2978
3496
  /**
2979
3497
  * When X verified the account, in milliseconds since 1970, as text.
2980
3498
  */
@@ -3049,3 +3567,167 @@ export namespace UserProfile {
3049
3567
  }
3050
3568
  }
3051
3569
  }
3570
+
3571
+ /**
3572
+ * Public X List with its owner's public profile. Leaves out what X tells the
3573
+ * reading account, such as whether it follows the List.
3574
+ */
3575
+ export interface XList {
3576
+ /**
3577
+ * Numeric ID of the List.
3578
+ */
3579
+ id: string;
3580
+
3581
+ /**
3582
+ * Name the owner gave the List.
3583
+ */
3584
+ name: string;
3585
+
3586
+ /**
3587
+ * URL of the banner the owner uploaded. Absent when the owner uploaded none.
3588
+ */
3589
+ bannerUrl?: string;
3590
+
3591
+ /**
3592
+ * When the owner made the List.
3593
+ */
3594
+ createdAt?: string;
3595
+
3596
+ /**
3597
+ * Banner the owner uploaded.
3598
+ */
3599
+ customBanner?: XListBanner;
3600
+
3601
+ /**
3602
+ * Banner X shows when the owner uploaded none. X picks it per reading account, so
3603
+ * 2 calls can return different ones.
3604
+ */
3605
+ defaultBanner?: XListBanner;
3606
+
3607
+ /**
3608
+ * About text of the List. Empty when the owner wrote none.
3609
+ */
3610
+ description?: string;
3611
+
3612
+ /**
3613
+ * Avatar URLs of a few List members, which X may pick per request.
3614
+ */
3615
+ facepileUrls?: Array<string>;
3616
+
3617
+ /**
3618
+ * Accounts on the List.
3619
+ */
3620
+ memberCount?: number;
3621
+
3622
+ /**
3623
+ * Member count as X words it, such as 35 members.
3624
+ */
3625
+ membersContext?: string;
3626
+
3627
+ /**
3628
+ * Public profile of the account that owns the List.
3629
+ */
3630
+ owner?: UserProfile;
3631
+
3632
+ /**
3633
+ * Accounts that follow the List, which X calls followers.
3634
+ */
3635
+ subscriberCount?: number;
3636
+
3637
+ /**
3638
+ * List page on x.com.
3639
+ */
3640
+ url?: string;
3641
+ }
3642
+
3643
+ /**
3644
+ * Banner image of an X List.
3645
+ */
3646
+ export interface XListBanner {
3647
+ /**
3648
+ * Banner image URL.
3649
+ */
3650
+ url: string;
3651
+
3652
+ /**
3653
+ * Banner height in pixels.
3654
+ */
3655
+ height?: number;
3656
+
3657
+ /**
3658
+ * Media ID of an uploaded banner.
3659
+ */
3660
+ mediaId?: string;
3661
+
3662
+ /**
3663
+ * Stable media key of an uploaded banner.
3664
+ */
3665
+ mediaKey?: string;
3666
+
3667
+ /**
3668
+ * Dominant colors of an uploaded banner and their shares.
3669
+ */
3670
+ palette?: Array<XListBanner.Palette>;
3671
+
3672
+ /**
3673
+ * Area X marks as the subject of the banner, in pixels.
3674
+ */
3675
+ salientRect?: XListBanner.SalientRect;
3676
+
3677
+ /**
3678
+ * Banner width in pixels.
3679
+ */
3680
+ width?: number;
3681
+ }
3682
+
3683
+ export namespace XListBanner {
3684
+ export interface Palette {
3685
+ /**
3686
+ * Share of the banner, from 0 to 100.
3687
+ */
3688
+ percentage?: number;
3689
+
3690
+ /**
3691
+ * The color's red, green and blue values.
3692
+ */
3693
+ rgb?: Palette.Rgb;
3694
+ }
3695
+
3696
+ export namespace Palette {
3697
+ /**
3698
+ * The color's red, green and blue values.
3699
+ */
3700
+ export interface Rgb {
3701
+ blue?: number;
3702
+
3703
+ green?: number;
3704
+
3705
+ red?: number;
3706
+ }
3707
+ }
3708
+
3709
+ /**
3710
+ * Area X marks as the subject of the banner, in pixels.
3711
+ */
3712
+ export interface SalientRect {
3713
+ /**
3714
+ * Height of the marked area.
3715
+ */
3716
+ height?: number;
3717
+
3718
+ /**
3719
+ * Pixels from the banner's left.
3720
+ */
3721
+ left?: number;
3722
+
3723
+ /**
3724
+ * Pixels from the banner's top.
3725
+ */
3726
+ top?: number;
3727
+
3728
+ /**
3729
+ * Width of the marked area.
3730
+ */
3731
+ width?: number;
3732
+ }
3733
+ }