@book000/twitterts 0.59.96 → 0.60.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 (57) hide show
  1. package/dist/converter.d.ts.map +1 -1
  2. package/dist/converter.js +6 -2
  3. package/dist/converter.js.map +1 -1
  4. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  5. package/dist/generate-types/custom-types-generator.js +3 -0
  6. package/dist/generate-types/custom-types-generator.js.map +1 -1
  7. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts +3748 -3232
  8. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts.map +1 -1
  9. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +1516 -1162
  10. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  11. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +7300 -7014
  12. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  13. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +3831 -3606
  14. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  15. package/dist/models/responses/custom/custom-tweet-object.d.ts +3247 -2405
  16. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  17. package/dist/models/responses/custom/custom-user-legacy-object.d.ts +5 -6
  18. package/dist/models/responses/custom/custom-user-legacy-object.d.ts.map +1 -1
  19. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +30 -371
  20. package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
  21. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +10029 -9187
  22. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  23. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts +325 -325
  24. package/dist/models/responses/graphql/get/audio-space-by-id-success.d.ts.map +1 -1
  25. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +7465 -6603
  26. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  27. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +9338 -8399
  28. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  29. package/dist/models/responses/graphql/get/likes-success.d.ts +24 -365
  30. package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
  31. package/dist/models/responses/graphql/get/list-latest-tweets-timeline-success.d.ts +1758 -1250
  32. package/dist/models/responses/graphql/get/list-latest-tweets-timeline-success.d.ts.map +1 -1
  33. package/dist/models/responses/graphql/get/profile-spotlights-query-success.d.ts +27 -27
  34. package/dist/models/responses/graphql/get/profile-spotlights-query-success.d.ts.map +1 -1
  35. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +2964 -2302
  36. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  37. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +4310 -3200
  38. package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
  39. package/dist/models/responses/graphql/get/user-by-rest-id-success.d.ts +4 -3
  40. package/dist/models/responses/graphql/get/user-by-rest-id-success.d.ts.map +1 -1
  41. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +5 -4
  42. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
  43. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +17417 -16218
  44. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  45. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts +1 -1
  46. package/dist/models/responses/graphql/get/users-verified-avatars-success.d.ts.map +1 -1
  47. package/dist/models/responses/graphql/get/viewer-success.d.ts +1 -1
  48. package/dist/models/responses/graphql/get/viewer-success.d.ts.map +1 -1
  49. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +6320 -5808
  50. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  51. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +7452 -6759
  52. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  53. package/dist/parser/home-timeline-parser.d.ts.map +1 -1
  54. package/dist/parser/home-timeline-parser.js +3 -0
  55. package/dist/parser/home-timeline-parser.js.map +1 -1
  56. package/dist/tsconfig.build.tsbuildinfo +1 -1
  57. package/package.json +2 -2
@@ -217,7 +217,7 @@ export interface GraphQLGetLikesSuccessResponse {
217
217
  };
