@book000/twitterts 0.3.0 → 0.4.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.
@@ -81,7 +81,7 @@ export interface GraphQLPostHomeLatestTimelineResponse {
81
81
  normal_followers_count: number;
82
82
  pinned_tweet_ids_str: string[];
83
83
  possibly_sensitive: boolean;
84
- profile_banner_url: string;
84
+ profile_banner_url?: string;
85
85
  profile_image_url_https: string;
86
86
  profile_interstitial_type: string;
87
87
  screen_name: string;
@@ -782,6 +782,9 @@ export interface GraphQLPostHomeLatestTimelineResponse {
782
782
  expanded: string;
783
783
  display: string;
784
784
  };
785
+ scopes?: {
786
+ followers: boolean;
787
+ };
785
788
  };
786
789
  quoted_status_result?: {
787
790
  result: {
@@ -1139,9 +1142,28 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1139
1142
  binding_values: {
1140
1143
  key: string;
1141
1144
  value: {
1142
- string_value: string;
1145
+ string_value?: string;
1143
1146
  type: string;
1144
1147
  scribe_key?: string;
1148
+ image_value?: {
1149
+ height: number;
1150
+ width: number;
1151
+ url: string;
1152
+ };
1153
+ image_color_value?: {
1154
+ palette: {
1155
+ rgb: {
1156
+ blue: number;
1157
+ green: number;
1158
+ red: number;
1159
+ };
1160
+ percentage: number;
1161
+ }[];
1162
+ };
1163
+ user_value?: {
1164
+ id_str: string;
1165
+ path: unknown[];
1166
+ };
1145
1167
  };
1146
1168
  }[];
1147
1169
  card_platform: {
@@ -1157,7 +1179,62 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1157
1179
  };
1158
1180
  name: string;
1159
1181
  url: string;
1160
- user_refs_results: unknown[];
1182
+ user_refs_results: {
1183
+ result: {
1184
+ __typename: string;
1185
+ id: string;
1186
+ rest_id: string;
1187
+ affiliates_highlighted_label: {};
1188
+ has_graduated_access: boolean;
1189
+ is_blue_verified: boolean;
1190
+ profile_image_shape: string;
1191
+ legacy: {
1192
+ can_dm: boolean;
1193
+ can_media_tag: boolean;
1194
+ created_at: string;
1195
+ default_profile: boolean;
1196
+ default_profile_image: boolean;
1197
+ description: string;
1198
+ entities: {
1199
+ description: {
1200
+ urls: unknown[];
1201
+ };
1202
+ url: {
1203
+ urls: {
1204
+ display_url: string;
1205
+ expanded_url: string;
1206
+ url: string;
1207
+ indices: number[];
1208
+ }[];
1209
+ };
1210
+ };
1211
+ fast_followers_count: number;
1212
+ favourites_count: number;
1213
+ followers_count: number;
1214
+ friends_count: number;
1215
+ has_custom_timelines: boolean;
1216
+ is_translator: boolean;
1217
+ listed_count: number;
1218
+ location: string;
1219
+ media_count: number;
1220
+ name: string;
1221
+ normal_followers_count: number;
1222
+ pinned_tweet_ids_str: unknown[];
1223
+ possibly_sensitive: boolean;
1224
+ profile_banner_url: string;
1225
+ profile_image_url_https: string;
1226
+ profile_interstitial_type: string;
1227
+ screen_name: string;
1228
+ statuses_count: number;
1229
+ translator_type: string;
1230
+ url: string;
1231
+ verified: boolean;
1232
+ verified_type: string;
1233
+ want_retweets: boolean;
1234
+ withheld_in_countries: unknown[];
1235
+ };
1236
+ };
1237
+ }[];
1161
1238
  };
1162
1239
  };
1163
1240
  unified_card?: {
@@ -1221,11 +1298,11 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1221
1298
  translator_type: string;
1222
1299
  url: string;
1223
1300
  verified: boolean;
1224
- verified_type: string;
1301
+ verified_type?: string;
1225
1302
  want_retweets: boolean;
1226
1303
  withheld_in_countries: unknown[];
1227
1304
  };
1228
- professional: {
1305
+ professional?: {
1229
1306
  rest_id: string;
1230
1307
  professional_type: string;
1231
1308
  category: {
@@ -1237,7 +1314,7 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1237
1314
  };
1238
1315
  };
1239
1316
  };
