@book000/twitterts 0.40.0 → 0.41.1

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 (45) hide show
  1. package/dist/generate-types/custom-types-generator.d.ts +8 -1
  2. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  3. package/dist/generate-types/custom-types-generator.js +31 -18
  4. package/dist/generate-types/custom-types-generator.js.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts +5164 -0
  10. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts.map +1 -0
  11. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.js +4 -0
  12. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.js.map +1 -0
  13. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +157 -157
  14. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  15. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +1077 -809
  16. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  17. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +33 -33
  18. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  19. package/dist/models/responses/custom/custom-tweet-object.d.ts +271 -10
  20. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  21. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +154 -154
  22. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  23. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +373 -14
  24. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  25. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +48 -8
  26. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  27. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +157 -157
  28. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  29. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +2 -2
  30. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
  31. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +1215 -1215
  32. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  33. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +428 -14
  34. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  35. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +236 -236
  36. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  37. package/dist/parser/home-timeline-parser.d.ts +2 -2
  38. package/dist/parser/home-timeline-parser.d.ts.map +1 -1
  39. package/dist/parser/home-timeline-parser.js.map +1 -1
  40. package/dist/tsconfig.build.tsbuildinfo +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/dist/twitter.d.ts.map +1 -1
  43. package/dist/twitter.js +6 -1
  44. package/dist/twitter.js.map +1 -1
  45. package/package.json +1 -1
