x-twitter-scraper 0.15.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.
- package/CHANGELOG.md +30 -0
- package/client.d.mts +4 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.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 +52 -20
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +52 -20
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +36 -0
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +36 -0
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +6 -3
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +6 -3
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/shared.d.mts +94 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +94 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/tickets.d.mts +14 -5
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +14 -5
- 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 +5 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/x/broadcasts.d.mts +4 -0
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +4 -0
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/jobs.d.mts +8 -0
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +8 -0
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/lists.d.mts +6 -6
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +6 -6
- 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 +24 -0
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +24 -0
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/tweets/tweets.d.mts +21 -11
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +21 -11
- 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 +37 -33
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +37 -33
- 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 +8 -0
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +8 -0
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +4 -0
- 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 +66 -20
- package/src/resources/index.ts +1 -0
- package/src/resources/monitors/keywords.ts +44 -0
- package/src/resources/monitors/monitors.ts +6 -3
- package/src/resources/shared.ts +114 -5
- package/src/resources/support/tickets.ts +16 -5
- package/src/resources/webhooks.ts +6 -0
- package/src/resources/x/broadcasts.ts +5 -0
- package/src/resources/x/jobs.ts +10 -0
- package/src/resources/x/lists.ts +6 -6
- package/src/resources/x/media.ts +15 -2
- package/src/resources/x/profile.ts +15 -4
- package/src/resources/x/spaces.ts +30 -0
- package/src/resources/x/tweets/tweets.ts +26 -11
- package/src/resources/x/users/users.ts +38 -33
- package/src/resources/x/x.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -120,6 +120,17 @@ export interface KeywordCreateResponse {
|
|
|
120
120
|
* Customer-set label of the keyword monitor, when set.
|
|
121
121
|
*/
|
|
122
122
|
name?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* When Xquik paused this keyword monitor.
|
|
126
|
+
*/
|
|
127
|
+
pausedAt?: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
131
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
132
|
+
*/
|
|
133
|
+
pausedReason?: 'insufficient_credits';
|
|
123
134
|
}
|
|
124
135
|
|
|
125
136
|
/**
|
|
@@ -148,6 +159,17 @@ export interface KeywordRetrieveResponse {
|
|
|
148
159
|
* Customer-set label of the keyword monitor, when set.
|
|
149
160
|
*/
|
|
150
161
|
name?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* When Xquik paused this keyword monitor.
|
|
165
|
+
*/
|
|
166
|
+
pausedAt?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
170
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
171
|
+
*/
|
|
172
|
+
pausedReason?: 'insufficient_credits';
|
|
151
173
|
}
|
|
152
174
|
|
|
153
175
|
/**
|
|
@@ -176,6 +198,17 @@ export interface KeywordUpdateResponse {
|
|
|
176
198
|
* Customer-set label of the keyword monitor, when set.
|
|
177
199
|
*/
|
|
178
200
|
name?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* When Xquik paused this keyword monitor.
|
|
204
|
+
*/
|
|
205
|
+
pausedAt?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
209
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
210
|
+
*/
|
|
211
|
+
pausedReason?: 'insufficient_credits';
|
|
179
212
|
}
|
|
180
213
|
|
|
181
214
|
export interface KeywordListResponse {
|
|
@@ -218,6 +251,17 @@ export namespace KeywordListResponse {
|
|
|
218
251
|
* Customer-set label of the keyword monitor, when set.
|
|
219
252
|
*/
|
|
220
253
|
name?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* When Xquik paused this keyword monitor.
|
|
257
|
+
*/
|
|
258
|
+
pausedAt?: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
262
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
263
|
+
*/
|
|
264
|
+
pausedReason?: 'insufficient_credits';
|
|
221
265
|
}
|
|
222
266
|
}
|
|
223
267
|
|
|
@@ -131,14 +131,17 @@ export interface Monitor {
|
|
|
131
131
|
name?: string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* When Xquik
|
|
134
|
+
* When Xquik paused this account monitor.
|
|
135
135
|
*/
|
|
136
136
|
pausedAt?: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Why Xquik
|
|
139
|
+
* Why Xquik paused this account monitor. `insufficient_credits` means the balance
|
|
140
|
+
* could not pay an hour, so add credits & resume. The other 2 mean X stopped
|
|
141
|
+
* showing the account. Absent when the monitor is active or you paused it
|
|
142
|
+
* yourself.
|
|
140
143
|
*/
|
|
141
|
-
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
144
|
+
pausedReason?: 'insufficient_credits' | 'x_account_protected' | 'x_user_not_found';
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
export interface MonitorCreateResponse {
|
package/src/resources/shared.ts
CHANGED
|
@@ -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.
|
|
753
|
-
*
|
|
754
|
-
* follows or unfollows someone, with that account's profile.
|
|
755
|
-
*
|
|
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
|
|
255
|
+
* Body param: Non-empty support ticket subject.
|
|
255
256
|
*/
|
|
256
|
-
|
|
257
|
+
subject: string;
|
|
257
258
|
|
|
258
259
|
/**
|
|
259
|
-
* Body param:
|
|
260
|
+
* Body param: 1 to 4 support image or video uploads.
|
|
260
261
|
*/
|
|
261
|
-
|
|
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
|
|
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 {
|
package/src/resources/x/jobs.ts
CHANGED
|
@@ -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
|
*/
|
package/src/resources/x/lists.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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.
|
|
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
|
|
511
|
+
has_next_page: false;
|
|
512
512
|
|
|
513
|
-
next_cursor
|
|
513
|
+
next_cursor: '';
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
export namespace UserListCoverageResponse {
|
package/src/resources/x/media.ts
CHANGED
|
@@ -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
|
|
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
|
|
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)
|
|
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
|
|
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)
|
|
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
|
|
932
|
+
url?: string;
|
|
922
933
|
|
|
923
934
|
/**
|
|
924
935
|
* Header param: Use one unique value per intended write. Reuse it only for an
|
|
@@ -281,6 +281,11 @@ export namespace SpaceRetrieveResponse {
|
|
|
281
281
|
*/
|
|
282
282
|
profilePicture?: string;
|
|
283
283
|
|
|
284
|
+
/**
|
|
285
|
+
* The participant's profile picture at full size
|
|
286
|
+
*/
|
|
287
|
+
profilePictureOriginal?: string;
|
|
288
|
+
|
|
284
289
|
/**
|
|
285
290
|
* Business or Government badge type
|
|
286
291
|
*/
|
|
@@ -364,6 +369,11 @@ export namespace SpaceRetrieveResponse {
|
|
|
364
369
|
*/
|
|
365
370
|
profilePicture?: string;
|
|
366
371
|
|
|
372
|
+
/**
|
|
373
|
+
* The participant's profile picture at full size
|
|
374
|
+
*/
|
|
375
|
+
profilePictureOriginal?: string;
|
|
376
|
+
|
|
367
377
|
/**
|
|
368
378
|
* Business or Government badge type
|
|
369
379
|
*/
|
|
@@ -447,6 +457,11 @@ export namespace SpaceRetrieveResponse {
|
|
|
447
457
|
*/
|
|
448
458
|
profilePicture?: string;
|
|
449
459
|
|
|
460
|
+
/**
|
|
461
|
+
* The participant's profile picture at full size
|
|
462
|
+
*/
|
|
463
|
+
profilePictureOriginal?: string;
|
|
464
|
+
|
|
450
465
|
/**
|
|
451
466
|
* Business or Government badge type
|
|
452
467
|
*/
|
|
@@ -756,6 +771,11 @@ export namespace SpaceSearchResponse {
|
|
|
756
771
|
*/
|
|
757
772
|
profilePicture?: string;
|
|
758
773
|
|
|
774
|
+
/**
|
|
775
|
+
* The participant's profile picture at full size
|
|
776
|
+
*/
|
|
777
|
+
profilePictureOriginal?: string;
|
|
778
|
+
|
|
759
779
|
/**
|
|
760
780
|
* Business or Government badge type
|
|
761
781
|
*/
|
|
@@ -839,6 +859,11 @@ export namespace SpaceSearchResponse {
|
|
|
839
859
|
*/
|
|
840
860
|
profilePicture?: string;
|
|
841
861
|
|
|
862
|
+
/**
|
|
863
|
+
* The participant's profile picture at full size
|
|
864
|
+
*/
|
|
865
|
+
profilePictureOriginal?: string;
|
|
866
|
+
|
|
842
867
|
/**
|
|
843
868
|
* Business or Government badge type
|
|
844
869
|
*/
|
|
@@ -922,6 +947,11 @@ export namespace SpaceSearchResponse {
|
|
|
922
947
|
*/
|
|
923
948
|
profilePicture?: string;
|
|
924
949
|
|
|
950
|
+
/**
|
|
951
|
+
* The participant's profile picture at full size
|
|
952
|
+
*/
|
|
953
|
+
profilePictureOriginal?: string;
|
|
954
|
+
|
|
925
955
|
/**
|
|
926
956
|
* Business or Government badge type
|
|
927
957
|
*/
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
4437
|
+
* @deprecated The API ignores this filter on this route. Remove it.
|
|
4423
4438
|
*/
|
|
4424
4439
|
near?: string;
|
|
4425
4440
|
|
|
4426
4441
|
/**
|
|
4427
|
-
* @deprecated
|
|
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
|
|
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
|
|
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
|
|
4552
|
+
* @deprecated The API ignores this filter on this route. Remove it.
|
|
4538
4553
|
*/
|
|
4539
4554
|
within?: string;
|
|
4540
4555
|
|