@book000/twitterts 0.20.18 → 0.21.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/dist/generate-types.js +5 -1
- package/dist/generate-types.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts +1 -1
- package/dist/models/responses/custom/custom-user-like-tweet-entry.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/home-timeline-success.d.ts +169 -15
- package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/likes-success.d.ts +1 -1
- package/dist/models/responses/graphql/get/likes-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/profile-spotlights-query-error.d.ts +8 -0
- package/dist/models/responses/graphql/get/profile-spotlights-query-error.d.ts.map +1 -0
- package/dist/models/responses/graphql/get/profile-spotlights-query-error.js +4 -0
- package/dist/models/responses/graphql/get/profile-spotlights-query-error.js.map +1 -0
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts +22 -2
- package/dist/models/responses/graphql/get/tweet-detail-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-by-rest-id-success.d.ts +1 -0
- package/dist/models/responses/graphql/get/user-by-rest-id-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +1 -0
- package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts +320 -41
- package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
- package/dist/parser/search-timeline.js +3 -1
- package/dist/parser/search-timeline.js.map +1 -1
- package/dist/parser/user-like-tweets.js +3 -1
- package/dist/parser/user-like-tweets.js.map +1 -1
- package/dist/parser/user-tweets.js +3 -1
- package/dist/parser/user-tweets.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/twitter.d.ts.map +1 -1
- package/dist/twitter.js +120 -68
- package/dist/twitter.js.map +1 -1
- package/package.json +2 -2
|
@@ -885,7 +885,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
885
885
|
conversation_id_str: string;
|
|
886
886
|
display_text_range: number[];
|
|
887
887
|
entities: {
|
|
888
|
-
media
|
|
888
|
+
media?: {
|
|
889
889
|
display_url: string;
|
|
890
890
|
expanded_url: string;
|
|
891
891
|
id_str: string;
|
|
@@ -966,14 +966,19 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
966
966
|
screen_name: string;
|
|
967
967
|
indices: number[];
|
|
968
968
|
}[];
|
|
969
|
-
urls:
|
|
969
|
+
urls: {
|
|
970
|
+
display_url: string;
|
|
971
|
+
expanded_url: string;
|
|
972
|
+
url: string;
|
|
973
|
+
indices: number[];
|
|
974
|
+
}[];
|
|
970
975
|
hashtags: {
|
|
971
976
|
indices: number[];
|
|
972
977
|
text: string;
|
|
973
978
|
}[];
|
|
974
979
|
symbols: unknown[];
|
|
975
980
|
};
|
|
976
|
-
extended_entities
|
|
981
|
+
extended_entities?: {
|
|
977
982
|
media: {
|
|
978
983
|
display_url: string;
|
|
979
984
|
expanded_url: string;
|
|
@@ -1085,6 +1090,18 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
1085
1090
|
in_reply_to_screen_name?: string;
|
|
1086
1091
|
in_reply_to_status_id_str?: string;
|
|
1087
1092
|
in_reply_to_user_id_str?: string;
|
|
1093
|
+
quoted_status_id_str?: string;
|
|
1094
|
+
quoted_status_permalink?: {
|
|
1095
|
+
url: string;
|
|
1096
|
+
expanded: string;
|
|
1097
|
+
display: string;
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
quotedRefResult?: {
|
|
1101
|
+
result: {
|
|
1102
|
+
__typename: string;
|
|
1103
|
+
rest_id: string;
|
|
1104
|
+
};
|
|
1088
1105
|
};
|
|
1089
1106
|
};
|
|
1090
1107
|
};
|
|
@@ -1178,6 +1195,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
1178
1195
|
icon_name: string;
|
|
1179
1196
|
}[];
|
|
1180
1197
|
};
|
|
1198
|
+
super_follow_eligible?: boolean;
|
|
1181
1199
|
};
|
|
1182
1200
|
};
|
|
1183
1201
|
};
|
|
@@ -1548,7 +1566,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
1548
1566
|
media_count: number;
|
|
1549
1567
|
name: string;
|
|
1550
1568
|
normal_followers_count: number;
|
|
1551
|
-
pinned_tweet_ids_str:
|
|
1569
|
+
pinned_tweet_ids_str: string[];
|
|
1552
1570
|
possibly_sensitive: boolean;
|
|
1553
1571
|
profile_banner_url: string;
|
|
1554
1572
|
profile_image_url_https: string;
|
|
@@ -1563,6 +1581,15 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
1563
1581
|
url?: string;
|
|
1564
1582
|
verified_type?: string;
|
|
1565
1583
|
};
|
|
1584
|
+
professional?: {
|
|
1585
|
+
rest_id: string;
|
|
1586
|
+
professional_type: string;
|
|
1587
|
+
category: {
|
|
1588
|
+
id: number;
|
|
1589
|
+
name: string;
|
|
1590
|
+
icon_name: string;
|
|
1591
|
+
}[];
|
|
1592
|
+
};
|
|
1566
1593
|
};
|
|
1567
1594
|
};
|
|
1568
1595
|
};
|
|
@@ -2308,6 +2335,13 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2308
2335
|
landingUrl?: {
|
|
2309
2336
|
url: string;
|
|
2310
2337
|
urlType: string;
|
|
2338
|
+
urtEndpointOptions?: {
|
|
2339
|
+
title: string;
|
|
2340
|
+
requestParams: {
|
|
2341
|
+
key: string;
|
|
2342
|
+
value: string;
|
|
2343
|
+
}[];
|
|
2344
|
+
};
|
|
2311
2345
|
};
|
|
2312
2346
|
topic?: {
|
|
2313
2347
|
description: string;
|
|
@@ -2396,7 +2430,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2396
2430
|
normal_followers_count: number;
|
|
2397
2431
|
pinned_tweet_ids_str: string[];
|
|
2398
2432
|
possibly_sensitive: boolean;
|
|
2399
|
-
profile_banner_url
|
|
2433
|
+
profile_banner_url?: string;
|
|
2400
2434
|
profile_image_url_https: string;
|
|
2401
2435
|
profile_interstitial_type: string;
|
|
2402
2436
|
screen_name: string;
|
|
@@ -2450,7 +2484,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2450
2484
|
type: string;
|
|
2451
2485
|
url: string;
|
|
2452
2486
|
features: {
|
|
2453
|
-
large
|
|
2487
|
+
large?: {
|
|
2454
2488
|
faces: {
|
|
2455
2489
|
x: number;
|
|
2456
2490
|
y: number;
|
|
@@ -2458,7 +2492,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2458
2492
|
w: number;
|
|
2459
2493
|
}[];
|
|
2460
2494
|
};
|
|
2461
|
-
medium
|
|
2495
|
+
medium?: {
|
|
2462
2496
|
faces: {
|
|
2463
2497
|
x: number;
|
|
2464
2498
|
y: number;
|
|
@@ -2466,7 +2500,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2466
2500
|
w: number;
|
|
2467
2501
|
}[];
|
|
2468
2502
|
};
|
|
2469
|
-
small
|
|
2503
|
+
small?: {
|
|
2470
2504
|
faces: {
|
|
2471
2505
|
x: number;
|
|
2472
2506
|
y: number;
|
|
@@ -2474,7 +2508,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2474
2508
|
w: number;
|
|
2475
2509
|
}[];
|
|
2476
2510
|
};
|
|
2477
|
-
orig
|
|
2511
|
+
orig?: {
|
|
2478
2512
|
faces: {
|
|
2479
2513
|
x: number;
|
|
2480
2514
|
y: number;
|
|
@@ -2508,7 +2542,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2508
2542
|
original_info: {
|
|
2509
2543
|
height: number;
|
|
2510
2544
|
width: number;
|
|
2511
|
-
focus_rects
|
|
2545
|
+
focus_rects?: {
|
|
2512
2546
|
x: number;
|
|
2513
2547
|
y: number;
|
|
2514
2548
|
w: number;
|
|
@@ -2548,7 +2582,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2548
2582
|
status: string;
|
|
2549
2583
|
};
|
|
2550
2584
|
features: {
|
|
2551
|
-
large
|
|
2585
|
+
large?: {
|
|
2552
2586
|
faces: {
|
|
2553
2587
|
x: number;
|
|
2554
2588
|
y: number;
|
|
@@ -2556,7 +2590,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2556
2590
|
w: number;
|
|
2557
2591
|
}[];
|
|
2558
2592
|
};
|
|
2559
|
-
medium
|
|
2593
|
+
medium?: {
|
|
2560
2594
|
faces: {
|
|
2561
2595
|
x: number;
|
|
2562
2596
|
y: number;
|
|
@@ -2564,7 +2598,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2564
2598
|
w: number;
|
|
2565
2599
|
}[];
|
|
2566
2600
|
};
|
|
2567
|
-
small
|
|
2601
|
+
small?: {
|
|
2568
2602
|
faces: {
|
|
2569
2603
|
x: number;
|
|
2570
2604
|
y: number;
|
|
@@ -2572,7 +2606,7 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2572
2606
|
w: number;
|
|
2573
2607
|
}[];
|
|
2574
2608
|
};
|
|
2575
|
-
orig
|
|
2609
|
+
orig?: {
|
|
2576
2610
|
faces: {
|
|
2577
2611
|
x: number;
|
|
2578
2612
|
y: number;
|
|
@@ -2606,13 +2640,28 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2606
2640
|
original_info: {
|
|
2607
2641
|
height: number;
|
|
2608
2642
|
width: number;
|
|
2609
|
-
focus_rects
|
|
2643
|
+
focus_rects?: {
|
|
2610
2644
|
x: number;
|
|
2611
2645
|
y: number;
|
|
2612
2646
|
w: number;
|
|
2613
2647
|
h: number;
|
|
2614
2648
|
}[];
|
|
2615
2649
|
};
|
|
2650
|
+
additional_media_info?: {
|
|
2651
|
+
monetizable: boolean;
|
|
2652
|
+
};
|
|
2653
|
+
mediaStats?: {
|
|
2654
|
+
viewCount: number;
|
|
2655
|
+
};
|
|
2656
|
+
video_info?: {
|
|
2657
|
+
aspect_ratio: number[];
|
|
2658
|
+
duration_millis: number;
|
|
2659
|
+
variants: {
|
|
2660
|
+
bitrate?: number;
|
|
2661
|
+
content_type: string;
|
|
2662
|
+
url: string;
|
|
2663
|
+
}[];
|
|
2664
|
+
};
|
|
2616
2665
|
}[];
|
|
2617
2666
|
};
|
|
2618
2667
|
favorite_count: number;
|
|
@@ -2632,6 +2681,111 @@ export interface GraphQLGetHomeTimelineSuccessResponse {
|
|
|
2632
2681
|
in_reply_to_status_id_str?: string;
|
|
2633
2682
|
in_reply_to_user_id_str?: string;
|
|
2634
2683
|
};
|
|
2684
|
+
card?: {
|
|
2685
|
+
rest_id: string;
|
|
2686
|
+
legacy: {
|
|
2687
|
+
binding_values: {
|
|
2688
|
+
key: string;
|
|
2689
|
+
value: {
|
|
2690
|
+
image_value?: {
|
|
2691
|
+
height: number;
|
|
2692
|
+
width: number;
|
|
2693
|
+
url: string;
|
|
2694
|
+
};
|
|
2695
|
+
type: string;
|
|
2696
|
+
string_value?: string;
|
|
2697
|
+
scribe_key?: string;
|
|
2698
|
+
user_value?: {
|
|
2699
|
+
id_str: string;
|
|
2700
|
+
path: unknown[];
|
|
2701
|
+
};
|
|
2702
|
+
image_color_value?: {
|
|
2703
|
+
palette: {
|
|
2704
|
+
rgb: {
|
|
2705
|
+
blue: number;
|
|
2706
|
+
green: number;
|
|
2707
|
+
red: number;
|
|
2708
|
+
};
|
|
2709
|
+
percentage: number;
|
|
2710
|
+
}[];
|
|
2711
|
+
};
|
|
2712
|
+
boolean_value?: boolean;
|
|
2713
|
+
};
|
|
2714
|
+
}[];
|
|
2715
|
+
card_platform: {
|
|
2716
|
+
platform: {
|
|
2717
|
+
audience: {
|
|
2718
|
+
name: string;
|
|
2719
|
+
};
|
|
2720
|
+
device: {
|
|
2721
|
+
name: string;
|
|
2722
|
+
version: string;
|
|
2723
|
+
};
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
name: string;
|
|
2727
|
+
url: string;
|
|
2728
|
+
user_refs_results: {
|
|
2729
|
+
result: {
|
|
2730
|
+
__typename: string;
|
|
2731
|
+
id: string;
|
|
2732
|
+
rest_id: string;
|
|
2733
|
+
affiliates_highlighted_label: {};
|
|
2734
|
+
has_graduated_access: boolean;
|
|
2735
|
+
is_blue_verified: boolean;
|
|
2736
|
+
profile_image_shape: string;
|
|
2737
|
+
legacy: {
|
|
2738
|
+
can_dm: boolean;
|
|
2739
|
+
can_media_tag: boolean;
|
|
2740
|
+
created_at: string;
|
|
2741
|
+
default_profile: boolean;
|
|
2742
|
+
default_profile_image: boolean;
|
|
2743
|
+
description: string;
|
|
2744
|
+
entities: {
|
|
2745
|
+
description: {
|
|
2746
|
+
urls: unknown[];
|
|
2747
|
+
};
|
|
2748
|
+
url: {
|
|
2749
|
+
urls: {
|
|
2750
|
+
display_url: string;
|
|
2751
|
+
expanded_url: string;
|
|
2752
|
+
url: string;
|
|
2753
|
+
indices: number[];
|
|
2754
|
+
}[];
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2757
|
+
fast_followers_count: number;
|
|
2758
|
+
favourites_count: number;
|
|
2759
|
+
followers_count: number;
|
|
2760
|
+
friends_count: number;
|
|
2761
|
+
has_custom_timelines: boolean;
|
|
2762
|
+
is_translator: boolean;
|
|
2763
|
+
listed_count: number;
|
|
2764
|
+
location: string;
|
|
2765
|
+
media_count: number;
|
|
2766
|
+
name: string;
|
|
2767
|
+
normal_followers_count: number;
|
|
2768
|
+
pinned_tweet_ids_str: unknown[];
|
|
2769
|
+
possibly_sensitive: boolean;
|
|
2770
|
+
profile_banner_url: string;
|
|
2771
|
+
profile_image_url_https: string;
|
|
2772
|
+
profile_interstitial_type: string;
|
|
2773
|
+
screen_name: string;
|
|
2774
|
+
statuses_count: number;
|
|
2775
|
+
translator_type: string;
|
|
2776
|
+
url: string;
|
|
2777
|
+
verified: boolean;
|
|
2778
|
+
verified_type: string;
|
|
2779
|
+
want_retweets: boolean;
|
|
2780
|
+
withheld_in_countries: unknown[];
|
|
2781
|
+
};
|
|
2782
|
+
};
|
|
2783
|
+
}[];
|
|
2784
|
+
};
|
|
2785
|
+
};
|
|
2786
|
+
unified_card?: {
|
|
2787
|
+
card_fetch_state: string;
|
|
2788
|
+
};
|
|
2635
2789
|
};
|
|
2636
2790
|
};
|
|
2637
2791
|
tweetDisplayType: string;
|