@book000/twitterts 0.26.1 → 0.28.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 (77) hide show
  1. package/dist/converter.d.ts +2 -2
  2. package/dist/converter.d.ts.map +1 -1
  3. package/dist/converter.js +4 -4
  4. package/dist/converter.js.map +1 -1
  5. package/dist/generate-types/custom-types-generator.d.ts +53 -0
  6. package/dist/generate-types/custom-types-generator.d.ts.map +1 -0
  7. package/dist/generate-types/custom-types-generator.js +394 -0
  8. package/dist/generate-types/custom-types-generator.js.map +1 -0
  9. package/dist/generate-types/endpoint-type-generator.d.ts +66 -0
  10. package/dist/generate-types/endpoint-type-generator.d.ts.map +1 -0
  11. package/dist/generate-types/endpoint-type-generator.js +187 -0
  12. package/dist/generate-types/endpoint-type-generator.js.map +1 -0
  13. package/dist/generate-types/types-generator.d.ts +49 -0
  14. package/dist/generate-types/types-generator.d.ts.map +1 -0
  15. package/dist/generate-types/types-generator.js +89 -0
  16. package/dist/generate-types/types-generator.js.map +1 -0
  17. package/dist/generate-types/utils.d.ts +95 -0
  18. package/dist/generate-types/utils.d.ts.map +1 -0
  19. package/dist/generate-types/utils.js +160 -0
  20. package/dist/generate-types/utils.js.map +1 -0
  21. package/dist/generate-types.js +41 -741
  22. package/dist/generate-types.js.map +1 -1
  23. package/dist/index.d.ts +6 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +6 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +2 -2
  28. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  29. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +42 -8
  30. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  31. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +1 -0
  32. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  33. package/dist/models/responses/custom/custom-tweet-object.d.ts +60 -17
  34. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  35. package/dist/models/responses/custom/custom-user-legacy-object.d.ts +55 -0
  36. package/dist/models/responses/custom/custom-user-legacy-object.d.ts.map +1 -0
  37. package/dist/models/responses/custom/custom-user-legacy-object.js +4 -0
  38. package/dist/models/responses/custom/custom-user-legacy-object.js.map +1 -0
  39. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +103 -2
  40. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
  41. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +1 -0
  42. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  43. package/dist/models/responses/endpoints.d.ts +5 -2
  44. package/dist/models/responses/endpoints.d.ts.map +1 -1
  45. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +4 -4
  46. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -1
  47. package/dist/models/responses/graphql/get/follow-host-button-query-success.d.ts +19 -0
  48. package/dist/models/responses/graphql/get/follow-host-button-query-success.d.ts.map +1 -0
  49. package/dist/models/responses/graphql/get/follow-host-button-query-success.js +4 -0
  50. package/dist/models/responses/graphql/get/follow-host-button-query-success.js.map +1 -0
  51. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +27 -3
  52. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  53. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +283 -13
  54. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  55. package/dist/models/responses/graphql/get/likes-success.d.ts +103 -2
  56. package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
  57. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +2 -2
  58. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  59. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +1 -0
  60. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  61. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +11 -2
  62. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  63. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +508 -32
  64. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  65. package/dist/parser/home-timeline-parser.d.ts.map +1 -1
  66. package/dist/parser/search-timeline.d.ts.map +1 -1
  67. package/dist/parser/user-like-tweets.d.ts.map +1 -1
  68. package/dist/parser/user-tweets.d.ts.map +1 -1
  69. package/dist/scraper.d.ts.map +1 -1
  70. package/dist/scraper.js.map +1 -1
  71. package/dist/tsconfig.build.tsbuildinfo +1 -1
  72. package/dist/tsconfig.tsbuildinfo +1 -1
  73. package/dist/twitter.d.ts +13 -9
  74. package/dist/twitter.d.ts.map +1 -1
  75. package/dist/twitter.js +2 -1
  76. package/dist/twitter.js.map +1 -1
  77. package/package.json +1 -1
@@ -59,8 +59,8 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
59
59
  };
60
60
  url?: {
61
61
  urls: {
62
- display_url: string;
63
- expanded_url: string;
62
+ display_url?: string;
63
+ expanded_url?: string;
64
64
  url: string;
65
65
  indices: number[];
66
66
  }[];
@@ -178,6 +178,14 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
178
178
  w: number;
179
179
  }[];
