x-twitter-scraper 0.14.0 → 0.16.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 (140) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/client.d.mts +4 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -2
  9. package/client.mjs.map +1 -1
  10. package/internal/uploads.js +1 -1
  11. package/internal/uploads.js.map +1 -1
  12. package/internal/uploads.mjs +1 -1
  13. package/internal/uploads.mjs.map +1 -1
  14. package/package.json +2 -2
  15. package/resources/account.d.mts +5 -0
  16. package/resources/account.d.mts.map +1 -1
  17. package/resources/account.d.ts +5 -0
  18. package/resources/account.d.ts.map +1 -1
  19. package/resources/compose.d.mts +1 -1
  20. package/resources/compose.d.mts.map +1 -1
  21. package/resources/compose.d.ts +1 -1
  22. package/resources/compose.d.ts.map +1 -1
  23. package/resources/drafts.d.mts +13 -3
  24. package/resources/drafts.d.mts.map +1 -1
  25. package/resources/drafts.d.ts +13 -3
  26. package/resources/drafts.d.ts.map +1 -1
  27. package/resources/drafts.js +1 -1
  28. package/resources/drafts.mjs +1 -1
  29. package/resources/events.d.mts +52 -20
  30. package/resources/events.d.mts.map +1 -1
  31. package/resources/events.d.ts +52 -20
  32. package/resources/events.d.ts.map +1 -1
  33. package/resources/index.d.mts +1 -1
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +1 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/monitors/keywords.d.mts +36 -0
  40. package/resources/monitors/keywords.d.mts.map +1 -1
  41. package/resources/monitors/keywords.d.ts +36 -0
  42. package/resources/monitors/keywords.d.ts.map +1 -1
  43. package/resources/monitors/monitors.d.mts +6 -3
  44. package/resources/monitors/monitors.d.mts.map +1 -1
  45. package/resources/monitors/monitors.d.ts +6 -3
  46. package/resources/monitors/monitors.d.ts.map +1 -1
  47. package/resources/monitors/monitors.js.map +1 -1
  48. package/resources/monitors/monitors.mjs.map +1 -1
  49. package/resources/shared.d.mts +94 -5
  50. package/resources/shared.d.mts.map +1 -1
  51. package/resources/shared.d.ts +94 -5
  52. package/resources/shared.d.ts.map +1 -1
  53. package/resources/support/tickets.d.mts +14 -5
  54. package/resources/support/tickets.d.mts.map +1 -1
  55. package/resources/support/tickets.d.ts +14 -5
  56. package/resources/support/tickets.d.ts.map +1 -1
  57. package/resources/support/tickets.js.map +1 -1
  58. package/resources/support/tickets.mjs.map +1 -1
  59. package/resources/webhooks.d.mts +5 -0
  60. package/resources/webhooks.d.mts.map +1 -1
  61. package/resources/webhooks.d.ts +5 -0
  62. package/resources/webhooks.d.ts.map +1 -1
  63. package/resources/x/broadcasts.d.mts +4 -0
  64. package/resources/x/broadcasts.d.mts.map +1 -1
  65. package/resources/x/broadcasts.d.ts +4 -0
  66. package/resources/x/broadcasts.d.ts.map +1 -1
  67. package/resources/x/jobs.d.mts +8 -0
  68. package/resources/x/jobs.d.mts.map +1 -1
  69. package/resources/x/jobs.d.ts +8 -0
  70. package/resources/x/jobs.d.ts.map +1 -1
  71. package/resources/x/lists.d.mts +6 -6
  72. package/resources/x/lists.d.mts.map +1 -1
  73. package/resources/x/lists.d.ts +6 -6
  74. package/resources/x/lists.d.ts.map +1 -1
  75. package/resources/x/media.d.mts +13 -2
  76. package/resources/x/media.d.mts.map +1 -1
  77. package/resources/x/media.d.ts +13 -2
  78. package/resources/x/media.d.ts.map +1 -1
  79. package/resources/x/media.js.map +1 -1
  80. package/resources/x/media.mjs.map +1 -1
  81. package/resources/x/profile.d.mts +13 -4
  82. package/resources/x/profile.d.mts.map +1 -1
  83. package/resources/x/profile.d.ts +13 -4
  84. package/resources/x/profile.d.ts.map +1 -1
  85. package/resources/x/profile.js.map +1 -1
  86. package/resources/x/profile.mjs.map +1 -1
  87. package/resources/x/spaces.d.mts +40 -11
  88. package/resources/x/spaces.d.mts.map +1 -1
  89. package/resources/x/spaces.d.ts +40 -11
  90. package/resources/x/spaces.d.ts.map +1 -1
  91. package/resources/x/spaces.js +4 -3
  92. package/resources/x/spaces.js.map +1 -1
  93. package/resources/x/spaces.mjs +4 -3
  94. package/resources/x/spaces.mjs.map +1 -1
  95. package/resources/x/tweets/tweets.d.mts +21 -11
  96. package/resources/x/tweets/tweets.d.mts.map +1 -1
  97. package/resources/x/tweets/tweets.d.ts +21 -11
  98. package/resources/x/tweets/tweets.d.ts.map +1 -1
  99. package/resources/x/tweets/tweets.js.map +1 -1
  100. package/resources/x/tweets/tweets.mjs.map +1 -1
  101. package/resources/x/users/users.d.mts +37 -33
  102. package/resources/x/users/users.d.mts.map +1 -1
  103. package/resources/x/users/users.d.ts +37 -33
  104. package/resources/x/users/users.d.ts.map +1 -1
  105. package/resources/x/users/users.js.map +1 -1
  106. package/resources/x/users/users.mjs.map +1 -1
  107. package/resources/x/x.d.mts +32 -2
  108. package/resources/x/x.d.mts.map +1 -1
  109. package/resources/x/x.d.ts +32 -2
  110. package/resources/x/x.d.ts.map +1 -1
  111. package/resources/x/x.js +4 -2
  112. package/resources/x/x.js.map +1 -1
  113. package/resources/x/x.mjs +4 -2
  114. package/resources/x/x.mjs.map +1 -1
  115. package/src/client.ts +8 -2
  116. package/src/internal/uploads.ts +1 -1
  117. package/src/resources/account.ts +6 -0
  118. package/src/resources/compose.ts +1 -1
  119. package/src/resources/drafts.ts +14 -2
  120. package/src/resources/events.ts +66 -20
  121. package/src/resources/index.ts +1 -0
  122. package/src/resources/monitors/keywords.ts +44 -0
  123. package/src/resources/monitors/monitors.ts +6 -3
  124. package/src/resources/shared.ts +114 -5
  125. package/src/resources/support/tickets.ts +16 -5
  126. package/src/resources/webhooks.ts +6 -0
  127. package/src/resources/x/broadcasts.ts +5 -0
  128. package/src/resources/x/jobs.ts +10 -0
  129. package/src/resources/x/lists.ts +6 -6
  130. package/src/resources/x/media.ts +15 -2
  131. package/src/resources/x/profile.ts +15 -4
  132. package/src/resources/x/spaces.ts +46 -11
  133. package/src/resources/x/tweets/tweets.ts +26 -11
  134. package/src/resources/x/users/users.ts +38 -33
  135. package/src/resources/x/x.ts +37 -2
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -212,6 +212,11 @@ export namespace Community {
212
212
  * Profile picture URL of the member
213
213
  */
214
214
  profilePicture?: string;
215
+
216
+ /**
217
+ * The member's profile picture at full size
218
+ */
219
+ profilePictureOriginal?: string;
215
220
  }
