x-twitter-scraper 0.16.0 → 0.18.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 +44 -5
- package/README.md +1 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/detect-platform.d.mts +3 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts +3 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/events.d.mts +50 -11
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +50 -11
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +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/index.d.mts +2 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +3 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +1 -0
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +10 -96
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +10 -96
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +6 -2
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +6 -2
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +4 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +4 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +344 -0
- package/resources/monitors/posts.d.mts.map +1 -0
- package/resources/monitors/posts.d.ts +344 -0
- package/resources/monitors/posts.d.ts.map +1 -0
- package/resources/monitors/posts.js +94 -0
- package/resources/monitors/posts.js.map +1 -0
- package/resources/monitors/posts.mjs +90 -0
- package/resources/monitors/posts.mjs.map +1 -0
- package/resources/shared.d.mts +577 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +577 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +12 -20
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +12 -20
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/webhooks.d.mts +5 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +14 -4
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +14 -4
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -4
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -4
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +3 -131
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -131
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +92 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +92 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +14 -0
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +14 -0
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/community-notes.d.mts +122 -510
- package/resources/x/community-notes.d.mts.map +1 -1
- package/resources/x/community-notes.d.ts +122 -510
- package/resources/x/community-notes.d.ts.map +1 -1
- package/resources/x/community-notes.js.map +1 -1
- package/resources/x/community-notes.mjs.map +1 -1
- package/resources/x/index.d.mts +7 -6
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +7 -6
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +144 -291
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -291
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts +21 -419
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +21 -419
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/spaces.d.mts +213 -693
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -693
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/sports.d.mts +1512 -0
- package/resources/x/sports.d.mts.map +1 -0
- package/resources/x/sports.d.ts +1512 -0
- package/resources/x/sports.d.ts.map +1 -0
- package/resources/x/sports.js +91 -0
- package/resources/x/sports.js.map +1 -0
- package/resources/x/sports.mjs +87 -0
- package/resources/x/sports.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +11 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +11 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/users/users.d.mts +29 -585
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +29 -585
- 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 +55 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +55 -118
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
- package/src/client.ts +8 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/resources/events.ts +72 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +10 -118
- package/src/resources/monitors/monitors.ts +46 -0
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +773 -200
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +14 -21
- package/src/resources/webhooks.ts +5 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -159
- package/src/resources/x/communities/communities.ts +113 -0
- package/src/resources/x/communities/index.ts +3 -0
- package/src/resources/x/community-notes.ts +137 -582
- package/src/resources/x/index.ts +70 -0
- package/src/resources/x/jobs.ts +160 -334
- package/src/resources/x/lists.ts +21 -493
- package/src/resources/x/spaces.ts +227 -817
- package/src/resources/x/sports.ts +1877 -0
- package/src/resources/x/tweets/tweets.ts +15 -15
- package/src/resources/x/users/users.ts +29 -693
- package/src/resources/x/x.ts +191 -128
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/src/lib/.keep +0 -2
|
@@ -145,7 +145,7 @@ export class Users extends APIResource {
|
|
|
145
145
|
id: string,
|
|
146
146
|
query: UserRetrieveFollowerIDsParams | null | undefined = {},
|
|
147
147
|
options?: RequestOptions,
|
|
148
|
-
): APIPromise<
|
|
148
|
+
): APIPromise<Shared.PaginatedUserIds> {
|
|
149
149
|
return this._client.get(path`/x/users/${id}/follower-ids`, { query, ...options });
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -218,7 +218,7 @@ export class Users extends APIResource {
|
|
|
218
218
|
id: string,
|
|
219
219
|
query: UserRetrieveFollowingIDsParams | null | undefined = {},
|
|
220
220
|
options?: RequestOptions,
|
|
221
|
-
): APIPromise<
|
|
221
|
+
): APIPromise<Shared.PaginatedUserIds> {
|
|
222
222
|
return this._client.get(path`/x/users/${id}/following-ids`, { query, ...options });
|
|
223
223
|
}
|
|
224
224
|
|
|
@@ -294,7 +294,7 @@ export class Users extends APIResource {
|
|
|
294
294
|
id: string,
|
|
295
295
|
query: UserRetrieveListMembershipsParams | null | undefined = {},
|
|
296
296
|
options?: RequestOptions,
|
|
297
|
-
): APIPromise<
|
|
297
|
+
): APIPromise<Shared.PaginatedLists> {
|
|
298
298
|
return this._client.get(path`/x/users/${id}/list-memberships`, { query, ...options });
|
|
299
299
|
}
|
|
300
300
|
|
|
@@ -312,7 +312,7 @@ export class Users extends APIResource {
|
|
|
312
312
|
id: string,
|
|
313
313
|
query: UserRetrieveListsParams | null | undefined = {},
|
|
314
314
|
options?: RequestOptions,
|
|
315
|
-
): APIPromise<
|
|
315
|
+
): APIPromise<Shared.PaginatedLists> {
|
|
316
316
|
return this._client.get(path`/x/users/${id}/lists`, { query, ...options });
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -840,20 +840,7 @@ export interface UserRetrieveBatchTweetsResponse {
|
|
|
840
840
|
unprocessed_ids: Array<string>;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
|
|
844
|
-
* A page of user IDs without profiles. Follow next_cursor while the response
|
|
845
|
-
* reports more pages.
|
|
846
|
-
*/
|
|
847
|
-
export interface UserRetrieveFollowerIDsResponse {
|
|
848
|
-
has_next_page: boolean;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* X user IDs, newest relationship first.
|
|
852
|
-
*/
|
|
853
|
-
ids: Array<string>;
|
|
854
|
-
|
|
855
|
-
next_cursor: string;
|
|
856
|
-
}
|
|
843
|
+
export type UserRetrieveFollowerIDsResponse = Shared.PaginatedUserIds;
|
|
857
844
|
|
|
858
845
|
/**
|
|
859
846
|
* A standard or terminal maximum-coverage relationship page.
|
|
@@ -1085,20 +1072,7 @@ export namespace UserRetrieveFollowingResponse {
|
|
|
1085
1072
|
}
|
|
1086
1073
|
}
|
|
1087
1074
|
|
|
1088
|
-
|
|
1089
|
-
* A page of user IDs without profiles. Follow next_cursor while the response
|
|
1090
|
-
* reports more pages.
|
|
1091
|
-
*/
|
|
1092
|
-
export interface UserRetrieveFollowingIDsResponse {
|
|
1093
|
-
has_next_page: boolean;
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* X user IDs, newest relationship first.
|
|
1097
|
-
*/
|
|
1098
|
-
ids: Array<string>;
|
|
1099
|
-
|
|
1100
|
-
next_cursor: string;
|
|
1101
|
-
}
|
|
1075
|
+
export type UserRetrieveFollowingIDsResponse = Shared.PaginatedUserIds;
|
|
1102
1076
|
|
|
1103
1077
|
export interface UserRetrieveInsightsResponse {
|
|
1104
1078
|
/**
|
|
@@ -1251,548 +1225,66 @@ export namespace UserRetrieveInsightsResponse {
|
|
|
1251
1225
|
}
|
|
1252
1226
|
}
|
|
1253
1227
|
|
|
1254
|
-
|
|
1255
|
-
* One page of public X Lists. Follow next_cursor while the response reports more
|
|
1256
|
-
* pages. Each returned List costs 1 credit.
|
|
1257
|
-
*/
|
|
1258
|
-
export interface UserRetrieveListMembershipsResponse {
|
|
1259
|
-
has_next_page: boolean;
|
|
1260
|
-
|
|
1261
|
-
lists: Array<UserRetrieveListMembershipsResponse.List>;
|
|
1262
|
-
|
|
1263
|
-
next_cursor: string;
|
|
1264
|
-
}
|
|
1228
|
+
export type UserRetrieveListMembershipsResponse = Shared.PaginatedLists;
|
|
1265
1229
|
|
|
1266
1230
|
export namespace UserRetrieveListMembershipsResponse {
|
|
1267
|
-
|
|
1268
|
-
* Public X List with its owner's public profile. Leaves out what X tells the
|
|
1269
|
-
* reading account, such as whether it follows the List.
|
|
1270
|
-
*/
|
|
1271
|
-
export interface List {
|
|
1272
|
-
/**
|
|
1273
|
-
* Numeric ID of the List.
|
|
1274
|
-
*/
|
|
1275
|
-
id: string;
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
* Name the owner gave the List.
|
|
1279
|
-
*/
|
|
1280
|
-
name: string;
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* URL of the banner the owner uploaded. Absent when the owner uploaded none.
|
|
1284
|
-
*/
|
|
1285
|
-
bannerUrl?: string;
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
* When the owner made the List.
|
|
1289
|
-
*/
|
|
1290
|
-
createdAt?: string;
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
* Banner the owner uploaded.
|
|
1294
|
-
*/
|
|
1295
|
-
customBanner?: List.CustomBanner;
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* Banner X shows when the owner uploaded none. X picks it per reading account, so
|
|
1299
|
-
* 2 calls can return different ones.
|
|
1300
|
-
*/
|
|
1301
|
-
defaultBanner?: List.DefaultBanner;
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* About text of the List. Empty when the owner wrote none.
|
|
1305
|
-
*/
|
|
1306
|
-
description?: string;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* Avatar URLs of a few List members, which X may pick per request.
|
|
1310
|
-
*/
|
|
1311
|
-
facepileUrls?: Array<string>;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Accounts on the List.
|
|
1315
|
-
*/
|
|
1316
|
-
memberCount?: number;
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* Member count as X words it, such as 35 members.
|
|
1320
|
-
*/
|
|
1321
|
-
membersContext?: string;
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* Public profile of the account that owns the List.
|
|
1325
|
-
*/
|
|
1326
|
-
owner?: Shared.UserProfile;
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* Accounts that follow the List, which X calls followers.
|
|
1330
|
-
*/
|
|
1331
|
-
subscriberCount?: number;
|
|
1332
|
-
|
|
1333
|
-
/**
|
|
1334
|
-
* List page on x.com.
|
|
1335
|
-
*/
|
|
1336
|
-
url?: string;
|
|
1337
|
-
}
|
|
1231
|
+
export type List = Shared.XList;
|
|
1338
1232
|
|
|
1339
1233
|
export namespace List {
|
|
1340
|
-
|
|
1341
|
-
* Banner the owner uploaded.
|
|
1342
|
-
*/
|
|
1343
|
-
export interface CustomBanner {
|
|
1344
|
-
/**
|
|
1345
|
-
* Banner image URL.
|
|
1346
|
-
*/
|
|
1347
|
-
url: string;
|
|
1348
|
-
|
|
1349
|
-
/**
|
|
1350
|
-
* Banner height in pixels.
|
|
1351
|
-
*/
|
|
1352
|
-
height?: number;
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* Media ID of an uploaded banner.
|
|
1356
|
-
*/
|
|
1357
|
-
mediaId?: string;
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* Stable media key of an uploaded banner.
|
|
1361
|
-
*/
|
|
1362
|
-
mediaKey?: string;
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* Dominant colors of an uploaded banner and their shares.
|
|
1366
|
-
*/
|
|
1367
|
-
palette?: Array<CustomBanner.Palette>;
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1371
|
-
*/
|
|
1372
|
-
salientRect?: CustomBanner.SalientRect;
|
|
1373
|
-
|
|
1374
|
-
/**
|
|
1375
|
-
* Banner width in pixels.
|
|
1376
|
-
*/
|
|
1377
|
-
width?: number;
|
|
1378
|
-
}
|
|
1234
|
+
export type CustomBanner = Shared.XListBanner;
|
|
1379
1235
|
|
|
1380
1236
|
export namespace CustomBanner {
|
|
1381
|
-
export
|
|
1382
|
-
/**
|
|
1383
|
-
* Share of the banner
|
|
1384
|
-
*/
|
|
1385
|
-
percentage?: number;
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* The color's red, green and blue values.
|
|
1389
|
-
*/
|
|
1390
|
-
rgb?: Palette.Rgb;
|
|
1391
|
-
}
|
|
1237
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1392
1238
|
|
|
1393
1239
|
export namespace Palette {
|
|
1394
|
-
|
|
1395
|
-
* The color's red, green and blue values.
|
|
1396
|
-
*/
|
|
1397
|
-
export interface Rgb {
|
|
1398
|
-
blue?: number;
|
|
1399
|
-
|
|
1400
|
-
green?: number;
|
|
1401
|
-
|
|
1402
|
-
red?: number;
|
|
1403
|
-
}
|
|
1240
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1404
1241
|
}
|
|
1405
1242
|
|
|
1406
|
-
|
|
1407
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1408
|
-
*/
|
|
1409
|
-
export interface SalientRect {
|
|
1410
|
-
/**
|
|
1411
|
-
* Height of the marked area.
|
|
1412
|
-
*/
|
|
1413
|
-
height?: number;
|
|
1414
|
-
|
|
1415
|
-
/**
|
|
1416
|
-
* Pixels from the banner's left.
|
|
1417
|
-
*/
|
|
1418
|
-
left?: number;
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Pixels from the banner's top.
|
|
1422
|
-
*/
|
|
1423
|
-
top?: number;
|
|
1424
|
-
|
|
1425
|
-
/**
|
|
1426
|
-
* Width of the marked area.
|
|
1427
|
-
*/
|
|
1428
|
-
width?: number;
|
|
1429
|
-
}
|
|
1243
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1430
1244
|
}
|
|
1431
1245
|
|
|
1432
|
-
|
|
1433
|
-
* Banner X shows when the owner uploaded none. X picks it per reading account, so
|
|
1434
|
-
* 2 calls can return different ones.
|
|
1435
|
-
*/
|
|
1436
|
-
export interface DefaultBanner {
|
|
1437
|
-
/**
|
|
1438
|
-
* Banner image URL.
|
|
1439
|
-
*/
|
|
1440
|
-
url: string;
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* Banner height in pixels.
|
|
1444
|
-
*/
|
|
1445
|
-
height?: number;
|
|
1446
|
-
|
|
1447
|
-
/**
|
|
1448
|
-
* Media ID of an uploaded banner.
|
|
1449
|
-
*/
|
|
1450
|
-
mediaId?: string;
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* Stable media key of an uploaded banner.
|
|
1454
|
-
*/
|
|
1455
|
-
mediaKey?: string;
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* Dominant colors of an uploaded banner and their shares.
|
|
1459
|
-
*/
|
|
1460
|
-
palette?: Array<DefaultBanner.Palette>;
|
|
1461
|
-
|
|
1462
|
-
/**
|
|
1463
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1464
|
-
*/
|
|
1465
|
-
salientRect?: DefaultBanner.SalientRect;
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* Banner width in pixels.
|
|
1469
|
-
*/
|
|
1470
|
-
width?: number;
|
|
1471
|
-
}
|
|
1246
|
+
export type DefaultBanner = Shared.XListBanner;
|
|
1472
1247
|
|
|
1473
1248
|
export namespace DefaultBanner {
|
|
1474
|
-
export
|
|
1475
|
-
/**
|
|
1476
|
-
* Share of the banner
|
|
1477
|
-
*/
|
|
1478
|
-
percentage?: number;
|
|
1479
|
-
|
|
1480
|
-
/**
|
|
1481
|
-
* The color's red, green and blue values.
|
|
1482
|
-
*/
|
|
1483
|
-
rgb?: Palette.Rgb;
|
|
1484
|
-
}
|
|
1249
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1485
1250
|
|
|
1486
1251
|
export namespace Palette {
|
|
1487
|
-
|
|
1488
|
-
* The color's red, green and blue values.
|
|
1489
|
-
*/
|
|
1490
|
-
export interface Rgb {
|
|
1491
|
-
blue?: number;
|
|
1492
|
-
|
|
1493
|
-
green?: number;
|
|
1494
|
-
|
|
1495
|
-
red?: number;
|
|
1496
|
-
}
|
|
1252
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1497
1253
|
}
|
|
1498
1254
|
|
|
1499
|
-
|
|
1500
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1501
|
-
*/
|
|
1502
|
-
export interface SalientRect {
|
|
1503
|
-
/**
|
|
1504
|
-
* Height of the marked area.
|
|
1505
|
-
*/
|
|
1506
|
-
height?: number;
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* Pixels from the banner's left.
|
|
1510
|
-
*/
|
|
1511
|
-
left?: number;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Pixels from the banner's top.
|
|
1515
|
-
*/
|
|
1516
|
-
top?: number;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* Width of the marked area.
|
|
1520
|
-
*/
|
|
1521
|
-
width?: number;
|
|
1522
|
-
}
|
|
1255
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1523
1256
|
}
|
|
1524
1257
|
}
|
|
1525
1258
|
}
|
|
1526
1259
|
|
|
1527
|
-
|
|
1528
|
-
* One page of public X Lists. Follow next_cursor while the response reports more
|
|
1529
|
-
* pages. Each returned List costs 1 credit.
|
|
1530
|
-
*/
|
|
1531
|
-
export interface UserRetrieveListsResponse {
|
|
1532
|
-
has_next_page: boolean;
|
|
1533
|
-
|
|
1534
|
-
lists: Array<UserRetrieveListsResponse.List>;
|
|
1535
|
-
|
|
1536
|
-
next_cursor: string;
|
|
1537
|
-
}
|
|
1260
|
+
export type UserRetrieveListsResponse = Shared.PaginatedLists;
|
|
1538
1261
|
|
|
1539
1262
|
export namespace UserRetrieveListsResponse {
|
|
1540
|
-
|
|
1541
|
-
* Public X List with its owner's public profile. Leaves out what X tells the
|
|
1542
|
-
* reading account, such as whether it follows the List.
|
|
1543
|
-
*/
|
|
1544
|
-
export interface List {
|
|
1545
|
-
/**
|
|
1546
|
-
* Numeric ID of the List.
|
|
1547
|
-
*/
|
|
1548
|
-
id: string;
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
* Name the owner gave the List.
|
|
1552
|
-
*/
|
|
1553
|
-
name: string;
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* URL of the banner the owner uploaded. Absent when the owner uploaded none.
|
|
1557
|
-
*/
|
|
1558
|
-
bannerUrl?: string;
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* When the owner made the List.
|
|
1562
|
-
*/
|
|
1563
|
-
createdAt?: string;
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* Banner the owner uploaded.
|
|
1567
|
-
*/
|
|
1568
|
-
customBanner?: List.CustomBanner;
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* Banner X shows when the owner uploaded none. X picks it per reading account, so
|
|
1572
|
-
* 2 calls can return different ones.
|
|
1573
|
-
*/
|
|
1574
|
-
defaultBanner?: List.DefaultBanner;
|
|
1575
|
-
|
|
1576
|
-
/**
|
|
1577
|
-
* About text of the List. Empty when the owner wrote none.
|
|
1578
|
-
*/
|
|
1579
|
-
description?: string;
|
|
1580
|
-
|
|
1581
|
-
/**
|
|
1582
|
-
* Avatar URLs of a few List members, which X may pick per request.
|
|
1583
|
-
*/
|
|
1584
|
-
facepileUrls?: Array<string>;
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* Accounts on the List.
|
|
1588
|
-
*/
|
|
1589
|
-
memberCount?: number;
|
|
1590
|
-
|
|
1591
|
-
/**
|
|
1592
|
-
* Member count as X words it, such as 35 members.
|
|
1593
|
-
*/
|
|
1594
|
-
membersContext?: string;
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
* Public profile of the account that owns the List.
|
|
1598
|
-
*/
|
|
1599
|
-
owner?: Shared.UserProfile;
|
|
1600
|
-
|
|
1601
|
-
/**
|
|
1602
|
-
* Accounts that follow the List, which X calls followers.
|
|
1603
|
-
*/
|
|
1604
|
-
subscriberCount?: number;
|
|
1605
|
-
|
|
1606
|
-
/**
|
|
1607
|
-
* List page on x.com.
|
|
1608
|
-
*/
|
|
1609
|
-
url?: string;
|
|
1610
|
-
}
|
|
1263
|
+
export type List = Shared.XList;
|
|
1611
1264
|
|
|
1612
1265
|
export namespace List {
|
|
1613
|
-
|
|
1614
|
-
* Banner the owner uploaded.
|
|
1615
|
-
*/
|
|
1616
|
-
export interface CustomBanner {
|
|
1617
|
-
/**
|
|
1618
|
-
* Banner image URL.
|
|
1619
|
-
*/
|
|
1620
|
-
url: string;
|
|
1621
|
-
|
|
1622
|
-
/**
|
|
1623
|
-
* Banner height in pixels.
|
|
1624
|
-
*/
|
|
1625
|
-
height?: number;
|
|
1626
|
-
|
|
1627
|
-
/**
|
|
1628
|
-
* Media ID of an uploaded banner.
|
|
1629
|
-
*/
|
|
1630
|
-
mediaId?: string;
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* Stable media key of an uploaded banner.
|
|
1634
|
-
*/
|
|
1635
|
-
mediaKey?: string;
|
|
1636
|
-
|
|
1637
|
-
/**
|
|
1638
|
-
* Dominant colors of an uploaded banner and their shares.
|
|
1639
|
-
*/
|
|
1640
|
-
palette?: Array<CustomBanner.Palette>;
|
|
1641
|
-
|
|
1642
|
-
/**
|
|
1643
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1644
|
-
*/
|
|
1645
|
-
salientRect?: CustomBanner.SalientRect;
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* Banner width in pixels.
|
|
1649
|
-
*/
|
|
1650
|
-
width?: number;
|
|
1651
|
-
}
|
|
1266
|
+
export type CustomBanner = Shared.XListBanner;
|
|
1652
1267
|
|
|
1653
1268
|
export namespace CustomBanner {
|
|
1654
|
-
export
|
|
1655
|
-
/**
|
|
1656
|
-
* Share of the banner
|
|
1657
|
-
*/
|
|
1658
|
-
percentage?: number;
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* The color's red, green and blue values.
|
|
1662
|
-
*/
|
|
1663
|
-
rgb?: Palette.Rgb;
|
|
1664
|
-
}
|
|
1269
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1665
1270
|
|
|
1666
1271
|
export namespace Palette {
|
|
1667
|
-
|
|
1668
|
-
* The color's red, green and blue values.
|
|
1669
|
-
*/
|
|
1670
|
-
export interface Rgb {
|
|
1671
|
-
blue?: number;
|
|
1672
|
-
|
|
1673
|
-
green?: number;
|
|
1674
|
-
|
|
1675
|
-
red?: number;
|
|
1676
|
-
}
|
|
1272
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1677
1273
|
}
|
|
1678
1274
|
|
|
1679
|
-
|
|
1680
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1681
|
-
*/
|
|
1682
|
-
export interface SalientRect {
|
|
1683
|
-
/**
|
|
1684
|
-
* Height of the marked area.
|
|
1685
|
-
*/
|
|
1686
|
-
height?: number;
|
|
1687
|
-
|
|
1688
|
-
/**
|
|
1689
|
-
* Pixels from the banner's left.
|
|
1690
|
-
*/
|
|
1691
|
-
left?: number;
|
|
1692
|
-
|
|
1693
|
-
/**
|
|
1694
|
-
* Pixels from the banner's top.
|
|
1695
|
-
*/
|
|
1696
|
-
top?: number;
|
|
1697
|
-
|
|
1698
|
-
/**
|
|
1699
|
-
* Width of the marked area.
|
|
1700
|
-
*/
|
|
1701
|
-
width?: number;
|
|
1702
|
-
}
|
|
1275
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1703
1276
|
}
|
|
1704
1277
|
|
|
1705
|
-
|
|
1706
|
-
* Banner X shows when the owner uploaded none. X picks it per reading account, so
|
|
1707
|
-
* 2 calls can return different ones.
|
|
1708
|
-
*/
|
|
1709
|
-
export interface DefaultBanner {
|
|
1710
|
-
/**
|
|
1711
|
-
* Banner image URL.
|
|
1712
|
-
*/
|
|
1713
|
-
url: string;
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Banner height in pixels.
|
|
1717
|
-
*/
|
|
1718
|
-
height?: number;
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Media ID of an uploaded banner.
|
|
1722
|
-
*/
|
|
1723
|
-
mediaId?: string;
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
* Stable media key of an uploaded banner.
|
|
1727
|
-
*/
|
|
1728
|
-
mediaKey?: string;
|
|
1729
|
-
|
|
1730
|
-
/**
|
|
1731
|
-
* Dominant colors of an uploaded banner and their shares.
|
|
1732
|
-
*/
|
|
1733
|
-
palette?: Array<DefaultBanner.Palette>;
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1737
|
-
*/
|
|
1738
|
-
salientRect?: DefaultBanner.SalientRect;
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* Banner width in pixels.
|
|
1742
|
-
*/
|
|
1743
|
-
width?: number;
|
|
1744
|
-
}
|
|
1278
|
+
export type DefaultBanner = Shared.XListBanner;
|
|
1745
1279
|
|
|
1746
1280
|
export namespace DefaultBanner {
|
|
1747
|
-
export
|
|
1748
|
-
/**
|
|
1749
|
-
* Share of the banner
|
|
1750
|
-
*/
|
|
1751
|
-
percentage?: number;
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* The color's red, green and blue values.
|
|
1755
|
-
*/
|
|
1756
|
-
rgb?: Palette.Rgb;
|
|
1757
|
-
}
|
|
1281
|
+
export type Palette = Shared.XListBanner.Palette;
|
|
1758
1282
|
|
|
1759
1283
|
export namespace Palette {
|
|
1760
|
-
|
|
1761
|
-
* The color's red, green and blue values.
|
|
1762
|
-
*/
|
|
1763
|
-
export interface Rgb {
|
|
1764
|
-
blue?: number;
|
|
1765
|
-
|
|
1766
|
-
green?: number;
|
|
1767
|
-
|
|
1768
|
-
red?: number;
|
|
1769
|
-
}
|
|
1284
|
+
export type Rgb = Shared.XListBanner.Palette.Rgb;
|
|
1770
1285
|
}
|
|
1771
1286
|
|
|
1772
|
-
|
|
1773
|
-
* Area X marks as the subject of the banner, in pixels.
|
|
1774
|
-
*/
|
|
1775
|
-
export interface SalientRect {
|
|
1776
|
-
/**
|
|
1777
|
-
* Height of the marked area.
|
|
1778
|
-
*/
|
|
1779
|
-
height?: number;
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
* Pixels from the banner's left.
|
|
1783
|
-
*/
|
|
1784
|
-
left?: number;
|
|
1785
|
-
|
|
1786
|
-
/**
|
|
1787
|
-
* Pixels from the banner's top.
|
|
1788
|
-
*/
|
|
1789
|
-
top?: number;
|
|
1790
|
-
|
|
1791
|
-
/**
|
|
1792
|
-
* Width of the marked area.
|
|
1793
|
-
*/
|
|
1794
|
-
width?: number;
|
|
1795
|
-
}
|
|
1287
|
+
export type SalientRect = Shared.XListBanner.SalientRect;
|
|
1796
1288
|
}
|
|
1797
1289
|
}
|
|
1798
1290
|
}
|
|
@@ -1805,7 +1297,7 @@ export interface UserRetrieveLiveResponse {
|
|
|
1805
1297
|
/**
|
|
1806
1298
|
* Latest broadcast, live or ended. Null when X shows none.
|
|
1807
1299
|
*/
|
|
1808
|
-
broadcast:
|
|
1300
|
+
broadcast: Shared.Broadcast | null;
|
|
1809
1301
|
|
|
1810
1302
|
/**
|
|
1811
1303
|
* True while the user's latest broadcast is running.
|
|
@@ -1824,166 +1316,10 @@ export interface UserRetrieveLiveResponse {
|
|
|
1824
1316
|
}
|
|
1825
1317
|
|
|
1826
1318
|
export namespace UserRetrieveLiveResponse {
|
|
1827
|
-
|
|
1828
|
-
* X broadcast, a live video
|
|
1829
|
-
*/
|
|
1830
|
-
export interface Broadcast {
|
|
1831
|
-
/**
|
|
1832
|
-
* Broadcast ID
|
|
1833
|
-
*/
|
|
1834
|
-
id: string;
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Camera rotation in degrees
|
|
1838
|
-
*/
|
|
1839
|
-
cameraRotation?: number;
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* X's code for who may chat
|
|
1843
|
-
*/
|
|
1844
|
-
chatOption?: number;
|
|
1845
|
-
|
|
1846
|
-
/**
|
|
1847
|
-
* Public X profile.
|
|
1848
|
-
*/
|
|
1849
|
-
creator?: Shared.UserProfile;
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* When the broadcast ended
|
|
1853
|
-
*/
|
|
1854
|
-
endedAt?: string;
|
|
1855
|
-
|
|
1856
|
-
/**
|
|
1857
|
-
* Video height in pixels
|
|
1858
|
-
*/
|
|
1859
|
-
height?: number;
|
|
1860
|
-
|
|
1861
|
-
/**
|
|
1862
|
-
* Whether X offers a recording of the broadcast
|
|
1863
|
-
*/
|
|
1864
|
-
isAvailableForReplay?: boolean;
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
* Whether the video stream runs in high-latency mode
|
|
1868
|
-
*/
|
|
1869
|
-
isHighLatency?: boolean;
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* Whether X marks the chat private
|
|
1873
|
-
*/
|
|
1874
|
-
isPrivateChat?: boolean;
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* Whether the broadcaster edited the title of the replay
|
|
1878
|
-
*/
|
|
1879
|
-
isTitleEdited?: boolean;
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* When the video stream last reached X
|
|
1883
|
-
*/
|
|
1884
|
-
lastPingAt?: string;
|
|
1885
|
-
|
|
1886
|
-
/**
|
|
1887
|
-
* X's media key for the video
|
|
1888
|
-
*/
|
|
1889
|
-
mediaKey?: string;
|
|
1890
|
-
|
|
1891
|
-
/**
|
|
1892
|
-
* Broadcaster, as X's live video service names the account
|
|
1893
|
-
*/
|
|
1894
|
-
periscopeUser?: Broadcast.PeriscopeUser;
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Image X shows before the broadcast starts
|
|
1898
|
-
*/
|
|
1899
|
-
preLiveSlateUrl?: string;
|
|
1900
|
-
|
|
1901
|
-
/**
|
|
1902
|
-
* When the broadcast was set to start
|
|
1903
|
-
*/
|
|
1904
|
-
scheduledStart?: string;
|
|
1905
|
-
|
|
1906
|
-
/**
|
|
1907
|
-
* What produced the video stream, as X names it
|
|
1908
|
-
*/
|
|
1909
|
-
source?: string;
|
|
1910
|
-
|
|
1911
|
-
/**
|
|
1912
|
-
* When the broadcast went live
|
|
1913
|
-
*/
|
|
1914
|
-
startedAt?: string;
|
|
1915
|
-
|
|
1916
|
-
/**
|
|
1917
|
-
* Such as NotStarted, Running or Ended, as X names it
|
|
1918
|
-
*/
|
|
1919
|
-
state?: string;
|
|
1920
|
-
|
|
1921
|
-
/**
|
|
1922
|
-
* Broadcast title
|
|
1923
|
-
*/
|
|
1924
|
-
title?: string;
|
|
1925
|
-
|
|
1926
|
-
/**
|
|
1927
|
-
* Accounts that watched, live or after
|
|
1928
|
-
*/
|
|
1929
|
-
totalWatched?: number;
|
|
1930
|
-
|
|
1931
|
-
/**
|
|
1932
|
-
* Accounts watching, as X counts them
|
|
1933
|
-
*/
|
|
1934
|
-
totalWatching?: number;
|
|
1935
|
-
|
|
1936
|
-
/**
|
|
1937
|
-
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
1938
|
-
*/
|
|
1939
|
-
tweet?: Shared.SearchTweet;
|
|
1940
|
-
|
|
1941
|
-
/**
|
|
1942
|
-
* ID of the post that announces the broadcast
|
|
1943
|
-
*/
|
|
1944
|
-
tweetId?: string;
|
|
1945
|
-
|
|
1946
|
-
/**
|
|
1947
|
-
* X's revision number of the broadcast
|
|
1948
|
-
*/
|
|
1949
|
-
version?: number;
|
|
1950
|
-
|
|
1951
|
-
/**
|
|
1952
|
-
* Video width in pixels
|
|
1953
|
-
*/
|
|
1954
|
-
width?: number;
|
|
1955
|
-
}
|
|
1319
|
+
export type Broadcast = Shared.Broadcast;
|
|
1956
1320
|
|
|
1957
1321
|
export namespace Broadcast {
|
|
1958
|
-
|
|
1959
|
-
* Broadcaster, as X's live video service names the account
|
|
1960
|
-
*/
|
|
1961
|
-
export interface PeriscopeUser {
|
|
1962
|
-
/**
|
|
1963
|
-
* Live video account ID
|
|
1964
|
-
*/
|
|
1965
|
-
id?: string;
|
|
1966
|
-
|
|
1967
|
-
/**
|
|
1968
|
-
* Live video display name
|
|
1969
|
-
*/
|
|
1970
|
-
displayName?: string;
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* Live video avatar URL
|
|
1974
|
-
*/
|
|
1975
|
-
profilePicture?: string;
|
|
1976
|
-
|
|
1977
|
-
/**
|
|
1978
|
-
* The broadcaster's avatar at full size
|
|
1979
|
-
*/
|
|
1980
|
-
profilePictureOriginal?: string;
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* Live video username
|
|
1984
|
-
*/
|
|
1985
|
-
username?: string;
|
|
1986
|
-
}
|
|
1322
|
+
export type PeriscopeUser = Shared.Broadcast.PeriscopeUser;
|
|
1987
1323
|
}
|
|
1988
1324
|
}
|
|
1989
1325
|
|