180
180
  };
181
+ all?: {
182
+ tags: {
183
+ user_id: string;
184
+ name: string;
185
+ screen_name: string;
186
+ type: string;
187
+ }[];
188
+ };
181
189
  };
182
190
  sizes: {
183
191
  large: {
@@ -230,7 +238,10 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
230
238
  indices: number[];
231
239
  text: string;
232
240
  }[];
233
- symbols: unknown[];
241
+ symbols: {
242
+ indices: number[];
243
+ text: string;
244
+ }[];
234
245
  };
235
246
  extended_entities?: {
236
247
  media: {
@@ -278,6 +289,14 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
278
289
  w: number;
279
290
  }[];
280
291
  };
292
+ all?: {
293
+ tags: {
294
+ user_id: string;
295
+ name: string;
296
+ screen_name: string;
297
+ type: string;
298
+ }[];
299
+ };
281
300
  };
282
301
  sizes: {
283
302
  large: {
@@ -321,7 +340,20 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
321
340
  __typename: string;
322
341
  id: string;
323
342
  rest_id: string;
324
- affiliates_highlighted_label: {};
343
+ affiliates_highlighted_label: {
344
+ label?: {
345
+ url: {
346
+ url: string;
347
+ urlType: string;
348
+ };
349
+ badge: {
350
+ url: string;
351
+ };
352
+ description: string;
353
+ userLabelType: string;
354
+ userLabelDisplayType: string;
355
+ };
356
+ };
325
357
  has_graduated_access: boolean;
326
358
  is_blue_verified: boolean;
327
359
  profile_image_shape: string;
@@ -373,6 +405,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
373
405
  verified: boolean;
374
406
  want_retweets: boolean;
375
407
  withheld_in_countries: unknown[];
408
+ verified_type?: string;
376
409
  };
377
410
  professional?: {
378
411
  rest_id: string;
@@ -402,13 +435,14 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
402
435
  };
403
436
  video_info?: {
404
437
  aspect_ratio: number[];
405
- duration_millis: number;
438
+ duration_millis?: number;
406
439
  variants: {
407
440
  bitrate?: number;
408
441
  content_type: string;
409
442
  url: string;
410
443
  }[];
411
444
  };
445
+ ext_alt_text?: string;
412
446
  }[];
413
447
  };
414
448
  favorite_count: number;
@@ -439,7 +473,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
439
473
  rest_id: string;
440
474
  affiliates_highlighted_label: {
441
475
  label?: {
442
- url: {
476
+ url?: {
443
477
  url: string;
444
478
  urlType: string;
445
479
  };
@@ -448,7 +482,24 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
448
482
  };
449
483
  description: string;
450
484
  userLabelType: string;
451
- userLabelDisplayType: string;
485
+ userLabelDisplayType?: string;
486
+ longDescription?: {
487
+ text: string;
488
+ entities: {
489
+ fromIndex: number;
490
+ toIndex: number;
491
+ ref: {
492
+ type: string;
493
+ screen_name: string;
494
+ mention_results: {
495
+ result: {
496
+ __typename: string;
497
+ reason: string;
498
+ };
499
+ };
500
+ };
501
+ }[];
502
+ };
452
503
  };
453
504
  };
454
505
  has_graduated_access: boolean;
@@ -728,12 +779,18 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
728
779
  icon_name: string;
729
780
  }[];
730
781
  };
782
+ super_follow_eligible?: boolean;
731
783
  };
732
784
  };
733
785
  };
734
786
  title?: string;
735
787
  description?: string;
736
788
  embeddable?: boolean;
789
+ call_to_actions?: {
790
+ watch_now: {
791
+ url: string;
792
+ };
793
+ };
737
794
  };
738
795
  mediaStats?: {
739
796
  viewCount: number;
@@ -1364,6 +1421,24 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
1364
1421
  expanded: string;
1365
1422
  display: string;
1366
1423
  };
1424
+ place?: {
1425
+ attributes: {};
1426
+ bounding_box: {
1427
+ coordinates: number[][][];
1428
+ type: string;
1429
+ };
1430
+ contained_within: unknown[];
1431
+ country: string;
1432
+ country_code: string;
1433
+ full_name: string;
1434
+ name: string;
1435
+ id: string;
1436
+ place_type: string;
1437
+ url: string;
1438
+ };
1439
+ in_reply_to_screen_name?: string;
1440
+ in_reply_to_status_id_str?: string;
1441
+ in_reply_to_user_id_str?: string;
1367
1442
  };