216
221
 
217
222
  /**
@@ -749,10 +754,17 @@ export namespace Error {
749
754
  * Type of monitor event fired when account activity occurs. tweet.deleted fires
750
755
  * once X confirms the account deleted a post the monitor saw. Its data is the post
751
756
  * 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.
757
+ * running live video or Space. Their data is that post. Xquik misses a live video
758
+ * the account does not post. following.added & following.removed fire when the
759
+ * account follows or unfollows someone, with that account's profile.
760
+ * follower.added & follower.removed fire when someone follows the account or
761
+ * leaves its followers, with that account's profile. Xquik names lost followers
762
+ * for accounts with up to 100,000 followers. profile.followers.changed &
763
+ * profile.following.changed fire when the account's follower or following count
764
+ * moves, at most once a minute each. X shows counts that differ by a few between
765
+ * reads, so a monitor holds the lowest. A fall counts once 2 reads show it, & a
766
+ * rise once no read for a minute showed less. Keyword monitors take the 10 post
767
+ * types only.
756
768
  */
757
769
  export type EventType =
758
770
  | 'tweet.new'
@@ -780,7 +792,45 @@ export type EventType =
780
792
  | 'broadcast.started'
781
793
  | 'space.started'
782
794
  | 'following.added'
783
- | 'following.removed';
795
+ | 'following.removed'
796
+ | 'follower.added'
797
+ | 'follower.removed'
798
+ | 'profile.followers.changed'
799
+ | 'profile.following.changed';
800
+
801
+ /**
802
+ * The other account of a following or follower event, with the profile fields a
803
+ * user lookup returns. It holds the ID alone when X fails the profile lookup.
804
+ */
805
+ export interface MonitorFollow {
806
+ /**
807
+ * The other account's X user ID.
808
+ */
809
+ id: string;
810
+
811
+ /**
812
+ * X's time of the follow, on following.added & follower.added. It is missing when
813
+ * X gives none, as for an account that returns to a list.
814
+ */
815
+ followedAt?: string;
816
+
817
+ /**
818
+ * Whether followedAt is X's exact time of this follow. When several accounts join
819
+ * between 2 checks, X times the first, the second & the last. Each other one holds
820
+ * the earliest time its follow can have, with false here.
821
+ */
822
+ followedAtExact?: boolean;
823
+
824
+ /**
825
+ * Why the account left the list, on following.removed & follower.removed.
826
+ * unavailable means X no longer serves the account. unfollowed means X's follow
827
+ * check says the follow ended. It is missing when X fails the check. Xquik sends no
828
+ * removal while X still confirms the follow.
829
+ */
830
+ reason?: 'unavailable' | 'unfollowed';
831
+
832
+ [k: string]: unknown;
833
+ }
784
834
 