218
218
  video_info?: {
219
219
  aspect_ratio: number[];
220
- duration_millis?: number;
220
+ duration_millis: number;
221
221
  variants: {
222
222
  bitrate?: number;
223
223
  content_type: string;
@@ -226,7 +226,7 @@ export interface GraphQLGetLikesSuccessResponse {
226
226
  };
227
227
  ext_alt_text?: string;
228
228
  sensitive_media_warning?: {
229
- adult_content?: boolean;
229
+ adult_content: boolean;
230
230
  other: boolean;
231
231
  };
232
232
  source_status_id_str?: string;
@@ -339,7 +339,7 @@ export interface GraphQLGetLikesSuccessResponse {
339
339
  };
340
340
  video_info?: {
341
341
  aspect_ratio: number[];
342
- duration_millis?: number;
342
+ duration_millis: number;
343
343
  variants: {
344
344
  bitrate?: number;
345
345
  content_type: string;
@@ -348,7 +348,7 @@ export interface GraphQLGetLikesSuccessResponse {
348
348
  };
349
349
  ext_alt_text?: string;
350
350
  sensitive_media_warning?: {
351
- adult_content?: boolean;
351
+ adult_content: boolean;
352
352
  other: boolean;
353
353
  };
354
354
  source_status_id_str?: string;
@@ -430,7 +430,7 @@ export interface GraphQLGetLikesSuccessResponse {
430
430
  normal_followers_count: number;
431
431
  pinned_tweet_ids_str: string[];
432
432
  possibly_sensitive: boolean;
433
- profile_banner_url?: string;
433
+ profile_banner_url: string;
434
434
  profile_image_url_https: string;
435
435
  profile_interstitial_type: string;
436
436
  screen_name: string;
@@ -441,7 +441,6 @@ export interface GraphQLGetLikesSuccessResponse {
441
441
  want_retweets: boolean;
442
442
  withheld_in_countries: unknown[];
443
443
  following?: boolean;
444
- verified_type?: string;
445
444
  };
446
445
  professional?: {
447
446
  rest_id: string;
@@ -491,7 +490,7 @@ export interface GraphQLGetLikesSuccessResponse {
491
490
  ext_media_availability: {
492
491
  status: string;
493
492
  };
494
- features?: {
493
+ features: {
495
494
  large: {
496
495
  faces: {
497
496
  x: number;
@@ -524,14 +523,6 @@ export interface GraphQLGetLikesSuccessResponse {
524
523
  w: number;
525
524
  }[];
526
525
  };
527
- all?: {
528
- tags: {
529
- user_id: string;
530
- name: string;
531
- screen_name: string;
532
- type: string;
533
- }[];
534
- };
535
526
  };
536
527
  sizes: {
537
528
  large: {
@@ -565,18 +556,6 @@ export interface GraphQLGetLikesSuccessResponse {
565
556
  h: number;
566
557
  }[];
567
558
  };
568
- additional_media_info?: {
569
- monetizable: boolean;
570
- };
571
- video_info?: {
572
- aspect_ratio: number[];
573
- duration_millis: number;
574
- variants: {
575
- bitrate?: number;
576
- content_type: string;
577
- url: string;
578
- }[];
579
- };
580
559
  }[];
581
560
  symbols: unknown[];
582
561
  timestamps?: unknown[];
@@ -586,12 +565,7 @@ export interface GraphQLGetLikesSuccessResponse {
586
565
  url: string;
587
566
  indices: number[];
588
567
  }[];
589
- user_mentions: {
590
- id_str: string;
591
- name: string;
592
- screen_name: string;
593
- indices: number[];
594
- }[];
568
+ user_mentions: unknown[];
595
569
  };
596
570
  extended_entities?: {
597
571
  media: {
@@ -606,7 +580,7 @@ export interface GraphQLGetLikesSuccessResponse {
606
580
  ext_media_availability: {
607
581
  status: string;
608
582
  };
609
- features?: {
583
+ features: {
610
584
  large: {
611
585
  faces: {
612
586
  x: number;
@@ -639,14 +613,6 @@ export interface GraphQLGetLikesSuccessResponse {
639
613
  w: number;
640
614
  }[];
641
615
  };
642
- all?: {
643
- tags: {
644
- user_id: string;
645
- name: string;
646
- screen_name: string;
647
- type: string;
648
- }[];
649
- };
650
616
  };
651
617
  sizes: {
652
618
  large: {
@@ -680,18 +646,6 @@ export interface GraphQLGetLikesSuccessResponse {
680
646
  h: number;
681
647
  }[];
682
648
  };
683
- additional_media_info?: {
684
- monetizable: boolean;
685
- };
686
- video_info?: {
687
- aspect_ratio: number[];
688
- duration_millis: number;
689
- variants: {
690
- bitrate?: number;
691
- content_type: string;
692
- url: string;
693
- }[];
694
- };
695
649
  }[];
696
650
  };
697
651
  favorite_count: number;
@@ -710,12 +664,6 @@ export interface GraphQLGetLikesSuccessResponse {
710
664
  retweeted: boolean;
711
665
  user_id_str: string;
712
666
  id_str: string;
713
- quoted_status_id_str?: string;
714
- quoted_status_permalink?: {
715
- url: string;
716
- expanded: string;
717
- display: string;
718
- };
719
667
  };
720
668
  tweet?: {
721
669
  rest_id: string;
@@ -730,7 +678,7 @@ export interface GraphQLGetLikesSuccessResponse {
730
678
  is_blue_verified: boolean;
731
679
  profile_image_shape: string;
732
680
  legacy: {
733
- blocking?: boolean;
681
+ blocking: boolean;
734
682
  can_dm: boolean;
735
683
  can_media_tag: boolean;
736
684
  created_at: string;
@@ -793,7 +741,7 @@ export interface GraphQLGetLikesSuccessResponse {
793
741
  };
794
742
  };
795
743
  unmention_data: {};
796
- unified_card?: {
744
+ unified_card: {
797
745
  card_fetch_state: string;
798
746
  };
799
747
  edit_control: {
@@ -804,7 +752,7 @@ export interface GraphQLGetLikesSuccessResponse {
804
752
  };
805
753
  is_translatable: boolean;
806
754
  views: {
807
- count?: string;
755
+ count: string;
808
756
  state: string;
809
757
  };
810
758
  source: string;
@@ -815,7 +763,7 @@ export interface GraphQLGetLikesSuccessResponse {
815
763
  conversation_id_str: string;
816
764
  display_text_range: number[];
817
765
  entities: {
818
- media?: {
766
+ media: {
819
767
  display_url: string;
820
768
  expanded_url: string;
821
769
  ext_alt_text?: string;
@@ -908,7 +856,7 @@ export interface GraphQLGetLikesSuccessResponse {
908
856
  }[];
909
857
  symbols: unknown[];
910
858
  };
911
- extended_entities?: {
859
+ extended_entities: {
912
860
  media: {
913
861
  display_url: string;
914
862
  expanded_url: string;
@@ -1003,124 +951,6 @@ export interface GraphQLGetLikesSuccessResponse {
1003
951
  retweeted: boolean;
1004
952
  user_id_str: string;
1005
953
  id_str: string;
1006
- conversation_control?: {
1007
- policy: string;
1008
- conversation_owner_results: {
1009
- result: {
1010
- __typename: string;
1011
- legacy: {
1012
- screen_name: string;
1013
- };
1014
- };
1015
- };
1016
- };
1017
- limited_actions?: string;
1018
- };
1019
- card?: {
1020
- rest_id: string;
1021
- legacy: {
1022
- binding_values: {
1023
- key: string;
1024
- value: {
1025
- image_value?: {
1026
- height: number;
1027
- width: number;
1028
- url: string;
1029
- };
1030
- type: string;
1031
- string_value?: string;
1032
- scribe_key?: string;
1033
- user_value?: {
1034
- id_str: string;
1035
- path: unknown[];
1036
- };
1037
- image_color_value?: {
1038
- palette: {
1039
- rgb: {
1040
- blue: number;
1041
- green: number;
1042
- red: number;
1043
- };
1044
- percentage: number;
1045
- }[];
1046
- };
1047
- };
1048
- }[];
1049
- card_platform: {
1050
- platform: {
1051
- audience: {
1052
- name: string;
1053
- };
1054
- device: {
1055
- name: string;
1056
- version: string;
1057
- };
1058
- };
1059
- };
1060
- name: string;
1061
- url: string;
1062
- user_refs_results: {
1063
- result: {
1064
- __typename: string;
1065
- id: string;
1066
- rest_id: string;
1067
- affiliates_highlighted_label: {};
1068
- has_graduated_access: boolean;
1069
- is_blue_verified: boolean;
1070
- profile_image_shape: string;
1071
- legacy: {
1072
- blocking: boolean;
1073
- can_dm: boolean;
1074
- can_media_tag: boolean;
1075
- created_at: string;
1076
- default_profile: boolean;
1077
- default_profile_image: boolean;
1078
- description: string;
1079
- entities: {
1080
- description: {
1081
- urls: {
1082
- display_url: string;
1083
- expanded_url: string;
1084
- url: string;
1085
- indices: number[];
1086
- }[];
1087
- };
1088
- url: {
1089
- urls: {
1090
- display_url: string;
1091
- expanded_url: string;
1092
- url: string;
1093
- indices: number[];
1094
- }[];
1095
- };
1096
- };
1097
- fast_followers_count: number;
1098
- favourites_count: number;
1099
- followers_count: number;
1100
- friends_count: number;
1101
- has_custom_timelines: boolean;
1102
- is_translator: boolean;
1103
- listed_count: number;
1104
- location: string;
1105
- media_count: number;
1106
- name: string;
1107
- normal_followers_count: number;
1108
- pinned_tweet_ids_str: string[];
1109
- possibly_sensitive: boolean;
1110
- profile_banner_url: string;
1111
- profile_image_url_https: string;
1112
- profile_interstitial_type: string;
1113
- screen_name: string;
1114
- statuses_count: number;
1115
- translator_type: string;
1116
- url: string;
1117
- verified: boolean;
1118
- want_retweets: boolean;
1119
- withheld_in_countries: unknown[];
1120
- };
1121
- };
1122
- }[];
1123
- };
1124
954
  };
1125
955
  };
1126
956
  tweetInterstitial?: {
@@ -1193,7 +1023,7 @@ export interface GraphQLGetLikesSuccessResponse {
1193
1023
  is_blue_verified: boolean;
1194
1024
  profile_image_shape: string;
1195
1025
  legacy: {
1196
- blocking?: boolean;
1026
+ blocking: boolean;
1197
1027
  can_dm: boolean;
1198
1028
  can_media_tag: boolean;
1199
1029
  created_at: string;
@@ -1202,12 +1032,7 @@ export interface GraphQLGetLikesSuccessResponse {
1202
1032
  description: string;
1203
1033
  entities: {
1204
1034
  description: {
1205
- urls: {
1206
- display_url: string;
1207
- expanded_url: string;
1208
- url: string;
1209
- indices: number[];
1210
- }[];
1035
+ urls: unknown[];
1211
1036
  };
1212
1037
  url: {
1213
1038
  urls: {
@@ -1229,7 +1054,7 @@ export interface GraphQLGetLikesSuccessResponse {
1229
1054
  media_count: number;
1230
1055
  name: string;
1231
1056
  normal_followers_count: number;
1232
- pinned_tweet_ids_str: string[];
1057
+ pinned_tweet_ids_str: unknown[];
1233
1058
  possibly_sensitive: boolean;
1234
1059
  profile_banner_url: string;
1235
1060
  profile_image_url_https: string;
@@ -1239,11 +1064,11 @@ export interface GraphQLGetLikesSuccessResponse {
1239
1064
  translator_type: string;
1240
1065
  url: string;
1241
1066
  verified: boolean;
1242
- verified_type?: string;
1067
+ verified_type: string;
1243
1068
  want_retweets: boolean;
1244
1069
  withheld_in_countries: unknown[];
1245
1070
  };
1246
- professional?: {
1071
+ professional: {
1247
1072
  rest_id: string;
1248
1073
  professional_type: string;
1249
1074
  category: {
@@ -1256,34 +1081,11 @@ export interface GraphQLGetLikesSuccessResponse {
1256
1081
  }[];
1257
1082
  };
1258
1083
  };
1259
- quotedRefResult?: {
1260
- result: {
1261
- __typename: string;
1262
- rest_id: string;
1263
- };
1264
- };
1265
- limitedActionResults?: {
1266
- limited_actions: {
1267
- action: string;
1268
- prompt: {
1269
- __typename: string;
1270
- cta_type: string;
1271
- headline: {
1272
- text: string;
1273
- entities: unknown[];
1274
- };
1275
- subtext: {
1276
- text: string;
1277
- entities: unknown[];
1278
- };
1279
- };
1280
- }[];
1281
- };
1282
1084
  };
1283
1085
  };
1284
1086
  card?: {
1285
1087
  rest_id: string;
1286
- legacy?: {
1088
+ legacy: {
1287
1089
  binding_values: {
1288
1090
  key: string;
1289
1091
  value: {
@@ -1465,24 +1267,18 @@ export interface GraphQLGetLikesSuccessResponse {
1465
1267
  followed_by?: boolean;
1466
1268
  following?: boolean;
1467
1269
  muting?: boolean;
1468
- protected?: boolean;
1469
- };
1470
- professional?: {
1471
- rest_id: string;
1472
- professional_type: string;
1473
- category: unknown[];
1474
1270
  };
1475
1271
  };
1476
1272
  };
1477
1273
  };
1478
- unmention_data?: {};
1274
+ unmention_data: {};
1479
1275
  edit_control: {
1480
1276
  edit_tweet_ids: string[];
1481
1277
  editable_until_msecs: string;
1482
1278
  is_edit_eligible: boolean;
1483
1279
  edits_remaining: string;
1484
1280
  };
1485
- is_translatable?: boolean;
1281
+ is_translatable: boolean;
1486
1282
  views: {
1487
1283
  count: string;
1488
1284
  state: string;
@@ -1585,18 +1381,8 @@ export interface GraphQLGetLikesSuccessResponse {
1585
1381
  }[];
1586
1382
  };
1587
1383
  }[];
1588
- user_mentions: {
1589
- id_str: string;
1590
- name: string;
1591
- screen_name: string;
1592
- indices: number[];
1593
- }[];
1594
- urls: {
1595
- display_url: string;
1596
- expanded_url: string;
1597
- url: string;
1598
- indices: number[];
1599
- }[];
1384
+ user_mentions: unknown[];
1385
+ urls: unknown[];
1600
1386
  hashtags: {
1601
1387
  indices: number[];
1602
1388
  text: string;
@@ -1698,130 +1484,6 @@ export interface GraphQLGetLikesSuccessResponse {
1698
1484
  retweeted: boolean;
1699
1485
  user_id_str: string;
1700
1486
  id_str: string;
1701
- place?: {
1702
- bounding_box: {
1703
- coordinates: number[][][];
1704
- type: string;
1705
- };
1706
- country: string;
1707
- country_code: string;
1708
- full_name: string;
1709
- name: string;
1710
- id: string;
1711
- place_type: string;
1712
- url: string;
1713
- };
1714
- in_reply_to_screen_name?: string;
1715
- in_reply_to_user_id_str?: string;
1716
- };
1717
- card?: {
1718
- rest_id: string;
1719
- legacy: {
1720
- binding_values: {
1721
- key: string;
1722
- value: {
1723
- image_value?: {
1724
- height: number;
1725
- width: number;
1726
- url: string;
1727
- };
1728
- type: string;
1729
- string_value?: string;
1730
- scribe_key?: string;
1731
- user_value?: {
1732
- id_str: string;
1733
- path: unknown[];
1734
- };
1735
- image_color_value?: {
1736
- palette: {
1737
- rgb: {
1738
- blue: number;
1739
- green: number;
1740
- red: number;
1741
- };
1742
- percentage: number;
1743
- }[];
1744
- };
1745
- };
1746
- }[];
1747
- card_platform: {
1748
- platform: {
1749
- audience: {
1750
- name: string;
1751
- };
1752
- device: {
1753
- name: string;
1754
- version: string;
1755
- };
1756
- };
1757
- };
1758
- name: string;
1759
- url: string;
1760
- user_refs_results: {
1761
- result: {
1762
- __typename: string;
1763
- id: string;
1764
- rest_id: string;
1765
- affiliates_highlighted_label: {};
1766
- has_graduated_access: boolean;
1767
- is_blue_verified: boolean;
1768
- profile_image_shape: string;
1769
- legacy: {
1770
- following: boolean;
1771
- can_dm: boolean;
1772
- can_media_tag: boolean;
1773
- created_at: string;
1774
- default_profile: boolean;
1775
- default_profile_image: boolean;
1776
- description: string;
1777
- entities: {
1778
- description: {
1779
- urls: {
1780
- display_url: string;
1781
- expanded_url: string;
1782
- url: string;
1783
- indices: number[];
1784
- }[];
1785
- };
1786
- url: {
1787
- urls: {
1788
- display_url: string;
1789
- expanded_url: string;
1790
- url: string;
1791
- indices: number[];
1792
- }[];
1793
- };
1794
- };
1795
- fast_followers_count: number;
1796
- favourites_count: number;
1797
- followers_count: number;
1798
- friends_count: number;
1799
- has_custom_timelines: boolean;
1800
- is_translator: boolean;
1801
- listed_count: number;
1802
- location: string;
1803
- media_count: number;
1804
- name: string;
1805
- normal_followers_count: number;
1806
- pinned_tweet_ids_str: string[];
1807
- possibly_sensitive: boolean;
1808
- profile_banner_url: string;
1809
- profile_image_url_https: string;
1810
- profile_interstitial_type: string;
1811
- screen_name: string;
1812
- statuses_count: number;
1813
- translator_type: string;
1814
- url: string;
1815
- verified: boolean;
1816
- want_retweets: boolean;
1817
- withheld_in_countries: unknown[];
1818
- };
1819
- };
1820
- }[];
1821
- };
1822
- };
1823
- unified_card?: {
1824
- card_fetch_state: string;
1825
1487
  };
1826
1488
  };
1827
1489
  limitedActionResults?: {
@@ -1871,10 +1533,7 @@ export interface GraphQLGetLikesSuccessResponse {
1871
1533
  entity_set: {
1872
1534
  user_mentions: unknown[];
1873
1535
  urls: unknown[];
1874
- hashtags: {
1875
- indices: number[];
1876
- text: string;
1877
- }[];
1536
+ hashtags: unknown[];
1878
1537
  symbols: unknown[];
1879
1538
  };
1880
1539
  richtext?: {