1368
1443
  card?: {
1369
1444
  rest_id: string;
@@ -1450,8 +1525,8 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
1450
1525
  };
1451
1526
  url: {
1452
1527
  urls: {
1453
- display_url: string;
1454
- expanded_url: string;
1528
+ display_url?: string;
1529
+ expanded_url?: string;
1455
1530
  url: string;
1456
1531
  indices: number[];
1457
1532
  }[];
@@ -1726,7 +1801,12 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
1726
1801
  screen_name: string;
1727
1802
  indices: number[];
1728
1803
  }[];
1729
- urls: unknown[];
1804
+ urls: {
1805
+ display_url: string;
1806
+ expanded_url: string;
1807
+ url: string;
1808
+ indices: number[];
1809
+ }[];
1730
1810
  hashtags: {
1731
1811
  indices: number[];
1732
1812
  text: string;
@@ -1907,6 +1987,53 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
1907
1987
  };
1908
1988
  additional_media_info?: {
1909
1989
  monetizable: boolean;
1990
+ source_user?: {
1991
+ user_results: {
1992
+ result: {
1993
+ __typename: string;
1994
+ id: string;
1995
+ rest_id: string;
1996
+ affiliates_highlighted_label: {};
1997
+ has_graduated_access: boolean;
1998
+ is_blue_verified: boolean;
1999
+ profile_image_shape: string;
2000
+ legacy: {
2001
+ can_dm: boolean;
2002
+ can_media_tag: boolean;
2003
+ created_at: string;
2004
+ default_profile: boolean;
2005
+ default_profile_image: boolean;
2006
+ description: string;
2007
+ entities: {
2008
+ description: {
2009
+ urls: unknown[];
2010
+ };
2011
+ };
2012
+ fast_followers_count: number;
2013
+ favourites_count: number;
2014
+ followers_count: number;
2015
+ friends_count: number;
2016
+ has_custom_timelines: boolean;
2017
+ is_translator: boolean;
2018
+ listed_count: number;
2019
+ location: string;
2020
+ media_count: number;
2021
+ name: string;
2022
+ normal_followers_count: number;
2023
+ pinned_tweet_ids_str: string[];
2024
+ possibly_sensitive: boolean;
2025
+ profile_image_url_https: string;
2026
+ profile_interstitial_type: string;
2027
+ screen_name: string;
2028
+ statuses_count: number;
2029
+ translator_type: string;
2030
+ verified: boolean;
2031
+ want_retweets: boolean;
2032
+ withheld_in_countries: unknown[];
2033
+ };
2034
+ };
2035
+ };
2036
+ };
1910
2037
  };
1911
2038
  mediaStats?: {
1912
2039
  viewCount: number;
@@ -2354,7 +2481,20 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2354
2481
  __typename: string;
2355
2482
  id: string;
2356
2483
  rest_id: string;
2357
- affiliates_highlighted_label: {};
2484
+ affiliates_highlighted_label: {
2485
+ label?: {
2486
+ url: {
2487
+ url: string;
2488
+ urlType: string;
2489
+ };
2490
+ badge: {
2491
+ url: string;
2492
+ };
2493
+ description: string;
2494
+ userLabelType: string;
2495
+ userLabelDisplayType: string;
2496
+ };
2497
+ };
2358
2498
  has_graduated_access: boolean;
2359
2499
  is_blue_verified: boolean;
2360
2500
  profile_image_shape: string;
@@ -2396,7 +2536,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2396
2536
  normal_followers_count: number;
2397
2537
  pinned_tweet_ids_str: string[];
2398
2538
  possibly_sensitive: boolean;
2399
- profile_banner_url: string;
2539
+ profile_banner_url?: string;
2400
2540
  profile_image_url_https: string;
2401
2541
  profile_interstitial_type: string;
2402
2542
  screen_name: string;
@@ -2406,6 +2546,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2406
2546
  verified: boolean;
2407
2547
  want_retweets: boolean;
2408
2548
  withheld_in_countries: unknown[];
2549
+ verified_type?: string;
2409
2550
  };
2410
2551
  professional?: {
2411
2552
  rest_id: string;
@@ -2432,7 +2573,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2432
2573
  };