785
835
  /**
786
836
  * Follow next_cursor while the response reports more pages. A page can hold fewer
@@ -1666,6 +1716,10 @@ export namespace SearchTweet {
1666
1716
 
1667
1717
  export namespace Entity {
1668
1718
  export interface Ref {
1719
+ screenName?: string;
1720
+
1721
+ text?: string;
1722
+
1669
1723
  type?: string;
1670
1724
 
1671
1725
  url?: string;
@@ -2253,6 +2307,10 @@ export namespace SearchTweet {
2253
2307
 
2254
2308
  export namespace Entity {
2255
2309
  export interface Ref {
2310
+ screenName?: string;
2311
+
2312
+ text?: string;
2313
+
2256
2314
  type?: string;
2257
2315
 
2258
2316
  url?: string;
@@ -2536,6 +2594,44 @@ export namespace TweetMedia {
2536
2594
  }
2537
2595
  }
2538
2596
 
2597
+ /**
2598
+ * A relationship page. A filtered read's last page may name the scan limit that
2599
+ * ended it.
2600
+ */
2601
+ export interface UserListPage extends PaginatedUsers {
2602
+ /**
2603
+ * Present on the last page of a filtered automatic read that sent no maxScan,
2604
+ * once the list scanned 100,000 profiles across its pages. That page is the
2605
+ * list's last.
2606
+ */
2607
+ scanLimit?: UserListPage.ScanLimit;
2608
+ }
2609
+
2610
+ export namespace UserListPage {
2611
+ /**
2612
+ * Present on the last page of a filtered automatic read that sent no maxScan,
2613
+ * once the list scanned 100,000 profiles across its pages. That page is the
2614
+ * list's last.
2615
+ */
2616
+ export interface ScanLimit {
2617
+ /**
2618
+ * The profiles a filtered read scans of a list without maxScan.
2619
+ */
2620
+ limit: 100000;
2621
+
2622
+ /**
2623
+ * What stopped the list & how to read further.
2624
+ */
2625
+ message: string;
2626
+
2627
+ /**
2628
+ * Profiles the list read across its pages, kept or dropped by the filters. The
2629
+ * last page may read past the limit.
2630
+ */
2631
+ rowsRead: number;
2632
+ }
2633
+ }
2634
+
2539
2635
  /**
2540
2636
  * Public X profile.
2541
2637
  */