@@ -704,8 +704,8 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
704
704
  quoted_status_result?: {
705
705
  result: {
706
706
  __typename: string;
707
- rest_id: string;
708
- core: {
707
+ rest_id?: string;
708
+ core?: {
709
709
  user_results: {
710
710
  result: {
711
711
  __typename: string;
@@ -804,7 +804,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
804
804
  };
805
805
  };
806
806
  };
807
- edit_control: {
807
+ edit_control?: {
808
808
  edit_tweet_ids?: string[];
809
809
  editable_until_msecs?: string;
810
810
  is_edit_eligible?: boolean;
@@ -821,13 +821,13 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
821
821
  favorited: boolean;
822
822
  retweeted: boolean;
823
823
  };
824
- is_translatable: boolean;
825
- views: {
824
+ is_translatable?: boolean;
825
+ views?: {
826
826
  count: string;
827
827
  state: string;
828
828
  };
829
- source: string;
830
- legacy: {
829
+ source?: string;
830
+ legacy?: {
831
831
  bookmark_count: number;
832
832
  bookmarked: boolean;
833
833
  created_at: string;
@@ -1173,7 +1173,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
1173
1173
  media_count: number;
1174
1174
  name: string;
1175
1175
  normal_followers_count: number;
1176
- pinned_tweet_ids_str: unknown[];
1176
+ pinned_tweet_ids_str: string[];
1177
1177
  possibly_sensitive: boolean;
1178
1178
  profile_banner_url: string;
1179
1179
  profile_image_url_https: string;
@@ -1187,6 +1187,15 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
1187
1187
  want_retweets: boolean;
1188
1188
  withheld_in_countries: unknown[];
1189
1189
  };
1190
+ professional?: {
1191
+ rest_id: string;
1192
+ professional_type: string;
1193
+ category: {
1194
+ id: number;
1195
+ name: string;
1196
+ icon_name: string;
1197
+ }[];
1198
+ };
1190
1199
  };
1191
1200
  }[];
1192
1201
  };
@@ -1194,6 +1203,146 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
1194
1203
  unified_card?: {
1195
1204
  card_fetch_state: string;
1196
1205
  };
1206
+ tweet?: {
1207
+ rest_id: string;
1208
+ core: {
1209
+ user_results: {
1210
+ result: {
1211
+ __typename: string;
1212
+ id: string;
1213
+ rest_id: string;
1214
+ affiliates_highlighted_label: {};
1215
+ has_graduated_access: boolean;
1216
+ is_blue_verified: boolean;
1217
+ profile_image_shape: string;
1218
+ legacy: {
1219
+ can_dm: boolean;
1220
+ can_media_tag: boolean;
1221
+ created_at: string;
1222
+ default_profile: boolean;
1223
+ default_profile_image: boolean;
1224
+ description: string;
1225
+ entities: {
1226
+ description: {
1227
+ urls: unknown[];
1228
+ };
1229
+ url: {
1230
+ urls: {
1231
+ display_url: string;
1232
+ expanded_url: string;
1233
+ url: string;
1234
+ indices: number[];
1235
+ }[];
1236
+ };
1237
+ };
1238
+ fast_followers_count: number;
1239
+ favourites_count: number;
1240
+ followers_count: number;
1241
+ friends_count: number;
1242
+ has_custom_timelines: boolean;
1243
+ is_translator: boolean;
1244
+ listed_count: number;
1245
+ location: string;
1246
+ media_count: number;
1247
+ name: string;
1248
+ normal_followers_count: number;
1249
+ pinned_tweet_ids_str: string[];
1250
+ possibly_sensitive: boolean;
1251
+ profile_banner_url: string;
1252
+ profile_image_url_https: string;
1253
+ profile_interstitial_type: string;
1254
+ screen_name: string;
1255
+ statuses_count: number;
1256
+ translator_type: string;
1257
+ url: string;
1258
+ verified: boolean;
1259
+ want_retweets: boolean;
1260
+ withheld_in_countries: unknown[];
1261
+ };
1262
+ };
1263
+ };
1264
+ };
1265
+ edit_control: {
1266
+ edit_tweet_ids: string[];
1267
+ editable_until_msecs: string;
1268
+ is_edit_eligible: boolean;
1269
+ edits_remaining: string;
1270
+ };
1271
+ is_translatable: boolean;
1272
+ views: {
1273
+ count: string;
1274
+ state: string;
1275
+ };
1276
+ source: string;
1277
+ quotedRefResult: {
1278
+ result: {
1279
+ __typename: string;
1280
+ rest_id: string;
1281
+ };
1282
+ };
1283
+ legacy: {
1284
+ bookmark_count: number;
1285
+ bookmarked: boolean;
1286
+ created_at: string;
1287
+ conversation_control: {
1288
+ policy: string;
1289
+ conversation_owner_results: {
1290
+ result: {
1291
+ __typename: string;
1292
+ legacy: {
1293
+ screen_name: string;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ conversation_id_str: string;
1299
+ display_text_range: number[];
1300
+ entities: {
1301
+ user_mentions: unknown[];
1302
+ urls: unknown[];
1303
+ hashtags: {
1304
+ indices: number[];
1305
+ text: string;
1306
+ }[];
1307
+ symbols: unknown[];
1308
+ };
1309
+ favorite_count: number;
1310
+ favorited: boolean;
1311
+ full_text: string;
1312
+ is_quote_status: boolean;
1313
+ lang: string;
1314
+ limited_actions: string;
1315
+ quote_count: number;
1316
+ quoted_status_id_str: string;
1317
+ quoted_status_permalink: {
1318
+ url: string;
1319
+ expanded: string;
1320
+ display: string;
1321
+ };
1322
+ reply_count: number;
1323
+ retweet_count: number;
1324
+ retweeted: boolean;
1325
+ user_id_str: string;
1326
+ id_str: string;
1327
+ };
1328
+ };
1329
+ limitedActionResults?: {
1330
+ limited_actions: {
1331
+ action: string;
1332
+ prompt: {
1333
+ __typename: string;
1334
+ cta_type: string;
1335
+ headline: {
1336
+ text: string;
1337
+ entities: unknown[];
1338
+ };
1339
+ subtext: {
1340
+ text: string;
1341
+ entities: unknown[];
1342
+ };
1343
+ };
1344
+ }[];
1345
+ };
1197
1346
  };
1198
1347
  };
1199
1348
  note_tweet?: {
@@ -1935,7 +2084,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
1935
2084
  conversation_id_str: string;
1936
2085
  display_text_range: number[];
1937
2086
  entities: {
1938
- media: {
2087
+ media?: {
1939
2088
  display_url: string;
1940
2089
  expanded_url: string;
1941
2090
  id_str: string;
@@ -2023,7 +2172,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2023
2172
  }[];
2024
2173
  symbols: unknown[];
2025
2174
  };
2026
- extended_entities: {
2175
+ extended_entities?: {
2027
2176
  media: {
2028
2177
  display_url: string;
2029
2178
  expanded_url: string;
@@ -2125,14 +2274,245 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2125
2274
  is_quote_status: boolean;
2126
2275
  lang: string;
2127
2276
  limited_actions: string;
2128
- possibly_sensitive: boolean;
2129
- possibly_sensitive_editable: boolean;
2277
+ possibly_sensitive?: boolean;
2278
+ possibly_sensitive_editable?: boolean;
2130
2279
  quote_count: number;
2131
2280
  reply_count: number;
2132
2281
  retweet_count: number;
2133
2282
  retweeted: boolean;
2134
2283
  user_id_str: string;
2135
2284
  id_str: string;
2285
+ quoted_status_id_str?: string;
2286
+ quoted_status_permalink?: {
2287
+ url: string;
2288
+ expanded: string;
2289
+ display: string;
2290
+ };
2291
+ };
2292
+ quoted_status_result?: {
2293
+ result: {
2294
+ __typename: string;
2295
+ rest_id: string;
2296
+ core: {
2297
+ user_results: {
2298
+ result: {
2299
+ __typename: string;
2300
+ id: string;
2301
+ rest_id: string;
2302
+ affiliates_highlighted_label: {};
2303
+ has_graduated_access: boolean;
2304
+ is_blue_verified: boolean;
2305
+ profile_image_shape: string;
2306
+ legacy: {
2307
+ can_dm: boolean;
2308
+ can_media_tag: boolean;
2309
+ created_at: string;
2310
+ default_profile: boolean;
2311
+ default_profile_image: boolean;
2312
+ description: string;
2313
+ entities: {
2314
+ description: {
2315
+ urls: unknown[];
2316
+ };
2317
+ url: {
2318
+ urls: {
2319
+ display_url: string;
2320
+ expanded_url: string;
2321
+ url: string;
2322
+ indices: number[];
2323
+ }[];
2324
+ };
2325
+ };
2326
+ fast_followers_count: number;
2327
+ favourites_count: number;
2328
+ followers_count: number;
2329
+ friends_count: number;
2330
+ has_custom_timelines: boolean;
2331
+ is_translator: boolean;
2332
+ listed_count: number;
2333
+ location: string;
2334
+ media_count: number;
2335
+ name: string;
2336
+ normal_followers_count: number;
2337
+ pinned_tweet_ids_str: string[];
2338
+ possibly_sensitive: boolean;
2339
+ profile_banner_url: string;
2340
+ profile_image_url_https: string;
2341
+ profile_interstitial_type: string;
2342
+ screen_name: string;
2343
+ statuses_count: number;
2344
+ translator_type: string;
2345
+ url: string;
2346
+ verified: boolean;
2347
+ want_retweets: boolean;
2348
+ withheld_in_countries: unknown[];
2349
+ };
2350
+ };
2351
+ };
2352
+ };
2353
+ edit_control: {
2354
+ edit_tweet_ids: string[];
2355
+ editable_until_msecs: string;
2356
+ is_edit_eligible: boolean;
2357
+ edits_remaining: string;
2358
+ };
2359
+ is_translatable: boolean;
2360
+ views: {
2361
+ count: string;
2362
+ state: string;
2363
+ };
2364
+ source: string;
2365
+ legacy: {
2366
+ bookmark_count: number;
2367
+ bookmarked: boolean;
2368
+ created_at: string;
2369
+ conversation_id_str: string;
2370
+ display_text_range: number[];
2371
+ entities: {
2372
+ media: {
2373
+ display_url: string;
2374
+ expanded_url: string;
2375
+ id_str: string;
2376
+ indices: number[];
2377
+ media_url_https: string;
2378
+ type: string;
2379
+ url: string;
2380
+ features: {
2381
+ large: {
2382
+ faces: unknown[];
2383
+ };
2384
+ medium: {
2385
+ faces: unknown[];
2386
+ };
2387
+ small: {
2388
+ faces: unknown[];
2389
+ };
2390
+ orig: {
2391
+ faces: unknown[];
2392
+ };
2393
+ };
2394
+ sizes: {
2395
+ large: {
2396
+ h: number;
2397
+ w: number;
2398
+ resize: string;
2399
+ };
2400
+ medium: {
2401
+ h: number;
2402
+ w: number;
2403
+ resize: string;
2404
+ };
2405
+ small: {
2406
+ h: number;
2407
+ w: number;
2408
+ resize: string;
2409
+ };
2410
+ thumb: {
2411
+ h: number;
2412
+ w: number;
2413
+ resize: string;
2414
+ };
2415
+ };
2416
+ original_info: {
2417
+ height: number;
2418
+ width: number;
2419
+ focus_rects: {
2420
+ x: number;
2421
+ y: number;
2422
+ w: number;
2423
+ h: number;
2424
+ }[];
2425
+ };
2426
+ }[];
2427
+ user_mentions: {
2428
+ id_str: string;
2429
+ name: string;
2430
+ screen_name: string;
2431
+ indices: number[];
2432
+ }[];
2433
+ urls: unknown[];
2434
+ hashtags: {
2435
+ indices: number[];
2436
+ text: string;
2437
+ }[];
2438
+ symbols: unknown[];
2439
+ };
2440
+ extended_entities: {
2441
+ media: {
2442
+ display_url: string;
2443
+ expanded_url: string;
2444
+ id_str: string;
2445
+ indices: number[];
2446
+ media_key: string;
2447
+ media_url_https: string;
2448
+ type: string;
2449
+ url: string;
2450
+ ext_media_availability: {
2451
+ status: string;
2452
+ };
2453
+ features: {
2454
+ large: {
2455
+ faces: unknown[];
2456
+ };
2457
+ medium: {
2458
+ faces: unknown[];
2459
+ };
2460
+ small: {
2461
+ faces: unknown[];
2462
+ };
2463
+ orig: {
2464
+ faces: unknown[];
2465
+ };
2466
+ };
2467
+ sizes: {
2468
+ large: {
2469
+ h: number;
2470
+ w: number;
2471
+ resize: string;
2472
+ };
2473
+ medium: {
2474
+ h: number;
2475
+ w: number;
2476
+ resize: string;
2477
+ };
2478
+ small: {
2479
+ h: number;
2480
+ w: number;
2481
+ resize: string;
2482
+ };
2483
+ thumb: {
2484
+ h: number;
2485
+ w: number;
2486
+ resize: string;
2487
+ };
2488
+ };
2489
+ original_info: {
2490
+ height: number;
2491
+ width: number;
2492
+ focus_rects: {
2493
+ x: number;
2494
+ y: number;
2495
+ w: number;
2496
+ h: number;
2497
+ }[];
2498
+ };
2499
+ }[];
2500
+ };
2501
+ favorite_count: number;
2502
+ favorited: boolean;
2503
+ full_text: string;
2504
+ is_quote_status: boolean;
2505
+ lang: string;
2506
+ possibly_sensitive: boolean;
2507
+ possibly_sensitive_editable: boolean;
2508
+ quote_count: number;
2509
+ reply_count: number;
2510
+ retweet_count: number;
2511
+ retweeted: boolean;
2512
+ user_id_str: string;
2513
+ id_str: string;
2514
+ };
2515
+ };
2136
2516
  };
2137
2517
  };
2138
2518
  limitedActionResults: {
@@ -2309,6 +2689,12 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2309
2689
  };
2310
2690
  }[];
2311
2691
  };
2692
+ quoted_status_id_str?: string;
2693
+ quoted_status_permalink?: {
2694
+ url: string;
2695
+ expanded: string;
2696
+ display: string;
2697
+ };
2312
2698
  };
2313
2699
  note_tweet?: {
2314
2700
  is_expandable: boolean;
@@ -2877,7 +3263,12 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2877
3263
  description: string;
2878
3264
  entities: {
2879
3265
  description: {
2880
- urls: unknown[];
3266
+ urls: {
3267
+ display_url: string;
3268
+ expanded_url: string;
3269
+ url: string;
3270
+ indices: number[];
3271
+ }[];
2881
3272
  };
2882
3273
  url: {
2883
3274
  urls: {
@@ -2899,7 +3290,7 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2899
3290
  media_count: number;
2900
3291
  name: string;
2901
3292
  normal_followers_count: number;
2902
- pinned_tweet_ids_str: unknown[];
3293
+ pinned_tweet_ids_str: string[];
2903
3294
  possibly_sensitive: boolean;
2904
3295
  profile_banner_url: string;
2905
3296
  profile_image_url_https: string;
@@ -2919,6 +3310,29 @@ export interface GraphQLPostHomeLatestTimelineSuccessResponse {
2919
3310
  unified_card?: {
2920
3311
  card_fetch_state: string;
2921
3312
  };
3313
+ note_tweet?: {
3314
+ is_expandable: boolean;
3315
+ note_tweet_results: {
3316
+ result: {
3317
+ id: string;
3318
+ text: string;
3319
+ entity_set: {
3320
+ user_mentions: {
3321
+ id_str: string;
3322
+ name: string;
3323
+ screen_name: string;
3324
+ indices: number[];
3325
+ }[];
3326
+ urls: unknown[];
3327
+ hashtags: {
3328
+ indices: number[];
3329
+ text: string;
3330
+ }[];
3331
+ symbols: unknown[];
3332
+ };
3333
+ };
3334
+ };
3335
+ };
2922
3336
  };
2923
3337
  };
2924
3338
  birdwatch_pivot?: {