1240
- card: {
1317
+ card?: {
1241
1318
  rest_id: string;
1242
1319
  legacy: {
1243
1320
  binding_values: {
@@ -1338,14 +1415,21 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1338
1415
  }[];
1339
1416
  };
1340
1417
  };
1341
- unified_card: {
1418
+ unified_card?: {
1342
1419
  card_fetch_state: string;
1343
1420
  };
1344
1421
  edit_control: {
1345
- edit_tweet_ids: string[];
1346
- editable_until_msecs: string;
1347
- is_edit_eligible: boolean;
1348
- edits_remaining: string;
1422
+ edit_tweet_ids?: string[];
1423
+ editable_until_msecs?: string;
1424
+ is_edit_eligible?: boolean;
1425
+ edits_remaining?: string;
1426
+ initial_tweet_id?: string;
1427
+ edit_control_initial?: {
1428
+ edit_tweet_ids: string[];
1429
+ editable_until_msecs: string;
1430
+ is_edit_eligible: boolean;
1431
+ edits_remaining: string;
1432
+ };
1349
1433
  };
1350
1434
  edit_perspective: {
1351
1435
  favorited: boolean;
@@ -1361,7 +1445,7 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1361
1445
  bookmark_count: number;
1362
1446
  bookmarked: boolean;
1363
1447
  created_at: string;
1364
- conversation_control: {
1448
+ conversation_control?: {
1365
1449
  policy: string;
1366
1450
  conversation_owner_results: {
1367
1451
  result: {
@@ -1381,12 +1465,92 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1381
1465
  screen_name: string;
1382
1466
  indices: number[];
1383
1467
  }[];
1384
- urls: unknown[];
1468
+ urls: {
1469
+ display_url: string;
1470
+ expanded_url: string;
1471
+ url: string;
1472
+ indices: number[];
1473
+ }[];
1385
1474
  hashtags: {
1386
1475
  indices: number[];
1387
1476
  text: string;
1388
1477
  }[];
1389
1478
  symbols: unknown[];
1479
+ media?: {
1480
+ display_url: string;
1481
+ expanded_url: string;
1482
+ id_str: string;
1483
+ indices: number[];
1484
+ media_url_https: string;
1485
+ type: string;
1486
+ url: string;
1487
+ features: {
1488
+ large: {
1489
+ faces: {
1490
+ x: number;
1491
+ y: number;
1492
+ h: number;
1493
+ w: number;
1494
+ }[];
1495
+ };
1496
+ medium: {
1497
+ faces: {
1498
+ x: number;
1499
+ y: number;
1500
+ h: number;
1501
+ w: number;
1502
+ }[];
1503
+ };
1504
+ small: {
1505
+ faces: {
1506
+ x: number;
1507
+ y: number;
1508
+ h: number;
1509
+ w: number;
1510
+ }[];
1511
+ };
1512
+ orig: {
1513
+ faces: {
1514
+ x: number;
1515
+ y: number;
1516
+ h: number;
1517
+ w: number;
1518
+ }[];
1519
+ };
1520
+ };
1521
+ sizes: {
1522
+ large: {
1523
+ h: number;
1524
+ w: number;
1525
+ resize: string;
1526
+ };
1527
+ medium: {
1528
+ h: number;
1529
+ w: number;
1530
+ resize: string;
1531
+ };
1532
+ small: {
1533
+ h: number;
1534
+ w: number;
1535
+ resize: string;
1536
+ };
1537
+ thumb: {
1538
+ h: number;
1539
+ w: number;
1540
+ resize: string;
1541
+ };
1542
+ };
1543
+ original_info: {
1544
+ height: number;
1545
+ width: number;
1546
+ focus_rects: {
1547
+ x: number;
1548
+ y: number;
1549
+ w: number;
1550
+ h: number;
1551
+ }[];
1552
+ };
1553
+ }[];
1390
1554
  };
1391
1555
  favorite_count: number;
1392
1556
  favorited: boolean;
@@ -1402,12 +1566,123 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1402
1566
  retweeted: boolean;
1403
1567
  user_id_str: string;
1404
1568
  id_str: string;
1569
+ scopes?: {
1570
+ followers: boolean;
1571
+ };
1572
+ extended_entities?: {
1573
+ media: {
1574
+ display_url: string;
1575
+ expanded_url: string;
1576
+ id_str: string;
1577
+ indices: number[];
1578
+ media_key: string;
1579
+ media_url_https: string;
1580
+ type: string;
1581
+ url: string;
1582
+ ext_media_availability: {
1583
+ status: string;
1584
+ };
1585
+ features: {
1586
+ large: {
1587
+ faces: {
1588
+ x: number;
1589
+ y: number;
1590
+ h: number;
1591
+ w: number;
1592
+ }[];
1593
+ };
1594
+ medium: {
1595
+ faces: {
1596
+ x: number;
1597
+ y: number;
1598
+ h: number;
1599
+ w: number;
1600
+ }[];
1601
+ };
1602
+ small: {
1603
+ faces: {
1604
+ x: number;
1605
+ y: number;
1606
+ h: number;
1607
+ w: number;
1608
+ }[];
1609
+ };
1610
+ orig: {
1611
+ faces: {
1612
+ x: number;
1613
+ y: number;
1614
+ h: number;
1615
+ w: number;
1616
+ }[];
1617
+ };
1618
+ };
1619
+ sizes: {
1620
+ large: {
1621
+ h: number;
1622
+ w: number;
1623
+ resize: string;
1624
+ };
1625
+ medium: {
1626
+ h: number;
1627
+ w: number;
1628
+ resize: string;
1629
+ };
1630
+ small: {
1631
+ h: number;
1632
+ w: number;
1633
+ resize: string;
1634
+ };
1635
+ thumb: {
1636
+ h: number;
1637
+ w: number;
1638
+ resize: string;
1639
+ };
1640
+ };
1641
+ original_info: {
1642
+ height: number;
1643
+ width: number;
1644
+ focus_rects: {
1645
+ x: number;
1646
+ y: number;
1647
+ w: number;
1648
+ h: number;
1649
+ }[];
1650
+ };
1651
+ }[];
1652
+ };
1653
+ };
1654
+ previous_counts?: {
1655
+ bookmark_count: number;
1656
+ favorite_count: number;
1657
+ quote_count: number;
1658
+ reply_count: number;
1659
+ retweet_count: number;
1660
+ };
1661
+ note_tweet?: {
1662
+ is_expandable: boolean;
1663
+ note_tweet_results: {
1664
+ result: {
1665
+ id: string;
1666
+ text: string;
1667
+ entity_set: {
1668
+ user_mentions: unknown[];
1669
+ urls: {
1670
+ display_url: string;
1671
+ expanded_url: string;
1672
+ url: string;
1673
+ indices: number[];
1674
+ }[];
1675
+ hashtags: unknown[];
1676
+ symbols: unknown[];
1677
+ };
1678
+ };
1679
+ };
1405
1680
  };
1406
1681
  };
1407
1682
  limitedActionResults?: {
1408
1683
  limited_actions: {
1409
1684
  action: string;
1410
- prompt: {
1685
+ prompt?: {
1411
1686
  __typename: string;
1412
1687
  cta_type: string;
1413
1688
  headline: {
@@ -1687,6 +1962,32 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1687
1962
  };
1688
1963
  };
1689
1964
  };
1965
+ note_tweet?: {
1966
+ is_expandable: boolean;
1967
+ note_tweet_results: {
1968
+ result: {
1969
+ id: string;
1970
+ text: string;
1971
+ entity_set: {
1972
+ user_mentions: unknown[];
1973
+ urls: {
1974
+ display_url: string;
1975
+ expanded_url: string;
1976
+ url: string;
1977
+ indices: number[];
1978
+ }[];
1979
+ hashtags: unknown[];
1980
+ symbols: unknown[];
1981
+ };
1982
+ richtext: {
1983
+ richtext_tags: unknown[];
1984
+ };
1985
+ media: {
1986
+ inline_media: unknown[];
1987
+ };
1988
+ };
1989
+ };
1990
+ };
1690
1991
  };
1691
1992
  };
1692
1993
  tweetDisplayType: string;
@@ -1751,7 +2052,7 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1751
2052
  normal_followers_count: number;
1752
2053
  pinned_tweet_ids_str: string[];
1753
2054
  possibly_sensitive: boolean;
1754
- profile_banner_url: string;
2055
+ profile_banner_url?: string;
1755
2056
  profile_image_url_https: string;
1756
2057
  profile_interstitial_type: string;
1757
2058
  screen_name: string;
@@ -1786,12 +2087,122 @@ export interface GraphQLPostHomeLatestTimelineResponse {
1786
2087
  key: string;
1787
2088
  value: string;
1788
2089
  }[];
2090
+ urlOverride?: string;
2091
+ urlOverrideType?: string;
1789
2092
  };
1790
2093
  promotedTrendName?: string;
1791
2094
  promotedTrendQueryTerm?: string;
1792
2095
  promotedTrend?: {
1793
2096
  rest_id: string;
1794
2097
  };
2098
+ adMetadataContainer?: {
2099
+ remove_promoted_attribution_for_preroll: boolean;
2100
+ };
2101
+ };
2102
+ prerollMetadata?: {
2103
+ preroll: {
2104
+ dynamicPrerollType: string;
2105
+ mediaInfo: {
2106
+ advertiserName: string;
2107
+ advertiserProfileImageUrl: string;
2108
+ callToAction: {
2109
+ callToActionType: string;
2110
+ url: string;
2111
+ };
2112
+ durationMillis: number;
2113
+ publisherResults: {
2114
+ result: {
2115
+ __typename: string;
2116
+ id: string;
2117
+ rest_id: string;
2118
+ affiliates_highlighted_label: {
2119
+ label: {
2120
+ url: {
2121
+ url: string;
2122
+ urlType: string;
2123
+ };
2124
+ badge: {
2125
+ url: string;
2126
+ };
2127
+ description: string;
2128
+ userLabelType: string;
2129
+ userLabelDisplayType: string;
2130
+ };
2131
+ };
2132
+ has_graduated_access: boolean;
2133
+ is_blue_verified: boolean;
2134
+ profile_image_shape: string;
2135
+ legacy: {
2136
+ can_dm: boolean;
2137
+ can_media_tag: boolean;
2138
+ created_at: string;
2139
+ default_profile: boolean;
2140
+ default_profile_image: boolean;
2141
+ description: string;
2142
+ entities: {
2143
+ description: {
2144
+ urls: {
2145
+ display_url: string;
2146
+ expanded_url: string;
2147
+ url: string;
2148
+ indices: number[];
2149
+ }[];
2150
+ };
2151
+ url: {
2152
+ urls: {
2153
+ display_url: string;
2154
+ expanded_url: string;
2155
+ url: string;
2156
+ indices: number[];
2157
+ }[];
2158
+ };
2159
+ };
2160
+ fast_followers_count: number;
2161
+ favourites_count: number;
2162
+ followers_count: number;
2163
+ friends_count: number;
2164
+ has_custom_timelines: boolean;
2165
+ is_translator: boolean;
2166
+ listed_count: number;
2167
+ location: string;
2168
+ media_count: number;
2169
+ name: string;
2170
+ normal_followers_count: number;
2171
+ pinned_tweet_ids_str: unknown[];
2172
+ possibly_sensitive: boolean;
2173
+ profile_banner_url: string;
2174
+ profile_image_url_https: string;
2175
+ profile_interstitial_type: string;
2176
+ screen_name: string;
2177
+ statuses_count: number;
2178
+ translator_type: string;
2179
+ url: string;
2180
+ verified: boolean;
2181
+ verified_type: string;
2182
+ want_retweets: boolean;
2183
+ withheld_in_countries: unknown[];
2184
+ };
2185
+ professional: {
2186
+ rest_id: string;
2187
+ professional_type: string;
2188
+ category: {
2189
+ id: number;
2190
+ name: string;
2191
+ icon_name: string;
2192
+ }[];
2193
+ };
2194
+ };
2195
+ };
2196
+ renderAdByAdvertiserName: boolean;
2197
+ uuid: string;
2198
+ videoVariants: {
2199
+ bitrate?: number;
2200
+ contentType: string;
2201
+ url: string;
2202
+ }[];
2203
+ };
2204
+ prerollId: string;
2205
+ };
1795
2206
  };
1796
2207
  };
1797
2208
  clientEventInfo?: {