2433
2574
  is_translatable: boolean;
2434
2575
  views: {
2435
- count: string;
2576
+ count?: string;
2436
2577
  state: string;
2437
2578
  };
2438
2579
  source: string;
@@ -2444,8 +2585,16 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2444
2585
  text: string;
2445
2586
  entity_set: {
2446
2587
  user_mentions: unknown[];
2447
- urls: unknown[];
2448
- hashtags: unknown[];
2588
+ urls: {
2589
+ display_url: string;
2590
+ expanded_url: string;
2591
+ url: string;
2592
+ indices: number[];
2593
+ }[];
2594
+ hashtags: {
2595
+ indices: number[];
2596
+ text: string;
2597
+ }[];
2449
2598
  symbols: unknown[];
2450
2599
  };
2451
2600
  richtext: {
@@ -2468,7 +2617,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2468
2617
  conversation_id_str: string;
2469
2618
  display_text_range: number[];
2470
2619
  entities: {
2471
- media: {
2620
+ media?: {
2472
2621
  display_url: string;
2473
2622
  expanded_url: string;
2474
2623
  id_str: string;
@@ -2477,7 +2626,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2477
2626
  type: string;
2478
2627
  url: string;
2479
2628
  features: {
2480
- large: {
2629
+ large?: {
2481
2630
  faces: {
2482
2631
  x: number;
2483
2632
  y: number;
@@ -2485,7 +2634,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2485
2634
  w: number;
2486
2635
  }[];
2487
2636
  };
2488
- medium: {
2637
+ medium?: {
2489
2638
  faces: {
2490
2639
  x: number;
2491
2640
  y: number;
@@ -2493,7 +2642,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2493
2642
  w: number;
2494
2643
  }[];
2495
2644
  };
2496
- small: {
2645
+ small?: {
2497
2646
  faces: {
2498
2647
  x: number;
2499
2648
  y: number;
@@ -2501,7 +2650,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2501
2650
  w: number;
2502
2651
  }[];
2503
2652
  };
2504
- orig: {
2653
+ orig?: {
2505
2654
  faces: {
2506
2655
  x: number;
2507
2656
  y: number;
@@ -2509,6 +2658,14 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2509
2658
  w: number;
2510
2659
  }[];
2511
2660
  };
2661
+ all?: {
2662
+ tags: {
2663
+ user_id: string;
2664
+ name: string;
2665
+ screen_name: string;
2666
+ type: string;
2667
+ }[];
2668
+ };
2512
2669
  };
2513
2670
  sizes: {
2514
2671
  large: {
@@ -2535,13 +2692,15 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2535
2692
  original_info: {
2536
2693
  height: number;
2537
2694
  width: number;
2538
- focus_rects: {
2695
+ focus_rects?: {
2539
2696
  x: number;
2540
2697
  y: number;
2541
2698
  w: number;
2542
2699
  h: number;
2543
2700
  }[];
2544
2701
  };
2702
+ source_status_id_str?: string;
2703
+ source_user_id_str?: string;
2545
2704
  }[];
2546
2705
  user_mentions: {
2547
2706
  id_str: string;
@@ -2549,14 +2708,19 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2549
2708
  screen_name: string;
2550
2709
  indices: number[];
2551
2710
  }[];
2552
- urls: unknown[];
2711
+ urls: {
2712
+ display_url: string;
2713
+ expanded_url: string;
2714
+ url: string;
2715
+ indices: number[];
2716
+ }[];
2553
2717
  hashtags: {
2554
2718
  indices: number[];
2555
2719
  text: string;
2556
2720
  }[];
2557
2721
  symbols: unknown[];
2558
2722
  };
2559
- extended_entities: {
2723
+ extended_entities?: {
2560
2724
  media: {
2561
2725
  display_url: string;
2562
2726
  expanded_url: string;
@@ -2570,7 +2734,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2570
2734
  status: string;
2571
2735
  };
2572
2736
  features: {
2573
- large: {
2737
+ large?: {
2574
2738
  faces: {
2575
2739
  x: number;
2576
2740
  y: number;
@@ -2578,7 +2742,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2578
2742
  w: number;
2579
2743
  }[];
2580
2744
  };
2581
- medium: {
2745
+ medium?: {
2582
2746
  faces: {
2583
2747
  x: number;
2584
2748
  y: number;
@@ -2586,7 +2750,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2586
2750
  w: number;
2587
2751
  }[];
2588
2752
  };
2589
- small: {
2753
+ small?: {
2590
2754
  faces: {
2591
2755
  x: number;
2592
2756
  y: number;
@@ -2594,7 +2758,7 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2594
2758
  w: number;
2595
2759
  }[];
2596
2760
  };
2597
- orig: {
2761
+ orig?: {
2598
2762
  faces: {
2599
2763
  x: number;
2600
2764
  y: number;
@@ -2602,6 +2766,14 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2602
2766
  w: number;
2603
2767
  }[];
2604
2768
  };
2769
+ all?: {
2770
+ tags: {
2771
+ user_id: string;
2772
+ name: string;
2773
+ screen_name: string;
2774
+ type: string;
2775
+ }[];
2776
+ };
2605
2777
  };
2606
2778
  sizes: {
2607
2779
  large: {
@@ -2628,13 +2800,30 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2628
2800
  original_info: {
2629
2801
  height: number;
2630
2802
  width: number;
2631
- focus_rects: {
2803
+ focus_rects?: {
2632
2804
  x: number;
2633
2805
  y: number;
2634
2806
  w: number;
2635
2807
  h: number;
2636
2808
  }[];
2637
2809
  };
2810
+ additional_media_info?: {
2811
+ monetizable: boolean;
2812
+ };
2813
+ mediaStats?: {
2814
+ viewCount: number;
2815
+ };
2816
+ video_info?: {
2817
+ aspect_ratio: number[];
2818
+ duration_millis: number;
2819
+ variants: {
2820
+ content_type: string;
2821
+ url: string;
2822
+ bitrate?: number;
2823
+ }[];
2824
+ };
2825
+ source_status_id_str?: string;
2826
+ source_user_id_str?: string;
2638
2827
  }[];
2639
2828
  };
2640
2829
  favorite_count: number;
@@ -2642,14 +2831,144 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2642
2831
  full_text: string;
2643
2832
  is_quote_status: boolean;
2644
2833
  lang: string;
2645
- possibly_sensitive: boolean;
2646
- possibly_sensitive_editable: boolean;
2834
+ possibly_sensitive?: boolean;
2835
+ possibly_sensitive_editable?: boolean;
2647
2836
  quote_count: number;
2648
2837
  reply_count: number;
2649
2838
  retweet_count: number;
2650
2839
  retweeted: boolean;
2651
2840
  user_id_str: string;
2652
2841
  id_str: string;
2842
+ quoted_status_id_str?: string;
2843
+ quoted_status_permalink?: {
2844
+ url: string;
2845
+ expanded: string;
2846
+ display: string;
2847
+ };
2848
+ place?: {
2849
+ attributes: {};
2850
+ bounding_box: {
2851
+ coordinates: number[][][];
2852
+ type: string;
2853
+ };
2854
+ contained_within: unknown[];
2855
+ country: string;
2856
+ country_code: string;
2857
+ full_name: string;
2858
+ name: string;
2859
+ id: string;
2860
+ place_type: string;
2861
+ url: string;
2862
+ };
2863
+ };
2864
+ card?: {
2865
+ rest_id: string;
2866
+ legacy: {
2867
+ binding_values: {
2868
+ key: string;
2869
+ value: {
2870
+ image_value?: {
2871
+ height: number;
2872
+ width: number;
2873
+ url: string;
2874
+ };
2875
+ type: string;
2876
+ string_value?: string;
2877
+ scribe_key?: string;
2878
+ user_value?: {
2879
+ id_str: string;
2880
+ path: unknown[];
2881
+ };
2882
+ image_color_value?: {
2883
+ palette: {
2884
+ rgb: {
2885
+ blue: number;
2886
+ green: number;
2887
+ red: number;
2888
+ };
2889
+ percentage: number;
2890
+ }[];
2891
+ };
2892
+ };
2893
+ }[];
2894
+ card_platform: {
2895
+ platform: {
2896
+ audience: {
2897
+ name: string;
2898
+ };
2899
+ device: {
2900
+ name: string;
2901
+ version: string;
2902
+ };
2903
+ };
2904
+ };
2905
+ name: string;
2906
+ url: string;
2907
+ user_refs_results: {
2908
+ result: {
2909
+ __typename: string;
2910
+ id: string;
2911
+ rest_id: string;
2912
+ affiliates_highlighted_label: {};
2913
+ has_graduated_access: boolean;
2914
+ is_blue_verified: boolean;
2915
+ profile_image_shape: string;
2916
+ legacy: {
2917
+ can_dm: boolean;
2918
+ can_media_tag: boolean;
2919
+ created_at: string;
2920
+ default_profile: boolean;
2921
+ default_profile_image: boolean;
2922
+ description: string;
2923
+ entities: {
2924
+ description: {
2925
+ urls: unknown[];
2926
+ };
2927
+ url: {
2928
+ urls: {
2929
+ display_url: string;
2930
+ expanded_url: string;
2931
+ url: string;
2932
+ indices: number[];
2933
+ }[];
2934
+ };
2935
+ };
2936
+ fast_followers_count: number;
2937
+ favourites_count: number;
2938
+ followers_count: number;
2939
+ friends_count: number;
2940
+ has_custom_timelines: boolean;
2941
+ is_translator: boolean;
2942
+ listed_count: number;
2943
+ location: string;
2944
+ media_count: number;
2945
+ name: string;
2946
+ normal_followers_count: number;
2947
+ pinned_tweet_ids_str: unknown[];
2948
+ possibly_sensitive: boolean;
2949
+ profile_banner_url: string;
2950
+ profile_image_url_https: string;
2951
+ profile_interstitial_type: string;
2952
+ screen_name: string;
2953
+ statuses_count: number;
2954
+ translator_type: string;
2955
+ url: string;
2956
+ verified: boolean;
2957
+ want_retweets: boolean;
2958
+ withheld_in_countries: unknown[];
2959
+ };
2960
+ };
2961
+ }[];
2962
+ };
2963
+ };
2964
+ unified_card?: {
2965
+ card_fetch_state: string;
2966
+ };
2967
+ quotedRefResult?: {
2968
+ result: {
2969
+ __typename: string;
2970
+ rest_id: string;
2971
+ };
2653
2972
  };
2654
2973
  };
2655
2974
  };
@@ -2660,6 +2979,40 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
2660
2979
  reply_count: number;
2661
2980
  retweet_count: number;
2662
2981
  };
2982
+ note_tweet?: {
2983
+ is_expandable: boolean;
2984
+ note_tweet_results: {
2985
+ result: {
2986
+ id: string;
2987
+ text: string;
2988
+ entity_set: {
2989
+ user_mentions: {
2990
+ id_str: string;
2991
+ name: string;
2992
+ screen_name: string;
2993
+ indices: number[];
2994
+ }[];
2995
+ urls: {
2996
+ display_url: string;
2997
+ expanded_url: string;
2998
+ url: string;
2999
+ indices: number[];
3000
+ }[];
3001
+ hashtags: {
3002
+ indices: number[];
3003
+ text: string;
3004
+ }[];
3005
+ symbols: unknown[];
3006
+ };
3007
+ richtext?: {
3008
+ richtext_tags: unknown[];
3009
+ };
3010
+ media?: {
3011
+ inline_media: unknown[];
3012
+ };
3013
+ };
3014
+ };
3015
+ };
2663
3016
  };
2664
3017
  };
2665
3018
  tweetDisplayType: string;
@@ -3114,8 +3467,8 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3114
3467
  };
3115
3468
  url?: {
3116
3469
  urls: {
3117
- display_url: string;
3118
- expanded_url: string;
3470
+ display_url?: string;
3471
+ expanded_url?: string;
3119
3472
  url: string;
3120
3473
  indices: number[];
3121
3474
  }[];
@@ -3253,6 +3606,8 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3253
3606
  h: number;
3254
3607
  }[];
3255
3608
  };
3609
+ source_status_id_str?: string;
3610
+ source_user_id_str?: string;
3256
3611
  }[];
3257
3612
  user_mentions: {
3258
3613
  id_str: string;
@@ -3353,6 +3708,81 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3353
3708
  };
3354
3709
  additional_media_info?: {
3355
3710
  monetizable: boolean;
3711
+ source_user?: {
3712
+ user_results: {
3713
+ result: {
3714
+ __typename: string;
3715
+ id: string;
3716
+ rest_id: string;
3717
+ affiliates_highlighted_label: {};
3718
+ has_graduated_access: boolean;
3719
+ is_blue_verified: boolean;
3720
+ profile_image_shape: string;
3721
+ legacy: {
3722
+ can_dm: boolean;
3723
+ can_media_tag: boolean;
3724
+ created_at: string;
3725
+ default_profile: boolean;
3726
+ default_profile_image: boolean;
3727
+ description: string;
3728
+ entities: {
3729
+ description: {
3730
+ urls: unknown[];
3731
+ };
3732
+ url?: {
3733
+ urls: {
3734
+ display_url: string;
3735
+ expanded_url: string;
3736
+ url: string;
3737
+ indices: number[];
3738
+ }[];
3739
+ };
3740
+ };
3741
+ fast_followers_count: number;
3742
+ favourites_count: number;
3743
+ followers_count: number;
3744
+ friends_count: number;
3745
+ has_custom_timelines: boolean;
3746
+ is_translator: boolean;
3747
+ listed_count: number;
3748
+ location: string;
3749
+ media_count: number;
3750
+ name: string;
3751
+ normal_followers_count: number;
3752
+ pinned_tweet_ids_str: string[];
3753
+ possibly_sensitive: boolean;
3754
+ profile_banner_url: string;
3755
+ profile_image_url_https: string;
3756
+ profile_interstitial_type: string;
3757
+ screen_name: string;
3758
+ statuses_count: number;
3759
+ translator_type: string;
3760
+ url?: string;
3761
+ verified: boolean;
3762
+ want_retweets: boolean;
3763
+ withheld_in_countries: unknown[];
3764
+ };
3765
+ professional?: {
3766
+ rest_id: string;
3767
+ professional_type: string;
3768
+ category: {
3769
+ id: number;
3770
+ name: string;
3771
+ icon_name: string;
3772
+ }[];
3773
+ };
3774
+ super_follow_eligible?: boolean;
3775
+ };
3776
+ };
3777
+ };
3778
+ title?: string;
3779
+ description?: string;
3780
+ embeddable?: boolean;
3781
+ call_to_actions?: {
3782
+ watch_now: {
3783
+ url: string;
3784
+ };
3785
+ };
3356
3786
  };
3357
3787
  mediaStats?: {
3358
3788
  viewCount: number;
@@ -3366,6 +3796,8 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3366
3796
  url: string;
3367
3797
  }[];
3368
3798
  };
3799
+ source_status_id_str?: string;
3800
+ source_user_id_str?: string;
3369
3801
  }[];
3370
3802
  };
3371
3803
  favorite_count: number;
@@ -3384,6 +3816,21 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3384
3816
  in_reply_to_screen_name?: string;
3385
3817
  in_reply_to_status_id_str?: string;
3386
3818
  in_reply_to_user_id_str?: string;
3819
+ place?: {
3820
+ attributes: {};
3821
+ bounding_box: {
3822
+ coordinates: number[][][];
3823
+ type: string;
3824
+ };
3825
+ contained_within: unknown[];
3826
+ country: string;
3827
+ country_code: string;
3828
+ full_name: string;
3829
+ name: string;
3830
+ id: string;
3831
+ place_type: string;
3832
+ url: string;
3833
+ };
3387
3834
  };
3388
3835
  card?: {
3389
3836
  rest_id: string;
@@ -3490,6 +3937,35 @@ export interface GraphQLPostHomeTimelineSuccessResponse {
3490
3937
  unified_card?: {
3491
3938
  card_fetch_state: string;
3492
3939
  };
3940
+ note_tweet?: {
3941
+ is_expandable: boolean;
3942
+ note_tweet_results: {
3943
+ result: {
3944
+ id: string;
3945
+ text: string;
3946
+ entity_set: {
3947
+ user_mentions: unknown[];
3948
+ urls: {
3949
+ display_url: string;
3950
+ expanded_url: string;
3951
+ url: string;
3952
+ indices: number[];
3953
+ }[];
3954
+ hashtags: {
3955
+ indices: number[];
3956
+ text: string;
3957
+ }[];
3958
+ symbols: unknown[];
3959
+ };
3960
+ richtext: {
3961
+ richtext_tags: unknown[];
3962
+ };
3963
+ media: {
3964
+ inline_media: unknown[];
3965
+ };
3966
+ };
3967
+ };
3968
+ };
3493
3969
  };
3494
3970
  };
3495
3971
  tweetDisplayType?: string;