@@ -2766,6 +2862,12 @@ export interface UserProfile {
2766
2862
 
2767
2863
  profilePicture?: string;
2768
2864
 
2865
+ /**
2866
+ * The same profile picture at full size, as the account uploaded it. Download this
2867
+ * one for the image.
2868
+ */
2869
+ profilePictureOriginal?: string;
2870
+
2769
2871
  profileSortEnabled?: boolean;
2770
2872
 
2771
2873
  profileTranslatorType?: string;
@@ -2775,6 +2877,13 @@ export interface UserProfile {
2775
2877
  */
2776
2878
  protected?: boolean;
2777
2879
 
2880
+ /**
2881
+ * Handle x.com sends this profile's visitors to, such as the new handle of a
2882
+ * renamed account whose old handle now holds a placeholder. Missing when x.com
2883
+ * shows the profile itself.
2884
+ */
2885
+ redirectsToUsername?: string;
2886
+
2778
2887
  /**
2779
2888
  * UTC repost time with includeRetweetTimestamp. Null if the newest profile page
2780
2889
  * has no match or lookup failed; otherwise omitted.
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
6
  import { APIPromise } from '../../core/api-promise';
7
+ import { type Uploadable } from '../../core/uploads';
7
8
  import { buildHeaders } from '../../internal/headers';
8
9
  import { RequestOptions } from '../../internal/request-options';
9
10
  import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
@@ -251,14 +252,19 @@ export namespace TicketReplyResponse {
251
252
 
252
253
  export interface TicketCreateParams {
253
254
  /**
254
- * Body param: Non-empty support message text.
255
+ * Body param: Non-empty support ticket subject.
255
256
  */
256
- body: string;
257
+ subject: string;
257
258
 
258
259
  /**
259
- * Body param: Non-empty support ticket subject.
260
+ * Body param: 1 to 4 support image or video uploads.
260
261
  */
261
- subject: string;
262
+ attachments?: Array<Uploadable>;
263
+
264
+ /**
265
+ * Body param: Non-empty support message text.
266
+ */
267
+ body?: string;
262
268
 
263
269
  /**
264
270
  * Header param: Generate one random value per ticket or reply. Reuse it only when
@@ -286,10 +292,15 @@ export interface TicketListParams {
286
292
  }
287
293
 
288
294
  export interface TicketReplyParams {
295
+ /**
296
+ * Body param: 1 to 4 support image or video uploads.
297
+ */
298
+ attachments?: Array<Uploadable>;
299
+
289
300
  /**
290
301
  * Body param: Non-empty support message text.
291
302
  */
292
- body: string;
303
+ body?: string;
293
304
 
294
305
  /**
295
306
  * Header param: Generate one random value per ticket or reply. Reuse it only when
@@ -207,6 +207,12 @@ export interface WebhookCreateResponse {
207
207
  secret: string;
208
208
 
209
209
  url: string;
210
+
211
+ /**
212
+ * Fields the request sent that this route does not read, in the order sent. They
213
+ * changed nothing. The answer leaves this out when the route read every field.
214
+ */
215
+ ignoredFields?: Array<string>;
210
216
  }
211
217
 
212
218
  export interface WebhookListResponse {
@@ -189,6 +189,11 @@ export namespace BroadcastRetrieveResponse {
189
189
  */
190
190
  profilePicture?: string;
191
191
 
192
+ /**
193
+ * The broadcaster's avatar at full size
194
+ */
195
+ profilePictureOriginal?: string;
196
+
192
197
  /**
193
198
  * Live video username
194
199
  */
@@ -231,6 +231,11 @@ export namespace JobRetrieveResponse {
231
231
  */
232
232
  profilePicture?: string;
233
233
 
234
+ /**
235
+ * The job account's avatar at full size.
236
+ */
237
+ profilePictureOriginal?: string;
238
+
234
239
  /**
235
240
  * Handle without @.
236
241
  */
@@ -464,6 +469,11 @@ export namespace JobSearchResponse {
464
469
  */
465
470
  profilePicture?: string;
466
471
 
472
+ /**
473
+ * The job account's avatar at full size.
474
+ */
475
+ profilePictureOriginal?: string;
476
+
467
477
  /**
468
478
  * Handle without @.
469
479
  */
@@ -378,7 +378,7 @@ export namespace ListRetrieveResponse {
378
378
  * A standard or terminal maximum-coverage relationship page.
379
379
  */
380
380
  export type ListRetrieveFollowersResponse =
381
- Shared.PaginatedUsers | ListRetrieveFollowersResponse.UserListCoverageResponse;
381
+ Shared.UserListPage | ListRetrieveFollowersResponse.UserListCoverageResponse;
382
382
 
383
383
  export namespace ListRetrieveFollowersResponse {
384
384
  /**
@@ -393,9 +393,9 @@ export namespace ListRetrieveFollowersResponse {
393
393
  */
394
394
  diagnostic: UserListCoverageResponse.Diagnostic;
395
395
 
396
- has_next_page?: false;
396
+ has_next_page: false;
397
397
 
398
- next_cursor?: '';
398
+ next_cursor: '';
399
399
  }
400
400
 
401
401
  export namespace UserListCoverageResponse {
@@ -493,7 +493,7 @@ export namespace ListRetrieveFollowersResponse {
493
493
  * A standard or terminal maximum-coverage relationship page.
494
494
  */
495
495
  export type ListRetrieveMembersResponse =
496
- Shared.PaginatedUsers | ListRetrieveMembersResponse.UserListCoverageResponse;
496
+ Shared.UserListPage | ListRetrieveMembersResponse.UserListCoverageResponse;
497
497
 
498
498
  export namespace ListRetrieveMembersResponse {
499
499
  /**
@@ -508,9 +508,9 @@ export namespace ListRetrieveMembersResponse {
508
508
  */
509
509
  diagnostic: UserListCoverageResponse.Diagnostic;
510
510
 
511
- has_next_page?: false;
511
+ has_next_page: false;
512
512
 
513
- next_cursor?: '';
513
+ next_cursor: '';
514
514
  }
515
515
 
516
516
  export namespace UserListCoverageResponse {
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
6
  import { APIPromise } from '../../core/api-promise';
7
+ import { type Uploadable } from '../../core/uploads';
7
8
  import { buildHeaders } from '../../internal/headers';
8
9
  import { RequestOptions } from '../../internal/request-options';
9
10
  import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
@@ -339,15 +340,27 @@ export interface MediaDownloadParams {
339
340
 
340
341
  export interface MediaUploadParams {
341
342
  /**
342
- * Body param: X account (@username or ID) uploading media from URL
343
+ * Body param: X account (@username or ID) uploading media
343
344
  */
344
345
  account: string;
345
346
 
347
+ /**
348
+ * Body param: Media file to upload, up to 15 MB. A larger file gets 413
349
+ * `media_too_large` before any account lookup.
350
+ */
351
+ file?: Uploadable;
352
+
353
+ /**
354
+ * Body param: Set true only for video/mp4 multipart uploads longer than 140
355
+ * seconds.
356
+ */
357
+ is_long_video?: boolean;
358
+
346
359
  /**
347
360
  * Body param: HTTPS URL to download and upload as media, up to 15 MB. Another
348
361
  * scheme gets 400 `invalid_media_url`.
349
362
  */
350
- url: string;
363
+ url?: string;
351
364
 
352
365
  /**
353
366
  * Header param: Use one unique value per intended write. Reuse it only for an
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
6
  import { APIPromise } from '../../core/api-promise';
7
+ import { type Uploadable } from '../../core/uploads';
7
8
  import { buildHeaders } from '../../internal/headers';
8
9
  import { RequestOptions } from '../../internal/request-options';
9
10
  import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
@@ -889,14 +890,19 @@ export interface ProfileUpdateParams {
889
890
 
890
891
  export interface ProfileUpdateAvatarParams {
891
892
  /**
892
- * Body param: X account (@username or ID) receiving avatar from URL
893
+ * Body param: X account (@username or ID) whose avatar to update
893
894
  */
894
895
  account: string;
895
896
 
897
+ /**
898
+ * Body param: Avatar image (max 15 MiB)
899
+ */
900
+ file?: Uploadable;
901
+
896
902
  /**
897
903
  * Body param: HTTPS URL to the avatar image to download
898
904
  */
899
- url: string;
905
+ url?: string;
900
906
 
901
907
  /**
902
908
  * Header param: Use one unique value per intended write. Reuse it only for an
@@ -911,14 +917,19 @@ export interface ProfileUpdateAvatarParams {
911
917
 
912
918
  export interface ProfileUpdateBannerParams {
913
919
  /**
914
- * Body param: X account (@username or ID) receiving banner from URL
920
+ * Body param: X account (@username or ID) whose banner to update
915
921
  */
916
922
  account: string;
917
923
 
924
+ /**
925
+ * Body param: Banner image (max 15 MiB)
926
+ */
927
+ file?: Uploadable;
928
+
918
929
  /**
919
930
  * Body param: HTTPS URL to the banner image to download
920
931
  */
921
- url: string;
932
+ url?: string;
922
933
 
923
934
  /**
924
935
  * Header param: Use one unique value per intended write. Reuse it only for an
@@ -50,9 +50,10 @@ export class Spaces extends APIResource {
50
50
  }
51
51
 
52
52
  /**
53
- * Returns the public Spaces that posts matching the query share, live, scheduled
54
- * or ended. Each page reads up to pageSize posts, 20 by default, and returns each
55
- * Space once. Costs 1 credit per Space.
53
+ * Returns public Spaces each once, as GET /x/spaces/{id} serves them. Latest & Top
54
+ * find the Spaces that matching posts share, live, scheduled or ended. Live &
55
+ * Upcoming read X's own Spaces search, in X's order. It finds live or scheduled
56
+ * Spaces by the words in their titles. Costs 1 credit per Space.
56
57
  *
57
58
  * @example
58
59
  * ```ts
@@ -280,6 +281,11 @@ export namespace SpaceRetrieveResponse {
280
281
  */
281
282
  profilePicture?: string;
282
283
 
284
+ /**
285
+ * The participant's profile picture at full size
286
+ */
287
+ profilePictureOriginal?: string;
288
+
283
289
  /**
284
290
  * Business or Government badge type
285
291
  */
@@ -363,6 +369,11 @@ export namespace SpaceRetrieveResponse {
363
369
  */
364
370
  profilePicture?: string;
365
371
 
372
+ /**
373
+ * The participant's profile picture at full size
374
+ */
375
+ profilePictureOriginal?: string;
376
+
366
377
  /**
367
378
  * Business or Government badge type
368
379
  */
@@ -446,6 +457,11 @@ export namespace SpaceRetrieveResponse {
446
457
  */
447
458
  profilePicture?: string;
448
459
 
460
+ /**
461
+ * The participant's profile picture at full size
462
+ */
463
+ profilePictureOriginal?: string;
464
+
449
465
  /**
450
466
  * Business or Government badge type
451
467
  */
@@ -755,6 +771,11 @@ export namespace SpaceSearchResponse {
755
771
  */
756
772
  profilePicture?: string;
757
773
 
774
+ /**
775
+ * The participant's profile picture at full size
776
+ */
777
+ profilePictureOriginal?: string;
778
+
758
779
  /**
759
780
  * Business or Government badge type
760
781
  */
@@ -838,6 +859,11 @@ export namespace SpaceSearchResponse {
838
859
  */
839
860
  profilePicture?: string;
840
861
 
862
+ /**
863
+ * The participant's profile picture at full size
864
+ */
865
+ profilePictureOriginal?: string;
866
+
841
867
  /**
842
868
  * Business or Government badge type
843
869
  */
@@ -921,6 +947,11 @@ export namespace SpaceSearchResponse {
921
947
  */
922
948
  profilePicture?: string;
923
949
 
950
+ /**
951
+ * The participant's profile picture at full size
952
+ */
953
+ profilePictureOriginal?: string;
954
+
924
955
  /**
925
956
  * Business or Government badge type
926
957
  */
@@ -1021,8 +1052,9 @@ export interface SpaceRetrieveReplayParams {
1021
1052
 
1022
1053
  export interface SpaceSearchParams {
1023
1054
  /**
1024
- * Words, hashtags or X search operators, such as from:solana. The search adds
1025
- * filter:spaces. Alias query.
1055
+ * Words, hashtags or X search operators, such as from:solana. Latest & Top add
1056
+ * filter:spaces. Live & Upcoming match title words only, without operators. Alias
1057
+ * query.
1026
1058
  */
1027
1059
  q: string;
1028
1060
 
@@ -1049,17 +1081,20 @@ export interface SpaceSearchParams {
1049
1081
  omit?: string;
1050
1082
 
1051
1083
  /**
1052
- * Posts a page reads, 20 at a time (1-100, default 20). Posts often share the same
1053
- * Space, so a page returns fewer Spaces. Send 100 to read a search fastest.
1054
- * Aliases: limit, count, max_results, maxItems, max_items & per_page.
1084
+ * For Latest & Top, the posts a page reads, 20 at a time (1-100, default 20). Posts
1085
+ * often share the same Space, so a page returns fewer Spaces. Send 100 to read a
1086
+ * search fastest. For Live & Upcoming, the most Spaces a page returns. Its aliases
1087
+ * are limit, count, max_results, maxItems, max_items & per_page.
1055
1088
  */
1056
1089
  pageSize?: number;
1057
1090
 
1058
1091
  /**
1059
- * Latest sorts by post time. Top ranks by engagement. Any case works. Aliases
1060
- * result_type, sort_order, type, search_type, product, category & section.
1092
+ * Latest finds Spaces in the newest posts. Top finds them in the most engaging
1093
+ * posts. Live lists Spaces on air now. Upcoming lists scheduled ones, as X's Spaces
1094
+ * search does. Any case works. Aliases result_type, sort_order, type, search_type,
1095
+ * product, category & section.
1061
1096
  */
1062
- queryType?: 'Latest' | 'Top';
1097
+ queryType?: 'Latest' | 'Top' | 'Live' | 'Upcoming';
1063
1098
  }
1064
1099
 
1065
1100
  export declare namespace Spaces {
@@ -1171,6 +1171,10 @@ export namespace TweetDetail {
1171
1171
 
1172
1172
  export namespace Entity {
1173
1173
  export interface Ref {
1174
+ screenName?: string;
1175
+
1176
+ text?: string;
1177
+
1174
1178
  type?: string;
1175
1179
 
1176
1180
  url?: string;
@@ -1758,6 +1762,10 @@ export namespace TweetDetail {
1758
1762
 
1759
1763
  export namespace Entity {
1760
1764
  export interface Ref {
1765
+ screenName?: string;
1766
+
1767
+ text?: string;
1768
+
1761
1769
  type?: string;
1762
1770
 
1763
1771
  url?: string;
@@ -2506,6 +2514,8 @@ export namespace TweetGetInsightsResponse {
2506
2514
  * mode also returns nested replies and coverage diagnostics.
2507
2515
  */
2508
2516
  export interface TweetGetRepliesResponse extends Omit<Shared.PaginatedTweets, 'tweets'> {
2517
+ tweets: Array<TweetGetRepliesResponse.Tweet>;
2518
+
2509
2519
  /**
2510
2520
  * Direct-reply coverage & collection evidence.
2511
2521
  */
@@ -2542,7 +2552,12 @@ export interface TweetGetRepliesResponse extends Omit<Shared.PaginatedTweets, 't
2542
2552
  */
2543
2553
  orderPartial?: true;
2544
2554
 
2545
- tweets?: Array<TweetGetRepliesResponse.Tweet>;
2555
+ /**
2556
+ * Present on an answer that lacks replies of a large thread posted before this
2557
+ * time. X shows only part of the replies older than 7 days. A retry returns about
2558
+ * the same replies.
2559
+ */
2560
+ partialBefore?: string;
2546
2561
  }
2547
2562
 
2548
2563
  export namespace TweetGetRepliesResponse {
@@ -2949,9 +2964,9 @@ export namespace TweetSearchResponse {
2949
2964
  */
2950
2965
  diagnostic: TweetSearchCoverageResponse.Diagnostic;
2951
2966
 
2952
- has_next_page?: false;
2967
+ has_next_page: false;
2953
2968
 
2954
- next_cursor?: '';
2969
+ next_cursor: '';
2955
2970
  }
2956
2971
 
2957
2972
  export namespace TweetSearchCoverageResponse {
@@ -4233,7 +4248,7 @@ export interface TweetGetRepliesParams {
4233
4248
  blueVerifiedOnly?: boolean;
4234
4249
 
4235
4250
  /**
4236
- * @deprecated This endpoint no longer documents this filter. Remove it.
4251
+ * @deprecated The API ignores this filter on this route. Remove it.
4237
4252
  */
4238
4253
  cardName?: string;
4239
4254
 
@@ -4265,7 +4280,7 @@ export interface TweetGetRepliesParams {
4265
4280
  excludeOriginalAuthor?: boolean;
4266
4281
 
4267
4282
  /**
4268
- * @deprecated This endpoint no longer documents this filter. Remove it.
4283
+ * @deprecated The API ignores this filter on this route. Remove it.
4269
4284
  */
4270
4285
  excludeSource?: string;
4271
4286
 
@@ -4290,7 +4305,7 @@ export interface TweetGetRepliesParams {
4290
4305
  fromUser?: string;
4291
4306
 
4292
4307
  /**
4293
- * @deprecated This endpoint no longer documents this filter. Remove it.
4308
+ * @deprecated The API ignores this filter on this route. Remove it.
4294
4309
  */
4295
4310
  geocode?: string;
4296
4311
 
@@ -4419,12 +4434,12 @@ export interface TweetGetRepliesParams {
4419
4434
  nativeRetweets?: boolean;
4420
4435
 
4421
4436
  /**
4422
- * @deprecated This endpoint no longer documents this filter. Remove it.
4437
+ * @deprecated The API ignores this filter on this route. Remove it.
4423
4438
  */
4424
4439
  near?: string;
4425
4440
 
4426
4441
  /**
4427
- * @deprecated This endpoint no longer documents this filter. Remove it.
4442
+ * @deprecated The API ignores this filter on this route. Remove it.
4428
4443
  */
4429
4444
  news?: boolean;
4430
4445
 
@@ -4467,7 +4482,7 @@ export interface TweetGetRepliesParams {
4467
4482
  retweetsOfTweetId?: string;
4468
4483
 
4469
4484
  /**
4470
- * @deprecated This endpoint no longer documents this filter. Remove it.
4485
+ * @deprecated The API ignores this filter on this route. Remove it.
4471
4486
  */
4472
4487
  safe?: boolean;
4473
4488
 
@@ -4503,7 +4518,7 @@ export interface TweetGetRepliesParams {
4503
4518
  sort?: 'relevance' | 'latest' | 'oldest' | 'likes';
4504
4519
 
4505
4520
  /**
4506
- * @deprecated This endpoint no longer documents this filter. Remove it.
4521
+ * @deprecated The API ignores this filter on this route. Remove it.
4507
4522
  */
4508
4523
  source?: string;
4509
4524
 
@@ -4534,7 +4549,7 @@ export interface TweetGetRepliesParams {
4534
4549
  verifiedOnly?: boolean;
4535
4550
 
4536
4551
  /**
4537
- * @deprecated This endpoint no longer documents this filter. Remove it.
4552
+ * @deprecated The API ignores this filter on this route. Remove it.
4538
4553
  */
4539
4554
  within?: string;
4540
4555